HEX
Server: nginx
System: Linux pool195-106-36.bur.atomicsites.net 6.12.57+deb12-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.57-1~bpo12+1 (2025-11-17) x86_64
User: (0)
PHP: 8.3.32
Disabled: pcntl_fork
Upload Files
File: //srv/htdocs/wp-content/plugins/custom-codes/assets/script/script.min.js
(()=>{var ob=Object.create;var Od=Object.defineProperty;var ab=Object.getOwnPropertyDescriptor;var sb=Object.getOwnPropertyNames;var lb=Object.getPrototypeOf,ub=Object.prototype.hasOwnProperty;var Mt=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var fb=(e,r,i,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let c of sb(r))!ub.call(e,c)&&c!==i&&Od(e,c,{get:()=>r[c],enumerable:!(o=ab(r,c))||o.enumerable});return e};var Nt=(e,r,i)=>(i=e!=null?ob(lb(e)):{},fb(r||!e||!e.__esModule?Od(i,"default",{value:e,enumerable:!0}):i,e));var Nd=Mt((np,ip)=>{/*!
 * Vue.js v2.7.16
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 *//*!
 * Vue.js v2.7.16
 * (c) 2014-2023 Evan You
 * Released under the MIT License.
 */(function(e,r){typeof np=="object"&&typeof ip<"u"?ip.exports=r():typeof define=="function"&&define.amd?define(r):(e=typeof globalThis<"u"?globalThis:e||self).Vue=r()})(np,(function(){"use strict";var e=Object.freeze({}),r=Array.isArray;function i(a){return a==null}function o(a){return a!=null}function c(a){return a===!0}function d(a){return typeof a=="string"||typeof a=="number"||typeof a=="symbol"||typeof a=="boolean"}function m(a){return typeof a=="function"}function x(a){return a!==null&&typeof a=="object"}var S=Object.prototype.toString;function A(a){return S.call(a)==="[object Object]"}function T(a){var u=parseFloat(String(a));return u>=0&&Math.floor(u)===u&&isFinite(a)}function D(a){return o(a)&&typeof a.then=="function"&&typeof a.catch=="function"}function E(a){return a==null?"":Array.isArray(a)||A(a)&&a.toString===S?JSON.stringify(a,U,2):String(a)}function U(a,u){return u&&u.__v_isRef?u.value:u}function V(a){var u=parseFloat(a);return isNaN(u)?a:u}function I(a,u){for(var p=Object.create(null),h=a.split(","),v=0;v<h.length;v++)p[h[v]]=!0;return u?function(y){return p[y.toLowerCase()]}:function(y){return p[y]}}var W=I("slot,component",!0),K=I("key,ref,slot,slot-scope,is");function G(a,u){var p=a.length;if(p){if(u===a[p-1])return void(a.length=p-1);var h=a.indexOf(u);if(h>-1)return a.splice(h,1)}}var re=Object.prototype.hasOwnProperty;function ue(a,u){return re.call(a,u)}function ae(a){var u=Object.create(null);return function(p){return u[p]||(u[p]=a(p))}}var j=/-(\w)/g,B=ae((function(a){return a.replace(j,(function(u,p){return p?p.toUpperCase():""}))})),ee=ae((function(a){return a.charAt(0).toUpperCase()+a.slice(1)})),ne=/\B([A-Z])/g,ge=ae((function(a){return a.replace(ne,"-$1").toLowerCase()})),Z=Function.prototype.bind?function(a,u){return a.bind(u)}:function(a,u){function p(h){var v=arguments.length;return v?v>1?a.apply(u,arguments):a.call(u,h):a.call(u)}return p._length=a.length,p};function pe(a,u){u=u||0;for(var p=a.length-u,h=new Array(p);p--;)h[p]=a[p+u];return h}function $(a,u){for(var p in u)a[p]=u[p];return a}function ve(a){for(var u={},p=0;p<a.length;p++)a[p]&&$(u,a[p]);return u}function se(a,u,p){}var q=function(a,u,p){return!1},Q=function(a){return a};function he(a,u){if(a===u)return!0;var p=x(a),h=x(u);if(!p||!h)return!p&&!h&&String(a)===String(u);try{var v=Array.isArray(a),y=Array.isArray(u);if(v&&y)return a.length===u.length&&a.every((function(N,F){return he(N,u[F])}));if(a instanceof Date&&u instanceof Date)return a.getTime()===u.getTime();if(v||y)return!1;var _=Object.keys(a),L=Object.keys(u);return _.length===L.length&&_.every((function(N){return he(a[N],u[N])}))}catch{return!1}}function Ae(a,u){for(var p=0;p<a.length;p++)if(he(a[p],u))return p;return-1}function Ye(a){var u=!1;return function(){u||(u=!0,a.apply(this,arguments))}}function Ve(a,u){return a===u?a===0&&1/a!=1/u:a==a||u==u}var wt="data-server-rendered",lt=["component","directive","filter"],We=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],Ee={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:q,isReservedAttr:q,isUnknownElement:q,getTagNamespace:se,parsePlatformTagName:Q,mustUseProp:q,async:!0,_lifecycleHooks:We},Ue=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Ge(a){var u=(a+"").charCodeAt(0);return u===36||u===95}function Oe(a,u,p,h){Object.defineProperty(a,u,{value:p,enumerable:!!h,writable:!0,configurable:!0})}var Pe=new RegExp("[^".concat(Ue.source,".$_\\d]")),Pt="__proto__"in{},ut=typeof window<"u",at=ut&&window.navigator.userAgent.toLowerCase(),At=at&&/msie|trident/.test(at),Ze=at&&at.indexOf("msie 9.0")>0,kt=at&&at.indexOf("edge/")>0;at&&at.indexOf("android");var jt=at&&/iphone|ipad|ipod|ios/.test(at);at&&/chrome\/\d+/.test(at),at&&/phantomjs/.test(at);var qt,qe=at&&at.match(/firefox\/(\d+)/),nt={}.watch,oe=!1;if(ut)try{var be={};Object.defineProperty(be,"passive",{get:function(){oe=!0}}),window.addEventListener("test-passive",null,be)}catch{}var ce=function(){return qt===void 0&&(qt=!ut&&typeof global<"u"&&global.process&&global.process.env.VUE_ENV==="server"),qt},Qe=ut&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function $e(a){return typeof a=="function"&&/native code/.test(a.toString())}var Re,Me=typeof Symbol<"u"&&$e(Symbol)&&typeof Reflect<"u"&&$e(Reflect.ownKeys);Re=typeof Set<"u"&&$e(Set)?Set:(function(){function a(){this.set=Object.create(null)}return a.prototype.has=function(u){return this.set[u]===!0},a.prototype.add=function(u){this.set[u]=!0},a.prototype.clear=function(){this.set=Object.create(null)},a})();var Fe=null;function Be(a){a===void 0&&(a=null),a||Fe&&Fe._scope.off(),Fe=a,a&&a._scope.on()}var ht=(function(){function a(u,p,h,v,y,_,L,N){this.tag=u,this.data=p,this.children=h,this.text=v,this.elm=y,this.ns=void 0,this.context=_,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=p&&p.key,this.componentOptions=L,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=N,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(a.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),a})(),Wt=function(a){a===void 0&&(a="");var u=new ht;return u.text=a,u.isComment=!0,u};function mr(a){return new ht(void 0,void 0,void 0,String(a))}function an(a){var u=new ht(a.tag,a.data,a.children&&a.children.slice(),a.text,a.elm,a.context,a.componentOptions,a.asyncFactory);return u.ns=a.ns,u.isStatic=a.isStatic,u.key=a.key,u.isComment=a.isComment,u.fnContext=a.fnContext,u.fnOptions=a.fnOptions,u.fnScopeId=a.fnScopeId,u.asyncMeta=a.asyncMeta,u.isCloned=!0,u}typeof SuppressedError=="function"&&SuppressedError;var _n=0,Di=[],et=function(){for(var a=0;a<Di.length;a++){var u=Di[a];u.subs=u.subs.filter((function(p){return p})),u._pending=!1}Di.length=0},vr=(function(){function a(){this._pending=!1,this.id=_n++,this.subs=[]}return a.prototype.addSub=function(u){this.subs.push(u)},a.prototype.removeSub=function(u){this.subs[this.subs.indexOf(u)]=null,this._pending||(this._pending=!0,Di.push(this))},a.prototype.depend=function(u){a.target&&a.target.addDep(this)},a.prototype.notify=function(u){for(var p=this.subs.filter((function(y){return y})),h=0,v=p.length;h<v;h++)p[h].update()},a})();vr.target=null;var Ie=[];function ur(a){Ie.push(a),vr.target=a}function Ot(){Ie.pop(),vr.target=Ie[Ie.length-1]}var Ct=Array.prototype,gt=Object.create(Ct);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(a){var u=Ct[a];Oe(gt,a,(function(){for(var p=[],h=0;h<arguments.length;h++)p[h]=arguments[h];var v,y=u.apply(this,p),_=this.__ob__;switch(a){case"push":case"unshift":v=p;break;case"splice":v=p.slice(2)}return v&&_.observeArray(v),_.dep.notify(),y}))}));var yr=Object.getOwnPropertyNames(gt),rr={},br=!0;function Tt(a){br=a}var Ii={notify:se,depend:se,addSub:se,removeSub:se},Xt=(function(){function a(u,p,h){if(p===void 0&&(p=!1),h===void 0&&(h=!1),this.value=u,this.shallow=p,this.mock=h,this.dep=h?Ii:new vr,this.vmCount=0,Oe(u,"__ob__",this),r(u)){if(!h)if(Pt)u.__proto__=gt;else for(var v=0,y=yr.length;v<y;v++)Oe(u,L=yr[v],gt[L]);p||this.observeArray(u)}else{var _=Object.keys(u);for(v=0;v<_.length;v++){var L;Lr(u,L=_[v],rr,void 0,p,h)}}}return a.prototype.observeArray=function(u){for(var p=0,h=u.length;p<h;p++)Yt(u[p],!1,this.mock)},a})();function Yt(a,u,p){return a&&ue(a,"__ob__")&&a.__ob__ instanceof Xt?a.__ob__:!br||!p&&ce()||!r(a)&&!A(a)||!Object.isExtensible(a)||a.__v_skip||pt(a)||a instanceof ht?void 0:new Xt(a,u,p)}function Lr(a,u,p,h,v,y,_){_===void 0&&(_=!1);var L=new vr,N=Object.getOwnPropertyDescriptor(a,u);if(!N||N.configurable!==!1){var F=N&&N.get,H=N&&N.set;F&&!H||p!==rr&&arguments.length!==2||(p=a[u]);var M=v?p&&p.__ob__:Yt(p,!1,y);return Object.defineProperty(a,u,{enumerable:!0,configurable:!0,get:function(){var X=F?F.call(a):p;return vr.target&&(L.depend(),M&&(M.dep.depend(),r(X)&&Gn(X))),pt(X)&&!v?X.value:X},set:function(X){var J=F?F.call(a):p;if(Ve(J,X)){if(H)H.call(a,X);else{if(F)return;if(!v&&pt(J)&&!pt(X))return void(J.value=X);p=X}M=v?X&&X.__ob__:Yt(X,!1,y),L.notify()}}}),L}}function fr(a,u,p){if(!pr(a)){var h=a.__ob__;return r(a)&&T(u)?(a.length=Math.max(a.length,u),a.splice(u,1,p),h&&!h.shallow&&h.mock&&Yt(p,!1,!0),p):u in a&&!(u in Object.prototype)?(a[u]=p,p):a._isVue||h&&h.vmCount?p:h?(Lr(h.value,u,p,void 0,h.shallow,h.mock),h.dep.notify(),p):(a[u]=p,p)}}function _o(a,u){if(r(a)&&T(u))a.splice(u,1);else{var p=a.__ob__;a._isVue||p&&p.vmCount||pr(a)||ue(a,u)&&(delete a[u],p&&p.dep.notify())}}function Gn(a){for(var u=void 0,p=0,h=a.length;p<h;p++)(u=a[p])&&u.__ob__&&u.__ob__.dep.depend(),r(u)&&Gn(u)}function Fi(a){return zi(a,!0),Oe(a,"__v_isShallow",!0),a}function zi(a,u){pr(a)||Yt(a,u,ce())}function cr(a){return pr(a)?cr(a.__v_raw):!(!a||!a.__ob__)}function nr(a){return!(!a||!a.__v_isShallow)}function pr(a){return!(!a||!a.__v_isReadonly)}var Sn="__v_isRef";function pt(a){return!(!a||a.__v_isRef!==!0)}function ka(a,u){if(pt(a))return a;var p={};return Oe(p,Sn,!0),Oe(p,"__v_isShallow",u),Oe(p,"dep",Lr(p,"value",a,null,u,ce())),p}function sn(a,u,p){Object.defineProperty(a,p,{enumerable:!0,configurable:!0,get:function(){var h=u[p];if(pt(h))return h.value;var v=h&&h.__ob__;return v&&v.dep.depend(),h},set:function(h){var v=u[p];pt(v)&&!pt(h)?v.value=h:u[p]=h}})}function Ar(a,u,p){var h=a[u];if(pt(h))return h;var v={get value(){var y=a[u];return y===void 0?p:y},set value(y){a[u]=y}};return Oe(v,Sn,!0),v}var Ir="__v_rawToReadonly",Qn="__v_rawToShallowReadonly";function Xn(a){return Yn(a,!1)}function Yn(a,u){if(!A(a)||pr(a))return a;var p=u?Qn:Ir,h=a[p];if(h)return h;var v=Object.create(Object.getPrototypeOf(a));Oe(a,p,v),Oe(v,"__v_isReadonly",!0),Oe(v,"__v_raw",a),pt(a)&&Oe(v,Sn,!0),(u||nr(a))&&Oe(v,"__v_isShallow",!0);for(var y=Object.keys(a),_=0;_<y.length;_++)Cn(v,a,y[_],u);return v}function Cn(a,u,p,h){Object.defineProperty(a,p,{enumerable:!0,configurable:!0,get:function(){var v=u[p];return h||!A(v)?v:Xn(v)},set:function(){}})}var Zn=ae((function(a){var u=a.charAt(0)==="&",p=(a=u?a.slice(1):a).charAt(0)==="~",h=(a=p?a.slice(1):a).charAt(0)==="!";return{name:a=h?a.slice(1):a,once:p,capture:h,passive:u}}));function Or(a,u){function p(){var h=p.fns;if(!r(h))return Ur(h,null,arguments,u,"v-on handler");for(var v=h.slice(),y=0;y<v.length;y++)Ur(v[y],null,arguments,u,"v-on handler")}return p.fns=a,p}function Ri(a,u,p,h,v,y){var _,L,N,F;for(_ in a)L=a[_],N=u[_],F=Zn(_),i(L)||(i(N)?(i(L.fns)&&(L=a[_]=Or(L,y)),c(F.once)&&(L=a[_]=v(F.name,L,F.capture)),p(F.name,L,F.capture,F.passive,F.params)):L!==N&&(N.fns=L,a[_]=N));for(_ in u)i(a[_])&&h((F=Zn(_)).name,u[_],F.capture)}function xr(a,u,p){var h;a instanceof ht&&(a=a.data.hook||(a.data.hook={}));var v=a[u];function y(){p.apply(this,arguments),G(h.fns,y)}i(v)?h=Or([y]):o(v.fns)&&c(v.merged)?(h=v).fns.push(y):h=Or([v,y]),h.merged=!0,a[u]=h}function $t(a,u,p,h,v){if(o(u)){if(ue(u,p))return a[p]=u[p],v||delete u[p],!0;if(ue(u,h))return a[p]=u[h],v||delete u[h],!0}return!1}function Ne(a){return d(a)?[mr(a)]:r(a)?ji(a):void 0}function wr(a){return o(a)&&o(a.text)&&a.isComment===!1}function ji(a,u){var p,h,v,y,_=[];for(p=0;p<a.length;p++)i(h=a[p])||typeof h=="boolean"||(y=_[v=_.length-1],r(h)?h.length>0&&(wr((h=ji(h,"".concat(u||"","_").concat(p)))[0])&&wr(y)&&(_[v]=mr(y.text+h[0].text),h.shift()),_.push.apply(_,h)):d(h)?wr(y)?_[v]=mr(y.text+h):h!==""&&_.push(mr(h)):wr(h)&&wr(y)?_[v]=mr(y.text+h.text):(c(a._isVList)&&o(h.tag)&&i(h.key)&&o(u)&&(h.key="__vlist".concat(u,"_").concat(p,"__")),_.push(h)));return _}var kr=1,O=2;function z(a,u,p,h,v,y){return(r(p)||d(p))&&(v=h,h=p,p=void 0),c(y)&&(v=O),(function(_,L,N,F,H){if(o(N)&&o(N.__ob__)||(o(N)&&o(N.is)&&(L=N.is),!L))return Wt();r(F)&&m(F[0])&&((N=N||{}).scopedSlots={default:F[0]},F.length=0),H===O?F=Ne(F):H===kr&&(F=(function(ie){for(var ye=0;ye<ie.length;ye++)if(r(ie[ye]))return Array.prototype.concat.apply([],ie);return ie})(F));var M,X;if(typeof L=="string"){var J=void 0;X=_.$vnode&&_.$vnode.ns||Ee.getTagNamespace(L),M=Ee.isReservedTag(L)?new ht(Ee.parsePlatformTagName(L),N,F,void 0,void 0,_):N&&N.pre||!o(J=Qi(_.$options,"components",L))?new ht(L,N,F,void 0,void 0,_):Gi(J,N,_,F,L)}else M=Gi(L,N,_,F);return r(M)?M:o(M)?(o(X)&&me(M,X),o(N)&&(function(ie){x(ie.style)&&dr(ie.style),x(ie.class)&&dr(ie.class)})(N),M):Wt()})(a,u,p,h,v)}function me(a,u,p){if(a.ns=u,a.tag==="foreignObject"&&(u=void 0,p=!0),o(a.children))for(var h=0,v=a.children.length;h<v;h++){var y=a.children[h];o(y.tag)&&(i(y.ns)||c(p)&&y.tag!=="svg")&&me(y,u,p)}}function xe(a,u){var p,h,v,y,_=null;if(r(a)||typeof a=="string")for(_=new Array(a.length),p=0,h=a.length;p<h;p++)_[p]=u(a[p],p);else if(typeof a=="number")for(_=new Array(a),p=0;p<a;p++)_[p]=u(p+1,p);else if(x(a))if(Me&&a[Symbol.iterator]){_=[];for(var L=a[Symbol.iterator](),N=L.next();!N.done;)_.push(u(N.value,_.length)),N=L.next()}else for(v=Object.keys(a),_=new Array(v.length),p=0,h=v.length;p<h;p++)y=v[p],_[p]=u(a[y],y,p);return o(_)||(_=[]),_._isVList=!0,_}function fe(a,u,p,h){var v,y=this.$scopedSlots[a];y?(p=p||{},h&&(p=$($({},h),p)),v=y(p)||(m(u)?u():u)):v=this.$slots[a]||(m(u)?u():u);var _=p&&p.slot;return _?this.$createElement("template",{slot:_},v):v}function Ce(a){return Qi(this.$options,"filters",a)||Q}function it(a,u){return r(a)?a.indexOf(u)===-1:a!==u}function It(a,u,p,h,v){var y=Ee.keyCodes[u]||p;return v&&h&&!Ee.keyCodes[u]?it(v,h):y?it(y,a):h?ge(h)!==u:a===void 0}function ir(a,u,p,h,v){if(p&&x(p)){r(p)&&(p=ve(p));var y=void 0,_=function(N){if(N==="class"||N==="style"||K(N))y=a;else{var F=a.attrs&&a.attrs.type;y=h||Ee.mustUseProp(u,F,N)?a.domProps||(a.domProps={}):a.attrs||(a.attrs={})}var H=B(N),M=ge(N);H in y||M in y||(y[N]=p[N],v&&((a.on||(a.on={}))["update:".concat(N)]=function(X){p[N]=X}))};for(var L in p)_(L)}return a}function qi(a,u){var p=this._staticTrees||(this._staticTrees=[]),h=p[a];return h&&!u||He(h=p[a]=this.$options.staticRenderFns[a].call(this._renderProxy,this._c,this),"__static__".concat(a),!1),h}function du(a,u,p){return He(a,"__once__".concat(u).concat(p?"_".concat(p):""),!0),a}function He(a,u,p){if(r(a))for(var h=0;h<a.length;h++)a[h]&&typeof a[h]!="string"&&hu(a[h],"".concat(u,"_").concat(h),p);else hu(a,u,p)}function hu(a,u,p){a.isStatic=!0,a.key=u,a.isOnce=p}function gu(a,u){if(u&&A(u)){var p=a.on=a.on?$({},a.on):{};for(var h in u){var v=p[h],y=u[h];p[h]=v?[].concat(v,y):y}}return a}function So(a,u,p,h){u=u||{$stable:!p};for(var v=0;v<a.length;v++){var y=a[v];r(y)?So(y,u,p):y&&(y.proxy&&(y.fn.proxy=!0),u[y.key]=y.fn)}return h&&(u.$key=h),u}function Br(a,u){for(var p=0;p<u.length;p+=2){var h=u[p];typeof h=="string"&&h&&(a[u[p]]=u[p+1])}return a}function mu(a,u){return typeof a=="string"?u+a:a}function As(a){a._o=du,a._n=V,a._s=E,a._l=xe,a._t=fe,a._q=he,a._i=Ae,a._m=qi,a._f=Ce,a._k=It,a._b=ir,a._v=mr,a._e=Wt,a._u=So,a._g=gu,a._d=Br,a._p=mu}function Jn(a,u){if(!a||!a.length)return{};for(var p={},h=0,v=a.length;h<v;h++){var y=a[h],_=y.data;if(_&&_.attrs&&_.attrs.slot&&delete _.attrs.slot,y.context!==u&&y.fnContext!==u||!_||_.slot==null)(p.default||(p.default=[])).push(y);else{var L=_.slot,N=p[L]||(p[L]=[]);y.tag==="template"?N.push.apply(N,y.children||[]):N.push(y)}}for(var F in p)p[F].every(Os)&&delete p[F];return p}function Os(a){return a.isComment&&!a.asyncFactory||a.text===" "}function Wi(a){return a.isComment&&a.asyncFactory}function ei(a,u,p,h){var v,y=Object.keys(p).length>0,_=u?!!u.$stable:!y,L=u&&u.$key;if(u){if(u._normalized)return u._normalized;if(_&&h&&h!==e&&L===h.$key&&!y&&!h.$hasNormal)return h;for(var N in v={},u)u[N]&&N[0]!=="$"&&(v[N]=vu(a,p,N,u[N]))}else v={};for(var F in p)F in v||(v[F]=yu(p,F));return u&&Object.isExtensible(u)&&(u._normalized=v),Oe(v,"$stable",_),Oe(v,"$key",L),Oe(v,"$hasNormal",y),v}function vu(a,u,p,h){var v=function(){var y=Fe;Be(a);var _=arguments.length?h.apply(null,arguments):h({}),L=(_=_&&typeof _=="object"&&!r(_)?[_]:Ne(_))&&_[0];return Be(y),_&&(!L||_.length===1&&L.isComment&&!Wi(L))?void 0:_};return h.proxy&&Object.defineProperty(u,p,{get:v,enumerable:!0,configurable:!0}),v}function yu(a,u){return function(){return a[u]}}function Ns(a){return{get attrs(){if(!a._attrsProxy){var u=a._attrsProxy={};Oe(u,"_v_attr_proxy",!0),Co(u,a.$attrs,e,a,"$attrs")}return a._attrsProxy},get listeners(){return a._listenersProxy||Co(a._listenersProxy={},a.$listeners,e,a,"$listeners"),a._listenersProxy},get slots(){return(function(u){return u._slotsProxy||bu(u._slotsProxy={},u.$scopedSlots),u._slotsProxy})(a)},emit:Z(a.$emit,a),expose:function(u){u&&Object.keys(u).forEach((function(p){return sn(a,u,p)}))}}}function Co(a,u,p,h,v){var y=!1;for(var _ in u)_ in a?u[_]!==p[_]&&(y=!0):(y=!0,yc(a,_,h,v));for(var _ in a)_ in u||(y=!0,delete a[_]);return y}function yc(a,u,p,h){Object.defineProperty(a,u,{enumerable:!0,configurable:!0,get:function(){return p[h][u]}})}function bu(a,u){for(var p in u)a[p]=u[p];for(var p in a)p in u||delete a[p]}function _a(){var a=Fe;return a._setupContext||(a._setupContext=Ns(a))}var _r,Zt,Sa=null;function Bi(a,u){return(a.__esModule||Me&&a[Symbol.toStringTag]==="Module")&&(a=a.default),x(a)?u.extend(a):a}function Hi(a){if(r(a))for(var u=0;u<a.length;u++){var p=a[u];if(o(p)&&(o(p.componentOptions)||Wi(p)))return p}}function bc(a,u){_r.$on(a,u)}function xc(a,u){_r.$off(a,u)}function wc(a,u){var p=_r;return function h(){u.apply(null,arguments)!==null&&p.$off(a,h)}}function xu(a,u,p){_r=a,Ri(u,p||{},bc,xc,wc,a),_r=void 0}var To=(function(){function a(u){u===void 0&&(u=!1),this.detached=u,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Zt,!u&&Zt&&(this.index=(Zt.scopes||(Zt.scopes=[])).push(this)-1)}return a.prototype.run=function(u){if(this.active){var p=Zt;try{return Zt=this,u()}finally{Zt=p}}},a.prototype.on=function(){Zt=this},a.prototype.off=function(){Zt=this.parent},a.prototype.stop=function(u){if(this.active){var p=void 0,h=void 0;for(p=0,h=this.effects.length;p<h;p++)this.effects[p].teardown();for(p=0,h=this.cleanups.length;p<h;p++)this.cleanups[p]();if(this.scopes)for(p=0,h=this.scopes.length;p<h;p++)this.scopes[p].stop(!0);if(!this.detached&&this.parent&&!u){var v=this.parent.scopes.pop();v&&v!==this&&(this.parent.scopes[this.index]=v,v.index=this.index)}this.parent=void 0,this.active=!1}},a})();function Es(){return Zt}var ti=null;function Ms(a){var u=ti;return ti=a,function(){ti=u}}function Ps(a){for(;a&&(a=a.$parent);)if(a._inactive)return!0;return!1}function Ui(a,u){if(u){if(a._directInactive=!1,Ps(a))return}else if(a._directInactive)return;if(a._inactive||a._inactive===null){a._inactive=!1;for(var p=0;p<a.$children.length;p++)Ui(a.$children[p]);Sr(a,"activated")}}function $o(a,u){if(!(u&&(a._directInactive=!0,Ps(a))||a._inactive)){a._inactive=!0;for(var p=0;p<a.$children.length;p++)$o(a.$children[p]);Sr(a,"deactivated")}}function Sr(a,u,p,h){h===void 0&&(h=!0),ur();var v=Fe,y=Es();h&&Be(a);var _=a.$options[u],L="".concat(u," hook");if(_)for(var N=0,F=_.length;N<F;N++)Ur(_[N],a,p||null,a,L);a._hasHookEvent&&a.$emit("hook:"+u),h&&(Be(v),y&&y.on()),Ot()}var Hr=[],Ca=[],ri={},Ds=!1,Ta=!1,Jt=0,wu=0,Is=Date.now;if(ut&&!At){var Lo=window.performance;Lo&&typeof Lo.now=="function"&&Is()>document.createEvent("Event").timeStamp&&(Is=function(){return Lo.now()})}var ku=function(a,u){if(a.post){if(!u.post)return 1}else if(u.post)return-1;return a.id-u.id};function Tn(){var a,u;for(wu=Is(),Ta=!0,Hr.sort(ku),Jt=0;Jt<Hr.length;Jt++)(a=Hr[Jt]).before&&a.before(),u=a.id,ri[u]=null,a.run();var p=Ca.slice(),h=Hr.slice();Jt=Hr.length=Ca.length=0,ri={},Ds=Ta=!1,(function(v){for(var y=0;y<v.length;y++)v[y]._inactive=!0,Ui(v[y],!0)})(p),(function(v){for(var y=v.length;y--;){var _=v[y],L=_.vm;L&&L._watcher===_&&L._isMounted&&!L._isDestroyed&&Sr(L,"updated")}})(h),et(),Qe&&Ee.devtools&&Qe.emit("flush")}function Ao(a){var u=a.id;if(ri[u]==null&&(a!==vr.target||!a.noRecurse)){if(ri[u]=!0,Ta){for(var p=Hr.length-1;p>Jt&&Hr[p].id>a.id;)p--;Hr.splice(p+1,0,a)}else Hr.push(a);Ds||(Ds=!0,Ea(Tn))}}var Nr="watcher",Oo="".concat(Nr," callback"),$a="".concat(Nr," getter"),Ki="".concat(Nr," cleanup");function _u(a,u){return La(a,null,{flush:"post"})}var Su={};function La(a,u,p){var h=p===void 0?e:p,v=h.immediate,y=h.deep,_=h.flush,L=_===void 0?"pre":_;h.onTrack,h.onTrigger;var N,F,H=Fe,M=function(we,ze,Le){Le===void 0&&(Le=null);var Te=Ur(we,null,Le,H,ze);return y&&Te&&Te.__ob__&&Te.__ob__.dep.depend(),Te},X=!1,J=!1;if(pt(a)?(N=function(){return a.value},X=nr(a)):cr(a)?(N=function(){return a.__ob__.dep.depend(),a},y=!0):r(a)?(J=!0,X=a.some((function(we){return cr(we)||nr(we)})),N=function(){return a.map((function(we){return pt(we)?we.value:cr(we)?(we.__ob__.dep.depend(),dr(we)):m(we)?M(we,$a):void 0}))}):N=m(a)?u?function(){return M(a,$a)}:function(){if(!H||!H._isDestroyed)return F&&F(),M(a,Nr,[ye])}:se,u&&y){var ie=N;N=function(){return dr(ie())}}var ye=function(we){F=de.onStop=function(){M(we,Ki)}};if(ce())return ye=se,u?v&&M(u,Oo,[N(),J?[]:void 0,ye]):N(),se;var de=new ii(Fe,N,se,{lazy:!0});de.noRecurse=!u;var _e=J?[]:Su;return de.run=function(){if(de.active)if(u){var we=de.get();(y||X||(J?we.some((function(ze,Le){return Ve(ze,_e[Le])})):Ve(we,_e)))&&(F&&F(),M(u,Oo,[we,_e===Su?void 0:_e,ye]),_e=we)}else de.get()},L==="sync"?de.update=de.run:L==="post"?(de.post=!0,de.update=function(){return Ao(de)}):de.update=function(){if(H&&H===Fe&&!H._isMounted){var we=H._preWatchers||(H._preWatchers=[]);we.indexOf(de)<0&&we.push(de)}else Ao(de)},u?v?de.run():_e=de.get():L==="post"&&H?H.$once("hook:mounted",(function(){return de.get()})):de.get(),function(){de.teardown()}}function Cu(a){var u=a._provided,p=a.$parent&&a.$parent._provided;return p===u?a._provided=Object.create(p):u}function $n(a,u,p){ur();try{if(u)for(var h=u;h=h.$parent;){var v=h.$options.errorCaptured;if(v)for(var y=0;y<v.length;y++)try{if(v[y].call(h,a,u,p)===!1)return}catch(_){Tu(_,h,"errorCaptured hook")}}Tu(a,u,p)}finally{Ot()}}function Ur(a,u,p,h,v){var y;try{(y=p?a.apply(u,p):a.call(u))&&!y._isVue&&D(y)&&!y._handled&&(y.catch((function(_){return $n(_,h,v+" (Promise/async)")})),y._handled=!0)}catch(_){$n(_,h,v)}return y}function Tu(a,u,p){if(Ee.errorHandler)try{return Ee.errorHandler.call(null,a,u,p)}catch(h){h!==a&&$u(h)}$u(a)}function $u(a,u,p){if(!ut||typeof console>"u")throw a}var Aa,Fs=!1,Oa=[],zs=!1;function No(){zs=!1;var a=Oa.slice(0);Oa.length=0;for(var u=0;u<a.length;u++)a[u]()}if(typeof Promise<"u"&&$e(Promise)){var Na=Promise.resolve();Aa=function(){Na.then(No),jt&&setTimeout(se)},Fs=!0}else if(At||typeof MutationObserver>"u"||!$e(MutationObserver)&&MutationObserver.toString()!=="[object MutationObserverConstructor]")Aa=typeof setImmediate<"u"&&$e(setImmediate)?function(){setImmediate(No)}:function(){setTimeout(No,0)};else{var ln=1,kc=new MutationObserver(No),Lu=document.createTextNode(String(ln));kc.observe(Lu,{characterData:!0}),Aa=function(){ln=(ln+1)%2,Lu.data=String(ln)},Fs=!0}function Ea(a,u){var p;if(Oa.push((function(){if(a)try{a.call(u)}catch(h){$n(h,u,"nextTick")}else p&&p(u)})),zs||(zs=!0,Aa()),!a&&typeof Promise<"u")return new Promise((function(h){p=h}))}function er(a){return function(u,p){if(p===void 0&&(p=Fe),p)return(function(h,v,y){var _=h.$options;_[v]=Po(_[v],y)})(p,a,u)}}var Ft=er("beforeMount"),_c=er("mounted"),Au=er("beforeUpdate"),Eo=er("updated"),Sc=er("beforeDestroy"),Ou=er("destroyed"),Cc=er("activated"),Rs=er("deactivated"),Nu=er("serverPrefetch"),Tc=er("renderTracked"),$c=er("renderTriggered"),Eu=er("errorCaptured"),js="2.7.16",Lc=Object.freeze({__proto__:null,version:js,defineComponent:function(a){return a},ref:function(a){return ka(a,!1)},shallowRef:function(a){return ka(a,!0)},isRef:pt,toRef:Ar,toRefs:function(a){var u=r(a)?new Array(a.length):{};for(var p in a)u[p]=Ar(a,p);return u},unref:function(a){return pt(a)?a.value:a},proxyRefs:function(a){if(cr(a))return a;for(var u={},p=Object.keys(a),h=0;h<p.length;h++)sn(u,a,p[h]);return u},customRef:function(a){var u=new vr,p=a((function(){u.depend()}),(function(){u.notify()})),h=p.get,v=p.set,y={get value(){return h()},set value(_){v(_)}};return Oe(y,Sn,!0),y},triggerRef:function(a){a.dep&&a.dep.notify()},reactive:function(a){return zi(a,!1),a},isReactive:cr,isReadonly:pr,isShallow:nr,isProxy:function(a){return cr(a)||pr(a)},shallowReactive:Fi,markRaw:function(a){return Object.isExtensible(a)&&Oe(a,"__v_skip",!0),a},toRaw:function a(u){var p=u&&u.__v_raw;return p?a(p):u},readonly:Xn,shallowReadonly:function(a){return Yn(a,!0)},computed:function(a,u){var p,h,v=m(a);v?(p=a,h=se):(p=a.get,h=a.set);var y=ce()?null:new ii(Fe,p,se,{lazy:!0}),_={effect:y,get value(){return y?(y.dirty&&y.evaluate(),vr.target&&y.depend(),y.value):p()},set value(L){h(L)}};return Oe(_,Sn,!0),Oe(_,"__v_isReadonly",v),_},watch:function(a,u,p){return La(a,u,p)},watchEffect:function(a,u){return La(a,null,u)},watchPostEffect:_u,watchSyncEffect:function(a,u){return La(a,null,{flush:"sync"})},EffectScope:To,effectScope:function(a){return new To(a)},onScopeDispose:function(a){Zt&&Zt.cleanups.push(a)},getCurrentScope:Es,provide:function(a,u){Fe&&(Cu(Fe)[a]=u)},inject:function(a,u,p){p===void 0&&(p=!1);var h=Fe;if(h){var v=h.$parent&&h.$parent._provided;if(v&&a in v)return v[a];if(arguments.length>1)return p&&m(u)?u.call(h):u}},h:function(a,u,p){return z(Fe,a,u,p,2,!0)},getCurrentInstance:function(){return Fe&&{proxy:Fe}},useSlots:function(){return _a().slots},useAttrs:function(){return _a().attrs},useListeners:function(){return _a().listeners},mergeDefaults:function(a,u){var p=r(a)?a.reduce((function(y,_){return y[_]={},y}),{}):a;for(var h in u){var v=p[h];v?r(v)||m(v)?p[h]={type:v,default:u[h]}:v.default=u[h]:v===null&&(p[h]={default:u[h]})}return p},nextTick:Ea,set:fr,del:_o,useCssModule:function(a){return e},useCssVars:function(a){if(ut){var u=Fe;u&&_u((function(){var p=u.$el,h=a(u,u._setupProxy);if(p&&p.nodeType===1){var v=p.style;for(var y in h)v.setProperty("--".concat(y),h[y])}}))}},defineAsyncComponent:function(a){m(a)&&(a={loader:a});var u=a.loader,p=a.loadingComponent,h=a.errorComponent,v=a.delay,y=v===void 0?200:v,_=a.timeout;a.suspensible;var L=a.onError,N=null,F=0,H=function(){var M;return N||(M=N=u().catch((function(X){if(X=X instanceof Error?X:new Error(String(X)),L)return new Promise((function(J,ie){L(X,(function(){return J((F++,N=null,H()))}),(function(){return ie(X)}),F+1)}));throw X})).then((function(X){return M!==N&&N?N:(X&&(X.__esModule||X[Symbol.toStringTag]==="Module")&&(X=X.default),X)})))};return function(){return{component:H(),delay:y,timeout:_,error:h,loading:p}}},onBeforeMount:Ft,onMounted:_c,onBeforeUpdate:Au,onUpdated:Eo,onBeforeUnmount:Sc,onUnmounted:Ou,onActivated:Cc,onDeactivated:Rs,onServerPrefetch:Nu,onRenderTracked:Tc,onRenderTriggered:$c,onErrorCaptured:function(a,u){u===void 0&&(u=Fe),Eu(a,u)}}),Vi=new Re;function dr(a){return ni(a,Vi),Vi.clear(),a}function ni(a,u){var p,h,v=r(a);if(!(!v&&!x(a)||a.__v_skip||Object.isFrozen(a)||a instanceof ht)){if(a.__ob__){var y=a.__ob__.dep.id;if(u.has(y))return;u.add(y)}if(v)for(p=a.length;p--;)ni(a[p],u);else if(pt(a))ni(a.value,u);else for(p=(h=Object.keys(a)).length;p--;)ni(a[h[p]],u)}}var qs=0,ii=(function(){function a(u,p,h,v,y){(function(_,L){L===void 0&&(L=Zt),L&&L.active&&L.effects.push(_)})(this,Zt&&!Zt._vm?Zt:u?u._scope:void 0),(this.vm=u)&&y&&(u._watcher=this),v?(this.deep=!!v.deep,this.user=!!v.user,this.lazy=!!v.lazy,this.sync=!!v.sync,this.before=v.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=h,this.id=++qs,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new Re,this.newDepIds=new Re,this.expression="",m(p)?this.getter=p:(this.getter=(function(_){if(!Pe.test(_)){var L=_.split(".");return function(N){for(var F=0;F<L.length;F++){if(!N)return;N=N[L[F]]}return N}}})(p),this.getter||(this.getter=se)),this.value=this.lazy?void 0:this.get()}return a.prototype.get=function(){var u;ur(this);var p=this.vm;try{u=this.getter.call(p,p)}catch(h){if(!this.user)throw h;$n(h,p,'getter for watcher "'.concat(this.expression,'"'))}finally{this.deep&&dr(u),Ot(),this.cleanupDeps()}return u},a.prototype.addDep=function(u){var p=u.id;this.newDepIds.has(p)||(this.newDepIds.add(p),this.newDeps.push(u),this.depIds.has(p)||u.addSub(this))},a.prototype.cleanupDeps=function(){for(var u=this.deps.length;u--;){var p=this.deps[u];this.newDepIds.has(p.id)||p.removeSub(this)}var h=this.depIds;this.depIds=this.newDepIds,this.newDepIds=h,this.newDepIds.clear(),h=this.deps,this.deps=this.newDeps,this.newDeps=h,this.newDeps.length=0},a.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():Ao(this)},a.prototype.run=function(){if(this.active){var u=this.get();if(u!==this.value||x(u)||this.deep){var p=this.value;if(this.value=u,this.user){var h='callback for watcher "'.concat(this.expression,'"');Ur(this.cb,this.vm,[u,p],this.vm,h)}else this.cb.call(this.vm,u,p)}}},a.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},a.prototype.depend=function(){for(var u=this.deps.length;u--;)this.deps[u].depend()},a.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&G(this.vm._scope.effects,this),this.active){for(var u=this.deps.length;u--;)this.deps[u].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},a})(),Kt={enumerable:!0,configurable:!0,get:se,set:se};function un(a,u,p){Kt.get=function(){return this[u][p]},Kt.set=function(h){this[u][p]=h},Object.defineProperty(a,p,Kt)}function Ws(a){var u=a.$options;if(u.props&&(function(h,v){var y=h.$options.propsData||{},_=h._props=Fi({}),L=h.$options._propKeys=[],N=!h.$parent;N||Tt(!1);var F=function(M){L.push(M);var X=Fa(M,v,y,h);Lr(_,M,X,void 0,!0),M in h||un(h,"_props",M)};for(var H in v)F(H);Tt(!0)})(a,u.props),(function(h){var v=h.$options,y=v.setup;if(y){var _=h._setupContext=Ns(h);Be(h),ur();var L=Ur(y,null,[h._props||Fi({}),_],h,"setup");if(Ot(),Be(),m(L))v.render=L;else if(x(L))if(h._setupState=L,L.__sfc){var N=h._setupProxy={};for(var F in L)F!=="__sfc"&&sn(N,L,F)}else for(var F in L)Ge(F)||sn(h,L,F)}})(a),u.methods&&(function(h,v){for(var y in h.$options.props,v)h[y]=typeof v[y]!="function"?se:Z(v[y],h)})(a,u.methods),u.data)(function(h){var v=h.$options.data;v=h._data=m(v)?(function(H,M){ur();try{return H.call(M,M)}catch(X){return $n(X,M,"data()"),{}}finally{Ot()}})(v,h):v||{},A(v)||(v={});var y=Object.keys(v),_=h.$options.props;h.$options.methods;for(var L=y.length;L--;){var N=y[L];_&&ue(_,N)||Ge(N)||un(h,"_data",N)}var F=Yt(v);F&&F.vmCount++})(a);else{var p=Yt(a._data={});p&&p.vmCount++}u.computed&&(function(h,v){var y=h._computedWatchers=Object.create(null),_=ce();for(var L in v){var N=v[L],F=m(N)?N:N.get;_||(y[L]=new ii(h,F||se,se,Ac)),L in h||Bs(h,L,N)}})(a,u.computed),u.watch&&u.watch!==nt&&(function(h,v){for(var y in v){var _=v[y];if(r(_))for(var L=0;L<_.length;L++)Mo(h,y,_[L]);else Mo(h,y,_)}})(a,u.watch)}var Ac={lazy:!0};function Bs(a,u,p){var h=!ce();m(p)?(Kt.get=h?Mu(u):Hs(p),Kt.set=se):(Kt.get=p.get?h&&p.cache!==!1?Mu(u):Hs(p.get):se,Kt.set=p.set||se),Object.defineProperty(a,u,Kt)}function Mu(a){return function(){var u=this._computedWatchers&&this._computedWatchers[a];if(u)return u.dirty&&u.evaluate(),vr.target&&u.depend(),u.value}}function Hs(a){return function(){return a.call(this,this)}}function Mo(a,u,p,h){return A(p)&&(h=p,p=p.handler),typeof p=="string"&&(p=a[p]),a.$watch(u,p,h)}function oi(a,u){if(a){for(var p=Object.create(null),h=Me?Reflect.ownKeys(a):Object.keys(a),v=0;v<h.length;v++){var y=h[v];if(y!=="__ob__"){var _=a[y].from;if(_ in u._provided)p[y]=u._provided[_];else if("default"in a[y]){var L=a[y].default;p[y]=m(L)?L.call(u):L}}}return p}}var Kr=0;function Ma(a){var u=a.options;if(a.super){var p=Ma(a.super);if(p!==a.superOptions){a.superOptions=p;var h=(function(v){var y,_=v.options,L=v.sealedOptions;for(var N in _)_[N]!==L[N]&&(y||(y={}),y[N]=_[N]);return y})(a);h&&$(a.extendOptions,h),(u=a.options=fn(p,a.extendOptions)).name&&(u.components[u.name]=a)}}return u}function Pa(a,u,p,h,v){var y,_=this,L=v.options;ue(h,"_uid")?(y=Object.create(h))._original=h:(y=h,h=h._original);var N=c(L._compiled),F=!N;this.data=a,this.props=u,this.children=p,this.parent=h,this.listeners=a.on||e,this.injections=oi(L.inject,h),this.slots=function(){return _.$slots||ei(h,a.scopedSlots,_.$slots=Jn(p,h)),_.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ei(h,a.scopedSlots,this.slots())}}),N&&(this.$options=L,this.$slots=this.slots(),this.$scopedSlots=ei(h,a.scopedSlots,this.$slots)),L._scopeId?this._c=function(H,M,X,J){var ie=z(y,H,M,X,J,F);return ie&&!r(ie)&&(ie.fnScopeId=L._scopeId,ie.fnContext=h),ie}:this._c=function(H,M,X,J){return z(y,H,M,X,J,F)}}function Pu(a,u,p,h,v){var y=an(a);return y.fnContext=p,y.fnOptions=h,u.slot&&((y.data||(y.data={})).slot=u.slot),y}function Du(a,u){for(var p in u)a[B(p)]=u[p]}function Da(a){return a.name||a.__name||a._componentTag}As(Pa.prototype);var Ia={init:function(a,u){if(a.componentInstance&&!a.componentInstance._isDestroyed&&a.data.keepAlive){var p=a;Ia.prepatch(p,p)}else(a.componentInstance=(function(h,v){var y={_isComponent:!0,_parentVnode:h,parent:v},_=h.data.inlineTemplate;return o(_)&&(y.render=_.render,y.staticRenderFns=_.staticRenderFns),new h.componentOptions.Ctor(y)})(a,ti)).$mount(u?a.elm:void 0,u)},prepatch:function(a,u){var p=u.componentOptions;(function(h,v,y,_,L){var N=_.data.scopedSlots,F=h.$scopedSlots,H=!!(N&&!N.$stable||F!==e&&!F.$stable||N&&h.$scopedSlots.$key!==N.$key||!N&&h.$scopedSlots.$key),M=!!(L||h.$options._renderChildren||H),X=h.$vnode;h.$options._parentVnode=_,h.$vnode=_,h._vnode&&(h._vnode.parent=_),h.$options._renderChildren=L;var J=_.data.attrs||e;h._attrsProxy&&Co(h._attrsProxy,J,X.data&&X.data.attrs||e,h,"$attrs")&&(M=!0),h.$attrs=J,y=y||e;var ie=h.$options._parentListeners;if(h._listenersProxy&&Co(h._listenersProxy,y,ie||e,h,"$listeners"),h.$listeners=h.$options._parentListeners=y,xu(h,y,ie),v&&h.$options.props){Tt(!1);for(var ye=h._props,de=h.$options._propKeys||[],_e=0;_e<de.length;_e++){var we=de[_e],ze=h.$options.props;ye[we]=Fa(we,ze,v,h)}Tt(!0),h.$options.propsData=v}M&&(h.$slots=Jn(L,_.context),h.$forceUpdate())})(u.componentInstance=a.componentInstance,p.propsData,p.listeners,u,p.children)},insert:function(a){var u,p=a.context,h=a.componentInstance;h._isMounted||(h._isMounted=!0,Sr(h,"mounted")),a.data.keepAlive&&(p._isMounted?((u=h)._inactive=!1,Ca.push(u)):Ui(h,!0))},destroy:function(a){var u=a.componentInstance;u._isDestroyed||(a.data.keepAlive?$o(u,!0):u.$destroy())}},Us=Object.keys(Ia);function Gi(a,u,p,h,v){if(!i(a)){var y=p.$options._base;if(x(a)&&(a=y.extend(a)),typeof a=="function"){var _;if(i(a.cid)&&(a=(function(M,X){if(c(M.error)&&o(M.errorComp))return M.errorComp;if(o(M.resolved))return M.resolved;var J=Sa;if(J&&o(M.owners)&&M.owners.indexOf(J)===-1&&M.owners.push(J),c(M.loading)&&o(M.loadingComp))return M.loadingComp;if(J&&!o(M.owners)){var ie=M.owners=[J],ye=!0,de=null,_e=null;J.$on("hook:destroyed",(function(){return G(ie,J)}));var we=function(je){for(var te=0,le=ie.length;te<le;te++)ie[te].$forceUpdate();je&&(ie.length=0,de!==null&&(clearTimeout(de),de=null),_e!==null&&(clearTimeout(_e),_e=null))},ze=Ye((function(je){M.resolved=Bi(je,X),ye?ie.length=0:we(!0)})),Le=Ye((function(je){o(M.errorComp)&&(M.error=!0,we(!0))})),Te=M(ze,Le);return x(Te)&&(D(Te)?i(M.resolved)&&Te.then(ze,Le):D(Te.component)&&(Te.component.then(ze,Le),o(Te.error)&&(M.errorComp=Bi(Te.error,X)),o(Te.loading)&&(M.loadingComp=Bi(Te.loading,X),Te.delay===0?M.loading=!0:de=setTimeout((function(){de=null,i(M.resolved)&&i(M.error)&&(M.loading=!0,we(!1))}),Te.delay||200)),o(Te.timeout)&&(_e=setTimeout((function(){_e=null,i(M.resolved)&&Le(null)}),Te.timeout)))),ye=!1,M.loading?M.loadingComp:M.resolved}})(_=a,y),a===void 0))return(function(M,X,J,ie,ye){var de=Wt();return de.asyncFactory=M,de.asyncMeta={data:X,context:J,children:ie,tag:ye},de})(_,u,p,h,v);u=u||{},Ma(a),o(u.model)&&(function(M,X){var J=M.model&&M.model.prop||"value",ie=M.model&&M.model.event||"input";(X.attrs||(X.attrs={}))[J]=X.model.value;var ye=X.on||(X.on={}),de=ye[ie],_e=X.model.callback;o(de)?(r(de)?de.indexOf(_e)===-1:de!==_e)&&(ye[ie]=[_e].concat(de)):ye[ie]=_e})(a.options,u);var L=(function(M,X,J){var ie=X.options.props;if(!i(ie)){var ye={},de=M.attrs,_e=M.props;if(o(de)||o(_e))for(var we in ie){var ze=ge(we);$t(ye,_e,we,ze,!0)||$t(ye,de,we,ze,!1)}return ye}})(u,a);if(c(a.options.functional))return(function(M,X,J,ie,ye){var de=M.options,_e={},we=de.props;if(o(we))for(var ze in we)_e[ze]=Fa(ze,we,X||e);else o(J.attrs)&&Du(_e,J.attrs),o(J.props)&&Du(_e,J.props);var Le=new Pa(J,_e,ye,ie,M),Te=de.render.call(null,Le._c,Le);if(Te instanceof ht)return Pu(Te,J,Le.parent,de);if(r(Te)){for(var je=Ne(Te)||[],te=new Array(je.length),le=0;le<je.length;le++)te[le]=Pu(je[le],J,Le.parent,de);return te}})(a,L,u,p,h);var N=u.on;if(u.on=u.nativeOn,c(a.options.abstract)){var F=u.slot;u={},F&&(u.slot=F)}(function(M){for(var X=M.hook||(M.hook={}),J=0;J<Us.length;J++){var ie=Us[J],ye=X[ie],de=Ia[ie];ye===de||ye&&ye._merged||(X[ie]=ye?Iu(de,ye):de)}})(u);var H=Da(a.options)||v;return new ht("vue-component-".concat(a.cid).concat(H?"-".concat(H):""),u,void 0,void 0,void 0,p,{Ctor:a,propsData:L,listeners:N,tag:v,children:h},_)}}}function Iu(a,u){var p=function(h,v){a(h,v),u(h,v)};return p._merged=!0,p}var Fu=se,Er=Ee.optionMergeStrategies;function Ln(a,u,p){if(p===void 0&&(p=!0),!u)return a;for(var h,v,y,_=Me?Reflect.ownKeys(u):Object.keys(u),L=0;L<_.length;L++)(h=_[L])!=="__ob__"&&(v=a[h],y=u[h],p&&ue(a,h)?v!==y&&A(v)&&A(y)&&Ln(v,y):fr(a,h,y));return a}function Ks(a,u,p){return p?function(){var h=m(u)?u.call(p,p):u,v=m(a)?a.call(p,p):a;return h?Ln(h,v):v}:u?a?function(){return Ln(m(u)?u.call(this,this):u,m(a)?a.call(this,this):a)}:u:a}function Po(a,u){var p=u?a?a.concat(u):r(u)?u:[u]:a;return p&&(function(h){for(var v=[],y=0;y<h.length;y++)v.indexOf(h[y])===-1&&v.push(h[y]);return v})(p)}function Fr(a,u,p,h){var v=Object.create(a||null);return u?$(v,u):v}Er.data=function(a,u,p){return p?Ks(a,u,p):u&&typeof u!="function"?a:Ks(a,u)},We.forEach((function(a){Er[a]=Po})),lt.forEach((function(a){Er[a+"s"]=Fr})),Er.watch=function(a,u,p,h){if(a===nt&&(a=void 0),u===nt&&(u=void 0),!u)return Object.create(a||null);if(!a)return u;var v={};for(var y in $(v,a),u){var _=v[y],L=u[y];_&&!r(_)&&(_=[_]),v[y]=_?_.concat(L):r(L)?L:[L]}return v},Er.props=Er.methods=Er.inject=Er.computed=function(a,u,p,h){if(!a)return u;var v=Object.create(null);return $(v,a),u&&$(v,u),v},Er.provide=function(a,u){return a?function(){var p=Object.create(null);return Ln(p,m(a)?a.call(this):a),u&&Ln(p,m(u)?u.call(this):u,!1),p}:u};var zu=function(a,u){return u===void 0?a:u};function fn(a,u,p){if(m(u)&&(u=u.options),(function(N,F){var H=N.props;if(H){var M,X,J={};if(r(H))for(M=H.length;M--;)typeof(X=H[M])=="string"&&(J[B(X)]={type:null});else if(A(H))for(var ie in H)X=H[ie],J[B(ie)]=A(X)?X:{type:X};N.props=J}})(u),(function(N,F){var H=N.inject;if(H){var M=N.inject={};if(r(H))for(var X=0;X<H.length;X++)M[H[X]]={from:H[X]};else if(A(H))for(var J in H){var ie=H[J];M[J]=A(ie)?$({from:J},ie):{from:ie}}}})(u),(function(N){var F=N.directives;if(F)for(var H in F){var M=F[H];m(M)&&(F[H]={bind:M,update:M})}})(u),!u._base&&(u.extends&&(a=fn(a,u.extends,p)),u.mixins))for(var h=0,v=u.mixins.length;h<v;h++)a=fn(a,u.mixins[h],p);var y,_={};for(y in a)L(y);for(y in u)ue(a,y)||L(y);function L(N){var F=Er[N]||zu;_[N]=F(a[N],u[N],p,N)}return _}function Qi(a,u,p,h){if(typeof p=="string"){var v=a[u];if(ue(v,p))return v[p];var y=B(p);if(ue(v,y))return v[y];var _=ee(y);return ue(v,_)?v[_]:v[p]||v[y]||v[_]}}function Fa(a,u,p,h){var v=u[a],y=!ue(p,a),_=p[a],L=qu(Boolean,v.type);if(L>-1){if(y&&!ue(v,"default"))_=!1;else if(_===""||_===ge(a)){var N=qu(String,v.type);(N<0||L<N)&&(_=!0)}}if(_===void 0){_=(function(H,M,X){if(ue(M,"default")){var J=M.default;return H&&H.$options.propsData&&H.$options.propsData[X]===void 0&&H._props[X]!==void 0?H._props[X]:m(J)&&Do(M.type)!=="Function"?J.call(H):J}})(h,v,a);var F=br;Tt(!0),Yt(_),Tt(F)}return _}var Ru=/^\s*function (\w+)/;function Do(a){var u=a&&a.toString().match(Ru);return u?u[1]:""}function ju(a,u){return Do(a)===Do(u)}function qu(a,u){if(!r(u))return ju(u,a)?0:-1;for(var p=0,h=u.length;p<h;p++)if(ju(u[p],a))return p;return-1}function mt(a){this._init(a)}function ai(a){a.cid=0;var u=1;a.extend=function(p){p=p||{};var h=this,v=h.cid,y=p._Ctor||(p._Ctor={});if(y[v])return y[v];var _=Da(p)||Da(h.options),L=function(N){this._init(N)};return(L.prototype=Object.create(h.prototype)).constructor=L,L.cid=u++,L.options=fn(h.options,p),L.super=h,L.options.props&&(function(N){var F=N.options.props;for(var H in F)un(N.prototype,"_props",H)})(L),L.options.computed&&(function(N){var F=N.options.computed;for(var H in F)Bs(N.prototype,H,F[H])})(L),L.extend=h.extend,L.mixin=h.mixin,L.use=h.use,lt.forEach((function(N){L[N]=h[N]})),_&&(L.options.components[_]=L),L.superOptions=h.options,L.extendOptions=p,L.sealedOptions=$({},L.options),y[v]=L,L}}function si(a){return a&&(Da(a.Ctor.options)||a.tag)}function cn(a,u){return r(a)?a.indexOf(u)>-1:typeof a=="string"?a.split(",").indexOf(u)>-1:(p=a,S.call(p)==="[object RegExp]"&&a.test(u));var p}function za(a,u){var p=a.cache,h=a.keys,v=a._vnode,y=a.$vnode;for(var _ in p){var L=p[_];if(L){var N=L.name;N&&!u(N)&&Io(p,_,h,v)}}y.componentOptions.children=void 0}function Io(a,u,p,h){var v=a[u];!v||h&&v.tag===h.tag||v.componentInstance.$destroy(),a[u]=null,G(p,u)}(function(a){a.prototype._init=function(u){var p=this;p._uid=Kr++,p._isVue=!0,p.__v_skip=!0,p._scope=new To(!0),p._scope.parent=void 0,p._scope._vm=!0,u&&u._isComponent?(function(h,v){var y=h.$options=Object.create(h.constructor.options),_=v._parentVnode;y.parent=v.parent,y._parentVnode=_;var L=_.componentOptions;y.propsData=L.propsData,y._parentListeners=L.listeners,y._renderChildren=L.children,y._componentTag=L.tag,v.render&&(y.render=v.render,y.staticRenderFns=v.staticRenderFns)})(p,u):p.$options=fn(Ma(p.constructor),u||{},p),p._renderProxy=p,p._self=p,(function(h){var v=h.$options,y=v.parent;if(y&&!v.abstract){for(;y.$options.abstract&&y.$parent;)y=y.$parent;y.$children.push(h)}h.$parent=y,h.$root=y?y.$root:h,h.$children=[],h.$refs={},h._provided=y?y._provided:Object.create(null),h._watcher=null,h._inactive=null,h._directInactive=!1,h._isMounted=!1,h._isDestroyed=!1,h._isBeingDestroyed=!1})(p),(function(h){h._events=Object.create(null),h._hasHookEvent=!1;var v=h.$options._parentListeners;v&&xu(h,v)})(p),(function(h){h._vnode=null,h._staticTrees=null;var v=h.$options,y=h.$vnode=v._parentVnode,_=y&&y.context;h.$slots=Jn(v._renderChildren,_),h.$scopedSlots=y?ei(h.$parent,y.data.scopedSlots,h.$slots):e,h._c=function(N,F,H,M){return z(h,N,F,H,M,!1)},h.$createElement=function(N,F,H,M){return z(h,N,F,H,M,!0)};var L=y&&y.data;Lr(h,"$attrs",L&&L.attrs||e,null,!0),Lr(h,"$listeners",v._parentListeners||e,null,!0)})(p),Sr(p,"beforeCreate",void 0,!1),(function(h){var v=oi(h.$options.inject,h);v&&(Tt(!1),Object.keys(v).forEach((function(y){Lr(h,y,v[y])})),Tt(!0))})(p),Ws(p),(function(h){var v=h.$options.provide;if(v){var y=m(v)?v.call(h):v;if(!x(y))return;for(var _=Cu(h),L=Me?Reflect.ownKeys(y):Object.keys(y),N=0;N<L.length;N++){var F=L[N];Object.defineProperty(_,F,Object.getOwnPropertyDescriptor(y,F))}}})(p),Sr(p,"created"),p.$options.el&&p.$mount(p.$options.el)}})(mt),(function(a){var u={get:function(){return this._data}},p={get:function(){return this._props}};Object.defineProperty(a.prototype,"$data",u),Object.defineProperty(a.prototype,"$props",p),a.prototype.$set=fr,a.prototype.$delete=_o,a.prototype.$watch=function(h,v,y){var _=this;if(A(v))return Mo(_,h,v,y);(y=y||{}).user=!0;var L=new ii(_,h,v,y);if(y.immediate){var N='callback for immediate watcher "'.concat(L.expression,'"');ur(),Ur(v,_,[L.value],_,N),Ot()}return function(){L.teardown()}}})(mt),(function(a){var u=/^hook:/;a.prototype.$on=function(p,h){var v=this;if(r(p))for(var y=0,_=p.length;y<_;y++)v.$on(p[y],h);else(v._events[p]||(v._events[p]=[])).push(h),u.test(p)&&(v._hasHookEvent=!0);return v},a.prototype.$once=function(p,h){var v=this;function y(){v.$off(p,y),h.apply(v,arguments)}return y.fn=h,v.$on(p,y),v},a.prototype.$off=function(p,h){var v=this;if(!arguments.length)return v._events=Object.create(null),v;if(r(p)){for(var y=0,_=p.length;y<_;y++)v.$off(p[y],h);return v}var L,N=v._events[p];if(!N)return v;if(!h)return v._events[p]=null,v;for(var F=N.length;F--;)if((L=N[F])===h||L.fn===h){N.splice(F,1);break}return v},a.prototype.$emit=function(p){var h=this,v=h._events[p];if(v){v=v.length>1?pe(v):v;for(var y=pe(arguments,1),_='event handler for "'.concat(p,'"'),L=0,N=v.length;L<N;L++)Ur(v[L],h,y,h,_)}return h}})(mt),(function(a){a.prototype._update=function(u,p){var h=this,v=h.$el,y=h._vnode,_=Ms(h);h._vnode=u,h.$el=y?h.__patch__(y,u):h.__patch__(h.$el,u,p,!1),_(),v&&(v.__vue__=null),h.$el&&(h.$el.__vue__=h);for(var L=h;L&&L.$vnode&&L.$parent&&L.$vnode===L.$parent._vnode;)L.$parent.$el=L.$el,L=L.$parent},a.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},a.prototype.$destroy=function(){var u=this;if(!u._isBeingDestroyed){Sr(u,"beforeDestroy"),u._isBeingDestroyed=!0;var p=u.$parent;!p||p._isBeingDestroyed||u.$options.abstract||G(p.$children,u),u._scope.stop(),u._data.__ob__&&u._data.__ob__.vmCount--,u._isDestroyed=!0,u.__patch__(u._vnode,null),Sr(u,"destroyed"),u.$off(),u.$el&&(u.$el.__vue__=null),u.$vnode&&(u.$vnode.parent=null)}}})(mt),(function(a){As(a.prototype),a.prototype.$nextTick=function(u){return Ea(u,this)},a.prototype._render=function(){var u=this,p=u.$options,h=p.render,v=p._parentVnode;v&&u._isMounted&&(u.$scopedSlots=ei(u.$parent,v.data.scopedSlots,u.$slots,u.$scopedSlots),u._slotsProxy&&bu(u._slotsProxy,u.$scopedSlots)),u.$vnode=v;var y,_=Fe,L=Sa;try{Be(u),Sa=u,y=h.call(u._renderProxy,u.$createElement)}catch(N){$n(N,u,"render"),y=u._vnode}finally{Sa=L,Be(_)}return r(y)&&y.length===1&&(y=y[0]),y instanceof ht||(y=Wt()),y.parent=v,y}})(mt);var Vs=[String,RegExp,Array],Gs={name:"keep-alive",abstract:!0,props:{include:Vs,exclude:Vs,max:[String,Number]},methods:{cacheVNode:function(){var a=this,u=a.cache,p=a.keys,h=a.vnodeToCache,v=a.keyToCache;if(h){var y=h.tag,_=h.componentInstance,L=h.componentOptions;u[v]={name:si(L),tag:y,componentInstance:_},p.push(v),this.max&&p.length>parseInt(this.max)&&Io(u,p[0],p,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var a in this.cache)Io(this.cache,a,this.keys)},mounted:function(){var a=this;this.cacheVNode(),this.$watch("include",(function(u){za(a,(function(p){return cn(u,p)}))})),this.$watch("exclude",(function(u){za(a,(function(p){return!cn(u,p)}))}))},updated:function(){this.cacheVNode()},render:function(){var a=this.$slots.default,u=Hi(a),p=u&&u.componentOptions;if(p){var h=si(p),v=this.include,y=this.exclude;if(v&&(!h||!cn(v,h))||y&&h&&cn(y,h))return u;var _=this.cache,L=this.keys,N=u.key==null?p.Ctor.cid+(p.tag?"::".concat(p.tag):""):u.key;_[N]?(u.componentInstance=_[N].componentInstance,G(L,N),L.push(N)):(this.vnodeToCache=u,this.keyToCache=N),u.data.keepAlive=!0}return u||a&&a[0]}},li={KeepAlive:Gs};(function(a){var u={get:function(){return Ee}};Object.defineProperty(a,"config",u),a.util={warn:Fu,extend:$,mergeOptions:fn,defineReactive:Lr},a.set=fr,a.delete=_o,a.nextTick=Ea,a.observable=function(p){return Yt(p),p},a.options=Object.create(null),lt.forEach((function(p){a.options[p+"s"]=Object.create(null)})),a.options._base=a,$(a.options.components,li),(function(p){p.use=function(h){var v=this._installedPlugins||(this._installedPlugins=[]);if(v.indexOf(h)>-1)return this;var y=pe(arguments,1);return y.unshift(this),m(h.install)?h.install.apply(h,y):m(h)&&h.apply(null,y),v.push(h),this}})(a),(function(p){p.mixin=function(h){return this.options=fn(this.options,h),this}})(a),ai(a),(function(p){lt.forEach((function(h){p[h]=function(v,y){return y?(h==="component"&&A(y)&&(y.name=y.name||v,y=this.options._base.extend(y)),h==="directive"&&m(y)&&(y={bind:y,update:y}),this.options[h+"s"][v]=y,y):this.options[h+"s"][v]}}))})(a)})(mt),Object.defineProperty(mt.prototype,"$isServer",{get:ce}),Object.defineProperty(mt.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(mt,"FunctionalRenderContext",{value:Pa}),mt.version=js;var ui=I("style,class"),or=I("input,textarea,option,select,progress"),pn=function(a,u,p){return p==="value"&&or(a)&&u!=="button"||p==="selected"&&a==="option"||p==="checked"&&a==="input"||p==="muted"&&a==="video"},dn=I("contenteditable,draggable,spellcheck"),Ra=I("events,caret,typing,plaintext-only"),Oc=function(a,u){return ci(u)||u==="false"?"false":a==="contenteditable"&&Ra(u)?u:"true"},Wu=I("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),fi="http://www.w3.org/1999/xlink",ja=function(a){return a.charAt(5)===":"&&a.slice(0,5)==="xlink"},qa=function(a){return ja(a)?a.slice(6,a.length):""},ci=function(a){return a==null||a===!1};function Nc(a){for(var u=a.data,p=a,h=a;o(h.componentInstance);)(h=h.componentInstance._vnode)&&h.data&&(u=Wa(h.data,u));for(;o(p=p.parent);)p&&p.data&&(u=Wa(u,p.data));return(function(v,y){return o(v)||o(y)?Ba(v,Fo(y)):""})(u.staticClass,u.class)}function Wa(a,u){return{staticClass:Ba(a.staticClass,u.staticClass),class:o(a.class)?[a.class,u.class]:u.class}}function Ba(a,u){return a?u?a+" "+u:a:u||""}function Fo(a){return Array.isArray(a)?(function(u){for(var p,h="",v=0,y=u.length;v<y;v++)o(p=Fo(u[v]))&&p!==""&&(h&&(h+=" "),h+=p);return h})(a):x(a)?(function(u){var p="";for(var h in u)u[h]&&(p&&(p+=" "),p+=h);return p})(a):typeof a=="string"?a:""}var Qs={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Xi=I("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Yi=I("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ha=function(a){return Xi(a)||Yi(a)};function zo(a){return Yi(a)?"svg":a==="math"?"math":void 0}var Ua=Object.create(null),Xs=I("text,number,password,search,email,tel,url");function Ys(a){if(typeof a=="string"){var u=document.querySelector(a);return u||document.createElement("div")}return a}var Zs=Object.freeze({__proto__:null,createElement:function(a,u){var p=document.createElement(a);return a!=="select"||u.data&&u.data.attrs&&u.data.attrs.multiple!==void 0&&p.setAttribute("multiple","multiple"),p},createElementNS:function(a,u){return document.createElementNS(Qs[a],u)},createTextNode:function(a){return document.createTextNode(a)},createComment:function(a){return document.createComment(a)},insertBefore:function(a,u,p){a.insertBefore(u,p)},removeChild:function(a,u){a.removeChild(u)},appendChild:function(a,u){a.appendChild(u)},parentNode:function(a){return a.parentNode},nextSibling:function(a){return a.nextSibling},tagName:function(a){return a.tagName},setTextContent:function(a,u){a.textContent=u},setStyleScope:function(a,u){a.setAttribute(u,"")}}),Js={create:function(a,u){zr(u)},update:function(a,u){a.data.ref!==u.data.ref&&(zr(a,!0),zr(u))},destroy:function(a){zr(a,!0)}};function zr(a,u){var p=a.data.ref;if(o(p)){var h=a.context,v=a.componentInstance||a.elm,y=u?null:v,_=u?void 0:v;if(m(p))Ur(p,h,[y],h,"template ref function");else{var L=a.data.refInFor,N=typeof p=="string"||typeof p=="number",F=pt(p),H=h.$refs;if(N||F){if(L){var M=N?H[p]:p.value;u?r(M)&&G(M,v):r(M)?M.includes(v)||M.push(v):N?(H[p]=[v],Zi(h,p,H[p])):p.value=[v]}else if(N){if(u&&H[p]!==v)return;H[p]=_,Zi(h,p,y)}else if(F){if(u&&p.value!==v)return;p.value=y}}}}}function Zi(a,u,p){var h=a._setupState;h&&ue(h,u)&&(pt(h[u])?h[u].value=p:h[u]=p)}var An=new ht("",{},[]),On=["create","activate","update","remove","destroy"];function Nn(a,u){return a.key===u.key&&a.asyncFactory===u.asyncFactory&&(a.tag===u.tag&&a.isComment===u.isComment&&o(a.data)===o(u.data)&&(function(p,h){if(p.tag!=="input")return!0;var v,y=o(v=p.data)&&o(v=v.attrs)&&v.type,_=o(v=h.data)&&o(v=v.attrs)&&v.type;return y===_||Xs(y)&&Xs(_)})(a,u)||c(a.isAsyncPlaceholder)&&i(u.asyncFactory.error))}function Ro(a,u,p){var h,v,y={};for(h=u;h<=p;++h)o(v=a[h].key)&&(y[v]=h);return y}var Bu={create:hn,update:hn,destroy:function(a){hn(a,An)}};function hn(a,u){(a.data.directives||u.data.directives)&&(function(p,h){var v,y,_,L=p===An,N=h===An,F=En(p.data.directives,p.context),H=En(h.data.directives,h.context),M=[],X=[];for(v in H)y=F[v],_=H[v],y?(_.oldValue=y.value,_.oldArg=y.arg,Vr(_,"update",h,p),_.def&&_.def.componentUpdated&&X.push(_)):(Vr(_,"bind",h,p),_.def&&_.def.inserted&&M.push(_));if(M.length){var J=function(){for(var ie=0;ie<M.length;ie++)Vr(M[ie],"inserted",h,p)};L?xr(h,"insert",J):J()}if(X.length&&xr(h,"postpatch",(function(){for(var ie=0;ie<X.length;ie++)Vr(X[ie],"componentUpdated",h,p)})),!L)for(v in F)H[v]||Vr(F[v],"unbind",p,p,N)})(a,u)}var jo=Object.create(null);function En(a,u){var p,h,v=Object.create(null);if(!a)return v;for(p=0;p<a.length;p++){if((h=a[p]).modifiers||(h.modifiers=jo),v[qo(h)]=h,u._setupState&&u._setupState.__sfc){var y=h.def||Qi(u,"_setupState","v-"+h.name);h.def=typeof y=="function"?{bind:y,update:y}:y}h.def=h.def||Qi(u.$options,"directives",h.name)}return v}function qo(a){return a.rawName||"".concat(a.name,".").concat(Object.keys(a.modifiers||{}).join("."))}function Vr(a,u,p,h,v){var y=a.def&&a.def[u];if(y)try{y(p.elm,a,p,h,v)}catch(_){$n(_,p.context,"directive ".concat(a.name," ").concat(u," hook"))}}var Hu=[Js,Bu];function el(a,u){var p=u.componentOptions;if(!(o(p)&&p.Ctor.options.inheritAttrs===!1||i(a.data.attrs)&&i(u.data.attrs))){var h,v,y=u.elm,_=a.data.attrs||{},L=u.data.attrs||{};for(h in(o(L.__ob__)||c(L._v_attr_proxy))&&(L=u.data.attrs=$({},L)),L)v=L[h],_[h]!==v&&tl(y,h,v,u.data.pre);for(h in(At||kt)&&L.value!==_.value&&tl(y,"value",L.value),_)i(L[h])&&(ja(h)?y.removeAttributeNS(fi,qa(h)):dn(h)||y.removeAttribute(h))}}function tl(a,u,p,h){h||a.tagName.indexOf("-")>-1?Uu(a,u,p):Wu(u)?ci(p)?a.removeAttribute(u):(p=u==="allowfullscreen"&&a.tagName==="EMBED"?"true":u,a.setAttribute(u,p)):dn(u)?a.setAttribute(u,Oc(u,p)):ja(u)?ci(p)?a.removeAttributeNS(fi,qa(u)):a.setAttributeNS(fi,u,p):Uu(a,u,p)}function Uu(a,u,p){if(ci(p))a.removeAttribute(u);else{if(At&&!Ze&&a.tagName==="TEXTAREA"&&u==="placeholder"&&p!==""&&!a.__ieph){var h=function(v){v.stopImmediatePropagation(),a.removeEventListener("input",h)};a.addEventListener("input",h),a.__ieph=!0}a.setAttribute(u,p)}}var pi={create:el,update:el};function Mn(a,u){var p=u.elm,h=u.data,v=a.data;if(!(i(h.staticClass)&&i(h.class)&&(i(v)||i(v.staticClass)&&i(v.class)))){var y=Nc(u),_=p._transitionClasses;o(_)&&(y=Ba(y,Fo(_))),y!==p._prevClass&&(p.setAttribute("class",y),p._prevClass=y)}}var rl,Ku,Ka,Pn,Va,nl,hr={create:Mn,update:Mn},zt=/[\w).+\-_$\]]/;function Bt(a){var u,p,h,v,y,_=!1,L=!1,N=!1,F=!1,H=0,M=0,X=0,J=0;for(h=0;h<a.length;h++)if(p=u,u=a.charCodeAt(h),_)u===39&&p!==92&&(_=!1);else if(L)u===34&&p!==92&&(L=!1);else if(N)u===96&&p!==92&&(N=!1);else if(F)u===47&&p!==92&&(F=!1);else if(u!==124||a.charCodeAt(h+1)===124||a.charCodeAt(h-1)===124||H||M||X){switch(u){case 34:L=!0;break;case 39:_=!0;break;case 96:N=!0;break;case 40:X++;break;case 41:X--;break;case 91:M++;break;case 93:M--;break;case 123:H++;break;case 125:H--}if(u===47){for(var ie=h-1,ye=void 0;ie>=0&&(ye=a.charAt(ie))===" ";ie--);ye&&zt.test(ye)||(F=!0)}}else v===void 0?(J=h+1,v=a.slice(0,h).trim()):de();function de(){(y||(y=[])).push(a.slice(J,h).trim()),J=h+1}if(v===void 0?v=a.slice(0,h).trim():J!==0&&de(),y)for(h=0;h<y.length;h++)v=Rt(v,y[h]);return v}function Rt(a,u){var p=u.indexOf("(");if(p<0)return'_f("'.concat(u,'")(').concat(a,")");var h=u.slice(0,p),v=u.slice(p+1);return'_f("'.concat(h,'")(').concat(a).concat(v!==")"?","+v:v)}function Ji(a,u){}function Wo(a,u){return a?a.map((function(p){return p[u]})).filter((function(p){return p})):[]}function Gr(a,u,p,h,v){(a.props||(a.props=[])).push(di({name:u,value:p,dynamic:v},h)),a.plain=!1}function il(a,u,p,h,v){(v?a.dynamicAttrs||(a.dynamicAttrs=[]):a.attrs||(a.attrs=[])).push(di({name:u,value:p,dynamic:v},h)),a.plain=!1}function ol(a,u,p,h){a.attrsMap[u]=p,a.attrsList.push(di({name:u,value:p},h))}function Ec(a,u,p,h,v,y,_,L){(a.directives||(a.directives=[])).push(di({name:u,rawName:p,value:h,arg:v,isDynamicArg:y,modifiers:_},L)),a.plain=!1}function Bo(a,u,p){return p?"_p(".concat(u,',"').concat(a,'")'):a+u}function Qr(a,u,p,h,v,y,_,L){var N;(h=h||e).right?L?u="(".concat(u,")==='click'?'contextmenu':(").concat(u,")"):u==="click"&&(u="contextmenu",delete h.right):h.middle&&(L?u="(".concat(u,")==='click'?'mouseup':(").concat(u,")"):u==="click"&&(u="mouseup")),h.capture&&(delete h.capture,u=Bo("!",u,L)),h.once&&(delete h.once,u=Bo("~",u,L)),h.passive&&(delete h.passive,u=Bo("&",u,L)),h.native?(delete h.native,N=a.nativeEvents||(a.nativeEvents={})):N=a.events||(a.events={});var F=di({value:p.trim(),dynamic:L},_);h!==e&&(F.modifiers=h);var H=N[u];Array.isArray(H)?v?H.unshift(F):H.push(F):N[u]=H?v?[F,H]:[H,F]:F,a.plain=!1}function gr(a,u,p){var h=Dt(a,":"+u)||Dt(a,"v-bind:"+u);if(h!=null)return Bt(h);if(p!==!1){var v=Dt(a,u);if(v!=null)return JSON.stringify(v)}}function Dt(a,u,p){var h;if((h=a.attrsMap[u])!=null){for(var v=a.attrsList,y=0,_=v.length;y<_;y++)if(v[y].name===u){v.splice(y,1);break}}return p&&delete a.attrsMap[u],h}function Ga(a,u){for(var p=a.attrsList,h=0,v=p.length;h<v;h++){var y=p[h];if(u.test(y.name))return p.splice(h,1),y}}function di(a,u){return u&&(u.start!=null&&(a.start=u.start),u.end!=null&&(a.end=u.end)),a}function al(a,u,p){var h=p||{},v=h.number,y="$$v",_=y;h.trim&&(_="(typeof ".concat(y," === 'string'")+"? ".concat(y,".trim()")+": ".concat(y,")")),v&&(_="_n(".concat(_,")"));var L=gn(u,_);a.model={value:"(".concat(u,")"),expression:JSON.stringify(u),callback:"function (".concat(y,") {").concat(L,"}")}}function gn(a,u){var p=(function(h){if(h=h.trim(),rl=h.length,h.indexOf("[")<0||h.lastIndexOf("]")<rl-1)return(Pn=h.lastIndexOf("."))>-1?{exp:h.slice(0,Pn),key:'"'+h.slice(Pn+1)+'"'}:{exp:h,key:null};for(Ku=h,Pn=Va=nl=0;!Qa();)eo(Ka=Ho())?Uo(Ka):Ka===91&&Mc(Ka);return{exp:h.slice(0,Va),key:h.slice(Va+1,nl)}})(a);return p.key===null?"".concat(a,"=").concat(u):"$set(".concat(p.exp,", ").concat(p.key,", ").concat(u,")")}function Ho(){return Ku.charCodeAt(++Pn)}function Qa(){return Pn>=rl}function eo(a){return a===34||a===39}function Mc(a){var u=1;for(Va=Pn;!Qa();)if(eo(a=Ho()))Uo(a);else if(a===91&&u++,a===93&&u--,u===0){nl=Pn;break}}function Uo(a){for(var u=a;!Qa()&&(a=Ho())!==u;);}var Cr,Ko="__r",sl="__c";function Vu(a,u,p){var h=Cr;return function v(){u.apply(null,arguments)!==null&&Mr(a,v,p,h)}}var Tr=Fs&&!(qe&&Number(qe[1])<=53);function st(a,u,p,h){if(Tr){var v=wu,y=u;u=y._wrapper=function(_){if(_.target===_.currentTarget||_.timeStamp>=v||_.timeStamp<=0||_.target.ownerDocument!==document)return y.apply(this,arguments)}}Cr.addEventListener(a,u,oe?{capture:p,passive:h}:p)}function Mr(a,u,p,h){(h||Cr).removeEventListener(a,u._wrapper||u,p)}function Xr(a,u){if(!i(a.data.on)||!i(u.data.on)){var p=u.data.on||{},h=a.data.on||{};Cr=u.elm||a.elm,(function(v){if(o(v[Ko])){var y=At?"change":"input";v[y]=[].concat(v[Ko],v[y]||[]),delete v[Ko]}o(v[sl])&&(v.change=[].concat(v[sl],v.change||[]),delete v[sl])})(p),Ri(p,h,st,Mr,Vu,u.context),Cr=void 0}}var Yr,Gu={create:Xr,update:Xr,destroy:function(a){return Xr(a,An)}};function Xa(a,u){if(!i(a.data.domProps)||!i(u.data.domProps)){var p,h,v=u.elm,y=a.data.domProps||{},_=u.data.domProps||{};for(p in(o(_.__ob__)||c(_._v_attr_proxy))&&(_=u.data.domProps=$({},_)),y)p in _||(v[p]="");for(p in _){if(h=_[p],p==="textContent"||p==="innerHTML"){if(u.children&&(u.children.length=0),h===y[p])continue;v.childNodes.length===1&&v.removeChild(v.childNodes[0])}if(p==="value"&&v.tagName!=="PROGRESS"){v._value=h;var L=i(h)?"":String(h);Qu(v,L)&&(v.value=L)}else if(p==="innerHTML"&&Yi(v.tagName)&&i(v.innerHTML)){(Yr=Yr||document.createElement("div")).innerHTML="<svg>".concat(h,"</svg>");for(var N=Yr.firstChild;v.firstChild;)v.removeChild(v.firstChild);for(;N.firstChild;)v.appendChild(N.firstChild)}else if(h!==y[p])try{v[p]=h}catch{}}}}function Qu(a,u){return!a.composing&&(a.tagName==="OPTION"||(function(p,h){var v=!0;try{v=document.activeElement!==p}catch{}return v&&p.value!==h})(a,u)||(function(p,h){var v=p.value,y=p._vModifiers;if(o(y)){if(y.number)return V(v)!==V(h);if(y.trim)return v.trim()!==h.trim()}return v!==h})(a,u))}var Pc={create:Xa,update:Xa},Ya=ae((function(a){var u={},p=/:(.+)/;return a.split(/;(?![^(]*\))/g).forEach((function(h){if(h){var v=h.split(p);v.length>1&&(u[v[0].trim()]=v[1].trim())}})),u}));function hi(a){var u=ll(a.style);return a.staticStyle?$(a.staticStyle,u):u}function ll(a){return Array.isArray(a)?ve(a):typeof a=="string"?Ya(a):a}var to,Dn=/^--/,ul=/\s*!important$/,fl=function(a,u,p){if(Dn.test(u))a.style.setProperty(u,p);else if(ul.test(p))a.style.setProperty(ge(u),p.replace(ul,""),"important");else{var h=Za(u);if(Array.isArray(p))for(var v=0,y=p.length;v<y;v++)a.style[h]=p[v];else a.style[h]=p}},Xu=["Webkit","Moz","ms"],Za=ae((function(a){if(to=to||document.createElement("div").style,(a=B(a))!=="filter"&&a in to)return a;for(var u=a.charAt(0).toUpperCase()+a.slice(1),p=0;p<Xu.length;p++){var h=Xu[p]+u;if(h in to)return h}}));function Ja(a,u){var p=u.data,h=a.data;if(!(i(p.staticStyle)&&i(p.style)&&i(h.staticStyle)&&i(h.style))){var v,y,_=u.elm,L=h.staticStyle,N=h.normalizedStyle||h.style||{},F=L||N,H=ll(u.data.style)||{};u.data.normalizedStyle=o(H.__ob__)?$({},H):H;var M=(function(X,J){var ie,ye={};if(J)for(var de=X;de.componentInstance;)(de=de.componentInstance._vnode)&&de.data&&(ie=hi(de.data))&&$(ye,ie);(ie=hi(X.data))&&$(ye,ie);for(var _e=X;_e=_e.parent;)_e.data&&(ie=hi(_e.data))&&$(ye,ie);return ye})(u,!0);for(y in F)i(M[y])&&fl(_,y,"");for(y in M)v=M[y],fl(_,y,v??"")}}var Yu={create:Ja,update:Ja},Zu=/\s+/;function cl(a,u){if(u&&(u=u.trim()))if(a.classList)u.indexOf(" ")>-1?u.split(Zu).forEach((function(h){return a.classList.add(h)})):a.classList.add(u);else{var p=" ".concat(a.getAttribute("class")||""," ");p.indexOf(" "+u+" ")<0&&a.setAttribute("class",(p+u).trim())}}function Ju(a,u){if(u&&(u=u.trim()))if(a.classList)u.indexOf(" ")>-1?u.split(Zu).forEach((function(v){return a.classList.remove(v)})):a.classList.remove(u),a.classList.length||a.removeAttribute("class");else{for(var p=" ".concat(a.getAttribute("class")||""," "),h=" "+u+" ";p.indexOf(h)>=0;)p=p.replace(h," ");(p=p.trim())?a.setAttribute("class",p):a.removeAttribute("class")}}function ef(a){if(a){if(typeof a=="object"){var u={};return a.css!==!1&&$(u,Vo(a.name||"v")),$(u,a),u}return typeof a=="string"?Vo(a):void 0}}var Vo=ae((function(a){return{enterClass:"".concat(a,"-enter"),enterToClass:"".concat(a,"-enter-to"),enterActiveClass:"".concat(a,"-enter-active"),leaveClass:"".concat(a,"-leave"),leaveToClass:"".concat(a,"-leave-to"),leaveActiveClass:"".concat(a,"-leave-active")}})),pl=ut&&!Ze,ro="transition",dl="animation",Go="transition",mn="transitionend",Qo="animation",Xo="animationend";pl&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Go="WebkitTransition",mn="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(Qo="WebkitAnimation",Xo="webkitAnimationEnd"));var hl=ut?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(a){return a()};function es(a){hl((function(){hl(a)}))}function In(a,u){var p=a._transitionClasses||(a._transitionClasses=[]);p.indexOf(u)<0&&(p.push(u),cl(a,u))}function vn(a,u){a._transitionClasses&&G(a._transitionClasses,u),Ju(a,u)}function gl(a,u,p){var h=Yo(a,u),v=h.type,y=h.timeout,_=h.propCount;if(!v)return p();var L=v===ro?mn:Xo,N=0,F=function(){a.removeEventListener(L,H),p()},H=function(M){M.target===a&&++N>=_&&F()};setTimeout((function(){N<_&&F()}),y+1),a.addEventListener(L,H)}var Vt=/\b(transform|all)(,|$)/;function Yo(a,u){var p,h=window.getComputedStyle(a),v=(h[Go+"Delay"]||"").split(", "),y=(h[Go+"Duration"]||"").split(", "),_=ml(v,y),L=(h[Qo+"Delay"]||"").split(", "),N=(h[Qo+"Duration"]||"").split(", "),F=ml(L,N),H=0,M=0;return u===ro?_>0&&(p=ro,H=_,M=y.length):u===dl?F>0&&(p=dl,H=F,M=N.length):M=(p=(H=Math.max(_,F))>0?_>F?ro:dl:null)?p===ro?y.length:N.length:0,{type:p,timeout:H,propCount:M,hasTransform:p===ro&&Vt.test(h[Go+"Property"])}}function ml(a,u){for(;a.length<u.length;)a=a.concat(a);return Math.max.apply(null,u.map((function(p,h){return vl(p)+vl(a[h])})))}function vl(a){return 1e3*Number(a.slice(0,-1).replace(",","."))}function ts(a,u){var p=a.elm;o(p._leaveCb)&&(p._leaveCb.cancelled=!0,p._leaveCb());var h=ef(a.data.transition);if(!i(h)&&!o(p._enterCb)&&p.nodeType===1){for(var v=h.css,y=h.type,_=h.enterClass,L=h.enterToClass,N=h.enterActiveClass,F=h.appearClass,H=h.appearToClass,M=h.appearActiveClass,X=h.beforeEnter,J=h.enter,ie=h.afterEnter,ye=h.enterCancelled,de=h.beforeAppear,_e=h.appear,we=h.afterAppear,ze=h.appearCancelled,Le=h.duration,Te=ti,je=ti.$vnode;je&&je.parent;)Te=je.context,je=je.parent;var te=!Te._isMounted||!a.isRootInsert;if(!te||_e||_e===""){var le=te&&F?F:_,ke=te&&M?M:N,Se=te&&H?H:L,De=te&&de||X,ot=te&&m(_e)?_e:J,Xe=te&&we||ie,Je=te&&ze||ye,ft=V(x(Le)?Le.enter:Le),Ke=v!==!1&&!Ze,rt=rs(ot),vt=p._enterCb=Ye((function(){Ke&&(vn(p,Se),vn(p,ke)),vt.cancelled?(Ke&&vn(p,le),Je&&Je(p)):Xe&&Xe(p),p._enterCb=null}));a.data.show||xr(a,"insert",(function(){var _t=p.parentNode,ct=_t&&_t._pending&&_t._pending[a.key];ct&&ct.tag===a.tag&&ct.elm._leaveCb&&ct.elm._leaveCb(),ot&&ot(p,vt)})),De&&De(p),Ke&&(In(p,le),In(p,ke),es((function(){vn(p,le),vt.cancelled||(In(p,Se),rt||(Zo(ft)?setTimeout(vt,ft):gl(p,y,vt)))}))),a.data.show&&(u&&u(),ot&&ot(p,vt)),Ke||rt||vt()}}}function gi(a,u){var p=a.elm;o(p._enterCb)&&(p._enterCb.cancelled=!0,p._enterCb());var h=ef(a.data.transition);if(i(h)||p.nodeType!==1)return u();if(!o(p._leaveCb)){var v=h.css,y=h.type,_=h.leaveClass,L=h.leaveToClass,N=h.leaveActiveClass,F=h.beforeLeave,H=h.leave,M=h.afterLeave,X=h.leaveCancelled,J=h.delayLeave,ie=h.duration,ye=v!==!1&&!Ze,de=rs(H),_e=V(x(ie)?ie.leave:ie),we=p._leaveCb=Ye((function(){p.parentNode&&p.parentNode._pending&&(p.parentNode._pending[a.key]=null),ye&&(vn(p,L),vn(p,N)),we.cancelled?(ye&&vn(p,_),X&&X(p)):(u(),M&&M(p)),p._leaveCb=null}));J?J(ze):ze()}function ze(){we.cancelled||(!a.data.show&&p.parentNode&&((p.parentNode._pending||(p.parentNode._pending={}))[a.key]=a),F&&F(p),ye&&(In(p,_),In(p,N),es((function(){vn(p,_),we.cancelled||(In(p,L),de||(Zo(_e)?setTimeout(we,_e):gl(p,y,we)))}))),H&&H(p,we),ye||de||we())}}function Zo(a){return typeof a=="number"&&!isNaN(a)}function rs(a){if(i(a))return!1;var u=a.fns;return o(u)?rs(Array.isArray(u)?u[0]:u):(a._length||a.length)>1}function yl(a,u){u.data.show!==!0&&ts(u)}var tf=(function(a){var u,p,h={},v=a.modules,y=a.nodeOps;for(u=0;u<On.length;++u)for(h[On[u]]=[],p=0;p<v.length;++p)o(v[p][On[u]])&&h[On[u]].push(v[p][On[u]]);function _(te){var le=y.parentNode(te);o(le)&&y.removeChild(le,te)}function L(te,le,ke,Se,De,ot,Xe){if(o(te.elm)&&o(ot)&&(te=ot[Xe]=an(te)),te.isRootInsert=!De,!(function(rt,vt,_t,ct){var Gt=rt.data;if(o(Gt)){var ms=o(rt.componentInstance)&&Gt.keepAlive;if(o(Gt=Gt.hook)&&o(Gt=Gt.init)&&Gt(rt,!1),o(rt.componentInstance))return N(rt,vt),F(_t,rt.elm,ct),c(ms)&&(function(jn,Kl,Vl,qn){for(var Qt,$r=jn;$r.componentInstance;)if(o(Qt=($r=$r.componentInstance._vnode).data)&&o(Qt=Qt.transition)){for(Qt=0;Qt<h.activate.length;++Qt)h.activate[Qt](An,$r);Kl.push($r);break}F(Vl,jn.elm,qn)})(rt,vt,_t,ct),!0}})(te,le,ke,Se)){var Je=te.data,ft=te.children,Ke=te.tag;o(Ke)?(te.elm=te.ns?y.createElementNS(te.ns,Ke):y.createElement(Ke,te),J(te),H(te,ft,le),o(Je)&&X(te,le),F(ke,te.elm,Se)):c(te.isComment)?(te.elm=y.createComment(te.text),F(ke,te.elm,Se)):(te.elm=y.createTextNode(te.text),F(ke,te.elm,Se))}}function N(te,le){o(te.data.pendingInsert)&&(le.push.apply(le,te.data.pendingInsert),te.data.pendingInsert=null),te.elm=te.componentInstance.$el,M(te)?(X(te,le),J(te)):(zr(te),le.push(te))}function F(te,le,ke){o(te)&&(o(ke)?y.parentNode(ke)===te&&y.insertBefore(te,le,ke):y.appendChild(te,le))}function H(te,le,ke){if(r(le))for(var Se=0;Se<le.length;++Se)L(le[Se],ke,te.elm,null,!0,le,Se);else d(te.text)&&y.appendChild(te.elm,y.createTextNode(String(te.text)))}function M(te){for(;te.componentInstance;)te=te.componentInstance._vnode;return o(te.tag)}function X(te,le){for(var ke=0;ke<h.create.length;++ke)h.create[ke](An,te);o(u=te.data.hook)&&(o(u.create)&&u.create(An,te),o(u.insert)&&le.push(te))}function J(te){var le;if(o(le=te.fnScopeId))y.setStyleScope(te.elm,le);else for(var ke=te;ke;)o(le=ke.context)&&o(le=le.$options._scopeId)&&y.setStyleScope(te.elm,le),ke=ke.parent;o(le=ti)&&le!==te.context&&le!==te.fnContext&&o(le=le.$options._scopeId)&&y.setStyleScope(te.elm,le)}function ie(te,le,ke,Se,De,ot){for(;Se<=De;++Se)L(ke[Se],ot,te,le,!1,ke,Se)}function ye(te){var le,ke,Se=te.data;if(o(Se))for(o(le=Se.hook)&&o(le=le.destroy)&&le(te),le=0;le<h.destroy.length;++le)h.destroy[le](te);if(o(le=te.children))for(ke=0;ke<te.children.length;++ke)ye(te.children[ke])}function de(te,le,ke){for(;le<=ke;++le){var Se=te[le];o(Se)&&(o(Se.tag)?(_e(Se),ye(Se)):_(Se.elm))}}function _e(te,le){if(o(le)||o(te.data)){var ke,Se=h.remove.length+1;for(o(le)?le.listeners+=Se:le=(function(De,ot){function Xe(){--Xe.listeners==0&&_(De)}return Xe.listeners=ot,Xe})(te.elm,Se),o(ke=te.componentInstance)&&o(ke=ke._vnode)&&o(ke.data)&&_e(ke,le),ke=0;ke<h.remove.length;++ke)h.remove[ke](te,le);o(ke=te.data.hook)&&o(ke=ke.remove)?ke(te,le):le()}else _(te.elm)}function we(te,le,ke,Se){for(var De=ke;De<Se;De++){var ot=le[De];if(o(ot)&&Nn(te,ot))return De}}function ze(te,le,ke,Se,De,ot){if(te!==le){o(le.elm)&&o(Se)&&(le=Se[De]=an(le));var Xe=le.elm=te.elm;if(c(te.isAsyncPlaceholder))o(le.asyncFactory.resolved)?je(te.elm,le,ke):le.isAsyncPlaceholder=!0;else if(c(le.isStatic)&&c(te.isStatic)&&le.key===te.key&&(c(le.isCloned)||c(le.isOnce)))le.componentInstance=te.componentInstance;else{var Je,ft=le.data;o(ft)&&o(Je=ft.hook)&&o(Je=Je.prepatch)&&Je(te,le);var Ke=te.children,rt=le.children;if(o(ft)&&M(le)){for(Je=0;Je<h.update.length;++Je)h.update[Je](te,le);o(Je=ft.hook)&&o(Je=Je.update)&&Je(te,le)}i(le.text)?o(Ke)&&o(rt)?Ke!==rt&&(function(vt,_t,ct,Gt,ms){for(var jn,Kl,Vl,qn=0,Qt=0,$r=_t.length-1,Rr=_t[0],Wn=_t[$r],Bn=ct.length-1,Dr=ct[0],vs=ct[Bn],rp=!ms;qn<=$r&&Qt<=Bn;)i(Rr)?Rr=_t[++qn]:i(Wn)?Wn=_t[--$r]:Nn(Rr,Dr)?(ze(Rr,Dr,Gt,ct,Qt),Rr=_t[++qn],Dr=ct[++Qt]):Nn(Wn,vs)?(ze(Wn,vs,Gt,ct,Bn),Wn=_t[--$r],vs=ct[--Bn]):Nn(Rr,vs)?(ze(Rr,vs,Gt,ct,Bn),rp&&y.insertBefore(vt,Rr.elm,y.nextSibling(Wn.elm)),Rr=_t[++qn],vs=ct[--Bn]):Nn(Wn,Dr)?(ze(Wn,Dr,Gt,ct,Qt),rp&&y.insertBefore(vt,Wn.elm,Rr.elm),Wn=_t[--$r],Dr=ct[++Qt]):(i(jn)&&(jn=Ro(_t,qn,$r)),i(Kl=o(Dr.key)?jn[Dr.key]:we(Dr,_t,qn,$r))?L(Dr,Gt,vt,Rr.elm,!1,ct,Qt):Nn(Vl=_t[Kl],Dr)?(ze(Vl,Dr,Gt,ct,Qt),_t[Kl]=void 0,rp&&y.insertBefore(vt,Vl.elm,Rr.elm)):L(Dr,Gt,vt,Rr.elm,!1,ct,Qt),Dr=ct[++Qt]);qn>$r?ie(vt,i(ct[Bn+1])?null:ct[Bn+1].elm,ct,Qt,Bn,Gt):Qt>Bn&&de(_t,qn,$r)})(Xe,Ke,rt,ke,ot):o(rt)?(o(te.text)&&y.setTextContent(Xe,""),ie(Xe,null,rt,0,rt.length-1,ke)):o(Ke)?de(Ke,0,Ke.length-1):o(te.text)&&y.setTextContent(Xe,""):te.text!==le.text&&y.setTextContent(Xe,le.text),o(ft)&&o(Je=ft.hook)&&o(Je=Je.postpatch)&&Je(te,le)}}}function Le(te,le,ke){if(c(ke)&&o(te.parent))te.parent.data.pendingInsert=le;else for(var Se=0;Se<le.length;++Se)le[Se].data.hook.insert(le[Se])}var Te=I("attrs,class,staticClass,staticStyle,key");function je(te,le,ke,Se){var De,ot=le.tag,Xe=le.data,Je=le.children;if(Se=Se||Xe&&Xe.pre,le.elm=te,c(le.isComment)&&o(le.asyncFactory))return le.isAsyncPlaceholder=!0,!0;if(o(Xe)&&(o(De=Xe.hook)&&o(De=De.init)&&De(le,!0),o(De=le.componentInstance)))return N(le,ke),!0;if(o(ot)){if(o(Je))if(te.hasChildNodes())if(o(De=Xe)&&o(De=De.domProps)&&o(De=De.innerHTML)){if(De!==te.innerHTML)return!1}else{for(var ft=!0,Ke=te.firstChild,rt=0;rt<Je.length;rt++){if(!Ke||!je(Ke,Je[rt],ke,Se)){ft=!1;break}Ke=Ke.nextSibling}if(!ft||Ke)return!1}else H(le,Je,ke);if(o(Xe)){var vt=!1;for(var _t in Xe)if(!Te(_t)){vt=!0,X(le,ke);break}!vt&&Xe.class&&dr(Xe.class)}}else te.data!==le.text&&(te.data=le.text);return!0}return function(te,le,ke,Se){if(!i(le)){var De,ot=!1,Xe=[];if(i(te))ot=!0,L(le,Xe);else{var Je=o(te.nodeType);if(!Je&&Nn(te,le))ze(te,le,Xe,null,null,Se);else{if(Je){if(te.nodeType===1&&te.hasAttribute(wt)&&(te.removeAttribute(wt),ke=!0),c(ke)&&je(te,le,Xe))return Le(le,Xe,!0),te;De=te,te=new ht(y.tagName(De).toLowerCase(),{},[],void 0,De)}var ft=te.elm,Ke=y.parentNode(ft);if(L(le,Xe,ft._leaveCb?null:Ke,y.nextSibling(ft)),o(le.parent))for(var rt=le.parent,vt=M(le);rt;){for(var _t=0;_t<h.destroy.length;++_t)h.destroy[_t](rt);if(rt.elm=le.elm,vt){for(var ct=0;ct<h.create.length;++ct)h.create[ct](An,rt);var Gt=rt.data.hook.insert;if(Gt.merged)for(var ms=Gt.fns.slice(1),jn=0;jn<ms.length;jn++)ms[jn]()}else zr(rt);rt=rt.parent}o(Ke)?de([te],0,0):o(te.tag)&&ye(te)}}return Le(le,Xe,ot),le.elm}o(te)&&ye(te)}})({nodeOps:Zs,modules:[pi,hr,Gu,Pc,Yu,ut?{create:yl,activate:yl,remove:function(a,u){a.data.show!==!0?gi(a,u):u()}}:{}].concat(Hu)});Ze&&document.addEventListener("selectionchange",(function(){var a=document.activeElement;a&&a.vmodel&&ns(a,"input")}));var mi={inserted:function(a,u,p,h){p.tag==="select"?(h.elm&&!h.elm._vOptions?xr(p,"postpatch",(function(){mi.componentUpdated(a,u,p)})):bl(a,u,p.context),a._vOptions=[].map.call(a.options,Fn)):(p.tag==="textarea"||Xs(a.type))&&(a._vModifiers=u.modifiers,u.modifiers.lazy||(a.addEventListener("compositionstart",Dc),a.addEventListener("compositionend",vi),a.addEventListener("change",vi),Ze&&(a.vmodel=!0)))},componentUpdated:function(a,u,p){if(p.tag==="select"){bl(a,u,p.context);var h=a._vOptions,v=a._vOptions=[].map.call(a.options,Fn);v.some((function(y,_){return!he(y,h[_])}))&&(a.multiple?u.value.some((function(y){return xl(y,v)})):u.value!==u.oldValue&&xl(u.value,v))&&ns(a,"change")}}};function bl(a,u,p){Jo(a,u),(At||kt)&&setTimeout((function(){Jo(a,u)}),0)}function Jo(a,u,p){var h=u.value,v=a.multiple;if(!v||Array.isArray(h)){for(var y,_,L=0,N=a.options.length;L<N;L++)if(_=a.options[L],v)y=Ae(h,Fn(_))>-1,_.selected!==y&&(_.selected=y);else if(he(Fn(_),h))return void(a.selectedIndex!==L&&(a.selectedIndex=L));v||(a.selectedIndex=-1)}}function xl(a,u){return u.every((function(p){return!he(p,a)}))}function Fn(a){return"_value"in a?a._value:a.value}function Dc(a){a.target.composing=!0}function vi(a){a.target.composing&&(a.target.composing=!1,ns(a.target,"input"))}function ns(a,u){var p=document.createEvent("HTMLEvents");p.initEvent(u,!0,!0),a.dispatchEvent(p)}function is(a){return!a.componentInstance||a.data&&a.data.transition?a:is(a.componentInstance._vnode)}var rf={bind:function(a,u,p){var h=u.value,v=(p=is(p)).data&&p.data.transition,y=a.__vOriginalDisplay=a.style.display==="none"?"":a.style.display;h&&v?(p.data.show=!0,ts(p,(function(){a.style.display=y}))):a.style.display=h?y:"none"},update:function(a,u,p){var h=u.value;!h!=!u.oldValue&&((p=is(p)).data&&p.data.transition?(p.data.show=!0,h?ts(p,(function(){a.style.display=a.__vOriginalDisplay})):gi(p,(function(){a.style.display="none"}))):a.style.display=h?a.__vOriginalDisplay:"none")},unbind:function(a,u,p,h,v){v||(a.style.display=a.__vOriginalDisplay)}},ea={model:mi,show:rf},no={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function yi(a){var u=a&&a.componentOptions;return u&&u.Ctor.options.abstract?yi(Hi(u.children)):a}function io(a){var u={},p=a.$options;for(var h in p.propsData)u[h]=a[h];var v=p._parentListeners;for(var h in v)u[B(h)]=v[h];return u}function wl(a,u){if(/\d-keep-alive$/.test(u.tag))return a("keep-alive",{props:u.componentOptions.propsData})}var Ic=function(a){return a.tag||Wi(a)},nf=function(a){return a.name==="show"},zn={name:"transition",props:no,abstract:!0,render:function(a){var u=this,p=this.$slots.default;if(p&&(p=p.filter(Ic)).length){var h=this.mode,v=p[0];if((function(J){for(;J=J.parent;)if(J.data.transition)return!0})(this.$vnode))return v;var y=yi(v);if(!y)return v;if(this._leaving)return wl(a,v);var _="__transition-".concat(this._uid,"-");y.key=y.key==null?y.isComment?_+"comment":_+y.tag:d(y.key)?String(y.key).indexOf(_)===0?y.key:_+y.key:y.key;var L=(y.data||(y.data={})).transition=io(this),N=this._vnode,F=yi(N);if(y.data.directives&&y.data.directives.some(nf)&&(y.data.show=!0),F&&F.data&&!(function(J,ie){return ie.key===J.key&&ie.tag===J.tag})(y,F)&&!Wi(F)&&(!F.componentInstance||!F.componentInstance._vnode.isComment)){var H=F.data.transition=$({},L);if(h==="out-in")return this._leaving=!0,xr(H,"afterLeave",(function(){u._leaving=!1,u.$forceUpdate()})),wl(a,v);if(h==="in-out"){if(Wi(y))return N;var M,X=function(){M()};xr(L,"afterEnter",X),xr(L,"enterCancelled",X),xr(H,"delayLeave",(function(J){M=J}))}}return v}}},bi=$({tag:String,moveClass:String},no);delete bi.mode;var ta={props:bi,beforeMount:function(){var a=this,u=this._update;this._update=function(p,h){var v=Ms(a);a.__patch__(a._vnode,a.kept,!1,!0),a._vnode=a.kept,v(),u.call(a,p,h)}},render:function(a){for(var u=this.tag||this.$vnode.data.tag||"span",p=Object.create(null),h=this.prevChildren=this.children,v=this.$slots.default||[],y=this.children=[],_=io(this),L=0;L<v.length;L++)(H=v[L]).tag&&H.key!=null&&String(H.key).indexOf("__vlist")!==0&&(y.push(H),p[H.key]=H,(H.data||(H.data={})).transition=_);if(h){var N=[],F=[];for(L=0;L<h.length;L++){var H;(H=h[L]).data.transition=_,H.data.pos=H.elm.getBoundingClientRect(),p[H.key]?N.push(H):F.push(H)}this.kept=a(u,null,N),this.removed=F}return a(u,null,y)},updated:function(){var a=this.prevChildren,u=this.moveClass||(this.name||"v")+"-move";a.length&&this.hasMove(a[0].elm,u)&&(a.forEach(Fc),a.forEach(of),a.forEach(zc),this._reflow=document.body.offsetHeight,a.forEach((function(p){if(p.data.moved){var h=p.elm,v=h.style;In(h,u),v.transform=v.WebkitTransform=v.transitionDuration="",h.addEventListener(mn,h._moveCb=function y(_){_&&_.target!==h||_&&!/transform$/.test(_.propertyName)||(h.removeEventListener(mn,y),h._moveCb=null,vn(h,u))})}})))},methods:{hasMove:function(a,u){if(!pl)return!1;if(this._hasMove)return this._hasMove;var p=a.cloneNode();a._transitionClasses&&a._transitionClasses.forEach((function(v){Ju(p,v)})),cl(p,u),p.style.display="none",this.$el.appendChild(p);var h=Yo(p);return this.$el.removeChild(p),this._hasMove=h.hasTransform}}};function Fc(a){a.elm._moveCb&&a.elm._moveCb(),a.elm._enterCb&&a.elm._enterCb()}function of(a){a.data.newPos=a.elm.getBoundingClientRect()}function zc(a){var u=a.data.pos,p=a.data.newPos,h=u.left-p.left,v=u.top-p.top;if(h||v){a.data.moved=!0;var y=a.elm.style;y.transform=y.WebkitTransform="translate(".concat(h,"px,").concat(v,"px)"),y.transitionDuration="0s"}}var Rc={Transition:zn,TransitionGroup:ta};mt.config.mustUseProp=pn,mt.config.isReservedTag=Ha,mt.config.isReservedAttr=ui,mt.config.getTagNamespace=zo,mt.config.isUnknownElement=function(a){if(!ut)return!0;if(Ha(a))return!1;if(a=a.toLowerCase(),Ua[a]!=null)return Ua[a];var u=document.createElement(a);return a.indexOf("-")>-1?Ua[a]=u.constructor===window.HTMLUnknownElement||u.constructor===window.HTMLElement:Ua[a]=/HTMLUnknownElement/.test(u.toString())},$(mt.options.directives,ea),$(mt.options.components,Rc),mt.prototype.__patch__=ut?tf:se,mt.prototype.$mount=function(a,u){return(function(p,h,v){var y;p.$el=h,p.$options.render||(p.$options.render=Wt),Sr(p,"beforeMount"),y=function(){p._update(p._render(),v)},new ii(p,y,se,{before:function(){p._isMounted&&!p._isDestroyed&&Sr(p,"beforeUpdate")}},!0),v=!1;var _=p._preWatchers;if(_)for(var L=0;L<_.length;L++)_[L].run();return p.$vnode==null&&(p._isMounted=!0,Sr(p,"mounted")),p})(this,a=a&&ut?Ys(a):void 0,u)},ut&&setTimeout((function(){Ee.devtools&&Qe&&Qe.emit("init",mt)}),0);var jc=/\{\{((?:.|\r?\n)+?)\}\}/g,tr=/[-.*+?^${}()|[\]\/\\]/g,af=ae((function(a){var u=a[0].replace(tr,"\\$&"),p=a[1].replace(tr,"\\$&");return new RegExp(u+"((?:.|\\n)+?)"+p,"g")})),qc={staticKeys:["staticClass"],transformNode:function(a,u){u.warn;var p=Dt(a,"class");p&&(a.staticClass=JSON.stringify(p.replace(/\s+/g," ").trim()));var h=gr(a,"class",!1);h&&(a.classBinding=h)},genData:function(a){var u="";return a.staticClass&&(u+="staticClass:".concat(a.staticClass,",")),a.classBinding&&(u+="class:".concat(a.classBinding,",")),u}},kl,Wc={staticKeys:["staticStyle"],transformNode:function(a,u){u.warn;var p=Dt(a,"style");p&&(a.staticStyle=JSON.stringify(Ya(p)));var h=gr(a,"style",!1);h&&(a.styleBinding=h)},genData:function(a){var u="";return a.staticStyle&&(u+="staticStyle:".concat(a.staticStyle,",")),a.styleBinding&&(u+="style:(".concat(a.styleBinding,"),")),u}},sf=function(a){return(kl=kl||document.createElement("div")).innerHTML=a,kl.textContent},lf=I("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),uf=I("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),Bc=I("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Hc=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Uc=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,yn="[a-zA-Z_][\\-\\.0-9_a-zA-Z".concat(Ue.source,"]*"),oo="((?:".concat(yn,"\\:)?").concat(yn,")"),ra=new RegExp("^<".concat(oo)),na=/^\s*(\/?)>/,Zr=new RegExp("^<\\/".concat(oo,"[^>]*>")),Kc=/^<!DOCTYPE [^>]+>/i,ff=/^<!\--/,xi=/^<!\[/,_l=I("script,style,textarea",!0),Sl={},cf={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":`
`,"&#9;":"	","&#39;":"'"},os=/&(?:lt|gt|quot|amp|#39);/g,ao=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Cl=I("pre,textarea",!0),as=function(a,u){return a&&Cl(a)&&u[0]===`
`};function Tl(a,u){var p=u?ao:os;return a.replace(p,(function(h){return cf[h]}))}function Vc(a,u){for(var p,h,v=[],y=u.expectHTML,_=u.isUnaryTag||q,L=u.canBeLeftOpenTag||q,N=0,F=function(){if(p=a,h&&_l(h)){var X=0,J=h.toLowerCase(),ie=Sl[J]||(Sl[J]=new RegExp("([\\s\\S]*?)(</"+J+"[^>]*>)","i"));te=a.replace(ie,(function(ke,Se,De){return X=De.length,_l(J)||J==="noscript"||(Se=Se.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),as(J,Se)&&(Se=Se.slice(1)),u.chars&&u.chars(Se),""})),N+=a.length-te.length,a=te,M(J,N-X,N)}else{var ye=a.indexOf("<");if(ye===0){if(ff.test(a)){var de=a.indexOf("-->");if(de>=0)return u.shouldKeepComment&&u.comment&&u.comment(a.substring(4,de),N,N+de+3),H(de+3),"continue"}if(xi.test(a)){var _e=a.indexOf("]>");if(_e>=0)return H(_e+2),"continue"}var we=a.match(Kc);if(we)return H(we[0].length),"continue";var ze=a.match(Zr);if(ze){var Le=N;return H(ze[0].length),M(ze[1],Le,N),"continue"}var Te=(function(){var ke=a.match(ra);if(ke){var Se={tagName:ke[1],attrs:[],start:N};H(ke[0].length);for(var De=void 0,ot=void 0;!(De=a.match(na))&&(ot=a.match(Uc)||a.match(Hc));)ot.start=N,H(ot[0].length),ot.end=N,Se.attrs.push(ot);if(De)return Se.unarySlash=De[1],H(De[0].length),Se.end=N,Se}})();if(Te)return(function(ke){var Se=ke.tagName,De=ke.unarySlash;y&&(h==="p"&&Bc(Se)&&M(h),L(Se)&&h===Se&&M(Se));for(var ot=_(Se)||!!De,Xe=ke.attrs.length,Je=new Array(Xe),ft=0;ft<Xe;ft++){var Ke=ke.attrs[ft],rt=Ke[3]||Ke[4]||Ke[5]||"",vt=Se==="a"&&Ke[1]==="href"?u.shouldDecodeNewlinesForHref:u.shouldDecodeNewlines;Je[ft]={name:Ke[1],value:Tl(rt,vt)}}ot||(v.push({tag:Se,lowerCasedTag:Se.toLowerCase(),attrs:Je,start:ke.start,end:ke.end}),h=Se),u.start&&u.start(Se,Je,ot,ke.start,ke.end)})(Te),as(Te.tagName,a)&&H(1),"continue"}var je=void 0,te=void 0,le=void 0;if(ye>=0){for(te=a.slice(ye);!(Zr.test(te)||ra.test(te)||ff.test(te)||xi.test(te)||(le=te.indexOf("<",1))<0);)ye+=le,te=a.slice(ye);je=a.substring(0,ye)}ye<0&&(je=a),je&&H(je.length),u.chars&&je&&u.chars(je,N-je.length,N)}if(a===p)return u.chars&&u.chars(a),"break"};a&&F()!=="break";);function H(X){N+=X,a=a.substring(X)}function M(X,J,ie){var ye,de;if(J==null&&(J=N),ie==null&&(ie=N),X)for(de=X.toLowerCase(),ye=v.length-1;ye>=0&&v[ye].lowerCasedTag!==de;ye--);else ye=0;if(ye>=0){for(var _e=v.length-1;_e>=ye;_e--)u.end&&u.end(v[_e].tag,J,ie);v.length=ye,h=ye&&v[ye-1].tag}else de==="br"?u.start&&u.start(X,[],!0,J,ie):de==="p"&&(u.start&&u.start(X,[],!1,J,ie),u.end&&u.end(X,J,ie))}M()}var so,$l,Ll,ss,lo,Al,Ol,uo,Nl=/^@|^v-on:/,ls=/^v-|^@|^:|^#/,Gc=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,us=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,pf=/^\(|\)$/g,fs=/^\[.*\]$/,df=/:(.*)$/,El=/^:|^\.|^v-bind:/,hf=/\.[^.\]]+(?=[^\]]*$)/g,ia=/^v-slot(:|$)|^#/,oa=/[\r\n]/,aa=/[ \f\t\r\n]+/g,Qc=ae(sf),sa="_empty_";function Ml(a,u,p){return{type:1,tag:a,attrsList:u,attrsMap:vf(u),rawAttrsMap:{},parent:p,children:[]}}function Xc(a,u){so=u.warn||Ji,Al=u.isPreTag||q,Ol=u.mustUseProp||q,uo=u.getTagNamespace||q,u.isReservedTag,Ll=Wo(u.modules,"transformNode"),ss=Wo(u.modules,"preTransformNode"),lo=Wo(u.modules,"postTransformNode"),$l=u.delimiters;var p,h,v=[],y=u.preserveWhitespace!==!1,_=u.whitespace,L=!1,N=!1;function F(M){if(H(M),L||M.processed||(M=cs(M,u)),v.length||M===p||p.if&&(M.elseif||M.else)&&wi(p,{exp:M.elseif,block:M}),h&&!M.forbidden)if(M.elseif||M.else)J=M,ie=(function(de){for(var _e=de.length;_e--;){if(de[_e].type===1)return de[_e];de.pop()}})(h.children),ie&&ie.if&&wi(ie,{exp:J.elseif,block:J});else{if(M.slotScope){var X=M.slotTarget||'"default"';(h.scopedSlots||(h.scopedSlots={}))[X]=M}h.children.push(M),M.parent=h}var J,ie;M.children=M.children.filter((function(de){return!de.slotScope})),H(M),M.pre&&(L=!1),Al(M.tag)&&(N=!1);for(var ye=0;ye<lo.length;ye++)lo[ye](M,u)}function H(M){if(!N)for(var X=void 0;(X=M.children[M.children.length-1])&&X.type===3&&X.text===" ";)M.children.pop()}return Vc(a,{warn:so,expectHTML:u.expectHTML,isUnaryTag:u.isUnaryTag,canBeLeftOpenTag:u.canBeLeftOpenTag,shouldDecodeNewlines:u.shouldDecodeNewlines,shouldDecodeNewlinesForHref:u.shouldDecodeNewlinesForHref,shouldKeepComment:u.comments,outputSourceRange:u.outputSourceRange,start:function(M,X,J,ie,ye){var de=h&&h.ns||uo(M);At&&de==="svg"&&(X=(function(Le){for(var Te=[],je=0;je<Le.length;je++){var te=Le[je];Pl.test(te.name)||(te.name=te.name.replace(yf,""),Te.push(te))}return Te})(X));var _e,we=Ml(M,X,h);de&&(we.ns=de),(_e=we).tag!=="style"&&(_e.tag!=="script"||_e.attrsMap.type&&_e.attrsMap.type!=="text/javascript")||ce()||(we.forbidden=!0);for(var ze=0;ze<ss.length;ze++)we=ss[ze](we,u)||we;L||((function(Le){Dt(Le,"v-pre")!=null&&(Le.pre=!0)})(we),we.pre&&(L=!0)),Al(we.tag)&&(N=!0),L?(function(Le){var Te=Le.attrsList,je=Te.length;if(je)for(var te=Le.attrs=new Array(je),le=0;le<je;le++)te[le]={name:Te[le].name,value:JSON.stringify(Te[le].value)},Te[le].start!=null&&(te[le].start=Te[le].start,te[le].end=Te[le].end);else Le.pre||(Le.plain=!0)})(we):we.processed||(gf(we),(function(Le){var Te=Dt(Le,"v-if");if(Te)Le.if=Te,wi(Le,{exp:Te,block:Le});else{Dt(Le,"v-else")!=null&&(Le.else=!0);var je=Dt(Le,"v-else-if");je&&(Le.elseif=je)}})(we),(function(Le){var Te=Dt(Le,"v-once");Te!=null&&(Le.once=!0)})(we)),p||(p=we),J?F(we):(h=we,v.push(we))},end:function(M,X,J){var ie=v[v.length-1];v.length-=1,h=v[v.length-1],F(ie)},chars:function(M,X,J){if(h&&(!At||h.tag!=="textarea"||h.attrsMap.placeholder!==M)){var ie,ye=h.children;if(M=N||M.trim()?(ie=h).tag==="script"||ie.tag==="style"?M:Qc(M):ye.length?_?_==="condense"&&oa.test(M)?"":" ":y?" ":"":""){N||_!=="condense"||(M=M.replace(aa," "));var de=void 0,_e=void 0;!L&&M!==" "&&(de=(function(we,ze){var Le=ze?af(ze):jc;if(Le.test(we)){for(var Te,je,te,le=[],ke=[],Se=Le.lastIndex=0;Te=Le.exec(we);){(je=Te.index)>Se&&(ke.push(te=we.slice(Se,je)),le.push(JSON.stringify(te)));var De=Bt(Te[1].trim());le.push("_s(".concat(De,")")),ke.push({"@binding":De}),Se=je+Te[0].length}return Se<we.length&&(ke.push(te=we.slice(Se)),le.push(JSON.stringify(te))),{expression:le.join("+"),tokens:ke}}})(M,$l))?_e={type:2,expression:de.expression,tokens:de.tokens,text:M}:M===" "&&ye.length&&ye[ye.length-1].text===" "||(_e={type:3,text:M}),_e&&ye.push(_e)}}},comment:function(M,X,J){if(h){var ie={type:3,text:M,isComment:!0};h.children.push(ie)}}}),p}function cs(a,u){var p,h;(h=gr(p=a,"key"))&&(p.key=h),a.plain=!a.key&&!a.scopedSlots&&!a.attrsList.length,(function(y){var _=gr(y,"ref");_&&(y.ref=_,y.refInFor=(function(L){for(var N=L;N;){if(N.for!==void 0)return!0;N=N.parent}return!1})(y))})(a),(function(y){var _;y.tag==="template"?(_=Dt(y,"scope"),y.slotScope=_||Dt(y,"slot-scope")):(_=Dt(y,"slot-scope"))&&(y.slotScope=_);var L=gr(y,"slot");if(L&&(y.slotTarget=L==='""'?'"default"':L,y.slotTargetDynamic=!(!y.attrsMap[":slot"]&&!y.attrsMap["v-bind:slot"]),y.tag==="template"||y.slotScope||il(y,"slot",L,(function(de,_e){return de.rawAttrsMap[":"+_e]||de.rawAttrsMap["v-bind:"+_e]||de.rawAttrsMap[_e]})(y,"slot"))),y.tag==="template"){if(M=Ga(y,ia)){var N=mf(M),F=N.name,H=N.dynamic;y.slotTarget=F,y.slotTargetDynamic=H,y.slotScope=M.value||sa}}else{var M;if(M=Ga(y,ia)){var X=y.scopedSlots||(y.scopedSlots={}),J=mf(M),ie=J.name,ye=(H=J.dynamic,X[ie]=Ml("template",[],y));ye.slotTarget=ie,ye.slotTargetDynamic=H,ye.children=y.children.filter((function(de){if(!de.slotScope)return de.parent=ye,!0})),ye.slotScope=M.value||sa,y.children=[],y.plain=!1}}})(a),(function(y){y.tag==="slot"&&(y.slotName=gr(y,"name"))})(a),(function(y){var _;(_=gr(y,"is"))&&(y.component=_),Dt(y,"inline-template")!=null&&(y.inlineTemplate=!0)})(a);for(var v=0;v<Ll.length;v++)a=Ll[v](a,u)||a;return(function(y){var _,L,N,F,H,M,X,J,ie=y.attrsList;for(_=0,L=ie.length;_<L;_++)if(N=F=ie[_].name,H=ie[_].value,ls.test(N))if(y.hasBindings=!0,(M=Yc(N.replace(ls,"")))&&(N=N.replace(hf,"")),El.test(N))N=N.replace(El,""),H=Bt(H),(J=fs.test(N))&&(N=N.slice(1,-1)),M&&(M.prop&&!J&&(N=B(N))==="innerHtml"&&(N="innerHTML"),M.camel&&!J&&(N=B(N)),M.sync&&(X=gn(H,"$event"),J?Qr(y,'"update:"+('.concat(N,")"),X,null,!1,0,ie[_],!0):(Qr(y,"update:".concat(B(N)),X,null,!1,0,ie[_]),ge(N)!==B(N)&&Qr(y,"update:".concat(ge(N)),X,null,!1,0,ie[_])))),M&&M.prop||!y.component&&Ol(y.tag,y.attrsMap.type,N)?Gr(y,N,H,ie[_],J):il(y,N,H,ie[_],J);else if(Nl.test(N))N=N.replace(Nl,""),(J=fs.test(N))&&(N=N.slice(1,-1)),Qr(y,N,H,M,!1,0,ie[_],J);else{var ye=(N=N.replace(ls,"")).match(df),de=ye&&ye[1];J=!1,de&&(N=N.slice(0,-(de.length+1)),fs.test(de)&&(de=de.slice(1,-1),J=!0)),Ec(y,N,F,H,de,J,M,ie[_])}else il(y,N,JSON.stringify(H),ie[_]),!y.component&&N==="muted"&&Ol(y.tag,y.attrsMap.type,N)&&Gr(y,N,"true",ie[_])})(a),a}function gf(a){var u;if(u=Dt(a,"v-for")){var p=(function(h){var v=h.match(Gc);if(v){var y={};y.for=v[2].trim();var _=v[1].trim().replace(pf,""),L=_.match(us);return L?(y.alias=_.replace(us,"").trim(),y.iterator1=L[1].trim(),L[2]&&(y.iterator2=L[2].trim())):y.alias=_,y}})(u);p&&$(a,p)}}function wi(a,u){a.ifConditions||(a.ifConditions=[]),a.ifConditions.push(u)}function mf(a){var u=a.name.replace(ia,"");return u||a.name[0]!=="#"&&(u="default"),fs.test(u)?{name:u.slice(1,-1),dynamic:!0}:{name:'"'.concat(u,'"'),dynamic:!1}}function Yc(a){var u=a.match(hf);if(u){var p={};return u.forEach((function(h){p[h.slice(1)]=!0})),p}}function vf(a){for(var u={},p=0,h=a.length;p<h;p++)u[a[p].name]=a[p].value;return u}var Pl=/^xmlns:NS\d+/,yf=/^NS\d+:/;function Dl(a){return Ml(a.tag,a.attrsList.slice(),a.parent)}var Il=[qc,Wc,{preTransformNode:function(a,u){if(a.tag==="input"){var p=a.attrsMap;if(!p["v-model"])return;var h=void 0;if((p[":type"]||p["v-bind:type"])&&(h=gr(a,"type")),p.type||h||!p["v-bind"]||(h="(".concat(p["v-bind"],").type")),h){var v=Dt(a,"v-if",!0),y=v?"&&(".concat(v,")"):"",_=Dt(a,"v-else",!0)!=null,L=Dt(a,"v-else-if",!0),N=Dl(a);gf(N),ol(N,"type","checkbox"),cs(N,u),N.processed=!0,N.if="(".concat(h,")==='checkbox'")+y,wi(N,{exp:N.if,block:N});var F=Dl(a);Dt(F,"v-for",!0),ol(F,"type","radio"),cs(F,u),wi(N,{exp:"(".concat(h,")==='radio'")+y,block:F});var H=Dl(a);return Dt(H,"v-for",!0),ol(H,":type",h),cs(H,u),wi(N,{exp:v,block:H}),_?N.else=!0:L&&(N.elseif=L),N}}}}],ki,ps,ds={model:function(a,u,p){var h=u.value,v=u.modifiers,y=a.tag,_=a.attrsMap.type;if(a.component)return al(a,h,v),!1;if(y==="select")(function(L,N,F){var H=F&&F.number,M='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;'+"return ".concat(H?"_n(val)":"val","})"),X="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",J="var $$selectedVal = ".concat(M,";");J="".concat(J," ").concat(gn(N,X)),Qr(L,"change",J,null,!0)})(a,h,v);else if(y==="input"&&_==="checkbox")(function(L,N,F){var H=F&&F.number,M=gr(L,"value")||"null",X=gr(L,"true-value")||"true",J=gr(L,"false-value")||"false";Gr(L,"checked","Array.isArray(".concat(N,")")+"?_i(".concat(N,",").concat(M,")>-1")+(X==="true"?":(".concat(N,")"):":_q(".concat(N,",").concat(X,")"))),Qr(L,"change","var $$a=".concat(N,",")+"$$el=$event.target,"+"$$c=$$el.checked?(".concat(X,"):(").concat(J,");")+"if(Array.isArray($$a)){"+"var $$v=".concat(H?"_n("+M+")":M,",")+"$$i=_i($$a,$$v);"+"if($$el.checked){$$i<0&&(".concat(gn(N,"$$a.concat([$$v])"),")}")+"else{$$i>-1&&(".concat(gn(N,"$$a.slice(0,$$i).concat($$a.slice($$i+1))"),")}")+"}else{".concat(gn(N,"$$c"),"}"),null,!0)})(a,h,v);else if(y==="input"&&_==="radio")(function(L,N,F){var H=F&&F.number,M=gr(L,"value")||"null";M=H?"_n(".concat(M,")"):M,Gr(L,"checked","_q(".concat(N,",").concat(M,")")),Qr(L,"change",gn(N,M),null,!0)})(a,h,v);else if(y==="input"||y==="textarea")(function(L,N,F){var H=L.attrsMap.type,M=F||{},X=M.lazy,J=M.number,ie=M.trim,ye=!X&&H!=="range",de=X?"change":H==="range"?Ko:"input",_e="$event.target.value";ie&&(_e="$event.target.value.trim()"),J&&(_e="_n(".concat(_e,")"));var we=gn(N,_e);ye&&(we="if($event.target.composing)return;".concat(we)),Gr(L,"value","(".concat(N,")")),Qr(L,de,we,null,!0),(ie||J)&&Qr(L,"blur","$forceUpdate()")})(a,h,v);else if(!Ee.isReservedTag(y))return al(a,h,v),!1;return!0},text:function(a,u){u.value&&Gr(a,"textContent","_s(".concat(u.value,")"),u)},html:function(a,u){u.value&&Gr(a,"innerHTML","_s(".concat(u.value,")"),u)}},Zc={expectHTML:!0,modules:Il,directives:ds,isPreTag:function(a){return a==="pre"},isUnaryTag:lf,mustUseProp:pn,canBeLeftOpenTag:uf,isReservedTag:Ha,getTagNamespace:zo,staticKeys:(function(a){return a.reduce((function(u,p){return u.concat(p.staticKeys||[])}),[]).join(",")})(Il)},Jc=ae((function(a){return I("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(a?","+a:""))}));function ep(a,u){a&&(ki=Jc(u.staticKeys||""),ps=u.isReservedTag||q,dt(a),Fl(a,!1))}function dt(a){if(a.static=(function(y){return y.type===2?!1:y.type===3?!0:!(!y.pre&&(y.hasBindings||y.if||y.for||W(y.tag)||!ps(y.tag)||(function(_){for(;_.parent;){if((_=_.parent).tag!=="template")return!1;if(_.for)return!0}return!1})(y)||!Object.keys(y).every(ki)))})(a),a.type===1){if(!ps(a.tag)&&a.tag!=="slot"&&a.attrsMap["inline-template"]==null)return;for(var u=0,p=a.children.length;u<p;u++){var h=a.children[u];dt(h),h.static||(a.static=!1)}if(a.ifConditions)for(u=1,p=a.ifConditions.length;u<p;u++){var v=a.ifConditions[u].block;dt(v),v.static||(a.static=!1)}}}function Fl(a,u){if(a.type===1){if((a.static||a.once)&&(a.staticInFor=u),a.static&&a.children.length&&(a.children.length!==1||a.children[0].type!==3))return void(a.staticRoot=!0);if(a.staticRoot=!1,a.children)for(var p=0,h=a.children.length;p<h;p++)Fl(a.children[p],u||!!a.for);if(a.ifConditions)for(p=1,h=a.ifConditions.length;p<h;p++)Fl(a.ifConditions[p].block,u)}}var zl=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,la=/\([^)]*?\);*$/,Pr=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ua={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Rl={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Jr=function(a){return"if(".concat(a,")return null;")},jl={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Jr("$event.target !== $event.currentTarget"),ctrl:Jr("!$event.ctrlKey"),shift:Jr("!$event.shiftKey"),alt:Jr("!$event.altKey"),meta:Jr("!$event.metaKey"),left:Jr("'button' in $event && $event.button !== 0"),middle:Jr("'button' in $event && $event.button !== 1"),right:Jr("'button' in $event && $event.button !== 2")};function ql(a,u){var p=u?"nativeOn:":"on:",h="",v="";for(var y in a){var _=hs(a[y]);a[y]&&a[y].dynamic?v+="".concat(y,",").concat(_,","):h+='"'.concat(y,'":').concat(_,",")}return h="{".concat(h.slice(0,-1),"}"),v?p+"_d(".concat(h,",[").concat(v.slice(0,-1),"])"):p+h}function hs(a){if(!a)return"function(){}";if(Array.isArray(a))return"[".concat(a.map((function(H){return hs(H)})).join(","),"]");var u=Pr.test(a.value),p=zl.test(a.value),h=Pr.test(a.value.replace(la,""));if(a.modifiers){var v="",y="",_=[],L=function(H){if(jl[H])y+=jl[H],ua[H]&&_.push(H);else if(H==="exact"){var M=a.modifiers;y+=Jr(["ctrl","shift","alt","meta"].filter((function(X){return!M[X]})).map((function(X){return"$event.".concat(X,"Key")})).join("||"))}else _.push(H)};for(var N in a.modifiers)L(N);_.length&&(v+=(function(H){return"if(!$event.type.indexOf('key')&&"+"".concat(H.map(bf).join("&&"),")return null;")})(_)),y&&(v+=y);var F=u?"return ".concat(a.value,".apply(null, arguments)"):p?"return (".concat(a.value,").apply(null, arguments)"):h?"return ".concat(a.value):a.value;return"function($event){".concat(v).concat(F,"}")}return u||p?a.value:"function($event){".concat(h?"return ".concat(a.value):a.value,"}")}function bf(a){var u=parseInt(a,10);if(u)return"$event.keyCode!==".concat(u);var p=ua[a],h=Rl[a];return"_k($event.keyCode,"+"".concat(JSON.stringify(a),",")+"".concat(JSON.stringify(p),",")+"$event.key,"+"".concat(JSON.stringify(h))+")"}var tp={on:function(a,u){a.wrapListeners=function(p){return"_g(".concat(p,",").concat(u.value,")")}},bind:function(a,u){a.wrapData=function(p){return"_b(".concat(p,",'").concat(a.tag,"',").concat(u.value,",").concat(u.modifiers&&u.modifiers.prop?"true":"false").concat(u.modifiers&&u.modifiers.sync?",true":"",")")}},cloak:se},Wl=function(a){this.options=a,this.warn=a.warn||Ji,this.transforms=Wo(a.modules,"transformCode"),this.dataGenFns=Wo(a.modules,"genData"),this.directives=$($({},tp),a.directives);var u=a.isReservedTag||q;this.maybeComponent=function(p){return!!p.component||!u(p.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Bl(a,u){var p=new Wl(u),h=a?a.tag==="script"?"null":tt(a,p):'_c("div")';return{render:"with(this){return ".concat(h,"}"),staticRenderFns:p.staticRenderFns}}function tt(a,u){if(a.parent&&(a.pre=a.pre||a.parent.pre),a.staticRoot&&!a.staticProcessed)return Hl(a,u);if(a.once&&!a.onceProcessed)return xf(a,u);if(a.for&&!a.forProcessed)return fa(a,u);if(a.if&&!a.ifProcessed)return Rn(a,u);if(a.tag!=="template"||a.slotTarget||u.pre){if(a.tag==="slot")return(function(F,H){var M=F.slotName||'"default"',X=fo(F,H),J="_t(".concat(M).concat(X?",function(){return ".concat(X,"}"):""),ie=F.attrs||F.dynamicAttrs?t((F.attrs||[]).concat(F.dynamicAttrs||[]).map((function(de){return{name:B(de.name),value:de.value,dynamic:de.dynamic}}))):null,ye=F.attrsMap["v-bind"];return!ie&&!ye||X||(J+=",null"),ie&&(J+=",".concat(ie)),ye&&(J+="".concat(ie?"":",null",",").concat(ye)),J+")"})(a,u);var p=void 0;if(a.component)p=(function(F,H,M){var X=H.inlineTemplate?null:fo(H,M,!0);return"_c(".concat(F,",").concat(kf(H,M)).concat(X?",".concat(X):"",")")})(a.component,a,u);else{var h=void 0,v=u.maybeComponent(a);(!a.plain||a.pre&&v)&&(h=kf(a,u));var y=void 0,_=u.options.bindings;v&&_&&_.__isScriptSetup!==!1&&(y=(function(F,H){var M=B(H),X=ee(M),J=function(de){return F[H]===de?H:F[M]===de?M:F[X]===de?X:void 0},ie=J("setup-const")||J("setup-reactive-const");if(ie)return ie;var ye=J("setup-let")||J("setup-ref")||J("setup-maybe-ref");if(ye)return ye})(_,a.tag)),y||(y="'".concat(a.tag,"'"));var L=a.inlineTemplate?null:fo(a,u,!0);p="_c(".concat(y).concat(h?",".concat(h):"").concat(L?",".concat(L):"",")")}for(var N=0;N<u.transforms.length;N++)p=u.transforms[N](a,p);return p}return fo(a,u)||"void 0"}function Hl(a,u){a.staticProcessed=!0;var p=u.pre;return a.pre&&(u.pre=a.pre),u.staticRenderFns.push("with(this){return ".concat(tt(a,u),"}")),u.pre=p,"_m(".concat(u.staticRenderFns.length-1).concat(a.staticInFor?",true":"",")")}function xf(a,u){if(a.onceProcessed=!0,a.if&&!a.ifProcessed)return Rn(a,u);if(a.staticInFor){for(var p="",h=a.parent;h;){if(h.for){p=h.key;break}h=h.parent}return p?"_o(".concat(tt(a,u),",").concat(u.onceId++,",").concat(p,")"):tt(a,u)}return Hl(a,u)}function Rn(a,u,p,h){return a.ifProcessed=!0,wf(a.ifConditions.slice(),u,p,h)}function wf(a,u,p,h){if(!a.length)return h||"_e()";var v=a.shift();return v.exp?"(".concat(v.exp,")?").concat(y(v.block),":").concat(wf(a,u,p,h)):"".concat(y(v.block));function y(_){return p?p(_,u):_.once?xf(_,u):tt(_,u)}}function fa(a,u,p,h){var v=a.for,y=a.alias,_=a.iterator1?",".concat(a.iterator1):"",L=a.iterator2?",".concat(a.iterator2):"";return a.forProcessed=!0,"".concat(h||"_l","((").concat(v,"),")+"function(".concat(y).concat(_).concat(L,"){")+"return ".concat((p||tt)(a,u))+"})"}function kf(a,u){var p="{",h=(function(_,L){var N=_.directives;if(N){var F,H,M,X,J="directives:[",ie=!1;for(F=0,H=N.length;F<H;F++){M=N[F],X=!0;var ye=L.directives[M.name];ye&&(X=!!ye(_,M,L.warn)),X&&(ie=!0,J+='{name:"'.concat(M.name,'",rawName:"').concat(M.rawName,'"').concat(M.value?",value:(".concat(M.value,"),expression:").concat(JSON.stringify(M.value)):"").concat(M.arg?",arg:".concat(M.isDynamicArg?M.arg:'"'.concat(M.arg,'"')):"").concat(M.modifiers?",modifiers:".concat(JSON.stringify(M.modifiers)):"","},"))}if(ie)return J.slice(0,-1)+"]"}})(a,u);h&&(p+=h+","),a.key&&(p+="key:".concat(a.key,",")),a.ref&&(p+="ref:".concat(a.ref,",")),a.refInFor&&(p+="refInFor:true,"),a.pre&&(p+="pre:true,"),a.component&&(p+='tag:"'.concat(a.tag,'",'));for(var v=0;v<u.dataGenFns.length;v++)p+=u.dataGenFns[v](a);if(a.attrs&&(p+="attrs:".concat(t(a.attrs),",")),a.props&&(p+="domProps:".concat(t(a.props),",")),a.events&&(p+="".concat(ql(a.events,!1),",")),a.nativeEvents&&(p+="".concat(ql(a.nativeEvents,!0),",")),a.slotTarget&&!a.slotScope&&(p+="slot:".concat(a.slotTarget,",")),a.scopedSlots&&(p+="".concat((function(_,L,N){var F=_.for||Object.keys(L).some((function(J){var ie=L[J];return ie.slotTargetDynamic||ie.if||ie.for||Lt(ie)})),H=!!_.if;if(!F)for(var M=_.parent;M;){if(M.slotScope&&M.slotScope!==sa||M.for){F=!0;break}M.if&&(H=!0),M=M.parent}var X=Object.keys(L).map((function(J){return Ul(L[J],N)})).join(",");return"scopedSlots:_u([".concat(X,"]").concat(F?",null,true":"").concat(!F&&H?",null,false,".concat((function(J){for(var ie=5381,ye=J.length;ye;)ie=33*ie^J.charCodeAt(--ye);return ie>>>0})(X)):"",")")})(a,a.scopedSlots,u),",")),a.model&&(p+="model:{value:".concat(a.model.value,",callback:").concat(a.model.callback,",expression:").concat(a.model.expression,"},")),a.inlineTemplate){var y=(function(_,L){var N=_.children[0];if(N&&N.type===1){var F=Bl(N,L.options);return"inlineTemplate:{render:function(){".concat(F.render,"},staticRenderFns:[").concat(F.staticRenderFns.map((function(H){return"function(){".concat(H,"}")})).join(","),"]}")}})(a,u);y&&(p+="".concat(y,","))}return p=p.replace(/,$/,"")+"}",a.dynamicAttrs&&(p="_b(".concat(p,',"').concat(a.tag,'",').concat(t(a.dynamicAttrs),")")),a.wrapData&&(p=a.wrapData(p)),a.wrapListeners&&(p=a.wrapListeners(p)),p}function Lt(a){return a.type===1&&(a.tag==="slot"||a.children.some(Lt))}function Ul(a,u){var p=a.attrsMap["slot-scope"];if(a.if&&!a.ifProcessed&&!p)return Rn(a,u,Ul,"null");if(a.for&&!a.forProcessed)return fa(a,u,Ul);var h=a.slotScope===sa?"":String(a.slotScope),v="function(".concat(h,"){")+"return ".concat(a.tag==="template"?a.if&&p?"(".concat(a.if,")?").concat(fo(a,u)||"undefined",":undefined"):fo(a,u)||"undefined":tt(a,u),"}"),y=h?"":",proxy:true";return"{key:".concat(a.slotTarget||'"default"',",fn:").concat(v).concat(y,"}")}function fo(a,u,p,h,v){var y=a.children;if(y.length){var _=y[0];if(y.length===1&&_.for&&_.tag!=="template"&&_.tag!=="slot"){var L=p?u.maybeComponent(_)?",1":",0":"";return"".concat((h||tt)(_,u)).concat(L)}var N=p?(function(H,M){for(var X=0,J=0;J<H.length;J++){var ie=H[J];if(ie.type===1){if(_f(ie)||ie.ifConditions&&ie.ifConditions.some((function(ye){return _f(ye.block)}))){X=2;break}(M(ie)||ie.ifConditions&&ie.ifConditions.some((function(ye){return M(ye.block)})))&&(X=1)}}return X})(y,u.maybeComponent):0,F=v||gs;return"[".concat(y.map((function(H){return F(H,u)})).join(","),"]").concat(N?",".concat(N):"")}}function _f(a){return a.for!==void 0||a.tag==="template"||a.tag==="slot"}function gs(a,u){return a.type===1?tt(a,u):a.type===3&&a.isComment?(function(p){return"_e(".concat(JSON.stringify(p.text),")")})(a):(function(p){return"_v(".concat(p.type===2?p.expression:n(JSON.stringify(p.text)),")")})(a)}function t(a){for(var u="",p="",h=0;h<a.length;h++){var v=a[h],y=n(v.value);v.dynamic?p+="".concat(v.name,",").concat(y,","):u+='"'.concat(v.name,'":').concat(y,",")}return u="{".concat(u.slice(0,-1),"}"),p?"_d(".concat(u,",[").concat(p.slice(0,-1),"])"):u}function n(a){return a.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function l(a,u){try{return new Function(a)}catch(p){return u.push({err:p,code:a}),se}}function s(a){var u=Object.create(null);return function(p,h,v){(h=$({},h)).warn,delete h.warn;var y=h.delimiters?String(h.delimiters)+p:p;if(u[y])return u[y];var _=a(p,h),L={},N=[];return L.render=l(_.render,N),L.staticRenderFns=_.staticRenderFns.map((function(F){return l(F,N)})),u[y]=L}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");var f,g,b=(f=function(a,u){var p=Xc(a.trim(),u);u.optimize!==!1&&ep(p,u);var h=Bl(p,u);return{ast:p,render:h.render,staticRenderFns:h.staticRenderFns}},function(a){function u(p,h){var v=Object.create(a),y=[],_=[];if(h)for(var L in h.modules&&(v.modules=(a.modules||[]).concat(h.modules)),h.directives&&(v.directives=$(Object.create(a.directives||null),h.directives)),h)L!=="modules"&&L!=="directives"&&(v[L]=h[L]);v.warn=function(F,H,M){(M?_:y).push(F)};var N=f(p.trim(),v);return N.errors=y,N.tips=_,N}return{compile:u,compileToFunctions:s(u)}}),w=b(Zc).compileToFunctions;function k(a){return(g=g||document.createElement("div")).innerHTML=a?`<a href="
"/>`:`<div a="
"/>`,g.innerHTML.indexOf("&#10;")>0}var C=!!ut&&k(!1),P=!!ut&&k(!0),R=ae((function(a){var u=Ys(a);return u&&u.innerHTML})),Y=mt.prototype.$mount;return mt.prototype.$mount=function(a,u){if((a=a&&Ys(a))===document.body||a===document.documentElement)return this;var p=this.$options;if(!p.render){var h=p.template;if(h)if(typeof h=="string")h.charAt(0)==="#"&&(h=R(h));else{if(!h.nodeType)return this;h=h.innerHTML}else a&&(h=(function(L){if(L.outerHTML)return L.outerHTML;var N=document.createElement("div");return N.appendChild(L.cloneNode(!0)),N.innerHTML})(a));if(h){var v=w(h,{outputSourceRange:!1,shouldDecodeNewlines:C,shouldDecodeNewlinesForHref:P,delimiters:p.delimiters,comments:p.comments},this),y=v.render,_=v.staticRenderFns;p.render=y,p.staticRenderFns=_}}return Y.call(this,a,u)},mt.compile=w,$(mt,Lc),mt.effect=function(a,u){var p=new ii(Fe,a,se,{sync:!0});u&&(p.update=function(){u((function(){return p.run()}))})},mt}))});var Et=Mt((op,ap)=>{(function(e,r){typeof op=="object"&&typeof ap<"u"?ap.exports=r():typeof define=="function"&&define.amd?define(r):(e=e||self,e.CodeMirror=r())})(op,(function(){"use strict";var e=navigator.userAgent,r=navigator.platform,i=/gecko\/\d/i.test(e),o=/MSIE \d/.test(e),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),d=/Edge\/(\d+)/.exec(e),m=o||c||d,x=m&&(o?document.documentMode||6:+(d||c)[1]),S=!d&&/WebKit\//.test(e),A=S&&/Qt\/\d+\.\d+/.test(e),T=!d&&/Chrome\/(\d+)/.exec(e),D=T&&+T[1],E=/Opera\//.test(e),U=/Apple Computer/.test(navigator.vendor),V=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),I=/PhantomJS/.test(e),W=U&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),K=/Android/.test(e),G=W||K||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),re=W||/Mac/.test(r),ue=/\bCrOS\b/.test(e),ae=/win/i.test(r),j=E&&e.match(/Version\/(\d*\.\d*)/);j&&(j=Number(j[1])),j&&j>=15&&(E=!1,S=!0);var B=re&&(A||E&&(j==null||j<12.11)),ee=i||m&&x>=9;function ne(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var ge=function(t,n){var l=t.className,s=ne(n).exec(l);if(s){var f=l.slice(s.index+s[0].length);t.className=l.slice(0,s.index)+(f?s[1]+f:"")}};function Z(t){for(var n=t.childNodes.length;n>0;--n)t.removeChild(t.firstChild);return t}function pe(t,n){return Z(t).appendChild(n)}function $(t,n,l,s){var f=document.createElement(t);if(l&&(f.className=l),s&&(f.style.cssText=s),typeof n=="string")f.appendChild(document.createTextNode(n));else if(n)for(var g=0;g<n.length;++g)f.appendChild(n[g]);return f}function ve(t,n,l,s){var f=$(t,n,l,s);return f.setAttribute("role","presentation"),f}var se;document.createRange?se=function(t,n,l,s){var f=document.createRange();return f.setEnd(s||t,l),f.setStart(t,n),f}:se=function(t,n,l){var s=document.body.createTextRange();try{s.moveToElementText(t.parentNode)}catch{return s}return s.collapse(!0),s.moveEnd("character",l),s.moveStart("character",n),s};function q(t,n){if(n.nodeType==3&&(n=n.parentNode),t.contains)return t.contains(n);do if(n.nodeType==11&&(n=n.host),n==t)return!0;while(n=n.parentNode)}function Q(t){var n=t.ownerDocument||t,l;try{l=t.activeElement}catch{l=n.body||null}for(;l&&l.shadowRoot&&l.shadowRoot.activeElement;)l=l.shadowRoot.activeElement;return l}function he(t,n){var l=t.className;ne(n).test(l)||(t.className+=(l?" ":"")+n)}function Ae(t,n){for(var l=t.split(" "),s=0;s<l.length;s++)l[s]&&!ne(l[s]).test(n)&&(n+=" "+l[s]);return n}var Ye=function(t){t.select()};W?Ye=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:m&&(Ye=function(t){try{t.select()}catch{}});function Ve(t){return t.display.wrapper.ownerDocument}function wt(t){return lt(t.display.wrapper)}function lt(t){return t.getRootNode?t.getRootNode():t.ownerDocument}function We(t){return Ve(t).defaultView}function Ee(t){var n=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,n)}}function Ue(t,n,l){n||(n={});for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(l!==!1||!Object.prototype.hasOwnProperty.call(n,s))&&(n[s]=t[s]);return n}function Ge(t,n,l,s,f){n==null&&(n=t.search(/[^\s\u00a0]/),n==-1&&(n=t.length));for(var g=s||0,b=f||0;;){var w=t.indexOf("	",g);if(w<0||w>=n)return b+(n-g);b+=w-g,b+=l-b%l,g=w+1}}var Oe=function(){this.id=null,this.f=null,this.time=0,this.handler=Ee(this.onTimeout,this)};Oe.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Oe.prototype.set=function(t,n){this.f=n;var l=+new Date+t;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=l)};function Pe(t,n){for(var l=0;l<t.length;++l)if(t[l]==n)return l;return-1}var Pt=50,ut={toString:function(){return"CodeMirror.Pass"}},at={scroll:!1},At={origin:"*mouse"},Ze={origin:"+move"};function kt(t,n,l){for(var s=0,f=0;;){var g=t.indexOf("	",s);g==-1&&(g=t.length);var b=g-s;if(g==t.length||f+b>=n)return s+Math.min(b,n-f);if(f+=g-s,f+=l-f%l,s=g+1,f>=n)return s}}var jt=[""];function qt(t){for(;jt.length<=t;)jt.push(qe(jt)+" ");return jt[t]}function qe(t){return t[t.length-1]}function nt(t,n){for(var l=[],s=0;s<t.length;s++)l[s]=n(t[s],s);return l}function oe(t,n,l){for(var s=0,f=l(n);s<t.length&&l(t[s])<=f;)s++;t.splice(s,0,n)}function be(){}function ce(t,n){var l;return Object.create?l=Object.create(t):(be.prototype=t,l=new be),n&&Ue(n,l),l}var Qe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $e(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||Qe.test(t))}function Re(t,n){return n?n.source.indexOf("\\w")>-1&&$e(t)?!0:n.test(t):$e(t)}function Me(t){for(var n in t)if(t.hasOwnProperty(n)&&t[n])return!1;return!0}var Fe=/[\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 Be(t){return t.charCodeAt(0)>=768&&Fe.test(t)}function ht(t,n,l){for(;(l<0?n>0:n<t.length)&&Be(t.charAt(n));)n+=l;return n}function Wt(t,n,l){for(var s=n>l?-1:1;;){if(n==l)return n;var f=(n+l)/2,g=s<0?Math.ceil(f):Math.floor(f);if(g==n)return t(g)?n:l;t(g)?l=g:n=g+s}}function mr(t,n,l,s){if(!t)return s(n,l,"ltr",0);for(var f=!1,g=0;g<t.length;++g){var b=t[g];(b.from<l&&b.to>n||n==l&&b.to==n)&&(s(Math.max(b.from,n),Math.min(b.to,l),b.level==1?"rtl":"ltr",g),f=!0)}f||s(n,l,"ltr")}var an=null;function _n(t,n,l){var s;an=null;for(var f=0;f<t.length;++f){var g=t[f];if(g.from<n&&g.to>n)return f;g.to==n&&(g.from!=g.to&&l=="before"?s=f:an=f),g.from==n&&(g.from!=g.to&&l!="before"?s=f:an=f)}return s??an}var Di=(function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(C){return C<=247?t.charAt(C):1424<=C&&C<=1524?"R":1536<=C&&C<=1785?n.charAt(C-1536):1774<=C&&C<=2220?"r":8192<=C&&C<=8203?"w":C==8204?"b":"L"}var s=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,g=/[LRr]/,b=/[Lb1n]/,w=/[1n]/;function k(C,P,R){this.level=C,this.from=P,this.to=R}return function(C,P){var R=P=="ltr"?"L":"R";if(C.length==0||P=="ltr"&&!s.test(C))return!1;for(var Y=C.length,a=[],u=0;u<Y;++u)a.push(l(C.charCodeAt(u)));for(var p=0,h=R;p<Y;++p){var v=a[p];v=="m"?a[p]=h:h=v}for(var y=0,_=R;y<Y;++y){var L=a[y];L=="1"&&_=="r"?a[y]="n":g.test(L)&&(_=L,L=="r"&&(a[y]="R"))}for(var N=1,F=a[0];N<Y-1;++N){var H=a[N];H=="+"&&F=="1"&&a[N+1]=="1"?a[N]="1":H==","&&F==a[N+1]&&(F=="1"||F=="n")&&(a[N]=F),F=H}for(var M=0;M<Y;++M){var X=a[M];if(X==",")a[M]="N";else if(X=="%"){var J=void 0;for(J=M+1;J<Y&&a[J]=="%";++J);for(var ie=M&&a[M-1]=="!"||J<Y&&a[J]=="1"?"1":"N",ye=M;ye<J;++ye)a[ye]=ie;M=J-1}}for(var de=0,_e=R;de<Y;++de){var we=a[de];_e=="L"&&we=="1"?a[de]="L":g.test(we)&&(_e=we)}for(var ze=0;ze<Y;++ze)if(f.test(a[ze])){var Le=void 0;for(Le=ze+1;Le<Y&&f.test(a[Le]);++Le);for(var Te=(ze?a[ze-1]:R)=="L",je=(Le<Y?a[Le]:R)=="L",te=Te==je?Te?"L":"R":R,le=ze;le<Le;++le)a[le]=te;ze=Le-1}for(var ke=[],Se,De=0;De<Y;)if(b.test(a[De])){var ot=De;for(++De;De<Y&&b.test(a[De]);++De);ke.push(new k(0,ot,De))}else{var Xe=De,Je=ke.length,ft=P=="rtl"?1:0;for(++De;De<Y&&a[De]!="L";++De);for(var Ke=Xe;Ke<De;)if(w.test(a[Ke])){Xe<Ke&&(ke.splice(Je,0,new k(1,Xe,Ke)),Je+=ft);var rt=Ke;for(++Ke;Ke<De&&w.test(a[Ke]);++Ke);ke.splice(Je,0,new k(2,rt,Ke)),Je+=ft,Xe=Ke}else++Ke;Xe<De&&ke.splice(Je,0,new k(1,Xe,De))}return P=="ltr"&&(ke[0].level==1&&(Se=C.match(/^\s+/))&&(ke[0].from=Se[0].length,ke.unshift(new k(0,0,Se[0].length))),qe(ke).level==1&&(Se=C.match(/\s+$/))&&(qe(ke).to-=Se[0].length,ke.push(new k(0,Y-Se[0].length,Y)))),P=="rtl"?ke.reverse():ke}})();function et(t,n){var l=t.order;return l==null&&(l=t.order=Di(t.text,n)),l}var vr=[],Ie=function(t,n,l){if(t.addEventListener)t.addEventListener(n,l,!1);else if(t.attachEvent)t.attachEvent("on"+n,l);else{var s=t._handlers||(t._handlers={});s[n]=(s[n]||vr).concat(l)}};function ur(t,n){return t._handlers&&t._handlers[n]||vr}function Ot(t,n,l){if(t.removeEventListener)t.removeEventListener(n,l,!1);else if(t.detachEvent)t.detachEvent("on"+n,l);else{var s=t._handlers,f=s&&s[n];if(f){var g=Pe(f,l);g>-1&&(s[n]=f.slice(0,g).concat(f.slice(g+1)))}}}function Ct(t,n){var l=ur(t,n);if(l.length)for(var s=Array.prototype.slice.call(arguments,2),f=0;f<l.length;++f)l[f].apply(null,s)}function gt(t,n,l){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Ct(t,l||n.type,t,n),Xt(n)||n.codemirrorIgnore}function yr(t){var n=t._handlers&&t._handlers.cursorActivity;if(n)for(var l=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),s=0;s<n.length;++s)Pe(l,n[s])==-1&&l.push(n[s])}function rr(t,n){return ur(t,n).length>0}function br(t){t.prototype.on=function(n,l){Ie(this,n,l)},t.prototype.off=function(n,l){Ot(this,n,l)}}function Tt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Ii(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function Xt(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function Yt(t){Tt(t),Ii(t)}function Lr(t){return t.target||t.srcElement}function fr(t){var n=t.which;return n==null&&(t.button&1?n=1:t.button&2?n=3:t.button&4&&(n=2)),re&&t.ctrlKey&&n==1&&(n=3),n}var _o=(function(){if(m&&x<9)return!1;var t=$("div");return"draggable"in t||"dragDrop"in t})(),Gn;function Fi(t){if(Gn==null){var n=$("span","\u200B");pe(t,$("span",[n,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(Gn=n.offsetWidth<=1&&n.offsetHeight>2&&!(m&&x<8))}var l=Gn?$("span","\u200B"):$("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}var zi;function cr(t){if(zi!=null)return zi;var n=pe(t,document.createTextNode("A\u062EA")),l=se(n,0,1).getBoundingClientRect(),s=se(n,1,2).getBoundingClientRect();return Z(t),!l||l.left==l.right?!1:zi=s.right-l.right<3}var nr=`

b`.split(/\n/).length!=3?function(t){for(var n=0,l=[],s=t.length;n<=s;){var f=t.indexOf(`
`,n);f==-1&&(f=t.length);var g=t.slice(n,t.charAt(f-1)=="\r"?f-1:f),b=g.indexOf("\r");b!=-1?(l.push(g.slice(0,b)),n+=b+1):(l.push(g),n=f+1)}return l}:function(t){return t.split(/\r\n?|\n/)},pr=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch{return!1}}:function(t){var n;try{n=t.ownerDocument.selection.createRange()}catch{}return!n||n.parentElement()!=t?!1:n.compareEndPoints("StartToEnd",n)!=0},Sn=(function(){var t=$("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")})(),pt=null;function ka(t){if(pt!=null)return pt;var n=pe(t,$("span","x")),l=n.getBoundingClientRect(),s=se(n,0,1).getBoundingClientRect();return pt=Math.abs(l.left-s.left)>1}var sn={},Ar={};function Ir(t,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),sn[t]=n}function Qn(t,n){Ar[t]=n}function Xn(t){if(typeof t=="string"&&Ar.hasOwnProperty(t))t=Ar[t];else if(t&&typeof t.name=="string"&&Ar.hasOwnProperty(t.name)){var n=Ar[t.name];typeof n=="string"&&(n={name:n}),t=ce(n,t),t.name=n.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Xn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Xn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function Yn(t,n){n=Xn(n);var l=sn[n.name];if(!l)return Yn(t,"text/plain");var s=l(t,n);if(Cn.hasOwnProperty(n.name)){var f=Cn[n.name];for(var g in f)f.hasOwnProperty(g)&&(s.hasOwnProperty(g)&&(s["_"+g]=s[g]),s[g]=f[g])}if(s.name=n.name,n.helperType&&(s.helperType=n.helperType),n.modeProps)for(var b in n.modeProps)s[b]=n.modeProps[b];return s}var Cn={};function Zn(t,n){var l=Cn.hasOwnProperty(t)?Cn[t]:Cn[t]={};Ue(n,l)}function Or(t,n){if(n===!0)return n;if(t.copyState)return t.copyState(n);var l={};for(var s in n){var f=n[s];f instanceof Array&&(f=f.concat([])),l[s]=f}return l}function Ri(t,n){for(var l;t.innerMode&&(l=t.innerMode(n),!(!l||l.mode==t));)n=l.state,t=l.mode;return l||{mode:t,state:n}}function xr(t,n,l){return t.startState?t.startState(n,l):!0}var $t=function(t,n,l){this.pos=this.start=0,this.string=t,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(t){var n=this.string.charAt(this.pos),l;if(typeof t=="string"?l=n==t:l=n&&(t.test?t.test(n):t(n)),l)return++this.pos,n},$t.prototype.eatWhile=function(t){for(var n=this.pos;this.eat(t););return this.pos>n},$t.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(t){var n=this.string.indexOf(t,this.pos);if(n>-1)return this.pos=n,!0},$t.prototype.backUp=function(t){this.pos-=t},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ge(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return Ge(this.string,null,this.tabSize)-(this.lineStart?Ge(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(t,n,l){if(typeof t=="string"){var s=function(b){return l?b.toLowerCase():b},f=this.string.substr(this.pos,t.length);if(s(f)==s(t))return n!==!1&&(this.pos+=t.length),!0}else{var g=this.string.slice(this.pos).match(t);return g&&g.index>0?null:(g&&n!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(t,n){this.lineStart+=t;try{return n()}finally{this.lineStart-=t}},$t.prototype.lookAhead=function(t){var n=this.lineOracle;return n&&n.lookAhead(t)},$t.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function Ne(t,n){if(n-=t.first,n<0||n>=t.size)throw new Error("There is no line "+(n+t.first)+" in the document.");for(var l=t;!l.lines;)for(var s=0;;++s){var f=l.children[s],g=f.chunkSize();if(n<g){l=f;break}n-=g}return l.lines[n]}function wr(t,n,l){var s=[],f=n.line;return t.iter(n.line,l.line+1,function(g){var b=g.text;f==l.line&&(b=b.slice(0,l.ch)),f==n.line&&(b=b.slice(n.ch)),s.push(b),++f}),s}function ji(t,n,l){var s=[];return t.iter(n,l,function(f){s.push(f.text)}),s}function kr(t,n){var l=n-t.height;if(l)for(var s=t;s;s=s.parent)s.height+=l}function O(t){if(t.parent==null)return null;for(var n=t.parent,l=Pe(n.lines,t),s=n.parent;s;n=s,s=s.parent)for(var f=0;s.children[f]!=n;++f)l+=s.children[f].chunkSize();return l+n.first}function z(t,n){var l=t.first;e:do{for(var s=0;s<t.children.length;++s){var f=t.children[s],g=f.height;if(n<g){t=f;continue e}n-=g,l+=f.chunkSize()}return l}while(!t.lines);for(var b=0;b<t.lines.length;++b){var w=t.lines[b],k=w.height;if(n<k)break;n-=k}return l+b}function me(t,n){return n>=t.first&&n<t.first+t.size}function xe(t,n){return String(t.lineNumberFormatter(n+t.firstLineNumber))}function fe(t,n,l){if(l===void 0&&(l=null),!(this instanceof fe))return new fe(t,n,l);this.line=t,this.ch=n,this.sticky=l}function Ce(t,n){return t.line-n.line||t.ch-n.ch}function it(t,n){return t.sticky==n.sticky&&Ce(t,n)==0}function It(t){return fe(t.line,t.ch)}function ir(t,n){return Ce(t,n)<0?n:t}function qi(t,n){return Ce(t,n)<0?t:n}function du(t,n){return Math.max(t.first,Math.min(n,t.first+t.size-1))}function He(t,n){if(n.line<t.first)return fe(t.first,0);var l=t.first+t.size-1;return n.line>l?fe(l,Ne(t,l).text.length):hu(n,Ne(t,n.line).text.length)}function hu(t,n){var l=t.ch;return l==null||l>n?fe(t.line,n):l<0?fe(t.line,0):t}function gu(t,n){for(var l=[],s=0;s<n.length;s++)l[s]=He(t,n[s]);return l}var So=function(t,n){this.state=t,this.lookAhead=n},Br=function(t,n,l,s){this.state=n,this.doc=t,this.line=l,this.maxLookAhead=s||0,this.baseTokens=null,this.baseTokenPos=1};Br.prototype.lookAhead=function(t){var n=this.doc.getLine(this.line+t);return n!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),n},Br.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Br.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Br.fromSaved=function(t,n,l){return n instanceof So?new Br(t,Or(t.mode,n.state),l,n.lookAhead):new Br(t,Or(t.mode,n),l)},Br.prototype.save=function(t){var n=t!==!1?Or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new So(n,this.maxLookAhead):n};function mu(t,n,l,s){var f=[t.state.modeGen],g={};Co(t,n.text,t.doc.mode,l,function(C,P){return f.push(C,P)},g,s);for(var b=l.state,w=function(C){l.baseTokens=f;var P=t.state.overlays[C],R=1,Y=0;l.state=!0,Co(t,n.text,P.mode,l,function(a,u){for(var p=R;Y<a;){var h=f[R];h>a&&f.splice(R,1,a,f[R+1],h),R+=2,Y=Math.min(a,h)}if(u)if(P.opaque)f.splice(p,R-p,a,"overlay "+u),R=p+2;else for(;p<R;p+=2){var v=f[p+1];f[p+1]=(v?v+" ":"")+"overlay "+u}},g),l.state=b,l.baseTokens=null,l.baseTokenPos=1},k=0;k<t.state.overlays.length;++k)w(k);return{styles:f,classes:g.bgClass||g.textClass?g:null}}function As(t,n,l){if(!n.styles||n.styles[0]!=t.state.modeGen){var s=Jn(t,O(n)),f=n.text.length>t.options.maxHighlightLength&&Or(t.doc.mode,s.state),g=mu(t,n,s);f&&(s.state=f),n.stateAfter=s.save(!f),n.styles=g.styles,g.classes?n.styleClasses=g.classes:n.styleClasses&&(n.styleClasses=null),l===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return n.styles}function Jn(t,n,l){var s=t.doc,f=t.display;if(!s.mode.startState)return new Br(s,!0,n);var g=yc(t,n,l),b=g>s.first&&Ne(s,g-1).stateAfter,w=b?Br.fromSaved(s,b,g):new Br(s,xr(s.mode),g);return s.iter(g,n,function(k){Os(t,k.text,w);var C=w.line;k.stateAfter=C==n-1||C%5==0||C>=f.viewFrom&&C<f.viewTo?w.save():null,w.nextLine()}),l&&(s.modeFrontier=w.line),w}function Os(t,n,l,s){var f=t.doc.mode,g=new $t(n,t.options.tabSize,l);for(g.start=g.pos=s||0,n==""&&Wi(f,l.state);!g.eol();)ei(f,g,l.state),g.start=g.pos}function Wi(t,n){if(t.blankLine)return t.blankLine(n);if(t.innerMode){var l=Ri(t,n);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function ei(t,n,l,s){for(var f=0;f<10;f++){s&&(s[0]=Ri(t,l).mode);var g=t.token(n,l);if(n.pos>n.start)return g}throw new Error("Mode "+t.name+" failed to advance stream.")}var vu=function(t,n,l){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=n||null,this.state=l};function yu(t,n,l,s){var f=t.doc,g=f.mode,b;n=He(f,n);var w=Ne(f,n.line),k=Jn(t,n.line,l),C=new $t(w.text,t.options.tabSize,k),P;for(s&&(P=[]);(s||C.pos<n.ch)&&!C.eol();)C.start=C.pos,b=ei(g,C,k.state),s&&P.push(new vu(C,b,Or(f.mode,k.state)));return s?P:new vu(C,b,k.state)}function Ns(t,n){if(t)for(;;){var l=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;t=t.slice(0,l.index)+t.slice(l.index+l[0].length);var s=l[1]?"bgClass":"textClass";n[s]==null?n[s]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(n[s])||(n[s]+=" "+l[2])}return t}function Co(t,n,l,s,f,g,b){var w=l.flattenSpans;w==null&&(w=t.options.flattenSpans);var k=0,C=null,P=new $t(n,t.options.tabSize,s),R,Y=t.options.addModeClass&&[null];for(n==""&&Ns(Wi(l,s.state),g);!P.eol();){if(P.pos>t.options.maxHighlightLength?(w=!1,b&&Os(t,n,s,P.pos),P.pos=n.length,R=null):R=Ns(ei(l,P,s.state,Y),g),Y){var a=Y[0].name;a&&(R="m-"+(R?a+" "+R:a))}if(!w||C!=R){for(;k<P.start;)k=Math.min(P.start,k+5e3),f(k,C);C=R}P.start=P.pos}for(;k<P.pos;){var u=Math.min(P.pos,k+5e3);f(u,C),k=u}}function yc(t,n,l){for(var s,f,g=t.doc,b=l?-1:n-(t.doc.mode.innerMode?1e3:100),w=n;w>b;--w){if(w<=g.first)return g.first;var k=Ne(g,w-1),C=k.stateAfter;if(C&&(!l||w+(C instanceof So?C.lookAhead:0)<=g.modeFrontier))return w;var P=Ge(k.text,null,t.options.tabSize);(f==null||s>P)&&(f=w-1,s=P)}return f}function bu(t,n){if(t.modeFrontier=Math.min(t.modeFrontier,n),!(t.highlightFrontier<n-10)){for(var l=t.first,s=n-1;s>l;s--){var f=Ne(t,s).stateAfter;if(f&&(!(f instanceof So)||s+f.lookAhead<n)){l=s+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,l)}}var _a=!1,_r=!1;function Zt(){_a=!0}function Sa(){_r=!0}function Bi(t,n,l){this.marker=t,this.from=n,this.to=l}function Hi(t,n){if(t)for(var l=0;l<t.length;++l){var s=t[l];if(s.marker==n)return s}}function bc(t,n){for(var l,s=0;s<t.length;++s)t[s]!=n&&(l||(l=[])).push(t[s]);return l}function xc(t,n,l){var s=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));s&&t.markedSpans&&s.has(t.markedSpans)?t.markedSpans.push(n):(t.markedSpans=t.markedSpans?t.markedSpans.concat([n]):[n],s&&s.add(t.markedSpans)),n.marker.attachLine(t)}function wc(t,n,l){var s;if(t)for(var f=0;f<t.length;++f){var g=t[f],b=g.marker,w=g.from==null||(b.inclusiveLeft?g.from<=n:g.from<n);if(w||g.from==n&&b.type=="bookmark"&&(!l||!g.marker.insertLeft)){var k=g.to==null||(b.inclusiveRight?g.to>=n:g.to>n);(s||(s=[])).push(new Bi(b,g.from,k?null:g.to))}}return s}function xu(t,n,l){var s;if(t)for(var f=0;f<t.length;++f){var g=t[f],b=g.marker,w=g.to==null||(b.inclusiveRight?g.to>=n:g.to>n);if(w||g.from==n&&b.type=="bookmark"&&(!l||g.marker.insertLeft)){var k=g.from==null||(b.inclusiveLeft?g.from<=n:g.from<n);(s||(s=[])).push(new Bi(b,k?null:g.from-n,g.to==null?null:g.to-n))}}return s}function To(t,n){if(n.full)return null;var l=me(t,n.from.line)&&Ne(t,n.from.line).markedSpans,s=me(t,n.to.line)&&Ne(t,n.to.line).markedSpans;if(!l&&!s)return null;var f=n.from.ch,g=n.to.ch,b=Ce(n.from,n.to)==0,w=wc(l,f,b),k=xu(s,g,b),C=n.text.length==1,P=qe(n.text).length+(C?f:0);if(w)for(var R=0;R<w.length;++R){var Y=w[R];if(Y.to==null){var a=Hi(k,Y.marker);a?C&&(Y.to=a.to==null?null:a.to+P):Y.to=f}}if(k)for(var u=0;u<k.length;++u){var p=k[u];if(p.to!=null&&(p.to+=P),p.from==null){var h=Hi(w,p.marker);h||(p.from=P,C&&(w||(w=[])).push(p))}else p.from+=P,C&&(w||(w=[])).push(p)}w&&(w=Es(w)),k&&k!=w&&(k=Es(k));var v=[w];if(!C){var y=n.text.length-2,_;if(y>0&&w)for(var L=0;L<w.length;++L)w[L].to==null&&(_||(_=[])).push(new Bi(w[L].marker,null,null));for(var N=0;N<y;++N)v.push(_);v.push(k)}return v}function Es(t){for(var n=0;n<t.length;++n){var l=t[n];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&t.splice(n--,1)}return t.length?t:null}function ti(t,n,l){var s=null;if(t.iter(n.line,l.line+1,function(a){if(a.markedSpans)for(var u=0;u<a.markedSpans.length;++u){var p=a.markedSpans[u].marker;p.readOnly&&(!s||Pe(s,p)==-1)&&(s||(s=[])).push(p)}}),!s)return null;for(var f=[{from:n,to:l}],g=0;g<s.length;++g)for(var b=s[g],w=b.find(0),k=0;k<f.length;++k){var C=f[k];if(!(Ce(C.to,w.from)<0||Ce(C.from,w.to)>0)){var P=[k,1],R=Ce(C.from,w.from),Y=Ce(C.to,w.to);(R<0||!b.inclusiveLeft&&!R)&&P.push({from:C.from,to:w.from}),(Y>0||!b.inclusiveRight&&!Y)&&P.push({from:w.to,to:C.to}),f.splice.apply(f,P),k+=P.length-3}}return f}function Ms(t){var n=t.markedSpans;if(n){for(var l=0;l<n.length;++l)n[l].marker.detachLine(t);t.markedSpans=null}}function Ps(t,n){if(n){for(var l=0;l<n.length;++l)n[l].marker.attachLine(t);t.markedSpans=n}}function Ui(t){return t.inclusiveLeft?-1:0}function $o(t){return t.inclusiveRight?1:0}function Sr(t,n){var l=t.lines.length-n.lines.length;if(l!=0)return l;var s=t.find(),f=n.find(),g=Ce(s.from,f.from)||Ui(t)-Ui(n);if(g)return-g;var b=Ce(s.to,f.to)||$o(t)-$o(n);return b||n.id-t.id}function Hr(t,n){var l=_r&&t.markedSpans,s;if(l)for(var f=void 0,g=0;g<l.length;++g)f=l[g],f.marker.collapsed&&(n?f.from:f.to)==null&&(!s||Sr(s,f.marker)<0)&&(s=f.marker);return s}function Ca(t){return Hr(t,!0)}function ri(t){return Hr(t,!1)}function Ds(t,n){var l=_r&&t.markedSpans,s;if(l)for(var f=0;f<l.length;++f){var g=l[f];g.marker.collapsed&&(g.from==null||g.from<n)&&(g.to==null||g.to>n)&&(!s||Sr(s,g.marker)<0)&&(s=g.marker)}return s}function Ta(t,n,l,s,f){var g=Ne(t,n),b=_r&&g.markedSpans;if(b)for(var w=0;w<b.length;++w){var k=b[w];if(k.marker.collapsed){var C=k.marker.find(0),P=Ce(C.from,l)||Ui(k.marker)-Ui(f),R=Ce(C.to,s)||$o(k.marker)-$o(f);if(!(P>=0&&R<=0||P<=0&&R>=0)&&(P<=0&&(k.marker.inclusiveRight&&f.inclusiveLeft?Ce(C.to,l)>=0:Ce(C.to,l)>0)||P>=0&&(k.marker.inclusiveRight&&f.inclusiveLeft?Ce(C.from,s)<=0:Ce(C.from,s)<0)))return!0}}}function Jt(t){for(var n;n=Ca(t);)t=n.find(-1,!0).line;return t}function wu(t){for(var n;n=ri(t);)t=n.find(1,!0).line;return t}function Is(t){for(var n,l;n=ri(t);)t=n.find(1,!0).line,(l||(l=[])).push(t);return l}function Lo(t,n){var l=Ne(t,n),s=Jt(l);return l==s?n:O(s)}function ku(t,n){if(n>t.lastLine())return n;var l=Ne(t,n),s;if(!Tn(t,l))return n;for(;s=ri(l);)l=s.find(1,!0).line;return O(l)+1}function Tn(t,n){var l=_r&&n.markedSpans;if(l){for(var s=void 0,f=0;f<l.length;++f)if(s=l[f],!!s.marker.collapsed){if(s.from==null)return!0;if(!s.marker.widgetNode&&s.from==0&&s.marker.inclusiveLeft&&Ao(t,n,s))return!0}}}function Ao(t,n,l){if(l.to==null){var s=l.marker.find(1,!0);return Ao(t,s.line,Hi(s.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==n.text.length)return!0;for(var f=void 0,g=0;g<n.markedSpans.length;++g)if(f=n.markedSpans[g],f.marker.collapsed&&!f.marker.widgetNode&&f.from==l.to&&(f.to==null||f.to!=l.from)&&(f.marker.inclusiveLeft||l.marker.inclusiveRight)&&Ao(t,n,f))return!0}function Nr(t){t=Jt(t);for(var n=0,l=t.parent,s=0;s<l.lines.length;++s){var f=l.lines[s];if(f==t)break;n+=f.height}for(var g=l.parent;g;l=g,g=l.parent)for(var b=0;b<g.children.length;++b){var w=g.children[b];if(w==l)break;n+=w.height}return n}function Oo(t){if(t.height==0)return 0;for(var n=t.text.length,l,s=t;l=Ca(s);){var f=l.find(0,!0);s=f.from.line,n+=f.from.ch-f.to.ch}for(s=t;l=ri(s);){var g=l.find(0,!0);n-=s.text.length-g.from.ch,s=g.to.line,n+=s.text.length-g.to.ch}return n}function $a(t){var n=t.display,l=t.doc;n.maxLine=Ne(l,l.first),n.maxLineLength=Oo(n.maxLine),n.maxLineChanged=!0,l.iter(function(s){var f=Oo(s);f>n.maxLineLength&&(n.maxLineLength=f,n.maxLine=s)})}var Ki=function(t,n,l){this.text=t,Ps(this,n),this.height=l?l(this):1};Ki.prototype.lineNo=function(){return O(this)},br(Ki);function _u(t,n,l,s){t.text=n,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),Ms(t),Ps(t,l);var f=s?s(t):1;f!=t.height&&kr(t,f)}function Su(t){t.parent=null,Ms(t)}var La={},Cu={};function $n(t,n){if(!t||/^\s*$/.test(t))return null;var l=n.addModeClass?Cu:La;return l[t]||(l[t]=t.replace(/\S+/g,"cm-$&"))}function Ur(t,n){var l=ve("span",null,null,S?"padding-right: .1px":null),s={pre:ve("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};n.measure={};for(var f=0;f<=(n.rest?n.rest.length:0);f++){var g=f?n.rest[f-1]:n.line,b=void 0;s.pos=0,s.addToken=$u,cr(t.display.measure)&&(b=et(g,t.doc.direction))&&(s.addToken=Fs(s.addToken,b)),s.map=[];var w=n!=t.display.externalMeasured&&O(g);zs(g,s,As(t,g,w)),g.styleClasses&&(g.styleClasses.bgClass&&(s.bgClass=Ae(g.styleClasses.bgClass,s.bgClass||"")),g.styleClasses.textClass&&(s.textClass=Ae(g.styleClasses.textClass,s.textClass||""))),s.map.length==0&&s.map.push(0,0,s.content.appendChild(Fi(t.display.measure))),f==0?(n.measure.map=s.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(s.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(S){var k=s.content.lastChild;(/\bcm-tab\b/.test(k.className)||k.querySelector&&k.querySelector(".cm-tab"))&&(s.content.className="cm-tab-wrap-hack")}return Ct(t,"renderLine",t,n.line,s.pre),s.pre.className&&(s.textClass=Ae(s.pre.className,s.textClass||"")),s}function Tu(t){var n=$("span","\u2022","cm-invalidchar");return n.title="\\u"+t.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function $u(t,n,l,s,f,g,b){if(n){var w=t.splitSpaces?Aa(n,t.trailingSpace):n,k=t.cm.state.specialChars,C=!1,P;if(!k.test(n))t.col+=n.length,P=document.createTextNode(w),t.map.push(t.pos,t.pos+n.length,P),m&&x<9&&(C=!0),t.pos+=n.length;else{P=document.createDocumentFragment();for(var R=0;;){k.lastIndex=R;var Y=k.exec(n),a=Y?Y.index-R:n.length-R;if(a){var u=document.createTextNode(w.slice(R,R+a));m&&x<9?P.appendChild($("span",[u])):P.appendChild(u),t.map.push(t.pos,t.pos+a,u),t.col+=a,t.pos+=a}if(!Y)break;R+=a+1;var p=void 0;if(Y[0]=="	"){var h=t.cm.options.tabSize,v=h-t.col%h;p=P.appendChild($("span",qt(v),"cm-tab")),p.setAttribute("role","presentation"),p.setAttribute("cm-text","	"),t.col+=v}else Y[0]=="\r"||Y[0]==`
`?(p=P.appendChild($("span",Y[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),p.setAttribute("cm-text",Y[0]),t.col+=1):(p=t.cm.options.specialCharPlaceholder(Y[0]),p.setAttribute("cm-text",Y[0]),m&&x<9?P.appendChild($("span",[p])):P.appendChild(p),t.col+=1);t.map.push(t.pos,t.pos+1,p),t.pos++}}if(t.trailingSpace=w.charCodeAt(n.length-1)==32,l||s||f||C||g||b){var y=l||"";s&&(y+=s),f&&(y+=f);var _=$("span",[P],y,g);if(b)for(var L in b)b.hasOwnProperty(L)&&L!="style"&&L!="class"&&_.setAttribute(L,b[L]);return t.content.appendChild(_)}t.content.appendChild(P)}}function Aa(t,n){if(t.length>1&&!/  /.test(t))return t;for(var l=n,s="",f=0;f<t.length;f++){var g=t.charAt(f);g==" "&&l&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(g="\xA0"),s+=g,l=g==" "}return s}function Fs(t,n){return function(l,s,f,g,b,w,k){f=f?f+" cm-force-border":"cm-force-border";for(var C=l.pos,P=C+s.length;;){for(var R=void 0,Y=0;Y<n.length&&(R=n[Y],!(R.to>C&&R.from<=C));Y++);if(R.to>=P)return t(l,s,f,g,b,w,k);t(l,s.slice(0,R.to-C),f,g,null,w,k),g=null,s=s.slice(R.to-C),C=R.to}}}function Oa(t,n,l,s){var f=!s&&l.widgetNode;f&&t.map.push(t.pos,t.pos+n,f),!s&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",l.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=n,t.trailingSpace=!1}function zs(t,n,l){var s=t.markedSpans,f=t.text,g=0;if(!s){for(var b=1;b<l.length;b+=2)n.addToken(n,f.slice(g,g=l[b]),$n(l[b+1],n.cm.options));return}for(var w=f.length,k=0,C=1,P="",R,Y,a=0,u,p,h,v,y;;){if(a==k){u=p=h=Y="",y=null,v=null,a=1/0;for(var _=[],L=void 0,N=0;N<s.length;++N){var F=s[N],H=F.marker;if(H.type=="bookmark"&&F.from==k&&H.widgetNode)_.push(H);else if(F.from<=k&&(F.to==null||F.to>k||H.collapsed&&F.to==k&&F.from==k)){if(F.to!=null&&F.to!=k&&a>F.to&&(a=F.to,p=""),H.className&&(u+=" "+H.className),H.css&&(Y=(Y?Y+";":"")+H.css),H.startStyle&&F.from==k&&(h+=" "+H.startStyle),H.endStyle&&F.to==a&&(L||(L=[])).push(H.endStyle,F.to),H.title&&((y||(y={})).title=H.title),H.attributes)for(var M in H.attributes)(y||(y={}))[M]=H.attributes[M];H.collapsed&&(!v||Sr(v.marker,H)<0)&&(v=F)}else F.from>k&&a>F.from&&(a=F.from)}if(L)for(var X=0;X<L.length;X+=2)L[X+1]==a&&(p+=" "+L[X]);if(!v||v.from==k)for(var J=0;J<_.length;++J)Oa(n,0,_[J]);if(v&&(v.from||0)==k){if(Oa(n,(v.to==null?w+1:v.to)-k,v.marker,v.from==null),v.to==null)return;v.to==k&&(v=!1)}}if(k>=w)break;for(var ie=Math.min(w,a);;){if(P){var ye=k+P.length;if(!v){var de=ye>ie?P.slice(0,ie-k):P;n.addToken(n,de,R?R+u:u,h,k+de.length==a?p:"",Y,y)}if(ye>=ie){P=P.slice(ie-k),k=ie;break}k=ye,h=""}P=f.slice(g,g=l[C++]),R=$n(l[C++],n.cm.options)}}}function No(t,n,l){this.line=n,this.rest=Is(n),this.size=this.rest?O(qe(this.rest))-l+1:1,this.node=this.text=null,this.hidden=Tn(t,n)}function Na(t,n,l){for(var s=[],f,g=n;g<l;g=f){var b=new No(t.doc,Ne(t.doc,g),g);f=g+b.size,s.push(b)}return s}var ln=null;function kc(t){ln?ln.ops.push(t):t.ownsGroup=ln={ops:[t],delayedCallbacks:[]}}function Lu(t){var n=t.delayedCallbacks,l=0;do{for(;l<n.length;l++)n[l].call(null);for(var s=0;s<t.ops.length;s++){var f=t.ops[s];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(l<n.length)}function Ea(t,n){var l=t.ownsGroup;if(l)try{Lu(l)}finally{ln=null,n(l)}}var er=null;function Ft(t,n){var l=ur(t,n);if(l.length){var s=Array.prototype.slice.call(arguments,2),f;ln?f=ln.delayedCallbacks:er?f=er:(f=er=[],setTimeout(_c,0));for(var g=function(w){f.push(function(){return l[w].apply(null,s)})},b=0;b<l.length;++b)g(b)}}function _c(){var t=er;er=null;for(var n=0;n<t.length;++n)t[n]()}function Au(t,n,l,s){for(var f=0;f<n.changes.length;f++){var g=n.changes[f];g=="text"?Cc(t,n):g=="gutter"?Nu(t,n,l,s):g=="class"?Rs(t,n):g=="widget"&&Tc(t,n,s)}n.changes=null}function Eo(t){return t.node==t.text&&(t.node=$("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),m&&x<8&&(t.node.style.zIndex=2)),t.node}function Sc(t,n){var l=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),n.background)l?n.background.className=l:(n.background.parentNode.removeChild(n.background),n.background=null);else if(l){var s=Eo(n);n.background=s.insertBefore($("div",null,l),s.firstChild),t.display.input.setUneditable(n.background)}}function Ou(t,n){var l=t.display.externalMeasured;return l&&l.line==n.line?(t.display.externalMeasured=null,n.measure=l.measure,l.built):Ur(t,n)}function Cc(t,n){var l=n.text.className,s=Ou(t,n);n.text==n.node&&(n.node=s.pre),n.text.parentNode.replaceChild(s.pre,n.text),n.text=s.pre,s.bgClass!=n.bgClass||s.textClass!=n.textClass?(n.bgClass=s.bgClass,n.textClass=s.textClass,Rs(t,n)):l&&(n.text.className=l)}function Rs(t,n){Sc(t,n),n.line.wrapClass?Eo(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var l=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=l||""}function Nu(t,n,l,s){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var f=Eo(n);n.gutterBackground=$("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(t.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px; width: "+s.gutterTotalWidth+"px"),t.display.input.setUneditable(n.gutterBackground),f.insertBefore(n.gutterBackground,n.text)}var g=n.line.gutterMarkers;if(t.options.lineNumbers||g){var b=Eo(n),w=n.gutter=$("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?s.fixedPos:-s.gutterTotalWidth)+"px");if(w.setAttribute("aria-hidden","true"),t.display.input.setUneditable(w),b.insertBefore(w,n.text),n.line.gutterClass&&(w.className+=" "+n.line.gutterClass),t.options.lineNumbers&&(!g||!g["CodeMirror-linenumbers"])&&(n.lineNumber=w.appendChild($("div",xe(t.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+s.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),g)for(var k=0;k<t.display.gutterSpecs.length;++k){var C=t.display.gutterSpecs[k].className,P=g.hasOwnProperty(C)&&g[C];P&&w.appendChild($("div",[P],"CodeMirror-gutter-elt","left: "+s.gutterLeft[C]+"px; width: "+s.gutterWidth[C]+"px"))}}}function Tc(t,n,l){n.alignable&&(n.alignable=null);for(var s=ne("CodeMirror-linewidget"),f=n.node.firstChild,g=void 0;f;f=g)g=f.nextSibling,s.test(f.className)&&n.node.removeChild(f);Eu(t,n,l)}function $c(t,n,l,s){var f=Ou(t,n);return n.text=n.node=f.pre,f.bgClass&&(n.bgClass=f.bgClass),f.textClass&&(n.textClass=f.textClass),Rs(t,n),Nu(t,n,l,s),Eu(t,n,s),n.node}function Eu(t,n,l){if(js(t,n.line,n,l,!0),n.rest)for(var s=0;s<n.rest.length;s++)js(t,n.rest[s],n,l,!1)}function js(t,n,l,s,f){if(n.widgets)for(var g=Eo(l),b=0,w=n.widgets;b<w.length;++b){var k=w[b],C=$("div",[k.node],"CodeMirror-linewidget"+(k.className?" "+k.className:""));k.handleMouseEvents||C.setAttribute("cm-ignore-events","true"),Lc(k,C,l,s),t.display.input.setUneditable(C),f&&k.above?g.insertBefore(C,l.gutter||l.text):g.appendChild(C),Ft(k,"redraw")}}function Lc(t,n,l,s){if(t.noHScroll){(l.alignable||(l.alignable=[])).push(n);var f=s.wrapperWidth;n.style.left=s.fixedPos+"px",t.coverGutter||(f-=s.gutterTotalWidth,n.style.paddingLeft=s.gutterTotalWidth+"px"),n.style.width=f+"px"}t.coverGutter&&(n.style.zIndex=5,n.style.position="relative",t.noHScroll||(n.style.marginLeft=-s.gutterTotalWidth+"px"))}function Vi(t){if(t.height!=null)return t.height;var n=t.doc.cm;if(!n)return 0;if(!q(document.body,t.node)){var l="position: relative;";t.coverGutter&&(l+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),t.noHScroll&&(l+="width: "+n.display.wrapper.clientWidth+"px;"),pe(n.display.measure,$("div",[t.node],null,l))}return t.height=t.node.parentNode.offsetHeight}function dr(t,n){for(var l=Lr(n);l!=t.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==t.sizer&&l!=t.mover)return!0}function ni(t){return t.lineSpace.offsetTop}function qs(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function ii(t){if(t.cachedPaddingH)return t.cachedPaddingH;var n=pe(t.measure,$("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,s={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(s.left)&&!isNaN(s.right)&&(t.cachedPaddingH=s),s}function Kt(t){return Pt-t.display.nativeBarWidth}function un(t){return t.display.scroller.clientWidth-Kt(t)-t.display.barWidth}function Ws(t){return t.display.scroller.clientHeight-Kt(t)-t.display.barHeight}function Ac(t,n,l){var s=t.options.lineWrapping,f=s&&un(t);if(!n.measure.heights||s&&n.measure.width!=f){var g=n.measure.heights=[];if(s){n.measure.width=f;for(var b=n.text.firstChild.getClientRects(),w=0;w<b.length-1;w++){var k=b[w],C=b[w+1];Math.abs(k.bottom-C.bottom)>2&&g.push((k.bottom+C.top)/2-l.top)}}g.push(l.bottom-l.top)}}function Bs(t,n,l){if(t.line==n)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var s=0;s<t.rest.length;s++)if(t.rest[s]==n)return{map:t.measure.maps[s],cache:t.measure.caches[s]};for(var f=0;f<t.rest.length;f++)if(O(t.rest[f])>l)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function Mu(t,n){n=Jt(n);var l=O(n),s=t.display.externalMeasured=new No(t.doc,n,l);s.lineN=l;var f=s.built=Ur(t,s);return s.text=f.pre,pe(t.display.lineMeasure,f.pre),s}function Hs(t,n,l,s){return Kr(t,oi(t,n),l,s)}function Mo(t,n){if(n>=t.display.viewFrom&&n<t.display.viewTo)return t.display.view[ui(t,n)];var l=t.display.externalMeasured;if(l&&n>=l.lineN&&n<l.lineN+l.size)return l}function oi(t,n){var l=O(n),s=Mo(t,l);s&&!s.text?s=null:s&&s.changes&&(Au(t,s,l,za(t)),t.curOp.forceUpdate=!0),s||(s=Mu(t,n));var f=Bs(s,n,l);return{line:n,view:s,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function Kr(t,n,l,s,f){n.before&&(l=-1);var g=l+(s||""),b;return n.cache.hasOwnProperty(g)?b=n.cache[g]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(Ac(t,n.view,n.rect),n.hasHeights=!0),b=Du(t,n,l,s),b.bogus||(n.cache[g]=b)),{left:b.left,right:b.right,top:f?b.rtop:b.top,bottom:f?b.rbottom:b.bottom}}var Ma={left:0,right:0,top:0,bottom:0};function Pa(t,n,l){for(var s,f,g,b,w,k,C=0;C<t.length;C+=3)if(w=t[C],k=t[C+1],n<w?(f=0,g=1,b="left"):n<k?(f=n-w,g=f+1):(C==t.length-3||n==k&&t[C+3]>n)&&(g=k-w,f=g-1,n>=k&&(b="right")),f!=null){if(s=t[C+2],w==k&&l==(s.insertLeft?"left":"right")&&(b=l),l=="left"&&f==0)for(;C&&t[C-2]==t[C-3]&&t[C-1].insertLeft;)s=t[(C-=3)+2],b="left";if(l=="right"&&f==k-w)for(;C<t.length-3&&t[C+3]==t[C+4]&&!t[C+5].insertLeft;)s=t[(C+=3)+2],b="right";break}return{node:s,start:f,end:g,collapse:b,coverStart:w,coverEnd:k}}function Pu(t,n){var l=Ma;if(n=="left")for(var s=0;s<t.length&&(l=t[s]).left==l.right;s++);else for(var f=t.length-1;f>=0&&(l=t[f]).left==l.right;f--);return l}function Du(t,n,l,s){var f=Pa(n.map,l,s),g=f.node,b=f.start,w=f.end,k=f.collapse,C;if(g.nodeType==3){for(var P=0;P<4;P++){for(;b&&Be(n.line.text.charAt(f.coverStart+b));)--b;for(;f.coverStart+w<f.coverEnd&&Be(n.line.text.charAt(f.coverStart+w));)++w;if(m&&x<9&&b==0&&w==f.coverEnd-f.coverStart?C=g.parentNode.getBoundingClientRect():C=Pu(se(g,b,w).getClientRects(),s),C.left||C.right||b==0)break;w=b,b=b-1,k="right"}m&&x<11&&(C=Da(t.display.measure,C))}else{b>0&&(k=s="right");var R;t.options.lineWrapping&&(R=g.getClientRects()).length>1?C=R[s=="right"?R.length-1:0]:C=g.getBoundingClientRect()}if(m&&x<9&&!b&&(!C||!C.left&&!C.right)){var Y=g.parentNode.getClientRects()[0];Y?C={left:Y.left,right:Y.left+cn(t.display),top:Y.top,bottom:Y.bottom}:C=Ma}for(var a=C.top-n.rect.top,u=C.bottom-n.rect.top,p=(a+u)/2,h=n.view.measure.heights,v=0;v<h.length-1&&!(p<h[v]);v++);var y=v?h[v-1]:0,_=h[v],L={left:(k=="right"?C.right:C.left)-n.rect.left,right:(k=="left"?C.left:C.right)-n.rect.left,top:y,bottom:_};return!C.left&&!C.right&&(L.bogus=!0),t.options.singleCursorHeightPerLine||(L.rtop=a,L.rbottom=u),L}function Da(t,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ka(t))return n;var l=screen.logicalXDPI/screen.deviceXDPI,s=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*l,right:n.right*l,top:n.top*s,bottom:n.bottom*s}}function Ia(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var n=0;n<t.rest.length;n++)t.measure.caches[n]={}}function Us(t){t.display.externalMeasure=null,Z(t.display.lineMeasure);for(var n=0;n<t.display.view.length;n++)Ia(t.display.view[n])}function Gi(t){Us(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Iu(t){return T&&K?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function Fu(t){return T&&K?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function Er(t){var n=Jt(t),l=n.widgets,s=0;if(l)for(var f=0;f<l.length;++f)l[f].above&&(s+=Vi(l[f]));return s}function Ln(t,n,l,s,f){if(!f){var g=Er(n);l.top+=g,l.bottom+=g}if(s=="line")return l;s||(s="local");var b=Nr(n);if(s=="local"?b+=ni(t.display):b-=t.display.viewOffset,s=="page"||s=="window"){var w=t.display.lineSpace.getBoundingClientRect();b+=w.top+(s=="window"?0:Fu(Ve(t)));var k=w.left+(s=="window"?0:Iu(Ve(t)));l.left+=k,l.right+=k}return l.top+=b,l.bottom+=b,l}function Ks(t,n,l){if(l=="div")return n;var s=n.left,f=n.top;if(l=="page")s-=Iu(Ve(t)),f-=Fu(Ve(t));else if(l=="local"||!l){var g=t.display.sizer.getBoundingClientRect();s+=g.left,f+=g.top}var b=t.display.lineSpace.getBoundingClientRect();return{left:s-b.left,top:f-b.top}}function Po(t,n,l,s,f){return s||(s=Ne(t.doc,n.line)),Ln(t,s,Hs(t,s,n.ch,f),l)}function Fr(t,n,l,s,f,g){s=s||Ne(t.doc,n.line),f||(f=oi(t,s));function b(u,p){var h=Kr(t,f,u,p?"right":"left",g);return p?h.left=h.right:h.right=h.left,Ln(t,s,h,l)}var w=et(s,t.doc.direction),k=n.ch,C=n.sticky;if(k>=s.text.length?(k=s.text.length,C="before"):k<=0&&(k=0,C="after"),!w)return b(C=="before"?k-1:k,C=="before");function P(u,p,h){var v=w[p],y=v.level==1;return b(h?u-1:u,y!=h)}var R=_n(w,k,C),Y=an,a=P(k,R,C=="before");return Y!=null&&(a.other=P(k,Y,C!="before")),a}function zu(t,n){var l=0;n=He(t.doc,n),t.options.lineWrapping||(l=cn(t.display)*n.ch);var s=Ne(t.doc,n.line),f=Nr(s)+ni(t.display);return{left:l,right:l,top:f,bottom:f+s.height}}function fn(t,n,l,s,f){var g=fe(t,n,l);return g.xRel=f,s&&(g.outside=s),g}function Qi(t,n,l){var s=t.doc;if(l+=t.display.viewOffset,l<0)return fn(s.first,0,null,-1,-1);var f=z(s,l),g=s.first+s.size-1;if(f>g)return fn(s.first+s.size-1,Ne(s,g).text.length,null,1,1);n<0&&(n=0);for(var b=Ne(s,f);;){var w=ju(t,b,f,n,l),k=Ds(b,w.ch+(w.xRel>0||w.outside>0?1:0));if(!k)return w;var C=k.find(1);if(C.line==f)return C;b=Ne(s,f=C.line)}}function Fa(t,n,l,s){s-=Er(n);var f=n.text.length,g=Wt(function(b){return Kr(t,l,b-1).bottom<=s},f,0);return f=Wt(function(b){return Kr(t,l,b).top>s},g,f),{begin:g,end:f}}function Ru(t,n,l,s){l||(l=oi(t,n));var f=Ln(t,n,Kr(t,l,s),"line").top;return Fa(t,n,l,f)}function Do(t,n,l,s){return t.bottom<=l?!1:t.top>l?!0:(s?t.left:t.right)>n}function ju(t,n,l,s,f){f-=Nr(n);var g=oi(t,n),b=Er(n),w=0,k=n.text.length,C=!0,P=et(n,t.doc.direction);if(P){var R=(t.options.lineWrapping?mt:qu)(t,n,l,g,P,s,f);C=R.level!=1,w=C?R.from:R.to-1,k=C?R.to:R.from-1}var Y=null,a=null,u=Wt(function(N){var F=Kr(t,g,N);return F.top+=b,F.bottom+=b,Do(F,s,f,!1)?(F.top<=f&&F.left<=s&&(Y=N,a=F),!0):!1},w,k),p,h,v=!1;if(a){var y=s-a.left<a.right-s,_=y==C;u=Y+(_?0:1),h=_?"after":"before",p=y?a.left:a.right}else{!C&&(u==k||u==w)&&u++,h=u==0?"after":u==n.text.length?"before":Kr(t,g,u-(C?1:0)).bottom+b<=f==C?"after":"before";var L=Fr(t,fe(l,u,h),"line",n,g);p=L.left,v=f<L.top?-1:f>=L.bottom?1:0}return u=ht(n.text,u,1),fn(l,u,h,v,s-p)}function qu(t,n,l,s,f,g,b){var w=Wt(function(R){var Y=f[R],a=Y.level!=1;return Do(Fr(t,fe(l,a?Y.to:Y.from,a?"before":"after"),"line",n,s),g,b,!0)},0,f.length-1),k=f[w];if(w>0){var C=k.level!=1,P=Fr(t,fe(l,C?k.from:k.to,C?"after":"before"),"line",n,s);Do(P,g,b,!0)&&P.top>b&&(k=f[w-1])}return k}function mt(t,n,l,s,f,g,b){var w=Fa(t,n,s,b),k=w.begin,C=w.end;/\s/.test(n.text.charAt(C-1))&&C--;for(var P=null,R=null,Y=0;Y<f.length;Y++){var a=f[Y];if(!(a.from>=C||a.to<=k)){var u=a.level!=1,p=Kr(t,s,u?Math.min(C,a.to)-1:Math.max(k,a.from)).right,h=p<g?g-p+1e9:p-g;(!P||R>h)&&(P=a,R=h)}}return P||(P=f[f.length-1]),P.from<k&&(P={from:k,to:P.to,level:P.level}),P.to>C&&(P={from:P.from,to:C,level:P.level}),P}var ai;function si(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(ai==null){ai=$("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)ai.appendChild(document.createTextNode("x")),ai.appendChild($("br"));ai.appendChild(document.createTextNode("x"))}pe(t.measure,ai);var l=ai.offsetHeight/50;return l>3&&(t.cachedTextHeight=l),Z(t.measure),l||1}function cn(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var n=$("span","xxxxxxxxxx"),l=$("pre",[n],"CodeMirror-line-like");pe(t.measure,l);var s=n.getBoundingClientRect(),f=(s.right-s.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function za(t){for(var n=t.display,l={},s={},f=n.gutters.clientLeft,g=n.gutters.firstChild,b=0;g;g=g.nextSibling,++b){var w=t.display.gutterSpecs[b].className;l[w]=g.offsetLeft+g.clientLeft+f,s[w]=g.clientWidth}return{fixedPos:Io(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:l,gutterWidth:s,wrapperWidth:n.wrapper.clientWidth}}function Io(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Vs(t){var n=si(t.display),l=t.options.lineWrapping,s=l&&Math.max(5,t.display.scroller.clientWidth/cn(t.display)-3);return function(f){if(Tn(t.doc,f))return 0;var g=0;if(f.widgets)for(var b=0;b<f.widgets.length;b++)f.widgets[b].height&&(g+=f.widgets[b].height);return l?g+(Math.ceil(f.text.length/s)||1)*n:g+n}}function Gs(t){var n=t.doc,l=Vs(t);n.iter(function(s){var f=l(s);f!=s.height&&kr(s,f)})}function li(t,n,l,s){var f=t.display;if(!l&&Lr(n).getAttribute("cm-not-content")=="true")return null;var g,b,w=f.lineSpace.getBoundingClientRect();try{g=n.clientX-w.left,b=n.clientY-w.top}catch{return null}var k=Qi(t,g,b),C;if(s&&k.xRel>0&&(C=Ne(t.doc,k.line).text).length==k.ch){var P=Ge(C,C.length,t.options.tabSize)-C.length;k=fe(k.line,Math.max(0,Math.round((g-ii(t.display).left)/cn(t.display))-P))}return k}function ui(t,n){if(n>=t.display.viewTo||(n-=t.display.viewFrom,n<0))return null;for(var l=t.display.view,s=0;s<l.length;s++)if(n-=l[s].size,n<0)return s}function or(t,n,l,s){n==null&&(n=t.doc.first),l==null&&(l=t.doc.first+t.doc.size),s||(s=0);var f=t.display;if(s&&l<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>n)&&(f.updateLineNumbers=n),t.curOp.viewChanged=!0,n>=f.viewTo)_r&&Lo(t.doc,n)<f.viewTo&&dn(t);else if(l<=f.viewFrom)_r&&ku(t.doc,l+s)>f.viewFrom?dn(t):(f.viewFrom+=s,f.viewTo+=s);else if(n<=f.viewFrom&&l>=f.viewTo)dn(t);else if(n<=f.viewFrom){var g=Ra(t,l,l+s,1);g?(f.view=f.view.slice(g.index),f.viewFrom=g.lineN,f.viewTo+=s):dn(t)}else if(l>=f.viewTo){var b=Ra(t,n,n,-1);b?(f.view=f.view.slice(0,b.index),f.viewTo=b.lineN):dn(t)}else{var w=Ra(t,n,n,-1),k=Ra(t,l,l+s,1);w&&k?(f.view=f.view.slice(0,w.index).concat(Na(t,w.lineN,k.lineN)).concat(f.view.slice(k.index)),f.viewTo+=s):dn(t)}var C=f.externalMeasured;C&&(l<C.lineN?C.lineN+=s:n<C.lineN+C.size&&(f.externalMeasured=null))}function pn(t,n,l){t.curOp.viewChanged=!0;var s=t.display,f=t.display.externalMeasured;if(f&&n>=f.lineN&&n<f.lineN+f.size&&(s.externalMeasured=null),!(n<s.viewFrom||n>=s.viewTo)){var g=s.view[ui(t,n)];if(g.node!=null){var b=g.changes||(g.changes=[]);Pe(b,l)==-1&&b.push(l)}}}function dn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function Ra(t,n,l,s){var f=ui(t,n),g,b=t.display.view;if(!_r||l==t.doc.first+t.doc.size)return{index:f,lineN:l};for(var w=t.display.viewFrom,k=0;k<f;k++)w+=b[k].size;if(w!=n){if(s>0){if(f==b.length-1)return null;g=w+b[f].size-n,f++}else g=w-n;n+=g,l+=g}for(;Lo(t.doc,l)!=l;){if(f==(s<0?0:b.length-1))return null;l+=s*b[f-(s<0?1:0)].size,f+=s}return{index:f,lineN:l}}function Oc(t,n,l){var s=t.display,f=s.view;f.length==0||n>=s.viewTo||l<=s.viewFrom?(s.view=Na(t,n,l),s.viewFrom=n):(s.viewFrom>n?s.view=Na(t,n,s.viewFrom).concat(s.view):s.viewFrom<n&&(s.view=s.view.slice(ui(t,n))),s.viewFrom=n,s.viewTo<l?s.view=s.view.concat(Na(t,s.viewTo,l)):s.viewTo>l&&(s.view=s.view.slice(0,ui(t,l)))),s.viewTo=l}function Wu(t){for(var n=t.display.view,l=0,s=0;s<n.length;s++){var f=n[s];!f.hidden&&(!f.node||f.changes)&&++l}return l}function fi(t){t.display.input.showSelection(t.display.input.prepareSelection())}function ja(t,n){n===void 0&&(n=!0);var l=t.doc,s={},f=s.cursors=document.createDocumentFragment(),g=s.selection=document.createDocumentFragment(),b=t.options.$customCursor;b&&(n=!0);for(var w=0;w<l.sel.ranges.length;w++)if(!(!n&&w==l.sel.primIndex)){var k=l.sel.ranges[w];if(!(k.from().line>=t.display.viewTo||k.to().line<t.display.viewFrom)){var C=k.empty();if(b){var P=b(t,k);P&&qa(t,P,f)}else(C||t.options.showCursorWhenSelecting)&&qa(t,k.head,f);C||Nc(t,k,g)}}return s}function qa(t,n,l){var s=Fr(t,n,"div",null,null,!t.options.singleCursorHeightPerLine),f=l.appendChild($("div","\xA0","CodeMirror-cursor"));if(f.style.left=s.left+"px",f.style.top=s.top+"px",f.style.height=Math.max(0,s.bottom-s.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var g=Po(t,n,"div",null,null),b=g.right-g.left;f.style.width=(b>0?b:t.defaultCharWidth())+"px"}if(s.other){var w=l.appendChild($("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));w.style.display="",w.style.left=s.other.left+"px",w.style.top=s.other.top+"px",w.style.height=(s.other.bottom-s.other.top)*.85+"px"}}function ci(t,n){return t.top-n.top||t.left-n.left}function Nc(t,n,l){var s=t.display,f=t.doc,g=document.createDocumentFragment(),b=ii(t.display),w=b.left,k=Math.max(s.sizerWidth,un(t)-s.sizer.offsetLeft)-b.right,C=f.direction=="ltr";function P(_,L,N,F){L<0&&(L=0),L=Math.round(L),F=Math.round(F),g.appendChild($("div",null,"CodeMirror-selected","position: absolute; left: "+_+`px;
                             top: `+L+"px; width: "+(N??k-_)+`px;
                             height: `+(F-L)+"px"))}function R(_,L,N){var F=Ne(f,_),H=F.text.length,M,X;function J(de,_e){return Po(t,fe(_,de),"div",F,_e)}function ie(de,_e,we){var ze=Ru(t,F,null,de),Le=_e=="ltr"==(we=="after")?"left":"right",Te=we=="after"?ze.begin:ze.end-(/\s/.test(F.text.charAt(ze.end-1))?2:1);return J(Te,Le)[Le]}var ye=et(F,f.direction);return mr(ye,L||0,N??H,function(de,_e,we,ze){var Le=we=="ltr",Te=J(de,Le?"left":"right"),je=J(_e-1,Le?"right":"left"),te=L==null&&de==0,le=N==null&&_e==H,ke=ze==0,Se=!ye||ze==ye.length-1;if(je.top-Te.top<=3){var De=(C?te:le)&&ke,ot=(C?le:te)&&Se,Xe=De?w:(Le?Te:je).left,Je=ot?k:(Le?je:Te).right;P(Xe,Te.top,Je-Xe,Te.bottom)}else{var ft,Ke,rt,vt;Le?(ft=C&&te&&ke?w:Te.left,Ke=C?k:ie(de,we,"before"),rt=C?w:ie(_e,we,"after"),vt=C&&le&&Se?k:je.right):(ft=C?ie(de,we,"before"):w,Ke=!C&&te&&ke?k:Te.right,rt=!C&&le&&Se?w:je.left,vt=C?ie(_e,we,"after"):k),P(ft,Te.top,Ke-ft,Te.bottom),Te.bottom<je.top&&P(w,Te.bottom,null,je.top),P(rt,je.top,vt-rt,je.bottom)}(!M||ci(Te,M)<0)&&(M=Te),ci(je,M)<0&&(M=je),(!X||ci(Te,X)<0)&&(X=Te),ci(je,X)<0&&(X=je)}),{start:M,end:X}}var Y=n.from(),a=n.to();if(Y.line==a.line)R(Y.line,Y.ch,a.ch);else{var u=Ne(f,Y.line),p=Ne(f,a.line),h=Jt(u)==Jt(p),v=R(Y.line,Y.ch,h?u.text.length+1:null).end,y=R(a.line,h?0:null,a.ch).start;h&&(v.top<y.top-2?(P(v.right,v.top,null,v.bottom),P(w,y.top,y.left,y.bottom)):P(v.right,v.top,y.left-v.right,v.bottom)),v.bottom<y.top&&P(w,v.bottom,null,y.top)}l.appendChild(g)}function Wa(t){if(t.state.focused){var n=t.display;clearInterval(n.blinker);var l=!0;n.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?n.blinker=setInterval(function(){t.hasFocus()||Xi(t),n.cursorDiv.style.visibility=(l=!l)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function Ba(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Qs(t))}function Fo(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Xi(t))},100)}function Qs(t,n){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ct(t,"focus",t,n),t.state.focused=!0,he(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),S&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Wa(t))}function Xi(t,n){t.state.delayingBlurEvent||(t.state.focused&&(Ct(t,"blur",t,n),t.state.focused=!1,ge(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Yi(t){for(var n=t.display,l=n.lineDiv.offsetTop,s=Math.max(0,n.scroller.getBoundingClientRect().top),f=n.lineDiv.getBoundingClientRect().top,g=0,b=0;b<n.view.length;b++){var w=n.view[b],k=t.options.lineWrapping,C=void 0,P=0;if(!w.hidden){if(f+=w.line.height,m&&x<8){var R=w.node.offsetTop+w.node.offsetHeight;C=R-l,l=R}else{var Y=w.node.getBoundingClientRect();C=Y.bottom-Y.top,!k&&w.text.firstChild&&(P=w.text.firstChild.getBoundingClientRect().right-Y.left-1)}var a=w.line.height-C;if((a>.005||a<-.005)&&(f<s&&(g-=a),kr(w.line,C),Ha(w.line),w.rest))for(var u=0;u<w.rest.length;u++)Ha(w.rest[u]);if(P>t.display.sizerWidth){var p=Math.ceil(P/cn(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=w.line,t.display.maxLineChanged=!0)}}}Math.abs(g)>2&&(n.scroller.scrollTop+=g)}function Ha(t){if(t.widgets)for(var n=0;n<t.widgets.length;++n){var l=t.widgets[n],s=l.node.parentNode;s&&(l.height=s.offsetHeight)}}function zo(t,n,l){var s=l&&l.top!=null?Math.max(0,l.top):t.scroller.scrollTop;s=Math.floor(s-ni(t));var f=l&&l.bottom!=null?l.bottom:s+t.wrapper.clientHeight,g=z(n,s),b=z(n,f);if(l&&l.ensure){var w=l.ensure.from.line,k=l.ensure.to.line;w<g?(g=w,b=z(n,Nr(Ne(n,w))+t.wrapper.clientHeight)):Math.min(k,n.lastLine())>=b&&(g=z(n,Nr(Ne(n,k))-t.wrapper.clientHeight),b=k)}return{from:g,to:Math.max(b,g+1)}}function Ua(t,n){if(!gt(t,"scrollCursorIntoView")){var l=t.display,s=l.sizer.getBoundingClientRect(),f=null,g=l.wrapper.ownerDocument;if(n.top+s.top<0?f=!0:n.bottom+s.top>(g.defaultView.innerHeight||g.documentElement.clientHeight)&&(f=!1),f!=null&&!I){var b=$("div","\u200B",null,`position: absolute;
                         top: `+(n.top-l.viewOffset-ni(t.display))+`px;
                         height: `+(n.bottom-n.top+Kt(t)+l.barHeight)+`px;
                         left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");t.display.lineSpace.appendChild(b),b.scrollIntoView(f),t.display.lineSpace.removeChild(b)}}}function Xs(t,n,l,s){s==null&&(s=0);var f;!t.options.lineWrapping&&n==l&&(l=n.sticky=="before"?fe(n.line,n.ch+1,"before"):n,n=n.ch?fe(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var g=0;g<5;g++){var b=!1,w=Fr(t,n),k=!l||l==n?w:Fr(t,l);f={left:Math.min(w.left,k.left),top:Math.min(w.top,k.top)-s,right:Math.max(w.left,k.left),bottom:Math.max(w.bottom,k.bottom)+s};var C=Zs(t,f),P=t.doc.scrollTop,R=t.doc.scrollLeft;if(C.scrollTop!=null&&(Ro(t,C.scrollTop),Math.abs(t.doc.scrollTop-P)>1&&(b=!0)),C.scrollLeft!=null&&(hn(t,C.scrollLeft),Math.abs(t.doc.scrollLeft-R)>1&&(b=!0)),!b)break}return f}function Ys(t,n){var l=Zs(t,n);l.scrollTop!=null&&Ro(t,l.scrollTop),l.scrollLeft!=null&&hn(t,l.scrollLeft)}function Zs(t,n){var l=t.display,s=si(t.display);n.top<0&&(n.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:l.scroller.scrollTop,g=Ws(t),b={};n.bottom-n.top>g&&(n.bottom=n.top+g);var w=t.doc.height+qs(l),k=n.top<s,C=n.bottom>w-s;if(n.top<f)b.scrollTop=k?0:n.top;else if(n.bottom>f+g){var P=Math.min(n.top,(C?w:n.bottom)-g);P!=f&&(b.scrollTop=P)}var R=t.options.fixedGutter?0:l.gutters.offsetWidth,Y=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:l.scroller.scrollLeft-R,a=un(t)-l.gutters.offsetWidth,u=n.right-n.left>a;return u&&(n.right=n.left+a),n.left<10?b.scrollLeft=0:n.left<Y?b.scrollLeft=Math.max(0,n.left+R-(u?0:10)):n.right>a+Y-3&&(b.scrollLeft=n.right+(u?0:10)-a),b}function Js(t,n){n!=null&&(On(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+n)}function zr(t){On(t);var n=t.getCursor();t.curOp.scrollToPos={from:n,to:n,margin:t.options.cursorScrollMargin}}function Zi(t,n,l){(n!=null||l!=null)&&On(t),n!=null&&(t.curOp.scrollLeft=n),l!=null&&(t.curOp.scrollTop=l)}function An(t,n){On(t),t.curOp.scrollToPos=n}function On(t){var n=t.curOp.scrollToPos;if(n){t.curOp.scrollToPos=null;var l=zu(t,n.from),s=zu(t,n.to);Nn(t,l,s,n.margin)}}function Nn(t,n,l,s){var f=Zs(t,{left:Math.min(n.left,l.left),top:Math.min(n.top,l.top)-s,right:Math.max(n.right,l.right),bottom:Math.max(n.bottom,l.bottom)+s});Zi(t,f.scrollLeft,f.scrollTop)}function Ro(t,n){Math.abs(t.doc.scrollTop-n)<2||(i||gr(t,{top:n}),Bu(t,n,!0),i&&gr(t),Ji(t,100))}function Bu(t,n,l){n=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,n)),!(t.display.scroller.scrollTop==n&&!l)&&(t.doc.scrollTop=n,t.display.scrollbars.setScrollTop(n),t.display.scroller.scrollTop!=n&&(t.display.scroller.scrollTop=n))}function hn(t,n,l,s){n=Math.max(0,Math.min(n,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((l?n==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-n)<2)&&!s)&&(t.doc.scrollLeft=n,al(t),t.display.scroller.scrollLeft!=n&&(t.display.scroller.scrollLeft=n),t.display.scrollbars.setScrollLeft(n))}function jo(t){var n=t.display,l=n.gutters.offsetWidth,s=Math.round(t.doc.height+qs(t.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:t.options.fixedGutter?l:0,docHeight:s,scrollHeight:s+Kt(t)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:l}}var En=function(t,n,l){this.cm=l;var s=this.vert=$("div",[$("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=$("div",[$("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");s.tabIndex=f.tabIndex=-1,t(s),t(f),Ie(s,"scroll",function(){s.clientHeight&&n(s.scrollTop,"vertical")}),Ie(f,"scroll",function(){f.clientWidth&&n(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&x<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};En.prototype.update=function(t){var n=t.scrollWidth>t.clientWidth+1,l=t.scrollHeight>t.clientHeight+1,s=t.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=n?s+"px":"0";var f=t.viewHeight-(n?s:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=l?s+"px":"0",this.horiz.style.left=t.barLeft+"px";var g=t.viewWidth-t.barLeft-(l?s:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+g)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(s==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?s:0,bottom:n?s:0}},En.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},En.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},En.prototype.zeroWidthHack=function(){var t=re&&!V?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Oe,this.disableVert=new Oe},En.prototype.enableZeroWidthBar=function(t,n,l){t.style.visibility="";function s(){var f=t.getBoundingClientRect(),g=l=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);g!=t?t.style.visibility="hidden":n.set(1e3,s)}n.set(1e3,s)},En.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var qo=function(){};qo.prototype.update=function(){return{bottom:0,right:0}},qo.prototype.setScrollLeft=function(){},qo.prototype.setScrollTop=function(){},qo.prototype.clear=function(){};function Vr(t,n){n||(n=jo(t));var l=t.display.barWidth,s=t.display.barHeight;Hu(t,n);for(var f=0;f<4&&l!=t.display.barWidth||s!=t.display.barHeight;f++)l!=t.display.barWidth&&t.options.lineWrapping&&Yi(t),Hu(t,jo(t)),l=t.display.barWidth,s=t.display.barHeight}function Hu(t,n){var l=t.display,s=l.scrollbars.update(n);l.sizer.style.paddingRight=(l.barWidth=s.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=s.bottom)+"px",l.heightForcer.style.borderBottom=s.bottom+"px solid transparent",s.right&&s.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=s.bottom+"px",l.scrollbarFiller.style.width=s.right+"px"):l.scrollbarFiller.style.display="",s.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=s.bottom+"px",l.gutterFiller.style.width=n.gutterWidth+"px"):l.gutterFiller.style.display=""}var el={native:En,null:qo};function tl(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&ge(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new el[t.options.scrollbarStyle](function(n){t.display.wrapper.insertBefore(n,t.display.scrollbarFiller),Ie(n,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,l){l=="horizontal"?hn(t,n):Ro(t,n)},t),t.display.scrollbars.addClass&&he(t.display.wrapper,t.display.scrollbars.addClass)}var Uu=0;function pi(t){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:++Uu,markArrays:null},kc(t.curOp)}function Mn(t){var n=t.curOp;n&&Ea(n,function(l){for(var s=0;s<l.ops.length;s++)l.ops[s].cm.curOp=null;rl(l)})}function rl(t){for(var n=t.ops,l=0;l<n.length;l++)Ku(n[l]);for(var s=0;s<n.length;s++)Ka(n[s]);for(var f=0;f<n.length;f++)Pn(n[f]);for(var g=0;g<n.length;g++)Va(n[g]);for(var b=0;b<n.length;b++)nl(n[b])}function Ku(t){var n=t.cm,l=n.display;il(n),t.updateMaxLine&&$a(n),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<l.viewFrom||t.scrollToPos.to.line>=l.viewTo)||l.maxLineChanged&&n.options.lineWrapping,t.update=t.mustUpdate&&new Gr(n,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Ka(t){t.updatedDisplay=t.mustUpdate&&Bo(t.cm,t.update)}function Pn(t){var n=t.cm,l=n.display;t.updatedDisplay&&Yi(n),t.barMeasure=jo(n),l.maxLineChanged&&!n.options.lineWrapping&&(t.adjustWidthTo=Hs(n,l.maxLine,l.maxLine.text.length).left+3,n.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+t.adjustWidthTo+Kt(n)+n.display.barWidth),t.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+t.adjustWidthTo-un(n))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=l.input.prepareSelection())}function Va(t){var n=t.cm;t.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<n.doc.scrollLeft&&hn(n,Math.min(n.display.scroller.scrollLeft,t.maxScrollLeft),!0),n.display.maxLineChanged=!1);var l=t.focus&&t.focus==Q(wt(n));t.preparedSelection&&n.display.input.showSelection(t.preparedSelection,l),(t.updatedDisplay||t.startHeight!=n.doc.height)&&Vr(n,t.barMeasure),t.updatedDisplay&&di(n,t.barMeasure),t.selectionChanged&&Wa(n),n.state.focused&&t.updateInput&&n.display.input.reset(t.typing),l&&Ba(t.cm)}function nl(t){var n=t.cm,l=n.display,s=n.doc;if(t.updatedDisplay&&Qr(n,t.update),l.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),t.scrollTop!=null&&Bu(n,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&hn(n,t.scrollLeft,!0,!0),t.scrollToPos){var f=Xs(n,He(s,t.scrollToPos.from),He(s,t.scrollToPos.to),t.scrollToPos.margin);Ua(n,f)}var g=t.maybeHiddenMarkers,b=t.maybeUnhiddenMarkers;if(g)for(var w=0;w<g.length;++w)g[w].lines.length||Ct(g[w],"hide");if(b)for(var k=0;k<b.length;++k)b[k].lines.length&&Ct(b[k],"unhide");l.wrapper.offsetHeight&&(s.scrollTop=n.display.scroller.scrollTop),t.changeObjs&&Ct(n,"changes",n,t.changeObjs),t.update&&t.update.finish()}function hr(t,n){if(t.curOp)return n();pi(t);try{return n()}finally{Mn(t)}}function zt(t,n){return function(){if(t.curOp)return n.apply(t,arguments);pi(t);try{return n.apply(t,arguments)}finally{Mn(t)}}}function Bt(t){return function(){if(this.curOp)return t.apply(this,arguments);pi(this);try{return t.apply(this,arguments)}finally{Mn(this)}}}function Rt(t){return function(){var n=this.cm;if(!n||n.curOp)return t.apply(this,arguments);pi(n);try{return t.apply(this,arguments)}finally{Mn(n)}}}function Ji(t,n){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(n,Ee(Wo,t))}function Wo(t){var n=t.doc;if(!(n.highlightFrontier>=t.display.viewTo)){var l=+new Date+t.options.workTime,s=Jn(t,n.highlightFrontier),f=[];n.iter(s.line,Math.min(n.first+n.size,t.display.viewTo+500),function(g){if(s.line>=t.display.viewFrom){var b=g.styles,w=g.text.length>t.options.maxHighlightLength?Or(n.mode,s.state):null,k=mu(t,g,s,!0);w&&(s.state=w),g.styles=k.styles;var C=g.styleClasses,P=k.classes;P?g.styleClasses=P:C&&(g.styleClasses=null);for(var R=!b||b.length!=g.styles.length||C!=P&&(!C||!P||C.bgClass!=P.bgClass||C.textClass!=P.textClass),Y=0;!R&&Y<b.length;++Y)R=b[Y]!=g.styles[Y];R&&f.push(s.line),g.stateAfter=s.save(),s.nextLine()}else g.text.length<=t.options.maxHighlightLength&&Os(t,g.text,s),g.stateAfter=s.line%5==0?s.save():null,s.nextLine();if(+new Date>l)return Ji(t,t.options.workDelay),!0}),n.highlightFrontier=s.line,n.modeFrontier=Math.max(n.modeFrontier,s.line),f.length&&hr(t,function(){for(var g=0;g<f.length;g++)pn(t,f[g],"text")})}}var Gr=function(t,n,l){var s=t.display;this.viewport=n,this.visible=zo(s,t.doc,n),this.editorIsHidden=!s.wrapper.offsetWidth,this.wrapperHeight=s.wrapper.clientHeight,this.wrapperWidth=s.wrapper.clientWidth,this.oldDisplayWidth=un(t),this.force=l,this.dims=za(t),this.events=[]};Gr.prototype.signal=function(t,n){rr(t,n)&&this.events.push(arguments)},Gr.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ct.apply(null,this.events[t])};function il(t){var n=t.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=Kt(t)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=Kt(t)+"px",n.scrollbarsClipped=!0)}function ol(t){if(t.hasFocus())return null;var n=Q(wt(t));if(!n||!q(t.display.lineDiv,n))return null;var l={activeElt:n};if(window.getSelection){var s=We(t).getSelection();s.anchorNode&&s.extend&&q(t.display.lineDiv,s.anchorNode)&&(l.anchorNode=s.anchorNode,l.anchorOffset=s.anchorOffset,l.focusNode=s.focusNode,l.focusOffset=s.focusOffset)}return l}function Ec(t){if(!(!t||!t.activeElt||t.activeElt==Q(lt(t.activeElt)))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&q(document.body,t.anchorNode)&&q(document.body,t.focusNode))){var n=t.activeElt.ownerDocument,l=n.defaultView.getSelection(),s=n.createRange();s.setEnd(t.anchorNode,t.anchorOffset),s.collapse(!1),l.removeAllRanges(),l.addRange(s),l.extend(t.focusNode,t.focusOffset)}}function Bo(t,n){var l=t.display,s=t.doc;if(n.editorIsHidden)return dn(t),!1;if(!n.force&&n.visible.from>=l.viewFrom&&n.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&Wu(t)==0)return!1;gn(t)&&(dn(t),n.dims=za(t));var f=s.first+s.size,g=Math.max(n.visible.from-t.options.viewportMargin,s.first),b=Math.min(f,n.visible.to+t.options.viewportMargin);l.viewFrom<g&&g-l.viewFrom<20&&(g=Math.max(s.first,l.viewFrom)),l.viewTo>b&&l.viewTo-b<20&&(b=Math.min(f,l.viewTo)),_r&&(g=Lo(t.doc,g),b=ku(t.doc,b));var w=g!=l.viewFrom||b!=l.viewTo||l.lastWrapHeight!=n.wrapperHeight||l.lastWrapWidth!=n.wrapperWidth;Oc(t,g,b),l.viewOffset=Nr(Ne(t.doc,l.viewFrom)),t.display.mover.style.top=l.viewOffset+"px";var k=Wu(t);if(!w&&k==0&&!n.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var C=ol(t);return k>4&&(l.lineDiv.style.display="none"),Dt(t,l.updateLineNumbers,n.dims),k>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Ec(C),Z(l.cursorDiv),Z(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,w&&(l.lastWrapHeight=n.wrapperHeight,l.lastWrapWidth=n.wrapperWidth,Ji(t,400)),l.updateLineNumbers=null,!0}function Qr(t,n){for(var l=n.viewport,s=!0;;s=!1){if(!s||!t.options.lineWrapping||n.oldDisplayWidth==un(t)){if(l&&l.top!=null&&(l={top:Math.min(t.doc.height+qs(t.display)-Ws(t),l.top)}),n.visible=zo(t.display,t.doc,l),n.visible.from>=t.display.viewFrom&&n.visible.to<=t.display.viewTo)break}else s&&(n.visible=zo(t.display,t.doc,l));if(!Bo(t,n))break;Yi(t);var f=jo(t);fi(t),Vr(t,f),di(t,f),n.force=!1}n.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(n.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function gr(t,n){var l=new Gr(t,n);if(Bo(t,l)){Yi(t),Qr(t,l);var s=jo(t);fi(t),Vr(t,s),di(t,s),l.finish()}}function Dt(t,n,l){var s=t.display,f=t.options.lineNumbers,g=s.lineDiv,b=g.firstChild;function w(u){var p=u.nextSibling;return S&&re&&t.display.currentWheelTarget==u?u.style.display="none":u.parentNode.removeChild(u),p}for(var k=s.view,C=s.viewFrom,P=0;P<k.length;P++){var R=k[P];if(!R.hidden)if(!R.node||R.node.parentNode!=g){var Y=$c(t,R,C,l);g.insertBefore(Y,b)}else{for(;b!=R.node;)b=w(b);var a=f&&n!=null&&n<=C&&R.lineNumber;R.changes&&(Pe(R.changes,"gutter")>-1&&(a=!1),Au(t,R,C,l)),a&&(Z(R.lineNumber),R.lineNumber.appendChild(document.createTextNode(xe(t.options,C)))),b=R.node.nextSibling}C+=R.size}for(;b;)b=w(b)}function Ga(t){var n=t.gutters.offsetWidth;t.sizer.style.marginLeft=n+"px",Ft(t,"gutterChanged",t)}function di(t,n){t.display.sizer.style.minHeight=n.docHeight+"px",t.display.heightForcer.style.top=n.docHeight+"px",t.display.gutters.style.height=n.docHeight+t.display.barHeight+Kt(t)+"px"}function al(t){var n=t.display,l=n.view;if(!(!n.alignWidgets&&(!n.gutters.firstChild||!t.options.fixedGutter))){for(var s=Io(n)-n.scroller.scrollLeft+t.doc.scrollLeft,f=n.gutters.offsetWidth,g=s+"px",b=0;b<l.length;b++)if(!l[b].hidden){t.options.fixedGutter&&(l[b].gutter&&(l[b].gutter.style.left=g),l[b].gutterBackground&&(l[b].gutterBackground.style.left=g));var w=l[b].alignable;if(w)for(var k=0;k<w.length;k++)w[k].style.left=g}t.options.fixedGutter&&(n.gutters.style.left=s+f+"px")}}function gn(t){if(!t.options.lineNumbers)return!1;var n=t.doc,l=xe(t.options,n.first+n.size-1),s=t.display;if(l.length!=s.lineNumChars){var f=s.measure.appendChild($("div",[$("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),g=f.firstChild.offsetWidth,b=f.offsetWidth-g;return s.lineGutter.style.width="",s.lineNumInnerWidth=Math.max(g,s.lineGutter.offsetWidth-b)+1,s.lineNumWidth=s.lineNumInnerWidth+b,s.lineNumChars=s.lineNumInnerWidth?l.length:-1,s.lineGutter.style.width=s.lineNumWidth+"px",Ga(t.display),!0}return!1}function Ho(t,n){for(var l=[],s=!1,f=0;f<t.length;f++){var g=t[f],b=null;if(typeof g!="string"&&(b=g.style,g=g.className),g=="CodeMirror-linenumbers")if(n)s=!0;else continue;l.push({className:g,style:b})}return n&&!s&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function Qa(t){var n=t.gutters,l=t.gutterSpecs;Z(n),t.lineGutter=null;for(var s=0;s<l.length;++s){var f=l[s],g=f.className,b=f.style,w=n.appendChild($("div",null,"CodeMirror-gutter "+g));b&&(w.style.cssText=b),g=="CodeMirror-linenumbers"&&(t.lineGutter=w,w.style.width=(t.lineNumWidth||1)+"px")}n.style.display=l.length?"":"none",Ga(t)}function eo(t){Qa(t.display),or(t),al(t)}function Mc(t,n,l,s){var f=this;this.input=l,f.scrollbarFiller=$("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=$("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=ve("div",null,"CodeMirror-code"),f.selectionDiv=$("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=$("div",null,"CodeMirror-cursors"),f.measure=$("div",null,"CodeMirror-measure"),f.lineMeasure=$("div",null,"CodeMirror-measure"),f.lineSpace=ve("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var g=ve("div",[f.lineSpace],"CodeMirror-lines");f.mover=$("div",[g],null,"position: relative"),f.sizer=$("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=$("div",null,null,"position: absolute; height: "+Pt+"px; width: 1px;"),f.gutters=$("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=$("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=$("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),T&&D===105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),m&&x<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!S&&!(i&&G)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=n.first,f.reportedViewFrom=f.reportedViewTo=n.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=Ho(s.gutters,s.lineNumbers),Qa(f),l.init(f)}var Uo=0,Cr=null;m?Cr=-.53:i?Cr=15:T?Cr=-.7:U&&(Cr=-1/3);function Ko(t){var n=t.wheelDeltaX,l=t.wheelDeltaY;return n==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(n=t.detail),l==null&&t.detail&&t.axis==t.VERTICAL_AXIS?l=t.detail:l==null&&(l=t.wheelDelta),{x:n,y:l}}function sl(t){var n=Ko(t);return n.x*=Cr,n.y*=Cr,n}function Vu(t,n){T&&D==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var l=Ko(n),s=l.x,f=l.y,g=Cr;n.deltaMode===0&&(s=n.deltaX,f=n.deltaY,g=1);var b=t.display,w=b.scroller,k=w.scrollWidth>w.clientWidth,C=w.scrollHeight>w.clientHeight;if(s&&k||f&&C){if(f&&re&&S){e:for(var P=n.target,R=b.view;P!=w;P=P.parentNode)for(var Y=0;Y<R.length;Y++)if(R[Y].node==P){t.display.currentWheelTarget=P;break e}}if(s&&!i&&!E&&g!=null){f&&C&&Ro(t,Math.max(0,w.scrollTop+f*g)),hn(t,Math.max(0,w.scrollLeft+s*g)),(!f||f&&C)&&Tt(n),b.wheelStartX=null;return}if(f&&g!=null){var a=f*g,u=t.doc.scrollTop,p=u+b.wrapper.clientHeight;a<0?u=Math.max(0,u+a-50):p=Math.min(t.doc.height,p+a+50),gr(t,{top:u,bottom:p})}Uo<20&&n.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=w.scrollLeft,b.wheelStartY=w.scrollTop,b.wheelDX=s,b.wheelDY=f,setTimeout(function(){if(b.wheelStartX!=null){var h=w.scrollLeft-b.wheelStartX,v=w.scrollTop-b.wheelStartY,y=v&&b.wheelDY&&v/b.wheelDY||h&&b.wheelDX&&h/b.wheelDX;b.wheelStartX=b.wheelStartY=null,y&&(Cr=(Cr*Uo+y)/(Uo+1),++Uo)}},200)):(b.wheelDX+=s,b.wheelDY+=f))}}var Tr=function(t,n){this.ranges=t,this.primIndex=n};Tr.prototype.primary=function(){return this.ranges[this.primIndex]},Tr.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var l=this.ranges[n],s=t.ranges[n];if(!it(l.anchor,s.anchor)||!it(l.head,s.head))return!1}return!0},Tr.prototype.deepCopy=function(){for(var t=[],n=0;n<this.ranges.length;n++)t[n]=new st(It(this.ranges[n].anchor),It(this.ranges[n].head));return new Tr(t,this.primIndex)},Tr.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Tr.prototype.contains=function(t,n){n||(n=t);for(var l=0;l<this.ranges.length;l++){var s=this.ranges[l];if(Ce(n,s.from())>=0&&Ce(t,s.to())<=0)return l}return-1};var st=function(t,n){this.anchor=t,this.head=n};st.prototype.from=function(){return qi(this.anchor,this.head)},st.prototype.to=function(){return ir(this.anchor,this.head)},st.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Mr(t,n,l){var s=t&&t.options.selectionsMayTouch,f=n[l];n.sort(function(Y,a){return Ce(Y.from(),a.from())}),l=Pe(n,f);for(var g=1;g<n.length;g++){var b=n[g],w=n[g-1],k=Ce(w.to(),b.from());if(s&&!b.empty()?k>0:k>=0){var C=qi(w.from(),b.from()),P=ir(w.to(),b.to()),R=w.empty()?b.from()==b.head:w.from()==w.head;g<=l&&--l,n.splice(--g,2,new st(R?P:C,R?C:P))}}return new Tr(n,l)}function Xr(t,n){return new Tr([new st(t,n||t)],0)}function Yr(t){return t.text?fe(t.from.line+t.text.length-1,qe(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Gu(t,n){if(Ce(t,n.from)<0)return t;if(Ce(t,n.to)<=0)return Yr(n);var l=t.line+n.text.length-(n.to.line-n.from.line)-1,s=t.ch;return t.line==n.to.line&&(s+=Yr(n).ch-n.to.ch),fe(l,s)}function Xa(t,n){for(var l=[],s=0;s<t.sel.ranges.length;s++){var f=t.sel.ranges[s];l.push(new st(Gu(f.anchor,n),Gu(f.head,n)))}return Mr(t.cm,l,t.sel.primIndex)}function Qu(t,n,l){return t.line==n.line?fe(l.line,t.ch-n.ch+l.ch):fe(l.line+(t.line-n.line),t.ch)}function Pc(t,n,l){for(var s=[],f=fe(t.first,0),g=f,b=0;b<n.length;b++){var w=n[b],k=Qu(w.from,f,g),C=Qu(Yr(w),f,g);if(f=w.to,g=C,l=="around"){var P=t.sel.ranges[b],R=Ce(P.head,P.anchor)<0;s[b]=new st(R?C:k,R?k:C)}else s[b]=new st(k,k)}return new Tr(s,t.sel.primIndex)}function Ya(t){t.doc.mode=Yn(t.options,t.doc.modeOption),hi(t)}function hi(t){t.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Ji(t,100),t.state.modeGen++,t.curOp&&or(t)}function ll(t,n){return n.from.ch==0&&n.to.ch==0&&qe(n.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function to(t,n,l,s){function f(y){return l?l[y]:null}function g(y,_,L){_u(y,_,L,s),Ft(y,"change",y,n)}function b(y,_){for(var L=[],N=y;N<_;++N)L.push(new Ki(C[N],f(N),s));return L}var w=n.from,k=n.to,C=n.text,P=Ne(t,w.line),R=Ne(t,k.line),Y=qe(C),a=f(C.length-1),u=k.line-w.line;if(n.full)t.insert(0,b(0,C.length)),t.remove(C.length,t.size-C.length);else if(ll(t,n)){var p=b(0,C.length-1);g(R,R.text,a),u&&t.remove(w.line,u),p.length&&t.insert(w.line,p)}else if(P==R)if(C.length==1)g(P,P.text.slice(0,w.ch)+Y+P.text.slice(k.ch),a);else{var h=b(1,C.length-1);h.push(new Ki(Y+P.text.slice(k.ch),a,s)),g(P,P.text.slice(0,w.ch)+C[0],f(0)),t.insert(w.line+1,h)}else if(C.length==1)g(P,P.text.slice(0,w.ch)+C[0]+R.text.slice(k.ch),f(0)),t.remove(w.line+1,u);else{g(P,P.text.slice(0,w.ch)+C[0],f(0)),g(R,Y+R.text.slice(k.ch),a);var v=b(1,C.length-1);u>1&&t.remove(w.line+1,u-1),t.insert(w.line+1,v)}Ft(t,"change",t,n)}function Dn(t,n,l){function s(f,g,b){if(f.linked)for(var w=0;w<f.linked.length;++w){var k=f.linked[w];if(k.doc!=g){var C=b&&k.sharedHist;l&&!C||(n(k.doc,C),s(k.doc,f,C))}}}s(t,null,!0)}function ul(t,n){if(n.cm)throw new Error("This document is already in use.");t.doc=n,n.cm=t,Gs(t),Ya(t),fl(t),t.options.direction=n.direction,t.options.lineWrapping||$a(t),t.options.mode=n.modeOption,or(t)}function fl(t){(t.doc.direction=="rtl"?he:ge)(t.display.lineDiv,"CodeMirror-rtl")}function Xu(t){hr(t,function(){fl(t),or(t)})}function Za(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function Ja(t,n){var l={from:It(n.from),to:Yr(n),text:wr(t,n.from,n.to)};return pl(t,l,n.from.line,n.to.line+1),Dn(t,function(s){return pl(s,l,n.from.line,n.to.line+1)},!0),l}function Yu(t){for(;t.length;){var n=qe(t);if(n.ranges)t.pop();else break}}function Zu(t,n){if(n)return Yu(t.done),qe(t.done);if(t.done.length&&!qe(t.done).ranges)return qe(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),qe(t.done)}function cl(t,n,l,s){var f=t.history;f.undone.length=0;var g=+new Date,b,w;if((f.lastOp==s||f.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&f.lastModTime>g-(t.cm?t.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(b=Zu(f,f.lastOp==s)))w=qe(b.changes),Ce(n.from,n.to)==0&&Ce(n.from,w.to)==0?w.to=Yr(n):b.changes.push(Ja(t,n));else{var k=qe(f.done);for((!k||!k.ranges)&&Vo(t.sel,f.done),b={changes:[Ja(t,n)],generation:f.generation},f.done.push(b);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(l),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=g,f.lastOp=f.lastSelOp=s,f.lastOrigin=f.lastSelOrigin=n.origin,w||Ct(t,"historyAdded")}function Ju(t,n,l,s){var f=n.charAt(0);return f=="*"||f=="+"&&l.ranges.length==s.ranges.length&&l.somethingSelected()==s.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function ef(t,n,l,s){var f=t.history,g=s&&s.origin;l==f.lastSelOp||g&&f.lastSelOrigin==g&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==g||Ju(t,g,qe(f.done),n))?f.done[f.done.length-1]=n:Vo(n,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=g,f.lastSelOp=l,s&&s.clearRedo!==!1&&Yu(f.undone)}function Vo(t,n){var l=qe(n);l&&l.ranges&&l.equals(t)||n.push(t)}function pl(t,n,l,s){var f=n["spans_"+t.id],g=0;t.iter(Math.max(t.first,l),Math.min(t.first+t.size,s),function(b){b.markedSpans&&((f||(f=n["spans_"+t.id]={}))[g]=b.markedSpans),++g})}function ro(t){if(!t)return null;for(var n,l=0;l<t.length;++l)t[l].marker.explicitlyCleared?n||(n=t.slice(0,l)):n&&n.push(t[l]);return n?n.length?n:null:t}function dl(t,n){var l=n["spans_"+t.id];if(!l)return null;for(var s=[],f=0;f<n.text.length;++f)s.push(ro(l[f]));return s}function Go(t,n){var l=dl(t,n),s=To(t,n);if(!l)return s;if(!s)return l;for(var f=0;f<l.length;++f){var g=l[f],b=s[f];if(g&&b)e:for(var w=0;w<b.length;++w){for(var k=b[w],C=0;C<g.length;++C)if(g[C].marker==k.marker)continue e;g.push(k)}else b&&(l[f]=b)}return l}function mn(t,n,l){for(var s=[],f=0;f<t.length;++f){var g=t[f];if(g.ranges){s.push(l?Tr.prototype.deepCopy.call(g):g);continue}var b=g.changes,w=[];s.push({changes:w});for(var k=0;k<b.length;++k){var C=b[k],P=void 0;if(w.push({from:C.from,to:C.to,text:C.text}),n)for(var R in C)(P=R.match(/^spans_(\d+)$/))&&Pe(n,Number(P[1]))>-1&&(qe(w)[R]=C[R],delete C[R])}}return s}function Qo(t,n,l,s){if(s){var f=t.anchor;if(l){var g=Ce(n,f)<0;g!=Ce(l,f)<0?(f=n,n=l):g!=Ce(n,l)<0&&(n=l)}return new st(f,n)}else return new st(l||n,n)}function Xo(t,n,l,s,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Vt(t,new Tr([Qo(t.sel.primary(),n,l,f)],0),s)}function hl(t,n,l){for(var s=[],f=t.cm&&(t.cm.display.shift||t.extend),g=0;g<t.sel.ranges.length;g++)s[g]=Qo(t.sel.ranges[g],n[g],null,f);var b=Mr(t.cm,s,t.sel.primIndex);Vt(t,b,l)}function es(t,n,l,s){var f=t.sel.ranges.slice(0);f[n]=l,Vt(t,Mr(t.cm,f,t.sel.primIndex),s)}function In(t,n,l,s){Vt(t,Xr(n,l),s)}function vn(t,n,l){var s={ranges:n.ranges,update:function(f){this.ranges=[];for(var g=0;g<f.length;g++)this.ranges[g]=new st(He(t,f[g].anchor),He(t,f[g].head))},origin:l&&l.origin};return Ct(t,"beforeSelectionChange",t,s),t.cm&&Ct(t.cm,"beforeSelectionChange",t.cm,s),s.ranges!=n.ranges?Mr(t.cm,s.ranges,s.ranges.length-1):n}function gl(t,n,l){var s=t.history.done,f=qe(s);f&&f.ranges?(s[s.length-1]=n,Yo(t,n,l)):Vt(t,n,l)}function Vt(t,n,l){Yo(t,n,l),ef(t,t.sel,t.cm?t.cm.curOp.id:NaN,l)}function Yo(t,n,l){(rr(t,"beforeSelectionChange")||t.cm&&rr(t.cm,"beforeSelectionChange"))&&(n=vn(t,n,l));var s=l&&l.bias||(Ce(n.primary().head,t.sel.primary().head)<0?-1:1);ml(t,ts(t,n,s,!0)),!(l&&l.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&zr(t.cm)}function ml(t,n){n.equals(t.sel)||(t.sel=n,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,yr(t.cm)),Ft(t,"cursorActivity",t))}function vl(t){ml(t,ts(t,t.sel,null,!1))}function ts(t,n,l,s){for(var f,g=0;g<n.ranges.length;g++){var b=n.ranges[g],w=n.ranges.length==t.sel.ranges.length&&t.sel.ranges[g],k=Zo(t,b.anchor,w&&w.anchor,l,s),C=b.head==b.anchor?k:Zo(t,b.head,w&&w.head,l,s);(f||k!=b.anchor||C!=b.head)&&(f||(f=n.ranges.slice(0,g)),f[g]=new st(k,C))}return f?Mr(t.cm,f,n.primIndex):n}function gi(t,n,l,s,f){var g=Ne(t,n.line);if(g.markedSpans)for(var b=0;b<g.markedSpans.length;++b){var w=g.markedSpans[b],k=w.marker,C="selectLeft"in k?!k.selectLeft:k.inclusiveLeft,P="selectRight"in k?!k.selectRight:k.inclusiveRight;if((w.from==null||(C?w.from<=n.ch:w.from<n.ch))&&(w.to==null||(P?w.to>=n.ch:w.to>n.ch))){if(f&&(Ct(k,"beforeCursorEnter"),k.explicitlyCleared))if(g.markedSpans){--b;continue}else break;if(!k.atomic)continue;if(l){var R=k.find(s<0?1:-1),Y=void 0;if((s<0?P:C)&&(R=rs(t,R,-s,R&&R.line==n.line?g:null)),R&&R.line==n.line&&(Y=Ce(R,l))&&(s<0?Y<0:Y>0))return gi(t,R,n,s,f)}var a=k.find(s<0?-1:1);return(s<0?C:P)&&(a=rs(t,a,s,a.line==n.line?g:null)),a?gi(t,a,n,s,f):null}}return n}function Zo(t,n,l,s,f){var g=s||1,b=gi(t,n,l,g,f)||!f&&gi(t,n,l,g,!0)||gi(t,n,l,-g,f)||!f&&gi(t,n,l,-g,!0);return b||(t.cantEdit=!0,fe(t.first,0))}function rs(t,n,l,s){return l<0&&n.ch==0?n.line>t.first?He(t,fe(n.line-1)):null:l>0&&n.ch==(s||Ne(t,n.line)).text.length?n.line<t.first+t.size-1?fe(n.line+1,0):null:new fe(n.line,n.ch+l)}function yl(t){t.setSelection(fe(t.firstLine(),0),fe(t.lastLine()),at)}function tf(t,n,l){var s={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return s.canceled=!0}};return l&&(s.update=function(f,g,b,w){f&&(s.from=He(t,f)),g&&(s.to=He(t,g)),b&&(s.text=b),w!==void 0&&(s.origin=w)}),Ct(t,"beforeChange",t,s),t.cm&&Ct(t.cm,"beforeChange",t.cm,s),s.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:s.from,to:s.to,text:s.text,origin:s.origin}}function mi(t,n,l){if(t.cm){if(!t.cm.curOp)return zt(t.cm,mi)(t,n,l);if(t.cm.state.suppressEdits)return}if(!((rr(t,"beforeChange")||t.cm&&rr(t.cm,"beforeChange"))&&(n=tf(t,n,!0),!n))){var s=_a&&!l&&ti(t,n.from,n.to);if(s)for(var f=s.length-1;f>=0;--f)bl(t,{from:s[f].from,to:s[f].to,text:f?[""]:n.text,origin:n.origin});else bl(t,n)}}function bl(t,n){if(!(n.text.length==1&&n.text[0]==""&&Ce(n.from,n.to)==0)){var l=Xa(t,n);cl(t,n,l,t.cm?t.cm.curOp.id:NaN),Fn(t,n,l,To(t,n));var s=[];Dn(t,function(f,g){!g&&Pe(s,f.history)==-1&&(rf(f.history,n),s.push(f.history)),Fn(f,n,null,To(f,n))})}}function Jo(t,n,l){var s=t.cm&&t.cm.state.suppressEdits;if(!(s&&!l)){for(var f=t.history,g,b=t.sel,w=n=="undo"?f.done:f.undone,k=n=="undo"?f.undone:f.done,C=0;C<w.length&&(g=w[C],!(l?g.ranges&&!g.equals(t.sel):!g.ranges));C++);if(C!=w.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(g=w.pop(),g.ranges){if(Vo(g,k),l&&!g.equals(t.sel)){Vt(t,g,{clearRedo:!1});return}b=g}else if(s){w.push(g);return}else break;var P=[];Vo(b,k),k.push({changes:P,generation:f.generation}),f.generation=g.generation||++f.maxGeneration;for(var R=rr(t,"beforeChange")||t.cm&&rr(t.cm,"beforeChange"),Y=function(p){var h=g.changes[p];if(h.origin=n,R&&!tf(t,h,!1))return w.length=0,{};P.push(Ja(t,h));var v=p?Xa(t,h):qe(w);Fn(t,h,v,Go(t,h)),!p&&t.cm&&t.cm.scrollIntoView({from:h.from,to:Yr(h)});var y=[];Dn(t,function(_,L){!L&&Pe(y,_.history)==-1&&(rf(_.history,h),y.push(_.history)),Fn(_,h,null,Go(_,h))})},a=g.changes.length-1;a>=0;--a){var u=Y(a);if(u)return u.v}}}}function xl(t,n){if(n!=0&&(t.first+=n,t.sel=new Tr(nt(t.sel.ranges,function(f){return new st(fe(f.anchor.line+n,f.anchor.ch),fe(f.head.line+n,f.head.ch))}),t.sel.primIndex),t.cm)){or(t.cm,t.first,t.first-n,n);for(var l=t.cm.display,s=l.viewFrom;s<l.viewTo;s++)pn(t.cm,s,"gutter")}}function Fn(t,n,l,s){if(t.cm&&!t.cm.curOp)return zt(t.cm,Fn)(t,n,l,s);if(n.to.line<t.first){xl(t,n.text.length-1-(n.to.line-n.from.line));return}if(!(n.from.line>t.lastLine())){if(n.from.line<t.first){var f=n.text.length-1-(t.first-n.from.line);xl(t,f),n={from:fe(t.first,0),to:fe(n.to.line+f,n.to.ch),text:[qe(n.text)],origin:n.origin}}var g=t.lastLine();n.to.line>g&&(n={from:n.from,to:fe(g,Ne(t,g).text.length),text:[n.text[0]],origin:n.origin}),n.removed=wr(t,n.from,n.to),l||(l=Xa(t,n)),t.cm?Dc(t.cm,n,s):to(t,n,s),Yo(t,l,at),t.cantEdit&&Zo(t,fe(t.firstLine(),0))&&(t.cantEdit=!1)}}function Dc(t,n,l){var s=t.doc,f=t.display,g=n.from,b=n.to,w=!1,k=g.line;t.options.lineWrapping||(k=O(Jt(Ne(s,g.line))),s.iter(k,b.line+1,function(a){if(a==f.maxLine)return w=!0,!0})),s.sel.contains(n.from,n.to)>-1&&yr(t),to(s,n,l,Vs(t)),t.options.lineWrapping||(s.iter(k,g.line+n.text.length,function(a){var u=Oo(a);u>f.maxLineLength&&(f.maxLine=a,f.maxLineLength=u,f.maxLineChanged=!0,w=!1)}),w&&(t.curOp.updateMaxLine=!0)),bu(s,g.line),Ji(t,400);var C=n.text.length-(b.line-g.line)-1;n.full?or(t):g.line==b.line&&n.text.length==1&&!ll(t.doc,n)?pn(t,g.line,"text"):or(t,g.line,b.line+1,C);var P=rr(t,"changes"),R=rr(t,"change");if(R||P){var Y={from:g,to:b,text:n.text,removed:n.removed,origin:n.origin};R&&Ft(t,"change",t,Y),P&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(Y)}t.display.selForContextMenu=null}function vi(t,n,l,s,f){var g;s||(s=l),Ce(s,l)<0&&(g=[s,l],l=g[0],s=g[1]),typeof n=="string"&&(n=t.splitLines(n)),mi(t,{from:l,to:s,text:n,origin:f})}function ns(t,n,l,s){l<t.line?t.line+=s:n<t.line&&(t.line=n,t.ch=0)}function is(t,n,l,s){for(var f=0;f<t.length;++f){var g=t[f],b=!0;if(g.ranges){g.copied||(g=t[f]=g.deepCopy(),g.copied=!0);for(var w=0;w<g.ranges.length;w++)ns(g.ranges[w].anchor,n,l,s),ns(g.ranges[w].head,n,l,s);continue}for(var k=0;k<g.changes.length;++k){var C=g.changes[k];if(l<C.from.line)C.from=fe(C.from.line+s,C.from.ch),C.to=fe(C.to.line+s,C.to.ch);else if(n<=C.to.line){b=!1;break}}b||(t.splice(0,f+1),f=0)}}function rf(t,n){var l=n.from.line,s=n.to.line,f=n.text.length-(s-l)-1;is(t.done,l,s,f),is(t.undone,l,s,f)}function ea(t,n,l,s){var f=n,g=n;return typeof n=="number"?g=Ne(t,du(t,n)):f=O(n),f==null?null:(s(g,f)&&t.cm&&pn(t.cm,f,l),g)}function no(t){this.lines=t,this.parent=null;for(var n=0,l=0;l<t.length;++l)t[l].parent=this,n+=t[l].height;this.height=n}no.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,n){for(var l=t,s=t+n;l<s;++l){var f=this.lines[l];this.height-=f.height,Su(f),Ft(f,"delete")}this.lines.splice(t,n)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,n,l){this.height+=l,this.lines=this.lines.slice(0,t).concat(n).concat(this.lines.slice(t));for(var s=0;s<n.length;++s)n[s].parent=this},iterN:function(t,n,l){for(var s=t+n;t<s;++t)if(l(this.lines[t]))return!0}};function yi(t){this.children=t;for(var n=0,l=0,s=0;s<t.length;++s){var f=t[s];n+=f.chunkSize(),l+=f.height,f.parent=this}this.size=n,this.height=l,this.parent=null}yi.prototype={chunkSize:function(){return this.size},removeInner:function(t,n){this.size-=n;for(var l=0;l<this.children.length;++l){var s=this.children[l],f=s.chunkSize();if(t<f){var g=Math.min(n,f-t),b=s.height;if(s.removeInner(t,g),this.height-=b-s.height,f==g&&(this.children.splice(l--,1),s.parent=null),(n-=g)==0)break;t=0}else t-=f}if(this.size-n<25&&(this.children.length>1||!(this.children[0]instanceof no))){var w=[];this.collapse(w),this.children=[new no(w)],this.children[0].parent=this}},collapse:function(t){for(var n=0;n<this.children.length;++n)this.children[n].collapse(t)},insertInner:function(t,n,l){this.size+=n.length,this.height+=l;for(var s=0;s<this.children.length;++s){var f=this.children[s],g=f.chunkSize();if(t<=g){if(f.insertInner(t,n,l),f.lines&&f.lines.length>50){for(var b=f.lines.length%25+25,w=b;w<f.lines.length;){var k=new no(f.lines.slice(w,w+=25));f.height-=k.height,this.children.splice(++s,0,k),k.parent=this}f.lines=f.lines.slice(0,b),this.maybeSpill()}break}t-=g}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var n=t.children.splice(t.children.length-5,5),l=new yi(n);if(t.parent){t.size-=l.size,t.height-=l.height;var f=Pe(t.parent.children,t);t.parent.children.splice(f+1,0,l)}else{var s=new yi(t.children);s.parent=t,t.children=[s,l],t=s}l.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,n,l){for(var s=0;s<this.children.length;++s){var f=this.children[s],g=f.chunkSize();if(t<g){var b=Math.min(n,g-t);if(f.iterN(t,b,l))return!0;if((n-=b)==0)break;t=0}else t-=g}}};var io=function(t,n,l){if(l)for(var s in l)l.hasOwnProperty(s)&&(this[s]=l[s]);this.doc=t,this.node=n};io.prototype.clear=function(){var t=this.doc.cm,n=this.line.widgets,l=this.line,s=O(l);if(!(s==null||!n)){for(var f=0;f<n.length;++f)n[f]==this&&n.splice(f--,1);n.length||(l.widgets=null);var g=Vi(this);kr(l,Math.max(0,l.height-g)),t&&(hr(t,function(){wl(t,l,-g),pn(t,s,"widget")}),Ft(t,"lineWidgetCleared",t,this,s))}},io.prototype.changed=function(){var t=this,n=this.height,l=this.doc.cm,s=this.line;this.height=null;var f=Vi(this)-n;f&&(Tn(this.doc,s)||kr(s,s.height+f),l&&hr(l,function(){l.curOp.forceUpdate=!0,wl(l,s,f),Ft(l,"lineWidgetChanged",l,t,O(s))}))},br(io);function wl(t,n,l){Nr(n)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&Js(t,l)}function Ic(t,n,l,s){var f=new io(t,l,s),g=t.cm;return g&&f.noHScroll&&(g.display.alignWidgets=!0),ea(t,n,"widget",function(b){var w=b.widgets||(b.widgets=[]);if(f.insertAt==null?w.push(f):w.splice(Math.min(w.length,Math.max(0,f.insertAt)),0,f),f.line=b,g&&!Tn(t,b)){var k=Nr(b)<t.scrollTop;kr(b,b.height+Vi(f)),k&&Js(g,f.height),g.curOp.forceUpdate=!0}return!0}),g&&Ft(g,"lineWidgetAdded",g,f,typeof n=="number"?n:O(n)),f}var nf=0,zn=function(t,n){this.lines=[],this.type=n,this.doc=t,this.id=++nf};zn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,n=t&&!t.curOp;if(n&&pi(t),rr(this,"clear")){var l=this.find();l&&Ft(this,"clear",l.from,l.to)}for(var s=null,f=null,g=0;g<this.lines.length;++g){var b=this.lines[g],w=Hi(b.markedSpans,this);t&&!this.collapsed?pn(t,O(b),"text"):t&&(w.to!=null&&(f=O(b)),w.from!=null&&(s=O(b))),b.markedSpans=bc(b.markedSpans,w),w.from==null&&this.collapsed&&!Tn(this.doc,b)&&t&&kr(b,si(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var k=0;k<this.lines.length;++k){var C=Jt(this.lines[k]),P=Oo(C);P>t.display.maxLineLength&&(t.display.maxLine=C,t.display.maxLineLength=P,t.display.maxLineChanged=!0)}s!=null&&t&&this.collapsed&&or(t,s,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&vl(t.doc)),t&&Ft(t,"markerCleared",t,this,s,f),n&&Mn(t),this.parent&&this.parent.clear()}},zn.prototype.find=function(t,n){t==null&&this.type=="bookmark"&&(t=1);for(var l,s,f=0;f<this.lines.length;++f){var g=this.lines[f],b=Hi(g.markedSpans,this);if(b.from!=null&&(l=fe(n?g:O(g),b.from),t==-1))return l;if(b.to!=null&&(s=fe(n?g:O(g),b.to),t==1))return s}return l&&{from:l,to:s}},zn.prototype.changed=function(){var t=this,n=this.find(-1,!0),l=this,s=this.doc.cm;!n||!s||hr(s,function(){var f=n.line,g=O(n.line),b=Mo(s,g);if(b&&(Ia(b),s.curOp.selectionChanged=s.curOp.forceUpdate=!0),s.curOp.updateMaxLine=!0,!Tn(l.doc,f)&&l.height!=null){var w=l.height;l.height=null;var k=Vi(l)-w;k&&kr(f,f.height+k)}Ft(s,"markerChanged",s,t)})},zn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||Pe(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},zn.prototype.detachLine=function(t){if(this.lines.splice(Pe(this.lines,t),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},br(zn);function bi(t,n,l,s,f){if(s&&s.shared)return Fc(t,n,l,s,f);if(t.cm&&!t.cm.curOp)return zt(t.cm,bi)(t,n,l,s,f);var g=new zn(t,f),b=Ce(n,l);if(s&&Ue(s,g,!1),b>0||b==0&&g.clearWhenEmpty!==!1)return g;if(g.replacedWith&&(g.collapsed=!0,g.widgetNode=ve("span",[g.replacedWith],"CodeMirror-widget"),s.handleMouseEvents||g.widgetNode.setAttribute("cm-ignore-events","true"),s.insertLeft&&(g.widgetNode.insertLeft=!0)),g.collapsed){if(Ta(t,n.line,n,l,g)||n.line!=l.line&&Ta(t,l.line,n,l,g))throw new Error("Inserting collapsed marker partially overlapping an existing one");Sa()}g.addToHistory&&cl(t,{from:n,to:l,origin:"markText"},t.sel,NaN);var w=n.line,k=t.cm,C;if(t.iter(w,l.line+1,function(R){k&&g.collapsed&&!k.options.lineWrapping&&Jt(R)==k.display.maxLine&&(C=!0),g.collapsed&&w!=n.line&&kr(R,0),xc(R,new Bi(g,w==n.line?n.ch:null,w==l.line?l.ch:null),t.cm&&t.cm.curOp),++w}),g.collapsed&&t.iter(n.line,l.line+1,function(R){Tn(t,R)&&kr(R,0)}),g.clearOnEnter&&Ie(g,"beforeCursorEnter",function(){return g.clear()}),g.readOnly&&(Zt(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),g.collapsed&&(g.id=++nf,g.atomic=!0),k){if(C&&(k.curOp.updateMaxLine=!0),g.collapsed)or(k,n.line,l.line+1);else if(g.className||g.startStyle||g.endStyle||g.css||g.attributes||g.title)for(var P=n.line;P<=l.line;P++)pn(k,P,"text");g.atomic&&vl(k.doc),Ft(k,"markerAdded",k,g)}return g}var ta=function(t,n){this.markers=t,this.primary=n;for(var l=0;l<t.length;++l)t[l].parent=this};ta.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Ft(this,"clear")}},ta.prototype.find=function(t,n){return this.primary.find(t,n)},br(ta);function Fc(t,n,l,s,f){s=Ue(s),s.shared=!1;var g=[bi(t,n,l,s,f)],b=g[0],w=s.widgetNode;return Dn(t,function(k){w&&(s.widgetNode=w.cloneNode(!0)),g.push(bi(k,He(k,n),He(k,l),s,f));for(var C=0;C<k.linked.length;++C)if(k.linked[C].isParent)return;b=qe(g)}),new ta(g,b)}function of(t){return t.findMarks(fe(t.first,0),t.clipPos(fe(t.lastLine())),function(n){return n.parent})}function zc(t,n){for(var l=0;l<n.length;l++){var s=n[l],f=s.find(),g=t.clipPos(f.from),b=t.clipPos(f.to);if(Ce(g,b)){var w=bi(t,g,b,s.primary,s.primary.type);s.markers.push(w),w.parent=s}}}function Rc(t){for(var n=function(s){var f=t[s],g=[f.primary.doc];Dn(f.primary.doc,function(k){return g.push(k)});for(var b=0;b<f.markers.length;b++){var w=f.markers[b];Pe(g,w.doc)==-1&&(w.parent=null,f.markers.splice(b--,1))}},l=0;l<t.length;l++)n(l)}var jc=0,tr=function(t,n,l,s,f){if(!(this instanceof tr))return new tr(t,n,l,s,f);l==null&&(l=0),yi.call(this,[new no([new Ki("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var g=fe(l,0);this.sel=Xr(g),this.history=new Za(null),this.id=++jc,this.modeOption=n,this.lineSep=s,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),to(this,{from:g,to:g,text:t}),Vt(this,Xr(g),at)};tr.prototype=ce(yi.prototype,{constructor:tr,iter:function(t,n,l){l?this.iterN(t-this.first,n-t,l):this.iterN(this.first,this.first+this.size,t)},insert:function(t,n){for(var l=0,s=0;s<n.length;++s)l+=n[s].height;this.insertInner(t-this.first,n,l)},remove:function(t,n){this.removeInner(t-this.first,n)},getValue:function(t){var n=ji(this,this.first,this.first+this.size);return t===!1?n:n.join(t||this.lineSeparator())},setValue:Rt(function(t){var n=fe(this.first,0),l=this.first+this.size-1;mi(this,{from:n,to:fe(l,Ne(this,l).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Zi(this.cm,0,0),Vt(this,Xr(n),at)}),replaceRange:function(t,n,l,s){n=He(this,n),l=l?He(this,l):n,vi(this,t,n,l,s)},getRange:function(t,n,l){var s=wr(this,He(this,t),He(this,n));return l===!1?s:l===""?s.join(""):s.join(l||this.lineSeparator())},getLine:function(t){var n=this.getLineHandle(t);return n&&n.text},getLineHandle:function(t){if(me(this,t))return Ne(this,t)},getLineNumber:function(t){return O(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=Ne(this,t)),Jt(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return He(this,t)},getCursor:function(t){var n=this.sel.primary(),l;return t==null||t=="head"?l=n.head:t=="anchor"?l=n.anchor:t=="end"||t=="to"||t===!1?l=n.to():l=n.from(),l},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Rt(function(t,n,l){In(this,He(this,typeof t=="number"?fe(t,n||0):t),null,l)}),setSelection:Rt(function(t,n,l){In(this,He(this,t),He(this,n||t),l)}),extendSelection:Rt(function(t,n,l){Xo(this,He(this,t),n&&He(this,n),l)}),extendSelections:Rt(function(t,n){hl(this,gu(this,t),n)}),extendSelectionsBy:Rt(function(t,n){var l=nt(this.sel.ranges,t);hl(this,gu(this,l),n)}),setSelections:Rt(function(t,n,l){if(t.length){for(var s=[],f=0;f<t.length;f++)s[f]=new st(He(this,t[f].anchor),He(this,t[f].head||t[f].anchor));n==null&&(n=Math.min(t.length-1,this.sel.primIndex)),Vt(this,Mr(this.cm,s,n),l)}}),addSelection:Rt(function(t,n,l){var s=this.sel.ranges.slice(0);s.push(new st(He(this,t),He(this,n||t))),Vt(this,Mr(this.cm,s,s.length-1),l)}),getSelection:function(t){for(var n=this.sel.ranges,l,s=0;s<n.length;s++){var f=wr(this,n[s].from(),n[s].to());l=l?l.concat(f):f}return t===!1?l:l.join(t||this.lineSeparator())},getSelections:function(t){for(var n=[],l=this.sel.ranges,s=0;s<l.length;s++){var f=wr(this,l[s].from(),l[s].to());t!==!1&&(f=f.join(t||this.lineSeparator())),n[s]=f}return n},replaceSelection:function(t,n,l){for(var s=[],f=0;f<this.sel.ranges.length;f++)s[f]=t;this.replaceSelections(s,n,l||"+input")},replaceSelections:Rt(function(t,n,l){for(var s=[],f=this.sel,g=0;g<f.ranges.length;g++){var b=f.ranges[g];s[g]={from:b.from(),to:b.to(),text:this.splitLines(t[g]),origin:l}}for(var w=n&&n!="end"&&Pc(this,s,n),k=s.length-1;k>=0;k--)mi(this,s[k]);w?gl(this,w):this.cm&&zr(this.cm)}),undo:Rt(function(){Jo(this,"undo")}),redo:Rt(function(){Jo(this,"redo")}),undoSelection:Rt(function(){Jo(this,"undo",!0)}),redoSelection:Rt(function(){Jo(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,n=0,l=0,s=0;s<t.done.length;s++)t.done[s].ranges||++n;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++l;return{undo:n,redo:l}},clearHistory:function(){var t=this;this.history=new Za(this.history),Dn(this,function(n){return n.history=t.history},!0)},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:mn(this.history.done),undone:mn(this.history.undone)}},setHistory:function(t){var n=this.history=new Za(this.history);n.done=mn(t.done.slice(0),null,!0),n.undone=mn(t.undone.slice(0),null,!0)},setGutterMarker:Rt(function(t,n,l){return ea(this,t,"gutter",function(s){var f=s.gutterMarkers||(s.gutterMarkers={});return f[n]=l,!l&&Me(f)&&(s.gutterMarkers=null),!0})}),clearGutter:Rt(function(t){var n=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[t]&&ea(n,l,"gutter",function(){return l.gutterMarkers[t]=null,Me(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(t){var n;if(typeof t=="number"){if(!me(this,t)||(n=t,t=Ne(this,t),!t))return null}else if(n=O(t),n==null)return null;return{line:n,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Rt(function(t,n,l){return ea(this,t,n=="gutter"?"gutter":"class",function(s){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(!s[f])s[f]=l;else{if(ne(l).test(s[f]))return!1;s[f]+=" "+l}return!0})}),removeLineClass:Rt(function(t,n,l){return ea(this,t,n=="gutter"?"gutter":"class",function(s){var f=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",g=s[f];if(g)if(l==null)s[f]=null;else{var b=g.match(ne(l));if(!b)return!1;var w=b.index+b[0].length;s[f]=g.slice(0,b.index)+(!b.index||w==g.length?"":" ")+g.slice(w)||null}else return!1;return!0})}),addLineWidget:Rt(function(t,n,l){return Ic(this,t,n,l)}),removeLineWidget:function(t){t.clear()},markText:function(t,n,l){return bi(this,He(this,t),He(this,n),l,l&&l.type||"range")},setBookmark:function(t,n){var l={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return t=He(this,t),bi(this,t,t,l,"bookmark")},findMarksAt:function(t){t=He(this,t);var n=[],l=Ne(this,t.line).markedSpans;if(l)for(var s=0;s<l.length;++s){var f=l[s];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&n.push(f.marker.parent||f.marker)}return n},findMarks:function(t,n,l){t=He(this,t),n=He(this,n);var s=[],f=t.line;return this.iter(t.line,n.line+1,function(g){var b=g.markedSpans;if(b)for(var w=0;w<b.length;w++){var k=b[w];!(k.to!=null&&f==t.line&&t.ch>=k.to||k.from==null&&f!=t.line||k.from!=null&&f==n.line&&k.from>=n.ch)&&(!l||l(k.marker))&&s.push(k.marker.parent||k.marker)}++f}),s},getAllMarks:function(){var t=[];return this.iter(function(n){var l=n.markedSpans;if(l)for(var s=0;s<l.length;++s)l[s].from!=null&&t.push(l[s].marker)}),t},posFromIndex:function(t){var n,l=this.first,s=this.lineSeparator().length;return this.iter(function(f){var g=f.text.length+s;if(g>t)return n=t,!0;t-=g,++l}),He(this,fe(l,n))},indexFromPos:function(t){t=He(this,t);var n=t.ch;if(t.line<this.first||t.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,t.line,function(s){n+=s.text.length+l}),n},copy:function(t){var n=new tr(ji(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,t&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(t){t||(t={});var n=this.first,l=this.first+this.size;t.from!=null&&t.from>n&&(n=t.from),t.to!=null&&t.to<l&&(l=t.to);var s=new tr(ji(this,n,l),t.mode||this.modeOption,n,this.lineSep,this.direction);return t.sharedHist&&(s.history=this.history),(this.linked||(this.linked=[])).push({doc:s,sharedHist:t.sharedHist}),s.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],zc(s,of(this)),s},unlinkDoc:function(t){if(t instanceof dt&&(t=t.doc),this.linked)for(var n=0;n<this.linked.length;++n){var l=this.linked[n];if(l.doc==t){this.linked.splice(n,1),t.unlinkDoc(this),Rc(of(this));break}}if(t.history==this.history){var s=[t.id];Dn(t,function(f){return s.push(f.id)},!0),t.history=new Za(null),t.history.done=mn(this.history.done,s),t.history.undone=mn(this.history.undone,s)}},iterLinkedDocs:function(t){Dn(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):nr(t)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Rt(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(n){return n.order=null}),this.cm&&Xu(this.cm))})}),tr.prototype.eachLine=tr.prototype.iter;var af=0;function qc(t){var n=this;if(sf(n),!(gt(n,t)||dr(n.display,t))){Tt(t),m&&(af=+new Date);var l=li(n,t,!0),s=t.dataTransfer.files;if(!(!l||n.isReadOnly()))if(s&&s.length&&window.FileReader&&window.File)for(var f=s.length,g=Array(f),b=0,w=function(){++b==f&&zt(n,function(){l=He(n.doc,l);var a={from:l,to:l,text:n.doc.splitLines(g.filter(function(u){return u!=null}).join(n.doc.lineSeparator())),origin:"paste"};mi(n.doc,a),gl(n.doc,Xr(He(n.doc,l),He(n.doc,Yr(a))))})()},k=function(a,u){if(n.options.allowDropFileTypes&&Pe(n.options.allowDropFileTypes,a.type)==-1){w();return}var p=new FileReader;p.onerror=function(){return w()},p.onload=function(){var h=p.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(h)){w();return}g[u]=h,w()},p.readAsText(a)},C=0;C<s.length;C++)k(s[C],C);else{if(n.state.draggingText&&n.doc.sel.contains(l)>-1){n.state.draggingText(t),setTimeout(function(){return n.display.input.focus()},20);return}try{var P=t.dataTransfer.getData("Text");if(P){var R;if(n.state.draggingText&&!n.state.draggingText.copy&&(R=n.listSelections()),Yo(n.doc,Xr(l,l)),R)for(var Y=0;Y<R.length;++Y)vi(n.doc,"",R[Y].anchor,R[Y].head,"drag");n.replaceSelection(P,"around","paste"),n.display.input.focus()}}catch{}}}}function kl(t,n){if(m&&(!t.state.draggingText||+new Date-af<100)){Yt(n);return}if(!(gt(t,n)||dr(t.display,n))&&(n.dataTransfer.setData("Text",t.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!U)){var l=$("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(l.width=l.height=1,t.display.wrapper.appendChild(l),l._top=l.offsetTop),n.dataTransfer.setDragImage(l,0,0),E&&l.parentNode.removeChild(l)}}function Wc(t,n){var l=li(t,n);if(l){var s=document.createDocumentFragment();qa(t,l,s),t.display.dragCursor||(t.display.dragCursor=$("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),pe(t.display.dragCursor,s)}}function sf(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function lf(t){if(document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),l=[],s=0;s<n.length;s++){var f=n[s].CodeMirror;f&&l.push(f)}l.length&&l[0].operation(function(){for(var g=0;g<l.length;g++)t(l[g])})}}var uf=!1;function Bc(){uf||(Hc(),uf=!0)}function Hc(){var t;Ie(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,lf(Uc)},100))}),Ie(window,"blur",function(){return lf(Xi)})}function Uc(t){var n=t.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,t.setSize()}for(var yn={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:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},oo=0;oo<10;oo++)yn[oo+48]=yn[oo+96]=String(oo);for(var ra=65;ra<=90;ra++)yn[ra]=String.fromCharCode(ra);for(var na=1;na<=12;na++)yn[na+111]=yn[na+63235]="F"+na;var Zr={};Zr.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"},Zr.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"},Zr.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Zr.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"]},Zr.default=re?Zr.macDefault:Zr.pcDefault;function Kc(t){var n=t.split(/-(?!$)/);t=n[n.length-1];for(var l,s,f,g,b=0;b<n.length-1;b++){var w=n[b];if(/^(cmd|meta|m)$/i.test(w))g=!0;else if(/^a(lt)?$/i.test(w))l=!0;else if(/^(c|ctrl|control)$/i.test(w))s=!0;else if(/^s(hift)?$/i.test(w))f=!0;else throw new Error("Unrecognized modifier name: "+w)}return l&&(t="Alt-"+t),s&&(t="Ctrl-"+t),g&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function ff(t){var n={};for(var l in t)if(t.hasOwnProperty(l)){var s=t[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(s=="..."){delete t[l];continue}for(var f=nt(l.split(" "),Kc),g=0;g<f.length;g++){var b=void 0,w=void 0;g==f.length-1?(w=f.join(" "),b=s):(w=f.slice(0,g+1).join(" "),b="...");var k=n[w];if(!k)n[w]=b;else if(k!=b)throw new Error("Inconsistent bindings for "+w)}delete t[l]}for(var C in n)t[C]=n[C];return t}function xi(t,n,l,s){n=os(n);var f=n.call?n.call(t,s):n[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&l(f))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return xi(t,n.fallthrough,l,s);for(var g=0;g<n.fallthrough.length;g++){var b=xi(t,n.fallthrough[g],l,s);if(b)return b}}}function _l(t){var n=typeof t=="string"?t:yn[t.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Sl(t,n,l){var s=t;return n.altKey&&s!="Alt"&&(t="Alt-"+t),(B?n.metaKey:n.ctrlKey)&&s!="Ctrl"&&(t="Ctrl-"+t),(B?n.ctrlKey:n.metaKey)&&s!="Mod"&&(t="Cmd-"+t),!l&&n.shiftKey&&s!="Shift"&&(t="Shift-"+t),t}function cf(t,n){if(E&&t.keyCode==34&&t.char)return!1;var l=yn[t.keyCode];return l==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(l=t.code),Sl(l,t,n))}function os(t){return typeof t=="string"?Zr[t]:t}function ao(t,n){for(var l=t.doc.sel.ranges,s=[],f=0;f<l.length;f++){for(var g=n(l[f]);s.length&&Ce(g.from,qe(s).to)<=0;){var b=s.pop();if(Ce(b.from,g.from)<0){g.from=b.from;break}}s.push(g)}hr(t,function(){for(var w=s.length-1;w>=0;w--)vi(t.doc,"",s[w].from,s[w].to,"+delete");zr(t)})}function Cl(t,n,l){var s=ht(t.text,n+l,l);return s<0||s>t.text.length?null:s}function as(t,n,l){var s=Cl(t,n.ch,l);return s==null?null:new fe(n.line,s,l<0?"after":"before")}function Tl(t,n,l,s,f){if(t){n.doc.direction=="rtl"&&(f=-f);var g=et(l,n.doc.direction);if(g){var b=f<0?qe(g):g[0],w=f<0==(b.level==1),k=w?"after":"before",C;if(b.level>0||n.doc.direction=="rtl"){var P=oi(n,l);C=f<0?l.text.length-1:0;var R=Kr(n,P,C).top;C=Wt(function(Y){return Kr(n,P,Y).top==R},f<0==(b.level==1)?b.from:b.to-1,C),k=="before"&&(C=Cl(l,C,1))}else C=f<0?b.to:b.from;return new fe(s,C,k)}}return new fe(s,f<0?l.text.length:0,f<0?"before":"after")}function Vc(t,n,l,s){var f=et(n,t.doc.direction);if(!f)return as(n,l,s);l.ch>=n.text.length?(l.ch=n.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var g=_n(f,l.ch,l.sticky),b=f[g];if(t.doc.direction=="ltr"&&b.level%2==0&&(s>0?b.to>l.ch:b.from<l.ch))return as(n,l,s);var w=function(v,y){return Cl(n,v instanceof fe?v.ch:v,y)},k,C=function(v){return t.options.lineWrapping?(k=k||oi(t,n),Ru(t,n,k,v)):{begin:0,end:n.text.length}},P=C(l.sticky=="before"?w(l,-1):l.ch);if(t.doc.direction=="rtl"||b.level==1){var R=b.level==1==s<0,Y=w(l,R?1:-1);if(Y!=null&&(R?Y<=b.to&&Y<=P.end:Y>=b.from&&Y>=P.begin)){var a=R?"before":"after";return new fe(l.line,Y,a)}}var u=function(v,y,_){for(var L=function(M,X){return X?new fe(l.line,w(M,1),"before"):new fe(l.line,M,"after")};v>=0&&v<f.length;v+=y){var N=f[v],F=y>0==(N.level!=1),H=F?_.begin:w(_.end,-1);if(N.from<=H&&H<N.to||(H=F?N.from:w(N.to,-1),_.begin<=H&&H<_.end))return L(H,F)}},p=u(g+s,s,P);if(p)return p;var h=s>0?P.end:w(P.begin,-1);return h!=null&&!(s>0&&h==n.text.length)&&(p=u(s>0?0:f.length-1,s,C(h)),p)?p:null}var so={selectAll:yl,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),at)},killLine:function(t){return ao(t,function(n){if(n.empty()){var l=Ne(t.doc,n.head.line).text.length;return n.head.ch==l&&n.head.line<t.lastLine()?{from:n.head,to:fe(n.head.line+1,0)}:{from:n.head,to:fe(n.head.line,l)}}else return{from:n.from(),to:n.to()}})},deleteLine:function(t){return ao(t,function(n){return{from:fe(n.from().line,0),to:He(t.doc,fe(n.to().line+1,0))}})},delLineLeft:function(t){return ao(t,function(n){return{from:fe(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(t){return ao(t,function(n){var l=t.charCoords(n.head,"div").top+5,s=t.coordsChar({left:0,top:l},"div");return{from:s,to:n.from()}})},delWrappedLineRight:function(t){return ao(t,function(n){var l=t.charCoords(n.head,"div").top+5,s=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:l},"div");return{from:n.from(),to:s}})},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(fe(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(fe(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(n){return $l(t,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(n){return ss(t,n.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(n){return Ll(t,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(n){var l=t.cursorCoords(n.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:l},"div")},Ze)},goLineLeft:function(t){return t.extendSelectionsBy(function(n){var l=t.cursorCoords(n.head,"div").top+5;return t.coordsChar({left:0,top:l},"div")},Ze)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(n){var l=t.cursorCoords(n.head,"div").top+5,s=t.coordsChar({left:0,top:l},"div");return s.ch<t.getLine(s.line).search(/\S/)?ss(t,n.head):s},Ze)},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,"codepoint")},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("	")},insertSoftTab:function(t){for(var n=[],l=t.listSelections(),s=t.options.tabSize,f=0;f<l.length;f++){var g=l[f].from(),b=Ge(t.getLine(g.line),g.ch,s);n.push(qt(s-b%s))}t.replaceSelections(n)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return hr(t,function(){for(var n=t.listSelections(),l=[],s=0;s<n.length;s++)if(n[s].empty()){var f=n[s].head,g=Ne(t.doc,f.line).text;if(g){if(f.ch==g.length&&(f=new fe(f.line,f.ch-1)),f.ch>0)f=new fe(f.line,f.ch+1),t.replaceRange(g.charAt(f.ch-1)+g.charAt(f.ch-2),fe(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var b=Ne(t.doc,f.line-1).text;b&&(f=new fe(f.line,1),t.replaceRange(g.charAt(0)+t.doc.lineSeparator()+b.charAt(b.length-1),fe(f.line-1,b.length-1),f,"+transpose"))}}l.push(new st(f,f))}t.setSelections(l)})},newlineAndIndent:function(t){return hr(t,function(){for(var n=t.listSelections(),l=n.length-1;l>=0;l--)t.replaceRange(t.doc.lineSeparator(),n[l].anchor,n[l].head,"+input");n=t.listSelections();for(var s=0;s<n.length;s++)t.indentLine(n[s].from().line,null,!0);zr(t)})},openLine:function(t){return t.replaceSelection(`
`,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function $l(t,n){var l=Ne(t.doc,n),s=Jt(l);return s!=l&&(n=O(s)),Tl(!0,t,s,n,1)}function Ll(t,n){var l=Ne(t.doc,n),s=wu(l);return s!=l&&(n=O(s)),Tl(!0,t,l,n,-1)}function ss(t,n){var l=$l(t,n.line),s=Ne(t.doc,l.line),f=et(s,t.doc.direction);if(!f||f[0].level==0){var g=Math.max(l.ch,s.text.search(/\S/)),b=n.line==l.line&&n.ch<=g&&n.ch;return fe(l.line,b?0:g,l.sticky)}return l}function lo(t,n,l){if(typeof n=="string"&&(n=so[n],!n))return!1;t.display.input.ensurePolled();var s=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),l&&(t.display.shift=!1),f=n(t)!=ut}finally{t.display.shift=s,t.state.suppressEdits=!1}return f}function Al(t,n,l){for(var s=0;s<t.state.keyMaps.length;s++){var f=xi(n,t.state.keyMaps[s],l,t);if(f)return f}return t.options.extraKeys&&xi(n,t.options.extraKeys,l,t)||xi(n,t.options.keyMap,l,t)}var Ol=new Oe;function uo(t,n,l,s){var f=t.state.keySeq;if(f){if(_l(n))return"handled";if(/\'$/.test(n)?t.state.keySeq=null:Ol.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),Nl(t,f+" "+n,l,s))return!0}return Nl(t,n,l,s)}function Nl(t,n,l,s){var f=Al(t,n,s);return f=="multi"&&(t.state.keySeq=n),f=="handled"&&Ft(t,"keyHandled",t,n,l),(f=="handled"||f=="multi")&&(Tt(l),Wa(t)),!!f}function ls(t,n){var l=cf(n,!0);return l?n.shiftKey&&!t.state.keySeq?uo(t,"Shift-"+l,n,function(s){return lo(t,s,!0)})||uo(t,l,n,function(s){if(typeof s=="string"?/^go[A-Z]/.test(s):s.motion)return lo(t,s)}):uo(t,l,n,function(s){return lo(t,s)}):!1}function Gc(t,n,l){return uo(t,"'"+l+"'",n,function(s){return lo(t,s,!0)})}var us=null;function pf(t){var n=this;if(!(t.target&&t.target!=n.display.input.getField())&&(n.curOp.focus=Q(wt(n)),!gt(n,t))){m&&x<11&&t.keyCode==27&&(t.returnValue=!1);var l=t.keyCode;n.display.shift=l==16||t.shiftKey;var s=ls(n,t);E&&(us=s?l:null,!s&&l==88&&!Sn&&(re?t.metaKey:t.ctrlKey)&&n.replaceSelection("",null,"cut")),i&&!re&&!s&&l==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&fs(n)}}function fs(t){var n=t.display.lineDiv;he(n,"CodeMirror-crosshair");function l(s){(s.keyCode==18||!s.altKey)&&(ge(n,"CodeMirror-crosshair"),Ot(document,"keyup",l),Ot(document,"mouseover",l))}Ie(document,"keyup",l),Ie(document,"mouseover",l)}function df(t){t.keyCode==16&&(this.doc.sel.shift=!1),gt(this,t)}function El(t){var n=this;if(!(t.target&&t.target!=n.display.input.getField())&&!(dr(n.display,t)||gt(n,t)||t.ctrlKey&&!t.altKey||re&&t.metaKey)){var l=t.keyCode,s=t.charCode;if(E&&l==us){us=null,Tt(t);return}if(!(E&&(!t.which||t.which<10)&&ls(n,t))){var f=String.fromCharCode(s??l);f!="\b"&&(Gc(n,t,f)||n.display.input.onKeyPress(t))}}}var hf=400,ia=function(t,n,l){this.time=t,this.pos=n,this.button=l};ia.prototype.compare=function(t,n,l){return this.time+hf>t&&Ce(n,this.pos)==0&&l==this.button};var oa,aa;function Qc(t,n){var l=+new Date;return aa&&aa.compare(l,t,n)?(oa=aa=null,"triple"):oa&&oa.compare(l,t,n)?(aa=new ia(l,t,n),oa=null,"double"):(oa=new ia(l,t,n),aa=null,"single")}function sa(t){var n=this,l=n.display;if(!(gt(n,t)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=t.shiftKey,dr(l,t)){S||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100));return}if(!Pl(n,t)){var s=li(n,t),f=fr(t),g=s?Qc(s,f):"single";We(n).focus(),f==1&&n.state.selectingText&&n.state.selectingText(t),!(s&&Ml(n,f,s,g,t))&&(f==1?s?cs(n,s,g,t):Lr(t)==l.scroller&&Tt(t):f==2?(s&&Xo(n.doc,s),setTimeout(function(){return l.input.focus()},20)):f==3&&(ee?n.display.input.onContextMenu(t):Fo(n)))}}}function Ml(t,n,l,s,f){var g="Click";return s=="double"?g="Double"+g:s=="triple"&&(g="Triple"+g),g=(n==1?"Left":n==2?"Middle":"Right")+g,uo(t,Sl(g,f),f,function(b){if(typeof b=="string"&&(b=so[b]),!b)return!1;var w=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),w=b(t,l)!=ut}finally{t.state.suppressEdits=!1}return w})}function Xc(t,n,l){var s=t.getOption("configureMouse"),f=s?s(t,n,l):{};if(f.unit==null){var g=ue?l.shiftKey&&l.metaKey:l.altKey;f.unit=g?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||l.shiftKey),f.addNew==null&&(f.addNew=re?l.metaKey:l.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(re?l.altKey:l.ctrlKey)),f}function cs(t,n,l,s){m?setTimeout(Ee(Ba,t),0):t.curOp.focus=Q(wt(t));var f=Xc(t,l,s),g=t.doc.sel,b;t.options.dragDrop&&_o&&!t.isReadOnly()&&l=="single"&&(b=g.contains(n))>-1&&(Ce((b=g.ranges[b]).from(),n)<0||n.xRel>0)&&(Ce(b.to(),n)>0||n.xRel<0)?gf(t,s,n,f):mf(t,s,n,f)}function gf(t,n,l,s){var f=t.display,g=!1,b=zt(t,function(C){S&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Fo(t)),Ot(f.wrapper.ownerDocument,"mouseup",b),Ot(f.wrapper.ownerDocument,"mousemove",w),Ot(f.scroller,"dragstart",k),Ot(f.scroller,"drop",b),g||(Tt(C),s.addNew||Xo(t.doc,l,null,null,s.extend),S&&!U||m&&x==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),w=function(C){g=g||Math.abs(n.clientX-C.clientX)+Math.abs(n.clientY-C.clientY)>=10},k=function(){return g=!0};S&&(f.scroller.draggable=!0),t.state.draggingText=b,b.copy=!s.moveOnDrag,Ie(f.wrapper.ownerDocument,"mouseup",b),Ie(f.wrapper.ownerDocument,"mousemove",w),Ie(f.scroller,"dragstart",k),Ie(f.scroller,"drop",b),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function wi(t,n,l){if(l=="char")return new st(n,n);if(l=="word")return t.findWordAt(n);if(l=="line")return new st(fe(n.line,0),He(t.doc,fe(n.line+1,0)));var s=l(t,n);return new st(s.from,s.to)}function mf(t,n,l,s){m&&Fo(t);var f=t.display,g=t.doc;Tt(n);var b,w,k=g.sel,C=k.ranges;if(s.addNew&&!s.extend?(w=g.sel.contains(l),w>-1?b=C[w]:b=new st(l,l)):(b=g.sel.primary(),w=g.sel.primIndex),s.unit=="rectangle")s.addNew||(b=new st(l,l)),l=li(t,n,!0,!0),w=-1;else{var P=wi(t,l,s.unit);s.extend?b=Qo(b,P.anchor,P.head,s.extend):b=P}s.addNew?w==-1?(w=C.length,Vt(g,Mr(t,C.concat([b]),w),{scroll:!1,origin:"*mouse"})):C.length>1&&C[w].empty()&&s.unit=="char"&&!s.extend?(Vt(g,Mr(t,C.slice(0,w).concat(C.slice(w+1)),0),{scroll:!1,origin:"*mouse"}),k=g.sel):es(g,w,b,At):(w=0,Vt(g,new Tr([b],0),At),k=g.sel);var R=l;function Y(_){if(Ce(R,_)!=0)if(R=_,s.unit=="rectangle"){for(var L=[],N=t.options.tabSize,F=Ge(Ne(g,l.line).text,l.ch,N),H=Ge(Ne(g,_.line).text,_.ch,N),M=Math.min(F,H),X=Math.max(F,H),J=Math.min(l.line,_.line),ie=Math.min(t.lastLine(),Math.max(l.line,_.line));J<=ie;J++){var ye=Ne(g,J).text,de=kt(ye,M,N);M==X?L.push(new st(fe(J,de),fe(J,de))):ye.length>de&&L.push(new st(fe(J,de),fe(J,kt(ye,X,N))))}L.length||L.push(new st(l,l)),Vt(g,Mr(t,k.ranges.slice(0,w).concat(L),w),{origin:"*mouse",scroll:!1}),t.scrollIntoView(_)}else{var _e=b,we=wi(t,_,s.unit),ze=_e.anchor,Le;Ce(we.anchor,ze)>0?(Le=we.head,ze=qi(_e.from(),we.anchor)):(Le=we.anchor,ze=ir(_e.to(),we.head));var Te=k.ranges.slice(0);Te[w]=Yc(t,new st(He(g,ze),Le)),Vt(g,Mr(t,Te,w),At)}}var a=f.wrapper.getBoundingClientRect(),u=0;function p(_){var L=++u,N=li(t,_,!0,s.unit=="rectangle");if(N)if(Ce(N,R)!=0){t.curOp.focus=Q(wt(t)),Y(N);var F=zo(f,g);(N.line>=F.to||N.line<F.from)&&setTimeout(zt(t,function(){u==L&&p(_)}),150)}else{var H=_.clientY<a.top?-20:_.clientY>a.bottom?20:0;H&&setTimeout(zt(t,function(){u==L&&(f.scroller.scrollTop+=H,p(_))}),50)}}function h(_){t.state.selectingText=!1,u=1/0,_&&(Tt(_),f.input.focus()),Ot(f.wrapper.ownerDocument,"mousemove",v),Ot(f.wrapper.ownerDocument,"mouseup",y),g.history.lastSelOrigin=null}var v=zt(t,function(_){_.buttons===0||!fr(_)?h(_):p(_)}),y=zt(t,h);t.state.selectingText=y,Ie(f.wrapper.ownerDocument,"mousemove",v),Ie(f.wrapper.ownerDocument,"mouseup",y)}function Yc(t,n){var l=n.anchor,s=n.head,f=Ne(t.doc,l.line);if(Ce(l,s)==0&&l.sticky==s.sticky)return n;var g=et(f);if(!g)return n;var b=_n(g,l.ch,l.sticky),w=g[b];if(w.from!=l.ch&&w.to!=l.ch)return n;var k=b+(w.from==l.ch==(w.level!=1)?0:1);if(k==0||k==g.length)return n;var C;if(s.line!=l.line)C=(s.line-l.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var P=_n(g,s.ch,s.sticky),R=P-b||(s.ch-l.ch)*(w.level==1?-1:1);P==k-1||P==k?C=R<0:C=R>0}var Y=g[k+(C?-1:0)],a=C==(Y.level==1),u=a?Y.from:Y.to,p=a?"after":"before";return l.ch==u&&l.sticky==p?n:new st(new fe(l.line,u,p),s)}function vf(t,n,l,s){var f,g;if(n.touches)f=n.touches[0].clientX,g=n.touches[0].clientY;else try{f=n.clientX,g=n.clientY}catch{return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;s&&Tt(n);var b=t.display,w=b.lineDiv.getBoundingClientRect();if(g>w.bottom||!rr(t,l))return Xt(n);g-=w.top-b.viewOffset;for(var k=0;k<t.display.gutterSpecs.length;++k){var C=b.gutters.childNodes[k];if(C&&C.getBoundingClientRect().right>=f){var P=z(t.doc,g),R=t.display.gutterSpecs[k];return Ct(t,l,t,P,R.className,n),Xt(n)}}}function Pl(t,n){return vf(t,n,"gutterClick",!0)}function yf(t,n){dr(t.display,n)||Dl(t,n)||gt(t,n,"contextmenu")||ee||t.display.input.onContextMenu(n)}function Dl(t,n){return rr(t,"gutterContextMenu")?vf(t,n,"gutterContextMenu",!1):!1}function Il(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Gi(t)}var ki={toString:function(){return"CodeMirror.Init"}},ps={},ds={};function Zc(t){var n=t.optionHandlers;function l(s,f,g,b){t.defaults[s]=f,g&&(n[s]=b?function(w,k,C){C!=ki&&g(w,k,C)}:g)}t.defineOption=l,t.Init=ki,l("value","",function(s,f){return s.setValue(f)},!0),l("mode",null,function(s,f){s.doc.modeOption=f,Ya(s)},!0),l("indentUnit",2,Ya,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(s){hi(s),Gi(s),or(s)},!0),l("lineSeparator",null,function(s,f){if(s.doc.lineSep=f,!!f){var g=[],b=s.doc.first;s.doc.iter(function(k){for(var C=0;;){var P=k.text.indexOf(f,C);if(P==-1)break;C=P+f.length,g.push(fe(b,P))}b++});for(var w=g.length-1;w>=0;w--)vi(s.doc,f,g[w],fe(g[w].line,g[w].ch+f.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(s,f,g){s.state.specialChars=new RegExp(f.source+(f.test("	")?"":"|	"),"g"),g!=ki&&s.refresh()}),l("specialCharPlaceholder",Tu,function(s){return s.refresh()},!0),l("electricChars",!0),l("inputStyle",G?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(s,f){return s.getInputField().spellcheck=f},!0),l("autocorrect",!1,function(s,f){return s.getInputField().autocorrect=f},!0),l("autocapitalize",!1,function(s,f){return s.getInputField().autocapitalize=f},!0),l("rtlMoveVisually",!ae),l("wholeLineUpdateBefore",!0),l("theme","default",function(s){Il(s),eo(s)},!0),l("keyMap","default",function(s,f,g){var b=os(f),w=g!=ki&&os(g);w&&w.detach&&w.detach(s,b),b.attach&&b.attach(s,w||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,ep,!0),l("gutters",[],function(s,f){s.display.gutterSpecs=Ho(f,s.options.lineNumbers),eo(s)},!0),l("fixedGutter",!0,function(s,f){s.display.gutters.style.left=f?Io(s.display)+"px":"0",s.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(s){return Vr(s)},!0),l("scrollbarStyle","native",function(s){tl(s),Vr(s),s.display.scrollbars.setScrollTop(s.doc.scrollTop),s.display.scrollbars.setScrollLeft(s.doc.scrollLeft)},!0),l("lineNumbers",!1,function(s,f){s.display.gutterSpecs=Ho(s.options.gutters,f),eo(s)},!0),l("firstLineNumber",1,eo,!0),l("lineNumberFormatter",function(s){return s},eo,!0),l("showCursorWhenSelecting",!1,fi,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(s,f){f=="nocursor"&&(Xi(s),s.display.input.blur()),s.display.input.readOnlyChanged(f)}),l("screenReaderLabel",null,function(s,f){f=f===""?null:f,s.display.input.screenReaderLabelChanged(f)}),l("disableInput",!1,function(s,f){f||s.display.input.reset()},!0),l("dragDrop",!0,Jc),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,fi,!0),l("singleCursorHeightPerLine",!0,fi,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,hi,!0),l("addModeClass",!1,hi,!0),l("pollInterval",100),l("undoDepth",200,function(s,f){return s.doc.history.undoDepth=f}),l("historyEventDelay",1250),l("viewportMargin",10,function(s){return s.refresh()},!0),l("maxHighlightLength",1e4,hi,!0),l("moveInputWithCursor",!0,function(s,f){f||s.display.input.resetPosition()}),l("tabindex",null,function(s,f){return s.display.input.getField().tabIndex=f||""}),l("autofocus",null),l("direction","ltr",function(s,f){return s.doc.setDirection(f)},!0),l("phrases",null)}function Jc(t,n,l){var s=l&&l!=ki;if(!n!=!s){var f=t.display.dragFunctions,g=n?Ie:Ot;g(t.display.scroller,"dragstart",f.start),g(t.display.scroller,"dragenter",f.enter),g(t.display.scroller,"dragover",f.over),g(t.display.scroller,"dragleave",f.leave),g(t.display.scroller,"drop",f.drop)}}function ep(t){t.options.lineWrapping?(he(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(ge(t.display.wrapper,"CodeMirror-wrap"),$a(t)),Gs(t),or(t),Gi(t),setTimeout(function(){return Vr(t)},100)}function dt(t,n){var l=this;if(!(this instanceof dt))return new dt(t,n);this.options=n=n?Ue(n):{},Ue(ps,n,!1);var s=n.value;typeof s=="string"?s=new tr(s,n.mode,null,n.lineSeparator,n.direction):n.mode&&(s.modeOption=n.mode),this.doc=s;var f=new dt.inputStyles[n.inputStyle](this),g=this.display=new Mc(t,s,f,n);g.wrapper.CodeMirror=this,Il(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tl(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 Oe,keySeq:null,specialChars:null},n.autofocus&&!G&&g.input.focus(),m&&x<11&&setTimeout(function(){return l.display.input.reset(!0)},20),Fl(this),Bc(),pi(this),this.curOp.forceUpdate=!0,ul(this,s),n.autofocus&&!G||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&Qs(l)},20):Xi(this);for(var b in ds)ds.hasOwnProperty(b)&&ds[b](this,n[b],ki);gn(this),n.finishInit&&n.finishInit(this);for(var w=0;w<zl.length;++w)zl[w](this);Mn(this),S&&n.lineWrapping&&getComputedStyle(g.lineDiv).textRendering=="optimizelegibility"&&(g.lineDiv.style.textRendering="auto")}dt.defaults=ps,dt.optionHandlers=ds;function Fl(t){var n=t.display;Ie(n.scroller,"mousedown",zt(t,sa)),m&&x<11?Ie(n.scroller,"dblclick",zt(t,function(k){if(!gt(t,k)){var C=li(t,k);if(!(!C||Pl(t,k)||dr(t.display,k))){Tt(k);var P=t.findWordAt(C);Xo(t.doc,P.anchor,P.head)}}})):Ie(n.scroller,"dblclick",function(k){return gt(t,k)||Tt(k)}),Ie(n.scroller,"contextmenu",function(k){return yf(t,k)}),Ie(n.input.getField(),"contextmenu",function(k){n.scroller.contains(k.target)||yf(t,k)});var l,s={end:0};function f(){n.activeTouch&&(l=setTimeout(function(){return n.activeTouch=null},1e3),s=n.activeTouch,s.end=+new Date)}function g(k){if(k.touches.length!=1)return!1;var C=k.touches[0];return C.radiusX<=1&&C.radiusY<=1}function b(k,C){if(C.left==null)return!0;var P=C.left-k.left,R=C.top-k.top;return P*P+R*R>400}Ie(n.scroller,"touchstart",function(k){if(!gt(t,k)&&!g(k)&&!Pl(t,k)){n.input.ensurePolled(),clearTimeout(l);var C=+new Date;n.activeTouch={start:C,moved:!1,prev:C-s.end<=300?s:null},k.touches.length==1&&(n.activeTouch.left=k.touches[0].pageX,n.activeTouch.top=k.touches[0].pageY)}}),Ie(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),Ie(n.scroller,"touchend",function(k){var C=n.activeTouch;if(C&&!dr(n,k)&&C.left!=null&&!C.moved&&new Date-C.start<300){var P=t.coordsChar(n.activeTouch,"page"),R;!C.prev||b(C,C.prev)?R=new st(P,P):!C.prev.prev||b(C,C.prev.prev)?R=t.findWordAt(P):R=new st(fe(P.line,0),He(t.doc,fe(P.line+1,0))),t.setSelection(R.anchor,R.head),t.focus(),Tt(k)}f()}),Ie(n.scroller,"touchcancel",f),Ie(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Ro(t,n.scroller.scrollTop),hn(t,n.scroller.scrollLeft,!0),Ct(t,"scroll",t))}),Ie(n.scroller,"mousewheel",function(k){return Vu(t,k)}),Ie(n.scroller,"DOMMouseScroll",function(k){return Vu(t,k)}),Ie(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(k){gt(t,k)||Yt(k)},over:function(k){gt(t,k)||(Wc(t,k),Yt(k))},start:function(k){return kl(t,k)},drop:zt(t,qc),leave:function(k){gt(t,k)||sf(t)}};var w=n.input.getField();Ie(w,"keyup",function(k){return df.call(t,k)}),Ie(w,"keydown",zt(t,pf)),Ie(w,"keypress",zt(t,El)),Ie(w,"focus",function(k){return Qs(t,k)}),Ie(w,"blur",function(k){return Xi(t,k)})}var zl=[];dt.defineInitHook=function(t){return zl.push(t)};function la(t,n,l,s){var f=t.doc,g;l==null&&(l="add"),l=="smart"&&(f.mode.indent?g=Jn(t,n).state:l="prev");var b=t.options.tabSize,w=Ne(f,n),k=Ge(w.text,null,b);w.stateAfter&&(w.stateAfter=null);var C=w.text.match(/^\s*/)[0],P;if(!s&&!/\S/.test(w.text))P=0,l="not";else if(l=="smart"&&(P=f.mode.indent(g,w.text.slice(C.length),w.text),P==ut||P>150)){if(!s)return;l="prev"}l=="prev"?n>f.first?P=Ge(Ne(f,n-1).text,null,b):P=0:l=="add"?P=k+t.options.indentUnit:l=="subtract"?P=k-t.options.indentUnit:typeof l=="number"&&(P=k+l),P=Math.max(0,P);var R="",Y=0;if(t.options.indentWithTabs)for(var a=Math.floor(P/b);a;--a)Y+=b,R+="	";if(Y<P&&(R+=qt(P-Y)),R!=C)return vi(f,R,fe(n,0),fe(n,C.length),"+input"),w.stateAfter=null,!0;for(var u=0;u<f.sel.ranges.length;u++){var p=f.sel.ranges[u];if(p.head.line==n&&p.head.ch<C.length){var h=fe(n,C.length);es(f,u,new st(h,h));break}}}var Pr=null;function ua(t){Pr=t}function Rl(t,n,l,s,f){var g=t.doc;t.display.shift=!1,s||(s=g.sel);var b=+new Date-200,w=f=="paste"||t.state.pasteIncoming>b,k=nr(n),C=null;if(w&&s.ranges.length>1)if(Pr&&Pr.text.join(`
`)==n){if(s.ranges.length%Pr.text.length==0){C=[];for(var P=0;P<Pr.text.length;P++)C.push(g.splitLines(Pr.text[P]))}}else k.length==s.ranges.length&&t.options.pasteLinesPerSelection&&(C=nt(k,function(v){return[v]}));for(var R=t.curOp.updateInput,Y=s.ranges.length-1;Y>=0;Y--){var a=s.ranges[Y],u=a.from(),p=a.to();a.empty()&&(l&&l>0?u=fe(u.line,u.ch-l):t.state.overwrite&&!w?p=fe(p.line,Math.min(Ne(g,p.line).text.length,p.ch+qe(k).length)):w&&Pr&&Pr.lineWise&&Pr.text.join(`
`)==k.join(`
`)&&(u=p=fe(u.line,0)));var h={from:u,to:p,text:C?C[Y%C.length]:k,origin:f||(w?"paste":t.state.cutIncoming>b?"cut":"+input")};mi(t.doc,h),Ft(t,"inputRead",t,h)}n&&!w&&jl(t,n),zr(t),t.curOp.updateInput<2&&(t.curOp.updateInput=R),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Jr(t,n){var l=t.clipboardData&&t.clipboardData.getData("Text");if(l)return t.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&n.hasFocus()&&hr(n,function(){return Rl(n,l,0,null,"paste")}),!0}function jl(t,n){if(!(!t.options.electricChars||!t.options.smartIndent))for(var l=t.doc.sel,s=l.ranges.length-1;s>=0;s--){var f=l.ranges[s];if(!(f.head.ch>100||s&&l.ranges[s-1].head.line==f.head.line)){var g=t.getModeAt(f.head),b=!1;if(g.electricChars){for(var w=0;w<g.electricChars.length;w++)if(n.indexOf(g.electricChars.charAt(w))>-1){b=la(t,f.head.line,"smart");break}}else g.electricInput&&g.electricInput.test(Ne(t.doc,f.head.line).text.slice(0,f.head.ch))&&(b=la(t,f.head.line,"smart"));b&&Ft(t,"electricInput",t,f.head.line)}}}function ql(t){for(var n=[],l=[],s=0;s<t.doc.sel.ranges.length;s++){var f=t.doc.sel.ranges[s].head.line,g={anchor:fe(f,0),head:fe(f+1,0)};l.push(g),n.push(t.getRange(g.anchor,g.head))}return{text:n,ranges:l}}function hs(t,n,l,s){t.setAttribute("autocorrect",l?"on":"off"),t.setAttribute("autocapitalize",s?"on":"off"),t.setAttribute("spellcheck",!!n)}function bf(){var t=$("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=$("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return S?t.style.width="1000px":t.setAttribute("wrap","off"),W&&(t.style.border="1px solid black"),n}function tp(t){var n=t.optionHandlers,l=t.helpers={};t.prototype={constructor:t,focus:function(){We(this).focus(),this.display.input.focus()},setOption:function(s,f){var g=this.options,b=g[s];g[s]==f&&s!="mode"||(g[s]=f,n.hasOwnProperty(s)&&zt(this,n[s])(this,f,b),Ct(this,"optionChange",this,s))},getOption:function(s){return this.options[s]},getDoc:function(){return this.doc},addKeyMap:function(s,f){this.state.keyMaps[f?"push":"unshift"](os(s))},removeKeyMap:function(s){for(var f=this.state.keyMaps,g=0;g<f.length;++g)if(f[g]==s||f[g].name==s)return f.splice(g,1),!0},addOverlay:Bt(function(s,f){var g=s.token?s:t.getMode(this.options,s);if(g.startState)throw new Error("Overlays may not be stateful.");oe(this.state.overlays,{mode:g,modeSpec:s,opaque:f&&f.opaque,priority:f&&f.priority||0},function(b){return b.priority}),this.state.modeGen++,or(this)}),removeOverlay:Bt(function(s){for(var f=this.state.overlays,g=0;g<f.length;++g){var b=f[g].modeSpec;if(b==s||typeof s=="string"&&b.name==s){f.splice(g,1),this.state.modeGen++,or(this);return}}}),indentLine:Bt(function(s,f,g){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),me(this.doc,s)&&la(this,s,f,g)}),indentSelection:Bt(function(s){for(var f=this.doc.sel.ranges,g=-1,b=0;b<f.length;b++){var w=f[b];if(w.empty())w.head.line>g&&(la(this,w.head.line,s,!0),g=w.head.line,b==this.doc.sel.primIndex&&zr(this));else{var k=w.from(),C=w.to(),P=Math.max(g,k.line);g=Math.min(this.lastLine(),C.line-(C.ch?0:1))+1;for(var R=P;R<g;++R)la(this,R,s);var Y=this.doc.sel.ranges;k.ch==0&&f.length==Y.length&&Y[b].from().ch>0&&es(this.doc,b,new st(k,Y[b].to()),at)}}}),getTokenAt:function(s,f){return yu(this,s,f)},getLineTokens:function(s,f){return yu(this,fe(s),f,!0)},getTokenTypeAt:function(s){s=He(this.doc,s);var f=As(this,Ne(this.doc,s.line)),g=0,b=(f.length-1)/2,w=s.ch,k;if(w==0)k=f[2];else for(;;){var C=g+b>>1;if((C?f[C*2-1]:0)>=w)b=C;else if(f[C*2+1]<w)g=C+1;else{k=f[C*2+2];break}}var P=k?k.indexOf("overlay "):-1;return P<0?k:P==0?null:k.slice(0,P-1)},getModeAt:function(s){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(s).state).mode:f},getHelper:function(s,f){return this.getHelpers(s,f)[0]},getHelpers:function(s,f){var g=[];if(!l.hasOwnProperty(f))return g;var b=l[f],w=this.getModeAt(s);if(typeof w[f]=="string")b[w[f]]&&g.push(b[w[f]]);else if(w[f])for(var k=0;k<w[f].length;k++){var C=b[w[f][k]];C&&g.push(C)}else w.helperType&&b[w.helperType]?g.push(b[w.helperType]):b[w.name]&&g.push(b[w.name]);for(var P=0;P<b._global.length;P++){var R=b._global[P];R.pred(w,this)&&Pe(g,R.val)==-1&&g.push(R.val)}return g},getStateAfter:function(s,f){var g=this.doc;return s=du(g,s??g.first+g.size-1),Jn(this,s+1,f).state},cursorCoords:function(s,f){var g,b=this.doc.sel.primary();return s==null?g=b.head:typeof s=="object"?g=He(this.doc,s):g=s?b.from():b.to(),Fr(this,g,f||"page")},charCoords:function(s,f){return Po(this,He(this.doc,s),f||"page")},coordsChar:function(s,f){return s=Ks(this,s,f||"page"),Qi(this,s.left,s.top)},lineAtHeight:function(s,f){return s=Ks(this,{top:s,left:0},f||"page").top,z(this.doc,s+this.display.viewOffset)},heightAtLine:function(s,f,g){var b=!1,w;if(typeof s=="number"){var k=this.doc.first+this.doc.size-1;s<this.doc.first?s=this.doc.first:s>k&&(s=k,b=!0),w=Ne(this.doc,s)}else w=s;return Ln(this,w,{top:0,left:0},f||"page",g||b).top+(b?this.doc.height-Nr(w):0)},defaultTextHeight:function(){return si(this.display)},defaultCharWidth:function(){return cn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(s,f,g,b,w){var k=this.display;s=Fr(this,He(this.doc,s));var C=s.bottom,P=s.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),k.sizer.appendChild(f),b=="over")C=s.top;else if(b=="above"||b=="near"){var R=Math.max(k.wrapper.clientHeight,this.doc.height),Y=Math.max(k.sizer.clientWidth,k.lineSpace.clientWidth);(b=="above"||s.bottom+f.offsetHeight>R)&&s.top>f.offsetHeight?C=s.top-f.offsetHeight:s.bottom+f.offsetHeight<=R&&(C=s.bottom),P+f.offsetWidth>Y&&(P=Y-f.offsetWidth)}f.style.top=C+"px",f.style.left=f.style.right="",w=="right"?(P=k.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(w=="left"?P=0:w=="middle"&&(P=(k.sizer.clientWidth-f.offsetWidth)/2),f.style.left=P+"px"),g&&Ys(this,{left:P,top:C,right:P+f.offsetWidth,bottom:C+f.offsetHeight})},triggerOnKeyDown:Bt(pf),triggerOnKeyPress:Bt(El),triggerOnKeyUp:df,triggerOnMouseDown:Bt(sa),execCommand:function(s){if(so.hasOwnProperty(s))return so[s].call(null,this)},triggerElectric:Bt(function(s){jl(this,s)}),findPosH:function(s,f,g,b){var w=1;f<0&&(w=-1,f=-f);for(var k=He(this.doc,s),C=0;C<f&&(k=Wl(this.doc,k,w,g,b),!k.hitSide);++C);return k},moveH:Bt(function(s,f){var g=this;this.extendSelectionsBy(function(b){return g.display.shift||g.doc.extend||b.empty()?Wl(g.doc,b.head,s,f,g.options.rtlMoveVisually):s<0?b.from():b.to()},Ze)}),deleteH:Bt(function(s,f){var g=this.doc.sel,b=this.doc;g.somethingSelected()?b.replaceSelection("",null,"+delete"):ao(this,function(w){var k=Wl(b,w.head,s,f,!1);return s<0?{from:k,to:w.head}:{from:w.head,to:k}})}),findPosV:function(s,f,g,b){var w=1,k=b;f<0&&(w=-1,f=-f);for(var C=He(this.doc,s),P=0;P<f;++P){var R=Fr(this,C,"div");if(k==null?k=R.left:R.left=k,C=Bl(this,R,w,g),C.hitSide)break}return C},moveV:Bt(function(s,f){var g=this,b=this.doc,w=[],k=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(P){if(k)return s<0?P.from():P.to();var R=Fr(g,P.head,"div");P.goalColumn!=null&&(R.left=P.goalColumn),w.push(R.left);var Y=Bl(g,R,s,f);return f=="page"&&P==b.sel.primary()&&Js(g,Po(g,Y,"div").top-R.top),Y},Ze),w.length)for(var C=0;C<b.sel.ranges.length;C++)b.sel.ranges[C].goalColumn=w[C]}),findWordAt:function(s){var f=this.doc,g=Ne(f,s.line).text,b=s.ch,w=s.ch;if(g){var k=this.getHelper(s,"wordChars");(s.sticky=="before"||w==g.length)&&b?--b:++w;for(var C=g.charAt(b),P=Re(C,k)?function(R){return Re(R,k)}:/\s/.test(C)?function(R){return/\s/.test(R)}:function(R){return!/\s/.test(R)&&!Re(R)};b>0&&P(g.charAt(b-1));)--b;for(;w<g.length&&P(g.charAt(w));)++w}return new st(fe(s.line,b),fe(s.line,w))},toggleOverwrite:function(s){s!=null&&s==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?he(this.display.cursorDiv,"CodeMirror-overwrite"):ge(this.display.cursorDiv,"CodeMirror-overwrite"),Ct(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Q(wt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Bt(function(s,f){Zi(this,s,f)}),getScrollInfo:function(){var s=this.display.scroller;return{left:s.scrollLeft,top:s.scrollTop,height:s.scrollHeight-Kt(this)-this.display.barHeight,width:s.scrollWidth-Kt(this)-this.display.barWidth,clientHeight:Ws(this),clientWidth:un(this)}},scrollIntoView:Bt(function(s,f){s==null?(s={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof s=="number"?s={from:fe(s,0),to:null}:s.from==null&&(s={from:s,to:null}),s.to||(s.to=s.from),s.margin=f||0,s.from.line!=null?An(this,s):Nn(this,s.from,s.to,s.margin)}),setSize:Bt(function(s,f){var g=this,b=function(k){return typeof k=="number"||/^\d+$/.test(String(k))?k+"px":k};s!=null&&(this.display.wrapper.style.width=b(s)),f!=null&&(this.display.wrapper.style.height=b(f)),this.options.lineWrapping&&Us(this);var w=this.display.viewFrom;this.doc.iter(w,this.display.viewTo,function(k){if(k.widgets){for(var C=0;C<k.widgets.length;C++)if(k.widgets[C].noHScroll){pn(g,w,"widget");break}}++w}),this.curOp.forceUpdate=!0,Ct(this,"refresh",this)}),operation:function(s){return hr(this,s)},startOperation:function(){return pi(this)},endOperation:function(){return Mn(this)},refresh:Bt(function(){var s=this.display.cachedTextHeight;or(this),this.curOp.forceUpdate=!0,Gi(this),Zi(this,this.doc.scrollLeft,this.doc.scrollTop),Ga(this.display),(s==null||Math.abs(s-si(this.display))>.5||this.options.lineWrapping)&&Gs(this),Ct(this,"refresh",this)}),swapDoc:Bt(function(s){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),ul(this,s),Gi(this),this.display.input.reset(),Zi(this,s.scrollLeft,s.scrollTop),this.curOp.forceScroll=!0,Ft(this,"swapDoc",this,f),f}),phrase:function(s){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,s)?f[s]:s},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}},br(t),t.registerHelper=function(s,f,g){l.hasOwnProperty(s)||(l[s]=t[s]={_global:[]}),l[s][f]=g},t.registerGlobalHelper=function(s,f,g,b){t.registerHelper(s,f,b),l[s]._global.push({pred:g,val:b})}}function Wl(t,n,l,s,f){var g=n,b=l,w=Ne(t,n.line),k=f&&t.direction=="rtl"?-l:l;function C(){var y=n.line+k;return y<t.first||y>=t.first+t.size?!1:(n=new fe(y,n.ch,n.sticky),w=Ne(t,y))}function P(y){var _;if(s=="codepoint"){var L=w.text.charCodeAt(n.ch+(l>0?0:-1));if(isNaN(L))_=null;else{var N=l>0?L>=55296&&L<56320:L>=56320&&L<57343;_=new fe(n.line,Math.max(0,Math.min(w.text.length,n.ch+l*(N?2:1))),-l)}}else f?_=Vc(t.cm,w,n,l):_=as(w,n,l);if(_==null)if(!y&&C())n=Tl(f,t.cm,w,n.line,k);else return!1;else n=_;return!0}if(s=="char"||s=="codepoint")P();else if(s=="column")P(!0);else if(s=="word"||s=="group")for(var R=null,Y=s=="group",a=t.cm&&t.cm.getHelper(n,"wordChars"),u=!0;!(l<0&&!P(!u));u=!1){var p=w.text.charAt(n.ch)||`
`,h=Re(p,a)?"w":Y&&p==`
`?"n":!Y||/\s/.test(p)?null:"p";if(Y&&!u&&!h&&(h="s"),R&&R!=h){l<0&&(l=1,P(),n.sticky="after");break}if(h&&(R=h),l>0&&!P(!u))break}var v=Zo(t,n,g,b,!0);return it(g,v)&&(v.hitSide=!0),v}function Bl(t,n,l,s){var f=t.doc,g=n.left,b;if(s=="page"){var w=Math.min(t.display.wrapper.clientHeight,We(t).innerHeight||f(t).documentElement.clientHeight),k=Math.max(w-.5*si(t.display),3);b=(l>0?n.bottom:n.top)+l*k}else s=="line"&&(b=l>0?n.bottom+3:n.top-3);for(var C;C=Qi(t,g,b),!!C.outside;){if(l<0?b<=0:b>=f.height){C.hitSide=!0;break}b+=l*5}return C}var tt=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};tt.prototype.init=function(t){var n=this,l=this,s=l.cm,f=l.div=t.lineDiv;f.contentEditable=!0,hs(f,s.options.spellcheck,s.options.autocorrect,s.options.autocapitalize);function g(w){for(var k=w.target;k;k=k.parentNode){if(k==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(k.className))break}return!1}Ie(f,"paste",function(w){!g(w)||gt(s,w)||Jr(w,s)||x<=11&&setTimeout(zt(s,function(){return n.updateFromDOM()}),20)}),Ie(f,"compositionstart",function(w){n.composing={data:w.data,done:!1}}),Ie(f,"compositionupdate",function(w){n.composing||(n.composing={data:w.data,done:!1})}),Ie(f,"compositionend",function(w){n.composing&&(w.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Ie(f,"touchstart",function(){return l.forceCompositionEnd()}),Ie(f,"input",function(){n.composing||n.readFromDOMSoon()});function b(w){if(!(!g(w)||gt(s,w))){if(s.somethingSelected())ua({lineWise:!1,text:s.getSelections()}),w.type=="cut"&&s.replaceSelection("",null,"cut");else if(s.options.lineWiseCopyCut){var k=ql(s);ua({lineWise:!0,text:k.text}),w.type=="cut"&&s.operation(function(){s.setSelections(k.ranges,0,at),s.replaceSelection("",null,"cut")})}else return;if(w.clipboardData){w.clipboardData.clearData();var C=Pr.text.join(`
`);if(w.clipboardData.setData("Text",C),w.clipboardData.getData("Text")==C){w.preventDefault();return}}var P=bf(),R=P.firstChild;hs(R),s.display.lineSpace.insertBefore(P,s.display.lineSpace.firstChild),R.value=Pr.text.join(`
`);var Y=Q(lt(f));Ye(R),setTimeout(function(){s.display.lineSpace.removeChild(P),Y.focus(),Y==f&&l.showPrimarySelection()},50)}}Ie(f,"copy",b),Ie(f,"cut",b)},tt.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},tt.prototype.prepareSelection=function(){var t=ja(this.cm,!1);return t.focus=Q(lt(this.div))==this.div,t},tt.prototype.showSelection=function(t,n){!t||!this.cm.display.view.length||((t.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(t))},tt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},tt.prototype.showPrimarySelection=function(){var t=this.getSelection(),n=this.cm,l=n.doc.sel.primary(),s=l.from(),f=l.to();if(n.display.viewTo==n.display.viewFrom||s.line>=n.display.viewTo||f.line<n.display.viewFrom){t.removeAllRanges();return}var g=fa(n,t.anchorNode,t.anchorOffset),b=fa(n,t.focusNode,t.focusOffset);if(!(g&&!g.bad&&b&&!b.bad&&Ce(qi(g,b),s)==0&&Ce(ir(g,b),f)==0)){var w=n.display.view,k=s.line>=n.display.viewFrom&&Hl(n,s)||{node:w[0].measure.map[2],offset:0},C=f.line<n.display.viewTo&&Hl(n,f);if(!C){var P=w[w.length-1].measure,R=P.maps?P.maps[P.maps.length-1]:P.map;C={node:R[R.length-1],offset:R[R.length-2]-R[R.length-3]}}if(!k||!C){t.removeAllRanges();return}var Y=t.rangeCount&&t.getRangeAt(0),a;try{a=se(k.node,k.offset,C.offset,C.node)}catch{}a&&(!i&&n.state.focused?(t.collapse(k.node,k.offset),a.collapsed||(t.removeAllRanges(),t.addRange(a))):(t.removeAllRanges(),t.addRange(a)),Y&&t.anchorNode==null?t.addRange(Y):i&&this.startGracePeriod()),this.rememberSelection()}},tt.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)},tt.prototype.showMultipleSelections=function(t){pe(this.cm.display.cursorDiv,t.cursors),pe(this.cm.display.selectionDiv,t.selection)},tt.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},tt.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var n=t.getRangeAt(0).commonAncestorContainer;return q(this.div,n)},tt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Q(lt(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},tt.prototype.blur=function(){this.div.blur()},tt.prototype.getField=function(){return this.div},tt.prototype.supportsTouch=function(){return!0},tt.prototype.receivedFocus=function(){var t=this,n=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):hr(this.cm,function(){return n.cm.curOp.selectionChanged=!0});function l(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,l))}this.polling.set(this.cm.options.pollInterval,l)},tt.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},tt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),n=this.cm;if(K&&T&&this.cm.display.gutterSpecs.length&&xf(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var l=fa(n,t.anchorNode,t.anchorOffset),s=fa(n,t.focusNode,t.focusOffset);l&&s&&hr(n,function(){Vt(n.doc,Xr(l,s),at),(l.bad||s.bad)&&(n.curOp.selectionChanged=!0)})}}},tt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,n=t.display,l=t.doc.sel.primary(),s=l.from(),f=l.to();if(s.ch==0&&s.line>t.firstLine()&&(s=fe(s.line-1,Ne(t.doc,s.line-1).length)),f.ch==Ne(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=fe(f.line+1,0)),s.line<n.viewFrom||f.line>n.viewTo-1)return!1;var g,b,w;s.line==n.viewFrom||(g=ui(t,s.line))==0?(b=O(n.view[0].line),w=n.view[0].node):(b=O(n.view[g].line),w=n.view[g-1].node.nextSibling);var k=ui(t,f.line),C,P;if(k==n.view.length-1?(C=n.viewTo-1,P=n.lineDiv.lastChild):(C=O(n.view[k+1].line)-1,P=n.view[k+1].node.previousSibling),!w)return!1;for(var R=t.doc.splitLines(wf(t,w,P,b,C)),Y=wr(t.doc,fe(b,0),fe(C,Ne(t.doc,C).text.length));R.length>1&&Y.length>1;)if(qe(R)==qe(Y))R.pop(),Y.pop(),C--;else if(R[0]==Y[0])R.shift(),Y.shift(),b++;else break;for(var a=0,u=0,p=R[0],h=Y[0],v=Math.min(p.length,h.length);a<v&&p.charCodeAt(a)==h.charCodeAt(a);)++a;for(var y=qe(R),_=qe(Y),L=Math.min(y.length-(R.length==1?a:0),_.length-(Y.length==1?a:0));u<L&&y.charCodeAt(y.length-u-1)==_.charCodeAt(_.length-u-1);)++u;if(R.length==1&&Y.length==1&&b==s.line)for(;a&&a>s.ch&&y.charCodeAt(y.length-u-1)==_.charCodeAt(_.length-u-1);)a--,u++;R[R.length-1]=y.slice(0,y.length-u).replace(/^\u200b+/,""),R[0]=R[0].slice(a).replace(/\u200b+$/,"");var N=fe(b,a),F=fe(C,Y.length?qe(Y).length-u:0);if(R.length>1||R[0]||Ce(N,F))return vi(t.doc,R,N,F,"+input"),!0},tt.prototype.ensurePolled=function(){this.forceCompositionEnd()},tt.prototype.reset=function(){this.forceCompositionEnd()},tt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},tt.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},tt.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&hr(this.cm,function(){return or(t.cm)})},tt.prototype.setUneditable=function(t){t.contentEditable="false"},tt.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||zt(this.cm,Rl)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},tt.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},tt.prototype.onContextMenu=function(){},tt.prototype.resetPosition=function(){},tt.prototype.needsContentAttribute=!0;function Hl(t,n){var l=Mo(t,n.line);if(!l||l.hidden)return null;var s=Ne(t.doc,n.line),f=Bs(l,s,n.line),g=et(s,t.doc.direction),b="left";if(g){var w=_n(g,n.ch);b=w%2?"right":"left"}var k=Pa(f.map,n.ch,b);return k.offset=k.collapse=="right"?k.end:k.start,k}function xf(t){for(var n=t;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function Rn(t,n){return n&&(t.bad=!0),t}function wf(t,n,l,s,f){var g="",b=!1,w=t.doc.lineSeparator(),k=!1;function C(a){return function(u){return u.id==a}}function P(){b&&(g+=w,k&&(g+=w),b=k=!1)}function R(a){a&&(P(),g+=a)}function Y(a){if(a.nodeType==1){var u=a.getAttribute("cm-text");if(u){R(u);return}var p=a.getAttribute("cm-marker"),h;if(p){var v=t.findMarks(fe(s,0),fe(f+1,0),C(+p));v.length&&(h=v[0].find(0))&&R(wr(t.doc,h.from,h.to).join(w));return}if(a.getAttribute("contenteditable")=="false")return;var y=/^(pre|div|p|li|table|br)$/i.test(a.nodeName);if(!/^br$/i.test(a.nodeName)&&a.textContent.length==0)return;y&&P();for(var _=0;_<a.childNodes.length;_++)Y(a.childNodes[_]);/^(pre|p)$/i.test(a.nodeName)&&(k=!0),y&&(b=!0)}else a.nodeType==3&&R(a.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Y(n),n!=l;)n=n.nextSibling,k=!1;return g}function fa(t,n,l){var s;if(n==t.display.lineDiv){if(s=t.display.lineDiv.childNodes[l],!s)return Rn(t.clipPos(fe(t.display.viewTo-1)),!0);n=null,l=0}else for(s=n;;s=s.parentNode){if(!s||s==t.display.lineDiv)return null;if(s.parentNode&&s.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var g=t.display.view[f];if(g.node==s)return kf(g,n,l)}}function kf(t,n,l){var s=t.text.firstChild,f=!1;if(!n||!q(s,n))return Rn(fe(O(t.line),0),!0);if(n==s&&(f=!0,n=s.childNodes[l],l=0,!n)){var g=t.rest?qe(t.rest):t.line;return Rn(fe(O(g),g.text.length),f)}var b=n.nodeType==3?n:null,w=n;for(!b&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(b=n.firstChild,l&&(l=b.nodeValue.length));w.parentNode!=s;)w=w.parentNode;var k=t.measure,C=k.maps;function P(h,v,y){for(var _=-1;_<(C?C.length:0);_++)for(var L=_<0?k.map:C[_],N=0;N<L.length;N+=3){var F=L[N+2];if(F==h||F==v){var H=O(_<0?t.line:t.rest[_]),M=L[N]+y;return(y<0||F!=h)&&(M=L[N+(y?1:0)]),fe(H,M)}}}var R=P(b,w,l);if(R)return Rn(R,f);for(var Y=w.nextSibling,a=b?b.nodeValue.length-l:0;Y;Y=Y.nextSibling){if(R=P(Y,Y.firstChild,0),R)return Rn(fe(R.line,R.ch-a),f);a+=Y.textContent.length}for(var u=w.previousSibling,p=l;u;u=u.previousSibling){if(R=P(u,u.firstChild,-1),R)return Rn(fe(R.line,R.ch+p),f);p+=u.textContent.length}}var Lt=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Oe,this.hasSelection=!1,this.composing=null,this.resetting=!1};Lt.prototype.init=function(t){var n=this,l=this,s=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),W&&(f.style.width="0px"),Ie(f,"input",function(){m&&x>=9&&n.hasSelection&&(n.hasSelection=null),l.poll()}),Ie(f,"paste",function(b){gt(s,b)||Jr(b,s)||(s.state.pasteIncoming=+new Date,l.fastPoll())});function g(b){if(!gt(s,b)){if(s.somethingSelected())ua({lineWise:!1,text:s.getSelections()});else if(s.options.lineWiseCopyCut){var w=ql(s);ua({lineWise:!0,text:w.text}),b.type=="cut"?s.setSelections(w.ranges,null,at):(l.prevInput="",f.value=w.text.join(`
`),Ye(f))}else return;b.type=="cut"&&(s.state.cutIncoming=+new Date)}}Ie(f,"cut",g),Ie(f,"copy",g),Ie(t.scroller,"paste",function(b){if(!(dr(t,b)||gt(s,b))){if(!f.dispatchEvent){s.state.pasteIncoming=+new Date,l.focus();return}var w=new Event("paste");w.clipboardData=b.clipboardData,f.dispatchEvent(w)}}),Ie(t.lineSpace,"selectstart",function(b){dr(t,b)||Tt(b)}),Ie(f,"compositionstart",function(){var b=s.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:b,range:s.markText(b,s.getCursor("to"),{className:"CodeMirror-composing"})}}),Ie(f,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},Lt.prototype.createField=function(t){this.wrapper=bf(),this.textarea=this.wrapper.firstChild;var n=this.cm.options;hs(this.textarea,n.spellcheck,n.autocorrect,n.autocapitalize)},Lt.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Lt.prototype.prepareSelection=function(){var t=this.cm,n=t.display,l=t.doc,s=ja(t);if(t.options.moveInputWithCursor){var f=Fr(t,l.sel.primary().head,"div"),g=n.wrapper.getBoundingClientRect(),b=n.lineDiv.getBoundingClientRect();s.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,f.top+b.top-g.top)),s.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,f.left+b.left-g.left))}return s},Lt.prototype.showSelection=function(t){var n=this.cm,l=n.display;pe(l.cursorDiv,t.cursors),pe(l.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Lt.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var n=this.cm;if(this.resetting=!0,n.somethingSelected()){this.prevInput="";var l=n.getSelection();this.textarea.value=l,n.state.focused&&Ye(this.textarea),m&&x>=9&&(this.hasSelection=l)}else t||(this.prevInput=this.textarea.value="",m&&x>=9&&(this.hasSelection=null));this.resetting=!1}},Lt.prototype.getField=function(){return this.textarea},Lt.prototype.supportsTouch=function(){return!1},Lt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!G||Q(lt(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Lt.prototype.blur=function(){this.textarea.blur()},Lt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Lt.prototype.receivedFocus=function(){this.slowPoll()},Lt.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Lt.prototype.fastPoll=function(){var t=!1,n=this;n.pollingFast=!0;function l(){var s=n.poll();!s&&!t?(t=!0,n.polling.set(60,l)):(n.pollingFast=!1,n.slowPoll())}n.polling.set(20,l)},Lt.prototype.poll=function(){var t=this,n=this.cm,l=this.textarea,s=this.prevInput;if(this.contextMenuPending||this.resetting||!n.state.focused||pr(l)&&!s&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var f=l.value;if(f==s&&!n.somethingSelected())return!1;if(m&&x>=9&&this.hasSelection===f||re&&/[\uf700-\uf7ff]/.test(f))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var g=f.charCodeAt(0);if(g==8203&&!s&&(s="\u200B"),g==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,w=Math.min(s.length,f.length);b<w&&s.charCodeAt(b)==f.charCodeAt(b);)++b;return hr(n,function(){Rl(n,f.slice(b),s.length-b,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
`)>-1?l.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=n.markText(t.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Lt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Lt.prototype.onKeyPress=function(){m&&x>=9&&(this.hasSelection=null),this.fastPoll()},Lt.prototype.onContextMenu=function(t){var n=this,l=n.cm,s=l.display,f=n.textarea;n.contextMenuPending&&n.contextMenuPending();var g=li(l,t),b=s.scroller.scrollTop;if(!g||E)return;var w=l.options.resetSelectionOnContextMenu;w&&l.doc.sel.contains(g)==-1&&zt(l,Vt)(l.doc,Xr(g),at);var k=f.style.cssText,C=n.wrapper.style.cssText,P=n.wrapper.offsetParent.getBoundingClientRect();n.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
      top: `+(t.clientY-P.top-5)+"px; left: "+(t.clientX-P.left-5)+`px;
      z-index: 1000; background: `+(m?"rgba(255, 255, 255, .05)":"transparent")+`;
      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var R;S&&(R=f.ownerDocument.defaultView.scrollY),s.input.focus(),S&&f.ownerDocument.defaultView.scrollTo(null,R),s.input.reset(),l.somethingSelected()||(f.value=n.prevInput=" "),n.contextMenuPending=a,s.selForContextMenu=l.doc.sel,clearTimeout(s.detectingSelectAll);function Y(){if(f.selectionStart!=null){var p=l.somethingSelected(),h="\u200B"+(p?f.value:"");f.value="\u21DA",f.value=h,n.prevInput=p?"":"\u200B",f.selectionStart=1,f.selectionEnd=h.length,s.selForContextMenu=l.doc.sel}}function a(){if(n.contextMenuPending==a&&(n.contextMenuPending=!1,n.wrapper.style.cssText=C,f.style.cssText=k,m&&x<9&&s.scrollbars.setScrollTop(s.scroller.scrollTop=b),f.selectionStart!=null)){(!m||m&&x<9)&&Y();var p=0,h=function(){s.selForContextMenu==l.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&n.prevInput=="\u200B"?zt(l,yl)(l):p++<10?s.detectingSelectAll=setTimeout(h,500):(s.selForContextMenu=null,s.input.reset())};s.detectingSelectAll=setTimeout(h,200)}}if(m&&x>=9&&Y(),ee){Yt(t);var u=function(){Ot(window,"mouseup",u),setTimeout(a,20)};Ie(window,"mouseup",u)}else setTimeout(a,50)},Lt.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Lt.prototype.setUneditable=function(){},Lt.prototype.needsContentAttribute=!1;function Ul(t,n){if(n=n?Ue(n):{},n.value=t.value,!n.tabindex&&t.tabIndex&&(n.tabindex=t.tabIndex),!n.placeholder&&t.placeholder&&(n.placeholder=t.placeholder),n.autofocus==null){var l=Q(lt(t));n.autofocus=l==t||t.getAttribute("autofocus")!=null&&l==document.body}function s(){t.value=w.getValue()}var f;if(t.form&&(Ie(t.form,"submit",s),!n.leaveSubmitMethodAlone)){var g=t.form;f=g.submit;try{var b=g.submit=function(){s(),g.submit=f,g.submit(),g.submit=b}}catch{}}n.finishInit=function(k){k.save=s,k.getTextArea=function(){return t},k.toTextArea=function(){k.toTextArea=isNaN,s(),t.parentNode.removeChild(k.getWrapperElement()),t.style.display="",t.form&&(Ot(t.form,"submit",s),!n.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var w=dt(function(k){return t.parentNode.insertBefore(k,t.nextSibling)},n);return w}function fo(t){t.off=Ot,t.on=Ie,t.wheelEventPixels=sl,t.Doc=tr,t.splitLines=nr,t.countColumn=Ge,t.findColumn=kt,t.isWordChar=$e,t.Pass=ut,t.signal=Ct,t.Line=Ki,t.changeEnd=Yr,t.scrollbarModel=el,t.Pos=fe,t.cmpPos=Ce,t.modes=sn,t.mimeModes=Ar,t.resolveMode=Xn,t.getMode=Yn,t.modeExtensions=Cn,t.extendMode=Zn,t.copyState=Or,t.startState=xr,t.innerMode=Ri,t.commands=so,t.keyMap=Zr,t.keyName=cf,t.isModifierKey=_l,t.lookupKey=xi,t.normalizeKeyMap=ff,t.StringStream=$t,t.SharedTextMarker=ta,t.TextMarker=zn,t.LineWidget=io,t.e_preventDefault=Tt,t.e_stopPropagation=Ii,t.e_stop=Yt,t.addClass=he,t.contains=q,t.rmClass=ge,t.keyNames=yn}Zc(dt),tp(dt);var _f="iter insert remove copy getEditor constructor".split(" ");for(var gs in tr.prototype)tr.prototype.hasOwnProperty(gs)&&Pe(_f,gs)<0&&(dt.prototype[gs]=(function(t){return function(){return t.apply(this.doc,arguments)}})(tr.prototype[gs]));return br(tr),dt.inputStyles={textarea:Lt,contenteditable:tt},dt.defineMode=function(t){!dt.defaults.mode&&t!="null"&&(dt.defaults.mode=t),Ir.apply(this,arguments)},dt.defineMIME=Qn,dt.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),dt.defineMIME("text/plain","null"),dt.defineExtension=function(t,n){dt.prototype[t]=n},dt.defineDocExtension=function(t,n){tr.prototype[t]=n},dt.fromTextArea=Ul,fo(dt),dt.version="5.65.21",dt}))});var sp=Mt((Ed,Md)=>{(function(e){typeof Ed=="object"&&typeof Md=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var r={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},i={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};e.defineMode("xml",function(o,c){var d=o.indentUnit,m={},x=c.htmlMode?r:i;for(var S in x)m[S]=x[S];for(var S in c)m[S]=c[S];var A,T;function D($,ve){function se(he){return ve.tokenize=he,he($,ve)}var q=$.next();if(q=="<")return $.eat("!")?$.eat("[")?$.match("CDATA[")?se(V("atom","]]>")):null:$.match("--")?se(V("comment","-->")):$.match("DOCTYPE",!0,!0)?($.eatWhile(/[\w\._\-]/),se(I(1))):null:$.eat("?")?($.eatWhile(/[\w\._\-]/),ve.tokenize=V("meta","?>"),"meta"):(A=$.eat("/")?"closeTag":"openTag",ve.tokenize=E,"tag bracket");if(q=="&"){var Q;return $.eat("#")?$.eat("x")?Q=$.eatWhile(/[a-fA-F\d]/)&&$.eat(";"):Q=$.eatWhile(/[\d]/)&&$.eat(";"):Q=$.eatWhile(/[\w\.\-:]/)&&$.eat(";"),Q?"atom":"error"}else return $.eatWhile(/[^&<]/),null}D.isInText=!0;function E($,ve){var se=$.next();if(se==">"||se=="/"&&$.eat(">"))return ve.tokenize=D,A=se==">"?"endTag":"selfcloseTag","tag bracket";if(se=="=")return A="equals",null;if(se=="<"){ve.tokenize=D,ve.state=ue,ve.tagName=ve.tagStart=null;var q=ve.tokenize($,ve);return q?q+" tag error":"tag error"}else return/[\'\"]/.test(se)?(ve.tokenize=U(se),ve.stringStartCol=$.column(),ve.tokenize($,ve)):($.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function U($){var ve=function(se,q){for(;!se.eol();)if(se.next()==$){q.tokenize=E;break}return"string"};return ve.isInAttribute=!0,ve}function V($,ve){return function(se,q){for(;!se.eol();){if(se.match(ve)){q.tokenize=D;break}se.next()}return $}}function I($){return function(ve,se){for(var q;(q=ve.next())!=null;){if(q=="<")return se.tokenize=I($+1),se.tokenize(ve,se);if(q==">")if($==1){se.tokenize=D;break}else return se.tokenize=I($-1),se.tokenize(ve,se)}return"meta"}}function W($){return $&&$.toLowerCase()}function K($,ve,se){this.prev=$.context,this.tagName=ve||"",this.indent=$.indented,this.startOfLine=se,(m.doNotIndent.hasOwnProperty(ve)||$.context&&$.context.noIndent)&&(this.noIndent=!0)}function G($){$.context&&($.context=$.context.prev)}function re($,ve){for(var se;;){if(!$.context||(se=$.context.tagName,!m.contextGrabbers.hasOwnProperty(W(se))||!m.contextGrabbers[W(se)].hasOwnProperty(W(ve))))return;G($)}}function ue($,ve,se){return $=="openTag"?(se.tagStart=ve.column(),ae):$=="closeTag"?j:ue}function ae($,ve,se){return $=="word"?(se.tagName=ve.current(),T="tag",ne):m.allowMissingTagName&&$=="endTag"?(T="tag bracket",ne($,ve,se)):(T="error",ae)}function j($,ve,se){if($=="word"){var q=ve.current();return se.context&&se.context.tagName!=q&&m.implicitlyClosed.hasOwnProperty(W(se.context.tagName))&&G(se),se.context&&se.context.tagName==q||m.matchClosing===!1?(T="tag",B):(T="tag error",ee)}else return m.allowMissingTagName&&$=="endTag"?(T="tag bracket",B($,ve,se)):(T="error",ee)}function B($,ve,se){return $!="endTag"?(T="error",B):(G(se),ue)}function ee($,ve,se){return T="error",B($,ve,se)}function ne($,ve,se){if($=="word")return T="attribute",ge;if($=="endTag"||$=="selfcloseTag"){var q=se.tagName,Q=se.tagStart;return se.tagName=se.tagStart=null,$=="selfcloseTag"||m.autoSelfClosers.hasOwnProperty(W(q))?re(se,q):(re(se,q),se.context=new K(se,q,Q==se.indented)),ue}return T="error",ne}function ge($,ve,se){return $=="equals"?Z:(m.allowMissing||(T="error"),ne($,ve,se))}function Z($,ve,se){return $=="string"?pe:$=="word"&&m.allowUnquoted?(T="string",ne):(T="error",ne($,ve,se))}function pe($,ve,se){return $=="string"?pe:ne($,ve,se)}return{startState:function($){var ve={tokenize:D,state:ue,indented:$||0,tagName:null,tagStart:null,context:null};return $!=null&&(ve.baseIndent=$),ve},token:function($,ve){if(!ve.tagName&&$.sol()&&(ve.indented=$.indentation()),$.eatSpace())return null;A=null;var se=ve.tokenize($,ve);return(se||A)&&se!="comment"&&(T=null,ve.state=ve.state(A||se,$,ve),T&&(se=T=="error"?se+" error":T)),se},indent:function($,ve,se){var q=$.context;if($.tokenize.isInAttribute)return $.tagStart==$.indented?$.stringStartCol+1:$.indented+d;if(q&&q.noIndent)return e.Pass;if($.tokenize!=E&&$.tokenize!=D)return se?se.match(/^(\s*)/)[0].length:0;if($.tagName)return m.multilineTagIndentPastTag!==!1?$.tagStart+$.tagName.length+2:$.tagStart+d*(m.multilineTagIndentFactor||1);if(m.alignCDATA&&/<!\[CDATA\[/.test(ve))return 0;var Q=ve&&/^<(\/)?([\w_:\.-]*)/.exec(ve);if(Q&&Q[1])for(;q;)if(q.tagName==Q[2]){q=q.prev;break}else if(m.implicitlyClosed.hasOwnProperty(W(q.tagName)))q=q.prev;else break;else if(Q)for(;q;){var he=m.contextGrabbers[W(q.tagName)];if(he&&he.hasOwnProperty(W(Q[2])))q=q.prev;else break}for(;q&&q.prev&&!q.startOfLine;)q=q.prev;return q?q.indent+d:$.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:m.htmlMode?"html":"xml",helperType:m.htmlMode?"html":"xml",skipAttribute:function($){$.state==Z&&($.state=ne)},xmlCurrentTag:function($){return $.tagName?{name:$.tagName,close:$.type=="closeTag"}:null},xmlCurrentContext:function($){for(var ve=[],se=$.context;se;se=se.prev)ve.push(se.tagName);return ve.reverse()}}}),e.defineMIME("text/xml","xml"),e.defineMIME("application/xml","xml"),e.mimeModes.hasOwnProperty("text/html")||e.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var lp=Mt((Pd,Dd)=>{(function(e){typeof Pd=="object"&&typeof Dd=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("javascript",function(r,i){var o=r.indentUnit,c=i.statementIndent,d=i.jsonld,m=i.json||d,x=i.trackScope!==!1,S=i.typescript,A=i.wordCharacters||/[\w$\xa1-\uffff]/,T=(function(){function O(It){return{type:It,style:"keyword"}}var z=O("keyword a"),me=O("keyword b"),xe=O("keyword c"),fe=O("keyword d"),Ce=O("operator"),it={type:"atom",style:"atom"};return{if:O("if"),while:z,with:z,else:me,do:me,try:me,finally:me,return:fe,break:fe,continue:fe,new:O("new"),delete:xe,void:xe,throw:xe,debugger:O("debugger"),var:O("var"),const:O("var"),let:O("var"),function:O("function"),catch:O("catch"),for:O("for"),switch:O("switch"),case:O("case"),default:O("default"),in:Ce,typeof:Ce,instanceof:Ce,true:it,false:it,null:it,undefined:it,NaN:it,Infinity:it,this:O("this"),class:O("class"),super:O("atom"),yield:xe,export:O("export"),import:O("import"),extends:xe,await:xe}})(),D=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function U(O){for(var z=!1,me,xe=!1;(me=O.next())!=null;){if(!z){if(me=="/"&&!xe)return;me=="["?xe=!0:xe&&me=="]"&&(xe=!1)}z=!z&&me=="\\"}}var V,I;function W(O,z,me){return V=O,I=me,z}function K(O,z){var me=O.next();if(me=='"'||me=="'")return z.tokenize=G(me),z.tokenize(O,z);if(me=="."&&O.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return W("number","number");if(me=="."&&O.match(".."))return W("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(me))return W(me);if(me=="="&&O.eat(">"))return W("=>","operator");if(me=="0"&&O.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return W("number","number");if(/\d/.test(me))return O.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),W("number","number");if(me=="/")return O.eat("*")?(z.tokenize=re,re(O,z)):O.eat("/")?(O.skipToEnd(),W("comment","comment")):kr(O,z,1)?(U(O),O.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),W("regexp","string-2")):(O.eat("="),W("operator","operator",O.current()));if(me=="`")return z.tokenize=ue,ue(O,z);if(me=="#"&&O.peek()=="!")return O.skipToEnd(),W("meta","meta");if(me=="#"&&O.eatWhile(A))return W("variable","property");if(me=="<"&&O.match("!--")||me=="-"&&O.match("->")&&!/\S/.test(O.string.slice(0,O.start)))return O.skipToEnd(),W("comment","comment");if(D.test(me))return(me!=">"||!z.lexical||z.lexical.type!=">")&&(O.eat("=")?(me=="!"||me=="=")&&O.eat("="):/[<>*+\-|&?]/.test(me)&&(O.eat(me),me==">"&&O.eat(me))),me=="?"&&O.eat(".")?W("."):W("operator","operator",O.current());if(A.test(me)){O.eatWhile(A);var xe=O.current();if(z.lastType!="."){if(T.propertyIsEnumerable(xe)){var fe=T[xe];return W(fe.type,fe.style,xe)}if(xe=="async"&&O.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return W("async","keyword",xe)}return W("variable","variable",xe)}}function G(O){return function(z,me){var xe=!1,fe;if(d&&z.peek()=="@"&&z.match(E))return me.tokenize=K,W("jsonld-keyword","meta");for(;(fe=z.next())!=null&&!(fe==O&&!xe);)xe=!xe&&fe=="\\";return xe||(me.tokenize=K),W("string","string")}}function re(O,z){for(var me=!1,xe;xe=O.next();){if(xe=="/"&&me){z.tokenize=K;break}me=xe=="*"}return W("comment","comment")}function ue(O,z){for(var me=!1,xe;(xe=O.next())!=null;){if(!me&&(xe=="`"||xe=="$"&&O.eat("{"))){z.tokenize=K;break}me=!me&&xe=="\\"}return W("quasi","string-2",O.current())}var ae="([{}])";function j(O,z){z.fatArrowAt&&(z.fatArrowAt=null);var me=O.string.indexOf("=>",O.start);if(!(me<0)){if(S){var xe=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(O.string.slice(O.start,me));xe&&(me=xe.index)}for(var fe=0,Ce=!1,it=me-1;it>=0;--it){var It=O.string.charAt(it),ir=ae.indexOf(It);if(ir>=0&&ir<3){if(!fe){++it;break}if(--fe==0){It=="("&&(Ce=!0);break}}else if(ir>=3&&ir<6)++fe;else if(A.test(It))Ce=!0;else if(/["'\/`]/.test(It))for(;;--it){if(it==0)return;var qi=O.string.charAt(it-1);if(qi==It&&O.string.charAt(it-2)!="\\"){it--;break}}else if(Ce&&!fe){++it;break}}Ce&&!fe&&(z.fatArrowAt=it)}}var B={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function ee(O,z,me,xe,fe,Ce){this.indented=O,this.column=z,this.type=me,this.prev=fe,this.info=Ce,xe!=null&&(this.align=xe)}function ne(O,z){if(!x)return!1;for(var me=O.localVars;me;me=me.next)if(me.name==z)return!0;for(var xe=O.context;xe;xe=xe.prev)for(var me=xe.vars;me;me=me.next)if(me.name==z)return!0}function ge(O,z,me,xe,fe){var Ce=O.cc;for(Z.state=O,Z.stream=fe,Z.marked=null,Z.cc=Ce,Z.style=z,O.lexical.hasOwnProperty("align")||(O.lexical.align=!0);;){var it=Ce.length?Ce.pop():m?Pe:Ge;if(it(me,xe)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return Z.marked?Z.marked:me=="variable"&&ne(O,xe)?"variable-2":z}}}var Z={state:null,column:null,marked:null,cc:null};function pe(){for(var O=arguments.length-1;O>=0;O--)Z.cc.push(arguments[O])}function $(){return pe.apply(null,arguments),!0}function ve(O,z){for(var me=z;me;me=me.next)if(me.name==O)return!0;return!1}function se(O){var z=Z.state;if(Z.marked="def",!!x){if(z.context){if(z.lexical.info=="var"&&z.context&&z.context.block){var me=q(O,z.context);if(me!=null){z.context=me;return}}else if(!ve(O,z.localVars)){z.localVars=new Ae(O,z.localVars);return}}i.globalVars&&!ve(O,z.globalVars)&&(z.globalVars=new Ae(O,z.globalVars))}}function q(O,z){if(z)if(z.block){var me=q(O,z.prev);return me?me==z.prev?z:new he(me,z.vars,!0):null}else return ve(O,z.vars)?z:new he(z.prev,new Ae(O,z.vars),!1);else return null}function Q(O){return O=="public"||O=="private"||O=="protected"||O=="abstract"||O=="readonly"}function he(O,z,me){this.prev=O,this.vars=z,this.block=me}function Ae(O,z){this.name=O,this.next=z}var Ye=new Ae("this",new Ae("arguments",null));function Ve(){Z.state.context=new he(Z.state.context,Z.state.localVars,!1),Z.state.localVars=Ye}function wt(){Z.state.context=new he(Z.state.context,Z.state.localVars,!0),Z.state.localVars=null}Ve.lex=wt.lex=!0;function lt(){Z.state.localVars=Z.state.context.vars,Z.state.context=Z.state.context.prev}lt.lex=!0;function We(O,z){var me=function(){var xe=Z.state,fe=xe.indented;if(xe.lexical.type=="stat")fe=xe.lexical.indented;else for(var Ce=xe.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)fe=Ce.indented;xe.lexical=new ee(fe,Z.stream.column(),O,null,xe.lexical,z)};return me.lex=!0,me}function Ee(){var O=Z.state;O.lexical.prev&&(O.lexical.type==")"&&(O.indented=O.lexical.indented),O.lexical=O.lexical.prev)}Ee.lex=!0;function Ue(O){function z(me){return me==O?$():O==";"||me=="}"||me==")"||me=="]"?pe():$(z)}return z}function Ge(O,z){return O=="var"?$(We("vardef",z),Ii,Ue(";"),Ee):O=="keyword a"?$(We("form"),ut,Ge,Ee):O=="keyword b"?$(We("form"),Ge,Ee):O=="keyword d"?Z.stream.match(/^\s*$/,!1)?$():$(We("stat"),At,Ue(";"),Ee):O=="debugger"?$(Ue(";")):O=="{"?$(We("}"),wt,Wt,Ee,lt):O==";"?$():O=="if"?(Z.state.lexical.info=="else"&&Z.state.cc[Z.state.cc.length-1]==Ee&&Z.state.cc.pop()(),$(We("form"),ut,Ge,Ee,Gn)):O=="function"?$(nr):O=="for"?$(We("form"),wt,Fi,Ge,lt,Ee):O=="class"||S&&z=="interface"?(Z.marked="keyword",$(We("form",O=="class"?O:z),sn,Ee)):O=="variable"?S&&z=="declare"?(Z.marked="keyword",$(Ge)):S&&(z=="module"||z=="enum"||z=="type")&&Z.stream.match(/^\s*\w/,!1)?(Z.marked="keyword",z=="enum"?$(Ne):z=="type"?$(Sn,Ue("operator"),et,Ue(";")):$(We("form"),Xt,Ue("{"),We("}"),Wt,Ee,Ee)):S&&z=="namespace"?(Z.marked="keyword",$(We("form"),Pe,Ge,Ee)):S&&z=="abstract"?(Z.marked="keyword",$(Ge)):$(We("stat"),Qe):O=="switch"?$(We("form"),ut,Ue("{"),We("}","switch"),wt,Wt,Ee,Ee,lt):O=="case"?$(Pe,Ue(":")):O=="default"?$(Ue(":")):O=="catch"?$(We("form"),Ve,Oe,Ge,Ee,lt):O=="export"?$(We("stat"),Xn,Ee):O=="import"?$(We("stat"),Cn,Ee):O=="async"?$(Ge):z=="@"?$(Pe,Ge):pe(We("stat"),Pe,Ue(";"),Ee)}function Oe(O){if(O=="(")return $(pt,Ue(")"))}function Pe(O,z){return at(O,z,!1)}function Pt(O,z){return at(O,z,!0)}function ut(O){return O!="("?pe():$(We(")"),At,Ue(")"),Ee)}function at(O,z,me){if(Z.state.fatArrowAt==Z.stream.start){var xe=me?nt:qe;if(O=="(")return $(Ve,We(")"),Be(pt,")"),Ee,Ue("=>"),xe,lt);if(O=="variable")return pe(Ve,Xt,Ue("=>"),xe,lt)}var fe=me?kt:Ze;return B.hasOwnProperty(O)?$(fe):O=="function"?$(nr,fe):O=="class"||S&&z=="interface"?(Z.marked="keyword",$(We("form"),ka,Ee)):O=="keyword c"||O=="async"?$(me?Pt:Pe):O=="("?$(We(")"),At,Ue(")"),Ee,fe):O=="operator"||O=="spread"?$(me?Pt:Pe):O=="["?$(We("]"),$t,Ee,fe):O=="{"?ht(Re,"}",null,fe):O=="quasi"?pe(jt,fe):O=="new"?$(oe(me)):$()}function At(O){return O.match(/[;\}\)\],]/)?pe():pe(Pe)}function Ze(O,z){return O==","?$(At):kt(O,z,!1)}function kt(O,z,me){var xe=me==!1?Ze:kt,fe=me==!1?Pe:Pt;if(O=="=>")return $(Ve,me?nt:qe,lt);if(O=="operator")return/\+\+|--/.test(z)||S&&z=="!"?$(xe):S&&z=="<"&&Z.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?$(We(">"),Be(et,">"),Ee,xe):z=="?"?$(Pe,Ue(":"),fe):$(fe);if(O=="quasi")return pe(jt,xe);if(O!=";"){if(O=="(")return ht(Pt,")","call",xe);if(O==".")return $($e,xe);if(O=="[")return $(We("]"),At,Ue("]"),Ee,xe);if(S&&z=="as")return Z.marked="keyword",$(et,xe);if(O=="regexp")return Z.state.lastType=Z.marked="operator",Z.stream.backUp(Z.stream.pos-Z.stream.start-1),$(fe)}}function jt(O,z){return O!="quasi"?pe():z.slice(z.length-2)!="${"?$(jt):$(At,qt)}function qt(O){if(O=="}")return Z.marked="string-2",Z.state.tokenize=ue,$(jt)}function qe(O){return j(Z.stream,Z.state),pe(O=="{"?Ge:Pe)}function nt(O){return j(Z.stream,Z.state),pe(O=="{"?Ge:Pt)}function oe(O){return function(z){return z=="."?$(O?ce:be):z=="variable"&&S?$(rr,O?kt:Ze):pe(O?Pt:Pe)}}function be(O,z){if(z=="target")return Z.marked="keyword",$(Ze)}function ce(O,z){if(z=="target")return Z.marked="keyword",$(kt)}function Qe(O){return O==":"?$(Ee,Ge):pe(Ze,Ue(";"),Ee)}function $e(O){if(O=="variable")return Z.marked="property",$()}function Re(O,z){if(O=="async")return Z.marked="property",$(Re);if(O=="variable"||Z.style=="keyword"){if(Z.marked="property",z=="get"||z=="set")return $(Me);var me;return S&&Z.state.fatArrowAt==Z.stream.start&&(me=Z.stream.match(/^\s*:\s*/,!1))&&(Z.state.fatArrowAt=Z.stream.pos+me[0].length),$(Fe)}else{if(O=="number"||O=="string")return Z.marked=d?"property":Z.style+" property",$(Fe);if(O=="jsonld-keyword")return $(Fe);if(S&&Q(z))return Z.marked="keyword",$(Re);if(O=="[")return $(Pe,mr,Ue("]"),Fe);if(O=="spread")return $(Pt,Fe);if(z=="*")return Z.marked="keyword",$(Re);if(O==":")return pe(Fe)}}function Me(O){return O!="variable"?pe(Fe):(Z.marked="property",$(nr))}function Fe(O){if(O==":")return $(Pt);if(O=="(")return pe(nr)}function Be(O,z,me){function xe(fe,Ce){if(me?me.indexOf(fe)>-1:fe==","){var it=Z.state.lexical;return it.info=="call"&&(it.pos=(it.pos||0)+1),$(function(It,ir){return It==z||ir==z?pe():pe(O)},xe)}return fe==z||Ce==z?$():me&&me.indexOf(";")>-1?pe(O):$(Ue(z))}return function(fe,Ce){return fe==z||Ce==z?$():pe(O,xe)}}function ht(O,z,me){for(var xe=3;xe<arguments.length;xe++)Z.cc.push(arguments[xe]);return $(We(z,me),Be(O,z),Ee)}function Wt(O){return O=="}"?$():pe(Ge,Wt)}function mr(O,z){if(S){if(O==":")return $(et);if(z=="?")return $(mr)}}function an(O,z){if(S&&(O==":"||z=="in"))return $(et)}function _n(O){if(S&&O==":")return Z.stream.match(/^\s*\w+\s+is\b/,!1)?$(Pe,Di,et):$(et)}function Di(O,z){if(z=="is")return Z.marked="keyword",$()}function et(O,z){if(z=="keyof"||z=="typeof"||z=="infer"||z=="readonly")return Z.marked="keyword",$(z=="typeof"?Pt:et);if(O=="variable"||z=="void")return Z.marked="type",$(yr);if(z=="|"||z=="&")return $(et);if(O=="string"||O=="number"||O=="atom")return $(yr);if(O=="[")return $(We("]"),Be(et,"]",","),Ee,yr);if(O=="{")return $(We("}"),Ie,Ee,yr);if(O=="(")return $(Be(gt,")"),vr,yr);if(O=="<")return $(Be(et,">"),et);if(O=="quasi")return pe(Ot,yr)}function vr(O){if(O=="=>")return $(et)}function Ie(O){return O.match(/[\}\)\]]/)?$():O==","||O==";"?$(Ie):pe(ur,Ie)}function ur(O,z){if(O=="variable"||Z.style=="keyword")return Z.marked="property",$(ur);if(z=="?"||O=="number"||O=="string")return $(ur);if(O==":")return $(et);if(O=="[")return $(Ue("variable"),an,Ue("]"),ur);if(O=="(")return pe(pr,ur);if(!O.match(/[;\}\)\],]/))return $()}function Ot(O,z){return O!="quasi"?pe():z.slice(z.length-2)!="${"?$(Ot):$(et,Ct)}function Ct(O){if(O=="}")return Z.marked="string-2",Z.state.tokenize=ue,$(Ot)}function gt(O,z){return O=="variable"&&Z.stream.match(/^\s*[?:]/,!1)||z=="?"?$(gt):O==":"?$(et):O=="spread"?$(gt):pe(et)}function yr(O,z){if(z=="<")return $(We(">"),Be(et,">"),Ee,yr);if(z=="|"||O=="."||z=="&")return $(et);if(O=="[")return $(et,Ue("]"),yr);if(z=="extends"||z=="implements")return Z.marked="keyword",$(et);if(z=="?")return $(et,Ue(":"),et)}function rr(O,z){if(z=="<")return $(We(">"),Be(et,">"),Ee,yr)}function br(){return pe(et,Tt)}function Tt(O,z){if(z=="=")return $(et)}function Ii(O,z){return z=="enum"?(Z.marked="keyword",$(Ne)):pe(Xt,mr,fr,_o)}function Xt(O,z){if(S&&Q(z))return Z.marked="keyword",$(Xt);if(O=="variable")return se(z),$();if(O=="spread")return $(Xt);if(O=="[")return ht(Lr,"]");if(O=="{")return ht(Yt,"}")}function Yt(O,z){return O=="variable"&&!Z.stream.match(/^\s*:/,!1)?(se(z),$(fr)):(O=="variable"&&(Z.marked="property"),O=="spread"?$(Xt):O=="}"?pe():O=="["?$(Pe,Ue("]"),Ue(":"),Yt):$(Ue(":"),Xt,fr))}function Lr(){return pe(Xt,fr)}function fr(O,z){if(z=="=")return $(Pt)}function _o(O){if(O==",")return $(Ii)}function Gn(O,z){if(O=="keyword b"&&z=="else")return $(We("form","else"),Ge,Ee)}function Fi(O,z){if(z=="await")return $(Fi);if(O=="(")return $(We(")"),zi,Ee)}function zi(O){return O=="var"?$(Ii,cr):O=="variable"?$(cr):pe(cr)}function cr(O,z){return O==")"?$():O==";"?$(cr):z=="in"||z=="of"?(Z.marked="keyword",$(Pe,cr)):pe(Pe,cr)}function nr(O,z){if(z=="*")return Z.marked="keyword",$(nr);if(O=="variable")return se(z),$(nr);if(O=="(")return $(Ve,We(")"),Be(pt,")"),Ee,_n,Ge,lt);if(S&&z=="<")return $(We(">"),Be(br,">"),Ee,nr)}function pr(O,z){if(z=="*")return Z.marked="keyword",$(pr);if(O=="variable")return se(z),$(pr);if(O=="(")return $(Ve,We(")"),Be(pt,")"),Ee,_n,lt);if(S&&z=="<")return $(We(">"),Be(br,">"),Ee,pr)}function Sn(O,z){if(O=="keyword"||O=="variable")return Z.marked="type",$(Sn);if(z=="<")return $(We(">"),Be(br,">"),Ee)}function pt(O,z){return z=="@"&&$(Pe,pt),O=="spread"?$(pt):S&&Q(z)?(Z.marked="keyword",$(pt)):S&&O=="this"?$(mr,fr):pe(Xt,mr,fr)}function ka(O,z){return O=="variable"?sn(O,z):Ar(O,z)}function sn(O,z){if(O=="variable")return se(z),$(Ar)}function Ar(O,z){if(z=="<")return $(We(">"),Be(br,">"),Ee,Ar);if(z=="extends"||z=="implements"||S&&O==",")return z=="implements"&&(Z.marked="keyword"),$(S?et:Pe,Ar);if(O=="{")return $(We("}"),Ir,Ee)}function Ir(O,z){if(O=="async"||O=="variable"&&(z=="static"||z=="get"||z=="set"||S&&Q(z))&&Z.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return Z.marked="keyword",$(Ir);if(O=="variable"||Z.style=="keyword")return Z.marked="property",$(Qn,Ir);if(O=="number"||O=="string")return $(Qn,Ir);if(O=="[")return $(Pe,mr,Ue("]"),Qn,Ir);if(z=="*")return Z.marked="keyword",$(Ir);if(S&&O=="(")return pe(pr,Ir);if(O==";"||O==",")return $(Ir);if(O=="}")return $();if(z=="@")return $(Pe,Ir)}function Qn(O,z){if(z=="!"||z=="?")return $(Qn);if(O==":")return $(et,fr);if(z=="=")return $(Pt);var me=Z.state.lexical.prev,xe=me&&me.info=="interface";return pe(xe?pr:nr)}function Xn(O,z){return z=="*"?(Z.marked="keyword",$(xr,Ue(";"))):z=="default"?(Z.marked="keyword",$(Pe,Ue(";"))):O=="{"?$(Be(Yn,"}"),xr,Ue(";")):pe(Ge)}function Yn(O,z){if(z=="as")return Z.marked="keyword",$(Ue("variable"));if(O=="variable")return pe(Pt,Yn)}function Cn(O){return O=="string"?$():O=="("?pe(Pe):O=="."?pe(Ze):pe(Zn,Or,xr)}function Zn(O,z){return O=="{"?ht(Zn,"}"):(O=="variable"&&se(z),z=="*"&&(Z.marked="keyword"),$(Ri))}function Or(O){if(O==",")return $(Zn,Or)}function Ri(O,z){if(z=="as")return Z.marked="keyword",$(Zn)}function xr(O,z){if(z=="from")return Z.marked="keyword",$(Pe)}function $t(O){return O=="]"?$():pe(Be(Pt,"]"))}function Ne(){return pe(We("form"),Xt,Ue("{"),We("}"),Be(wr,"}"),Ee,Ee)}function wr(){return pe(Xt,fr)}function ji(O,z){return O.lastType=="operator"||O.lastType==","||D.test(z.charAt(0))||/[,.]/.test(z.charAt(0))}function kr(O,z,me){return z.tokenize==K&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(z.lastType)||z.lastType=="quasi"&&/\{\s*$/.test(O.string.slice(0,O.pos-(me||0)))}return{startState:function(O){var z={tokenize:K,lastType:"sof",cc:[],lexical:new ee((O||0)-o,0,"block",!1),localVars:i.localVars,context:i.localVars&&new he(null,null,!1),indented:O||0};return i.globalVars&&typeof i.globalVars=="object"&&(z.globalVars=i.globalVars),z},token:function(O,z){if(O.sol()&&(z.lexical.hasOwnProperty("align")||(z.lexical.align=!1),z.indented=O.indentation(),j(O,z)),z.tokenize!=re&&O.eatSpace())return null;var me=z.tokenize(O,z);return V=="comment"?me:(z.lastType=V=="operator"&&(I=="++"||I=="--")?"incdec":V,ge(z,me,V,I,O))},indent:function(O,z){if(O.tokenize==re||O.tokenize==ue)return e.Pass;if(O.tokenize!=K)return 0;var me=z&&z.charAt(0),xe=O.lexical,fe;if(!/^\s*else\b/.test(z))for(var Ce=O.cc.length-1;Ce>=0;--Ce){var it=O.cc[Ce];if(it==Ee)xe=xe.prev;else if(it!=Gn&&it!=lt)break}for(;(xe.type=="stat"||xe.type=="form")&&(me=="}"||(fe=O.cc[O.cc.length-1])&&(fe==Ze||fe==kt)&&!/^[,\.=+\-*:?[\(]/.test(z));)xe=xe.prev;c&&xe.type==")"&&xe.prev.type=="stat"&&(xe=xe.prev);var It=xe.type,ir=me==It;return It=="vardef"?xe.indented+(O.lastType=="operator"||O.lastType==","?xe.info.length+1:0):It=="form"&&me=="{"?xe.indented:It=="form"?xe.indented+o:It=="stat"?xe.indented+(ji(O,z)?c||o:0):xe.info=="switch"&&!ir&&i.doubleIndentSwitch!=!1?xe.indented+(/^(?:case|default)\b/.test(z)?o:2*o):xe.align?xe.column+(ir?0:1):xe.indented+(ir?0:o)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:m?null:"/*",blockCommentEnd:m?null:"*/",blockCommentContinue:m?null:" * ",lineComment:m?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:m?"json":"javascript",jsonldMode:d,jsonMode:m,expressionAllowed:kr,skipExpression:function(O){ge(O,"atom","atom","true",new e.StringStream("",2,null))}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var Sf=Mt((Id,Fd)=>{(function(e){typeof Id=="object"&&typeof Fd=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("css",function(ee,ne){var ge=ne.inline;ne.propertyKeywords||(ne=e.resolveMode("text/css"));var Z=ee.indentUnit,pe=ne.tokenHooks,$=ne.documentTypes||{},ve=ne.mediaTypes||{},se=ne.mediaFeatures||{},q=ne.mediaValueKeywords||{},Q=ne.propertyKeywords||{},he=ne.nonStandardPropertyKeywords||{},Ae=ne.fontProperties||{},Ye=ne.counterDescriptors||{},Ve=ne.colorKeywords||{},wt=ne.valueKeywords||{},lt=ne.allowNested,We=ne.lineComment,Ee=ne.supportsAtComponent===!0,Ue=ee.highlightNonStandardPropertyKeywords!==!1,Ge,Oe;function Pe(oe,be){return Ge=be,oe}function Pt(oe,be){var ce=oe.next();if(pe[ce]){var Qe=pe[ce](oe,be);if(Qe!==!1)return Qe}if(ce=="@")return oe.eatWhile(/[\w\\\-]/),Pe("def",oe.current());if(ce=="="||(ce=="~"||ce=="|")&&oe.eat("="))return Pe(null,"compare");if(ce=='"'||ce=="'")return be.tokenize=ut(ce),be.tokenize(oe,be);if(ce=="#")return oe.eatWhile(/[\w\\\-]/),Pe("atom","hash");if(ce=="!")return oe.match(/^\s*\w*/),Pe("keyword","important");if(/\d/.test(ce)||ce=="."&&oe.eat(/\d/))return oe.eatWhile(/[\w.%]/),Pe("number","unit");if(ce==="-"){if(/[\d.]/.test(oe.peek()))return oe.eatWhile(/[\w.%]/),Pe("number","unit");if(oe.match(/^-[\w\\\-]*/))return oe.eatWhile(/[\w\\\-]/),oe.match(/^\s*:/,!1)?Pe("variable-2","variable-definition"):Pe("variable-2","variable");if(oe.match(/^\w+-/))return Pe("meta","meta")}else return/[,+>*\/]/.test(ce)?Pe(null,"select-op"):ce=="."&&oe.match(/^-?[_a-z][_a-z0-9-]*/i)?Pe("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(ce)?Pe(null,ce):oe.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(oe.current())&&(be.tokenize=at),Pe("variable callee","variable")):/[\w\\\-]/.test(ce)?(oe.eatWhile(/[\w\\\-]/),Pe("property","word")):Pe(null,null)}function ut(oe){return function(be,ce){for(var Qe=!1,$e;($e=be.next())!=null;){if($e==oe&&!Qe){oe==")"&&be.backUp(1);break}Qe=!Qe&&$e=="\\"}return($e==oe||!Qe&&oe!=")")&&(ce.tokenize=null),Pe("string","string")}}function at(oe,be){return oe.next(),oe.match(/^\s*[\"\')]/,!1)?be.tokenize=null:be.tokenize=ut(")"),Pe(null,"(")}function At(oe,be,ce){this.type=oe,this.indent=be,this.prev=ce}function Ze(oe,be,ce,Qe){return oe.context=new At(ce,be.indentation()+(Qe===!1?0:Z),oe.context),ce}function kt(oe){return oe.context.prev&&(oe.context=oe.context.prev),oe.context.type}function jt(oe,be,ce){return nt[ce.context.type](oe,be,ce)}function qt(oe,be,ce,Qe){for(var $e=Qe||1;$e>0;$e--)ce.context=ce.context.prev;return jt(oe,be,ce)}function qe(oe){var be=oe.current().toLowerCase();wt.hasOwnProperty(be)?Oe="atom":Ve.hasOwnProperty(be)?Oe="keyword":Oe="variable"}var nt={};return nt.top=function(oe,be,ce){if(oe=="{")return Ze(ce,be,"block");if(oe=="}"&&ce.context.prev)return kt(ce);if(Ee&&/@component/i.test(oe))return Ze(ce,be,"atComponentBlock");if(/^@(-moz-)?document$/i.test(oe))return Ze(ce,be,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(oe))return Ze(ce,be,"atBlock");if(/^@(font-face|counter-style)/i.test(oe))return ce.stateArg=oe,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(oe))return"keyframes";if(oe&&oe.charAt(0)=="@")return Ze(ce,be,"at");if(oe=="hash")Oe="builtin";else if(oe=="word")Oe="tag";else{if(oe=="variable-definition")return"maybeprop";if(oe=="interpolation")return Ze(ce,be,"interpolation");if(oe==":")return"pseudo";if(lt&&oe=="(")return Ze(ce,be,"parens")}return ce.context.type},nt.block=function(oe,be,ce){if(oe=="word"){var Qe=be.current().toLowerCase();return Q.hasOwnProperty(Qe)?(Oe="property","maybeprop"):he.hasOwnProperty(Qe)?(Oe=Ue?"string-2":"property","maybeprop"):lt?(Oe=be.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(Oe+=" error","maybeprop")}else return oe=="meta"?"block":!lt&&(oe=="hash"||oe=="qualifier")?(Oe="error","block"):nt.top(oe,be,ce)},nt.maybeprop=function(oe,be,ce){return oe==":"?Ze(ce,be,"prop"):jt(oe,be,ce)},nt.prop=function(oe,be,ce){if(oe==";")return kt(ce);if(oe=="{"&&lt)return Ze(ce,be,"propBlock");if(oe=="}"||oe=="{")return qt(oe,be,ce);if(oe=="(")return Ze(ce,be,"parens");if(oe=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(be.current()))Oe+=" error";else if(oe=="word")qe(be);else if(oe=="interpolation")return Ze(ce,be,"interpolation");return"prop"},nt.propBlock=function(oe,be,ce){return oe=="}"?kt(ce):oe=="word"?(Oe="property","maybeprop"):ce.context.type},nt.parens=function(oe,be,ce){return oe=="{"||oe=="}"?qt(oe,be,ce):oe==")"?kt(ce):oe=="("?Ze(ce,be,"parens"):oe=="interpolation"?Ze(ce,be,"interpolation"):(oe=="word"&&qe(be),"parens")},nt.pseudo=function(oe,be,ce){return oe=="meta"?"pseudo":oe=="word"?(Oe="variable-3",ce.context.type):jt(oe,be,ce)},nt.documentTypes=function(oe,be,ce){return oe=="word"&&$.hasOwnProperty(be.current())?(Oe="tag",ce.context.type):nt.atBlock(oe,be,ce)},nt.atBlock=function(oe,be,ce){if(oe=="(")return Ze(ce,be,"atBlock_parens");if(oe=="}"||oe==";")return qt(oe,be,ce);if(oe=="{")return kt(ce)&&Ze(ce,be,lt?"block":"top");if(oe=="interpolation")return Ze(ce,be,"interpolation");if(oe=="word"){var Qe=be.current().toLowerCase();Qe=="only"||Qe=="not"||Qe=="and"||Qe=="or"?Oe="keyword":ve.hasOwnProperty(Qe)?Oe="attribute":se.hasOwnProperty(Qe)?Oe="property":q.hasOwnProperty(Qe)?Oe="keyword":Q.hasOwnProperty(Qe)?Oe="property":he.hasOwnProperty(Qe)?Oe=Ue?"string-2":"property":wt.hasOwnProperty(Qe)?Oe="atom":Ve.hasOwnProperty(Qe)?Oe="keyword":Oe="error"}return ce.context.type},nt.atComponentBlock=function(oe,be,ce){return oe=="}"?qt(oe,be,ce):oe=="{"?kt(ce)&&Ze(ce,be,lt?"block":"top",!1):(oe=="word"&&(Oe="error"),ce.context.type)},nt.atBlock_parens=function(oe,be,ce){return oe==")"?kt(ce):oe=="{"||oe=="}"?qt(oe,be,ce,2):nt.atBlock(oe,be,ce)},nt.restricted_atBlock_before=function(oe,be,ce){return oe=="{"?Ze(ce,be,"restricted_atBlock"):oe=="word"&&ce.stateArg=="@counter-style"?(Oe="variable","restricted_atBlock_before"):jt(oe,be,ce)},nt.restricted_atBlock=function(oe,be,ce){return oe=="}"?(ce.stateArg=null,kt(ce)):oe=="word"?(ce.stateArg=="@font-face"&&!Ae.hasOwnProperty(be.current().toLowerCase())||ce.stateArg=="@counter-style"&&!Ye.hasOwnProperty(be.current().toLowerCase())?Oe="error":Oe="property","maybeprop"):"restricted_atBlock"},nt.keyframes=function(oe,be,ce){return oe=="word"?(Oe="variable","keyframes"):oe=="{"?Ze(ce,be,"top"):jt(oe,be,ce)},nt.at=function(oe,be,ce){return oe==";"?kt(ce):oe=="{"||oe=="}"?qt(oe,be,ce):(oe=="word"?Oe="tag":oe=="hash"&&(Oe="builtin"),"at")},nt.interpolation=function(oe,be,ce){return oe=="}"?kt(ce):oe=="{"||oe==";"?qt(oe,be,ce):(oe=="word"?Oe="variable":oe!="variable"&&oe!="("&&oe!=")"&&(Oe="error"),"interpolation")},{startState:function(oe){return{tokenize:null,state:ge?"block":"top",stateArg:null,context:new At(ge?"block":"top",oe||0,null)}},token:function(oe,be){if(!be.tokenize&&oe.eatSpace())return null;var ce=(be.tokenize||Pt)(oe,be);return ce&&typeof ce=="object"&&(Ge=ce[1],ce=ce[0]),Oe=ce,Ge!="comment"&&(be.state=nt[be.state](Ge,oe,be)),Oe},indent:function(oe,be){var ce=oe.context,Qe=be&&be.charAt(0),$e=ce.indent;return ce.type=="prop"&&(Qe=="}"||Qe==")")&&(ce=ce.prev),ce.prev&&(Qe=="}"&&(ce.type=="block"||ce.type=="top"||ce.type=="interpolation"||ce.type=="restricted_atBlock")?(ce=ce.prev,$e=ce.indent):(Qe==")"&&(ce.type=="parens"||ce.type=="atBlock_parens")||Qe=="{"&&(ce.type=="at"||ce.type=="atBlock"))&&($e=Math.max(0,ce.indent-Z))),$e},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:We,fold:"brace"}});function r(ee){for(var ne={},ge=0;ge<ee.length;++ge)ne[ee[ge].toLowerCase()]=!0;return ne}var i=["domain","regexp","url","url-prefix"],o=r(i),c=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=r(c),m=["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","prefers-color-scheme","dynamic-range","video-dynamic-range"],x=r(m),S=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],A=r(S),T=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","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","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","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","contain","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-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","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-variation-settings","font-weight","gap","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","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","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","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","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","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","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-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","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","writing-mode","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","paint-order","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"],D=r(T),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],U=r(E),V=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],I=r(V),W=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],K=r(W),G=["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","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","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","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","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","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],re=r(G),ue=["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","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","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","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","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","drop-shadow","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","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","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","hue-rotate","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","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","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","pinch-zoom","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","repeating-conic-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","saturate","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","sepia","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","stroke-box","sub","subpixel-antialiased","svg_masks","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","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","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"],ae=r(ue),j=i.concat(c).concat(m).concat(S).concat(T).concat(E).concat(G).concat(ue);e.registerHelper("hintWords","css",j);function B(ee,ne){for(var ge=!1,Z;(Z=ee.next())!=null;){if(ge&&Z=="/"){ne.tokenize=null;break}ge=Z=="*"}return["comment","comment"]}e.defineMIME("text/css",{documentTypes:o,mediaTypes:d,mediaFeatures:x,mediaValueKeywords:A,propertyKeywords:D,nonStandardPropertyKeywords:U,fontProperties:I,counterDescriptors:K,colorKeywords:re,valueKeywords:ae,tokenHooks:{"/":function(ee,ne){return ee.eat("*")?(ne.tokenize=B,B(ee,ne)):!1}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:x,mediaValueKeywords:A,propertyKeywords:D,nonStandardPropertyKeywords:U,colorKeywords:re,valueKeywords:ae,fontProperties:I,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ee,ne){return ee.eat("/")?(ee.skipToEnd(),["comment","comment"]):ee.eat("*")?(ne.tokenize=B,B(ee,ne)):["operator","operator"]},":":function(ee){return ee.match(/^\s*\{/,!1)?[null,null]:!1},$:function(ee){return ee.match(/^[\w-]+/),ee.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(ee){return ee.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:x,mediaValueKeywords:A,propertyKeywords:D,nonStandardPropertyKeywords:U,colorKeywords:re,valueKeywords:ae,fontProperties:I,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(ee,ne){return ee.eat("/")?(ee.skipToEnd(),["comment","comment"]):ee.eat("*")?(ne.tokenize=B,B(ee,ne)):["operator","operator"]},"@":function(ee){return ee.eat("{")?[null,"interpolation"]:ee.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(ee.eatWhile(/[\w\\\-]/),ee.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:o,mediaTypes:d,mediaFeatures:x,propertyKeywords:D,nonStandardPropertyKeywords:U,fontProperties:I,counterDescriptors:K,colorKeywords:re,valueKeywords:ae,supportsAtComponent:!0,tokenHooks:{"/":function(ee,ne){return ee.eat("*")?(ne.tokenize=B,B(ee,ne)):!1}},name:"css",helperType:"gss"})})});var up=Mt((zd,Rd)=>{(function(e){typeof zd=="object"&&typeof Rd=="object"?e(Et(),sp(),lp(),Sf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],e):e(CodeMirror)})(function(e){"use strict";var r={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function i(A,T,D){var E=A.current(),U=E.search(T);return U>-1?A.backUp(E.length-U):E.match(/<\/?$/)&&(A.backUp(E.length),A.match(T,!1)||A.match(E)),D}var o={};function c(A){var T=o[A];return T||(o[A]=new RegExp("\\s+"+A+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(A,T){var D=A.match(c(T));return D?/^\s*(.*?)\s*$/.exec(D[2])[1]:""}function m(A,T){return new RegExp((T?"^":"")+"</\\s*"+A+"\\s*>","i")}function x(A,T){for(var D in A)for(var E=T[D]||(T[D]=[]),U=A[D],V=U.length-1;V>=0;V--)E.unshift(U[V])}function S(A,T){for(var D=0;D<A.length;D++){var E=A[D];if(!E[0]||E[1].test(d(T,E[0])))return E[2]}}e.defineMode("htmlmixed",function(A,T){var D=e.getMode(A,{name:"xml",htmlMode:!0,multilineTagIndentFactor:T.multilineTagIndentFactor,multilineTagIndentPastTag:T.multilineTagIndentPastTag,allowMissingTagName:T.allowMissingTagName}),E={},U=T&&T.tags,V=T&&T.scriptTypes;if(x(r,E),U&&x(U,E),V)for(var I=V.length-1;I>=0;I--)E.script.unshift(["type",V[I].matches,V[I].mode]);function W(K,G){var re=D.token(K,G.htmlState),ue=/\btag\b/.test(re),ae;if(ue&&!/[<>\s\/]/.test(K.current())&&(ae=G.htmlState.tagName&&G.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(ae))G.inTag=ae+" ";else if(G.inTag&&ue&&/>$/.test(K.current())){var j=/^([\S]+) (.*)/.exec(G.inTag);G.inTag=null;var B=K.current()==">"&&S(E[j[1]],j[2]),ee=e.getMode(A,B),ne=m(j[1],!0),ge=m(j[1],!1);G.token=function(Z,pe){return Z.match(ne,!1)?(pe.token=W,pe.localState=pe.localMode=null,null):i(Z,ge,pe.localMode.token(Z,pe.localState))},G.localMode=ee,G.localState=e.startState(ee,D.indent(G.htmlState,"",""))}else G.inTag&&(G.inTag+=K.current(),K.eol()&&(G.inTag+=" "));return re}return{startState:function(){var K=e.startState(D);return{token:W,inTag:null,localMode:null,localState:null,htmlState:K}},copyState:function(K){var G;return K.localState&&(G=e.copyState(K.localMode,K.localState)),{token:K.token,inTag:K.inTag,localMode:K.localMode,localState:G,htmlState:e.copyState(D,K.htmlState)}},token:function(K,G){return G.token(K,G)},indent:function(K,G,re){return!K.localMode||/^\s*<\//.test(G)?D.indent(K.htmlState,G,re):K.localMode.indent?K.localMode.indent(K.localState,G,re):e.Pass},innerMode:function(K){return{state:K.localState||K.htmlState,mode:K.localMode||D}}}},"xml","javascript","css"),e.defineMIME("text/html","htmlmixed")})});var Wd=Mt((jd,qd)=>{(function(e){typeof jd=="object"&&typeof qd=="object"?e(Et(),Sf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../css/css"],e):e(CodeMirror)})(function(e){"use strict";e.defineMode("sass",function(r){var i=e.mimeModes["text/css"],o=i.propertyKeywords||{},c=i.colorKeywords||{},d=i.valueKeywords||{},m=i.fontProperties||{};function x(B){return new RegExp("^"+B.join("|"))}var S=["true","false","null","auto"],A=new RegExp("^"+S.join("|")),T=["\\(","\\)","=",">","<","==",">=","<=","\\+","-","\\!=","/","\\*","%","and","or","not",";","\\{","\\}",":"],D=x(T),E=/^::?[a-zA-Z_][\w\-]*/,U;function V(B){return!B.peek()||B.match(/\s+$/,!1)}function I(B,ee){var ne=B.peek();return ne===")"?(B.next(),ee.tokenizer=ae,"operator"):ne==="("?(B.next(),B.eatSpace(),"operator"):ne==="'"||ne==='"'?(ee.tokenizer=K(B.next()),"string"):(ee.tokenizer=K(")",!1),"string")}function W(B,ee){return function(ne,ge){return ne.sol()&&ne.indentation()<=B?(ge.tokenizer=ae,ae(ne,ge)):(ee&&ne.skipTo("*/")?(ne.next(),ne.next(),ge.tokenizer=ae):ne.skipToEnd(),"comment")}}function K(B,ee){ee==null&&(ee=!0);function ne(ge,Z){var pe=ge.next(),$=ge.peek(),ve=ge.string.charAt(ge.pos-2),se=pe!=="\\"&&$===B||pe===B&&ve!=="\\";return se?(pe!==B&&ee&&ge.next(),V(ge)&&(Z.cursorHalf=0),Z.tokenizer=ae,"string"):pe==="#"&&$==="{"?(Z.tokenizer=G(ne),ge.next(),"operator"):"string"}return ne}function G(B){return function(ee,ne){return ee.peek()==="}"?(ee.next(),ne.tokenizer=B,"operator"):ae(ee,ne)}}function re(B){if(B.indentCount==0){B.indentCount++;var ee=B.scopes[0].offset,ne=ee+r.indentUnit;B.scopes.unshift({offset:ne})}}function ue(B){B.scopes.length!=1&&B.scopes.shift()}function ae(B,ee){var ne=B.peek();if(B.match("/*"))return ee.tokenizer=W(B.indentation(),!0),ee.tokenizer(B,ee);if(B.match("//"))return ee.tokenizer=W(B.indentation(),!1),ee.tokenizer(B,ee);if(B.match("#{"))return ee.tokenizer=G(ae),"operator";if(ne==='"'||ne==="'")return B.next(),ee.tokenizer=K(ne),"string";if(ee.cursorHalf){if(ne==="#"&&(B.next(),B.match(/[0-9a-fA-F]{6}|[0-9a-fA-F]{3}/))||B.match(/^-?[0-9\.]+/))return V(B)&&(ee.cursorHalf=0),"number";if(B.match(/^(px|em|in)\b/))return V(B)&&(ee.cursorHalf=0),"unit";if(B.match(A))return V(B)&&(ee.cursorHalf=0),"keyword";if(B.match(/^url/)&&B.peek()==="(")return ee.tokenizer=I,V(B)&&(ee.cursorHalf=0),"atom";if(ne==="$")return B.next(),B.eatWhile(/[\w-]/),V(B)&&(ee.cursorHalf=0),"variable-2";if(ne==="!")return B.next(),ee.cursorHalf=0,B.match(/^[\w]+/)?"keyword":"operator";if(B.match(D))return V(B)&&(ee.cursorHalf=0),"operator";if(B.eatWhile(/[\w-]/))return V(B)&&(ee.cursorHalf=0),U=B.current().toLowerCase(),d.hasOwnProperty(U)?"atom":c.hasOwnProperty(U)?"keyword":o.hasOwnProperty(U)?(ee.prevProp=B.current().toLowerCase(),"property"):"tag";if(V(B))return ee.cursorHalf=0,null}else{if(ne==="-"&&B.match(/^-\w+-/))return"meta";if(ne==="."){if(B.next(),B.match(/^[\w-]+/))return re(ee),"qualifier";if(B.peek()==="#")return re(ee),"tag"}if(ne==="#"){if(B.next(),B.match(/^[\w-]+/))return re(ee),"builtin";if(B.peek()==="#")return re(ee),"tag"}if(ne==="$")return B.next(),B.eatWhile(/[\w-]/),"variable-2";if(B.match(/^-?[0-9\.]+/))return"number";if(B.match(/^(px|em|in)\b/))return"unit";if(B.match(A))return"keyword";if(B.match(/^url/)&&B.peek()==="(")return ee.tokenizer=I,"atom";if(ne==="="&&B.match(/^=[\w-]+/))return re(ee),"meta";if(ne==="+"&&B.match(/^\+[\w-]+/))return"variable-3";if(ne==="@"&&B.match("@extend")&&(B.match(/\s*[\w]/)||ue(ee)),B.match(/^@(else if|if|media|else|for|each|while|mixin|function)/))return re(ee),"def";if(ne==="@")return B.next(),B.eatWhile(/[\w-]/),"def";if(B.eatWhile(/[\w-]/))if(B.match(/ *: *[\w-\+\$#!\("']/,!1)){U=B.current().toLowerCase();var ge=ee.prevProp+"-"+U;return o.hasOwnProperty(ge)?"property":o.hasOwnProperty(U)?(ee.prevProp=U,"property"):m.hasOwnProperty(U)?"property":"tag"}else return B.match(/ *:/,!1)?(re(ee),ee.cursorHalf=1,ee.prevProp=B.current().toLowerCase(),"property"):(B.match(/ *,/,!1)||re(ee),"tag");if(ne===":")return B.match(E)?"variable-3":(B.next(),ee.cursorHalf=1,"operator")}return B.match(D)?"operator":(B.next(),null)}function j(B,ee){B.sol()&&(ee.indentCount=0);var ne=ee.tokenizer(B,ee),ge=B.current();if((ge==="@return"||ge==="}")&&ue(ee),ne!==null){for(var Z=B.pos-ge.length,pe=Z+r.indentUnit*ee.indentCount,$=[],ve=0;ve<ee.scopes.length;ve++){var se=ee.scopes[ve];se.offset<=pe&&$.push(se)}ee.scopes=$}return ne}return{startState:function(){return{tokenizer:ae,scopes:[{offset:0,type:"sass"}],indentCount:0,cursorHalf:0,definedVars:[],definedMixins:[]}},token:function(B,ee){var ne=j(B,ee);return ee.lastToken={style:ne,content:B.current()},ne},indent:function(B){return B.scopes[0].offset},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"indent"}},"css"),e.defineMIME("text/x-sass","sass")})});var fp=Mt((Bd,Hd)=>{(function(e){typeof Bd=="object"&&typeof Hd=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";function r(q,Q,he,Ae,Ye,Ve){this.indented=q,this.column=Q,this.type=he,this.info=Ae,this.align=Ye,this.prev=Ve}function i(q,Q,he,Ae){var Ye=q.indented;return q.context&&q.context.type=="statement"&&he!="statement"&&(Ye=q.context.indented),q.context=new r(Ye,Q,he,Ae,null,q.context)}function o(q){var Q=q.context.type;return(Q==")"||Q=="]"||Q=="}")&&(q.indented=q.context.indented),q.context=q.context.prev}function c(q,Q,he){if(Q.prevToken=="variable"||Q.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(q.string.slice(0,he))||Q.typeAtEndOfLine&&q.column()==q.indentation())return!0}function d(q){for(;;){if(!q||q.type=="top")return!0;if(q.type=="}"&&q.prev.info!="namespace")return!1;q=q.prev}}e.defineMode("clike",function(q,Q){var he=q.indentUnit,Ae=Q.statementIndentUnit||he,Ye=Q.dontAlignCalls,Ve=Q.keywords||{},wt=Q.types||{},lt=Q.builtin||{},We=Q.blockKeywords||{},Ee=Q.defKeywords||{},Ue=Q.atoms||{},Ge=Q.hooks||{},Oe=Q.multiLineStrings,Pe=Q.indentStatements!==!1,Pt=Q.indentSwitch!==!1,ut=Q.namespaceSeparator,at=Q.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,At=Q.numberStart||/[\d\.]/,Ze=Q.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,kt=Q.isOperatorChar||/[+\-*&%=<>!?|\/]/,jt=Q.isIdentifierChar||/[\w\$_\xa1-\uffff]/,qt=Q.isReservedIdentifier||!1,qe,nt;function oe($e,Re){var Me=$e.next();if(Ge[Me]){var Fe=Ge[Me]($e,Re);if(Fe!==!1)return Fe}if(Me=='"'||Me=="'")return Re.tokenize=be(Me),Re.tokenize($e,Re);if(At.test(Me)){if($e.backUp(1),$e.match(Ze))return"number";$e.next()}if(at.test(Me))return qe=Me,null;if(Me=="/"){if($e.eat("*"))return Re.tokenize=ce,ce($e,Re);if($e.eat("/"))return $e.skipToEnd(),"comment"}if(kt.test(Me)){for(;!$e.match(/^\/[\/*]/,!1)&&$e.eat(kt););return"operator"}if($e.eatWhile(jt),ut)for(;$e.match(ut);)$e.eatWhile(jt);var Be=$e.current();return x(Ve,Be)?(x(We,Be)&&(qe="newstatement"),x(Ee,Be)&&(nt=!0),"keyword"):x(wt,Be)?"type":x(lt,Be)||qt&&qt(Be)?(x(We,Be)&&(qe="newstatement"),"builtin"):x(Ue,Be)?"atom":"variable"}function be($e){return function(Re,Me){for(var Fe=!1,Be,ht=!1;(Be=Re.next())!=null;){if(Be==$e&&!Fe){ht=!0;break}Fe=!Fe&&Be=="\\"}return(ht||!(Fe||Oe))&&(Me.tokenize=null),"string"}}function ce($e,Re){for(var Me=!1,Fe;Fe=$e.next();){if(Fe=="/"&&Me){Re.tokenize=null;break}Me=Fe=="*"}return"comment"}function Qe($e,Re){Q.typeFirstDefinitions&&$e.eol()&&d(Re.context)&&(Re.typeAtEndOfLine=c($e,Re,$e.pos))}return{startState:function($e){return{tokenize:null,context:new r(($e||0)-he,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function($e,Re){var Me=Re.context;if($e.sol()&&(Me.align==null&&(Me.align=!1),Re.indented=$e.indentation(),Re.startOfLine=!0),$e.eatSpace())return Qe($e,Re),null;qe=nt=null;var Fe=(Re.tokenize||oe)($e,Re);if(Fe=="comment"||Fe=="meta")return Fe;if(Me.align==null&&(Me.align=!0),qe==";"||qe==":"||qe==","&&$e.match(/^\s*(?:\/\/.*)?$/,!1))for(;Re.context.type=="statement";)o(Re);else if(qe=="{")i(Re,$e.column(),"}");else if(qe=="[")i(Re,$e.column(),"]");else if(qe=="(")i(Re,$e.column(),")");else if(qe=="}"){for(;Me.type=="statement";)Me=o(Re);for(Me.type=="}"&&(Me=o(Re));Me.type=="statement";)Me=o(Re)}else qe==Me.type?o(Re):Pe&&((Me.type=="}"||Me.type=="top")&&qe!=";"||Me.type=="statement"&&qe=="newstatement")&&i(Re,$e.column(),"statement",$e.current());if(Fe=="variable"&&(Re.prevToken=="def"||Q.typeFirstDefinitions&&c($e,Re,$e.start)&&d(Re.context)&&$e.match(/^\s*\(/,!1))&&(Fe="def"),Ge.token){var Be=Ge.token($e,Re,Fe);Be!==void 0&&(Fe=Be)}return Fe=="def"&&Q.styleDefs===!1&&(Fe="variable"),Re.startOfLine=!1,Re.prevToken=nt?"def":Fe||qe,Qe($e,Re),Fe},indent:function($e,Re){if($e.tokenize!=oe&&$e.tokenize!=null||$e.typeAtEndOfLine&&d($e.context))return e.Pass;var Me=$e.context,Fe=Re&&Re.charAt(0),Be=Fe==Me.type;if(Me.type=="statement"&&Fe=="}"&&(Me=Me.prev),Q.dontIndentStatements)for(;Me.type=="statement"&&Q.dontIndentStatements.test(Me.info);)Me=Me.prev;if(Ge.indent){var ht=Ge.indent($e,Me,Re,he);if(typeof ht=="number")return ht}var Wt=Me.prev&&Me.prev.info=="switch";if(Q.allmanIndentation&&/[{(]/.test(Fe)){for(;Me.type!="top"&&Me.type!="}";)Me=Me.prev;return Me.indented}return Me.type=="statement"?Me.indented+(Fe=="{"?0:Ae):Me.align&&(!Ye||Me.type!=")")?Me.column+(Be?0:1):Me.type==")"&&!Be?Me.indented+Ae:Me.indented+(Be?0:he)+(!Be&&Wt&&!/^(?:case|default)\b/.test(Re)?he:0)},electricInput:Pt?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function m(q){for(var Q={},he=q.split(" "),Ae=0;Ae<he.length;++Ae)Q[he[Ae]]=!0;return Q}function x(q,Q){return typeof q=="function"?q(Q):q.propertyIsEnumerable(Q)}var S="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",A="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",T="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",D="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",E=m("int long char short double float unsigned signed void bool"),U=m("SEL instancetype id Class Protocol BOOL");function V(q){return x(E,q)||/.+_t$/.test(q)}function I(q){return V(q)||x(U,q)}var W="case do else for if switch while struct enum union",K="struct enum union";function G(q,Q){if(!Q.startOfLine)return!1;for(var he,Ae=null;he=q.peek();){if(he=="\\"&&q.match(/^.$/)){Ae=G;break}else if(he=="/"&&q.match(/^\/[\/\*]/,!1))break;q.next()}return Q.tokenize=Ae,"meta"}function re(q,Q){return Q.prevToken=="type"?"type":!1}function ue(q){return!q||q.length<2||q[0]!="_"?!1:q[1]=="_"||q[1]!==q[1].toLowerCase()}function ae(q){return q.eatWhile(/[\w\.']/),"number"}function j(q,Q){if(q.backUp(1),q.match(/^(?:R|u8R|uR|UR|LR)/)){var he=q.match(/^"([^\s\\()]{0,16})\(/);return he?(Q.cpp11RawStringDelim=he[1],Q.tokenize=ne,ne(q,Q)):!1}return q.match(/^(?:u8|u|U|L)/)?q.match(/^["']/,!1)?"string":!1:(q.next(),!1)}function B(q){var Q=/(\w+)::~?(\w+)$/.exec(q);return Q&&Q[1]==Q[2]}function ee(q,Q){for(var he;(he=q.next())!=null;)if(he=='"'&&!q.eat('"')){Q.tokenize=null;break}return"string"}function ne(q,Q){var he=Q.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),Ae=q.match(new RegExp(".*?\\)"+he+'"'));return Ae?Q.tokenize=null:q.skipToEnd(),"string"}function ge(q,Q){typeof q=="string"&&(q=[q]);var he=[];function Ae(Ve){if(Ve)for(var wt in Ve)Ve.hasOwnProperty(wt)&&he.push(wt)}Ae(Q.keywords),Ae(Q.types),Ae(Q.builtin),Ae(Q.atoms),he.length&&(Q.helperType=q[0],e.registerHelper("hintWords",q[0],he));for(var Ye=0;Ye<q.length;++Ye)e.defineMIME(q[Ye],Q)}ge(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:m(S),types:V,blockKeywords:m(W),defKeywords:m(K),typeFirstDefinitions:!0,atoms:m("NULL true false"),isReservedIdentifier:ue,hooks:{"#":G,"*":re},modeProps:{fold:["brace","include"]}}),ge(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:m(S+" "+A),types:V,blockKeywords:m(W+" class try catch"),defKeywords:m(K+" class namespace"),typeFirstDefinitions:!0,atoms:m("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:ue,hooks:{"#":G,"*":re,u:j,U:j,L:j,R:j,0:ae,1:ae,2:ae,3:ae,4:ae,5:ae,6:ae,7:ae,8:ae,9:ae,token:function(q,Q,he){if(he=="variable"&&q.peek()=="("&&(Q.prevToken==";"||Q.prevToken==null||Q.prevToken=="}")&&B(q.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),ge("text/x-java",{name:"clike",keywords:m("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:m("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:m("catch class do else finally for if switch try while"),defKeywords:m("class interface enum @interface"),typeFirstDefinitions:!0,atoms:m("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(q){return q.match("interface",!1)?!1:(q.eatWhile(/[\w\$_]/),"meta")},'"':function(q,Q){return q.match(/""$/)?(Q.tokenize=Z,Q.tokenize(q,Q)):!1}},modeProps:{fold:["brace","import"]}}),ge("text/x-csharp",{name:"clike",keywords:m("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 init interface internal is lock namespace new operator out override params private protected public readonly record ref required 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:m("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:m("catch class do else finally for foreach if struct switch try while"),defKeywords:m("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"@":function(q,Q){return q.eat('"')?(Q.tokenize=ee,ee(q,Q)):(q.eatWhile(/[\w\$_]/),"meta")}}});function Z(q,Q){for(var he=!1;!q.eol();){if(!he&&q.match('"""')){Q.tokenize=null;break}he=q.next()=="\\"&&!he}return"string"}function pe(q){return function(Q,he){for(var Ae;Ae=Q.next();)if(Ae=="*"&&Q.eat("/"))if(q==1){he.tokenize=null;break}else return he.tokenize=pe(q-1),he.tokenize(Q,he);else if(Ae=="/"&&Q.eat("*"))return he.tokenize=pe(q+1),he.tokenize(Q,he);return"comment"}}ge("text/x-scala",{name:"clike",keywords:m("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:m("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:m("catch class enum do else finally for forSome if match switch try while"),defKeywords:m("class enum def object package trait type val var"),atoms:m("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(q){return q.eatWhile(/[\w\$_]/),"meta"},'"':function(q,Q){return q.match('""')?(Q.tokenize=Z,Q.tokenize(q,Q)):!1},"'":function(q){return q.match(/^(\\[^'\s]+|[^\\'])'/)?"string-2":(q.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(q,Q){var he=Q.context;return he.type=="}"&&he.align&&q.eat(">")?(Q.context=new r(he.indented,he.column,he.type,he.info,null,he.prev),"operator"):!1},"/":function(q,Q){return q.eat("*")?(Q.tokenize=pe(1),Q.tokenize(q,Q)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function $(q){return function(Q,he){for(var Ae=!1,Ye,Ve=!1;!Q.eol();){if(!q&&!Ae&&Q.match('"')){Ve=!0;break}if(q&&Q.match('"""')){Ve=!0;break}Ye=Q.next(),!Ae&&Ye=="$"&&Q.match("{")&&Q.skipTo("}"),Ae=!Ae&&Ye=="\\"&&!q}return(Ve||!q)&&(he.tokenize=null),"string"}}ge("text/x-kotlin",{name:"clike",keywords:m("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 value"),types:m("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"),indentSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(ul?|l|f)?/i,blockKeywords:m("catch class do else finally for if where try while enum"),defKeywords:m("class val var object interface fun"),atoms:m("true false null this"),hooks:{"@":function(q){return q.eatWhile(/[\w\$_]/),"meta"},"*":function(q,Q){return Q.prevToken=="."?"variable":"operator"},'"':function(q,Q){return Q.tokenize=$(q.match('""')),Q.tokenize(q,Q)},"/":function(q,Q){return q.eat("*")?(Q.tokenize=pe(1),Q.tokenize(q,Q)):!1},indent:function(q,Q,he,Ae){var Ye=he&&he.charAt(0);if((q.prevToken=="}"||q.prevToken==")")&&he=="")return q.indented;if(q.prevToken=="operator"&&he!="}"&&q.context.type!="}"||q.prevToken=="variable"&&Ye=="."||(q.prevToken=="}"||q.prevToken==")")&&Ye==".")return Ae*2+Q.indented;if(Q.align&&Q.type=="}")return Q.indented+(q.context.type==(he||"").charAt(0)?0:Ae)}},modeProps:{closeBrackets:{triples:'"'}}}),ge(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:m("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:m("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:m("for while do if else struct"),builtin:m("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:m("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_TextureMatrixTranspose 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:{"#":G},modeProps:{fold:["brace","include"]}}),ge("text/x-nesc",{name:"clike",keywords:m(S+" 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:V,blockKeywords:m(W),atoms:m("null true false"),hooks:{"#":G},modeProps:{fold:["brace","include"]}}),ge("text/x-objectivec",{name:"clike",keywords:m(S+" "+T),types:I,builtin:m(D),blockKeywords:m(W+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:m(K+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:ue,hooks:{"#":G,"*":re},modeProps:{fold:["brace","include"]}}),ge("text/x-objectivec++",{name:"clike",keywords:m(S+" "+T+" "+A),types:I,builtin:m(D),blockKeywords:m(W+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:m(K+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:m("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:ue,hooks:{"#":G,"*":re,u:j,U:j,L:j,R:j,0:ae,1:ae,2:ae,3:ae,4:ae,5:ae,6:ae,7:ae,8:ae,9:ae,token:function(q,Q,he){if(he=="variable"&&q.peek()=="("&&(Q.prevToken==";"||Q.prevToken==null||Q.prevToken=="}")&&B(q.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),ge("text/x-squirrel",{name:"clike",keywords:m("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:V,blockKeywords:m("case catch class else for foreach if switch try while"),defKeywords:m("function local class"),typeFirstDefinitions:!0,atoms:m("true false null"),hooks:{"#":G},modeProps:{fold:["brace","include"]}});var ve=null;function se(q){return function(Q,he){for(var Ae=!1,Ye,Ve=!1;!Q.eol();){if(!Ae&&Q.match('"')&&(q=="single"||Q.match('""'))){Ve=!0;break}if(!Ae&&Q.match("``")){ve=se(q),Ve=!0;break}Ye=Q.next(),Ae=q=="single"&&!Ae&&Ye=="\\"}return Ve&&(he.tokenize=null),"string"}}ge("text/x-ceylon",{name:"clike",keywords:m("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(q){var Q=q.charAt(0);return Q===Q.toUpperCase()&&Q!==Q.toLowerCase()},blockKeywords:m("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:m("class dynamic function interface module object package value"),builtin:m("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:m("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(q){return q.eatWhile(/[\w\$_]/),"meta"},'"':function(q,Q){return Q.tokenize=se(q.match('""')?"triple":"single"),Q.tokenize(q,Q)},"`":function(q,Q){return!ve||!q.match("`")?!1:(Q.tokenize=ve,ve=null,Q.tokenize(q,Q))},"'":function(q){return q.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(q,Q,he){if((he=="variable"||he=="type")&&Q.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var Vd=Mt((Ud,Kd)=>{(function(e){typeof Ud=="object"&&typeof Kd=="object"?e(Et(),up(),fp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)})(function(e){"use strict";function r(A){for(var T={},D=A.split(" "),E=0;E<D.length;++E)T[D[E]]=!0;return T}function i(A,T,D){return A.length==0?o(T):function(E,U){for(var V=A[0],I=0;I<V.length;I++)if(E.match(V[I][0]))return U.tokenize=i(A.slice(1),T),V[I][1];return U.tokenize=o(T,D),"string"}}function o(A,T){return function(D,E){return c(D,E,A,T)}}function c(A,T,D,E){if(E!==!1&&A.match("${",!1)||A.match("{$",!1))return T.tokenize=null,"string";if(E!==!1&&A.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return A.match("[",!1)&&(T.tokenize=i([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],D,E)),A.match(/^->\w/,!1)&&(T.tokenize=i([[["->",null]],[[/[\w]+/,"variable"]]],D,E)),"variable-2";for(var U=!1;!A.eol()&&(U||E===!1||!A.match("{$",!1)&&!A.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!U&&A.match(D)){T.tokenize=null,T.tokStack.pop(),T.tokStack.pop();break}U=A.next()=="\\"&&!U}return"string"}var d="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile enum 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 readonly match",m="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",x="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 memory_get_peak_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[d,m,x].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var S={name:"clike",helperType:"php",keywords:r(d),blockKeywords:r("catch do else elseif for foreach if switch try while finally"),defKeywords:r("class enum function interface namespace trait"),atoms:r(m),builtin:r(x),multiLineStrings:!0,hooks:{$:function(A){return A.eatWhile(/[\w\$_]/),"variable-2"},"<":function(A,T){var D;if(D=A.match(/^<<\s*/)){var E=A.eat(/['"]/);A.eatWhile(/[\w\.]/);var U=A.current().slice(D[0].length+(E?2:1));if(E&&A.eat(E),U)return(T.tokStack||(T.tokStack=[])).push(U,0),T.tokenize=o(U,E!="'"),"string"}return!1},"#":function(A){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"},"/":function(A){if(A.eat("/")){for(;!A.eol()&&!A.match("?>",!1);)A.next();return"comment"}return!1},'"':function(A,T){return(T.tokStack||(T.tokStack=[])).push('"',0),T.tokenize=o('"'),"string"},"{":function(A,T){return T.tokStack&&T.tokStack.length&&T.tokStack[T.tokStack.length-1]++,!1},"}":function(A,T){return T.tokStack&&T.tokStack.length>0&&!--T.tokStack[T.tokStack.length-1]&&(T.tokenize=o(T.tokStack[T.tokStack.length-2])),!1}}};e.defineMode("php",function(A,T){var D=e.getMode(A,T&&T.htmlMode||"text/html"),E=e.getMode(A,S);function U(V,I){var W=I.curMode==E;if(V.sol()&&I.pending&&I.pending!='"'&&I.pending!="'"&&(I.pending=null),W)return W&&I.php.tokenize==null&&V.match("?>")?(I.curMode=D,I.curState=I.html,I.php.context.prev||(I.php=null),"meta"):E.token(V,I.curState);if(V.match(/^<\?\w*/))return I.curMode=E,I.php||(I.php=e.startState(E,D.indent(I.html,"",""))),I.curState=I.php,"meta";if(I.pending=='"'||I.pending=="'"){for(;!V.eol()&&V.next()!=I.pending;);var K="string"}else if(I.pending&&V.pos<I.pending.end){V.pos=I.pending.end;var K=I.pending.style}else var K=D.token(V,I.curState);I.pending&&(I.pending=null);var G=V.current(),re=G.search(/<\?/),ue;return re!=-1&&(K=="string"&&(ue=G.match(/[\'\"]$/))&&!/\?>/.test(G)?I.pending=ue[0]:I.pending={end:V.pos,style:K},V.backUp(G.length-re)),K}return{startState:function(){var V=e.startState(D),I=T.startOpen?e.startState(E):null;return{html:V,php:I,curMode:T.startOpen?E:D,curState:T.startOpen?I:V,pending:null}},copyState:function(V){var I=V.html,W=e.copyState(D,I),K=V.php,G=K&&e.copyState(E,K),re;return V.curMode==D?re=W:re=G,{html:W,php:G,curMode:V.curMode,curState:re,pending:V.pending}},token:U,indent:function(V,I,W){return V.curMode!=E&&/^\s*<\//.test(I)||V.curMode==E&&/^\?>/.test(I)?D.indent(V.html,I,W):V.curMode.indent(V.curState,I,W)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(V){return{state:V.curState,mode:V.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",S)})});var Xd=Mt((Gd,Qd)=>{(function(e){typeof Gd=="object"&&typeof Qd=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("autoRefresh",!1,function(o,c){o.state.autoRefresh&&(i(o,o.state.autoRefresh),o.state.autoRefresh=null),c&&o.display.wrapper.offsetHeight==0&&r(o,o.state.autoRefresh={delay:c.delay||250})});function r(o,c){function d(){o.display.wrapper.offsetHeight?(i(o,c),o.display.lastWrapHeight!=o.display.wrapper.clientHeight&&o.refresh()):c.timeout=setTimeout(d,c.delay)}c.timeout=setTimeout(d,c.delay),c.hurry=function(){clearTimeout(c.timeout),c.timeout=setTimeout(d,50)},e.on(window,"mouseup",c.hurry),e.on(window,"keyup",c.hurry)}function i(o,c){clearTimeout(c.timeout),e.off(window,"mouseup",c.hurry),e.off(window,"keyup",c.hurry)}})});var Jd=Mt((Yd,Zd)=>{(function(e){typeof Yd=="object"&&typeof Zd=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){e.defineOption("placeholder","",function(x,S,A){var T=A&&A!=e.Init;if(S&&!T)x.on("blur",c),x.on("change",d),x.on("swapDoc",d),e.on(x.getInputField(),"compositionupdate",x.state.placeholderCompose=function(){o(x)}),d(x);else if(!S&&T){x.off("blur",c),x.off("change",d),x.off("swapDoc",d),e.off(x.getInputField(),"compositionupdate",x.state.placeholderCompose),r(x);var D=x.getWrapperElement();D.className=D.className.replace(" CodeMirror-empty","")}S&&!x.hasFocus()&&c(x)});function r(x){x.state.placeholder&&(x.state.placeholder.parentNode.removeChild(x.state.placeholder),x.state.placeholder=null)}function i(x){r(x);var S=x.state.placeholder=document.createElement("pre");S.style.cssText="height: 0; overflow: visible",S.style.direction=x.getOption("direction"),S.className="CodeMirror-placeholder CodeMirror-line-like";var A=x.getOption("placeholder");typeof A=="string"&&(A=document.createTextNode(A)),S.appendChild(A),x.display.lineSpace.insertBefore(S,x.display.lineSpace.firstChild)}function o(x){setTimeout(function(){var S=!1;if(x.lineCount()==1){var A=x.getInputField();S=A.nodeName=="TEXTAREA"?!x.getLine(0).length:!/[^\u200b]/.test(A.querySelector(".CodeMirror-line").textContent)}S?i(x):r(x)},20)}function c(x){m(x)&&i(x)}function d(x){var S=x.getWrapperElement(),A=m(x);S.className=S.className.replace(" CodeMirror-empty","")+(A?" CodeMirror-empty":""),A?i(x):r(x)}function m(x){return x.lineCount()===1&&x.getLine(0)===""}})});var rh=Mt((eh,th)=>{(function(e){typeof eh=="object"&&typeof th=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var r="CodeMirror-activeline",i="CodeMirror-activeline-background",o="CodeMirror-activeline-gutter";e.defineOption("styleActiveLine",!1,function(S,A,T){var D=T==e.Init?!1:T;A!=D&&(D&&(S.off("beforeSelectionChange",x),c(S),delete S.state.activeLines),A&&(S.state.activeLines=[],m(S,S.listSelections()),S.on("beforeSelectionChange",x)))});function c(S){for(var A=0;A<S.state.activeLines.length;A++)S.removeLineClass(S.state.activeLines[A],"wrap",r),S.removeLineClass(S.state.activeLines[A],"background",i),S.removeLineClass(S.state.activeLines[A],"gutter",o)}function d(S,A){if(S.length!=A.length)return!1;for(var T=0;T<S.length;T++)if(S[T]!=A[T])return!1;return!0}function m(S,A){for(var T=[],D=0;D<A.length;D++){var E=A[D],U=S.getOption("styleActiveLine");if(!(typeof U=="object"&&U.nonEmpty?E.anchor.line!=E.head.line:!E.empty())){var V=S.getLineHandleVisualStart(E.head.line);T[T.length-1]!=V&&T.push(V)}}d(S.state.activeLines,T)||S.operation(function(){c(S);for(var I=0;I<T.length;I++)S.addLineClass(T[I],"wrap",r),S.addLineClass(T[I],"background",i),S.addLineClass(T[I],"gutter",o);S.state.activeLines=T})}function x(S,A){m(S,A.ranges)}})});var oh=Mt((nh,ih)=>{(function(e){typeof nh=="object"&&typeof ih=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var r={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},i=e.Pos;e.defineOption("autoCloseBrackets",!1,function(I,W,K){K&&K!=e.Init&&(I.removeKeyMap(c),I.state.closeBrackets=null),W&&(d(o(W,"pairs")),I.state.closeBrackets=W,I.addKeyMap(c))});function o(I,W){return W=="pairs"&&typeof I=="string"?I:typeof I=="object"&&I[W]!=null?I[W]:r[W]}var c={Backspace:S,Enter:A};function d(I){for(var W=0;W<I.length;W++){var K=I.charAt(W),G="'"+K+"'";c[G]||(c[G]=m(K))}}d(r.pairs+"`");function m(I){return function(W){return E(W,I)}}function x(I){var W=I.state.closeBrackets;if(!W||W.override)return W;var K=I.getModeAt(I.getCursor());return K.closeBrackets||W}function S(I){var W=x(I);if(!W||I.getOption("disableInput"))return e.Pass;for(var K=o(W,"pairs"),G=I.listSelections(),re=0;re<G.length;re++){if(!G[re].empty())return e.Pass;var ue=U(I,G[re].head);if(!ue||K.indexOf(ue)%2!=0)return e.Pass}for(var re=G.length-1;re>=0;re--){var ae=G[re].head;I.replaceRange("",i(ae.line,ae.ch-1),i(ae.line,ae.ch+1),"+delete")}}function A(I){var W=x(I),K=W&&o(W,"explode");if(!K||I.getOption("disableInput"))return e.Pass;for(var G=I.listSelections(),re=0;re<G.length;re++){if(!G[re].empty())return e.Pass;var ue=U(I,G[re].head);if(!ue||K.indexOf(ue)%2!=0)return e.Pass}I.operation(function(){var ae=I.lineSeparator()||`
`;I.replaceSelection(ae+ae,null),T(I,-1),G=I.listSelections();for(var j=0;j<G.length;j++){var B=G[j].head.line;I.indentLine(B,null,!0),I.indentLine(B+1,null,!0)}})}function T(I,W){for(var K=[],G=I.listSelections(),re=0,ue=0;ue<G.length;ue++){var ae=G[ue];ae.head==I.getCursor()&&(re=ue);var j=ae.head.ch||W>0?{line:ae.head.line,ch:ae.head.ch+W}:{line:ae.head.line-1};K.push({anchor:j,head:j})}I.setSelections(K,re)}function D(I){var W=e.cmpPos(I.anchor,I.head)>0;return{anchor:new i(I.anchor.line,I.anchor.ch+(W?-1:1)),head:new i(I.head.line,I.head.ch+(W?1:-1))}}function E(I,W){var K=x(I);if(!K||I.getOption("disableInput"))return e.Pass;var G=o(K,"pairs"),re=G.indexOf(W);if(re==-1)return e.Pass;for(var ue=o(K,"closeBefore"),ae=o(K,"triples"),j=G.charAt(re+1)==W,B=I.listSelections(),ee=re%2==0,ne,ge=0;ge<B.length;ge++){var Z=B[ge],pe=Z.head,$,ve=I.getRange(pe,i(pe.line,pe.ch+1));if(ee&&!Z.empty())$="surround";else if((j||!ee)&&ve==W)j&&V(I,pe)?$="both":ae.indexOf(W)>=0&&I.getRange(pe,i(pe.line,pe.ch+3))==W+W+W?$="skipThree":$="skip";else if(j&&pe.ch>1&&ae.indexOf(W)>=0&&I.getRange(i(pe.line,pe.ch-2),pe)==W+W){if(pe.ch>2&&/\bstring/.test(I.getTokenTypeAt(i(pe.line,pe.ch-2))))return e.Pass;$="addFour"}else if(j){var se=pe.ch==0?" ":I.getRange(i(pe.line,pe.ch-1),pe);if(!e.isWordChar(ve)&&se!=W&&!e.isWordChar(se))$="both";else return e.Pass}else if(ee&&(ve.length===0||/\s/.test(ve)||ue.indexOf(ve)>-1))$="both";else return e.Pass;if(!ne)ne=$;else if(ne!=$)return e.Pass}var q=re%2?G.charAt(re-1):W,Q=re%2?W:G.charAt(re+1);I.operation(function(){if(ne=="skip")T(I,1);else if(ne=="skipThree")T(I,3);else if(ne=="surround"){for(var he=I.getSelections(),Ae=0;Ae<he.length;Ae++)he[Ae]=q+he[Ae]+Q;I.replaceSelections(he,"around"),he=I.listSelections().slice();for(var Ae=0;Ae<he.length;Ae++)he[Ae]=D(he[Ae]);I.setSelections(he)}else ne=="both"?(I.replaceSelection(q+Q,null),I.triggerElectric(q+Q),T(I,-1)):ne=="addFour"&&(I.replaceSelection(q+q+q+q,"before"),T(I,1))})}function U(I,W){var K=I.getRange(i(W.line,W.ch-1),i(W.line,W.ch+1));return K.length==2?K:null}function V(I,W){var K=I.getTokenAt(i(W.line,W.ch+1));return/\bstring/.test(K.type)&&K.start==W.ch&&(W.ch==0||!/\bstring/.test(I.getTokenTypeAt(W)))}})});var lh=Mt((ah,sh)=>{(function(e){typeof ah=="object"&&typeof sh=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){var r=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),i=e.Pos,o={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function c(T){return T&&T.bracketRegex||/[(){}[\]]/}function d(T,D,E){var U=T.getLineHandle(D.line),V=D.ch-1,I=E&&E.afterCursor;I==null&&(I=/(^| )cm-fat-cursor($| )/.test(T.getWrapperElement().className));var W=c(E),K=!I&&V>=0&&W.test(U.text.charAt(V))&&o[U.text.charAt(V)]||W.test(U.text.charAt(V+1))&&o[U.text.charAt(++V)];if(!K)return null;var G=K.charAt(1)==">"?1:-1;if(E&&E.strict&&G>0!=(V==D.ch))return null;var re=T.getTokenTypeAt(i(D.line,V+1)),ue=m(T,i(D.line,V+(G>0?1:0)),G,re,E);return ue==null?null:{from:i(D.line,V),to:ue&&ue.pos,match:ue&&ue.ch==K.charAt(0),forward:G>0}}function m(T,D,E,U,V){for(var I=V&&V.maxScanLineLength||1e4,W=V&&V.maxScanLines||1e3,K=[],G=c(V),re=E>0?Math.min(D.line+W,T.lastLine()+1):Math.max(T.firstLine()-1,D.line-W),ue=D.line;ue!=re;ue+=E){var ae=T.getLine(ue);if(ae){var j=E>0?0:ae.length-1,B=E>0?ae.length:-1;if(!(ae.length>I))for(ue==D.line&&(j=D.ch-(E<0?1:0));j!=B;j+=E){var ee=ae.charAt(j);if(G.test(ee)&&(U===void 0||(T.getTokenTypeAt(i(ue,j+1))||"")==(U||""))){var ne=o[ee];if(ne&&ne.charAt(1)==">"==E>0)K.push(ee);else if(K.length)K.pop();else return{pos:i(ue,j),ch:ee}}}}}return ue-E==(E>0?T.lastLine():T.firstLine())?!1:null}function x(T,D,E){for(var U=T.state.matchBrackets.maxHighlightLineLength||1e3,V=E&&E.highlightNonMatching,I=[],W=T.listSelections(),K=0;K<W.length;K++){var G=W[K].empty()&&d(T,W[K].head,E);if(G&&(G.match||V!==!1)&&T.getLine(G.from.line).length<=U){var re=G.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";I.push(T.markText(G.from,i(G.from.line,G.from.ch+1),{className:re})),G.to&&T.getLine(G.to.line).length<=U&&I.push(T.markText(G.to,i(G.to.line,G.to.ch+1),{className:re}))}}if(I.length){r&&T.state.focused&&T.focus();var ue=function(){T.operation(function(){for(var ae=0;ae<I.length;ae++)I[ae].clear()})};if(D)setTimeout(ue,800);else return ue}}function S(T){T.operation(function(){T.state.matchBrackets.currentlyHighlighted&&(T.state.matchBrackets.currentlyHighlighted(),T.state.matchBrackets.currentlyHighlighted=null),T.state.matchBrackets.currentlyHighlighted=x(T,!1,T.state.matchBrackets)})}function A(T){T.state.matchBrackets&&T.state.matchBrackets.currentlyHighlighted&&(T.state.matchBrackets.currentlyHighlighted(),T.state.matchBrackets.currentlyHighlighted=null)}e.defineOption("matchBrackets",!1,function(T,D,E){E&&E!=e.Init&&(T.off("cursorActivity",S),T.off("focus",S),T.off("blur",A),A(T)),D&&(T.state.matchBrackets=typeof D=="object"?D:{},T.on("cursorActivity",S),T.on("focus",S),T.on("blur",A))}),e.defineExtension("matchBrackets",function(){x(this,!0)}),e.defineExtension("findMatchingBracket",function(T,D,E){return(E||typeof D=="boolean")&&(E?(E.strict=D,D=E):D=D?{strict:!0}:null),d(this,T,D)}),e.defineExtension("scanForBracket",function(T,D,E,U){return m(this,T,D,E,U)})})});var ch=Mt((uh,fh)=>{(function(e){typeof uh=="object"&&typeof fh=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){e.defineOption("showTrailingSpace",!1,function(r,i,o){o==e.Init&&(o=!1),o&&!i?r.removeOverlay("trailingspace"):!o&&i&&r.addOverlay({token:function(c){for(var d=c.string.length,m=d;m&&/\s/.test(c.string.charAt(m-1));--m);return m>c.pos?(c.pos=m,null):(c.pos=d,"trailingspace")},name:"trailingspace"})})})});var hh=Mt((ph,dh)=>{(function(e){typeof ph=="object"&&typeof dh=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var r={},i=/[^\s\u00a0]/,o=e.Pos,c=e.cmpPos;function d(S){var A=S.search(i);return A==-1?0:A}e.commands.toggleComment=function(S){S.toggleComment()},e.defineExtension("toggleComment",function(S){S||(S=r);for(var A=this,T=1/0,D=this.listSelections(),E=null,U=D.length-1;U>=0;U--){var V=D[U].from(),I=D[U].to();V.line>=T||(I.line>=T&&(I=o(T,0)),T=V.line,E==null?A.uncomment(V,I,S)?E="un":(A.lineComment(V,I,S),E="line"):E=="un"?A.uncomment(V,I,S):A.lineComment(V,I,S))}});function m(S,A,T){return/\bstring\b/.test(S.getTokenTypeAt(o(A.line,0)))&&!/^[\'\"\`]/.test(T)}function x(S,A){var T=S.getMode();return T.useInnerComments===!1||!T.innerMode?T:S.getModeAt(A)}e.defineExtension("lineComment",function(S,A,T){T||(T=r);var D=this,E=x(D,S),U=D.getLine(S.line);if(!(U==null||m(D,S,U))){var V=T.lineComment||E.lineComment;if(!V){(T.blockCommentStart||E.blockCommentStart)&&(T.fullLines=!0,D.blockComment(S,A,T));return}var I=Math.min(A.ch!=0||A.line==S.line?A.line+1:A.line,D.lastLine()+1),W=T.padding==null?" ":T.padding,K=T.commentBlankLines||S.line==A.line;D.operation(function(){if(T.indent){for(var G=null,re=S.line;re<I;++re){var ue=D.getLine(re),ae=ue.search(i)===-1?ue:ue.slice(0,d(ue));(G==null||G.length>ae.length)&&(G=ae)}for(var re=S.line;re<I;++re){var ue=D.getLine(re),j=G.length;!K&&!i.test(ue)||(ue.slice(0,j)!=G&&(j=d(ue)),D.replaceRange(G+V+W,o(re,0),o(re,j)))}}else for(var re=S.line;re<I;++re)(K||i.test(D.getLine(re)))&&D.replaceRange(V+W,o(re,0))})}}),e.defineExtension("blockComment",function(S,A,T){T||(T=r);var D=this,E=x(D,S),U=T.blockCommentStart||E.blockCommentStart,V=T.blockCommentEnd||E.blockCommentEnd;if(!U||!V){(T.lineComment||E.lineComment)&&T.fullLines!=!1&&D.lineComment(S,A,T);return}if(!/\bcomment\b/.test(D.getTokenTypeAt(o(S.line,0)))){var I=Math.min(A.line,D.lastLine());I!=S.line&&A.ch==0&&i.test(D.getLine(I))&&--I;var W=T.padding==null?" ":T.padding;S.line>I||D.operation(function(){if(T.fullLines!=!1){var K=i.test(D.getLine(I));D.replaceRange(W+V,o(I)),D.replaceRange(U+W,o(S.line,0));var G=T.blockCommentLead||E.blockCommentLead;if(G!=null)for(var re=S.line+1;re<=I;++re)(re!=I||K)&&D.replaceRange(G+W,o(re,0))}else{var ue=c(D.getCursor("to"),A)==0,ae=!D.somethingSelected();D.replaceRange(V,A),ue&&D.setSelection(ae?A:D.getCursor("from"),A),D.replaceRange(U,S)}})}}),e.defineExtension("uncomment",function(S,A,T){T||(T=r);var D=this,E=x(D,S),U=Math.min(A.ch!=0||A.line==S.line?A.line:A.line-1,D.lastLine()),V=Math.min(S.line,U),I=T.lineComment||E.lineComment,W=[],K=T.padding==null?" ":T.padding,G;e:{if(!I)break e;for(var re=V;re<=U;++re){var ue=D.getLine(re),ae=ue.indexOf(I);if(ae>-1&&!/comment/.test(D.getTokenTypeAt(o(re,ae+1)))&&(ae=-1),ae==-1&&i.test(ue)||ae>-1&&i.test(ue.slice(0,ae)))break e;W.push(ue)}if(D.operation(function(){for(var he=V;he<=U;++he){var Ae=W[he-V],Ye=Ae.indexOf(I),Ve=Ye+I.length;Ye<0||(Ae.slice(Ve,Ve+K.length)==K&&(Ve+=K.length),G=!0,D.replaceRange("",o(he,Ye),o(he,Ve)))}}),G)return!0}var j=T.blockCommentStart||E.blockCommentStart,B=T.blockCommentEnd||E.blockCommentEnd;if(!j||!B)return!1;var ee=T.blockCommentLead||E.blockCommentLead,ne=D.getLine(V),ge=ne.indexOf(j);if(ge==-1)return!1;var Z=U==V?ne:D.getLine(U),pe=Z.indexOf(B,U==V?ge+j.length:0),$=o(V,ge+1),ve=o(U,pe+1);if(pe==-1||!/comment/.test(D.getTokenTypeAt($))||!/comment/.test(D.getTokenTypeAt(ve))||D.getRange($,ve,`
`).indexOf(B)>-1)return!1;var se=ne.lastIndexOf(j,S.ch),q=se==-1?-1:ne.slice(0,S.ch).indexOf(B,se+j.length);if(se!=-1&&q!=-1&&q+B.length!=S.ch)return!1;q=Z.indexOf(B,A.ch);var Q=Z.slice(A.ch).lastIndexOf(j,q-A.ch);return se=q==-1||Q==-1?-1:A.ch+Q,q!=-1&&se!=-1&&se!=A.ch?!1:(D.operation(function(){D.replaceRange("",o(U,pe-(K&&Z.slice(pe-K.length,pe)==K?K.length:0)),o(U,pe+B.length));var he=ge+j.length;if(K&&ne.slice(he,he+K.length)==K&&(he+=K.length),D.replaceRange("",o(V,ge),o(V,he)),ee)for(var Ae=V+1;Ae<=U;++Ae){var Ye=D.getLine(Ae),Ve=Ye.indexOf(ee);if(!(Ve==-1||i.test(Ye.slice(0,Ve)))){var wt=Ve+ee.length;K&&Ye.slice(wt,wt+K.length)==K&&(wt+=K.length),D.replaceRange("",o(Ae,Ve),o(Ae,wt))}}}),!0)})})});var Cf=Mt((gh,mh)=>{(function(e){typeof gh=="object"&&typeof mh=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){function r(o,c,d){var m=o.getWrapperElement(),x;return x=m.appendChild(document.createElement("div")),d?x.className="CodeMirror-dialog CodeMirror-dialog-bottom":x.className="CodeMirror-dialog CodeMirror-dialog-top",typeof c=="string"?x.innerHTML=c:x.appendChild(c),e.addClass(m,"dialog-opened"),x}function i(o,c){o.state.currentNotificationClose&&o.state.currentNotificationClose(),o.state.currentNotificationClose=c}e.defineExtension("openDialog",function(o,c,d){d||(d={}),i(this,null);var m=r(this,o,d.bottom),x=!1,S=this;function A(E){if(typeof E=="string")T.value=E;else{if(x)return;x=!0,e.rmClass(m.parentNode,"dialog-opened"),m.parentNode.removeChild(m),S.focus(),d.onClose&&d.onClose(m)}}var T=m.getElementsByTagName("input")[0],D;return T?(T.focus(),d.value&&(T.value=d.value,d.selectValueOnOpen!==!1&&T.select()),d.onInput&&e.on(T,"input",function(E){d.onInput(E,T.value,A)}),d.onKeyUp&&e.on(T,"keyup",function(E){d.onKeyUp(E,T.value,A)}),e.on(T,"keydown",function(E){d&&d.onKeyDown&&d.onKeyDown(E,T.value,A)||((E.keyCode==27||d.closeOnEnter!==!1&&E.keyCode==13)&&(T.blur(),e.e_stop(E),A()),E.keyCode==13&&c(T.value,E))}),d.closeOnBlur!==!1&&e.on(m,"focusout",function(E){E.relatedTarget!==null&&A()})):(D=m.getElementsByTagName("button")[0])&&(e.on(D,"click",function(){A(),S.focus()}),d.closeOnBlur!==!1&&e.on(D,"blur",A),D.focus()),A}),e.defineExtension("openConfirm",function(o,c,d){i(this,null);var m=r(this,o,d&&d.bottom),x=m.getElementsByTagName("button"),S=!1,A=this,T=1;function D(){S||(S=!0,e.rmClass(m.parentNode,"dialog-opened"),m.parentNode.removeChild(m),A.focus())}x[0].focus();for(var E=0;E<x.length;++E){var U=x[E];(function(V){e.on(U,"click",function(I){e.e_preventDefault(I),D(),V&&V(A)})})(c[E]),e.on(U,"blur",function(){--T,setTimeout(function(){T<=0&&D()},200)}),e.on(U,"focus",function(){++T})}}),e.defineExtension("openNotification",function(o,c){i(this,A);var d=r(this,o,c&&c.bottom),m=!1,x,S=c&&typeof c.duration<"u"?c.duration:5e3;function A(){m||(m=!0,clearTimeout(x),e.rmClass(d.parentNode,"dialog-opened"),d.parentNode.removeChild(d))}return e.on(d,"click",function(T){e.e_preventDefault(T),A()}),S&&(x=setTimeout(A,S)),A})})});var Tf=Mt((vh,yh)=>{(function(e){typeof vh=="object"&&typeof yh=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";var r=e.Pos;function i(W){var K=W.flags;return K??(W.ignoreCase?"i":"")+(W.global?"g":"")+(W.multiline?"m":"")}function o(W,K){for(var G=i(W),re=G,ue=0;ue<K.length;ue++)re.indexOf(K.charAt(ue))==-1&&(re+=K.charAt(ue));return G==re?W:new RegExp(W.source,re)}function c(W){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(W.source)}function d(W,K,G){K=o(K,"g");for(var re=G.line,ue=G.ch,ae=W.lastLine();re<=ae;re++,ue=0){K.lastIndex=ue;var j=W.getLine(re),B=K.exec(j);if(B)return{from:r(re,B.index),to:r(re,B.index+B[0].length),match:B}}}function m(W,K,G){if(!c(K))return d(W,K,G);K=o(K,"gm");for(var re,ue=1,ae=G.line,j=W.lastLine();ae<=j;){for(var B=0;B<ue&&!(ae>j);B++){var ee=W.getLine(ae++);re=re==null?ee:re+`
`+ee}ue=ue*2,K.lastIndex=G.ch;var ne=K.exec(re);if(ne){var ge=re.slice(0,ne.index).split(`
`),Z=ne[0].split(`
`),pe=G.line+ge.length-1,$=ge[ge.length-1].length;return{from:r(pe,$),to:r(pe+Z.length-1,Z.length==1?$+Z[0].length:Z[Z.length-1].length),match:ne}}}}function x(W,K,G){for(var re,ue=0;ue<=W.length;){K.lastIndex=ue;var ae=K.exec(W);if(!ae)break;var j=ae.index+ae[0].length;if(j>W.length-G)break;(!re||j>re.index+re[0].length)&&(re=ae),ue=ae.index+1}return re}function S(W,K,G){K=o(K,"g");for(var re=G.line,ue=G.ch,ae=W.firstLine();re>=ae;re--,ue=-1){var j=W.getLine(re),B=x(j,K,ue<0?0:j.length-ue);if(B)return{from:r(re,B.index),to:r(re,B.index+B[0].length),match:B}}}function A(W,K,G){if(!c(K))return S(W,K,G);K=o(K,"gm");for(var re,ue=1,ae=W.getLine(G.line).length-G.ch,j=G.line,B=W.firstLine();j>=B;){for(var ee=0;ee<ue&&j>=B;ee++){var ne=W.getLine(j--);re=re==null?ne:ne+`
`+re}ue*=2;var ge=x(re,K,ae);if(ge){var Z=re.slice(0,ge.index).split(`
`),pe=ge[0].split(`
`),$=j+Z.length,ve=Z[Z.length-1].length;return{from:r($,ve),to:r($+pe.length-1,pe.length==1?ve+pe[0].length:pe[pe.length-1].length),match:ge}}}}var T,D;String.prototype.normalize?(T=function(W){return W.normalize("NFD").toLowerCase()},D=function(W){return W.normalize("NFD")}):(T=function(W){return W.toLowerCase()},D=function(W){return W});function E(W,K,G,re){if(W.length==K.length)return G;for(var ue=0,ae=G+Math.max(0,W.length-K.length);;){if(ue==ae)return ue;var j=ue+ae>>1,B=re(W.slice(0,j)).length;if(B==G)return j;B>G?ae=j:ue=j+1}}function U(W,K,G,re){if(!K.length)return null;var ue=re?T:D,ae=ue(K).split(/\r|\n\r?/);e:for(var j=G.line,B=G.ch,ee=W.lastLine()+1-ae.length;j<=ee;j++,B=0){var ne=W.getLine(j).slice(B),ge=ue(ne);if(ae.length==1){var Z=ge.indexOf(ae[0]);if(Z==-1)continue e;var G=E(ne,ge,Z,ue)+B;return{from:r(j,E(ne,ge,Z,ue)+B),to:r(j,E(ne,ge,Z+ae[0].length,ue)+B)}}else{var pe=ge.length-ae[0].length;if(ge.slice(pe)!=ae[0])continue e;for(var $=1;$<ae.length-1;$++)if(ue(W.getLine(j+$))!=ae[$])continue e;var ve=W.getLine(j+ae.length-1),se=ue(ve),q=ae[ae.length-1];if(se.slice(0,q.length)!=q)continue e;return{from:r(j,E(ne,ge,pe,ue)+B),to:r(j+ae.length-1,E(ve,se,q.length,ue))}}}}function V(W,K,G,re){if(!K.length)return null;var ue=re?T:D,ae=ue(K).split(/\r|\n\r?/);e:for(var j=G.line,B=G.ch,ee=W.firstLine()-1+ae.length;j>=ee;j--,B=-1){var ne=W.getLine(j);B>-1&&(ne=ne.slice(0,B));var ge=ue(ne);if(ae.length==1){var Z=ge.lastIndexOf(ae[0]);if(Z==-1)continue e;return{from:r(j,E(ne,ge,Z,ue)),to:r(j,E(ne,ge,Z+ae[0].length,ue))}}else{var pe=ae[ae.length-1];if(ge.slice(0,pe.length)!=pe)continue e;for(var $=1,G=j-ae.length+1;$<ae.length-1;$++)if(ue(W.getLine(G+$))!=ae[$])continue e;var ve=W.getLine(j+1-ae.length),se=ue(ve);if(se.slice(se.length-ae[0].length)!=ae[0])continue e;return{from:r(j+1-ae.length,E(ve,se,ve.length-ae[0].length,ue)),to:r(j,E(ne,ge,pe.length,ue))}}}}function I(W,K,G,re){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=W,G=G?W.clipPos(G):r(0,0),this.pos={from:G,to:G};var ue;typeof re=="object"?ue=re.caseFold:(ue=re,re=null),typeof K=="string"?(ue==null&&(ue=!1),this.matches=function(ae,j){return(ae?V:U)(W,K,j,ue)}):(K=o(K,"gm"),!re||re.multiline!==!1?this.matches=function(ae,j){return(ae?A:m)(W,K,j)}:this.matches=function(ae,j){return(ae?S:d)(W,K,j)})}I.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(W){var K=this.doc.clipPos(W?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(K=r(K.line,K.ch),W?(K.ch--,K.ch<0&&(K.line--,K.ch=(this.doc.getLine(K.line)||"").length)):(K.ch++,K.ch>(this.doc.getLine(K.line)||"").length&&(K.ch=0,K.line++)),e.cmpPos(K,this.doc.clipPos(K))!=0))return this.atOccurrence=!1;var G=this.matches(W,K);if(this.afterEmptyMatch=G&&e.cmpPos(G.from,G.to)==0,G)return this.pos=G,this.atOccurrence=!0,this.pos.match||!0;var re=r(W?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:re,to:re},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(W,K){if(this.atOccurrence){var G=e.splitLines(W);this.doc.replaceRange(G,this.pos.from,this.pos.to,K),this.pos.to=r(this.pos.from.line+G.length-1,G[G.length-1].length+(G.length==1?this.pos.from.ch:0))}}},e.defineExtension("getSearchCursor",function(W,K,G){return new I(this.doc,W,K,G)}),e.defineDocExtension("getSearchCursor",function(W,K,G){return new I(this,W,K,G)}),e.defineExtension("selectMatches",function(W,K){for(var G=[],re=this.getSearchCursor(W,this.getCursor("from"),K);re.findNext()&&!(e.cmpPos(re.to(),this.getCursor("to"))>0);)G.push({anchor:re.from(),head:re.to()});G.length&&this.setSelections(G,0)})})});var wh=Mt((bh,xh)=>{(function(e){typeof bh=="object"&&typeof xh=="object"?e(Et(),Tf(),Cf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function r(j,B){return typeof j=="string"?j=new RegExp(j.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),B?"gi":"g"):j.global||(j=new RegExp(j.source,j.ignoreCase?"gi":"g")),{token:function(ee){j.lastIndex=ee.pos;var ne=j.exec(ee.string);if(ne&&ne.index==ee.pos)return ee.pos+=ne[0].length||1,"searching";ne?ee.pos=ne.index:ee.skipToEnd()}}}function i(){this.posFrom=this.posTo=this.lastQuery=this.query=null,this.overlay=null}function o(j){return j.state.search||(j.state.search=new i)}function c(j){return typeof j=="string"&&j==j.toLowerCase()}function d(j,B,ee){return j.getSearchCursor(B,ee,{caseFold:c(B),multiline:!0})}function m(j,B,ee,ne,ge){j.openDialog(B,ne,{value:ee,selectValueOnOpen:!0,closeOnEnter:!1,onClose:function(){V(j)},onKeyDown:ge,bottom:j.options.search.bottom})}function x(j,B,ee,ne,ge){j.openDialog?j.openDialog(B,ge,{value:ne,selectValueOnOpen:!0,bottom:j.options.search.bottom}):ge(prompt(ee,ne))}function S(j,B,ee,ne){j.openConfirm?j.openConfirm(B,ne):confirm(ee)&&ne[0]()}function A(j){return j.replace(/\\([nrt\\])/g,function(B,ee){return ee=="n"?`
`:ee=="r"?"\r":ee=="t"?"	":ee=="\\"?"\\":B})}function T(j){var B=j.match(/^\/(.*)\/([a-z]*)$/);if(B)try{j=new RegExp(B[1],B[2].indexOf("i")==-1?"":"i")}catch{}else j=A(j);return(typeof j=="string"?j=="":j.test(""))&&(j=/x^/),j}function D(j,B,ee){B.queryText=ee,B.query=T(ee),j.removeOverlay(B.overlay,c(B.query)),B.overlay=r(B.query,c(B.query)),j.addOverlay(B.overlay),j.showMatchesOnScrollbar&&(B.annotate&&(B.annotate.clear(),B.annotate=null),B.annotate=j.showMatchesOnScrollbar(B.query,c(B.query)))}function E(j,B,ee,ne){var ge=o(j);if(ge.query)return U(j,B);var Z=j.getSelection()||ge.lastQuery;if(Z instanceof RegExp&&Z.source=="x^"&&(Z=null),ee&&j.openDialog){var pe=null,$=function(ve,se){e.e_stop(se),ve&&(ve!=ge.queryText&&(D(j,ge,ve),ge.posFrom=ge.posTo=j.getCursor()),pe&&(pe.style.opacity=1),U(j,se.shiftKey,function(q,Q){var he;Q.line<3&&document.querySelector&&(he=j.display.wrapper.querySelector(".CodeMirror-dialog"))&&he.getBoundingClientRect().bottom-4>j.cursorCoords(Q,"window").top&&((pe=he).style.opacity=.4)}))};m(j,W(j),Z,$,function(ve,se){var q=e.keyName(ve),Q=j.getOption("extraKeys"),he=Q&&Q[q]||e.keyMap[j.getOption("keyMap")][q];he=="findNext"||he=="findPrev"||he=="findPersistentNext"||he=="findPersistentPrev"?(e.e_stop(ve),D(j,o(j),se),j.execCommand(he)):(he=="find"||he=="findPersistent")&&(e.e_stop(ve),$(se,ve))}),ne&&Z&&(D(j,ge,Z),U(j,B))}else x(j,W(j),"Search for:",Z,function(ve){ve&&!ge.query&&j.operation(function(){D(j,ge,ve),ge.posFrom=ge.posTo=j.getCursor(),U(j,B)})})}function U(j,B,ee){j.operation(function(){var ne=o(j),ge=d(j,ne.query,B?ne.posFrom:ne.posTo);!ge.find(B)&&(ge=d(j,ne.query,B?e.Pos(j.lastLine()):e.Pos(j.firstLine(),0)),!ge.find(B))||(j.setSelection(ge.from(),ge.to()),j.scrollIntoView({from:ge.from(),to:ge.to()},20),ne.posFrom=ge.from(),ne.posTo=ge.to(),ee&&ee(ge.from(),ge.to()))})}function V(j){j.operation(function(){var B=o(j);B.lastQuery=B.query,B.query&&(B.query=B.queryText=null,j.removeOverlay(B.overlay),B.annotate&&(B.annotate.clear(),B.annotate=null))})}function I(j,B){var ee=j?document.createElement(j):document.createDocumentFragment();for(var ne in B)ee[ne]=B[ne];for(var ge=2;ge<arguments.length;ge++){var Z=arguments[ge];ee.appendChild(typeof Z=="string"?document.createTextNode(Z):Z)}return ee}function W(j){var B=I("label",{className:"CodeMirror-search-label"},j.phrase("Search:"),I("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field",id:"CodeMirror-search-field"}));return B.setAttribute("for","CodeMirror-search-field"),I("",null,B," ",I("span",{style:"color: #666",className:"CodeMirror-search-hint"},j.phrase("(Use /re/ syntax for regexp search)")))}function K(j){return I("",null," ",I("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"})," ",I("span",{style:"color: #666",className:"CodeMirror-search-hint"},j.phrase("(Use /re/ syntax for regexp search)")))}function G(j){return I("",null,I("span",{className:"CodeMirror-search-label"},j.phrase("With:"))," ",I("input",{type:"text",style:"width: 10em",className:"CodeMirror-search-field"}))}function re(j){return I("",null,I("span",{className:"CodeMirror-search-label"},j.phrase("Replace?"))," ",I("button",{},j.phrase("Yes"))," ",I("button",{},j.phrase("No"))," ",I("button",{},j.phrase("All"))," ",I("button",{},j.phrase("Stop")))}function ue(j,B,ee){j.operation(function(){for(var ne=d(j,B);ne.findNext();)if(typeof B!="string"){var ge=j.getRange(ne.from(),ne.to()).match(B);ne.replace(ee.replace(/\$(\d)/g,function(Z,pe){return ge[pe]}))}else ne.replace(ee)})}function ae(j,B){if(!j.getOption("readOnly")){var ee=j.getSelection()||o(j).lastQuery,ne=B?j.phrase("Replace all:"):j.phrase("Replace:"),ge=I("",null,I("span",{className:"CodeMirror-search-label"},ne),K(j));x(j,ge,ne,ee,function(Z){Z&&(Z=T(Z),x(j,G(j),j.phrase("Replace with:"),"",function(pe){if(pe=A(pe),B)ue(j,Z,pe);else{V(j);var $=d(j,Z,j.getCursor("from")),ve=function(){var q=$.from(),Q;!(Q=$.findNext())&&($=d(j,Z),!(Q=$.findNext())||q&&$.from().line==q.line&&$.from().ch==q.ch)||(j.setSelection($.from(),$.to()),j.scrollIntoView({from:$.from(),to:$.to()}),S(j,re(j),j.phrase("Replace?"),[function(){se(Q)},ve,function(){ue(j,Z,pe)}]))},se=function(q){$.replace(typeof Z=="string"?pe:pe.replace(/\$(\d)/g,function(Q,he){return q[he]})),ve()};ve()}}))})}}e.commands.find=function(j){V(j),E(j)},e.commands.findPersistent=function(j){V(j),E(j,!1,!0)},e.commands.findPersistentNext=function(j){E(j,!1,!0,!0)},e.commands.findPersistentPrev=function(j){E(j,!0,!0,!0)},e.commands.findNext=E,e.commands.findPrev=function(j){E(j,!0)},e.commands.clearSearch=V,e.commands.replace=ae,e.commands.replaceAll=function(j){ae(j,!0)}})});var cp=Mt((kh,_h)=>{(function(e){typeof kh=="object"&&typeof _h=="object"?e(Et()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)})(function(e){"use strict";e.defineExtension("annotateScrollbar",function(i){return typeof i=="string"&&(i={className:i}),new r(this,i)}),e.defineOption("scrollButtonHeight",0);function r(i,o){this.cm=i,this.options=o,this.buttonHeight=o.scrollButtonHeight||i.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=i.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function c(m){clearTimeout(d.doRedraw),d.doRedraw=setTimeout(function(){d.redraw()},m)}var d=this;i.on("refresh",this.resizeHandler=function(){clearTimeout(d.doUpdate),d.doUpdate=setTimeout(function(){d.computeScale()&&c(20)},100)}),i.on("markerAdded",this.resizeHandler),i.on("markerCleared",this.resizeHandler),o.listenForChanges!==!1&&i.on("changes",this.changeHandler=function(){c(250)})}r.prototype.computeScale=function(){var i=this.cm,o=(i.getWrapperElement().clientHeight-i.display.barHeight-this.buttonHeight*2)/i.getScrollerElement().scrollHeight;if(o!=this.hScale)return this.hScale=o,!0},r.prototype.update=function(i){this.annotations=i,this.redraw()},r.prototype.redraw=function(i){i!==!1&&this.computeScale();var o=this.cm,c=this.hScale,d=document.createDocumentFragment(),m=this.annotations,x=o.getOption("lineWrapping"),S=x&&o.defaultTextHeight()*1.5,A=null,T=null;function D(ue,ae){if(A!=ue.line){A=ue.line,T=o.getLineHandle(ue.line);var j=o.getLineHandleVisualStart(T);j!=T&&(A=o.getLineNumber(j),T=j)}if(T.widgets&&T.widgets.length||x&&T.height>S)return o.charCoords(ue,"local")[ae?"top":"bottom"];var B=o.heightAtLine(T,"local");return B+(ae?0:T.height)}var E=o.lastLine();if(o.display.barWidth)for(var U=0,V;U<m.length;U++){var I=m[U];if(!(I.to.line>E)){for(var W=V||D(I.from,!0)*c,K=D(I.to,!1)*c;U<m.length-1&&!(m[U+1].to.line>E||(V=D(m[U+1].from,!0)*c,V>K+.9));)I=m[++U],K=D(I.to,!1)*c;if(K!=W){var G=Math.max(K-W,3),re=d.appendChild(document.createElement("div"));re.style.cssText="position: absolute; right: 0px; width: "+Math.max(o.display.barWidth-1,2)+"px; top: "+(W+this.buttonHeight)+"px; height: "+G+"px",re.className=this.options.className,I.id&&re.setAttribute("annotation-id",I.id)}}}this.div.textContent="",this.div.appendChild(d)},r.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)}})});var pp=Mt((Sh,Ch)=>{(function(e){typeof Sh=="object"&&typeof Ch=="object"?e(Et(),Tf(),cp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],e):e(CodeMirror)})(function(e){"use strict";e.defineExtension("showMatchesOnScrollbar",function(c,d,m){return typeof m=="string"&&(m={className:m}),m||(m={}),new r(this,c,d,m)});function r(c,d,m,x){this.cm=c,this.options=x;var S={listenForChanges:!1};for(var A in x)S[A]=x[A];S.className||(S.className="CodeMirror-search-match"),this.annotation=c.annotateScrollbar(S),this.query=d,this.caseFold=m,this.gap={from:c.firstLine(),to:c.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var T=this;c.on("change",this.changeHandler=function(D,E){T.onChange(E)})}var i=1e3;r.prototype.findMatches=function(){if(this.gap){for(var c=0;c<this.matches.length;c++){var d=this.matches[c];if(d.from.line>=this.gap.to)break;d.to.line>=this.gap.from&&this.matches.splice(c--,1)}for(var m=this.cm.getSearchCursor(this.query,e.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),x=this.options&&this.options.maxMatches||i;m.findNext();){var d={from:m.from(),to:m.to()};if(d.from.line>=this.gap.to||(this.matches.splice(c++,0,d),this.matches.length>x))break}this.gap=null}};function o(c,d,m){return c<=d?c:Math.max(d,c+m)}r.prototype.onChange=function(c){var d=c.from.line,m=e.changeEnd(c).line,x=m-c.to.line;if(this.gap?(this.gap.from=Math.min(o(this.gap.from,d,x),c.from.line),this.gap.to=Math.max(o(this.gap.to,d,x),c.from.line)):this.gap={from:c.from.line,to:m+1},x)for(var S=0;S<this.matches.length;S++){var A=this.matches[S],T=o(A.from.line,d,x);T!=A.from.line&&(A.from=e.Pos(T,A.from.ch));var D=o(A.to.line,d,x);D!=A.to.line&&(A.to=e.Pos(D,A.to.ch))}clearTimeout(this.update);var E=this;this.update=setTimeout(function(){E.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()}})});var Lh=Mt((Th,$h)=>{(function(e){typeof Th=="object"&&typeof $h=="object"?e(Et(),Cf()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../dialog/dialog"],e):e(CodeMirror)})(function(e){"use strict";e.defineOption("search",{bottom:!1});function r(c,d,m,x,S){c.openDialog?c.openDialog(d,S,{value:x,selectValueOnOpen:!0,bottom:c.options.search.bottom}):S(prompt(m,x))}function i(c){return c.phrase("Jump to line:")+' <input type="text" style="width: 10em" class="CodeMirror-search-field"/> <span style="color: #888" class="CodeMirror-search-hint">'+c.phrase("(Use line:column or scroll% syntax)")+"</span>"}function o(c,d){var m=Number(d);return/^[-+]/.test(d)?c.getCursor().line+m:m-1}e.commands.jumpToLine=function(c){var d=c.getCursor();r(c,i(c),c.phrase("Jump to line:"),d.line+1+":"+d.ch,function(m){if(m){var x;if(x=/^\s*([\+\-]?\d+)\s*\:\s*(\d+)\s*$/.exec(m))c.setCursor(o(c,x[1]),Number(x[2]));else if(x=/^\s*([\+\-]?\d+(\.\d+)?)\%\s*/.exec(m)){var S=Math.round(c.lineCount()*Number(x[1])/100);/^[-+]/.test(x[1])&&(S=d.line+S+1),c.setCursor(S-1,d.ch)}else(x=/^\s*\:?\s*([\+\-]?\d+)\s*/.exec(m))&&c.setCursor(o(c,x[1]),d.ch)}})},e.keyMap.default["Alt-G"]="jumpToLine"})});var Nh=Mt((Ah,Oh)=>{(function(e){typeof Ah=="object"&&typeof Oh=="object"?e(Et(),pp()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],e):e(CodeMirror)})(function(e){"use strict";var r={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function i(E){this.options={};for(var U in r)this.options[U]=(E&&E.hasOwnProperty(U)?E:r)[U];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}e.defineOption("highlightSelectionMatches",!1,function(E,U,V){if(V&&V!=e.Init&&(x(E),clearTimeout(E.state.matchHighlighter.timeout),E.state.matchHighlighter=null,E.off("cursorActivity",o),E.off("focus",c)),U){var I=E.state.matchHighlighter=new i(U);E.hasFocus()?(I.active=!0,S(E)):E.on("focus",c),E.on("cursorActivity",o)}});function o(E){var U=E.state.matchHighlighter;(U.active||E.hasFocus())&&d(E,U)}function c(E){var U=E.state.matchHighlighter;U.active||(U.active=!0,d(E,U))}function d(E,U){clearTimeout(U.timeout),U.timeout=setTimeout(function(){S(E)},U.options.delay)}function m(E,U,V,I){var W=E.state.matchHighlighter;if(E.addOverlay(W.overlay=D(U,V,I)),W.options.annotateScrollbar&&E.showMatchesOnScrollbar){var K=V?new RegExp((/\w/.test(U.charAt(0))?"\\b":"")+U.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(U.charAt(U.length-1))?"\\b":"")):U;W.matchesonscroll=E.showMatchesOnScrollbar(K,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function x(E){var U=E.state.matchHighlighter;U.overlay&&(E.removeOverlay(U.overlay),U.overlay=null,U.matchesonscroll&&(U.matchesonscroll.clear(),U.matchesonscroll=null))}function S(E){E.operation(function(){var U=E.state.matchHighlighter;if(x(E),!E.somethingSelected()&&U.options.showToken){for(var V=U.options.showToken===!0?/[\w$]/:U.options.showToken,I=E.getCursor(),W=E.getLine(I.line),K=I.ch,G=K;K&&V.test(W.charAt(K-1));)--K;for(;G<W.length&&V.test(W.charAt(G));)++G;K<G&&m(E,W.slice(K,G),V,U.options.style);return}var re=E.getCursor("from"),ue=E.getCursor("to");if(re.line==ue.line&&!(U.options.wordsOnly&&!A(E,re,ue))){var ae=E.getRange(re,ue);U.options.trim&&(ae=ae.replace(/^\s+|\s+$/g,"")),ae.length>=U.options.minChars&&m(E,ae,!1,U.options.style)}})}function A(E,U,V){var I=E.getRange(U,V);if(I.match(/^\w+$/)!==null){if(U.ch>0){var W={line:U.line,ch:U.ch-1},K=E.getRange(W,U);if(K.match(/\W/)===null)return!1}if(V.ch<E.getLine(U.line).length){var W={line:V.line,ch:V.ch+1},K=E.getRange(V,W);if(K.match(/\W/)===null)return!1}return!0}else return!1}function T(E,U){return(!E.start||!U.test(E.string.charAt(E.start-1)))&&(E.pos==E.string.length||!U.test(E.string.charAt(E.pos)))}function D(E,U,V){return{token:function(I){if(I.match(E)&&(!U||T(I,U)))return V;I.next(),I.skipTo(E.charAt(0))||I.skipToEnd()}}}})});var ib=Nt(Nd()),pu=Nt(Et());var bn=Nt(Et());bn.default.extendMode("css",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,r){return/^[;{}]$/.test(r)}});bn.default.extendMode("javascript",{commentStart:"/*",commentEnd:"*/",newlineAfterToken:function(e,r,i,o){return this.jsonMode?/^[\[,{]$/.test(r)||/^}/.test(i):r==";"&&o.lexical&&o.lexical.type==")"?!1:/^[;{}]$/.test(r)&&!/^;/.test(i)}});bn.default.extendMode("xml",{commentStart:"<!--",commentEnd:"-->",newlineAfterToken:function(e,r,i){return e=="tag"&&/>$/.test(r)||/^</.test(i)||e=="tag bracket"&&/>$/.test(r)}});bn.default.defineExtension("commentRange",function(e,r,i){var o=this,c=bn.default.innerMode(o.getMode(),o.getTokenAt(r).state).mode;o.operation(function(){if(e)o.replaceRange(c.commentEnd,i),o.replaceRange(c.commentStart,r),r.line==i.line&&r.ch==i.ch&&o.setCursor(r.line,r.ch+c.commentStart.length);else{var d=o.getRange(r,i),m=d.indexOf(c.commentStart),x=d.lastIndexOf(c.commentEnd);m>-1&&x>-1&&x>m&&(d=d.substr(0,m)+d.substring(m+c.commentStart.length,x)+d.substr(x+c.commentEnd.length)),o.replaceRange(d,r,i)}})});bn.default.defineExtension("autoIndentRange",function(e,r){var i=this;this.operation(function(){for(var o=e.line;o<=r.line;o++)i.indentLine(o,"smart")})});bn.default.defineExtension("autoFormatRange",function(e,r){var i=this,o=i.getMode(),c=i.getRange(e,r).split(`
`),d=bn.default.copyState(o,i.getTokenAt(e).state),m=i.getOption("tabSize"),x="",S=0,A=e.ch==0;function T(){x+=`
`,A=!0,++S}for(var D=0;D<c.length;++D){for(var E=new bn.default.StringStream(c[D],m);!E.eol();){var U=bn.default.innerMode(o,d),V=o.token(E,d),I=E.current();E.start=E.pos,(!A||/\S/.test(I))&&(x+=I,A=!1),!A&&U.mode.newlineAfterToken&&U.mode.newlineAfterToken(V,I,E.string.slice(E.pos)||c[D+1]||"",U.state)&&T()}!E.pos&&o.blankLine&&o.blankLine(d),A||T()}i.operation(function(){i.replaceRange(x,e,r);for(var W=e.line+1,K=e.line+S;W<=K;++W)i.indentLine(W,"smart");i.setSelection(e,i.getCursor(!1))})});var l$=Nt(up()),u$=Nt(Sf()),f$=Nt(Wd()),c$=Nt(lp()),p$=Nt(sp()),d$=Nt(fp()),h$=Nt(Vd()),g$=Nt(Xd()),m$=Nt(Jd()),v$=Nt(rh()),y$=Nt(oh()),b$=Nt(lh()),x$=Nt(ch()),w$=Nt(hh()),k$=Nt(Cf()),_$=Nt(Tf()),S$=Nt(wh()),C$=Nt(cp()),T$=Nt(pp()),$$=Nt(Lh()),L$=Nt(Nh());var Gg={escape:92,throws:!1};function lr(e){return e>47&&e<58}function iu(e,r,i){return r=r||65,i=i||90,e&=-33,e>=r&&e<=i}function Qg(e){return lr(e)||ec(e)}function ec(e){return e===95||iu(e)}function Xg(e){return e===32||e===9||e===160}function Wr(e){return Xg(e)||e===10||e===13}function tc(e,r){r=Object.assign(Object.assign({},Gg),r);let i=e.pos,o=e.peek();if(e.eat(ho)){for(;!e.eof();)switch(e.next()){case o:return e.start=i,!0;case r.escape:e.next();break}if(e.pos=i,r.throws)throw e.error("Unable to consume quoted string")}return!1}function ho(e){return e===39||e===34}function $f(e,r,i,o){o=Object.assign(Object.assign({},Gg),o);let c=e.pos;if(e.eat(r)){let d=1,m;for(;!e.eof();)if(!tc(e,o))if(m=e.next(),m===r)d++;else if(m===i){if(d--,!d)return e.start=c,!0}else m===o.escape&&e.next();if(e.pos=c,o.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(r)}`)}return!1}var wn=class e{constructor(r,i,o){o==null&&typeof r=="string"&&(o=r.length),this.string=r,this.pos=this.start=i||0,this.end=o||0}eof(){return this.pos>=this.end}limit(r,i){return new e(this.string,r,i)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(r){let i=this.peek(),o=typeof r=="function"?r(i):i===r;return o&&this.next(),o}eatWhile(r){let i=this.pos;for(;!this.eof()&&this.eat(r););return this.pos!==i}backUp(r){this.pos-=r||1}current(){return this.substring(this.start,this.pos)}substring(r,i){return this.string.slice(r,i)}error(r,i=this.pos){return new Yl(`${r} at ${i+1}`,i,this.string)}},Yl=class extends Error{constructor(r,i,o){super(r),this.pos=i,this.string=o}};function cb(e){return{tokens:e,start:0,pos:0,size:e.length}}function ya(e){return e.tokens[e.pos]}function Jp(e){return e.tokens[e.pos++]}function bs(e,r=e.start,i=e.pos){return e.tokens.slice(r,i)}function Ti(e){return e.pos<e.size}function ar(e,r){let i=ya(e);return i&&r(i)?(e.pos++,!0):!1}function ed(e,r,i=ya(e)){i&&i.start!=null&&(r+=` at ${i.start}`);let o=new Error(r);return o.pos=i&&i.start,o}function Yg(e,r={}){let i=cb(e),o=Zg(i,r);if(Ti(i))throw ed(i,"Unexpected character");return o}function Zg(e,r){let i={type:"TokenGroup",elements:[]},o=i,c,d=[];for(;Ti(e)&&(c=db(e,r)||pb(e,r));)if(o.elements.push(c),ar(e,$b))d.push(o),o=c;else{if(ar(e,Lb))continue;if(ar(e,Dh))do d.length&&(o=d.pop());while(ar(e,Dh))}return i}function pb(e,r){if(ar(e,Cb)){let i=Zg(e,r),o=Jp(e);return nn(o,"group",!1)&&(i.repeat=mb(e)),i}}function db(e,r){let i,o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(vb(e,r)&&(o.name=bs(e));Ti(e);)if(e.start=e.pos,!o.repeat&&!dp(o)&&ar(e,zf))o.repeat=e.tokens[e.pos-1];else if(!o.value&&Jg(e))o.value=em(e);else if(i=Eh(e,"id",r)||Eh(e,"class",r)||hb(e))o.attributes?o.attributes=o.attributes.concat(i):o.attributes=Array.isArray(i)?i.slice():[i];else{!dp(o)&&ar(e,Ab)&&(o.selfClose=!0,!o.repeat&&ar(e,zf)&&(o.repeat=e.tokens[e.pos-1]));break}return dp(o)?void 0:o}function hb(e){if(ar(e,kb)){let r=[],i;for(;Ti(e);)if(i=gb(e))r.push(i);else{if(ar(e,_b))break;if(!ar(e,tm))throw ed(e,`Unexpected "${ya(e).type}" token`)}return r}}function Eh(e,r,i){if(xo(ya(e),r)){e.pos++;let o={name:[Tb(r)]};return i.jsx&&Jg(e)?(o.value=em(e),o.expression=!0):o.value=Pp(e)?bs(e):void 0,o}}function gb(e){if(Mh(e))return{value:bs(e)};if(Pp(e,!0))return{name:bs(e),value:ar(e,yb)&&(Mh(e)||Pp(e,!0))?bs(e):void 0}}function mb(e){return zf(ya(e))?e.tokens[e.pos++]:void 0}function Mh(e){let r=e.pos,i=ya(e);if(Ff(i)){for(e.pos++;Ti(e);)if(Ff(Jp(e),i.single))return e.start=r,!0;throw ed(e,"Unclosed quote",i)}return!1}function Pp(e,r){let i=e.pos,o={attribute:0,expression:0,group:0};for(;Ti(e);){let c=ya(e);if(o.expression)nn(c,"expression")&&(o[c.context]+=c.open?1:-1);else{if(Ff(c)||xo(c)||tm(c)||zf(c))break;if(nn(c)){if(!r)break;if(c.open)o[c.context]++;else if(o[c.context])o[c.context]--;else break}}e.pos++}return i!==e.pos?(e.start=i,!0):!1}function vb(e,r){let i=e.pos;if(r.jsx&&ar(e,Ph))for(;Ti(e);){let{pos:o}=e;if(!ar(e,wb)||!ar(e,Ph)){e.pos=o;break}}for(;Ti(e)&&ar(e,xb););return e.pos!==i?(e.start=i,!0):!1}function Jg(e){let r=e.pos;if(ar(e,Sb)){let i=0;for(;Ti(e);){let o=Jp(e);if(nn(o,"expression"))if(o.open)i++;else if(i)i--;else break}return e.start=r,!0}return!1}function em(e){let r=e.start,i=e.pos;return nn(e.tokens[r],"expression",!0)&&r++,nn(e.tokens[i-1],"expression",!1)&&i--,bs(e,r,i)}function nn(e,r,i){return!!(e&&e.type==="Bracket"&&(!r||e.context===r)&&(i==null||e.open===i))}function xo(e,r){return!!(e&&e.type==="Operator"&&(!r||e.operator===r))}function Ff(e,r){return!!(e&&e.type==="Quote"&&(r==null||e.single===r))}function tm(e){return!!(e&&e.type==="WhiteSpace")}function yb(e){return xo(e,"equal")}function zf(e){return!!(e&&e.type==="Repeater")}function bb(e){return e.type==="Literal"}function Ph(e){if(bb(e)){let r=e.value.charCodeAt(0);return r>=65&&r<=90}return!1}function xb(e){return e.type==="Literal"||e.type==="RepeaterNumber"||e.type==="RepeaterPlaceholder"}function wb(e){return xo(e,"class")}function kb(e){return nn(e,"attribute",!0)}function _b(e){return nn(e,"attribute",!1)}function Sb(e){return nn(e,"expression",!0)}function Cb(e){return nn(e,"group",!0)}function Tb(e){return{type:"Literal",value:e}}function dp(e){return!e.name&&!e.value&&!e.attributes}function $b(e){return xo(e,"child")}function Lb(e){return xo(e,"sibling")}function Dh(e){return xo(e,"climb")}function Ab(e){return xo(e,"close")}function Ob(e){return e.eat(92)?(e.start=e.pos,e.eof()||e.pos++,!0):!1}function rm(e){let r=new wn(e),i=[],o={group:0,attribute:0,expression:0,quote:0},c=0,d;for(;!r.eof();)if(c=r.peek(),d=nm(r,o),d)i.push(d),d.type==="Quote"?o.quote=c===o.quote?0:c:d.type==="Bracket"&&(o[d.context]+=d.open?1:-1);else throw r.error("Unexpected character");return i}function nm(e,r){return Rb(e,r)||Fb(e)||zb(e)||Ib(e)||Eb(e)||Nb(e,r)||Db(e)||Mb(e)||Pb(e)}function Nb(e,r){let i=e.pos,o="";for(;!e.eof();){if(Ob(e)){o+=e.current();continue}let c=e.peek();if(c===r.quote||c===36||jb(c,r)||r.expression&&c===125||!r.quote&&!r.expression&&(!r.attribute&&!Hb(c)||qb(c,r)||Wb(c,r)||ho(c)||im(c)))break;o+=e.string[e.pos++]}if(i!==e.pos)return e.start=i,{type:"Literal",value:o,start:i,end:e.pos}}function Eb(e){let r=e.pos;if(e.eatWhile(Wr))return{type:"WhiteSpace",start:r,end:e.pos,value:e.substring(r,e.pos)}}function Mb(e){let r=e.peek();if(ho(r))return{type:"Quote",single:r===39,start:e.pos++,end:e.pos}}function Pb(e){let r=e.peek(),i=im(r);if(i)return{type:"Bracket",open:Bb(r),context:i,start:e.pos++,end:e.pos}}function Db(e){let r=om(e.peek());if(r)return{type:"Operator",operator:r,start:e.pos++,end:e.pos}}function Ib(e){let r=e.pos;if(e.eat(42)){e.start=e.pos;let i=1,o=!1;return e.eatWhile(lr)?i=Number(e.current()):o=!0,{type:"Repeater",count:i,value:0,implicit:o,start:r,end:e.pos}}}function Fb(e){let r=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:r,end:e.pos};e.pos=r}function zb(e){let r=e.pos;if(e.eatWhile(36)){let i=e.pos-r,o=!1,c=1,d=0;if(e.eat(64)){for(;e.eat(94);)d++;o=e.eat(45),e.start=e.pos,e.eatWhile(lr)&&(c=Number(e.current()))}return e.start=r,{type:"RepeaterNumber",size:i,reverse:o,base:c,parent:d,start:r,end:e.pos}}}function Rb(e,r){let i=e.pos;if((r.expression||r.attribute)&&e.eat(36)&&e.eat(123)){e.start=e.pos;let o,c="";if(e.eatWhile(lr)?(o=Number(e.current()),c=e.eat(58)?Ih(e):""):iu(e.peek())&&(c=Ih(e)),e.eat(125))return{type:"Field",index:o,name:c,start:i,end:e.pos};throw e.error("Expecting }")}e.pos=i}function Ih(e){let r=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))r.push(e.pos);else if(e.eat(125)){if(!r.length){e.pos--;break}r.pop()}else e.pos++;if(r.length)throw e.pos=r.pop(),e.error("Expecting }");return e.current()}function jb(e,r){let i=om(e);return!i||r.quote||r.expression?!1:!r.attribute||i==="equal"}function qb(e,r){return Wr(e)&&!r.expression}function Wb(e,r){return e===42&&!r.attribute&&!r.expression}function im(e){if(e===40||e===41)return"group";if(e===91||e===93)return"attribute";if(e===123||e===125)return"expression"}function om(e){return e===62&&"child"||e===43&&"sibling"||e===94&&"climb"||e===46&&"class"||e===35&&"id"||e===47&&"close"||e===61&&"equal"||void 0}function Bb(e){return e===123||e===91||e===40}function Hb(e){return Qg(e)||e===45||e===58||e===33}var Ub={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},Fh={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return e.context==="attribute"?e.open?"[":"]":e.context==="expression"?e.open?"{":"}":e.open?"(":"}"},Operator(e){return Ub[e.operator]},Field(e,r){return e.index!=null?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?r.getVariable(e.name):""},RepeaterPlaceholder(e,r){let i;for(let o=r.repeaters.length-1;o>=0;o--)if(r.repeaters[o].implicit){i=r.repeaters[o];break}return r.inserted=!0,r.getText(i&&i.value)},RepeaterNumber(e,r){let i=1,o=r.repeaters.length-1,c=r.repeaters[o];if(c&&(i=e.reverse?e.base+c.count-c.value-1:e.base+c.value,e.parent)){let m=Math.max(0,o-e.parent);if(m!==o){let x=r.repeaters[m];i+=c.count*x.value}}let d=String(i);for(;d.length<e.size;)d="0"+d;return d},WhiteSpace(e){return e.value}};function am(e,r){if(!Fh[e.type])throw new Error(`Unknown token ${e.type}`);return Fh[e.type](e,r)}var Kb=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Vb=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function Gb(e,r={}){let i=!1,o;r.text&&(Array.isArray(r.text)?o=r.text.filter(d=>d.trim()):o=r.text);let c={type:"Abbreviation",children:Dp(e,{inserted:!1,repeaters:[],text:r.text,cleanText:o,repeatGuard:r.maxRepeat||Number.POSITIVE_INFINITY,getText(d){var m;i=!0;let x;if(Array.isArray(r.text)){if(d!==void 0&&d>=0&&d<o.length)return o[d];x=d!==void 0?r.text[d]:r.text.join(`
`)}else x=(m=r.text)!==null&&m!==void 0?m:"";return x},getVariable(d){let m=r.variables&&r.variables[d];return m??d}})};if(r.text!=null&&!i){let d=td(Cs(c.children));if(d){let m=Array.isArray(r.text)?r.text.join(`
`):r.text;cm(d,m),d.name==="a"&&r.href&&Xb(d,m)}}return c}function sm(e,r){let i=[];if(e.repeat){let o=e.repeat,c=Object.assign({},o);c.count=c.implicit&&Array.isArray(r.text)?r.cleanText.length:c.count||1;let d;r.repeaters.push(c);for(let m=0;m<c.count;m++){if(c.value=m,e.repeat=c,d=Rh(e)?Dp(e,r):zh(e,r),c.implicit&&!r.inserted){let x=Cs(d),S=x&&td(x);S&&cm(S,r.getText(c.value))}if(i=i.concat(d),--r.repeatGuard<=0)break}r.repeaters.pop(),e.repeat=o,c.implicit&&(r.inserted=!0)}else i=i.concat(Rh(e)?Dp(e,r):zh(e,r));return i}function zh(e,r){let i=[],o={type:"AbbreviationNode",name:e.name&&lm(e.name,r),value:e.value&&um(e.value,r),attributes:void 0,children:i,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose},c=[o];for(let d of e.elements)i=i.concat(sm(d,r));if(e.attributes){o.attributes=[];for(let d of e.attributes)o.attributes.push(Qb(d,r))}return!o.name&&!o.attributes&&o.value&&!o.value.some(fm)?c=c.concat(i):o.children=i,c}function Dp(e,r){let i=[];for(let o of e.elements)i=i.concat(sm(o,r));return e.repeat&&(i=Yb(i,e.repeat)),i}function Qb(e,r){let i=!1,o=!1,c=e.expression?"expression":"raw",d,m=e.name&&lm(e.name,r);if(m&&m[0]==="!"&&(i=!0),m&&m[m.length-1]==="."&&(o=!0),e.value){let x=e.value.slice();if(Ff(x[0])){let S=x.shift();x.length&&Cs(x).type===S.type&&x.pop(),c=S.single?"singleQuote":"doubleQuote"}else nn(x[0],"expression",!0)&&(c="expression",x.shift(),nn(Cs(x),"expression",!1)&&x.pop());d=um(x,r)}return{name:o||i?m.slice(i?1:0,o?-1:void 0):m,value:d,boolean:o,implied:i,valueType:c}}function lm(e,r){let i="";for(let o=0;o<e.length;o++)i+=am(e[o],r);return i}function um(e,r){let i=[],o="";for(let c=0,d;c<e.length;c++)d=e[c],fm(d)?(o&&(i.push(o),o=""),i.push(d)):o+=am(d,r);return o&&i.push(o),i}function Rh(e){return e.type==="TokenGroup"}function fm(e){return typeof e=="object"&&e.type==="Field"&&e.index!=null}function Cs(e){return e[e.length-1]}function td(e){return e.children.length?td(Cs(e.children)):e}function cm(e,r){e.value?typeof Cs(e.value)=="string"?e.value[e.value.length-1]+=r:e.value.push(r):e.value=[r]}function Xb(e,r){var i;let o="";Kb.test(r)?(o=r,!/\w+:/.test(o)&&!o.startsWith("//")&&(o=`http://${o}`)):Vb.test(r)&&(o=`mailto:${r}`);let c=(i=e.attributes)===null||i===void 0?void 0:i.find(d=>d.name==="href");c?c.value||(c.value=[o]):e.attributes=[{name:"href",value:[o],valueType:"doubleQuote"}]}function Yb(e,r){for(let i of e)i.repeat||(i.repeat=Object.assign({},r));return e}function pm(e,r){try{let i=typeof e=="string"?rm(e):e;return Gb(Yg(i,r),r)}catch(i){throw i instanceof Yl&&typeof e=="string"&&(i.message+=`
${e}
${"-".repeat(i.pos)}^`),i}}function dm(e,r){let i=0,o,c=new wn(e),d=[];for(;!c.eof();){if(o=hm(c,i===0&&!r),!o)throw c.error("Unexpected character");if(o.type==="Bracket"&&(!i&&o.open&&p0(c,d),i+=o.open?1:-1,i<0))throw c.error("Unexpected bracket",o.start);d.push(o),c0(o)&&(o=gm(c))&&d.push(o)}return d}function hm(e,r){return Zb(e)||e0(e)||r0(e)||t0(e)||i0(e)||gm(e)||n0(e)||Jb(e,r)}function Zb(e){let r=e.pos;if(e.eat(36)&&e.eat(123)){e.start=e.pos;let i,o="";if(e.eatWhile(lr)?(i=Number(e.current()),o=e.eat(58)?jh(e):""):iu(e.peek())&&(o=jh(e)),e.eat(125))return{type:"Field",index:i,name:o,start:r,end:e.pos};throw e.error("Expecting }")}e.pos=r}function jh(e){let r=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))r.push(e.pos);else if(e.eat(125)){if(!r.length){e.pos--;break}r.pop()}else e.pos++;if(r.length)throw e.pos=r.pop(),e.error("Expecting }");return e.current()}function Jb(e,r){let i=e.pos;if(e.eat(a0)?e.eatWhile(i?qh:gp):e.eat(ec)?e.eatWhile(r?gp:qh):(e.eat(46),e.eatWhile(gp)),i!==e.pos)return e.start=i,rd(e,e.start=i)}function rd(e,r=e.start,i=e.pos){return{type:"Literal",value:e.substring(r,i),start:r,end:i}}function e0(e){let r=e.pos;if(o0(e)){e.start=r;let i=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(ec),{type:"NumberValue",value:Number(i),rawValue:i,unit:e.current(),start:r,end:e.pos}}}function t0(e){let r=e.peek(),i=e.pos,o=!1;if(ho(r)){for(e.pos++;!e.eof();)if(e.eat(r)){o=!0;break}else e.pos++;return e.start=i,{type:"StringValue",value:e.substring(i+1,e.pos-(o?1:0)),quote:r===39?"single":"double",start:i,end:e.pos}}}function r0(e){let r=e.pos;if(e.eat(35)){let i=e.pos,o="",c="";if(e.eatWhile(l0)?(o=e.substring(i,e.pos),c=hp(e)):e.eat(116)?(o="0",c=hp(e)||"0"):c=hp(e),o||c||e.eof()){let{r:d,g:m,b:x,a:S}=f0(o,c);return{type:"ColorValue",r:d,g:m,b:x,a:S,raw:e.substring(r+1,e.pos),start:r,end:e.pos}}else return rd(e,r)}e.pos=r}function hp(e){let r=e.pos;return e.eat(46)?(e.start=r,e.eatWhile(lr)?e.current():"1"):""}function n0(e){let r=e.pos;if(e.eatWhile(Wr))return{type:"WhiteSpace",start:r,end:e.pos}}function i0(e){let r=e.peek();if(u0(r))return{type:"Bracket",open:r===40,start:e.pos++,end:e.pos}}function gm(e){let r=s0(e.peek());if(r)return{type:"Operator",operator:r,start:e.pos++,end:e.pos}}function o0(e){let r=e.pos;e.eat(45);let i=e.pos,o=e.eatWhile(lr),c=e.pos;if(e.eat(46)){let d=e.eatWhile(lr);!o&&!d&&(e.pos=c)}return e.pos===i&&(e.pos=r),e.pos!==r}function a0(e){return e===64||e===36}function s0(e){return e===43&&"+"||e===33&&"!"||e===44&&","||e===58&&":"||e===45&&"-"||void 0}function l0(e){return lr(e)||iu(e,65,70)}function qh(e){return Qg(e)||e===45}function u0(e){return e===40||e===41}function gp(e){return ec(e)||e===37||e===47}function f0(e,r){let i="0",o="0",c="0",d=Number(r!=null&&r!==""?r:1);if(e==="t")d=0;else switch(e.length){case 0:break;case 1:i=o=c=e+e;break;case 2:i=o=c=e;break;case 3:i=e[0]+e[0],o=e[1]+e[1],c=e[2]+e[2];break;default:e+=e,i=e.slice(0,2),o=e.slice(2,4),c=e.slice(4,6)}return{r:parseInt(i,16),g:parseInt(o,16),b:parseInt(c,16),a:d}}function c0(e){return e.type==="ColorValue"||e.type==="NumberValue"&&!e.unit}function p0(e,r){let i=0,o=0;for(;r.length;){let c=d0(r);if(c.type==="Literal"||c.type==="NumberValue")i=c.start,o||(o=c.end),r.pop();else break}i!==o&&r.push(rd(e,i,o))}function d0(e){return e[e.length-1]}function h0(e){return{tokens:e,start:0,pos:0,size:e.length}}function rc(e){return e.tokens[e.pos]}function nc(e){return e.pos<e.size}function _i(e,r){return r(rc(e))?(e.pos++,!0):!1}function mm(e,r,i=rc(e)){i&&i.start!=null&&(r+=` at ${i.start}`);let o=new Error(r);return o.pos=i&&i.start,o}function vm(e,r={}){let i=h0(e),o=[],c;for(;nc(i);)if(c=g0(i,r))o.push(c);else if(!_i(i,b0))throw mm(i,"Unexpected token");return o}function g0(e,r){let i,o=!1,c,d=[],m=rc(e),x=!!r.value;for(!x&&nd(m)&&!_0(e)&&(e.pos++,i=m.value,_i(e,wm)),x&&_i(e,id);nc(e);)if(_i(e,w0))o=!0;else if(c=ym(e,x))d.push(c);else if(!_i(e,x0))break;if(i||d.length||o)return{name:i,value:d,important:o}}function ym(e,r){let i=[],o,c;for(;nc(e);)if(o=rc(e),k0(o))e.pos++,nd(o)&&(c=m0(e))?i.push({type:"FunctionCall",name:o.value,arguments:c}):i.push(o);else if(wm(o)||r&&id(o))e.pos++;else break;return i.length?{type:"CSSValue",value:i}:void 0}function m0(e){let r=e.pos;if(_i(e,v0)){let i=[],o;for(;nc(e)&&!_i(e,y0);)if(o=ym(e,!0))i.push(o);else if(!_i(e,id)&&!_i(e,xm))throw mm(e,"Unexpected token");return e.start=r,i}}function nd(e){return e&&e.type==="Literal"}function bm(e,r){return e&&e.type==="Bracket"&&(r==null||e.open===r)}function v0(e){return bm(e,!0)}function y0(e){return bm(e,!1)}function id(e){return e&&e.type==="WhiteSpace"}function Zl(e,r){return e&&e.type==="Operator"&&(!r||e.operator===r)}function b0(e){return Zl(e,"+")}function xm(e){return Zl(e,",")}function x0(e){return xm(e)}function w0(e){return Zl(e,"!")}function k0(e){return e.type==="StringValue"||e.type==="ColorValue"||e.type==="NumberValue"||e.type==="Literal"||e.type==="Field"}function wm(e){return Zl(e,":")||Zl(e,"-")}function _0(e){let r=e.tokens[e.pos],i=e.tokens[e.pos+1];return r&&i&&nd(r)&&i.type==="Bracket"}function km(e,r){try{let i=typeof e=="string"?dm(e,r&&r.value):e;return vm(i,r)}catch(i){throw i instanceof Yl&&typeof e=="string"&&(i.message+=`
${e}
${"-".repeat(i.pos)}^`),i}}var _m={mark:!0,preview:!0,autoRenameTags:!0,markTagPairs:!0,previewOpenTag:!1,attributeQuotes:"double",markupStyle:"html",comments:!1,commentsTemplate:"<!-- /[#ID][.CLASS] -->",bem:!1};function wo(e,r){return r||(r=e.getOption("emmet")),Object.assign(Object.assign({},_m),r)}var Sm={escape:92,throws:!1};function Vn(e){return e>47&&e<58}function ou(e,r,i){return r=r||65,i=i||90,e&=-33,e>=r&&e<=i}function Cm(e){return Vn(e)||ic(e)}function ic(e){return e===95||ou(e)}function S0(e){return e===32||e===9||e===160}function kn(e){return S0(e)||e===10||e===13}function oc(e,r){r=Object.assign(Object.assign({},Sm),r);let i=e.pos,o=e.peek();if(e.eat(go)){for(;!e.eof();)switch(e.next()){case o:return e.start=i,!0;case r.escape:e.next();break}if(e.pos=i,r.throws)throw e.error("Unable to consume quoted string")}return!1}function go(e){return e===39||e===34}function Lf(e,r,i,o){o=Object.assign(Object.assign({},Sm),o);let c=e.pos;if(e.eat(r)){let d=1,m;for(;!e.eof();)if(!oc(e,o))if(m=e.next(),m===r)d++;else if(m===i){if(d--,!d)return e.start=c,!0}else m===o.escape&&e.next();if(e.pos=c,o.throws)throw e.error(`Unable to find matching pair for ${String.fromCharCode(r)}`)}return!1}var mo=class e{constructor(r,i,o){o==null&&typeof r=="string"&&(o=r.length),this.string=r,this.pos=this.start=i||0,this.end=o||0}eof(){return this.pos>=this.end}limit(r,i){return new e(this.string,r,i)}peek(){return this.string.charCodeAt(this.pos)}next(){if(this.pos<this.string.length)return this.string.charCodeAt(this.pos++)}eat(r){let i=this.peek(),o=typeof r=="function"?r(i):i===r;return o&&this.next(),o}eatWhile(r){let i=this.pos;for(;!this.eof()&&this.eat(r););return this.pos!==i}backUp(r){this.pos-=r||1}current(){return this.substring(this.start,this.pos)}substring(r,i){return this.string.slice(r,i)}error(r,i=this.pos){return new Jl(`${r} at ${i+1}`,i,this.string)}},Jl=class extends Error{constructor(r,i,o){super(r),this.pos=i,this.string=o}},C0={xml:!1,allTokens:!1,special:{style:null,script:["","text/javascript","application/x-javascript","javascript","typescript","ts","coffee","coffeescript"]},empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]},Gl={throws:!1};function Tm(e={}){return Object.assign(Object.assign({},C0),e)}function Oi(e){return e.split("").map(r=>r.charCodeAt(0))}function ma(e,r){let i=e.pos;for(let o=0;o<r.length;o++)if(!e.eat(r[o]))return e.pos=i,!1;return e.start=i,!0}function $m(e,r,i,o){let c=e.pos;if(ma(e,r)){for(;!e.eof();){if(ma(e,i))return e.start=c,!0;e.pos++}return o?(e.start=c,!0):(e.pos=c,!1)}return e.pos=c,!1}function Lm(e){return ou(e)||e===58||e===95||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191}function T0(e){return Lm(e)||e===45||e===46||Vn(e)||e===183||e>=768&&e<=879}function Rf(e){let r=e.pos;return e.eat(Lm)?(e.eatWhile(T0),e.start=r,!0):!1}function Am(e){return e===62||e===47}function $0(e){return!isNaN(e)&&!go(e)&&!kn(e)&&!Am(e)}function Om(e){return Lf(e,60,62,Gl)||Lf(e,40,41,Gl)||Lf(e,91,93,Gl)||Lf(e,123,125,Gl)}function L0(e){return go(e.charCodeAt(0))&&(e=e.slice(1)),go(e.charCodeAt(e.length-1))&&(e=e.slice(0,-1)),e}function au(e,r){let i=[],o=0,c=e.length;r&&(o=r.length+1,c-=e.slice(-2)==="/>"?2:1);let d=new mo(e,o,c);for(;!d.eof();)if(d.eatWhile(kn),Nm(d)){let m={name:d.current(),nameStart:d.start,nameEnd:d.pos};d.eat(61)&&Em(d)&&(m.value=d.current(),m.valueStart=d.start,m.valueEnd=d.pos),i.push(m)}else d.pos++;return i}function Nm(e){let r=e.pos;return e.eat(42)||e.eat(35)?(Rf(e),e.start=r,!0):Om(e)||Rf(e)}function Em(e){return oc(e,Gl)||Om(e)||O0(e)}function A0(e,r){for(let i=0;i<e.length;i++){let o=e[i];if(o.name===r)return o.value&&L0(o.value)}}function O0(e){let r=e.pos;if(e.eatWhile($0))return e.start=r,!0}var N0=Oi("<![CDATA["),E0=Oi("]]>"),M0=Oi("<!--"),P0=Oi("-->"),D0=Oi("<?"),I0=Oi("?>"),F0=Oi("<%"),z0=Oi("%>");function su(e,r,i){let o=new mo(e),c=i?i.special:null,d=i?i.allTokens:!1,m,x,S,A,T,D=!1,E=null;for(;!o.eof();){let U=o.pos;if(q0(o)){if(d&&r("#cdata",4,o.start,o.pos)===!1)break}else if(W0(o)){if(d&&r("#comment",6,o.start,o.pos)===!1)break}else if(H0(o)){if(d&&r("#erb",7,o.start,o.pos)===!1)break}else if(E=B0(o)){if(d&&r(E,5,o.start,o.pos)===!1)break}else if(o.eat(60)){if(m=o.eat(47)?2:1,S=o.pos,Rf(o)&&(A=o.pos,m!==2&&(R0(o),o.eatWhile(kn),o.eat(47)&&(m=3)),o.eat(62))){if(x=o.substring(S,A),r(x,m,U,o.pos)===!1)break;if(m===1&&c&&U0(c,x,e,U,o.pos)){for(T=Oi(x),D=!1;!o.eof();){if(j0(o,T)){D=!0;break}o.pos++}if(D&&r(x,2,o.start,o.pos)===!1)break}}}else o.pos++}}function R0(e){for(;!e.eof();)if(e.eatWhile(kn),Nm(e))e.eat(61)&&Em(e);else{if(Am(e.peek()))break;e.pos++}}function j0(e,r){let i=e.pos;return e.eat(60)&&e.eat(47)&&ma(e,r)&&e.eat(62)?(e.start=i,!0):(e.pos=i,!1)}function q0(e){return $m(e,N0,E0,!0)}function W0(e){return $m(e,M0,P0,!0)}function B0(e){let r=e.pos;if(ma(e,D0)&&Rf(e)){let i=e.current();for(;!e.eof()&&!ma(e,I0);)oc(e)||e.pos++;return e.start=r,i}return e.pos=r,null}function H0(e){let r=e.pos;if(ma(e,F0)){for(;!e.eof()&&!ma(e,z0);)oc(e)||e.pos++;return e.start=r,!0}return e.pos=r,!1}function U0(e,r,i,o,c){if(r in e){let d=e[r];if(!Array.isArray(d))return!0;let m=au(i.substring(o+r.length+1,c-1));return d.includes(A0(m,"type")||"")}return!1}function od(e,r){let i=new mo(e),o={start:-1,end:-1,propertyStart:-1,propertyEnd:-1,propertyDelimiter:-1,expression:0},c,d=(m,x=i.start,S=o.start,A=o.end)=>r(m,S,A,x)===!1;for(;!i.eof();)if(!(V0(i)||K0(i)))if(i.start=i.pos,(c=i.eat(125))||i.eat(59)){if(o.propertyStart!==-1){if(d("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd)||(o.start===-1&&(o.start=o.end=i.start),d("propertyValue")))return}else if(o.start!==-1&&d("propertyName"))return;if(c&&(o.start=i.start,o.end=i.pos,d("blockEnd")))return;Wh(o)}else if(i.eat(123)){if(o.start===-1&&o.propertyStart===-1&&(o.start=o.end=i.pos),o.propertyStart!==-1&&(o.start=o.propertyStart),d("selector"))return;Wh(o)}else i.eat(58)&&!G0(i,o)?(o.propertyStart===-1&&(o.propertyStart=o.start),o.propertyEnd=o.end,o.propertyDelimiter=i.pos-1,o.start=o.end=-1):(o.start===-1&&(o.start=i.pos),i.eat(40)?o.expression++:i.eat(41)?o.expression--:Mm(i)||i.pos++,o.end=i.pos);o.propertyStart!==-1&&d("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd)||o.start!==-1&&d(o.propertyStart!==-1?"propertyValue":"propertyName",-1)}function K0(e){return e.eatWhile(kn)}function V0(e){let r=e.pos;if(e.eat(47)&&e.eat(42)){for(e.start=r;!e.eof();){if(e.eat(42)){if(e.eat(47))return!0;continue}e.pos++}return!0}else e.pos=r;return!1}function Mm(e){let r=e.peek();if(go(r)){for(e.start=e.pos++;!e.eof()&&!(e.eat(r)||e.eat(10)||e.eat(13));)e.eat(92),e.pos++;return!0}}function Wh(e){e.start=e.end=e.propertyStart=e.propertyEnd=e.propertyDelimiter=-1}function G0(e,r){return r.expression||e.eatWhile(58)}var Q0=[43,47,42,44];function Pm(e,r=0){let i=-1,o=0,c=0,d=[],m=new mo(e);for(;!m.eof();)c=m.pos,m.eat(kn)||m.eat(X0)||Y0(m)?(!o&&i!==-1&&(d.push([r+i,r+c]),i=-1),m.eatWhile(kn)):(i===-1&&(i=m.pos),m.eat(40)?o++:m.eat(41)?o--:Mm(m)||m.pos++);return i!==-1&&i!==m.pos&&d.push([r+i,r+m.pos]),d}function X0(e){return Q0.includes(e)}function Y0(e){let r=e.pos;return e.eat(45)&&e.eat(kn)?!0:(e.pos=r,!1)}function Z0(e){return{tokens:e,start:0,pos:0,size:e.length}}function ba(e){return e.tokens[e.pos]}function ad(e){return e.tokens[e.pos++]}function xs(e,r=e.start,i=e.pos){return e.tokens.slice(r,i)}function $i(e){return e.pos<e.size}function sr(e,r){let i=ba(e);return i&&r(i)?(e.pos++,!0):!1}function sd(e,r,i=ba(e)){i&&i.start!=null&&(r+=` at ${i.start}`);let o=new Error(r);return o.pos=i&&i.start,o}function J0(e,r={}){let i=Z0(e),o=Dm(i,r);if($i(i))throw sd(i,"Unexpected character");return o}function Dm(e,r){let i={type:"TokenGroup",elements:[]},o=i,c,d=[];for(;$i(e)&&(c=tx(e,r)||ex(e,r));)if(o.elements.push(c),sr(e,gx))d.push(o),o=c;else{if(sr(e,mx))continue;if(sr(e,Kh))do d.length&&(o=d.pop());while(sr(e,Kh))}return i}function ex(e,r){if(sr(e,dx)){let i=Dm(e,r),o=ad(e);return on(o,"group",!1)&&(i.repeat=ix(e)),i}}function tx(e,r){let i,o={type:"TokenElement",name:void 0,attributes:void 0,value:void 0,repeat:void 0,selfClose:!1,elements:[]};for(ox(e,r)&&(o.name=xs(e));$i(e);)if(e.start=e.pos,!o.repeat&&!mp(o)&&sr(e,qf))o.repeat=e.tokens[e.pos-1];else if(!o.value&&Im(e))o.value=Fm(e);else if(i=Bh(e,"id",r)||Bh(e,"class",r)||rx(e))o.attributes?o.attributes=o.attributes.concat(i):o.attributes=Array.isArray(i)?i.slice():[i];else{!mp(o)&&sr(e,vx)&&(o.selfClose=!0,!o.repeat&&sr(e,qf)&&(o.repeat=e.tokens[e.pos-1]));break}return mp(o)?void 0:o}function rx(e){if(sr(e,fx)){let r=[],i;for(;$i(e);)if(i=nx(e))r.push(i);else{if(sr(e,cx))break;if(!sr(e,zm))throw sd(e,`Unexpected "${ba(e).type}" token`)}return r}}function Bh(e,r,i){if(ko(ba(e),r)){e.pos++;let o={name:[hx(r)]};return i.jsx&&Im(e)?(o.value=Fm(e),o.expression=!0):o.value=Ip(e)?xs(e):void 0,o}}function nx(e){if(Hh(e))return{value:xs(e)};if(Ip(e,!0))return{name:xs(e),value:sr(e,ax)&&(Hh(e)||Ip(e,!0))?xs(e):void 0}}function ix(e){return qf(ba(e))?e.tokens[e.pos++]:void 0}function Hh(e){let r=e.pos,i=ba(e);if(jf(i)){for(e.pos++;$i(e);)if(jf(ad(e),i.single))return e.start=r,!0;throw sd(e,"Unclosed quote",i)}return!1}function Ip(e,r){let i=e.pos,o={attribute:0,expression:0,group:0};for(;$i(e);){let c=ba(e);if(o.expression)on(c,"expression")&&(o[c.context]+=c.open?1:-1);else{if(jf(c)||ko(c)||zm(c)||qf(c))break;if(on(c)){if(!r)break;if(c.open)o[c.context]++;else if(o[c.context])o[c.context]--;else break}}e.pos++}return i!==e.pos?(e.start=i,!0):!1}function ox(e,r){let i=e.pos;if(r.jsx&&sr(e,Uh))for(;$i(e);){let{pos:o}=e;if(!sr(e,ux)||!sr(e,Uh)){e.pos=o;break}}for(;$i(e)&&sr(e,lx););return e.pos!==i?(e.start=i,!0):!1}function Im(e){let r=e.pos;if(sr(e,px)){let i=0;for(;$i(e);){let o=ad(e);if(on(o,"expression"))if(o.open)i++;else if(i)i--;else break}return e.start=r,!0}return!1}function Fm(e){let r=e.start,i=e.pos;return on(e.tokens[r],"expression",!0)&&r++,on(e.tokens[i-1],"expression",!1)&&i--,xs(e,r,i)}function on(e,r,i){return!!(e&&e.type==="Bracket"&&(!r||e.context===r)&&(i==null||e.open===i))}function ko(e,r){return!!(e&&e.type==="Operator"&&(!r||e.operator===r))}function jf(e,r){return!!(e&&e.type==="Quote"&&(r==null||e.single===r))}function zm(e){return!!(e&&e.type==="WhiteSpace")}function ax(e){return ko(e,"equal")}function qf(e){return!!(e&&e.type==="Repeater")}function sx(e){return e.type==="Literal"}function Uh(e){if(sx(e)){let r=e.value.charCodeAt(0);return r>=65&&r<=90}return!1}function lx(e){return e.type==="Literal"||e.type==="RepeaterNumber"||e.type==="RepeaterPlaceholder"}function ux(e){return ko(e,"class")}function fx(e){return on(e,"attribute",!0)}function cx(e){return on(e,"attribute",!1)}function px(e){return on(e,"expression",!0)}function dx(e){return on(e,"group",!0)}function hx(e){return{type:"Literal",value:e}}function mp(e){return!e.name&&!e.value&&!e.attributes}function gx(e){return ko(e,"child")}function mx(e){return ko(e,"sibling")}function Kh(e){return ko(e,"climb")}function vx(e){return ko(e,"close")}function yx(e){return e.eat(92)?(e.start=e.pos,e.eof()||e.pos++,!0):!1}function bx(e){let r=new mo(e),i=[],o={group:0,attribute:0,expression:0,quote:0},c=0,d;for(;!r.eof();)if(c=r.peek(),d=xx(r,o),d)i.push(d),d.type==="Quote"?o.quote=c===o.quote?0:c:d.type==="Bracket"&&(o[d.context]+=d.open?1:-1);else throw r.error("Unexpected character");return i}function xx(e,r){return Ax(e,r)||$x(e)||Lx(e)||Tx(e)||kx(e)||wx(e,r)||Cx(e)||_x(e)||Sx(e)}function wx(e,r){let i=e.pos,o="";for(;!e.eof();){if(yx(e)){o+=e.current();continue}let c=e.peek();if(c===r.quote||c===36||Ox(c,r)||r.expression&&c===125||!r.quote&&!r.expression&&(!r.attribute&&!Px(c)||Nx(c,r)||Ex(c,r)||go(c)||Rm(c)))break;o+=e.string[e.pos++]}if(i!==e.pos)return e.start=i,{type:"Literal",value:o,start:i,end:e.pos}}function kx(e){let r=e.pos;if(e.eatWhile(kn))return{type:"WhiteSpace",start:r,end:e.pos,value:e.substring(r,e.pos)}}function _x(e){let r=e.peek();if(go(r))return{type:"Quote",single:r===39,start:e.pos++,end:e.pos}}function Sx(e){let r=e.peek(),i=Rm(r);if(i)return{type:"Bracket",open:Mx(r),context:i,start:e.pos++,end:e.pos}}function Cx(e){let r=jm(e.peek());if(r)return{type:"Operator",operator:r,start:e.pos++,end:e.pos}}function Tx(e){let r=e.pos;if(e.eat(42)){e.start=e.pos;let i=1,o=!1;return e.eatWhile(Vn)?i=Number(e.current()):o=!0,{type:"Repeater",count:i,value:0,implicit:o,start:r,end:e.pos}}}function $x(e){let r=e.pos;if(e.eat(36)&&e.eat(35))return{type:"RepeaterPlaceholder",value:void 0,start:r,end:e.pos};e.pos=r}function Lx(e){let r=e.pos;if(e.eatWhile(36)){let i=e.pos-r,o=!1,c=1,d=0;if(e.eat(64)){for(;e.eat(94);)d++;o=e.eat(45),e.start=e.pos,e.eatWhile(Vn)&&(c=Number(e.current()))}return e.start=r,{type:"RepeaterNumber",size:i,reverse:o,base:c,parent:d,start:r,end:e.pos}}}function Ax(e,r){let i=e.pos;if((r.expression||r.attribute)&&e.eat(36)&&e.eat(123)){e.start=e.pos;let o,c="";if(e.eatWhile(Vn)?(o=Number(e.current()),c=e.eat(58)?Vh(e):""):ou(e.peek())&&(c=Vh(e)),e.eat(125))return{type:"Field",index:o,name:c,start:i,end:e.pos};throw e.error("Expecting }")}e.pos=i}function Vh(e){let r=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))r.push(e.pos);else if(e.eat(125)){if(!r.length){e.pos--;break}r.pop()}else e.pos++;if(r.length)throw e.pos=r.pop(),e.error("Expecting }");return e.current()}function Ox(e,r){let i=jm(e);return!i||r.quote||r.expression?!1:!r.attribute||i==="equal"}function Nx(e,r){return kn(e)&&!r.expression}function Ex(e,r){return e===42&&!r.attribute&&!r.expression}function Rm(e){if(e===40||e===41)return"group";if(e===91||e===93)return"attribute";if(e===123||e===125)return"expression"}function jm(e){return e===62&&"child"||e===43&&"sibling"||e===94&&"climb"||e===46&&"class"||e===35&&"id"||e===47&&"close"||e===61&&"equal"||void 0}function Mx(e){return e===123||e===91||e===40}function Px(e){return Cm(e)||e===45||e===58||e===33}var Dx={child:">",class:".",climb:"^",id:"#",equal:"=",close:"/",sibling:"+"},Gh={Literal(e){return e.value},Quote(e){return e.single?"'":'"'},Bracket(e){return e.context==="attribute"?e.open?"[":"]":e.context==="expression"?e.open?"{":"}":e.open?"(":"}"},Operator(e){return Dx[e.operator]},Field(e,r){return e.index!=null?e.name?`\${${e.index}:${e.name}}`:`\${${e.index}`:e.name?r.getVariable(e.name):""},RepeaterPlaceholder(e,r){let i;for(let o=r.repeaters.length-1;o>=0;o--)if(r.repeaters[o].implicit){i=r.repeaters[o];break}return r.inserted=!0,r.getText(i&&i.value)},RepeaterNumber(e,r){let i=1,o=r.repeaters.length-1,c=r.repeaters[o];if(c&&(i=e.reverse?e.base+c.count-c.value-1:e.base+c.value,e.parent)){let m=Math.max(0,o-e.parent);if(m!==o){let x=r.repeaters[m];i+=c.count*x.value}}let d=String(i);for(;d.length<e.size;)d="0"+d;return d},WhiteSpace(e){return e.value}};function qm(e,r){if(!Gh[e.type])throw new Error(`Unknown token ${e.type}`);return Gh[e.type](e,r)}var Ix=/^((https?:|ftp:|file:)?\/\/|(www|ftp)\.)[^ ]*$/,Fx=/^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,5}$/;function zx(e,r={}){let i=!1,o;r.text&&(Array.isArray(r.text)?o=r.text.filter(d=>d.trim()):o=r.text);let c={type:"Abbreviation",children:Fp(e,{inserted:!1,repeaters:[],text:r.text,cleanText:o,repeatGuard:r.maxRepeat||Number.POSITIVE_INFINITY,getText(d){var m;i=!0;let x;if(Array.isArray(r.text)){if(d!==void 0&&d>=0&&d<o.length)return o[d];x=d!==void 0?r.text[d]:r.text.join(`
`)}else x=(m=r.text)!==null&&m!==void 0?m:"";return x},getVariable(d){let m=r.variables&&r.variables[d];return m??d}})};if(r.text!=null&&!i){let d=ld(Ts(c.children));if(d){let m=Array.isArray(r.text)?r.text.join(`
`):r.text;Km(d,m),d.name==="a"&&r.href&&jx(d,m)}}return c}function Wm(e,r){let i=[];if(e.repeat){let o=e.repeat,c=Object.assign({},o);c.count=c.implicit&&Array.isArray(r.text)?r.cleanText.length:c.count||1;let d;r.repeaters.push(c);for(let m=0;m<c.count;m++){if(c.value=m,e.repeat=c,d=Xh(e)?Fp(e,r):Qh(e,r),c.implicit&&!r.inserted){let x=Ts(d),S=x&&ld(x);S&&Km(S,r.getText(c.value))}if(i=i.concat(d),--r.repeatGuard<=0)break}r.repeaters.pop(),e.repeat=o,c.implicit&&(r.inserted=!0)}else i=i.concat(Xh(e)?Fp(e,r):Qh(e,r));return i}function Qh(e,r){let i=[],o={type:"AbbreviationNode",name:e.name&&Bm(e.name,r),value:e.value&&Hm(e.value,r),attributes:void 0,children:i,repeat:e.repeat&&Object.assign({},e.repeat),selfClosing:e.selfClose},c=[o];for(let d of e.elements)i=i.concat(Wm(d,r));if(e.attributes){o.attributes=[];for(let d of e.attributes)o.attributes.push(Rx(d,r))}return!o.name&&!o.attributes&&o.value&&!o.value.some(Um)?c=c.concat(i):o.children=i,c}function Fp(e,r){let i=[];for(let o of e.elements)i=i.concat(Wm(o,r));return e.repeat&&(i=qx(i,e.repeat)),i}function Rx(e,r){let i=!1,o=!1,c=e.expression?"expression":"raw",d,m=e.name&&Bm(e.name,r);if(m&&m[0]==="!"&&(i=!0),m&&m[m.length-1]==="."&&(o=!0),e.value){let x=e.value.slice();if(jf(x[0])){let S=x.shift();x.length&&Ts(x).type===S.type&&x.pop(),c=S.single?"singleQuote":"doubleQuote"}else on(x[0],"expression",!0)&&(c="expression",x.shift(),on(Ts(x),"expression",!1)&&x.pop());d=Hm(x,r)}return{name:o||i?m.slice(i?1:0,o?-1:void 0):m,value:d,boolean:o,implied:i,valueType:c}}function Bm(e,r){let i="";for(let o=0;o<e.length;o++)i+=qm(e[o],r);return i}function Hm(e,r){let i=[],o="";for(let c=0,d;c<e.length;c++)d=e[c],Um(d)?(o&&(i.push(o),o=""),i.push(d)):o+=qm(d,r);return o&&i.push(o),i}function Xh(e){return e.type==="TokenGroup"}function Um(e){return typeof e=="object"&&e.type==="Field"&&e.index!=null}function Ts(e){return e[e.length-1]}function ld(e){return e.children.length?ld(Ts(e.children)):e}function Km(e,r){e.value?typeof Ts(e.value)=="string"?e.value[e.value.length-1]+=r:e.value.push(r):e.value=[r]}function jx(e,r){var i;let o="";Ix.test(r)?(o=r,!/\w+:/.test(o)&&!o.startsWith("//")&&(o=`http://${o}`)):Fx.test(r)&&(o=`mailto:${r}`);let c=(i=e.attributes)===null||i===void 0?void 0:i.find(d=>d.name==="href");c?c.value||(c.value=[o]):e.attributes=[{name:"href",value:[o],valueType:"doubleQuote"}]}function qx(e,r){for(let i of e)i.repeat||(i.repeat=Object.assign({},r));return e}function ud(e,r){try{let i=typeof e=="string"?bx(e):e;return zx(J0(i,r),r)}catch(i){throw i instanceof Jl&&typeof e=="string"&&(i.message+=`
${e}
${"-".repeat(i.pos)}^`),i}}function Wx(e,r){let i=0,o,c=new mo(e),d=[];for(;!c.eof();){if(o=Bx(c,i===0&&!r),!o)throw c.error("Unexpected character");if(o.type==="Bracket"&&(!i&&o.open&&i1(c,d),i+=o.open?1:-1,i<0))throw c.error("Unexpected bracket",o.start);d.push(o),n1(o)&&(o=Vm(c))&&d.push(o)}return d}function Bx(e,r){return Hx(e)||Kx(e)||Gx(e)||Vx(e)||Xx(e)||Vm(e)||Qx(e)||Ux(e,r)}function Hx(e){let r=e.pos;if(e.eat(36)&&e.eat(123)){e.start=e.pos;let i,o="";if(e.eatWhile(Vn)?(i=Number(e.current()),o=e.eat(58)?Yh(e):""):ou(e.peek())&&(o=Yh(e)),e.eat(125))return{type:"Field",index:i,name:o,start:r,end:e.pos};throw e.error("Expecting }")}e.pos=r}function Yh(e){let r=[];for(e.start=e.pos;!e.eof();)if(e.eat(123))r.push(e.pos);else if(e.eat(125)){if(!r.length){e.pos--;break}r.pop()}else e.pos++;if(r.length)throw e.pos=r.pop(),e.error("Expecting }");return e.current()}function Ux(e,r){let i=e.pos;if(e.eat(Zx)?e.eatWhile(i?Zh:yp):e.eat(ic)?e.eatWhile(r?yp:Zh):(e.eat(46),e.eatWhile(yp)),i!==e.pos)return e.start=i,fd(e,e.start=i)}function fd(e,r=e.start,i=e.pos){return{type:"Literal",value:e.substring(r,i),start:r,end:i}}function Kx(e){let r=e.pos;if(Yx(e)){e.start=r;let i=e.current();return e.start=e.pos,e.eat(37)||e.eatWhile(ic),{type:"NumberValue",value:Number(i),rawValue:i,unit:e.current(),start:r,end:e.pos}}}function Vx(e){let r=e.peek(),i=e.pos,o=!1;if(go(r)){for(e.pos++;!e.eof();)if(e.eat(r)){o=!0;break}else e.pos++;return e.start=i,{type:"StringValue",value:e.substring(i+1,e.pos-(o?1:0)),quote:r===39?"single":"double",start:i,end:e.pos}}}function Gx(e){let r=e.pos;if(e.eat(35)){let i=e.pos,o="",c="";if(e.eatWhile(e1)?(o=e.substring(i,e.pos),c=vp(e)):e.eat(116)?(o="0",c=vp(e)||"0"):c=vp(e),o||c||e.eof()){let{r:d,g:m,b:x,a:S}=r1(o,c);return{type:"ColorValue",r:d,g:m,b:x,a:S,raw:e.substring(r+1,e.pos),start:r,end:e.pos}}else return fd(e,r)}e.pos=r}function vp(e){let r=e.pos;return e.eat(46)?(e.start=r,e.eatWhile(Vn)?e.current():"1"):""}function Qx(e){let r=e.pos;if(e.eatWhile(kn))return{type:"WhiteSpace",start:r,end:e.pos}}function Xx(e){let r=e.peek();if(t1(r))return{type:"Bracket",open:r===40,start:e.pos++,end:e.pos}}function Vm(e){let r=Jx(e.peek());if(r)return{type:"Operator",operator:r,start:e.pos++,end:e.pos}}function Yx(e){let r=e.pos;e.eat(45);let i=e.pos,o=e.eatWhile(Vn),c=e.pos;if(e.eat(46)){let d=e.eatWhile(Vn);!o&&!d&&(e.pos=c)}return e.pos===i&&(e.pos=r),e.pos!==r}function Zx(e){return e===64||e===36}function Jx(e){return e===43&&"+"||e===33&&"!"||e===44&&","||e===58&&":"||e===45&&"-"||void 0}function e1(e){return Vn(e)||ou(e,65,70)}function Zh(e){return Cm(e)||e===45}function t1(e){return e===40||e===41}function yp(e){return ic(e)||e===37||e===47}function r1(e,r){let i="0",o="0",c="0",d=Number(r!=null&&r!==""?r:1);if(e==="t")d=0;else switch(e.length){case 0:break;case 1:i=o=c=e+e;break;case 2:i=o=c=e;break;case 3:i=e[0]+e[0],o=e[1]+e[1],c=e[2]+e[2];break;default:e+=e,i=e.slice(0,2),o=e.slice(2,4),c=e.slice(4,6)}return{r:parseInt(i,16),g:parseInt(o,16),b:parseInt(c,16),a:d}}function n1(e){return e.type==="ColorValue"||e.type==="NumberValue"&&!e.unit}function i1(e,r){let i=0,o=0;for(;r.length;){let c=o1(r);if(c.type==="Literal"||c.type==="NumberValue")i=c.start,o||(o=c.end),r.pop();else break}i!==o&&r.push(fd(e,i,o))}function o1(e){return e[e.length-1]}function a1(e){return{tokens:e,start:0,pos:0,size:e.length}}function ac(e){return e.tokens[e.pos]}function sc(e){return e.pos<e.size}function Si(e,r){return r(ac(e))?(e.pos++,!0):!1}function Gm(e,r,i=ac(e)){i&&i.start!=null&&(r+=` at ${i.start}`);let o=new Error(r);return o.pos=i&&i.start,o}function s1(e,r={}){let i=a1(e),o=[],c;for(;sc(i);)if(c=l1(i,r))o.push(c);else if(!Si(i,p1))throw Gm(i,"Unexpected token");return o}function l1(e,r){let i,o=!1,c,d=[],m=ac(e),x=!!r.value;for(!x&&cd(m)&&!m1(e)&&(e.pos++,i=m.value,Si(e,Zm)),x&&Si(e,pd);sc(e);)if(Si(e,h1))o=!0;else if(c=Qm(e,x))d.push(c);else if(!Si(e,d1))break;if(i||d.length||o)return{name:i,value:d,important:o}}function Qm(e,r){let i=[],o,c;for(;sc(e);)if(o=ac(e),g1(o))e.pos++,cd(o)&&(c=u1(e))?i.push({type:"FunctionCall",name:o.value,arguments:c}):i.push(o);else if(Zm(o)||r&&pd(o))e.pos++;else break;return i.length?{type:"CSSValue",value:i}:void 0}function u1(e){let r=e.pos;if(Si(e,f1)){let i=[],o;for(;sc(e)&&!Si(e,c1);)if(o=Qm(e,!0))i.push(o);else if(!Si(e,pd)&&!Si(e,Ym))throw Gm(e,"Unexpected token");return e.start=r,i}}function cd(e){return e&&e.type==="Literal"}function Xm(e,r){return e&&e.type==="Bracket"&&(r==null||e.open===r)}function f1(e){return Xm(e,!0)}function c1(e){return Xm(e,!1)}function pd(e){return e&&e.type==="WhiteSpace"}function eu(e,r){return e&&e.type==="Operator"&&(!r||e.operator===r)}function p1(e){return eu(e,"+")}function Ym(e){return eu(e,",")}function d1(e){return Ym(e)}function h1(e){return eu(e,"!")}function g1(e){return e.type==="StringValue"||e.type==="ColorValue"||e.type==="NumberValue"||e.type==="Literal"||e.type==="Field"}function Zm(e){return eu(e,":")||eu(e,"-")}function m1(e){let r=e.tokens[e.pos],i=e.tokens[e.pos+1];return r&&i&&cd(r)&&i.type==="Bracket"}function dd(e,r){try{let i=typeof e=="string"?Wx(e,r&&r.value):e;return s1(i,r)}catch(i){throw i instanceof Jl&&typeof e=="string"&&(i.message+=`
${e}
${"-".repeat(i.pos)}^`),i}}function v1(e,r){if(!e.attributes)return;let i=[],o={};for(let c of e.attributes)if(c.name){let d=c.name;if(d in o){let m=o[d];d==="class"?m.value=y1(m.value,c.value," "):b1(m,c,r)}else i.push(o[d]=Object.assign({},c))}else i.push(c);e.attributes=i}function y1(e,r,i){if(e&&r){e.length&&i&&Jh(e,i);for(let c of r)Jh(e,c);return e}let o=e||r;return o&&o.slice()}function b1(e,r,i){return e.name=r.name,i.options["output.reverseAttributes"]||(e.value=r.value),e.implied||(e.implied=r.implied),e.boolean||(e.boolean=r.boolean),e.valueType!=="expression"&&(e.valueType=r.valueType),e}function Jh(e,r){let i=e.length-1;typeof e[i]=="string"&&typeof r=="string"?e[i]+=r:e.push(r)}function x1(e,r,i){let o=[e],c=d=>{r(d,o,i),o.push(d),d.children.forEach(c),o.pop()};e.children.forEach(c)}function w1(e){let r;for(;e.children.length;)r=e,e=e.children[e.children.length-1];return{parent:r,node:e}}function Jm(e){return e.type==="AbbreviationNode"}function k1(e,r){let i=[],o=r.options["output.reverseAttributes"],c=d=>{let m=d.name&&r.snippets[d.name];if(!m||i.includes(m))return null;let x=ud(m,r);i.push(m),Wf(x,c),i.pop();for(let S of x.children){if(d.attributes){let A=S.attributes||[],T=d.attributes||[];S.attributes=o?T.concat(A):A.concat(T)}_1(d,S)}return x};return Wf(e,c),e}function Wf(e,r,i){let o=[];for(let c of e.children){let d=r(c);if(d){o=o.concat(d.children);let m=w1(d);Jm(m.node)&&(m.node.children=m.node.children.concat(Wf(c,r)))}else o.push(c),c.children=Wf(c,r)}return e.children=o}function _1(e,r){e.selfClosing&&(r.selfClosing=!0),e.value!=null&&(r.value=e.value),e.repeat&&(r.repeat=e.repeat)}function ev(e,r=0){return{options:e,value:"",level:r,offset:0,line:0,column:0}}function Ht(e,r){let i=e.options["output.text"];nv(e,i(r,e.offset,e.line,e.column))}function bt(e,r){let i=$1(r);for(let o=0,c=i.length-1;o<=c;o++)Ht(e,i[o]),o!==c&&Hn(e,!0)}function Hn(e,r){let i=e.options["output.baseIndent"],o=e.options["output.newline"];Ht(e,o+i),e.line++,e.column=i.length,r&&S1(e,r===!0?e.level:r)}function S1(e,r=e.level){let i=e.options["output.indent"];Ht(e,i.repeat(Math.max(r,0)))}function hd(e,r,i){let o=e.options["output.field"];nv(e,o(r,i,e.offset,e.line,e.column))}function C1(e,r){return iv(e,r.options["output.tagCase"])}function tv(e,r){return iv(e,r.options["output.attributeCase"])}function Bf(e,r,i){return e.valueType==="expression"?i?"{":"}":r.options["output.attributeQuotes"]==="single"?"'":'"'}function rv(e,r){return e.boolean||r.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function T1(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function ws(e,r){return typeof e=="string"?r.options.inlineElements.includes(e.toLowerCase()):e.name?ws(e.name,r):!!(e.value&&!e.attributes)}function $1(e){return e.split(/\r\n|\r|\n/g)}function nv(e,r){e.value+=r,e.offset+=r.length,e.column+=r.length}function iv(e,r){return r?r==="upper"?e.toUpperCase():e.toLowerCase():e}var L1={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function A1(e,r,i){!e.name&&e.attributes&&ov(e,r,i)}function ov(e,r,i){let o=N1(r),c=i.context?i.context.name:"",d=O1(o?o.name:c);e.name=L1[d]||(ws(d,i)?"span":"div")}function O1(e){return(e||"").toLowerCase()}function N1(e){for(let r=e.length-1;r>=0;r--){let i=e[r];if(Jm(i))return i}}var E1={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},M1={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},P1={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},eg={ru:M1,sp:P1,latin:E1},D1=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function I1(e,r,i){let o;if(e.name&&(o=e.name.match(D1))){let c=eg[o[1]]||eg.latin,d=o[2]?Math.max(1,Number(o[2])):30,m=o[3]?Math.max(d,Number(o[3].slice(1))):d,x=co(d,m),S=e.repeat||q1(r);e.name=e.attributes=void 0,e.value=[j1(c,x,!S||S.value===0)],e.repeat&&r.length>1&&ov(e,r,i)}}function co(e,r){return Math.floor(Math.random()*(r-e)+e)}function F1(e,r){let i=e.length,o=Math.min(i,r),c=[];for(;c.length<o;){let d=e[co(0,i)];c.includes(d)||c.push(d)}return c}function z1(e){return e[co(0,e.length-1)]}function tg(e,r){return e.length&&(e=[R1(e[0])].concat(e.slice(1))),e.join(" ")+(r||z1("?!..."))}function R1(e){return e[0].toUpperCase()+e.slice(1)}function rg(e){if(e.length<2)return e;e=e.slice();let r=e.length,i=/,$/,o=0;r>3&&r<=6?o=co(0,1):r>6&&r<=12?o=co(0,2):o=co(1,4);for(let c=0,d;c<o;c++)d=co(0,r-2),i.test(e[d])||(e[d]+=",");return e}function j1(e,r,i){let o=[],c=0,d;for(i&&e.common&&(d=e.common.slice(0,r),c+=d.length,o.push(tg(rg(d),".")));c<r;)d=F1(e.words,Math.min(co(2,30),r-c)),c+=d.length,o.push(tg(rg(d)));return o.join(" ")}function q1(e){for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type==="AbbreviationNode"&&i.repeat)return i.repeat}}function W1(e){e.attributes&&e.attributes.forEach(B1)}function B1(e){e.name==="class"?e.name="className":e.name==="for"&&(e.name="htmlFor")}function H1(e){K1(e.name)&&e.attributes&&(e.children.length||e.value)&&(e.attributes=e.attributes.filter(U1))}function U1(e){return e.name!=="select"}function K1(e){return e==="xsl:variable"||e==="xsl:with-param"}var av=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,sv=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,V1=e=>/^[a-z]\-/i.test(e),G1=e=>/^[a-z]/i.test(e);function Q1(e,r,i){X1(e),Y1(e,r,i)}function X1(e){let r=gd(e),i=[];for(let o of r.classNames){let c=o.indexOf("_");c>0&&!o.startsWith("-")?(i.push(o.slice(0,c)),i.push(o.slice(c))):i.push(o)}i.length&&(r.classNames=i.filter(cv),r.block=uv(r.classNames),fv(e,r.classNames.join(" ")))}function Y1(e,r,i){let o=gd(e),c=[],{options:d}=i,m=r.slice(1).concat(e);for(let S of o.classNames){let A="",T,D=S;(T=S.match(av))&&(A=ng(m,T[1].length,i.context)+d["bem.element"]+T[2],c.push(A),S=S.slice(T[0].length)),(T=S.match(sv))&&(A||(A=ng(m,T[1].length),c.push(A)),c.push(`${A}${d["bem.modifier"]}${T[2]}`),S=S.slice(T[0].length)),S===D&&c.push(D)}let x=c.filter(cv);x.length&&fv(e,x.join(" "))}function gd(e){if(!e._bem){let r="";if(e.attributes){for(let i of e.attributes)if(i.name==="class"&&i.value){r=J1(i.value);break}}e._bem=lv(r)}return e._bem}function Z1(e){return e._bem||(e._bem=lv(e.attributes&&e.attributes.class||"")),e._bem}function lv(e){let r=e?e.split(/\s+/):[];return{classNames:r,block:uv(r)}}function ng(e,r=0,i){let c=Math.max(e.length-r,0);do{let d=e[c];if(d){let m=gd(d);if(m.block)return m.block}}while(0<c--);if(i){let d=Z1(i);if(d.block)return d.block}return""}function uv(e){return ig(e,V1)||ig(e,G1)||void 0}function ig(e,r){for(let i of e){if(av.test(i)||sv.test(i))break;if(r(i))return i}}function fv(e,r){for(let i of e.attributes)if(i.name==="class"){i.value=[r];break}}function J1(e){let r="";for(let i of e)r+=typeof i=="string"?i:i.name;return r}function cv(e,r,i){return!!e&&i.indexOf(e)===r}function pv(e,r,i){let o=(d,m,x)=>{let{parent:S,current:A}=i;i.parent=A,i.current=d,r(d,m,x,i,c),i.current=A,i.parent=S},c=(d,m,x)=>{i.ancestors.push(i.current),o(d,m,x),i.ancestors.pop()};e.children.forEach(o)}function dv(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:ev(e.options)}}var lc=[{type:"Field",index:0,name:""}];function ha(e){return e?!e.name&&!e.attributes:!1}function og(e,r){return e?ws(e,r):!1}function hv(e){return typeof e=="object"&&e.type==="Field"}function en(e,r){let{out:i}=r,o=-1;for(let c of e)typeof c=="string"?bt(i,c):(hd(i,r.field+c.index,c.name),c.index>o&&(o=c.index));o!==-1&&(r.field+=o+1)}function ew(e){let r=[],i=[];for(let o of e)if(typeof o=="string"){let c=o.split(/\r\n?|\n/g);for(i.push(c.shift()||"");c.length;)r.push(i),i=[c.shift()||""]}else i.push(o);return i.length&&r.push(i),r}function gv(e){return!e.implied||e.valueType!=="raw"||!!e.value&&e.value.length>0}function ag(e){let r=[],i={pos:0,text:e},o,c=i.pos,d=i.pos;for(;i.pos<i.text.length;)d=i.pos,(o=tw(i))?(c!==i.pos&&r.push(e.slice(c,d)),r.push(o),c=i.pos):i.pos++;return c!==i.pos&&r.push(e.slice(c)),r}function tw(e){if(bp(e)===91){let r=++e.pos,i=r,o=r,c=1;for(;e.pos<e.text.length;){let d=bp(e);if(mv(d)){for(i=e.pos;rw(bp(e));)e.pos++;o=e.pos}else{if(d===91)c++;else if(d===93&&--c===0)return{before:e.text.slice(r,i),after:e.text.slice(o,e.pos++),name:e.text.slice(i,o)};e.pos++}}}}function bp(e,r=e.pos){return e.text.charCodeAt(r)}function mv(e){return e>=65&&e<=90}function rw(e){return mv(e)||e>47&&e<58||e===95||e===45}function nw(e){let{options:r}=e;return{enabled:r["comment.enabled"],trigger:r["comment.trigger"],before:r["comment.before"]?ag(r["comment.before"]):void 0,after:r["comment.after"]?ag(r["comment.after"]):void 0}}function iw(e,r){vv(e,r)&&r.comment.before&&yv(e,r.comment.before,r)}function ow(e,r){vv(e,r)&&r.comment.after&&yv(e,r.comment.after,r)}function vv(e,r){let{comment:i}=r;if(!i.enabled||!i.trigger||!e.name||!e.attributes)return!1;for(let o of e.attributes)if(o.name&&i.trigger.includes(o.name))return!0;return!1}function yv(e,r,i){let o={},{out:c}=i;for(let d of e.attributes)d.name&&d.value&&(o[d.name.toUpperCase()]=d.value);for(let d of r)typeof d=="string"?bt(c,d):o[d.name]&&(bt(c,d.before),en(o[d.name],i),bt(c,d.after))}var aw=/^<([\w\-:]+)[\s>]/;function bv(e,r){let i=dv(r);return i.comment=nw(r),pv(e,sw,i),i.out.value}function sw(e,r,i,o,c){let{out:d,config:m}=o,x=xv(e,r,i,o),S=uw(o);if(d.level+=S,x&&Hn(d,!0),e.name){let A=C1(e.name,m);if(iw(e,o),bt(d,`<${A}`),e.attributes)for(let T of e.attributes)gv(T)&&lw(T,o);if(e.selfClosing&&!e.children.length&&!e.value)bt(d,`${T1(m)}>`);else{if(bt(d,">"),!sg(e,o,c)){if(e.value){let T=e.value.some(wv)||fw(e.value,m);T&&Hn(o.out,++d.level),en(e.value,o),T&&Hn(o.out,--d.level)}if(e.children.forEach(c),!e.value&&!e.children.length){let T=m.options["output.formatLeafNode"]||m.options["output.formatForce"].includes(e.name);T&&Hn(o.out,++d.level),en(lc,o),T&&Hn(o.out,--d.level)}}bt(d,`</${A}>`),ow(e,o)}}else!sg(e,o,c)&&e.value&&(en(e.value,o),e.children.forEach(c));if(x&&r===i.length-1&&o.parent){let A=ha(o.parent)?0:1;Hn(d,d.level-A)}d.level-=S}function lw(e,r){let{out:i,config:o}=r;if(e.name){let c=tv(e.name,o),d=Bf(e,o,!0),m=Bf(e,o),x=e.value;rv(e,o)&&!x?o.options["output.compactBoolean"]||(x=[c]):x||(x=lc),bt(i," "+c),x?(bt(i,"="+d),en(x,r),bt(i,m)):o.options["output.selfClosingStyle"]!=="html"&&bt(i,"="+d+m)}}function sg(e,r,i){if(e.value&&e.children.length){let o=e.value.findIndex(hv);if(o!==-1){en(e.value.slice(0,o),r);let c=r.out.line,d=o+1;return e.children.forEach(i),r.out.line!==c&&typeof e.value[d]=="string"&&bt(r.out,e.value[d++].trimLeft()),en(e.value.slice(d),r),!0}}return!1}function xv(e,r,i,o){let{config:c,parent:d}=o;if(!c.options["output.format"]||r===0&&!d||d&&ha(d)&&i.length===1)return!1;if(ha(e)&&(ha(i[r-1])||ha(i[r+1])||e.value.some(wv)||e.value.some(hv)&&e.children.length))return!0;if(ws(e,c)){if(r===0){for(let m=0;m<i.length;m++)if(!ws(i[m],c))return!0}else if(!ws(i[r-1],c))return!0;if(c.options["output.inlineBreak"]){let m=1,x=r,S=r;for(;og(i[--x],c);)m++;for(;og(i[++S],c);)m++;if(m>=c.options["output.inlineBreak"])return!0}for(let m=0,x=e.children.length;m<x;m++)if(xv(e.children[m],m,e.children,o))return!0;return!1}return!0}function uw(e){let{config:r,parent:i}=e;return!i||ha(i)||i.name&&r.options["output.formatSkip"].includes(i.name)?0:1}function wv(e){return typeof e=="string"&&/\r|\n/.test(e)}function fw(e,r){if(e.length&&typeof e[0]=="string"){let i=aw.exec(e[0]);if(i?.length&&!r.options.inlineElements.includes(i[1].toLowerCase()))return!0}return!1}function md(e,r,i){let o=dv(r);return o.options=i||{},pv(e,cw,o),o.out.value}function cw(e,r,i,o,c){let{out:d,options:m}=o,{primary:x,secondary:S}=pw(e),A=o.parent?1:0;d.level+=A,yw(e,r,i,o)&&Hn(d,!0),e.name&&(e.name!=="div"||!x.length)&&bt(d,(m.beforeName||"")+e.name+(m.afterName||"")),dw(x,o),hw(S.filter(gv),o),e.selfClosing&&!e.value&&!e.children.length?o.options.selfClose&&bt(d,o.options.selfClose):(gw(e,o),e.children.forEach(c)),d.level-=A}function pw(e){let r=[],i=[];if(e.attributes)for(let o of e.attributes)mw(o)?r.push(o):i.push(o);return{primary:r,secondary:i}}function dw(e,r){for(let i of e)if(i.value)if(i.name==="class"){bt(r.out,".");let o=i.value.map(c=>typeof c=="string"?c.replace(/\s+/g,"."):c);en(o,r)}else bt(r.out,"#"),en(i.value,r)}function hw(e,r){if(e.length){let{out:i,config:o,options:c}=r;c.beforeAttribute&&bt(i,c.beforeAttribute);for(let d=0;d<e.length;d++){let m=e[d];bt(i,tv(m.name||"",o)),rv(m,o)&&!m.value?!o.options["output.compactBoolean"]&&c.booleanValue&&bt(i,"="+c.booleanValue):(bt(i,"="+Bf(m,o,!0)),en(m.value||lc,r),bt(i,Bf(m,o))),d!==e.length-1&&c.glueAttribute&&bt(i,c.glueAttribute)}c.afterAttribute&&bt(i,c.afterAttribute)}}function gw(e,r){if(!e.value&&e.children.length)return;let i=e.value||lc,o=ew(i),{out:c,options:d}=r;if(o.length===1)(e.name||e.attributes)&&Ht(c," "),en(i,r);else{let m=[],x=0;for(let S of o){let A=vw(S);m.push(A),A>x&&(x=A)}c.level++;for(let S=0;S<o.length;S++)Hn(c,!0),d.beforeTextLine&&Ht(c,d.beforeTextLine),en(o[S],r),d.afterTextLine&&(Ht(c," ".repeat(x-m[S])),Ht(c,d.afterTextLine));c.level--}}function mw(e){return e.name==="class"||e.name==="id"}function vw(e){let r=0;for(let i of e)r+=typeof i=="string"?i.length:i.name.length;return r}function yw(e,r,i,o){return!o.parent&&r===0?!1:!ha(e)}function bw(e,r){return md(e,r,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function xw(e,r){return md(e,r,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function ww(e,r){return md(e,r,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:r.options["output.selfClosingStyle"]==="xml"?"/":""})}var kw={html:bv,haml:bw,slim:xw,pug:ww};function _w(e,r){let i;if(typeof e=="string"){let o=r;r.options["jsx.enabled"]&&(o=Object.assign(Object.assign({},o),{jsx:!0})),r.options["markup.href"]&&(o=Object.assign(Object.assign({},o),{href:!0})),e=ud(e,o),i=r.text,r.text=void 0}return e=k1(e,r),x1(e,Cw,r),r.text=i??r.text,e}function Sw(e,r){return(kw[r.syntax]||bv)(e,r)}function Cw(e,r,i){A1(e,r,i),v1(e,i),I1(e,r,i),i.syntax==="xsl"&&H1(e),i.options["jsx.enabled"]&&W1(e),i.options["bem.enabled"]&&Q1(e,r,i)}var Tw=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,$w={value:!0};function Lw(e,r){let i=r.match(Tw);if(i){let o={},c=i[2]?i[2].split("|").map(Nw):[];for(let d of c)for(let m of d)Mw(m,o);return{type:"Property",key:e,property:i[1],value:c,keywords:o,dependencies:[]}}return{type:"Raw",key:e,value:r}}function Aw(e){e=e.slice().sort(Ow);let r=[],i;for(let o of e.filter(Ew)){for(;r.length;){if(i=r[r.length-1],o.property.startsWith(i.property)&&o.property.charCodeAt(i.property.length)===45){i.dependencies.push(o),r.push(o);break}r.pop()}r.length||r.push(o)}return e}function Ow(e,r){return e.key===r.key?0:e.key<r.key?-1:1}function Nw(e){return dd(e.trim(),$w)[0].value}function Ew(e){return e.type==="Property"}function Mw(e,r){for(let i of e.value)if(i.type==="Literal")r[i.value]=i;else if(i.type==="FunctionCall")r[i.name]=i;else if(i.type==="Field"){let o=i.name.trim();o&&(r[o]={type:"Literal",value:o})}}function Pw(e,r,i=!1){if(e=e.toLowerCase(),r=r.toLowerCase(),e===r)return 1;if(!e||!r||e.charCodeAt(0)!==r.charCodeAt(0))return 0;let o=e.length,c=r.length;if(!i&&o>c)return 0;let d=Math.min(o,c),m=Math.max(o,c),x=1,S=1,A=m,T=0,D=0,E=!1,U=!1;for(;x<o;){for(T=e.charCodeAt(x),E=!1,U=!1;S<c;){if(D=r.charCodeAt(S),T===D){E=!0,A+=m-(U?x:S);break}U=D===45,S++}if(!E){if(!i)return 0;break}x++}let V=x/m,I=m-d,W=lg(m)-lg(I);return A*V/W}function lg(e){return e*(e+1)/2}function kv(e,r){return!e.r&&!e.g&&!e.b&&!e.a?"transparent":e.a===1?Dw(e,r):Iw(e)}function Dw(e,r){let i=r&&xp(e.r)&&xp(e.g)&&xp(e.b)?Fw:zw;return"#"+i(e.r)+i(e.g)+i(e.b)}function Iw(e){let r=[e.r,e.g,e.b];return e.a!==1&&r.push(_v(e.a,8)),`${r.length===3?"rgb":"rgba"}(${r.join(", ")})`}function _v(e,r=4){return e.toFixed(r).replace(/\.?0+$/,"")}function xp(e){return!(e%17)}function Fw(e){return(e>>4).toString(16)}function zw(e){return Rw(e.toString(16),2)}function Rw(e,r){for(;e.length<r;)e="0"+e;return e}function jw(e,r){var i;let o=ev(r.options),c=r.options["output.format"];((i=r.context)===null||i===void 0?void 0:i.name)==="@@section"&&(e=e.filter(d=>d.snippet));for(let d=0;d<e.length;d++)c&&d!==0&&Hn(o,!0),qw(e[d],o,r);return o.value}function qw(e,r,i){let o=i.options["stylesheet.json"];if(e.name){let c=o?Hw(e.name):e.name;bt(r,c+i.options["stylesheet.between"]),e.value.length?Ww(e,r,i):hd(r,0,""),o?Ht(r,","):(ug(e,r,!0),Ht(r,i.options["stylesheet.after"]))}else{for(let c of e.value)for(let d of c.value)Cv(d,r,i);ug(e,r,e.value.length>0)}}function Ww(e,r,i){let o=i.options["stylesheet.json"],c=o?Bw(e):null;if(c&&(!c.unit||c.unit==="px"))Ht(r,String(c.value));else{let d=Uw(i);o&&Ht(r,d);for(let m=0;m<e.value.length;m++)m!==0&&Ht(r,", "),Sv(e.value[m],r,i);o&&Ht(r,d)}}function ug(e,r,i){e.important&&(i&&Ht(r," "),Ht(r,"!important"))}function Sv(e,r,i){for(let o=0,c=-1;o<e.value.length;o++){let d=e.value[o];o!==0&&(d.type!=="Field"||d.start!==c)&&Ht(r," "),Cv(d,r,i),c=d.end}}function Cv(e,r,i){if(e.type==="ColorValue")Ht(r,kv(e,i.options["stylesheet.shortHex"]));else if(e.type==="Literal")bt(r,e.value);else if(e.type==="NumberValue")bt(r,_v(e.value,4)+e.unit);else if(e.type==="StringValue"){let o=e.quote==="double"?'"':"'";bt(r,o+e.value+o)}else if(e.type==="Field")hd(r,e.index,e.name);else if(e.type==="FunctionCall"){Ht(r,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&Ht(r,", "),Sv(e.arguments[o],r,i);Ht(r,")")}}function Bw(e){if(e.value.length===1){let r=e.value[0];if(r.value.length===1&&r.value[0].type==="NumberValue")return r.value[0]}}function Hw(e){return e.replace(/\-(\w)/g,(r,i)=>i.toUpperCase())}function Uw(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}var fg="lg";function Kw(e,r){var i;let o=((i=r.cache)===null||i===void 0?void 0:i.stylesheetSnippets)||Vw(r.snippets);r.cache&&(r.cache.stylesheetSnippets=o),typeof e=="string"&&(e=dd(e,{value:Av(r)}));let c=tk(o,r);for(let d of e)Gw(d,c,r);return e}function Vw(e){let r=[];for(let i of Object.keys(e))r.push(Lw(i,e[i]));return Aw(r)}function Gw(e,r,i){if(!Qw(e,i)){let o=i.options["stylesheet.fuzzySearchMinScore"];if(Av(i)){let c=i.context.name,d=r.find(m=>m.type==="Property"&&m.property===c);Tv(e,i,d,o),e.snippet=d}else if(e.name){let c=Mf(e.name,r,o,!0);e.snippet=c,c&&(c.type==="Property"?Xw(e,c,i):Yw(e,c))}}return(e.name||i.context)&&ek(e,i),e}function Qw(e,r){let i=null,o=e.value.length===1?e.value[0]:null;if(o&&o.value.length===1){let c=o.value[0];c.type==="FunctionCall"&&c.name===fg&&(i=c)}return i||e.name===fg?(i?i=Object.assign(Object.assign({},i),{name:"linear-gradient"}):i={type:"FunctionCall",name:"linear-gradient",arguments:[Hf(pa(0,""))]},r.context||(e.name="background-image"),e.value=[Hf(i)],!0):!1}function Xw(e,r,i){let o=e.name,c=Jw(o,r.key);if(c){if(e.value.length)return e;let d=zp(c,i,r);if(!d)return e;e.value.push(Hf(d))}if(e.name=r.property,e.value.length)Tv(e,i,r);else if(r.value.length){let d=r.value[0];e.value=r.value.length===1||d.some($v)?d:d.map(m=>Lv(m,i))}return e}function Tv(e,r,i,o){for(let c of e.value){let d=[];for(let m of c.value)if(m.type==="Literal")d.push(zp(m.value,r,i,o)||m);else if(m.type==="FunctionCall"){let x=zp(m.name,r,i,o);x&&x.type==="FunctionCall"?d.push(Object.assign(Object.assign({},x),{arguments:m.arguments.concat(x.arguments.slice(m.arguments.length))})):d.push(m)}else d.push(m);c.value=d}}function Yw(e,r){let i=0,o,c=/\$\{(\d+)(:[^}]+)?\}/g,d=e.value[0],m=[];for(;o=c.exec(r.value);)i!==o.index&&m.push(ks(r.value.slice(i,o.index))),i=o.index+o[0].length,d&&d.value.length?m.push(d.value.shift()):m.push(pa(Number(o[1]),o[2]?o[2].slice(1):""));let x=r.value.slice(i);return x&&m.push(ks(x)),e.name=void 0,e.value=[Hf(...m)],e}function Mf(e,r,i=0,o=!1){let c=null,d=0;for(let m of r){let x=Pw(e,Zw(m),o);if(x===1)return m;x&&x>=d&&(d=x,c=m)}return d>=i?c:null}function Zw(e){return typeof e=="string"?e:e.key}function Jw(e,r){for(let i=0,o=0;i<e.length;i++){if(o=r.indexOf(e[i],o),o===-1)return e.slice(i);o++}return""}function zp(e,r,i,o){let c;if(i){if(c=Mf(e,Object.keys(i.keywords),o))return i.keywords[c];for(let d of i.dependencies)if(c=Mf(e,Object.keys(d.keywords),o))return d.keywords[c]}return(c=Mf(e,r.options["stylesheet.keywords"],o))?ks(c):null}function ek(e,r){let i=r.options["stylesheet.unitAliases"],o=r.options["stylesheet.unitless"];for(let c of e.value)for(let d of c.value)d.type==="NumberValue"&&(d.unit?d.unit=i[d.unit]||d.unit:d.value!==0&&!o.includes(e.name)&&(d.unit=d.rawValue.includes(".")?r.options["stylesheet.floatUnit"]:r.options["stylesheet.intUnit"]))}function Hf(...e){return{type:"CSSValue",value:e}}function ks(e){return{type:"Literal",value:e}}function pa(e,r){return{type:"Field",index:e,name:r}}function $v(e){for(let r of e.value)if(r.type==="Field"||r.type==="FunctionCall"&&r.arguments.some($v))return!0;return!1}function Lv(e,r,i={index:1}){let o=[];for(let c of e.value)switch(c.type){case"ColorValue":o.push(pa(i.index++,kv(c,r.options["stylesheet.shortHex"])));break;case"Literal":o.push(pa(i.index++,c.value));break;case"NumberValue":o.push(pa(i.index++,`${c.value}${c.unit}`));break;case"StringValue":let d=c.quote==="single"?"'":'"';o.push(pa(i.index++,d+c.value+d));break;case"FunctionCall":o.push(pa(i.index++,c.name),ks("("));for(let m=0,x=c.arguments.length;m<x;m++)o=o.concat(Lv(c.arguments[m],r,i).value),m!==x-1&&o.push(ks(", "));o.push(ks(")"));break;default:o.push(c)}return Object.assign(Object.assign({},e),{value:o})}function Av(e){return e.context?e.context.name==="@@value"||!e.context.name.startsWith("@@"):!1}function tk(e,r){if(r.context){if(r.context.name==="@@section")return e.filter(i=>i.type==="Raw");if(r.context.name==="@@property")return e.filter(i=>i.type==="Property")}return e}var rk={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},nk={"@f":`@font-face {
	font-family: \${1};
	src: url(\${2});
}`,"@ff":"@font-face {\n	font-family: '${1:FontName}';\n	src: url('${2:FileName}.eot');\n	src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n		 url('${2:FileName}.woff') format('woff'),\n		 url('${2:FileName}.ttf') format('truetype'),\n		 url('${2:FileName}.svg#${1:FontName}') format('svg');\n	font-style: ${3:normal};\n	font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n	${2}\n}","@m|@media":"@media ${1:screen} {\n	${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"},ik={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:`!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{
|}`,"!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'},ok={"!!!":"{doctype html}"},ak={lang:"en",locale:"en-US",charset:"UTF-8",indentation:"	",newline:`
`},sk={markup:"html",stylesheet:"css"},lk={inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"	","output.baseIndent":"","output.newline":`
`,"output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,r)=>r,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0},Ov={type:"markup",syntax:"html",variables:ak,snippets:{},options:lk},cg={markup:{snippets:Af(rk)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Af(ik),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:Af(ok)},stylesheet:{snippets:Af(nk)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Af(e){let r={};return Object.keys(e).forEach(i=>{for(let o of i.split("|"))r[o]=e[i]}),r}function uk(e={},r={}){let i=e.type||"markup",o=e.syntax||sk[i];return Object.assign(Object.assign(Object.assign({},Ov),e),{type:i,syntax:o,variables:wp(i,o,"variables",e,r),snippets:wp(i,o,"snippets",e,r),options:wp(i,o,"options",e,r)})}function wp(e,r,i,o,c={}){let d=cg[e],m=c[e],x=cg[r],S=c[r];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ov[i]),d&&d[i]),x&&x[i]),m&&m[i]),S&&S[i]),o[i])}var fk=e=>e.charCodeAt(0),o$="#.*:$-_!@%^+>/".split("").map(fk);function ck(e,r){let i=uk(r);return i.type==="stylesheet"?dk(e,i):pk(e,i)}function pk(e,r){return Sw(_w(e,r),r)}function dk(e,r){return jw(Kw(e,r),r)}var Uf={"{":"}","[":"]","(":")"},Nv=[];for(let e of Object.keys(Uf))Nv.push(Uf[e]);function pg(e){return e===32||e===9||e===160||e===10||e===13}function xn(e,r){let i=e[e.length-1];r&&r[0]!==r[1]&&(!i||i[0]!==r[0]||i[1]!==r[1])&&e.push(r)}function hk(e,r=0){let i=[],o=e.length,c=0,d=0,m=0;for(;c<o;){m=c;let x=e.charCodeAt(c++);if(pg(x)){for(d!==m&&i.push([r+d,r+m]);pg(e.charCodeAt(c));)c++;d=c}}return d!==c&&i.push([r+d,r+c]),i}function Rp(e){return e==='"'||e==="'"}function Ev(e){let{value:r}=e;return r&&mk(r)?r.slice(1,-1):r}function gk(e,r,i=0){let o=r.valueStart,c=r.valueEnd;return Rp(e[o])&&o++,Rp(e[c-1])&&c>o&&c--,[i+o,i+c]}function mk(e){return!!e&&(vk(e)||yk(e))}function vk(e){return e.length>1&&Rp(e[0])&&e[0]===e.slice(-1)}function yk(e){return e[0]==="{"&&e.slice(-1)==="}"}function lu(e){return e.length>0?e[e.length-1]:void 0}function Mv(e,r){let i=Tm(r),o=[],c=[];return su(e,(d,m,x,S)=>{if(m===3)c.push({name:d,open:[x,S]});else if(m===1){let A={name:d,open:[x,S]};o.push(A),c.push(A)}else for(;o.length;){let A=o.pop();if(A.name===d){A.close=[x,S];break}}},i),c}function bk(e,r,i){typeof e=="string"&&(e=Mv(e,i));let o;return e.some(c=>{let d=c.open[0],m=c.close?c.close[1]:c.open[1];if(r<d)return!0;r>d&&r<m&&(o=c)}),o}function xk(e,r,i){return i?kk(e,r):wk(e,r)}function wk(e,r){let i;return su(e,(o,c,d,m)=>{if((c===1||c===3)&&m>r)return i=Pv(e,o,d,m),!1}),i}function kk(e,r){let i=null,o="",c=-1,d=-1;if(su(e,(m,x,S,A)=>{if(S>=r)return!1;(x===1||x===3)&&(o=m,i=x,c=S,d=A)}),i!==null)return Pv(e,o,c,d)}function Pv(e,r,i,o){let c=[[i+1,i+1+r.length]],d=e.slice(i,o);for(let m of au(d,r))if(m.value!=null){xn(c,[i+m.nameStart,i+m.valueEnd]);let x=_k(m);if(x[0]!==x[1]&&(xn(c,[i+x[0],i+x[1]]),m.name==="class")){let S=hk(d.slice(x[0],x[1]),i+x[0]);for(let A of S)xn(c,A)}}else xn(c,[i+m.nameStart,i+m.nameEnd]);return{start:i,end:o,ranges:c}}function _k(e){let r=e.value,i=r[0],o=r[r.length-1];return i==='"'||i==="'"?[e.valueStart+1,e.valueEnd-(o===i?1:0)]:i==="{"&&o==="}"?[e.valueStart+1,e.valueEnd-1]:[e.valueStart,e.valueEnd]}function Sk(e,r,i){return i?Tk(e,r):Ck(e,r)}function Ck(e,r){let i,o;return od(e,(c,d,m,x)=>{if(!(d<r)){if(c==="selector")return i={start:d,end:m,ranges:[[d,m]]},!1;if(c==="propertyName")o=[d,m,x];else if(c==="propertyValue"){i={start:d,end:x!==-1?x+1:m,ranges:[]},o&&(i.start=o[0],xn(i.ranges,[o[0],i.end])),xn(i.ranges,[d,m]);for(let S of Pm(e.substring(d,m)))xn(i.ranges,[S[0]+d,S[1]+d]);return!1}else if(o)return i={start:o[0],end:o[1],ranges:[[o[0],o[1]]]},!1}}),i}function Tk(e,r){let i={type:null,start:-1,end:-1,valueStart:-1,valueEnd:-1,valueDelimiter:-1};if(od(e,(o,c,d,m)=>{if(c>=r&&o!=="propertyValue")return!1;o==="selector"||o==="propertyName"?(i.start=c,i.end=d,i.type=o,i.valueStart=i.valueEnd=i.valueDelimiter=-1):o==="propertyValue"&&(i.valueStart=c,i.valueEnd=d,i.valueDelimiter=m)}),i.type==="selector")return{start:i.start,end:i.end,ranges:[[i.start,i.end]]};if(i.type==="propertyName"){let o={start:i.start,end:i.end,ranges:[]};if(i.valueStart!==-1){o.end=i.valueDelimiter!==-1?i.valueDelimiter+1:i.valueEnd,xn(o.ranges,[i.start,o.end]),xn(o.ranges,[i.valueStart,i.valueEnd]);for(let c of Pm(e.substring(i.valueStart,i.valueEnd)))xn(o.ranges,[c[0]+i.valueStart,c[1]+i.valueStart])}else xn(o.ranges,[i.start,i.end]);return o}}function Dv(e,r,i={}){let o={type:"html",ancestors:[],current:null,css:null},c=[],d=[],m=Tm({xml:i.xml,allTokens:!0});return su(e,(x,S,A,T)=>{if(A>=r)return!1;if(A<r&&r<T)return o.current={name:x,type:S,range:[A,T]},!1;S===1&&Nk(x,m)&&(S=3),S===1?d.push(Iv(c,x,S,A,T)):S===2&&d.length&&lu(d).name===x&&Fv(c,d.pop())},m),d.forEach(x=>{o.ancestors.push({name:x.name,range:[x.start,x.end]})}),i.skipCSS||(o.css=Ok(e,r,o)),o}function Kf(e,r,i){let o={type:"css",ancestors:[],current:null,inline:!1,embedded:i},c=[],d=[];return od(e,(m,x,S)=>{if(x>=r)return!1;if(x<r&&r<=S)return o.current={name:e.slice(x,S),type:m,range:[x,S]},!1;switch(m){case"selector":case"propertyName":d.push(Iv(c,e.slice(x,S),m,x,S));break;case"propertyValue":case"blockEnd":Fv(c,d.pop());break}}),d.forEach(m=>{o.ancestors.push({name:m.name,type:m.type,range:[m.start,m.end]})}),o}function $k(e,r){let i=lu(r.ancestors);if(i&&i.name==="style"){for(let o of au(e.slice(i.range[0],i.range[1]),i.name))if(o.name==="type")return Ev(o)}}function Lk(e,r){let i=lu(r.ancestors);if(i){let o={};for(let c of au(e.slice(i.range[0],i.range[1]),i.name))o[c.name]=Ev(c)||"";return{name:i.name,attributes:o}}}function Ak(e){if(e.inline)return{name:"@@property"};let r=lu(e.ancestors),i="@@global";return e.current&&(e.current.type==="propertyValue"&&r?i=r.name:(e.current.type==="selector"||e.current.type==="propertyName")&&!r&&(i="@@section")),{name:i}}function Ok(e,r,i){let o=null;if(i.current){let c=i.current;if(c.type===1||c.type===2){let d=e.slice(c.range[0],c.range[1]);au(d,c.name).some(m=>{if(m.name==="style"&&m.value!=null){let[x,S]=gk(d,m,c.range[0]);if(r>=x&&r<=S)return o=Kf(e.slice(x,S),r-x,[x,S]),dg(o,x),o.inline=!0,!0}})}}else if(i.ancestors.length){let c=lu(i.ancestors);if(c.name==="style"){let d=c.range[1],m=e.length;su(e.slice(c.range[1]),(x,S,A)=>{if(x===c.name&&S===2)return m=A+d,!1}),o=Kf(e.slice(d,m),r-d,[d,m]),dg(o,d)}}return o}function Nk(e,r){return!r.xml&&r.empty.includes(e)}function Iv(e,r,i,o,c){if(e.length){let d=e.pop();return d.name=r,d.type=i,d.start=o,d.end=c,d}return{name:r,type:i,start:o,end:c}}function Fv(e,r){r&&e.push(r)}function dg(e,r){e.ancestors.forEach(i=>{hg(i.range,r)}),e.current&&hg(e.current.range,r)}function hg(e,r){e[0]+=r,e[1]+=r}var jp="<",Ek=/^[a-zA-Z.#\[\(]$/,Mk=/^[\s>;"\']?[a-zA-Z.#!@\[\(]$/,Pk=/^[\s;"\']?[a-zA-Z!@]$/,qp=class{constructor(){this.cache=new Map,this.trackers=new Map,this.lastPos=new Map}getLastPost(r){return this.lastPos.get(r.id)}setLastPos(r,i){this.lastPos.set(r.id,i)}getTracker(r){return this.trackers.get(r.id)}typingAbbreviation(r,i){var o;let c=r.substr(Math.max(0,i-2),i),d=r.syntax(),m=-1,x=i,S=0;if(r.isJSX(d)?c.length===2&&c[0]===jp&&Ek.test(c[1])&&(m=i-2,S=jp.length):Mk.test(c)&&(m=i-1),m>=0){let A=c[c.length-1];A in Uf&&r.substr(i,i+1)===Uf[A]&&x++;let T=this.getActivationContext(r,i);if(T){if(T.type==="stylesheet"&&!Pk.test(c))return;let D=this.startTracking(r,m,x,{offset:S,config:T});if(D&&D.type==="abbreviation"&&((o=T.context)===null||o===void 0?void 0:o.name)==="@@section"){let{abbreviation:E,preview:U}=D;if(U.startsWith(E)&&/^:\s*;?$/.test(U.slice(E.length))){this.stopTracking(r);return}}return D}}}startTracking(r,i,o,c){let d=c?.config||r.config(i),m=this.createTracker(r,[i,o],Object.assign({config:d},c));if(m)return this.trackers.set(r.id,m),m;this.trackers.delete(r.id)}stopTracking(r,i){let o=this.getTracker(r);o&&(r.unmark(o),o.forced&&!i?.skipRemove&&r.replace("",o.range[0],o.range[1]),i?.force?this.cache.delete(r.id):this.storeTracker(r,o),this.trackers.delete(r.id))}createTracker(r,i,o){if(i[0]>=i[1])return null;let c=r.substr(i[0],i[1]),{config:d}=o;if(o.offset&&(c=c.slice(o.offset)),!c||/[\r\n]/.test(c))return null;let m={abbreviation:c,range:i,config:d,forced:!!o.forced,offset:o.offset||0,lastPos:i[1],lastLength:r.size()};try{let x,S=!1;d.type==="stylesheet"?x=dd(c):(x=ud(c,{jsx:d.syntax==="jsx"}),S=this.isSimpleMarkupAbbreviation(x));let A=r.previewConfig(d);return Object.assign(Object.assign({},m),{type:"abbreviation",simple:S,preview:ck(x,A)})}catch(x){return Object.assign(Object.assign({},m),{type:"error",error:x})}}storeTracker(r,i){this.cache.set(r.id,i)}getStoredTracker(r){return this.cache.get(r.id)}restoreTracker(r,i){let o=this.getStoredTracker(r);if(o&&o.range[0]<=i&&o.range[1]>=i){let[c,d]=o.range;if(r.substr(c+o.offset,d)===o.abbreviation)return this.trackers.set(r.id,o),o.lastLength=r.size(),o}}handleChange(r,i){let o=this.getTracker(r),c=this.getLastPost(r);if(this.setLastPos(r,i),!o)return c!=null&&c===i-1&&r.allowTracking(i)?this.typingAbbreviation(r,i):void 0;let{lastPos:d}=o,{range:m}=o;if(d<m[0]||d>m[1]){this.stopTracking(r);return}let S=r.size()-o.lastLength;if(m=m.slice(),Dk(m,S,d),m[0]===m[1]&&o.forced)return o.abbreviation="",o;let A=this.createTracker(r,m,o);if(!A||!o.forced&&!Ik(A,m,i)){this.stopTracking(r);return}return A.lastPos=i,this.trackers.set(r.id,A),r.mark(A),A}handleSelectionChange(r,i){this.setLastPos(r,i);let o=this.getTracker(r)||this.restoreTracker(r,i);if(o)return o.lastPos=i,o}getActivationContext(r,i){let o=r.syntax(),c=r.substr();if(r.isCSS(o))return this.getCSSActivationContext(r,i,o,Kf(c,i));if(r.isHTML(o)){let d=Dv(c,i,{xml:r.isXML(o)});if(d.css)return this.getCSSActivationContext(r,i,$k(c,d)||"css",d.css);if(!d.current)return{syntax:o,type:"markup",context:Lk(c,d),options:r.outputOptions(i)}}else return{syntax:o,type:r.syntaxType(o),options:r.outputOptions(i)}}getCSSActivationContext(r,i,o,c){if(!c.current)return;if(c.current.type==="propertyName"||c.current.type==="propertyValue"||this.isTypingBeforeSelector(r,i,c))return{syntax:o,type:"stylesheet",context:Ak(c),options:r.outputOptions(i,c.inline)}}isTypingBeforeSelector(r,i,{current:o}){return o&&o.type==="selector"&&o.range[0]===i-1?r.substr(o.range[0],o.range[1]).split(/[\n\r]/)[0].trim().length===1:!1}isSimpleMarkupAbbreviation(r){if(r.children.length===1&&!r.children[0].children.length){let i=r.children[0];return!i.name||/^[a-z]/i.test(i.name)}return!r.children.length}disposeEditor(r){this.cache.delete(r.id),this.trackers.delete(r.id),this.lastPos.delete(r.id)}};function Dk(e,r,i){return r<0?i===e[0]?(e[0]+=r,e[1]+=r):e[0]<i&&i<=e[1]&&(e[1]+=r):r>0&&e[0]<=i&&i<=e[1]&&(e[1]+=r),e}function Ik(e,r,i){if(e.type==="error"){if(r[1]===i)return!1;let{abbreviation:o}=e,c=r[0],d=r[1];for(;d>c&&Nv.includes(o[d-c-1]);)d--;return d!==i}return!0}var Vf=String.fromCodePoint(65520),zv=String.fromCodePoint(65521),Wp="$$emmet",Fk={"{":"}","[":"]","(":")"};for(let e of Object.keys(Fk));var zk=0;function vd(e,r){let i=Ni(e,r),o=0,c=i.length;for(;o<c&&yo(i[o]);)o++;for(;c>o&&yo(i[c-1]);)c--;return[r[0]+o,r[0]+c]}function qr(e,r,i){return e.operation(()=>{let o=Wk(i,r[0]),[c,d]=vo(e,r);if(e.replaceRange(o.snippet,c,d),o.ranges.length){let m=o.ranges.map(x=>{let[S,A]=vo(e,x);return{head:S,anchor:A}});e.setSelections(m)}return!0})}function Li(e){let r=e.getCursor();return e.indexFromPos(r)}function Ai(e){return e.getValue()}function Ni(e,r){let[i,o]=vo(e,r);return e.getRange(i,o)}function vo(e,r){return[e.posFromIndex(r[0]),e.posFromIndex(r[1])]}function Rv(e){let{value:r}=e;return r&&Rk(r)?r.slice(1,-1):r}function Rk(e){return!!e&&(yd(e)||jk(e))}function jv(e){return e==='"'||e==="'"}function yd(e){return e.length>1&&jv(e[0])&&e[0]===e.slice(-1)}function jk(e){return e[0]==="{"&&e.slice(-1)==="}"}function yo(e){return/^[\s\n\r]+$/.test(e)}function qk(e){let r={"<":"&lt;",">":"&gt;","&":"&amp;"};return e.replace(/[<>&]/g,i=>r[i])}function $s(e){return e.constructor.Pass}function bo(e,r){let i=e.indexFromPos(r.head),o=e.indexFromPos(r.anchor);return[Math.min(i,o),Math.max(i,o)]}function uc(e,r){return e[0]===r[0]&&e[1]===r[1]}function bd(e,r){return e[0]<=r[0]&&e[1]>=r[1]}function tu(e){return e[0]===e[1]}function qv(e,r="emmet-error-snippet"){let i=e.message.split(`
`)[0],o=" ".repeat(e.pos||0);return`<div class="${r}">
        <div class="${r}-ptr">
            <div class="${r}-line"></div>
            <div class="${r}-tip"></div>
            <div class="${r}-spacer">${o}</div>
        </div>
        <div class="${r}-message">${qk(i.replace(/\s+at\s+\d+$/,""))}</div>
    </div>`}function xd(e){return e.length>0?e[e.length-1]:void 0}function Wv(e){return Wp in e}function Bv(e){return Wv(e)||(e[Wp]={id:String(zk++)}),e[Wp]}function Wk(e,r=0){let i=[],o="",c=null,d=0,m=0,x;for(;m<e.length;)x=e.charAt(m++),(x===Vf||x===zv)&&(o+=e.slice(d,m-1),d=m,x===Vf?(c=[r+o.length,r+o.length],i.push(c)):c&&(c[1]=r+o.length,c=null));return{ranges:i,snippet:o+e.slice(d)}}var Bk={xml:!1,allTokens:!1,special:{style:null,script:["","text/javascript","application/x-javascript","javascript","typescript","ts","coffee","coffeescript"]},empty:["img","meta","link","br","base","hr","area","wbr","col","embed","input","param","source","track"]},Ql={throws:!1};function fc(e={}){return Object.assign(Object.assign({},Bk),e)}function Ei(e){return e.split("").map(r=>r.charCodeAt(0))}function va(e,r){let i=e.pos;for(let o=0;o<r.length;o++)if(!e.eat(r[o]))return e.pos=i,!1;return e.start=i,!0}function Hv(e,r,i,o){let c=e.pos;if(va(e,r)){for(;!e.eof();){if(va(e,i))return e.start=c,!0;e.pos++}return o?(e.start=c,!0):(e.pos=c,!1)}return e.pos=c,!1}function Uv(e){return iu(e)||e===58||e===95||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=767||e>=880&&e<=893||e>=895&&e<=8191}function Hk(e){return Uv(e)||e===45||e===46||lr(e)||e===183||e>=768&&e<=879}function Gf(e){let r=e.pos;return e.eat(Uv)?(e.eatWhile(Hk),e.start=r,!0):!1}function Kv(e){return e===62||e===47}function Uk(e){return!isNaN(e)&&!ho(e)&&!Wr(e)&&!Kv(e)}function Vv(e){return $f(e,60,62,Ql)||$f(e,40,41,Ql)||$f(e,91,93,Ql)||$f(e,123,125,Ql)}function Kk(e){return ho(e.charCodeAt(0))&&(e=e.slice(1)),ho(e.charCodeAt(e.length-1))&&(e=e.slice(0,-1)),e}function uu(e,r){let i=[],o=0,c=e.length;r&&(o=r.length+1,c-=e.slice(-2)==="/>"?2:1);let d=new wn(e,o,c);for(;!d.eof();)if(d.eatWhile(Wr),Gv(d)){let m={name:d.current(),nameStart:d.start,nameEnd:d.pos};d.eat(61)&&Qv(d)&&(m.value=d.current(),m.valueStart=d.start,m.valueEnd=d.pos),i.push(m)}else d.pos++;return i}function Gv(e){let r=e.pos;return e.eat(42)||e.eat(35)?(Gf(e),e.start=r,!0):Vv(e)||Gf(e)}function Qv(e){return tc(e,Ql)||Vv(e)||Gk(e)}function Vk(e,r){for(let i=0;i<e.length;i++){let o=e[i];if(o.name===r)return o.value&&Kk(o.value)}}function Gk(e){let r=e.pos;if(e.eatWhile(Uk))return e.start=r,!0}var Qk=Ei("<![CDATA["),Xk=Ei("]]>"),Yk=Ei("<!--"),Zk=Ei("-->"),Jk=Ei("<?"),e_=Ei("?>"),t_=Ei("<%"),r_=Ei("%>");function cc(e,r,i){let o=new wn(e),c=i?i.special:null,d=i?i.allTokens:!1,m,x,S,A,T,D=!1,E=null;for(;!o.eof();){let U=o.pos;if(o_(o)){if(d&&r("#cdata",4,o.start,o.pos)===!1)break}else if(a_(o)){if(d&&r("#comment",6,o.start,o.pos)===!1)break}else if(l_(o)){if(d&&r("#erb",7,o.start,o.pos)===!1)break}else if(E=s_(o)){if(d&&r(E,5,o.start,o.pos)===!1)break}else if(o.eat(60)){if(m=o.eat(47)?2:1,S=o.pos,Gf(o)&&(A=o.pos,m!==2&&(n_(o),o.eatWhile(Wr),o.eat(47)&&(m=3)),o.eat(62))){if(x=o.substring(S,A),r(x,m,U,o.pos)===!1)break;if(m===1&&c&&u_(c,x,e,U,o.pos)){for(T=Ei(x),D=!1;!o.eof();){if(i_(o,T)){D=!0;break}o.pos++}if(D&&r(x,2,o.start,o.pos)===!1)break}}}else o.pos++}}function n_(e){for(;!e.eof();)if(e.eatWhile(Wr),Gv(e))e.eat(61)&&Qv(e);else{if(Kv(e.peek()))break;e.pos++}}function i_(e,r){let i=e.pos;return e.eat(60)&&e.eat(47)&&va(e,r)&&e.eat(62)?(e.start=i,!0):(e.pos=i,!1)}function o_(e){return Hv(e,Qk,Xk,!0)}function a_(e){return Hv(e,Yk,Zk,!0)}function s_(e){let r=e.pos;if(va(e,Jk)&&Gf(e)){let i=e.current();for(;!e.eof()&&!va(e,e_);)tc(e)||e.pos++;return e.start=r,i}return e.pos=r,null}function l_(e){let r=e.pos;if(va(e,t_)){for(;!e.eof()&&!va(e,r_);)tc(e)||e.pos++;return e.start=r,!0}return e.pos=r,!1}function u_(e,r,i,o,c){if(r in e){let d=e[r];if(!Array.isArray(d))return!0;let m=uu(i.substring(o+r.length+1,c-1));return d.includes(Vk(m,"type")||"")}return!1}function f_(e,r,i){let o=[],c=[],d=fc(i),m=null;return cc(e,(x,S,A,T)=>{if(S===1&&wd(x,d)&&(S=3),S===1)c.push(Xv(o,x,A,T));else if(S===3){if(A<r&&r<T)return m={name:x,attributes:gg(e,A,T,x),open:[A,T]},!1}else{let D=Xl(c);if(D&&D.name===x){if(D.start<r&&r<T)return m={name:x,attributes:gg(e,D.start,D.end,x),open:[D.start,D.end],close:[A,T]},!1;c.length&&Yv(o,c.pop())}}},d),c.length=o.length=0,m}function c_(e,r,i){let o=[],c=[],d=fc(i),m=[];return cc(e,(x,S,A,T)=>{if(S===2){let D=Xl(c);D&&D.name===x&&(D.start<r&&r<T&&m.push({name:x,open:[D.start,D.end],close:[A,T]}),Yv(o,c.pop()))}else S===3||wd(x,d)?A<r&&r<T&&m.push({name:x,open:[A,T]}):c.push(Xv(o,x,A,T))},d),c.length=o.length=0,m}function p_(e,r,i){let o=[],c=[],d=fc(i),m=[],x=(A,T,D)=>{if(o.length){let E=o.pop();return E.name=A,E.ranges.push(T,D),E}return{name:A,ranges:[T,D]}},S=A=>{A.ranges.length=0,A.firstChild=void 0,o.push(A)};return cc(e,(A,T,D,E)=>{if(T===2){if(!c.length)return;let U=Xl(c);if(U.name===A)if(U.ranges[0]<=r&&r<=E){for(m.push({name:A,open:U.ranges.slice(0,2),close:[D,E]});U.firstChild;){let V=U.firstChild,I={name:V.name,open:V.ranges.slice(0,2)};V.ranges.length>2&&(I.close=V.ranges.slice(2,4)),m.push(I),S(U),U=V}return!1}else{c.pop();let V=Xl(c);V&&!V.firstChild?(U.ranges.push(D,E),V.firstChild=U):S(U)}}else if(T===3||wd(A,d)){if(D<r&&r<E)return m.push({name:A,open:[D,E]}),!1;let U=Xl(c);U&&!U.firstChild&&(U.firstChild=x(A,D,E))}else c.push(x(A,D,E))},d),c.length=o.length=0,m}function Xv(e,r,i,o){if(e.length){let c=e.pop();return c.name=r,c.start=i,c.end=o,c}return{name:r,start:i,end:o}}function Yv(e,r){e.push(r)}function gg(e,r,i,o){let c=uu(e.slice(r,i),o);return c.forEach(d=>{d.nameStart+=r,d.nameEnd+=r,d.value!=null&&(d.valueStart+=r,d.valueEnd+=r)}),c}function wd(e,r){return!r.xml&&r.empty.includes(e)}function Xl(e){return e.length?e[e.length-1]:null}var Zv=["xml","xsl","jsx"],Jv=["html","htmlmixed","vue"],ey=["css","scss","less"],ty=["jsx","tsx"],d_=["haml","jade","pug","slim"].concat(Jv,Zv,ty),ry=["sass","sss","stylus","postcss"].concat(ey);function xa(e,r){let i=Ls(e),o,c;if(wa(i)){let d=Ai(e);c=Dv(d,r,{xml:Mi(i)}),c.css&&(i=m_(d,c)||"css",o=c.css.inline,c=c.css)}else Ci(i)&&(c=Kf(Ai(e),r));return{type:fu(i),syntax:i,inline:o,context:c}}function h_(e,r){let i=e.posFromIndex(r),o=e.getModeAt(i);return o&&o.name==="xml"?o.configuration||o.name:o&&o.name}function Ls(e){let r=e.getMode();return r?r.name==="htmlmixed"?"html":r.name||"":""}function fu(e){return e&&ry.includes(e)?"stylesheet":"markup"}function Mi(e){return e?Zv.includes(e):!1}function wa(e){return e?Jv.includes(e)||Mi(e):!1}function g_(e){return e?d_.includes(e)||ry.includes(e):!1}function Ci(e){return e?ey.includes(e):!1}function ny(e){return e?ty.includes(e):!1}function iy(e,r){if(e===!0)return!0;if(Array.isArray(e)){let i=[r.type,r.syntax];return r.inline&&i.push(`${r.type}-inline`,`${r.syntax}-inline`),i.some(o=>e.includes(o))}return!1}function m_(e,r){let i=xd(r.ancestors);if(i&&i.name==="style"){for(let o of uu(e.slice(i.range[0],i.range[1]),i.name))if(o.name==="type")return Rv(o)}}function v_(e,r){let i=xd(r.ancestors);if(i){let o={};for(let c of uu(e.slice(i.range[0],i.range[1]),i.name))o[c.name]=Rv(c)||"";return{name:i.name,attributes:o}}}function y_(e){if(e.inline)return{name:"@@property"};let r=xd(e.ancestors),i="@@global";return e.current&&(e.current.type==="propertyValue"&&r?i=r.name:(e.current.type==="selector"||e.current.type==="propertyName")&&!r&&(i="@@section")),{name:i}}function b_(e,r){if(!e.attributes)return;let i=[],o={};for(let c of e.attributes)if(c.name){let d=c.name;if(d in o){let m=o[d];d==="class"?m.value=x_(m.value,c.value," "):w_(m,c,r)}else i.push(o[d]=Object.assign({},c))}else i.push(c);e.attributes=i}function x_(e,r,i){if(e&&r){e.length&&i&&mg(e,i);for(let c of r)mg(e,c);return e}let o=e||r;return o&&o.slice()}function w_(e,r,i){return e.name=r.name,i.options["output.reverseAttributes"]||(e.value=r.value),e.implied||(e.implied=r.implied),e.boolean||(e.boolean=r.boolean),e.valueType!=="expression"&&(e.valueType=r.valueType),e}function mg(e,r){let i=e.length-1;typeof e[i]=="string"&&typeof r=="string"?e[i]+=r:e.push(r)}function k_(e,r,i){let o=[e],c=d=>{r(d,o,i),o.push(d),d.children.forEach(c),o.pop()};e.children.forEach(c)}function __(e){let r;for(;e.children.length;)r=e,e=e.children[e.children.length-1];return{parent:r,node:e}}function oy(e){return e.type==="AbbreviationNode"}function S_(e,r){let i=[],o=r.options["output.reverseAttributes"],c=d=>{let m=d.name&&r.snippets[d.name];if(!m||i.includes(m))return null;let x=pm(m,r);i.push(m),Qf(x,c),i.pop();for(let S of x.children){if(d.attributes){let A=S.attributes||[],T=d.attributes||[];S.attributes=o?T.concat(A):A.concat(T)}C_(d,S)}return x};return Qf(e,c),e}function Qf(e,r,i){let o=[];for(let c of e.children){let d=r(c);if(d){o=o.concat(d.children);let m=__(d);oy(m.node)&&(m.node.children=m.node.children.concat(Qf(c,r)))}else o.push(c),c.children=Qf(c,r)}return e.children=o}function C_(e,r){e.selfClosing&&(r.selfClosing=!0),e.value!=null&&(r.value=e.value),e.repeat&&(r.repeat=e.repeat)}function ay(e,r=0){return{options:e,value:"",level:r,offset:0,line:0,column:0}}function Ut(e,r){let i=e.options["output.text"];uy(e,i(r,e.offset,e.line,e.column))}function xt(e,r){let i=A_(r);for(let o=0,c=i.length-1;o<=c;o++)Ut(e,i[o]),o!==c&&Un(e,!0)}function Un(e,r){let i=e.options["output.baseIndent"],o=e.options["output.newline"];Ut(e,o+i),e.line++,e.column=i.length,r&&T_(e,r===!0?e.level:r)}function T_(e,r=e.level){let i=e.options["output.indent"];Ut(e,i.repeat(Math.max(r,0)))}function kd(e,r,i){let o=e.options["output.field"];uy(e,o(r,i,e.offset,e.line,e.column))}function $_(e,r){return fy(e,r.options["output.tagCase"])}function sy(e,r){return fy(e,r.options["output.attributeCase"])}function Xf(e,r,i){return e.valueType==="expression"?i?"{":"}":r.options["output.attributeQuotes"]==="single"?"'":'"'}function ly(e,r){return e.boolean||r.options["output.booleanAttributes"].includes((e.name||"").toLowerCase())}function L_(e){switch(e.options["output.selfClosingStyle"]){case"xhtml":return" /";case"xml":return"/";default:return""}}function _s(e,r){return typeof e=="string"?r.options.inlineElements.includes(e.toLowerCase()):e.name?_s(e.name,r):!!(e.value&&!e.attributes)}function A_(e){return e.split(/\r\n|\r|\n/g)}function uy(e,r){e.value+=r,e.offset+=r.length,e.column+=r.length}function fy(e,r){return r?r==="upper"?e.toUpperCase():e.toLowerCase():e}var O_={p:"span",ul:"li",ol:"li",table:"tr",tr:"td",tbody:"tr",thead:"tr",tfoot:"tr",colgroup:"col",select:"option",optgroup:"option",audio:"source",video:"source",object:"param",map:"area"};function N_(e,r,i){!e.name&&e.attributes&&cy(e,r,i)}function cy(e,r,i){let o=M_(r),c=i.context?i.context.name:"",d=E_(o?o.name:c);e.name=O_[d]||(_s(d,i)?"span":"div")}function E_(e){return(e||"").toLowerCase()}function M_(e){for(let r=e.length-1;r>=0;r--){let i=e[r];if(oy(i))return i}}var P_={common:["lorem","ipsum","dolor","sit","amet","consectetur","adipisicing","elit"],words:["exercitationem","perferendis","perspiciatis","laborum","eveniet","sunt","iure","nam","nobis","eum","cum","officiis","excepturi","odio","consectetur","quasi","aut","quisquam","vel","eligendi","itaque","non","odit","tempore","quaerat","dignissimos","facilis","neque","nihil","expedita","vitae","vero","ipsum","nisi","animi","cumque","pariatur","velit","modi","natus","iusto","eaque","sequi","illo","sed","ex","et","voluptatibus","tempora","veritatis","ratione","assumenda","incidunt","nostrum","placeat","aliquid","fuga","provident","praesentium","rem","necessitatibus","suscipit","adipisci","quidem","possimus","voluptas","debitis","sint","accusantium","unde","sapiente","voluptate","qui","aspernatur","laudantium","soluta","amet","quo","aliquam","saepe","culpa","libero","ipsa","dicta","reiciendis","nesciunt","doloribus","autem","impedit","minima","maiores","repudiandae","ipsam","obcaecati","ullam","enim","totam","delectus","ducimus","quis","voluptates","dolores","molestiae","harum","dolorem","quia","voluptatem","molestias","magni","distinctio","omnis","illum","dolorum","voluptatum","ea","quas","quam","corporis","quae","blanditiis","atque","deserunt","laboriosam","earum","consequuntur","hic","cupiditate","quibusdam","accusamus","ut","rerum","error","minus","eius","ab","ad","nemo","fugit","officia","at","in","id","quos","reprehenderit","numquam","iste","fugiat","sit","inventore","beatae","repellendus","magnam","recusandae","quod","explicabo","doloremque","aperiam","consequatur","asperiores","commodi","optio","dolor","labore","temporibus","repellat","veniam","architecto","est","esse","mollitia","nulla","a","similique","eos","alias","dolore","tenetur","deleniti","porro","facere","maxime","corrupti"]},D_={common:["\u0434\u0430\u043B\u0435\u043A\u043E-\u0434\u0430\u043B\u0435\u043A\u043E","\u0437\u0430","\u0441\u043B\u043E\u0432\u0435\u0441\u043D\u044B\u043C\u0438","\u0433\u043E\u0440\u0430\u043C\u0438","\u0432 \u0441\u0442\u0440\u0430\u043D\u0435","\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0438 \u0441\u043E\u0433\u043B\u0430\u0441\u043D\u044B\u0445","\u0436\u0438\u0432\u0443\u0442","\u0440\u044B\u0431\u043D\u044B\u0435","\u0442\u0435\u043A\u0441\u0442\u044B"],words:["\u0432\u0434\u0430\u043B\u0438","\u043E\u0442 \u0432\u0441\u0435\u0445","\u043E\u043D\u0438","\u0431\u0443\u043A\u0432\u0435\u043D\u043D\u044B\u0445","\u0434\u043E\u043C\u0430\u0445","\u043D\u0430 \u0431\u0435\u0440\u0435\u0433\u0443","\u0441\u0435\u043C\u0430\u043D\u0442\u0438\u043A\u0430","\u0431\u043E\u043B\u044C\u0448\u043E\u0433\u043E","\u044F\u0437\u044B\u043A\u043E\u0432\u043E\u0433\u043E","\u043E\u043A\u0435\u0430\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0439","\u0440\u0443\u0447\u0435\u0435\u043A","\u0434\u0430\u043B\u044C","\u0436\u0443\u0440\u0447\u0438\u0442","\u043F\u043E \u0432\u0441\u0435\u0439","\u043E\u0431\u0435\u0441\u043F\u0435\u0447\u0438\u0432\u0430\u0435\u0442","\u0435\u0435","\u0432\u0441\u0435\u043C\u0438","\u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u043C\u0438","\u043F\u0440\u0430\u0432\u0438\u043B\u0430\u043C\u0438","\u044D\u0442\u0430","\u043F\u0430\u0440\u0430\u0434\u0438\u0433\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0430\u044F","\u0441\u0442\u0440\u0430\u043D\u0430","\u043A\u043E\u0442\u043E\u0440\u043E\u0439","\u0436\u0430\u0440\u0435\u043D\u043D\u044B\u0435","\u043F\u0440\u0435\u0434\u043B\u043E\u0436\u0435\u043D\u0438\u044F","\u0437\u0430\u043B\u0435\u0442\u0430\u044E\u0442","\u043F\u0440\u044F\u043C\u043E","\u0440\u043E\u0442","\u0434\u0430\u0436\u0435","\u0432\u0441\u0435\u043C\u043E\u0433\u0443\u0449\u0430\u044F","\u043F\u0443\u043D\u043A\u0442\u0443\u0430\u0446\u0438\u044F","\u043D\u0435","\u0438\u043C\u0435\u0435\u0442","\u0432\u043B\u0430\u0441\u0442\u0438","\u043D\u0430\u0434","\u0440\u044B\u0431\u043D\u044B\u043C\u0438","\u0442\u0435\u043A\u0441\u0442\u0430\u043C\u0438","\u0432\u0435\u0434\u0443\u0449\u0438\u043C\u0438","\u0431\u0435\u0437\u043E\u0440\u0444\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u043D\u044B\u0439","\u043E\u0431\u0440\u0430\u0437","\u0436\u0438\u0437\u043D\u0438","\u043E\u0434\u043D\u0430\u0436\u0434\u044B","\u043E\u0434\u043D\u0430","\u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0430\u044F","\u0441\u0442\u0440\u043E\u0447\u043A\u0430","\u0440\u044B\u0431\u043D\u043E\u0433\u043E","\u0442\u0435\u043A\u0441\u0442\u0430","\u0438\u043C\u0435\u043D\u0438","lorem","ipsum","\u0440\u0435\u0448\u0438\u043B\u0430","\u0432\u044B\u0439\u0442\u0438","\u0431\u043E\u043B\u044C\u0448\u043E\u0439","\u043C\u0438\u0440","\u0433\u0440\u0430\u043C\u043C\u0430\u0442\u0438\u043A\u0438","\u0432\u0435\u043B\u0438\u043A\u0438\u0439","\u043E\u043A\u0441\u043C\u043E\u043A\u0441","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0436\u0434\u0430\u043B","\u043E","\u0437\u043B\u044B\u0445","\u0437\u0430\u043F\u044F\u0442\u044B\u0445","\u0434\u0438\u043A\u0438\u0445","\u0437\u043D\u0430\u043A\u0430\u0445","\u0432\u043E\u043F\u0440\u043E\u0441\u0430","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0445","\u0442\u043E\u0447\u043A\u0430\u0445","\u0437\u0430\u043F\u044F\u0442\u043E\u0439","\u043D\u043E","\u0442\u0435\u043A\u0441\u0442","\u0434\u0430\u043B","\u0441\u0431\u0438\u0442\u044C","\u0441\u0435\u0431\u044F","\u0442\u043E\u043B\u043A\u0443","\u043E\u043D","\u0441\u043E\u0431\u0440\u0430\u043B","\u0441\u0435\u043C\u044C","\u0441\u0432\u043E\u0438\u0445","\u0437\u0430\u0433\u043B\u0430\u0432\u043D\u044B\u0445","\u0431\u0443\u043A\u0432","\u043F\u043E\u0434\u043F\u043E\u044F\u0441\u0430\u043B","\u0438\u043D\u0438\u0446\u0438\u0430\u043B","\u0437\u0430","\u043F\u043E\u044F\u0441","\u043F\u0443\u0441\u0442\u0438\u043B\u0441\u044F","\u0434\u043E\u0440\u043E\u0433\u0443","\u0432\u0437\u043E\u0431\u0440\u0430\u0432\u0448\u0438\u0441\u044C","\u043F\u0435\u0440\u0432\u0443\u044E","\u0432\u0435\u0440\u0448\u0438\u043D\u0443","\u043A\u0443\u0440\u0441\u0438\u0432\u043D\u044B\u0445","\u0433\u043E\u0440","\u0431\u0440\u043E\u0441\u0438\u043B","\u043F\u043E\u0441\u043B\u0435\u0434\u043D\u0438\u0439","\u0432\u0437\u0433\u043B\u044F\u0434","\u043D\u0430\u0437\u0430\u0434","\u0441\u0438\u043B\u0443\u044D\u0442","\u0441\u0432\u043E\u0435\u0433\u043E","\u0440\u043E\u0434\u043D\u043E\u0433\u043E","\u0433\u043E\u0440\u043E\u0434\u0430","\u0431\u0443\u043A\u0432\u043E\u0433\u0440\u0430\u0434","\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0434\u0435\u0440\u0435\u0432\u043D\u0438","\u0430\u043B\u0444\u0430\u0432\u0438\u0442","\u043F\u043E\u0434\u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A","\u0441\u0432\u043E\u0435\u0433\u043E","\u043F\u0435\u0440\u0435\u0443\u043B\u043A\u0430","\u0433\u0440\u0443\u0441\u0442\u043D\u044B\u0439","\u0440\u0435\u0442\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438\u0439","\u0432\u043E\u043F\u0440\u043E\u0441","\u0441\u043A\u0430\u0442\u0438\u043B\u0441\u044F","\u0435\u0433\u043E","\u0449\u0435\u043A\u0435","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0434\u043E\u0440\u043E\u0433\u0435","\u0432\u0441\u0442\u0440\u0435\u0442\u0438\u043B","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u044C","\u043E\u043D\u0430","\u043F\u0440\u0435\u0434\u0443\u043F\u0440\u0435\u0434\u0438\u043B\u0430","\u043C\u043E\u0435\u0439","\u0432\u0441\u0435","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u044B\u0432\u0430\u0435\u0442\u0441\u044F","\u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u043E","\u0440\u0430\u0437","\u0435\u0434\u0438\u043D\u0441\u0442\u0432\u0435\u043D\u043D\u043E\u0435","\u0447\u0442\u043E","\u043C\u0435\u043D\u044F","\u043E\u0441\u0442\u0430\u043B\u043E\u0441\u044C","\u044D\u0442\u043E","\u043F\u0440\u0438\u0441\u0442\u0430\u0432\u043A\u0430","\u0432\u043E\u0437\u0432\u0440\u0430\u0449\u0430\u0439\u0441\u044F","\u0442\u044B","\u043B\u0443\u0447\u0448\u0435","\u0441\u0432\u043E\u044E","\u0431\u0435\u0437\u043E\u043F\u0430\u0441\u043D\u0443\u044E","\u0441\u0442\u0440\u0430\u043D\u0443","\u043F\u043E\u0441\u043B\u0443\u0448\u0430\u0432\u0448\u0438\u0441\u044C","\u0440\u0443\u043A\u043E\u043F\u0438\u0441\u0438","\u043D\u0430\u0448","\u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0438\u043B","\u0441\u0432\u043E\u0439","\u043F\u0443\u0442\u044C","\u0432\u0441\u043A\u043E\u0440\u0435","\u0435\u043C\u0443","\u043F\u043E\u0432\u0441\u0442\u0440\u0435\u0447\u0430\u043B\u0441\u044F","\u043A\u043E\u0432\u0430\u0440\u043D\u044B\u0439","\u0441\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C","\u0440\u0435\u043A\u043B\u0430\u043C\u043D\u044B\u0445","\u0442\u0435\u043A\u0441\u0442\u043E\u0432","\u043D\u0430\u043F\u043E\u0438\u0432\u0448\u0438\u0439","\u044F\u0437\u044B\u043A\u043E\u043C","\u0440\u0435\u0447\u044C\u044E","\u0437\u0430\u043C\u0430\u043D\u0438\u0432\u0448\u0438\u0439","\u0441\u0432\u043E\u0435","\u0430\u0433\u0435\u043D\u0442\u0441\u0442\u0432\u043E","\u043A\u043E\u0442\u043E\u0440\u043E\u0435","\u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043B\u043E","\u0441\u043D\u043E\u0432\u0430","\u0441\u043D\u043E\u0432\u0430","\u0441\u0432\u043E\u0438\u0445","\u043F\u0440\u043E\u0435\u043A\u0442\u0430\u0445","\u0435\u0441\u043B\u0438","\u043F\u0435\u0440\u0435\u043F\u0438\u0441\u0430\u043B\u0438","\u0442\u043E","\u0436\u0438\u0432\u0435\u0442","\u0442\u0430\u043C","\u0434\u043E","\u0441\u0438\u0445","\u043F\u043E\u0440"]},I_={common:["mujer","uno","dolor","m\xE1s","de","poder","mismo","si"],words:["ejercicio","preferencia","perspicacia","laboral","pa\xF1o","suntuoso","molde","namibia","planeador","mirar","dem\xE1s","oficinista","excepci\xF3n","odio","consecuencia","casi","auto","chicharra","velo","elixir","ataque","no","odio","temporal","cu\xF3rum","dign\xEDsimo","facilismo","letra","nihilista","expedici\xF3n","alma","alveolar","aparte","le\xF3n","animal","como","paria","belleza","modo","natividad","justo","ataque","s\xE9quito","pillo","sed","ex","y","voluminoso","temporalidad","verdades","racional","asunci\xF3n","incidente","marejada","placenta","amanecer","fuga","previsor","presentaci\xF3n","lejos","necesariamente","sospechoso","adiposidad","quind\xEDo","p\xF3cima","voluble","d\xE9bito","sinti\xF3","accesorio","falda","sapiencia","volutas","queso","permacultura","laudo","soluciones","entero","pan","litro","tonelada","culpa","libertario","mosca","dictado","reincidente","nascimiento","dolor","escolar","impedimento","m\xEDnima","mayores","repugnante","dulce","obcecado","monta\xF1a","enigma","total","delet\xE9reo","d\xE9cima","c\xE1bala","fotograf\xEDa","dolores","molesto","olvido","paciencia","resiliencia","voluntad","molestias","magn\xEDfico","distinci\xF3n","ovni","marejada","cerro","torre","y","abogada","manantial","corporal","agua","crep\xFAsculo","ataque","desierto","laboriosamente","angustia","afortunado","alma","encefalograma","materialidad","cosas","o","renuncia","error","menos","conejo","abad\xEDa","analfabeto","remo","fugacidad","oficio","en","alm\xE1cigo","vos","pan","represi\xF3n","n\xFAmeros","triste","refugiado","trote","inventor","corchea","repelente","magma","recusado","patr\xF3n","expl\xEDcito","paloma","s\xEDndrome","inmune","autoinmune","comodidad","ley","vietnamita","demonio","tasmania","repeler","ap\xE9ndice","arquitecto","columna","yugo","computador","mula","a","prop\xF3sito","fantas\xEDa","alias","rayo","tenedor","deleznable","ventana","cara","anemia","corrupto"]},vg={ru:D_,sp:I_,latin:P_},F_=/^lorem([a-z]*)(\d*)(-\d*)?$/i;function z_(e,r,i){let o;if(e.name&&(o=e.name.match(F_))){let c=vg[o[1]]||vg.latin,d=o[2]?Math.max(1,Number(o[2])):30,m=o[3]?Math.max(d,Number(o[3].slice(1))):d,x=po(d,m),S=e.repeat||B_(r);e.name=e.attributes=void 0,e.value=[W_(c,x,!S||S.value===0)],e.repeat&&r.length>1&&cy(e,r,i)}}function po(e,r){return Math.floor(Math.random()*(r-e)+e)}function R_(e,r){let i=e.length,o=Math.min(i,r),c=[];for(;c.length<o;){let d=e[po(0,i)];c.includes(d)||c.push(d)}return c}function j_(e){return e[po(0,e.length-1)]}function yg(e,r){return e.length&&(e=[q_(e[0])].concat(e.slice(1))),e.join(" ")+(r||j_("?!..."))}function q_(e){return e[0].toUpperCase()+e.slice(1)}function bg(e){if(e.length<2)return e;e=e.slice();let r=e.length,i=/,$/,o=0;r>3&&r<=6?o=po(0,1):r>6&&r<=12?o=po(0,2):o=po(1,4);for(let c=0,d;c<o;c++)d=po(0,r-2),i.test(e[d])||(e[d]+=",");return e}function W_(e,r,i){let o=[],c=0,d;for(i&&e.common&&(d=e.common.slice(0,r),c+=d.length,o.push(yg(bg(d),".")));c<r;)d=R_(e.words,Math.min(po(2,30),r-c)),c+=d.length,o.push(yg(bg(d)));return o.join(" ")}function B_(e){for(let r=e.length-1;r>=0;r--){let i=e[r];if(i.type==="AbbreviationNode"&&i.repeat)return i.repeat}}function H_(e){e.attributes&&e.attributes.forEach(U_)}function U_(e){e.name==="class"?e.name="className":e.name==="for"&&(e.name="htmlFor")}function K_(e){G_(e.name)&&e.attributes&&(e.children.length||e.value)&&(e.attributes=e.attributes.filter(V_))}function V_(e){return e.name!=="select"}function G_(e){return e==="xsl:variable"||e==="xsl:with-param"}var py=/^(-+)([a-z0-9]+[a-z0-9-]*)/i,dy=/^(_+)([a-z0-9]+[a-z0-9-_]*)/i,Q_=e=>/^[a-z]\-/i.test(e),X_=e=>/^[a-z]/i.test(e);function Y_(e,r,i){Z_(e),J_(e,r,i)}function Z_(e){let r=_d(e),i=[];for(let o of r.classNames){let c=o.indexOf("_");c>0&&!o.startsWith("-")?(i.push(o.slice(0,c)),i.push(o.slice(c))):i.push(o)}i.length&&(r.classNames=i.filter(vy),r.block=gy(r.classNames),my(e,r.classNames.join(" ")))}function J_(e,r,i){let o=_d(e),c=[],{options:d}=i,m=r.slice(1).concat(e);for(let S of o.classNames){let A="",T,D=S;(T=S.match(py))&&(A=xg(m,T[1].length,i.context)+d["bem.element"]+T[2],c.push(A),S=S.slice(T[0].length)),(T=S.match(dy))&&(A||(A=xg(m,T[1].length),c.push(A)),c.push(`${A}${d["bem.modifier"]}${T[2]}`),S=S.slice(T[0].length)),S===D&&c.push(D)}let x=c.filter(vy);x.length&&my(e,x.join(" "))}function _d(e){if(!e._bem){let r="";if(e.attributes){for(let i of e.attributes)if(i.name==="class"&&i.value){r=tS(i.value);break}}e._bem=hy(r)}return e._bem}function eS(e){return e._bem||(e._bem=hy(e.attributes&&e.attributes.class||"")),e._bem}function hy(e){let r=e?e.split(/\s+/):[];return{classNames:r,block:gy(r)}}function xg(e,r=0,i){let c=Math.max(e.length-r,0);do{let d=e[c];if(d){let m=_d(d);if(m.block)return m.block}}while(0<c--);if(i){let d=eS(i);if(d.block)return d.block}return""}function gy(e){return wg(e,Q_)||wg(e,X_)||void 0}function wg(e,r){for(let i of e){if(py.test(i)||dy.test(i))break;if(r(i))return i}}function my(e,r){for(let i of e.attributes)if(i.name==="class"){i.value=[r];break}}function tS(e){let r="";for(let i of e)r+=typeof i=="string"?i:i.name;return r}function vy(e,r,i){return!!e&&i.indexOf(e)===r}function yy(e,r,i){let o=(d,m,x)=>{let{parent:S,current:A}=i;i.parent=A,i.current=d,r(d,m,x,i,c),i.current=A,i.parent=S},c=(d,m,x)=>{i.ancestors.push(i.current),o(d,m,x),i.ancestors.pop()};e.children.forEach(o)}function by(e){return{current:null,parent:void 0,ancestors:[],config:e,field:1,out:ay(e.options)}}var pc=[{type:"Field",index:0,name:""}];function ga(e){return e?!e.name&&!e.attributes:!1}function kg(e,r){return e?_s(e,r):!1}function xy(e){return typeof e=="object"&&e.type==="Field"}function tn(e,r){let{out:i}=r,o=-1;for(let c of e)typeof c=="string"?xt(i,c):(kd(i,r.field+c.index,c.name),c.index>o&&(o=c.index));o!==-1&&(r.field+=o+1)}function rS(e){let r=[],i=[];for(let o of e)if(typeof o=="string"){let c=o.split(/\r\n?|\n/g);for(i.push(c.shift()||"");c.length;)r.push(i),i=[c.shift()||""]}else i.push(o);return i.length&&r.push(i),r}function wy(e){return!e.implied||e.valueType!=="raw"||!!e.value&&e.value.length>0}function _g(e){let r=[],i={pos:0,text:e},o,c=i.pos,d=i.pos;for(;i.pos<i.text.length;)d=i.pos,(o=nS(i))?(c!==i.pos&&r.push(e.slice(c,d)),r.push(o),c=i.pos):i.pos++;return c!==i.pos&&r.push(e.slice(c)),r}function nS(e){if(kp(e)===91){let r=++e.pos,i=r,o=r,c=1;for(;e.pos<e.text.length;){let d=kp(e);if(ky(d)){for(i=e.pos;iS(kp(e));)e.pos++;o=e.pos}else{if(d===91)c++;else if(d===93&&--c===0)return{before:e.text.slice(r,i),after:e.text.slice(o,e.pos++),name:e.text.slice(i,o)};e.pos++}}}}function kp(e,r=e.pos){return e.text.charCodeAt(r)}function ky(e){return e>=65&&e<=90}function iS(e){return ky(e)||e>47&&e<58||e===95||e===45}function oS(e){let{options:r}=e;return{enabled:r["comment.enabled"],trigger:r["comment.trigger"],before:r["comment.before"]?_g(r["comment.before"]):void 0,after:r["comment.after"]?_g(r["comment.after"]):void 0}}function aS(e,r){_y(e,r)&&r.comment.before&&Sy(e,r.comment.before,r)}function sS(e,r){_y(e,r)&&r.comment.after&&Sy(e,r.comment.after,r)}function _y(e,r){let{comment:i}=r;if(!i.enabled||!i.trigger||!e.name||!e.attributes)return!1;for(let o of e.attributes)if(o.name&&i.trigger.includes(o.name))return!0;return!1}function Sy(e,r,i){let o={},{out:c}=i;for(let d of e.attributes)d.name&&d.value&&(o[d.name.toUpperCase()]=d.value);for(let d of r)typeof d=="string"?xt(c,d):o[d.name]&&(xt(c,d.before),tn(o[d.name],i),xt(c,d.after))}var lS=/^<([\w\-:]+)[\s>]/;function Cy(e,r){let i=by(r);return i.comment=oS(r),yy(e,uS,i),i.out.value}function uS(e,r,i,o,c){let{out:d,config:m}=o,x=Ty(e,r,i,o),S=cS(o);if(d.level+=S,x&&Un(d,!0),e.name){let A=$_(e.name,m);if(aS(e,o),xt(d,`<${A}`),e.attributes)for(let T of e.attributes)wy(T)&&fS(T,o);if(e.selfClosing&&!e.children.length&&!e.value)xt(d,`${L_(m)}>`);else{if(xt(d,">"),!Sg(e,o,c)){if(e.value){let T=e.value.some($y)||pS(e.value,m);T&&Un(o.out,++d.level),tn(e.value,o),T&&Un(o.out,--d.level)}if(e.children.forEach(c),!e.value&&!e.children.length){let T=m.options["output.formatLeafNode"]||m.options["output.formatForce"].includes(e.name);T&&Un(o.out,++d.level),tn(pc,o),T&&Un(o.out,--d.level)}}xt(d,`</${A}>`),sS(e,o)}}else!Sg(e,o,c)&&e.value&&(tn(e.value,o),e.children.forEach(c));if(x&&r===i.length-1&&o.parent){let A=ga(o.parent)?0:1;Un(d,d.level-A)}d.level-=S}function fS(e,r){let{out:i,config:o}=r;if(e.name){let c=sy(e.name,o),d=Xf(e,o,!0),m=Xf(e,o),x=e.value;ly(e,o)&&!x?o.options["output.compactBoolean"]||(x=[c]):x||(x=pc),xt(i," "+c),x?(xt(i,"="+d),tn(x,r),xt(i,m)):o.options["output.selfClosingStyle"]!=="html"&&xt(i,"="+d+m)}}function Sg(e,r,i){if(e.value&&e.children.length){let o=e.value.findIndex(xy);if(o!==-1){tn(e.value.slice(0,o),r);let c=r.out.line,d=o+1;return e.children.forEach(i),r.out.line!==c&&typeof e.value[d]=="string"&&xt(r.out,e.value[d++].trimLeft()),tn(e.value.slice(d),r),!0}}return!1}function Ty(e,r,i,o){let{config:c,parent:d}=o;if(!c.options["output.format"]||r===0&&!d||d&&ga(d)&&i.length===1)return!1;if(ga(e)&&(ga(i[r-1])||ga(i[r+1])||e.value.some($y)||e.value.some(xy)&&e.children.length))return!0;if(_s(e,c)){if(r===0){for(let m=0;m<i.length;m++)if(!_s(i[m],c))return!0}else if(!_s(i[r-1],c))return!0;if(c.options["output.inlineBreak"]){let m=1,x=r,S=r;for(;kg(i[--x],c);)m++;for(;kg(i[++S],c);)m++;if(m>=c.options["output.inlineBreak"])return!0}for(let m=0,x=e.children.length;m<x;m++)if(Ty(e.children[m],m,e.children,o))return!0;return!1}return!0}function cS(e){let{config:r,parent:i}=e;return!i||ga(i)||i.name&&r.options["output.formatSkip"].includes(i.name)?0:1}function $y(e){return typeof e=="string"&&/\r|\n/.test(e)}function pS(e,r){if(e.length&&typeof e[0]=="string"){let i=lS.exec(e[0]);if(i?.length&&!r.options.inlineElements.includes(i[1].toLowerCase()))return!0}return!1}function Sd(e,r,i){let o=by(r);return o.options=i||{},yy(e,dS,o),o.out.value}function dS(e,r,i,o,c){let{out:d,options:m}=o,{primary:x,secondary:S}=hS(e),A=o.parent?1:0;d.level+=A,xS(e,r,i,o)&&Un(d,!0),e.name&&(e.name!=="div"||!x.length)&&xt(d,(m.beforeName||"")+e.name+(m.afterName||"")),gS(x,o),mS(S.filter(wy),o),e.selfClosing&&!e.value&&!e.children.length?o.options.selfClose&&xt(d,o.options.selfClose):(vS(e,o),e.children.forEach(c)),d.level-=A}function hS(e){let r=[],i=[];if(e.attributes)for(let o of e.attributes)yS(o)?r.push(o):i.push(o);return{primary:r,secondary:i}}function gS(e,r){for(let i of e)if(i.value)if(i.name==="class"){xt(r.out,".");let o=i.value.map(c=>typeof c=="string"?c.replace(/\s+/g,"."):c);tn(o,r)}else xt(r.out,"#"),tn(i.value,r)}function mS(e,r){if(e.length){let{out:i,config:o,options:c}=r;c.beforeAttribute&&xt(i,c.beforeAttribute);for(let d=0;d<e.length;d++){let m=e[d];xt(i,sy(m.name||"",o)),ly(m,o)&&!m.value?!o.options["output.compactBoolean"]&&c.booleanValue&&xt(i,"="+c.booleanValue):(xt(i,"="+Xf(m,o,!0)),tn(m.value||pc,r),xt(i,Xf(m,o))),d!==e.length-1&&c.glueAttribute&&xt(i,c.glueAttribute)}c.afterAttribute&&xt(i,c.afterAttribute)}}function vS(e,r){if(!e.value&&e.children.length)return;let i=e.value||pc,o=rS(i),{out:c,options:d}=r;if(o.length===1)(e.name||e.attributes)&&Ut(c," "),tn(i,r);else{let m=[],x=0;for(let S of o){let A=bS(S);m.push(A),A>x&&(x=A)}c.level++;for(let S=0;S<o.length;S++)Un(c,!0),d.beforeTextLine&&Ut(c,d.beforeTextLine),tn(o[S],r),d.afterTextLine&&(Ut(c," ".repeat(x-m[S])),Ut(c,d.afterTextLine));c.level--}}function yS(e){return e.name==="class"||e.name==="id"}function bS(e){let r=0;for(let i of e)r+=typeof i=="string"?i.length:i.name.length;return r}function xS(e,r,i,o){return!o.parent&&r===0?!1:!ga(e)}function wS(e,r){return Sd(e,r,{beforeName:"%",beforeAttribute:"(",afterAttribute:")",glueAttribute:" ",afterTextLine:" |",booleanValue:"true",selfClose:"/"})}function kS(e,r){return Sd(e,r,{beforeAttribute:" ",glueAttribute:" ",beforeTextLine:"| ",selfClose:"/"})}function _S(e,r){return Sd(e,r,{beforeAttribute:"(",afterAttribute:")",glueAttribute:", ",beforeTextLine:"| ",selfClose:r.options["output.selfClosingStyle"]==="xml"?"/":""})}var SS={html:Cy,haml:wS,slim:kS,pug:_S};function CS(e,r){let i;if(typeof e=="string"){let o=r;r.options["jsx.enabled"]&&(o=Object.assign(Object.assign({},o),{jsx:!0})),r.options["markup.href"]&&(o=Object.assign(Object.assign({},o),{href:!0})),e=pm(e,o),i=r.text,r.text=void 0}return e=S_(e,r),k_(e,$S,r),r.text=i??r.text,e}function TS(e,r){return(SS[r.syntax]||Cy)(e,r)}function $S(e,r,i){N_(e,r,i),b_(e,i),z_(e,r,i),i.syntax==="xsl"&&K_(e),i.options["jsx.enabled"]&&H_(e),i.options["bem.enabled"]&&Y_(e,r,i)}var LS=/^([a-z-]+)(?:\s*:\s*([^\n\r;]+?);*)?$/,AS={value:!0};function OS(e,r){let i=r.match(LS);if(i){let o={},c=i[2]?i[2].split("|").map(MS):[];for(let d of c)for(let m of d)DS(m,o);return{type:"Property",key:e,property:i[1],value:c,keywords:o,dependencies:[]}}return{type:"Raw",key:e,value:r}}function NS(e){e=e.slice().sort(ES);let r=[],i;for(let o of e.filter(PS)){for(;r.length;){if(i=r[r.length-1],o.property.startsWith(i.property)&&o.property.charCodeAt(i.property.length)===45){i.dependencies.push(o),r.push(o);break}r.pop()}r.length||r.push(o)}return e}function ES(e,r){return e.key===r.key?0:e.key<r.key?-1:1}function MS(e){return km(e.trim(),AS)[0].value}function PS(e){return e.type==="Property"}function DS(e,r){for(let i of e.value)if(i.type==="Literal")r[i.value]=i;else if(i.type==="FunctionCall")r[i.name]=i;else if(i.type==="Field"){let o=i.name.trim();o&&(r[o]={type:"Literal",value:o})}}function IS(e,r,i=!1){if(e=e.toLowerCase(),r=r.toLowerCase(),e===r)return 1;if(!e||!r||e.charCodeAt(0)!==r.charCodeAt(0))return 0;let o=e.length,c=r.length;if(!i&&o>c)return 0;let d=Math.min(o,c),m=Math.max(o,c),x=1,S=1,A=m,T=0,D=0,E=!1,U=!1;for(;x<o;){for(T=e.charCodeAt(x),E=!1,U=!1;S<c;){if(D=r.charCodeAt(S),T===D){E=!0,A+=m-(U?x:S);break}U=D===45,S++}if(!E){if(!i)return 0;break}x++}let V=x/m,I=m-d,W=Cg(m)-Cg(I);return A*V/W}function Cg(e){return e*(e+1)/2}function Ly(e,r){return!e.r&&!e.g&&!e.b&&!e.a?"transparent":e.a===1?FS(e,r):zS(e)}function FS(e,r){let i=r&&_p(e.r)&&_p(e.g)&&_p(e.b)?RS:jS;return"#"+i(e.r)+i(e.g)+i(e.b)}function zS(e){let r=[e.r,e.g,e.b];return e.a!==1&&r.push(Ay(e.a,8)),`${r.length===3?"rgb":"rgba"}(${r.join(", ")})`}function Ay(e,r=4){return e.toFixed(r).replace(/\.?0+$/,"")}function _p(e){return!(e%17)}function RS(e){return(e>>4).toString(16)}function jS(e){return qS(e.toString(16),2)}function qS(e,r){for(;e.length<r;)e="0"+e;return e}function WS(e,r){var i;let o=ay(r.options),c=r.options["output.format"];((i=r.context)===null||i===void 0?void 0:i.name)==="@@section"&&(e=e.filter(d=>d.snippet));for(let d=0;d<e.length;d++)c&&d!==0&&Un(o,!0),BS(e[d],o,r);return o.value}function BS(e,r,i){let o=i.options["stylesheet.json"];if(e.name){let c=o?KS(e.name):e.name;xt(r,c+i.options["stylesheet.between"]),e.value.length?HS(e,r,i):kd(r,0,""),o?Ut(r,","):(Tg(e,r,!0),Ut(r,i.options["stylesheet.after"]))}else{for(let c of e.value)for(let d of c.value)Ny(d,r,i);Tg(e,r,e.value.length>0)}}function HS(e,r,i){let o=i.options["stylesheet.json"],c=o?US(e):null;if(c&&(!c.unit||c.unit==="px"))Ut(r,String(c.value));else{let d=VS(i);o&&Ut(r,d);for(let m=0;m<e.value.length;m++)m!==0&&Ut(r,", "),Oy(e.value[m],r,i);o&&Ut(r,d)}}function Tg(e,r,i){e.important&&(i&&Ut(r," "),Ut(r,"!important"))}function Oy(e,r,i){for(let o=0,c=-1;o<e.value.length;o++){let d=e.value[o];o!==0&&(d.type!=="Field"||d.start!==c)&&Ut(r," "),Ny(d,r,i),c=d.end}}function Ny(e,r,i){if(e.type==="ColorValue")Ut(r,Ly(e,i.options["stylesheet.shortHex"]));else if(e.type==="Literal")xt(r,e.value);else if(e.type==="NumberValue")xt(r,Ay(e.value,4)+e.unit);else if(e.type==="StringValue"){let o=e.quote==="double"?'"':"'";xt(r,o+e.value+o)}else if(e.type==="Field")kd(r,e.index,e.name);else if(e.type==="FunctionCall"){Ut(r,e.name+"(");for(let o=0;o<e.arguments.length;o++)o&&Ut(r,", "),Oy(e.arguments[o],r,i);Ut(r,")")}}function US(e){if(e.value.length===1){let r=e.value[0];if(r.value.length===1&&r.value[0].type==="NumberValue")return r.value[0]}}function KS(e){return e.replace(/\-(\w)/g,(r,i)=>i.toUpperCase())}function VS(e){return e.options["stylesheet.jsonDoubleQuotes"]?'"':"'"}var $g="lg";function GS(e,r){var i;let o=((i=r.cache)===null||i===void 0?void 0:i.stylesheetSnippets)||QS(r.snippets);r.cache&&(r.cache.stylesheetSnippets=o),typeof e=="string"&&(e=km(e,{value:Dy(r)}));let c=nC(o,r);for(let d of e)XS(d,c,r);return e}function QS(e){let r=[];for(let i of Object.keys(e))r.push(OS(i,e[i]));return NS(r)}function XS(e,r,i){if(!YS(e,i)){let o=i.options["stylesheet.fuzzySearchMinScore"];if(Dy(i)){let c=i.context.name,d=r.find(m=>m.type==="Property"&&m.property===c);Ey(e,i,d,o),e.snippet=d}else if(e.name){let c=Pf(e.name,r,o,!0);e.snippet=c,c&&(c.type==="Property"?ZS(e,c,i):JS(e,c))}}return(e.name||i.context)&&rC(e,i),e}function YS(e,r){let i=null,o=e.value.length===1?e.value[0]:null;if(o&&o.value.length===1){let c=o.value[0];c.type==="FunctionCall"&&c.name===$g&&(i=c)}return i||e.name===$g?(i?i=Object.assign(Object.assign({},i),{name:"linear-gradient"}):i={type:"FunctionCall",name:"linear-gradient",arguments:[Yf(da(0,""))]},r.context||(e.name="background-image"),e.value=[Yf(i)],!0):!1}function ZS(e,r,i){let o=e.name,c=tC(o,r.key);if(c){if(e.value.length)return e;let d=Bp(c,i,r);if(!d)return e;e.value.push(Yf(d))}if(e.name=r.property,e.value.length)Ey(e,i,r);else if(r.value.length){let d=r.value[0];e.value=r.value.length===1||d.some(My)?d:d.map(m=>Py(m,i))}return e}function Ey(e,r,i,o){for(let c of e.value){let d=[];for(let m of c.value)if(m.type==="Literal")d.push(Bp(m.value,r,i,o)||m);else if(m.type==="FunctionCall"){let x=Bp(m.name,r,i,o);x&&x.type==="FunctionCall"?d.push(Object.assign(Object.assign({},x),{arguments:m.arguments.concat(x.arguments.slice(m.arguments.length))})):d.push(m)}else d.push(m);c.value=d}}function JS(e,r){let i=0,o,c=/\$\{(\d+)(:[^}]+)?\}/g,d=e.value[0],m=[];for(;o=c.exec(r.value);)i!==o.index&&m.push(Ss(r.value.slice(i,o.index))),i=o.index+o[0].length,d&&d.value.length?m.push(d.value.shift()):m.push(da(Number(o[1]),o[2]?o[2].slice(1):""));let x=r.value.slice(i);return x&&m.push(Ss(x)),e.name=void 0,e.value=[Yf(...m)],e}function Pf(e,r,i=0,o=!1){let c=null,d=0;for(let m of r){let x=IS(e,eC(m),o);if(x===1)return m;x&&x>=d&&(d=x,c=m)}return d>=i?c:null}function eC(e){return typeof e=="string"?e:e.key}function tC(e,r){for(let i=0,o=0;i<e.length;i++){if(o=r.indexOf(e[i],o),o===-1)return e.slice(i);o++}return""}function Bp(e,r,i,o){let c;if(i){if(c=Pf(e,Object.keys(i.keywords),o))return i.keywords[c];for(let d of i.dependencies)if(c=Pf(e,Object.keys(d.keywords),o))return d.keywords[c]}return(c=Pf(e,r.options["stylesheet.keywords"],o))?Ss(c):null}function rC(e,r){let i=r.options["stylesheet.unitAliases"],o=r.options["stylesheet.unitless"];for(let c of e.value)for(let d of c.value)d.type==="NumberValue"&&(d.unit?d.unit=i[d.unit]||d.unit:d.value!==0&&!o.includes(e.name)&&(d.unit=d.rawValue.includes(".")?r.options["stylesheet.floatUnit"]:r.options["stylesheet.intUnit"]))}function Yf(...e){return{type:"CSSValue",value:e}}function Ss(e){return{type:"Literal",value:e}}function da(e,r){return{type:"Field",index:e,name:r}}function My(e){for(let r of e.value)if(r.type==="Field"||r.type==="FunctionCall"&&r.arguments.some(My))return!0;return!1}function Py(e,r,i={index:1}){let o=[];for(let c of e.value)switch(c.type){case"ColorValue":o.push(da(i.index++,Ly(c,r.options["stylesheet.shortHex"])));break;case"Literal":o.push(da(i.index++,c.value));break;case"NumberValue":o.push(da(i.index++,`${c.value}${c.unit}`));break;case"StringValue":let d=c.quote==="single"?"'":'"';o.push(da(i.index++,d+c.value+d));break;case"FunctionCall":o.push(da(i.index++,c.name),Ss("("));for(let m=0,x=c.arguments.length;m<x;m++)o=o.concat(Py(c.arguments[m],r,i).value),m!==x-1&&o.push(Ss(", "));o.push(Ss(")"));break;default:o.push(c)}return Object.assign(Object.assign({},e),{value:o})}function Dy(e){return e.context?e.context.name==="@@value"||!e.context.name.startsWith("@@"):!1}function nC(e,r){if(r.context){if(r.context.name==="@@section")return e.filter(i=>i.type==="Raw");if(r.context.name==="@@property")return e.filter(i=>i.type==="Property")}return e}var iC={a:"a[href]","a:blank":"a[href='http://${0}' target='_blank' rel='noopener noreferrer']","a:link":"a[href='http://${0}']","a:mail":"a[href='mailto:${0}']","a:tel":"a[href='tel:+${0}']",abbr:"abbr[title]","acr|acronym":"acronym[title]",base:"base[href]/",basefont:"basefont/",br:"br/",frame:"frame/",hr:"hr/",bdo:"bdo[dir]","bdo:r":"bdo[dir=rtl]","bdo:l":"bdo[dir=ltr]",col:"col/",link:"link[rel=stylesheet href]/","link:css":"link[href='${1:style}.css']","link:print":"link[href='${1:print}.css' media=print]","link:favicon":"link[rel='shortcut icon' type=image/x-icon href='${1:favicon.ico}']","link:mf|link:manifest":"link[rel='manifest' href='${1:manifest.json}']","link:touch":"link[rel=apple-touch-icon href='${1:favicon.png}']","link:rss":"link[rel=alternate type=application/rss+xml title=RSS href='${1:rss.xml}']","link:atom":"link[rel=alternate type=application/atom+xml title=Atom href='${1:atom.xml}']","link:im|link:import":"link[rel=import href='${1:component}.html']",meta:"meta/","meta:utf":"meta[http-equiv=Content-Type content='text/html;charset=UTF-8']","meta:vp":"meta[name=viewport content='width=${1:device-width}, initial-scale=${2:1.0}']","meta:compat":"meta[http-equiv=X-UA-Compatible content='${1:IE=7}']","meta:edge":"meta:compat[content='${1:ie=edge}']","meta:redirect":"meta[http-equiv=refresh content='0; url=${1:http://example.com}']","meta:kw":"meta[name=keywords content]","meta:desc":"meta[name=description content]",style:"style",script:"script","script:src":"script[src]",img:"img[src alt]/","img:s|img:srcset":"img[srcset src alt]","img:z|img:sizes":"img[sizes srcset src alt]",picture:"picture","src|source":"source/","src:sc|source:src":"source[src type]","src:s|source:srcset":"source[srcset]","src:t|source:type":"source[srcset type='${1:image/}']","src:z|source:sizes":"source[sizes srcset]","src:m|source:media":"source[media='(${1:min-width: })' srcset]","src:mt|source:media:type":"source:media[type='${2:image/}']","src:mz|source:media:sizes":"source:media[sizes srcset]","src:zt|source:sizes:type":"source[sizes srcset type='${1:image/}']",iframe:"iframe[src frameborder=0]",embed:"embed[src type]/",object:"object[data type]",param:"param[name value]/",map:"map[name]",area:"area[shape coords href alt]/","area:d":"area[shape=default]","area:c":"area[shape=circle]","area:r":"area[shape=rect]","area:p":"area[shape=poly]",form:"form[action]","form:get":"form[method=get]","form:post":"form[method=post]",label:"label[for]",input:"input[type=${1:text}]/",inp:"input[name=${1} id=${1}]","input:h|input:hidden":"input[type=hidden name]","input:t|input:text":"inp[type=text]","input:search":"inp[type=search]","input:email":"inp[type=email]","input:url":"inp[type=url]","input:p|input:password":"inp[type=password]","input:datetime":"inp[type=datetime]","input:date":"inp[type=date]","input:datetime-local":"inp[type=datetime-local]","input:month":"inp[type=month]","input:week":"inp[type=week]","input:time":"inp[type=time]","input:tel":"inp[type=tel]","input:number":"inp[type=number]","input:color":"inp[type=color]","input:c|input:checkbox":"inp[type=checkbox]","input:r|input:radio":"inp[type=radio]","input:range":"inp[type=range]","input:f|input:file":"inp[type=file]","input:s|input:submit":"input[type=submit value]","input:i|input:image":"input[type=image src alt]","input:b|input:btn|input:button":"input[type=button value]","input:reset":"input:button[type=reset]",isindex:"isindex/",select:"select[name=${1} id=${1}]","select:d|select:disabled":"select[disabled.]","opt|option":"option[value]",textarea:"textarea[name=${1} id=${1} cols=${2:30} rows=${3:10}]",marquee:"marquee[behavior direction]","menu:c|menu:context":"menu[type=context]","menu:t|menu:toolbar":"menu[type=toolbar]",video:"video[src]",audio:"audio[src]","html:xml":"html[xmlns=http://www.w3.org/1999/xhtml]",keygen:"keygen/",command:"command/","btn:s|button:s|button:submit":"button[type=submit]","btn:r|button:r|button:reset":"button[type=reset]","btn:d|button:d|button:disabled":"button[disabled.]","fst:d|fset:d|fieldset:d|fieldset:disabled":"fieldset[disabled.]",bq:"blockquote",fig:"figure",figc:"figcaption",pic:"picture",ifr:"iframe",emb:"embed",obj:"object",cap:"caption",colg:"colgroup",fst:"fieldset",btn:"button",optg:"optgroup",tarea:"textarea",leg:"legend",sect:"section",art:"article",hdr:"header",ftr:"footer",adr:"address",dlg:"dialog",str:"strong",prog:"progress",mn:"main",tem:"template",fset:"fieldset",datag:"datagrid",datal:"datalist",kg:"keygen",out:"output",det:"details",sum:"summary",cmd:"command","ri:d|ri:dpr":"img:s","ri:v|ri:viewport":"img:z","ri:a|ri:art":"pic>src:m+img","ri:t|ri:type":"pic>src:t+img","!!!":"{<!DOCTYPE html>}",doc:"html[lang=${lang}]>(head>meta[charset=${charset}]+meta[http-equiv='X-UA-Compatible'][content='IE=edge']+meta:vp+title{${1:Document}})+body","!|html:5":"!!!+doc",c:"{<!-- ${0} -->}","cc:ie":"{<!--[if IE]>${0}<![endif]-->}","cc:noie":"{<!--[if !IE]><!-->${0}<!--<![endif]-->}"},oC={"@f":`@font-face {
	font-family: \${1};
	src: url(\${2});
}`,"@ff":"@font-face {\n	font-family: '${1:FontName}';\n	src: url('${2:FileName}.eot');\n	src: url('${2:FileName}.eot?#iefix') format('embedded-opentype'),\n		 url('${2:FileName}.woff') format('woff'),\n		 url('${2:FileName}.ttf') format('truetype'),\n		 url('${2:FileName}.svg#${1:FontName}') format('svg');\n	font-style: ${3:normal};\n	font-weight: ${4:normal};\n}","@i|@import":"@import url(${0});","@kf":"@keyframes ${1:identifier} {\n	${2}\n}","@m|@media":"@media ${1:screen} {\n	${0}\n}",ac:"align-content:start|end|flex-start|flex-end|center|space-between|space-around|stretch|space-evenly",ai:"align-items:start|end|flex-start|flex-end|center|baseline|stretch",anim:"animation:${1:name} ${2:duration} ${3:timing-function} ${4:delay} ${5:iteration-count} ${6:direction} ${7:fill-mode}",animdel:"animation-delay:time",animdir:"animation-direction:normal|reverse|alternate|alternate-reverse",animdur:"animation-duration:${1:0}s",animfm:"animation-fill-mode:both|forwards|backwards",animic:"animation-iteration-count:1|infinite",animn:"animation-name",animps:"animation-play-state:running|paused",animtf:"animation-timing-function:linear|ease|ease-in|ease-out|ease-in-out|cubic-bezier(${1:0.1}, ${2:0.7}, ${3:1.0}, ${3:0.1})",ap:"appearance:none",as:"align-self:start|end|auto|flex-start|flex-end|center|baseline|stretch",b:"bottom",bd:"border:${1:1px} ${2:solid} ${3:#000}",bdb:"border-bottom:${1:1px} ${2:solid} ${3:#000}",bdbc:"border-bottom-color:${1:#000}",bdbi:"border-bottom-image:url(${0})",bdbk:"border-break:close",bdbli:"border-bottom-left-image:url(${0})|continue",bdblrs:"border-bottom-left-radius",bdbri:"border-bottom-right-image:url(${0})|continue",bdbrrs:"border-bottom-right-radius",bdbs:"border-bottom-style",bdbw:"border-bottom-width",bdc:"border-color:${1:#000}",bdci:"border-corner-image:url(${0})|continue",bdcl:"border-collapse:collapse|separate",bdf:"border-fit:repeat|clip|scale|stretch|overwrite|overflow|space",bdi:"border-image:url(${0})",bdl:"border-left:${1:1px} ${2:solid} ${3:#000}",bdlc:"border-left-color:${1:#000}",bdlen:"border-length",bdli:"border-left-image:url(${0})",bdls:"border-left-style",bdlw:"border-left-width",bdr:"border-right:${1:1px} ${2:solid} ${3:#000}",bdrc:"border-right-color:${1:#000}",bdri:"border-right-image:url(${0})",bdrs:"border-radius",bdrst:"border-right-style",bdrw:"border-right-width",bds:"border-style:none|hidden|dotted|dashed|solid|double|dot-dash|dot-dot-dash|wave|groove|ridge|inset|outset",bdsp:"border-spacing",bdt:"border-top:${1:1px} ${2:solid} ${3:#000}",bdtc:"border-top-color:${1:#000}",bdti:"border-top-image:url(${0})",bdtli:"border-top-left-image:url(${0})|continue",bdtlrs:"border-top-left-radius",bdtri:"border-top-right-image:url(${0})|continue",bdtrrs:"border-top-right-radius",bdts:"border-top-style",bdtw:"border-top-width",bdw:"border-width",bfv:"backface-visibility:hidden|visible",bg:"background:${1:#000}",bga:"background-attachment:fixed|scroll",bgbk:"background-break:bounding-box|each-box|continuous",bgc:"background-color:#${1:fff}",bgcp:"background-clip:padding-box|border-box|content-box|no-clip",bgi:"background-image:url(${0})",bgo:"background-origin:padding-box|border-box|content-box",bgp:"background-position:${1:0} ${2:0}",bgpx:"background-position-x",bgpy:"background-position-y",bgr:"background-repeat:no-repeat|repeat-x|repeat-y|space|round",bgsz:"background-size:contain|cover",bxsh:"box-shadow:${1:inset }${2:hoff} ${3:voff} ${4:blur} ${5:#000}|none",bxsz:"box-sizing:border-box|content-box|border-box",c:"color:${1:#000}",cr:"color:rgb(${1:0}, ${2:0}, ${3:0})",cra:"color:rgba(${1:0}, ${2:0}, ${3:0}, ${4:.5})",cl:"clear:both|left|right|none",cm:"/* ${0} */",cnt:"content:'${0}'|normal|open-quote|no-open-quote|close-quote|no-close-quote|attr(${0})|counter(${0})|counters(${0})",coi:"counter-increment",colm:"columns",colmc:"column-count",colmf:"column-fill",colmg:"column-gap",colmr:"column-rule",colmrc:"column-rule-color",colmrs:"column-rule-style",colmrw:"column-rule-width",colms:"column-span",colmw:"column-width",cor:"counter-reset",cp:"clip:auto|rect(${1:top} ${2:right} ${3:bottom} ${4:left})",cps:"caption-side:top|bottom",cur:"cursor:pointer|auto|default|crosshair|hand|help|move|pointer|text",d:"display:block|none|flex|inline-flex|inline|inline-block|grid|inline-grid|subgrid|list-item|run-in|compact|table|inline-table|table-caption|table-column|table-column-group|table-header-group|table-footer-group|table-row|table-row-group|table-cell|ruby|ruby-base|ruby-base-group|ruby-text|ruby-text-group",ec:"empty-cells:show|hide",f:"font:${1:1em} ${2:sans-serif}",fd:"font-display:auto|block|swap|fallback|optional",fef:"font-effect:none|engrave|emboss|outline",fem:"font-emphasize",femp:"font-emphasize-position:before|after",fems:"font-emphasize-style:none|accent|dot|circle|disc",ff:"font-family:serif|sans-serif|cursive|fantasy|monospace",fft:'font-family:"Times New Roman", Times, Baskerville, Georgia, serif',ffa:'font-family:Arial, "Helvetica Neue", Helvetica, sans-serif',ffv:"font-family:Verdana, Geneva, sans-serif",fl:"float:left|right|none",fs:"font-style:italic|normal|oblique",fsm:"font-smoothing:antialiased|subpixel-antialiased|none",fst:"font-stretch:normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded",fv:"font-variant:normal|small-caps",fvs:"font-variation-settings:normal|inherit|initial|unset",fw:"font-weight:normal|bold|bolder|lighter",fx:"flex",fxb:"flex-basis:fill|max-content|min-content|fit-content|content",fxd:"flex-direction:row|row-reverse|column|column-reverse",fxf:"flex-flow",fxg:"flex-grow",fxsh:"flex-shrink",fxw:"flex-wrap:nowrap|wrap|wrap-reverse",fsz:"font-size",fsza:"font-size-adjust",gtc:"grid-template-columns:repeat()|minmax()",gtr:"grid-template-rows:repeat()|minmax()",gta:"grid-template-areas",gt:"grid-template",gg:"grid-gap",gcg:"grid-column-gap",grg:"grid-row-gap",gac:"grid-auto-columns:auto|minmax()",gar:"grid-auto-rows:auto|minmax()",gaf:"grid-auto-flow:row|column|dense|inherit|initial|unset",gd:"grid",gc:"grid-column",gcs:"grid-column-start",gce:"grid-column-end",gr:"grid-row",grs:"grid-row-start",gre:"grid-row-end",ga:"grid-area",h:"height",jc:"justify-content:start|end|stretch|flex-start|flex-end|center|space-between|space-around|space-evenly",ji:"justify-items:start|end|center|stretch",js:"justify-self:start|end|center|stretch",l:"left",lg:"background-image:linear-gradient(${1})",lh:"line-height",lis:"list-style",lisi:"list-style-image",lisp:"list-style-position:inside|outside",list:"list-style-type:disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman",lts:"letter-spacing:normal",m:"margin",mah:"max-height",mar:"max-resolution",maw:"max-width",mb:"margin-bottom",mih:"min-height",mir:"min-resolution",miw:"min-width",ml:"margin-left",mr:"margin-right",mt:"margin-top",ol:"outline",olc:"outline-color:${1:#000}|invert",olo:"outline-offset",ols:"outline-style:none|dotted|dashed|solid|double|groove|ridge|inset|outset",olw:"outline-width|thin|medium|thick","op|opa":"opacity",ord:"order",ori:"orientation:landscape|portrait",orp:"orphans",ov:"overflow:hidden|visible|hidden|scroll|auto",ovs:"overflow-style:scrollbar|auto|scrollbar|panner|move|marquee",ovx:"overflow-x:hidden|visible|hidden|scroll|auto",ovy:"overflow-y:hidden|visible|hidden|scroll|auto",p:"padding",pb:"padding-bottom",pgba:"page-break-after:auto|always|left|right",pgbb:"page-break-before:auto|always|left|right",pgbi:"page-break-inside:auto|avoid",pl:"padding-left",pos:"position:relative|absolute|relative|fixed|static",pr:"padding-right",pt:"padding-top",q:"quotes",qen:"quotes:'\\201C' '\\201D' '\\2018' '\\2019'",qru:"quotes:'\\00AB' '\\00BB' '\\201E' '\\201C'",r:"right",rsz:"resize:none|both|horizontal|vertical",t:"top",ta:"text-align:left|center|right|justify",tal:"text-align-last:left|center|right",tbl:"table-layout:fixed",td:"text-decoration:none|underline|overline|line-through",te:"text-emphasis:none|accent|dot|circle|disc|before|after",th:"text-height:auto|font-size|text-size|max-size",ti:"text-indent",tj:"text-justify:auto|inter-word|inter-ideograph|inter-cluster|distribute|kashida|tibetan",to:"text-outline:${1:0} ${2:0} ${3:#000}",tov:"text-overflow:ellipsis|clip",tr:"text-replace",trf:"transform:${1}|skewX(${1:angle})|skewY(${1:angle})|scale(${1:x}, ${2:y})|scaleX(${1:x})|scaleY(${1:y})|scaleZ(${1:z})|scale3d(${1:x}, ${2:y}, ${3:z})|rotate(${1:angle})|rotateX(${1:angle})|rotateY(${1:angle})|rotateZ(${1:angle})|translate(${1:x}, ${2:y})|translateX(${1:x})|translateY(${1:y})|translateZ(${1:z})|translate3d(${1:tx}, ${2:ty}, ${3:tz})",trfo:"transform-origin",trfs:"transform-style:preserve-3d",trs:"transition:${1:prop} ${2:time}",trsde:"transition-delay:${1:time}",trsdu:"transition-duration:${1:time}",trsp:"transition-property:${1:prop}",trstf:"transition-timing-function:${1:fn}",tsh:"text-shadow:${1:hoff} ${2:voff} ${3:blur} ${4:#000}",tt:"text-transform:uppercase|lowercase|capitalize|none",tw:"text-wrap:none|normal|unrestricted|suppress",us:"user-select:none",v:"visibility:hidden|visible|collapse",va:"vertical-align:top|super|text-top|middle|baseline|bottom|text-bottom|sub",w:"width",whs:"white-space:nowrap|pre|pre-wrap|pre-line|normal",whsc:"white-space-collapse:normal|keep-all|loose|break-strict|break-all",wid:"widows",wm:"writing-mode:lr-tb|lr-tb|lr-bt|rl-tb|rl-bt|tb-rl|tb-lr|bt-lr|bt-rl",wob:"word-break:normal|keep-all|break-all",wos:"word-spacing",wow:"word-wrap:none|unrestricted|suppress|break-word|normal",z:"z-index",zom:"zoom:1"},aC={"tm|tmatch":"xsl:template[match mode]","tn|tname":"xsl:template[name]",call:"xsl:call-template[name]",ap:"xsl:apply-templates[select mode]",api:"xsl:apply-imports",imp:"xsl:import[href]",inc:"xsl:include[href]",ch:"xsl:choose","wh|xsl:when":"xsl:when[test]",ot:"xsl:otherwise",if:"xsl:if[test]",par:"xsl:param[name]",pare:"xsl:param[name select]",var:"xsl:variable[name]",vare:"xsl:variable[name select]",wp:"xsl:with-param[name select]",key:"xsl:key[name match use]",elem:"xsl:element[name]",attr:"xsl:attribute[name]",attrs:"xsl:attribute-set[name]",cp:"xsl:copy[select]",co:"xsl:copy-of[select]",val:"xsl:value-of[select]","for|each":"xsl:for-each[select]",tex:"xsl:text",com:"xsl:comment",msg:"xsl:message[terminate=no]",fall:"xsl:fallback",num:"xsl:number[value]",nam:"namespace-alias[stylesheet-prefix result-prefix]",pres:"xsl:preserve-space[elements]",strip:"xsl:strip-space[elements]",proc:"xsl:processing-instruction[name]",sort:"xsl:sort[select order]",choose:"xsl:choose>xsl:when+xsl:otherwise",xsl:`!!!+xsl:stylesheet[version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform]>{
|}`,"!!!":'{<?xml version="1.0" encoding="UTF-8"?>}'},sC={"!!!":"{doctype html}"},lC={lang:"en",locale:"en-US",charset:"UTF-8",indentation:"	",newline:`
`},uC={markup:"html",stylesheet:"css"},fC={inlineElements:["a","abbr","acronym","applet","b","basefont","bdo","big","br","button","cite","code","del","dfn","em","font","i","iframe","img","input","ins","kbd","label","map","object","q","s","samp","select","small","span","strike","strong","sub","sup","textarea","tt","u","var"],"output.indent":"	","output.baseIndent":"","output.newline":`
`,"output.tagCase":"","output.attributeCase":"","output.attributeQuotes":"double","output.format":!0,"output.formatLeafNode":!1,"output.formatSkip":["html"],"output.formatForce":["body"],"output.inlineBreak":3,"output.compactBoolean":!1,"output.booleanAttributes":["contenteditable","seamless","async","autofocus","autoplay","checked","controls","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","novalidate","readonly","required","reversed","selected","typemustmatch"],"output.reverseAttributes":!1,"output.selfClosingStyle":"html","output.field":(e,r)=>r,"output.text":e=>e,"markup.href":!0,"comment.enabled":!1,"comment.trigger":["id","class"],"comment.before":"","comment.after":`
<!-- /[#ID][.CLASS] -->`,"bem.enabled":!1,"bem.element":"__","bem.modifier":"_","jsx.enabled":!1,"stylesheet.keywords":["auto","inherit","unset","none"],"stylesheet.unitless":["z-index","line-height","opacity","font-weight","zoom","flex","flex-grow","flex-shrink"],"stylesheet.shortHex":!0,"stylesheet.between":": ","stylesheet.after":";","stylesheet.intUnit":"px","stylesheet.floatUnit":"em","stylesheet.unitAliases":{e:"em",p:"%",x:"ex",r:"rem"},"stylesheet.json":!1,"stylesheet.jsonDoubleQuotes":!1,"stylesheet.fuzzySearchMinScore":0},Iy={type:"markup",syntax:"html",variables:lC,snippets:{},options:fC},Lg={markup:{snippets:Of(iC)},xhtml:{options:{"output.selfClosingStyle":"xhtml"}},xml:{options:{"output.selfClosingStyle":"xml"}},xsl:{snippets:Of(aC),options:{"output.selfClosingStyle":"xml"}},jsx:{options:{"jsx.enabled":!0}},pug:{snippets:Of(sC)},stylesheet:{snippets:Of(oC)},sass:{options:{"stylesheet.after":""}},stylus:{options:{"stylesheet.between":" ","stylesheet.after":""}}};function Of(e){let r={};return Object.keys(e).forEach(i=>{for(let o of i.split("|"))r[o]=e[i]}),r}function Fy(e={},r={}){let i=e.type||"markup",o=e.syntax||uC[i];return Object.assign(Object.assign(Object.assign({},Iy),e),{type:i,syntax:o,variables:Sp(i,o,"variables",e,r),snippets:Sp(i,o,"snippets",e,r),options:Sp(i,o,"options",e,r)})}function Sp(e,r,i,o,c={}){let d=Lg[e],m=c[e],x=Lg[r],S=c[r];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Iy[i]),d&&d[i]),x&&x[i]),m&&m[i]),S&&S[i]),o[i])}function zy(e,r=0){return{text:e,start:r,pos:e.length}}function Pi(e){return e.pos===e.start}function ru(e,r=0){return e.text.charCodeAt(e.pos-1+r)}function Ag(e){if(!Pi(e))return e.text.charCodeAt(--e.pos)}function jr(e,r){if(Pi(e))return!1;let i=typeof r=="function"?r(ru(e)):r===ru(e);return i&&e.pos--,!!i}function Ry(e,r){let i=e.pos;for(;jr(e,r););return e.pos<i}function Cd(e){return e===39||e===34}function cC(e){let r=e.pos,i=Ag(e);if(Cd(i)){for(;!Pi(e);)if(Ag(e)===i&&ru(e)!==92)return!0}return e.pos=r,!1}var jy={91:93,40:41,123:125};function pC(e){let r=e.pos;if(!jr(e,62))return!1;let i=!1;for(jr(e,47);!Pi(e);){if(Ry(e,Hp),Zf(e)){if(jr(e,47)){i=jr(e,60);break}else if(jr(e,60)){i=!0;break}else{if(jr(e,Hp))continue;if(jr(e,61)){if(Zf(e))continue;break}else if(qy(e)){i=!0;break}}break}if(!dC(e))break}return e.pos=r,i}function dC(e){return hC(e)||qy(e)}function hC(e){let r=e.pos;return cC(e)&&jr(e,61)&&Zf(e)?!0:(e.pos=r,!1)}function qy(e){let r=e.pos,i=[];for(;!Pi(e);){let o=ru(e);if(xC(o))i.push(o);else if(bC(o)){if(i.pop()!==jy[o])break}else if(!yC(o))break;e.pos--}return r!==e.pos&&jr(e,61)&&Zf(e)?!0:(e.pos=r,!1)}function Zf(e){return Ry(e,gC)}function gC(e){return e===58||e===45||mC(e)||vC(e)}function mC(e){return e&=-33,e>=65&&e<=90}function vC(e){return e>47&&e<58}function Hp(e){return e===32||e===9}function yC(e){return!isNaN(e)&&e!==61&&!Hp(e)&&!Cd(e)}function bC(e){return e===123||e===40||e===91}function xC(e){return e===125||e===41||e===93}var Wy=e=>e.charCodeAt(0),wC="#.*:$-_!@%^+>/".split("").map(Wy),kC={type:"markup",lookAhead:!0,prefix:""};function _C(e,r=e.length,i={}){let o=Object.assign(Object.assign({},kC),i);r=Math.min(e.length,Math.max(0,r??e.length)),o.lookAhead&&(r=SC(e,r,o));let c,d=CC(e,r,o.prefix||"");if(d===-1)return;let m=zy(e,d);m.pos=r;let x=[];for(;!Pi(m);){if(c=ru(m),x.includes(125)){if(c===125){x.push(c),m.pos--;continue}if(c!==123){m.pos--;continue}}if(By(c,o.type))x.push(c);else if(LC(c,o.type)){if(x.pop()!==jy[c])break}else if(x.includes(93)||x.includes(125)){m.pos--;continue}else if(pC(m)||!$C(c))break;m.pos--}if(!x.length&&m.pos!==r){let S=e.slice(m.pos,r).replace(/^[*+>^]+/,"");return{abbreviation:S,location:r-S.length,start:i.prefix?d-i.prefix.length:r-S.length,end:r}}}function SC(e,r,i){for(Cd(e.charCodeAt(r))&&r++;By(e.charCodeAt(r),i.type);)r++;return r}function CC(e,r,i){if(!i)return 0;let o=zy(e),c=i.split("").map(Wy);o.pos=r;let d;for(;!Pi(o);)if(!(Og(o,93,91)||Og(o,125,123))){if(d=o.pos,TC(o,c))return d;o.pos--}return-1}function Og(e,r,i){let o=e.pos;if(jr(e,r))for(;!Pi(e);){if(jr(e,i))return!0;e.pos--}return e.pos=o,!1}function TC(e,r){let i=e.pos,o=!1;for(let c=r.length-1;c>=0&&!Pi(e)&&jr(e,r[c]);c--)o=c===0;return o||(e.pos=i),o}function $C(e){return e>64&&e<91||e>96&&e<123||e>47&&e<58||wC.includes(e)}function LC(e,r){return e===40||r==="markup"&&(e===91||e===123)}function By(e,r){return e===41||r==="markup"&&(e===93||e===125)}function AC(e,r){let i=Fy(r);return i.type==="stylesheet"?NC(e,i):OC(e,i)}function OC(e,r){return TS(CS(e,r),r)}function NC(e,r){return WS(GS(e,r),r)}function Td(e,r){let i=new wn(e),o={start:-1,end:-1,propertyStart:-1,propertyEnd:-1,propertyDelimiter:-1,expression:0},c,d=(m,x=i.start,S=o.start,A=o.end)=>r(m,S,A,x)===!1;for(;!i.eof();)if(!(MC(i)||EC(i)))if(i.start=i.pos,(c=i.eat(125))||i.eat(59)){if(o.propertyStart!==-1){if(d("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd)||(o.start===-1&&(o.start=o.end=i.start),d("propertyValue")))return}else if(o.start!==-1&&d("propertyName"))return;if(c&&(o.start=i.start,o.end=i.pos,d("blockEnd")))return;Ng(o)}else if(i.eat(123)){if(o.start===-1&&o.propertyStart===-1&&(o.start=o.end=i.pos),o.propertyStart!==-1&&(o.start=o.propertyStart),d("selector"))return;Ng(o)}else i.eat(58)&&!DC(i,o)?(o.propertyStart===-1&&(o.propertyStart=o.start),o.propertyEnd=o.end,o.propertyDelimiter=i.pos-1,o.start=o.end=-1):(o.start===-1&&(o.start=i.pos),i.eat(40)?o.expression++:i.eat(41)?o.expression--:PC(i)||i.pos++,o.end=i.pos);o.propertyStart!==-1&&d("propertyName",o.propertyDelimiter,o.propertyStart,o.propertyEnd)||o.start!==-1&&d(o.propertyStart!==-1?"propertyValue":"propertyName",-1)}function EC(e){return e.eatWhile(Wr)}function MC(e){let r=e.pos;if(e.eat(47)&&e.eat(42)){for(e.start=r;!e.eof();){if(e.eat(42)){if(e.eat(47))return!0;continue}e.pos++}return!0}else e.pos=r;return!1}function PC(e){let r=e.peek();if(ho(r)){for(e.start=e.pos++;!e.eof()&&!(e.eat(r)||e.eat(10)||e.eat(13));)e.eat(92),e.pos++;return!0}}function Ng(e){e.start=e.end=e.propertyStart=e.propertyEnd=e.propertyDelimiter=-1}function DC(e,r){return r.expression||e.eatWhile(58)}function IC(e,r){let i=[],o=[],c=null,d=null,m=()=>{d&&(Df(i,d),d=null)};return Td(e,(x,S,A,T)=>{if(x==="selector")m(),o.push(Jf(i,S,A,T));else if(x==="blockEnd"){m();let D=o.pop();if(D&&D[0]<r&&r<A)return c={type:"selector",start:D[0],end:A,bodyStart:D[2]+1,bodyEnd:S},!1}else if(x==="propertyName")m(),d=Jf(i,S,A,T);else if(x==="propertyValue"){if(d&&d[0]<r&&r<A)return c={type:"property",start:d[0],end:T+1,bodyStart:S,bodyEnd:A},!1;m()}}),c}function FC(e,r){let i=[],o=[],c=[],d=null;return Td(e,(m,x,S,A)=>{if(m==="selector")o.push(Jf(i,x,S,A));else if(m==="blockEnd"){let T=o.pop();if(T&&T[0]<r&&S>r){let D=Up(e,T[2]+1,x);D&&Kn(c,D),Kn(c,[T[0],S])}if(T&&Df(i,T),!o.length)return!1}else m==="propertyName"?(d&&Df(i,d),d=Jf(i,x,S,A)):m==="propertyValue"&&d&&d[0]<r&&Math.max(A,S)>r&&(Kn(c,[x,S]),Kn(c,[d[0],A!==-1?A+1:S]));m!=="propertyName"&&d&&(Df(i,d),d=null)}),c}function zC(e,r){let i=[],o=[],c=[],d=null,m=(T,D,E)=>{if(i.length){let U=i.pop();return U.start=T,U.end=D,U.delimiter=E,U}return{start:T,end:D,delimiter:E,firstChild:null}},x=T=>{T.firstChild=null,i.push(T)},S=()=>{d&&(x(d),d=null)},A=(T,D,E)=>{let U=Cp(o);U&&!U.firstChild&&(U.firstChild=m(T,D,E))};return Td(e,(T,D,E,U)=>{if(T==="blockEnd"){S();let V=o.pop();if(!V)return;if(V.start<=r&&r<=E){let I=Up(e,V.delimiter+1,D);for(Kn(c,[V.start,E]),I&&Kn(c,I);V.firstChild;){let W=V.firstChild;I=Up(e,W.delimiter+1,W.end-1),Kn(c,[W.start,W.end]),I&&Kn(c,I),V=W}return!1}else{let I=Cp(o);I&&!I.firstChild?(V.end=E,I.firstChild=V):x(V)}}else if(T==="propertyName")S(),d=m(D,E,U),A(D,E,U);else if(T==="propertyValue"){if(d){if(d.start<=r&&E>=r)return Kn(c,[d.start,U+1]),Kn(c,[D,E]),S(),!1;let V=Cp(o);V&&V.firstChild&&V.firstChild.start===d.start&&(V.firstChild.end=U!==-1?U+1:E),S()}}else o.push(m(D,E,U)),S()}),o.length=i.length=0,c}function Up(e,r,i){for(;r<i&&Wr(e.charCodeAt(r));)r++;for(;i>r&&Wr(e.charCodeAt(i-1));)i--;return r!==i?[r,i]:null}function Jf(e,r,i,o){if(e.length){let c=e.pop();return c[0]=r,c[1]=i,c[2]=o,c}return[r,i,o]}function Df(e,r){return r&&e.push(r),null}function Kn(e,r){let i=e.length?e[e.length-1]:null;(!i||i[0]!==r[0]||i[1]!==r[1])&&r[0]!==r[1]&&e.push(r)}function Cp(e){return e.length?e[e.length-1]:null}var RC=dc("null",0);function jC(e){let r=typeof e=="string"?new wn(e):e,i,o=0,c=21,d=[];for(;!r.eof();)r.eatWhile(Xg),r.start=r.pos,qC(r)?((c&1)===0&&ca("Unexpected number",r),d.push(BC(r.current())),c=10):Ky(r.peek())?(i=r.next(),Hy(i)&&c&16?(Uy(i)&&d.push(HC(i,o)),c=21):((c&2)===0&&ca("Unexpected operator",r),d.push(UC(i,o)),c=21)):r.eat(40)?((c&4)===0&&ca('Unexpected "("',r),o+=10,c=53):r.eat(41)?(o-=10,c&32?d.push(RC):(c&8)===0&&ca('Unexpected ")"',r),c=14):ca("Unknown character",r);(o<0||o>=10)&&ca('Unmatched "()"',r);let m=WC(d);return m===null&&ca("Parity",r),m}function qC(e){let r=e.pos;return e.eat(46)&&e.eatWhile(lr)||e.eatWhile(lr)&&(!e.eat(46)||e.eatWhile(lr))?!0:(e.pos=r,!1)}function WC(e){let r=[],i=[],o=0;for(let c=0;c<e.length;c++){let d=e[c];if(d.type==="num")i.push(d);else{for(o+=d.type==="op1"?1:2;r.length&&d.priority<=r[r.length-1].priority;)i.push(r.pop());r.push(d)}}return o+1===i.length+r.length?i.concat(r.reverse()):null}function BC(e,r){return dc("num",parseFloat(e),r)}function HC(e,r=0){return e===45&&(r+=2),dc("op1",e,r)}function UC(e,r=0){return e===42?r+=1:(e===47||e===92)&&(r+=2),dc("op2",e,r)}function ca(e,r){throw r&&(e+=` at column ${r.pos} of expression`),new Error(e)}function Hy(e){return KC(e)||Uy(e)}function KC(e){return e===43}function Uy(e){return e===45}function Ky(e){return e===43||e===45||e===42||e===47||e===92}function dc(e,r,i=0){return{type:e,value:r,priority:i}}var VC={lookAhead:!0,whitespace:!0};function GC(e,r=e.length,i){let o=Object.assign(Object.assign({},VC),i),c={text:e,pos:r},d;if(o.lookAhead&&Tp(c)===41){c.pos++;let S=e.length;for(;c.pos<S&&(d=Tp(c),!(d!==41&&!(o.whitespace&&Wr(d))));)c.pos++}let m=c.pos,x=0;for(;c.pos>=0;)if(!QC(c)){if(d=Kp(c),d===41)x++;else if(d===40){if(!x)break;x--}else if(!(o.whitespace&&Wr(d)||Hy(d)||Ky(d)))break;c.pos--}if(c.pos!==m&&!x){for(;Wr(Tp(c));)c.pos++;return[c.pos,m]}return null}function QC(e){if(lr(Kp(e))){e.pos--;let r=!1,i;for(;e.pos>=0;){if(i=Kp(e),i===46){if(r)break;r=!0}else if(!lr(i))break;e.pos--}return!0}return!1}function Kp(e){return e.text.charCodeAt(e.pos-1)}function Tp(e){return e.text.charCodeAt(e.pos)}var XC={45:e=>-e},YC={43:(e,r)=>e+r,45:(e,r)=>e-r,42:(e,r)=>e*r,47:(e,r)=>e/r,92:(e,r)=>Math.floor(e/r)};function ZC(e){if(Array.isArray(e)||(e=jC(e)),!e||!e.length)return null;let r=[],i,o,c;for(let d=0,m=e.length;d<m;d++){let x=e[d];if(x.type==="num")r.push(x.value);else if(x.type==="op2")o=r.pop(),i=r.pop(),c=YC[x.value],r.push(c(i,o));else if(x.type==="op1")i=r.pop(),c=XC[x.value],r.push(c(i));else throw new Error("Invalid expression")}if(r.length>1)throw new Error("Invalid Expression (parity)");return r[0]}function Vy(e,r,i){let o=r!=null?e.posFromIndex(r):e.getCursor(),c=Ls(e)||"html",d=wo(e),m={"output.baseIndent":hc(e,o.line),"output.indent":Qy(e),"output.field":Gy(),"output.format":!i,"output.attributeQuotes":d.attributeQuotes};return c==="html"&&(m["output.selfClosingStyle"]=d.markupStyle,m["output.compactBoolean"]=d.markupStyle==="html"),wa(c)&&(d.comments&&(m["comment.enabled"]=!0,d.commentsTemplate&&(m["comment.after"]=d.commentsTemplate)),m["bem.enabled"]=d.bem,m["stylesheet.shortHex"]=d.shortHex),m}function Gy(){let e=-1;return(r,i)=>e===-1||e===r?(e=r,i?Vf+i+zv:Vf):i||""}function hc(e,r){let o=e.getLine(r).match(/^\s+/);return o?o[0]:""}function Qy(e){return e.getOption("indentWithTabs")?"	":" ".repeat(e.getOption("indentUnit")||0)}var JC={};function gc(e,r,i){let o={cache:JC},c={"output.field":Gy(),"output.format":!i||!i.inline};i&&(Object.assign(o,i),i.options&&Object.assign(c,i.options)),o.options=c;let d=wo(e);return d.config&&(o=Fy(o,d.config)),AC(r,o)}function $d(e,r,i="markup",o){return _C(e,r,Object.assign({lookAhead:i!=="stylesheet",type:i},o))}function eT(e,r,i=!1,o=!1){let c={xml:o};return i?p_(e,r,c):c_(e,r,c)}function tT(e,r,i){return i?zC(e,r):FC(e,r)}function Eg(e,r,i,o){return i?Sk(e,r,o):xk(e,r,o)}function rT(e,r,i){let o=GC(e,r,i);if(o)try{let[c,d]=o,m=ZC(e.slice(c,d));if(m!==null)return{start:c,end:d,result:m,snippet:m.toFixed(4).replace(/\.?0+$/,"")}}catch{}}function mc(e,r,i){let o=Ai(e),c;if(i==null){let m=e.getMode();i=m?Mi(m.name):!1}let d=f_(o,r,{xml:i});if(d){let{open:m,close:x}=d;c={name:d.name,open:m,close:x},d.attributes&&(c.attributes={},d.attributes.forEach(S=>{let A=S.value;A&&yd(A)&&(A=A.slice(1,-1)),c.attributes[S.name]=A??null}))}return c}function nu(e,r){let i=xa(e,r),{context:o}=i,c={type:i.type,syntax:i.syntax||"html",options:Vy(e,r,i.inline)};if(o){let d=Ai(e);o.type==="html"&&o.ancestors.length?c.context=v_(d,o):o.type==="css"&&(c.context=y_(o))}return c}var Mg="emmet-abbreviation",$p="emmet-abbreviation-preview",Vp=class{constructor(){this.marker=null,this.preview=null,this.forcedMarker=null}get id(){return Bv(this.cm).id}substr(r,i){let o=this.cm.getValue();return r===void 0&&i===void 0?o:o.slice(r||0,i)}replace(r,i,o){this.cm.replaceRange(r,this.cm.posFromIndex(i),this.cm.posFromIndex(o))}syntax(){return Ls(this.cm)}size(){return this.cm.getValue().length}config(r){return nu(this.cm,r)}outputOptions(r,i){return Vy(this.cm,r,i)}previewConfig(r){return Object.assign(Object.assign({},r),{options:Object.assign(Object.assign({},r.options),{"output.field":nT,"output.indent":"  ","output.baseIndent":""})})}allowTracking(r){return Xy(this.cm,r)}mark(r){let{cm:i}=this;this.disposeMarker();let[o,c]=vo(i,r.range);this.marker=i.markText(o,c,{inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,className:Mg}),r.forced&&!this.forcedMarker&&(this.forcedMarker=document.createElement("div"),this.forcedMarker.className=`${Mg}-marker`,i.addWidget(o,this.forcedMarker,!1))}unmark(){this.disposeMarker(),this.hidePreview()}showPreview(r){let{cm:i}=this,o=wo(i);if(!iy(o.preview,xa(i,r.range[0])))return;let c,d=!1;if(r.type==="error"?(c=qv(r.error),d=!0):(r.forced||!r.simple)&&(c=r.preview),c){if(!this.preview){let x=document.createElement("div");x.className=$p;let S=i.posFromIndex(r.range[0]);o.attachPreview?o.attachPreview(i,x,S):i.addWidget(S,x,!1),this.preview=new this.cm.constructor(x,{mode:i.getOption("mode"),readOnly:"nocursor",lineNumbers:!1});let A=document.createElement("div");A.className=`${$p}-error`,x.appendChild(A)}let m=this.preview.getWrapperElement().parentElement;m.classList.toggle("has-error",d),d?m.querySelector(`.${$p}-error`).innerHTML=c:this.preview.setValue(c)}else this.hidePreview()}hidePreview(){this.preview&&(this.preview.getWrapperElement().parentElement.remove(),this.preview=null)}isCSS(r){return Ci(r)}syntaxType(r){return fu(r)}isHTML(r){return wa(r)}isXML(r){return Mi(r)}isJSX(r){return ny(r)}run(r,i){let{cm:o}=this;this.cm=r;let c=i();return this.cm=o,c}disposeMarker(){this.marker&&(this.marker.clear(),this.marker=null),this.forcedMarker&&(this.forcedMarker.remove(),this.forcedMarker=null)}};function nT(e,r){return r}var yt=new Vp,rn=new qp;function iT(e){let r=o=>{yt.run(o,()=>{rn.handleChange(yt,Li(o))})},i=o=>{yt.run(o,()=>{let c=Li(o);if(!Yy(o,c))return;let d=rn.handleSelectionChange(yt,c);d&&(Ad(d,c)?yt.showPreview(d):yt.hidePreview())})};return e.on("change",r),e.on("focus",i),e.on("cursorActivity",i),()=>{yt.run(e,()=>rn.disposeEditor(yt)),e.off("change",r),e.off("focus",i),e.off("cursorActivity",i)}}function oT(e,r){return yt.run(e,()=>r(rn,yt))}function Xy(e,r){if(Yy(e,r)){let i=h_(e,r);return i?g_(i)||ny(i):!1}return!1}function Yy(e,r){let i=wo(e);return iy(i.mark,xa(e,r))}function Ld(e,r,i){return yt.run(e,()=>{let o=yt.syntax(),c=yt.isJSX(o)?jp:"",d=rn.getActivationContext(yt,r),m=$d(yt.substr(),r,fu(d?.syntax),{prefix:c});if(m){let x=rn.startTracking(yt,m.start,m.end,{offset:c.length,config:d});if(x){if(x.type==="error"&&i){rn.stopTracking(yt,{force:!0});return}yt.showPreview(x)}return x}})}function vc(e){return yt.run(e,()=>rn.getTracker(yt))}function aT(e,r,i,o){return yt.run(e,()=>{let c=rn.startTracking(yt,r,i,o);return c&&yt.showPreview(c),c})}function cu(e,r){return yt.run(e,()=>rn.stopTracking(yt,r))}function sT(e,r){let i=vc(e)||Ld(e,r);if(i&&Ad(i,r)&&i.type==="abbreviation"){let{abbreviation:o,preview:c}=i;return{text:o,displayText:c,hint:()=>{cu(e);let d=gc(e,o,i.config);qr(e,i.range,d)},from:e.posFromIndex(i.range[0]),to:e.posFromIndex(i.range[1])}}}function lT(e,r,i){yt.run(e,()=>{let o=rn.getStoredTracker(yt);o&&o.type==="abbreviation"&&i===o.abbreviation&&o.range[0]===r&&rn.restoreTracker(yt,r)})}function Ad(e,r){return r>=e.range[0]&&r<=e.range[1]}var Zy="emmet-open-tag",Jy="emmet-close-tag";function uT(e){let r=null,i,o=null;function c(S,A,T){(!o||o.dataset.pos!==String(A))&&(d(),o=pT(S,A,T))}function d(){o&&(o.remove(),o=null)}let m=S=>{r||(r=Mv(S.getValue()));let A=Li(S),T=bk(r,A);if(T){T.preview||(T.preview=dT(S,T)),fT(S,T,A)?c(S,T.close[1],T.preview):d();let D=T.name.length;T=Object.assign(Object.assign({},T),{open:[T.open[0]+1,T.open[0]+1+D]}),T.close&&(T.close=[T.close[0]+2,T.close[0]+2+D])}T&&(!i||!uc(i.open,T.open))?(Nf(S),cT(S,T)):!T&&i&&Nf(S),i=T},x=S=>{if(r=null,wo(S).autoRenameTags){let{open:A,close:T}=eb(S);if(A&&T){let D=S.getCursor(),E=A.find(),U=T.find(),V=!1;zg(S,E)||zg(S,U)?V=!0:hT(S,E,U)&&(Fg(E,D)?V=Dg(S,E,U):Fg(U,D)&&(V=Dg(S,U,E))),V&&(Nf(S),i=null)}}};return e.on("cursorActivity",m),e.on("change",x),()=>{Nf(e),d(),e.off("cursorActivity",m),e.off("cursorActivity",x),r=i=null}}function fT(e,r,i){return r.close&&r.preview&&wo(e).previewOpenTag&&i>r.close[0]&&i<r.close[1]}function cT(e,{open:r,close:i,preview:o}){Pg(e,e.posFromIndex(r[0]),e.posFromIndex(r[1]),Zy),i&&Pg(e,e.posFromIndex(i[0]),e.posFromIndex(i[1]),Jy)}function Nf(e){let{open:r,close:i}=eb(e);r&&r.clear(),i&&i.clear()}function eb(e){let r,i;return e.getAllMarks().forEach(o=>{o.className===Zy?r=o:o.className===Jy&&(i=o)}),{open:r,close:i}}function Pg(e,r,i,o,c){return e.markText(r,i,{className:o,inclusiveLeft:!0,inclusiveRight:!0,clearWhenEmpty:!1,attributes:c})}function Dg(e,r,i){let o=e.getRange(r.from,r.to),c=o.match(/[\w:.-]+/),d=c?c[0]:"";return e.getRange(i.from,i.to)!==d&&e.replaceRange(d,i.from,i.to),o!==d}function pT(e,r,i){let o=document.createElement("div");return o.className="emmet-tag-preview",o.innerText=i,o.dataset.pos=String(r),e.addWidget(e.posFromIndex(r),o,!1),o}function dT(e,r){let i="",o="",c=[];uu(Ni(e,r.open),r.name).forEach(x=>{x.name==="class"&&x.value?i="."+Ig(x.value).replace(/\s+/g,"."):x.name==="id"&&x.value?o="#"+Ig(x.value):c.push(x.value?`${x.name}=${x.value}`:x.name)});let d=c.length?`[${c.join(" ")}]`:"",m=o+i+d;return m?r.name+m:""}function Ig(e){return yd(e)?e.slice(1,-1):e}function Fg(e,r,i){return i?Ef(r,e.from)>0&&Ef(r,e.to)<0:Ef(r,e.from)>=0&&Ef(r,e.to)<=0}function Ef(e,r){return e.line-r.line||e.ch-r.ch}function hT(e,r,i){let o=e.getRange(r.from,r.to),c=e.getRange(i.from,i.to);return o!==c}function zg(e,r){return e.getRange(r.from,r.to)===""}function tb(e,r){let i=new Error(e);return i.ch=r.pos,i}function Gp(e,r,i="Unexpected character"){return r.parseError=tb(i.replace(/\s+at\s+\d+$/,""),e),e.skipToEnd(),"invalidchar"}function Qp(e){return e[e.length-1]}function gT(){return{startState(){return{attribute:0,expression:0,group:0,quote:0,braces:[],tokens:[],scanner:new wn("")}},token(e,r){let{scanner:i}=r;i.string=e.string,i.pos=e.pos,i.start=e.start,i.end=e.string.length;let o=i.peek(),c=nm(i,r);if(!c)return Gp(e,r);if(e.pos=i.pos,c.type==="Quote")r.quote=o===r.quote?0:o;else if(c.type==="Bracket")if(c.open)r[c.context]++,r.braces.push(c);else{r[c.context]--;let m=Qp(r.braces);m&&m.context===c.context&&r.braces.pop()}if(e.eol()&&r.braces.length&&!r.parseError){let m=Qp(r.braces).start;return r.parseError=tb(`No closing brace at ${m}`,e),null}let d=mT(c,r);return r.tokens.push(c),d}}}function mT(e,r){let i=Qp(r.tokens);switch(e.type){case"Bracket":return"bracket";case"Field":return"variable-2";case"Literal":if(r.attribute)return i&&i.type==="Operator"&&i.operator==="equal"?"string-2":r.quote?"string":"attribute";if(r.quote)return"string";if(i&&i.type==="Operator"){if(i.operator==="class")return"variable-2";if(i.operator==="id")return"variable-3"}return"tag";case"Operator":return e.operator==="class"?"variable-2":e.operator==="id"?"variable-3":`operator ${e.operator}`;case"Repeater":case"RepeaterPlaceholder":return"meta";case"Quote":return"string";case"RepeaterNumber":return"number"}return""}function vT(){return{startState(){return{brackets:0,tokens:[],scanner:new wn("")}},token(e,r){let{scanner:i}=r;i.string=e.string,i.pos=e.pos,i.start=e.start,i.end=e.string.length;let o=hm(i,r.brackets===0);if(!o)return Gp(e,r);if(o.type==="Bracket"&&(r.brackets+=o.open?1:-1,r.brackets<0))return Gp(e,r,"Unexpected bracket");e.pos=i.pos;let c=yT(o);return r.tokens.push(o),c}}}function yT(e,r){switch(e.type){case"Bracket":return"bracket";case"Field":return"variable-2";case"Literal":return"tag";case"Operator":return`operator ${e.operator}`;case"ColorValue":return"variable-3";case"NumberValue":return"number";case"StringValue":return"string"}return null}function bT(){return{token(e){return e.eatWhile(xT)?"tag":e.eat(wT)?"operator":(e.skipToEnd(),"invalidchar")}}}function xT(e){return/[a-zA-Z0-9-_$@!:]/.test(e)}function wT(e){return e==="|"}function Rg(e,r){if(e.somethingSelected())return $s(e);if(r)return kT(e);let i=Li(e),o=e.posFromIndex(i),c=e.getLine(o.line),d=nu(e,i),m=$d(c,o.ch,fu(d.syntax));if(m){let x=i-o.ch;Xp(e,m.abbreviation,[m.start+x,m.end+x],d)}}function kT(e){let r=Li(e);if(wo(e).mark){let i=vc(e);if(i&&Ad(i,r)&&i.type==="abbreviation"){Xp(e,i.abbreviation,i.range,i.config),cu(e,{skipRemove:!0});return}return $s(e)}return oT(e,(i,o)=>{let c=i.getActivationContext(o,r);if(c){let d=e.posFromIndex(r),m=e.getLine(d.line),x=$d(m,d.ch,fu(c.syntax));if(x){let S=r-d.ch;Xp(e,x.abbreviation,[x.start+S,x.end+S],c);return}}return $s(e)})}function Xp(e,r,i,o){let c=gc(e,r,o);qr(e,i,c)}function _T(e){if(vc(e))cu(e,{force:!0});else return $s(e)}function ST(e){cu(e),Ld(e,Li(e))}function CT(e){let r=vc(e);if(cu(e),r&&r.forced)return;let[i,o]=bo(e,e.listSelections()[0]);r=aT(e,i,o,{forced:!0}),i!==o&&e.setSelection(e.posFromIndex(o))}function TT(e){let r=e.listSelections().map(i=>$T(e,i.anchor,i.head));if(!r.some(Boolean))return $s(e);e.operation(()=>{let i=e.listSelections(),o=e.getDoc().lineSeparator(),c=Qy(e),d=[];for(let m=i.length-1;m>=0;m--){let x=i[m],S=hc(e,x.anchor.line),A=S;r[m]?(A+=c,e.replaceRange(o+A+o+S,x.anchor,x.head)):e.replaceRange(o+S,x.anchor,x.head);let T={line:x.anchor.line+1,ch:A.length};d.unshift({anchor:T,head:T})}e.setSelections(d)})}function $T(e,r,i){if(AT(r,i)&&e.getModeAt(r).name==="xml"){let c=e.getTokenAt(r),d=e.getTokenAt(Object.assign({},r,{ch:r.ch+1}));return c.type==="tag bracket"&&c.string===">"&&d.type==="tag bracket"&&d.string==="</"}}function LT(e,r){return e.line-r.line||e.ch-r.ch}function AT(e,r){return e.sticky===r.sticky&&LT(e,r)===0}var If="emmet-panel",Lp="emmet-error";function OT(e){let r=Ls(e),i=Li(e),o=mc(e,i,Mi(r)),c=ET(e,PT(e),o),d=nu(e,c[0]);d.text=MT(e,c,!0);let m=NT(),x=m.querySelector("input"),S=m.querySelector(`.${If}-error`),A=!1;function T(W){W&&W.stopPropagation(),E();let K=x.value.trim();if(K)try{let G=gc(e,K,d);qr(e,c,G),A=!0,m.classList.contains(Lp)&&(S.innerHTML="",m.classList.remove(Lp))}catch(G){A=!1,m.classList.add(Lp),S.innerHTML=qv(G)}}function D(W){W.keyCode===27?(W.stopPropagation(),W.preventDefault(),U()):W.keyCode===13&&(W.stopPropagation(),W.preventDefault(),V())}function E(){A&&e.undo()}function U(){E(),I(),e.focus()}function V(){I(),e.focus()}function I(){x.removeEventListener("input",T),x.removeEventListener("change",T),x.removeEventListener("paste",T),x.removeEventListener("keydown",D),x.removeEventListener("blur",U),m.remove(),m=x=S=null}m.emmet={submit:V,cancel:U,update:T},x.addEventListener("input",T),x.addEventListener("change",T),x.addEventListener("paste",T),x.addEventListener("keydown",D),e.getWrapperElement().appendChild(m),x.focus()}function NT(){let e=document.createElement("div");return e.className=If,e.innerHTML=`<div class="${If}-wrapper">
        <input type="text" placeholder="Enter abbreviation" autofocus />
        <div class="${If}-error"></div>
    </div>`,e}function ET(e,r,i){if(r[0]===r[1]&&i){let{open:o,close:c}=i,d=r[0];if(jg(o,d)||c&&jg(c,d))return[o[0],c?c[1]:o[1]];if(c)return vd(e,[o[1],c[0]])}return r}function MT(e,r,i=!1){let o=e.posFromIndex(r[0]),c=hc(e,o.line),m=Ni(e,r).split(`
`).map(x=>x.startsWith(c)?x.slice(c.length):x);return i?m:m.join(`
`)}function jg(e,r){return e[0]<r&&r<e[1]}function PT(e){return bo(e,e.listSelections()[0])}function qg(e,r){let i=Ls(e);if(wa(i)||Ci(i)){let o=r?DT(e,i):IT(e,i);e.setSelections(o.map(c=>({anchor:e.posFromIndex(c[0]),head:e.posFromIndex(c[1])})))}else return $s(e)}function Ap(e,r){let i=e[e.length-1];(!i||!uc(i,r))&&e.push(r)}function rb(e,r,i,o){let c=Ai(e);if(Ci(i))return tT(c,r,o);let d=[],m=eT(c,r,o,Mi(i));for(let x of m)x.close?(Ap(d,[x.open[1],x.close[0]]),Ap(d,[x.open[0],x.close[1]])):Ap(d,[x.open[0],x.open[1]]);return d.sort((x,S)=>o?x[0]-S[0]:S[0]-x[0])}function DT(e,r){let i=[];for(let o of e.listSelections()){let c=bo(e,o),d=rb(e,c[0],r,!0),m=d.findIndex(S=>uc(c,S)),x;m<d.length-1?x=d[m+1]:m!==-1&&(x=d.find(S=>bd(S,c))),i.push(x||c)}return i}function IT(e,r){let i=[];for(let o of e.listSelections()){let c=bo(e,o),m=rb(e,c[0],r).find(x=>bd(x,c)&&x[1]>c[1]);i.push(m||c)}return i}var Yp=["<!--","-->"],Zp=["/*","*/"];function FT(e){let r=e.listSelections().slice().reverse();e.operation(()=>{for(let i of r){let o=bo(e,i),{syntax:c}=xa(e,o[0]),d=c&&Ci(c)?Zp:Yp,m=RT(e,o[0]);if(m&&m.commentStart)Wg(e,m);else if(m&&tu(o)){let x=0;for(let S of zT(e,m.range,d).reverse())x+=Wg(e,S);Op(e,[m.range[0],m.range[1]-x],d)}else if(!tu(o))Op(e,o,d);else{let x=e.getLine(i.anchor.line),S=bo(e,{anchor:{line:i.anchor.line,ch:0},head:{line:i.anchor.line,ch:x.length}});Op(e,vd(e,S),d)}}})}function Wg(e,{range:r,commentStart:i,commentEnd:o}){let c=Ni(e,r);if(i&&c.startsWith(i)){let d=i.length,m=o&&c.endsWith(o)?o.length:0;yo(c[d])&&(d+=1),m&&yo(c[c.length-m-1])&&(m+=1);let x=vo(e,[r[1]-m,r[1]]),S=vo(e,[r[0],r[0]+d]);return e.replaceRange("",x[0],x[1]),e.replaceRange("",S[0],S[1]),d+m}return 0}function Op(e,r,i){let[o,c]=vo(e,r);e.replaceRange(" "+i[1],c,c),e.replaceRange(i[0]+" ",o,o)}function zT(e,r,i){let o=[],c=Ni(e,r),d=r[0],m=0;for(;;){let x=c.indexOf(i[0],m);if(x!==-1){m=x+i[0].length;let S=c.indexOf(i[1],m);S!==-1&&(m=S+i[1].length,o.push({range:[d+x,d+m],commentStart:i[0],commentEnd:i[1]}))}else break}return o}function RT(e,r){let{syntax:i}=xa(e,r);if(i){if(wa(i))return jT(Ai(e),r,Mi(i));if(Ci(i)){let o=Ai(e),c=qT(o,r);if(c)return c;let d=IC(o,r);if(d)return{range:[d.start,d.end]}}}}function jT(e,r,i=!1){let o=[],c=[],d=fc({xml:i,allTokens:!0}),m;return cc(e,(x,S,A,T)=>{if(S===1&&WT(x,d)&&(S=3),S===1)c.push(BT(o,x,A,T));else if(S===3){if(A<r&&r<T)return m={range:[A,T]},!1}else if(S===2){let D=UT(c);if(D&&D.name===x){if(D.start<r&&r<T)return m={range:[D.start,T]},!1;c.length&&HT(o,c.pop())}}else if(A<r&&r<T)return m={range:[A,T]},S===6&&(m.commentStart=Yp[0],m.commentEnd=Yp[1]),!1},d),c.length=o.length=0,m}function qT(e,r){let i=new wn(e);for(;!i.eof()&&r>i.pos;){let o=i.pos;if(Np(i,47,42)){for(;!i.eof()&&!Np(i,42,47);)i.pos++;if(o<r&&r<i.pos)return{range:[o,i.pos],commentStart:Zp[0],commentEnd:Zp[1]}}else if(Np(i,47,47)){for(;!i.eof()&&!i.eat(13)&&!i.eat(10);)i.pos++;if(o<r&&r<i.pos)return{range:[o,i.pos],commentStart:"//"}}else i.pos++}}function Np(e,r,i){let{pos:o}=e;return e.eat(r)&&e.eat(i)?!0:(e.pos=o,!1)}function WT(e,r){return!r.xml&&r.empty.includes(e)}function BT(e,r,i,o){if(e.length){let c=e.pop();return c.name=r,c.start=i,c.end=o,c}return{name:r,start:i,end:o}}function HT(e,r){e.push(r)}function UT(e){return e.length?e[e.length-1]:null}function KT(e){let r=e.getCursor(),i=e.getLine(r.line),o=rT(i,r.ch);if(o){let c={line:r.line,ch:o.start},d={line:r.line,ch:o.end};e.replaceRange(o.snippet,c,d)}}function Bg(e,r){let i=Li(e),o=VT(e,i+r,r);o!=null&&e.setCursor(e.posFromIndex(o))}function VT(e,r,i){let o=Ai(e),c=o.length,d=r;for(;d<c&&d>=0;){d+=i;let m=o[d],x=o[d+1],S=o[d-1];if(jv(m)&&x===m&&S==="=")return d+1;if(m==="<"&&S===">")return d;if(GT(m)){let A=e.posFromIndex(d),T=e.getLine(A.line);if(!T||yo(T))return e.indexFromPos({line:A.line,ch:T.length})}}}function GT(e){return e==="\r"||e===`
`}function QT(e){let r=Li(e),i=[r,Math.min(r+1,e.getValue().length)];Ni(e,i)==="<"&&r++;let{syntax:o}=xa(e,r);if(wa(o)){let c=mc(e,r,Mi(o));if(c&&c.open&&c.close){let{open:d,close:m}=c,x=d[0]<=r&&r<d[1]?m[0]:d[0];e.setCursor(e.posFromIndex(x))}}}function ys(e,r=1){e.operation(()=>{let i=e.listSelections().slice().reverse().map(o=>{let c=bo(e,o);if(tu(c)){let d=e.getLine(o.anchor.line),m=o.anchor.ch,x=XT(d,m);x&&(c=[c[0]-m+x[0],c[0]-m+x[1]])}if(!tu(c)){let d=YT(Ni(e,c),r);qr(e,c,d),o={anchor:e.posFromIndex(c[0]),head:e.posFromIndex(c[0]+d.length)}}return o});e.setSelections(i)})}function XT(e,r){let i=!1,o=r,c=r,d,m=e.length;for(;o<m;){if(d=e.charCodeAt(o),Hg(d)){if(i)break;i=!0}else if(!lr(d))break;o++}for(;c>=0;){if(d=e.charCodeAt(c-1),Hg(d)){if(i)break;i=!0}else if(!lr(d))break;c--}if(c>0&&e[c-1]==="-"&&c--,c!==o)return[c,o]}function YT(e,r,i=3){let o=parseFloat(e)+r;if(isNaN(o))return e;let c=o<0,d=Math.abs(o).toFixed(i);return d=d.replace(/\.?0+$/,""),(e[0]==="."||e.startsWith("-."))&&d[0]==="0"&&(d=d.slice(1)),(c?"-":"")+d}function Hg(e){return e===46}function ZT(e){e.operation(()=>{let r=e.listSelections().slice().reverse().map(i=>{let o=mc(e,e.indexFromPos(i.anchor));if(o){JT(e,o);let c=e.posFromIndex(o.open[0]);return{anchor:c,head:c}}return i});e.setSelections(r)})}function JT(e,{open:r,close:i}){if(i){let o=vd(e,[r[1],i[0]]);if(tu(o))qr(e,[r[0],i[1]],"");else{qr(e,[o[1],i[1]],"");let c=e.posFromIndex(r[0]),d=e.posFromIndex(i[1]);if(c.line!==d.line){let m=c.line+2,x=Ug(e,r[0]),S=Ug(e,o[0]);for(;m<=d.line;){let A=e.indexFromPos({line:m,ch:0}),T=[A,A+S.length];yo(Ni(e,T))&&qr(e,T,x),m++}}qr(e,[r[0],o[0]],"")}}else qr(e,r,"")}function Ug(e,r){return hc(e,e.posFromIndex(r).line)}function Kg(e,r=!1){let i=Ls(e);if(!Ci(i)&&!wa(i))return;let o=e.listSelections()[0],c=bo(e,o),d=Ai(e),m=Eg(d,c[0],Ci(i),r);if(m){let x=Vg(c,m.ranges,r);if(!x){let S=r?m.start:m.end;m=Eg(d,S,Ci(i),r),m&&(x=Vg(c,m.ranges,r))}if(x){let[S,A]=vo(e,x);e.setSelection(S,A)}}}function Vg(e,r,i=!1){i&&(r=r.slice().reverse());let o=!1,c;for(let d of r){if(o)return d;uc(d,e)?o=!0:!c&&(bd(d,e)||i&&d[0]<=e[0]||!i&&d[0]>=e[0])&&(c=d)}if(!o)return c}function e$(e){let r=e.listSelections().slice().reverse(),i=[];e.operation(()=>{for(let o of r){let c=e.indexFromPos(o.anchor),{syntax:d}=xa(e,c),m=mc(e,c,Mi(d));if(m){let{open:x,close:S}=m;if(S){qr(e,[x[1],S[1]],"");let A=yo(Ep(e,x[1]-2))?"/":" /";qr(e,[x[1]-1,x[1]-1],A),i.push(Mp(e,x[1]+A.length))}else{let A=`</${m.name}>`;if(qr(e,[x[1],x[1]],A),Ep(e,x[1]-2)==="/"){let T=x[1]-2,D=x[1]-1;yo(Ep(e,T-1))&&T--,qr(e,[T,D],""),i.push(Mp(e,x[1]-D+T))}else i.push(Mp(e,x[1]))}}else i.push(o)}e.setSelections(i)})}function Ep(e,r){return Ni(e,[r,r+1])}function Mp(e,r){let i=e.posFromIndex(r);return{anchor:i,head:i}}function t$(e){Object.assign(e.commands,{emmetExpandAbbreviation:r=>Rg(r,!0),emmetExpandAbbreviationAll:r=>Rg(r,!1),emmetCaptureAbbreviation:ST,emmetResetAbbreviation:_T,emmetEnterAbbreviationMode:CT,emmetInsertLineBreak:TT,emmetWrapWithAbbreviation:OT,emmetBalance:qg,emmetBalanceInward:r=>qg(r,!0),emmetToggleComment:FT,emmetEvaluateMath:KT,emmetGoToNextEditPoint:r=>Bg(r,1),emmetGoToPreviousEditPoint:r=>Bg(r,-1),emmetGoToTagPair:QT,emmetIncrementNumber1:r=>ys(r,1),emmetIncrementNumber01:r=>ys(r,.1),emmetIncrementNumber10:r=>ys(r,10),emmetDecrementNumber1:r=>ys(r,-1),emmetDecrementNumber01:r=>ys(r,-.1),emmetDecrementNumber10:r=>ys(r,-10),emmetRemoveTag:ZT,emmetSelectNextItem:r=>Kg(r),emmetSelectPreviousItem:r=>Kg(r,!0),emmetSplitJoinTag:e$}),e.defineOption("emmet",_m,(r,i)=>{Wv(r)||(r.on("change",r$),r.on("change",n$));let o=Bv(r);i=wo(r,i),i.mark&&!o.tracker?o.tracker=iT(r):!i.mark&&o.tracker&&(o.tracker(),o.tracker=null),i.markTagPairs&&!o.tagMatch?o.tagMatch=uT(r):!i.markTagPairs&&o.tagMatch&&(o.tagMatch(),o.tagMatch=null)}),e.defineMode("emmet-abbreviation",gT),e.defineMode("emmet-css-abbreviation",vT),e.defineMode("emmet-snippet",bT),e.defineExtension("expandAbbreviation",function(r,i=nu(this,0)){return gc(this,r,i)}),e.defineExtension("emmetOptions",function(r=0){return nu(this,r)}),e.defineExtension("parseAbbreviation",function(r,i){return i==="stylesheet"?vm(dm(r)):Yg(rm(r),{jsx:i==="jsx"})}),e.defineExtension("getEmmetCompletion",function(r){return typeof r!="number"&&(r=this.indexFromPos(r)),sT(this,r)})}function r$(e,r){if(r.origin==="undo"&&r.text.length===1){let i=e.indexFromPos(r.from),o=r.text[0];lT(e,i,o)}}function n$(e,r){if(r.origin==="paste"&&r.text.length===1&&Xy(e,e.indexFromPos(r.from))){let i=e.indexFromPos(r.from)+r.text[0].length;Ld(e,i,!0)}}var nb=t$;var St;(function(e){"use strict";St=new ib.default({el:"#post",data:{initialized:!0,loading:!1,fullscreen:!1,langGroups:customCodesData.langGroups,langs:customCodesData.langs,isPremium:customCodesData.isPremium,isPremiumOnly:customCodesData.isPremiumOnly,postID:customCodesData.postID,postStatus:document.getElementById("hidden_post_status").value,postName:customCodesData.postName,postLanguage:customCodesData.postLanguage,currentLangID:customCodesData.postLanguage,selectedLangID:customCodesData.postLanguage,activeEditorID:"",outputOpen:!1,useBreakpoints:parseInt(customCodesData.postUseBreakpoints),location:customCodesData.postLocation,adminRoles:customCodesData.postRoles,includes:customCodesData.postIncludes||[],pages:customCodesData.postPages,posts:customCodesData.postPosts,postTypes:customCodesData.postPostTypes,terms:customCodesData.postTerms,taxonomies:customCodesData.postTaxonomies,templates:customCodesData.postTemplates,theme:customCodesData.userTheme,fontSize:customCodesData.userFontSize,indent:customCodesData.userIndent,editors:{},savedVals:{},editorSaved:{},saveCount:parseInt(customCodesData.saveCount),currentTitle:document.getElementById("title").value,currentTitleTag:document.getElementsByTagName("title")[0].innerText,ajaxSave:parseInt(customCodesData.ajaxSave),errors:{},lastEditedText:customCodesData.lastEditedText,processTime:null,aiModalOpen:!1,aiState:"idle",aiModels:customCodesData.aiModels||{},aiModel:customCodesData.aiModels&&customCodesData.aiModels.selected?customCodesData.aiModels.selected:"",aiSelectWidth:0,hasCode:!1,aiNonce:customCodesData.aiNonce,hasAIKey:customCodesData.hasAIKey,aiPrompt:"",aiError:""},computed:{currentLang(){return this.currentLangID==""?null:this.langs.find(o=>o.id==this.currentLangID)},currentLangGroup(){return this.currentLangID==""?null:this.langGroups.find(o=>o.id==this.currentLang.group)},currentLangGroupID(){return!this.currentLangGroup||typeof this.currentLangGroup.id>"u"?"":this.currentLangGroup.id},activeEditor(){if(!this.currentLang)return null;let o=this.currentLang.editors.find(c=>c.id==this.activeEditorID);return typeof o>"u"&&(customCodesData.initialStyleTab=="global"&&this.currentLangGroup.id=="style"?(o=this.currentLang.editors.find(c=>this.getMediaQuery(c.id)=="global"),typeof o>"u"&&(o=this.currentLang.editors[0])):o=this.currentLang.editors[0]),this.currentLangGroup.id=="style"&&!this.useBreakpoints&&(o=this.currentLang.editors.find(c=>c.id.endsWith("-default"))),o},indentType(){return this.indent.split("-")[0]},indentSize(){return this.indent.split("-")[1]},hasUnsaved(){let o=null;return Object.values(this.editorSaved).forEach(c=>{c||(o=!0)}),window.onbeforeunload=()=>o,document.getElementsByTagName("title")[0].innerText=o?"UNSAVED - "+this.currentTitleTag:this.currentTitleTag,o},putEditorHtmlTags(){return this.currentLang.id=="css"||this.currentLang.id=="js"},putEditorMediaQueries(){return this.currentLangGroupID=="style"&&this.getMediaQuery(this.activeEditor.id)!="global"},aiModelName(){if(!this.isPremium)return"Gemini 3 Flash";if(!this.aiModels||!this.aiModels.list)return"";let o=this.aiModels.list.find(c=>c.id===this.aiModel);return o?o.name:""},sortedIncludes(){return typeof this.includes>"u"?[]:this.includes.sort((o,c)=>o.order>c.order?1:-1)}},methods:{askAI(){if(this.aiModalOpen=!0,this.isPremium&&!this.hasAIKey)this.aiState="no-key";else{if(this.aiState="idle",this.aiPrompt="",this.aiError="",this.activeEditor){var o=this.editors["editor-"+this.activeEditor.id].getValue();this.hasCode=o.trim().length>0}else this.hasCode=!1;this.updateAiSelectWidth()}},closeAIModal(){this.aiModalOpen=!1},updateAiSelectWidth(){this.$nextTick(()=>{this.$refs.aiMeasurer&&(this.aiSelectWidth=this.$refs.aiMeasurer.offsetWidth+8)})},useSuggestion(o){this.aiPrompt=o},async submitAIQuery(){if(!this.aiPrompt)return;this.aiState="loading",this.aiError="";let o=this.activeEditor?this.editors["editor-"+this.activeEditor.id].getValue():"",c=this.currentLangID?this.currentLangID:"";try{let d=new FormData;d.append("action","codes_ai_request"),d.append("nonce",this.aiNonce),d.append("prompt",this.aiPrompt),d.append("code",o),d.append("language",c),d.append("location",this.location),d.append("model",this.aiModel);let x=await(await fetch(ajaxurl,{method:"POST",body:d})).json();x.success?this.activeEditor&&(this.editors["editor-"+this.activeEditor.id].setValue(x.data.code),this.closeAIModal()):(this.aiError=x.data.message||"An error occurred.",this.aiState="idle")}catch{this.aiError="Request failed.",this.aiState="idle"}},switchEditor(o){this.activeEditorID=o,this.outputOpen=!1,this.$nextTick(()=>{this.editors["editor-"+o].focus()})},switchLang(){var o=this.currentLangID,c=this.selectedLangID,d=!1;this.editors&&Object.values(this.editors).forEach(m=>{m.getValue()&&!d&&(d=!0)}),o==""||!d||confirm("Are you sure you want to change the language of this custom code?")?(this.destroyEditors(),this.outputOpen=!1,this.currentLangID=c,this.initializeEditors()):this.selectedLangID=o},switchTheme(){Object.values(this.editors).forEach(o=>{o.setOption("theme",this.theme)})},switchIndent(){var o=this.indentType=="tab";Object.values(this.editors).forEach(c=>{c.setOption("indentWithTabs",o),c.setOption("indentUnit",this.indentSize)})},async toggleOutput(o,c=!1){if(c||(this.outputOpen=!this.outputOpen),this.outputOpen||c){this.editors["output-"+this.currentLang.id].setValue("");let d=this.currentLang.output==="individual"?this.activeEditor.id:this.currentLang.id,m=customCodesData.custom_codes_uri+customCodesData.postID+"-"+d+"-output."+this.currentLangGroup.extension+"?v="+this.saveCount,x=await this.fetchData(m);x==""&&(x="/* No content */"),this.editors["output-"+this.currentLang.id].setValue(x),this.editors["output-"+this.currentLang.id].refresh()}},toggleFullScreen(){this.fullscreen=!this.fullscreen},initializeEditors(){let o={mode:this.currentLang.mode,lineNumbers:!0,styleActiveLine:!0,autoCloseBrackets:!0,matchBrackets:!0,indentWithTabs:this.indentType=="tab",indentUnit:4,tabSize:this.indentSize,showTrailingSpace:!0,autoRefresh:!0,autoFocus:!0,theme:this.theme,extraKeys:{"Cmd-F":"findPersistent","Ctrl-F":"findPersistent","Cmd-G":c=>!1,"Ctrl-G":c=>!1,"Cmd-7":function(c){c.toggleComment({fullLines:!1})},"Ctrl-7":function(c){c.toggleComment({fullLines:!1})},"Cmd-8":this.autoFormatAll,"Ctrl-8":this.autoFormatAll}};parseInt(customCodesData.useEmmet)&&(nb(pu.default),o.emmet={mark:!0,markTagPairs:!0,preview:!1,previewOpenTag:!1,config:{markup:{snippets:{foo:"ul.nav>li"}}}},o.extraKeys={...o.extraKeys,Tab:"emmetExpandAbbreviation",Esc:"emmetResetAbbreviation",Enter:"emmetInsertLineBreak","Ctrl-E":"emmetExpandAbbreviationAll","Ctrl-Space":"emmetCaptureAbbreviation","Ctrl-.":"emmetEnterAbbreviationMode","Ctrl-W":"emmetWrapWithAbbreviation","Cmd-D":"emmetBalance","Ctrl-D":"emmetBalanceInward","Cmd-/":"emmetToggleComment","Cmd-Y":"emmetEvaluateMath","Ctrl-Left":"emmetGoToPreviousEditPoint","Ctrl-Right":"emmetGoToNextEditPoint","Ctrl-P":"emmetGoToTagPair","Ctrl-Up":"emmetIncrementNumber1","Alt-Up":"emmetIncrementNumber01","Ctrl-Alt-Up":"emmetIncrementNumber10","Ctrl-Down":"emmetDecrementNumber1","Alt-Down":"emmetDecrementNumber01","Ctrl-Alt-Down":"emmetDecrementNumber10","Ctrl-'":"emmetRemoveTag","Shift-Ctrl-'":"emmetSplitJoinTag","Shift-Ctrl-Right":"emmetSelectNextItem","Shift-Ctrl-Left":"emmetSelectPreviousItem"});this.$nextTick(()=>{if(Array.prototype.forEach.call(this.currentLang.editors,c=>{let d="editor-"+c.id,m=document.getElementById(d);if(m){let x=m.hasAttribute("readonly");o.readOnly=x,this.editors[d]=pu.default.fromTextArea(document.getElementById(d),o),this.savedVals[d]=this.editors[d].getValue(),this.editors[d].on("change",S=>{this.$set(this.editorSaved,d,this.savedVals[d]==S.getValue()),S.save()})}}),this.currentLang.output){let c="output-"+this.currentLang.id;o.readOnly=!0,o.mode=this.currentLangGroup.mode,document.getElementById(c)&&(this.editors[c]=pu.default.fromTextArea(document.getElementById(c),o))}})},autoFormatAll(o){pu.default.commands.selectAll(o),o.autoFormatRange(o.getCursor(!0),o.getCursor(!1)),o.setCursor(0)},destroyEditors(){Object.values(this.editors).forEach(o=>{o.toTextArea()}),this.editors={}},disableEditors(){Object.values(this.editors).length&&Object.values(this.editors).forEach(o=>{o.setOption("readOnly",!0)})},disableAttrEditors(){Array.prototype.forEach.call(this.currentLang.editors,o=>{let c="editor-"+o.id,d=document.getElementById(c);d&&(this.activeEditor.id==o.id?d.removeAttribute("disabled"):d.setAttribute("disabled",!0))})},enableEditors(){Object.values(this.editors).length&&Object.values(this.editors).forEach(o=>{var c=o.getTextArea().hasAttribute("readonly");o.setOption("readOnly",c)})},async fetchData(o){function c(d,m){return new Promise(function(x,S){setTimeout(function(){S(new Error("timeout"))},d),m.then(x,S)})}return c(5e3,fetch(o)).then(d=>{if(!d.ok)throw new Error("HTTP error "+d.status);return d.text()}).then(d=>d).catch(function(d){return""})},decodeHtml(o){var c=document.createElement("textarea");return c.innerHTML=o,c.value},isEditorSaved(o){return typeof this.editorSaved[o]>"u"||this.editorSaved[o]},editorActive(o){return this.ajaxSave?o===this.activeEditor.id?null:!0:null},updateSavedStatus(o){this.savedVals[o]=this.editors[o].getValue(),this.$set(this.editorSaved,o,!0)},getMediaQuery(o){if(this.currentLangGroup.id!="style")return"";var c=customCodesData["query-"+o.replace(this.currentLang.id+"-","")];return c==""||typeof c>"u"?"global":c},getMediaQueryText(o){if(this.currentLangGroup.id!="style")return"";var c=this.getMediaQuery(o);return c=="global"?"No media query":c},modeSaving(){this.disableEditors(),e("title").text("SAVING... - "+this.currentTitleTag),this.loading=!0,e(".spinner").addClass("is-active"),e("#publish").addClass("disabled")},modeSaved(){this.enableEditors(),e("title").text(this.currentTitleTag),this.loading=!1,e(".spinner").removeClass("is-active"),e("#publish").removeClass("disabled")},unBlockPageChange(){e(window).off("beforeunload.edit-post"),window.onbeforeunload=null},newInclude(){this.includes.push({type:"custom-code",code:"",url:"",placement:"top",order:this.includes.length?parseInt(this.sortedIncludes[this.includes.length-1].order)+1:0})},deleteInclude(o){confirm("Are you sure?")&&this.includes.splice(o,1)},updateIncludeLang(o,c){if(o.target.options.selectedIndex>-1){let d=o.target.options[o.target.options.selectedIndex].dataset;c.codeLang=d.language}}},mounted(){i(()=>{this.currentLang&&this.initializeEditors(),this.currentTitleTag=this.currentTitle.length?this.currentTitle:this.currentTitleTag})}}),e(document).ready(function(){e("form#post").on("submit",function(m){if(St.disableAttrEditors(),St.loading=!0,e("#ajax-saver").length){var x=e("form#post").serializeArray();St.modeSaving(),e.ajax({type:"POST",url:customCodesData.ajaxUrl,data:x,timeout:3e4,success:function(S){if(typeof S=="string"){var A=/({.*?})/g,T=S.toString().match(A);S=jQuery.parseJSON(T[T.length-1])}var D=S.success||!1;St.errors=S.errors||{Server:"Bad response"},St.processTime=S.processTime||"...",St.saveCount=S.saveCount||St.saveCount,St.lastEditedText=S.lastEditedText||St.lastEditedText;var E=S.savedEditors||[];E.forEach(U=>{St.updateSavedStatus(U)}),D&&!Object.keys(St.errors).length&&(parseInt(customCodesData.playSound)&&codes_audioElement.play(),St.unBlockPageChange()),St.outputOpen&&St.toggleOutput(null,!0),St.modeSaved()},error:function(S,A,T){St.errors[A]=T,St.modeSaved()}}),m.preventDefault()}else St.unBlockPageChange()});var o=e(".editor-files a").attr("data-tooltip"),c=e(".editor-files a").attr("data-copied");e(document).on("mouseover",".editor-files a",function(m){e(this).attr("data-tooltip",o)}).on("click",".editor-files a",function(m){var x=e(this).attr("data-copy")?e(this).attr("data-copy"):e(this).text();return r(x),e(this).attr("data-tooltip",c),m.preventDefault(),!1});var d=e("#title").val();e("#title").on("input",function(){var m=e(this).val();St.currentTitle=m,St.currentTitleTag=m.length?m:"Untitled Code",d==m&&St.unBlockPageChange()})}),e(document).on("keydown",function(o){if((o.ctrlKey||o.metaKey)&&o.which==83&&parseInt(customCodesData.commandS))return e("#ajax-saver").length||St.unBlockPageChange(),e("#publish").trigger("click"),o.preventDefault(),!1;if((o.ctrlKey||o.metaKey)&&o.which==71)return St.toggleFullScreen(),o.preventDefault(),!1;if((o.ctrlKey||o.metaKey)&&o.which==74)return St.outputOpen||St.askAI(),o.preventDefault(),!1;if((o.ctrlKey||o.metaKey)&&o.which==79)return St.toggleOutput(),o.preventDefault(),!1});function r(o){var c=e("<input>");e("body").append(c),c.val(o).select(),document.execCommand("copy"),c.remove()}function i(o){document.readyState==="complete"||document.readyState==="interactive"?setTimeout(o,1):document.addEventListener("DOMContentLoaded",o)}})(jQuery);})();