bookstack/public/dist/app.js

72 lines
769 KiB
JavaScript

(()=>{var dx=Object.create;var Ko=Object.defineProperty;var hx=Object.getOwnPropertyDescriptor;var px=Object.getOwnPropertyNames;var mx=Object.getPrototypeOf,gx=Object.prototype.hasOwnProperty;var vx=i=>Ko(i,"__esModule",{value:!0});var yx=(i,t)=>()=>(i&&(t=i(i=0)),t),Fe=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),bx=(i,t)=>{for(var n in t)Ko(i,n,{get:t[n],enumerable:!0})},xx=(i,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of px(t))!gx.call(i,l)&&l!=="default"&&Ko(i,l,{get:()=>t[l],enumerable:!(n=hx(t,l))||n.enumerable});return i},St=i=>xx(vx(Ko(i!=null?dx(mx(i)):{},"default",i&&i.__esModule&&"default"in i?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i);var At=Fe((Ys,Xs)=>{(function(i,t){typeof Ys=="object"&&typeof Xs!="undefined"?Xs.exports=t():typeof define=="function"&&define.amd?define(t):(i=i||self,i.CodeMirror=t())})(Ys,function(){"use strict";var i=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(i),l=/MSIE \d/.test(i),c=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),d=/Edge\/(\d+)/.exec(i),a=l||c||d,h=a&&(l?document.documentMode||6:+(d||c)[1]),f=!d&&/WebKit\//.test(i),p=f&&/Qt\/\d+\.\d+/.test(i),y=!d&&/Chrome\//.test(i),g=/Opera\//.test(i),v=/Apple Computer/.test(navigator.vendor),b=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),k=/PhantomJS/.test(i),_=v&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),w=/Android/.test(i),I=_||w||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),S=_||/Mac/.test(t),R=/\bCrOS\b/.test(i),O=/win/i.test(t),U=g&&i.match(/Version\/(\d*\.\d*)/);U&&(U=Number(U[1])),U&&U>=15&&(g=!1,f=!0);var $=S&&(p||g&&(U==null||U<12.11)),J=n||a&&h>=9;function K(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var X=function(e,r){var s=e.className,o=K(r).exec(s);if(o){var u=s.slice(o.index+o[0].length);e.className=s.slice(0,o.index)+(u?o[1]+u:"")}};function G(e){for(var r=e.childNodes.length;r>0;--r)e.removeChild(e.firstChild);return e}function q(e,r){return G(e).appendChild(r)}function T(e,r,s,o){var u=document.createElement(e);if(s&&(u.className=s),o&&(u.style.cssText=o),typeof r=="string")u.appendChild(document.createTextNode(r));else if(r)for(var m=0;m<r.length;++m)u.appendChild(r[m]);return u}function A(e,r,s,o){var u=T(e,r,s,o);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(e,r,s,o){var u=document.createRange();return u.setEnd(o||e,s),u.setStart(e,r),u}:j=function(e,r,s){var o=document.body.createTextRange();try{o.moveToElementText(e.parentNode)}catch(u){return o}return o.collapse(!0),o.moveEnd("character",s),o.moveStart("character",r),o};function te(e,r){if(r.nodeType==3&&(r=r.parentNode),e.contains)return e.contains(r);do if(r.nodeType==11&&(r=r.host),r==e)return!0;while(r=r.parentNode)}function F(){var e;try{e=document.activeElement}catch(r){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function z(e,r){var s=e.className;K(r).test(s)||(e.className+=(s?" ":"")+r)}function se(e,r){for(var s=e.split(" "),o=0;o<s.length;o++)s[o]&&!K(s[o]).test(r)&&(r+=" "+s[o]);return r}var be=function(e){e.select()};_?be=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(be=function(e){try{e.select()}catch(r){}});function W(e){var r=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,r)}}function M(e,r,s){r||(r={});for(var o in e)e.hasOwnProperty(o)&&(s!==!1||!r.hasOwnProperty(o))&&(r[o]=e[o]);return r}function we(e,r,s,o,u){r==null&&(r=e.search(/[^\s\u00a0]/),r==-1&&(r=e.length));for(var m=o||0,x=u||0;;){var E=e.indexOf(" ",m);if(E<0||E>=r)return x+(r-m);x+=E-m,x+=s-x%s,m=E+1}}var Pe=function(){this.id=null,this.f=null,this.time=0,this.handler=W(this.onTimeout,this)};Pe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},Pe.prototype.set=function(e,r){this.f=r;var s=+new Date+e;(!this.id||s<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=s)};function ve(e,r){for(var s=0;s<e.length;++s)if(e[s]==r)return s;return-1}var Ee=50,ze={toString:function(){return"CodeMirror.Pass"}},qe={scroll:!1},me={origin:"*mouse"},ke={origin:"+move"};function Ue(e,r,s){for(var o=0,u=0;;){var m=e.indexOf(" ",o);m==-1&&(m=e.length);var x=m-o;if(m==e.length||u+x>=r)return o+Math.min(x,r-u);if(u+=m-o,u+=s-u%s,o=m+1,u>=r)return o}}var at=[""];function gt(e){for(;at.length<=e;)at.push(Re(at)+" ");return at[e]}function Re(e){return e[e.length-1]}function Ie(e,r){for(var s=[],o=0;o<e.length;o++)s[o]=r(e[o],o);return s}function Be(e,r,s){for(var o=0,u=s(r);o<e.length&&s(e[o])<=u;)o++;e.splice(o,0,r)}function Ge(){}function He(e,r){var s;return Object.create?s=Object.create(e):(Ge.prototype=e,s=new Ge),r&&M(r,s),s}var Qe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function _e(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Qe.test(e))}function Y(e,r){return r?r.source.indexOf("\\w")>-1&&_e(e)?!0:r.test(e):_e(e)}function fe(e){for(var r in e)if(e.hasOwnProperty(r)&&e[r])return!1;return!0}var le=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function it(e){return e.charCodeAt(0)>=768&&le.test(e)}function Ne(e,r,s){for(;(s<0?r>0:r<e.length)&&it(e.charAt(r));)r+=s;return r}function ot(e,r,s){for(var o=r>s?-1:1;;){if(r==s)return r;var u=(r+s)/2,m=o<0?Math.ceil(u):Math.floor(u);if(m==r)return e(m)?r:s;e(m)?s=m:r=m+o}}function Ye(e,r,s,o){if(!e)return o(r,s,"ltr",0);for(var u=!1,m=0;m<e.length;++m){var x=e[m];(x.from<s&&x.to>r||r==s&&x.to==r)&&(o(Math.max(x.from,r),Math.min(x.to,s),x.level==1?"rtl":"ltr",m),u=!0)}u||o(r,s,"ltr")}var Je=null;function We(e,r,s){var o;Je=null;for(var u=0;u<e.length;++u){var m=e[u];if(m.from<r&&m.to>r)return u;m.to==r&&(m.from!=m.to&&s=="before"?o=u:Je=u),m.from==r&&(m.from!=m.to&&s!="before"?o=u:Je=u)}return o!=null?o:Je}var qt=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function s(L){return L<=247?e.charAt(L):1424<=L&&L<=1524?"R":1536<=L&&L<=1785?r.charAt(L-1536):1774<=L&&L<=2220?"r":8192<=L&&L<=8203?"w":L==8204?"b":"L"}var o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,x=/[Lb1n]/,E=/[1n]/;function C(L,V,Q){this.level=L,this.from=V,this.to=Q}return function(L,V){var Q=V=="ltr"?"L":"R";if(L.length==0||V=="ltr"&&!o.test(L))return!1;for(var ce=L.length,ae=[],ye=0;ye<ce;++ye)ae.push(s(L.charCodeAt(ye)));for(var Te=0,Oe=Q;Te<ce;++Te){var je=ae[Te];je=="m"?ae[Te]=Oe:Oe=je}for(var tt=0,$e=Q;tt<ce;++tt){var nt=ae[tt];nt=="1"&&$e=="r"?ae[tt]="n":m.test(nt)&&($e=nt,nt=="r"&&(ae[tt]="R"))}for(var ct=1,ut=ae[0];ct<ce-1;++ct){var vt=ae[ct];vt=="+"&&ut=="1"&&ae[ct+1]=="1"?ae[ct]="1":vt==","&&ut==ae[ct+1]&&(ut=="1"||ut=="n")&&(ae[ct]=ut),ut=vt}for(var Pt=0;Pt<ce;++Pt){var ir=ae[Pt];if(ir==",")ae[Pt]="N";else if(ir=="%"){var Bt=void 0;for(Bt=Pt+1;Bt<ce&&ae[Bt]=="%";++Bt);for(var Lr=Pt&&ae[Pt-1]=="!"||Bt<ce&&ae[Bt]=="1"?"1":"N",Sr=Pt;Sr<Bt;++Sr)ae[Sr]=Lr;Pt=Bt-1}}for(var Yt=0,Er=Q;Yt<ce;++Yt){var lr=ae[Yt];Er=="L"&&lr=="1"?ae[Yt]="L":m.test(lr)&&(Er=lr)}for(var Qt=0;Qt<ce;++Qt)if(u.test(ae[Qt])){var Xt=void 0;for(Xt=Qt+1;Xt<ce&&u.test(ae[Xt]);++Xt);for(var jt=(Qt?ae[Qt-1]:Q)=="L",Cr=(Xt<ce?ae[Xt]:Q)=="L",ui=jt==Cr?jt?"L":"R":Q,_n=Qt;_n<Xt;++_n)ae[_n]=ui;Qt=Xt-1}for(var mr=[],Qr,or=0;or<ce;)if(x.test(ae[or])){var Ls=or;for(++or;or<ce&&x.test(ae[or]);++or);mr.push(new C(0,Ls,or))}else{var cn=or,Rn=mr.length,zn=V=="rtl"?1:0;for(++or;or<ce&&ae[or]!="L";++or);for(var xr=cn;xr<or;)if(E.test(ae[xr])){cn<xr&&(mr.splice(Rn,0,new C(1,cn,xr)),Rn+=zn);var ci=xr;for(++xr;xr<or&&E.test(ae[xr]);++xr);mr.splice(Rn,0,new C(2,ci,xr)),Rn+=zn,cn=xr}else++xr;cn<or&&mr.splice(Rn,0,new C(1,cn,or))}return V=="ltr"&&(mr[0].level==1&&(Qr=L.match(/^\s+/))&&(mr[0].from=Qr[0].length,mr.unshift(new C(0,0,Qr[0].length))),Re(mr).level==1&&(Qr=L.match(/\s+$/))&&(Re(mr).to-=Qr[0].length,mr.push(new C(0,ce-Qr[0].length,ce)))),V=="rtl"?mr.reverse():mr}}();function Lt(e,r){var s=e.order;return s==null&&(s=e.order=qt(e.text,r)),s}var cr=[],lt=function(e,r,s){if(e.addEventListener)e.addEventListener(r,s,!1);else if(e.attachEvent)e.attachEvent("on"+r,s);else{var o=e._handlers||(e._handlers={});o[r]=(o[r]||cr).concat(s)}};function Mt(e,r){return e._handlers&&e._handlers[r]||cr}function pt(e,r,s){if(e.removeEventListener)e.removeEventListener(r,s,!1);else if(e.detachEvent)e.detachEvent("on"+r,s);else{var o=e._handlers,u=o&&o[r];if(u){var m=ve(u,s);m>-1&&(o[r]=u.slice(0,m).concat(u.slice(m+1)))}}}function rt(e,r){var s=Mt(e,r);if(!!s.length)for(var o=Array.prototype.slice.call(arguments,2),u=0;u<s.length;++u)s[u].apply(null,o)}function wt(e,r,s){return typeof r=="string"&&(r={type:r,preventDefault:function(){this.defaultPrevented=!0}}),rt(e,s||r.type,e,r),Ht(r)||r.codemirrorIgnore}function fr(e){var r=e._handlers&&e._handlers.cursorActivity;if(!!r)for(var s=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),o=0;o<r.length;++o)ve(s,r[o])==-1&&s.push(r[o])}function Et(e,r){return Mt(e,r).length>0}function Kt(e){e.prototype.on=function(r,s){lt(this,r,s)},e.prototype.off=function(r,s){pt(this,r,s)}}function kt(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function st(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ht(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Ir(e){kt(e),st(e)}function dr(e){return e.target||e.srcElement}function hr(e){var r=e.which;return r==null&&(e.button&1?r=1:e.button&2?r=3:e.button&4&&(r=2)),S&&e.ctrlKey&&r==1&&(r=3),r}var $r=function(){if(a&&h<9)return!1;var e=T("div");return"draggable"in e||"dragDrop"in e}(),zt;function yr(e){if(zt==null){var r=T("span","\u200B");q(e,T("span",[r,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(zt=r.offsetWidth<=1&&r.offsetHeight>2&&!(a&&h<8))}var s=zt?T("span","\u200B"):T("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return s.setAttribute("cm-text",""),s}var sr;function Zt(e){if(sr!=null)return sr;var r=q(e,document.createTextNode("A\u062EA")),s=j(r,0,1).getBoundingClientRect(),o=j(r,1,2).getBoundingClientRect();return G(e),!s||s.left==s.right?!1:sr=o.right-s.right<3}var ne=`
b`.split(/\n/).length!=3?function(e){for(var r=0,s=[],o=e.length;r<=o;){var u=e.indexOf(`
`,r);u==-1&&(u=e.length);var m=e.slice(r,e.charAt(u-1)=="\r"?u-1:u),x=m.indexOf("\r");x!=-1?(s.push(m.slice(0,x)),r+=x+1):(s.push(m),r=u+1)}return s}:function(e){return e.split(/\r\n?|\n/)},ie=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(r){return!1}}:function(e){var r;try{r=e.ownerDocument.selection.createRange()}catch(s){}return!r||r.parentElement()!=e?!1:r.compareEndPoints("StartToEnd",r)!=0},Z=function(){var e=T("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),re=null;function P(e){if(re!=null)return re;var r=q(e,T("span","x")),s=r.getBoundingClientRect(),o=j(r,0,1).getBoundingClientRect();return re=Math.abs(s.left-o.left)>1}var N={},ee={};function ue(e,r){arguments.length>2&&(r.dependencies=Array.prototype.slice.call(arguments,2)),N[e]=r}function pe(e,r){ee[e]=r}function ge(e){if(typeof e=="string"&&ee.hasOwnProperty(e))e=ee[e];else if(e&&typeof e.name=="string"&&ee.hasOwnProperty(e.name)){var r=ee[e.name];typeof r=="string"&&(r={name:r}),e=He(r,e),e.name=r.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return ge("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return ge("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Le(e,r){r=ge(r);var s=N[r.name];if(!s)return Le(e,"text/plain");var o=s(e,r);if(Me.hasOwnProperty(r.name)){var u=Me[r.name];for(var m in u)!u.hasOwnProperty(m)||(o.hasOwnProperty(m)&&(o["_"+m]=o[m]),o[m]=u[m])}if(o.name=r.name,r.helperType&&(o.helperType=r.helperType),r.modeProps)for(var x in r.modeProps)o[x]=r.modeProps[x];return o}var Me={};function Se(e,r){var s=Me.hasOwnProperty(e)?Me[e]:Me[e]={};M(r,s)}function Ke(e,r){if(r===!0)return r;if(e.copyState)return e.copyState(r);var s={};for(var o in r){var u=r[o];u instanceof Array&&(u=u.concat([])),s[o]=u}return s}function _t(e,r){for(var s;e.innerMode&&(s=e.innerMode(r),!(!s||s.mode==e));)r=s.state,e=s.mode;return s||{mode:e,state:r}}function mt(e,r,s){return e.startState?e.startState(r,s):!0}var H=function(e,r,s){this.pos=this.start=0,this.string=e,this.tabSize=r||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=s};H.prototype.eol=function(){return this.pos>=this.string.length},H.prototype.sol=function(){return this.pos==this.lineStart},H.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},H.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},H.prototype.eat=function(e){var r=this.string.charAt(this.pos),s;if(typeof e=="string"?s=r==e:s=r&&(e.test?e.test(r):e(r)),s)return++this.pos,r},H.prototype.eatWhile=function(e){for(var r=this.pos;this.eat(e););return this.pos>r},H.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},H.prototype.skipToEnd=function(){this.pos=this.string.length},H.prototype.skipTo=function(e){var r=this.string.indexOf(e,this.pos);if(r>-1)return this.pos=r,!0},H.prototype.backUp=function(e){this.pos-=e},H.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=we(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?we(this.string,this.lineStart,this.tabSize):0)},H.prototype.indentation=function(){return we(this.string,null,this.tabSize)-(this.lineStart?we(this.string,this.lineStart,this.tabSize):0)},H.prototype.match=function(e,r,s){if(typeof e=="string"){var o=function(x){return s?x.toLowerCase():x},u=this.string.substr(this.pos,e.length);if(o(u)==o(e))return r!==!1&&(this.pos+=e.length),!0}else{var m=this.string.slice(this.pos).match(e);return m&&m.index>0?null:(m&&r!==!1&&(this.pos+=m[0].length),m)}},H.prototype.current=function(){return this.string.slice(this.start,this.pos)},H.prototype.hideFirstChars=function(e,r){this.lineStart+=e;try{return r()}finally{this.lineStart-=e}},H.prototype.lookAhead=function(e){var r=this.lineOracle;return r&&r.lookAhead(e)},H.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function oe(e,r){if(r-=e.first,r<0||r>=e.size)throw new Error("There is no line "+(r+e.first)+" in the document.");for(var s=e;!s.lines;)for(var o=0;;++o){var u=s.children[o],m=u.chunkSize();if(r<m){s=u;break}r-=m}return s.lines[r]}function he(e,r,s){var o=[],u=r.line;return e.iter(r.line,s.line+1,function(m){var x=m.text;u==s.line&&(x=x.slice(0,s.ch)),u==r.line&&(x=x.slice(r.ch)),o.push(x),++u}),o}function Ce(e,r,s){var o=[];return e.iter(r,s,function(u){o.push(u.text)}),o}function Ae(e,r){var s=r-e.height;if(s)for(var o=e;o;o=o.parent)o.height+=s}function Ve(e){if(e.parent==null)return null;for(var r=e.parent,s=ve(r.lines,e),o=r.parent;o;r=o,o=o.parent)for(var u=0;o.children[u]!=r;++u)s+=o.children[u].chunkSize();return s+r.first}function et(e,r){var s=e.first;e:do{for(var o=0;o<e.children.length;++o){var u=e.children[o],m=u.height;if(r<m){e=u;continue e}r-=m,s+=u.chunkSize()}return s}while(!e.lines);for(var x=0;x<e.lines.length;++x){var E=e.lines[x],C=E.height;if(r<C)break;r-=C}return s+x}function bt(e,r){return r>=e.first&&r<e.first+e.size}function Dt(e,r){return String(e.lineNumberFormatter(r+e.firstLineNumber))}function xe(e,r,s){if(s===void 0&&(s=null),!(this instanceof xe))return new xe(e,r,s);this.line=e,this.ch=r,this.sticky=s}function D(e,r){return e.line-r.line||e.ch-r.ch}function B(e,r){return e.sticky==r.sticky&&D(e,r)==0}function de(e){return xe(e.line,e.ch)}function De(e,r){return D(e,r)<0?r:e}function ft(e,r){return D(e,r)<0?e:r}function xt(e,r){return Math.max(e.first,Math.min(r,e.first+e.size-1))}function Xe(e,r){if(r.line<e.first)return xe(e.first,0);var s=e.first+e.size-1;return r.line>s?xe(s,oe(e,s).text.length):Vt(r,oe(e,r.line).text.length)}function Vt(e,r){var s=e.ch;return s==null||s>r?xe(e.line,r):s<0?xe(e.line,0):e}function Fr(e,r){for(var s=[],o=0;o<r.length;o++)s[o]=Xe(e,r[o]);return s}var Wn=function(e,r){this.state=e,this.lookAhead=r},Vr=function(e,r,s,o){this.state=r,this.doc=e,this.line=s,this.maxLookAhead=o||0,this.baseTokens=null,this.baseTokenPos=1};Vr.prototype.lookAhead=function(e){var r=this.doc.getLine(this.line+e);return r!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),r},Vr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var r=this.baseTokens[this.baseTokenPos+1];return{type:r&&r.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Vr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Vr.fromSaved=function(e,r,s){return r instanceof Wn?new Vr(e,Ke(e.mode,r.state),s,r.lookAhead):new Vr(e,Ke(e.mode,r),s)},Vr.prototype.save=function(e){var r=e!==!1?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wn(r,this.maxLookAhead):r};function zl(e,r,s,o){var u=[e.state.modeGen],m={};Ul(e,r.text,e.doc.mode,s,function(L,V){return u.push(L,V)},m,o);for(var x=s.state,E=function(L){s.baseTokens=u;var V=e.state.overlays[L],Q=1,ce=0;s.state=!0,Ul(e,r.text,V.mode,s,function(ae,ye){for(var Te=Q;ce<ae;){var Oe=u[Q];Oe>ae&&u.splice(Q,1,ae,u[Q+1],Oe),Q+=2,ce=Math.min(ae,Oe)}if(!!ye)if(V.opaque)u.splice(Te,Q-Te,ae,"overlay "+ye),Q=Te+2;else for(;Te<Q;Te+=2){var je=u[Te+1];u[Te+1]=(je?je+" ":"")+"overlay "+ye}},m),s.state=x,s.baseTokens=null,s.baseTokenPos=1},C=0;C<e.state.overlays.length;++C)E(C);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function Nl(e,r,s){if(!r.styles||r.styles[0]!=e.state.modeGen){var o=Ei(e,Ve(r)),u=r.text.length>e.options.maxHighlightLength&&Ke(e.doc.mode,o.state),m=zl(e,r,o);u&&(o.state=u),r.stateAfter=o.save(!u),r.styles=m.styles,m.classes?r.styleClasses=m.classes:r.styleClasses&&(r.styleClasses=null),s===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return r.styles}function Ei(e,r,s){var o=e.doc,u=e.display;if(!o.mode.startState)return new Vr(o,!0,r);var m=py(e,r,s),x=m>o.first&&oe(o,m-1).stateAfter,E=x?Vr.fromSaved(o,x,m):new Vr(o,mt(o.mode),m);return o.iter(m,r,function(C){Ba(e,C.text,E);var L=E.line;C.stateAfter=L==r-1||L%5==0||L>=u.viewFrom&&L<u.viewTo?E.save():null,E.nextLine()}),s&&(o.modeFrontier=E.line),E}function Ba(e,r,s,o){var u=e.doc.mode,m=new H(r,e.options.tabSize,s);for(m.start=m.pos=o||0,r==""&&Bl(u,s.state);!m.eol();)qa(u,m,s.state),m.start=m.pos}function Bl(e,r){if(e.blankLine)return e.blankLine(r);if(!!e.innerMode){var s=_t(e,r);if(s.mode.blankLine)return s.mode.blankLine(s.state)}}function qa(e,r,s,o){for(var u=0;u<10;u++){o&&(o[0]=_t(e,s).mode);var m=e.token(r,s);if(r.pos>r.start)return m}throw new Error("Mode "+e.name+" failed to advance stream.")}var ql=function(e,r,s){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=r||null,this.state=s};function jl(e,r,s,o){var u=e.doc,m=u.mode,x;r=Xe(u,r);var E=oe(u,r.line),C=Ei(e,r.line,s),L=new H(E.text,e.options.tabSize,C),V;for(o&&(V=[]);(o||L.pos<r.ch)&&!L.eol();)L.start=L.pos,x=qa(m,L,C.state),o&&V.push(new ql(L,x,Ke(u.mode,C.state)));return o?V:new ql(L,x,C.state)}function $l(e,r){if(e)for(;;){var s=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!s)break;e=e.slice(0,s.index)+e.slice(s.index+s[0].length);var o=s[1]?"bgClass":"textClass";r[o]==null?r[o]=s[2]:new RegExp("(?:^|\\s)"+s[2]+"(?:$|\\s)").test(r[o])||(r[o]+=" "+s[2])}return e}function Ul(e,r,s,o,u,m,x){var E=s.flattenSpans;E==null&&(E=e.options.flattenSpans);var C=0,L=null,V=new H(r,e.options.tabSize,o),Q,ce=e.options.addModeClass&&[null];for(r==""&&$l(Bl(s,o.state),m);!V.eol();){if(V.pos>e.options.maxHighlightLength?(E=!1,x&&Ba(e,r,o,V.pos),V.pos=r.length,Q=null):Q=$l(qa(s,V,o.state,ce),m),ce){var ae=ce[0].name;ae&&(Q="m-"+(Q?ae+" "+Q:ae))}if(!E||L!=Q){for(;C<V.start;)C=Math.min(V.start,C+5e3),u(C,L);L=Q}V.start=V.pos}for(;C<V.pos;){var ye=Math.min(V.pos,C+5e3);u(ye,L),C=ye}}function py(e,r,s){for(var o,u,m=e.doc,x=s?-1:r-(e.doc.mode.innerMode?1e3:100),E=r;E>x;--E){if(E<=m.first)return m.first;var C=oe(m,E-1),L=C.stateAfter;if(L&&(!s||E+(L instanceof Wn?L.lookAhead:0)<=m.modeFrontier))return E;var V=we(C.text,null,e.options.tabSize);(u==null||o>V)&&(u=E-1,o=V)}return u}function my(e,r){if(e.modeFrontier=Math.min(e.modeFrontier,r),!(e.highlightFrontier<r-10)){for(var s=e.first,o=r-1;o>s;o--){var u=oe(e,o).stateAfter;if(u&&(!(u instanceof Wn)||o+u.lookAhead<r)){s=o+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,s)}}var Hl=!1,an=!1;function gy(){Hl=!0}function vy(){an=!0}function bo(e,r,s){this.marker=e,this.from=r,this.to=s}function Ci(e,r){if(e)for(var s=0;s<e.length;++s){var o=e[s];if(o.marker==r)return o}}function yy(e,r){for(var s,o=0;o<e.length;++o)e[o]!=r&&(s||(s=[])).push(e[o]);return s}function by(e,r,s){var o=s&&window.WeakSet&&(s.markedSpans||(s.markedSpans=new WeakSet));o&&o.has(e.markedSpans)?e.markedSpans.push(r):(e.markedSpans=e.markedSpans?e.markedSpans.concat([r]):[r],o&&o.add(e.markedSpans)),r.marker.attachLine(e)}function xy(e,r,s){var o;if(e)for(var u=0;u<e.length;++u){var m=e[u],x=m.marker,E=m.from==null||(x.inclusiveLeft?m.from<=r:m.from<r);if(E||m.from==r&&x.type=="bookmark"&&(!s||!m.marker.insertLeft)){var C=m.to==null||(x.inclusiveRight?m.to>=r:m.to>r);(o||(o=[])).push(new bo(x,m.from,C?null:m.to))}}return o}function wy(e,r,s){var o;if(e)for(var u=0;u<e.length;++u){var m=e[u],x=m.marker,E=m.to==null||(x.inclusiveRight?m.to>=r:m.to>r);if(E||m.from==r&&x.type=="bookmark"&&(!s||m.marker.insertLeft)){var C=m.from==null||(x.inclusiveLeft?m.from<=r:m.from<r);(o||(o=[])).push(new bo(x,C?null:m.from-r,m.to==null?null:m.to-r))}}return o}function ja(e,r){if(r.full)return null;var s=bt(e,r.from.line)&&oe(e,r.from.line).markedSpans,o=bt(e,r.to.line)&&oe(e,r.to.line).markedSpans;if(!s&&!o)return null;var u=r.from.ch,m=r.to.ch,x=D(r.from,r.to)==0,E=xy(s,u,x),C=wy(o,m,x),L=r.text.length==1,V=Re(r.text).length+(L?u:0);if(E)for(var Q=0;Q<E.length;++Q){var ce=E[Q];if(ce.to==null){var ae=Ci(C,ce.marker);ae?L&&(ce.to=ae.to==null?null:ae.to+V):ce.to=u}}if(C)for(var ye=0;ye<C.length;++ye){var Te=C[ye];if(Te.to!=null&&(Te.to+=V),Te.from==null){var Oe=Ci(E,Te.marker);Oe||(Te.from=V,L&&(E||(E=[])).push(Te))}else Te.from+=V,L&&(E||(E=[])).push(Te)}E&&(E=Wl(E)),C&&C!=E&&(C=Wl(C));var je=[E];if(!L){var tt=r.text.length-2,$e;if(tt>0&&E)for(var nt=0;nt<E.length;++nt)E[nt].to==null&&($e||($e=[])).push(new bo(E[nt].marker,null,null));for(var ct=0;ct<tt;++ct)je.push($e);je.push(C)}return je}function Wl(e){for(var r=0;r<e.length;++r){var s=e[r];s.from!=null&&s.from==s.to&&s.marker.clearWhenEmpty!==!1&&e.splice(r--,1)}return e.length?e:null}function ky(e,r,s){var o=null;if(e.iter(r.line,s.line+1,function(ae){if(ae.markedSpans)for(var ye=0;ye<ae.markedSpans.length;++ye){var Te=ae.markedSpans[ye].marker;Te.readOnly&&(!o||ve(o,Te)==-1)&&(o||(o=[])).push(Te)}}),!o)return null;for(var u=[{from:r,to:s}],m=0;m<o.length;++m)for(var x=o[m],E=x.find(0),C=0;C<u.length;++C){var L=u[C];if(!(D(L.to,E.from)<0||D(L.from,E.to)>0)){var V=[C,1],Q=D(L.from,E.from),ce=D(L.to,E.to);(Q<0||!x.inclusiveLeft&&!Q)&&V.push({from:L.from,to:E.from}),(ce>0||!x.inclusiveRight&&!ce)&&V.push({from:E.to,to:L.to}),u.splice.apply(u,V),C+=V.length-3}}return u}function Gl(e){var r=e.markedSpans;if(!!r){for(var s=0;s<r.length;++s)r[s].marker.detachLine(e);e.markedSpans=null}}function Kl(e,r){if(!!r){for(var s=0;s<r.length;++s)r[s].marker.attachLine(e);e.markedSpans=r}}function xo(e){return e.inclusiveLeft?-1:0}function wo(e){return e.inclusiveRight?1:0}function $a(e,r){var s=e.lines.length-r.lines.length;if(s!=0)return s;var o=e.find(),u=r.find(),m=D(o.from,u.from)||xo(e)-xo(r);if(m)return-m;var x=D(o.to,u.to)||wo(e)-wo(r);return x||r.id-e.id}function Vl(e,r){var s=an&&e.markedSpans,o;if(s)for(var u=void 0,m=0;m<s.length;++m)u=s[m],u.marker.collapsed&&(r?u.from:u.to)==null&&(!o||$a(o,u.marker)<0)&&(o=u.marker);return o}function Yl(e){return Vl(e,!0)}function ko(e){return Vl(e,!1)}function _y(e,r){var s=an&&e.markedSpans,o;if(s)for(var u=0;u<s.length;++u){var m=s[u];m.marker.collapsed&&(m.from==null||m.from<r)&&(m.to==null||m.to>r)&&(!o||$a(o,m.marker)<0)&&(o=m.marker)}return o}function Xl(e,r,s,o,u){var m=oe(e,r),x=an&&m.markedSpans;if(x)for(var E=0;E<x.length;++E){var C=x[E];if(!!C.marker.collapsed){var L=C.marker.find(0),V=D(L.from,s)||xo(C.marker)-xo(u),Q=D(L.to,o)||wo(C.marker)-wo(u);if(!(V>=0&&Q<=0||V<=0&&Q>=0)&&(V<=0&&(C.marker.inclusiveRight&&u.inclusiveLeft?D(L.to,s)>=0:D(L.to,s)>0)||V>=0&&(C.marker.inclusiveRight&&u.inclusiveLeft?D(L.from,o)<=0:D(L.from,o)<0)))return!0}}}function Yr(e){for(var r;r=Yl(e);)e=r.find(-1,!0).line;return e}function Sy(e){for(var r;r=ko(e);)e=r.find(1,!0).line;return e}function Ey(e){for(var r,s;r=ko(e);)e=r.find(1,!0).line,(s||(s=[])).push(e);return s}function Ua(e,r){var s=oe(e,r),o=Yr(s);return s==o?r:Ve(o)}function Zl(e,r){if(r>e.lastLine())return r;var s=oe(e,r),o;if(!mn(e,s))return r;for(;o=ko(s);)s=o.find(1,!0).line;return Ve(s)+1}function mn(e,r){var s=an&&r.markedSpans;if(s){for(var o=void 0,u=0;u<s.length;++u)if(o=s[u],!!o.marker.collapsed){if(o.from==null)return!0;if(!o.marker.widgetNode&&o.from==0&&o.marker.inclusiveLeft&&Ha(e,r,o))return!0}}}function Ha(e,r,s){if(s.to==null){var o=s.marker.find(1,!0);return Ha(e,o.line,Ci(o.line.markedSpans,s.marker))}if(s.marker.inclusiveRight&&s.to==r.text.length)return!0;for(var u=void 0,m=0;m<r.markedSpans.length;++m)if(u=r.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==s.to&&(u.to==null||u.to!=s.from)&&(u.marker.inclusiveLeft||s.marker.inclusiveRight)&&Ha(e,r,u))return!0}function sn(e){e=Yr(e);for(var r=0,s=e.parent,o=0;o<s.lines.length;++o){var u=s.lines[o];if(u==e)break;r+=u.height}for(var m=s.parent;m;s=m,m=s.parent)for(var x=0;x<m.children.length;++x){var E=m.children[x];if(E==s)break;r+=E.height}return r}function _o(e){if(e.height==0)return 0;for(var r=e.text.length,s,o=e;s=Yl(o);){var u=s.find(0,!0);o=u.from.line,r+=u.from.ch-u.to.ch}for(o=e;s=ko(o);){var m=s.find(0,!0);r-=o.text.length-m.from.ch,o=m.to.line,r+=o.text.length-m.to.ch}return r}function Wa(e){var r=e.display,s=e.doc;r.maxLine=oe(s,s.first),r.maxLineLength=_o(r.maxLine),r.maxLineChanged=!0,s.iter(function(o){var u=_o(o);u>r.maxLineLength&&(r.maxLineLength=u,r.maxLine=o)})}var Gn=function(e,r,s){this.text=e,Kl(this,r),this.height=s?s(this):1};Gn.prototype.lineNo=function(){return Ve(this)},Kt(Gn);function Cy(e,r,s,o){e.text=r,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Gl(e),Kl(e,s);var u=o?o(e):1;u!=e.height&&Ae(e,u)}function Ty(e){e.parent=null,Gl(e)}var Ay={},Ly={};function Ql(e,r){if(!e||/^\s*$/.test(e))return null;var s=r.addModeClass?Ly:Ay;return s[e]||(s[e]=e.replace(/\S+/g,"cm-$&"))}function Jl(e,r){var s=A("span",null,null,f?"padding-right: .1px":null),o={pre:A("pre",[s],"CodeMirror-line"),content:s,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};r.measure={};for(var u=0;u<=(r.rest?r.rest.length:0);u++){var m=u?r.rest[u-1]:r.line,x=void 0;o.pos=0,o.addToken=Iy,Zt(e.display.measure)&&(x=Lt(m,e.doc.direction))&&(o.addToken=My(o.addToken,x)),o.map=[];var E=r!=e.display.externalMeasured&&Ve(m);Oy(m,o,Nl(e,m,E)),m.styleClasses&&(m.styleClasses.bgClass&&(o.bgClass=se(m.styleClasses.bgClass,o.bgClass||"")),m.styleClasses.textClass&&(o.textClass=se(m.styleClasses.textClass,o.textClass||""))),o.map.length==0&&o.map.push(0,0,o.content.appendChild(yr(e.display.measure))),u==0?(r.measure.map=o.map,r.measure.cache={}):((r.measure.maps||(r.measure.maps=[])).push(o.map),(r.measure.caches||(r.measure.caches=[])).push({}))}if(f){var C=o.content.lastChild;(/\bcm-tab\b/.test(C.className)||C.querySelector&&C.querySelector(".cm-tab"))&&(o.content.className="cm-tab-wrap-hack")}return rt(e,"renderLine",e,r.line,o.pre),o.pre.className&&(o.textClass=se(o.pre.className,o.textClass||"")),o}function Dy(e){var r=T("span","\u2022","cm-invalidchar");return r.title="\\u"+e.charCodeAt(0).toString(16),r.setAttribute("aria-label",r.title),r}function Iy(e,r,s,o,u,m,x){if(!!r){var E=e.splitSpaces?Fy(r,e.trailingSpace):r,C=e.cm.state.specialChars,L=!1,V;if(!C.test(r))e.col+=r.length,V=document.createTextNode(E),e.map.push(e.pos,e.pos+r.length,V),a&&h<9&&(L=!0),e.pos+=r.length;else{V=document.createDocumentFragment();for(var Q=0;;){C.lastIndex=Q;var ce=C.exec(r),ae=ce?ce.index-Q:r.length-Q;if(ae){var ye=document.createTextNode(E.slice(Q,Q+ae));a&&h<9?V.appendChild(T("span",[ye])):V.appendChild(ye),e.map.push(e.pos,e.pos+ae,ye),e.col+=ae,e.pos+=ae}if(!ce)break;Q+=ae+1;var Te=void 0;if(ce[0]==" "){var Oe=e.cm.options.tabSize,je=Oe-e.col%Oe;Te=V.appendChild(T("span",gt(je),"cm-tab")),Te.setAttribute("role","presentation"),Te.setAttribute("cm-text"," "),e.col+=je}else ce[0]=="\r"||ce[0]==`
`?(Te=V.appendChild(T("span",ce[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Te.setAttribute("cm-text",ce[0]),e.col+=1):(Te=e.cm.options.specialCharPlaceholder(ce[0]),Te.setAttribute("cm-text",ce[0]),a&&h<9?V.appendChild(T("span",[Te])):V.appendChild(Te),e.col+=1);e.map.push(e.pos,e.pos+1,Te),e.pos++}}if(e.trailingSpace=E.charCodeAt(r.length-1)==32,s||o||u||L||m||x){var tt=s||"";o&&(tt+=o),u&&(tt+=u);var $e=T("span",[V],tt,m);if(x)for(var nt in x)x.hasOwnProperty(nt)&&nt!="style"&&nt!="class"&&$e.setAttribute(nt,x[nt]);return e.content.appendChild($e)}e.content.appendChild(V)}}function Fy(e,r){if(e.length>1&&!/ /.test(e))return e;for(var s=r,o="",u=0;u<e.length;u++){var m=e.charAt(u);m==" "&&s&&(u==e.length-1||e.charCodeAt(u+1)==32)&&(m="\xA0"),o+=m,s=m==" "}return o}function My(e,r){return function(s,o,u,m,x,E,C){u=u?u+" cm-force-border":"cm-force-border";for(var L=s.pos,V=L+o.length;;){for(var Q=void 0,ce=0;ce<r.length&&(Q=r[ce],!(Q.to>L&&Q.from<=L));ce++);if(Q.to>=V)return e(s,o,u,m,x,E,C);e(s,o.slice(0,Q.to-L),u,m,null,E,C),m=null,o=o.slice(Q.to-L),L=Q.to}}}function eu(e,r,s,o){var u=!o&&s.widgetNode;u&&e.map.push(e.pos,e.pos+r,u),!o&&e.cm.display.input.needsContentAttribute&&(u||(u=e.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",s.id)),u&&(e.cm.display.input.setUneditable(u),e.content.appendChild(u)),e.pos+=r,e.trailingSpace=!1}function Oy(e,r,s){var o=e.markedSpans,u=e.text,m=0;if(!o){for(var x=1;x<s.length;x+=2)r.addToken(r,u.slice(m,m=s[x]),Ql(s[x+1],r.cm.options));return}for(var E=u.length,C=0,L=1,V="",Q,ce,ae=0,ye,Te,Oe,je,tt;;){if(ae==C){ye=Te=Oe=ce="",tt=null,je=null,ae=Infinity;for(var $e=[],nt=void 0,ct=0;ct<o.length;++ct){var ut=o[ct],vt=ut.marker;if(vt.type=="bookmark"&&ut.from==C&&vt.widgetNode)$e.push(vt);else if(ut.from<=C&&(ut.to==null||ut.to>C||vt.collapsed&&ut.to==C&&ut.from==C)){if(ut.to!=null&&ut.to!=C&&ae>ut.to&&(ae=ut.to,Te=""),vt.className&&(ye+=" "+vt.className),vt.css&&(ce=(ce?ce+";":"")+vt.css),vt.startStyle&&ut.from==C&&(Oe+=" "+vt.startStyle),vt.endStyle&&ut.to==ae&&(nt||(nt=[])).push(vt.endStyle,ut.to),vt.title&&((tt||(tt={})).title=vt.title),vt.attributes)for(var Pt in vt.attributes)(tt||(tt={}))[Pt]=vt.attributes[Pt];vt.collapsed&&(!je||$a(je.marker,vt)<0)&&(je=ut)}else ut.from>C&&ae>ut.from&&(ae=ut.from)}if(nt)for(var ir=0;ir<nt.length;ir+=2)nt[ir+1]==ae&&(Te+=" "+nt[ir]);if(!je||je.from==C)for(var Bt=0;Bt<$e.length;++Bt)eu(r,0,$e[Bt]);if(je&&(je.from||0)==C){if(eu(r,(je.to==null?E+1:je.to)-C,je.marker,je.from==null),je.to==null)return;je.to==C&&(je=!1)}}if(C>=E)break;for(var Lr=Math.min(E,ae);;){if(V){var Sr=C+V.length;if(!je){var Yt=Sr>Lr?V.slice(0,Lr-C):V;r.addToken(r,Yt,Q?Q+ye:ye,Oe,C+Yt.length==ae?Te:"",ce,tt)}if(Sr>=Lr){V=V.slice(Lr-C),C=Lr;break}C=Sr,Oe=""}V=u.slice(m,m=s[L++]),Q=Ql(s[L++],r.cm.options)}}}function tu(e,r,s){this.line=r,this.rest=Ey(r),this.size=this.rest?Ve(Re(this.rest))-s+1:1,this.node=this.text=null,this.hidden=mn(e,r)}function So(e,r,s){for(var o=[],u,m=r;m<s;m=u){var x=new tu(e.doc,oe(e.doc,m),m);u=m+x.size,o.push(x)}return o}var Kn=null;function Py(e){Kn?Kn.ops.push(e):e.ownsGroup=Kn={ops:[e],delayedCallbacks:[]}}function Ry(e){var r=e.delayedCallbacks,s=0;do{for(;s<r.length;s++)r[s].call(null);for(var o=0;o<e.ops.length;o++){var u=e.ops[o];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(s<r.length)}function zy(e,r){var s=e.ownsGroup;if(!!s)try{Ry(s)}finally{Kn=null,r(s)}}var Ti=null;function tr(e,r){var s=Mt(e,r);if(!!s.length){var o=Array.prototype.slice.call(arguments,2),u;Kn?u=Kn.delayedCallbacks:Ti?u=Ti:(u=Ti=[],setTimeout(Ny,0));for(var m=function(E){u.push(function(){return s[E].apply(null,o)})},x=0;x<s.length;++x)m(x)}}function Ny(){var e=Ti;Ti=null;for(var r=0;r<e.length;++r)e[r]()}function ru(e,r,s,o){for(var u=0;u<r.changes.length;u++){var m=r.changes[u];m=="text"?qy(e,r):m=="gutter"?iu(e,r,s,o):m=="class"?Ga(e,r):m=="widget"&&jy(e,r,o)}r.changes=null}function Ai(e){return e.node==e.text&&(e.node=T("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),a&&h<8&&(e.node.style.zIndex=2)),e.node}function By(e,r){var s=r.bgClass?r.bgClass+" "+(r.line.bgClass||""):r.line.bgClass;if(s&&(s+=" CodeMirror-linebackground"),r.background)s?r.background.className=s:(r.background.parentNode.removeChild(r.background),r.background=null);else if(s){var o=Ai(r);r.background=o.insertBefore(T("div",null,s),o.firstChild),e.display.input.setUneditable(r.background)}}function nu(e,r){var s=e.display.externalMeasured;return s&&s.line==r.line?(e.display.externalMeasured=null,r.measure=s.measure,s.built):Jl(e,r)}function qy(e,r){var s=r.text.className,o=nu(e,r);r.text==r.node&&(r.node=o.pre),r.text.parentNode.replaceChild(o.pre,r.text),r.text=o.pre,o.bgClass!=r.bgClass||o.textClass!=r.textClass?(r.bgClass=o.bgClass,r.textClass=o.textClass,Ga(e,r)):s&&(r.text.className=s)}function Ga(e,r){By(e,r),r.line.wrapClass?Ai(r).className=r.line.wrapClass:r.node!=r.text&&(r.node.className="");var s=r.textClass?r.textClass+" "+(r.line.textClass||""):r.line.textClass;r.text.className=s||""}function iu(e,r,s,o){if(r.gutter&&(r.node.removeChild(r.gutter),r.gutter=null),r.gutterBackground&&(r.node.removeChild(r.gutterBackground),r.gutterBackground=null),r.line.gutterClass){var u=Ai(r);r.gutterBackground=T("div",null,"CodeMirror-gutter-background "+r.line.gutterClass,"left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px; width: "+o.gutterTotalWidth+"px"),e.display.input.setUneditable(r.gutterBackground),u.insertBefore(r.gutterBackground,r.text)}var m=r.line.gutterMarkers;if(e.options.lineNumbers||m){var x=Ai(r),E=r.gutter=T("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?o.fixedPos:-o.gutterTotalWidth)+"px");if(E.setAttribute("aria-hidden","true"),e.display.input.setUneditable(E),x.insertBefore(E,r.text),r.line.gutterClass&&(E.className+=" "+r.line.gutterClass),e.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(r.lineNumber=E.appendChild(T("div",Dt(e.options,s),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+o.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),m)for(var C=0;C<e.display.gutterSpecs.length;++C){var L=e.display.gutterSpecs[C].className,V=m.hasOwnProperty(L)&&m[L];V&&E.appendChild(T("div",[V],"CodeMirror-gutter-elt","left: "+o.gutterLeft[L]+"px; width: "+o.gutterWidth[L]+"px"))}}}function jy(e,r,s){r.alignable&&(r.alignable=null);for(var o=K("CodeMirror-linewidget"),u=r.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,o.test(u.className)&&r.node.removeChild(u);ou(e,r,s)}function $y(e,r,s,o){var u=nu(e,r);return r.text=r.node=u.pre,u.bgClass&&(r.bgClass=u.bgClass),u.textClass&&(r.textClass=u.textClass),Ga(e,r),iu(e,r,s,o),ou(e,r,o),r.node}function ou(e,r,s){if(au(e,r.line,r,s,!0),r.rest)for(var o=0;o<r.rest.length;o++)au(e,r.rest[o],r,s,!1)}function au(e,r,s,o,u){if(!!r.widgets)for(var m=Ai(s),x=0,E=r.widgets;x<E.length;++x){var C=E[x],L=T("div",[C.node],"CodeMirror-linewidget"+(C.className?" "+C.className:""));C.handleMouseEvents||L.setAttribute("cm-ignore-events","true"),Uy(C,L,s,o),e.display.input.setUneditable(L),u&&C.above?m.insertBefore(L,s.gutter||s.text):m.appendChild(L),tr(C,"redraw")}}function Uy(e,r,s,o){if(e.noHScroll){(s.alignable||(s.alignable=[])).push(r);var u=o.wrapperWidth;r.style.left=o.fixedPos+"px",e.coverGutter||(u-=o.gutterTotalWidth,r.style.paddingLeft=o.gutterTotalWidth+"px"),r.style.width=u+"px"}e.coverGutter&&(r.style.zIndex=5,r.style.position="relative",e.noHScroll||(r.style.marginLeft=-o.gutterTotalWidth+"px"))}function Li(e){if(e.height!=null)return e.height;var r=e.doc.cm;if(!r)return 0;if(!te(document.body,e.node)){var s="position: relative;";e.coverGutter&&(s+="margin-left: -"+r.display.gutters.offsetWidth+"px;"),e.noHScroll&&(s+="width: "+r.display.wrapper.clientWidth+"px;"),q(r.display.measure,T("div",[e.node],null,s))}return e.height=e.node.parentNode.offsetHeight}function ln(e,r){for(var s=dr(r);s!=e.wrapper;s=s.parentNode)if(!s||s.nodeType==1&&s.getAttribute("cm-ignore-events")=="true"||s.parentNode==e.sizer&&s!=e.mover)return!0}function Eo(e){return e.lineSpace.offsetTop}function Ka(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function su(e){if(e.cachedPaddingH)return e.cachedPaddingH;var r=q(e.measure,T("pre","x","CodeMirror-line-like")),s=window.getComputedStyle?window.getComputedStyle(r):r.currentStyle,o={left:parseInt(s.paddingLeft),right:parseInt(s.paddingRight)};return!isNaN(o.left)&&!isNaN(o.right)&&(e.cachedPaddingH=o),o}function Xr(e){return Ee-e.display.nativeBarWidth}function An(e){return e.display.scroller.clientWidth-Xr(e)-e.display.barWidth}function Va(e){return e.display.scroller.clientHeight-Xr(e)-e.display.barHeight}function Hy(e,r,s){var o=e.options.lineWrapping,u=o&&An(e);if(!r.measure.heights||o&&r.measure.width!=u){var m=r.measure.heights=[];if(o){r.measure.width=u;for(var x=r.text.firstChild.getClientRects(),E=0;E<x.length-1;E++){var C=x[E],L=x[E+1];Math.abs(C.bottom-L.bottom)>2&&m.push((C.bottom+L.top)/2-s.top)}}m.push(s.bottom-s.top)}}function lu(e,r,s){if(e.line==r)return{map:e.measure.map,cache:e.measure.cache};for(var o=0;o<e.rest.length;o++)if(e.rest[o]==r)return{map:e.measure.maps[o],cache:e.measure.caches[o]};for(var u=0;u<e.rest.length;u++)if(Ve(e.rest[u])>s)return{map:e.measure.maps[u],cache:e.measure.caches[u],before:!0}}function Wy(e,r){r=Yr(r);var s=Ve(r),o=e.display.externalMeasured=new tu(e.doc,r,s);o.lineN=s;var u=o.built=Jl(e,o);return o.text=u.pre,q(e.display.lineMeasure,u.pre),o}function uu(e,r,s,o){return Zr(e,Vn(e,r),s,o)}function Ya(e,r){if(r>=e.display.viewFrom&&r<e.display.viewTo)return e.display.view[In(e,r)];var s=e.display.externalMeasured;if(s&&r>=s.lineN&&r<s.lineN+s.size)return s}function Vn(e,r){var s=Ve(r),o=Ya(e,s);o&&!o.text?o=null:o&&o.changes&&(ru(e,o,s,ts(e)),e.curOp.forceUpdate=!0),o||(o=Wy(e,r));var u=lu(o,r,s);return{line:r,view:o,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function Zr(e,r,s,o,u){r.before&&(s=-1);var m=s+(o||""),x;return r.cache.hasOwnProperty(m)?x=r.cache[m]:(r.rect||(r.rect=r.view.text.getBoundingClientRect()),r.hasHeights||(Hy(e,r.view,r.rect),r.hasHeights=!0),x=Ky(e,r,s,o),x.bogus||(r.cache[m]=x)),{left:x.left,right:x.right,top:u?x.rtop:x.top,bottom:u?x.rbottom:x.bottom}}var cu={left:0,right:0,top:0,bottom:0};function fu(e,r,s){for(var o,u,m,x,E,C,L=0;L<e.length;L+=3)if(E=e[L],C=e[L+1],r<E?(u=0,m=1,x="left"):r<C?(u=r-E,m=u+1):(L==e.length-3||r==C&&e[L+3]>r)&&(m=C-E,u=m-1,r>=C&&(x="right")),u!=null){if(o=e[L+2],E==C&&s==(o.insertLeft?"left":"right")&&(x=s),s=="left"&&u==0)for(;L&&e[L-2]==e[L-3]&&e[L-1].insertLeft;)o=e[(L-=3)+2],x="left";if(s=="right"&&u==C-E)for(;L<e.length-3&&e[L+3]==e[L+4]&&!e[L+5].insertLeft;)o=e[(L+=3)+2],x="right";break}return{node:o,start:u,end:m,collapse:x,coverStart:E,coverEnd:C}}function Gy(e,r){var s=cu;if(r=="left")for(var o=0;o<e.length&&(s=e[o]).left==s.right;o++);else for(var u=e.length-1;u>=0&&(s=e[u]).left==s.right;u--);return s}function Ky(e,r,s,o){var u=fu(r.map,s,o),m=u.node,x=u.start,E=u.end,C=u.collapse,L;if(m.nodeType==3){for(var V=0;V<4;V++){for(;x&&it(r.line.text.charAt(u.coverStart+x));)--x;for(;u.coverStart+E<u.coverEnd&&it(r.line.text.charAt(u.coverStart+E));)++E;if(a&&h<9&&x==0&&E==u.coverEnd-u.coverStart?L=m.parentNode.getBoundingClientRect():L=Gy(j(m,x,E).getClientRects(),o),L.left||L.right||x==0)break;E=x,x=x-1,C="right"}a&&h<11&&(L=Vy(e.display.measure,L))}else{x>0&&(C=o="right");var Q;e.options.lineWrapping&&(Q=m.getClientRects()).length>1?L=Q[o=="right"?Q.length-1:0]:L=m.getBoundingClientRect()}if(a&&h<9&&!x&&(!L||!L.left&&!L.right)){var ce=m.parentNode.getClientRects()[0];ce?L={left:ce.left,right:ce.left+Xn(e.display),top:ce.top,bottom:ce.bottom}:L=cu}for(var ae=L.top-r.rect.top,ye=L.bottom-r.rect.top,Te=(ae+ye)/2,Oe=r.view.measure.heights,je=0;je<Oe.length-1&&!(Te<Oe[je]);je++);var tt=je?Oe[je-1]:0,$e=Oe[je],nt={left:(C=="right"?L.right:L.left)-r.rect.left,right:(C=="left"?L.left:L.right)-r.rect.left,top:tt,bottom:$e};return!L.left&&!L.right&&(nt.bogus=!0),e.options.singleCursorHeightPerLine||(nt.rtop=ae,nt.rbottom=ye),nt}function Vy(e,r){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!P(e))return r;var s=screen.logicalXDPI/screen.deviceXDPI,o=screen.logicalYDPI/screen.deviceYDPI;return{left:r.left*s,right:r.right*s,top:r.top*o,bottom:r.bottom*o}}function du(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var r=0;r<e.rest.length;r++)e.measure.caches[r]={}}function hu(e){e.display.externalMeasure=null,G(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)du(e.display.view[r])}function Di(e){hu(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function pu(){return y&&w?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function mu(){return y&&w?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Xa(e){var r=0;if(e.widgets)for(var s=0;s<e.widgets.length;++s)e.widgets[s].above&&(r+=Li(e.widgets[s]));return r}function Co(e,r,s,o,u){if(!u){var m=Xa(r);s.top+=m,s.bottom+=m}if(o=="line")return s;o||(o="local");var x=sn(r);if(o=="local"?x+=Eo(e.display):x-=e.display.viewOffset,o=="page"||o=="window"){var E=e.display.lineSpace.getBoundingClientRect();x+=E.top+(o=="window"?0:mu());var C=E.left+(o=="window"?0:pu());s.left+=C,s.right+=C}return s.top+=x,s.bottom+=x,s}function gu(e,r,s){if(s=="div")return r;var o=r.left,u=r.top;if(s=="page")o-=pu(),u-=mu();else if(s=="local"||!s){var m=e.display.sizer.getBoundingClientRect();o+=m.left,u+=m.top}var x=e.display.lineSpace.getBoundingClientRect();return{left:o-x.left,top:u-x.top}}function Za(e,r,s,o,u){return o||(o=oe(e.doc,r.line)),Co(e,o,uu(e,o,r.ch,u),s)}function Ur(e,r,s,o,u,m){o=o||oe(e.doc,r.line),u||(u=Vn(e,o));function x(ye,Te){var Oe=Zr(e,u,ye,Te?"right":"left",m);return Te?Oe.left=Oe.right:Oe.right=Oe.left,Co(e,o,Oe,s)}var E=Lt(o,e.doc.direction),C=r.ch,L=r.sticky;if(C>=o.text.length?(C=o.text.length,L="before"):C<=0&&(C=0,L="after"),!E)return x(L=="before"?C-1:C,L=="before");function V(ye,Te,Oe){var je=E[Te],tt=je.level==1;return x(Oe?ye-1:ye,tt!=Oe)}var Q=We(E,C,L),ce=Je,ae=V(C,Q,L=="before");return ce!=null&&(ae.other=V(C,ce,L!="before")),ae}function vu(e,r){var s=0;r=Xe(e.doc,r),e.options.lineWrapping||(s=Xn(e.display)*r.ch);var o=oe(e.doc,r.line),u=sn(o)+Eo(e.display);return{left:s,right:s,top:u,bottom:u+o.height}}function Qa(e,r,s,o,u){var m=xe(e,r,s);return m.xRel=u,o&&(m.outside=o),m}function Ja(e,r,s){var o=e.doc;if(s+=e.display.viewOffset,s<0)return Qa(o.first,0,null,-1,-1);var u=et(o,s),m=o.first+o.size-1;if(u>m)return Qa(o.first+o.size-1,oe(o,m).text.length,null,1,1);r<0&&(r=0);for(var x=oe(o,u);;){var E=Yy(e,x,u,r,s),C=_y(x,E.ch+(E.xRel>0||E.outside>0?1:0));if(!C)return E;var L=C.find(1);if(L.line==u)return L;x=oe(o,u=L.line)}}function yu(e,r,s,o){o-=Xa(r);var u=r.text.length,m=ot(function(x){return Zr(e,s,x-1).bottom<=o},u,0);return u=ot(function(x){return Zr(e,s,x).top>o},m,u),{begin:m,end:u}}function bu(e,r,s,o){s||(s=Vn(e,r));var u=Co(e,r,Zr(e,s,o),"line").top;return yu(e,r,s,u)}function es(e,r,s,o){return e.bottom<=s?!1:e.top>s?!0:(o?e.left:e.right)>r}function Yy(e,r,s,o,u){u-=sn(r);var m=Vn(e,r),x=Xa(r),E=0,C=r.text.length,L=!0,V=Lt(r,e.doc.direction);if(V){var Q=(e.options.lineWrapping?Zy:Xy)(e,r,s,m,V,o,u);L=Q.level!=1,E=L?Q.from:Q.to-1,C=L?Q.to:Q.from-1}var ce=null,ae=null,ye=ot(function(ct){var ut=Zr(e,m,ct);return ut.top+=x,ut.bottom+=x,es(ut,o,u,!1)?(ut.top<=u&&ut.left<=o&&(ce=ct,ae=ut),!0):!1},E,C),Te,Oe,je=!1;if(ae){var tt=o-ae.left<ae.right-o,$e=tt==L;ye=ce+($e?0:1),Oe=$e?"after":"before",Te=tt?ae.left:ae.right}else{!L&&(ye==C||ye==E)&&ye++,Oe=ye==0?"after":ye==r.text.length?"before":Zr(e,m,ye-(L?1:0)).bottom+x<=u==L?"after":"before";var nt=Ur(e,xe(s,ye,Oe),"line",r,m);Te=nt.left,je=u<nt.top?-1:u>=nt.bottom?1:0}return ye=Ne(r.text,ye,1),Qa(s,ye,Oe,je,o-Te)}function Xy(e,r,s,o,u,m,x){var E=ot(function(Q){var ce=u[Q],ae=ce.level!=1;return es(Ur(e,xe(s,ae?ce.to:ce.from,ae?"before":"after"),"line",r,o),m,x,!0)},0,u.length-1),C=u[E];if(E>0){var L=C.level!=1,V=Ur(e,xe(s,L?C.from:C.to,L?"after":"before"),"line",r,o);es(V,m,x,!0)&&V.top>x&&(C=u[E-1])}return C}function Zy(e,r,s,o,u,m,x){var E=yu(e,r,o,x),C=E.begin,L=E.end;/\s/.test(r.text.charAt(L-1))&&L--;for(var V=null,Q=null,ce=0;ce<u.length;ce++){var ae=u[ce];if(!(ae.from>=L||ae.to<=C)){var ye=ae.level!=1,Te=Zr(e,o,ye?Math.min(L,ae.to)-1:Math.max(C,ae.from)).right,Oe=Te<m?m-Te+1e9:Te-m;(!V||Q>Oe)&&(V=ae,Q=Oe)}}return V||(V=u[u.length-1]),V.from<C&&(V={from:C,to:V.to,level:V.level}),V.to>L&&(V={from:V.from,to:L,level:V.level}),V}var Ln;function Yn(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(Ln==null){Ln=T("pre",null,"CodeMirror-line-like");for(var r=0;r<49;++r)Ln.appendChild(document.createTextNode("x")),Ln.appendChild(T("br"));Ln.appendChild(document.createTextNode("x"))}q(e.measure,Ln);var s=Ln.offsetHeight/50;return s>3&&(e.cachedTextHeight=s),G(e.measure),s||1}function Xn(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var r=T("span","xxxxxxxxxx"),s=T("pre",[r],"CodeMirror-line-like");q(e.measure,s);var o=r.getBoundingClientRect(),u=(o.right-o.left)/10;return u>2&&(e.cachedCharWidth=u),u||10}function ts(e){for(var r=e.display,s={},o={},u=r.gutters.clientLeft,m=r.gutters.firstChild,x=0;m;m=m.nextSibling,++x){var E=e.display.gutterSpecs[x].className;s[E]=m.offsetLeft+m.clientLeft+u,o[E]=m.clientWidth}return{fixedPos:rs(r),gutterTotalWidth:r.gutters.offsetWidth,gutterLeft:s,gutterWidth:o,wrapperWidth:r.wrapper.clientWidth}}function rs(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xu(e){var r=Yn(e.display),s=e.options.lineWrapping,o=s&&Math.max(5,e.display.scroller.clientWidth/Xn(e.display)-3);return function(u){if(mn(e.doc,u))return 0;var m=0;if(u.widgets)for(var x=0;x<u.widgets.length;x++)u.widgets[x].height&&(m+=u.widgets[x].height);return s?m+(Math.ceil(u.text.length/o)||1)*r:m+r}}function ns(e){var r=e.doc,s=xu(e);r.iter(function(o){var u=s(o);u!=o.height&&Ae(o,u)})}function Dn(e,r,s,o){var u=e.display;if(!s&&dr(r).getAttribute("cm-not-content")=="true")return null;var m,x,E=u.lineSpace.getBoundingClientRect();try{m=r.clientX-E.left,x=r.clientY-E.top}catch(Q){return null}var C=Ja(e,m,x),L;if(o&&C.xRel>0&&(L=oe(e.doc,C.line).text).length==C.ch){var V=we(L,L.length,e.options.tabSize)-L.length;C=xe(C.line,Math.max(0,Math.round((m-su(e.display).left)/Xn(e.display))-V))}return C}function In(e,r){if(r>=e.display.viewTo||(r-=e.display.viewFrom,r<0))return null;for(var s=e.display.view,o=0;o<s.length;o++)if(r-=s[o].size,r<0)return o}function kr(e,r,s,o){r==null&&(r=e.doc.first),s==null&&(s=e.doc.first+e.doc.size),o||(o=0);var u=e.display;if(o&&s<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>r)&&(u.updateLineNumbers=r),e.curOp.viewChanged=!0,r>=u.viewTo)an&&Ua(e.doc,r)<u.viewTo&&vn(e);else if(s<=u.viewFrom)an&&Zl(e.doc,s+o)>u.viewFrom?vn(e):(u.viewFrom+=o,u.viewTo+=o);else if(r<=u.viewFrom&&s>=u.viewTo)vn(e);else if(r<=u.viewFrom){var m=To(e,s,s+o,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=o):vn(e)}else if(s>=u.viewTo){var x=To(e,r,r,-1);x?(u.view=u.view.slice(0,x.index),u.viewTo=x.lineN):vn(e)}else{var E=To(e,r,r,-1),C=To(e,s,s+o,1);E&&C?(u.view=u.view.slice(0,E.index).concat(So(e,E.lineN,C.lineN)).concat(u.view.slice(C.index)),u.viewTo+=o):vn(e)}var L=u.externalMeasured;L&&(s<L.lineN?L.lineN+=o:r<L.lineN+L.size&&(u.externalMeasured=null))}function gn(e,r,s){e.curOp.viewChanged=!0;var o=e.display,u=e.display.externalMeasured;if(u&&r>=u.lineN&&r<u.lineN+u.size&&(o.externalMeasured=null),!(r<o.viewFrom||r>=o.viewTo)){var m=o.view[In(e,r)];if(m.node!=null){var x=m.changes||(m.changes=[]);ve(x,s)==-1&&x.push(s)}}}function vn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function To(e,r,s,o){var u=In(e,r),m,x=e.display.view;if(!an||s==e.doc.first+e.doc.size)return{index:u,lineN:s};for(var E=e.display.viewFrom,C=0;C<u;C++)E+=x[C].size;if(E!=r){if(o>0){if(u==x.length-1)return null;m=E+x[u].size-r,u++}else m=E-r;r+=m,s+=m}for(;Ua(e.doc,s)!=s;){if(u==(o<0?0:x.length-1))return null;s+=o*x[u-(o<0?1:0)].size,u+=o}return{index:u,lineN:s}}function Qy(e,r,s){var o=e.display,u=o.view;u.length==0||r>=o.viewTo||s<=o.viewFrom?(o.view=So(e,r,s),o.viewFrom=r):(o.viewFrom>r?o.view=So(e,r,o.viewFrom).concat(o.view):o.viewFrom<r&&(o.view=o.view.slice(In(e,r))),o.viewFrom=r,o.viewTo<s?o.view=o.view.concat(So(e,o.viewTo,s)):o.viewTo>s&&(o.view=o.view.slice(0,In(e,s)))),o.viewTo=s}function wu(e){for(var r=e.display.view,s=0,o=0;o<r.length;o++){var u=r[o];!u.hidden&&(!u.node||u.changes)&&++s}return s}function Ii(e){e.display.input.showSelection(e.display.input.prepareSelection())}function ku(e,r){r===void 0&&(r=!0);for(var s=e.doc,o={},u=o.cursors=document.createDocumentFragment(),m=o.selection=document.createDocumentFragment(),x=0;x<s.sel.ranges.length;x++)if(!(!r&&x==s.sel.primIndex)){var E=s.sel.ranges[x];if(!(E.from().line>=e.display.viewTo||E.to().line<e.display.viewFrom)){var C=E.empty();(C||e.options.showCursorWhenSelecting)&&_u(e,E.head,u),C||Jy(e,E,m)}}return o}function _u(e,r,s){var o=Ur(e,r,"div",null,null,!e.options.singleCursorHeightPerLine),u=s.appendChild(T("div","\xA0","CodeMirror-cursor"));if(u.style.left=o.left+"px",u.style.top=o.top+"px",u.style.height=Math.max(0,o.bottom-o.top)*e.options.cursorHeight+"px",o.other){var m=s.appendChild(T("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));m.style.display="",m.style.left=o.other.left+"px",m.style.top=o.other.top+"px",m.style.height=(o.other.bottom-o.other.top)*.85+"px"}}function Ao(e,r){return e.top-r.top||e.left-r.left}function Jy(e,r,s){var o=e.display,u=e.doc,m=document.createDocumentFragment(),x=su(e.display),E=x.left,C=Math.max(o.sizerWidth,An(e)-o.sizer.offsetLeft)-x.right,L=u.direction=="ltr";function V($e,nt,ct,ut){nt<0&&(nt=0),nt=Math.round(nt),ut=Math.round(ut),m.appendChild(T("div",null,"CodeMirror-selected","position: absolute; left: "+$e+`px;
top: `+nt+"px; width: "+(ct==null?C-$e:ct)+`px;
height: `+(ut-nt)+"px"))}function Q($e,nt,ct){var ut=oe(u,$e),vt=ut.text.length,Pt,ir;function Bt(Yt,Er){return Za(e,xe($e,Yt),"div",ut,Er)}function Lr(Yt,Er,lr){var Qt=bu(e,ut,null,Yt),Xt=Er=="ltr"==(lr=="after")?"left":"right",jt=lr=="after"?Qt.begin:Qt.end-(/\s/.test(ut.text.charAt(Qt.end-1))?2:1);return Bt(jt,Xt)[Xt]}var Sr=Lt(ut,u.direction);return Ye(Sr,nt||0,ct==null?vt:ct,function(Yt,Er,lr,Qt){var Xt=lr=="ltr",jt=Bt(Yt,Xt?"left":"right"),Cr=Bt(Er-1,Xt?"right":"left"),ui=nt==null&&Yt==0,_n=ct==null&&Er==vt,mr=Qt==0,Qr=!Sr||Qt==Sr.length-1;if(Cr.top-jt.top<=3){var or=(L?ui:_n)&&mr,Ls=(L?_n:ui)&&Qr,cn=or?E:(Xt?jt:Cr).left,Rn=Ls?C:(Xt?Cr:jt).right;V(cn,jt.top,Rn-cn,jt.bottom)}else{var zn,xr,ci,Ds;Xt?(zn=L&&ui&&mr?E:jt.left,xr=L?C:Lr(Yt,lr,"before"),ci=L?E:Lr(Er,lr,"after"),Ds=L&&_n&&Qr?C:Cr.right):(zn=L?Lr(Yt,lr,"before"):E,xr=!L&&ui&&mr?C:jt.right,ci=!L&&_n&&Qr?E:Cr.left,Ds=L?Lr(Er,lr,"after"):C),V(zn,jt.top,xr-zn,jt.bottom),jt.bottom<Cr.top&&V(E,jt.bottom,null,Cr.top),V(ci,Cr.top,Ds-ci,Cr.bottom)}(!Pt||Ao(jt,Pt)<0)&&(Pt=jt),Ao(Cr,Pt)<0&&(Pt=Cr),(!ir||Ao(jt,ir)<0)&&(ir=jt),Ao(Cr,ir)<0&&(ir=Cr)}),{start:Pt,end:ir}}var ce=r.from(),ae=r.to();if(ce.line==ae.line)Q(ce.line,ce.ch,ae.ch);else{var ye=oe(u,ce.line),Te=oe(u,ae.line),Oe=Yr(ye)==Yr(Te),je=Q(ce.line,ce.ch,Oe?ye.text.length+1:null).end,tt=Q(ae.line,Oe?0:null,ae.ch).start;Oe&&(je.top<tt.top-2?(V(je.right,je.top,null,je.bottom),V(E,tt.top,tt.left,tt.bottom)):V(je.right,je.top,tt.left-je.right,je.bottom)),je.bottom<tt.top&&V(E,je.bottom,null,tt.top)}s.appendChild(m)}function is(e){if(!!e.state.focused){var r=e.display;clearInterval(r.blinker);var s=!0;r.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?r.blinker=setInterval(function(){e.hasFocus()||Zn(e),r.cursorDiv.style.visibility=(s=!s)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(r.cursorDiv.style.visibility="hidden")}}function Su(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||as(e))}function os(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Zn(e))},100)}function as(e,r){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(rt(e,"focus",e,r),e.state.focused=!0,z(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),f&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),is(e))}function Zn(e,r){e.state.delayingBlurEvent||(e.state.focused&&(rt(e,"blur",e,r),e.state.focused=!1,X(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Lo(e){for(var r=e.display,s=r.lineDiv.offsetTop,o=0;o<r.view.length;o++){var u=r.view[o],m=e.options.lineWrapping,x=void 0,E=0;if(!u.hidden){if(a&&h<8){var C=u.node.offsetTop+u.node.offsetHeight;x=C-s,s=C}else{var L=u.node.getBoundingClientRect();x=L.bottom-L.top,!m&&u.text.firstChild&&(E=u.text.firstChild.getBoundingClientRect().right-L.left-1)}var V=u.line.height-x;if((V>.005||V<-.005)&&(Ae(u.line,x),Eu(u.line),u.rest))for(var Q=0;Q<u.rest.length;Q++)Eu(u.rest[Q]);if(E>e.display.sizerWidth){var ce=Math.ceil(E/Xn(e.display));ce>e.display.maxLineLength&&(e.display.maxLineLength=ce,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}}function Eu(e){if(e.widgets)for(var r=0;r<e.widgets.length;++r){var s=e.widgets[r],o=s.node.parentNode;o&&(s.height=o.offsetHeight)}}function Do(e,r,s){var o=s&&s.top!=null?Math.max(0,s.top):e.scroller.scrollTop;o=Math.floor(o-Eo(e));var u=s&&s.bottom!=null?s.bottom:o+e.wrapper.clientHeight,m=et(r,o),x=et(r,u);if(s&&s.ensure){var E=s.ensure.from.line,C=s.ensure.to.line;E<m?(m=E,x=et(r,sn(oe(r,E))+e.wrapper.clientHeight)):Math.min(C,r.lastLine())>=x&&(m=et(r,sn(oe(r,C))-e.wrapper.clientHeight),x=C)}return{from:m,to:Math.max(x,m+1)}}function eb(e,r){if(!wt(e,"scrollCursorIntoView")){var s=e.display,o=s.sizer.getBoundingClientRect(),u=null;if(r.top+o.top<0?u=!0:r.bottom+o.top>(window.innerHeight||document.documentElement.clientHeight)&&(u=!1),u!=null&&!k){var m=T("div","\u200B",null,`position: absolute;
top: `+(r.top-s.viewOffset-Eo(e.display))+`px;
height: `+(r.bottom-r.top+Xr(e)+s.barHeight)+`px;
left: `+r.left+"px; width: "+Math.max(2,r.right-r.left)+"px;");e.display.lineSpace.appendChild(m),m.scrollIntoView(u),e.display.lineSpace.removeChild(m)}}}function tb(e,r,s,o){o==null&&(o=0);var u;!e.options.lineWrapping&&r==s&&(s=r.sticky=="before"?xe(r.line,r.ch+1,"before"):r,r=r.ch?xe(r.line,r.sticky=="before"?r.ch-1:r.ch,"after"):r);for(var m=0;m<5;m++){var x=!1,E=Ur(e,r),C=!s||s==r?E:Ur(e,s);u={left:Math.min(E.left,C.left),top:Math.min(E.top,C.top)-o,right:Math.max(E.left,C.left),bottom:Math.max(E.bottom,C.bottom)+o};var L=ss(e,u),V=e.doc.scrollTop,Q=e.doc.scrollLeft;if(L.scrollTop!=null&&(Mi(e,L.scrollTop),Math.abs(e.doc.scrollTop-V)>1&&(x=!0)),L.scrollLeft!=null&&(Fn(e,L.scrollLeft),Math.abs(e.doc.scrollLeft-Q)>1&&(x=!0)),!x)break}return u}function rb(e,r){var s=ss(e,r);s.scrollTop!=null&&Mi(e,s.scrollTop),s.scrollLeft!=null&&Fn(e,s.scrollLeft)}function ss(e,r){var s=e.display,o=Yn(e.display);r.top<0&&(r.top=0);var u=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:s.scroller.scrollTop,m=Va(e),x={};r.bottom-r.top>m&&(r.bottom=r.top+m);var E=e.doc.height+Ka(s),C=r.top<o,L=r.bottom>E-o;if(r.top<u)x.scrollTop=C?0:r.top;else if(r.bottom>u+m){var V=Math.min(r.top,(L?E:r.bottom)-m);V!=u&&(x.scrollTop=V)}var Q=e.options.fixedGutter?0:s.gutters.offsetWidth,ce=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:s.scroller.scrollLeft-Q,ae=An(e)-s.gutters.offsetWidth,ye=r.right-r.left>ae;return ye&&(r.right=r.left+ae),r.left<10?x.scrollLeft=0:r.left<ce?x.scrollLeft=Math.max(0,r.left+Q-(ye?0:10)):r.right>ae+ce-3&&(x.scrollLeft=r.right+(ye?0:10)-ae),x}function ls(e,r){r!=null&&(Io(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+r)}function Qn(e){Io(e);var r=e.getCursor();e.curOp.scrollToPos={from:r,to:r,margin:e.options.cursorScrollMargin}}function Fi(e,r,s){(r!=null||s!=null)&&Io(e),r!=null&&(e.curOp.scrollLeft=r),s!=null&&(e.curOp.scrollTop=s)}function nb(e,r){Io(e),e.curOp.scrollToPos=r}function Io(e){var r=e.curOp.scrollToPos;if(r){e.curOp.scrollToPos=null;var s=vu(e,r.from),o=vu(e,r.to);Cu(e,s,o,r.margin)}}function Cu(e,r,s,o){var u=ss(e,{left:Math.min(r.left,s.left),top:Math.min(r.top,s.top)-o,right:Math.max(r.right,s.right),bottom:Math.max(r.bottom,s.bottom)+o});Fi(e,u.scrollLeft,u.scrollTop)}function Mi(e,r){Math.abs(e.doc.scrollTop-r)<2||(n||cs(e,{top:r}),Tu(e,r,!0),n&&cs(e),Ri(e,100))}function Tu(e,r,s){r=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,r)),!(e.display.scroller.scrollTop==r&&!s)&&(e.doc.scrollTop=r,e.display.scrollbars.setScrollTop(r),e.display.scroller.scrollTop!=r&&(e.display.scroller.scrollTop=r))}function Fn(e,r,s,o){r=Math.max(0,Math.min(r,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((s?r==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-r)<2)&&!o)&&(e.doc.scrollLeft=r,Fu(e),e.display.scroller.scrollLeft!=r&&(e.display.scroller.scrollLeft=r),e.display.scrollbars.setScrollLeft(r))}function Oi(e){var r=e.display,s=r.gutters.offsetWidth,o=Math.round(e.doc.height+Ka(e.display));return{clientHeight:r.scroller.clientHeight,viewHeight:r.wrapper.clientHeight,scrollWidth:r.scroller.scrollWidth,clientWidth:r.scroller.clientWidth,viewWidth:r.wrapper.clientWidth,barLeft:e.options.fixedGutter?s:0,docHeight:o,scrollHeight:o+Xr(e)+r.barHeight,nativeBarWidth:r.nativeBarWidth,gutterWidth:s}}var Mn=function(e,r,s){this.cm=s;var o=this.vert=T("div",[T("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=T("div",[T("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");o.tabIndex=u.tabIndex=-1,e(o),e(u),lt(o,"scroll",function(){o.clientHeight&&r(o.scrollTop,"vertical")}),lt(u,"scroll",function(){u.clientWidth&&r(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,a&&h<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Mn.prototype.update=function(e){var r=e.scrollWidth>e.clientWidth+1,s=e.scrollHeight>e.clientHeight+1,o=e.nativeBarWidth;if(s){this.vert.style.display="block",this.vert.style.bottom=r?o+"px":"0";var u=e.viewHeight-(r?o:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+u)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(r){this.horiz.style.display="block",this.horiz.style.right=s?o+"px":"0",this.horiz.style.left=e.barLeft+"px";var m=e.viewWidth-e.barLeft-(s?o:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(o==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:s?o:0,bottom:r?o:0}},Mn.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Mn.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Mn.prototype.zeroWidthHack=function(){var e=S&&!b?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Pe,this.disableVert=new Pe},Mn.prototype.enableZeroWidthBar=function(e,r,s){e.style.pointerEvents="auto";function o(){var u=e.getBoundingClientRect(),m=s=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=e?e.style.pointerEvents="none":r.set(1e3,o)}r.set(1e3,o)},Mn.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Pi=function(){};Pi.prototype.update=function(){return{bottom:0,right:0}},Pi.prototype.setScrollLeft=function(){},Pi.prototype.setScrollTop=function(){},Pi.prototype.clear=function(){};function Jn(e,r){r||(r=Oi(e));var s=e.display.barWidth,o=e.display.barHeight;Au(e,r);for(var u=0;u<4&&s!=e.display.barWidth||o!=e.display.barHeight;u++)s!=e.display.barWidth&&e.options.lineWrapping&&Lo(e),Au(e,Oi(e)),s=e.display.barWidth,o=e.display.barHeight}function Au(e,r){var s=e.display,o=s.scrollbars.update(r);s.sizer.style.paddingRight=(s.barWidth=o.right)+"px",s.sizer.style.paddingBottom=(s.barHeight=o.bottom)+"px",s.heightForcer.style.borderBottom=o.bottom+"px solid transparent",o.right&&o.bottom?(s.scrollbarFiller.style.display="block",s.scrollbarFiller.style.height=o.bottom+"px",s.scrollbarFiller.style.width=o.right+"px"):s.scrollbarFiller.style.display="",o.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(s.gutterFiller.style.display="block",s.gutterFiller.style.height=o.bottom+"px",s.gutterFiller.style.width=r.gutterWidth+"px"):s.gutterFiller.style.display=""}var Lu={native:Mn,null:Pi};function Du(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&X(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Lu[e.options.scrollbarStyle](function(r){e.display.wrapper.insertBefore(r,e.display.scrollbarFiller),lt(r,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),r.setAttribute("cm-not-content","true")},function(r,s){s=="horizontal"?Fn(e,r):Mi(e,r)},e),e.display.scrollbars.addClass&&z(e.display.wrapper,e.display.scrollbars.addClass)}var ib=0;function On(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++ib,markArrays:null},Py(e.curOp)}function Pn(e){var r=e.curOp;r&&zy(r,function(s){for(var o=0;o<s.ops.length;o++)s.ops[o].cm.curOp=null;ob(s)})}function ob(e){for(var r=e.ops,s=0;s<r.length;s++)ab(r[s]);for(var o=0;o<r.length;o++)sb(r[o]);for(var u=0;u<r.length;u++)lb(r[u]);for(var m=0;m<r.length;m++)ub(r[m]);for(var x=0;x<r.length;x++)cb(r[x])}function ab(e){var r=e.cm,s=r.display;db(r),e.updateMaxLine&&Wa(r),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<s.viewFrom||e.scrollToPos.to.line>=s.viewTo)||s.maxLineChanged&&r.options.lineWrapping,e.update=e.mustUpdate&&new Fo(r,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function sb(e){e.updatedDisplay=e.mustUpdate&&us(e.cm,e.update)}function lb(e){var r=e.cm,s=r.display;e.updatedDisplay&&Lo(r),e.barMeasure=Oi(r),s.maxLineChanged&&!r.options.lineWrapping&&(e.adjustWidthTo=uu(r,s.maxLine,s.maxLine.text.length).left+3,r.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(s.scroller.clientWidth,s.sizer.offsetLeft+e.adjustWidthTo+Xr(r)+r.display.barWidth),e.maxScrollLeft=Math.max(0,s.sizer.offsetLeft+e.adjustWidthTo-An(r))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=s.input.prepareSelection())}function ub(e){var r=e.cm;e.adjustWidthTo!=null&&(r.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<r.doc.scrollLeft&&Fn(r,Math.min(r.display.scroller.scrollLeft,e.maxScrollLeft),!0),r.display.maxLineChanged=!1);var s=e.focus&&e.focus==F();e.preparedSelection&&r.display.input.showSelection(e.preparedSelection,s),(e.updatedDisplay||e.startHeight!=r.doc.height)&&Jn(r,e.barMeasure),e.updatedDisplay&&ds(r,e.barMeasure),e.selectionChanged&&is(r),r.state.focused&&e.updateInput&&r.display.input.reset(e.typing),s&&Su(e.cm)}function cb(e){var r=e.cm,s=r.display,o=r.doc;if(e.updatedDisplay&&Iu(r,e.update),s.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(s.wheelStartX=s.wheelStartY=null),e.scrollTop!=null&&Tu(r,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Fn(r,e.scrollLeft,!0,!0),e.scrollToPos){var u=tb(r,Xe(o,e.scrollToPos.from),Xe(o,e.scrollToPos.to),e.scrollToPos.margin);eb(r,u)}var m=e.maybeHiddenMarkers,x=e.maybeUnhiddenMarkers;if(m)for(var E=0;E<m.length;++E)m[E].lines.length||rt(m[E],"hide");if(x)for(var C=0;C<x.length;++C)x[C].lines.length&&rt(x[C],"unhide");s.wrapper.offsetHeight&&(o.scrollTop=r.display.scroller.scrollTop),e.changeObjs&&rt(r,"changes",r,e.changeObjs),e.update&&e.update.finish()}function Ar(e,r){if(e.curOp)return r();On(e);try{return r()}finally{Pn(e)}}function rr(e,r){return function(){if(e.curOp)return r.apply(e,arguments);On(e);try{return r.apply(e,arguments)}finally{Pn(e)}}}function br(e){return function(){if(this.curOp)return e.apply(this,arguments);On(this);try{return e.apply(this,arguments)}finally{Pn(this)}}}function nr(e){return function(){var r=this.cm;if(!r||r.curOp)return e.apply(this,arguments);On(r);try{return e.apply(this,arguments)}finally{Pn(r)}}}function Ri(e,r){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(r,W(fb,e))}function fb(e){var r=e.doc;if(!(r.highlightFrontier>=e.display.viewTo)){var s=+new Date+e.options.workTime,o=Ei(e,r.highlightFrontier),u=[];r.iter(o.line,Math.min(r.first+r.size,e.display.viewTo+500),function(m){if(o.line>=e.display.viewFrom){var x=m.styles,E=m.text.length>e.options.maxHighlightLength?Ke(r.mode,o.state):null,C=zl(e,m,o,!0);E&&(o.state=E),m.styles=C.styles;var L=m.styleClasses,V=C.classes;V?m.styleClasses=V:L&&(m.styleClasses=null);for(var Q=!x||x.length!=m.styles.length||L!=V&&(!L||!V||L.bgClass!=V.bgClass||L.textClass!=V.textClass),ce=0;!Q&&ce<x.length;++ce)Q=x[ce]!=m.styles[ce];Q&&u.push(o.line),m.stateAfter=o.save(),o.nextLine()}else m.text.length<=e.options.maxHighlightLength&&Ba(e,m.text,o),m.stateAfter=o.line%5==0?o.save():null,o.nextLine();if(+new Date>s)return Ri(e,e.options.workDelay),!0}),r.highlightFrontier=o.line,r.modeFrontier=Math.max(r.modeFrontier,o.line),u.length&&Ar(e,function(){for(var m=0;m<u.length;m++)gn(e,u[m],"text")})}}var Fo=function(e,r,s){var o=e.display;this.viewport=r,this.visible=Do(o,e.doc,r),this.editorIsHidden=!o.wrapper.offsetWidth,this.wrapperHeight=o.wrapper.clientHeight,this.wrapperWidth=o.wrapper.clientWidth,this.oldDisplayWidth=An(e),this.force=s,this.dims=ts(e),this.events=[]};Fo.prototype.signal=function(e,r){Et(e,r)&&this.events.push(arguments)},Fo.prototype.finish=function(){for(var e=0;e<this.events.length;e++)rt.apply(null,this.events[e])};function db(e){var r=e.display;!r.scrollbarsClipped&&r.scroller.offsetWidth&&(r.nativeBarWidth=r.scroller.offsetWidth-r.scroller.clientWidth,r.heightForcer.style.height=Xr(e)+"px",r.sizer.style.marginBottom=-r.nativeBarWidth+"px",r.sizer.style.borderRightWidth=Xr(e)+"px",r.scrollbarsClipped=!0)}function hb(e){if(e.hasFocus())return null;var r=F();if(!r||!te(e.display.lineDiv,r))return null;var s={activeElt:r};if(window.getSelection){var o=window.getSelection();o.anchorNode&&o.extend&&te(e.display.lineDiv,o.anchorNode)&&(s.anchorNode=o.anchorNode,s.anchorOffset=o.anchorOffset,s.focusNode=o.focusNode,s.focusOffset=o.focusOffset)}return s}function pb(e){if(!(!e||!e.activeElt||e.activeElt==F())&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&te(document.body,e.anchorNode)&&te(document.body,e.focusNode))){var r=window.getSelection(),s=document.createRange();s.setEnd(e.anchorNode,e.anchorOffset),s.collapse(!1),r.removeAllRanges(),r.addRange(s),r.extend(e.focusNode,e.focusOffset)}}function us(e,r){var s=e.display,o=e.doc;if(r.editorIsHidden)return vn(e),!1;if(!r.force&&r.visible.from>=s.viewFrom&&r.visible.to<=s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo)&&s.renderedView==s.view&&wu(e)==0)return!1;Mu(e)&&(vn(e),r.dims=ts(e));var u=o.first+o.size,m=Math.max(r.visible.from-e.options.viewportMargin,o.first),x=Math.min(u,r.visible.to+e.options.viewportMargin);s.viewFrom<m&&m-s.viewFrom<20&&(m=Math.max(o.first,s.viewFrom)),s.viewTo>x&&s.viewTo-x<20&&(x=Math.min(u,s.viewTo)),an&&(m=Ua(e.doc,m),x=Zl(e.doc,x));var E=m!=s.viewFrom||x!=s.viewTo||s.lastWrapHeight!=r.wrapperHeight||s.lastWrapWidth!=r.wrapperWidth;Qy(e,m,x),s.viewOffset=sn(oe(e.doc,s.viewFrom)),e.display.mover.style.top=s.viewOffset+"px";var C=wu(e);if(!E&&C==0&&!r.force&&s.renderedView==s.view&&(s.updateLineNumbers==null||s.updateLineNumbers>=s.viewTo))return!1;var L=hb(e);return C>4&&(s.lineDiv.style.display="none"),mb(e,s.updateLineNumbers,r.dims),C>4&&(s.lineDiv.style.display=""),s.renderedView=s.view,pb(L),G(s.cursorDiv),G(s.selectionDiv),s.gutters.style.height=s.sizer.style.minHeight=0,E&&(s.lastWrapHeight=r.wrapperHeight,s.lastWrapWidth=r.wrapperWidth,Ri(e,400)),s.updateLineNumbers=null,!0}function Iu(e,r){for(var s=r.viewport,o=!0;;o=!1){if(!o||!e.options.lineWrapping||r.oldDisplayWidth==An(e)){if(s&&s.top!=null&&(s={top:Math.min(e.doc.height+Ka(e.display)-Va(e),s.top)}),r.visible=Do(e.display,e.doc,s),r.visible.from>=e.display.viewFrom&&r.visible.to<=e.display.viewTo)break}else o&&(r.visible=Do(e.display,e.doc,s));if(!us(e,r))break;Lo(e);var u=Oi(e);Ii(e),Jn(e,u),ds(e,u),r.force=!1}r.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(r.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function cs(e,r){var s=new Fo(e,r);if(us(e,s)){Lo(e),Iu(e,s);var o=Oi(e);Ii(e),Jn(e,o),ds(e,o),s.finish()}}function mb(e,r,s){var o=e.display,u=e.options.lineNumbers,m=o.lineDiv,x=m.firstChild;function E(ye){var Te=ye.nextSibling;return f&&S&&e.display.currentWheelTarget==ye?ye.style.display="none":ye.parentNode.removeChild(ye),Te}for(var C=o.view,L=o.viewFrom,V=0;V<C.length;V++){var Q=C[V];if(!Q.hidden)if(!Q.node||Q.node.parentNode!=m){var ce=$y(e,Q,L,s);m.insertBefore(ce,x)}else{for(;x!=Q.node;)x=E(x);var ae=u&&r!=null&&r<=L&&Q.lineNumber;Q.changes&&(ve(Q.changes,"gutter")>-1&&(ae=!1),ru(e,Q,L,s)),ae&&(G(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(Dt(e.options,L)))),x=Q.node.nextSibling}L+=Q.size}for(;x;)x=E(x)}function fs(e){var r=e.gutters.offsetWidth;e.sizer.style.marginLeft=r+"px",tr(e,"gutterChanged",e)}function ds(e,r){e.display.sizer.style.minHeight=r.docHeight+"px",e.display.heightForcer.style.top=r.docHeight+"px",e.display.gutters.style.height=r.docHeight+e.display.barHeight+Xr(e)+"px"}function Fu(e){var r=e.display,s=r.view;if(!(!r.alignWidgets&&(!r.gutters.firstChild||!e.options.fixedGutter))){for(var o=rs(r)-r.scroller.scrollLeft+e.doc.scrollLeft,u=r.gutters.offsetWidth,m=o+"px",x=0;x<s.length;x++)if(!s[x].hidden){e.options.fixedGutter&&(s[x].gutter&&(s[x].gutter.style.left=m),s[x].gutterBackground&&(s[x].gutterBackground.style.left=m));var E=s[x].alignable;if(E)for(var C=0;C<E.length;C++)E[C].style.left=m}e.options.fixedGutter&&(r.gutters.style.left=o+u+"px")}}function Mu(e){if(!e.options.lineNumbers)return!1;var r=e.doc,s=Dt(e.options,r.first+r.size-1),o=e.display;if(s.length!=o.lineNumChars){var u=o.measure.appendChild(T("div",[T("div",s)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,x=u.offsetWidth-m;return o.lineGutter.style.width="",o.lineNumInnerWidth=Math.max(m,o.lineGutter.offsetWidth-x)+1,o.lineNumWidth=o.lineNumInnerWidth+x,o.lineNumChars=o.lineNumInnerWidth?s.length:-1,o.lineGutter.style.width=o.lineNumWidth+"px",fs(e.display),!0}return!1}function hs(e,r){for(var s=[],o=!1,u=0;u<e.length;u++){var m=e[u],x=null;if(typeof m!="string"&&(x=m.style,m=m.className),m=="CodeMirror-linenumbers")if(r)o=!0;else continue;s.push({className:m,style:x})}return r&&!o&&s.push({className:"CodeMirror-linenumbers",style:null}),s}function Ou(e){var r=e.gutters,s=e.gutterSpecs;G(r),e.lineGutter=null;for(var o=0;o<s.length;++o){var u=s[o],m=u.className,x=u.style,E=r.appendChild(T("div",null,"CodeMirror-gutter "+m));x&&(E.style.cssText=x),m=="CodeMirror-linenumbers"&&(e.lineGutter=E,E.style.width=(e.lineNumWidth||1)+"px")}r.style.display=s.length?"":"none",fs(e)}function zi(e){Ou(e.display),kr(e),Fu(e)}function gb(e,r,s,o){var u=this;this.input=s,u.scrollbarFiller=T("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=T("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=A("div",null,"CodeMirror-code"),u.selectionDiv=T("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=T("div",null,"CodeMirror-cursors"),u.measure=T("div",null,"CodeMirror-measure"),u.lineMeasure=T("div",null,"CodeMirror-measure"),u.lineSpace=A("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=A("div",[u.lineSpace],"CodeMirror-lines");u.mover=T("div",[m],null,"position: relative"),u.sizer=T("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=T("div",null,null,"position: absolute; height: "+Ee+"px; width: 1px;"),u.gutters=T("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=T("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=T("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),a&&h<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!f&&!(n&&I)&&(u.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(u.wrapper):e(u.wrapper)),u.viewFrom=u.viewTo=r.first,u.reportedViewFrom=u.reportedViewTo=r.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=hs(o.gutters,o.lineNumbers),Ou(u),s.init(u)}var Mo=0,Mr=null;a?Mr=-.53:n?Mr=15:y?Mr=-.7:v&&(Mr=-1/3);function Pu(e){var r=e.wheelDeltaX,s=e.wheelDeltaY;return r==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(r=e.detail),s==null&&e.detail&&e.axis==e.VERTICAL_AXIS?s=e.detail:s==null&&(s=e.wheelDelta),{x:r,y:s}}function vb(e){var r=Pu(e);return r.x*=Mr,r.y*=Mr,r}function Ru(e,r){var s=Pu(r),o=s.x,u=s.y,m=e.display,x=m.scroller,E=x.scrollWidth>x.clientWidth,C=x.scrollHeight>x.clientHeight;if(!!(o&&E||u&&C)){if(u&&S&&f){e:for(var L=r.target,V=m.view;L!=x;L=L.parentNode)for(var Q=0;Q<V.length;Q++)if(V[Q].node==L){e.display.currentWheelTarget=L;break e}}if(o&&!n&&!g&&Mr!=null){u&&C&&Mi(e,Math.max(0,x.scrollTop+u*Mr)),Fn(e,Math.max(0,x.scrollLeft+o*Mr)),(!u||u&&C)&&kt(r),m.wheelStartX=null;return}if(u&&Mr!=null){var ce=u*Mr,ae=e.doc.scrollTop,ye=ae+m.wrapper.clientHeight;ce<0?ae=Math.max(0,ae+ce-50):ye=Math.min(e.doc.height,ye+ce+50),cs(e,{top:ae,bottom:ye})}Mo<20&&(m.wheelStartX==null?(m.wheelStartX=x.scrollLeft,m.wheelStartY=x.scrollTop,m.wheelDX=o,m.wheelDY=u,setTimeout(function(){if(m.wheelStartX!=null){var Te=x.scrollLeft-m.wheelStartX,Oe=x.scrollTop-m.wheelStartY,je=Oe&&m.wheelDY&&Oe/m.wheelDY||Te&&m.wheelDX&&Te/m.wheelDX;m.wheelStartX=m.wheelStartY=null,!!je&&(Mr=(Mr*Mo+je)/(Mo+1),++Mo)}},200)):(m.wheelDX+=o,m.wheelDY+=u))}}var Or=function(e,r){this.ranges=e,this.primIndex=r};Or.prototype.primary=function(){return this.ranges[this.primIndex]},Or.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var s=this.ranges[r],o=e.ranges[r];if(!B(s.anchor,o.anchor)||!B(s.head,o.head))return!1}return!0},Or.prototype.deepCopy=function(){for(var e=[],r=0;r<this.ranges.length;r++)e[r]=new Tt(de(this.ranges[r].anchor),de(this.ranges[r].head));return new Or(e,this.primIndex)},Or.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Or.prototype.contains=function(e,r){r||(r=e);for(var s=0;s<this.ranges.length;s++){var o=this.ranges[s];if(D(r,o.from())>=0&&D(e,o.to())<=0)return s}return-1};var Tt=function(e,r){this.anchor=e,this.head=r};Tt.prototype.from=function(){return ft(this.anchor,this.head)},Tt.prototype.to=function(){return De(this.anchor,this.head)},Tt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Hr(e,r,s){var o=e&&e.options.selectionsMayTouch,u=r[s];r.sort(function(ce,ae){return D(ce.from(),ae.from())}),s=ve(r,u);for(var m=1;m<r.length;m++){var x=r[m],E=r[m-1],C=D(E.to(),x.from());if(o&&!x.empty()?C>0:C>=0){var L=ft(E.from(),x.from()),V=De(E.to(),x.to()),Q=E.empty()?x.from()==x.head:E.from()==E.head;m<=s&&--s,r.splice(--m,2,new Tt(Q?V:L,Q?L:V))}}return new Or(r,s)}function yn(e,r){return new Or([new Tt(e,r||e)],0)}function bn(e){return e.text?xe(e.from.line+e.text.length-1,Re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function zu(e,r){if(D(e,r.from)<0)return e;if(D(e,r.to)<=0)return bn(r);var s=e.line+r.text.length-(r.to.line-r.from.line)-1,o=e.ch;return e.line==r.to.line&&(o+=bn(r).ch-r.to.ch),xe(s,o)}function ps(e,r){for(var s=[],o=0;o<e.sel.ranges.length;o++){var u=e.sel.ranges[o];s.push(new Tt(zu(u.anchor,r),zu(u.head,r)))}return Hr(e.cm,s,e.sel.primIndex)}function Nu(e,r,s){return e.line==r.line?xe(s.line,e.ch-r.ch+s.ch):xe(s.line+(e.line-r.line),e.ch)}function yb(e,r,s){for(var o=[],u=xe(e.first,0),m=u,x=0;x<r.length;x++){var E=r[x],C=Nu(E.from,u,m),L=Nu(bn(E),u,m);if(u=E.to,m=L,s=="around"){var V=e.sel.ranges[x],Q=D(V.head,V.anchor)<0;o[x]=new Tt(Q?L:C,Q?C:L)}else o[x]=new Tt(C,C)}return new Or(o,e.sel.primIndex)}function ms(e){e.doc.mode=Le(e.options,e.doc.modeOption),Ni(e)}function Ni(e){e.doc.iter(function(r){r.stateAfter&&(r.stateAfter=null),r.styles&&(r.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Ri(e,100),e.state.modeGen++,e.curOp&&kr(e)}function Bu(e,r){return r.from.ch==0&&r.to.ch==0&&Re(r.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function gs(e,r,s,o){function u(tt){return s?s[tt]:null}function m(tt,$e,nt){Cy(tt,$e,nt,o),tr(tt,"change",tt,r)}function x(tt,$e){for(var nt=[],ct=tt;ct<$e;++ct)nt.push(new Gn(L[ct],u(ct),o));return nt}var E=r.from,C=r.to,L=r.text,V=oe(e,E.line),Q=oe(e,C.line),ce=Re(L),ae=u(L.length-1),ye=C.line-E.line;if(r.full)e.insert(0,x(0,L.length)),e.remove(L.length,e.size-L.length);else if(Bu(e,r)){var Te=x(0,L.length-1);m(Q,Q.text,ae),ye&&e.remove(E.line,ye),Te.length&&e.insert(E.line,Te)}else if(V==Q)if(L.length==1)m(V,V.text.slice(0,E.ch)+ce+V.text.slice(C.ch),ae);else{var Oe=x(1,L.length-1);Oe.push(new Gn(ce+V.text.slice(C.ch),ae,o)),m(V,V.text.slice(0,E.ch)+L[0],u(0)),e.insert(E.line+1,Oe)}else if(L.length==1)m(V,V.text.slice(0,E.ch)+L[0]+Q.text.slice(C.ch),u(0)),e.remove(E.line+1,ye);else{m(V,V.text.slice(0,E.ch)+L[0],u(0)),m(Q,ce+Q.text.slice(C.ch),ae);var je=x(1,L.length-1);ye>1&&e.remove(E.line+1,ye-1),e.insert(E.line+1,je)}tr(e,"change",e,r)}function xn(e,r,s){function o(u,m,x){if(u.linked)for(var E=0;E<u.linked.length;++E){var C=u.linked[E];if(C.doc!=m){var L=x&&C.sharedHist;s&&!L||(r(C.doc,L),o(C.doc,u,L))}}}o(e,null,!0)}function qu(e,r){if(r.cm)throw new Error("This document is already in use.");e.doc=r,r.cm=e,ns(e),ms(e),ju(e),e.options.direction=r.direction,e.options.lineWrapping||Wa(e),e.options.mode=r.modeOption,kr(e)}function ju(e){(e.doc.direction=="rtl"?z:X)(e.display.lineDiv,"CodeMirror-rtl")}function bb(e){Ar(e,function(){ju(e),kr(e)})}function Oo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:Infinity,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function vs(e,r){var s={from:de(r.from),to:bn(r),text:he(e,r.from,r.to)};return Hu(e,s,r.from.line,r.to.line+1),xn(e,function(o){return Hu(o,s,r.from.line,r.to.line+1)},!0),s}function $u(e){for(;e.length;){var r=Re(e);if(r.ranges)e.pop();else break}}function xb(e,r){if(r)return $u(e.done),Re(e.done);if(e.done.length&&!Re(e.done).ranges)return Re(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Re(e.done)}function Uu(e,r,s,o){var u=e.history;u.undone.length=0;var m=+new Date,x,E;if((u.lastOp==o||u.lastOrigin==r.origin&&r.origin&&(r.origin.charAt(0)=="+"&&u.lastModTime>m-(e.cm?e.cm.options.historyEventDelay:500)||r.origin.charAt(0)=="*"))&&(x=xb(u,u.lastOp==o)))E=Re(x.changes),D(r.from,r.to)==0&&D(r.from,E.to)==0?E.to=bn(r):x.changes.push(vs(e,r));else{var C=Re(u.done);for((!C||!C.ranges)&&Po(e.sel,u.done),x={changes:[vs(e,r)],generation:u.generation},u.done.push(x);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(s),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=o,u.lastOrigin=u.lastSelOrigin=r.origin,E||rt(e,"historyAdded")}function wb(e,r,s,o){var u=r.charAt(0);return u=="*"||u=="+"&&s.ranges.length==o.ranges.length&&s.somethingSelected()==o.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function kb(e,r,s,o){var u=e.history,m=o&&o.origin;s==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||wb(e,m,Re(u.done),r))?u.done[u.done.length-1]=r:Po(r,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=s,o&&o.clearRedo!==!1&&$u(u.undone)}function Po(e,r){var s=Re(r);s&&s.ranges&&s.equals(e)||r.push(e)}function Hu(e,r,s,o){var u=r["spans_"+e.id],m=0;e.iter(Math.max(e.first,s),Math.min(e.first+e.size,o),function(x){x.markedSpans&&((u||(u=r["spans_"+e.id]={}))[m]=x.markedSpans),++m})}function _b(e){if(!e)return null;for(var r,s=0;s<e.length;++s)e[s].marker.explicitlyCleared?r||(r=e.slice(0,s)):r&&r.push(e[s]);return r?r.length?r:null:e}function Sb(e,r){var s=r["spans_"+e.id];if(!s)return null;for(var o=[],u=0;u<r.text.length;++u)o.push(_b(s[u]));return o}function Wu(e,r){var s=Sb(e,r),o=ja(e,r);if(!s)return o;if(!o)return s;for(var u=0;u<s.length;++u){var m=s[u],x=o[u];if(m&&x){e:for(var E=0;E<x.length;++E){for(var C=x[E],L=0;L<m.length;++L)if(m[L].marker==C.marker)continue e;m.push(C)}}else x&&(s[u]=x)}return s}function ei(e,r,s){for(var o=[],u=0;u<e.length;++u){var m=e[u];if(m.ranges){o.push(s?Or.prototype.deepCopy.call(m):m);continue}var x=m.changes,E=[];o.push({changes:E});for(var C=0;C<x.length;++C){var L=x[C],V=void 0;if(E.push({from:L.from,to:L.to,text:L.text}),r)for(var Q in L)(V=Q.match(/^spans_(\d+)$/))&&ve(r,Number(V[1]))>-1&&(Re(E)[Q]=L[Q],delete L[Q])}}return o}function ys(e,r,s,o){if(o){var u=e.anchor;if(s){var m=D(r,u)<0;m!=D(s,u)<0?(u=r,r=s):m!=D(r,s)<0&&(r=s)}return new Tt(u,r)}else return new Tt(s||r,r)}function Ro(e,r,s,o,u){u==null&&(u=e.cm&&(e.cm.display.shift||e.extend)),pr(e,new Or([ys(e.sel.primary(),r,s,u)],0),o)}function Gu(e,r,s){for(var o=[],u=e.cm&&(e.cm.display.shift||e.extend),m=0;m<e.sel.ranges.length;m++)o[m]=ys(e.sel.ranges[m],r[m],null,u);var x=Hr(e.cm,o,e.sel.primIndex);pr(e,x,s)}function bs(e,r,s,o){var u=e.sel.ranges.slice(0);u[r]=s,pr(e,Hr(e.cm,u,e.sel.primIndex),o)}function Ku(e,r,s,o){pr(e,yn(r,s),o)}function Eb(e,r,s){var o={ranges:r.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new Tt(Xe(e,u[m].anchor),Xe(e,u[m].head))},origin:s&&s.origin};return rt(e,"beforeSelectionChange",e,o),e.cm&&rt(e.cm,"beforeSelectionChange",e.cm,o),o.ranges!=r.ranges?Hr(e.cm,o.ranges,o.ranges.length-1):r}function Vu(e,r,s){var o=e.history.done,u=Re(o);u&&u.ranges?(o[o.length-1]=r,zo(e,r,s)):pr(e,r,s)}function pr(e,r,s){zo(e,r,s),kb(e,e.sel,e.cm?e.cm.curOp.id:NaN,s)}function zo(e,r,s){(Et(e,"beforeSelectionChange")||e.cm&&Et(e.cm,"beforeSelectionChange"))&&(r=Eb(e,r,s));var o=s&&s.bias||(D(r.primary().head,e.sel.primary().head)<0?-1:1);Yu(e,Zu(e,r,o,!0)),!(s&&s.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Qn(e.cm)}function Yu(e,r){r.equals(e.sel)||(e.sel=r,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,fr(e.cm)),tr(e,"cursorActivity",e))}function Xu(e){Yu(e,Zu(e,e.sel,null,!1))}function Zu(e,r,s,o){for(var u,m=0;m<r.ranges.length;m++){var x=r.ranges[m],E=r.ranges.length==e.sel.ranges.length&&e.sel.ranges[m],C=No(e,x.anchor,E&&E.anchor,s,o),L=No(e,x.head,E&&E.head,s,o);(u||C!=x.anchor||L!=x.head)&&(u||(u=r.ranges.slice(0,m)),u[m]=new Tt(C,L))}return u?Hr(e.cm,u,r.primIndex):r}function ti(e,r,s,o,u){var m=oe(e,r.line);if(m.markedSpans)for(var x=0;x<m.markedSpans.length;++x){var E=m.markedSpans[x],C=E.marker,L="selectLeft"in C?!C.selectLeft:C.inclusiveLeft,V="selectRight"in C?!C.selectRight:C.inclusiveRight;if((E.from==null||(L?E.from<=r.ch:E.from<r.ch))&&(E.to==null||(V?E.to>=r.ch:E.to>r.ch))){if(u&&(rt(C,"beforeCursorEnter"),C.explicitlyCleared))if(m.markedSpans){--x;continue}else break;if(!C.atomic)continue;if(s){var Q=C.find(o<0?1:-1),ce=void 0;if((o<0?V:L)&&(Q=Qu(e,Q,-o,Q&&Q.line==r.line?m:null)),Q&&Q.line==r.line&&(ce=D(Q,s))&&(o<0?ce<0:ce>0))return ti(e,Q,r,o,u)}var ae=C.find(o<0?-1:1);return(o<0?L:V)&&(ae=Qu(e,ae,o,ae.line==r.line?m:null)),ae?ti(e,ae,r,o,u):null}}return r}function No(e,r,s,o,u){var m=o||1,x=ti(e,r,s,m,u)||!u&&ti(e,r,s,m,!0)||ti(e,r,s,-m,u)||!u&&ti(e,r,s,-m,!0);return x||(e.cantEdit=!0,xe(e.first,0))}function Qu(e,r,s,o){return s<0&&r.ch==0?r.line>e.first?Xe(e,xe(r.line-1)):null:s>0&&r.ch==(o||oe(e,r.line)).text.length?r.line<e.first+e.size-1?xe(r.line+1,0):null:new xe(r.line,r.ch+s)}function Ju(e){e.setSelection(xe(e.firstLine(),0),xe(e.lastLine()),qe)}function ec(e,r,s){var o={canceled:!1,from:r.from,to:r.to,text:r.text,origin:r.origin,cancel:function(){return o.canceled=!0}};return s&&(o.update=function(u,m,x,E){u&&(o.from=Xe(e,u)),m&&(o.to=Xe(e,m)),x&&(o.text=x),E!==void 0&&(o.origin=E)}),rt(e,"beforeChange",e,o),e.cm&&rt(e.cm,"beforeChange",e.cm,o),o.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:o.from,to:o.to,text:o.text,origin:o.origin}}function ri(e,r,s){if(e.cm){if(!e.cm.curOp)return rr(e.cm,ri)(e,r,s);if(e.cm.state.suppressEdits)return}if(!((Et(e,"beforeChange")||e.cm&&Et(e.cm,"beforeChange"))&&(r=ec(e,r,!0),!r))){var o=Hl&&!s&&ky(e,r.from,r.to);if(o)for(var u=o.length-1;u>=0;--u)tc(e,{from:o[u].from,to:o[u].to,text:u?[""]:r.text,origin:r.origin});else tc(e,r)}}function tc(e,r){if(!(r.text.length==1&&r.text[0]==""&&D(r.from,r.to)==0)){var s=ps(e,r);Uu(e,r,s,e.cm?e.cm.curOp.id:NaN),Bi(e,r,s,ja(e,r));var o=[];xn(e,function(u,m){!m&&ve(o,u.history)==-1&&(oc(u.history,r),o.push(u.history)),Bi(u,r,null,ja(u,r))})}}function Bo(e,r,s){var o=e.cm&&e.cm.state.suppressEdits;if(!(o&&!s)){for(var u=e.history,m,x=e.sel,E=r=="undo"?u.done:u.undone,C=r=="undo"?u.undone:u.done,L=0;L<E.length&&(m=E[L],!(s?m.ranges&&!m.equals(e.sel):!m.ranges));L++);if(L!=E.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=E.pop(),m.ranges){if(Po(m,C),s&&!m.equals(e.sel)){pr(e,m,{clearRedo:!1});return}x=m}else if(o){E.push(m);return}else break;var V=[];Po(x,C),C.push({changes:V,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var Q=Et(e,"beforeChange")||e.cm&&Et(e.cm,"beforeChange"),ce=function(Te){var Oe=m.changes[Te];if(Oe.origin=r,Q&&!ec(e,Oe,!1))return E.length=0,{};V.push(vs(e,Oe));var je=Te?ps(e,Oe):Re(E);Bi(e,Oe,je,Wu(e,Oe)),!Te&&e.cm&&e.cm.scrollIntoView({from:Oe.from,to:bn(Oe)});var tt=[];xn(e,function($e,nt){!nt&&ve(tt,$e.history)==-1&&(oc($e.history,Oe),tt.push($e.history)),Bi($e,Oe,null,Wu($e,Oe))})},ae=m.changes.length-1;ae>=0;--ae){var ye=ce(ae);if(ye)return ye.v}}}}function rc(e,r){if(r!=0&&(e.first+=r,e.sel=new Or(Ie(e.sel.ranges,function(u){return new Tt(xe(u.anchor.line+r,u.anchor.ch),xe(u.head.line+r,u.head.ch))}),e.sel.primIndex),e.cm)){kr(e.cm,e.first,e.first-r,r);for(var s=e.cm.display,o=s.viewFrom;o<s.viewTo;o++)gn(e.cm,o,"gutter")}}function Bi(e,r,s,o){if(e.cm&&!e.cm.curOp)return rr(e.cm,Bi)(e,r,s,o);if(r.to.line<e.first){rc(e,r.text.length-1-(r.to.line-r.from.line));return}if(!(r.from.line>e.lastLine())){if(r.from.line<e.first){var u=r.text.length-1-(e.first-r.from.line);rc(e,u),r={from:xe(e.first,0),to:xe(r.to.line+u,r.to.ch),text:[Re(r.text)],origin:r.origin}}var m=e.lastLine();r.to.line>m&&(r={from:r.from,to:xe(m,oe(e,m).text.length),text:[r.text[0]],origin:r.origin}),r.removed=he(e,r.from,r.to),s||(s=ps(e,r)),e.cm?Cb(e.cm,r,o):gs(e,r,o),zo(e,s,qe),e.cantEdit&&No(e,xe(e.firstLine(),0))&&(e.cantEdit=!1)}}function Cb(e,r,s){var o=e.doc,u=e.display,m=r.from,x=r.to,E=!1,C=m.line;e.options.lineWrapping||(C=Ve(Yr(oe(o,m.line))),o.iter(C,x.line+1,function(ae){if(ae==u.maxLine)return E=!0,!0})),o.sel.contains(r.from,r.to)>-1&&fr(e),gs(o,r,s,xu(e)),e.options.lineWrapping||(o.iter(C,m.line+r.text.length,function(ae){var ye=_o(ae);ye>u.maxLineLength&&(u.maxLine=ae,u.maxLineLength=ye,u.maxLineChanged=!0,E=!1)}),E&&(e.curOp.updateMaxLine=!0)),my(o,m.line),Ri(e,400);var L=r.text.length-(x.line-m.line)-1;r.full?kr(e):m.line==x.line&&r.text.length==1&&!Bu(e.doc,r)?gn(e,m.line,"text"):kr(e,m.line,x.line+1,L);var V=Et(e,"changes"),Q=Et(e,"change");if(Q||V){var ce={from:m,to:x,text:r.text,removed:r.removed,origin:r.origin};Q&&tr(e,"change",e,ce),V&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(ce)}e.display.selForContextMenu=null}function ni(e,r,s,o,u){var m;o||(o=s),D(o,s)<0&&(m=[o,s],s=m[0],o=m[1]),typeof r=="string"&&(r=e.splitLines(r)),ri(e,{from:s,to:o,text:r,origin:u})}function nc(e,r,s,o){s<e.line?e.line+=o:r<e.line&&(e.line=r,e.ch=0)}function ic(e,r,s,o){for(var u=0;u<e.length;++u){var m=e[u],x=!0;if(m.ranges){m.copied||(m=e[u]=m.deepCopy(),m.copied=!0);for(var E=0;E<m.ranges.length;E++)nc(m.ranges[E].anchor,r,s,o),nc(m.ranges[E].head,r,s,o);continue}for(var C=0;C<m.changes.length;++C){var L=m.changes[C];if(s<L.from.line)L.from=xe(L.from.line+o,L.from.ch),L.to=xe(L.to.line+o,L.to.ch);else if(r<=L.to.line){x=!1;break}}x||(e.splice(0,u+1),u=0)}}function oc(e,r){var s=r.from.line,o=r.to.line,u=r.text.length-(o-s)-1;ic(e.done,s,o,u),ic(e.undone,s,o,u)}function qi(e,r,s,o){var u=r,m=r;return typeof r=="number"?m=oe(e,xt(e,r)):u=Ve(r),u==null?null:(o(m,u)&&e.cm&&gn(e.cm,u,s),m)}function ji(e){this.lines=e,this.parent=null;for(var r=0,s=0;s<e.length;++s)e[s].parent=this,r+=e[s].height;this.height=r}ji.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,r){for(var s=e,o=e+r;s<o;++s){var u=this.lines[s];this.height-=u.height,Ty(u),tr(u,"delete")}this.lines.splice(e,r)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,r,s){this.height+=s,this.lines=this.lines.slice(0,e).concat(r).concat(this.lines.slice(e));for(var o=0;o<r.length;++o)r[o].parent=this},iterN:function(e,r,s){for(var o=e+r;e<o;++e)if(s(this.lines[e]))return!0}};function $i(e){this.children=e;for(var r=0,s=0,o=0;o<e.length;++o){var u=e[o];r+=u.chunkSize(),s+=u.height,u.parent=this}this.size=r,this.height=s,this.parent=null}$i.prototype={chunkSize:function(){return this.size},removeInner:function(e,r){this.size-=r;for(var s=0;s<this.children.length;++s){var o=this.children[s],u=o.chunkSize();if(e<u){var m=Math.min(r,u-e),x=o.height;if(o.removeInner(e,m),this.height-=x-o.height,u==m&&(this.children.splice(s--,1),o.parent=null),(r-=m)==0)break;e=0}else e-=u}if(this.size-r<25&&(this.children.length>1||!(this.children[0]instanceof ji))){var E=[];this.collapse(E),this.children=[new ji(E)],this.children[0].parent=this}},collapse:function(e){for(var r=0;r<this.children.length;++r)this.children[r].collapse(e)},insertInner:function(e,r,s){this.size+=r.length,this.height+=s;for(var o=0;o<this.children.length;++o){var u=this.children[o],m=u.chunkSize();if(e<=m){if(u.insertInner(e,r,s),u.lines&&u.lines.length>50){for(var x=u.lines.length%25+25,E=x;E<u.lines.length;){var C=new ji(u.lines.slice(E,E+=25));u.height-=C.height,this.children.splice(++o,0,C),C.parent=this}u.lines=u.lines.slice(0,x),this.maybeSpill()}break}e-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var r=e.children.splice(e.children.length-5,5),s=new $i(r);if(e.parent){e.size-=s.size,e.height-=s.height;var u=ve(e.parent.children,e);e.parent.children.splice(u+1,0,s)}else{var o=new $i(e.children);o.parent=e,e.children=[o,s],e=o}s.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,r,s){for(var o=0;o<this.children.length;++o){var u=this.children[o],m=u.chunkSize();if(e<m){var x=Math.min(r,m-e);if(u.iterN(e,x,s))return!0;if((r-=x)==0)break;e=0}else e-=m}}};var Ui=function(e,r,s){if(s)for(var o in s)s.hasOwnProperty(o)&&(this[o]=s[o]);this.doc=e,this.node=r};Ui.prototype.clear=function(){var e=this.doc.cm,r=this.line.widgets,s=this.line,o=Ve(s);if(!(o==null||!r)){for(var u=0;u<r.length;++u)r[u]==this&&r.splice(u--,1);r.length||(s.widgets=null);var m=Li(this);Ae(s,Math.max(0,s.height-m)),e&&(Ar(e,function(){ac(e,s,-m),gn(e,o,"widget")}),tr(e,"lineWidgetCleared",e,this,o))}},Ui.prototype.changed=function(){var e=this,r=this.height,s=this.doc.cm,o=this.line;this.height=null;var u=Li(this)-r;!u||(mn(this.doc,o)||Ae(o,o.height+u),s&&Ar(s,function(){s.curOp.forceUpdate=!0,ac(s,o,u),tr(s,"lineWidgetChanged",s,e,Ve(o))}))},Kt(Ui);function ac(e,r,s){sn(r)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ls(e,s)}function Tb(e,r,s,o){var u=new Ui(e,s,o),m=e.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),qi(e,r,"widget",function(x){var E=x.widgets||(x.widgets=[]);if(u.insertAt==null?E.push(u):E.splice(Math.min(E.length,Math.max(0,u.insertAt)),0,u),u.line=x,m&&!mn(e,x)){var C=sn(x)<e.scrollTop;Ae(x,x.height+Li(u)),C&&ls(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&tr(m,"lineWidgetAdded",m,u,typeof r=="number"?r:Ve(r)),u}var sc=0,wn=function(e,r){this.lines=[],this.type=r,this.doc=e,this.id=++sc};wn.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,r=e&&!e.curOp;if(r&&On(e),Et(this,"clear")){var s=this.find();s&&tr(this,"clear",s.from,s.to)}for(var o=null,u=null,m=0;m<this.lines.length;++m){var x=this.lines[m],E=Ci(x.markedSpans,this);e&&!this.collapsed?gn(e,Ve(x),"text"):e&&(E.to!=null&&(u=Ve(x)),E.from!=null&&(o=Ve(x))),x.markedSpans=yy(x.markedSpans,E),E.from==null&&this.collapsed&&!mn(this.doc,x)&&e&&Ae(x,Yn(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var C=0;C<this.lines.length;++C){var L=Yr(this.lines[C]),V=_o(L);V>e.display.maxLineLength&&(e.display.maxLine=L,e.display.maxLineLength=V,e.display.maxLineChanged=!0)}o!=null&&e&&this.collapsed&&kr(e,o,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xu(e.doc)),e&&tr(e,"markerCleared",e,this,o,u),r&&Pn(e),this.parent&&this.parent.clear()}},wn.prototype.find=function(e,r){e==null&&this.type=="bookmark"&&(e=1);for(var s,o,u=0;u<this.lines.length;++u){var m=this.lines[u],x=Ci(m.markedSpans,this);if(x.from!=null&&(s=xe(r?m:Ve(m),x.from),e==-1))return s;if(x.to!=null&&(o=xe(r?m:Ve(m),x.to),e==1))return o}return s&&{from:s,to:o}},wn.prototype.changed=function(){var e=this,r=this.find(-1,!0),s=this,o=this.doc.cm;!r||!o||Ar(o,function(){var u=r.line,m=Ve(r.line),x=Ya(o,m);if(x&&(du(x),o.curOp.selectionChanged=o.curOp.forceUpdate=!0),o.curOp.updateMaxLine=!0,!mn(s.doc,u)&&s.height!=null){var E=s.height;s.height=null;var C=Li(s)-E;C&&Ae(u,u.height+C)}tr(o,"markerChanged",o,e)})},wn.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(!r.maybeHiddenMarkers||ve(r.maybeHiddenMarkers,this)==-1)&&(r.maybeUnhiddenMarkers||(r.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},wn.prototype.detachLine=function(e){if(this.lines.splice(ve(this.lines,e),1),!this.lines.length&&this.doc.cm){var r=this.doc.cm.curOp;(r.maybeHiddenMarkers||(r.maybeHiddenMarkers=[])).push(this)}},Kt(wn);function ii(e,r,s,o,u){if(o&&o.shared)return Ab(e,r,s,o,u);if(e.cm&&!e.cm.curOp)return rr(e.cm,ii)(e,r,s,o,u);var m=new wn(e,u),x=D(r,s);if(o&&M(o,m,!1),x>0||x==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=A("span",[m.replacedWith],"CodeMirror-widget"),o.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),o.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(Xl(e,r.line,r,s,m)||r.line!=s.line&&Xl(e,s.line,r,s,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");vy()}m.addToHistory&&Uu(e,{from:r,to:s,origin:"markText"},e.sel,NaN);var E=r.line,C=e.cm,L;if(e.iter(E,s.line+1,function(Q){C&&m.collapsed&&!C.options.lineWrapping&&Yr(Q)==C.display.maxLine&&(L=!0),m.collapsed&&E!=r.line&&Ae(Q,0),by(Q,new bo(m,E==r.line?r.ch:null,E==s.line?s.ch:null),e.cm&&e.cm.curOp),++E}),m.collapsed&&e.iter(r.line,s.line+1,function(Q){mn(e,Q)&&Ae(Q,0)}),m.clearOnEnter&&lt(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(gy(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),m.collapsed&&(m.id=++sc,m.atomic=!0),C){if(L&&(C.curOp.updateMaxLine=!0),m.collapsed)kr(C,r.line,s.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var V=r.line;V<=s.line;V++)gn(C,V,"text");m.atomic&&Xu(C.doc),tr(C,"markerAdded",C,m)}return m}var Hi=function(e,r){this.markers=e,this.primary=r;for(var s=0;s<e.length;++s)e[s].parent=this};Hi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();tr(this,"clear")}},Hi.prototype.find=function(e,r){return this.primary.find(e,r)},Kt(Hi);function Ab(e,r,s,o,u){o=M(o),o.shared=!1;var m=[ii(e,r,s,o,u)],x=m[0],E=o.widgetNode;return xn(e,function(C){E&&(o.widgetNode=E.cloneNode(!0)),m.push(ii(C,Xe(C,r),Xe(C,s),o,u));for(var L=0;L<C.linked.length;++L)if(C.linked[L].isParent)return;x=Re(m)}),new Hi(m,x)}function lc(e){return e.findMarks(xe(e.first,0),e.clipPos(xe(e.lastLine())),function(r){return r.parent})}function Lb(e,r){for(var s=0;s<r.length;s++){var o=r[s],u=o.find(),m=e.clipPos(u.from),x=e.clipPos(u.to);if(D(m,x)){var E=ii(e,m,x,o.primary,o.primary.type);o.markers.push(E),E.parent=o}}}function Db(e){for(var r=function(o){var u=e[o],m=[u.primary.doc];xn(u.primary.doc,function(C){return m.push(C)});for(var x=0;x<u.markers.length;x++){var E=u.markers[x];ve(m,E.doc)==-1&&(E.parent=null,u.markers.splice(x--,1))}},s=0;s<e.length;s++)r(s)}var Ib=0,_r=function(e,r,s,o,u){if(!(this instanceof _r))return new _r(e,r,s,o,u);s==null&&(s=0),$i.call(this,[new ji([new Gn("",null)])]),this.first=s,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=s;var m=xe(s,0);this.sel=yn(m),this.history=new Oo(null),this.id=++Ib,this.modeOption=r,this.lineSep=o,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),gs(this,{from:m,to:m,text:e}),pr(this,yn(m),qe)};_r.prototype=He($i.prototype,{constructor:_r,iter:function(e,r,s){s?this.iterN(e-this.first,r-e,s):this.iterN(this.first,this.first+this.size,e)},insert:function(e,r){for(var s=0,o=0;o<r.length;++o)s+=r[o].height;this.insertInner(e-this.first,r,s)},remove:function(e,r){this.removeInner(e-this.first,r)},getValue:function(e){var r=Ce(this,this.first,this.first+this.size);return e===!1?r:r.join(e||this.lineSeparator())},setValue:nr(function(e){var r=xe(this.first,0),s=this.first+this.size-1;ri(this,{from:r,to:xe(s,oe(this,s).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Fi(this.cm,0,0),pr(this,yn(r),qe)}),replaceRange:function(e,r,s,o){r=Xe(this,r),s=s?Xe(this,s):r,ni(this,e,r,s,o)},getRange:function(e,r,s){var o=he(this,Xe(this,e),Xe(this,r));return s===!1?o:o.join(s||this.lineSeparator())},getLine:function(e){var r=this.getLineHandle(e);return r&&r.text},getLineHandle:function(e){if(bt(this,e))return oe(this,e)},getLineNumber:function(e){return Ve(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=oe(this,e)),Yr(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Xe(this,e)},getCursor:function(e){var r=this.sel.primary(),s;return e==null||e=="head"?s=r.head:e=="anchor"?s=r.anchor:e=="end"||e=="to"||e===!1?s=r.to():s=r.from(),s},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:nr(function(e,r,s){Ku(this,Xe(this,typeof e=="number"?xe(e,r||0):e),null,s)}),setSelection:nr(function(e,r,s){Ku(this,Xe(this,e),Xe(this,r||e),s)}),extendSelection:nr(function(e,r,s){Ro(this,Xe(this,e),r&&Xe(this,r),s)}),extendSelections:nr(function(e,r){Gu(this,Fr(this,e),r)}),extendSelectionsBy:nr(function(e,r){var s=Ie(this.sel.ranges,e);Gu(this,Fr(this,s),r)}),setSelections:nr(function(e,r,s){if(!!e.length){for(var o=[],u=0;u<e.length;u++)o[u]=new Tt(Xe(this,e[u].anchor),Xe(this,e[u].head||e[u].anchor));r==null&&(r=Math.min(e.length-1,this.sel.primIndex)),pr(this,Hr(this.cm,o,r),s)}}),addSelection:nr(function(e,r,s){var o=this.sel.ranges.slice(0);o.push(new Tt(Xe(this,e),Xe(this,r||e))),pr(this,Hr(this.cm,o,o.length-1),s)}),getSelection:function(e){for(var r=this.sel.ranges,s,o=0;o<r.length;o++){var u=he(this,r[o].from(),r[o].to());s=s?s.concat(u):u}return e===!1?s:s.join(e||this.lineSeparator())},getSelections:function(e){for(var r=[],s=this.sel.ranges,o=0;o<s.length;o++){var u=he(this,s[o].from(),s[o].to());e!==!1&&(u=u.join(e||this.lineSeparator())),r[o]=u}return r},replaceSelection:function(e,r,s){for(var o=[],u=0;u<this.sel.ranges.length;u++)o[u]=e;this.replaceSelections(o,r,s||"+input")},replaceSelections:nr(function(e,r,s){for(var o=[],u=this.sel,m=0;m<u.ranges.length;m++){var x=u.ranges[m];o[m]={from:x.from(),to:x.to(),text:this.splitLines(e[m]),origin:s}}for(var E=r&&r!="end"&&yb(this,o,r),C=o.length-1;C>=0;C--)ri(this,o[C]);E?Vu(this,E):this.cm&&Qn(this.cm)}),undo:nr(function(){Bo(this,"undo")}),redo:nr(function(){Bo(this,"redo")}),undoSelection:nr(function(){Bo(this,"undo",!0)}),redoSelection:nr(function(){Bo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,r=0,s=0,o=0;o<e.done.length;o++)e.done[o].ranges||++r;for(var u=0;u<e.undone.length;u++)e.undone[u].ranges||++s;return{undo:r,redo:s}},clearHistory:function(){var e=this;this.history=new Oo(this.history),xn(this,function(r){return r.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ei(this.history.done),undone:ei(this.history.undone)}},setHistory:function(e){var r=this.history=new Oo(this.history);r.done=ei(e.done.slice(0),null,!0),r.undone=ei(e.undone.slice(0),null,!0)},setGutterMarker:nr(function(e,r,s){return qi(this,e,"gutter",function(o){var u=o.gutterMarkers||(o.gutterMarkers={});return u[r]=s,!s&&fe(u)&&(o.gutterMarkers=null),!0})}),clearGutter:nr(function(e){var r=this;this.iter(function(s){s.gutterMarkers&&s.gutterMarkers[e]&&qi(r,s,"gutter",function(){return s.gutterMarkers[e]=null,fe(s.gutterMarkers)&&(s.gutterMarkers=null),!0})})}),lineInfo:function(e){var r;if(typeof e=="number"){if(!bt(this,e)||(r=e,e=oe(this,e),!e))return null}else if(r=Ve(e),r==null)return null;return{line:r,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:nr(function(e,r,s){return qi(this,e,r=="gutter"?"gutter":"class",function(o){var u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass";if(!o[u])o[u]=s;else{if(K(s).test(o[u]))return!1;o[u]+=" "+s}return!0})}),removeLineClass:nr(function(e,r,s){return qi(this,e,r=="gutter"?"gutter":"class",function(o){var u=r=="text"?"textClass":r=="background"?"bgClass":r=="gutter"?"gutterClass":"wrapClass",m=o[u];if(m)if(s==null)o[u]=null;else{var x=m.match(K(s));if(!x)return!1;var E=x.index+x[0].length;o[u]=m.slice(0,x.index)+(!x.index||E==m.length?"":" ")+m.slice(E)||null}else return!1;return!0})}),addLineWidget:nr(function(e,r,s){return Tb(this,e,r,s)}),removeLineWidget:function(e){e.clear()},markText:function(e,r,s){return ii(this,Xe(this,e),Xe(this,r),s,s&&s.type||"range")},setBookmark:function(e,r){var s={replacedWith:r&&(r.nodeType==null?r.widget:r),insertLeft:r&&r.insertLeft,clearWhenEmpty:!1,shared:r&&r.shared,handleMouseEvents:r&&r.handleMouseEvents};return e=Xe(this,e),ii(this,e,e,s,"bookmark")},findMarksAt:function(e){e=Xe(this,e);var r=[],s=oe(this,e.line).markedSpans;if(s)for(var o=0;o<s.length;++o){var u=s[o];(u.from==null||u.from<=e.ch)&&(u.to==null||u.to>=e.ch)&&r.push(u.marker.parent||u.marker)}return r},findMarks:function(e,r,s){e=Xe(this,e),r=Xe(this,r);var o=[],u=e.line;return this.iter(e.line,r.line+1,function(m){var x=m.markedSpans;if(x)for(var E=0;E<x.length;E++){var C=x[E];!(C.to!=null&&u==e.line&&e.ch>=C.to||C.from==null&&u!=e.line||C.from!=null&&u==r.line&&C.from>=r.ch)&&(!s||s(C.marker))&&o.push(C.marker.parent||C.marker)}++u}),o},getAllMarks:function(){var e=[];return this.iter(function(r){var s=r.markedSpans;if(s)for(var o=0;o<s.length;++o)s[o].from!=null&&e.push(s[o].marker)}),e},posFromIndex:function(e){var r,s=this.first,o=this.lineSeparator().length;return this.iter(function(u){var m=u.text.length+o;if(m>e)return r=e,!0;e-=m,++s}),Xe(this,xe(s,r))},indexFromPos:function(e){e=Xe(this,e);var r=e.ch;if(e.line<this.first||e.ch<0)return 0;var s=this.lineSeparator().length;return this.iter(this.first,e.line,function(o){r+=o.text.length+s}),r},copy:function(e){var r=new _r(Ce(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return r.scrollTop=this.scrollTop,r.scrollLeft=this.scrollLeft,r.sel=this.sel,r.extend=!1,e&&(r.history.undoDepth=this.history.undoDepth,r.setHistory(this.getHistory())),r},linkedDoc:function(e){e||(e={});var r=this.first,s=this.first+this.size;e.from!=null&&e.from>r&&(r=e.from),e.to!=null&&e.to<s&&(s=e.to);var o=new _r(Ce(this,r,s),e.mode||this.modeOption,r,this.lineSep,this.direction);return e.sharedHist&&(o.history=this.history),(this.linked||(this.linked=[])).push({doc:o,sharedHist:e.sharedHist}),o.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Lb(o,lc(this)),o},unlinkDoc:function(e){if(e instanceof Nt&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var s=this.linked[r];if(s.doc==e){this.linked.splice(r,1),e.unlinkDoc(this),Db(lc(this));break}}if(e.history==this.history){var o=[e.id];xn(e,function(u){return o.push(u.id)},!0),e.history=new Oo(null),e.history.done=ei(this.history.done,o),e.history.undone=ei(this.history.undone,o)}},iterLinkedDocs:function(e){xn(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):ne(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:nr(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(r){return r.order=null}),this.cm&&bb(this.cm))})}),_r.prototype.eachLine=_r.prototype.iter;var uc=0;function Fb(e){var r=this;if(cc(r),!(wt(r,e)||ln(r.display,e))){kt(e),a&&(uc=+new Date);var s=Dn(r,e,!0),o=e.dataTransfer.files;if(!(!s||r.isReadOnly()))if(o&&o.length&&window.FileReader&&window.File)for(var u=o.length,m=Array(u),x=0,E=function(){++x==u&&rr(r,function(){s=Xe(r.doc,s);var ae={from:s,to:s,text:r.doc.splitLines(m.filter(function(ye){return ye!=null}).join(r.doc.lineSeparator())),origin:"paste"};ri(r.doc,ae),Vu(r.doc,yn(Xe(r.doc,s),Xe(r.doc,bn(ae))))})()},C=function(ae,ye){if(r.options.allowDropFileTypes&&ve(r.options.allowDropFileTypes,ae.type)==-1){E();return}var Te=new FileReader;Te.onerror=function(){return E()},Te.onload=function(){var Oe=Te.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Oe)){E();return}m[ye]=Oe,E()},Te.readAsText(ae)},L=0;L<o.length;L++)C(o[L],L);else{if(r.state.draggingText&&r.doc.sel.contains(s)>-1){r.state.draggingText(e),setTimeout(function(){return r.display.input.focus()},20);return}try{var V=e.dataTransfer.getData("Text");if(V){var Q;if(r.state.draggingText&&!r.state.draggingText.copy&&(Q=r.listSelections()),zo(r.doc,yn(s,s)),Q)for(var ce=0;ce<Q.length;++ce)ni(r.doc,"",Q[ce].anchor,Q[ce].head,"drag");r.replaceSelection(V,"around","paste"),r.display.input.focus()}}catch(ae){}}}}function Mb(e,r){if(a&&(!e.state.draggingText||+new Date-uc<100)){Ir(r);return}if(!(wt(e,r)||ln(e.display,r))&&(r.dataTransfer.setData("Text",e.getSelection()),r.dataTransfer.effectAllowed="copyMove",r.dataTransfer.setDragImage&&!v)){var s=T("img",null,null,"position: fixed; left: 0; top: 0;");s.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g&&(s.width=s.height=1,e.display.wrapper.appendChild(s),s._top=s.offsetTop),r.dataTransfer.setDragImage(s,0,0),g&&s.parentNode.removeChild(s)}}function Ob(e,r){var s=Dn(e,r);if(!!s){var o=document.createDocumentFragment();_u(e,s,o),e.display.dragCursor||(e.display.dragCursor=T("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),q(e.display.dragCursor,o)}}function cc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function fc(e){if(!!document.getElementsByClassName){for(var r=document.getElementsByClassName("CodeMirror"),s=[],o=0;o<r.length;o++){var u=r[o].CodeMirror;u&&s.push(u)}s.length&&s[0].operation(function(){for(var m=0;m<s.length;m++)e(s[m])})}}var dc=!1;function Pb(){dc||(Rb(),dc=!0)}function Rb(){var e;lt(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,fc(zb)},100))}),lt(window,"blur",function(){return fc(Zn)})}function zb(e){var r=e.display;r.cachedCharWidth=r.cachedTextHeight=r.cachedPaddingH=null,r.scrollbarsClipped=!1,e.setSize()}for(var kn={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"},Wi=0;Wi<10;Wi++)kn[Wi+48]=kn[Wi+96]=String(Wi);for(var qo=65;qo<=90;qo++)kn[qo]=String.fromCharCode(qo);for(var Gi=1;Gi<=12;Gi++)kn[Gi+111]=kn[Gi+63235]="F"+Gi;var un={};un.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"},un.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"},un.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"},un.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"]},un.default=S?un.macDefault:un.pcDefault;function Nb(e){var r=e.split(/-(?!$)/);e=r[r.length-1];for(var s,o,u,m,x=0;x<r.length-1;x++){var E=r[x];if(/^(cmd|meta|m)$/i.test(E))m=!0;else if(/^a(lt)?$/i.test(E))s=!0;else if(/^(c|ctrl|control)$/i.test(E))o=!0;else if(/^s(hift)?$/i.test(E))u=!0;else throw new Error("Unrecognized modifier name: "+E)}return s&&(e="Alt-"+e),o&&(e="Ctrl-"+e),m&&(e="Cmd-"+e),u&&(e="Shift-"+e),e}function Bb(e){var r={};for(var s in e)if(e.hasOwnProperty(s)){var o=e[s];if(/^(name|fallthrough|(de|at)tach)$/.test(s))continue;if(o=="..."){delete e[s];continue}for(var u=Ie(s.split(" "),Nb),m=0;m<u.length;m++){var x=void 0,E=void 0;m==u.length-1?(E=u.join(" "),x=o):(E=u.slice(0,m+1).join(" "),x="...");var C=r[E];if(!C)r[E]=x;else if(C!=x)throw new Error("Inconsistent bindings for "+E)}delete e[s]}for(var L in r)e[L]=r[L];return e}function oi(e,r,s,o){r=jo(r);var u=r.call?r.call(e,o):r[e];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&s(u))return"handled";if(r.fallthrough){if(Object.prototype.toString.call(r.fallthrough)!="[object Array]")return oi(e,r.fallthrough,s,o);for(var m=0;m<r.fallthrough.length;m++){var x=oi(e,r.fallthrough[m],s,o);if(x)return x}}}function hc(e){var r=typeof e=="string"?e:kn[e.keyCode];return r=="Ctrl"||r=="Alt"||r=="Shift"||r=="Mod"}function pc(e,r,s){var o=e;return r.altKey&&o!="Alt"&&(e="Alt-"+e),($?r.metaKey:r.ctrlKey)&&o!="Ctrl"&&(e="Ctrl-"+e),($?r.ctrlKey:r.metaKey)&&o!="Mod"&&(e="Cmd-"+e),!s&&r.shiftKey&&o!="Shift"&&(e="Shift-"+e),e}function mc(e,r){if(g&&e.keyCode==34&&e.char)return!1;var s=kn[e.keyCode];return s==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(s=e.code),pc(s,e,r))}function jo(e){return typeof e=="string"?un[e]:e}function ai(e,r){for(var s=e.doc.sel.ranges,o=[],u=0;u<s.length;u++){for(var m=r(s[u]);o.length&&D(m.from,Re(o).to)<=0;){var x=o.pop();if(D(x.from,m.from)<0){m.from=x.from;break}}o.push(m)}Ar(e,function(){for(var E=o.length-1;E>=0;E--)ni(e.doc,"",o[E].from,o[E].to,"+delete");Qn(e)})}function xs(e,r,s){var o=Ne(e.text,r+s,s);return o<0||o>e.text.length?null:o}function ws(e,r,s){var o=xs(e,r.ch,s);return o==null?null:new xe(r.line,o,s<0?"after":"before")}function ks(e,r,s,o,u){if(e){r.doc.direction=="rtl"&&(u=-u);var m=Lt(s,r.doc.direction);if(m){var x=u<0?Re(m):m[0],E=u<0==(x.level==1),C=E?"after":"before",L;if(x.level>0||r.doc.direction=="rtl"){var V=Vn(r,s);L=u<0?s.text.length-1:0;var Q=Zr(r,V,L).top;L=ot(function(ce){return Zr(r,V,ce).top==Q},u<0==(x.level==1)?x.from:x.to-1,L),C=="before"&&(L=xs(s,L,1))}else L=u<0?x.to:x.from;return new xe(o,L,C)}}return new xe(o,u<0?s.text.length:0,u<0?"before":"after")}function qb(e,r,s,o){var u=Lt(r,e.doc.direction);if(!u)return ws(r,s,o);s.ch>=r.text.length?(s.ch=r.text.length,s.sticky="before"):s.ch<=0&&(s.ch=0,s.sticky="after");var m=We(u,s.ch,s.sticky),x=u[m];if(e.doc.direction=="ltr"&&x.level%2==0&&(o>0?x.to>s.ch:x.from<s.ch))return ws(r,s,o);var E=function(je,tt){return xs(r,je instanceof xe?je.ch:je,tt)},C,L=function(je){return e.options.lineWrapping?(C=C||Vn(e,r),bu(e,r,C,je)):{begin:0,end:r.text.length}},V=L(s.sticky=="before"?E(s,-1):s.ch);if(e.doc.direction=="rtl"||x.level==1){var Q=x.level==1==o<0,ce=E(s,Q?1:-1);if(ce!=null&&(Q?ce<=x.to&&ce<=V.end:ce>=x.from&&ce>=V.begin)){var ae=Q?"before":"after";return new xe(s.line,ce,ae)}}var ye=function(je,tt,$e){for(var nt=function(Pt,ir){return ir?new xe(s.line,E(Pt,1),"before"):new xe(s.line,Pt,"after")};je>=0&&je<u.length;je+=tt){var ct=u[je],ut=tt>0==(ct.level!=1),vt=ut?$e.begin:E($e.end,-1);if(ct.from<=vt&&vt<ct.to||(vt=ut?ct.from:E(ct.to,-1),$e.begin<=vt&&vt<$e.end))return nt(vt,ut)}},Te=ye(m+o,o,V);if(Te)return Te;var Oe=o>0?V.end:E(V.begin,-1);return Oe!=null&&!(o>0&&Oe==r.text.length)&&(Te=ye(o>0?0:u.length-1,o,L(Oe)),Te)?Te:null}var Ki={selectAll:Ju,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),qe)},killLine:function(e){return ai(e,function(r){if(r.empty()){var s=oe(e.doc,r.head.line).text.length;return r.head.ch==s&&r.head.line<e.lastLine()?{from:r.head,to:xe(r.head.line+1,0)}:{from:r.head,to:xe(r.head.line,s)}}else return{from:r.from(),to:r.to()}})},deleteLine:function(e){return ai(e,function(r){return{from:xe(r.from().line,0),to:Xe(e.doc,xe(r.to().line+1,0))}})},delLineLeft:function(e){return ai(e,function(r){return{from:xe(r.from().line,0),to:r.from()}})},delWrappedLineLeft:function(e){return ai(e,function(r){var s=e.charCoords(r.head,"div").top+5,o=e.coordsChar({left:0,top:s},"div");return{from:o,to:r.from()}})},delWrappedLineRight:function(e){return ai(e,function(r){var s=e.charCoords(r.head,"div").top+5,o=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div");return{from:r.from(),to:o}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(xe(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(xe(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(r){return gc(e,r.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(r){return vc(e,r.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(r){return jb(e,r.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:s},"div")},ke)},goLineLeft:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5;return e.coordsChar({left:0,top:s},"div")},ke)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(r){var s=e.cursorCoords(r.head,"div").top+5,o=e.coordsChar({left:0,top:s},"div");return o.ch<e.getLine(o.line).search(/\S/)?vc(e,r.head):o},ke)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var r=[],s=e.listSelections(),o=e.options.tabSize,u=0;u<s.length;u++){var m=s[u].from(),x=we(e.getLine(m.line),m.ch,o);r.push(gt(o-x%o))}e.replaceSelections(r)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Ar(e,function(){for(var r=e.listSelections(),s=[],o=0;o<r.length;o++)if(!!r[o].empty()){var u=r[o].head,m=oe(e.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new xe(u.line,u.ch-1)),u.ch>0)u=new xe(u.line,u.ch+1),e.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),xe(u.line,u.ch-2),u,"+transpose");else if(u.line>e.doc.first){var x=oe(e.doc,u.line-1).text;x&&(u=new xe(u.line,1),e.replaceRange(m.charAt(0)+e.doc.lineSeparator()+x.charAt(x.length-1),xe(u.line-1,x.length-1),u,"+transpose"))}}s.push(new Tt(u,u))}e.setSelections(s)})},newlineAndIndent:function(e){return Ar(e,function(){for(var r=e.listSelections(),s=r.length-1;s>=0;s--)e.replaceRange(e.doc.lineSeparator(),r[s].anchor,r[s].head,"+input");r=e.listSelections();for(var o=0;o<r.length;o++)e.indentLine(r[o].from().line,null,!0);Qn(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function gc(e,r){var s=oe(e.doc,r),o=Yr(s);return o!=s&&(r=Ve(o)),ks(!0,e,o,r,1)}function jb(e,r){var s=oe(e.doc,r),o=Sy(s);return o!=s&&(r=Ve(o)),ks(!0,e,s,r,-1)}function vc(e,r){var s=gc(e,r.line),o=oe(e.doc,s.line),u=Lt(o,e.doc.direction);if(!u||u[0].level==0){var m=Math.max(s.ch,o.text.search(/\S/)),x=r.line==s.line&&r.ch<=m&&r.ch;return xe(s.line,x?0:m,s.sticky)}return s}function $o(e,r,s){if(typeof r=="string"&&(r=Ki[r],!r))return!1;e.display.input.ensurePolled();var o=e.display.shift,u=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),s&&(e.display.shift=!1),u=r(e)!=ze}finally{e.display.shift=o,e.state.suppressEdits=!1}return u}function $b(e,r,s){for(var o=0;o<e.state.keyMaps.length;o++){var u=oi(r,e.state.keyMaps[o],s,e);if(u)return u}return e.options.extraKeys&&oi(r,e.options.extraKeys,s,e)||oi(r,e.options.keyMap,s,e)}var Ub=new Pe;function Vi(e,r,s,o){var u=e.state.keySeq;if(u){if(hc(r))return"handled";if(/\'$/.test(r)?e.state.keySeq=null:Ub.set(50,function(){e.state.keySeq==u&&(e.state.keySeq=null,e.display.input.reset())}),yc(e,u+" "+r,s,o))return!0}return yc(e,r,s,o)}function yc(e,r,s,o){var u=$b(e,r,o);return u=="multi"&&(e.state.keySeq=r),u=="handled"&&tr(e,"keyHandled",e,r,s),(u=="handled"||u=="multi")&&(kt(s),is(e)),!!u}function bc(e,r){var s=mc(r,!0);return s?r.shiftKey&&!e.state.keySeq?Vi(e,"Shift-"+s,r,function(o){return $o(e,o,!0)})||Vi(e,s,r,function(o){if(typeof o=="string"?/^go[A-Z]/.test(o):o.motion)return $o(e,o)}):Vi(e,s,r,function(o){return $o(e,o)}):!1}function Hb(e,r,s){return Vi(e,"'"+s+"'",r,function(o){return $o(e,o,!0)})}var _s=null;function xc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&(r.curOp.focus=F(),!wt(r,e))){a&&h<11&&e.keyCode==27&&(e.returnValue=!1);var s=e.keyCode;r.display.shift=s==16||e.shiftKey;var o=bc(r,e);g&&(_s=o?s:null,!o&&s==88&&!Z&&(S?e.metaKey:e.ctrlKey)&&r.replaceSelection("",null,"cut")),n&&!S&&!o&&s==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),s==18&&!/\bCodeMirror-crosshair\b/.test(r.display.lineDiv.className)&&Wb(r)}}function Wb(e){var r=e.display.lineDiv;z(r,"CodeMirror-crosshair");function s(o){(o.keyCode==18||!o.altKey)&&(X(r,"CodeMirror-crosshair"),pt(document,"keyup",s),pt(document,"mouseover",s))}lt(document,"keyup",s),lt(document,"mouseover",s)}function wc(e){e.keyCode==16&&(this.doc.sel.shift=!1),wt(this,e)}function kc(e){var r=this;if(!(e.target&&e.target!=r.display.input.getField())&&!(ln(r.display,e)||wt(r,e)||e.ctrlKey&&!e.altKey||S&&e.metaKey)){var s=e.keyCode,o=e.charCode;if(g&&s==_s){_s=null,kt(e);return}if(!(g&&(!e.which||e.which<10)&&bc(r,e))){var u=String.fromCharCode(o==null?s:o);u!="\b"&&(Hb(r,e,u)||r.display.input.onKeyPress(e))}}}var Gb=400,Ss=function(e,r,s){this.time=e,this.pos=r,this.button=s};Ss.prototype.compare=function(e,r,s){return this.time+Gb>e&&D(r,this.pos)==0&&s==this.button};var Yi,Xi;function Kb(e,r){var s=+new Date;return Xi&&Xi.compare(s,e,r)?(Yi=Xi=null,"triple"):Yi&&Yi.compare(s,e,r)?(Xi=new Ss(s,e,r),Yi=null,"double"):(Yi=new Ss(s,e,r),Xi=null,"single")}function _c(e){var r=this,s=r.display;if(!(wt(r,e)||s.activeTouch&&s.input.supportsTouch())){if(s.input.ensurePolled(),s.shift=e.shiftKey,ln(s,e)){f||(s.scroller.draggable=!1,setTimeout(function(){return s.scroller.draggable=!0},100));return}if(!Es(r,e)){var o=Dn(r,e),u=hr(e),m=o?Kb(o,u):"single";window.focus(),u==1&&r.state.selectingText&&r.state.selectingText(e),!(o&&Vb(r,u,o,m,e))&&(u==1?o?Xb(r,o,m,e):dr(e)==s.scroller&&kt(e):u==2?(o&&Ro(r.doc,o),setTimeout(function(){return s.input.focus()},20)):u==3&&(J?r.display.input.onContextMenu(e):os(r)))}}}function Vb(e,r,s,o,u){var m="Click";return o=="double"?m="Double"+m:o=="triple"&&(m="Triple"+m),m=(r==1?"Left":r==2?"Middle":"Right")+m,Vi(e,pc(m,u),u,function(x){if(typeof x=="string"&&(x=Ki[x]),!x)return!1;var E=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),E=x(e,s)!=ze}finally{e.state.suppressEdits=!1}return E})}function Yb(e,r,s){var o=e.getOption("configureMouse"),u=o?o(e,r,s):{};if(u.unit==null){var m=R?s.shiftKey&&s.metaKey:s.altKey;u.unit=m?"rectangle":r=="single"?"char":r=="double"?"word":"line"}return(u.extend==null||e.doc.extend)&&(u.extend=e.doc.extend||s.shiftKey),u.addNew==null&&(u.addNew=S?s.metaKey:s.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!(S?s.altKey:s.ctrlKey)),u}function Xb(e,r,s,o){a?setTimeout(W(Su,e),0):e.curOp.focus=F();var u=Yb(e,s,o),m=e.doc.sel,x;e.options.dragDrop&&$r&&!e.isReadOnly()&&s=="single"&&(x=m.contains(r))>-1&&(D((x=m.ranges[x]).from(),r)<0||r.xRel>0)&&(D(x.to(),r)>0||r.xRel<0)?Zb(e,o,r,u):Qb(e,o,r,u)}function Zb(e,r,s,o){var u=e.display,m=!1,x=rr(e,function(L){f&&(u.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:os(e)),pt(u.wrapper.ownerDocument,"mouseup",x),pt(u.wrapper.ownerDocument,"mousemove",E),pt(u.scroller,"dragstart",C),pt(u.scroller,"drop",x),m||(kt(L),o.addNew||Ro(e.doc,s,null,null,o.extend),f&&!v||a&&h==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),E=function(L){m=m||Math.abs(r.clientX-L.clientX)+Math.abs(r.clientY-L.clientY)>=10},C=function(){return m=!0};f&&(u.scroller.draggable=!0),e.state.draggingText=x,x.copy=!o.moveOnDrag,lt(u.wrapper.ownerDocument,"mouseup",x),lt(u.wrapper.ownerDocument,"mousemove",E),lt(u.scroller,"dragstart",C),lt(u.scroller,"drop",x),e.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Sc(e,r,s){if(s=="char")return new Tt(r,r);if(s=="word")return e.findWordAt(r);if(s=="line")return new Tt(xe(r.line,0),Xe(e.doc,xe(r.line+1,0)));var o=s(e,r);return new Tt(o.from,o.to)}function Qb(e,r,s,o){a&&os(e);var u=e.display,m=e.doc;kt(r);var x,E,C=m.sel,L=C.ranges;if(o.addNew&&!o.extend?(E=m.sel.contains(s),E>-1?x=L[E]:x=new Tt(s,s)):(x=m.sel.primary(),E=m.sel.primIndex),o.unit=="rectangle")o.addNew||(x=new Tt(s,s)),s=Dn(e,r,!0,!0),E=-1;else{var V=Sc(e,s,o.unit);o.extend?x=ys(x,V.anchor,V.head,o.extend):x=V}o.addNew?E==-1?(E=L.length,pr(m,Hr(e,L.concat([x]),E),{scroll:!1,origin:"*mouse"})):L.length>1&&L[E].empty()&&o.unit=="char"&&!o.extend?(pr(m,Hr(e,L.slice(0,E).concat(L.slice(E+1)),0),{scroll:!1,origin:"*mouse"}),C=m.sel):bs(m,E,x,me):(E=0,pr(m,new Or([x],0),me),C=m.sel);var Q=s;function ce($e){if(D(Q,$e)!=0)if(Q=$e,o.unit=="rectangle"){for(var nt=[],ct=e.options.tabSize,ut=we(oe(m,s.line).text,s.ch,ct),vt=we(oe(m,$e.line).text,$e.ch,ct),Pt=Math.min(ut,vt),ir=Math.max(ut,vt),Bt=Math.min(s.line,$e.line),Lr=Math.min(e.lastLine(),Math.max(s.line,$e.line));Bt<=Lr;Bt++){var Sr=oe(m,Bt).text,Yt=Ue(Sr,Pt,ct);Pt==ir?nt.push(new Tt(xe(Bt,Yt),xe(Bt,Yt))):Sr.length>Yt&&nt.push(new Tt(xe(Bt,Yt),xe(Bt,Ue(Sr,ir,ct))))}nt.length||nt.push(new Tt(s,s)),pr(m,Hr(e,C.ranges.slice(0,E).concat(nt),E),{origin:"*mouse",scroll:!1}),e.scrollIntoView($e)}else{var Er=x,lr=Sc(e,$e,o.unit),Qt=Er.anchor,Xt;D(lr.anchor,Qt)>0?(Xt=lr.head,Qt=ft(Er.from(),lr.anchor)):(Xt=lr.anchor,Qt=De(Er.to(),lr.head));var jt=C.ranges.slice(0);jt[E]=Jb(e,new Tt(Xe(m,Qt),Xt)),pr(m,Hr(e,jt,E),me)}}var ae=u.wrapper.getBoundingClientRect(),ye=0;function Te($e){var nt=++ye,ct=Dn(e,$e,!0,o.unit=="rectangle");if(!!ct)if(D(ct,Q)!=0){e.curOp.focus=F(),ce(ct);var ut=Do(u,m);(ct.line>=ut.to||ct.line<ut.from)&&setTimeout(rr(e,function(){ye==nt&&Te($e)}),150)}else{var vt=$e.clientY<ae.top?-20:$e.clientY>ae.bottom?20:0;vt&&setTimeout(rr(e,function(){ye==nt&&(u.scroller.scrollTop+=vt,Te($e))}),50)}}function Oe($e){e.state.selectingText=!1,ye=Infinity,$e&&(kt($e),u.input.focus()),pt(u.wrapper.ownerDocument,"mousemove",je),pt(u.wrapper.ownerDocument,"mouseup",tt),m.history.lastSelOrigin=null}var je=rr(e,function($e){$e.buttons===0||!hr($e)?Oe($e):Te($e)}),tt=rr(e,Oe);e.state.selectingText=tt,lt(u.wrapper.ownerDocument,"mousemove",je),lt(u.wrapper.ownerDocument,"mouseup",tt)}function Jb(e,r){var s=r.anchor,o=r.head,u=oe(e.doc,s.line);if(D(s,o)==0&&s.sticky==o.sticky)return r;var m=Lt(u);if(!m)return r;var x=We(m,s.ch,s.sticky),E=m[x];if(E.from!=s.ch&&E.to!=s.ch)return r;var C=x+(E.from==s.ch==(E.level!=1)?0:1);if(C==0||C==m.length)return r;var L;if(o.line!=s.line)L=(o.line-s.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var V=We(m,o.ch,o.sticky),Q=V-x||(o.ch-s.ch)*(E.level==1?-1:1);V==C-1||V==C?L=Q<0:L=Q>0}var ce=m[C+(L?-1:0)],ae=L==(ce.level==1),ye=ae?ce.from:ce.to,Te=ae?"after":"before";return s.ch==ye&&s.sticky==Te?r:new Tt(new xe(s.line,ye,Te),o)}function Ec(e,r,s,o){var u,m;if(r.touches)u=r.touches[0].clientX,m=r.touches[0].clientY;else try{u=r.clientX,m=r.clientY}catch(ce){return!1}if(u>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;o&&kt(r);var x=e.display,E=x.lineDiv.getBoundingClientRect();if(m>E.bottom||!Et(e,s))return Ht(r);m-=E.top-x.viewOffset;for(var C=0;C<e.display.gutterSpecs.length;++C){var L=x.gutters.childNodes[C];if(L&&L.getBoundingClientRect().right>=u){var V=et(e.doc,m),Q=e.display.gutterSpecs[C];return rt(e,s,e,V,Q.className,r),Ht(r)}}}function Es(e,r){return Ec(e,r,"gutterClick",!0)}function Cc(e,r){ln(e.display,r)||ex(e,r)||wt(e,r,"contextmenu")||J||e.display.input.onContextMenu(r)}function ex(e,r){return Et(e,"gutterContextMenu")?Ec(e,r,"gutterContextMenu",!1):!1}function Tc(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Di(e)}var si={toString:function(){return"CodeMirror.Init"}},Ac={},Uo={};function tx(e){var r=e.optionHandlers;function s(o,u,m,x){e.defaults[o]=u,m&&(r[o]=x?function(E,C,L){L!=si&&m(E,C,L)}:m)}e.defineOption=s,e.Init=si,s("value","",function(o,u){return o.setValue(u)},!0),s("mode",null,function(o,u){o.doc.modeOption=u,ms(o)},!0),s("indentUnit",2,ms,!0),s("indentWithTabs",!1),s("smartIndent",!0),s("tabSize",4,function(o){Ni(o),Di(o),kr(o)},!0),s("lineSeparator",null,function(o,u){if(o.doc.lineSep=u,!!u){var m=[],x=o.doc.first;o.doc.iter(function(C){for(var L=0;;){var V=C.text.indexOf(u,L);if(V==-1)break;L=V+u.length,m.push(xe(x,V))}x++});for(var E=m.length-1;E>=0;E--)ni(o.doc,u,m[E],xe(m[E].line,m[E].ch+u.length))}}),s("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(o,u,m){o.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=si&&o.refresh()}),s("specialCharPlaceholder",Dy,function(o){return o.refresh()},!0),s("electricChars",!0),s("inputStyle",I?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),s("spellcheck",!1,function(o,u){return o.getInputField().spellcheck=u},!0),s("autocorrect",!1,function(o,u){return o.getInputField().autocorrect=u},!0),s("autocapitalize",!1,function(o,u){return o.getInputField().autocapitalize=u},!0),s("rtlMoveVisually",!O),s("wholeLineUpdateBefore",!0),s("theme","default",function(o){Tc(o),zi(o)},!0),s("keyMap","default",function(o,u,m){var x=jo(u),E=m!=si&&jo(m);E&&E.detach&&E.detach(o,x),x.attach&&x.attach(o,E||null)}),s("extraKeys",null),s("configureMouse",null),s("lineWrapping",!1,nx,!0),s("gutters",[],function(o,u){o.display.gutterSpecs=hs(u,o.options.lineNumbers),zi(o)},!0),s("fixedGutter",!0,function(o,u){o.display.gutters.style.left=u?rs(o.display)+"px":"0",o.refresh()},!0),s("coverGutterNextToScrollbar",!1,function(o){return Jn(o)},!0),s("scrollbarStyle","native",function(o){Du(o),Jn(o),o.display.scrollbars.setScrollTop(o.doc.scrollTop),o.display.scrollbars.setScrollLeft(o.doc.scrollLeft)},!0),s("lineNumbers",!1,function(o,u){o.display.gutterSpecs=hs(o.options.gutters,u),zi(o)},!0),s("firstLineNumber",1,zi,!0),s("lineNumberFormatter",function(o){return o},zi,!0),s("showCursorWhenSelecting",!1,Ii,!0),s("resetSelectionOnContextMenu",!0),s("lineWiseCopyCut",!0),s("pasteLinesPerSelection",!0),s("selectionsMayTouch",!1),s("readOnly",!1,function(o,u){u=="nocursor"&&(Zn(o),o.display.input.blur()),o.display.input.readOnlyChanged(u)}),s("screenReaderLabel",null,function(o,u){u=u===""?null:u,o.display.input.screenReaderLabelChanged(u)}),s("disableInput",!1,function(o,u){u||o.display.input.reset()},!0),s("dragDrop",!0,rx),s("allowDropFileTypes",null),s("cursorBlinkRate",530),s("cursorScrollMargin",0),s("cursorHeight",1,Ii,!0),s("singleCursorHeightPerLine",!0,Ii,!0),s("workTime",100),s("workDelay",100),s("flattenSpans",!0,Ni,!0),s("addModeClass",!1,Ni,!0),s("pollInterval",100),s("undoDepth",200,function(o,u){return o.doc.history.undoDepth=u}),s("historyEventDelay",1250),s("viewportMargin",10,function(o){return o.refresh()},!0),s("maxHighlightLength",1e4,Ni,!0),s("moveInputWithCursor",!0,function(o,u){u||o.display.input.resetPosition()}),s("tabindex",null,function(o,u){return o.display.input.getField().tabIndex=u||""}),s("autofocus",null),s("direction","ltr",function(o,u){return o.doc.setDirection(u)},!0),s("phrases",null)}function rx(e,r,s){var o=s&&s!=si;if(!r!=!o){var u=e.display.dragFunctions,m=r?lt:pt;m(e.display.scroller,"dragstart",u.start),m(e.display.scroller,"dragenter",u.enter),m(e.display.scroller,"dragover",u.over),m(e.display.scroller,"dragleave",u.leave),m(e.display.scroller,"drop",u.drop)}}function nx(e){e.options.lineWrapping?(z(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(X(e.display.wrapper,"CodeMirror-wrap"),Wa(e)),ns(e),kr(e),Di(e),setTimeout(function(){return Jn(e)},100)}function Nt(e,r){var s=this;if(!(this instanceof Nt))return new Nt(e,r);this.options=r=r?M(r):{},M(Ac,r,!1);var o=r.value;typeof o=="string"?o=new _r(o,r.mode,null,r.lineSeparator,r.direction):r.mode&&(o.modeOption=r.mode),this.doc=o;var u=new Nt.inputStyles[r.inputStyle](this),m=this.display=new gb(e,o,u,r);m.wrapper.CodeMirror=this,Tc(this),r.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Du(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 Pe,keySeq:null,specialChars:null},r.autofocus&&!I&&m.input.focus(),a&&h<11&&setTimeout(function(){return s.display.input.reset(!0)},20),ix(this),Pb(),On(this),this.curOp.forceUpdate=!0,qu(this,o),r.autofocus&&!I||this.hasFocus()?setTimeout(function(){s.hasFocus()&&!s.state.focused&&as(s)},20):Zn(this);for(var x in Uo)Uo.hasOwnProperty(x)&&Uo[x](this,r[x],si);Mu(this),r.finishInit&&r.finishInit(this);for(var E=0;E<Cs.length;++E)Cs[E](this);Pn(this),f&&r.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Nt.defaults=Ac,Nt.optionHandlers=Uo;function ix(e){var r=e.display;lt(r.scroller,"mousedown",rr(e,_c)),a&&h<11?lt(r.scroller,"dblclick",rr(e,function(C){if(!wt(e,C)){var L=Dn(e,C);if(!(!L||Es(e,C)||ln(e.display,C))){kt(C);var V=e.findWordAt(L);Ro(e.doc,V.anchor,V.head)}}})):lt(r.scroller,"dblclick",function(C){return wt(e,C)||kt(C)}),lt(r.scroller,"contextmenu",function(C){return Cc(e,C)}),lt(r.input.getField(),"contextmenu",function(C){r.scroller.contains(C.target)||Cc(e,C)});var s,o={end:0};function u(){r.activeTouch&&(s=setTimeout(function(){return r.activeTouch=null},1e3),o=r.activeTouch,o.end=+new Date)}function m(C){if(C.touches.length!=1)return!1;var L=C.touches[0];return L.radiusX<=1&&L.radiusY<=1}function x(C,L){if(L.left==null)return!0;var V=L.left-C.left,Q=L.top-C.top;return V*V+Q*Q>20*20}lt(r.scroller,"touchstart",function(C){if(!wt(e,C)&&!m(C)&&!Es(e,C)){r.input.ensurePolled(),clearTimeout(s);var L=+new Date;r.activeTouch={start:L,moved:!1,prev:L-o.end<=300?o:null},C.touches.length==1&&(r.activeTouch.left=C.touches[0].pageX,r.activeTouch.top=C.touches[0].pageY)}}),lt(r.scroller,"touchmove",function(){r.activeTouch&&(r.activeTouch.moved=!0)}),lt(r.scroller,"touchend",function(C){var L=r.activeTouch;if(L&&!ln(r,C)&&L.left!=null&&!L.moved&&new Date-L.start<300){var V=e.coordsChar(r.activeTouch,"page"),Q;!L.prev||x(L,L.prev)?Q=new Tt(V,V):!L.prev.prev||x(L,L.prev.prev)?Q=e.findWordAt(V):Q=new Tt(xe(V.line,0),Xe(e.doc,xe(V.line+1,0))),e.setSelection(Q.anchor,Q.head),e.focus(),kt(C)}u()}),lt(r.scroller,"touchcancel",u),lt(r.scroller,"scroll",function(){r.scroller.clientHeight&&(Mi(e,r.scroller.scrollTop),Fn(e,r.scroller.scrollLeft,!0),rt(e,"scroll",e))}),lt(r.scroller,"mousewheel",function(C){return Ru(e,C)}),lt(r.scroller,"DOMMouseScroll",function(C){return Ru(e,C)}),lt(r.wrapper,"scroll",function(){return r.wrapper.scrollTop=r.wrapper.scrollLeft=0}),r.dragFunctions={enter:function(C){wt(e,C)||Ir(C)},over:function(C){wt(e,C)||(Ob(e,C),Ir(C))},start:function(C){return Mb(e,C)},drop:rr(e,Fb),leave:function(C){wt(e,C)||cc(e)}};var E=r.input.getField();lt(E,"keyup",function(C){return wc.call(e,C)}),lt(E,"keydown",rr(e,xc)),lt(E,"keypress",rr(e,kc)),lt(E,"focus",function(C){return as(e,C)}),lt(E,"blur",function(C){return Zn(e,C)})}var Cs=[];Nt.defineInitHook=function(e){return Cs.push(e)};function Zi(e,r,s,o){var u=e.doc,m;s==null&&(s="add"),s=="smart"&&(u.mode.indent?m=Ei(e,r).state:s="prev");var x=e.options.tabSize,E=oe(u,r),C=we(E.text,null,x);E.stateAfter&&(E.stateAfter=null);var L=E.text.match(/^\s*/)[0],V;if(!o&&!/\S/.test(E.text))V=0,s="not";else if(s=="smart"&&(V=u.mode.indent(m,E.text.slice(L.length),E.text),V==ze||V>150)){if(!o)return;s="prev"}s=="prev"?r>u.first?V=we(oe(u,r-1).text,null,x):V=0:s=="add"?V=C+e.options.indentUnit:s=="subtract"?V=C-e.options.indentUnit:typeof s=="number"&&(V=C+s),V=Math.max(0,V);var Q="",ce=0;if(e.options.indentWithTabs)for(var ae=Math.floor(V/x);ae;--ae)ce+=x,Q+=" ";if(ce<V&&(Q+=gt(V-ce)),Q!=L)return ni(u,Q,xe(r,0),xe(r,L.length),"+input"),E.stateAfter=null,!0;for(var ye=0;ye<u.sel.ranges.length;ye++){var Te=u.sel.ranges[ye];if(Te.head.line==r&&Te.head.ch<L.length){var Oe=xe(r,L.length);bs(u,ye,new Tt(Oe,Oe));break}}}var Wr=null;function Ho(e){Wr=e}function Ts(e,r,s,o,u){var m=e.doc;e.display.shift=!1,o||(o=m.sel);var x=+new Date-200,E=u=="paste"||e.state.pasteIncoming>x,C=ne(r),L=null;if(E&&o.ranges.length>1)if(Wr&&Wr.text.join(`
`)==r){if(o.ranges.length%Wr.text.length==0){L=[];for(var V=0;V<Wr.text.length;V++)L.push(m.splitLines(Wr.text[V]))}}else C.length==o.ranges.length&&e.options.pasteLinesPerSelection&&(L=Ie(C,function(je){return[je]}));for(var Q=e.curOp.updateInput,ce=o.ranges.length-1;ce>=0;ce--){var ae=o.ranges[ce],ye=ae.from(),Te=ae.to();ae.empty()&&(s&&s>0?ye=xe(ye.line,ye.ch-s):e.state.overwrite&&!E?Te=xe(Te.line,Math.min(oe(m,Te.line).text.length,Te.ch+Re(C).length)):E&&Wr&&Wr.lineWise&&Wr.text.join(`
`)==C.join(`
`)&&(ye=Te=xe(ye.line,0)));var Oe={from:ye,to:Te,text:L?L[ce%L.length]:C,origin:u||(E?"paste":e.state.cutIncoming>x?"cut":"+input")};ri(e.doc,Oe),tr(e,"inputRead",e,Oe)}r&&!E&&Dc(e,r),Qn(e),e.curOp.updateInput<2&&(e.curOp.updateInput=Q),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Lc(e,r){var s=e.clipboardData&&e.clipboardData.getData("Text");if(s)return e.preventDefault(),!r.isReadOnly()&&!r.options.disableInput&&Ar(r,function(){return Ts(r,s,0,null,"paste")}),!0}function Dc(e,r){if(!(!e.options.electricChars||!e.options.smartIndent))for(var s=e.doc.sel,o=s.ranges.length-1;o>=0;o--){var u=s.ranges[o];if(!(u.head.ch>100||o&&s.ranges[o-1].head.line==u.head.line)){var m=e.getModeAt(u.head),x=!1;if(m.electricChars){for(var E=0;E<m.electricChars.length;E++)if(r.indexOf(m.electricChars.charAt(E))>-1){x=Zi(e,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(oe(e.doc,u.head.line).text.slice(0,u.head.ch))&&(x=Zi(e,u.head.line,"smart"));x&&tr(e,"electricInput",e,u.head.line)}}}function Ic(e){for(var r=[],s=[],o=0;o<e.doc.sel.ranges.length;o++){var u=e.doc.sel.ranges[o].head.line,m={anchor:xe(u,0),head:xe(u+1,0)};s.push(m),r.push(e.getRange(m.anchor,m.head))}return{text:r,ranges:s}}function Fc(e,r,s,o){e.setAttribute("autocorrect",s?"":"off"),e.setAttribute("autocapitalize",o?"":"off"),e.setAttribute("spellcheck",!!r)}function Mc(){var e=T("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),r=T("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return f?e.style.width="1000px":e.setAttribute("wrap","off"),_&&(e.style.border="1px solid black"),Fc(e),r}function ox(e){var r=e.optionHandlers,s=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(o,u){var m=this.options,x=m[o];m[o]==u&&o!="mode"||(m[o]=u,r.hasOwnProperty(o)&&rr(this,r[o])(this,u,x),rt(this,"optionChange",this,o))},getOption:function(o){return this.options[o]},getDoc:function(){return this.doc},addKeyMap:function(o,u){this.state.keyMaps[u?"push":"unshift"](jo(o))},removeKeyMap:function(o){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==o||u[m].name==o)return u.splice(m,1),!0},addOverlay:br(function(o,u){var m=o.token?o:e.getMode(this.options,o);if(m.startState)throw new Error("Overlays may not be stateful.");Be(this.state.overlays,{mode:m,modeSpec:o,opaque:u&&u.opaque,priority:u&&u.priority||0},function(x){return x.priority}),this.state.modeGen++,kr(this)}),removeOverlay:br(function(o){for(var u=this.state.overlays,m=0;m<u.length;++m){var x=u[m].modeSpec;if(x==o||typeof o=="string"&&x.name==o){u.splice(m,1),this.state.modeGen++,kr(this);return}}}),indentLine:br(function(o,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),bt(this.doc,o)&&Zi(this,o,u,m)}),indentSelection:br(function(o){for(var u=this.doc.sel.ranges,m=-1,x=0;x<u.length;x++){var E=u[x];if(E.empty())E.head.line>m&&(Zi(this,E.head.line,o,!0),m=E.head.line,x==this.doc.sel.primIndex&&Qn(this));else{var C=E.from(),L=E.to(),V=Math.max(m,C.line);m=Math.min(this.lastLine(),L.line-(L.ch?0:1))+1;for(var Q=V;Q<m;++Q)Zi(this,Q,o);var ce=this.doc.sel.ranges;C.ch==0&&u.length==ce.length&&ce[x].from().ch>0&&bs(this.doc,x,new Tt(C,ce[x].to()),qe)}}}),getTokenAt:function(o,u){return jl(this,o,u)},getLineTokens:function(o,u){return jl(this,xe(o),u,!0)},getTokenTypeAt:function(o){o=Xe(this.doc,o);var u=Nl(this,oe(this.doc,o.line)),m=0,x=(u.length-1)/2,E=o.ch,C;if(E==0)C=u[2];else for(;;){var L=m+x>>1;if((L?u[L*2-1]:0)>=E)x=L;else if(u[L*2+1]<E)m=L+1;else{C=u[L*2+2];break}}var V=C?C.indexOf("overlay "):-1;return V<0?C:V==0?null:C.slice(0,V-1)},getModeAt:function(o){var u=this.doc.mode;return u.innerMode?e.innerMode(u,this.getTokenAt(o).state).mode:u},getHelper:function(o,u){return this.getHelpers(o,u)[0]},getHelpers:function(o,u){var m=[];if(!s.hasOwnProperty(u))return m;var x=s[u],E=this.getModeAt(o);if(typeof E[u]=="string")x[E[u]]&&m.push(x[E[u]]);else if(E[u])for(var C=0;C<E[u].length;C++){var L=x[E[u][C]];L&&m.push(L)}else E.helperType&&x[E.helperType]?m.push(x[E.helperType]):x[E.name]&&m.push(x[E.name]);for(var V=0;V<x._global.length;V++){var Q=x._global[V];Q.pred(E,this)&&ve(m,Q.val)==-1&&m.push(Q.val)}return m},getStateAfter:function(o,u){var m=this.doc;return o=xt(m,o==null?m.first+m.size-1:o),Ei(this,o+1,u).state},cursorCoords:function(o,u){var m,x=this.doc.sel.primary();return o==null?m=x.head:typeof o=="object"?m=Xe(this.doc,o):m=o?x.from():x.to(),Ur(this,m,u||"page")},charCoords:function(o,u){return Za(this,Xe(this.doc,o),u||"page")},coordsChar:function(o,u){return o=gu(this,o,u||"page"),Ja(this,o.left,o.top)},lineAtHeight:function(o,u){return o=gu(this,{top:o,left:0},u||"page").top,et(this.doc,o+this.display.viewOffset)},heightAtLine:function(o,u,m){var x=!1,E;if(typeof o=="number"){var C=this.doc.first+this.doc.size-1;o<this.doc.first?o=this.doc.first:o>C&&(o=C,x=!0),E=oe(this.doc,o)}else E=o;return Co(this,E,{top:0,left:0},u||"page",m||x).top+(x?this.doc.height-sn(E):0)},defaultTextHeight:function(){return Yn(this.display)},defaultCharWidth:function(){return Xn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(o,u,m,x,E){var C=this.display;o=Ur(this,Xe(this.doc,o));var L=o.bottom,V=o.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),C.sizer.appendChild(u),x=="over")L=o.top;else if(x=="above"||x=="near"){var Q=Math.max(C.wrapper.clientHeight,this.doc.height),ce=Math.max(C.sizer.clientWidth,C.lineSpace.clientWidth);(x=="above"||o.bottom+u.offsetHeight>Q)&&o.top>u.offsetHeight?L=o.top-u.offsetHeight:o.bottom+u.offsetHeight<=Q&&(L=o.bottom),V+u.offsetWidth>ce&&(V=ce-u.offsetWidth)}u.style.top=L+"px",u.style.left=u.style.right="",E=="right"?(V=C.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(E=="left"?V=0:E=="middle"&&(V=(C.sizer.clientWidth-u.offsetWidth)/2),u.style.left=V+"px"),m&&rb(this,{left:V,top:L,right:V+u.offsetWidth,bottom:L+u.offsetHeight})},triggerOnKeyDown:br(xc),triggerOnKeyPress:br(kc),triggerOnKeyUp:wc,triggerOnMouseDown:br(_c),execCommand:function(o){if(Ki.hasOwnProperty(o))return Ki[o].call(null,this)},triggerElectric:br(function(o){Dc(this,o)}),findPosH:function(o,u,m,x){var E=1;u<0&&(E=-1,u=-u);for(var C=Xe(this.doc,o),L=0;L<u&&(C=As(this.doc,C,E,m,x),!C.hitSide);++L);return C},moveH:br(function(o,u){var m=this;this.extendSelectionsBy(function(x){return m.display.shift||m.doc.extend||x.empty()?As(m.doc,x.head,o,u,m.options.rtlMoveVisually):o<0?x.from():x.to()},ke)}),deleteH:br(function(o,u){var m=this.doc.sel,x=this.doc;m.somethingSelected()?x.replaceSelection("",null,"+delete"):ai(this,function(E){var C=As(x,E.head,o,u,!1);return o<0?{from:C,to:E.head}:{from:E.head,to:C}})}),findPosV:function(o,u,m,x){var E=1,C=x;u<0&&(E=-1,u=-u);for(var L=Xe(this.doc,o),V=0;V<u;++V){var Q=Ur(this,L,"div");if(C==null?C=Q.left:Q.left=C,L=Oc(this,Q,E,m),L.hitSide)break}return L},moveV:br(function(o,u){var m=this,x=this.doc,E=[],C=!this.display.shift&&!x.extend&&x.sel.somethingSelected();if(x.extendSelectionsBy(function(V){if(C)return o<0?V.from():V.to();var Q=Ur(m,V.head,"div");V.goalColumn!=null&&(Q.left=V.goalColumn),E.push(Q.left);var ce=Oc(m,Q,o,u);return u=="page"&&V==x.sel.primary()&&ls(m,Za(m,ce,"div").top-Q.top),ce},ke),E.length)for(var L=0;L<x.sel.ranges.length;L++)x.sel.ranges[L].goalColumn=E[L]}),findWordAt:function(o){var u=this.doc,m=oe(u,o.line).text,x=o.ch,E=o.ch;if(m){var C=this.getHelper(o,"wordChars");(o.sticky=="before"||E==m.length)&&x?--x:++E;for(var L=m.charAt(x),V=Y(L,C)?function(Q){return Y(Q,C)}:/\s/.test(L)?function(Q){return/\s/.test(Q)}:function(Q){return!/\s/.test(Q)&&!Y(Q)};x>0&&V(m.charAt(x-1));)--x;for(;E<m.length&&V(m.charAt(E));)++E}return new Tt(xe(o.line,x),xe(o.line,E))},toggleOverwrite:function(o){o!=null&&o==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?z(this.display.cursorDiv,"CodeMirror-overwrite"):X(this.display.cursorDiv,"CodeMirror-overwrite"),rt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==F()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:br(function(o,u){Fi(this,o,u)}),getScrollInfo:function(){var o=this.display.scroller;return{left:o.scrollLeft,top:o.scrollTop,height:o.scrollHeight-Xr(this)-this.display.barHeight,width:o.scrollWidth-Xr(this)-this.display.barWidth,clientHeight:Va(this),clientWidth:An(this)}},scrollIntoView:br(function(o,u){o==null?(o={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof o=="number"?o={from:xe(o,0),to:null}:o.from==null&&(o={from:o,to:null}),o.to||(o.to=o.from),o.margin=u||0,o.from.line!=null?nb(this,o):Cu(this,o.from,o.to,o.margin)}),setSize:br(function(o,u){var m=this,x=function(C){return typeof C=="number"||/^\d+$/.test(String(C))?C+"px":C};o!=null&&(this.display.wrapper.style.width=x(o)),u!=null&&(this.display.wrapper.style.height=x(u)),this.options.lineWrapping&&hu(this);var E=this.display.viewFrom;this.doc.iter(E,this.display.viewTo,function(C){if(C.widgets){for(var L=0;L<C.widgets.length;L++)if(C.widgets[L].noHScroll){gn(m,E,"widget");break}}++E}),this.curOp.forceUpdate=!0,rt(this,"refresh",this)}),operation:function(o){return Ar(this,o)},startOperation:function(){return On(this)},endOperation:function(){return Pn(this)},refresh:br(function(){var o=this.display.cachedTextHeight;kr(this),this.curOp.forceUpdate=!0,Di(this),Fi(this,this.doc.scrollLeft,this.doc.scrollTop),fs(this.display),(o==null||Math.abs(o-Yn(this.display))>.5||this.options.lineWrapping)&&ns(this),rt(this,"refresh",this)}),swapDoc:br(function(o){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),qu(this,o),Di(this),this.display.input.reset(),Fi(this,o.scrollLeft,o.scrollTop),this.curOp.forceScroll=!0,tr(this,"swapDoc",this,u),u}),phrase:function(o){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,o)?u[o]:o},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}},Kt(e),e.registerHelper=function(o,u,m){s.hasOwnProperty(o)||(s[o]=e[o]={_global:[]}),s[o][u]=m},e.registerGlobalHelper=function(o,u,m,x){e.registerHelper(o,u,x),s[o]._global.push({pred:m,val:x})}}function As(e,r,s,o,u){var m=r,x=s,E=oe(e,r.line),C=u&&e.direction=="rtl"?-s:s;function L(){var tt=r.line+C;return tt<e.first||tt>=e.first+e.size?!1:(r=new xe(tt,r.ch,r.sticky),E=oe(e,tt))}function V(tt){var $e;if(o=="codepoint"){var nt=E.text.charCodeAt(r.ch+(s>0?0:-1));if(isNaN(nt))$e=null;else{var ct=s>0?nt>=55296&&nt<56320:nt>=56320&&nt<57343;$e=new xe(r.line,Math.max(0,Math.min(E.text.length,r.ch+s*(ct?2:1))),-s)}}else u?$e=qb(e.cm,E,r,s):$e=ws(E,r,s);if($e==null)if(!tt&&L())r=ks(u,e.cm,E,r.line,C);else return!1;else r=$e;return!0}if(o=="char"||o=="codepoint")V();else if(o=="column")V(!0);else if(o=="word"||o=="group")for(var Q=null,ce=o=="group",ae=e.cm&&e.cm.getHelper(r,"wordChars"),ye=!0;!(s<0&&!V(!ye));ye=!1){var Te=E.text.charAt(r.ch)||`
`,Oe=Y(Te,ae)?"w":ce&&Te==`
`?"n":!ce||/\s/.test(Te)?null:"p";if(ce&&!ye&&!Oe&&(Oe="s"),Q&&Q!=Oe){s<0&&(s=1,V(),r.sticky="after");break}if(Oe&&(Q=Oe),s>0&&!V(!ye))break}var je=No(e,r,m,x,!0);return B(m,je)&&(je.hitSide=!0),je}function Oc(e,r,s,o){var u=e.doc,m=r.left,x;if(o=="page"){var E=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),C=Math.max(E-.5*Yn(e.display),3);x=(s>0?r.bottom:r.top)+s*C}else o=="line"&&(x=s>0?r.bottom+3:r.top-3);for(var L;L=Ja(e,m,x),!!L.outside;){if(s<0?x<=0:x>=u.height){L.hitSide=!0;break}x+=s*5}return L}var Ot=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ot.prototype.init=function(e){var r=this,s=this,o=s.cm,u=s.div=e.lineDiv;u.contentEditable=!0,Fc(u,o.options.spellcheck,o.options.autocorrect,o.options.autocapitalize);function m(E){for(var C=E.target;C;C=C.parentNode){if(C==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(C.className))break}return!1}lt(u,"paste",function(E){!m(E)||wt(o,E)||Lc(E,o)||h<=11&&setTimeout(rr(o,function(){return r.updateFromDOM()}),20)}),lt(u,"compositionstart",function(E){r.composing={data:E.data,done:!1}}),lt(u,"compositionupdate",function(E){r.composing||(r.composing={data:E.data,done:!1})}),lt(u,"compositionend",function(E){r.composing&&(E.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),lt(u,"touchstart",function(){return s.forceCompositionEnd()}),lt(u,"input",function(){r.composing||r.readFromDOMSoon()});function x(E){if(!(!m(E)||wt(o,E))){if(o.somethingSelected())Ho({lineWise:!1,text:o.getSelections()}),E.type=="cut"&&o.replaceSelection("",null,"cut");else if(o.options.lineWiseCopyCut){var C=Ic(o);Ho({lineWise:!0,text:C.text}),E.type=="cut"&&o.operation(function(){o.setSelections(C.ranges,0,qe),o.replaceSelection("",null,"cut")})}else return;if(E.clipboardData){E.clipboardData.clearData();var L=Wr.text.join(`
`);if(E.clipboardData.setData("Text",L),E.clipboardData.getData("Text")==L){E.preventDefault();return}}var V=Mc(),Q=V.firstChild;o.display.lineSpace.insertBefore(V,o.display.lineSpace.firstChild),Q.value=Wr.text.join(`
`);var ce=F();be(Q),setTimeout(function(){o.display.lineSpace.removeChild(V),ce.focus(),ce==u&&s.showPrimarySelection()},50)}}lt(u,"copy",x),lt(u,"cut",x)},Ot.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ot.prototype.prepareSelection=function(){var e=ku(this.cm,!1);return e.focus=F()==this.div,e},Ot.prototype.showSelection=function(e,r){!e||!this.cm.display.view.length||((e.focus||r)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ot.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ot.prototype.showPrimarySelection=function(){var e=this.getSelection(),r=this.cm,s=r.doc.sel.primary(),o=s.from(),u=s.to();if(r.display.viewTo==r.display.viewFrom||o.line>=r.display.viewTo||u.line<r.display.viewFrom){e.removeAllRanges();return}var m=Wo(r,e.anchorNode,e.anchorOffset),x=Wo(r,e.focusNode,e.focusOffset);if(!(m&&!m.bad&&x&&!x.bad&&D(ft(m,x),o)==0&&D(De(m,x),u)==0)){var E=r.display.view,C=o.line>=r.display.viewFrom&&Pc(r,o)||{node:E[0].measure.map[2],offset:0},L=u.line<r.display.viewTo&&Pc(r,u);if(!L){var V=E[E.length-1].measure,Q=V.maps?V.maps[V.maps.length-1]:V.map;L={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!C||!L){e.removeAllRanges();return}var ce=e.rangeCount&&e.getRangeAt(0),ae;try{ae=j(C.node,C.offset,L.offset,L.node)}catch(ye){}ae&&(!n&&r.state.focused?(e.collapse(C.node,C.offset),ae.collapsed||(e.removeAllRanges(),e.addRange(ae))):(e.removeAllRanges(),e.addRange(ae)),ce&&e.anchorNode==null?e.addRange(ce):n&&this.startGracePeriod()),this.rememberSelection()}},Ot.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ot.prototype.showMultipleSelections=function(e){q(this.cm.display.cursorDiv,e.cursors),q(this.cm.display.selectionDiv,e.selection)},Ot.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ot.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var r=e.getRangeAt(0).commonAncestorContainer;return te(this.div,r)},Ot.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||F()!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ot.prototype.blur=function(){this.div.blur()},Ot.prototype.getField=function(){return this.div},Ot.prototype.supportsTouch=function(){return!0},Ot.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():Ar(this.cm,function(){return e.cm.curOp.selectionChanged=!0});function r(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,r))}this.polling.set(this.cm.options.pollInterval,r)},Ot.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ot.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),r=this.cm;if(w&&y&&this.cm.display.gutterSpecs.length&&ax(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var s=Wo(r,e.anchorNode,e.anchorOffset),o=Wo(r,e.focusNode,e.focusOffset);s&&o&&Ar(r,function(){pr(r.doc,yn(s,o),qe),(s.bad||o.bad)&&(r.curOp.selectionChanged=!0)})}}},Ot.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,r=e.display,s=e.doc.sel.primary(),o=s.from(),u=s.to();if(o.ch==0&&o.line>e.firstLine()&&(o=xe(o.line-1,oe(e.doc,o.line-1).length)),u.ch==oe(e.doc,u.line).text.length&&u.line<e.lastLine()&&(u=xe(u.line+1,0)),o.line<r.viewFrom||u.line>r.viewTo-1)return!1;var m,x,E;o.line==r.viewFrom||(m=In(e,o.line))==0?(x=Ve(r.view[0].line),E=r.view[0].node):(x=Ve(r.view[m].line),E=r.view[m-1].node.nextSibling);var C=In(e,u.line),L,V;if(C==r.view.length-1?(L=r.viewTo-1,V=r.lineDiv.lastChild):(L=Ve(r.view[C+1].line)-1,V=r.view[C+1].node.previousSibling),!E)return!1;for(var Q=e.doc.splitLines(sx(e,E,V,x,L)),ce=he(e.doc,xe(x,0),xe(L,oe(e.doc,L).text.length));Q.length>1&&ce.length>1;)if(Re(Q)==Re(ce))Q.pop(),ce.pop(),L--;else if(Q[0]==ce[0])Q.shift(),ce.shift(),x++;else break;for(var ae=0,ye=0,Te=Q[0],Oe=ce[0],je=Math.min(Te.length,Oe.length);ae<je&&Te.charCodeAt(ae)==Oe.charCodeAt(ae);)++ae;for(var tt=Re(Q),$e=Re(ce),nt=Math.min(tt.length-(Q.length==1?ae:0),$e.length-(ce.length==1?ae:0));ye<nt&&tt.charCodeAt(tt.length-ye-1)==$e.charCodeAt($e.length-ye-1);)++ye;if(Q.length==1&&ce.length==1&&x==o.line)for(;ae&&ae>o.ch&&tt.charCodeAt(tt.length-ye-1)==$e.charCodeAt($e.length-ye-1);)ae--,ye++;Q[Q.length-1]=tt.slice(0,tt.length-ye).replace(/^\u200b+/,""),Q[0]=Q[0].slice(ae).replace(/\u200b+$/,"");var ct=xe(x,ae),ut=xe(L,ce.length?Re(ce).length-ye:0);if(Q.length>1||Q[0]||D(ct,ut))return ni(e.doc,Q,ct,ut,"+input"),!0},Ot.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ot.prototype.reset=function(){this.forceCompositionEnd()},Ot.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ot.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},Ot.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Ar(this.cm,function(){return kr(e.cm)})},Ot.prototype.setUneditable=function(e){e.contentEditable="false"},Ot.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||rr(this.cm,Ts)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ot.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ot.prototype.onContextMenu=function(){},Ot.prototype.resetPosition=function(){},Ot.prototype.needsContentAttribute=!0;function Pc(e,r){var s=Ya(e,r.line);if(!s||s.hidden)return null;var o=oe(e.doc,r.line),u=lu(s,o,r.line),m=Lt(o,e.doc.direction),x="left";if(m){var E=We(m,r.ch);x=E%2?"right":"left"}var C=fu(u.map,r.ch,x);return C.offset=C.collapse=="right"?C.end:C.start,C}function ax(e){for(var r=e;r;r=r.parentNode)if(/CodeMirror-gutter-wrapper/.test(r.className))return!0;return!1}function li(e,r){return r&&(e.bad=!0),e}function sx(e,r,s,o,u){var m="",x=!1,E=e.doc.lineSeparator(),C=!1;function L(ae){return function(ye){return ye.id==ae}}function V(){x&&(m+=E,C&&(m+=E),x=C=!1)}function Q(ae){ae&&(V(),m+=ae)}function ce(ae){if(ae.nodeType==1){var ye=ae.getAttribute("cm-text");if(ye){Q(ye);return}var Te=ae.getAttribute("cm-marker"),Oe;if(Te){var je=e.findMarks(xe(o,0),xe(u+1,0),L(+Te));je.length&&(Oe=je[0].find(0))&&Q(he(e.doc,Oe.from,Oe.to).join(E));return}if(ae.getAttribute("contenteditable")=="false")return;var tt=/^(pre|div|p|li|table|br)$/i.test(ae.nodeName);if(!/^br$/i.test(ae.nodeName)&&ae.textContent.length==0)return;tt&&V();for(var $e=0;$e<ae.childNodes.length;$e++)ce(ae.childNodes[$e]);/^(pre|p)$/i.test(ae.nodeName)&&(C=!0),tt&&(x=!0)}else ae.nodeType==3&&Q(ae.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;ce(r),r!=s;)r=r.nextSibling,C=!1;return m}function Wo(e,r,s){var o;if(r==e.display.lineDiv){if(o=e.display.lineDiv.childNodes[s],!o)return li(e.clipPos(xe(e.display.viewTo-1)),!0);r=null,s=0}else for(o=r;;o=o.parentNode){if(!o||o==e.display.lineDiv)return null;if(o.parentNode&&o.parentNode==e.display.lineDiv)break}for(var u=0;u<e.display.view.length;u++){var m=e.display.view[u];if(m.node==o)return lx(m,r,s)}}function lx(e,r,s){var o=e.text.firstChild,u=!1;if(!r||!te(o,r))return li(xe(Ve(e.line),0),!0);if(r==o&&(u=!0,r=o.childNodes[s],s=0,!r)){var m=e.rest?Re(e.rest):e.line;return li(xe(Ve(m),m.text.length),u)}var x=r.nodeType==3?r:null,E=r;for(!x&&r.childNodes.length==1&&r.firstChild.nodeType==3&&(x=r.firstChild,s&&(s=x.nodeValue.length));E.parentNode!=o;)E=E.parentNode;var C=e.measure,L=C.maps;function V(Oe,je,tt){for(var $e=-1;$e<(L?L.length:0);$e++)for(var nt=$e<0?C.map:L[$e],ct=0;ct<nt.length;ct+=3){var ut=nt[ct+2];if(ut==Oe||ut==je){var vt=Ve($e<0?e.line:e.rest[$e]),Pt=nt[ct]+tt;return(tt<0||ut!=Oe)&&(Pt=nt[ct+(tt?1:0)]),xe(vt,Pt)}}}var Q=V(x,E,s);if(Q)return li(Q,u);for(var ce=E.nextSibling,ae=x?x.nodeValue.length-s:0;ce;ce=ce.nextSibling){if(Q=V(ce,ce.firstChild,0),Q)return li(xe(Q.line,Q.ch-ae),u);ae+=ce.textContent.length}for(var ye=E.previousSibling,Te=s;ye;ye=ye.previousSibling){if(Q=V(ye,ye.firstChild,-1),Q)return li(xe(Q.line,Q.ch+Te),u);Te+=ye.textContent.length}}var Wt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Pe,this.hasSelection=!1,this.composing=null};Wt.prototype.init=function(e){var r=this,s=this,o=this.cm;this.createField(e);var u=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),_&&(u.style.width="0px"),lt(u,"input",function(){a&&h>=9&&r.hasSelection&&(r.hasSelection=null),s.poll()}),lt(u,"paste",function(x){wt(o,x)||Lc(x,o)||(o.state.pasteIncoming=+new Date,s.fastPoll())});function m(x){if(!wt(o,x)){if(o.somethingSelected())Ho({lineWise:!1,text:o.getSelections()});else if(o.options.lineWiseCopyCut){var E=Ic(o);Ho({lineWise:!0,text:E.text}),x.type=="cut"?o.setSelections(E.ranges,null,qe):(s.prevInput="",u.value=E.text.join(`
`),be(u))}else return;x.type=="cut"&&(o.state.cutIncoming=+new Date)}}lt(u,"cut",m),lt(u,"copy",m),lt(e.scroller,"paste",function(x){if(!(ln(e,x)||wt(o,x))){if(!u.dispatchEvent){o.state.pasteIncoming=+new Date,s.focus();return}var E=new Event("paste");E.clipboardData=x.clipboardData,u.dispatchEvent(E)}}),lt(e.lineSpace,"selectstart",function(x){ln(e,x)||kt(x)}),lt(u,"compositionstart",function(){var x=o.getCursor("from");s.composing&&s.composing.range.clear(),s.composing={start:x,range:o.markText(x,o.getCursor("to"),{className:"CodeMirror-composing"})}}),lt(u,"compositionend",function(){s.composing&&(s.poll(),s.composing.range.clear(),s.composing=null)})},Wt.prototype.createField=function(e){this.wrapper=Mc(),this.textarea=this.wrapper.firstChild},Wt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var e=this.cm,r=e.display,s=e.doc,o=ku(e);if(e.options.moveInputWithCursor){var u=Ur(e,s.sel.primary().head,"div"),m=r.wrapper.getBoundingClientRect(),x=r.lineDiv.getBoundingClientRect();o.teTop=Math.max(0,Math.min(r.wrapper.clientHeight-10,u.top+x.top-m.top)),o.teLeft=Math.max(0,Math.min(r.wrapper.clientWidth-10,u.left+x.left-m.left))}return o},Wt.prototype.showSelection=function(e){var r=this.cm,s=r.display;q(s.cursorDiv,e.cursors),q(s.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Wt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var r=this.cm;if(r.somethingSelected()){this.prevInput="";var s=r.getSelection();this.textarea.value=s,r.state.focused&&be(this.textarea),a&&h>=9&&(this.hasSelection=s)}else e||(this.prevInput=this.textarea.value="",a&&h>=9&&(this.hasSelection=null))}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!I||F()!=this.textarea))try{this.textarea.focus()}catch(e){}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Wt.prototype.fastPoll=function(){var e=!1,r=this;r.pollingFast=!0;function s(){var o=r.poll();!o&&!e?(e=!0,r.polling.set(60,s)):(r.pollingFast=!1,r.slowPoll())}r.polling.set(20,s)},Wt.prototype.poll=function(){var e=this,r=this.cm,s=this.textarea,o=this.prevInput;if(this.contextMenuPending||!r.state.focused||ie(s)&&!o&&!this.composing||r.isReadOnly()||r.options.disableInput||r.state.keySeq)return!1;var u=s.value;if(u==o&&!r.somethingSelected())return!1;if(a&&h>=9&&this.hasSelection===u||S&&/[\uf700-\uf7ff]/.test(u))return r.display.input.reset(),!1;if(r.doc.sel==r.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!o&&(o="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var x=0,E=Math.min(o.length,u.length);x<E&&o.charCodeAt(x)==u.charCodeAt(x);)++x;return Ar(r,function(){Ts(r,u.slice(x),o.length-x,null,e.composing?"*compose":null),u.length>1e3||u.indexOf(`
`)>-1?s.value=e.prevInput="":e.prevInput=u,e.composing&&(e.composing.range.clear(),e.composing.range=r.markText(e.composing.start,r.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){a&&h>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(e){var r=this,s=r.cm,o=s.display,u=r.textarea;r.contextMenuPending&&r.contextMenuPending();var m=Dn(s,e),x=o.scroller.scrollTop;if(!m||g)return;var E=s.options.resetSelectionOnContextMenu;E&&s.doc.sel.contains(m)==-1&&rr(s,pr)(s.doc,yn(m),qe);var C=u.style.cssText,L=r.wrapper.style.cssText,V=r.wrapper.offsetParent.getBoundingClientRect();r.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-V.top-5)+"px; left: "+(e.clientX-V.left-5)+`px;
z-index: 1000; background: `+(a?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;f&&(Q=window.scrollY),o.input.focus(),f&&window.scrollTo(null,Q),o.input.reset(),s.somethingSelected()||(u.value=r.prevInput=" "),r.contextMenuPending=ae,o.selForContextMenu=s.doc.sel,clearTimeout(o.detectingSelectAll);function ce(){if(u.selectionStart!=null){var Te=s.somethingSelected(),Oe="\u200B"+(Te?u.value:"");u.value="\u21DA",u.value=Oe,r.prevInput=Te?"":"\u200B",u.selectionStart=1,u.selectionEnd=Oe.length,o.selForContextMenu=s.doc.sel}}function ae(){if(r.contextMenuPending==ae&&(r.contextMenuPending=!1,r.wrapper.style.cssText=L,u.style.cssText=C,a&&h<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=x),u.selectionStart!=null)){(!a||a&&h<9)&&ce();var Te=0,Oe=function(){o.selForContextMenu==s.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&r.prevInput=="\u200B"?rr(s,Ju)(s):Te++<10?o.detectingSelectAll=setTimeout(Oe,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(Oe,200)}}if(a&&h>=9&&ce(),J){Ir(e);var ye=function(){pt(window,"mouseup",ye),setTimeout(ae,20)};lt(window,"mouseup",ye)}else setTimeout(ae,50)},Wt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function ux(e,r){if(r=r?M(r):{},r.value=e.value,!r.tabindex&&e.tabIndex&&(r.tabindex=e.tabIndex),!r.placeholder&&e.placeholder&&(r.placeholder=e.placeholder),r.autofocus==null){var s=F();r.autofocus=s==e||e.getAttribute("autofocus")!=null&&s==document.body}function o(){e.value=E.getValue()}var u;if(e.form&&(lt(e.form,"submit",o),!r.leaveSubmitMethodAlone)){var m=e.form;u=m.submit;try{var x=m.submit=function(){o(),m.submit=u,m.submit(),m.submit=x}}catch(C){}}r.finishInit=function(C){C.save=o,C.getTextArea=function(){return e},C.toTextArea=function(){C.toTextArea=isNaN,o(),e.parentNode.removeChild(C.getWrapperElement()),e.style.display="",e.form&&(pt(e.form,"submit",o),!r.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=u))}},e.style.display="none";var E=Nt(function(C){return e.parentNode.insertBefore(C,e.nextSibling)},r);return E}function cx(e){e.off=pt,e.on=lt,e.wheelEventPixels=vb,e.Doc=_r,e.splitLines=ne,e.countColumn=we,e.findColumn=Ue,e.isWordChar=_e,e.Pass=ze,e.signal=rt,e.Line=Gn,e.changeEnd=bn,e.scrollbarModel=Lu,e.Pos=xe,e.cmpPos=D,e.modes=N,e.mimeModes=ee,e.resolveMode=ge,e.getMode=Le,e.modeExtensions=Me,e.extendMode=Se,e.copyState=Ke,e.startState=mt,e.innerMode=_t,e.commands=Ki,e.keyMap=un,e.keyName=mc,e.isModifierKey=hc,e.lookupKey=oi,e.normalizeKeyMap=Bb,e.StringStream=H,e.SharedTextMarker=Hi,e.TextMarker=wn,e.LineWidget=Ui,e.e_preventDefault=kt,e.e_stopPropagation=st,e.e_stop=Ir,e.addClass=z,e.contains=te,e.rmClass=X,e.keyNames=kn}tx(Nt),ox(Nt);var fx="iter insert remove copy getEditor constructor".split(" ");for(var Go in _r.prototype)_r.prototype.hasOwnProperty(Go)&&ve(fx,Go)<0&&(Nt.prototype[Go]=function(e){return function(){return e.apply(this.doc,arguments)}}(_r.prototype[Go]));return Kt(_r),Nt.inputStyles={textarea:Wt,contenteditable:Ot},Nt.defineMode=function(e){!Nt.defaults.mode&&e!="null"&&(Nt.defaults.mode=e),ue.apply(this,arguments)},Nt.defineMIME=pe,Nt.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Nt.defineMIME("text/plain","null"),Nt.defineExtension=function(e,r){Nt.prototype[e]=r},Nt.defineDocExtension=function(e,r){_r.prototype[e]=r},Nt.fromTextArea=ux,cx(Nt),Nt.version="5.61.1",Nt})});var Qs=Fe((fo,Zs)=>{(function(i,t){typeof fo=="object"&&typeof Zs=="object"?Zs.exports=t():typeof define=="function"&&define.amd?define([],t):typeof fo=="object"?fo.ClipboardJS=t():i.ClipboardJS=t()})(fo,function(){return t={134:function(l,c,d){"use strict";d.d(c,{default:function(){return S}});var c=d(279),a=d.n(c),c=d(370),h=d.n(c),c=d(817),f=d.n(c);function p(R){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(R)}function y(R,O){for(var U=0;U<O.length;U++){var $=O[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(R,$.key,$)}}var g=function(){function R(J){(function(K){if(!(K instanceof R))throw new TypeError("Cannot call a class as a function")})(this),this.resolveOptions(J),this.initSelection()}var O,U,$;return O=R,(U=[{key:"resolveOptions",value:function(){var J=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=J.action,this.container=J.container,this.emitter=J.emitter,this.target=J.target,this.text=J.text,this.trigger=J.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var J=document.documentElement.getAttribute("dir")==="rtl";return this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[J?"right":"left"]="-9999px",J=window.pageYOffset||document.documentElement.scrollTop,this.fakeElem.style.top="".concat(J,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var J=this,K=this.createFakeElement();this.fakeHandlerCallback=function(){return J.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(K),this.selectedText=f()(K),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=f()(this.target),this.copyText()}},{key:"copyText",value:function(){var J;try{J=document.execCommand(this.action)}catch(K){J=!1}this.handleResult(J)}},{key:"handleResult",value:function(J){this.emitter.emit(J?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var J=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"copy";if(this._action=J,this._action!=="copy"&&this._action!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(J){if(J!==void 0){if(!J||p(J)!=="object"||J.nodeType!==1)throw new Error('Invalid "target" value, use a valid Element');if(this.action==="copy"&&J.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(this.action==="cut"&&(J.hasAttribute("readonly")||J.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);this._target=J}},get:function(){return this._target}}])&&y(O.prototype,U),$&&y(O,$),R}();function v(R){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(O){return typeof O}:function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O})(R)}function b(R,O){for(var U=0;U<O.length;U++){var $=O[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(R,$.key,$)}}function k(R,O){return(k=Object.setPrototypeOf||function(U,$){return U.__proto__=$,U})(R,O)}function _(R){var O=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(U){return!1}}();return function(){var U,$=w(R);return U=O?(U=w(this).constructor,Reflect.construct($,arguments,U)):$.apply(this,arguments),$=this,!(U=U)||v(U)!=="object"&&typeof U!="function"?function(J){if(J!==void 0)return J;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}($):U}}function w(R){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)})(R)}function I(R,O){if(R="data-clipboard-".concat(R),O.hasAttribute(R))return O.getAttribute(R)}var S=function(){(function(K,X){if(typeof X!="function"&&X!==null)throw new TypeError("Super expression must either be null or a function");K.prototype=Object.create(X&&X.prototype,{constructor:{value:K,writable:!0,configurable:!0}}),X&&k(K,X)})(J,a());var R,O,U,$=_(J);function J(K,X){var G;return function(q){if(!(q instanceof J))throw new TypeError("Cannot call a class as a function")}(this),(G=$.call(this)).resolveOptions(X),G.listenClick(K),G}return R=J,U=[{key:"isSupported",value:function(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:["copy","cut"],K=typeof K=="string"?[K]:K,X=!!document.queryCommandSupported;return K.forEach(function(G){X=X&&!!document.queryCommandSupported(G)}),X}}],(O=[{key:"resolveOptions",value:function(){var K=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof K.action=="function"?K.action:this.defaultAction,this.target=typeof K.target=="function"?K.target:this.defaultTarget,this.text=typeof K.text=="function"?K.text:this.defaultText,this.container=v(K.container)==="object"?K.container:document.body}},{key:"listenClick",value:function(K){var X=this;this.listener=h()(K,"click",function(G){return X.onClick(G)})}},{key:"onClick",value:function(K){K=K.delegateTarget||K.currentTarget,this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new g({action:this.action(K),target:this.target(K),text:this.text(K),container:this.container,trigger:K,emitter:this})}},{key:"defaultAction",value:function(K){return I("action",K)}},{key:"defaultTarget",value:function(K){if(K=I("target",K),K)return document.querySelector(K)}},{key:"defaultText",value:function(K){return I("text",K)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}])&&b(R.prototype,O),U&&b(R,U),J}()},828:function(l){var c;typeof Element=="undefined"||Element.prototype.matches||((c=Element.prototype).matches=c.matchesSelector||c.mozMatchesSelector||c.msMatchesSelector||c.oMatchesSelector||c.webkitMatchesSelector),l.exports=function(d,a){for(;d&&d.nodeType!==9;){if(typeof d.matches=="function"&&d.matches(a))return d;d=d.parentNode}}},438:function(l,c,d){var a=d(828);function h(f,p,y,g,v){var b=function(k,_,w,I){return function(S){S.delegateTarget=a(S.target,_),S.delegateTarget&&I.call(k,S)}}.apply(this,arguments);return f.addEventListener(y,b,v),{destroy:function(){f.removeEventListener(y,b,v)}}}l.exports=function(f,p,y,g,v){return typeof f.addEventListener=="function"?h.apply(null,arguments):typeof y=="function"?h.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(b){return h(b,p,y,g,v)}))}},879:function(l,c){c.node=function(d){return d!==void 0&&d instanceof HTMLElement&&d.nodeType===1},c.nodeList=function(d){var a=Object.prototype.toString.call(d);return d!==void 0&&(a==="[object NodeList]"||a==="[object HTMLCollection]")&&"length"in d&&(d.length===0||c.node(d[0]))},c.string=function(d){return typeof d=="string"||d instanceof String},c.fn=function(d){return Object.prototype.toString.call(d)==="[object Function]"}},370:function(l,c,d){var a=d(879),h=d(438);l.exports=function(f,p,y){if(!f&&!p&&!y)throw new Error("Missing required arguments");if(!a.string(p))throw new TypeError("Second argument must be a String");if(!a.fn(y))throw new TypeError("Third argument must be a Function");if(a.node(f))return _=p,w=y,(k=f).addEventListener(_,w),{destroy:function(){k.removeEventListener(_,w)}};if(a.nodeList(f))return g=f,v=p,b=y,Array.prototype.forEach.call(g,function(I){I.addEventListener(v,b)}),{destroy:function(){Array.prototype.forEach.call(g,function(I){I.removeEventListener(v,b)})}};if(a.string(f))return f=f,p=p,y=y,h(document.body,f,p,y);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var g,v,b,k,_,w}},817:function(l){l.exports=function(c){var d,a=c.nodeName==="SELECT"?(c.focus(),c.value):c.nodeName==="INPUT"||c.nodeName==="TEXTAREA"?((d=c.hasAttribute("readonly"))||c.setAttribute("readonly",""),c.select(),c.setSelectionRange(0,c.value.length),d||c.removeAttribute("readonly"),c.value):(c.hasAttribute("contenteditable")&&c.focus(),a=window.getSelection(),(d=document.createRange()).selectNodeContents(c),a.removeAllRanges(),a.addRange(d),a.toString());return a}},279:function(l){function c(){}c.prototype={on:function(d,a,h){var f=this.e||(this.e={});return(f[d]||(f[d]=[])).push({fn:a,ctx:h}),this},once:function(d,a,h){var f=this;function p(){f.off(d,p),a.apply(h,arguments)}return p._=a,this.on(d,p,h)},emit:function(d){for(var a=[].slice.call(arguments,1),h=((this.e||(this.e={}))[d]||[]).slice(),f=0,p=h.length;f<p;f++)h[f].fn.apply(h[f].ctx,a);return this},off:function(d,a){var h=this.e||(this.e={}),f=h[d],p=[];if(f&&a)for(var y=0,g=f.length;y<g;y++)f[y].fn!==a&&f[y].fn._!==a&&p.push(f[y]);return p.length?h[d]=p:delete h[d],this}},l.exports=c,l.exports.TinyEmitter=c}},n={},i.n=function(l){var c=l&&l.__esModule?function(){return l.default}:function(){return l};return i.d(c,{a:c}),c},i.d=function(l,c){for(var d in c)i.o(c,d)&&!i.o(l,d)&&Object.defineProperty(l,d,{enumerable:!0,get:c[d]})},i.o=function(l,c){return Object.prototype.hasOwnProperty.call(l,c)},i(134).default;function i(l){if(n[l])return n[l].exports;var c=n[l]={exports:{}};return t[l](c,c.exports,i),c.exports}var t,n})});var Js=Fe((Df,If)=>{(function(i){typeof Df=="object"&&typeof If=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("css",function(K,X){var G=X.inline;X.propertyKeywords||(X=i.resolveMode("text/css"));var q=K.indentUnit,T=X.tokenHooks,A=X.documentTypes||{},j=X.mediaTypes||{},te=X.mediaFeatures||{},F=X.mediaValueKeywords||{},z=X.propertyKeywords||{},se=X.nonStandardPropertyKeywords||{},be=X.fontProperties||{},W=X.counterDescriptors||{},M=X.colorKeywords||{},we=X.valueKeywords||{},Pe=X.allowNested,ve=X.lineComment,Ee=X.supportsAtComponent===!0,ze=K.highlightNonStandardPropertyKeywords!==!1,qe,me;function ke(Y,fe){return qe=fe,Y}function Ue(Y,fe){var le=Y.next();if(T[le]){var it=T[le](Y,fe);if(it!==!1)return it}if(le=="@")return Y.eatWhile(/[\w\\\-]/),ke("def",Y.current());if(le=="="||(le=="~"||le=="|")&&Y.eat("="))return ke(null,"compare");if(le=='"'||le=="'")return fe.tokenize=at(le),fe.tokenize(Y,fe);if(le=="#")return Y.eatWhile(/[\w\\\-]/),ke("atom","hash");if(le=="!")return Y.match(/^\s*\w*/),ke("keyword","important");if(/\d/.test(le)||le=="."&&Y.eat(/\d/))return Y.eatWhile(/[\w.%]/),ke("number","unit");if(le==="-"){if(/[\d.]/.test(Y.peek()))return Y.eatWhile(/[\w.%]/),ke("number","unit");if(Y.match(/^-[\w\\\-]*/))return Y.eatWhile(/[\w\\\-]/),Y.match(/^\s*:/,!1)?ke("variable-2","variable-definition"):ke("variable-2","variable");if(Y.match(/^\w+-/))return ke("meta","meta")}else return/[,+>*\/]/.test(le)?ke(null,"select-op"):le=="."&&Y.match(/^-?[_a-z][_a-z0-9-]*/i)?ke("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(le)?ke(null,le):Y.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(Y.current())&&(fe.tokenize=gt),ke("variable callee","variable")):/[\w\\\-]/.test(le)?(Y.eatWhile(/[\w\\\-]/),ke("property","word")):ke(null,null)}function at(Y){return function(fe,le){for(var it=!1,Ne;(Ne=fe.next())!=null;){if(Ne==Y&&!it){Y==")"&&fe.backUp(1);break}it=!it&&Ne=="\\"}return(Ne==Y||!it&&Y!=")")&&(le.tokenize=null),ke("string","string")}}function gt(Y,fe){return Y.next(),Y.match(/^\s*[\"\')]/,!1)?fe.tokenize=null:fe.tokenize=at(")"),ke(null,"(")}function Re(Y,fe,le){this.type=Y,this.indent=fe,this.prev=le}function Ie(Y,fe,le,it){return Y.context=new Re(le,fe.indentation()+(it===!1?0:q),Y.context),le}function Be(Y){return Y.context.prev&&(Y.context=Y.context.prev),Y.context.type}function Ge(Y,fe,le){return _e[le.context.type](Y,fe,le)}function He(Y,fe,le,it){for(var Ne=it||1;Ne>0;Ne--)le.context=le.context.prev;return Ge(Y,fe,le)}function Qe(Y){var fe=Y.current().toLowerCase();we.hasOwnProperty(fe)?me="atom":M.hasOwnProperty(fe)?me="keyword":me="variable"}var _e={};return _e.top=function(Y,fe,le){if(Y=="{")return Ie(le,fe,"block");if(Y=="}"&&le.context.prev)return Be(le);if(Ee&&/@component/i.test(Y))return Ie(le,fe,"atComponentBlock");if(/^@(-moz-)?document$/i.test(Y))return Ie(le,fe,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(Y))return Ie(le,fe,"atBlock");if(/^@(font-face|counter-style)/i.test(Y))return le.stateArg=Y,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(Y))return"keyframes";if(Y&&Y.charAt(0)=="@")return Ie(le,fe,"at");if(Y=="hash")me="builtin";else if(Y=="word")me="tag";else{if(Y=="variable-definition")return"maybeprop";if(Y=="interpolation")return Ie(le,fe,"interpolation");if(Y==":")return"pseudo";if(Pe&&Y=="(")return Ie(le,fe,"parens")}return le.context.type},_e.block=function(Y,fe,le){if(Y=="word"){var it=fe.current().toLowerCase();return z.hasOwnProperty(it)?(me="property","maybeprop"):se.hasOwnProperty(it)?(me=ze?"string-2":"property","maybeprop"):Pe?(me=fe.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(me+=" error","maybeprop")}else return Y=="meta"?"block":!Pe&&(Y=="hash"||Y=="qualifier")?(me="error","block"):_e.top(Y,fe,le)},_e.maybeprop=function(Y,fe,le){return Y==":"?Ie(le,fe,"prop"):Ge(Y,fe,le)},_e.prop=function(Y,fe,le){if(Y==";")return Be(le);if(Y=="{"&&Pe)return Ie(le,fe,"propBlock");if(Y=="}"||Y=="{")return He(Y,fe,le);if(Y=="(")return Ie(le,fe,"parens");if(Y=="hash"&&!/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(fe.current()))me+=" error";else if(Y=="word")Qe(fe);else if(Y=="interpolation")return Ie(le,fe,"interpolation");return"prop"},_e.propBlock=function(Y,fe,le){return Y=="}"?Be(le):Y=="word"?(me="property","maybeprop"):le.context.type},_e.parens=function(Y,fe,le){return Y=="{"||Y=="}"?He(Y,fe,le):Y==")"?Be(le):Y=="("?Ie(le,fe,"parens"):Y=="interpolation"?Ie(le,fe,"interpolation"):(Y=="word"&&Qe(fe),"parens")},_e.pseudo=function(Y,fe,le){return Y=="meta"?"pseudo":Y=="word"?(me="variable-3",le.context.type):Ge(Y,fe,le)},_e.documentTypes=function(Y,fe,le){return Y=="word"&&A.hasOwnProperty(fe.current())?(me="tag",le.context.type):_e.atBlock(Y,fe,le)},_e.atBlock=function(Y,fe,le){if(Y=="(")return Ie(le,fe,"atBlock_parens");if(Y=="}"||Y==";")return He(Y,fe,le);if(Y=="{")return Be(le)&&Ie(le,fe,Pe?"block":"top");if(Y=="interpolation")return Ie(le,fe,"interpolation");if(Y=="word"){var it=fe.current().toLowerCase();it=="only"||it=="not"||it=="and"||it=="or"?me="keyword":j.hasOwnProperty(it)?me="attribute":te.hasOwnProperty(it)?me="property":F.hasOwnProperty(it)?me="keyword":z.hasOwnProperty(it)?me="property":se.hasOwnProperty(it)?me=ze?"string-2":"property":we.hasOwnProperty(it)?me="atom":M.hasOwnProperty(it)?me="keyword":me="error"}return le.context.type},_e.atComponentBlock=function(Y,fe,le){return Y=="}"?He(Y,fe,le):Y=="{"?Be(le)&&Ie(le,fe,Pe?"block":"top",!1):(Y=="word"&&(me="error"),le.context.type)},_e.atBlock_parens=function(Y,fe,le){return Y==")"?Be(le):Y=="{"||Y=="}"?He(Y,fe,le,2):_e.atBlock(Y,fe,le)},_e.restricted_atBlock_before=function(Y,fe,le){return Y=="{"?Ie(le,fe,"restricted_atBlock"):Y=="word"&&le.stateArg=="@counter-style"?(me="variable","restricted_atBlock_before"):Ge(Y,fe,le)},_e.restricted_atBlock=function(Y,fe,le){return Y=="}"?(le.stateArg=null,Be(le)):Y=="word"?(le.stateArg=="@font-face"&&!be.hasOwnProperty(fe.current().toLowerCase())||le.stateArg=="@counter-style"&&!W.hasOwnProperty(fe.current().toLowerCase())?me="error":me="property","maybeprop"):"restricted_atBlock"},_e.keyframes=function(Y,fe,le){return Y=="word"?(me="variable","keyframes"):Y=="{"?Ie(le,fe,"top"):Ge(Y,fe,le)},_e.at=function(Y,fe,le){return Y==";"?Be(le):Y=="{"||Y=="}"?He(Y,fe,le):(Y=="word"?me="tag":Y=="hash"&&(me="builtin"),"at")},_e.interpolation=function(Y,fe,le){return Y=="}"?Be(le):Y=="{"||Y==";"?He(Y,fe,le):(Y=="word"?me="variable":Y!="variable"&&Y!="("&&Y!=")"&&(me="error"),"interpolation")},{startState:function(Y){return{tokenize:null,state:G?"block":"top",stateArg:null,context:new Re(G?"block":"top",Y||0,null)}},token:function(Y,fe){if(!fe.tokenize&&Y.eatSpace())return null;var le=(fe.tokenize||Ue)(Y,fe);return le&&typeof le=="object"&&(qe=le[1],le=le[0]),me=le,qe!="comment"&&(fe.state=_e[fe.state](qe,Y,fe)),me},indent:function(Y,fe){var le=Y.context,it=fe&&fe.charAt(0),Ne=le.indent;return le.type=="prop"&&(it=="}"||it==")")&&(le=le.prev),le.prev&&(it=="}"&&(le.type=="block"||le.type=="top"||le.type=="interpolation"||le.type=="restricted_atBlock")?(le=le.prev,Ne=le.indent):(it==")"&&(le.type=="parens"||le.type=="atBlock_parens")||it=="{"&&(le.type=="at"||le.type=="atBlock"))&&(Ne=Math.max(0,le.indent-q))),Ne},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:ve,fold:"brace"}});function t(K){for(var X={},G=0;G<K.length;++G)X[K[G].toLowerCase()]=!0;return X}var n=["domain","regexp","url","url-prefix"],l=t(n),c=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=t(c),a=["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"],h=t(a),f=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light"],p=t(f),y=["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-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"],g=t(y),v=["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","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","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"],b=t(v),k=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],_=t(k),w=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=t(w),S=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],R=t(S),O=["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","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","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","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","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"],U=t(O),$=n.concat(c).concat(a).concat(f).concat(y).concat(v).concat(S).concat(O);i.registerHelper("hintWords","css",$);function J(K,X){for(var G=!1,q;(q=K.next())!=null;){if(G&&q=="/"){X.tokenize=null;break}G=q=="*"}return["comment","comment"]}i.defineMIME("text/css",{documentTypes:l,mediaTypes:d,mediaFeatures:h,mediaValueKeywords:p,propertyKeywords:g,nonStandardPropertyKeywords:b,fontProperties:_,counterDescriptors:I,colorKeywords:R,valueKeywords:U,tokenHooks:{"/":function(K,X){return K.eat("*")?(X.tokenize=J,J(K,X)):!1}},name:"css"}),i.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:h,mediaValueKeywords:p,propertyKeywords:g,nonStandardPropertyKeywords:b,colorKeywords:R,valueKeywords:U,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(K,X){return K.eat("/")?(K.skipToEnd(),["comment","comment"]):K.eat("*")?(X.tokenize=J,J(K,X)):["operator","operator"]},":":function(K){return K.match(/^\s*\{/,!1)?[null,null]:!1},$:function(K){return K.match(/^[\w-]+/),K.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(K){return K.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),i.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:h,mediaValueKeywords:p,propertyKeywords:g,nonStandardPropertyKeywords:b,colorKeywords:R,valueKeywords:U,fontProperties:_,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(K,X){return K.eat("/")?(K.skipToEnd(),["comment","comment"]):K.eat("*")?(X.tokenize=J,J(K,X)):["operator","operator"]},"@":function(K){return K.eat("{")?[null,"interpolation"]:K.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(K.eatWhile(/[\w\\\-]/),K.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),i.defineMIME("text/x-gss",{documentTypes:l,mediaTypes:d,mediaFeatures:h,propertyKeywords:g,nonStandardPropertyKeywords:b,fontProperties:_,counterDescriptors:I,colorKeywords:R,valueKeywords:U,supportsAtComponent:!0,tokenHooks:{"/":function(K,X){return K.eat("*")?(X.tokenize=J,J(K,X)):!1}},name:"css",helperType:"gss"})})});var el=Fe((Ff,Mf)=>{(function(i){typeof Ff=="object"&&typeof Mf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(F,z,se,be,W,M){this.indented=F,this.column=z,this.type=se,this.info=be,this.align=W,this.prev=M}function n(F,z,se,be){var W=F.indented;return F.context&&F.context.type=="statement"&&se!="statement"&&(W=F.context.indented),F.context=new t(W,z,se,be,null,F.context)}function l(F){var z=F.context.type;return(z==")"||z=="]"||z=="}")&&(F.indented=F.context.indented),F.context=F.context.prev}function c(F,z,se){if(z.prevToken=="variable"||z.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(F.string.slice(0,se))||z.typeAtEndOfLine&&F.column()==F.indentation())return!0}function d(F){for(;;){if(!F||F.type=="top")return!0;if(F.type=="}"&&F.prev.info!="namespace")return!1;F=F.prev}}i.defineMode("clike",function(F,z){var se=F.indentUnit,be=z.statementIndentUnit||se,W=z.dontAlignCalls,M=z.keywords||{},we=z.types||{},Pe=z.builtin||{},ve=z.blockKeywords||{},Ee=z.defKeywords||{},ze=z.atoms||{},qe=z.hooks||{},me=z.multiLineStrings,ke=z.indentStatements!==!1,Ue=z.indentSwitch!==!1,at=z.namespaceSeparator,gt=z.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,Re=z.numberStart||/[\d\.]/,Ie=z.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Be=z.isOperatorChar||/[+\-*&%=<>!?|\/]/,Ge=z.isIdentifierChar||/[\w\$_\xa1-\uffff]/,He=z.isReservedIdentifier||!1,Qe,_e;function Y(Ne,ot){var Ye=Ne.next();if(qe[Ye]){var Je=qe[Ye](Ne,ot);if(Je!==!1)return Je}if(Ye=='"'||Ye=="'")return ot.tokenize=fe(Ye),ot.tokenize(Ne,ot);if(Re.test(Ye)){if(Ne.backUp(1),Ne.match(Ie))return"number";Ne.next()}if(gt.test(Ye))return Qe=Ye,null;if(Ye=="/"){if(Ne.eat("*"))return ot.tokenize=le,le(Ne,ot);if(Ne.eat("/"))return Ne.skipToEnd(),"comment"}if(Be.test(Ye)){for(;!Ne.match(/^\/[\/*]/,!1)&&Ne.eat(Be););return"operator"}if(Ne.eatWhile(Ge),at)for(;Ne.match(at);)Ne.eatWhile(Ge);var We=Ne.current();return h(M,We)?(h(ve,We)&&(Qe="newstatement"),h(Ee,We)&&(_e=!0),"keyword"):h(we,We)?"type":h(Pe,We)||He&&He(We)?(h(ve,We)&&(Qe="newstatement"),"builtin"):h(ze,We)?"atom":"variable"}function fe(Ne){return function(ot,Ye){for(var Je=!1,We,qt=!1;(We=ot.next())!=null;){if(We==Ne&&!Je){qt=!0;break}Je=!Je&&We=="\\"}return(qt||!(Je||me))&&(Ye.tokenize=null),"string"}}function le(Ne,ot){for(var Ye=!1,Je;Je=Ne.next();){if(Je=="/"&&Ye){ot.tokenize=null;break}Ye=Je=="*"}return"comment"}function it(Ne,ot){z.typeFirstDefinitions&&Ne.eol()&&d(ot.context)&&(ot.typeAtEndOfLine=c(Ne,ot,Ne.pos))}return{startState:function(Ne){return{tokenize:null,context:new t((Ne||0)-se,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(Ne,ot){var Ye=ot.context;if(Ne.sol()&&(Ye.align==null&&(Ye.align=!1),ot.indented=Ne.indentation(),ot.startOfLine=!0),Ne.eatSpace())return it(Ne,ot),null;Qe=_e=null;var Je=(ot.tokenize||Y)(Ne,ot);if(Je=="comment"||Je=="meta")return Je;if(Ye.align==null&&(Ye.align=!0),Qe==";"||Qe==":"||Qe==","&&Ne.match(/^\s*(?:\/\/.*)?$/,!1))for(;ot.context.type=="statement";)l(ot);else if(Qe=="{")n(ot,Ne.column(),"}");else if(Qe=="[")n(ot,Ne.column(),"]");else if(Qe=="(")n(ot,Ne.column(),")");else if(Qe=="}"){for(;Ye.type=="statement";)Ye=l(ot);for(Ye.type=="}"&&(Ye=l(ot));Ye.type=="statement";)Ye=l(ot)}else Qe==Ye.type?l(ot):ke&&((Ye.type=="}"||Ye.type=="top")&&Qe!=";"||Ye.type=="statement"&&Qe=="newstatement")&&n(ot,Ne.column(),"statement",Ne.current());if(Je=="variable"&&(ot.prevToken=="def"||z.typeFirstDefinitions&&c(Ne,ot,Ne.start)&&d(ot.context)&&Ne.match(/^\s*\(/,!1))&&(Je="def"),qe.token){var We=qe.token(Ne,ot,Je);We!==void 0&&(Je=We)}return Je=="def"&&z.styleDefs===!1&&(Je="variable"),ot.startOfLine=!1,ot.prevToken=_e?"def":Je||Qe,it(Ne,ot),Je},indent:function(Ne,ot){if(Ne.tokenize!=Y&&Ne.tokenize!=null||Ne.typeAtEndOfLine)return i.Pass;var Ye=Ne.context,Je=ot&&ot.charAt(0),We=Je==Ye.type;if(Ye.type=="statement"&&Je=="}"&&(Ye=Ye.prev),z.dontIndentStatements)for(;Ye.type=="statement"&&z.dontIndentStatements.test(Ye.info);)Ye=Ye.prev;if(qe.indent){var qt=qe.indent(Ne,Ye,ot,se);if(typeof qt=="number")return qt}var Lt=Ye.prev&&Ye.prev.info=="switch";if(z.allmanIndentation&&/[{(]/.test(Je)){for(;Ye.type!="top"&&Ye.type!="}";)Ye=Ye.prev;return Ye.indented}return Ye.type=="statement"?Ye.indented+(Je=="{"?0:be):Ye.align&&(!W||Ye.type!=")")?Ye.column+(We?0:1):Ye.type==")"&&!We?Ye.indented+be:Ye.indented+(We?0:se)+(!We&&Lt&&!/^(?:case|default)\b/.test(ot)?se:0)},electricInput:Ue?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function a(F){for(var z={},se=F.split(" "),be=0;be<se.length;++be)z[se[be]]=!0;return z}function h(F,z){return typeof F=="function"?F(z):F.propertyIsEnumerable(z)}var f="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",p="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",y="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",g="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",v=a("int long char short double float unsigned signed void bool"),b=a("SEL instancetype id Class Protocol BOOL");function k(F){return h(v,F)||/.+_t$/.test(F)}function _(F){return k(F)||h(b,F)}var w="case do else for if switch while struct enum union",I="struct enum union";function S(F,z){if(!z.startOfLine)return!1;for(var se,be=null;se=F.peek();){if(se=="\\"&&F.match(/^.$/)){be=S;break}else if(se=="/"&&F.match(/^\/[\/\*]/,!1))break;F.next()}return z.tokenize=be,"meta"}function R(F,z){return z.prevToken=="type"?"type":!1}function O(F){return!F||F.length<2||F[0]!="_"?!1:F[1]=="_"||F[1]!==F[1].toLowerCase()}function U(F){return F.eatWhile(/[\w\.']/),"number"}function $(F,z){if(F.backUp(1),F.match(/^(?:R|u8R|uR|UR|LR)/)){var se=F.match(/^"([^\s\\()]{0,16})\(/);return se?(z.cpp11RawStringDelim=se[1],z.tokenize=X,X(F,z)):!1}return F.match(/^(?:u8|u|U|L)/)?F.match(/^["']/,!1)?"string":!1:(F.next(),!1)}function J(F){var z=/(\w+)::~?(\w+)$/.exec(F);return z&&z[1]==z[2]}function K(F,z){for(var se;(se=F.next())!=null;)if(se=='"'&&!F.eat('"')){z.tokenize=null;break}return"string"}function X(F,z){var se=z.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&"),be=F.match(new RegExp(".*?\\)"+se+'"'));return be?z.tokenize=null:F.skipToEnd(),"string"}function G(F,z){typeof F=="string"&&(F=[F]);var se=[];function be(M){if(M)for(var we in M)M.hasOwnProperty(we)&&se.push(we)}be(z.keywords),be(z.types),be(z.builtin),be(z.atoms),se.length&&(z.helperType=F[0],i.registerHelper("hintWords",F[0],se));for(var W=0;W<F.length;++W)i.defineMIME(F[W],z)}G(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:a(f),types:k,blockKeywords:a(w),defKeywords:a(I),typeFirstDefinitions:!0,atoms:a("NULL true false"),isReservedIdentifier:O,hooks:{"#":S,"*":R},modeProps:{fold:["brace","include"]}}),G(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:a(f+" "+p),types:k,blockKeywords:a(w+" class try catch"),defKeywords:a(I+" class namespace"),typeFirstDefinitions:!0,atoms:a("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:O,hooks:{"#":S,"*":R,u:$,U:$,L:$,R:$,"0":U,"1":U,"2":U,"3":U,"4":U,"5":U,"6":U,"7":U,"8":U,"9":U,token:function(F,z,se){if(se=="variable"&&F.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&J(F.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-java",{name:"clike",keywords:a("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:a("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:a("catch class do else finally for if switch try while"),defKeywords:a("class interface enum @interface"),typeFirstDefinitions:!0,atoms:a("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(F){return F.match("interface",!1)?!1:(F.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),G("text/x-csharp",{name:"clike",keywords:a("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:a("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:a("catch class do else finally for foreach if struct switch try while"),defKeywords:a("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"@":function(F,z){return F.eat('"')?(z.tokenize=K,K(F,z)):(F.eatWhile(/[\w\$_]/),"meta")}}});function q(F,z){for(var se=!1;!F.eol();){if(!se&&F.match('"""')){z.tokenize=null;break}se=F.next()=="\\"&&!se}return"string"}function T(F){return function(z,se){for(var be;be=z.next();)if(be=="*"&&z.eat("/"))if(F==1){se.tokenize=null;break}else return se.tokenize=T(F-1),se.tokenize(z,se);else if(be=="/"&&z.eat("*"))return se.tokenize=T(F+1),se.tokenize(z,se);return"comment"}}G("text/x-scala",{name:"clike",keywords:a("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:a("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:a("catch class enum do else finally for forSome if match switch try while"),defKeywords:a("class enum def object package trait type val var"),atoms:a("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(F){return F.eatWhile(/[\w\$_]/),"meta"},'"':function(F,z){return F.match('""')?(z.tokenize=q,z.tokenize(F,z)):!1},"'":function(F){return F.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(F,z){var se=z.context;return se.type=="}"&&se.align&&F.eat(">")?(z.context=new t(se.indented,se.column,se.type,se.info,null,se.prev),"operator"):!1},"/":function(F,z){return F.eat("*")?(z.tokenize=T(1),z.tokenize(F,z)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function A(F){return function(z,se){for(var be=!1,W,M=!1;!z.eol();){if(!F&&!be&&z.match('"')){M=!0;break}if(F&&z.match('"""')){M=!0;break}W=z.next(),!be&&W=="$"&&z.match("{")&&z.skipTo("}"),be=!be&&W=="\\"&&!F}return(M||!F)&&(se.tokenize=null),"string"}}G("text/x-kotlin",{name:"clike",keywords:a("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:a("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:a("catch class do else finally for if where try while enum"),defKeywords:a("class val var object interface fun"),atoms:a("true false null this"),hooks:{"@":function(F){return F.eatWhile(/[\w\$_]/),"meta"},"*":function(F,z){return z.prevToken=="."?"variable":"operator"},'"':function(F,z){return z.tokenize=A(F.match('""')),z.tokenize(F,z)},"/":function(F,z){return F.eat("*")?(z.tokenize=T(1),z.tokenize(F,z)):!1},indent:function(F,z,se,be){var W=se&&se.charAt(0);if((F.prevToken=="}"||F.prevToken==")")&&se=="")return F.indented;if(F.prevToken=="operator"&&se!="}"&&F.context.type!="}"||F.prevToken=="variable"&&W=="."||(F.prevToken=="}"||F.prevToken==")")&&W==".")return be*2+z.indented;if(z.align&&z.type=="}")return z.indented+(F.context.type==(se||"").charAt(0)?0:be)}},modeProps:{closeBrackets:{triples:'"'}}}),G(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:a("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:a("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:a("for while do if else struct"),builtin:a("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:a("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:{"#":S},modeProps:{fold:["brace","include"]}}),G("text/x-nesc",{name:"clike",keywords:a(f+" 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:k,blockKeywords:a(w),atoms:a("null true false"),hooks:{"#":S},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec",{name:"clike",keywords:a(f+" "+y),types:_,builtin:a(g),blockKeywords:a(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:a(I+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:O,hooks:{"#":S,"*":R},modeProps:{fold:["brace","include"]}}),G("text/x-objectivec++",{name:"clike",keywords:a(f+" "+y+" "+p),types:_,builtin:a(g),blockKeywords:a(w+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:a(I+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:a("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:O,hooks:{"#":S,"*":R,u:$,U:$,L:$,R:$,"0":U,"1":U,"2":U,"3":U,"4":U,"5":U,"6":U,"7":U,"8":U,"9":U,token:function(F,z,se){if(se=="variable"&&F.peek()=="("&&(z.prevToken==";"||z.prevToken==null||z.prevToken=="}")&&J(F.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),G("text/x-squirrel",{name:"clike",keywords:a("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:k,blockKeywords:a("case catch class else for foreach if switch try while"),defKeywords:a("function local class"),typeFirstDefinitions:!0,atoms:a("true false null"),hooks:{"#":S},modeProps:{fold:["brace","include"]}});var j=null;function te(F){return function(z,se){for(var be=!1,W,M=!1;!z.eol();){if(!be&&z.match('"')&&(F=="single"||z.match('""'))){M=!0;break}if(!be&&z.match("``")){j=te(F),M=!0;break}W=z.next(),be=F=="single"&&!be&&W=="\\"}return M&&(se.tokenize=null),"string"}}G("text/x-ceylon",{name:"clike",keywords:a("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(F){var z=F.charAt(0);return z===z.toUpperCase()&&z!==z.toLowerCase()},blockKeywords:a("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:a("class dynamic function interface module object package value"),builtin:a("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:a("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(F){return F.eatWhile(/[\w\$_]/),"meta"},'"':function(F,z){return z.tokenize=te(F.match('""')?"triple":"single"),z.tokenize(F,z)},"`":function(F,z){return!j||!F.match("`")?!1:(z.tokenize=j,j=null,z.tokenize(F,z))},"'":function(F){return F.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(F,z,se){if((se=="variable"||se=="type")&&z.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})});var Rf=Fe((Of,Pf)=>{(function(i){typeof Of=="object"&&typeof Pf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("diff",function(){var t={"+":"positive","-":"negative","@":"meta"};return{token:function(n){var l=n.string.search(/[\t ]+?$/);if(!n.sol()||l===0)return n.skipToEnd(),("error "+(t[n.string.charAt(0)]||"")).replace(/ $/,"");var c=t[n.peek()]||n.skipToEnd();return l===-1?n.skipToEnd():n.pos=l,c}}}),i.defineMIME("text/x-diff","diff")})});var Bf=Fe((zf,Nf)=>{(function(i){typeof zf=="object"&&typeof Nf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("fortran",function(){function t(p){for(var y={},g=0;g<p.length;++g)y[p[g]]=!0;return y}var n=t(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),l=t(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),c=t(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),d=/[+\-*&=<>\/\:]/,a=new RegExp("(.and.|.or.|.eq.|.lt.|.le.|.gt.|.ge.|.ne.|.not.|.eqv.|.neqv.)","i");function h(p,y){if(p.match(a))return"operator";var g=p.next();if(g=="!")return p.skipToEnd(),"comment";if(g=='"'||g=="'")return y.tokenize=f(g),y.tokenize(p,y);if(/[\[\]\(\),]/.test(g))return null;if(/\d/.test(g))return p.eatWhile(/[\w\.]/),"number";if(d.test(g))return p.eatWhile(d),"operator";p.eatWhile(/[\w\$_]/);var v=p.current().toLowerCase();return n.hasOwnProperty(v)?"keyword":l.hasOwnProperty(v)||c.hasOwnProperty(v)?"builtin":"variable"}function f(p){return function(y,g){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(g.tokenize=null),"string"}}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var g=(y.tokenize||h)(p,y);return g=="comment"||g=="meta",g}}}),i.defineMIME("text/x-fortran","fortran")})});var $f=Fe((qf,jf)=>{(function(i){typeof qf=="object"&&typeof jf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("go",function(t){var n=t.indentUnit,l={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},c={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/,a;function h(b,k){var _=b.next();if(_=='"'||_=="'"||_=="`")return k.tokenize=f(_),k.tokenize(b,k);if(/[\d\.]/.test(_))return _=="."?b.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):_=="0"?b.match(/^[xX][0-9a-fA-F]+/)||b.match(/^0[0-7]+/):b.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(_))return a=_,null;if(_=="/"){if(b.eat("*"))return k.tokenize=p,p(b,k);if(b.eat("/"))return b.skipToEnd(),"comment"}if(d.test(_))return b.eatWhile(d),"operator";b.eatWhile(/[\w\$_\xa1-\uffff]/);var w=b.current();return l.propertyIsEnumerable(w)?((w=="case"||w=="default")&&(a="case"),"keyword"):c.propertyIsEnumerable(w)?"atom":"variable"}function f(b){return function(k,_){for(var w=!1,I,S=!1;(I=k.next())!=null;){if(I==b&&!w){S=!0;break}w=!w&&b!="`"&&I=="\\"}return(S||!(w||b=="`"))&&(_.tokenize=h),"string"}}function p(b,k){for(var _=!1,w;w=b.next();){if(w=="/"&&_){k.tokenize=h;break}_=w=="*"}return"comment"}function y(b,k,_,w,I){this.indented=b,this.column=k,this.type=_,this.align=w,this.prev=I}function g(b,k,_){return b.context=new y(b.indented,k,_,null,b.context)}function v(b){if(!!b.context.prev){var k=b.context.type;return(k==")"||k=="]"||k=="}")&&(b.indented=b.context.indented),b.context=b.context.prev}}return{startState:function(b){return{tokenize:null,context:new y((b||0)-n,0,"top",!1),indented:0,startOfLine:!0}},token:function(b,k){var _=k.context;if(b.sol()&&(_.align==null&&(_.align=!1),k.indented=b.indentation(),k.startOfLine=!0,_.type=="case"&&(_.type="}")),b.eatSpace())return null;a=null;var w=(k.tokenize||h)(b,k);return w=="comment"||(_.align==null&&(_.align=!0),a=="{"?g(k,b.column(),"}"):a=="["?g(k,b.column(),"]"):a=="("?g(k,b.column(),")"):a=="case"?_.type="case":(a=="}"&&_.type=="}"||a==_.type)&&v(k),k.startOfLine=!1),w},indent:function(b,k){if(b.tokenize!=h&&b.tokenize!=null)return i.Pass;var _=b.context,w=k&&k.charAt(0);if(_.type=="case"&&/^(?:case|default)\b/.test(k))return b.context.type="}",_.indented;var I=w==_.type;return _.align?_.column+(I?0:1):_.indented+(I?0:n)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),i.defineMIME("text/x-go","go")})});var Wf=Fe((Uf,Hf)=>{(function(i){typeof Uf=="object"&&typeof Hf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("haskell",function(t,n){function l(S,R,O){return R(O),O(S,R)}var c=/[a-z_]/,d=/[A-Z]/,a=/\d/,h=/[0-9A-Fa-f]/,f=/[0-7]/,p=/[a-z_A-Z0-9'\xa1-\uffff]/,y=/[-!#$%&*+.\/<=>?@\\^|~:]/,g=/[(),;[\]`{}]/,v=/[ \t\v\f]/;function b(S,R){if(S.eatWhile(v))return null;var O=S.next();if(g.test(O)){if(O=="{"&&S.eat("-")){var U="comment";return S.eat("#")&&(U="meta"),l(S,R,k(U,1))}return null}if(O=="'")return S.eat("\\"),S.next(),S.eat("'")?"string":"string error";if(O=='"')return l(S,R,_);if(d.test(O))return S.eatWhile(p),S.eat(".")?"qualifier":"variable-2";if(c.test(O))return S.eatWhile(p),"variable";if(a.test(O)){if(O=="0"){if(S.eat(/[xX]/))return S.eatWhile(h),"integer";if(S.eat(/[oO]/))return S.eatWhile(f),"number"}S.eatWhile(a);var U="number";return S.match(/^\.\d+/)&&(U="number"),S.eat(/[eE]/)&&(U="number",S.eat(/[-+]/),S.eatWhile(a)),U}if(O=="."&&S.eat("."))return"keyword";if(y.test(O)){if(O=="-"&&S.eat(/-/)&&(S.eatWhile(/-/),!S.eat(y)))return S.skipToEnd(),"comment";var U="variable";return O==":"&&(U="variable-2"),S.eatWhile(y),U}return"error"}function k(S,R){return R==0?b:function(O,U){for(var $=R;!O.eol();){var J=O.next();if(J=="{"&&O.eat("-"))++$;else if(J=="-"&&O.eat("}")&&(--$,$==0))return U(b),S}return U(k(S,$)),S}}function _(S,R){for(;!S.eol();){var O=S.next();if(O=='"')return R(b),"string";if(O=="\\"){if(S.eol()||S.eat(v))return R(w),"string";S.eat("&")||S.next()}}return R(b),"string error"}function w(S,R){return S.eat("\\")?l(S,R,_):(S.next(),R(b),"error")}var I=function(){var S={};function R($){return function(){for(var J=0;J<arguments.length;J++)S[arguments[J]]=$}}R("keyword")("case","class","data","default","deriving","do","else","foreign","if","import","in","infix","infixl","infixr","instance","let","module","newtype","of","then","type","where","_"),R("keyword")("..",":","::","=","\\","<-","->","@","~","=>"),R("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),R("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),R("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");var O=n.overrideKeywords;if(O)for(var U in O)O.hasOwnProperty(U)&&(S[U]=O[U]);return S}();return{startState:function(){return{f:b}},copyState:function(S){return{f:S.f}},token:function(S,R){var O=R.f(S,function($){R.f=$}),U=S.current();return I.hasOwnProperty(U)?I[U]:O},blockCommentStart:"{-",blockCommentEnd:"-}",lineComment:"--"}}),i.defineMIME("text/x-haskell","haskell")})});var ba=Fe((Gf,Kf)=>{(function(i){typeof Gf=="object"&&typeof Kf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var t={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};i.defineMode("xml",function(l,c){var d=l.indentUnit,a={},h=c.htmlMode?t:n;for(var f in h)a[f]=h[f];for(var f in c)a[f]=c[f];var p,y;function g(T,A){function j(z){return A.tokenize=z,z(T,A)}var te=T.next();if(te=="<")return T.eat("!")?T.eat("[")?T.match("CDATA[")?j(k("atom","]]>")):null:T.match("--")?j(k("comment","-->")):T.match("DOCTYPE",!0,!0)?(T.eatWhile(/[\w\._\-]/),j(_(1))):null:T.eat("?")?(T.eatWhile(/[\w\._\-]/),A.tokenize=k("meta","?>"),"meta"):(p=T.eat("/")?"closeTag":"openTag",A.tokenize=v,"tag bracket");if(te=="&"){var F;return T.eat("#")?T.eat("x")?F=T.eatWhile(/[a-fA-F\d]/)&&T.eat(";"):F=T.eatWhile(/[\d]/)&&T.eat(";"):F=T.eatWhile(/[\w\.\-:]/)&&T.eat(";"),F?"atom":"error"}else return T.eatWhile(/[^&<]/),null}g.isInText=!0;function v(T,A){var j=T.next();if(j==">"||j=="/"&&T.eat(">"))return A.tokenize=g,p=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return p="equals",null;if(j=="<"){A.tokenize=g,A.state=R,A.tagName=A.tagStart=null;var te=A.tokenize(T,A);return te?te+" tag error":"tag error"}else return/[\'\"]/.test(j)?(A.tokenize=b(j),A.stringStartCol=T.column(),A.tokenize(T,A)):(T.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function b(T){var A=function(j,te){for(;!j.eol();)if(j.next()==T){te.tokenize=v;break}return"string"};return A.isInAttribute=!0,A}function k(T,A){return function(j,te){for(;!j.eol();){if(j.match(A)){te.tokenize=g;break}j.next()}return T}}function _(T){return function(A,j){for(var te;(te=A.next())!=null;){if(te=="<")return j.tokenize=_(T+1),j.tokenize(A,j);if(te==">")if(T==1){j.tokenize=g;break}else return j.tokenize=_(T-1),j.tokenize(A,j)}return"meta"}}function w(T,A,j){this.prev=T.context,this.tagName=A||"",this.indent=T.indented,this.startOfLine=j,(a.doNotIndent.hasOwnProperty(A)||T.context&&T.context.noIndent)&&(this.noIndent=!0)}function I(T){T.context&&(T.context=T.context.prev)}function S(T,A){for(var j;;){if(!T.context||(j=T.context.tagName,!a.contextGrabbers.hasOwnProperty(j)||!a.contextGrabbers[j].hasOwnProperty(A)))return;I(T)}}function R(T,A,j){return T=="openTag"?(j.tagStart=A.column(),O):T=="closeTag"?U:R}function O(T,A,j){return T=="word"?(j.tagName=A.current(),y="tag",K):a.allowMissingTagName&&T=="endTag"?(y="tag bracket",K(T,A,j)):(y="error",O)}function U(T,A,j){if(T=="word"){var te=A.current();return j.context&&j.context.tagName!=te&&a.implicitlyClosed.hasOwnProperty(j.context.tagName)&&I(j),j.context&&j.context.tagName==te||a.matchClosing===!1?(y="tag",$):(y="tag error",J)}else return a.allowMissingTagName&&T=="endTag"?(y="tag bracket",$(T,A,j)):(y="error",J)}function $(T,A,j){return T!="endTag"?(y="error",$):(I(j),R)}function J(T,A,j){return y="error",$(T,A,j)}function K(T,A,j){if(T=="word")return y="attribute",X;if(T=="endTag"||T=="selfcloseTag"){var te=j.tagName,F=j.tagStart;return j.tagName=j.tagStart=null,T=="selfcloseTag"||a.autoSelfClosers.hasOwnProperty(te)?S(j,te):(S(j,te),j.context=new w(j,te,F==j.indented)),R}return y="error",K}function X(T,A,j){return T=="equals"?G:(a.allowMissing||(y="error"),K(T,A,j))}function G(T,A,j){return T=="string"?q:T=="word"&&a.allowUnquoted?(y="string",K):(y="error",K(T,A,j))}function q(T,A,j){return T=="string"?q:K(T,A,j)}return{startState:function(T){var A={tokenize:g,state:R,indented:T||0,tagName:null,tagStart:null,context:null};return T!=null&&(A.baseIndent=T),A},token:function(T,A){if(!A.tagName&&T.sol()&&(A.indented=T.indentation()),T.eatSpace())return null;p=null;var j=A.tokenize(T,A);return(j||p)&&j!="comment"&&(y=null,A.state=A.state(p||j,T,A),y&&(j=y=="error"?j+" error":y)),j},indent:function(T,A,j){var te=T.context;if(T.tokenize.isInAttribute)return T.tagStart==T.indented?T.stringStartCol+1:T.indented+d;if(te&&te.noIndent)return i.Pass;if(T.tokenize!=v&&T.tokenize!=g)return j?j.match(/^(\s*)/)[0].length:0;if(T.tagName)return a.multilineTagIndentPastTag!==!1?T.tagStart+T.tagName.length+2:T.tagStart+d*(a.multilineTagIndentFactor||1);if(a.alignCDATA&&/<!\[CDATA\[/.test(A))return 0;var F=A&&/^<(\/)?([\w_:\.-]*)/.exec(A);if(F&&F[1])for(;te;)if(te.tagName==F[2]){te=te.prev;break}else if(a.implicitlyClosed.hasOwnProperty(te.tagName))te=te.prev;else break;else if(F)for(;te;){var z=a.contextGrabbers[te.tagName];if(z&&z.hasOwnProperty(F[2]))te=te.prev;else break}for(;te&&te.prev&&!te.startOfLine;)te=te.prev;return te?te.indent+d:T.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:a.htmlMode?"html":"xml",helperType:a.htmlMode?"html":"xml",skipAttribute:function(T){T.state==G&&(T.state=K)},xmlCurrentTag:function(T){return T.tagName?{name:T.tagName,close:T.type=="closeTag"}:null},xmlCurrentContext:function(T){for(var A=[],j=T.context;j;j=j.prev)A.push(j.tagName);return A.reverse()}}}),i.defineMIME("text/xml","xml"),i.defineMIME("application/xml","xml"),i.mimeModes.hasOwnProperty("text/html")||i.defineMIME("text/html",{name:"xml",htmlMode:!0})})});var tl=Fe((Vf,Yf)=>{(function(i){typeof Vf=="object"&&typeof Yf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("javascript",function(t,n){var l=t.indentUnit,c=n.statementIndent,d=n.jsonld,a=n.json||d,h=n.trackScope!==!1,f=n.typescript,p=n.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function D(Vt){return{type:Vt,style:"keyword"}}var B=D("keyword a"),de=D("keyword b"),De=D("keyword c"),ft=D("keyword d"),xt=D("operator"),Xe={type:"atom",style:"atom"};return{if:D("if"),while:B,with:B,else:de,do:de,try:de,finally:de,return:ft,break:ft,continue:ft,new:D("new"),delete:De,void:De,throw:De,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:xt,typeof:xt,instanceof:xt,true:Xe,false:Xe,null:Xe,undefined:Xe,NaN:Xe,Infinity:Xe,this:D("this"),class:D("class"),super:D("atom"),yield:De,export:D("export"),import:D("import"),extends:De,await:De}}(),g=/[+\-*&%=<>!?|~^@]/,v=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function b(D){for(var B=!1,de,De=!1;(de=D.next())!=null;){if(!B){if(de=="/"&&!De)return;de=="["?De=!0:De&&de=="]"&&(De=!1)}B=!B&&de=="\\"}}var k,_;function w(D,B,de){return k=D,_=de,B}function I(D,B){var de=D.next();if(de=='"'||de=="'")return B.tokenize=S(de),B.tokenize(D,B);if(de=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return w("number","number");if(de=="."&&D.match(".."))return w("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(de))return w(de);if(de=="="&&D.eat(">"))return w("=>","operator");if(de=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return w("number","number");if(/\d/.test(de))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),w("number","number");if(de=="/")return D.eat("*")?(B.tokenize=R,R(D,B)):D.eat("/")?(D.skipToEnd(),w("comment","comment")):xe(D,B,1)?(b(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),w("regexp","string-2")):(D.eat("="),w("operator","operator",D.current()));if(de=="`")return B.tokenize=O,O(D,B);if(de=="#"&&D.peek()=="!")return D.skipToEnd(),w("meta","meta");if(de=="#"&&D.eatWhile(p))return w("variable","property");if(de=="<"&&D.match("!--")||de=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),w("comment","comment");if(g.test(de))return(de!=">"||!B.lexical||B.lexical.type!=">")&&(D.eat("=")?(de=="!"||de=="=")&&D.eat("="):/[<>*+\-|&?]/.test(de)&&(D.eat(de),de==">"&&D.eat(de))),de=="?"&&D.eat(".")?w("."):w("operator","operator",D.current());if(p.test(de)){D.eatWhile(p);var De=D.current();if(B.lastType!="."){if(y.propertyIsEnumerable(De)){var ft=y[De];return w(ft.type,ft.style,De)}if(De=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return w("async","keyword",De)}return w("variable","variable",De)}}function S(D){return function(B,de){var De=!1,ft;if(d&&B.peek()=="@"&&B.match(v))return de.tokenize=I,w("jsonld-keyword","meta");for(;(ft=B.next())!=null&&!(ft==D&&!De);)De=!De&&ft=="\\";return De||(de.tokenize=I),w("string","string")}}function R(D,B){for(var de=!1,De;De=D.next();){if(De=="/"&&de){B.tokenize=I;break}de=De=="*"}return w("comment","comment")}function O(D,B){for(var de=!1,De;(De=D.next())!=null;){if(!de&&(De=="`"||De=="$"&&D.eat("{"))){B.tokenize=I;break}de=!de&&De=="\\"}return w("quasi","string-2",D.current())}var U="([{}])";function $(D,B){B.fatArrowAt&&(B.fatArrowAt=null);var de=D.string.indexOf("=>",D.start);if(!(de<0)){if(f){var De=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,de));De&&(de=De.index)}for(var ft=0,xt=!1,Xe=de-1;Xe>=0;--Xe){var Vt=D.string.charAt(Xe),Fr=U.indexOf(Vt);if(Fr>=0&&Fr<3){if(!ft){++Xe;break}if(--ft==0){Vt=="("&&(xt=!0);break}}else if(Fr>=3&&Fr<6)++ft;else if(p.test(Vt))xt=!0;else if(/["'\/`]/.test(Vt))for(;;--Xe){if(Xe==0)return;var Wn=D.string.charAt(Xe-1);if(Wn==Vt&&D.string.charAt(Xe-2)!="\\"){Xe--;break}}else if(xt&&!ft){++Xe;break}}xt&&!ft&&(B.fatArrowAt=Xe)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function K(D,B,de,De,ft,xt){this.indented=D,this.column=B,this.type=de,this.prev=ft,this.info=xt,De!=null&&(this.align=De)}function X(D,B){if(!h)return!1;for(var de=D.localVars;de;de=de.next)if(de.name==B)return!0;for(var De=D.context;De;De=De.prev)for(var de=De.vars;de;de=de.next)if(de.name==B)return!0}function G(D,B,de,De,ft){var xt=D.cc;for(q.state=D,q.stream=ft,q.marked=null,q.cc=xt,q.style=B,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var Xe=xt.length?xt.pop():a?ke:qe;if(Xe(de,De)){for(;xt.length&&xt[xt.length-1].lex;)xt.pop()();return q.marked?q.marked:de=="variable"&&X(D,De)?"variable-2":B}}}var q={state:null,column:null,marked:null,cc:null};function T(){for(var D=arguments.length-1;D>=0;D--)q.cc.push(arguments[D])}function A(){return T.apply(null,arguments),!0}function j(D,B){for(var de=B;de;de=de.next)if(de.name==D)return!0;return!1}function te(D){var B=q.state;if(q.marked="def",!!h){if(B.context){if(B.lexical.info=="var"&&B.context&&B.context.block){var de=F(D,B.context);if(de!=null){B.context=de;return}}else if(!j(D,B.localVars)){B.localVars=new be(D,B.localVars);return}}n.globalVars&&!j(D,B.globalVars)&&(B.globalVars=new be(D,B.globalVars))}}function F(D,B){if(B)if(B.block){var de=F(D,B.prev);return de?de==B.prev?B:new se(de,B.vars,!0):null}else return j(D,B.vars)?B:new se(B.prev,new be(D,B.vars),!1);else return null}function z(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function se(D,B,de){this.prev=D,this.vars=B,this.block=de}function be(D,B){this.name=D,this.next=B}var W=new be("this",new be("arguments",null));function M(){q.state.context=new se(q.state.context,q.state.localVars,!1),q.state.localVars=W}function we(){q.state.context=new se(q.state.context,q.state.localVars,!0),q.state.localVars=null}function Pe(){q.state.localVars=q.state.context.vars,q.state.context=q.state.context.prev}Pe.lex=!0;function ve(D,B){var de=function(){var De=q.state,ft=De.indented;if(De.lexical.type=="stat")ft=De.lexical.indented;else for(var xt=De.lexical;xt&&xt.type==")"&&xt.align;xt=xt.prev)ft=xt.indented;De.lexical=new K(ft,q.stream.column(),D,null,De.lexical,B)};return de.lex=!0,de}function Ee(){var D=q.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}Ee.lex=!0;function ze(D){function B(de){return de==D?A():D==";"||de=="}"||de==")"||de=="]"?T():A(B)}return B}function qe(D,B){return D=="var"?A(ve("vardef",B),$r,ze(";"),Ee):D=="keyword a"?A(ve("form"),at,qe,Ee):D=="keyword b"?A(ve("form"),qe,Ee):D=="keyword d"?q.stream.match(/^\s*$/,!1)?A():A(ve("stat"),Re,ze(";"),Ee):D=="debugger"?A(ze(";")):D=="{"?A(ve("}"),we,Lt,Ee,Pe):D==";"?A():D=="if"?(q.state.lexical.info=="else"&&q.state.cc[q.state.cc.length-1]==Ee&&q.state.cc.pop()(),A(ve("form"),at,qe,Ee,ie)):D=="function"?A(N):D=="for"?A(ve("form"),we,Z,qe,Pe,Ee):D=="class"||f&&B=="interface"?(q.marked="keyword",A(ve("form",D=="class"?D:B),Le,Ee)):D=="variable"?f&&B=="declare"?(q.marked="keyword",A(qe)):f&&(B=="module"||B=="enum"||B=="type")&&q.stream.match(/^\s*\w/,!1)?(q.marked="keyword",B=="enum"?A(et):B=="type"?A(ue,ze("operator"),rt,ze(";")):A(ve("form"),zt,ze("{"),ve("}"),Lt,Ee,Ee)):f&&B=="namespace"?(q.marked="keyword",A(ve("form"),ke,qe,Ee)):f&&B=="abstract"?(q.marked="keyword",A(qe)):A(ve("stat"),it):D=="switch"?A(ve("form"),at,ze("{"),ve("}","switch"),we,Lt,Ee,Ee,Pe):D=="case"?A(ke,ze(":")):D=="default"?A(ze(":")):D=="catch"?A(ve("form"),M,me,qe,Ee,Pe):D=="export"?A(ve("stat"),_t,Ee):D=="import"?A(ve("stat"),H,Ee):D=="async"?A(qe):B=="@"?A(ke,qe):T(ve("stat"),ke,ze(";"),Ee)}function me(D){if(D=="(")return A(pe,ze(")"))}function ke(D,B){return gt(D,B,!1)}function Ue(D,B){return gt(D,B,!0)}function at(D){return D!="("?T():A(ve(")"),Re,ze(")"),Ee)}function gt(D,B,de){if(q.state.fatArrowAt==q.stream.start){var De=de?_e:Qe;if(D=="(")return A(M,ve(")"),We(pe,")"),Ee,ze("=>"),De,Pe);if(D=="variable")return T(M,zt,ze("=>"),De,Pe)}var ft=de?Be:Ie;return J.hasOwnProperty(D)?A(ft):D=="function"?A(N,ft):D=="class"||f&&B=="interface"?(q.marked="keyword",A(ve("form"),ge,Ee)):D=="keyword c"||D=="async"?A(de?Ue:ke):D=="("?A(ve(")"),Re,ze(")"),Ee,ft):D=="operator"||D=="spread"?A(de?Ue:ke):D=="["?A(ve("]"),Ve,Ee,ft):D=="{"?qt(ot,"}",null,ft):D=="quasi"?T(Ge,ft):D=="new"?A(Y(de)):A()}function Re(D){return D.match(/[;\}\)\],]/)?T():T(ke)}function Ie(D,B){return D==","?A(Re):Be(D,B,!1)}function Be(D,B,de){var De=de==!1?Ie:Be,ft=de==!1?ke:Ue;if(D=="=>")return A(M,de?_e:Qe,Pe);if(D=="operator")return/\+\+|--/.test(B)||f&&B=="!"?A(De):f&&B=="<"&&q.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?A(ve(">"),We(rt,">"),Ee,De):B=="?"?A(ke,ze(":"),ft):A(ft);if(D=="quasi")return T(Ge,De);if(D!=";"){if(D=="(")return qt(Ue,")","call",De);if(D==".")return A(Ne,De);if(D=="[")return A(ve("]"),Re,ze("]"),Ee,De);if(f&&B=="as")return q.marked="keyword",A(rt,De);if(D=="regexp")return q.state.lastType=q.marked="operator",q.stream.backUp(q.stream.pos-q.stream.start-1),A(ft)}}function Ge(D,B){return D!="quasi"?T():B.slice(B.length-2)!="${"?A(Ge):A(ke,He)}function He(D){if(D=="}")return q.marked="string-2",q.state.tokenize=O,A(Ge)}function Qe(D){return $(q.stream,q.state),T(D=="{"?qe:ke)}function _e(D){return $(q.stream,q.state),T(D=="{"?qe:Ue)}function Y(D){return function(B){return B=="."?A(D?le:fe):B=="variable"&&f?A(Ir,D?Be:Ie):T(D?Ue:ke)}}function fe(D,B){if(B=="target")return q.marked="keyword",A(Ie)}function le(D,B){if(B=="target")return q.marked="keyword",A(Be)}function it(D){return D==":"?A(Ee,qe):T(Ie,ze(";"),Ee)}function Ne(D){if(D=="variable")return q.marked="property",A()}function ot(D,B){if(D=="async")return q.marked="property",A(ot);if(D=="variable"||q.style=="keyword"){if(q.marked="property",B=="get"||B=="set")return A(Ye);var de;return f&&q.state.fatArrowAt==q.stream.start&&(de=q.stream.match(/^\s*:\s*/,!1))&&(q.state.fatArrowAt=q.stream.pos+de[0].length),A(Je)}else{if(D=="number"||D=="string")return q.marked=d?"property":q.style+" property",A(Je);if(D=="jsonld-keyword")return A(Je);if(f&&z(B))return q.marked="keyword",A(ot);if(D=="[")return A(ke,cr,ze("]"),Je);if(D=="spread")return A(Ue,Je);if(B=="*")return q.marked="keyword",A(ot);if(D==":")return T(Je)}}function Ye(D){return D!="variable"?T(Je):(q.marked="property",A(N))}function Je(D){if(D==":")return A(Ue);if(D=="(")return T(N)}function We(D,B,de){function De(ft,xt){if(de?de.indexOf(ft)>-1:ft==","){var Xe=q.state.lexical;return Xe.info=="call"&&(Xe.pos=(Xe.pos||0)+1),A(function(Vt,Fr){return Vt==B||Fr==B?T():T(D)},De)}return ft==B||xt==B?A():de&&de.indexOf(";")>-1?T(D):A(ze(B))}return function(ft,xt){return ft==B||xt==B?A():T(D,De)}}function qt(D,B,de){for(var De=3;De<arguments.length;De++)q.cc.push(arguments[De]);return A(ve(B,de),We(D,B),Ee)}function Lt(D){return D=="}"?A():T(qe,Lt)}function cr(D,B){if(f){if(D==":")return A(rt);if(B=="?")return A(cr)}}function lt(D,B){if(f&&(D==":"||B=="in"))return A(rt)}function Mt(D){if(f&&D==":")return q.stream.match(/^\s*\w+\s+is\b/,!1)?A(ke,pt,rt):A(rt)}function pt(D,B){if(B=="is")return q.marked="keyword",A()}function rt(D,B){if(B=="keyof"||B=="typeof"||B=="infer"||B=="readonly")return q.marked="keyword",A(B=="typeof"?Ue:rt);if(D=="variable"||B=="void")return q.marked="type",A(Ht);if(B=="|"||B=="&")return A(rt);if(D=="string"||D=="number"||D=="atom")return A(Ht);if(D=="[")return A(ve("]"),We(rt,"]",","),Ee,Ht);if(D=="{")return A(ve("}"),fr,Ee,Ht);if(D=="(")return A(We(st,")"),wt,Ht);if(D=="<")return A(We(rt,">"),rt);if(D=="quasi")return T(Kt,Ht)}function wt(D){if(D=="=>")return A(rt)}function fr(D){return D.match(/[\}\)\]]/)?A():D==","||D==";"?A(fr):T(Et,fr)}function Et(D,B){if(D=="variable"||q.style=="keyword")return q.marked="property",A(Et);if(B=="?"||D=="number"||D=="string")return A(Et);if(D==":")return A(rt);if(D=="[")return A(ze("variable"),lt,ze("]"),Et);if(D=="(")return T(ee,Et);if(!D.match(/[;\}\)\],]/))return A()}function Kt(D,B){return D!="quasi"?T():B.slice(B.length-2)!="${"?A(Kt):A(rt,kt)}function kt(D){if(D=="}")return q.marked="string-2",q.state.tokenize=O,A(Kt)}function st(D,B){return D=="variable"&&q.stream.match(/^\s*[?:]/,!1)||B=="?"?A(st):D==":"?A(rt):D=="spread"?A(st):T(rt)}function Ht(D,B){if(B=="<")return A(ve(">"),We(rt,">"),Ee,Ht);if(B=="|"||D=="."||B=="&")return A(rt);if(D=="[")return A(rt,ze("]"),Ht);if(B=="extends"||B=="implements")return q.marked="keyword",A(rt);if(B=="?")return A(rt,ze(":"),rt)}function Ir(D,B){if(B=="<")return A(ve(">"),We(rt,">"),Ee,Ht)}function dr(){return T(rt,hr)}function hr(D,B){if(B=="=")return A(rt)}function $r(D,B){return B=="enum"?(q.marked="keyword",A(et)):T(zt,cr,Zt,ne)}function zt(D,B){if(f&&z(B))return q.marked="keyword",A(zt);if(D=="variable")return te(B),A();if(D=="spread")return A(zt);if(D=="[")return qt(sr,"]");if(D=="{")return qt(yr,"}")}function yr(D,B){return D=="variable"&&!q.stream.match(/^\s*:/,!1)?(te(B),A(Zt)):(D=="variable"&&(q.marked="property"),D=="spread"?A(zt):D=="}"?T():D=="["?A(ke,ze("]"),ze(":"),yr):A(ze(":"),zt,Zt))}function sr(){return T(zt,Zt)}function Zt(D,B){if(B=="=")return A(Ue)}function ne(D){if(D==",")return A($r)}function ie(D,B){if(D=="keyword b"&&B=="else")return A(ve("form","else"),qe,Ee)}function Z(D,B){if(B=="await")return A(Z);if(D=="(")return A(ve(")"),re,Ee)}function re(D){return D=="var"?A($r,P):D=="variable"?A(P):T(P)}function P(D,B){return D==")"?A():D==";"?A(P):B=="in"||B=="of"?(q.marked="keyword",A(ke,P)):T(ke,P)}function N(D,B){if(B=="*")return q.marked="keyword",A(N);if(D=="variable")return te(B),A(N);if(D=="(")return A(M,ve(")"),We(pe,")"),Ee,Mt,qe,Pe);if(f&&B=="<")return A(ve(">"),We(dr,">"),Ee,N)}function ee(D,B){if(B=="*")return q.marked="keyword",A(ee);if(D=="variable")return te(B),A(ee);if(D=="(")return A(M,ve(")"),We(pe,")"),Ee,Mt,Pe);if(f&&B=="<")return A(ve(">"),We(dr,">"),Ee,ee)}function ue(D,B){if(D=="keyword"||D=="variable")return q.marked="type",A(ue);if(B=="<")return A(ve(">"),We(dr,">"),Ee)}function pe(D,B){return B=="@"&&A(ke,pe),D=="spread"?A(pe):f&&z(B)?(q.marked="keyword",A(pe)):f&&D=="this"?A(cr,Zt):T(zt,cr,Zt)}function ge(D,B){return D=="variable"?Le(D,B):Me(D,B)}function Le(D,B){if(D=="variable")return te(B),A(Me)}function Me(D,B){if(B=="<")return A(ve(">"),We(dr,">"),Ee,Me);if(B=="extends"||B=="implements"||f&&D==",")return B=="implements"&&(q.marked="keyword"),A(f?rt:ke,Me);if(D=="{")return A(ve("}"),Se,Ee)}function Se(D,B){if(D=="async"||D=="variable"&&(B=="static"||B=="get"||B=="set"||f&&z(B))&&q.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return q.marked="keyword",A(Se);if(D=="variable"||q.style=="keyword")return q.marked="property",A(Ke,Se);if(D=="number"||D=="string")return A(Ke,Se);if(D=="[")return A(ke,cr,ze("]"),Ke,Se);if(B=="*")return q.marked="keyword",A(Se);if(f&&D=="(")return T(ee,Se);if(D==";"||D==",")return A(Se);if(D=="}")return A();if(B=="@")return A(ke,Se)}function Ke(D,B){if(B=="!"||B=="?")return A(Ke);if(D==":")return A(rt,Zt);if(B=="=")return A(Ue);var de=q.state.lexical.prev,De=de&&de.info=="interface";return T(De?ee:N)}function _t(D,B){return B=="*"?(q.marked="keyword",A(Ae,ze(";"))):B=="default"?(q.marked="keyword",A(ke,ze(";"))):D=="{"?A(We(mt,"}"),Ae,ze(";")):T(qe)}function mt(D,B){if(B=="as")return q.marked="keyword",A(ze("variable"));if(D=="variable")return T(Ue,mt)}function H(D){return D=="string"?A():D=="("?T(ke):D=="."?T(Ie):T(oe,he,Ae)}function oe(D,B){return D=="{"?qt(oe,"}"):(D=="variable"&&te(B),B=="*"&&(q.marked="keyword"),A(Ce))}function he(D){if(D==",")return A(oe,he)}function Ce(D,B){if(B=="as")return q.marked="keyword",A(oe)}function Ae(D,B){if(B=="from")return q.marked="keyword",A(ke)}function Ve(D){return D=="]"?A():T(We(Ue,"]"))}function et(){return T(ve("form"),zt,ze("{"),ve("}"),We(bt,"}"),Ee,Ee)}function bt(){return T(zt,Zt)}function Dt(D,B){return D.lastType=="operator"||D.lastType==","||g.test(B.charAt(0))||/[,.]/.test(B.charAt(0))}function xe(D,B,de){return B.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(B.lastType)||B.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(de||0)))}return{startState:function(D){var B={tokenize:I,lastType:"sof",cc:[],lexical:new K((D||0)-l,0,"block",!1),localVars:n.localVars,context:n.localVars&&new se(null,null,!1),indented:D||0};return n.globalVars&&typeof n.globalVars=="object"&&(B.globalVars=n.globalVars),B},token:function(D,B){if(D.sol()&&(B.lexical.hasOwnProperty("align")||(B.lexical.align=!1),B.indented=D.indentation(),$(D,B)),B.tokenize!=R&&D.eatSpace())return null;var de=B.tokenize(D,B);return k=="comment"?de:(B.lastType=k=="operator"&&(_=="++"||_=="--")?"incdec":k,G(B,de,k,_,D))},indent:function(D,B){if(D.tokenize==R||D.tokenize==O)return i.Pass;if(D.tokenize!=I)return 0;var de=B&&B.charAt(0),De=D.lexical,ft;if(!/^\s*else\b/.test(B))for(var xt=D.cc.length-1;xt>=0;--xt){var Xe=D.cc[xt];if(Xe==Ee)De=De.prev;else if(Xe!=ie&&Xe!=Pe)break}for(;(De.type=="stat"||De.type=="form")&&(de=="}"||(ft=D.cc[D.cc.length-1])&&(ft==Ie||ft==Be)&&!/^[,\.=+\-*:?[\(]/.test(B));)De=De.prev;c&&De.type==")"&&De.prev.type=="stat"&&(De=De.prev);var Vt=De.type,Fr=de==Vt;return Vt=="vardef"?De.indented+(D.lastType=="operator"||D.lastType==","?De.info.length+1:0):Vt=="form"&&de=="{"?De.indented:Vt=="form"?De.indented+l:Vt=="stat"?De.indented+(Dt(D,B)?c||l:0):De.info=="switch"&&!Fr&&n.doubleIndentSwitch!=!1?De.indented+(/^(?:case|default)\b/.test(B)?l:2*l):De.align?De.column+(Fr?0:1):De.indented+(Fr?0:l)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:a?null:"/*",blockCommentEnd:a?null:"*/",blockCommentContinue:a?null:" * ",lineComment:a?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:a?"json":"javascript",jsonldMode:d,jsonMode:a,expressionAllowed:xe,skipExpression:function(D){G(D,"atom","atom","true",new i.StringStream("",2,null))}}}),i.registerHelper("wordChars","javascript",/[\w$]/),i.defineMIME("text/javascript","javascript"),i.defineMIME("text/ecmascript","javascript"),i.defineMIME("application/javascript","javascript"),i.defineMIME("application/x-javascript","javascript"),i.defineMIME("application/ecmascript","javascript"),i.defineMIME("application/json",{name:"javascript",json:!0}),i.defineMIME("application/x-json",{name:"javascript",json:!0}),i.defineMIME("application/manifest+json",{name:"javascript",json:!0}),i.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),i.defineMIME("text/typescript",{name:"javascript",typescript:!0}),i.defineMIME("application/typescript",{name:"javascript",typescript:!0})})});var rl=Fe((Xf,Zf)=>{(function(i){typeof Xf=="object"&&typeof Zf=="object"?i(At(),ba(),tl(),Js()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],i):i(CodeMirror)})(function(i){"use strict";var t={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 n(p,y,g){var v=p.current(),b=v.search(y);return b>-1?p.backUp(v.length-b):v.match(/<\/?$/)&&(p.backUp(v.length),p.match(y,!1)||p.match(v)),g}var l={};function c(p){var y=l[p];return y||(l[p]=new RegExp("\\s+"+p+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(p,y){var g=p.match(c(y));return g?/^\s*(.*?)\s*$/.exec(g[2])[1]:""}function a(p,y){return new RegExp((y?"^":"")+"</s*"+p+"s*>","i")}function h(p,y){for(var g in p)for(var v=y[g]||(y[g]=[]),b=p[g],k=b.length-1;k>=0;k--)v.unshift(b[k])}function f(p,y){for(var g=0;g<p.length;g++){var v=p[g];if(!v[0]||v[1].test(d(y,v[0])))return v[2]}}i.defineMode("htmlmixed",function(p,y){var g=i.getMode(p,{name:"xml",htmlMode:!0,multilineTagIndentFactor:y.multilineTagIndentFactor,multilineTagIndentPastTag:y.multilineTagIndentPastTag,allowMissingTagName:y.allowMissingTagName}),v={},b=y&&y.tags,k=y&&y.scriptTypes;if(h(t,v),b&&h(b,v),k)for(var _=k.length-1;_>=0;_--)v.script.unshift(["type",k[_].matches,k[_].mode]);function w(I,S){var R=g.token(I,S.htmlState),O=/\btag\b/.test(R),U;if(O&&!/[<>\s\/]/.test(I.current())&&(U=S.htmlState.tagName&&S.htmlState.tagName.toLowerCase())&&v.hasOwnProperty(U))S.inTag=U+" ";else if(S.inTag&&O&&/>$/.test(I.current())){var $=/^([\S]+) (.*)/.exec(S.inTag);S.inTag=null;var J=I.current()==">"&&f(v[$[1]],$[2]),K=i.getMode(p,J),X=a($[1],!0),G=a($[1],!1);S.token=function(q,T){return q.match(X,!1)?(T.token=w,T.localState=T.localMode=null,null):n(q,G,T.localMode.token(q,T.localState))},S.localMode=K,S.localState=i.startState(K,g.indent(S.htmlState,"",""))}else S.inTag&&(S.inTag+=I.current(),I.eol()&&(S.inTag+=" "));return R}return{startState:function(){var I=i.startState(g);return{token:w,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var S;return I.localState&&(S=i.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:S,htmlState:i.copyState(g,I.htmlState)}},token:function(I,S){return S.token(I,S)},indent:function(I,S,R){return!I.localMode||/^\s*<\//.test(S)?g.indent(I.htmlState,S,R):I.localMode.indent?I.localMode.indent(I.localState,S,R):i.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||g}}}},"xml","javascript","css"),i.defineMIME("text/html","htmlmixed")})});var ed=Fe((Qf,Jf)=>{(function(i){typeof Qf=="object"&&typeof Jf=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("julia",function(t,n){function l(F,z){return typeof z=="undefined"&&(z="\\b"),new RegExp("^(("+F.join(")|(")+"))"+z)}var c="\\\\[0-7]{1,3}",d="\\\\x[A-Fa-f0-9]{1,2}",a=`\\\\[abefnrtv0%?'"\\\\]`,h="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])",f=n.operators||l(["[<>]:","[<>=]=","<<=?",">>>?=?","=>","->","\\/\\/","[\\\\%*+\\-<>!=\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),p=n.delimiters||/^[;,()[\]{}]/,y=n.identifiers||/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,g=l([c,d,a,h],"'"),v=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"],b=["end","else","elseif","catch","finally"],k=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],_=["true","false","nothing","NaN","Inf"];i.registerHelper("hintWords","julia",k.concat(_));var w=l(v),I=l(b),S=l(k),R=l(_),O=/^@[_A-Za-z][\w]*/,U=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,$=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;function J(F){return F.nestedArrays>0}function K(F){return F.nestedGenerators>0}function X(F,z){return typeof z=="undefined"&&(z=0),F.scopes.length<=z?null:F.scopes[F.scopes.length-(z+1)]}function G(F,z){if(F.match("#=",!1))return z.tokenize=T,z.tokenize(F,z);var se=z.leavingExpr;if(F.sol()&&(se=!1),z.leavingExpr=!1,se&&F.match(/^'+/))return"operator";if(F.match(/\.{4,}/))return"error";if(F.match(/\.{1,3}/))return"operator";if(F.eatSpace())return null;var be=F.peek();if(be==="#")return F.skipToEnd(),"comment";if(be==="["&&(z.scopes.push("["),z.nestedArrays++),be==="("&&(z.scopes.push("("),z.nestedGenerators++),J(z)&&be==="]"){for(;z.scopes.length&&X(z)!=="[";)z.scopes.pop();z.scopes.pop(),z.nestedArrays--,z.leavingExpr=!0}if(K(z)&&be===")"){for(;z.scopes.length&&X(z)!=="(";)z.scopes.pop();z.scopes.pop(),z.nestedGenerators--,z.leavingExpr=!0}if(J(z)){if(z.lastToken=="end"&&F.match(":"))return"operator";if(F.match("end"))return"number"}var W;if((W=F.match(w,!1))&&z.scopes.push(W[0]),F.match(I,!1)&&z.scopes.pop(),F.match(/^::(?![:\$])/))return z.tokenize=q,z.tokenize(F,z);if(!se&&F.match(U)||F.match(/:([<>]:|<<=?|>>>?=?|->|\/\/|\.{2,3}|[\.\\%*+\-<>!\/^|&]=?|[~\?\$])/))return"builtin";if(F.match(f))return"operator";if(F.match(/^\.?\d/,!1)){var M=RegExp(/^im\b/),we=!1;if(F.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(we=!0),F.match(/^0x[0-9a-f_]+/i)&&(we=!0),F.match(/^0b[01_]+/i)&&(we=!0),F.match(/^0o[0-7_]+/i)&&(we=!0),F.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(we=!0),F.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(we=!0),we)return F.match(M),z.leavingExpr=!0,"number"}if(F.match("'"))return z.tokenize=A,z.tokenize(F,z);if(F.match($))return z.tokenize=j(F.current()),z.tokenize(F,z);if(F.match(O))return"meta";if(F.match(p))return null;if(F.match(S))return"keyword";if(F.match(R))return"builtin";var Pe=z.isDefinition||z.lastToken=="function"||z.lastToken=="macro"||z.lastToken=="type"||z.lastToken=="struct"||z.lastToken=="immutable";return F.match(y)?Pe?F.peek()==="."?(z.isDefinition=!0,"variable"):(z.isDefinition=!1,"def"):(z.leavingExpr=!0,"variable"):(F.next(),"error")}function q(F,z){return F.match(/.*?(?=[,;{}()=\s]|$)/),F.match("{")?z.nestedParameters++:F.match("}")&&z.nestedParameters>0&&z.nestedParameters--,z.nestedParameters>0?F.match(/.*?(?={|})/)||F.next():z.nestedParameters==0&&(z.tokenize=G),"builtin"}function T(F,z){return F.match("#=")&&z.nestedComments++,F.match(/.*?(?=(#=|=#))/)||F.skipToEnd(),F.match("=#")&&(z.nestedComments--,z.nestedComments==0&&(z.tokenize=G)),"comment"}function A(F,z){var se=!1,be;if(F.match(g))se=!0;else if(be=F.match(/\\u([a-f0-9]{1,4})(?=')/i)){var W=parseInt(be[1],16);(W<=55295||W>=57344)&&(se=!0,F.next())}else if(be=F.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var W=parseInt(be[1],16);W<=1114111&&(se=!0,F.next())}return se?(z.leavingExpr=!0,z.tokenize=G,"string"):(F.match(/^[^']+(?=')/)||F.skipToEnd(),F.match("'")&&(z.tokenize=G),"error")}function j(F){F.substr(-3)==='"""'?F='"""':F.substr(-1)==='"'&&(F='"');function z(se,be){if(se.eat("\\"))se.next();else{if(se.match(F))return be.tokenize=G,be.leavingExpr=!0,"string";se.eat(/[`"]/)}return se.eatWhile(/[^\\`"]/),"string"}return z}var te={startState:function(){return{tokenize:G,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(F,z){var se=z.tokenize(F,z),be=F.current();return be&&se&&(z.lastToken=be),se},indent:function(F,z){var se=0;return(z==="]"||z===")"||/^end\b/.test(z)||/^else/.test(z)||/^catch\b/.test(z)||/^elseif\b/.test(z)||/^finally/.test(z))&&(se=-1),(F.scopes.length+se)*t.indentUnit},electricInput:/\b(end|else|catch|finally)\b/,blockCommentStart:"#=",blockCommentEnd:"=#",lineComment:"#",closeBrackets:'()[]{}""',fold:"indent"};return te}),i.defineMIME("text/x-julia","julia")})});var nd=Fe((td,rd)=>{(function(i){typeof td=="object"&&typeof rd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("lua",function(t,n){var l=t.indentUnit;function c(w){return new RegExp("^(?:"+w.join("|")+")","i")}function d(w){return new RegExp("^(?:"+w.join("|")+")$","i")}var a=d(n.specials||[]),h=d(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),f=d(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),p=d(["function","if","repeat","do","\\(","{"]),y=d(["end","until","\\)","}"]),g=c(["end","until","\\)","}","else","elseif"]);function v(w){for(var I=0;w.eat("=");)++I;return w.eat("["),I}function b(w,I){var S=w.next();return S=="-"&&w.eat("-")?w.eat("[")&&w.eat("[")?(I.cur=k(v(w),"comment"))(w,I):(w.skipToEnd(),"comment"):S=='"'||S=="'"?(I.cur=_(S))(w,I):S=="["&&/[\[=]/.test(w.peek())?(I.cur=k(v(w),"string"))(w,I):/\d/.test(S)?(w.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(S)?(w.eatWhile(/[\w\\\-_.]/),"variable"):null}function k(w,I){return function(S,R){for(var O=null,U;(U=S.next())!=null;)if(O==null)U=="]"&&(O=0);else if(U=="=")++O;else if(U=="]"&&O==w){R.cur=b;break}else O=null;return I}}function _(w){return function(I,S){for(var R=!1,O;(O=I.next())!=null&&!(O==w&&!R);)R=!R&&O=="\\";return R||(S.cur=b),"string"}}return{startState:function(w){return{basecol:w||0,indentDepth:0,cur:b}},token:function(w,I){if(w.eatSpace())return null;var S=I.cur(w,I),R=w.current();return S=="variable"&&(f.test(R)?S="keyword":h.test(R)?S="builtin":a.test(R)&&(S="variable-2")),S!="comment"&&S!="string"&&(p.test(R)?++I.indentDepth:y.test(R)&&--I.indentDepth),S},indent:function(w,I){var S=g.test(I);return w.basecol+l*(w.indentDepth-(S?1:0))},electricInput:/^\s*(?:end|until|else|\)|\})$/,lineComment:"--",blockCommentStart:"--[[",blockCommentEnd:"]]"}}),i.defineMIME("text/x-lua","lua")})});var ad=Fe((id,od)=>{(function(i){typeof id=="object"&&typeof od=="object"?i(At()):typeof define=="function"&&define.amd?define(["../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded JavaScript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"],alias:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var t=0;t<i.modeInfo.length;t++){var n=i.modeInfo[t];n.mimes&&(n.mime=n.mimes[0])}i.findModeByMIME=function(l){l=l.toLowerCase();for(var c=0;c<i.modeInfo.length;c++){var d=i.modeInfo[c];if(d.mime==l)return d;if(d.mimes){for(var a=0;a<d.mimes.length;a++)if(d.mimes[a]==l)return d}}if(/\+xml$/.test(l))return i.findModeByMIME("application/xml");if(/\+json$/.test(l))return i.findModeByMIME("application/json")},i.findModeByExtension=function(l){l=l.toLowerCase();for(var c=0;c<i.modeInfo.length;c++){var d=i.modeInfo[c];if(d.ext){for(var a=0;a<d.ext.length;a++)if(d.ext[a]==l)return d}}},i.findModeByFileName=function(l){for(var c=0;c<i.modeInfo.length;c++){var d=i.modeInfo[c];if(d.file&&d.file.test(l))return d}var a=l.lastIndexOf("."),h=a>-1&&l.substring(a+1,l.length);if(h)return i.findModeByExtension(h)},i.findModeByName=function(l){l=l.toLowerCase();for(var c=0;c<i.modeInfo.length;c++){var d=i.modeInfo[c];if(d.name.toLowerCase()==l)return d;if(d.alias){for(var a=0;a<d.alias.length;a++)if(d.alias[a].toLowerCase()==l)return d}}}})});var ud=Fe((sd,ld)=>{(function(i){typeof sd=="object"&&typeof ld=="object"?i(At(),ba(),ad()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../xml/xml","../meta"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("markdown",function(t,n){var l=i.getMode(t,"text/html"),c=l.name=="null";function d(W){if(i.findModeByName){var M=i.findModeByName(W);M&&(W=M.mime||M.mimes[0])}var we=i.getMode(t,W);return we.name=="null"?null:we}n.highlightFormatting===void 0&&(n.highlightFormatting=!1),n.maxBlockquoteDepth===void 0&&(n.maxBlockquoteDepth=0),n.taskLists===void 0&&(n.taskLists=!1),n.strikethrough===void 0&&(n.strikethrough=!1),n.emoji===void 0&&(n.emoji=!1),n.fencedCodeBlockHighlighting===void 0&&(n.fencedCodeBlockHighlighting=!0),n.fencedCodeBlockDefaultMode===void 0&&(n.fencedCodeBlockDefaultMode="text/plain"),n.xml===void 0&&(n.xml=!0),n.tokenTypeOverrides===void 0&&(n.tokenTypeOverrides={});var a={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var h in a)a.hasOwnProperty(h)&&n.tokenTypeOverrides[h]&&(a[h]=n.tokenTypeOverrides[h]);var f=/^([*\-_])(?:\s*\1){2,}\s*$/,p=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,y=/^\[(x| )\](?=\s)/i,g=n.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,v=/^ {0,3}(?:\={1,}|-{2,})\s*$/,b=/^[^#!\[\]*_\\<>` "'(~:]+/,k=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,_=/^\s*\[[^\]]+?\]:.*$/,w=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,I=" ";function S(W,M,we){return M.f=M.inline=we,we(W,M)}function R(W,M,we){return M.f=M.block=we,we(W,M)}function O(W){return!W||!/\S/.test(W.string)}function U(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==J){var M=c;if(!M){var we=i.innerMode(l,W.htmlState);M=we.mode.name=="xml"&&we.state.tagStart===null&&!we.state.context&&we.state.tokenize.isInText}M&&(W.f=q,W.block=$,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function $(W,M){var we=W.column()===M.indentation,Pe=O(M.prevLine.stream),ve=M.indentedCode,Ee=M.prevLine.hr,ze=M.list!==!1,qe=(M.listStack[M.listStack.length-1]||0)+3;M.indentedCode=!1;var me=M.indentation;if(M.indentationDiff===null&&(M.indentationDiff=M.indentation,ze)){for(M.list=null;me<M.listStack[M.listStack.length-1];)M.listStack.pop(),M.listStack.length?M.indentation=M.listStack[M.listStack.length-1]:M.list=!1;M.list!==!1&&(M.indentationDiff=me-M.listStack[M.listStack.length-1])}var ke=!Pe&&!Ee&&!M.prevLine.header&&(!ze||!ve)&&!M.prevLine.fencedCodeEnd,Ue=(M.list===!1||Ee||Pe)&&M.indentation<=qe&&W.match(f),at=null;if(M.indentationDiff>=4&&(ve||M.prevLine.fencedCodeEnd||M.prevLine.header||Pe))return W.skipToEnd(),M.indentedCode=!0,a.code;if(W.eatSpace())return null;if(we&&M.indentation<=qe&&(at=W.match(g))&&at[1].length<=6)return M.quote=0,M.header=at[1].length,M.thisLine.header=!0,n.highlightFormatting&&(M.formatting="header"),M.f=M.inline,X(M);if(M.indentation<=qe&&W.eat(">"))return M.quote=we?1:M.quote+1,n.highlightFormatting&&(M.formatting="quote"),W.eatSpace(),X(M);if(!Ue&&!M.setext&&we&&M.indentation<=qe&&(at=W.match(p))){var gt=at[1]?"ol":"ul";return M.indentation=me+W.current().length,M.list=!0,M.quote=0,M.listStack.push(M.indentation),M.em=!1,M.strong=!1,M.code=!1,M.strikethrough=!1,n.taskLists&&W.match(y,!1)&&(M.taskList=!0),M.f=M.inline,n.highlightFormatting&&(M.formatting=["list","list-"+gt]),X(M)}else{if(we&&M.indentation<=qe&&(at=W.match(k,!0)))return M.quote=0,M.fencedEndRE=new RegExp(at[1]+"+ *$"),M.localMode=n.fencedCodeBlockHighlighting&&d(at[2]||n.fencedCodeBlockDefaultMode),M.localMode&&(M.localState=i.startState(M.localMode)),M.f=M.block=K,n.highlightFormatting&&(M.formatting="code-block"),M.code=-1,X(M);if(M.setext||(!ke||!ze)&&!M.quote&&M.list===!1&&!M.code&&!Ue&&!_.test(W.string)&&(at=W.lookAhead(1))&&(at=at.match(v)))return M.setext?(M.header=M.setext,M.setext=0,W.skipToEnd(),n.highlightFormatting&&(M.formatting="header")):(M.header=at[0].charAt(0)=="="?1:2,M.setext=M.header),M.thisLine.header=!0,M.f=M.inline,X(M);if(Ue)return W.skipToEnd(),M.hr=!0,M.thisLine.hr=!0,a.hr;if(W.peek()==="[")return S(W,M,F)}return S(W,M,M.inline)}function J(W,M){var we=l.token(W,M.htmlState);if(!c){var Pe=i.innerMode(l,M.htmlState);(Pe.mode.name=="xml"&&Pe.state.tagStart===null&&!Pe.state.context&&Pe.state.tokenize.isInText||M.md_inside&&W.current().indexOf(">")>-1)&&(M.f=q,M.block=$,M.htmlState=null)}return we}function K(W,M){var we=M.listStack[M.listStack.length-1]||0,Pe=M.indentation<we,ve=we+3;if(M.fencedEndRE&&M.indentation<=ve&&(Pe||W.match(M.fencedEndRE))){n.highlightFormatting&&(M.formatting="code-block");var Ee;return Pe||(Ee=X(M)),M.localMode=M.localState=null,M.block=$,M.f=q,M.fencedEndRE=null,M.code=0,M.thisLine.fencedCodeEnd=!0,Pe?R(W,M,M.block):Ee}else return M.localMode?M.localMode.token(W,M.localState):(W.skipToEnd(),a.code)}function X(W){var M=[];if(W.formatting){M.push(a.formatting),typeof W.formatting=="string"&&(W.formatting=[W.formatting]);for(var we=0;we<W.formatting.length;we++)M.push(a.formatting+"-"+W.formatting[we]),W.formatting[we]==="header"&&M.push(a.formatting+"-"+W.formatting[we]+"-"+W.header),W.formatting[we]==="quote"&&(!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=W.quote?M.push(a.formatting+"-"+W.formatting[we]+"-"+W.quote):M.push("error"))}if(W.taskOpen)return M.push("meta"),M.length?M.join(" "):null;if(W.taskClosed)return M.push("property"),M.length?M.join(" "):null;if(W.linkHref?M.push(a.linkHref,"url"):(W.strong&&M.push(a.strong),W.em&&M.push(a.em),W.strikethrough&&M.push(a.strikethrough),W.emoji&&M.push(a.emoji),W.linkText&&M.push(a.linkText),W.code&&M.push(a.code),W.image&&M.push(a.image),W.imageAltText&&M.push(a.imageAltText,"link"),W.imageMarker&&M.push(a.imageMarker)),W.header&&M.push(a.header,a.header+"-"+W.header),W.quote&&(M.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=W.quote?M.push(a.quote+"-"+W.quote):M.push(a.quote+"-"+n.maxBlockquoteDepth)),W.list!==!1){var Pe=(W.listStack.length-1)%3;Pe?Pe===1?M.push(a.list2):M.push(a.list3):M.push(a.list1)}return W.trailingSpaceNewLine?M.push("trailing-space-new-line"):W.trailingSpace&&M.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),M.length?M.join(" "):null}function G(W,M){if(W.match(b,!0))return X(M)}function q(W,M){var we=M.text(W,M);if(typeof we!="undefined")return we;if(M.list)return M.list=null,X(M);if(M.taskList){var Pe=W.match(y,!0)[1]===" ";return Pe?M.taskOpen=!0:M.taskClosed=!0,n.highlightFormatting&&(M.formatting="task"),M.taskList=!1,X(M)}if(M.taskOpen=!1,M.taskClosed=!1,M.header&&W.match(/^#+$/,!0))return n.highlightFormatting&&(M.formatting="header"),X(M);var ve=W.next();if(M.linkTitle){M.linkTitle=!1;var Ee=ve;ve==="("&&(Ee=")"),Ee=(Ee+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ze="^\\s*(?:[^"+Ee+"\\\\]+|\\\\\\\\|\\\\.)"+Ee;if(W.match(new RegExp(ze),!0))return a.linkHref}if(ve==="`"){var qe=M.formatting;n.highlightFormatting&&(M.formatting="code"),W.eatWhile("`");var me=W.current().length;if(M.code==0&&(!M.quote||me==1))return M.code=me,X(M);if(me==M.code){var ke=X(M);return M.code=0,ke}else return M.formatting=qe,X(M)}else if(M.code)return X(M);if(ve==="\\"&&(W.next(),n.highlightFormatting)){var Ue=X(M),at=a.formatting+"-escape";return Ue?Ue+" "+at:at}if(ve==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return M.imageMarker=!0,M.image=!0,n.highlightFormatting&&(M.formatting="image"),X(M);if(ve==="["&&M.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return M.imageMarker=!1,M.imageAltText=!0,n.highlightFormatting&&(M.formatting="image"),X(M);if(ve==="]"&&M.imageAltText){n.highlightFormatting&&(M.formatting="image");var Ue=X(M);return M.imageAltText=!1,M.image=!1,M.inline=M.f=A,Ue}if(ve==="["&&!M.image)return M.linkText&&W.match(/^.*?\]/)||(M.linkText=!0,n.highlightFormatting&&(M.formatting="link")),X(M);if(ve==="]"&&M.linkText){n.highlightFormatting&&(M.formatting="link");var Ue=X(M);return M.linkText=!1,M.inline=M.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?A:q,Ue}if(ve==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=T,n.highlightFormatting&&(M.formatting="link");var Ue=X(M);return Ue?Ue+=" ":Ue="",Ue+a.linkInline}if(ve==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){M.f=M.inline=T,n.highlightFormatting&&(M.formatting="link");var Ue=X(M);return Ue?Ue+=" ":Ue="",Ue+a.linkEmail}if(n.xml&&ve==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var gt=W.string.indexOf(">",W.pos);if(gt!=-1){var Re=W.string.substring(W.start,gt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Re)&&(M.md_inside=!0)}return W.backUp(1),M.htmlState=i.startState(l),R(W,M,J)}if(n.xml&&ve==="<"&&W.match(/^\/\w*?>/))return M.md_inside=!1,"tag";if(ve==="*"||ve==="_"){for(var Ie=1,Be=W.pos==1?" ":W.string.charAt(W.pos-2);Ie<3&&W.eat(ve);)Ie++;var Ge=W.peek()||" ",He=!/\s/.test(Ge)&&(!w.test(Ge)||/\s/.test(Be)||w.test(Be)),Qe=!/\s/.test(Be)&&(!w.test(Be)||/\s/.test(Ge)||w.test(Ge)),_e=null,Y=null;if(Ie%2&&(!M.em&&He&&(ve==="*"||!Qe||w.test(Be))?_e=!0:M.em==ve&&Qe&&(ve==="*"||!He||w.test(Ge))&&(_e=!1)),Ie>1&&(!M.strong&&He&&(ve==="*"||!Qe||w.test(Be))?Y=!0:M.strong==ve&&Qe&&(ve==="*"||!He||w.test(Ge))&&(Y=!1)),Y!=null||_e!=null){n.highlightFormatting&&(M.formatting=_e==null?"strong":Y==null?"em":"strong em"),_e===!0&&(M.em=ve),Y===!0&&(M.strong=ve);var ke=X(M);return _e===!1&&(M.em=!1),Y===!1&&(M.strong=!1),ke}}else if(ve===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return X(M);W.backUp(1)}if(n.strikethrough){if(ve==="~"&&W.eatWhile(ve)){if(M.strikethrough){n.highlightFormatting&&(M.formatting="strikethrough");var ke=X(M);return M.strikethrough=!1,ke}else if(W.match(/^[^\s]/,!1))return M.strikethrough=!0,n.highlightFormatting&&(M.formatting="strikethrough"),X(M)}else if(ve===" "&&W.match("~~",!0)){if(W.peek()===" ")return X(M);W.backUp(2)}}if(n.emoji&&ve===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){M.emoji=!0,n.highlightFormatting&&(M.formatting="emoji");var fe=X(M);return M.emoji=!1,fe}return ve===" "&&(W.match(/^ +$/,!1)?M.trailingSpace++:M.trailingSpace&&(M.trailingSpaceNewLine=!0)),X(M)}function T(W,M){var we=W.next();if(we===">"){M.f=M.inline=q,n.highlightFormatting&&(M.formatting="link");var Pe=X(M);return Pe?Pe+=" ":Pe="",Pe+a.linkInline}return W.match(/^[^>]+/,!0),a.linkInline}function A(W,M){if(W.eatSpace())return null;var we=W.next();return we==="("||we==="["?(M.f=M.inline=te(we==="("?")":"]"),n.highlightFormatting&&(M.formatting="link-string"),M.linkHref=!0,X(M)):"error"}var j={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function te(W){return function(M,we){var Pe=M.next();if(Pe===W){we.f=we.inline=q,n.highlightFormatting&&(we.formatting="link-string");var ve=X(we);return we.linkHref=!1,ve}return M.match(j[W]),we.linkHref=!0,X(we)}}function F(W,M){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(M.f=z,W.next(),n.highlightFormatting&&(M.formatting="link"),M.linkText=!0,X(M)):S(W,M,q)}function z(W,M){if(W.match("]:",!0)){M.f=M.inline=se,n.highlightFormatting&&(M.formatting="link");var we=X(M);return M.linkText=!1,we}return W.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function se(W,M){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?M.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),M.f=M.inline=q,a.linkHref+" url")}var be={startState:function(){return{f:$,prevLine:{stream:null},thisLine:{stream:null},block:$,htmlState:null,indentation:0,inline:q,text:G,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(W){return{f:W.f,prevLine:W.prevLine,thisLine:W.thisLine,block:W.block,htmlState:W.htmlState&&i.copyState(l,W.htmlState),indentation:W.indentation,localMode:W.localMode,localState:W.localMode?i.copyState(W.localMode,W.localState):null,inline:W.inline,text:W.text,formatting:!1,linkText:W.linkText,linkTitle:W.linkTitle,linkHref:W.linkHref,code:W.code,em:W.em,strong:W.strong,strikethrough:W.strikethrough,emoji:W.emoji,header:W.header,setext:W.setext,hr:W.hr,taskList:W.taskList,list:W.list,listStack:W.listStack.slice(0),quote:W.quote,indentedCode:W.indentedCode,trailingSpace:W.trailingSpace,trailingSpaceNewLine:W.trailingSpaceNewLine,md_inside:W.md_inside,fencedEndRE:W.fencedEndRE}},token:function(W,M){if(M.formatting=!1,W!=M.thisLine.stream){if(M.header=0,M.hr=!1,W.match(/^\s*$/,!0))return U(M),null;if(M.prevLine=M.thisLine,M.thisLine={stream:W},M.taskList=!1,M.trailingSpace=0,M.trailingSpaceNewLine=!1,!M.localState&&(M.f=M.block,M.f!=J)){var we=W.match(/^\s*/,!0)[0].replace(/\t/g,I).length;if(M.indentation=we,M.indentationDiff=null,we>0)return null}}return M.f(W,M)},innerMode:function(W){return W.block==J?{state:W.htmlState,mode:l}:W.localState?{state:W.localState,mode:W.localMode}:{state:W,mode:be}},indent:function(W,M,we){return W.block==J&&l.indent?l.indent(W.htmlState,M,we):W.localState&&W.localMode.indent?W.localMode.indent(W.localState,M,we):i.Pass},blankLine:U,getType:X,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return be},"xml"),i.defineMIME("text/markdown","markdown"),i.defineMIME("text/x-markdown","markdown")})});var dd=Fe((cd,fd)=>{(function(i){typeof cd=="object"&&typeof fd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("mllike",function(t,n){var l={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},c=n.extraWords||{};for(var d in c)c.hasOwnProperty(d)&&(l[d]=n.extraWords[d]);var a=[];for(var h in l)a.push(h);i.registerHelper("hintWords","mllike",a);function f(v,b){var k=v.next();if(k==='"')return b.tokenize=p,b.tokenize(v,b);if(k==="{"&&v.eat("|"))return b.longString=!0,b.tokenize=g,b.tokenize(v,b);if(k==="("&&v.eat("*"))return b.commentLevel++,b.tokenize=y,b.tokenize(v,b);if(k==="~"||k==="?")return v.eatWhile(/\w/),"variable-2";if(k==="`")return v.eatWhile(/\w/),"quote";if(k==="/"&&n.slashComments&&v.eat("/"))return v.skipToEnd(),"comment";if(/\d/.test(k))return k==="0"&&v.eat(/[bB]/)&&v.eatWhile(/[01]/),k==="0"&&v.eat(/[xX]/)&&v.eatWhile(/[0-9a-fA-F]/),k==="0"&&v.eat(/[oO]/)?v.eatWhile(/[0-7]/):(v.eatWhile(/[\d_]/),v.eat(".")&&v.eatWhile(/[\d]/),v.eat(/[eE]/)&&v.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(k))return"operator";if(/[\w\xa1-\uffff]/.test(k)){v.eatWhile(/[\w\xa1-\uffff]/);var _=v.current();return l.hasOwnProperty(_)?l[_]:"variable"}return null}function p(v,b){for(var k,_=!1,w=!1;(k=v.next())!=null;){if(k==='"'&&!w){_=!0;break}w=!w&&k==="\\"}return _&&!w&&(b.tokenize=f),"string"}function y(v,b){for(var k,_;b.commentLevel>0&&(_=v.next())!=null;)k==="("&&_==="*"&&b.commentLevel++,k==="*"&&_===")"&&b.commentLevel--,k=_;return b.commentLevel<=0&&(b.tokenize=f),"comment"}function g(v,b){for(var k,_;b.longString&&(_=v.next())!=null;)k==="|"&&_==="}"&&(b.longString=!1),k=_;return b.longString||(b.tokenize=f),"string"}return{startState:function(){return{tokenize:f,commentLevel:0,longString:!1}},token:function(v,b){return v.eatSpace()?null:b.tokenize(v,b)},blockCommentStart:"(*",blockCommentEnd:"*)",lineComment:n.slashComments?"//":null}}),i.defineMIME("text/x-ocaml",{name:"mllike",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),i.defineMIME("text/x-fsharp",{name:"mllike",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),i.defineMIME("text/x-sml",{name:"mllike",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})})});var md=Fe((hd,pd)=>{(function(i){typeof hd=="object"&&typeof pd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("nginx",function(t){function n(b){for(var k={},_=b.split(" "),w=0;w<_.length;++w)k[_[w]]=!0;return k}var l=n("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),c=n("http mail events server types location upstream charset_map limit_except if geo map"),d=n("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files"),a=t.indentUnit,h;function f(b,k){return h=k,b}function p(b,k){b.eatWhile(/[\w\$_]/);var _=b.current();if(l.propertyIsEnumerable(_))return"keyword";if(c.propertyIsEnumerable(_))return"variable-2";if(d.propertyIsEnumerable(_))return"string-2";var w=b.next();if(w=="@")return b.eatWhile(/[\w\\\-]/),f("meta",b.current());if(w=="/"&&b.eat("*"))return k.tokenize=y,y(b,k);if(w=="<"&&b.eat("!"))return k.tokenize=g,g(b,k);if(w=="=")f(null,"compare");else return(w=="~"||w=="|")&&b.eat("=")?f(null,"compare"):w=='"'||w=="'"?(k.tokenize=v(w),k.tokenize(b,k)):w=="#"?(b.skipToEnd(),f("comment","comment")):w=="!"?(b.match(/^\s*\w*/),f("keyword","important")):/\d/.test(w)?(b.eatWhile(/[\w.%]/),f("number","unit")):/[,.+>*\/]/.test(w)?f(null,"select-op"):/[;{}:\[\]]/.test(w)?f(null,w):(b.eatWhile(/[\w\\\-]/),f("variable","variable"))}function y(b,k){for(var _=!1,w;(w=b.next())!=null;){if(_&&w=="/"){k.tokenize=p;break}_=w=="*"}return f("comment","comment")}function g(b,k){for(var _=0,w;(w=b.next())!=null;){if(_>=2&&w==">"){k.tokenize=p;break}_=w=="-"?_+1:0}return f("comment","comment")}function v(b){return function(k,_){for(var w=!1,I;(I=k.next())!=null&&!(I==b&&!w);)w=!w&&I=="\\";return w||(_.tokenize=p),f("string","string")}}return{startState:function(b){return{tokenize:p,baseIndent:b||0,stack:[]}},token:function(b,k){if(b.eatSpace())return null;h=null;var _=k.tokenize(b,k),w=k.stack[k.stack.length-1];return h=="hash"&&w=="rule"?_="atom":_=="variable"&&(w=="rule"?_="number":(!w||w=="@media{")&&(_="tag")),w=="rule"&&/^[\{\};]$/.test(h)&&k.stack.pop(),h=="{"?w=="@media"?k.stack[k.stack.length-1]="@media{":k.stack.push("{"):h=="}"?k.stack.pop():h=="@media"?k.stack.push("@media"):w=="{"&&h!="comment"&&k.stack.push("rule"),_},indent:function(b,k){var _=b.stack.length;return/^\}/.test(k)&&(_-=b.stack[b.stack.length-1]=="rule"?2:1),b.baseIndent+_*a},electricChars:"}"}}),i.defineMIME("text/x-nginx-conf","nginx")})});var yd=Fe((gd,vd)=>{(function(i){typeof gd=="object"&&typeof vd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("perl",function(){var d={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},a="string-2",h=/[goseximacplud]/;function f(g,v,b,k,_){return v.chain=null,v.style=null,v.tail=null,v.tokenize=function(w,I){for(var S=!1,R,O=0;R=w.next();){if(R===b[O]&&!S)return b[++O]!==void 0?(I.chain=b[O],I.style=k,I.tail=_):_&&w.eatWhile(_),I.tokenize=y,k;S=!S&&R=="\\"}return k},v.tokenize(g,v)}function p(g,v,b){return v.tokenize=function(k,_){return k.string==b&&(_.tokenize=y),k.skipToEnd(),"string"},v.tokenize(g,v)}function y(g,v){if(g.eatSpace())return null;if(v.chain)return f(g,v,v.chain,v.style,v.tail);if(g.match(/^\-?[\d\.]/,!1)&&g.match(/^(\-?(\d*\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F]+|0b[01]+|\d+(e[+-]?\d+)?)/))return"number";if(g.match(/^<<(?=[_a-zA-Z])/))return g.eatWhile(/\w/),p(g,v,g.current().substr(2));if(g.sol()&&g.match(/^\=item(?!\w)/))return p(g,v,"=cut");var b=g.next();if(b=='"'||b=="'"){if(n(g,3)=="<<"+b){var k=g.pos;g.eatWhile(/\w/);var _=g.current().substr(1);if(_&&g.eat(b))return p(g,v,_);g.pos=k}return f(g,v,[b],"string")}if(b=="q"){var w=t(g,-2);if(!(w&&/\w/.test(w))){if(w=t(g,0),w=="x"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],a,h);if(w=="[")return c(g,2),f(g,v,["]"],a,h);if(w=="{")return c(g,2),f(g,v,["}"],a,h);if(w=="<")return c(g,2),f(g,v,[">"],a,h);if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],a,h)}else if(w=="q"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],"string");if(w=="[")return c(g,2),f(g,v,["]"],"string");if(w=="{")return c(g,2),f(g,v,["}"],"string");if(w=="<")return c(g,2),f(g,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],"string")}else if(w=="w"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],"bracket");if(w=="[")return c(g,2),f(g,v,["]"],"bracket");if(w=="{")return c(g,2),f(g,v,["}"],"bracket");if(w=="<")return c(g,2),f(g,v,[">"],"bracket");if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],"bracket")}else if(w=="r"){if(w=t(g,1),w=="(")return c(g,2),f(g,v,[")"],a,h);if(w=="[")return c(g,2),f(g,v,["]"],a,h);if(w=="{")return c(g,2),f(g,v,["}"],a,h);if(w=="<")return c(g,2),f(g,v,[">"],a,h);if(/[\^'"!~\/]/.test(w))return c(g,1),f(g,v,[g.eat(w)],a,h)}else if(/[\^'"!~\/(\[{<]/.test(w)){if(w=="(")return c(g,1),f(g,v,[")"],"string");if(w=="[")return c(g,1),f(g,v,["]"],"string");if(w=="{")return c(g,1),f(g,v,["}"],"string");if(w=="<")return c(g,1),f(g,v,[">"],"string");if(/[\^'"!~\/]/.test(w))return f(g,v,[g.eat(w)],"string")}}}if(b=="m"){var w=t(g,-2);if(!(w&&/\w/.test(w))&&(w=g.eat(/[(\[{<\^'"!~\/]/),w)){if(/[\^'"!~\/]/.test(w))return f(g,v,[w],a,h);if(w=="(")return f(g,v,[")"],a,h);if(w=="[")return f(g,v,["]"],a,h);if(w=="{")return f(g,v,["}"],a,h);if(w=="<")return f(g,v,[">"],a,h)}}if(b=="s"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="y"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="t"){var w=/[\/>\]})\w]/.test(t(g,-2));if(!w&&(w=g.eat("r"),w&&(w=g.eat(/[(\[{<\^'"!~\/]/),w)))return w=="["?f(g,v,["]","]"],a,h):w=="{"?f(g,v,["}","}"],a,h):w=="<"?f(g,v,[">",">"],a,h):w=="("?f(g,v,[")",")"],a,h):f(g,v,[w,w],a,h)}if(b=="`")return f(g,v,[b],"variable-2");if(b=="/")return/~\s*$/.test(n(g))?f(g,v,[b],a,h):"operator";if(b=="$"){var k=g.pos;if(g.eatWhile(/\d/)||g.eat("{")&&g.eatWhile(/\d/)&&g.eat("}"))return"variable-2";g.pos=k}if(/[$@%]/.test(b)){var k=g.pos;if(g.eat("^")&&g.eat(/[A-Z]/)||!/[@$%&]/.test(t(g,-2))&&g.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var w=g.current();if(d[w])return"variable-2"}g.pos=k}if(/[$@%&]/.test(b)&&(g.eatWhile(/[\w$]/)||g.eat("{")&&g.eatWhile(/[\w$]/)&&g.eat("}"))){var w=g.current();return d[w]?"variable-2":"variable"}if(b=="#"&&t(g,-2)!="$")return g.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(b)){var k=g.pos;if(g.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),d[g.current()])return"operator";g.pos=k}if(b=="_"&&g.pos==1){if(l(g,6)=="_END__")return f(g,v,["\0"],"comment");if(l(g,7)=="_DATA__")return f(g,v,["\0"],"variable-2");if(l(g,7)=="_C__")return f(g,v,["\0"],"string")}if(/\w/.test(b)){var k=g.pos;if(t(g,-2)=="{"&&(t(g,0)=="}"||g.eatWhile(/\w/)&&t(g,0)=="}"))return"string";g.pos=k}if(/[A-Z]/.test(b)){var I=t(g,-2),k=g.pos;if(g.eatWhile(/[A-Z_]/),/[\da-z]/.test(t(g,0)))g.pos=k;else{var w=d[g.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}}if(/[a-zA-Z_]/.test(b)){var I=t(g,-2);g.eatWhile(/\w/);var w=d[g.current()];return w?(w[1]&&(w=w[0]),I!=":"?w==1?"keyword":w==2?"def":w==3?"atom":w==4?"operator":w==5?"variable-2":"meta":"meta"):"meta"}return null}return{startState:function(){return{tokenize:y,chain:null,style:null,tail:null}},token:function(g,v){return(v.tokenize||y)(g,v)},lineComment:"#"}}),i.registerHelper("wordChars","perl",/[\w$]/),i.defineMIME("text/x-perl","perl");function t(d,a){return d.string.charAt(d.pos+(a||0))}function n(d,a){if(a){var h=d.pos-a;return d.string.substr(h>=0?h:0,a)}else return d.string.substr(0,d.pos-1)}function l(d,a){var h=d.string.length,f=h-d.pos+1;return d.string.substr(d.pos,a&&a<h?a:f)}function c(d,a){var h=d.pos+a,f;h<=0?d.pos=0:h>=(f=d.string.length-1)?d.pos=f:d.pos=h}})});var wd=Fe((bd,xd)=>{(function(i){typeof bd=="object"&&typeof xd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("pascal",function(){function t(p){for(var y={},g=p.split(" "),v=0;v<g.length;++v)y[g[v]]=!0;return y}var n=t("absolute and array asm begin case const constructor destructor div do downto else end file for function goto if implementation in inherited inline interface label mod nil not object of operator or packed procedure program record reintroduce repeat self set shl shr string then to type unit until uses var while with xor as class dispinterface except exports finalization finally initialization inline is library on out packed property raise resourcestring threadvar try absolute abstract alias assembler bitpacked break cdecl continue cppdecl cvar default deprecated dynamic enumerator experimental export external far far16 forward generic helper implements index interrupt iocheck local message name near nodefault noreturn nostackframe oldfpccall otherwise overload override pascal platform private protected public published read register reintroduce result safecall saveregisters softfloat specialize static stdcall stored strict unaligned unimplemented varargs virtual write"),l={null:!0},c=/[+\-*&%=<>!?|\/]/;function d(p,y){var g=p.next();if(g=="#"&&y.startOfLine)return p.skipToEnd(),"meta";if(g=='"'||g=="'")return y.tokenize=a(g),y.tokenize(p,y);if(g=="("&&p.eat("*"))return y.tokenize=h,h(p,y);if(g=="{")return y.tokenize=f,f(p,y);if(/[\[\]\(\),;\:\.]/.test(g))return null;if(/\d/.test(g))return p.eatWhile(/[\w\.]/),"number";if(g=="/"&&p.eat("/"))return p.skipToEnd(),"comment";if(c.test(g))return p.eatWhile(c),"operator";p.eatWhile(/[\w\$_]/);var v=p.current();return n.propertyIsEnumerable(v)?"keyword":l.propertyIsEnumerable(v)?"atom":"variable"}function a(p){return function(y,g){for(var v=!1,b,k=!1;(b=y.next())!=null;){if(b==p&&!v){k=!0;break}v=!v&&b=="\\"}return(k||!v)&&(g.tokenize=null),"string"}}function h(p,y){for(var g=!1,v;v=p.next();){if(v==")"&&g){y.tokenize=null;break}g=v=="*"}return"comment"}function f(p,y){for(var g;g=p.next();)if(g=="}"){y.tokenize=null;break}return"comment"}return{startState:function(){return{tokenize:null}},token:function(p,y){if(p.eatSpace())return null;var g=(y.tokenize||d)(p,y);return g=="comment"||g=="meta",g},electricChars:"{}"}}),i.defineMIME("text/x-pascal","pascal")})});var Sd=Fe((kd,_d)=>{(function(i){typeof kd=="object"&&typeof _d=="object"?i(At(),rl(),el()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],i):i(CodeMirror)})(function(i){"use strict";function t(p){for(var y={},g=p.split(" "),v=0;v<g.length;++v)y[g[v]]=!0;return y}function n(p,y,g){return p.length==0?l(y):function(v,b){for(var k=p[0],_=0;_<k.length;_++)if(v.match(k[_][0]))return b.tokenize=n(p.slice(1),y),k[_][1];return b.tokenize=l(y,g),"string"}}function l(p,y){return function(g,v){return c(g,v,p,y)}}function c(p,y,g,v){if(v!==!1&&p.match("${",!1)||p.match("{$",!1))return y.tokenize=null,"string";if(v!==!1&&p.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return p.match("[",!1)&&(y.tokenize=n([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],g,v)),p.match(/^->\w/,!1)&&(y.tokenize=n([[["->",null]],[[/[\w]+/,"variable"]]],g,v)),"variable-2";for(var b=!1;!p.eol()&&(b||v===!1||!p.match("{$",!1)&&!p.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!b&&p.match(g)){y.tokenize=null,y.tokStack.pop(),y.tokStack.pop();break}b=p.next()=="\\"&&!b}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 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",a="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",h="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";i.registerHelper("hintWords","php",[d,a,h].join(" ").split(" ")),i.registerHelper("wordChars","php",/[\w$]/);var f={name:"clike",helperType:"php",keywords:t(d),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(a),builtin:t(h),multiLineStrings:!0,hooks:{$:function(p){return p.eatWhile(/[\w\$_]/),"variable-2"},"<":function(p,y){var g;if(g=p.match(/^<<\s*/)){var v=p.eat(/['"]/);p.eatWhile(/[\w\.]/);var b=p.current().slice(g[0].length+(v?2:1));if(v&&p.eat(v),b)return(y.tokStack||(y.tokStack=[])).push(b,0),y.tokenize=l(b,v!="'"),"string"}return!1},"#":function(p){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"},"/":function(p){if(p.eat("/")){for(;!p.eol()&&!p.match("?>",!1);)p.next();return"comment"}return!1},'"':function(p,y){return(y.tokStack||(y.tokStack=[])).push('"',0),y.tokenize=l('"'),"string"},"{":function(p,y){return y.tokStack&&y.tokStack.length&&y.tokStack[y.tokStack.length-1]++,!1},"}":function(p,y){return y.tokStack&&y.tokStack.length>0&&!--y.tokStack[y.tokStack.length-1]&&(y.tokenize=l(y.tokStack[y.tokStack.length-2])),!1}}};i.defineMode("php",function(p,y){var g=i.getMode(p,y&&y.htmlMode||"text/html"),v=i.getMode(p,f);function b(k,_){var w=_.curMode==v;if(k.sol()&&_.pending&&_.pending!='"'&&_.pending!="'"&&(_.pending=null),w)return w&&_.php.tokenize==null&&k.match("?>")?(_.curMode=g,_.curState=_.html,_.php.context.prev||(_.php=null),"meta"):v.token(k,_.curState);if(k.match(/^<\?\w*/))return _.curMode=v,_.php||(_.php=i.startState(v,g.indent(_.html,"",""))),_.curState=_.php,"meta";if(_.pending=='"'||_.pending=="'"){for(;!k.eol()&&k.next()!=_.pending;);var I="string"}else if(_.pending&&k.pos<_.pending.end){k.pos=_.pending.end;var I=_.pending.style}else var I=g.token(k,_.curState);_.pending&&(_.pending=null);var S=k.current(),R=S.search(/<\?/),O;return R!=-1&&(I=="string"&&(O=S.match(/[\'\"]$/))&&!/\?>/.test(S)?_.pending=O[0]:_.pending={end:k.pos,style:I},k.backUp(S.length-R)),I}return{startState:function(){var k=i.startState(g),_=y.startOpen?i.startState(v):null;return{html:k,php:_,curMode:y.startOpen?v:g,curState:y.startOpen?_:k,pending:null}},copyState:function(k){var _=k.html,w=i.copyState(g,_),I=k.php,S=I&&i.copyState(v,I),R;return k.curMode==g?R=w:R=S,{html:w,php:S,curMode:k.curMode,curState:R,pending:k.pending}},token:b,indent:function(k,_,w){return k.curMode!=v&&/^\s*<\//.test(_)||k.curMode==v&&/^\?>/.test(_)?g.indent(k.html,_,w):k.curMode.indent(k.curState,_,w)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(k){return{state:k.curState,mode:k.curMode}}}},"htmlmixed","clike"),i.defineMIME("application/x-httpd-php","php"),i.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),i.defineMIME("text/x-php",f)})});var Td=Fe((Ed,Cd)=>{(function(i){"use strict";typeof Ed=="object"&&typeof Cd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(window.CodeMirror)})(function(i){"use strict";i.defineMode("powershell",function(){function t(T,A){A=A||{};for(var j=A.prefix!==void 0?A.prefix:"^",te=A.suffix!==void 0?A.suffix:"\\b",F=0;F<T.length;F++)T[F]instanceof RegExp?T[F]=T[F].source:T[F]=T[F].replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp(j+"("+T.join("|")+")"+te,"i")}var n="(?=[^A-Za-z\\d\\-_]|$)",l=/[\w\-:]/,c=t([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:n}),d=/[\[\]{},;`\\\.]|@[({]/,a=t(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),h=/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/,f=t([a,h],{suffix:""}),p=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,y=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/,g=/[A-Z]:|%|\?/i,v=t([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),b=t([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),k=t([g,v,b],{suffix:n}),_={keyword:c,number:p,operator:f,builtin:k,punctuation:d,identifier:y};function w(T,A){var j=A.returnStack[A.returnStack.length-1];if(j&&j.shouldReturnFrom(A))return A.tokenize=j.tokenize,A.returnStack.pop(),A.tokenize(T,A);if(T.eatSpace())return null;if(T.eat("("))return A.bracketNesting+=1,"punctuation";if(T.eat(")"))return A.bracketNesting-=1,"punctuation";for(var te in _)if(T.match(_[te]))return te;var F=T.next();if(F==="'")return I(T,A);if(F==="$")return K(T,A);if(F==='"')return S(T,A);if(F==="<"&&T.eat("#"))return A.tokenize=J,J(T,A);if(F==="#")return T.skipToEnd(),"comment";if(F==="@"){var z=T.eat(/["']/);if(z&&T.eol())return A.tokenize=G,A.startQuote=z[0],G(T,A);if(T.eol())return"error";if(T.peek().match(/[({]/))return"punctuation";if(T.peek().match(l))return K(T,A)}return"error"}function I(T,A){for(var j;(j=T.peek())!=null;)if(T.next(),j==="'"&&!T.eat("'"))return A.tokenize=w,"string";return"error"}function S(T,A){for(var j;(j=T.peek())!=null;){if(j==="$")return A.tokenize=R,"string";if(T.next(),j==="`"){T.next();continue}if(j==='"'&&!T.eat('"'))return A.tokenize=w,"string"}return"error"}function R(T,A){return $(T,A,S)}function O(T,A){return A.tokenize=G,A.startQuote='"',G(T,A)}function U(T,A){return $(T,A,O)}function $(T,A,j){if(T.match("$(")){var te=A.bracketNesting;return A.returnStack.push({shouldReturnFrom:function(F){return F.bracketNesting===te},tokenize:j}),A.tokenize=w,A.bracketNesting+=1,"punctuation"}else return T.next(),A.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:j}),A.tokenize=K,A.tokenize(T,A)}function J(T,A){for(var j=!1,te;(te=T.next())!=null;){if(j&&te==">"){A.tokenize=w;break}j=te==="#"}return"comment"}function K(T,A){var j=T.peek();return T.eat("{")?(A.tokenize=X,X(T,A)):j!=null&&j.match(l)?(T.eatWhile(l),A.tokenize=w,"variable-2"):(A.tokenize=w,"error")}function X(T,A){for(var j;(j=T.next())!=null;)if(j==="}"){A.tokenize=w;break}return"variable-2"}function G(T,A){var j=A.startQuote;if(T.sol()&&T.match(new RegExp(j+"@")))A.tokenize=w;else if(j==='"')for(;!T.eol();){var te=T.peek();if(te==="$")return A.tokenize=U,"string";T.next(),te==="`"&&T.next()}else T.skipToEnd();return"string"}var q={startState:function(){return{returnStack:[],bracketNesting:0,tokenize:w}},token:function(T,A){return A.tokenize(T,A)},blockCommentStart:"<#",blockCommentEnd:"#>",lineComment:"#",fold:"brace"};return q}),i.defineMIME("application/x-powershell","powershell")})});var Dd=Fe((Ad,Ld)=>{(function(i){typeof Ad=="object"&&typeof Ld=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("properties",function(){return{token:function(t,n){var l=t.sol()||n.afterSection,c=t.eol();if(n.afterSection=!1,l&&(n.nextMultiline?(n.inMultiline=!0,n.nextMultiline=!1):n.position="def"),c&&!n.nextMultiline&&(n.inMultiline=!1,n.position="def"),l)for(;t.eatSpace(););var d=t.next();return l&&(d==="#"||d==="!"||d===";")?(n.position="comment",t.skipToEnd(),"comment"):l&&d==="["?(n.afterSection=!0,t.skipTo("]"),t.eat("]"),"header"):d==="="||d===":"?(n.position="quote",null):(d==="\\"&&n.position==="quote"&&t.eol()&&(n.nextMultiline=!0),n.position)},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}}),i.defineMIME("text/x-properties","properties"),i.defineMIME("text/x-ini","properties")})});var Md=Fe((Id,Fd)=>{(function(i){typeof Id=="object"&&typeof Fd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(h){return new RegExp("^(("+h.join(")|(")+"))\\b")}var n=t(["and","or","not","is"]),l=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],c=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];i.registerHelper("hintWords","python",l.concat(c));function d(h){return h.scopes[h.scopes.length-1]}i.defineMode("python",function(h,f){for(var p="error",y=f.delimiters||f.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,g=[f.singleOperators,f.doubleOperators,f.doubleDelimiters,f.tripleDelimiters,f.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],v=0;v<g.length;v++)g[v]||g.splice(v--,1);var b=f.hangingIndent||h.indentUnit,k=l,_=c;f.extra_keywords!=null&&(k=k.concat(f.extra_keywords)),f.extra_builtins!=null&&(_=_.concat(f.extra_builtins));var w=!(f.version&&Number(f.version)<3);if(w){var I=f.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;k=k.concat(["nonlocal","False","True","None","async","await"]),_=_.concat(["ascii","bytes","exec","print"]);var S=new RegExp(`^(([rbuf]|(br)|(fr))?('{3}|"{3}|['"]))`,"i")}else{var I=f.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;k=k.concat(["exec","print"]),_=_.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var S=new RegExp(`^(([rubf]|(ur)|(br))?('{3}|"{3}|['"]))`,"i")}var R=t(k),O=t(_);function U(j,te){var F=j.sol()&&te.lastToken!="\\";if(F&&(te.indent=j.indentation()),F&&d(te).type=="py"){var z=d(te).offset;if(j.eatSpace()){var se=j.indentation();return se>z?X(te):se<z&&q(j,te)&&j.peek()!="#"&&(te.errorToken=!0),null}else{var be=$(j,te);return z>0&&q(j,te)&&(be+=" "+p),be}}return $(j,te)}function $(j,te,F){if(j.eatSpace())return null;if(!F&&j.match(/^#.*/))return"comment";if(j.match(/^[0-9\.]/,!1)){var z=!1;if(j.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(z=!0),j.match(/^[\d_]+\.\d*/)&&(z=!0),j.match(/^\.\d+/)&&(z=!0),z)return j.eat(/J/i),"number";var se=!1;if(j.match(/^0x[0-9a-f_]+/i)&&(se=!0),j.match(/^0b[01_]+/i)&&(se=!0),j.match(/^0o[0-7_]+/i)&&(se=!0),j.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(j.eat(/J/i),se=!0),j.match(/^0(?![\dx])/i)&&(se=!0),se)return j.eat(/L/i),"number"}if(j.match(S)){var be=j.current().toLowerCase().indexOf("f")!==-1;return be?(te.tokenize=J(j.current(),te.tokenize),te.tokenize(j,te)):(te.tokenize=K(j.current(),te.tokenize),te.tokenize(j,te))}for(var W=0;W<g.length;W++)if(j.match(g[W]))return"operator";return j.match(y)?"punctuation":te.lastToken=="."&&j.match(I)?"property":j.match(R)||j.match(n)?"keyword":j.match(O)?"builtin":j.match(/^(self|cls)\b/)?"variable-2":j.match(I)?te.lastToken=="def"||te.lastToken=="class"?"def":"variable":(j.next(),F?null:p)}function J(j,te){for(;"rubf".indexOf(j.charAt(0).toLowerCase())>=0;)j=j.substr(1);var F=j.length==1,z="string";function se(W){return function(M,we){var Pe=$(M,we,!0);return Pe=="punctuation"&&(M.current()=="{"?we.tokenize=se(W+1):M.current()=="}"&&(W>1?we.tokenize=se(W-1):we.tokenize=be)),Pe}}function be(W,M){for(;!W.eol();)if(W.eatWhile(/[^'"\{\}\\]/),W.eat("\\")){if(W.next(),F&&W.eol())return z}else{if(W.match(j))return M.tokenize=te,z;if(W.match("{{"))return z;if(W.match("{",!1))return M.tokenize=se(0),W.current()?z:M.tokenize(W,M);if(W.match("}}"))return z;if(W.match("}"))return p;W.eat(/['"]/)}if(F){if(f.singleLineStringErrors)return p;M.tokenize=te}return z}return be.isString=!0,be}function K(j,te){for(;"rubf".indexOf(j.charAt(0).toLowerCase())>=0;)j=j.substr(1);var F=j.length==1,z="string";function se(be,W){for(;!be.eol();)if(be.eatWhile(/[^'"\\]/),be.eat("\\")){if(be.next(),F&&be.eol())return z}else{if(be.match(j))return W.tokenize=te,z;be.eat(/['"]/)}if(F){if(f.singleLineStringErrors)return p;W.tokenize=te}return z}return se.isString=!0,se}function X(j){for(;d(j).type!="py";)j.scopes.pop();j.scopes.push({offset:d(j).offset+h.indentUnit,type:"py",align:null})}function G(j,te,F){var z=j.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:j.column()+1;te.scopes.push({offset:te.indent+b,type:F,align:z})}function q(j,te){for(var F=j.indentation();te.scopes.length>1&&d(te).offset>F;){if(d(te).type!="py")return!0;te.scopes.pop()}return d(te).offset!=F}function T(j,te){j.sol()&&(te.beginningOfLine=!0);var F=te.tokenize(j,te),z=j.current();if(te.beginningOfLine&&z=="@")return j.match(I,!1)?"meta":w?"operator":p;if(/\S/.test(z)&&(te.beginningOfLine=!1),(F=="variable"||F=="builtin")&&te.lastToken=="meta"&&(F="meta"),(z=="pass"||z=="return")&&(te.dedent+=1),z=="lambda"&&(te.lambda=!0),z==":"&&!te.lambda&&d(te).type=="py"&&j.match(/^\s*(?:#|$)/,!1)&&X(te),z.length==1&&!/string|comment/.test(F)){var se="[({".indexOf(z);if(se!=-1&&G(j,te,"])}".slice(se,se+1)),se="])}".indexOf(z),se!=-1)if(d(te).type==z)te.indent=te.scopes.pop().offset-b;else return p}return te.dedent>0&&j.eol()&&d(te).type=="py"&&(te.scopes.length>1&&te.scopes.pop(),te.dedent-=1),F}var A={startState:function(j){return{tokenize:U,scopes:[{offset:j||0,type:"py",align:null}],indent:j||0,lastToken:null,lambda:!1,dedent:0}},token:function(j,te){var F=te.errorToken;F&&(te.errorToken=!1);var z=T(j,te);return z&&z!="comment"&&(te.lastToken=z=="keyword"||z=="punctuation"?j.current():z),z=="punctuation"&&(z=null),j.eol()&&te.lambda&&(te.lambda=!1),F?z+" "+p:z},indent:function(j,te){if(j.tokenize!=U)return j.tokenize.isString?i.Pass:0;var F=d(j),z=F.type==te.charAt(0);return F.align!=null?F.align-(z?1:0):F.offset-(z?b:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return A}),i.defineMIME("text/x-python","python");var a=function(h){return h.split(" ")};i.defineMIME("text/x-cython",{name:"python",extra_keywords:a("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})});var Rd=Fe((Od,Pd)=>{(function(i){typeof Od=="object"&&typeof Pd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function t(f){for(var p={},y=0,g=f.length;y<g;++y)p[f[y]]=!0;return p}var n=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],l=t(n),c=t(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),d=t(["end","until"]),a={"[":"]","{":"}","(":")"},h={"]":"[","}":"{",")":"("};i.defineMode("ruby",function(f){var p;function y(S,R,O){return O.tokenize.push(S),S(R,O)}function g(S,R){if(S.sol()&&S.match("=begin")&&S.eol())return R.tokenize.push(I),"comment";if(S.eatSpace())return null;var O=S.next(),U;if(O=="`"||O=="'"||O=='"')return y(_(O,"string",O=='"'||O=="`"),S,R);if(O=="/")return v(S)?y(_(O,"string-2",!0),S,R):"operator";if(O=="%"){var $="string",J=!0;S.eat("s")?$="atom":S.eat(/[WQ]/)?$="string":S.eat(/[r]/)?$="string-2":S.eat(/[wxq]/)&&($="string",J=!1);var K=S.eat(/[^\w\s=]/);return K?(a.propertyIsEnumerable(K)&&(K=a[K]),y(_(K,$,J,!0),S,R)):"operator"}else{if(O=="#")return S.skipToEnd(),"comment";if(O=="<"&&(U=S.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return y(w(U[2],U[1]),S,R);if(O=="0")return S.eat("x")?S.eatWhile(/[\da-fA-F]/):S.eat("b")?S.eatWhile(/[01]/):S.eatWhile(/[0-7]/),"number";if(/\d/.test(O))return S.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if(O=="?"){for(;S.match(/^\\[CM]-/););return S.eat("\\")?S.eatWhile(/\w/):S.next(),"string"}else{if(O==":")return S.eat("'")?y(_("'","atom",!1),S,R):S.eat('"')?y(_('"',"atom",!0),S,R):S.eat(/[\<\>]/)?(S.eat(/[\<\>]/),"atom"):S.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":S.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(S.eatWhile(/[\w$\xa1-\uffff]/),S.eat(/[\?\!\=]/),"atom"):"operator";if(O=="@"&&S.match(/^@?[a-zA-Z_\xa1-\uffff]/))return S.eat("@"),S.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if(O=="$")return S.eat(/[a-zA-Z_]/)?S.eatWhile(/[\w]/):S.eat(/\d/)?S.eat(/\d/):S.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(O))return S.eatWhile(/[\w\xa1-\uffff]/),S.eat(/[\?\!]/),S.eat(":")?"atom":"ident";if(O=="|"&&(R.varList||R.lastTok=="{"||R.lastTok=="do"))return p="|",null;if(/[\(\)\[\]{}\\;]/.test(O))return p=O,null;if(O=="-"&&S.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(O)){var X=S.eatWhile(/[=+\-\/*:\.^%<>~|]/);return O=="."&&!X&&(p="."),"operator"}else return null}}}function v(S){for(var R=S.pos,O=0,U,$=!1,J=!1;(U=S.next())!=null;)if(J)J=!1;else{if("[{(".indexOf(U)>-1)O++;else if("]})".indexOf(U)>-1){if(O--,O<0)break}else if(U=="/"&&O==0){$=!0;break}J=U=="\\"}return S.backUp(S.pos-R),$}function b(S){return S||(S=1),function(R,O){if(R.peek()=="}"){if(S==1)return O.tokenize.pop(),O.tokenize[O.tokenize.length-1](R,O);O.tokenize[O.tokenize.length-1]=b(S-1)}else R.peek()=="{"&&(O.tokenize[O.tokenize.length-1]=b(S+1));return g(R,O)}}function k(){var S=!1;return function(R,O){return S?(O.tokenize.pop(),O.tokenize[O.tokenize.length-1](R,O)):(S=!0,g(R,O))}}function _(S,R,O,U){return function($,J){var K=!1,X;for(J.context.type==="read-quoted-paused"&&(J.context=J.context.prev,$.eat("}"));(X=$.next())!=null;){if(X==S&&(U||!K)){J.tokenize.pop();break}if(O&&X=="#"&&!K){if($.eat("{")){S=="}"&&(J.context={prev:J.context,type:"read-quoted-paused"}),J.tokenize.push(b());break}else if(/[@\$]/.test($.peek())){J.tokenize.push(k());break}}K=!K&&X=="\\"}return R}}function w(S,R){return function(O,U){return R&&O.eatSpace(),O.match(S)?U.tokenize.pop():O.skipToEnd(),"string"}}function I(S,R){return S.sol()&&S.match("=end")&&S.eol()&&R.tokenize.pop(),S.skipToEnd(),"comment"}return{startState:function(){return{tokenize:[g],indented:0,context:{type:"top",indented:-f.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(S,R){p=null,S.sol()&&(R.indented=S.indentation());var O=R.tokenize[R.tokenize.length-1](S,R),U,$=p;if(O=="ident"){var J=S.current();O=R.lastTok=="."?"property":l.propertyIsEnumerable(S.current())?"keyword":/^[A-Z]/.test(J)?"tag":R.lastTok=="def"||R.lastTok=="class"||R.varList?"def":"variable",O=="keyword"&&($=J,c.propertyIsEnumerable(J)?U="indent":d.propertyIsEnumerable(J)?U="dedent":((J=="if"||J=="unless")&&S.column()==S.indentation()||J=="do"&&R.context.indented<R.indented)&&(U="indent"))}return(p||O&&O!="comment")&&(R.lastTok=$),p=="|"&&(R.varList=!R.varList),U=="indent"||/[\(\[\{]/.test(p)?R.context={prev:R.context,type:p||O,indented:R.indented}:(U=="dedent"||/[\)\]\}]/.test(p))&&R.context.prev&&(R.context=R.context.prev),S.eol()&&(R.continuedLine=p=="\\"||O=="operator"),O},indent:function(S,R){if(S.tokenize[S.tokenize.length-1]!=g)return i.Pass;var O=R&&R.charAt(0),U=S.context,$=U.type==h[O]||U.type=="keyword"&&/^(?:end|until|else|elsif|when|rescue)\b/.test(R);return U.indented+($?0:f.indentUnit)+(S.continuedLine?f.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#",fold:"indent"}}),i.defineMIME("text/x-ruby","ruby"),i.registerHelper("hintWords","ruby",n)})});var Bd=Fe((zd,Nd)=>{(function(i){typeof zd=="object"&&typeof Nd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode=function(y,g){i.defineMode(y,function(v){return i.simpleMode(v,g)})},i.simpleMode=function(y,g){t(g,"start");var v={},b=g.meta||{},k=!1;for(var _ in g)if(_!=b&&g.hasOwnProperty(_))for(var w=v[_]=[],I=g[_],S=0;S<I.length;S++){var R=I[S];w.push(new c(R,g)),(R.indent||R.dedent)&&(k=!0)}var O={startState:function(){return{state:"start",pending:null,local:null,localState:null,indent:k?[]:null}},copyState:function($){var J={state:$.state,pending:$.pending,local:$.local,localState:null,indent:$.indent&&$.indent.slice(0)};$.localState&&(J.localState=i.copyState($.local.mode,$.localState)),$.stack&&(J.stack=$.stack.slice(0));for(var K=$.persistentStates;K;K=K.next)J.persistentStates={mode:K.mode,spec:K.spec,state:K.state==$.localState?J.localState:i.copyState(K.mode,K.state),next:J.persistentStates};return J},token:d(v,y),innerMode:function($){return $.local&&{mode:$.local.mode,state:$.localState}},indent:p(v,b)};if(b)for(var U in b)b.hasOwnProperty(U)&&(O[U]=b[U]);return O};function t(y,g){if(!y.hasOwnProperty(g))throw new Error("Undefined state "+g+" in simple mode")}function n(y,g){if(!y)return/(?:)/;var v="";return y instanceof RegExp?(y.ignoreCase&&(v="i"),y.unicode&&(v+="u"),y=y.source):y=String(y),new RegExp((g===!1?"":"^")+"(?:"+y+")",v)}function l(y){if(!y)return null;if(y.apply)return y;if(typeof y=="string")return y.replace(/\./g," ");for(var g=[],v=0;v<y.length;v++)g.push(y[v]&&y[v].replace(/\./g," "));return g}function c(y,g){(y.next||y.push)&&t(g,y.next||y.push),this.regex=n(y.regex),this.token=l(y.token),this.data=y}function d(y,g){return function(v,b){if(b.pending){var k=b.pending.shift();return b.pending.length==0&&(b.pending=null),v.pos+=k.text.length,k.token}if(b.local)if(b.local.end&&v.match(b.local.end)){var _=b.local.endToken||null;return b.local=b.localState=null,_}else{var _=b.local.mode.token(v,b.localState),w;return b.local.endScan&&(w=b.local.endScan.exec(v.current()))&&(v.pos=v.start+w.index),_}for(var I=y[b.state],S=0;S<I.length;S++){var R=I[S],O=(!R.data.sol||v.sol())&&v.match(R.regex);if(O){R.data.next?b.state=R.data.next:R.data.push?((b.stack||(b.stack=[])).push(b.state),b.state=R.data.push):R.data.pop&&b.stack&&b.stack.length&&(b.state=b.stack.pop()),R.data.mode&&h(g,b,R.data.mode,R.token),R.data.indent&&b.indent.push(v.indentation()+g.indentUnit),R.data.dedent&&b.indent.pop();var U=R.token;if(U&&U.apply&&(U=U(O)),O.length>2&&R.token&&typeof R.token!="string"){for(var $=2;$<O.length;$++)O[$]&&(b.pending||(b.pending=[])).push({text:O[$],token:R.token[$-1]});return v.backUp(O[0].length-(O[1]?O[1].length:0)),U[0]}else return U&&U.join?U[0]:U}}return v.next(),null}}function a(y,g){if(y===g)return!0;if(!y||typeof y!="object"||!g||typeof g!="object")return!1;var v=0;for(var b in y)if(y.hasOwnProperty(b)){if(!g.hasOwnProperty(b)||!a(y[b],g[b]))return!1;v++}for(var b in g)g.hasOwnProperty(b)&&v--;return v==0}function h(y,g,v,b){var k;if(v.persistent)for(var _=g.persistentStates;_&&!k;_=_.next)(v.spec?a(v.spec,_.spec):v.mode==_.mode)&&(k=_);var w=k?k.mode:v.mode||i.getMode(y,v.spec),I=k?k.state:i.startState(w);v.persistent&&!k&&(g.persistentStates={mode:w,spec:v.spec,state:I,next:g.persistentStates}),g.localState=I,g.local={mode:w,end:v.end&&n(v.end),endScan:v.end&&v.forceEnd!==!1&&n(v.end,!1),endToken:b&&b.join?b[b.length-1]:b}}function f(y,g){for(var v=0;v<g.length;v++)if(g[v]===y)return!0}function p(y,g){return function(v,b,k){if(v.local&&v.local.mode.indent)return v.local.mode.indent(v.localState,b,k);if(v.indent==null||v.local||g.dontIndentStates&&f(v.state,g.dontIndentStates)>-1)return i.Pass;var _=v.indent.length-1,w=y[v.state];e:for(;;){for(var I=0;I<w.length;I++){var S=w[I];if(S.data.dedent&&S.data.dedentIfLineStart!==!1){var R=S.regex.exec(b);if(R&&R[0]){_--,(S.next||S.push)&&(w=y[S.next||S.push]),b=b.slice(R[0].length);continue e}}}break}return _<0?0:v.indent[_]}}})});var $d=Fe((qd,jd)=>{(function(i){typeof qd=="object"&&typeof jd=="object"?i(At(),Bd()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","../../addon/mode/simple"],i):i(CodeMirror)})(function(i){"use strict";i.defineSimpleMode("rust",{start:[{regex:/b?"/,token:"string",next:"string"},{regex:/b?r"/,token:"string",next:"string_raw"},{regex:/b?r#+"/,token:"string",next:"string_raw_hash"},{regex:/'(?:[^'\\]|\\(?:[nrt0'"]|x[\da-fA-F]{2}|u\{[\da-fA-F]{6}\}))'/,token:"string-2"},{regex:/b'(?:[^']|\\(?:['\\nrt0]|x[\da-fA-F]{2}))'/,token:"string-2"},{regex:/(?:(?:[0-9][0-9_]*)(?:(?:[Ee][+-]?[0-9_]+)|\.[0-9_]+(?:[Ee][+-]?[0-9_]+)?)(?:f32|f64)?)|(?:0(?:b[01_]+|(?:o[0-7_]+)|(?:x[0-9a-fA-F_]+))|(?:[0-9][0-9_]*))(?:u8|u16|u32|u64|i8|i16|i32|i64|isize|usize)?/,token:"number"},{regex:/(let(?:\s+mut)?|fn|enum|mod|struct|type|union)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/(?:abstract|alignof|as|async|await|box|break|continue|const|crate|do|dyn|else|enum|extern|fn|for|final|if|impl|in|loop|macro|match|mod|move|offsetof|override|priv|proc|pub|pure|ref|return|self|sizeof|static|struct|super|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,token:"keyword"},{regex:/\b(?:Self|isize|usize|char|bool|u8|u16|u32|u64|f16|f32|f64|i8|i16|i32|i64|str|Option)\b/,token:"atom"},{regex:/\b(?:true|false|Some|None|Ok|Err)\b/,token:"builtin"},{regex:/\b(fn)(\s+)([a-zA-Z_][a-zA-Z0-9_]*)/,token:["keyword",null,"def"]},{regex:/#!?\[.*\]/,token:"meta"},{regex:/\/\/.*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/[a-zA-Z_]\w*!/,token:"variable-3"},{regex:/[a-zA-Z_]\w*/,token:"variable"},{regex:/[\{\[\(]/,indent:!0},{regex:/[\}\]\)]/,dedent:!0}],string:[{regex:/"/,token:"string",next:"start"},{regex:/(?:[^\\"]|\\(?:.|$))*/,token:"string"}],string_raw:[{regex:/"/,token:"string",next:"start"},{regex:/[^"]*/,token:"string"}],string_raw_hash:[{regex:/"#+/,token:"string",next:"start"},{regex:/(?:[^"]|"(?!#))*/,token:"string"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],meta:{dontIndentStates:["comment"],electricInput:/^\s*\}$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}}),i.defineMIME("text/x-rustsrc","rust"),i.defineMIME("text/rust","rust")})});var Wd=Fe((Ud,Hd)=>{(function(i){typeof Ud=="object"&&typeof Hd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("shell",function(){var t={};function n(v,b){for(var k=0;k<b.length;k++)t[b[k]]=v}var l=["true","false"],c=["if","then","do","else","elif","while","until","for","in","esac","fi","fin","fil","done","exit","set","unset","export","function"],d=["ab","awk","bash","beep","cat","cc","cd","chown","chmod","chroot","clear","cp","curl","cut","diff","echo","find","gawk","gcc","get","git","grep","hg","kill","killall","ln","ls","make","mkdir","openssl","mv","nc","nl","node","npm","ping","ps","restart","rm","rmdir","sed","service","sh","shopt","shred","source","sort","sleep","ssh","start","stop","su","sudo","svn","tee","telnet","top","touch","vi","vim","wall","wc","wget","who","write","yes","zsh"];i.registerHelper("hintWords","shell",l.concat(c,d)),n("atom",l),n("keyword",c),n("builtin",d);function a(v,b){if(v.eatSpace())return null;var k=v.sol(),_=v.next();if(_==="\\")return v.next(),null;if(_==="'"||_==='"'||_==="`")return b.tokens.unshift(h(_,_==="`"?"quote":"string")),g(v,b);if(_==="#")return k&&v.eat("!")?(v.skipToEnd(),"meta"):(v.skipToEnd(),"comment");if(_==="$")return b.tokens.unshift(p),g(v,b);if(_==="+"||_==="=")return"operator";if(_==="-")return v.eat("-"),v.eatWhile(/\w/),"attribute";if(_=="<"){if(v.match("<<"))return"operator";var w=v.match(/^<-?\s*['"]?([^'"]*)['"]?/);if(w)return b.tokens.unshift(y(w[1])),"string-2"}if(/\d/.test(_)&&(v.eatWhile(/\d/),v.eol()||!/\w/.test(v.peek())))return"number";v.eatWhile(/[\w-]/);var I=v.current();return v.peek()==="="&&/\w+/.test(I)?"def":t.hasOwnProperty(I)?t[I]:null}function h(v,b){var k=v=="("?")":v=="{"?"}":v;return function(_,w){for(var I,S=!1;(I=_.next())!=null;){if(I===k&&!S){w.tokens.shift();break}else if(I==="$"&&!S&&v!=="'"&&_.peek()!=k){S=!0,_.backUp(1),w.tokens.unshift(p);break}else{if(!S&&v!==k&&I===v)return w.tokens.unshift(h(v,b)),g(_,w);if(!S&&/['"]/.test(I)&&!/['"]/.test(v)){w.tokens.unshift(f(I,"string")),_.backUp(1);break}}S=!S&&I==="\\"}return b}}function f(v,b){return function(k,_){return _.tokens[0]=h(v,b),k.next(),g(k,_)}}var p=function(v,b){b.tokens.length>1&&v.eat("$");var k=v.next();return/['"({]/.test(k)?(b.tokens[0]=h(k,k=="("?"quote":k=="{"?"def":"string"),g(v,b)):(/\d/.test(k)||v.eatWhile(/\w/),b.tokens.shift(),"def")};function y(v){return function(b,k){return b.sol()&&b.string==v&&k.tokens.shift(),b.skipToEnd(),"string-2"}}function g(v,b){return(b.tokens[0]||a)(v,b)}return{startState:function(){return{tokens:[]}},token:function(v,b){return g(v,b)},closeBrackets:"()[]{}''\"\"``",lineComment:"#",fold:"brace"}}),i.defineMIME("text/x-sh","shell"),i.defineMIME("application/x-sh","shell")})});var Vd=Fe((Gd,Kd)=>{(function(i){typeof Gd=="object"&&typeof Kd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("sql",function(f,p){var y=p.client||{},g=p.atoms||{false:!0,true:!0,null:!0},v=p.builtin||a(h),b=p.keywords||a(d),k=p.operatorChars||/^[*+\-%<>!=&|~^\/]/,_=p.support||{},w=p.hooks||{},I=p.dateSQL||{date:!0,time:!0,timestamp:!0},S=p.backslashStringEscapes!==!1,R=p.brackets||/^[\{}\(\)\[\]]/,O=p.punctuation||/^[;.,:]/;function U(G,q){var T=G.next();if(w[T]){var A=w[T](G,q);if(A!==!1)return A}if(_.hexNumber&&(T=="0"&&G.match(/^[xX][0-9a-fA-F]+/)||(T=="x"||T=="X")&&G.match(/^'[0-9a-fA-F]+'/)))return"number";if(_.binaryNumber&&((T=="b"||T=="B")&&G.match(/^'[01]+'/)||T=="0"&&G.match(/^b[01]+/)))return"number";if(T.charCodeAt(0)>47&&T.charCodeAt(0)<58)return G.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),_.decimallessFloat&&G.match(/^\.(?!\.)/),"number";if(T=="?"&&(G.eatSpace()||G.eol()||G.eat(";")))return"variable-3";if(T=="'"||T=='"'&&_.doubleQuote)return q.tokenize=$(T),q.tokenize(G,q);if((_.nCharCast&&(T=="n"||T=="N")||_.charsetCast&&T=="_"&&G.match(/[a-z][a-z0-9]*/i))&&(G.peek()=="'"||G.peek()=='"'))return"keyword";if(_.escapeConstant&&(T=="e"||T=="E")&&(G.peek()=="'"||G.peek()=='"'&&_.doubleQuote))return q.tokenize=function(te,F){return(F.tokenize=$(te.next(),!0))(te,F)},"keyword";if(_.commentSlashSlash&&T=="/"&&G.eat("/"))return G.skipToEnd(),"comment";if(_.commentHash&&T=="#"||T=="-"&&G.eat("-")&&(!_.commentSpaceRequired||G.eat(" ")))return G.skipToEnd(),"comment";if(T=="/"&&G.eat("*"))return q.tokenize=J(1),q.tokenize(G,q);if(T=="."){if(_.zerolessFloat&&G.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(G.match(/^\.+/))return null;if(_.ODBCdotTable&&G.match(/^[\w\d_$#]+/))return"variable-2"}else{if(k.test(T))return G.eatWhile(k),"operator";if(R.test(T))return"bracket";if(O.test(T))return G.eatWhile(O),"punctuation";if(T=="{"&&(G.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||G.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";G.eatWhile(/^[_\w\d]/);var j=G.current().toLowerCase();return I.hasOwnProperty(j)&&(G.match(/^( )+'[^']*'/)||G.match(/^( )+"[^"]*"/))?"number":g.hasOwnProperty(j)?"atom":v.hasOwnProperty(j)?"builtin":b.hasOwnProperty(j)?"keyword":y.hasOwnProperty(j)?"string-2":null}}function $(G,q){return function(T,A){for(var j=!1,te;(te=T.next())!=null;){if(te==G&&!j){A.tokenize=U;break}j=(S||q)&&!j&&te=="\\"}return"string"}}function J(G){return function(q,T){var A=q.match(/^.*?(\/\*|\*\/)/);return A?A[1]=="/*"?T.tokenize=J(G+1):G>1?T.tokenize=J(G-1):T.tokenize=U:q.skipToEnd(),"comment"}}function K(G,q,T){q.context={prev:q.context,indent:G.indentation(),col:G.column(),type:T}}function X(G){G.indent=G.context.indent,G.context=G.context.prev}return{startState:function(){return{tokenize:U,context:null}},token:function(G,q){if(G.sol()&&q.context&&q.context.align==null&&(q.context.align=!1),q.tokenize==U&&G.eatSpace())return null;var T=q.tokenize(G,q);if(T=="comment")return T;q.context&&q.context.align==null&&(q.context.align=!0);var A=G.current();return A=="("?K(G,q,")"):A=="["?K(G,q,"]"):q.context&&q.context.type==A&&X(q),T},indent:function(G,q){var T=G.context;if(!T)return i.Pass;var A=q.charAt(0)==T.type;return T.align?T.col+(A?0:1):T.indent+(A?0:f.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:_.commentSlashSlash?"//":_.commentHash?"#":"--",closeBrackets:"()[]{}''\"\"``"}});function t(f){for(var p;(p=f.next())!=null;)if(p=="`"&&!f.eat("`"))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function n(f){for(var p;(p=f.next())!=null;)if(p=='"'&&!f.eat('"'))return"variable-2";return f.backUp(f.current().length-1),f.eatWhile(/\w/)?"variable-2":null}function l(f){return f.eat("@")&&(f.match("session."),f.match("local."),f.match("global.")),f.eat("'")?(f.match(/^.*'/),"variable-2"):f.eat('"')?(f.match(/^.*"/),"variable-2"):f.eat("`")?(f.match(/^.*`/),"variable-2"):f.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function c(f){return f.eat("N")?"atom":f.match(/^[a-zA-Z.#!?]/)?"variable-2":null}var d="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function a(f){for(var p={},y=f.split(" "),g=0;g<y.length;++g)p[y[g]]=!0;return p}var h="bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric";i.defineMIME("text/x-sql",{name:"sql",keywords:a(d+"begin"),builtin:a(h),atoms:a("false true null unknown"),dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-mssql",{name:"sql",client:a("$partition binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id"),keywords:a(d+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx updlock with"),builtin:a("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:a("is not null like and or in left right between inner outer join all any some cross unpivot pivot exists"),operatorChars:/^[*+\-%<>!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:a("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":l}}),i.defineMIME("text/x-mysql",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(d+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-mariadb",{name:"sql",client:a("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:a(d+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":l,"`":t,"\\":c}}),i.defineMIME("text/x-sqlite",{name:"sql",client:a("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:a(d+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:a("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:a("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:a("date time timestamp datetime"),support:a("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":l,":":l,"?":l,$:l,'"':n,"`":t}}),i.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:a("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:a("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:a("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:a("commentSlashSlash decimallessFloat"),hooks:{}}),i.defineMIME("text/x-plsql",{name:"sql",client:a("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:a("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:a("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:a("date time timestamp"),support:a("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),i.defineMIME("text/x-hive",{name:"sql",keywords:a("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:a("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:a("date timestamp"),support:a("ODBCdotTable doubleQuote binaryNumber hexNumber")}),i.defineMIME("text/x-pgsql",{name:"sql",client:a("source"),keywords:a(d+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),i.defineMIME("text/x-gql",{name:"sql",keywords:a("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:a("false true"),builtin:a("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),i.defineMIME("text/x-gpsql",{name:"sql",client:a("source"),keywords:a("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:a("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:a("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),i.defineMIME("text/x-sparksql",{name:"sql",keywords:a("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:a("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:a("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:a("date time timestamp"),support:a("ODBCdotTable doubleQuote zerolessFloat")}),i.defineMIME("text/x-esper",{name:"sql",client:a("source"),keywords:a("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:a("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:a("time"),support:a("decimallessFloat zerolessFloat binaryNumber hexNumber")})})});var Zd=Fe((Yd,Xd)=>{(function(i){typeof Yd=="object"&&typeof Xd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("toml",function(){return{startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(t,n){if(!n.inString&&(t.peek()=='"'||t.peek()=="'")&&(n.stringType=t.peek(),t.next(),n.inString=!0),t.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!t.eol();)t.peek()===n.stringType?(t.next(),n.inString=!1):t.peek()==="\\"?(t.next(),t.next()):t.match(/^.[^\\\"\']*/);return n.lhs?"property string":"string"}else{if(n.inArray&&t.peek()==="]")return t.next(),n.inArray--,"bracket";if(n.lhs&&t.peek()==="["&&t.skipTo("]"))return t.next(),t.peek()==="]"&&t.next(),"atom";if(t.peek()==="#")return t.skipToEnd(),"comment";if(t.eatSpace())return null;if(n.lhs&&t.eatWhile(function(l){return l!="="&&l!=" "}))return"property";if(n.lhs&&t.peek()==="=")return t.next(),n.lhs=!1,null;if(!n.lhs&&t.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(t.match("true")||t.match("false")))return"atom";if(!n.lhs&&t.peek()==="[")return n.inArray++,t.next(),"bracket";if(!n.lhs&&t.match(/^\-?\d+(?:\.\d+)?/))return"number";t.eatSpace()||t.next()}return null}}}),i.defineMIME("text/x-toml","toml")})});var eh=Fe((Qd,Jd)=>{(function(i){typeof Qd=="object"&&typeof Jd=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("vbscript",function(t,n){var l="error";function c(me){return new RegExp("^(("+me.join(")|(")+"))\\b","i")}var d=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),a=new RegExp("^((<>)|(<=)|(>=))"),h=new RegExp("^[\\.,]"),f=new RegExp("^[\\(\\)]"),p=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),y=["class","sub","select","while","if","function","property","with","for"],g=["else","elseif","case"],v=["next","loop","wend"],b=c(["and","or","not","xor","is","mod","eqv","imp"]),k=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"],_=["true","false","nothing","empty","null"],w=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"],I=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"],S=["WScript","err","debug","RegExp"],R=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"],O=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"],U=["server","response","request","session","application"],$=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"],J=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],K=O.concat(R);S=S.concat(I),t.isASP&&(S=S.concat(U),K=K.concat(J,$));var X=c(k),G=c(_),q=c(w),T=c(S),A=c(K),j='"',te=c(y),F=c(g),z=c(v),se=c(["end"]),be=c(["do"]),W=c(["on error resume next","exit"]),M=c(["rem"]);function we(me,ke){ke.currentIndent++}function Pe(me,ke){ke.currentIndent--}function ve(me,ke){if(me.eatSpace())return"space";var Ue=me.peek();if(Ue==="'"||me.match(M))return me.skipToEnd(),"comment";if(me.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!me.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var at=!1;if((me.match(/^\d*\.\d+/i)||me.match(/^\d+\.\d*/)||me.match(/^\.\d+/))&&(at=!0),at)return me.eat(/J/i),"number";var gt=!1;if(me.match(/^&H[0-9a-f]+/i)||me.match(/^&O[0-7]+/i)?gt=!0:me.match(/^[1-9]\d*F?/)?(me.eat(/J/i),gt=!0):me.match(/^0(?![\dx])/i)&&(gt=!0),gt)return me.eat(/L/i),"number"}return me.match(j)?(ke.tokenize=Ee(me.current()),ke.tokenize(me,ke)):me.match(a)||me.match(d)||me.match(b)?"operator":me.match(h)?null:me.match(f)?"bracket":me.match(W)?(ke.doInCurrentLine=!0,"keyword"):me.match(be)?(we(me,ke),ke.doInCurrentLine=!0,"keyword"):me.match(te)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:we(me,ke),"keyword"):me.match(F)?"keyword":me.match(se)?(Pe(me,ke),Pe(me,ke),"keyword"):me.match(z)?(ke.doInCurrentLine?ke.doInCurrentLine=!1:Pe(me,ke),"keyword"):me.match(X)?"keyword":me.match(G)?"atom":me.match(A)?"variable-2":me.match(q)?"builtin":me.match(T)?"variable-2":me.match(p)?"variable":(me.next(),l)}function Ee(me){var ke=me.length==1,Ue="string";return function(at,gt){for(;!at.eol();){if(at.eatWhile(/[^'"]/),at.match(me))return gt.tokenize=ve,Ue;at.eat(/['"]/)}if(ke){if(n.singleLineStringErrors)return l;gt.tokenize=ve}return Ue}}function ze(me,ke){var Ue=ke.tokenize(me,ke),at=me.current();return at==="."?(Ue=ke.tokenize(me,ke),at=me.current(),Ue&&(Ue.substr(0,8)==="variable"||Ue==="builtin"||Ue==="keyword")?((Ue==="builtin"||Ue==="keyword")&&(Ue="variable"),K.indexOf(at.substr(1))>-1&&(Ue="variable-2"),Ue):l):Ue}var qe={electricChars:"dDpPtTfFeE ",startState:function(){return{tokenize:ve,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(me,ke){me.sol()&&(ke.currentIndent+=ke.nextLineIndent,ke.nextLineIndent=0,ke.doInCurrentLine=0);var Ue=ze(me,ke);return ke.lastToken={style:Ue,content:me.current()},Ue==="space"&&(Ue=null),Ue},indent:function(me,ke){var Ue=ke.replace(/^\s+|\s+$/g,"");return Ue.match(z)||Ue.match(se)||Ue.match(F)?t.indentUnit*(me.currentIndent-1):me.currentIndent<0?0:me.currentIndent*t.indentUnit}};return qe}),i.defineMIME("text/vbscript","vbscript")})});var nh=Fe((th,rh)=>{(function(i){typeof th=="object"&&typeof rh=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineMode("yaml",function(){var t=["true","false","on","off","yes","no"],n=new RegExp("\\b(("+t.join(")|(")+"))$","i");return{token:function(l,c){var d=l.peek(),a=c.escaped;if(c.escaped=!1,d=="#"&&(l.pos==0||/\s/.test(l.string.charAt(l.pos-1))))return l.skipToEnd(),"comment";if(l.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(c.literal&&l.indentation()>c.keyCol)return l.skipToEnd(),"string";if(c.literal&&(c.literal=!1),l.sol()){if(c.keyCol=0,c.pair=!1,c.pairStart=!1,l.match("---")||l.match("..."))return"def";if(l.match(/\s*-\s+/))return"meta"}if(l.match(/^(\{|\}|\[|\])/))return d=="{"?c.inlinePairs++:d=="}"?c.inlinePairs--:d=="["?c.inlineList++:c.inlineList--,"meta";if(c.inlineList>0&&!a&&d==",")return l.next(),"meta";if(c.inlinePairs>0&&!a&&d==",")return c.keyCol=0,c.pair=!1,c.pairStart=!1,l.next(),"meta";if(c.pairStart){if(l.match(/^\s*(\||\>)\s*/))return c.literal=!0,"meta";if(l.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(c.inlinePairs==0&&l.match(/^\s*-?[0-9\.\,]+\s?$/)||c.inlinePairs>0&&l.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(l.match(n))return"keyword"}return!c.pair&&l.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(c.pair=!0,c.keyCol=l.indentation(),"atom"):c.pair&&l.match(/^:\s*/)?(c.pairStart=!0,"meta"):(c.pairStart=!1,c.escaped=d=="\\",l.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},lineComment:"#",fold:"indent"}}),i.defineMIME("text/x-yaml","yaml"),i.defineMIME("text/yaml","yaml")})});var ah=Fe((ih,oh)=>{(function(i){typeof ih=="object"&&typeof oh=="object"?i(At()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("scrollPastEnd",!1,function(l,c,d){d&&d!=i.Init&&(l.off("change",t),l.off("refresh",n),l.display.lineSpace.parentNode.style.paddingBottom="",l.state.scrollPastEndPadding=null),c&&(l.on("change",t),l.on("refresh",n),n(l))});function t(l,c){i.changeEnd(c).line==l.lastLine()&&n(l)}function n(l){var c="";if(l.lineCount()>1){var d=l.display.scroller.clientHeight-30,a=l.getLineHandle(l.lastLine()).height;c=d-a+"px"}l.state.scrollPastEndPadding!=c&&(l.state.scrollPastEndPadding=c,l.display.lineSpace.parentNode.style.paddingBottom=c,l.off("refresh",n),l.setSize(),l.on("refresh",n))}})});var Sh=Fe((ka,il)=>{(function(t,n){if(typeof ka=="object"&&typeof il=="object")il.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var l=n();for(var c in l)(typeof ka=="object"?ka:t)[c]=l[c]}})(self,function(){return function(){var i={3099:function(c){c.exports=function(d){if(typeof d!="function")throw TypeError(String(d)+" is not a function");return d}},6077:function(c,d,a){var h=a(111);c.exports=function(f){if(!h(f)&&f!==null)throw TypeError("Can't set "+String(f)+" as a prototype");return f}},1223:function(c,d,a){var h=a(5112),f=a(30),p=a(3070),y=h("unscopables"),g=Array.prototype;g[y]==null&&p.f(g,y,{configurable:!0,value:f(null)}),c.exports=function(v){g[y][v]=!0}},1530:function(c,d,a){"use strict";var h=a(8710).charAt;c.exports=function(f,p,y){return p+(y?h(f,p).length:1)}},5787:function(c){c.exports=function(d,a,h){if(!(d instanceof a))throw TypeError("Incorrect "+(h?h+" ":"")+"invocation");return d}},9670:function(c,d,a){var h=a(111);c.exports=function(f){if(!h(f))throw TypeError(String(f)+" is not an object");return f}},4019:function(c){c.exports=typeof ArrayBuffer!="undefined"&&typeof DataView!="undefined"},260:function(c,d,a){"use strict";var h=a(4019),f=a(9781),p=a(7854),y=a(111),g=a(6656),v=a(648),b=a(8880),k=a(1320),_=a(3070).f,w=a(9518),I=a(7674),S=a(5112),R=a(9711),O=p.Int8Array,U=O&&O.prototype,$=p.Uint8ClampedArray,J=$&&$.prototype,K=O&&w(O),X=U&&w(U),G=Object.prototype,q=G.isPrototypeOf,T=S("toStringTag"),A=R("TYPED_ARRAY_TAG"),j=h&&!!I&&v(p.opera)!=="Opera",te=!1,F,z={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},se={BigInt64Array:8,BigUint64Array:8},be=function(ze){if(!y(ze))return!1;var qe=v(ze);return qe==="DataView"||g(z,qe)||g(se,qe)},W=function(Ee){if(!y(Ee))return!1;var ze=v(Ee);return g(z,ze)||g(se,ze)},M=function(Ee){if(W(Ee))return Ee;throw TypeError("Target is not a typed array")},we=function(Ee){if(I){if(q.call(K,Ee))return Ee}else for(var ze in z)if(g(z,F)){var qe=p[ze];if(qe&&(Ee===qe||q.call(qe,Ee)))return Ee}throw TypeError("Target is not a typed array constructor")},Pe=function(Ee,ze,qe){if(!!f){if(qe)for(var me in z){var ke=p[me];ke&&g(ke.prototype,Ee)&&delete ke.prototype[Ee]}(!X[Ee]||qe)&&k(X,Ee,qe?ze:j&&U[Ee]||ze)}},ve=function(Ee,ze,qe){var me,ke;if(!!f){if(I){if(qe)for(me in z)ke=p[me],ke&&g(ke,Ee)&&delete ke[Ee];if(!K[Ee]||qe)try{return k(K,Ee,qe?ze:j&&O[Ee]||ze)}catch(Ue){}else return}for(me in z)ke=p[me],ke&&(!ke[Ee]||qe)&&k(ke,Ee,ze)}};for(F in z)p[F]||(j=!1);if((!j||typeof K!="function"||K===Function.prototype)&&(K=function(){throw TypeError("Incorrect invocation")},j))for(F in z)p[F]&&I(p[F],K);if((!j||!X||X===G)&&(X=K.prototype,j))for(F in z)p[F]&&I(p[F].prototype,X);if(j&&w(J)!==X&&I(J,X),f&&!g(X,T)){te=!0,_(X,T,{get:function(){return y(this)?this[A]:void 0}});for(F in z)p[F]&&b(p[F],A,F)}c.exports={NATIVE_ARRAY_BUFFER_VIEWS:j,TYPED_ARRAY_TAG:te&&A,aTypedArray:M,aTypedArrayConstructor:we,exportTypedArrayMethod:Pe,exportTypedArrayStaticMethod:ve,isView:be,isTypedArray:W,TypedArray:K,TypedArrayPrototype:X}},3331:function(c,d,a){"use strict";var h=a(7854),f=a(9781),p=a(4019),y=a(8880),g=a(2248),v=a(7293),b=a(5787),k=a(9958),_=a(7466),w=a(7067),I=a(1179),S=a(9518),R=a(7674),O=a(8006).f,U=a(3070).f,$=a(1285),J=a(8003),K=a(9909),X=K.get,G=K.set,q="ArrayBuffer",T="DataView",A="prototype",j="Wrong length",te="Wrong index",F=h[q],z=F,se=h[T],be=se&&se[A],W=Object.prototype,M=h.RangeError,we=I.pack,Pe=I.unpack,ve=function(_e){return[_e&255]},Ee=function(_e){return[_e&255,_e>>8&255]},ze=function(_e){return[_e&255,_e>>8&255,_e>>16&255,_e>>24&255]},qe=function(_e){return _e[3]<<24|_e[2]<<16|_e[1]<<8|_e[0]},me=function(_e){return we(_e,23,4)},ke=function(_e){return we(_e,52,8)},Ue=function(_e,Y){U(_e[A],Y,{get:function(){return X(this)[Y]}})},at=function(_e,Y,fe,le){var it=w(fe),Ne=X(_e);if(it+Y>Ne.byteLength)throw M(te);var ot=X(Ne.buffer).bytes,Ye=it+Ne.byteOffset,Je=ot.slice(Ye,Ye+Y);return le?Je:Je.reverse()},gt=function(_e,Y,fe,le,it,Ne){var ot=w(fe),Ye=X(_e);if(ot+Y>Ye.byteLength)throw M(te);for(var Je=X(Ye.buffer).bytes,We=ot+Ye.byteOffset,qt=le(+it),Lt=0;Lt<Y;Lt++)Je[We+Lt]=qt[Ne?Lt:Y-Lt-1]};if(!p)z=function(Y){b(this,z,q);var fe=w(Y);G(this,{bytes:$.call(new Array(fe),0),byteLength:fe}),f||(this.byteLength=fe)},se=function(Y,fe,le){b(this,se,T),b(Y,z,T);var it=X(Y).byteLength,Ne=k(fe);if(Ne<0||Ne>it)throw M("Wrong offset");if(le=le===void 0?it-Ne:_(le),Ne+le>it)throw M(j);G(this,{buffer:Y,byteLength:le,byteOffset:Ne}),f||(this.buffer=Y,this.byteLength=le,this.byteOffset=Ne)},f&&(Ue(z,"byteLength"),Ue(se,"buffer"),Ue(se,"byteLength"),Ue(se,"byteOffset")),g(se[A],{getInt8:function(Y){return at(this,1,Y)[0]<<24>>24},getUint8:function(Y){return at(this,1,Y)[0]},getInt16:function(Y){var fe=at(this,2,Y,arguments.length>1?arguments[1]:void 0);return(fe[1]<<8|fe[0])<<16>>16},getUint16:function(Y){var fe=at(this,2,Y,arguments.length>1?arguments[1]:void 0);return fe[1]<<8|fe[0]},getInt32:function(Y){return qe(at(this,4,Y,arguments.length>1?arguments[1]:void 0))},getUint32:function(Y){return qe(at(this,4,Y,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(Y){return Pe(at(this,4,Y,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(Y){return Pe(at(this,8,Y,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(Y,fe){gt(this,1,Y,ve,fe)},setUint8:function(Y,fe){gt(this,1,Y,ve,fe)},setInt16:function(Y,fe){gt(this,2,Y,Ee,fe,arguments.length>2?arguments[2]:void 0)},setUint16:function(Y,fe){gt(this,2,Y,Ee,fe,arguments.length>2?arguments[2]:void 0)},setInt32:function(Y,fe){gt(this,4,Y,ze,fe,arguments.length>2?arguments[2]:void 0)},setUint32:function(Y,fe){gt(this,4,Y,ze,fe,arguments.length>2?arguments[2]:void 0)},setFloat32:function(Y,fe){gt(this,4,Y,me,fe,arguments.length>2?arguments[2]:void 0)},setFloat64:function(Y,fe){gt(this,8,Y,ke,fe,arguments.length>2?arguments[2]:void 0)}});else{if(!v(function(){F(1)})||!v(function(){new F(-1)})||v(function(){return new F,new F(1.5),new F(NaN),F.name!=q})){z=function(Y){return b(this,z),new F(w(Y))};for(var Re=z[A]=F[A],Ie=O(F),Be=0,Ge;Ie.length>Be;)(Ge=Ie[Be++])in z||y(z,Ge,F[Ge]);Re.constructor=z}R&&S(be)!==W&&R(be,W);var He=new se(new z(2)),Qe=be.setInt8;He.setInt8(0,2147483648),He.setInt8(1,2147483649),(He.getInt8(0)||!He.getInt8(1))&&g(be,{setInt8:function(Y,fe){Qe.call(this,Y,fe<<24>>24)},setUint8:function(Y,fe){Qe.call(this,Y,fe<<24>>24)}},{unsafe:!0})}J(z,q),J(se,T),c.exports={ArrayBuffer:z,DataView:se}},1048:function(c,d,a){"use strict";var h=a(7908),f=a(1400),p=a(7466),y=Math.min;c.exports=[].copyWithin||function(v,b){var k=h(this),_=p(k.length),w=f(v,_),I=f(b,_),S=arguments.length>2?arguments[2]:void 0,R=y((S===void 0?_:f(S,_))-I,_-w),O=1;for(I<w&&w<I+R&&(O=-1,I+=R-1,w+=R-1);R-- >0;)I in k?k[w]=k[I]:delete k[w],w+=O,I+=O;return k}},1285:function(c,d,a){"use strict";var h=a(7908),f=a(1400),p=a(7466);c.exports=function(g){for(var v=h(this),b=p(v.length),k=arguments.length,_=f(k>1?arguments[1]:void 0,b),w=k>2?arguments[2]:void 0,I=w===void 0?b:f(w,b);I>_;)v[_++]=g;return v}},8533:function(c,d,a){"use strict";var h=a(2092).forEach,f=a(9341),p=f("forEach");c.exports=p?[].forEach:function(g){return h(this,g,arguments.length>1?arguments[1]:void 0)}},8457:function(c,d,a){"use strict";var h=a(9974),f=a(7908),p=a(3411),y=a(7659),g=a(7466),v=a(6135),b=a(1246);c.exports=function(_){var w=f(_),I=typeof this=="function"?this:Array,S=arguments.length,R=S>1?arguments[1]:void 0,O=R!==void 0,U=b(w),$=0,J,K,X,G,q,T;if(O&&(R=h(R,S>2?arguments[2]:void 0,2)),U!=null&&!(I==Array&&y(U)))for(G=U.call(w),q=G.next,K=new I;!(X=q.call(G)).done;$++)T=O?p(G,R,[X.value,$],!0):X.value,v(K,$,T);else for(J=g(w.length),K=new I(J);J>$;$++)T=O?R(w[$],$):w[$],v(K,$,T);return K.length=$,K}},1318:function(c,d,a){var h=a(5656),f=a(7466),p=a(1400),y=function(g){return function(v,b,k){var _=h(v),w=f(_.length),I=p(k,w),S;if(g&&b!=b){for(;w>I;)if(S=_[I++],S!=S)return!0}else for(;w>I;I++)if((g||I in _)&&_[I]===b)return g||I||0;return!g&&-1}};c.exports={includes:y(!0),indexOf:y(!1)}},2092:function(c,d,a){var h=a(9974),f=a(8361),p=a(7908),y=a(7466),g=a(5417),v=[].push,b=function(k){var _=k==1,w=k==2,I=k==3,S=k==4,R=k==6,O=k==7,U=k==5||R;return function($,J,K,X){for(var G=p($),q=f(G),T=h(J,K,3),A=y(q.length),j=0,te=X||g,F=_?te($,A):w||O?te($,0):void 0,z,se;A>j;j++)if((U||j in q)&&(z=q[j],se=T(z,j,G),k))if(_)F[j]=se;else if(se)switch(k){case 3:return!0;case 5:return z;case 6:return j;case 2:v.call(F,z)}else switch(k){case 4:return!1;case 7:v.call(F,z)}return R?-1:I||S?S:F}};c.exports={forEach:b(0),map:b(1),filter:b(2),some:b(3),every:b(4),find:b(5),findIndex:b(6),filterOut:b(7)}},6583:function(c,d,a){"use strict";var h=a(5656),f=a(9958),p=a(7466),y=a(9341),g=Math.min,v=[].lastIndexOf,b=!!v&&1/[1].lastIndexOf(1,-0)<0,k=y("lastIndexOf"),_=b||!k;c.exports=_?function(I){if(b)return v.apply(this,arguments)||0;var S=h(this),R=p(S.length),O=R-1;for(arguments.length>1&&(O=g(O,f(arguments[1]))),O<0&&(O=R+O);O>=0;O--)if(O in S&&S[O]===I)return O||0;return-1}:v},1194:function(c,d,a){var h=a(7293),f=a(5112),p=a(7392),y=f("species");c.exports=function(g){return p>=51||!h(function(){var v=[],b=v.constructor={};return b[y]=function(){return{foo:1}},v[g](Boolean).foo!==1})}},9341:function(c,d,a){"use strict";var h=a(7293);c.exports=function(f,p){var y=[][f];return!!y&&h(function(){y.call(null,p||function(){throw 1},1)})}},3671:function(c,d,a){var h=a(3099),f=a(7908),p=a(8361),y=a(7466),g=function(v){return function(b,k,_,w){h(k);var I=f(b),S=p(I),R=y(I.length),O=v?R-1:0,U=v?-1:1;if(_<2)for(;;){if(O in S){w=S[O],O+=U;break}if(O+=U,v?O<0:R<=O)throw TypeError("Reduce of empty array with no initial value")}for(;v?O>=0:R>O;O+=U)O in S&&(w=k(w,S[O],O,I));return w}};c.exports={left:g(!1),right:g(!0)}},5417:function(c,d,a){var h=a(111),f=a(3157),p=a(5112),y=p("species");c.exports=function(g,v){var b;return f(g)&&(b=g.constructor,typeof b=="function"&&(b===Array||f(b.prototype))?b=void 0:h(b)&&(b=b[y],b===null&&(b=void 0))),new(b===void 0?Array:b)(v===0?0:v)}},3411:function(c,d,a){var h=a(9670),f=a(9212);c.exports=function(p,y,g,v){try{return v?y(h(g)[0],g[1]):y(g)}catch(b){throw f(p),b}}},7072:function(c,d,a){var h=a(5112),f=h("iterator"),p=!1;try{var y=0,g={next:function(){return{done:!!y++}},return:function(){p=!0}};g[f]=function(){return this},Array.from(g,function(){throw 2})}catch(v){}c.exports=function(v,b){if(!b&&!p)return!1;var k=!1;try{var _={};_[f]=function(){return{next:function(){return{done:k=!0}}}},v(_)}catch(w){}return k}},4326:function(c){var d={}.toString;c.exports=function(a){return d.call(a).slice(8,-1)}},648:function(c,d,a){var h=a(1694),f=a(4326),p=a(5112),y=p("toStringTag"),g=f(function(){return arguments}())=="Arguments",v=function(b,k){try{return b[k]}catch(_){}};c.exports=h?f:function(b){var k,_,w;return b===void 0?"Undefined":b===null?"Null":typeof(_=v(k=Object(b),y))=="string"?_:g?f(k):(w=f(k))=="Object"&&typeof k.callee=="function"?"Arguments":w}},9920:function(c,d,a){var h=a(6656),f=a(3887),p=a(1236),y=a(3070);c.exports=function(g,v){for(var b=f(v),k=y.f,_=p.f,w=0;w<b.length;w++){var I=b[w];h(g,I)||k(g,I,_(v,I))}}},8544:function(c,d,a){var h=a(7293);c.exports=!h(function(){function f(){}return f.prototype.constructor=null,Object.getPrototypeOf(new f)!==f.prototype})},4994:function(c,d,a){"use strict";var h=a(3383).IteratorPrototype,f=a(30),p=a(9114),y=a(8003),g=a(7497),v=function(){return this};c.exports=function(b,k,_){var w=k+" Iterator";return b.prototype=f(h,{next:p(1,_)}),y(b,w,!1,!0),g[w]=v,b}},8880:function(c,d,a){var h=a(9781),f=a(3070),p=a(9114);c.exports=h?function(y,g,v){return f.f(y,g,p(1,v))}:function(y,g,v){return y[g]=v,y}},9114:function(c){c.exports=function(d,a){return{enumerable:!(d&1),configurable:!(d&2),writable:!(d&4),value:a}}},6135:function(c,d,a){"use strict";var h=a(7593),f=a(3070),p=a(9114);c.exports=function(y,g,v){var b=h(g);b in y?f.f(y,b,p(0,v)):y[b]=v}},654:function(c,d,a){"use strict";var h=a(2109),f=a(4994),p=a(9518),y=a(7674),g=a(8003),v=a(8880),b=a(1320),k=a(5112),_=a(1913),w=a(7497),I=a(3383),S=I.IteratorPrototype,R=I.BUGGY_SAFARI_ITERATORS,O=k("iterator"),U="keys",$="values",J="entries",K=function(){return this};c.exports=function(X,G,q,T,A,j,te){f(q,G,T);var F=function(ze){if(ze===A&&M)return M;if(!R&&ze in be)return be[ze];switch(ze){case U:return function(){return new q(this,ze)};case $:return function(){return new q(this,ze)};case J:return function(){return new q(this,ze)}}return function(){return new q(this)}},z=G+" Iterator",se=!1,be=X.prototype,W=be[O]||be["@@iterator"]||A&&be[A],M=!R&&W||F(A),we=G=="Array"&&be.entries||W,Pe,ve,Ee;if(we&&(Pe=p(we.call(new X)),S!==Object.prototype&&Pe.next&&(!_&&p(Pe)!==S&&(y?y(Pe,S):typeof Pe[O]!="function"&&v(Pe,O,K)),g(Pe,z,!0,!0),_&&(w[z]=K))),A==$&&W&&W.name!==$&&(se=!0,M=function(){return W.call(this)}),(!_||te)&&be[O]!==M&&v(be,O,M),w[G]=M,A)if(ve={values:F($),keys:j?M:F(U),entries:F(J)},te)for(Ee in ve)(R||se||!(Ee in be))&&b(be,Ee,ve[Ee]);else h({target:G,proto:!0,forced:R||se},ve);return ve}},9781:function(c,d,a){var h=a(7293);c.exports=!h(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},317:function(c,d,a){var h=a(7854),f=a(111),p=h.document,y=f(p)&&f(p.createElement);c.exports=function(g){return y?p.createElement(g):{}}},8324:function(c){c.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8113:function(c,d,a){var h=a(5005);c.exports=h("navigator","userAgent")||""},7392:function(c,d,a){var h=a(7854),f=a(8113),p=h.process,y=p&&p.versions,g=y&&y.v8,v,b;g?(v=g.split("."),b=v[0]+v[1]):f&&(v=f.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=f.match(/Chrome\/(\d+)/),v&&(b=v[1]))),c.exports=b&&+b},748:function(c){c.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(c,d,a){var h=a(7854),f=a(1236).f,p=a(8880),y=a(1320),g=a(3505),v=a(9920),b=a(4705);c.exports=function(k,_){var w=k.target,I=k.global,S=k.stat,R,O,U,$,J,K;if(I?O=h:S?O=h[w]||g(w,{}):O=(h[w]||{}).prototype,O)for(U in _){if(J=_[U],k.noTargetGet?(K=f(O,U),$=K&&K.value):$=O[U],R=b(I?U:w+(S?".":"#")+U,k.forced),!R&&$!==void 0){if(typeof J==typeof $)continue;v(J,$)}(k.sham||$&&$.sham)&&p(J,"sham",!0),y(O,U,J,k)}}},7293:function(c){c.exports=function(d){try{return!!d()}catch(a){return!0}}},7007:function(c,d,a){"use strict";a(4916);var h=a(1320),f=a(7293),p=a(5112),y=a(2261),g=a(8880),v=p("species"),b=!f(function(){var S=/./;return S.exec=function(){var R=[];return R.groups={a:"7"},R},"".replace(S,"$<a>")!=="7"}),k=function(){return"a".replace(/./,"$0")==="$0"}(),_=p("replace"),w=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),I=!f(function(){var S=/(?:)/,R=S.exec;S.exec=function(){return R.apply(this,arguments)};var O="ab".split(S);return O.length!==2||O[0]!=="a"||O[1]!=="b"});c.exports=function(S,R,O,U){var $=p(S),J=!f(function(){var A={};return A[$]=function(){return 7},""[S](A)!=7}),K=J&&!f(function(){var A=!1,j=/a/;return S==="split"&&(j={},j.constructor={},j.constructor[v]=function(){return j},j.flags="",j[$]=/./[$]),j.exec=function(){return A=!0,null},j[$](""),!A});if(!J||!K||S==="replace"&&!(b&&k&&!w)||S==="split"&&!I){var X=/./[$],G=O($,""[S],function(A,j,te,F,z){return j.exec===y?J&&!z?{done:!0,value:X.call(j,te,F)}:{done:!0,value:A.call(te,j,F)}:{done:!1}},{REPLACE_KEEPS_$0:k,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:w}),q=G[0],T=G[1];h(String.prototype,S,q),h(RegExp.prototype,$,R==2?function(A,j){return T.call(A,this,j)}:function(A){return T.call(A,this)})}U&&g(RegExp.prototype[$],"sham",!0)}},9974:function(c,d,a){var h=a(3099);c.exports=function(f,p,y){if(h(f),p===void 0)return f;switch(y){case 0:return function(){return f.call(p)};case 1:return function(g){return f.call(p,g)};case 2:return function(g,v){return f.call(p,g,v)};case 3:return function(g,v,b){return f.call(p,g,v,b)}}return function(){return f.apply(p,arguments)}}},5005:function(c,d,a){var h=a(857),f=a(7854),p=function(y){return typeof y=="function"?y:void 0};c.exports=function(y,g){return arguments.length<2?p(h[y])||p(f[y]):h[y]&&h[y][g]||f[y]&&f[y][g]}},1246:function(c,d,a){var h=a(648),f=a(7497),p=a(5112),y=p("iterator");c.exports=function(g){if(g!=null)return g[y]||g["@@iterator"]||f[h(g)]}},8554:function(c,d,a){var h=a(9670),f=a(1246);c.exports=function(p){var y=f(p);if(typeof y!="function")throw TypeError(String(p)+" is not iterable");return h(y.call(p))}},647:function(c,d,a){var h=a(7908),f=Math.floor,p="".replace,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;c.exports=function(v,b,k,_,w,I){var S=k+v.length,R=_.length,O=g;return w!==void 0&&(w=h(w),O=y),p.call(I,O,function(U,$){var J;switch($.charAt(0)){case"$":return"$";case"&":return v;case"`":return b.slice(0,k);case"'":return b.slice(S);case"<":J=w[$.slice(1,-1)];break;default:var K=+$;if(K===0)return U;if(K>R){var X=f(K/10);return X===0?U:X<=R?_[X-1]===void 0?$.charAt(1):_[X-1]+$.charAt(1):U}J=_[K-1]}return J===void 0?"":J})}},7854:function(c,d,a){var h=function(f){return f&&f.Math==Math&&f};c.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof a.g=="object"&&a.g)||function(){return this}()||Function("return this")()},6656:function(c){var d={}.hasOwnProperty;c.exports=function(a,h){return d.call(a,h)}},3501:function(c){c.exports={}},490:function(c,d,a){var h=a(5005);c.exports=h("document","documentElement")},4664:function(c,d,a){var h=a(9781),f=a(7293),p=a(317);c.exports=!h&&!f(function(){return Object.defineProperty(p("div"),"a",{get:function(){return 7}}).a!=7})},1179:function(c){var d=Math.abs,a=Math.pow,h=Math.floor,f=Math.log,p=Math.LN2,y=function(v,b,k){var _=new Array(k),w=k*8-b-1,I=(1<<w)-1,S=I>>1,R=b===23?a(2,-24)-a(2,-77):0,O=v<0||v===0&&1/v<0?1:0,U=0,$,J,K;for(v=d(v),v!=v||v===Infinity?(J=v!=v?1:0,$=I):($=h(f(v)/p),v*(K=a(2,-$))<1&&($--,K*=2),$+S>=1?v+=R/K:v+=R*a(2,1-S),v*K>=2&&($++,K/=2),$+S>=I?(J=0,$=I):$+S>=1?(J=(v*K-1)*a(2,b),$=$+S):(J=v*a(2,S-1)*a(2,b),$=0));b>=8;_[U++]=J&255,J/=256,b-=8);for($=$<<b|J,w+=b;w>0;_[U++]=$&255,$/=256,w-=8);return _[--U]|=O*128,_},g=function(v,b){var k=v.length,_=k*8-b-1,w=(1<<_)-1,I=w>>1,S=_-7,R=k-1,O=v[R--],U=O&127,$;for(O>>=7;S>0;U=U*256+v[R],R--,S-=8);for($=U&(1<<-S)-1,U>>=-S,S+=b;S>0;$=$*256+v[R],R--,S-=8);if(U===0)U=1-I;else{if(U===w)return $?NaN:O?-Infinity:Infinity;$=$+a(2,b),U=U-I}return(O?-1:1)*$*a(2,U-b)};c.exports={pack:y,unpack:g}},8361:function(c,d,a){var h=a(7293),f=a(4326),p="".split;c.exports=h(function(){return!Object("z").propertyIsEnumerable(0)})?function(y){return f(y)=="String"?p.call(y,""):Object(y)}:Object},9587:function(c,d,a){var h=a(111),f=a(7674);c.exports=function(p,y,g){var v,b;return f&&typeof(v=y.constructor)=="function"&&v!==g&&h(b=v.prototype)&&b!==g.prototype&&f(p,b),p}},2788:function(c,d,a){var h=a(5465),f=Function.toString;typeof h.inspectSource!="function"&&(h.inspectSource=function(p){return f.call(p)}),c.exports=h.inspectSource},9909:function(c,d,a){var h=a(8536),f=a(7854),p=a(111),y=a(8880),g=a(6656),v=a(5465),b=a(6200),k=a(3501),_=f.WeakMap,w,I,S,R=function(G){return S(G)?I(G):w(G,{})},O=function(G){return function(q){var T;if(!p(q)||(T=I(q)).type!==G)throw TypeError("Incompatible receiver, "+G+" required");return T}};if(h){var U=v.state||(v.state=new _),$=U.get,J=U.has,K=U.set;w=function(G,q){return q.facade=G,K.call(U,G,q),q},I=function(G){return $.call(U,G)||{}},S=function(G){return J.call(U,G)}}else{var X=b("state");k[X]=!0,w=function(G,q){return q.facade=G,y(G,X,q),q},I=function(G){return g(G,X)?G[X]:{}},S=function(G){return g(G,X)}}c.exports={set:w,get:I,has:S,enforce:R,getterFor:O}},7659:function(c,d,a){var h=a(5112),f=a(7497),p=h("iterator"),y=Array.prototype;c.exports=function(g){return g!==void 0&&(f.Array===g||y[p]===g)}},3157:function(c,d,a){var h=a(4326);c.exports=Array.isArray||function(p){return h(p)=="Array"}},4705:function(c,d,a){var h=a(7293),f=/#|\.prototype\./,p=function(k,_){var w=g[y(k)];return w==b?!0:w==v?!1:typeof _=="function"?h(_):!!_},y=p.normalize=function(k){return String(k).replace(f,".").toLowerCase()},g=p.data={},v=p.NATIVE="N",b=p.POLYFILL="P";c.exports=p},111:function(c){c.exports=function(d){return typeof d=="object"?d!==null:typeof d=="function"}},1913:function(c){c.exports=!1},7850:function(c,d,a){var h=a(111),f=a(4326),p=a(5112),y=p("match");c.exports=function(g){var v;return h(g)&&((v=g[y])!==void 0?!!v:f(g)=="RegExp")}},9212:function(c,d,a){var h=a(9670);c.exports=function(f){var p=f.return;if(p!==void 0)return h(p.call(f)).value}},3383:function(c,d,a){"use strict";var h=a(7293),f=a(9518),p=a(8880),y=a(6656),g=a(5112),v=a(1913),b=g("iterator"),k=!1,_=function(){return this},w,I,S;[].keys&&(S=[].keys(),"next"in S?(I=f(f(S)),I!==Object.prototype&&(w=I)):k=!0);var R=w==null||h(function(){var O={};return w[b].call(O)!==O});R&&(w={}),(!v||R)&&!y(w,b)&&p(w,b,_),c.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:k}},7497:function(c){c.exports={}},133:function(c,d,a){var h=a(7293);c.exports=!!Object.getOwnPropertySymbols&&!h(function(){return!String(Symbol())})},590:function(c,d,a){var h=a(7293),f=a(5112),p=a(1913),y=f("iterator");c.exports=!h(function(){var g=new URL("b?a=1&b=2&c=3","http://a"),v=g.searchParams,b="";return g.pathname="c%20d",v.forEach(function(k,_){v.delete("b"),b+=_+k}),p&&!g.toJSON||!v.sort||g.href!=="http://a/c%20d?a=1&c=3"||v.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!v[y]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||b!=="a1c3"||new URL("http://x",void 0).host!=="x"})},8536:function(c,d,a){var h=a(7854),f=a(2788),p=h.WeakMap;c.exports=typeof p=="function"&&/native code/.test(f(p))},1574:function(c,d,a){"use strict";var h=a(9781),f=a(7293),p=a(1956),y=a(5181),g=a(5296),v=a(7908),b=a(8361),k=Object.assign,_=Object.defineProperty;c.exports=!k||f(function(){if(h&&k({b:1},k(_({},"a",{enumerable:!0,get:function(){_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},I={},S=Symbol(),R="abcdefghijklmnopqrst";return w[S]=7,R.split("").forEach(function(O){I[O]=O}),k({},w)[S]!=7||p(k({},I)).join("")!=R})?function(I,S){for(var R=v(I),O=arguments.length,U=1,$=y.f,J=g.f;O>U;)for(var K=b(arguments[U++]),X=$?p(K).concat($(K)):p(K),G=X.length,q=0,T;G>q;)T=X[q++],(!h||J.call(K,T))&&(R[T]=K[T]);return R}:k},30:function(c,d,a){var h=a(9670),f=a(6048),p=a(748),y=a(3501),g=a(490),v=a(317),b=a(6200),k=">",_="<",w="prototype",I="script",S=b("IE_PROTO"),R=function(){},O=function(X){return _+I+k+X+_+"/"+I+k},U=function(X){X.write(O("")),X.close();var G=X.parentWindow.Object;return X=null,G},$=function(){var X=v("iframe"),G="java"+I+":",q;return X.style.display="none",g.appendChild(X),X.src=String(G),q=X.contentWindow.document,q.open(),q.write(O("document.F=Object")),q.close(),q.F},J,K=function(){try{J=document.domain&&new ActiveXObject("htmlfile")}catch(G){}K=J?U(J):$();for(var X=p.length;X--;)delete K[w][p[X]];return K()};y[S]=!0,c.exports=Object.create||function(G,q){var T;return G!==null?(R[w]=h(G),T=new R,R[w]=null,T[S]=G):T=K(),q===void 0?T:f(T,q)}},6048:function(c,d,a){var h=a(9781),f=a(3070),p=a(9670),y=a(1956);c.exports=h?Object.defineProperties:function(v,b){p(v);for(var k=y(b),_=k.length,w=0,I;_>w;)f.f(v,I=k[w++],b[I]);return v}},3070:function(c,d,a){var h=a(9781),f=a(4664),p=a(9670),y=a(7593),g=Object.defineProperty;d.f=h?g:function(b,k,_){if(p(b),k=y(k,!0),p(_),f)try{return g(b,k,_)}catch(w){}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(b[k]=_.value),b}},1236:function(c,d,a){var h=a(9781),f=a(5296),p=a(9114),y=a(5656),g=a(7593),v=a(6656),b=a(4664),k=Object.getOwnPropertyDescriptor;d.f=h?k:function(w,I){if(w=y(w),I=g(I,!0),b)try{return k(w,I)}catch(S){}if(v(w,I))return p(!f.f.call(w,I),w[I])}},8006:function(c,d,a){var h=a(6324),f=a(748),p=f.concat("length","prototype");d.f=Object.getOwnPropertyNames||function(g){return h(g,p)}},5181:function(c,d){d.f=Object.getOwnPropertySymbols},9518:function(c,d,a){var h=a(6656),f=a(7908),p=a(6200),y=a(8544),g=p("IE_PROTO"),v=Object.prototype;c.exports=y?Object.getPrototypeOf:function(b){return b=f(b),h(b,g)?b[g]:typeof b.constructor=="function"&&b instanceof b.constructor?b.constructor.prototype:b instanceof Object?v:null}},6324:function(c,d,a){var h=a(6656),f=a(5656),p=a(1318).indexOf,y=a(3501);c.exports=function(g,v){var b=f(g),k=0,_=[],w;for(w in b)!h(y,w)&&h(b,w)&&_.push(w);for(;v.length>k;)h(b,w=v[k++])&&(~p(_,w)||_.push(w));return _}},1956:function(c,d,a){var h=a(6324),f=a(748);c.exports=Object.keys||function(y){return h(y,f)}},5296:function(c,d){"use strict";var a={}.propertyIsEnumerable,h=Object.getOwnPropertyDescriptor,f=h&&!a.call({1:2},1);d.f=f?function(y){var g=h(this,y);return!!g&&g.enumerable}:a},7674:function(c,d,a){var h=a(9670),f=a(6077);c.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var p=!1,y={},g;try{g=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,g.call(y,[]),p=y instanceof Array}catch(v){}return function(b,k){return h(b),f(k),p?g.call(b,k):b.__proto__=k,b}}():void 0)},288:function(c,d,a){"use strict";var h=a(1694),f=a(648);c.exports=h?{}.toString:function(){return"[object "+f(this)+"]"}},3887:function(c,d,a){var h=a(5005),f=a(8006),p=a(5181),y=a(9670);c.exports=h("Reflect","ownKeys")||function(v){var b=f.f(y(v)),k=p.f;return k?b.concat(k(v)):b}},857:function(c,d,a){var h=a(7854);c.exports=h},2248:function(c,d,a){var h=a(1320);c.exports=function(f,p,y){for(var g in p)h(f,g,p[g],y);return f}},1320:function(c,d,a){var h=a(7854),f=a(8880),p=a(6656),y=a(3505),g=a(2788),v=a(9909),b=v.get,k=v.enforce,_=String(String).split("String");(c.exports=function(w,I,S,R){var O=R?!!R.unsafe:!1,U=R?!!R.enumerable:!1,$=R?!!R.noTargetGet:!1,J;if(typeof S=="function"&&(typeof I=="string"&&!p(S,"name")&&f(S,"name",I),J=k(S),J.source||(J.source=_.join(typeof I=="string"?I:""))),w===h){U?w[I]=S:y(I,S);return}else O?!$&&w[I]&&(U=!0):delete w[I];U?w[I]=S:f(w,I,S)})(Function.prototype,"toString",function(){return typeof this=="function"&&b(this).source||g(this)})},7651:function(c,d,a){var h=a(4326),f=a(2261);c.exports=function(p,y){var g=p.exec;if(typeof g=="function"){var v=g.call(p,y);if(typeof v!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return v}if(h(p)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return f.call(p,y)}},2261:function(c,d,a){"use strict";var h=a(7066),f=a(2999),p=RegExp.prototype.exec,y=String.prototype.replace,g=p,v=function(){var w=/a/,I=/b*/g;return p.call(w,"a"),p.call(I,"a"),w.lastIndex!==0||I.lastIndex!==0}(),b=f.UNSUPPORTED_Y||f.BROKEN_CARET,k=/()??/.exec("")[1]!==void 0,_=v||k||b;_&&(g=function(I){var S=this,R,O,U,$,J=b&&S.sticky,K=h.call(S),X=S.source,G=0,q=I;return J&&(K=K.replace("y",""),K.indexOf("g")===-1&&(K+="g"),q=String(I).slice(S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&I[S.lastIndex-1]!==`
`)&&(X="(?: "+X+")",q=" "+q,G++),O=new RegExp("^(?:"+X+")",K)),k&&(O=new RegExp("^"+X+"$(?!\\s)",K)),v&&(R=S.lastIndex),U=p.call(J?O:S,q),J?U?(U.input=U.input.slice(G),U[0]=U[0].slice(G),U.index=S.lastIndex,S.lastIndex+=U[0].length):S.lastIndex=0:v&&U&&(S.lastIndex=S.global?U.index+U[0].length:R),k&&U&&U.length>1&&y.call(U[0],O,function(){for($=1;$<arguments.length-2;$++)arguments[$]===void 0&&(U[$]=void 0)}),U}),c.exports=g},7066:function(c,d,a){"use strict";var h=a(9670);c.exports=function(){var f=h(this),p="";return f.global&&(p+="g"),f.ignoreCase&&(p+="i"),f.multiline&&(p+="m"),f.dotAll&&(p+="s"),f.unicode&&(p+="u"),f.sticky&&(p+="y"),p}},2999:function(c,d,a){"use strict";var h=a(7293);function f(p,y){return RegExp(p,y)}d.UNSUPPORTED_Y=h(function(){var p=f("a","y");return p.lastIndex=2,p.exec("abcd")!=null}),d.BROKEN_CARET=h(function(){var p=f("^r","gy");return p.lastIndex=2,p.exec("str")!=null})},4488:function(c){c.exports=function(d){if(d==null)throw TypeError("Can't call method on "+d);return d}},3505:function(c,d,a){var h=a(7854),f=a(8880);c.exports=function(p,y){try{f(h,p,y)}catch(g){h[p]=y}return y}},6340:function(c,d,a){"use strict";var h=a(5005),f=a(3070),p=a(5112),y=a(9781),g=p("species");c.exports=function(v){var b=h(v),k=f.f;y&&b&&!b[g]&&k(b,g,{configurable:!0,get:function(){return this}})}},8003:function(c,d,a){var h=a(3070).f,f=a(6656),p=a(5112),y=p("toStringTag");c.exports=function(g,v,b){g&&!f(g=b?g:g.prototype,y)&&h(g,y,{configurable:!0,value:v})}},6200:function(c,d,a){var h=a(2309),f=a(9711),p=h("keys");c.exports=function(y){return p[y]||(p[y]=f(y))}},5465:function(c,d,a){var h=a(7854),f=a(3505),p="__core-js_shared__",y=h[p]||f(p,{});c.exports=y},2309:function(c,d,a){var h=a(1913),f=a(5465);(c.exports=function(p,y){return f[p]||(f[p]=y!==void 0?y:{})})("versions",[]).push({version:"3.9.0",mode:h?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},6707:function(c,d,a){var h=a(9670),f=a(3099),p=a(5112),y=p("species");c.exports=function(g,v){var b=h(g).constructor,k;return b===void 0||(k=h(b)[y])==null?v:f(k)}},8710:function(c,d,a){var h=a(9958),f=a(4488),p=function(y){return function(g,v){var b=String(f(g)),k=h(v),_=b.length,w,I;return k<0||k>=_?y?"":void 0:(w=b.charCodeAt(k),w<55296||w>56319||k+1===_||(I=b.charCodeAt(k+1))<56320||I>57343?y?b.charAt(k):w:y?b.slice(k,k+2):(w-55296<<10)+(I-56320)+65536)}};c.exports={codeAt:p(!1),charAt:p(!0)}},3197:function(c){"use strict";var d=2147483647,a=36,h=1,f=26,p=38,y=700,g=72,v=128,b="-",k=/[^\0-\u007E]/,_=/[.\u3002\uFF0E\uFF61]/g,w="Overflow: input needs wider integers to process",I=a-h,S=Math.floor,R=String.fromCharCode,O=function(K){for(var X=[],G=0,q=K.length;G<q;){var T=K.charCodeAt(G++);if(T>=55296&&T<=56319&&G<q){var A=K.charCodeAt(G++);(A&64512)==56320?X.push(((T&1023)<<10)+(A&1023)+65536):(X.push(T),G--)}else X.push(T)}return X},U=function(K){return K+22+75*(K<26)},$=function(K,X,G){var q=0;for(K=G?S(K/y):K>>1,K+=S(K/X);K>I*f>>1;q+=a)K=S(K/I);return S(q+(I+1)*K/(K+p))},J=function(K){var X=[];K=O(K);var G=K.length,q=v,T=0,A=g,j,te;for(j=0;j<K.length;j++)te=K[j],te<128&&X.push(R(te));var F=X.length,z=F;for(F&&X.push(b);z<G;){var se=d;for(j=0;j<K.length;j++)te=K[j],te>=q&&te<se&&(se=te);var be=z+1;if(se-q>S((d-T)/be))throw RangeError(w);for(T+=(se-q)*be,q=se,j=0;j<K.length;j++){if(te=K[j],te<q&&++T>d)throw RangeError(w);if(te==q){for(var W=T,M=a;;M+=a){var we=M<=A?h:M>=A+f?f:M-A;if(W<we)break;var Pe=W-we,ve=a-we;X.push(R(U(we+Pe%ve))),W=S(Pe/ve)}X.push(R(U(W))),A=$(T,be,z==F),T=0,++z}}++T,++q}return X.join("")};c.exports=function(K){var X=[],G=K.toLowerCase().replace(_,".").split("."),q,T;for(q=0;q<G.length;q++)T=G[q],X.push(k.test(T)?"xn--"+J(T):T);return X.join(".")}},6091:function(c,d,a){var h=a(7293),f=a(1361),p="\u200B\x85\u180E";c.exports=function(y){return h(function(){return!!f[y]()||p[y]()!=p||f[y].name!==y})}},3111:function(c,d,a){var h=a(4488),f=a(1361),p="["+f+"]",y=RegExp("^"+p+p+"*"),g=RegExp(p+p+"*$"),v=function(b){return function(k){var _=String(h(k));return b&1&&(_=_.replace(y,"")),b&2&&(_=_.replace(g,"")),_}};c.exports={start:v(1),end:v(2),trim:v(3)}},1400:function(c,d,a){var h=a(9958),f=Math.max,p=Math.min;c.exports=function(y,g){var v=h(y);return v<0?f(v+g,0):p(v,g)}},7067:function(c,d,a){var h=a(9958),f=a(7466);c.exports=function(p){if(p===void 0)return 0;var y=h(p),g=f(y);if(y!==g)throw RangeError("Wrong length or index");return g}},5656:function(c,d,a){var h=a(8361),f=a(4488);c.exports=function(p){return h(f(p))}},9958:function(c){var d=Math.ceil,a=Math.floor;c.exports=function(h){return isNaN(h=+h)?0:(h>0?a:d)(h)}},7466:function(c,d,a){var h=a(9958),f=Math.min;c.exports=function(p){return p>0?f(h(p),9007199254740991):0}},7908:function(c,d,a){var h=a(4488);c.exports=function(f){return Object(h(f))}},4590:function(c,d,a){var h=a(3002);c.exports=function(f,p){var y=h(f);if(y%p)throw RangeError("Wrong offset");return y}},3002:function(c,d,a){var h=a(9958);c.exports=function(f){var p=h(f);if(p<0)throw RangeError("The argument can't be less than 0");return p}},7593:function(c,d,a){var h=a(111);c.exports=function(f,p){if(!h(f))return f;var y,g;if(p&&typeof(y=f.toString)=="function"&&!h(g=y.call(f))||typeof(y=f.valueOf)=="function"&&!h(g=y.call(f))||!p&&typeof(y=f.toString)=="function"&&!h(g=y.call(f)))return g;throw TypeError("Can't convert object to primitive value")}},1694:function(c,d,a){var h=a(5112),f=h("toStringTag"),p={};p[f]="z",c.exports=String(p)==="[object z]"},9843:function(c,d,a){"use strict";var h=a(2109),f=a(7854),p=a(9781),y=a(3832),g=a(260),v=a(3331),b=a(5787),k=a(9114),_=a(8880),w=a(7466),I=a(7067),S=a(4590),R=a(7593),O=a(6656),U=a(648),$=a(111),J=a(30),K=a(7674),X=a(8006).f,G=a(7321),q=a(2092).forEach,T=a(6340),A=a(3070),j=a(1236),te=a(9909),F=a(9587),z=te.get,se=te.set,be=A.f,W=j.f,M=Math.round,we=f.RangeError,Pe=v.ArrayBuffer,ve=v.DataView,Ee=g.NATIVE_ARRAY_BUFFER_VIEWS,ze=g.TYPED_ARRAY_TAG,qe=g.TypedArray,me=g.TypedArrayPrototype,ke=g.aTypedArrayConstructor,Ue=g.isTypedArray,at="BYTES_PER_ELEMENT",gt="Wrong length",Re=function(_e,Y){for(var fe=0,le=Y.length,it=new(ke(_e))(le);le>fe;)it[fe]=Y[fe++];return it},Ie=function(_e,Y){be(_e,Y,{get:function(){return z(this)[Y]}})},Be=function(_e){var Y;return _e instanceof Pe||(Y=U(_e))=="ArrayBuffer"||Y=="SharedArrayBuffer"},Ge=function(_e,Y){return Ue(_e)&&typeof Y!="symbol"&&Y in _e&&String(+Y)==String(Y)},He=function(Y,fe){return Ge(Y,fe=R(fe,!0))?k(2,Y[fe]):W(Y,fe)},Qe=function(Y,fe,le){return Ge(Y,fe=R(fe,!0))&&$(le)&&O(le,"value")&&!O(le,"get")&&!O(le,"set")&&!le.configurable&&(!O(le,"writable")||le.writable)&&(!O(le,"enumerable")||le.enumerable)?(Y[fe]=le.value,Y):be(Y,fe,le)};p?(Ee||(j.f=He,A.f=Qe,Ie(me,"buffer"),Ie(me,"byteOffset"),Ie(me,"byteLength"),Ie(me,"length")),h({target:"Object",stat:!0,forced:!Ee},{getOwnPropertyDescriptor:He,defineProperty:Qe}),c.exports=function(_e,Y,fe){var le=_e.match(/\d+$/)[0]/8,it=_e+(fe?"Clamped":"")+"Array",Ne="get"+_e,ot="set"+_e,Ye=f[it],Je=Ye,We=Je&&Je.prototype,qt={},Lt=function(Mt,pt){var rt=z(Mt);return rt.view[Ne](pt*le+rt.byteOffset,!0)},cr=function(Mt,pt,rt){var wt=z(Mt);fe&&(rt=(rt=M(rt))<0?0:rt>255?255:rt&255),wt.view[ot](pt*le+wt.byteOffset,rt,!0)},lt=function(Mt,pt){be(Mt,pt,{get:function(){return Lt(this,pt)},set:function(rt){return cr(this,pt,rt)},enumerable:!0})};Ee?y&&(Je=Y(function(Mt,pt,rt,wt){return b(Mt,Je,it),F(function(){return $(pt)?Be(pt)?wt!==void 0?new Ye(pt,S(rt,le),wt):rt!==void 0?new Ye(pt,S(rt,le)):new Ye(pt):Ue(pt)?Re(Je,pt):G.call(Je,pt):new Ye(I(pt))}(),Mt,Je)}),K&&K(Je,qe),q(X(Ye),function(Mt){Mt in Je||_(Je,Mt,Ye[Mt])}),Je.prototype=We):(Je=Y(function(Mt,pt,rt,wt){b(Mt,Je,it);var fr=0,Et=0,Kt,kt,st;if(!$(pt))st=I(pt),kt=st*le,Kt=new Pe(kt);else if(Be(pt)){Kt=pt,Et=S(rt,le);var Ht=pt.byteLength;if(wt===void 0){if(Ht%le||(kt=Ht-Et,kt<0))throw we(gt)}else if(kt=w(wt)*le,kt+Et>Ht)throw we(gt);st=kt/le}else return Ue(pt)?Re(Je,pt):G.call(Je,pt);for(se(Mt,{buffer:Kt,byteOffset:Et,byteLength:kt,length:st,view:new ve(Kt)});fr<st;)lt(Mt,fr++)}),K&&K(Je,qe),We=Je.prototype=J(me)),We.constructor!==Je&&_(We,"constructor",Je),ze&&_(We,ze,it),qt[it]=Je,h({global:!0,forced:Je!=Ye,sham:!Ee},qt),at in Je||_(Je,at,le),at in We||_(We,at,le),T(it)}):c.exports=function(){}},3832:function(c,d,a){var h=a(7854),f=a(7293),p=a(7072),y=a(260).NATIVE_ARRAY_BUFFER_VIEWS,g=h.ArrayBuffer,v=h.Int8Array;c.exports=!y||!f(function(){v(1)})||!f(function(){new v(-1)})||!p(function(b){new v,new v(null),new v(1.5),new v(b)},!0)||f(function(){return new v(new g(2),1,void 0).length!==1})},3074:function(c,d,a){var h=a(260).aTypedArrayConstructor,f=a(6707);c.exports=function(p,y){for(var g=f(p,p.constructor),v=0,b=y.length,k=new(h(g))(b);b>v;)k[v]=y[v++];return k}},7321:function(c,d,a){var h=a(7908),f=a(7466),p=a(1246),y=a(7659),g=a(9974),v=a(260).aTypedArrayConstructor;c.exports=function(k){var _=h(k),w=arguments.length,I=w>1?arguments[1]:void 0,S=I!==void 0,R=p(_),O,U,$,J,K,X;if(R!=null&&!y(R))for(K=R.call(_),X=K.next,_=[];!(J=X.call(K)).done;)_.push(J.value);for(S&&w>2&&(I=g(I,arguments[2],2)),U=f(_.length),$=new(v(this))(U),O=0;U>O;O++)$[O]=S?I(_[O],O):_[O];return $}},9711:function(c){var d=0,a=Math.random();c.exports=function(h){return"Symbol("+String(h===void 0?"":h)+")_"+(++d+a).toString(36)}},3307:function(c,d,a){var h=a(133);c.exports=h&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},5112:function(c,d,a){var h=a(7854),f=a(2309),p=a(6656),y=a(9711),g=a(133),v=a(3307),b=f("wks"),k=h.Symbol,_=v?k:k&&k.withoutSetter||y;c.exports=function(w){return p(b,w)||(g&&p(k,w)?b[w]=k[w]:b[w]=_("Symbol."+w)),b[w]}},1361:function(c){c.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},8264:function(c,d,a){"use strict";var h=a(2109),f=a(7854),p=a(3331),y=a(6340),g="ArrayBuffer",v=p[g],b=f[g];h({global:!0,forced:b!==v},{ArrayBuffer:v}),y(g)},2222:function(c,d,a){"use strict";var h=a(2109),f=a(7293),p=a(3157),y=a(111),g=a(7908),v=a(7466),b=a(6135),k=a(5417),_=a(1194),w=a(5112),I=a(7392),S=w("isConcatSpreadable"),R=9007199254740991,O="Maximum allowed index exceeded",U=I>=51||!f(function(){var X=[];return X[S]=!1,X.concat()[0]!==X}),$=_("concat"),J=function(X){if(!y(X))return!1;var G=X[S];return G!==void 0?!!G:p(X)},K=!U||!$;h({target:"Array",proto:!0,forced:K},{concat:function(G){var q=g(this),T=k(q,0),A=0,j,te,F,z,se;for(j=-1,F=arguments.length;j<F;j++)if(se=j===-1?q:arguments[j],J(se)){if(z=v(se.length),A+z>R)throw TypeError(O);for(te=0;te<z;te++,A++)te in se&&b(T,A,se[te])}else{if(A>=R)throw TypeError(O);b(T,A++,se)}return T.length=A,T}})},7327:function(c,d,a){"use strict";var h=a(2109),f=a(2092).filter,p=a(1194),y=p("filter");h({target:"Array",proto:!0,forced:!y},{filter:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},2772:function(c,d,a){"use strict";var h=a(2109),f=a(1318).indexOf,p=a(9341),y=[].indexOf,g=!!y&&1/[1].indexOf(1,-0)<0,v=p("indexOf");h({target:"Array",proto:!0,forced:g||!v},{indexOf:function(k){return g?y.apply(this,arguments)||0:f(this,k,arguments.length>1?arguments[1]:void 0)}})},6992:function(c,d,a){"use strict";var h=a(5656),f=a(1223),p=a(7497),y=a(9909),g=a(654),v="Array Iterator",b=y.set,k=y.getterFor(v);c.exports=g(Array,"Array",function(_,w){b(this,{type:v,target:h(_),index:0,kind:w})},function(){var _=k(this),w=_.target,I=_.kind,S=_.index++;return!w||S>=w.length?(_.target=void 0,{value:void 0,done:!0}):I=="keys"?{value:S,done:!1}:I=="values"?{value:w[S],done:!1}:{value:[S,w[S]],done:!1}},"values"),p.Arguments=p.Array,f("keys"),f("values"),f("entries")},1249:function(c,d,a){"use strict";var h=a(2109),f=a(2092).map,p=a(1194),y=p("map");h({target:"Array",proto:!0,forced:!y},{map:function(v){return f(this,v,arguments.length>1?arguments[1]:void 0)}})},7042:function(c,d,a){"use strict";var h=a(2109),f=a(111),p=a(3157),y=a(1400),g=a(7466),v=a(5656),b=a(6135),k=a(5112),_=a(1194),w=_("slice"),I=k("species"),S=[].slice,R=Math.max;h({target:"Array",proto:!0,forced:!w},{slice:function(U,$){var J=v(this),K=g(J.length),X=y(U,K),G=y($===void 0?K:$,K),q,T,A;if(p(J)&&(q=J.constructor,typeof q=="function"&&(q===Array||p(q.prototype))?q=void 0:f(q)&&(q=q[I],q===null&&(q=void 0)),q===Array||q===void 0))return S.call(J,X,G);for(T=new(q===void 0?Array:q)(R(G-X,0)),A=0;X<G;X++,A++)X in J&&b(T,A,J[X]);return T.length=A,T}})},561:function(c,d,a){"use strict";var h=a(2109),f=a(1400),p=a(9958),y=a(7466),g=a(7908),v=a(5417),b=a(6135),k=a(1194),_=k("splice"),w=Math.max,I=Math.min,S=9007199254740991,R="Maximum allowed length exceeded";h({target:"Array",proto:!0,forced:!_},{splice:function(U,$){var J=g(this),K=y(J.length),X=f(U,K),G=arguments.length,q,T,A,j,te,F;if(G===0?q=T=0:G===1?(q=0,T=K-X):(q=G-2,T=I(w(p($),0),K-X)),K+q-T>S)throw TypeError(R);for(A=v(J,T),j=0;j<T;j++)te=X+j,te in J&&b(A,j,J[te]);if(A.length=T,q<T){for(j=X;j<K-T;j++)te=j+T,F=j+q,te in J?J[F]=J[te]:delete J[F];for(j=K;j>K-T+q;j--)delete J[j-1]}else if(q>T)for(j=K-T;j>X;j--)te=j+T-1,F=j+q-1,te in J?J[F]=J[te]:delete J[F];for(j=0;j<q;j++)J[j+X]=arguments[j+2];return J.length=K-T+q,A}})},8309:function(c,d,a){var h=a(9781),f=a(3070).f,p=Function.prototype,y=p.toString,g=/^\s*function ([^ (]*)/,v="name";h&&!(v in p)&&f(p,v,{configurable:!0,get:function(){try{return y.call(this).match(g)[1]}catch(b){return""}}})},489:function(c,d,a){var h=a(2109),f=a(7293),p=a(7908),y=a(9518),g=a(8544),v=f(function(){y(1)});h({target:"Object",stat:!0,forced:v,sham:!g},{getPrototypeOf:function(k){return y(p(k))}})},1539:function(c,d,a){var h=a(1694),f=a(1320),p=a(288);h||f(Object.prototype,"toString",p,{unsafe:!0})},4916:function(c,d,a){"use strict";var h=a(2109),f=a(2261);h({target:"RegExp",proto:!0,forced:/./.exec!==f},{exec:f})},9714:function(c,d,a){"use strict";var h=a(1320),f=a(9670),p=a(7293),y=a(7066),g="toString",v=RegExp.prototype,b=v[g],k=p(function(){return b.call({source:"a",flags:"b"})!="/a/b"}),_=b.name!=g;(k||_)&&h(RegExp.prototype,g,function(){var I=f(this),S=String(I.source),R=I.flags,O=String(R===void 0&&I instanceof RegExp&&!("flags"in v)?y.call(I):R);return"/"+S+"/"+O},{unsafe:!0})},8783:function(c,d,a){"use strict";var h=a(8710).charAt,f=a(9909),p=a(654),y="String Iterator",g=f.set,v=f.getterFor(y);p(String,"String",function(b){g(this,{type:y,string:String(b),index:0})},function(){var k=v(this),_=k.string,w=k.index,I;return w>=_.length?{value:void 0,done:!0}:(I=h(_,w),k.index+=I.length,{value:I,done:!1})})},4723:function(c,d,a){"use strict";var h=a(7007),f=a(9670),p=a(7466),y=a(4488),g=a(1530),v=a(7651);h("match",1,function(b,k,_){return[function(I){var S=y(this),R=I==null?void 0:I[b];return R!==void 0?R.call(I,S):new RegExp(I)[b](String(S))},function(w){var I=_(k,w,this);if(I.done)return I.value;var S=f(w),R=String(this);if(!S.global)return v(S,R);var O=S.unicode;S.lastIndex=0;for(var U=[],$=0,J;(J=v(S,R))!==null;){var K=String(J[0]);U[$]=K,K===""&&(S.lastIndex=g(R,p(S.lastIndex),O)),$++}return $===0?null:U}]})},5306:function(c,d,a){"use strict";var h=a(7007),f=a(9670),p=a(7466),y=a(9958),g=a(4488),v=a(1530),b=a(647),k=a(7651),_=Math.max,w=Math.min,I=function(S){return S===void 0?S:String(S)};h("replace",2,function(S,R,O,U){var $=U.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,J=U.REPLACE_KEEPS_$0,K=$?"$":"$0";return[function(G,q){var T=g(this),A=G==null?void 0:G[S];return A!==void 0?A.call(G,T,q):R.call(String(T),G,q)},function(X,G){if(!$&&J||typeof G=="string"&&G.indexOf(K)===-1){var q=O(R,X,this,G);if(q.done)return q.value}var T=f(X),A=String(this),j=typeof G=="function";j||(G=String(G));var te=T.global;if(te){var F=T.unicode;T.lastIndex=0}for(var z=[];;){var se=k(T,A);if(se===null||(z.push(se),!te))break;var be=String(se[0]);be===""&&(T.lastIndex=v(A,p(T.lastIndex),F))}for(var W="",M=0,we=0;we<z.length;we++){se=z[we];for(var Pe=String(se[0]),ve=_(w(y(se.index),A.length),0),Ee=[],ze=1;ze<se.length;ze++)Ee.push(I(se[ze]));var qe=se.groups;if(j){var me=[Pe].concat(Ee,ve,A);qe!==void 0&&me.push(qe);var ke=String(G.apply(void 0,me))}else ke=b(Pe,A,ve,Ee,qe,G);ve>=M&&(W+=A.slice(M,ve)+ke,M=ve+Pe.length)}return W+A.slice(M)}]})},3123:function(c,d,a){"use strict";var h=a(7007),f=a(7850),p=a(9670),y=a(4488),g=a(6707),v=a(1530),b=a(7466),k=a(7651),_=a(2261),w=a(7293),I=[].push,S=Math.min,R=4294967295,O=!w(function(){return!RegExp(R,"y")});h("split",2,function(U,$,J){var K;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?K=function(X,G){var q=String(y(this)),T=G===void 0?R:G>>>0;if(T===0)return[];if(X===void 0)return[q];if(!f(X))return $.call(q,X,T);for(var A=[],j=(X.ignoreCase?"i":"")+(X.multiline?"m":"")+(X.unicode?"u":"")+(X.sticky?"y":""),te=0,F=new RegExp(X.source,j+"g"),z,se,be;(z=_.call(F,q))&&(se=F.lastIndex,!(se>te&&(A.push(q.slice(te,z.index)),z.length>1&&z.index<q.length&&I.apply(A,z.slice(1)),be=z[0].length,te=se,A.length>=T)));)F.lastIndex===z.index&&F.lastIndex++;return te===q.length?(be||!F.test(""))&&A.push(""):A.push(q.slice(te)),A.length>T?A.slice(0,T):A}:"0".split(void 0,0).length?K=function(X,G){return X===void 0&&G===0?[]:$.call(this,X,G)}:K=$,[function(G,q){var T=y(this),A=G==null?void 0:G[U];return A!==void 0?A.call(G,T,q):K.call(String(T),G,q)},function(X,G){var q=J(K,X,this,G,K!==$);if(q.done)return q.value;var T=p(X),A=String(this),j=g(T,RegExp),te=T.unicode,F=(T.ignoreCase?"i":"")+(T.multiline?"m":"")+(T.unicode?"u":"")+(O?"y":"g"),z=new j(O?T:"^(?:"+T.source+")",F),se=G===void 0?R:G>>>0;if(se===0)return[];if(A.length===0)return k(z,A)===null?[A]:[];for(var be=0,W=0,M=[];W<A.length;){z.lastIndex=O?W:0;var we=k(z,O?A:A.slice(W)),Pe;if(we===null||(Pe=S(b(z.lastIndex+(O?0:W)),A.length))===be)W=v(A,W,te);else{if(M.push(A.slice(be,W)),M.length===se)return M;for(var ve=1;ve<=we.length-1;ve++)if(M.push(we[ve]),M.length===se)return M;W=be=Pe}}return M.push(A.slice(be)),M}]},!O)},3210:function(c,d,a){"use strict";var h=a(2109),f=a(3111).trim,p=a(6091);h({target:"String",proto:!0,forced:p("trim")},{trim:function(){return f(this)}})},2990:function(c,d,a){"use strict";var h=a(260),f=a(1048),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("copyWithin",function(v,b){return f.call(p(this),v,b,arguments.length>2?arguments[2]:void 0)})},8927:function(c,d,a){"use strict";var h=a(260),f=a(2092).every,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("every",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3105:function(c,d,a){"use strict";var h=a(260),f=a(1285),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("fill",function(v){return f.apply(p(this),arguments)})},5035:function(c,d,a){"use strict";var h=a(260),f=a(2092).filter,p=a(3074),y=h.aTypedArray,g=h.exportTypedArrayMethod;g("filter",function(b){var k=f(y(this),b,arguments.length>1?arguments[1]:void 0);return p(this,k)})},7174:function(c,d,a){"use strict";var h=a(260),f=a(2092).findIndex,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("findIndex",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4345:function(c,d,a){"use strict";var h=a(260),f=a(2092).find,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("find",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},2846:function(c,d,a){"use strict";var h=a(260),f=a(2092).forEach,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("forEach",function(v){f(p(this),v,arguments.length>1?arguments[1]:void 0)})},4731:function(c,d,a){"use strict";var h=a(260),f=a(1318).includes,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("includes",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},7209:function(c,d,a){"use strict";var h=a(260),f=a(1318).indexOf,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("indexOf",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},6319:function(c,d,a){"use strict";var h=a(7854),f=a(260),p=a(6992),y=a(5112),g=y("iterator"),v=h.Uint8Array,b=p.values,k=p.keys,_=p.entries,w=f.aTypedArray,I=f.exportTypedArrayMethod,S=v&&v.prototype[g],R=!!S&&(S.name=="values"||S.name==null),O=function(){return b.call(w(this))};I("entries",function(){return _.call(w(this))}),I("keys",function(){return k.call(w(this))}),I("values",O,!R),I(g,O,!R)},8867:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].join;p("join",function(v){return y.apply(f(this),arguments)})},7789:function(c,d,a){"use strict";var h=a(260),f=a(6583),p=h.aTypedArray,y=h.exportTypedArrayMethod;y("lastIndexOf",function(v){return f.apply(p(this),arguments)})},3739:function(c,d,a){"use strict";var h=a(260),f=a(2092).map,p=a(6707),y=h.aTypedArray,g=h.aTypedArrayConstructor,v=h.exportTypedArrayMethod;v("map",function(k){return f(y(this),k,arguments.length>1?arguments[1]:void 0,function(_,w){return new(g(p(_,_.constructor)))(w)})})},4483:function(c,d,a){"use strict";var h=a(260),f=a(3671).right,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduceRight",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},9368:function(c,d,a){"use strict";var h=a(260),f=a(3671).left,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("reduce",function(v){return f(p(this),v,arguments.length,arguments.length>1?arguments[1]:void 0)})},2056:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=Math.floor;p("reverse",function(){for(var v=this,b=f(v).length,k=y(b/2),_=0,w;_<k;)w=v[_],v[_++]=v[--b],v[b]=w;return v})},3462:function(c,d,a){"use strict";var h=a(260),f=a(7466),p=a(4590),y=a(7908),g=a(7293),v=h.aTypedArray,b=h.exportTypedArrayMethod,k=g(function(){new Int8Array(1).set({})});b("set",function(w){v(this);var I=p(arguments.length>1?arguments[1]:void 0,1),S=this.length,R=y(w),O=f(R.length),U=0;if(O+I>S)throw RangeError("Wrong length");for(;U<O;)this[I+U]=R[U++]},k)},678:function(c,d,a){"use strict";var h=a(260),f=a(6707),p=a(7293),y=h.aTypedArray,g=h.aTypedArrayConstructor,v=h.exportTypedArrayMethod,b=[].slice,k=p(function(){new Int8Array(1).slice()});v("slice",function(w,I){for(var S=b.call(y(this),w,I),R=f(this,this.constructor),O=0,U=S.length,$=new(g(R))(U);U>O;)$[O]=S[O++];return $},k)},7462:function(c,d,a){"use strict";var h=a(260),f=a(2092).some,p=h.aTypedArray,y=h.exportTypedArrayMethod;y("some",function(v){return f(p(this),v,arguments.length>1?arguments[1]:void 0)})},3824:function(c,d,a){"use strict";var h=a(260),f=h.aTypedArray,p=h.exportTypedArrayMethod,y=[].sort;p("sort",function(v){return y.call(f(this),v)})},5021:function(c,d,a){"use strict";var h=a(260),f=a(7466),p=a(1400),y=a(6707),g=h.aTypedArray,v=h.exportTypedArrayMethod;v("subarray",function(k,_){var w=g(this),I=w.length,S=p(k,I);return new(y(w,w.constructor))(w.buffer,w.byteOffset+S*w.BYTES_PER_ELEMENT,f((_===void 0?I:p(_,I))-S))})},2974:function(c,d,a){"use strict";var h=a(7854),f=a(260),p=a(7293),y=h.Int8Array,g=f.aTypedArray,v=f.exportTypedArrayMethod,b=[].toLocaleString,k=[].slice,_=!!y&&p(function(){b.call(new y(1))}),w=p(function(){return[1,2].toLocaleString()!=new y([1,2]).toLocaleString()})||!p(function(){y.prototype.toLocaleString.call([1,2])});v("toLocaleString",function(){return b.apply(_?k.call(g(this)):g(this),arguments)},w)},5016:function(c,d,a){"use strict";var h=a(260).exportTypedArrayMethod,f=a(7293),p=a(7854),y=p.Uint8Array,g=y&&y.prototype||{},v=[].toString,b=[].join;f(function(){v.call({})})&&(v=function(){return b.call(this)});var k=g.toString!=v;h("toString",v,k)},2472:function(c,d,a){var h=a(9843);h("Uint8",function(f){return function(y,g,v){return f(this,y,g,v)}})},4747:function(c,d,a){var h=a(7854),f=a(8324),p=a(8533),y=a(8880);for(var g in f){var v=h[g],b=v&&v.prototype;if(b&&b.forEach!==p)try{y(b,"forEach",p)}catch(k){b.forEach=p}}},3948:function(c,d,a){var h=a(7854),f=a(8324),p=a(6992),y=a(8880),g=a(5112),v=g("iterator"),b=g("toStringTag"),k=p.values;for(var _ in f){var w=h[_],I=w&&w.prototype;if(I){if(I[v]!==k)try{y(I,v,k)}catch(R){I[v]=k}if(I[b]||y(I,b,_),f[_]){for(var S in p)if(I[S]!==p[S])try{y(I,S,p[S])}catch(R){I[S]=p[S]}}}}},1637:function(c,d,a){"use strict";a(6992);var h=a(2109),f=a(5005),p=a(590),y=a(1320),g=a(2248),v=a(8003),b=a(4994),k=a(9909),_=a(5787),w=a(6656),I=a(9974),S=a(648),R=a(9670),O=a(111),U=a(30),$=a(9114),J=a(8554),K=a(1246),X=a(5112),G=f("fetch"),q=f("Headers"),T=X("iterator"),A="URLSearchParams",j=A+"Iterator",te=k.set,F=k.getterFor(A),z=k.getterFor(j),se=/\+/g,be=Array(4),W=function(Re){return be[Re-1]||(be[Re-1]=RegExp("((?:%[\\da-f]{2}){"+Re+"})","gi"))},M=function(Re){try{return decodeURIComponent(Re)}catch(Ie){return Re}},we=function(Re){var Ie=Re.replace(se," "),Be=4;try{return decodeURIComponent(Ie)}catch(Ge){for(;Be;)Ie=Ie.replace(W(Be--),M);return Ie}},Pe=/[!'()~]|%20/g,ve={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},Ee=function(Re){return ve[Re]},ze=function(Re){return encodeURIComponent(Re).replace(Pe,Ee)},qe=function(Re,Ie){if(Ie)for(var Be=Ie.split("&"),Ge=0,He,Qe;Ge<Be.length;)He=Be[Ge++],He.length&&(Qe=He.split("="),Re.push({key:we(Qe.shift()),value:we(Qe.join("="))}))},me=function(Re){this.entries.length=0,qe(this.entries,Re)},ke=function(Re,Ie){if(Re<Ie)throw TypeError("Not enough arguments")},Ue=b(function(Ie,Be){te(this,{type:j,iterator:J(F(Ie).entries),kind:Be})},"Iterator",function(){var Ie=z(this),Be=Ie.kind,Ge=Ie.iterator.next(),He=Ge.value;return Ge.done||(Ge.value=Be==="keys"?He.key:Be==="values"?He.value:[He.key,He.value]),Ge}),at=function(){_(this,at,A);var Ie=arguments.length>0?arguments[0]:void 0,Be=this,Ge=[],He,Qe,_e,Y,fe,le,it,Ne,ot;if(te(Be,{type:A,entries:Ge,updateURL:function(){},updateSearchParams:me}),Ie!==void 0)if(O(Ie))if(He=K(Ie),typeof He=="function")for(Qe=He.call(Ie),_e=Qe.next;!(Y=_e.call(Qe)).done;){if(fe=J(R(Y.value)),le=fe.next,(it=le.call(fe)).done||(Ne=le.call(fe)).done||!le.call(fe).done)throw TypeError("Expected sequence with length 2");Ge.push({key:it.value+"",value:Ne.value+""})}else for(ot in Ie)w(Ie,ot)&&Ge.push({key:ot,value:Ie[ot]+""});else qe(Ge,typeof Ie=="string"?Ie.charAt(0)==="?"?Ie.slice(1):Ie:Ie+"")},gt=at.prototype;g(gt,{append:function(Ie,Be){ke(arguments.length,2);var Ge=F(this);Ge.entries.push({key:Ie+"",value:Be+""}),Ge.updateURL()},delete:function(Re){ke(arguments.length,1);for(var Ie=F(this),Be=Ie.entries,Ge=Re+"",He=0;He<Be.length;)Be[He].key===Ge?Be.splice(He,1):He++;Ie.updateURL()},get:function(Ie){ke(arguments.length,1);for(var Be=F(this).entries,Ge=Ie+"",He=0;He<Be.length;He++)if(Be[He].key===Ge)return Be[He].value;return null},getAll:function(Ie){ke(arguments.length,1);for(var Be=F(this).entries,Ge=Ie+"",He=[],Qe=0;Qe<Be.length;Qe++)Be[Qe].key===Ge&&He.push(Be[Qe].value);return He},has:function(Ie){ke(arguments.length,1);for(var Be=F(this).entries,Ge=Ie+"",He=0;He<Be.length;)if(Be[He++].key===Ge)return!0;return!1},set:function(Ie,Be){ke(arguments.length,1);for(var Ge=F(this),He=Ge.entries,Qe=!1,_e=Ie+"",Y=Be+"",fe=0,le;fe<He.length;fe++)le=He[fe],le.key===_e&&(Qe?He.splice(fe--,1):(Qe=!0,le.value=Y));Qe||He.push({key:_e,value:Y}),Ge.updateURL()},sort:function(){var Ie=F(this),Be=Ie.entries,Ge=Be.slice(),He,Qe,_e;for(Be.length=0,_e=0;_e<Ge.length;_e++){for(He=Ge[_e],Qe=0;Qe<_e;Qe++)if(Be[Qe].key>He.key){Be.splice(Qe,0,He);break}Qe===_e&&Be.push(He)}Ie.updateURL()},forEach:function(Ie){for(var Be=F(this).entries,Ge=I(Ie,arguments.length>1?arguments[1]:void 0,3),He=0,Qe;He<Be.length;)Qe=Be[He++],Ge(Qe.value,Qe.key,this)},keys:function(){return new Ue(this,"keys")},values:function(){return new Ue(this,"values")},entries:function(){return new Ue(this,"entries")}},{enumerable:!0}),y(gt,T,gt.entries),y(gt,"toString",function(){for(var Ie=F(this).entries,Be=[],Ge=0,He;Ge<Ie.length;)He=Ie[Ge++],Be.push(ze(He.key)+"="+ze(He.value));return Be.join("&")},{enumerable:!0}),v(at,A),h({global:!0,forced:!p},{URLSearchParams:at}),!p&&typeof G=="function"&&typeof q=="function"&&h({global:!0,enumerable:!0,forced:!0},{fetch:function(Ie){var Be=[Ie],Ge,He,Qe;return arguments.length>1&&(Ge=arguments[1],O(Ge)&&(He=Ge.body,S(He)===A&&(Qe=Ge.headers?new q(Ge.headers):new q,Qe.has("content-type")||Qe.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),Ge=U(Ge,{body:$(0,String(He)),headers:$(0,Qe)}))),Be.push(Ge)),G.apply(this,Be)}}),c.exports={URLSearchParams:at,getState:F}},285:function(c,d,a){"use strict";a(8783);var h=a(2109),f=a(9781),p=a(590),y=a(7854),g=a(6048),v=a(1320),b=a(5787),k=a(6656),_=a(1574),w=a(8457),I=a(8710).codeAt,S=a(3197),R=a(8003),O=a(1637),U=a(9909),$=y.URL,J=O.URLSearchParams,K=O.getState,X=U.set,G=U.getterFor("URL"),q=Math.floor,T=Math.pow,A="Invalid authority",j="Invalid scheme",te="Invalid host",F="Invalid port",z=/[A-Za-z]/,se=/[\d+-.A-Za-z]/,be=/\d/,W=/^(0x|0X)/,M=/^[0-7]+$/,we=/^\d+$/,Pe=/^[\dA-Fa-f]+$/,ve=/[\u0000\t\u000A\u000D #%/:?@[\\]]/,Ee=/[\u0000\t\u000A\u000D #/:?@[\\]]/,ze=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,qe=/[\t\u000A\u000D]/g,me,ke=function(H,oe){var he,Ce,Ae;if(oe.charAt(0)=="["){if(oe.charAt(oe.length-1)!="]"||(he=at(oe.slice(1,-1)),!he))return te;H.host=he}else if(Y(H)){if(oe=S(oe),ve.test(oe)||(he=Ue(oe),he===null))return te;H.host=he}else{if(Ee.test(oe))return te;for(he="",Ce=w(oe),Ae=0;Ae<Ce.length;Ae++)he+=Qe(Ce[Ae],Ie);H.host=he}},Ue=function(H){var oe=H.split("."),he,Ce,Ae,Ve,et,bt,Dt;if(oe.length&&oe[oe.length-1]==""&&oe.pop(),he=oe.length,he>4)return H;for(Ce=[],Ae=0;Ae<he;Ae++){if(Ve=oe[Ae],Ve=="")return H;if(et=10,Ve.length>1&&Ve.charAt(0)=="0"&&(et=W.test(Ve)?16:8,Ve=Ve.slice(et==8?1:2)),Ve==="")bt=0;else{if(!(et==10?we:et==8?M:Pe).test(Ve))return H;bt=parseInt(Ve,et)}Ce.push(bt)}for(Ae=0;Ae<he;Ae++)if(bt=Ce[Ae],Ae==he-1){if(bt>=T(256,5-he))return null}else if(bt>255)return null;for(Dt=Ce.pop(),Ae=0;Ae<Ce.length;Ae++)Dt+=Ce[Ae]*T(256,3-Ae);return Dt},at=function(H){var oe=[0,0,0,0,0,0,0,0],he=0,Ce=null,Ae=0,Ve,et,bt,Dt,xe,D,B,de=function(){return H.charAt(Ae)};if(de()==":"){if(H.charAt(1)!=":")return;Ae+=2,he++,Ce=he}for(;de();){if(he==8)return;if(de()==":"){if(Ce!==null)return;Ae++,he++,Ce=he;continue}for(Ve=et=0;et<4&&Pe.test(de());)Ve=Ve*16+parseInt(de(),16),Ae++,et++;if(de()=="."){if(et==0||(Ae-=et,he>6))return;for(bt=0;de();){if(Dt=null,bt>0)if(de()=="."&&bt<4)Ae++;else return;if(!be.test(de()))return;for(;be.test(de());){if(xe=parseInt(de(),10),Dt===null)Dt=xe;else{if(Dt==0)return;Dt=Dt*10+xe}if(Dt>255)return;Ae++}oe[he]=oe[he]*256+Dt,bt++,(bt==2||bt==4)&&he++}if(bt!=4)return;break}else if(de()==":"){if(Ae++,!de())return}else if(de())return;oe[he++]=Ve}if(Ce!==null)for(D=he-Ce,he=7;he!=0&&D>0;)B=oe[he],oe[he--]=oe[Ce+D-1],oe[Ce+--D]=B;else if(he!=8)return;return oe},gt=function(H){for(var oe=null,he=1,Ce=null,Ae=0,Ve=0;Ve<8;Ve++)H[Ve]!==0?(Ae>he&&(oe=Ce,he=Ae),Ce=null,Ae=0):(Ce===null&&(Ce=Ve),++Ae);return Ae>he&&(oe=Ce,he=Ae),oe},Re=function(H){var oe,he,Ce,Ae;if(typeof H=="number"){for(oe=[],he=0;he<4;he++)oe.unshift(H%256),H=q(H/256);return oe.join(".")}else if(typeof H=="object"){for(oe="",Ce=gt(H),he=0;he<8;he++)Ae&&H[he]===0||(Ae&&(Ae=!1),Ce===he?(oe+=he?":":"::",Ae=!0):(oe+=H[he].toString(16),he<7&&(oe+=":")));return"["+oe+"]"}return H},Ie={},Be=_({},Ie,{" ":1,'"':1,"<":1,">":1,"`":1}),Ge=_({},Be,{"#":1,"?":1,"{":1,"}":1}),He=_({},Ge,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Qe=function(H,oe){var he=I(H,0);return he>32&&he<127&&!k(oe,H)?H:encodeURIComponent(H)},_e={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(H){return k(_e,H.scheme)},fe=function(H){return H.username!=""||H.password!=""},le=function(H){return!H.host||H.cannotBeABaseURL||H.scheme=="file"},it=function(H,oe){var he;return H.length==2&&z.test(H.charAt(0))&&((he=H.charAt(1))==":"||!oe&&he=="|")},Ne=function(H){var oe;return H.length>1&&it(H.slice(0,2))&&(H.length==2||(oe=H.charAt(2))==="/"||oe==="\\"||oe==="?"||oe==="#")},ot=function(H){var oe=H.path,he=oe.length;he&&(H.scheme!="file"||he!=1||!it(oe[0],!0))&&oe.pop()},Ye=function(H){return H==="."||H.toLowerCase()==="%2e"},Je=function(H){return H=H.toLowerCase(),H===".."||H==="%2e."||H===".%2e"||H==="%2e%2e"},We={},qt={},Lt={},cr={},lt={},Mt={},pt={},rt={},wt={},fr={},Et={},Kt={},kt={},st={},Ht={},Ir={},dr={},hr={},$r={},zt={},yr={},sr=function(H,oe,he,Ce){var Ae=he||We,Ve=0,et="",bt=!1,Dt=!1,xe=!1,D,B,de,De;for(he||(H.scheme="",H.username="",H.password="",H.host=null,H.port=null,H.path=[],H.query=null,H.fragment=null,H.cannotBeABaseURL=!1,oe=oe.replace(ze,"")),oe=oe.replace(qe,""),D=w(oe);Ve<=D.length;){switch(B=D[Ve],Ae){case We:if(B&&z.test(B))et+=B.toLowerCase(),Ae=qt;else{if(he)return j;Ae=Lt;continue}break;case qt:if(B&&(se.test(B)||B=="+"||B=="-"||B=="."))et+=B.toLowerCase();else if(B==":"){if(he&&(Y(H)!=k(_e,et)||et=="file"&&(fe(H)||H.port!==null)||H.scheme=="file"&&!H.host))return;if(H.scheme=et,he){Y(H)&&_e[H.scheme]==H.port&&(H.port=null);return}et="",H.scheme=="file"?Ae=st:Y(H)&&Ce&&Ce.scheme==H.scheme?Ae=cr:Y(H)?Ae=rt:D[Ve+1]=="/"?(Ae=lt,Ve++):(H.cannotBeABaseURL=!0,H.path.push(""),Ae=$r)}else{if(he)return j;et="",Ae=Lt,Ve=0;continue}break;case Lt:if(!Ce||Ce.cannotBeABaseURL&&B!="#")return j;if(Ce.cannotBeABaseURL&&B=="#"){H.scheme=Ce.scheme,H.path=Ce.path.slice(),H.query=Ce.query,H.fragment="",H.cannotBeABaseURL=!0,Ae=yr;break}Ae=Ce.scheme=="file"?st:Mt;continue;case cr:if(B=="/"&&D[Ve+1]=="/")Ae=wt,Ve++;else{Ae=Mt;continue}break;case lt:if(B=="/"){Ae=fr;break}else{Ae=hr;continue}case Mt:if(H.scheme=Ce.scheme,B==me)H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.query=Ce.query;else if(B=="/"||B=="\\"&&Y(H))Ae=pt;else if(B=="?")H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.query="",Ae=zt;else if(B=="#")H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.query=Ce.query,H.fragment="",Ae=yr;else{H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,H.path=Ce.path.slice(),H.path.pop(),Ae=hr;continue}break;case pt:if(Y(H)&&(B=="/"||B=="\\"))Ae=wt;else if(B=="/")Ae=fr;else{H.username=Ce.username,H.password=Ce.password,H.host=Ce.host,H.port=Ce.port,Ae=hr;continue}break;case rt:if(Ae=wt,B!="/"||et.charAt(Ve+1)!="/")continue;Ve++;break;case wt:if(B!="/"&&B!="\\"){Ae=fr;continue}break;case fr:if(B=="@"){bt&&(et="%40"+et),bt=!0,de=w(et);for(var ft=0;ft<de.length;ft++){var xt=de[ft];if(xt==":"&&!xe){xe=!0;continue}var Xe=Qe(xt,He);xe?H.password+=Xe:H.username+=Xe}et=""}else if(B==me||B=="/"||B=="?"||B=="#"||B=="\\"&&Y(H)){if(bt&&et=="")return A;Ve-=w(et).length+1,et="",Ae=Et}else et+=B;break;case Et:case Kt:if(he&&H.scheme=="file"){Ae=Ir;continue}else if(B==":"&&!Dt){if(et=="")return te;if(De=ke(H,et),De)return De;if(et="",Ae=kt,he==Kt)return}else if(B==me||B=="/"||B=="?"||B=="#"||B=="\\"&&Y(H)){if(Y(H)&&et=="")return te;if(he&&et==""&&(fe(H)||H.port!==null))return;if(De=ke(H,et),De)return De;if(et="",Ae=dr,he)return;continue}else B=="["?Dt=!0:B=="]"&&(Dt=!1),et+=B;break;case kt:if(be.test(B))et+=B;else if(B==me||B=="/"||B=="?"||B=="#"||B=="\\"&&Y(H)||he){if(et!=""){var Vt=parseInt(et,10);if(Vt>65535)return F;H.port=Y(H)&&Vt===_e[H.scheme]?null:Vt,et=""}if(he)return;Ae=dr;continue}else return F;break;case st:if(H.scheme="file",B=="/"||B=="\\")Ae=Ht;else if(Ce&&Ce.scheme=="file")if(B==me)H.host=Ce.host,H.path=Ce.path.slice(),H.query=Ce.query;else if(B=="?")H.host=Ce.host,H.path=Ce.path.slice(),H.query="",Ae=zt;else if(B=="#")H.host=Ce.host,H.path=Ce.path.slice(),H.query=Ce.query,H.fragment="",Ae=yr;else{Ne(D.slice(Ve).join(""))||(H.host=Ce.host,H.path=Ce.path.slice(),ot(H)),Ae=hr;continue}else{Ae=hr;continue}break;case Ht:if(B=="/"||B=="\\"){Ae=Ir;break}Ce&&Ce.scheme=="file"&&!Ne(D.slice(Ve).join(""))&&(it(Ce.path[0],!0)?H.path.push(Ce.path[0]):H.host=Ce.host),Ae=hr;continue;case Ir:if(B==me||B=="/"||B=="\\"||B=="?"||B=="#"){if(!he&&it(et))Ae=hr;else if(et==""){if(H.host="",he)return;Ae=dr}else{if(De=ke(H,et),De)return De;if(H.host=="localhost"&&(H.host=""),he)return;et="",Ae=dr}continue}else et+=B;break;case dr:if(Y(H)){if(Ae=hr,B!="/"&&B!="\\")continue}else if(!he&&B=="?")H.query="",Ae=zt;else if(!he&&B=="#")H.fragment="",Ae=yr;else if(B!=me&&(Ae=hr,B!="/"))continue;break;case hr:if(B==me||B=="/"||B=="\\"&&Y(H)||!he&&(B=="?"||B=="#")){if(Je(et)?(ot(H),B!="/"&&!(B=="\\"&&Y(H))&&H.path.push("")):Ye(et)?B!="/"&&!(B=="\\"&&Y(H))&&H.path.push(""):(H.scheme=="file"&&!H.path.length&&it(et)&&(H.host&&(H.host=""),et=et.charAt(0)+":"),H.path.push(et)),et="",H.scheme=="file"&&(B==me||B=="?"||B=="#"))for(;H.path.length>1&&H.path[0]==="";)H.path.shift();B=="?"?(H.query="",Ae=zt):B=="#"&&(H.fragment="",Ae=yr)}else et+=Qe(B,Ge);break;case $r:B=="?"?(H.query="",Ae=zt):B=="#"?(H.fragment="",Ae=yr):B!=me&&(H.path[0]+=Qe(B,Ie));break;case zt:!he&&B=="#"?(H.fragment="",Ae=yr):B!=me&&(B=="'"&&Y(H)?H.query+="%27":B=="#"?H.query+="%23":H.query+=Qe(B,Ie));break;case yr:B!=me&&(H.fragment+=Qe(B,Be));break}Ve++}},Zt=function(oe){var he=b(this,Zt,"URL"),Ce=arguments.length>1?arguments[1]:void 0,Ae=String(oe),Ve=X(he,{type:"URL"}),et,bt;if(Ce!==void 0){if(Ce instanceof Zt)et=G(Ce);else if(bt=sr(et={},String(Ce)),bt)throw TypeError(bt)}if(bt=sr(Ve,Ae,null,et),bt)throw TypeError(bt);var Dt=Ve.searchParams=new J,xe=K(Dt);xe.updateSearchParams(Ve.query),xe.updateURL=function(){Ve.query=String(Dt)||null},f||(he.href=ie.call(he),he.origin=Z.call(he),he.protocol=re.call(he),he.username=P.call(he),he.password=N.call(he),he.host=ee.call(he),he.hostname=ue.call(he),he.port=pe.call(he),he.pathname=ge.call(he),he.search=Le.call(he),he.searchParams=Me.call(he),he.hash=Se.call(he))},ne=Zt.prototype,ie=function(){var H=G(this),oe=H.scheme,he=H.username,Ce=H.password,Ae=H.host,Ve=H.port,et=H.path,bt=H.query,Dt=H.fragment,xe=oe+":";return Ae!==null?(xe+="//",fe(H)&&(xe+=he+(Ce?":"+Ce:"")+"@"),xe+=Re(Ae),Ve!==null&&(xe+=":"+Ve)):oe=="file"&&(xe+="//"),xe+=H.cannotBeABaseURL?et[0]:et.length?"/"+et.join("/"):"",bt!==null&&(xe+="?"+bt),Dt!==null&&(xe+="#"+Dt),xe},Z=function(){var H=G(this),oe=H.scheme,he=H.port;if(oe=="blob")try{return new URL(oe.path[0]).origin}catch(Ce){return"null"}return oe=="file"||!Y(H)?"null":oe+"://"+Re(H.host)+(he!==null?":"+he:"")},re=function(){return G(this).scheme+":"},P=function(){return G(this).username},N=function(){return G(this).password},ee=function(){var H=G(this),oe=H.host,he=H.port;return oe===null?"":he===null?Re(oe):Re(oe)+":"+he},ue=function(){var H=G(this).host;return H===null?"":Re(H)},pe=function(){var H=G(this).port;return H===null?"":String(H)},ge=function(){var H=G(this),oe=H.path;return H.cannotBeABaseURL?oe[0]:oe.length?"/"+oe.join("/"):""},Le=function(){var H=G(this).query;return H?"?"+H:""},Me=function(){return G(this).searchParams},Se=function(){var H=G(this).fragment;return H?"#"+H:""},Ke=function(H,oe){return{get:H,set:oe,configurable:!0,enumerable:!0}};if(f&&g(ne,{href:Ke(ie,function(H){var oe=G(this),he=String(H),Ce=sr(oe,he);if(Ce)throw TypeError(Ce);K(oe.searchParams).updateSearchParams(oe.query)}),origin:Ke(Z),protocol:Ke(re,function(H){var oe=G(this);sr(oe,String(H)+":",We)}),username:Ke(P,function(H){var oe=G(this),he=w(String(H));if(!le(oe)){oe.username="";for(var Ce=0;Ce<he.length;Ce++)oe.username+=Qe(he[Ce],He)}}),password:Ke(N,function(H){var oe=G(this),he=w(String(H));if(!le(oe)){oe.password="";for(var Ce=0;Ce<he.length;Ce++)oe.password+=Qe(he[Ce],He)}}),host:Ke(ee,function(H){var oe=G(this);oe.cannotBeABaseURL||sr(oe,String(H),Et)}),hostname:Ke(ue,function(H){var oe=G(this);oe.cannotBeABaseURL||sr(oe,String(H),Kt)}),port:Ke(pe,function(H){var oe=G(this);le(oe)||(H=String(H),H==""?oe.port=null:sr(oe,H,kt))}),pathname:Ke(ge,function(H){var oe=G(this);oe.cannotBeABaseURL||(oe.path=[],sr(oe,H+"",dr))}),search:Ke(Le,function(H){var oe=G(this);H=String(H),H==""?oe.query=null:(H.charAt(0)=="?"&&(H=H.slice(1)),oe.query="",sr(oe,H,zt)),K(oe.searchParams).updateSearchParams(oe.query)}),searchParams:Ke(Me),hash:Ke(Se,function(H){var oe=G(this);if(H=String(H),H==""){oe.fragment=null;return}H.charAt(0)=="#"&&(H=H.slice(1)),oe.fragment="",sr(oe,H,yr)})}),v(ne,"toJSON",function(){return ie.call(this)},{enumerable:!0}),v(ne,"toString",function(){return ie.call(this)},{enumerable:!0}),$){var _t=$.createObjectURL,mt=$.revokeObjectURL;_t&&v(Zt,"createObjectURL",function(oe){return _t.apply($,arguments)}),mt&&v(Zt,"revokeObjectURL",function(oe){return mt.apply($,arguments)})}R(Zt,"URL"),h({global:!0,forced:!p,sham:!f},{URL:Zt})}},t={};function n(c){if(t[c])return t[c].exports;var d=t[c]={exports:{}};return i[c](d,d.exports,n),d.exports}(function(){n.d=function(c,d){for(var a in d)n.o(d,a)&&!n.o(c,a)&&Object.defineProperty(c,a,{enumerable:!0,get:d[a]})}})(),function(){n.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch(c){if(typeof window=="object")return window}}()}(),function(){n.o=function(c,d){return Object.prototype.hasOwnProperty.call(c,d)}}(),function(){n.r=function(c){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(c,"__esModule",{value:!0})}}();var l={};return function(){"use strict";n.r(l),n.d(l,{Dropzone:function(){return st},default:function(){return Zt}});var c=n(2222),d=n(7327),a=n(2772),h=n(6992),f=n(1249),p=n(7042),y=n(561),g=n(8264),v=n(8309),b=n(489),k=n(1539),_=n(4916),w=n(9714),I=n(8783),S=n(4723),R=n(5306),O=n(3123),U=n(3210),$=n(2472),J=n(2990),K=n(8927),X=n(3105),G=n(5035),q=n(4345),T=n(7174),A=n(2846),j=n(4731),te=n(7209),F=n(6319),z=n(8867),se=n(7789),be=n(3739),W=n(9368),M=n(4483),we=n(2056),Pe=n(3462),ve=n(678),Ee=n(7462),ze=n(3824),qe=n(5021),me=n(2974),ke=n(5016),Ue=n(4747),at=n(3948),gt=n(285);function Re(ne,ie){var Z;if(typeof Symbol=="undefined"||ne[Symbol.iterator]==null){if(Array.isArray(ne)||(Z=Ie(ne))||ie&&ne&&typeof ne.length=="number"){Z&&(ne=Z);var re=0,P=function(){};return{s:P,n:function(){return re>=ne.length?{done:!0}:{done:!1,value:ne[re++]}},e:function(ge){throw ge},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,ee=!1,ue;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ge=Z.next();return N=ge.done,ge},e:function(ge){ee=!0,ue=ge},f:function(){try{!N&&Z.return!=null&&Z.return()}finally{if(ee)throw ue}}}}function Ie(ne,ie){if(!!ne){if(typeof ne=="string")return Be(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return Be(ne,ie)}}function Be(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z<ie;Z++)re[Z]=ne[Z];return re}function Ge(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function He(ne,ie){for(var Z=0;Z<ie.length;Z++){var re=ie[Z];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ne,re.key,re)}}function Qe(ne,ie,Z){return ie&&He(ne.prototype,ie),Z&&He(ne,Z),ne}var _e=function(){function ne(){Ge(this,ne)}return Qe(ne,[{key:"on",value:function(Z,re){return this._callbacks=this._callbacks||{},this._callbacks[Z]||(this._callbacks[Z]=[]),this._callbacks[Z].push(re),this}},{key:"emit",value:function(Z){this._callbacks=this._callbacks||{};for(var re=this._callbacks[Z],P=arguments.length,N=new Array(P>1?P-1:0),ee=1;ee<P;ee++)N[ee-1]=arguments[ee];if(re){var ue=Re(re,!0),pe;try{for(ue.s();!(pe=ue.n()).done;){var ge=pe.value;ge.apply(this,N)}}catch(Le){ue.e(Le)}finally{ue.f()}}return this.element&&this.element.dispatchEvent(this.makeEvent("dropzone:"+Z,{args:N})),this}},{key:"makeEvent",value:function(Z,re){var P={bubbles:!0,cancelable:!0,detail:re};if(typeof window.CustomEvent=="function")return new CustomEvent(Z,P);var N=document.createEvent("CustomEvent");return N.initCustomEvent(Z,P.bubbles,P.cancelable,P.detail),N}},{key:"off",value:function(Z,re){if(!this._callbacks||arguments.length===0)return this._callbacks={},this;var P=this._callbacks[Z];if(!P)return this;if(arguments.length===1)return delete this._callbacks[Z],this;for(var N=0;N<P.length;N++){var ee=P[N];if(ee===re){P.splice(N,1);break}}return this}}]),ne}(),Y='<div class="dz-preview dz-file-preview"> <div class="dz-image"><img data-dz-thumbnail/></div> <div class="dz-details"> <div class="dz-size"><span data-dz-size></span></div> <div class="dz-filename"><span data-dz-name></span></div> </div> <div class="dz-progress"> <span class="dz-upload" data-dz-uploadprogress></span> </div> <div class="dz-error-message"><span data-dz-errormessage></span></div> <div class="dz-success-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Check</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF"></path> </g> </svg> </div> <div class="dz-error-mark"> <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Error</title> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <g stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475"> <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z"></path> </g> </g> </svg> </div> </div> ',fe=Y;function le(ne,ie){var Z;if(typeof Symbol=="undefined"||ne[Symbol.iterator]==null){if(Array.isArray(ne)||(Z=it(ne))||ie&&ne&&typeof ne.length=="number"){Z&&(ne=Z);var re=0,P=function(){};return{s:P,n:function(){return re>=ne.length?{done:!0}:{done:!1,value:ne[re++]}},e:function(ge){throw ge},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,ee=!1,ue;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ge=Z.next();return N=ge.done,ge},e:function(ge){ee=!0,ue=ge},f:function(){try{!N&&Z.return!=null&&Z.return()}finally{if(ee)throw ue}}}}function it(ne,ie){if(!!ne){if(typeof ne=="string")return Ne(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return Ne(ne,ie)}}function Ne(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z<ie;Z++)re[Z]=ne[Z];return re}var ot={url:null,method:"post",withCredentials:!1,timeout:null,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,disablePreviews:!1,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(ie,Z,re){if(re)return{dzuuid:re.file.upload.uuid,dzchunkindex:re.index,dztotalfilesize:re.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:re.file.upload.totalChunkCount,dzchunkbyteoffset:re.index*this.options.chunkSize}},accept:function(ie,Z){return Z()},chunksUploaded:function(ie,Z){Z()},fallback:function(){var ie;this.element.className="".concat(this.element.className," dz-browser-not-supported");var Z=le(this.element.getElementsByTagName("div"),!0),re;try{for(Z.s();!(re=Z.n()).done;){var P=re.value;if(/(^| )dz-message($| )/.test(P.className)){ie=P,P.className="dz-message";break}}}catch(ee){Z.e(ee)}finally{Z.f()}ie||(ie=st.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(ie));var N=ie.getElementsByTagName("span")[0];return N&&(N.textContent!=null?N.textContent=this.options.dictFallbackMessage:N.innerText!=null&&(N.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(ie,Z,re,P){var N={srcX:0,srcY:0,srcWidth:ie.width,srcHeight:ie.height},ee=ie.width/ie.height;Z==null&&re==null?(Z=N.srcWidth,re=N.srcHeight):Z==null?Z=re*ee:re==null&&(re=Z/ee),Z=Math.min(Z,N.srcWidth),re=Math.min(re,N.srcHeight);var ue=Z/re;if(N.srcWidth>Z||N.srcHeight>re)if(P==="crop")ee>ue?(N.srcHeight=ie.height,N.srcWidth=N.srcHeight*ue):(N.srcWidth=ie.width,N.srcHeight=N.srcWidth/ue);else if(P==="contain")ee>ue?re=Z/ee:Z=re*ee;else throw new Error("Unknown resizeMethod '".concat(P,"'"));return N.srcX=(ie.width-N.srcWidth)/2,N.srcY=(ie.height-N.srcHeight)/2,N.trgWidth=Z,N.trgHeight=re,N},transformFile:function(ie,Z){return(this.options.resizeWidth||this.options.resizeHeight)&&ie.type.match(/image.*/)?this.resizeImage(ie,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,Z):Z(ie)},previewTemplate:fe,drop:function(ie){return this.element.classList.remove("dz-drag-hover")},dragstart:function(ie){},dragend:function(ie){return this.element.classList.remove("dz-drag-hover")},dragenter:function(ie){return this.element.classList.add("dz-drag-hover")},dragover:function(ie){return this.element.classList.add("dz-drag-hover")},dragleave:function(ie){return this.element.classList.remove("dz-drag-hover")},paste:function(ie){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(ie){var Z=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer&&!this.options.disablePreviews){ie.previewElement=st.createElement(this.options.previewTemplate.trim()),ie.previewTemplate=ie.previewElement,this.previewsContainer.appendChild(ie.previewElement);var re=le(ie.previewElement.querySelectorAll("[data-dz-name]"),!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;N.textContent=ie.name}}catch(Se){re.e(Se)}finally{re.f()}var ee=le(ie.previewElement.querySelectorAll("[data-dz-size]"),!0),ue;try{for(ee.s();!(ue=ee.n()).done;)N=ue.value,N.innerHTML=this.filesize(ie.size)}catch(Se){ee.e(Se)}finally{ee.f()}this.options.addRemoveLinks&&(ie._removeLink=st.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'.concat(this.options.dictRemoveFile,"</a>")),ie.previewElement.appendChild(ie._removeLink));var pe=function(Ke){return Ke.preventDefault(),Ke.stopPropagation(),ie.status===st.UPLOADING?st.confirm(Z.options.dictCancelUploadConfirmation,function(){return Z.removeFile(ie)}):Z.options.dictRemoveFileConfirmation?st.confirm(Z.options.dictRemoveFileConfirmation,function(){return Z.removeFile(ie)}):Z.removeFile(ie)},ge=le(ie.previewElement.querySelectorAll("[data-dz-remove]"),!0),Le;try{for(ge.s();!(Le=ge.n()).done;){var Me=Le.value;Me.addEventListener("click",pe)}}catch(Se){ge.e(Se)}finally{ge.f()}}},removedfile:function(ie){return ie.previewElement!=null&&ie.previewElement.parentNode!=null&&ie.previewElement.parentNode.removeChild(ie.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(ie,Z){if(ie.previewElement){ie.previewElement.classList.remove("dz-file-preview");var re=le(ie.previewElement.querySelectorAll("[data-dz-thumbnail]"),!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;N.alt=ie.name,N.src=Z}}catch(ee){re.e(ee)}finally{re.f()}return setTimeout(function(){return ie.previewElement.classList.add("dz-image-preview")},1)}},error:function(ie,Z){if(ie.previewElement){ie.previewElement.classList.add("dz-error"),typeof Z!="string"&&Z.error&&(Z=Z.error);var re=le(ie.previewElement.querySelectorAll("[data-dz-errormessage]"),!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;N.textContent=Z}}catch(ee){re.e(ee)}finally{re.f()}}},errormultiple:function(){},processing:function(ie){if(ie.previewElement&&(ie.previewElement.classList.add("dz-processing"),ie._removeLink))return ie._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(ie,Z,re){if(ie.previewElement){var P=le(ie.previewElement.querySelectorAll("[data-dz-uploadprogress]"),!0),N;try{for(P.s();!(N=P.n()).done;){var ee=N.value;ee.nodeName==="PROGRESS"?ee.value=Z:ee.style.width="".concat(Z,"%")}}catch(ue){P.e(ue)}finally{P.f()}}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(ie){if(ie.previewElement)return ie.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(ie){return this.emit("error",ie,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(ie){if(ie._removeLink&&(ie._removeLink.innerHTML=this.options.dictRemoveFile),ie.previewElement)return ie.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},Ye=ot;function Je(ne){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Je=function(Z){return typeof Z}:Je=function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Je(ne)}function We(ne,ie){var Z;if(typeof Symbol=="undefined"||ne[Symbol.iterator]==null){if(Array.isArray(ne)||(Z=qt(ne))||ie&&ne&&typeof ne.length=="number"){Z&&(ne=Z);var re=0,P=function(){};return{s:P,n:function(){return re>=ne.length?{done:!0}:{done:!1,value:ne[re++]}},e:function(ge){throw ge},f:P}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N=!0,ee=!1,ue;return{s:function(){Z=ne[Symbol.iterator]()},n:function(){var ge=Z.next();return N=ge.done,ge},e:function(ge){ee=!0,ue=ge},f:function(){try{!N&&Z.return!=null&&Z.return()}finally{if(ee)throw ue}}}}function qt(ne,ie){if(!!ne){if(typeof ne=="string")return Lt(ne,ie);var Z=Object.prototype.toString.call(ne).slice(8,-1);if(Z==="Object"&&ne.constructor&&(Z=ne.constructor.name),Z==="Map"||Z==="Set")return Array.from(ne);if(Z==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Z))return Lt(ne,ie)}}function Lt(ne,ie){(ie==null||ie>ne.length)&&(ie=ne.length);for(var Z=0,re=new Array(ie);Z<ie;Z++)re[Z]=ne[Z];return re}function cr(ne,ie){if(!(ne instanceof ie))throw new TypeError("Cannot call a class as a function")}function lt(ne,ie){for(var Z=0;Z<ie.length;Z++){var re=ie[Z];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(ne,re.key,re)}}function Mt(ne,ie,Z){return ie&&lt(ne.prototype,ie),Z&&lt(ne,Z),ne}function pt(ne,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Super expression must either be null or a function");ne.prototype=Object.create(ie&&ie.prototype,{constructor:{value:ne,writable:!0,configurable:!0}}),ie&&rt(ne,ie)}function rt(ne,ie){return rt=Object.setPrototypeOf||function(re,P){return re.__proto__=P,re},rt(ne,ie)}function wt(ne){var ie=Kt();return function(){var re=kt(ne),P;if(ie){var N=kt(this).constructor;P=Reflect.construct(re,arguments,N)}else P=re.apply(this,arguments);return fr(this,P)}}function fr(ne,ie){return ie&&(Je(ie)==="object"||typeof ie=="function")?ie:Et(ne)}function Et(ne){if(ne===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ne}function Kt(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(ne){return!1}}function kt(ne){return kt=Object.setPrototypeOf?Object.getPrototypeOf:function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},kt(ne)}var st=function(ne){pt(Z,ne);var ie=wt(Z);function Z(re,P){var N;cr(this,Z),N=ie.call(this);var ee,ue;if(N.element=re,N.version=Z.version,N.clickableElements=[],N.listeners=[],N.files=[],typeof N.element=="string"&&(N.element=document.querySelector(N.element)),!N.element||N.element.nodeType==null)throw new Error("Invalid dropzone element.");if(N.element.dropzone)throw new Error("Dropzone already attached.");Z.instances.push(Et(N)),N.element.dropzone=Et(N);var pe=(ue=Z.optionsForElement(N.element))!=null?ue:{};if(N.options=Z.extend({},Ye,pe,P!=null?P:{}),N.options.previewTemplate=N.options.previewTemplate.replace(/\n*/g,""),N.options.forceFallback||!Z.isBrowserSupported())return fr(N,N.options.fallback.call(Et(N)));if(N.options.url==null&&(N.options.url=N.element.getAttribute("action")),!N.options.url)throw new Error("No URL provided.");if(N.options.acceptedFiles&&N.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(N.options.uploadMultiple&&N.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return N.options.acceptedMimeTypes&&(N.options.acceptedFiles=N.options.acceptedMimeTypes,delete N.options.acceptedMimeTypes),N.options.renameFilename!=null&&(N.options.renameFile=function(ge){return N.options.renameFilename.call(Et(N),ge.name,ge)}),typeof N.options.method=="string"&&(N.options.method=N.options.method.toUpperCase()),(ee=N.getExistingFallback())&&ee.parentNode&&ee.parentNode.removeChild(ee),N.options.previewsContainer!==!1&&(N.options.previewsContainer?N.previewsContainer=Z.getElement(N.options.previewsContainer,"previewsContainer"):N.previewsContainer=N.element),N.options.clickable&&(N.options.clickable===!0?N.clickableElements=[N.element]:N.clickableElements=Z.getElements(N.options.clickable,"clickable")),N.init(),N}return Mt(Z,[{key:"getAcceptedFiles",value:function(){return this.files.filter(function(P){return P.accepted}).map(function(P){return P})}},{key:"getRejectedFiles",value:function(){return this.files.filter(function(P){return!P.accepted}).map(function(P){return P})}},{key:"getFilesWithStatus",value:function(P){return this.files.filter(function(N){return N.status===P}).map(function(N){return N})}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(Z.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(Z.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(Z.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter(function(P){return P.status===Z.UPLOADING||P.status===Z.QUEUED}).map(function(P){return P})}},{key:"init",value:function(){var P=this;if(this.element.tagName==="form"&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(Z.createElement('<div class="dz-default dz-message"><button class="dz-button" type="button">'.concat(this.options.dictDefaultMessage,"</button></div>"))),this.clickableElements.length){var N=function Me(){P.hiddenFileInput&&P.hiddenFileInput.parentNode.removeChild(P.hiddenFileInput),P.hiddenFileInput=document.createElement("input"),P.hiddenFileInput.setAttribute("type","file"),(P.options.maxFiles===null||P.options.maxFiles>1)&&P.hiddenFileInput.setAttribute("multiple","multiple"),P.hiddenFileInput.className="dz-hidden-input",P.options.acceptedFiles!==null&&P.hiddenFileInput.setAttribute("accept",P.options.acceptedFiles),P.options.capture!==null&&P.hiddenFileInput.setAttribute("capture",P.options.capture),P.hiddenFileInput.setAttribute("tabindex","-1"),P.hiddenFileInput.style.visibility="hidden",P.hiddenFileInput.style.position="absolute",P.hiddenFileInput.style.top="0",P.hiddenFileInput.style.left="0",P.hiddenFileInput.style.height="0",P.hiddenFileInput.style.width="0",Z.getElement(P.options.hiddenInputContainer,"hiddenInputContainer").appendChild(P.hiddenFileInput),P.hiddenFileInput.addEventListener("change",function(){var Se=P.hiddenFileInput.files;if(Se.length){var Ke=We(Se,!0),_t;try{for(Ke.s();!(_t=Ke.n()).done;){var mt=_t.value;P.addFile(mt)}}catch(H){Ke.e(H)}finally{Ke.f()}}P.emit("addedfiles",Se),Me()})};N()}this.URL=window.URL!==null?window.URL:window.webkitURL;var ee=We(this.events,!0),ue;try{for(ee.s();!(ue=ee.n()).done;){var pe=ue.value;this.on(pe,this.options[pe])}}catch(Me){ee.e(Me)}finally{ee.f()}this.on("uploadprogress",function(){return P.updateTotalUploadProgress()}),this.on("removedfile",function(){return P.updateTotalUploadProgress()}),this.on("canceled",function(Me){return P.emit("complete",Me)}),this.on("complete",function(Me){if(P.getAddedFiles().length===0&&P.getUploadingFiles().length===0&&P.getQueuedFiles().length===0)return setTimeout(function(){return P.emit("queuecomplete")},0)});var ge=function(Se){if(Se.dataTransfer.types){for(var Ke=0;Ke<Se.dataTransfer.types.length;Ke++)if(Se.dataTransfer.types[Ke]==="Files")return!0}return!1},Le=function(Se){if(!!ge(Se))return Se.stopPropagation(),Se.preventDefault?Se.preventDefault():Se.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(Se){return P.emit("dragstart",Se)},dragenter:function(Se){return Le(Se),P.emit("dragenter",Se)},dragover:function(Se){var Ke;try{Ke=Se.dataTransfer.effectAllowed}catch(_t){}return Se.dataTransfer.dropEffect=Ke==="move"||Ke==="linkMove"?"move":"copy",Le(Se),P.emit("dragover",Se)},dragleave:function(Se){return P.emit("dragleave",Se)},drop:function(Se){return Le(Se),P.drop(Se)},dragend:function(Se){return P.emit("dragend",Se)}}}],this.clickableElements.forEach(function(Me){return P.listeners.push({element:Me,events:{click:function(Ke){return(Me!==P.element||Ke.target===P.element||Z.elementInside(Ke.target,P.element.querySelector(".dz-message")))&&P.hiddenFileInput.click(),!0}}})}),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(this.hiddenFileInput!=null?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,Z.instances.splice(Z.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var P,N=0,ee=0,ue=this.getActiveFiles();if(ue.length){var pe=We(this.getActiveFiles(),!0),ge;try{for(pe.s();!(ge=pe.n()).done;){var Le=ge.value;N+=Le.upload.bytesSent,ee+=Le.upload.total}}catch(Me){pe.e(Me)}finally{pe.f()}P=100*N/ee}else P=100;return this.emit("totaluploadprogress",P,ee,N)}},{key:"_getParamName",value:function(P){return typeof this.options.paramName=="function"?this.options.paramName(P):"".concat(this.options.paramName).concat(this.options.uploadMultiple?"[".concat(P,"]"):"")}},{key:"_renameFile",value:function(P){return typeof this.options.renameFile!="function"?P.name:this.options.renameFile(P)}},{key:"getFallbackForm",value:function(){var P,N;if(P=this.getExistingFallback())return P;var ee='<div class="dz-fallback">';this.options.dictFallbackText&&(ee+="<p>".concat(this.options.dictFallbackText,"</p>")),ee+='<input type="file" name="'.concat(this._getParamName(0),'" ').concat(this.options.uploadMultiple?'multiple="multiple"':void 0,' /><input type="submit" value="Upload!"></div>');var ue=Z.createElement(ee);return this.element.tagName!=="FORM"?(N=Z.createElement('<form action="'.concat(this.options.url,'" enctype="multipart/form-data" method="').concat(this.options.method,'"></form>')),N.appendChild(ue)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),N!=null?N:ue}},{key:"getExistingFallback",value:function(){for(var P=function(Le){var Me=We(Le,!0),Se;try{for(Me.s();!(Se=Me.n()).done;){var Ke=Se.value;if(/(^| )fallback($| )/.test(Ke.className))return Ke}}catch(_t){Me.e(_t)}finally{Me.f()}},N=0,ee=["div","form"];N<ee.length;N++){var ue=ee[N],pe;if(pe=P(this.element.getElementsByTagName(ue)))return pe}}},{key:"setupEventListeners",value:function(){return this.listeners.map(function(P){return function(){var N=[];for(var ee in P.events){var ue=P.events[ee];N.push(P.element.addEventListener(ee,ue,!1))}return N}()})}},{key:"removeEventListeners",value:function(){return this.listeners.map(function(P){return function(){var N=[];for(var ee in P.events){var ue=P.events[ee];N.push(P.element.removeEventListener(ee,ue,!1))}return N}()})}},{key:"disable",value:function(){var P=this;return this.clickableElements.forEach(function(N){return N.classList.remove("dz-clickable")}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(N){return P.cancelUpload(N)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(P){return P.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(P){var N=0,ee="b";if(P>0){for(var ue=["tb","gb","mb","kb","b"],pe=0;pe<ue.length;pe++){var ge=ue[pe],Le=Math.pow(this.options.filesizeBase,4-pe)/10;if(P>=Le){N=P/Math.pow(this.options.filesizeBase,4-pe),ee=ge;break}}N=Math.round(10*N)/10}return"<strong>".concat(N,"</strong> ").concat(this.options.dictFileSizeUnits[ee])}},{key:"_updateMaxFilesReachedClass",value:function(){return this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(P){if(!!P.dataTransfer){this.emit("drop",P);for(var N=[],ee=0;ee<P.dataTransfer.files.length;ee++)N[ee]=P.dataTransfer.files[ee];if(N.length){var ue=P.dataTransfer.items;ue&&ue.length&&ue[0].webkitGetAsEntry!=null?this._addFilesFromItems(ue):this.handleFiles(N)}this.emit("addedfiles",N)}}},{key:"paste",value:function(P){if(yr(P!=null?P.clipboardData:void 0,function(ee){return ee.items})!=null){this.emit("paste",P);var N=P.clipboardData.items;if(N.length)return this._addFilesFromItems(N)}}},{key:"handleFiles",value:function(P){var N=We(P,!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;this.addFile(ue)}}catch(pe){N.e(pe)}finally{N.f()}}},{key:"_addFilesFromItems",value:function(P){var N=this;return function(){var ee=[],ue=We(P,!0),pe;try{for(ue.s();!(pe=ue.n()).done;){var ge=pe.value,Le;ge.webkitGetAsEntry!=null&&(Le=ge.webkitGetAsEntry())?Le.isFile?ee.push(N.addFile(ge.getAsFile())):Le.isDirectory?ee.push(N._addFilesFromDirectory(Le,Le.name)):ee.push(void 0):ge.getAsFile!=null&&(ge.kind==null||ge.kind==="file")?ee.push(N.addFile(ge.getAsFile())):ee.push(void 0)}}catch(Me){ue.e(Me)}finally{ue.f()}return ee}()}},{key:"_addFilesFromDirectory",value:function(P,N){var ee=this,ue=P.createReader(),pe=function(Me){return sr(console,"log",function(Se){return Se.log(Me)})},ge=function Le(){return ue.readEntries(function(Me){if(Me.length>0){var Se=We(Me,!0),Ke;try{for(Se.s();!(Ke=Se.n()).done;){var _t=Ke.value;_t.isFile?_t.file(function(mt){if(!(ee.options.ignoreHiddenFiles&&mt.name.substring(0,1)==="."))return mt.fullPath="".concat(N,"/").concat(mt.name),ee.addFile(mt)}):_t.isDirectory&&ee._addFilesFromDirectory(_t,"".concat(N,"/").concat(_t.name))}}catch(mt){Se.e(mt)}finally{Se.f()}Le()}return null},pe)};return ge()}},{key:"accept",value:function(P,N){this.options.maxFilesize&&P.size>this.options.maxFilesize*1024*1024?N(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(P.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):Z.isValidFile(P,this.options.acceptedFiles)?this.options.maxFiles!=null&&this.getAcceptedFiles().length>=this.options.maxFiles?(N(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",P)):this.options.accept.call(this,P,N):N(this.options.dictInvalidFileType)}},{key:"addFile",value:function(P){var N=this;P.upload={uuid:Z.uuidv4(),progress:0,total:P.size,bytesSent:0,filename:this._renameFile(P)},this.files.push(P),P.status=Z.ADDED,this.emit("addedfile",P),this._enqueueThumbnail(P),this.accept(P,function(ee){ee?(P.accepted=!1,N._errorProcessing([P],ee)):(P.accepted=!0,N.options.autoQueue&&N.enqueueFile(P)),N._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(P){var N=We(P,!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;this.enqueueFile(ue)}}catch(pe){N.e(pe)}finally{N.f()}return null}},{key:"enqueueFile",value:function(P){var N=this;if(P.status===Z.ADDED&&P.accepted===!0){if(P.status=Z.QUEUED,this.options.autoProcessQueue)return setTimeout(function(){return N.processQueue()},0)}else throw new Error("This file can't be queued because it has already been processed or was rejected.")}},{key:"_enqueueThumbnail",value:function(P){var N=this;if(this.options.createImageThumbnails&&P.type.match(/image.*/)&&P.size<=this.options.maxThumbnailFilesize*1024*1024)return this._thumbnailQueue.push(P),setTimeout(function(){return N._processThumbnailQueue()},0)}},{key:"_processThumbnailQueue",value:function(){var P=this;if(!(this._processingThumbnail||this._thumbnailQueue.length===0)){this._processingThumbnail=!0;var N=this._thumbnailQueue.shift();return this.createThumbnail(N,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,function(ee){return P.emit("thumbnail",N,ee),P._processingThumbnail=!1,P._processThumbnailQueue()})}}},{key:"removeFile",value:function(P){if(P.status===Z.UPLOADING&&this.cancelUpload(P),this.files=Ht(this.files,P),this.emit("removedfile",P),this.files.length===0)return this.emit("reset")}},{key:"removeAllFiles",value:function(P){P==null&&(P=!1);var N=We(this.files.slice(),!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;(ue.status!==Z.UPLOADING||P)&&this.removeFile(ue)}}catch(pe){N.e(pe)}finally{N.f()}return null}},{key:"resizeImage",value:function(P,N,ee,ue,pe){var ge=this;return this.createThumbnail(P,N,ee,ue,!0,function(Le,Me){if(Me==null)return pe(P);var Se=ge.options.resizeMimeType;Se==null&&(Se=P.type);var Ke=Me.toDataURL(Se,ge.options.resizeQuality);return(Se==="image/jpeg"||Se==="image/jpg")&&(Ke=$r.restore(P.dataURL,Ke)),pe(Z.dataURItoBlob(Ke))})}},{key:"createThumbnail",value:function(P,N,ee,ue,pe,ge){var Le=this,Me=new FileReader;Me.onload=function(){if(P.dataURL=Me.result,P.type==="image/svg+xml"){ge!=null&&ge(Me.result);return}Le.createThumbnailFromUrl(P,N,ee,ue,pe,ge)},Me.readAsDataURL(P)}},{key:"displayExistingFile",value:function(P,N,ee,ue){var pe=this,ge=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;if(this.emit("addedfile",P),this.emit("complete",P),!ge)this.emit("thumbnail",P,N),ee&&ee();else{var Le=function(Se){pe.emit("thumbnail",P,Se),ee&&ee()};P.dataURL=N,this.createThumbnailFromUrl(P,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.resizeMethod,this.options.fixOrientation,Le,ue)}}},{key:"createThumbnailFromUrl",value:function(P,N,ee,ue,pe,ge,Le){var Me=this,Se=document.createElement("img");return Le&&(Se.crossOrigin=Le),pe=getComputedStyle(document.body).imageOrientation=="from-image"?!1:pe,Se.onload=function(){var Ke=function(mt){return mt(1)};return typeof EXIF!="undefined"&&EXIF!==null&&pe&&(Ke=function(mt){return EXIF.getData(Se,function(){return mt(EXIF.getTag(this,"Orientation"))})}),Ke(function(_t){P.width=Se.width,P.height=Se.height;var mt=Me.options.resize.call(Me,P,N,ee,ue),H=document.createElement("canvas"),oe=H.getContext("2d");switch(H.width=mt.trgWidth,H.height=mt.trgHeight,_t>4&&(H.width=mt.trgHeight,H.height=mt.trgWidth),_t){case 2:oe.translate(H.width,0),oe.scale(-1,1);break;case 3:oe.translate(H.width,H.height),oe.rotate(Math.PI);break;case 4:oe.translate(0,H.height),oe.scale(1,-1);break;case 5:oe.rotate(.5*Math.PI),oe.scale(1,-1);break;case 6:oe.rotate(.5*Math.PI),oe.translate(0,-H.width);break;case 7:oe.rotate(.5*Math.PI),oe.translate(H.height,-H.width),oe.scale(-1,1);break;case 8:oe.rotate(-.5*Math.PI),oe.translate(-H.height,0);break}hr(oe,Se,mt.srcX!=null?mt.srcX:0,mt.srcY!=null?mt.srcY:0,mt.srcWidth,mt.srcHeight,mt.trgX!=null?mt.trgX:0,mt.trgY!=null?mt.trgY:0,mt.trgWidth,mt.trgHeight);var he=H.toDataURL("image/png");if(ge!=null)return ge(he,H)})},ge!=null&&(Se.onerror=ge),Se.src=P.dataURL}},{key:"processQueue",value:function(){var P=this.options.parallelUploads,N=this.getUploadingFiles().length,ee=N;if(!(N>=P)){var ue=this.getQueuedFiles();if(ue.length>0){if(this.options.uploadMultiple)return this.processFiles(ue.slice(0,P-N));for(;ee<P;){if(!ue.length)return;this.processFile(ue.shift()),ee++}}}}},{key:"processFile",value:function(P){return this.processFiles([P])}},{key:"processFiles",value:function(P){var N=We(P,!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;ue.processing=!0,ue.status=Z.UPLOADING,this.emit("processing",ue)}}catch(pe){N.e(pe)}finally{N.f()}return this.options.uploadMultiple&&this.emit("processingmultiple",P),this.uploadFiles(P)}},{key:"_getFilesWithXhr",value:function(P){var N;return N=this.files.filter(function(ee){return ee.xhr===P}).map(function(ee){return ee})}},{key:"cancelUpload",value:function(P){if(P.status===Z.UPLOADING){var N=this._getFilesWithXhr(P.xhr),ee=We(N,!0),ue;try{for(ee.s();!(ue=ee.n()).done;){var pe=ue.value;pe.status=Z.CANCELED}}catch(Se){ee.e(Se)}finally{ee.f()}typeof P.xhr!="undefined"&&P.xhr.abort();var ge=We(N,!0),Le;try{for(ge.s();!(Le=ge.n()).done;){var Me=Le.value;this.emit("canceled",Me)}}catch(Se){ge.e(Se)}finally{ge.f()}this.options.uploadMultiple&&this.emit("canceledmultiple",N)}else(P.status===Z.ADDED||P.status===Z.QUEUED)&&(P.status=Z.CANCELED,this.emit("canceled",P),this.options.uploadMultiple&&this.emit("canceledmultiple",[P]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(P){if(typeof P=="function"){for(var N=arguments.length,ee=new Array(N>1?N-1:0),ue=1;ue<N;ue++)ee[ue-1]=arguments[ue];return P.apply(this,ee)}return P}},{key:"uploadFile",value:function(P){return this.uploadFiles([P])}},{key:"uploadFiles",value:function(P){var N=this;this._transformFiles(P,function(ee){if(N.options.chunking){var ue=ee[0];P[0].upload.chunked=N.options.chunking&&(N.options.forceChunking||ue.size>N.options.chunkSize),P[0].upload.totalChunkCount=Math.ceil(ue.size/N.options.chunkSize)}if(P[0].upload.chunked){var pe=P[0],ge=ee[0],Le=0;pe.upload.chunks=[];var Me=function(){for(var H=0;pe.upload.chunks[H]!==void 0;)H++;if(!(H>=pe.upload.totalChunkCount)){Le++;var oe=H*N.options.chunkSize,he=Math.min(oe+N.options.chunkSize,ge.size),Ce={name:N._getParamName(0),data:ge.webkitSlice?ge.webkitSlice(oe,he):ge.slice(oe,he),filename:pe.upload.filename,chunkIndex:H};pe.upload.chunks[H]={file:pe,index:H,dataBlock:Ce,status:Z.UPLOADING,progress:0,retries:0},N._uploadData(P,[Ce])}};if(pe.upload.finishedChunkUpload=function(mt,H){var oe=!0;mt.status=Z.SUCCESS,mt.dataBlock=null,mt.xhr=null;for(var he=0;he<pe.upload.totalChunkCount;he++){if(pe.upload.chunks[he]===void 0)return Me();pe.upload.chunks[he].status!==Z.SUCCESS&&(oe=!1)}oe&&N.options.chunksUploaded(pe,function(){N._finished(P,H,null)})},N.options.parallelChunkUploads)for(var Se=0;Se<pe.upload.totalChunkCount;Se++)Me();else Me()}else{for(var Ke=[],_t=0;_t<P.length;_t++)Ke[_t]={name:N._getParamName(_t),data:ee[_t],filename:P[_t].upload.filename};N._uploadData(P,Ke)}})}},{key:"_getChunk",value:function(P,N){for(var ee=0;ee<P.upload.totalChunkCount;ee++)if(P.upload.chunks[ee]!==void 0&&P.upload.chunks[ee].xhr===N)return P.upload.chunks[ee]}},{key:"_uploadData",value:function(P,N){var ee=this,ue=new XMLHttpRequest,pe=We(P,!0),ge;try{for(pe.s();!(ge=pe.n()).done;){var Le=ge.value;Le.xhr=ue}}catch(de){pe.e(de)}finally{pe.f()}P[0].upload.chunked&&(P[0].upload.chunks[N[0].chunkIndex].xhr=ue);var Me=this.resolveOption(this.options.method,P),Se=this.resolveOption(this.options.url,P);ue.open(Me,Se,!0);var Ke=this.resolveOption(this.options.timeout,P);Ke&&(ue.timeout=this.resolveOption(this.options.timeout,P)),ue.withCredentials=!!this.options.withCredentials,ue.onload=function(de){ee._finishedUploading(P,ue,de)},ue.ontimeout=function(){ee._handleUploadError(P,ue,"Request timedout after ".concat(ee.options.timeout/1e3," seconds"))},ue.onerror=function(){ee._handleUploadError(P,ue)};var _t=ue.upload!=null?ue.upload:ue;_t.onprogress=function(de){return ee._updateFilesUploadProgress(P,ue,de)};var mt={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};this.options.headers&&Z.extend(mt,this.options.headers);for(var H in mt){var oe=mt[H];oe&&ue.setRequestHeader(H,oe)}var he=new FormData;if(this.options.params){var Ce=this.options.params;typeof Ce=="function"&&(Ce=Ce.call(this,P,ue,P[0].upload.chunked?this._getChunk(P[0],ue):null));for(var Ae in Ce){var Ve=Ce[Ae];if(Array.isArray(Ve))for(var et=0;et<Ve.length;et++)he.append(Ae,Ve[et]);else he.append(Ae,Ve)}}var bt=We(P,!0),Dt;try{for(bt.s();!(Dt=bt.n()).done;){var xe=Dt.value;this.emit("sending",xe,ue,he)}}catch(de){bt.e(de)}finally{bt.f()}this.options.uploadMultiple&&this.emit("sendingmultiple",P,ue,he),this._addFormElementData(he);for(var D=0;D<N.length;D++){var B=N[D];he.append(B.name,B.data,B.filename)}this.submitRequest(ue,he,P)}},{key:"_transformFiles",value:function(P,N){for(var ee=this,ue=[],pe=0,ge=function(Se){ee.options.transformFile.call(ee,P[Se],function(Ke){ue[Se]=Ke,++pe===P.length&&N(ue)})},Le=0;Le<P.length;Le++)ge(Le)}},{key:"_addFormElementData",value:function(P){if(this.element.tagName==="FORM"){var N=We(this.element.querySelectorAll("input, textarea, select, button"),!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value,pe=ue.getAttribute("name"),ge=ue.getAttribute("type");if(ge&&(ge=ge.toLowerCase()),!(typeof pe=="undefined"||pe===null))if(ue.tagName==="SELECT"&&ue.hasAttribute("multiple")){var Le=We(ue.options,!0),Me;try{for(Le.s();!(Me=Le.n()).done;){var Se=Me.value;Se.selected&&P.append(pe,Se.value)}}catch(Ke){Le.e(Ke)}finally{Le.f()}}else(!ge||ge!=="checkbox"&&ge!=="radio"||ue.checked)&&P.append(pe,ue.value)}}catch(Ke){N.e(Ke)}finally{N.f()}}}},{key:"_updateFilesUploadProgress",value:function(P,N,ee){if(P[0].upload.chunked){var Le=P[0],Me=this._getChunk(Le,N);ee?(Me.progress=100*ee.loaded/ee.total,Me.total=ee.total,Me.bytesSent=ee.loaded):(Me.progress=100,Me.bytesSent=Me.total),Le.upload.progress=0,Le.upload.total=0,Le.upload.bytesSent=0;for(var Se=0;Se<Le.upload.totalChunkCount;Se++)Le.upload.chunks[Se]&&typeof Le.upload.chunks[Se].progress!="undefined"&&(Le.upload.progress+=Le.upload.chunks[Se].progress,Le.upload.total+=Le.upload.chunks[Se].total,Le.upload.bytesSent+=Le.upload.chunks[Se].bytesSent);Le.upload.progress=Le.upload.progress/Le.upload.totalChunkCount,this.emit("uploadprogress",Le,Le.upload.progress,Le.upload.bytesSent)}else{var ue=We(P,!0),pe;try{for(ue.s();!(pe=ue.n()).done;){var ge=pe.value;ge.upload.total&&ge.upload.bytesSent&&ge.upload.bytesSent==ge.upload.total||(ee?(ge.upload.progress=100*ee.loaded/ee.total,ge.upload.total=ee.total,ge.upload.bytesSent=ee.loaded):(ge.upload.progress=100,ge.upload.bytesSent=ge.upload.total),this.emit("uploadprogress",ge,ge.upload.progress,ge.upload.bytesSent))}}catch(Ke){ue.e(Ke)}finally{ue.f()}}}},{key:"_finishedUploading",value:function(P,N,ee){var ue;if(P[0].status!==Z.CANCELED&&N.readyState===4){if(N.responseType!=="arraybuffer"&&N.responseType!=="blob"&&(ue=N.responseText,N.getResponseHeader("content-type")&&~N.getResponseHeader("content-type").indexOf("application/json")))try{ue=JSON.parse(ue)}catch(pe){ee=pe,ue="Invalid JSON response from server."}this._updateFilesUploadProgress(P,N),200<=N.status&&N.status<300?P[0].upload.chunked?P[0].upload.finishedChunkUpload(this._getChunk(P[0],N),ue):this._finished(P,ue,ee):this._handleUploadError(P,N,ue)}}},{key:"_handleUploadError",value:function(P,N,ee){if(P[0].status!==Z.CANCELED){if(P[0].upload.chunked&&this.options.retryChunks){var ue=this._getChunk(P[0],N);if(ue.retries++<this.options.retryChunksLimit){this._uploadData(P,[ue.dataBlock]);return}else console.warn("Retried this chunk too often. Giving up.")}this._errorProcessing(P,ee||this.options.dictResponseError.replace("{{statusCode}}",N.status),N)}}},{key:"submitRequest",value:function(P,N,ee){if(P.readyState!=1){console.warn("Cannot send this request because the XMLHttpRequest.readyState is not OPENED.");return}P.send(N)}},{key:"_finished",value:function(P,N,ee){var ue=We(P,!0),pe;try{for(ue.s();!(pe=ue.n()).done;){var ge=pe.value;ge.status=Z.SUCCESS,this.emit("success",ge,N,ee),this.emit("complete",ge)}}catch(Le){ue.e(Le)}finally{ue.f()}if(this.options.uploadMultiple&&(this.emit("successmultiple",P,N,ee),this.emit("completemultiple",P)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(P,N,ee){var ue=We(P,!0),pe;try{for(ue.s();!(pe=ue.n()).done;){var ge=pe.value;ge.status=Z.ERROR,this.emit("error",ge,N,ee),this.emit("complete",ge)}}catch(Le){ue.e(Le)}finally{ue.f()}if(this.options.uploadMultiple&&(this.emit("errormultiple",P,N,ee),this.emit("completemultiple",P)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"initClass",value:function(){this.prototype.Emitter=_e,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(P){for(var N=arguments.length,ee=new Array(N>1?N-1:0),ue=1;ue<N;ue++)ee[ue-1]=arguments[ue];for(var pe=0,ge=ee;pe<ge.length;pe++){var Le=ge[pe];for(var Me in Le){var Se=Le[Me];P[Me]=Se}}return P}},{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(P){var N=Math.random()*16|0,ee=P==="x"?N:N&3|8;return ee.toString(16)})}}]),Z}(_e);st.initClass(),st.version="5.9.2",st.options={},st.optionsForElement=function(ne){if(ne.getAttribute("id"))return st.options[Ir(ne.getAttribute("id"))]},st.instances=[],st.forElement=function(ne){if(typeof ne=="string"&&(ne=document.querySelector(ne)),(ne!=null?ne.dropzone:void 0)==null)throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return ne.dropzone},st.autoDiscover=!0,st.discover=function(){var ne;if(document.querySelectorAll)ne=document.querySelectorAll(".dropzone");else{ne=[];var ie=function(re){return function(){var P=[],N=We(re,!0),ee;try{for(N.s();!(ee=N.n()).done;){var ue=ee.value;/(^| )dropzone($| )/.test(ue.className)?P.push(ne.push(ue)):P.push(void 0)}}catch(pe){N.e(pe)}finally{N.f()}return P}()};ie(document.getElementsByTagName("div")),ie(document.getElementsByTagName("form"))}return function(){var Z=[],re=We(ne,!0),P;try{for(re.s();!(P=re.n()).done;){var N=P.value;st.optionsForElement(N)!==!1?Z.push(new st(N)):Z.push(void 0)}}catch(ee){re.e(ee)}finally{re.f()}return Z}()},st.blockedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],st.isBrowserSupported=function(){var ne=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if(!("classList"in document.createElement("a")))ne=!1;else{st.blacklistedBrowsers!==void 0&&(st.blockedBrowsers=st.blacklistedBrowsers);var ie=We(st.blockedBrowsers,!0),Z;try{for(ie.s();!(Z=ie.n()).done;){var re=Z.value;if(re.test(navigator.userAgent)){ne=!1;continue}}}catch(P){ie.e(P)}finally{ie.f()}}else ne=!1;return ne},st.dataURItoBlob=function(ne){for(var ie=atob(ne.split(",")[1]),Z=ne.split(",")[0].split(":")[1].split(";")[0],re=new ArrayBuffer(ie.length),P=new Uint8Array(re),N=0,ee=ie.length,ue=0<=ee;ue?N<=ee:N>=ee;ue?N++:N--)P[N]=ie.charCodeAt(N);return new Blob([re],{type:Z})};var Ht=function(ie,Z){return ie.filter(function(re){return re!==Z}).map(function(re){return re})},Ir=function(ie){return ie.replace(/[\-_](\w)/g,function(Z){return Z.charAt(1).toUpperCase()})};st.createElement=function(ne){var ie=document.createElement("div");return ie.innerHTML=ne,ie.childNodes[0]},st.elementInside=function(ne,ie){if(ne===ie)return!0;for(;ne=ne.parentNode;)if(ne===ie)return!0;return!1},st.getElement=function(ne,ie){var Z;if(typeof ne=="string"?Z=document.querySelector(ne):ne.nodeType!=null&&(Z=ne),Z==null)throw new Error("Invalid `".concat(ie,"` option provided. Please provide a CSS selector or a plain HTML element."));return Z},st.getElements=function(ne,ie){var Z,re;if(ne instanceof Array){re=[];try{var P=We(ne,!0),N;try{for(P.s();!(N=P.n()).done;)Z=N.value,re.push(this.getElement(Z,ie))}catch(pe){P.e(pe)}finally{P.f()}}catch(pe){re=null}}else if(typeof ne=="string"){re=[];var ee=We(document.querySelectorAll(ne),!0),ue;try{for(ee.s();!(ue=ee.n()).done;)Z=ue.value,re.push(Z)}catch(pe){ee.e(pe)}finally{ee.f()}}else ne.nodeType!=null&&(re=[ne]);if(re==null||!re.length)throw new Error("Invalid `".concat(ie,"` option provided. Please provide a CSS selector, a plain HTML element or a list of those."));return re},st.confirm=function(ne,ie,Z){if(window.confirm(ne))return ie();if(Z!=null)return Z()},st.isValidFile=function(ne,ie){if(!ie)return!0;ie=ie.split(",");var Z=ne.type,re=Z.replace(/\/.*$/,""),P=We(ie,!0),N;try{for(P.s();!(N=P.n()).done;){var ee=N.value;if(ee=ee.trim(),ee.charAt(0)==="."){if(ne.name.toLowerCase().indexOf(ee.toLowerCase(),ne.name.length-ee.length)!==-1)return!0}else if(/\/\*$/.test(ee)){if(re===ee.replace(/\/.*$/,""))return!0}else if(Z===ee)return!0}}catch(ue){P.e(ue)}finally{P.f()}return!1},typeof jQuery!="undefined"&&jQuery!==null&&(jQuery.fn.dropzone=function(ne){return this.each(function(){return new st(this,ne)})}),st.ADDED="added",st.QUEUED="queued",st.ACCEPTED=st.QUEUED,st.UPLOADING="uploading",st.PROCESSING=st.UPLOADING,st.CANCELED="canceled",st.ERROR="error",st.SUCCESS="success";var dr=function(ie){var Z=ie.naturalWidth,re=ie.naturalHeight,P=document.createElement("canvas");P.width=1,P.height=re;var N=P.getContext("2d");N.drawImage(ie,0,0);for(var ee=N.getImageData(1,0,1,re),ue=ee.data,pe=0,ge=re,Le=re;Le>pe;){var Me=ue[(Le-1)*4+3];Me===0?ge=Le:pe=Le,Le=ge+pe>>1}var Se=Le/re;return Se===0?1:Se},hr=function(ie,Z,re,P,N,ee,ue,pe,ge,Le){var Me=dr(Z);return ie.drawImage(Z,re,P,N,ee,ue,pe,ge,Le/Me)},$r=function(){function ne(){cr(this,ne)}return Mt(ne,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(Z){for(var re="",P=void 0,N=void 0,ee="",ue=void 0,pe=void 0,ge=void 0,Le="",Me=0;P=Z[Me++],N=Z[Me++],ee=Z[Me++],ue=P>>2,pe=(P&3)<<4|N>>4,ge=(N&15)<<2|ee>>6,Le=ee&63,isNaN(N)?ge=Le=64:isNaN(ee)&&(Le=64),re=re+this.KEY_STR.charAt(ue)+this.KEY_STR.charAt(pe)+this.KEY_STR.charAt(ge)+this.KEY_STR.charAt(Le),P=N=ee="",ue=pe=ge=Le="",Me<Z.length;);return re}},{key:"restore",value:function(Z,re){if(!Z.match("data:image/jpeg;base64,"))return re;var P=this.decode64(Z.replace("data:image/jpeg;base64,","")),N=this.slice2Segments(P),ee=this.exifManipulation(re,N);return"data:image/jpeg;base64,".concat(this.encode64(ee))}},{key:"exifManipulation",value:function(Z,re){var P=this.getExifArray(re),N=this.insertExif(Z,P),ee=new Uint8Array(N);return ee}},{key:"getExifArray",value:function(Z){for(var re=void 0,P=0;P<Z.length;){if(re=Z[P],re[0]===255&re[1]===225)return re;P++}return[]}},{key:"insertExif",value:function(Z,re){var P=Z.replace("data:image/jpeg;base64,",""),N=this.decode64(P),ee=N.indexOf(255,3),ue=N.slice(0,ee),pe=N.slice(ee),ge=ue;return ge=ge.concat(re),ge=ge.concat(pe),ge}},{key:"slice2Segments",value:function(Z){for(var re=0,P=[];;){var N;if(Z[re]===255&Z[re+1]===218)break;if(Z[re]===255&Z[re+1]===216)re+=2;else{N=Z[re+2]*256+Z[re+3];var ee=re+N+2,ue=Z.slice(re,ee);P.push(ue),re=ee}if(re>Z.length)break}return P}},{key:"decode64",value:function(Z){var re="",P=void 0,N=void 0,ee="",ue=void 0,pe=void 0,ge=void 0,Le="",Me=0,Se=[],Ke=/[^A-Za-z0-9\+\/\=]/g;for(Ke.exec(Z)&&console.warn(`There were invalid base64 characters in the input text.
Valid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='
Expect errors in decoding.`),Z=Z.replace(/[^A-Za-z0-9\+\/\=]/g,"");ue=this.KEY_STR.indexOf(Z.charAt(Me++)),pe=this.KEY_STR.indexOf(Z.charAt(Me++)),ge=this.KEY_STR.indexOf(Z.charAt(Me++)),Le=this.KEY_STR.indexOf(Z.charAt(Me++)),P=ue<<2|pe>>4,N=(pe&15)<<4|ge>>2,ee=(ge&3)<<6|Le,Se.push(P),ge!==64&&Se.push(N),Le!==64&&Se.push(ee),P=N=ee="",ue=pe=ge=Le="",Me<Z.length;);return Se}}]),ne}();$r.initClass();var zt=function(ie,Z){var re=!1,P=!0,N=ie.document,ee=N.documentElement,ue=N.addEventListener?"addEventListener":"attachEvent",pe=N.addEventListener?"removeEventListener":"detachEvent",ge=N.addEventListener?"":"on",Le=function Se(Ke){if(!(Ke.type==="readystatechange"&&N.readyState!=="complete")&&((Ke.type==="load"?ie:N)[pe](ge+Ke.type,Se,!1),!re&&(re=!0)))return Z.call(ie,Ke.type||Ke)},Me=function Se(){try{ee.doScroll("left")}catch(Ke){setTimeout(Se,50);return}return Le("poll")};if(N.readyState!=="complete"){if(N.createEventObject&&ee.doScroll){try{P=!ie.frameElement}catch(Se){}P&&Me()}return N[ue](ge+"DOMContentLoaded",Le,!1),N[ue](ge+"readystatechange",Le,!1),ie[ue](ge+"load",Le,!1)}};st._autoDiscoverFunction=function(){if(st.autoDiscover)return st.discover()},zt(window,st._autoDiscoverFunction);function yr(ne,ie){return typeof ne!="undefined"&&ne!==null?ie(ne):void 0}function sr(ne,ie,Z){if(typeof ne!="undefined"&&ne!==null&&typeof ne[ie]=="function")return Z(ne,ie)}window.Dropzone=st;var Zt=st}(),l}()})});var Qh=Fe((AS,f0)=>{f0.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var ol=Fe((LS,Jh)=>{"use strict";Jh.exports=Qh()});var _a=Fe((DS,ep)=>{ep.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/});var np=Fe((IS,rp)=>{"use strict";var tp={};function d0(i){var t,n,l=tp[i];if(l)return l;for(l=tp[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?l.push(n):l.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<i.length;t++)l[i.charCodeAt(t)]=i[t];return l}function Sa(i,t,n){var l,c,d,a,h,f="";for(typeof t!="string"&&(n=t,t=Sa.defaultChars),typeof n=="undefined"&&(n=!0),h=d0(t),l=0,c=i.length;l<c;l++){if(d=i.charCodeAt(l),n&&d===37&&l+2<c&&/^[0-9a-f]{2}$/i.test(i.slice(l+1,l+3))){f+=i.slice(l,l+3),l+=2;continue}if(d<128){f+=h[d];continue}if(d>=55296&&d<=57343){if(d>=55296&&d<=56319&&l+1<c&&(a=i.charCodeAt(l+1),a>=56320&&a<=57343)){f+=encodeURIComponent(i[l]+i[l+1]),l++;continue}f+="%EF%BF%BD";continue}f+=encodeURIComponent(i[l])}return f}Sa.defaultChars=";/?:@&=+$,-_.!~*'()#";Sa.componentChars="-_.!~*'()";rp.exports=Sa});var ap=Fe((FS,op)=>{"use strict";var ip={};function h0(i){var t,n,l=ip[i];if(l)return l;for(l=ip[i]=[],t=0;t<128;t++)n=String.fromCharCode(t),l.push(n);for(t=0;t<i.length;t++)n=i.charCodeAt(t),l[n]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return l}function Ea(i,t){var n;return typeof t!="string"&&(t=Ea.defaultChars),n=h0(t),i.replace(/(%[a-f0-9]{2})+/gi,function(l){var c,d,a,h,f,p,y,g="";for(c=0,d=l.length;c<d;c+=3){if(a=parseInt(l.slice(c+1,c+3),16),a<128){g+=n[a];continue}if((a&224)==192&&c+3<d&&(h=parseInt(l.slice(c+4,c+6),16),(h&192)==128)){y=a<<6&1984|h&63,y<128?g+="\uFFFD\uFFFD":g+=String.fromCharCode(y),c+=3;continue}if((a&240)==224&&c+6<d&&(h=parseInt(l.slice(c+4,c+6),16),f=parseInt(l.slice(c+7,c+9),16),(h&192)==128&&(f&192)==128)){y=a<<12&61440|h<<6&4032|f&63,y<2048||y>=55296&&y<=57343?g+="\uFFFD\uFFFD\uFFFD":g+=String.fromCharCode(y),c+=6;continue}if((a&248)==240&&c+9<d&&(h=parseInt(l.slice(c+4,c+6),16),f=parseInt(l.slice(c+7,c+9),16),p=parseInt(l.slice(c+10,c+12),16),(h&192)==128&&(f&192)==128&&(p&192)==128)){y=a<<18&1835008|h<<12&258048|f<<6&4032|p&63,y<65536||y>1114111?g+="\uFFFD\uFFFD\uFFFD\uFFFD":(y-=65536,g+=String.fromCharCode(55296+(y>>10),56320+(y&1023))),c+=9;continue}g+="\uFFFD"}return g})}Ea.defaultChars=";/?:@&=+$,#";Ea.componentChars="";op.exports=Ea});var lp=Fe((MS,sp)=>{"use strict";sp.exports=function(t){var n="";return n+=t.protocol||"",n+=t.slashes?"//":"",n+=t.auth?t.auth+"@":"",t.hostname&&t.hostname.indexOf(":")!==-1?n+="["+t.hostname+"]":n+=t.hostname||"",n+=t.port?":"+t.port:"",n+=t.pathname||"",n+=t.search||"",n+=t.hash||"",n}});var mp=Fe((OS,pp)=>{"use strict";function Ca(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var p0=/^([a-z0-9.+-]+:)/i,m0=/:[0-9]*$/,g0=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,v0=["<",">",'"',"`"," ","\r",`
`," "],y0=["{","}","|","\\","^","`"].concat(v0),b0=["'"].concat(y0),up=["%","/","?",";","#"].concat(b0),cp=["/","?","#"],x0=255,fp=/^[+a-z0-9A-Z_-]{0,63}$/,w0=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,dp={javascript:!0,"javascript:":!0},hp={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function k0(i,t){if(i&&i instanceof Ca)return i;var n=new Ca;return n.parse(i,t),n}Ca.prototype.parse=function(i,t){var n,l,c,d,a,h=i;if(h=h.trim(),!t&&i.split("#").length===1){var f=g0.exec(h);if(f)return this.pathname=f[1],f[2]&&(this.search=f[2]),this}var p=p0.exec(h);if(p&&(p=p[0],c=p.toLowerCase(),this.protocol=p,h=h.substr(p.length)),(t||p||h.match(/^\/\/[^@\/]+@[^@\/]+/))&&(a=h.substr(0,2)==="//",a&&!(p&&dp[p])&&(h=h.substr(2),this.slashes=!0)),!dp[p]&&(a||p&&!hp[p])){var y=-1;for(n=0;n<cp.length;n++)d=h.indexOf(cp[n]),d!==-1&&(y===-1||d<y)&&(y=d);var g,v;for(y===-1?v=h.lastIndexOf("@"):v=h.lastIndexOf("@",y),v!==-1&&(g=h.slice(0,v),h=h.slice(v+1),this.auth=g),y=-1,n=0;n<up.length;n++)d=h.indexOf(up[n]),d!==-1&&(y===-1||d<y)&&(y=d);y===-1&&(y=h.length),h[y-1]===":"&&y--;var b=h.slice(0,y);h=h.slice(y),this.parseHost(b),this.hostname=this.hostname||"";var k=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!k){var _=this.hostname.split(/\./);for(n=0,l=_.length;n<l;n++){var w=_[n];if(!!w&&!w.match(fp)){for(var I="",S=0,R=w.length;S<R;S++)w.charCodeAt(S)>127?I+="x":I+=w[S];if(!I.match(fp)){var O=_.slice(0,n),U=_.slice(n+1),$=w.match(w0);$&&(O.push($[1]),U.unshift($[2])),U.length&&(h=U.join(".")+h),this.hostname=O.join(".");break}}}}this.hostname.length>x0&&(this.hostname=""),k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var J=h.indexOf("#");J!==-1&&(this.hash=h.substr(J),h=h.slice(0,J));var K=h.indexOf("?");return K!==-1&&(this.search=h.substr(K),h=h.slice(0,K)),h&&(this.pathname=h),hp[c]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Ca.prototype.parseHost=function(i){var t=m0.exec(i);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),i=i.substr(0,i.length-t.length)),i&&(this.hostname=i)};pp.exports=k0});var al=Fe((PS,ho)=>{"use strict";ho.exports.encode=np();ho.exports.decode=ap();ho.exports.format=lp();ho.exports.parse=mp()});var sl=Fe((RS,gp)=>{gp.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/});var ll=Fe((zS,vp)=>{vp.exports=/[\0-\x1F\x7F-\x9F]/});var bp=Fe((NS,yp)=>{yp.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/});var ul=Fe((BS,xp)=>{xp.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/});var wp=Fe(bi=>{"use strict";bi.Any=sl();bi.Cc=ll();bi.Cf=bp();bi.P=_a();bi.Z=ul()});var Ft=Fe(ar=>{"use strict";function _0(i){return Object.prototype.toString.call(i)}function S0(i){return _0(i)==="[object String]"}var E0=Object.prototype.hasOwnProperty;function kp(i,t){return E0.call(i,t)}function C0(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){if(!!n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(l){i[l]=n[l]})}}),i}function T0(i,t,n){return[].concat(i.slice(0,t),n,i.slice(t+1))}function _p(i){return!(i>=55296&&i<=57343||i>=64976&&i<=65007||(i&65535)==65535||(i&65535)==65534||i>=0&&i<=8||i===11||i>=14&&i<=31||i>=127&&i<=159||i>1114111)}function Sp(i){if(i>65535){i-=65536;var t=55296+(i>>10),n=56320+(i&1023);return String.fromCharCode(t,n)}return String.fromCharCode(i)}var Ep=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,A0=/&([a-z#][a-z0-9]{1,31});/gi,L0=new RegExp(Ep.source+"|"+A0.source,"gi"),D0=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,Cp=ol();function I0(i,t){var n=0;return kp(Cp,t)?Cp[t]:t.charCodeAt(0)===35&&D0.test(t)&&(n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),_p(n))?Sp(n):i}function F0(i){return i.indexOf("\\")<0?i:i.replace(Ep,"$1")}function M0(i){return i.indexOf("\\")<0&&i.indexOf("&")<0?i:i.replace(L0,function(t,n,l){return n||I0(t,l)})}var O0=/[&<>"]/,P0=/[&<>"]/g,R0={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function z0(i){return R0[i]}function N0(i){return O0.test(i)?i.replace(P0,z0):i}var B0=/[.?*+^$[\]\\(){}|-]/g;function q0(i){return i.replace(B0,"\\$&")}function j0(i){switch(i){case 9:case 32:return!0}return!1}function $0(i){if(i>=8192&&i<=8202)return!0;switch(i){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var U0=_a();function H0(i){return U0.test(i)}function W0(i){switch(i){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function G0(i){return i=i.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(i=i.replace(/ẞ/g,"\xDF")),i.toLowerCase().toUpperCase()}ar.lib={};ar.lib.mdurl=al();ar.lib.ucmicro=wp();ar.assign=C0;ar.isString=S0;ar.has=kp;ar.unescapeMd=F0;ar.unescapeAll=M0;ar.isValidEntityCode=_p;ar.fromCodePoint=Sp;ar.escapeHtml=N0;ar.arrayReplaceAt=T0;ar.isSpace=j0;ar.isWhiteSpace=$0;ar.isMdAsciiPunct=W0;ar.isPunctChar=H0;ar.escapeRE=q0;ar.normalizeReference=G0});var Ap=Fe(($S,Tp)=>{"use strict";Tp.exports=function(t,n,l){var c,d,a,h,f=-1,p=t.posMax,y=t.pos;for(t.pos=n+1,c=1;t.pos<p;){if(a=t.src.charCodeAt(t.pos),a===93&&(c--,c===0)){d=!0;break}if(h=t.pos,t.md.inline.skipToken(t),a===91){if(h===t.pos-1)c++;else if(l)return t.pos=y,-1}}return d&&(f=t.pos),t.pos=y,f}});var Ip=Fe((US,Dp)=>{"use strict";var Lp=Ft().unescapeAll;Dp.exports=function(t,n,l){var c,d,a=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(n)===60){for(n++;n<l;){if(c=t.charCodeAt(n),c===10||c===60)return f;if(c===62)return f.pos=n+1,f.str=Lp(t.slice(h+1,n)),f.ok=!0,f;if(c===92&&n+1<l){n+=2;continue}n++}return f}for(d=0;n<l&&(c=t.charCodeAt(n),!(c===32||c<32||c===127));){if(c===92&&n+1<l){if(t.charCodeAt(n+1)===32)break;n+=2;continue}if(c===40&&(d++,d>32))return f;if(c===41){if(d===0)break;d--}n++}return h===n||d!==0||(f.str=Lp(t.slice(h,n)),f.lines=a,f.pos=n,f.ok=!0),f}});var Mp=Fe((HS,Fp)=>{"use strict";var K0=Ft().unescapeAll;Fp.exports=function(t,n,l){var c,d,a=0,h=n,f={ok:!1,pos:0,lines:0,str:""};if(n>=l||(d=t.charCodeAt(n),d!==34&&d!==39&&d!==40))return f;for(n++,d===40&&(d=41);n<l;){if(c=t.charCodeAt(n),c===d)return f.pos=n+1,f.lines=a,f.str=K0(t.slice(h+1,n)),f.ok=!0,f;if(c===40&&d===41)return f;c===10?a++:c===92&&n+1<l&&(n++,t.charCodeAt(n)===10&&a++),n++}return f}});var Op=Fe(Ta=>{"use strict";Ta.parseLinkLabel=Ap();Ta.parseLinkDestination=Ip();Ta.parseLinkTitle=Mp()});var Rp=Fe((GS,Pp)=>{"use strict";var V0=Ft().assign,Y0=Ft().unescapeAll,$n=Ft().escapeHtml,tn={};tn.code_inline=function(i,t,n,l,c){var d=i[t];return"<code"+c.renderAttrs(d)+">"+$n(i[t].content)+"</code>"};tn.code_block=function(i,t,n,l,c){var d=i[t];return"<pre"+c.renderAttrs(d)+"><code>"+$n(i[t].content)+`</code></pre>
`};tn.fence=function(i,t,n,l,c){var d=i[t],a=d.info?Y0(d.info).trim():"",h="",f="",p,y,g,v,b;return a&&(g=a.split(/(\s+)/g),h=g[0],f=g.slice(2).join("")),n.highlight?p=n.highlight(d.content,h,f)||$n(d.content):p=$n(d.content),p.indexOf("<pre")===0?p+`
`:a?(y=d.attrIndex("class"),v=d.attrs?d.attrs.slice():[],y<0?v.push(["class",n.langPrefix+h]):(v[y]=v[y].slice(),v[y][1]+=" "+n.langPrefix+h),b={attrs:v},"<pre><code"+c.renderAttrs(b)+">"+p+`</code></pre>
`):"<pre><code"+c.renderAttrs(d)+">"+p+`</code></pre>
`};tn.image=function(i,t,n,l,c){var d=i[t];return d.attrs[d.attrIndex("alt")][1]=c.renderInlineAsText(d.children,n,l),c.renderToken(i,t,n)};tn.hardbreak=function(i,t,n){return n.xhtmlOut?`<br />
`:`<br>
`};tn.softbreak=function(i,t,n){return n.breaks?n.xhtmlOut?`<br />
`:`<br>
`:`
`};tn.text=function(i,t){return $n(i[t].content)};tn.html_block=function(i,t){return i[t].content};tn.html_inline=function(i,t){return i[t].content};function xi(){this.rules=V0({},tn)}xi.prototype.renderAttrs=function(t){var n,l,c;if(!t.attrs)return"";for(c="",n=0,l=t.attrs.length;n<l;n++)c+=" "+$n(t.attrs[n][0])+'="'+$n(t.attrs[n][1])+'"';return c};xi.prototype.renderToken=function(t,n,l){var c,d="",a=!1,h=t[n];return h.hidden?"":(h.block&&h.nesting!==-1&&n&&t[n-1].hidden&&(d+=`
`),d+=(h.nesting===-1?"</":"<")+h.tag,d+=this.renderAttrs(h),h.nesting===0&&l.xhtmlOut&&(d+=" /"),h.block&&(a=!0,h.nesting===1&&n+1<t.length&&(c=t[n+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===h.tag)&&(a=!1))),d+=a?`>
`:">",d)};xi.prototype.renderInline=function(i,t,n){for(var l,c="",d=this.rules,a=0,h=i.length;a<h;a++)l=i[a].type,typeof d[l]!="undefined"?c+=d[l](i,a,t,n,this):c+=this.renderToken(i,a,t);return c};xi.prototype.renderInlineAsText=function(i,t,n){for(var l="",c=0,d=i.length;c<d;c++)i[c].type==="text"?l+=i[c].content:i[c].type==="image"?l+=this.renderInlineAsText(i[c].children,t,n):i[c].type==="softbreak"&&(l+=`
`);return l};xi.prototype.render=function(i,t,n){var l,c,d,a="",h=this.rules;for(l=0,c=i.length;l<c;l++)d=i[l].type,d==="inline"?a+=this.renderInline(i[l].children,t,n):typeof h[d]!="undefined"?a+=h[i[l].type](i,l,t,n,this):a+=this.renderToken(i,l,t,n);return a};Pp.exports=xi});var Aa=Fe((KS,zp)=>{"use strict";function Kr(){this.__rules__=[],this.__cache__=null}Kr.prototype.__find__=function(i){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===i)return t;return-1};Kr.prototype.__compile__=function(){var i=this,t=[""];i.__rules__.forEach(function(n){!n.enabled||n.alt.forEach(function(l){t.indexOf(l)<0&&t.push(l)})}),i.__cache__={},t.forEach(function(n){i.__cache__[n]=[],i.__rules__.forEach(function(l){!l.enabled||n&&l.alt.indexOf(n)<0||i.__cache__[n].push(l.fn)})})};Kr.prototype.at=function(i,t,n){var l=this.__find__(i),c=n||{};if(l===-1)throw new Error("Parser rule not found: "+i);this.__rules__[l].fn=t,this.__rules__[l].alt=c.alt||[],this.__cache__=null};Kr.prototype.before=function(i,t,n,l){var c=this.__find__(i),d=l||{};if(c===-1)throw new Error("Parser rule not found: "+i);this.__rules__.splice(c,0,{name:t,enabled:!0,fn:n,alt:d.alt||[]}),this.__cache__=null};Kr.prototype.after=function(i,t,n,l){var c=this.__find__(i),d=l||{};if(c===-1)throw new Error("Parser rule not found: "+i);this.__rules__.splice(c+1,0,{name:t,enabled:!0,fn:n,alt:d.alt||[]}),this.__cache__=null};Kr.prototype.push=function(i,t,n){var l=n||{};this.__rules__.push({name:i,enabled:!0,fn:t,alt:l.alt||[]}),this.__cache__=null};Kr.prototype.enable=function(i,t){Array.isArray(i)||(i=[i]);var n=[];return i.forEach(function(l){var c=this.__find__(l);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[c].enabled=!0,n.push(l)},this),this.__cache__=null,n};Kr.prototype.enableOnly=function(i,t){Array.isArray(i)||(i=[i]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(i,t)};Kr.prototype.disable=function(i,t){Array.isArray(i)||(i=[i]);var n=[];return i.forEach(function(l){var c=this.__find__(l);if(c<0){if(t)return;throw new Error("Rules manager: invalid rule name "+l)}this.__rules__[c].enabled=!1,n.push(l)},this),this.__cache__=null,n};Kr.prototype.getRules=function(i){return this.__cache__===null&&this.__compile__(),this.__cache__[i]||[]};zp.exports=Kr});var Bp=Fe((VS,Np)=>{"use strict";var X0=/\r\n?|\n/g,Z0=/\0/g;Np.exports=function(t){var n;n=t.src.replace(X0,`
`),n=n.replace(Z0,"\uFFFD"),t.src=n}});var jp=Fe((YS,qp)=>{"use strict";qp.exports=function(t){var n;t.inlineMode?(n=new t.Token("inline","",0),n.content=t.src,n.map=[0,1],n.children=[],t.tokens.push(n)):t.md.block.parse(t.src,t.md,t.env,t.tokens)}});var Up=Fe((XS,$p)=>{"use strict";$p.exports=function(t){var n=t.tokens,l,c,d;for(c=0,d=n.length;c<d;c++)l=n[c],l.type==="inline"&&t.md.inline.parse(l.content,t.md,t.env,l.children)}});var Wp=Fe((ZS,Hp)=>{"use strict";var Q0=Ft().arrayReplaceAt;function J0(i){return/^<a[>\s]/i.test(i)}function ew(i){return/^<\/a\s*>/i.test(i)}Hp.exports=function(t){var n,l,c,d,a,h,f,p,y,g,v,b,k,_,w,I,S=t.tokens,R;if(!!t.md.options.linkify){for(l=0,c=S.length;l<c;l++)if(!(S[l].type!=="inline"||!t.md.linkify.pretest(S[l].content)))for(d=S[l].children,k=0,n=d.length-1;n>=0;n--){if(h=d[n],h.type==="link_close"){for(n--;d[n].level!==h.level&&d[n].type!=="link_open";)n--;continue}if(h.type==="html_inline"&&(J0(h.content)&&k>0&&k--,ew(h.content)&&k++),!(k>0)&&h.type==="text"&&t.md.linkify.test(h.content)){for(y=h.content,R=t.md.linkify.match(y),f=[],b=h.level,v=0,p=0;p<R.length;p++)_=R[p].url,w=t.md.normalizeLink(_),!!t.md.validateLink(w)&&(I=R[p].text,R[p].schema?R[p].schema==="mailto:"&&!/^mailto:/i.test(I)?I=t.md.normalizeLinkText("mailto:"+I).replace(/^mailto:/,""):I=t.md.normalizeLinkText(I):I=t.md.normalizeLinkText("http://"+I).replace(/^http:\/\//,""),g=R[p].index,g>v&&(a=new t.Token("text","",0),a.content=y.slice(v,g),a.level=b,f.push(a)),a=new t.Token("link_open","a",1),a.attrs=[["href",w]],a.level=b++,a.markup="linkify",a.info="auto",f.push(a),a=new t.Token("text","",0),a.content=I,a.level=b,f.push(a),a=new t.Token("link_close","a",-1),a.level=--b,a.markup="linkify",a.info="auto",f.push(a),v=R[p].lastIndex);v<y.length&&(a=new t.Token("text","",0),a.content=y.slice(v),a.level=b,f.push(a)),S[l].children=d=Q0(d,n,f)}}}}});var Vp=Fe((QS,Kp)=>{"use strict";var Gp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tw=/\((c|tm|r|p)\)/i,rw=/\((c|tm|r|p)\)/ig,nw={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function iw(i,t){return nw[t.toLowerCase()]}function ow(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&(n.content=n.content.replace(rw,iw)),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}function aw(i){var t,n,l=0;for(t=i.length-1;t>=0;t--)n=i[t],n.type==="text"&&!l&&Gp.test(n.content)&&(n.content=n.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),n.type==="link_open"&&n.info==="auto"&&l--,n.type==="link_close"&&n.info==="auto"&&l++}Kp.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type==="inline"&&(tw.test(t.tokens[n].content)&&ow(t.tokens[n].children),Gp.test(t.tokens[n].content)&&aw(t.tokens[n].children))}});var tm=Fe((JS,em)=>{"use strict";var Yp=Ft().isWhiteSpace,Xp=Ft().isPunctChar,Zp=Ft().isMdAsciiPunct,sw=/['"]/,Qp=/['"]/g,Jp="\u2019";function La(i,t,n){return i.substr(0,t)+n+i.substr(t+1)}function lw(i,t){var n,l,c,d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U,$;for(O=[],n=0;n<i.length;n++){for(l=i[n],f=i[n].level,S=O.length-1;S>=0&&!(O[S].level<=f);S--);if(O.length=S+1,l.type!=="text")continue;c=l.content,a=0,h=c.length;e:for(;a<h&&(Qp.lastIndex=a,d=Qp.exec(c),!!d);){if(w=I=!0,a=d.index+1,R=d[0]==="'",y=32,d.index-1>=0)y=c.charCodeAt(d.index-1);else for(S=n-1;S>=0&&!(i[S].type==="softbreak"||i[S].type==="hardbreak");S--)if(!!i[S].content){y=i[S].content.charCodeAt(i[S].content.length-1);break}if(g=32,a<h)g=c.charCodeAt(a);else for(S=n+1;S<i.length&&!(i[S].type==="softbreak"||i[S].type==="hardbreak");S++)if(!!i[S].content){g=i[S].content.charCodeAt(0);break}if(v=Zp(y)||Xp(String.fromCharCode(y)),b=Zp(g)||Xp(String.fromCharCode(g)),k=Yp(y),_=Yp(g),_?w=!1:b&&(k||v||(w=!1)),k?I=!1:v&&(_||b||(I=!1)),g===34&&d[0]==='"'&&y>=48&&y<=57&&(I=w=!1),w&&I&&(w=v,I=b),!w&&!I){R&&(l.content=La(l.content,d.index,Jp));continue}if(I){for(S=O.length-1;S>=0&&(p=O[S],!(O[S].level<f));S--)if(p.single===R&&O[S].level===f){p=O[S],R?(U=t.md.options.quotes[2],$=t.md.options.quotes[3]):(U=t.md.options.quotes[0],$=t.md.options.quotes[1]),l.content=La(l.content,d.index,$),i[p.token].content=La(i[p.token].content,p.pos,U),a+=$.length-1,p.token===n&&(a+=U.length-1),c=l.content,h=c.length,O.length=S;continue e}}w?O.push({token:n,pos:d.index,single:R,level:f}):I&&R&&(l.content=La(l.content,d.index,Jp))}}}em.exports=function(t){var n;if(!!t.md.options.typographer)for(n=t.tokens.length-1;n>=0;n--)t.tokens[n].type!=="inline"||!sw.test(t.tokens[n].content)||lw(t.tokens[n].children,t)}});var Da=Fe((e1,rm)=>{"use strict";function wi(i,t,n){this.type=i,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}wi.prototype.attrIndex=function(t){var n,l,c;if(!this.attrs)return-1;for(n=this.attrs,l=0,c=n.length;l<c;l++)if(n[l][0]===t)return l;return-1};wi.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};wi.prototype.attrSet=function(t,n){var l=this.attrIndex(t),c=[t,n];l<0?this.attrPush(c):this.attrs[l]=c};wi.prototype.attrGet=function(t){var n=this.attrIndex(t),l=null;return n>=0&&(l=this.attrs[n][1]),l};wi.prototype.attrJoin=function(t,n){var l=this.attrIndex(t);l<0?this.attrPush([t,n]):this.attrs[l][1]=this.attrs[l][1]+" "+n};rm.exports=wi});var om=Fe((t1,im)=>{"use strict";var uw=Da();function nm(i,t,n){this.src=i,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}nm.prototype.Token=uw;im.exports=nm});var sm=Fe((r1,am)=>{"use strict";var cw=Aa(),cl=[["normalize",Bp()],["block",jp()],["inline",Up()],["linkify",Wp()],["replacements",Vp()],["smartquotes",tm()]];function fl(){this.ruler=new cw;for(var i=0;i<cl.length;i++)this.ruler.push(cl[i][0],cl[i][1])}fl.prototype.process=function(i){var t,n,l;for(l=this.ruler.getRules(""),t=0,n=l.length;t<n;t++)l[t](i)};fl.prototype.State=om();am.exports=fl});var cm=Fe((n1,um)=>{"use strict";var dl=Ft().isSpace;function hl(i,t){var n=i.bMarks[t]+i.tShift[t],l=i.eMarks[t];return i.src.substr(n,l-n)}function lm(i){var t=[],n=0,l=i.length,c,d=!1,a=0,h="";for(c=i.charCodeAt(n);n<l;)c===124&&(d?(h+=i.substring(a,n-1),a=n):(t.push(h+i.substring(a,n)),h="",a=n+1)),d=c===92,n++,c=i.charCodeAt(n);return t.push(h+i.substring(a)),t}um.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U,$;if(n+2>l||(y=n+1,t.sCount[y]<t.blkIndent)||t.sCount[y]-t.blkIndent>=4||(h=t.bMarks[y]+t.tShift[y],h>=t.eMarks[y])||(U=t.src.charCodeAt(h++),U!==124&&U!==45&&U!==58)||h>=t.eMarks[y]||($=t.src.charCodeAt(h++),$!==124&&$!==45&&$!==58&&!dl($))||U===45&&dl($))return!1;for(;h<t.eMarks[y];){if(d=t.src.charCodeAt(h),d!==124&&d!==45&&d!==58&&!dl(d))return!1;h++}for(a=hl(t,n+1),g=a.split("|"),k=[],f=0;f<g.length;f++){if(_=g[f].trim(),!_){if(f===0||f===g.length-1)continue;return!1}if(!/^:?-+:?$/.test(_))return!1;_.charCodeAt(_.length-1)===58?k.push(_.charCodeAt(0)===58?"center":"right"):_.charCodeAt(0)===58?k.push("left"):k.push("")}if(a=hl(t,n).trim(),a.indexOf("|")===-1||t.sCount[n]-t.blkIndent>=4||(g=lm(a),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),v=g.length,v===0||v!==k.length))return!1;if(c)return!0;for(S=t.parentType,t.parentType="table",O=t.md.block.ruler.getRules("blockquote"),b=t.push("table_open","table",1),b.map=w=[n,0],b=t.push("thead_open","thead",1),b.map=[n,n+1],b=t.push("tr_open","tr",1),b.map=[n,n+1],f=0;f<g.length;f++)b=t.push("th_open","th",1),k[f]&&(b.attrs=[["style","text-align:"+k[f]]]),b=t.push("inline","",0),b.content=g[f].trim(),b.children=[],b=t.push("th_close","th",-1);for(b=t.push("tr_close","tr",-1),b=t.push("thead_close","thead",-1),y=n+2;y<l&&!(t.sCount[y]<t.blkIndent);y++){for(R=!1,f=0,p=O.length;f<p;f++)if(O[f](t,y,l,!0)){R=!0;break}if(R||(a=hl(t,y).trim(),!a)||t.sCount[y]-t.blkIndent>=4)break;for(g=lm(a),g.length&&g[0]===""&&g.shift(),g.length&&g[g.length-1]===""&&g.pop(),y===n+2&&(b=t.push("tbody_open","tbody",1),b.map=I=[n+2,0]),b=t.push("tr_open","tr",1),b.map=[y,y+1],f=0;f<v;f++)b=t.push("td_open","td",1),k[f]&&(b.attrs=[["style","text-align:"+k[f]]]),b=t.push("inline","",0),b.content=g[f]?g[f].trim():"",b.children=[],b=t.push("td_close","td",-1);b=t.push("tr_close","tr",-1)}return I&&(b=t.push("tbody_close","tbody",-1),I[1]=y),b=t.push("table_close","table",-1),w[1]=y,t.parentType=S,t.line=y,!0}});var dm=Fe((i1,fm)=>{"use strict";fm.exports=function(t,n,l){var c,d,a;if(t.sCount[n]-t.blkIndent<4)return!1;for(d=c=n+1;c<l;){if(t.isEmpty(c)){c++;continue}if(t.sCount[c]-t.blkIndent>=4){c++,d=c;continue}break}return t.line=d,a=t.push("code_block","code",0),a.content=t.getLines(n,d,4+t.blkIndent,!0),a.map=[n,t.line],!0}});var pm=Fe((o1,hm)=>{"use strict";hm.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v=!1,b=t.bMarks[n]+t.tShift[n],k=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||b+3>k||(d=t.src.charCodeAt(b),d!==126&&d!==96)||(p=b,b=t.skipChars(b,d),a=b-p,a<3)||(g=t.src.slice(p,b),h=t.src.slice(b,k),d===96&&h.indexOf(String.fromCharCode(d))>=0))return!1;if(c)return!0;for(f=n;f++,!(f>=l||(b=p=t.bMarks[f]+t.tShift[f],k=t.eMarks[f],b<k&&t.sCount[f]<t.blkIndent));)if(t.src.charCodeAt(b)===d&&!(t.sCount[f]-t.blkIndent>=4)&&(b=t.skipChars(b,d),!(b-p<a)&&(b=t.skipSpaces(b),!(b<k)))){v=!0;break}return a=t.sCount[n],t.line=f+(v?1:0),y=t.push("fence","code",0),y.info=h,y.content=t.getLines(n+1,f,a,!0),y.markup=g,y.map=[n,t.line],!0}});var vm=Fe((a1,gm)=>{"use strict";var mm=Ft().isSpace;gm.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U,$,J,K,X=t.lineMax,G=t.bMarks[n]+t.tShift[n],q=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt(G++)!==62)return!1;if(c)return!0;for(f=b=t.sCount[n]+1,t.src.charCodeAt(G)===32?(G++,f++,b++,d=!1,O=!0):t.src.charCodeAt(G)===9?(O=!0,(t.bsCount[n]+b)%4==3?(G++,f++,b++,d=!1):d=!0):O=!1,k=[t.bMarks[n]],t.bMarks[n]=G;G<q&&(a=t.src.charCodeAt(G),mm(a));){a===9?b+=4-(b+t.bsCount[n]+(d?1:0))%4:b++;G++}for(_=[t.bsCount[n]],t.bsCount[n]=t.sCount[n]+1+(O?1:0),y=G>=q,S=[t.sCount[n]],t.sCount[n]=b-f,R=[t.tShift[n]],t.tShift[n]=G-t.bMarks[n],$=t.md.block.ruler.getRules("blockquote"),I=t.parentType,t.parentType="blockquote",v=n+1;v<l&&(K=t.sCount[v]<t.blkIndent,G=t.bMarks[v]+t.tShift[v],q=t.eMarks[v],!(G>=q));v++){if(t.src.charCodeAt(G++)===62&&!K){for(f=b=t.sCount[v]+1,t.src.charCodeAt(G)===32?(G++,f++,b++,d=!1,O=!0):t.src.charCodeAt(G)===9?(O=!0,(t.bsCount[v]+b)%4==3?(G++,f++,b++,d=!1):d=!0):O=!1,k.push(t.bMarks[v]),t.bMarks[v]=G;G<q&&(a=t.src.charCodeAt(G),mm(a));){a===9?b+=4-(b+t.bsCount[v]+(d?1:0))%4:b++;G++}y=G>=q,_.push(t.bsCount[v]),t.bsCount[v]=t.sCount[v]+1+(O?1:0),S.push(t.sCount[v]),t.sCount[v]=b-f,R.push(t.tShift[v]),t.tShift[v]=G-t.bMarks[v];continue}if(y)break;for(U=!1,h=0,p=$.length;h<p;h++)if($[h](t,v,l,!0)){U=!0;break}if(U){t.lineMax=v,t.blkIndent!==0&&(k.push(t.bMarks[v]),_.push(t.bsCount[v]),R.push(t.tShift[v]),S.push(t.sCount[v]),t.sCount[v]-=t.blkIndent);break}k.push(t.bMarks[v]),_.push(t.bsCount[v]),R.push(t.tShift[v]),S.push(t.sCount[v]),t.sCount[v]=-1}for(w=t.blkIndent,t.blkIndent=0,J=t.push("blockquote_open","blockquote",1),J.markup=">",J.map=g=[n,0],t.md.block.tokenize(t,n,v),J=t.push("blockquote_close","blockquote",-1),J.markup=">",t.lineMax=X,t.parentType=I,g[1]=t.line,h=0;h<R.length;h++)t.bMarks[h+n]=k[h],t.tShift[h+n]=R[h],t.sCount[h+n]=S[h],t.bsCount[h+n]=_[h];return t.blkIndent=w,!0}});var bm=Fe((s1,ym)=>{"use strict";var fw=Ft().isSpace;ym.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p++),d!==42&&d!==45&&d!==95))return!1;for(a=1;p<y;){if(h=t.src.charCodeAt(p++),h!==d&&!fw(h))return!1;h===d&&a++}return a<3?!1:(c||(t.line=n+1,f=t.push("hr","hr",0),f.map=[n,t.line],f.markup=Array(a+1).join(String.fromCharCode(d))),!0)}});var Sm=Fe((l1,_m)=>{"use strict";var xm=Ft().isSpace;function wm(i,t){var n,l,c,d;return l=i.bMarks[t]+i.tShift[t],c=i.eMarks[t],n=i.src.charCodeAt(l++),n!==42&&n!==45&&n!==43||l<c&&(d=i.src.charCodeAt(l),!xm(d))?-1:l}function km(i,t){var n,l=i.bMarks[t]+i.tShift[t],c=l,d=i.eMarks[t];if(c+1>=d||(n=i.src.charCodeAt(c++),n<48||n>57))return-1;for(;;){if(c>=d)return-1;if(n=i.src.charCodeAt(c++),n>=48&&n<=57){if(c-l>=10)return-1;continue}if(n===41||n===46)break;return-1}return c<d&&(n=i.src.charCodeAt(c),!xm(n))?-1:c}function dw(i,t){var n,l,c=i.level+2;for(n=t+2,l=i.tokens.length-2;n<l;n++)i.tokens[n].level===c&&i.tokens[n].type==="paragraph_open"&&(i.tokens[n+2].hidden=!0,i.tokens[n].hidden=!0,n+=2)}_m.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U,$,J,K,X,G,q,T,A,j,te,F,z=!1,se=!0;if(t.sCount[n]-t.blkIndent>=4||t.listIndent>=0&&t.sCount[n]-t.listIndent>=4&&t.sCount[n]<t.blkIndent)return!1;if(c&&t.parentType==="paragraph"&&t.tShift[n]>=t.blkIndent&&(z=!0),(q=km(t,n))>=0){if(g=!0,A=t.bMarks[n]+t.tShift[n],I=Number(t.src.substr(A,q-A-1)),z&&I!==1)return!1}else if((q=wm(t,n))>=0)g=!1;else return!1;if(z&&t.skipSpaces(q)>=t.eMarks[n])return!1;if(w=t.src.charCodeAt(q-1),c)return!0;for(_=t.tokens.length,g?(F=t.push("ordered_list_open","ol",1),I!==1&&(F.attrs=[["start",I]])):F=t.push("bullet_list_open","ul",1),F.map=k=[n,0],F.markup=String.fromCharCode(w),R=n,T=!1,te=t.md.block.ruler.getRules("list"),$=t.parentType,t.parentType="list";R<l;){for(G=q,S=t.eMarks[R],y=O=t.sCount[R]+q-(t.bMarks[n]+t.tShift[n]);G<S;){if(d=t.src.charCodeAt(G),d===9)O+=4-(O+t.bsCount[R])%4;else if(d===32)O++;else break;G++}if(a=G,a>=S?p=1:p=O-y,p>4&&(p=1),f=y+p,F=t.push("list_item_open","li",1),F.markup=String.fromCharCode(w),F.map=v=[n,0],X=t.tight,K=t.tShift[n],J=t.sCount[n],U=t.listIndent,t.listIndent=t.blkIndent,t.blkIndent=f,t.tight=!0,t.tShift[n]=a-t.bMarks[n],t.sCount[n]=O,a>=S&&t.isEmpty(n+1)?t.line=Math.min(t.line+2,l):t.md.block.tokenize(t,n,l,!0),(!t.tight||T)&&(se=!1),T=t.line-n>1&&t.isEmpty(t.line-1),t.blkIndent=t.listIndent,t.listIndent=U,t.tShift[n]=K,t.sCount[n]=J,t.tight=X,F=t.push("list_item_close","li",-1),F.markup=String.fromCharCode(w),R=n=t.line,v[1]=R,a=t.bMarks[n],R>=l||t.sCount[R]<t.blkIndent||t.sCount[n]-t.blkIndent>=4)break;for(j=!1,h=0,b=te.length;h<b;h++)if(te[h](t,R,l,!0)){j=!0;break}if(j)break;if(g){if(q=km(t,R),q<0)break}else if(q=wm(t,R),q<0)break;if(w!==t.src.charCodeAt(q-1))break}return g?F=t.push("ordered_list_close","ol",-1):F=t.push("bullet_list_close","ul",-1),F.markup=String.fromCharCode(w),k[1]=R,t.line=R,t.parentType=$,se&&dw(t,_),!0}});var Cm=Fe((u1,Em)=>{"use strict";var hw=Ft().normalizeReference,Ia=Ft().isSpace;Em.exports=function(t,n,l,c){var d,a,h,f,p,y,g,v,b,k,_,w,I,S,R,O,U=0,$=t.bMarks[n]+t.tShift[n],J=t.eMarks[n],K=n+1;if(t.sCount[n]-t.blkIndent>=4||t.src.charCodeAt($)!==91)return!1;for(;++$<J;)if(t.src.charCodeAt($)===93&&t.src.charCodeAt($-1)!==92){if($+1===J||t.src.charCodeAt($+1)!==58)return!1;break}for(f=t.lineMax,R=t.md.block.ruler.getRules("reference"),k=t.parentType,t.parentType="reference";K<f&&!t.isEmpty(K);K++)if(!(t.sCount[K]-t.blkIndent>3)&&!(t.sCount[K]<0)){for(S=!1,y=0,g=R.length;y<g;y++)if(R[y](t,K,f,!0)){S=!0;break}if(S)break}for(I=t.getLines(n,K,t.blkIndent,!1).trim(),J=I.length,$=1;$<J;$++){if(d=I.charCodeAt($),d===91)return!1;if(d===93){b=$;break}else d===10?U++:d===92&&($++,$<J&&I.charCodeAt($)===10&&U++)}if(b<0||I.charCodeAt(b+1)!==58)return!1;for($=b+2;$<J;$++)if(d=I.charCodeAt($),d===10)U++;else if(!Ia(d))break;if(_=t.md.helpers.parseLinkDestination(I,$,J),!_.ok||(p=t.md.normalizeLink(_.str),!t.md.validateLink(p)))return!1;for($=_.pos,U+=_.lines,a=$,h=U,w=$;$<J;$++)if(d=I.charCodeAt($),d===10)U++;else if(!Ia(d))break;for(_=t.md.helpers.parseLinkTitle(I,$,J),$<J&&w!==$&&_.ok?(O=_.str,$=_.pos,U+=_.lines):(O="",$=a,U=h);$<J&&(d=I.charCodeAt($),!!Ia(d));)$++;if($<J&&I.charCodeAt($)!==10&&O)for(O="",$=a,U=h;$<J&&(d=I.charCodeAt($),!!Ia(d));)$++;return $<J&&I.charCodeAt($)!==10||(v=hw(I.slice(1,b)),!v)?!1:(c||(typeof t.env.references=="undefined"&&(t.env.references={}),typeof t.env.references[v]=="undefined"&&(t.env.references[v]={title:O,href:p}),t.parentType=k,t.line=n+U+1),!0)}});var Am=Fe((c1,Tm)=>{"use strict";Tm.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var ml=Fe((f1,pl)=>{"use strict";var pw="[a-zA-Z_:][a-zA-Z0-9:._-]*",mw="[^\"'=<>`\\x00-\\x20]+",gw="'[^']*'",vw='"[^"]*"',yw="(?:"+mw+"|"+gw+"|"+vw+")",bw="(?:\\s+"+pw+"(?:\\s*=\\s*"+yw+")?)",Lm="<[A-Za-z][A-Za-z0-9\\-]*"+bw+"*\\s*\\/?>",Dm="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",xw="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",ww="<[?][\\s\\S]*?[?]>",kw="<![A-Z]+\\s+[^>]*>",_w="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Sw=new RegExp("^(?:"+Lm+"|"+Dm+"|"+xw+"|"+ww+"|"+kw+"|"+_w+")"),Ew=new RegExp("^(?:"+Lm+"|"+Dm+")");pl.exports.HTML_TAG_RE=Sw;pl.exports.HTML_OPEN_CLOSE_TAG_RE=Ew});var Fm=Fe((d1,Im)=>{"use strict";var Cw=Am(),Tw=ml().HTML_OPEN_CLOSE_TAG_RE,ki=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Cw.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Tw.source+"\\s*$"),/^$/,!1]];Im.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||!t.md.options.html||t.src.charCodeAt(p)!==60)return!1;for(f=t.src.slice(p,y),d=0;d<ki.length&&!ki[d][0].test(f);d++);if(d===ki.length)return!1;if(c)return ki[d][2];if(a=n+1,!ki[d][1].test(f)){for(;a<l&&!(t.sCount[a]<t.blkIndent);a++)if(p=t.bMarks[a]+t.tShift[a],y=t.eMarks[a],f=t.src.slice(p,y),ki[d][1].test(f)){f.length!==0&&a++;break}}return t.line=a,h=t.push("html_block","",0),h.map=[n,a],h.content=t.getLines(n,a,t.blkIndent,!0),!0}});var Pm=Fe((h1,Om)=>{"use strict";var Mm=Ft().isSpace;Om.exports=function(t,n,l,c){var d,a,h,f,p=t.bMarks[n]+t.tShift[n],y=t.eMarks[n];if(t.sCount[n]-t.blkIndent>=4||(d=t.src.charCodeAt(p),d!==35||p>=y))return!1;for(a=1,d=t.src.charCodeAt(++p);d===35&&p<y&&a<=6;)a++,d=t.src.charCodeAt(++p);return a>6||p<y&&!Mm(d)?!1:(c||(y=t.skipSpacesBack(y,p),h=t.skipCharsBack(y,35,p),h>p&&Mm(t.src.charCodeAt(h-1))&&(y=h),t.line=n+1,f=t.push("heading_open","h"+String(a),1),f.markup="########".slice(0,a),f.map=[n,t.line],f=t.push("inline","",0),f.content=t.src.slice(p,y).trim(),f.map=[n,t.line],f.children=[],f=t.push("heading_close","h"+String(a),-1),f.markup="########".slice(0,a)),!0)}});var zm=Fe((p1,Rm)=>{"use strict";Rm.exports=function(t,n,l){var c,d,a,h,f,p,y,g,v,b=n+1,k,_=t.md.block.ruler.getRules("paragraph");if(t.sCount[n]-t.blkIndent>=4)return!1;for(k=t.parentType,t.parentType="paragraph";b<l&&!t.isEmpty(b);b++)if(!(t.sCount[b]-t.blkIndent>3)){if(t.sCount[b]>=t.blkIndent&&(p=t.bMarks[b]+t.tShift[b],y=t.eMarks[b],p<y&&(v=t.src.charCodeAt(p),(v===45||v===61)&&(p=t.skipChars(p,v),p=t.skipSpaces(p),p>=y)))){g=v===61?1:2;break}if(!(t.sCount[b]<0)){for(d=!1,a=0,h=_.length;a<h;a++)if(_[a](t,b,l,!0)){d=!0;break}if(d)break}}return g?(c=t.getLines(n,b,t.blkIndent,!1).trim(),t.line=b+1,f=t.push("heading_open","h"+String(g),1),f.markup=String.fromCharCode(v),f.map=[n,t.line],f=t.push("inline","",0),f.content=c,f.map=[n,t.line-1],f.children=[],f=t.push("heading_close","h"+String(g),-1),f.markup=String.fromCharCode(v),t.parentType=k,!0):!1}});var Bm=Fe((m1,Nm)=>{"use strict";Nm.exports=function(t,n){var l,c,d,a,h,f,p=n+1,y=t.md.block.ruler.getRules("paragraph"),g=t.lineMax;for(f=t.parentType,t.parentType="paragraph";p<g&&!t.isEmpty(p);p++)if(!(t.sCount[p]-t.blkIndent>3)&&!(t.sCount[p]<0)){for(c=!1,d=0,a=y.length;d<a;d++)if(y[d](t,p,g,!0)){c=!0;break}if(c)break}return l=t.getLines(n,p,t.blkIndent,!1).trim(),t.line=p,h=t.push("paragraph_open","p",1),h.map=[n,t.line],h=t.push("inline","",0),h.content=l,h.map=[n,t.line],h.children=[],h=t.push("paragraph_close","p",-1),t.parentType=f,!0}});var $m=Fe((g1,jm)=>{"use strict";var qm=Da(),Fa=Ft().isSpace;function rn(i,t,n,l){var c,d,a,h,f,p,y,g;for(this.src=i,this.md=t,this.env=n,this.tokens=l,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",d=this.src,g=!1,a=h=p=y=0,f=d.length;h<f;h++){if(c=d.charCodeAt(h),!g)if(Fa(c)){p++,c===9?y+=4-y%4:y++;continue}else g=!0;(c===10||h===f-1)&&(c!==10&&h++,this.bMarks.push(a),this.eMarks.push(h),this.tShift.push(p),this.sCount.push(y),this.bsCount.push(0),g=!1,p=0,y=0,a=h+1)}this.bMarks.push(d.length),this.eMarks.push(d.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}rn.prototype.push=function(i,t,n){var l=new qm(i,t,n);return l.block=!0,n<0&&this.level--,l.level=this.level,n>0&&this.level++,this.tokens.push(l),l};rn.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};rn.prototype.skipEmptyLines=function(t){for(var n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};rn.prototype.skipSpaces=function(t){for(var n,l=this.src.length;t<l&&(n=this.src.charCodeAt(t),!!Fa(n));t++);return t};rn.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Fa(this.src.charCodeAt(--t)))return t+1;return t};rn.prototype.skipChars=function(t,n){for(var l=this.src.length;t<l&&this.src.charCodeAt(t)===n;t++);return t};rn.prototype.skipCharsBack=function(t,n,l){if(t<=l)return t;for(;t>l;)if(n!==this.src.charCodeAt(--t))return t+1;return t};rn.prototype.getLines=function(t,n,l,c){var d,a,h,f,p,y,g,v=t;if(t>=n)return"";for(y=new Array(n-t),d=0;v<n;v++,d++){for(a=0,g=f=this.bMarks[v],v+1<n||c?p=this.eMarks[v]+1:p=this.eMarks[v];f<p&&a<l;){if(h=this.src.charCodeAt(f),Fa(h))h===9?a+=4-(a+this.bsCount[v])%4:a++;else if(f-g<this.tShift[v])a++;else break;f++}a>l?y[d]=new Array(a-l+1).join(" ")+this.src.slice(f,p):y[d]=this.src.slice(f,p)}return y.join("")};rn.prototype.Token=qm;jm.exports=rn});var Hm=Fe((v1,Um)=>{"use strict";var Aw=Aa(),Ma=[["table",cm(),["paragraph","reference"]],["code",dm()],["fence",pm(),["paragraph","reference","blockquote","list"]],["blockquote",vm(),["paragraph","reference","blockquote","list"]],["hr",bm(),["paragraph","reference","blockquote","list"]],["list",Sm(),["paragraph","reference","blockquote"]],["reference",Cm()],["html_block",Fm(),["paragraph","reference","blockquote"]],["heading",Pm(),["paragraph","reference","blockquote"]],["lheading",zm()],["paragraph",Bm()]];function Oa(){this.ruler=new Aw;for(var i=0;i<Ma.length;i++)this.ruler.push(Ma[i][0],Ma[i][1],{alt:(Ma[i][2]||[]).slice()})}Oa.prototype.tokenize=function(i,t,n){for(var l,c,d=this.ruler.getRules(""),a=d.length,h=t,f=!1,p=i.md.options.maxNesting;h<n&&(i.line=h=i.skipEmptyLines(h),!(h>=n||i.sCount[h]<i.blkIndent));){if(i.level>=p){i.line=n;break}for(c=0;c<a&&(l=d[c](i,h,n,!1),!l);c++);i.tight=!f,i.isEmpty(i.line-1)&&(f=!0),h=i.line,h<n&&i.isEmpty(h)&&(f=!0,h++,i.line=h)}};Oa.prototype.parse=function(i,t,n,l){var c;!i||(c=new this.State(i,t,n,l),this.tokenize(c,c.line,c.lineMax))};Oa.prototype.State=$m();Um.exports=Oa});var Gm=Fe((y1,Wm)=>{"use strict";function Lw(i){switch(i){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Wm.exports=function(t,n){for(var l=t.pos;l<t.posMax&&!Lw(t.src.charCodeAt(l));)l++;return l===t.pos?!1:(n||(t.pending+=t.src.slice(t.pos,l)),t.pos=l,!0)}});var Vm=Fe((b1,Km)=>{"use strict";var Dw=Ft().isSpace;Km.exports=function(t,n){var l,c,d=t.pos;if(t.src.charCodeAt(d)!==10)return!1;for(l=t.pending.length-1,c=t.posMax,n||(l>=0&&t.pending.charCodeAt(l)===32?l>=1&&t.pending.charCodeAt(l-1)===32?(t.pending=t.pending.replace(/ +$/,""),t.push("hardbreak","br",0)):(t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0)):t.push("softbreak","br",0)),d++;d<c&&Dw(t.src.charCodeAt(d));)d++;return t.pos=d,!0}});var Zm=Fe((x1,Xm)=>{"use strict";var Iw=Ft().isSpace,gl=[];for(var Ym=0;Ym<256;Ym++)gl.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(i){gl[i.charCodeAt(0)]=1});Xm.exports=function(t,n){var l,c=t.pos,d=t.posMax;if(t.src.charCodeAt(c)!==92)return!1;if(c++,c<d){if(l=t.src.charCodeAt(c),l<256&&gl[l]!==0)return n||(t.pending+=t.src[c]),t.pos+=2,!0;if(l===10){for(n||t.push("hardbreak","br",0),c++;c<d&&(l=t.src.charCodeAt(c),!!Iw(l));)c++;return t.pos=c,!0}}return n||(t.pending+="\\"),t.pos++,!0}});var Jm=Fe((w1,Qm)=>{"use strict";Qm.exports=function(t,n){var l,c,d,a,h,f,p,y,g=t.pos,v=t.src.charCodeAt(g);if(v!==96)return!1;for(l=g,g++,c=t.posMax;g<c&&t.src.charCodeAt(g)===96;)g++;if(d=t.src.slice(l,g),p=d.length,t.backticksScanned&&(t.backticks[p]||0)<=l)return n||(t.pending+=d),t.pos+=p,!0;for(h=f=g;(h=t.src.indexOf("`",f))!==-1;){for(f=h+1;f<c&&t.src.charCodeAt(f)===96;)f++;if(y=f-h,y===p)return n||(a=t.push("code_inline","code",0),a.markup=d,a.content=t.src.slice(g,h).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),t.pos=f,!0;t.backticks[y]=h}return t.backticksScanned=!0,n||(t.pending+=d),t.pos+=p,!0}});var yl=Fe((k1,vl)=>{"use strict";vl.exports.tokenize=function(t,n){var l,c,d,a,h,f=t.pos,p=t.src.charCodeAt(f);if(n||p!==126||(c=t.scanDelims(t.pos,!0),a=c.length,h=String.fromCharCode(p),a<2))return!1;for(a%2&&(d=t.push("text","",0),d.content=h,a--),l=0;l<a;l+=2)d=t.push("text","",0),d.content=h+h,t.delimiters.push({marker:p,length:0,jump:l/2,token:t.tokens.length-1,end:-1,open:c.can_open,close:c.can_close});return t.pos+=c.length,!0};function eg(i,t){var n,l,c,d,a,h=[],f=t.length;for(n=0;n<f;n++)c=t[n],c.marker===126&&c.end!==-1&&(d=t[c.end],a=i.tokens[c.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=i.tokens[d.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",i.tokens[d.token-1].type==="text"&&i.tokens[d.token-1].content==="~"&&h.push(d.token-1));for(;h.length;){for(n=h.pop(),l=n+1;l<i.tokens.length&&i.tokens[l].type==="s_close";)l++;l--,n!==l&&(a=i.tokens[l],i.tokens[l]=i.tokens[n],i.tokens[n]=a)}}vl.exports.postProcess=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(eg(t,t.delimiters),n=0;n<c;n++)l[n]&&l[n].delimiters&&eg(t,l[n].delimiters)}});var xl=Fe((_1,bl)=>{"use strict";bl.exports.tokenize=function(t,n){var l,c,d,a=t.pos,h=t.src.charCodeAt(a);if(n||h!==95&&h!==42)return!1;for(c=t.scanDelims(t.pos,h===42),l=0;l<c.length;l++)d=t.push("text","",0),d.content=String.fromCharCode(h),t.delimiters.push({marker:h,length:c.length,jump:l,token:t.tokens.length-1,end:-1,open:c.can_open,close:c.can_close});return t.pos+=c.length,!0};function tg(i,t){var n,l,c,d,a,h,f=t.length;for(n=f-1;n>=0;n--)l=t[n],!(l.marker!==95&&l.marker!==42)&&l.end!==-1&&(c=t[l.end],h=n>0&&t[n-1].end===l.end+1&&t[n-1].token===l.token-1&&t[l.end+1].token===c.token+1&&t[n-1].marker===l.marker,a=String.fromCharCode(l.marker),d=i.tokens[l.token],d.type=h?"strong_open":"em_open",d.tag=h?"strong":"em",d.nesting=1,d.markup=h?a+a:a,d.content="",d=i.tokens[c.token],d.type=h?"strong_close":"em_close",d.tag=h?"strong":"em",d.nesting=-1,d.markup=h?a+a:a,d.content="",h&&(i.tokens[t[n-1].token].content="",i.tokens[t[l.end+1].token].content="",n--))}bl.exports.postProcess=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(tg(t,t.delimiters),n=0;n<c;n++)l[n]&&l[n].delimiters&&tg(t,l[n].delimiters)}});var ng=Fe((S1,rg)=>{"use strict";var Fw=Ft().normalizeReference,wl=Ft().isSpace;rg.exports=function(t,n){var l,c,d,a,h,f,p,y,g,v="",b="",k=t.pos,_=t.posMax,w=t.pos,I=!0;if(t.src.charCodeAt(t.pos)!==91||(h=t.pos+1,a=t.md.helpers.parseLinkLabel(t,t.pos,!0),a<0))return!1;if(f=a+1,f<_&&t.src.charCodeAt(f)===40){for(I=!1,f++;f<_&&(c=t.src.charCodeAt(f),!(!wl(c)&&c!==10));f++);if(f>=_)return!1;if(w=f,p=t.md.helpers.parseLinkDestination(t.src,f,t.posMax),p.ok){for(v=t.md.normalizeLink(p.str),t.md.validateLink(v)?f=p.pos:v="",w=f;f<_&&(c=t.src.charCodeAt(f),!(!wl(c)&&c!==10));f++);if(p=t.md.helpers.parseLinkTitle(t.src,f,t.posMax),f<_&&w!==f&&p.ok)for(b=p.str,f=p.pos;f<_&&(c=t.src.charCodeAt(f),!(!wl(c)&&c!==10));f++);}(f>=_||t.src.charCodeAt(f)!==41)&&(I=!0),f++}if(I){if(typeof t.env.references=="undefined")return!1;if(f<_&&t.src.charCodeAt(f)===91?(w=f+1,f=t.md.helpers.parseLinkLabel(t,f),f>=0?d=t.src.slice(w,f++):f=a+1):f=a+1,d||(d=t.src.slice(h,a)),y=t.env.references[Fw(d)],!y)return t.pos=k,!1;v=y.href,b=y.title}return n||(t.pos=h,t.posMax=a,g=t.push("link_open","a",1),g.attrs=l=[["href",v]],b&&l.push(["title",b]),t.md.inline.tokenize(t),g=t.push("link_close","a",-1)),t.pos=f,t.posMax=_,!0}});var og=Fe((E1,ig)=>{"use strict";var Mw=Ft().normalizeReference,kl=Ft().isSpace;ig.exports=function(t,n){var l,c,d,a,h,f,p,y,g,v,b,k,_,w="",I=t.pos,S=t.posMax;if(t.src.charCodeAt(t.pos)!==33||t.src.charCodeAt(t.pos+1)!==91||(f=t.pos+2,h=t.md.helpers.parseLinkLabel(t,t.pos+1,!1),h<0))return!1;if(p=h+1,p<S&&t.src.charCodeAt(p)===40){for(p++;p<S&&(c=t.src.charCodeAt(p),!(!kl(c)&&c!==10));p++);if(p>=S)return!1;for(_=p,g=t.md.helpers.parseLinkDestination(t.src,p,t.posMax),g.ok&&(w=t.md.normalizeLink(g.str),t.md.validateLink(w)?p=g.pos:w=""),_=p;p<S&&(c=t.src.charCodeAt(p),!(!kl(c)&&c!==10));p++);if(g=t.md.helpers.parseLinkTitle(t.src,p,t.posMax),p<S&&_!==p&&g.ok)for(v=g.str,p=g.pos;p<S&&(c=t.src.charCodeAt(p),!(!kl(c)&&c!==10));p++);else v="";if(p>=S||t.src.charCodeAt(p)!==41)return t.pos=I,!1;p++}else{if(typeof t.env.references=="undefined")return!1;if(p<S&&t.src.charCodeAt(p)===91?(_=p+1,p=t.md.helpers.parseLinkLabel(t,p),p>=0?a=t.src.slice(_,p++):p=h+1):p=h+1,a||(a=t.src.slice(f,h)),y=t.env.references[Mw(a)],!y)return t.pos=I,!1;w=y.href,v=y.title}return n||(d=t.src.slice(f,h),t.md.inline.parse(d,t.md,t.env,k=[]),b=t.push("image","img",0),b.attrs=l=[["src",w],["alt",""]],b.children=k,b.content=d,v&&l.push(["title",v])),t.pos=p,t.posMax=S,!0}});var sg=Fe((C1,ag)=>{"use strict";var Ow=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,Pw=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;ag.exports=function(t,n){var l,c,d,a,h,f,p=t.pos;if(t.src.charCodeAt(p)!==60)return!1;for(h=t.pos,f=t.posMax;;){if(++p>=f||(a=t.src.charCodeAt(p),a===60))return!1;if(a===62)break}return l=t.src.slice(h+1,p),Pw.test(l)?(c=t.md.normalizeLink(l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):Ow.test(l)?(c=t.md.normalizeLink("mailto:"+l),t.md.validateLink(c)?(n||(d=t.push("link_open","a",1),d.attrs=[["href",c]],d.markup="autolink",d.info="auto",d=t.push("text","",0),d.content=t.md.normalizeLinkText(l),d=t.push("link_close","a",-1),d.markup="autolink",d.info="auto"),t.pos+=l.length+2,!0):!1):!1}});var ug=Fe((T1,lg)=>{"use strict";var Rw=ml().HTML_TAG_RE;function zw(i){var t=i|32;return t>=97&&t<=122}lg.exports=function(t,n){var l,c,d,a,h=t.pos;return!t.md.options.html||(d=t.posMax,t.src.charCodeAt(h)!==60||h+2>=d)||(l=t.src.charCodeAt(h+1),l!==33&&l!==63&&l!==47&&!zw(l))||(c=t.src.slice(h).match(Rw),!c)?!1:(n||(a=t.push("html_inline","",0),a.content=t.src.slice(h,h+c[0].length)),t.pos+=c[0].length,!0)}});var hg=Fe((A1,dg)=>{"use strict";var cg=ol(),Nw=Ft().has,Bw=Ft().isValidEntityCode,fg=Ft().fromCodePoint,qw=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,jw=/^&([a-z][a-z0-9]{1,31});/i;dg.exports=function(t,n){var l,c,d,a=t.pos,h=t.posMax;if(t.src.charCodeAt(a)!==38)return!1;if(a+1<h){if(l=t.src.charCodeAt(a+1),l===35){if(d=t.src.slice(a).match(qw),d)return n||(c=d[1][0].toLowerCase()==="x"?parseInt(d[1].slice(1),16):parseInt(d[1],10),t.pending+=Bw(c)?fg(c):fg(65533)),t.pos+=d[0].length,!0}else if(d=t.src.slice(a).match(jw),d&&Nw(cg,d[1]))return n||(t.pending+=cg[d[1]]),t.pos+=d[0].length,!0}return n||(t.pending+="&"),t.pos++,!0}});var gg=Fe((L1,mg)=>{"use strict";function pg(i,t){var n,l,c,d,a,h,f,p,y={},g=t.length;for(n=0;n<g;n++)if(c=t[n],c.length=c.length||0,!!c.close){for(y.hasOwnProperty(c.marker)||(y[c.marker]=[-1,-1,-1]),a=y[c.marker][c.length%3],l=n-c.jump-1,l<-1&&(l=-1),h=l;l>a;l-=d.jump+1)if(d=t[l],d.marker===c.marker&&d.open&&d.end<0&&(f=!1,(d.close||c.open)&&(d.length+c.length)%3==0&&(d.length%3!=0||c.length%3!=0)&&(f=!0),!f)){p=l>0&&!t[l-1].open?t[l-1].jump+1:0,c.jump=n-l+p,c.open=!1,d.end=n,d.jump=p,d.close=!1,h=-1;break}h!==-1&&(y[c.marker][(c.length||0)%3]=h)}}mg.exports=function(t){var n,l=t.tokens_meta,c=t.tokens_meta.length;for(pg(t,t.delimiters),n=0;n<c;n++)l[n]&&l[n].delimiters&&pg(t,l[n].delimiters)}});var yg=Fe((D1,vg)=>{"use strict";vg.exports=function(t){var n,l,c=0,d=t.tokens,a=t.tokens.length;for(n=l=0;n<a;n++)d[n].nesting<0&&c--,d[n].level=c,d[n].nesting>0&&c++,d[n].type==="text"&&n+1<a&&d[n+1].type==="text"?d[n+1].content=d[n].content+d[n+1].content:(n!==l&&(d[l]=d[n]),l++);n!==l&&(d.length=l)}});var _g=Fe((I1,kg)=>{"use strict";var _l=Da(),bg=Ft().isWhiteSpace,xg=Ft().isPunctChar,wg=Ft().isMdAsciiPunct;function po(i,t,n,l){this.src=i,this.env=n,this.md=t,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}po.prototype.pushPending=function(){var i=new _l("text","",0);return i.content=this.pending,i.level=this.pendingLevel,this.tokens.push(i),this.pending="",i};po.prototype.push=function(i,t,n){this.pending&&this.pushPending();var l=new _l(i,t,n),c=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l};po.prototype.scanDelims=function(i,t){var n=i,l,c,d,a,h,f,p,y,g,v=!0,b=!0,k=this.posMax,_=this.src.charCodeAt(i);for(l=i>0?this.src.charCodeAt(i-1):32;n<k&&this.src.charCodeAt(n)===_;)n++;return d=n-i,c=n<k?this.src.charCodeAt(n):32,p=wg(l)||xg(String.fromCharCode(l)),g=wg(c)||xg(String.fromCharCode(c)),f=bg(l),y=bg(c),y?v=!1:g&&(f||p||(v=!1)),f?b=!1:p&&(y||g||(b=!1)),t?(a=v,h=b):(a=v&&(!b||p),h=b&&(!v||g)),{can_open:a,can_close:h,length:d}};po.prototype.Token=_l;kg.exports=po});var Cg=Fe((F1,Eg)=>{"use strict";var Sg=Aa(),Sl=[["text",Gm()],["newline",Vm()],["escape",Zm()],["backticks",Jm()],["strikethrough",yl().tokenize],["emphasis",xl().tokenize],["link",ng()],["image",og()],["autolink",sg()],["html_inline",ug()],["entity",hg()]],El=[["balance_pairs",gg()],["strikethrough",yl().postProcess],["emphasis",xl().postProcess],["text_collapse",yg()]];function mo(){var i;for(this.ruler=new Sg,i=0;i<Sl.length;i++)this.ruler.push(Sl[i][0],Sl[i][1]);for(this.ruler2=new Sg,i=0;i<El.length;i++)this.ruler2.push(El[i][0],El[i][1])}mo.prototype.skipToken=function(i){var t,n,l=i.pos,c=this.ruler.getRules(""),d=c.length,a=i.md.options.maxNesting,h=i.cache;if(typeof h[l]!="undefined"){i.pos=h[l];return}if(i.level<a)for(n=0;n<d&&(i.level++,t=c[n](i,!0),i.level--,!t);n++);else i.pos=i.posMax;t||i.pos++,h[l]=i.pos};mo.prototype.tokenize=function(i){for(var t,n,l=this.ruler.getRules(""),c=l.length,d=i.posMax,a=i.md.options.maxNesting;i.pos<d;){if(i.level<a)for(n=0;n<c&&(t=l[n](i,!1),!t);n++);if(t){if(i.pos>=d)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()};mo.prototype.parse=function(i,t,n,l){var c,d,a,h=new this.State(i,t,n,l);for(this.tokenize(h),d=this.ruler2.getRules(""),a=d.length,c=0;c<a;c++)d[c](h)};mo.prototype.State=_g();Eg.exports=mo});var Ag=Fe((M1,Tg)=>{"use strict";Tg.exports=function(i){var t={};t.src_Any=sl().source,t.src_Cc=ll().source,t.src_Z=ul().source,t.src_P=_a().source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><\uFF5C]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(i&&i["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+"\\,(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}});var Og=Fe((O1,Mg)=>{"use strict";function Cl(i){var t=Array.prototype.slice.call(arguments,1);return t.forEach(function(n){!n||Object.keys(n).forEach(function(l){i[l]=n[l]})}),i}function Pa(i){return Object.prototype.toString.call(i)}function $w(i){return Pa(i)==="[object String]"}function Uw(i){return Pa(i)==="[object Object]"}function Hw(i){return Pa(i)==="[object RegExp]"}function Lg(i){return Pa(i)==="[object Function]"}function Ww(i){return i.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var Dg={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function Gw(i){return Object.keys(i||{}).reduce(function(t,n){return t||Dg.hasOwnProperty(n)},!1)}var Kw={"http:":{validate:function(i,t,n){var l=i.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(l)?l.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(i,t,n){var l=i.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(l)?t>=3&&i[t-3]===":"||t>=3&&i[t-3]==="/"?0:l.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(i,t,n){var l=i.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(l)?l.match(n.re.mailto)[0].length:0}}},Vw="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",Yw="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function Xw(i){i.__index__=-1,i.__text_cache__=""}function Zw(i){return function(t,n){var l=t.slice(n);return i.test(l)?l.match(i)[0].length:0}}function Ig(){return function(i,t){t.normalize(i)}}function Ra(i){var t=i.re=Ag()(i.__opts__),n=i.__tlds__.slice();i.onCompile(),i.__tlds_replaced__||n.push(Vw),n.push(t.src_xn),t.src_tlds=n.join("|");function l(h){return h.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(l(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(l(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(l(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(l(t.tpl_host_fuzzy_test),"i");var c=[];i.__compiled__={};function d(h,f){throw new Error('(LinkifyIt) Invalid schema "'+h+'": '+f)}Object.keys(i.__schemas__).forEach(function(h){var f=i.__schemas__[h];if(f!==null){var p={validate:null,link:null};if(i.__compiled__[h]=p,Uw(f)){Hw(f.validate)?p.validate=Zw(f.validate):Lg(f.validate)?p.validate=f.validate:d(h,f),Lg(f.normalize)?p.normalize=f.normalize:f.normalize?d(h,f):p.normalize=Ig();return}if($w(f)){c.push(h);return}d(h,f)}}),c.forEach(function(h){!i.__compiled__[i.__schemas__[h]]||(i.__compiled__[h].validate=i.__compiled__[i.__schemas__[h]].validate,i.__compiled__[h].normalize=i.__compiled__[i.__schemas__[h]].normalize)}),i.__compiled__[""]={validate:null,normalize:Ig()};var a=Object.keys(i.__compiled__).filter(function(h){return h.length>0&&i.__compiled__[h]}).map(Ww).join("|");i.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","i"),i.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+a+")","ig"),i.re.pretest=RegExp("("+i.re.schema_test.source+")|("+i.re.host_fuzzy_test.source+")|@","i"),Xw(i)}function Qw(i,t){var n=i.__index__,l=i.__last_index__,c=i.__text_cache__.slice(n,l);this.schema=i.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=l+t,this.raw=c,this.text=c,this.url=c}function Fg(i,t){var n=new Qw(i,t);return i.__compiled__[n.schema].normalize(n,i),n}function qr(i,t){if(!(this instanceof qr))return new qr(i,t);t||Gw(i)&&(t=i,i={}),this.__opts__=Cl({},Dg,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Cl({},Kw,i),this.__compiled__={},this.__tlds__=Yw,this.__tlds_replaced__=!1,this.re={},Ra(this)}qr.prototype.add=function(t,n){return this.__schemas__[t]=n,Ra(this),this};qr.prototype.set=function(t){return this.__opts__=Cl(this.__opts__,t),this};qr.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;var n,l,c,d,a,h,f,p,y;if(this.re.schema_test.test(t)){for(f=this.re.schema_search,f.lastIndex=0;(n=f.exec(t))!==null;)if(d=this.testSchemaAt(t,n[2],f.lastIndex),d){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+d;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(p=t.search(this.re.host_fuzzy_test),p>=0&&(this.__index__<0||p<this.__index__)&&(l=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(a=l.index+l[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=l.index+l[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(y=t.indexOf("@"),y>=0&&(c=t.match(this.re.email_fuzzy))!==null&&(a=c.index+c[1].length,h=c.index+c[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&h>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=h))),this.__index__>=0};qr.prototype.pretest=function(t){return this.re.pretest.test(t)};qr.prototype.testSchemaAt=function(t,n,l){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,l,this):0};qr.prototype.match=function(t){var n=0,l=[];this.__index__>=0&&this.__text_cache__===t&&(l.push(Fg(this,n)),n=this.__last_index__);for(var c=n?t.slice(n):t;this.test(c);)l.push(Fg(this,n)),c=c.slice(this.__last_index__),n+=this.__last_index__;return l.length?l:null};qr.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(l,c,d){return l!==d[c-1]}).reverse(),Ra(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Ra(this),this)};qr.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};qr.prototype.onCompile=function(){};Mg.exports=qr});var Hg={};bx(Hg,{decode:()=>Il,default:()=>lk,encode:()=>Fl,toASCII:()=>Ug,toUnicode:()=>$g,ucs2decode:()=>Dl,ucs2encode:()=>Bg});function Un(i){throw new RangeError(ik[i])}function ok(i,t){let n=[],l=i.length;for(;l--;)n[l]=t(i[l]);return n}function Ng(i,t){let n=i.split("@"),l="";n.length>1&&(l=n[0]+"@",i=n[1]),i=i.replace(nk,".");let c=i.split("."),d=ok(c,t).join(".");return l+d}function Dl(i){let t=[],n=0,l=i.length;for(;n<l;){let c=i.charCodeAt(n++);if(c>=55296&&c<=56319&&n<l){let d=i.charCodeAt(n++);(d&64512)==56320?t.push(((c&1023)<<10)+(d&1023)+65536):(t.push(c),n--)}else t.push(c)}return t}var _i,nn,Tl,go,Jw,ek,Pg,Rg,zg,tk,rk,nk,ik,Al,on,Ll,Bg,ak,qg,jg,Il,Fl,$g,Ug,sk,lk,Wg=yx(()=>{"use strict";_i=2147483647,nn=36,Tl=1,go=26,Jw=38,ek=700,Pg=72,Rg=128,zg="-",tk=/^xn--/,rk=/[^\0-\x7E]/,nk=/[\x2E\u3002\uFF0E\uFF61]/g,ik={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Al=nn-Tl,on=Math.floor,Ll=String.fromCharCode;Bg=i=>String.fromCodePoint(...i),ak=function(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:nn},qg=function(i,t){return i+22+75*(i<26)-((t!=0)<<5)},jg=function(i,t,n){let l=0;for(i=n?on(i/ek):i>>1,i+=on(i/t);i>Al*go>>1;l+=nn)i=on(i/Al);return on(l+(Al+1)*i/(i+Jw))},Il=function(i){let t=[],n=i.length,l=0,c=Rg,d=Pg,a=i.lastIndexOf(zg);a<0&&(a=0);for(let h=0;h<a;++h)i.charCodeAt(h)>=128&&Un("not-basic"),t.push(i.charCodeAt(h));for(let h=a>0?a+1:0;h<n;){let f=l;for(let y=1,g=nn;;g+=nn){h>=n&&Un("invalid-input");let v=ak(i.charCodeAt(h++));(v>=nn||v>on((_i-l)/y))&&Un("overflow"),l+=v*y;let b=g<=d?Tl:g>=d+go?go:g-d;if(v<b)break;let k=nn-b;y>on(_i/k)&&Un("overflow"),y*=k}let p=t.length+1;d=jg(l-f,p,f==0),on(l/p)>_i-c&&Un("overflow"),c+=on(l/p),l%=p,t.splice(l++,0,c)}return String.fromCodePoint(...t)},Fl=function(i){let t=[];i=Dl(i);let n=i.length,l=Rg,c=0,d=Pg;for(let f of i)f<128&&t.push(Ll(f));let a=t.length,h=a;for(a&&t.push(zg);h<n;){let f=_i;for(let y of i)y>=l&&y<f&&(f=y);let p=h+1;f-l>on((_i-c)/p)&&Un("overflow"),c+=(f-l)*p,l=f;for(let y of i)if(y<l&&++c>_i&&Un("overflow"),y==l){let g=c;for(let v=nn;;v+=nn){let b=v<=d?Tl:v>=d+go?go:v-d;if(g<b)break;let k=g-b,_=nn-b;t.push(Ll(qg(b+k%_,0))),g=on(k/_)}t.push(Ll(qg(g,0))),d=jg(c,p,h==a),c=0,++h}++c,++l}return t.join("")},$g=function(i){return Ng(i,function(t){return tk.test(t)?Il(t.slice(4).toLowerCase()):t})},Ug=function(i){return Ng(i,function(t){return rk.test(t)?"xn--"+Fl(t):t})},sk={version:"2.1.0",ucs2:{decode:Dl,encode:Bg},decode:Il,encode:Fl,toASCII:Ug,toUnicode:$g},lk=sk});var Kg=Fe((P1,Gg)=>{"use strict";Gg.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var Yg=Fe((R1,Vg)=>{"use strict";Vg.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var Zg=Fe((z1,Xg)=>{"use strict";Xg.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var tv=Fe((N1,ev)=>{"use strict";var vo=Ft(),uk=Op(),ck=Rp(),fk=sm(),dk=Hm(),hk=Cg(),pk=Og(),Hn=al(),Qg=(Wg(),Hg),mk={default:Kg(),zero:Yg(),commonmark:Zg()},gk=/^(vbscript|javascript|file|data):/,vk=/^data:image\/(gif|png|jpeg|webp);/;function yk(i){var t=i.trim().toLowerCase();return gk.test(t)?!!vk.test(t):!0}var Jg=["http:","https:","mailto:"];function bk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||Jg.indexOf(t.protocol)>=0))try{t.hostname=Qg.toASCII(t.hostname)}catch(n){}return Hn.encode(Hn.format(t))}function xk(i){var t=Hn.parse(i,!0);if(t.hostname&&(!t.protocol||Jg.indexOf(t.protocol)>=0))try{t.hostname=Qg.toUnicode(t.hostname)}catch(n){}return Hn.decode(Hn.format(t),Hn.decode.defaultChars+"%")}function jr(i,t){if(!(this instanceof jr))return new jr(i,t);t||vo.isString(i)||(t=i||{},i="default"),this.inline=new hk,this.block=new dk,this.core=new fk,this.renderer=new ck,this.linkify=new pk,this.validateLink=yk,this.normalizeLink=bk,this.normalizeLinkText=xk,this.utils=vo,this.helpers=vo.assign({},uk),this.options={},this.configure(i),t&&this.set(t)}jr.prototype.set=function(i){return vo.assign(this.options,i),this};jr.prototype.configure=function(i){var t=this,n;if(vo.isString(i)&&(n=i,i=mk[n],!i))throw new Error('Wrong `markdown-it` preset "'+n+'", check name');if(!i)throw new Error("Wrong `markdown-it` preset, can't be empty");return i.options&&t.set(i.options),i.components&&Object.keys(i.components).forEach(function(l){i.components[l].rules&&t[l].ruler.enableOnly(i.components[l].rules),i.components[l].rules2&&t[l].ruler2.enableOnly(i.components[l].rules2)}),this};jr.prototype.enable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.enable(i,!0))},this),n=n.concat(this.inline.ruler2.enable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+l);return this};jr.prototype.disable=function(i,t){var n=[];Array.isArray(i)||(i=[i]),["core","block","inline"].forEach(function(c){n=n.concat(this[c].ruler.disable(i,!0))},this),n=n.concat(this.inline.ruler2.disable(i,!0));var l=i.filter(function(c){return n.indexOf(c)<0});if(l.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+l);return this};jr.prototype.use=function(i){var t=[this].concat(Array.prototype.slice.call(arguments,1));return i.apply(i,t),this};jr.prototype.parse=function(i,t){if(typeof i!="string")throw new Error("Input data should be a String");var n=new this.core.State(i,this,t);return this.core.process(n),n.tokens};jr.prototype.render=function(i,t){return t=t||{},this.renderer.render(this.parse(i,t),this.options,t)};jr.prototype.parseInline=function(i,t){var n=new this.core.State(i,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};jr.prototype.renderInline=function(i,t){return t=t||{},this.renderer.render(this.parseInline(i,t),this.options,t)};ev.exports=jr});var nv=Fe((B1,rv)=>{"use strict";rv.exports=tv()});var lv=Fe((q1,sv)=>{var Ml=!0,iv=!1,ov=!1;sv.exports=function(i,t){t&&(Ml=!t.enabled,iv=!!t.label,ov=!!t.labelAfter),i.core.ruler.after("inline","github-task-lists",function(n){for(var l=n.tokens,c=2;c<l.length;c++)kk(l,c)&&(_k(l[c],n.Token),av(l[c-2],"class","task-list-item"+(Ml?"":" enabled")),av(l[wk(l,c-2)],"class","contains-task-list"))})};function av(i,t,n){var l=i.attrIndex(t),c=[t,n];l<0?i.attrPush(c):i.attrs[l]=c}function wk(i,t){for(var n=i[t].level-1,l=t-1;l>=0;l--)if(i[l].level===n)return l;return-1}function kk(i,t){return Ak(i[t])&&Lk(i[t-1])&&Dk(i[t-2])&&Ik(i[t])}function _k(i,t){if(i.children.unshift(Sk(i,t)),i.children[1].content=i.children[1].content.slice(3),i.content=i.content.slice(3),iv)if(ov){i.children.pop();var n="task-item-"+Math.ceil(Math.random()*(1e4*1e3)-1e3);i.children[0].content=i.children[0].content.slice(0,-1)+' id="'+n+'">',i.children.push(Tk(i.content,n,t))}else i.children.unshift(Ek(t)),i.children.push(Ck(t))}function Sk(i,t){var n=new t("html_inline","",0),l=Ml?' disabled="" ':"";return i.content.indexOf("[ ] ")===0?n.content='<input class="task-list-item-checkbox"'+l+'type="checkbox">':(i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0)&&(n.content='<input class="task-list-item-checkbox" checked=""'+l+'type="checkbox">'),n}function Ek(i){var t=new i("html_inline","",0);return t.content="<label>",t}function Ck(i){var t=new i("html_inline","",0);return t.content="</label>",t}function Tk(i,t,n){var l=new n("html_inline","",0);return l.content='<label class="task-list-item-label" for="'+t+'">'+i+"</label>",l.attrs=[{for:t}],l}function Ak(i){return i.type==="inline"}function Lk(i){return i.type==="paragraph_open"}function Dk(i){return i.type==="list_item_open"}function Ik(i){return i.content.indexOf("[ ] ")===0||i.content.indexOf("[x] ")===0||i.content.indexOf("[X] ")===0}});var Qi={},wx=[];function Vo(i,t){if(wx.push({name:i,data:t}),typeof Qi[i]=="undefined")return this;let n=Qi[i];for(let l=0;l<n.length;l++)n[l](t)}function kx(i,t){typeof Qi[i]=="undefined"&&(Qi[i]=[]),Qi[i].push(t)}function _x(i,t,n){let l=new CustomEvent(t,{detail:n,bubbles:!0});i.dispatchEvent(l)}function Sx(i){if(!!i.status&&i.status===422&&i.data){let t=Object.values(i.data).flat().join(`
`);Vo("error",t)}}var Rc={emit:Vo,emitPublic:_x,listen:kx,success:i=>Vo("success",i),error:i=>Vo("error",i),showValidationErrors:Sx};async function Ex(i,t={}){return zc(i,{method:"GET",params:t})}async function Cx(i,t=null){return Yo("POST",i,t)}async function Tx(i,t=null){return Yo("PUT",i,t)}async function Ax(i,t=null){return Yo("PATCH",i,t)}async function Lx(i,t=null){return Yo("DELETE",i,t)}async function Yo(i,t,n=null){let l={method:i,body:n};return typeof n=="object"&&!(n instanceof FormData)&&(l.headers={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},l.body=JSON.stringify(n)),n instanceof FormData&&i!=="post"&&(n.append("_method",i),l.method="post"),zc(t,l)}async function zc(i,t={}){if(i.startsWith("http")||(i=window.baseUrl(i)),t.params){let a=new URL(i);for(let h of Object.keys(t.params)){let f=t.params[h];typeof f!="undefined"&&f!==null&&a.searchParams.set(h,f)}i=a.toString()}let n=document.querySelector("meta[name=token]").getAttribute("content");t=Object.assign({},t,{credentials:"same-origin"}),t.headers=Object.assign({},t.headers||{},{baseURL:window.baseUrl(""),"X-CSRF-TOKEN":n});let l=await fetch(i,t),d={data:await Dx(l),headers:l.headers,redirected:l.redirected,status:l.status,statusText:l.statusText,url:l.url,original:l};if(!l.ok)throw d;return d}async function Dx(i){if(i.status===204)return null;let n=(i.headers.get("Content-Type")||"").split(";")[0].split("/").pop();return n==="javascript"||n==="json"?await i.json():await i.text()}var Nc={get:Ex,post:Cx,put:Tx,patch:Ax,delete:Lx};var Bc=class{constructor(t){this.store=new Map,this.parseTranslations()}parseTranslations(){let t=document.querySelectorAll('meta[name="translation"]');for(let n of t){let l=n.getAttribute("key"),c=n.getAttribute("value");this.store.set(l,c)}}get(t,n){let l=this.getTransText(t);return this.performReplacements(l,n)}getPlural(t,n,l){let c=this.getTransText(t);return this.parsePlural(c,n,l)}parsePlural(t,n,l){let c=t.split("|"),d=/^{([0-9]+)}/,a=/^\[([0-9]+),([0-9*]+)]/,h=null;for(let f of c){let p=f.match(d);if(p!==null&&Number(p[1])===n){h=f.replace(d,"").trim();break}let y=f.match(a);if(y!==null&&Number(y[1])<=n&&(y[2]==="*"||Number(y[2])>=n)){h=f.replace(a,"").trim();break}}return h===null&&c.length>1&&(h=n===1?c[0]:c[1]),h===null&&(h=c[0]),this.performReplacements(h,l)}getTransText(t){let n=this.store.get(t);return n===void 0&&console.warn(`Translation with key "${t}" does not exist`),n}performReplacements(t,n){if(!n)return t;let l=t.match(/:([\S]+)/g);return l===null||l.forEach(c=>{let d=c.substring(1);typeof n[d]!="undefined"&&(t=t.replace(c,n[d]))}),t}},qc=Bc;function Xo(i,t){let n=document.querySelectorAll(i);for(let l of n)t(l)}function Zo(i,t,n){for(let l of t)i.addEventListener(l,n)}function Rt(i,t){Array.isArray(i)||(i=[i]);for(let n of i)n.addEventListener("click",t),n.addEventListener("keydown",l=>{(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),t(l))})}function Qo(i,t){Array.isArray(i)||(i=[i]);let n=l=>{l.key==="Enter"&&t(l)};i.forEach(l=>l.addEventListener("keypress",n))}function $t(i,t,n,l){i.addEventListener(n,function(c){let d=c.target.closest(t);d&&l.call(d,c,d)})}function jc(i,t){let n=document.querySelectorAll(i);t=t.toLowerCase();for(let l of n)if(l.textContent.toLowerCase().includes(t))return l;return null}function Ji(i){i.innerHTML='<div class="loading-container"><div></div><div></div><div></div></div>'}function $c(i){let t=i.querySelectorAll(".loading-container");for(let n of t)n.remove()}function Jo(i,t,n){let l;return function(){let c=this,d=arguments,a=function(){l=null,n||i.apply(c,d)},h=n&&!l;clearTimeout(l),l=setTimeout(a,t),h&&i.apply(c,d)}}function eo(i){if(!i)return;i.scrollIntoView({behavior:"smooth"});let t=document.getElementById("custom-styles").getAttribute("data-color-light"),n=window.getComputedStyle(i).getPropertyValue("background-color");i.style.backgroundColor=t,setTimeout(()=>{i.classList.add("selectFade"),i.style.backgroundColor=n},10),setTimeout(()=>{i.classList.remove("selectFade"),i.style.backgroundColor=""},3e3)}function Uc(i){return i.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")}function Hc(){let i=()=>((1+Math.random())*65536|0).toString(16).substring(1);return i()+i()+"-"+i()+"-"+i()+"-"+i()+"-"+i()+i()+i()}var Wc=class{setup(){this.modelRow=this.$refs.model,this.addButton=this.$refs.add,this.removeSelector=this.$opts.removeSelector,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.addButton.addEventListener("click",this.add.bind(this)),$t(this.$el,this.removeSelector,"click",t=>{t.target.closest(this.rowSelector).remove()})}add(){let t=this.modelRow.cloneNode(!0);t.classList.remove("hidden"),this.setClonedInputNames(t),this.modelRow.parentNode.insertBefore(t,this.modelRow),window.components.init(t)}setClonedInputNames(t){let n=Hc(),l=t.querySelectorAll('[name*="randrowid"]');for(let c of l)c.name=c.name.split("randrowid").join(n)}},Gc=Wc;var Kc=class{setup(){this.row=this.$el,this.url=this.$opts.url,this.deleteButtons=this.$manyRefs.delete,Rt(this.deleteButtons,this.runDelete.bind(this))}runDelete(){this.row.style.opacity="0.7",this.row.style.pointerEvents="none",window.$http.delete(this.url).then(t=>{typeof t.data=="object"&&t.data.message&&window.$events.emit("success",t.data.message),this.row.remove()}).catch(t=>{this.row.style.opacity=null,this.row.style.pointerEvents=null})}},Vc=Kc;var Yc=class{setup(){this.container=this.$el,this.responseContainer=this.container,this.url=this.$opts.url,this.method=this.$opts.method||"post",this.successMessage=this.$opts.successMessage,this.submitButtons=this.$manyRefs.submit||[],this.$opts.responseContainer&&(this.responseContainer=this.container.closest(this.$opts.responseContainer)),this.setupListeners()}setupListeners(){if(this.container.tagName==="FORM"){this.container.addEventListener("submit",this.submitRealForm.bind(this));return}Qo(this.container,t=>{this.submitFakeForm(),t.preventDefault()}),this.submitButtons.forEach(t=>Rt(t,this.submitFakeForm.bind(this)))}submitFakeForm(){let t=new FormData,n=this.container.querySelectorAll("[name]");for(let l of n)t.append(l.getAttribute("name"),l.value);this.submit(t)}submitRealForm(t){t.preventDefault();let n=new FormData(this.container);this.submit(n)}async submit(t){this.responseContainer.style.opacity="0.7",this.responseContainer.style.pointerEvents="none";try{let n=await window.$http[this.method.toLowerCase()](this.url,t);this.$emit("success",{formData:t}),this.responseContainer.innerHTML=n.data,this.successMessage&&window.$events.emit("success",this.successMessage)}catch(n){this.responseContainer.innerHTML=n.data}window.components.init(this.responseContainer),this.responseContainer.style.opacity=null,this.responseContainer.style.pointerEvents=null}},Xc=Yc;var Zc=class{setup(){this.container=this.$el,this.pageId=this.$opts.pageId,this.editContainer=this.$refs.editContainer,this.listContainer=this.$refs.listContainer,this.mainTabs=this.$refs.mainTabs,this.list=this.$refs.list,this.setupListeners()}setupListeners(){let t=this.reloadList.bind(this);this.container.addEventListener("dropzone-success",t),this.container.addEventListener("ajax-form-success",t),this.container.addEventListener("sortable-list-sort",n=>{this.updateOrder(n.detail.ids)}),this.container.addEventListener("event-emit-select-edit",n=>{this.startEdit(n.detail.id)}),this.container.addEventListener("event-emit-select-edit-back",n=>{this.stopEdit()}),this.container.addEventListener("event-emit-select-insert",n=>{let l=n.target.closest("[data-drag-content]").getAttribute("data-drag-content"),c=JSON.parse(l);window.$events.emit("editor::insert",{html:c["text/html"],markdown:c["text/plain"]})})}reloadList(){this.stopEdit(),this.mainTabs.components.tabs.show("items"),window.$http.get(`/attachments/get/page/${this.pageId}`).then(t=>{this.list.innerHTML=t.data,window.components.init(this.list)})}updateOrder(t){window.$http.put(`/attachments/sort/page/${this.pageId}`,{order:t}).then(n=>{window.$events.emit("success",n.data.message)})}async startEdit(t){this.editContainer.classList.remove("hidden"),this.listContainer.classList.add("hidden"),Ji(this.editContainer);let n=await window.$http.get(`/attachments/edit/${t}`);this.editContainer.innerHTML=n.data,window.components.init(this.editContainer)}stopEdit(){this.editContainer.classList.add("hidden"),this.listContainer.classList.remove("hidden")}},Qc=Zc;var Is={},Jc=class{setup(){this.parent=this.$el.parentElement,this.container=this.$el,this.type=this.$opts.type,this.url=this.$opts.url,this.input=this.$refs.input,this.list=this.$refs.list,this.lastPopulated=0,this.setupListeners()}setupListeners(){this.input.addEventListener("input",this.requestSuggestions.bind(this)),this.input.addEventListener("focus",this.requestSuggestions.bind(this)),this.input.addEventListener("keydown",t=>{t.key==="Tab"&&this.hideSuggestions()}),this.input.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this)),this.container.addEventListener("keydown",this.containerKeyDown.bind(this)),$t(this.list,"button","click",(t,n)=>{this.selectSuggestion(n.textContent)}),$t(this.list,"button","keydown",(t,n)=>{t.key==="Enter"&&this.selectSuggestion(n.textContent)})}selectSuggestion(t){this.input.value=t,this.lastPopulated=Date.now(),this.input.focus(),this.input.dispatchEvent(new Event("input",{bubbles:!0})),this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hideSuggestions()}containerKeyDown(t){t.key==="Enter"&&t.preventDefault(),!this.list.classList.contains("hidden")&&(t.key==="ArrowDown"?(this.moveFocus(!0),t.preventDefault()):t.key==="ArrowUp"?(this.moveFocus(!1),t.preventDefault()):t.key==="Escape"&&(this.hideSuggestions(),t.preventDefault()))}moveFocus(t=!0){let n=Array.from(this.container.querySelectorAll("input,button")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)];c&&c.focus()}async requestSuggestions(){if(Date.now()-this.lastPopulated<50)return;let t=this.getNameFilterIfNeeded(),n=this.input.value.slice(0,3).toLowerCase(),l=await this.loadSuggestions(n,t),c=l.slice(0,6);n.length>0&&(c=l.filter(d=>d.toLowerCase().includes(n)).slice(0,6)),this.displaySuggestions(c)}getNameFilterIfNeeded(){return this.type!=="value"?null:this.parent.querySelector("input").value}async loadSuggestions(t,n=null){let l={search:t,name:n},c=`${this.url}:${JSON.stringify(l)}`;if(Is[c])return Is[c];let d=await window.$http.get(this.url,l);return Is[c]=d.data,d.data}displaySuggestions(t){if(t.length===0)return this.hideSuggestions();this.list.innerHTML=t.map(n=>`<li><button type="button">${Uc(n)}</button></li>`).join(""),this.list.style.display="block";for(let n of this.list.querySelectorAll("button"))n.addEventListener("blur",this.hideSuggestionsIfFocusedLost.bind(this))}hideSuggestions(){this.list.style.display="none"}hideSuggestionsIfFocusedLost(t){this.container.contains(t.relatedTarget)||this.hideSuggestions()}},ef=Jc;var tf=class{constructor(t){if(this.elem=t,this.targetElem=document.getElementById("header"),this.showing=!1,this.breakPoint=1200,document.body.classList.contains("flexbox")){this.elem.style.display="none";return}this.elem.addEventListener("click",this.scrollToTop.bind(this)),window.addEventListener("scroll",this.onPageScroll.bind(this))}onPageScroll(){let t=document.documentElement.scrollTop||document.body.scrollTop||0;!this.showing&&t>this.breakPoint?(this.elem.style.display="block",this.showing=!0,setTimeout(()=>{this.elem.style.opacity=.4},1)):this.showing&&t<this.breakPoint&&(this.elem.style.opacity=0,this.showing=!1,setTimeout(()=>{this.elem.style.display="none"},500))}scrollToTop(){let t=this.targetElem.getBoundingClientRect().top,n=document.documentElement.scrollTop?document.documentElement:document.body,l=300,c=Date.now(),d=this.targetElem.getBoundingClientRect().top;function a(){let h=1-(Date.now()-c)/l,f=Math.abs(h*d);h>0?(n.scrollTop=f,requestAnimationFrame(a.bind(this))):n.scrollTop=t}requestAnimationFrame(a.bind(this))}},rf=tf;function ea(i){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ea=function(t){return typeof t}:ea=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ea(i)}function Ix(i,t,n){return t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function fn(){return fn=Object.assign||function(i){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(i[l]=n[l])}return i},fn.apply(this,arguments)}function Sn(i){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{},l=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(l=l.concat(Object.getOwnPropertySymbols(n).filter(function(c){return Object.getOwnPropertyDescriptor(n,c).enumerable}))),l.forEach(function(c){Ix(i,c,n[c])})}return i}function Fx(i,t){if(i==null)return{};var n={},l=Object.keys(i),c,d;for(d=0;d<l.length;d++)c=l[d],!(t.indexOf(c)>=0)&&(n[c]=i[c]);return n}function Mx(i,t){if(i==null)return{};var n=Fx(i,t),l,c;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(i);for(c=0;c<d.length;c++)l=d[c],!(t.indexOf(l)>=0)&&(!Object.prototype.propertyIsEnumerable.call(i,l)||(n[l]=i[l]))}return n}var Ox="1.13.0";function dn(i){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(i)}var hn=dn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),to=dn(/Edge/i),nf=dn(/firefox/i),ro=dn(/safari/i)&&!dn(/chrome/i)&&!dn(/android/i),of=dn(/iP(ad|od|hone)/i),Px=dn(/chrome/i)&&dn(/android/i),af={capture:!1,passive:!1};function It(i,t,n){i.addEventListener(t,n,!hn&&af)}function Ct(i,t,n){i.removeEventListener(t,n,!hn&&af)}function ta(i,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),i)try{if(i.matches)return i.matches(t);if(i.msMatchesSelector)return i.msMatchesSelector(t);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function Rx(i){return i.host&&i!==document&&i.host.nodeType?i.host:i.parentNode}function Jr(i,t,n,l){if(i){n=n||document;do{if(t!=null&&(t[0]===">"?i.parentNode===n&&ta(i,t):ta(i,t))||l&&i===n)return i;if(i===n)break}while(i=Rx(i))}return null}var sf=/\s+/g;function Pr(i,t,n){if(i&&t)if(i.classList)i.classList[n?"add":"remove"](t);else{var l=(" "+i.className+" ").replace(sf," ").replace(" "+t+" "," ");i.className=(l+(n?" "+t:"")).replace(sf," ")}}function dt(i,t,n){var l=i&&i.style;if(l){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(i,""):i.currentStyle&&(n=i.currentStyle),t===void 0?n:n[t];!(t in l)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),l[t]=n+(typeof n=="string"?"":"px")}}function fi(i,t){var n="";if(typeof i=="string")n=i;else do{var l=dt(i,"transform");l&&l!=="none"&&(n=l+" "+n)}while(!t&&(i=i.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(n)}function lf(i,t,n){if(i){var l=i.getElementsByTagName(t),c=0,d=l.length;if(n)for(;c<d;c++)n(l[c],c);return l}return[]}function en(){var i=document.scrollingElement;return i||document.documentElement}function gr(i,t,n,l,c){if(!(!i.getBoundingClientRect&&i!==window)){var d,a,h,f,p,y,g;if(i!==window&&i.parentNode&&i!==en()?(d=i.getBoundingClientRect(),a=d.top,h=d.left,f=d.bottom,p=d.right,y=d.height,g=d.width):(a=0,h=0,f=window.innerHeight,p=window.innerWidth,y=window.innerHeight,g=window.innerWidth),(t||n)&&i!==window&&(c=c||i.parentNode,!hn))do if(c&&c.getBoundingClientRect&&(dt(c,"transform")!=="none"||n&&dt(c,"position")!=="static")){var v=c.getBoundingClientRect();a-=v.top+parseInt(dt(c,"border-top-width")),h-=v.left+parseInt(dt(c,"border-left-width")),f=a+d.height,p=h+d.width;break}while(c=c.parentNode);if(l&&i!==window){var b=fi(c||i),k=b&&b.a,_=b&&b.d;b&&(a/=_,h/=k,g/=k,y/=_,f=a+y,p=h+g)}return{top:a,left:h,bottom:f,right:p,width:g,height:y}}}function uf(i,t,n){for(var l=En(i,!0),c=gr(i)[t];l;){var d=gr(l)[n],a=void 0;if(n==="top"||n==="left"?a=c>=d:a=c<=d,!a)return l;if(l===en())break;l=En(l,!1)}return!1}function ra(i,t,n){for(var l=0,c=0,d=i.children;c<d.length;){if(d[c].style.display!=="none"&&d[c]!==ht.ghost&&d[c]!==ht.dragged&&Jr(d[c],n.draggable,i,!1)){if(l===t)return d[c];l++}c++}return null}function Fs(i,t){for(var n=i.lastElementChild;n&&(n===ht.ghost||dt(n,"display")==="none"||t&&!ta(n,t));)n=n.previousElementSibling;return n||null}function Br(i,t){var n=0;if(!i||!i.parentNode)return-1;for(;i=i.previousElementSibling;)i.nodeName.toUpperCase()!=="TEMPLATE"&&i!==ht.clone&&(!t||ta(i,t))&&n++;return n}function cf(i){var t=0,n=0,l=en();if(i)do{var c=fi(i),d=c.a,a=c.d;t+=i.scrollLeft*d,n+=i.scrollTop*a}while(i!==l&&(i=i.parentNode));return[t,n]}function zx(i,t){for(var n in i)if(!!i.hasOwnProperty(n)){for(var l in t)if(t.hasOwnProperty(l)&&t[l]===i[n][l])return Number(n)}return-1}function En(i,t){if(!i||!i.getBoundingClientRect)return en();var n=i,l=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var c=dt(n);if(n.clientWidth<n.scrollWidth&&(c.overflowX=="auto"||c.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(c.overflowY=="auto"||c.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return en();if(l||t)return n;l=!0}}while(n=n.parentNode);return en()}function Nx(i,t){if(i&&t)for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n]);return i}function Ms(i,t){return Math.round(i.top)===Math.round(t.top)&&Math.round(i.left)===Math.round(t.left)&&Math.round(i.height)===Math.round(t.height)&&Math.round(i.width)===Math.round(t.width)}var no;function ff(i,t){return function(){if(!no){var n=arguments,l=this;n.length===1?i.call(l,n[0]):i.apply(l,n),no=setTimeout(function(){no=void 0},t)}}}function Bx(){clearTimeout(no),no=void 0}function df(i,t,n){i.scrollLeft+=t,i.scrollTop+=n}function hf(i){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(i).cloneNode(!0):n?n(i).clone(!0)[0]:i.cloneNode(!0)}var Rr="Sortable"+new Date().getTime();function qx(){var i=[],t;return{captureAnimationState:function(){if(i=[],!!this.options.animation){var l=[].slice.call(this.el.children);l.forEach(function(c){if(!(dt(c,"display")==="none"||c===ht.ghost)){i.push({target:c,rect:gr(c)});var d=Sn({},i[i.length-1].rect);if(c.thisAnimationDuration){var a=fi(c,!0);a&&(d.top-=a.f,d.left-=a.e)}c.fromRect=d}})}},addAnimationState:function(l){i.push(l)},removeAnimationState:function(l){i.splice(zx(i,{target:l}),1)},animateAll:function(l){var c=this;if(!this.options.animation){clearTimeout(t),typeof l=="function"&&l();return}var d=!1,a=0;i.forEach(function(h){var f=0,p=h.target,y=p.fromRect,g=gr(p),v=p.prevFromRect,b=p.prevToRect,k=h.rect,_=fi(p,!0);_&&(g.top-=_.f,g.left-=_.e),p.toRect=g,p.thisAnimationDuration&&Ms(v,g)&&!Ms(y,g)&&(k.top-g.top)/(k.left-g.left)==(y.top-g.top)/(y.left-g.left)&&(f=$x(k,v,b,c.options)),Ms(g,y)||(p.prevFromRect=y,p.prevToRect=g,f||(f=c.options.animation),c.animate(p,k,g,f)),f&&(d=!0,a=Math.max(a,f),clearTimeout(p.animationResetTimer),p.animationResetTimer=setTimeout(function(){p.animationTime=0,p.prevFromRect=null,p.fromRect=null,p.prevToRect=null,p.thisAnimationDuration=null},f),p.thisAnimationDuration=f)}),clearTimeout(t),d?t=setTimeout(function(){typeof l=="function"&&l()},a):typeof l=="function"&&l(),i=[]},animate:function(l,c,d,a){if(a){dt(l,"transition",""),dt(l,"transform","");var h=fi(this.el),f=h&&h.a,p=h&&h.d,y=(c.left-d.left)/(f||1),g=(c.top-d.top)/(p||1);l.animatingX=!!y,l.animatingY=!!g,dt(l,"transform","translate3d("+y+"px,"+g+"px,0)"),this.forRepaintDummy=jx(l),dt(l,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),dt(l,"transform","translate3d(0,0,0)"),typeof l.animated=="number"&&clearTimeout(l.animated),l.animated=setTimeout(function(){dt(l,"transition",""),dt(l,"transform",""),l.animated=!1,l.animatingX=!1,l.animatingY=!1},a)}}}}function jx(i){return i.offsetWidth}function $x(i,t,n,l){return Math.sqrt(Math.pow(t.top-i.top,2)+Math.pow(t.left-i.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*l.animation}var di=[],Os={initializeByDefault:!0},io={mount:function(t){for(var n in Os)Os.hasOwnProperty(n)&&!(n in t)&&(t[n]=Os[n]);di.forEach(function(l){if(l.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),di.push(t)},pluginEvent:function(t,n,l){var c=this;this.eventCanceled=!1,l.cancel=function(){c.eventCanceled=!0};var d=t+"Global";di.forEach(function(a){!n[a.pluginName]||(n[a.pluginName][d]&&n[a.pluginName][d](Sn({sortable:n},l)),n.options[a.pluginName]&&n[a.pluginName][t]&&n[a.pluginName][t](Sn({sortable:n},l)))})},initializePlugins:function(t,n,l,c){di.forEach(function(h){var f=h.pluginName;if(!(!t.options[f]&&!h.initializeByDefault)){var p=new h(t,n,t.options);p.sortable=t,p.options=t.options,t[f]=p,fn(l,p.defaults)}});for(var d in t.options)if(!!t.options.hasOwnProperty(d)){var a=this.modifyOption(t,d,t.options[d]);typeof a!="undefined"&&(t.options[d]=a)}},getEventProperties:function(t,n){var l={};return di.forEach(function(c){typeof c.eventProperties=="function"&&fn(l,c.eventProperties.call(n[c.pluginName],t))}),l},modifyOption:function(t,n,l){var c;return di.forEach(function(d){!t[d.pluginName]||d.optionListeners&&typeof d.optionListeners[n]=="function"&&(c=d.optionListeners[n].call(t[d.pluginName],l))}),c}};function Ux(i){var t=i.sortable,n=i.rootEl,l=i.name,c=i.targetEl,d=i.cloneEl,a=i.toEl,h=i.fromEl,f=i.oldIndex,p=i.newIndex,y=i.oldDraggableIndex,g=i.newDraggableIndex,v=i.originalEvent,b=i.putSortable,k=i.extraEventProperties;if(t=t||n&&n[Rr],!!t){var _,w=t.options,I="on"+l.charAt(0).toUpperCase()+l.substr(1);window.CustomEvent&&!hn&&!to?_=new CustomEvent(l,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(l,!0,!0)),_.to=a||n,_.from=h||n,_.item=c||n,_.clone=d,_.oldIndex=f,_.newIndex=p,_.oldDraggableIndex=y,_.newDraggableIndex=g,_.originalEvent=v,_.pullMode=b?b.lastPutMode:void 0;var S=Sn({},k,io.getEventProperties(l,t));for(var R in S)_[R]=S[R];n&&n.dispatchEvent(_),w[I]&&w[I].call(t,_)}}var Dr=function(t,n){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c=l.evt,d=Mx(l,["evt"]);io.pluginEvent.bind(ht)(t,n,Sn({dragEl:Ze,parentEl:Jt,ghostEl:yt,rootEl:Ut,nextEl:Nn,lastDownEl:na,cloneEl:Gt,cloneHidden:Cn,dragStarted:ao,putSortable:vr,activeSortable:ht.active,originalEvent:c,oldIndex:hi,oldDraggableIndex:oo,newIndex:zr,newDraggableIndex:Tn,hideGhostForTarget:xf,unhideGhostForTarget:wf,cloneNowHidden:function(){Cn=!0},cloneNowShown:function(){Cn=!1},dispatchSortableEvent:function(h){Tr({sortable:n,name:h,originalEvent:c})}},d))};function Tr(i){Ux(Sn({putSortable:vr,cloneEl:Gt,targetEl:Ze,rootEl:Ut,oldIndex:hi,oldDraggableIndex:oo,newIndex:zr,newDraggableIndex:Tn},i))}var Ze,Jt,yt,Ut,Nn,na,Gt,Cn,hi,zr,oo,Tn,ia,vr,pi=!1,oa=!1,aa=[],Bn,Gr,Ps,Rs,pf,mf,ao,mi,so,lo=!1,sa=!1,la,wr,zs=[],Ns=!1,ua=[],ca=typeof document!="undefined",fa=of,gf=to||hn?"cssFloat":"float",Hx=ca&&!Px&&!of&&"draggable"in document.createElement("div"),vf=function(){if(!!ca){if(hn)return!1;var i=document.createElement("x");return i.style.cssText="pointer-events:auto",i.style.pointerEvents==="auto"}}(),yf=function(t,n){var l=dt(t),c=parseInt(l.width)-parseInt(l.paddingLeft)-parseInt(l.paddingRight)-parseInt(l.borderLeftWidth)-parseInt(l.borderRightWidth),d=ra(t,0,n),a=ra(t,1,n),h=d&&dt(d),f=a&&dt(a),p=h&&parseInt(h.marginLeft)+parseInt(h.marginRight)+gr(d).width,y=f&&parseInt(f.marginLeft)+parseInt(f.marginRight)+gr(a).width;if(l.display==="flex")return l.flexDirection==="column"||l.flexDirection==="column-reverse"?"vertical":"horizontal";if(l.display==="grid")return l.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(d&&h.float&&h.float!=="none"){var g=h.float==="left"?"left":"right";return a&&(f.clear==="both"||f.clear===g)?"vertical":"horizontal"}return d&&(h.display==="block"||h.display==="flex"||h.display==="table"||h.display==="grid"||p>=c&&l[gf]==="none"||a&&l[gf]==="none"&&p+y>c)?"vertical":"horizontal"},Wx=function(t,n,l){var c=l?t.left:t.top,d=l?t.right:t.bottom,a=l?t.width:t.height,h=l?n.left:n.top,f=l?n.right:n.bottom,p=l?n.width:n.height;return c===h||d===f||c+a/2===h+p/2},Gx=function(t,n){var l;return aa.some(function(c){if(!Fs(c)){var d=gr(c),a=c[Rr].options.emptyInsertThreshold,h=t>=d.left-a&&t<=d.right+a,f=n>=d.top-a&&n<=d.bottom+a;if(a&&h&&f)return l=c}}),l},bf=function(t){function n(d,a){return function(h,f,p,y){var g=h.options.group.name&&f.options.group.name&&h.options.group.name===f.options.group.name;if(d==null&&(a||g))return!0;if(d==null||d===!1)return!1;if(a&&d==="clone")return d;if(typeof d=="function")return n(d(h,f,p,y),a)(h,f,p,y);var v=(a?h:f).options.group.name;return d===!0||typeof d=="string"&&d===v||d.join&&d.indexOf(v)>-1}}var l={},c=t.group;(!c||ea(c)!="object")&&(c={name:c}),l.name=c.name,l.checkPull=n(c.pull,!0),l.checkPut=n(c.put),l.revertClone=c.revertClone,t.group=l},xf=function(){!vf&&yt&&dt(yt,"display","none")},wf=function(){!vf&&yt&&dt(yt,"display","")};ca&&document.addEventListener("click",function(i){if(oa)return i.preventDefault(),i.stopPropagation&&i.stopPropagation(),i.stopImmediatePropagation&&i.stopImmediatePropagation(),oa=!1,!1},!0);var qn=function(t){if(Ze){t=t.touches?t.touches[0]:t;var n=Gx(t.clientX,t.clientY);if(n){var l={};for(var c in t)t.hasOwnProperty(c)&&(l[c]=t[c]);l.target=l.rootEl=n,l.preventDefault=void 0,l.stopPropagation=void 0,n[Rr]._onDragOver(l)}}},Kx=function(t){Ze&&Ze.parentNode[Rr]._isOutsideThisEl(t.target)};function ht(i,t){if(!(i&&i.nodeType&&i.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(i));this.el=i,this.options=t=fn({},t),i[Rr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(i.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return yf(i,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,h){a.setData("Text",h.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ht.supportPointer!==!1&&"PointerEvent"in window&&!ro,emptyInsertThreshold:5};io.initializePlugins(this,i,n);for(var l in n)!(l in t)&&(t[l]=n[l]);bf(t);for(var c in this)c.charAt(0)==="_"&&typeof this[c]=="function"&&(this[c]=this[c].bind(this));this.nativeDraggable=t.forceFallback?!1:Hx,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?It(i,"pointerdown",this._onTapStart):(It(i,"mousedown",this._onTapStart),It(i,"touchstart",this._onTapStart)),this.nativeDraggable&&(It(i,"dragover",this),It(i,"dragenter",this)),aa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),fn(this,qx())}ht.prototype={constructor:ht,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(mi=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Ze):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,l=this.el,c=this.options,d=c.preventOnFilter,a=t.type,h=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,f=(h||t).target,p=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||f,y=c.filter;if(e0(l),!Ze&&!(/mousedown|pointerdown/.test(a)&&t.button!==0||c.disabled)&&!p.isContentEditable&&!(!this.nativeDraggable&&ro&&f&&f.tagName.toUpperCase()==="SELECT")&&(f=Jr(f,c.draggable,l,!1),!(f&&f.animated)&&na!==f)){if(hi=Br(f),oo=Br(f,c.draggable),typeof y=="function"){if(y.call(this,t,f,this)){Tr({sortable:n,rootEl:p,name:"filter",targetEl:f,toEl:l,fromEl:l}),Dr("filter",n,{evt:t}),d&&t.cancelable&&t.preventDefault();return}}else if(y&&(y=y.split(",").some(function(g){if(g=Jr(p,g.trim(),l,!1),g)return Tr({sortable:n,rootEl:g,name:"filter",targetEl:f,fromEl:l,toEl:l}),Dr("filter",n,{evt:t}),!0}),y)){d&&t.cancelable&&t.preventDefault();return}c.handle&&!Jr(p,c.handle,l,!1)||this._prepareDragStart(t,h,f)}}},_prepareDragStart:function(t,n,l){var c=this,d=c.el,a=c.options,h=d.ownerDocument,f;if(l&&!Ze&&l.parentNode===d){var p=gr(l);if(Ut=d,Ze=l,Jt=Ze.parentNode,Nn=Ze.nextSibling,na=l,ia=a.group,ht.dragged=Ze,Bn={target:Ze,clientX:(n||t).clientX,clientY:(n||t).clientY},pf=Bn.clientX-p.left,mf=Bn.clientY-p.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Ze.style["will-change"]="all",f=function(){if(Dr("delayEnded",c,{evt:t}),ht.eventCanceled){c._onDrop();return}c._disableDelayedDragEvents(),!nf&&c.nativeDraggable&&(Ze.draggable=!0),c._triggerDragStart(t,n),Tr({sortable:c,name:"choose",originalEvent:t}),Pr(Ze,a.chosenClass,!0)},a.ignore.split(",").forEach(function(y){lf(Ze,y.trim(),qs)}),It(h,"dragover",qn),It(h,"mousemove",qn),It(h,"touchmove",qn),It(h,"mouseup",c._onDrop),It(h,"touchend",c._onDrop),It(h,"touchcancel",c._onDrop),nf&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Ze.draggable=!0),Dr("delayStart",this,{evt:t}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(to||hn))){if(ht.eventCanceled){this._onDrop();return}It(h,"mouseup",c._disableDelayedDrag),It(h,"touchend",c._disableDelayedDrag),It(h,"touchcancel",c._disableDelayedDrag),It(h,"mousemove",c._delayedDragTouchMoveHandler),It(h,"touchmove",c._delayedDragTouchMoveHandler),a.supportPointer&&It(h,"pointermove",c._delayedDragTouchMoveHandler),c._dragStartTimer=setTimeout(f,a.delay)}else f()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Ze&&qs(Ze),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._disableDelayedDrag),Ct(t,"touchend",this._disableDelayedDrag),Ct(t,"touchcancel",this._disableDelayedDrag),Ct(t,"mousemove",this._delayedDragTouchMoveHandler),Ct(t,"touchmove",this._delayedDragTouchMoveHandler),Ct(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?It(document,"pointermove",this._onTouchMove):n?It(document,"touchmove",this._onTouchMove):It(document,"mousemove",this._onTouchMove):(It(Ze,"dragend",this),It(Ut,"dragstart",this._onDragStart));try{document.selection?da(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(l){}},_dragStarted:function(t,n){if(pi=!1,Ut&&Ze){Dr("dragStarted",this,{evt:n}),this.nativeDraggable&&It(document,"dragover",Kx);var l=this.options;!t&&Pr(Ze,l.dragClass,!1),Pr(Ze,l.ghostClass,!0),ht.active=this,t&&this._appendGhost(),Tr({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Gr){this._lastX=Gr.clientX,this._lastY=Gr.clientY,xf();for(var t=document.elementFromPoint(Gr.clientX,Gr.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Gr.clientX,Gr.clientY),t!==n);)n=t;if(Ze.parentNode[Rr]._isOutsideThisEl(t),n)do{if(n[Rr]){var l=void 0;if(l=n[Rr]._onDragOver({clientX:Gr.clientX,clientY:Gr.clientY,target:t,rootEl:n}),l&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);wf()}},_onTouchMove:function(t){if(Bn){var n=this.options,l=n.fallbackTolerance,c=n.fallbackOffset,d=t.touches?t.touches[0]:t,a=yt&&fi(yt,!0),h=yt&&a&&a.a,f=yt&&a&&a.d,p=fa&&wr&&cf(wr),y=(d.clientX-Bn.clientX+c.x)/(h||1)+(p?p[0]-zs[0]:0)/(h||1),g=(d.clientY-Bn.clientY+c.y)/(f||1)+(p?p[1]-zs[1]:0)/(f||1);if(!ht.active&&!pi){if(l&&Math.max(Math.abs(d.clientX-this._lastX),Math.abs(d.clientY-this._lastY))<l)return;this._onDragStart(t,!0)}if(yt){a?(a.e+=y-(Ps||0),a.f+=g-(Rs||0)):a={a:1,b:0,c:0,d:1,e:y,f:g};var v="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");dt(yt,"webkitTransform",v),dt(yt,"mozTransform",v),dt(yt,"msTransform",v),dt(yt,"transform",v),Ps=y,Rs=g,Gr=d}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!yt){var t=this.options.fallbackOnBody?document.body:Ut,n=gr(Ze,!0,fa,!0,t),l=this.options;if(fa){for(wr=t;dt(wr,"position")==="static"&&dt(wr,"transform")==="none"&&wr!==document;)wr=wr.parentNode;wr!==document.body&&wr!==document.documentElement?(wr===document&&(wr=en()),n.top+=wr.scrollTop,n.left+=wr.scrollLeft):wr=en(),zs=cf(wr)}yt=Ze.cloneNode(!0),Pr(yt,l.ghostClass,!1),Pr(yt,l.fallbackClass,!0),Pr(yt,l.dragClass,!0),dt(yt,"transition",""),dt(yt,"transform",""),dt(yt,"box-sizing","border-box"),dt(yt,"margin",0),dt(yt,"top",n.top),dt(yt,"left",n.left),dt(yt,"width",n.width),dt(yt,"height",n.height),dt(yt,"opacity","0.8"),dt(yt,"position",fa?"absolute":"fixed"),dt(yt,"zIndex","100000"),dt(yt,"pointerEvents","none"),ht.ghost=yt,t.appendChild(yt),dt(yt,"transform-origin",pf/parseInt(yt.style.width)*100+"% "+mf/parseInt(yt.style.height)*100+"%")}},_onDragStart:function(t,n){var l=this,c=t.dataTransfer,d=l.options;if(Dr("dragStart",this,{evt:t}),ht.eventCanceled){this._onDrop();return}Dr("setupClone",this),ht.eventCanceled||(Gt=hf(Ze),Gt.draggable=!1,Gt.style["will-change"]="",this._hideClone(),Pr(Gt,this.options.chosenClass,!1),ht.clone=Gt),l.cloneId=da(function(){Dr("clone",l),!ht.eventCanceled&&(l.options.removeCloneOnHide||Ut.insertBefore(Gt,Ze),l._hideClone(),Tr({sortable:l,name:"clone"}))}),!n&&Pr(Ze,d.dragClass,!0),n?(oa=!0,l._loopId=setInterval(l._emulateDragOver,50)):(Ct(document,"mouseup",l._onDrop),Ct(document,"touchend",l._onDrop),Ct(document,"touchcancel",l._onDrop),c&&(c.effectAllowed="move",d.setData&&d.setData.call(l,c,Ze)),It(document,"drop",l),dt(Ze,"transform","translateZ(0)")),pi=!0,l._dragStartId=da(l._dragStarted.bind(l,n,t)),It(document,"selectstart",l),ao=!0,ro&&dt(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,l=t.target,c,d,a,h=this.options,f=h.group,p=ht.active,y=ia===f,g=h.sort,v=vr||p,b,k=this,_=!1;if(Ns)return;function w(z,se){Dr(z,k,Sn({evt:t,isOwner:y,axis:b?"vertical":"horizontal",revert:a,dragRect:c,targetRect:d,canSort:g,fromSortable:v,target:l,completed:S,onMove:function(W,M){return Bs(Ut,n,Ze,c,W,gr(W),t,M)},changed:R},se))}function I(){w("dragOverAnimationCapture"),k.captureAnimationState(),k!==v&&v.captureAnimationState()}function S(z){return w("dragOverCompleted",{insertion:z}),z&&(y?p._hideClone():p._showClone(k),k!==v&&(Pr(Ze,vr?vr.options.ghostClass:p.options.ghostClass,!1),Pr(Ze,h.ghostClass,!0)),vr!==k&&k!==ht.active?vr=k:k===ht.active&&vr&&(vr=null),v===k&&(k._ignoreWhileAnimating=l),k.animateAll(function(){w("dragOverAnimationComplete"),k._ignoreWhileAnimating=null}),k!==v&&(v.animateAll(),v._ignoreWhileAnimating=null)),(l===Ze&&!Ze.animated||l===n&&!l.animated)&&(mi=null),!h.dragoverBubble&&!t.rootEl&&l!==document&&(Ze.parentNode[Rr]._isOutsideThisEl(t.target),!z&&qn(t)),!h.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function R(){zr=Br(Ze),Tn=Br(Ze,h.draggable),Tr({sortable:k,name:"change",toEl:n,newIndex:zr,newDraggableIndex:Tn,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),l=Jr(l,h.draggable,n,!0),w("dragOver"),ht.eventCanceled)return _;if(Ze.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||k._ignoreWhileAnimating===l)return S(!1);if(oa=!1,p&&!h.disabled&&(y?g||(a=!Ut.contains(Ze)):vr===this||(this.lastPutMode=ia.checkPull(this,p,Ze,t))&&f.checkPut(this,p,Ze,t))){if(b=this._getDirection(t,l)==="vertical",c=gr(Ze),w("dragOverValid"),ht.eventCanceled)return _;if(a)return Jt=Ut,I(),this._hideClone(),w("revert"),ht.eventCanceled||(Nn?Ut.insertBefore(Ze,Nn):Ut.appendChild(Ze)),S(!0);var O=Fs(n,h.draggable);if(!O||Xx(t,b,this)&&!O.animated){if(O===Ze)return S(!1);if(O&&n===t.target&&(l=O),l&&(d=gr(l)),Bs(Ut,n,Ze,c,l,d,t,!!l)!==!1)return I(),n.appendChild(Ze),Jt=n,R(),S(!0)}else if(l.parentNode===n){d=gr(l);var U=0,$,J=Ze.parentNode!==n,K=!Wx(Ze.animated&&Ze.toRect||c,l.animated&&l.toRect||d,b),X=b?"top":"left",G=uf(l,"top","top")||uf(Ze,"top","top"),q=G?G.scrollTop:void 0;mi!==l&&($=d[X],lo=!1,sa=!K&&h.invertSwap||J),U=Zx(t,l,d,b,K?1:h.swapThreshold,h.invertedSwapThreshold==null?h.swapThreshold:h.invertedSwapThreshold,sa,mi===l);var T;if(U!==0){var A=Br(Ze);do A-=U,T=Jt.children[A];while(T&&(dt(T,"display")==="none"||T===yt))}if(U===0||T===l)return S(!1);mi=l,so=U;var j=l.nextElementSibling,te=!1;te=U===1;var F=Bs(Ut,n,Ze,c,l,d,t,te);if(F!==!1)return(F===1||F===-1)&&(te=F===1),Ns=!0,setTimeout(Yx,30),I(),te&&!j?n.appendChild(Ze):l.parentNode.insertBefore(Ze,te?j:l),G&&df(G,0,q-G.scrollTop),Jt=Ze.parentNode,$!==void 0&&!sa&&(la=Math.abs($-gr(l)[X])),R(),S(!0)}if(n.contains(Ze))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Ct(document,"mousemove",this._onTouchMove),Ct(document,"touchmove",this._onTouchMove),Ct(document,"pointermove",this._onTouchMove),Ct(document,"dragover",qn),Ct(document,"mousemove",qn),Ct(document,"touchmove",qn)},_offUpEvents:function(){var t=this.el.ownerDocument;Ct(t,"mouseup",this._onDrop),Ct(t,"touchend",this._onDrop),Ct(t,"pointerup",this._onDrop),Ct(t,"touchcancel",this._onDrop),Ct(document,"selectstart",this)},_onDrop:function(t){var n=this.el,l=this.options;if(zr=Br(Ze),Tn=Br(Ze,l.draggable),Dr("drop",this,{evt:t}),Jt=Ze&&Ze.parentNode,zr=Br(Ze),Tn=Br(Ze,l.draggable),ht.eventCanceled){this._nulling();return}pi=!1,sa=!1,lo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),js(this.cloneId),js(this._dragStartId),this.nativeDraggable&&(Ct(document,"drop",this),Ct(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ro&&dt(document.body,"user-select",""),dt(Ze,"transform",""),t&&(ao&&(t.cancelable&&t.preventDefault(),!l.dropBubble&&t.stopPropagation()),yt&&yt.parentNode&&yt.parentNode.removeChild(yt),(Ut===Jt||vr&&vr.lastPutMode!=="clone")&&Gt&&Gt.parentNode&&Gt.parentNode.removeChild(Gt),Ze&&(this.nativeDraggable&&Ct(Ze,"dragend",this),qs(Ze),Ze.style["will-change"]="",ao&&!pi&&Pr(Ze,vr?vr.options.ghostClass:this.options.ghostClass,!1),Pr(Ze,this.options.chosenClass,!1),Tr({sortable:this,name:"unchoose",toEl:Jt,newIndex:null,newDraggableIndex:null,originalEvent:t}),Ut!==Jt?(zr>=0&&(Tr({rootEl:Jt,name:"add",toEl:Jt,fromEl:Ut,originalEvent:t}),Tr({sortable:this,name:"remove",toEl:Jt,originalEvent:t}),Tr({rootEl:Jt,name:"sort",toEl:Jt,fromEl:Ut,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Jt,originalEvent:t})),vr&&vr.save()):zr!==hi&&zr>=0&&(Tr({sortable:this,name:"update",toEl:Jt,originalEvent:t}),Tr({sortable:this,name:"sort",toEl:Jt,originalEvent:t})),ht.active&&((zr==null||zr===-1)&&(zr=hi,Tn=oo),Tr({sortable:this,name:"end",toEl:Jt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Dr("nulling",this),Ut=Ze=Jt=yt=Nn=Gt=na=Cn=Bn=Gr=ao=zr=Tn=hi=oo=mi=so=vr=ia=ht.dragged=ht.ghost=ht.clone=ht.active=null,ua.forEach(function(t){t.checked=!0}),ua.length=Ps=Rs=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Ze&&(this._onDragOver(t),Vx(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,l=this.el.children,c=0,d=l.length,a=this.options;c<d;c++)n=l[c],Jr(n,a.draggable,this.el,!1)&&t.push(n.getAttribute(a.dataIdAttr)||Jx(n));return t},sort:function(t,n){var l={},c=this.el;this.toArray().forEach(function(d,a){var h=c.children[a];Jr(h,this.options.draggable,c,!1)&&(l[d]=h)},this),n&&this.captureAnimationState(),t.forEach(function(d){l[d]&&(c.removeChild(l[d]),c.appendChild(l[d]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Jr(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var l=this.options;if(n===void 0)return l[t];var c=io.modifyOption(this,t,n);typeof c!="undefined"?l[t]=c:l[t]=n,t==="group"&&bf(l)},destroy:function(){Dr("destroy",this);var t=this.el;t[Rr]=null,Ct(t,"mousedown",this._onTapStart),Ct(t,"touchstart",this._onTapStart),Ct(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Ct(t,"dragover",this),Ct(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),aa.splice(aa.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Cn){if(Dr("hideClone",this),ht.eventCanceled)return;dt(Gt,"display","none"),this.options.removeCloneOnHide&&Gt.parentNode&&Gt.parentNode.removeChild(Gt),Cn=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Cn){if(Dr("showClone",this),ht.eventCanceled)return;Ze.parentNode==Ut&&!this.options.group.revertClone?Ut.insertBefore(Gt,Ze):Nn?Ut.insertBefore(Gt,Nn):Ut.appendChild(Gt),this.options.group.revertClone&&this.animate(Ze,Gt),dt(Gt,"display",""),Cn=!1}}};function Vx(i){i.dataTransfer&&(i.dataTransfer.dropEffect="move"),i.cancelable&&i.preventDefault()}function Bs(i,t,n,l,c,d,a,h){var f,p=i[Rr],y=p.options.onMove,g;return window.CustomEvent&&!hn&&!to?f=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(f=document.createEvent("Event"),f.initEvent("move",!0,!0)),f.to=t,f.from=i,f.dragged=n,f.draggedRect=l,f.related=c||t,f.relatedRect=d||gr(t),f.willInsertAfter=h,f.originalEvent=a,i.dispatchEvent(f),y&&(g=y.call(p,f,a)),g}function qs(i){i.draggable=!1}function Yx(){Ns=!1}function Xx(i,t,n){var l=gr(Fs(n.el,n.options.draggable)),c=10;return t?i.clientX>l.right+c||i.clientX<=l.right&&i.clientY>l.bottom&&i.clientX>=l.left:i.clientX>l.right&&i.clientY>l.top||i.clientX<=l.right&&i.clientY>l.bottom+c}function Zx(i,t,n,l,c,d,a,h){var f=l?i.clientY:i.clientX,p=l?n.height:n.width,y=l?n.top:n.left,g=l?n.bottom:n.right,v=!1;if(!a){if(h&&la<p*c){if(!lo&&(so===1?f>y+p*d/2:f<g-p*d/2)&&(lo=!0),lo)v=!0;else if(so===1?f<y+la:f>g-la)return-so}else if(f>y+p*(1-c)/2&&f<g-p*(1-c)/2)return Qx(t)}return v=v||a,v&&(f<y+p*d/2||f>g-p*d/2)?f>y+p/2?1:-1:0}function Qx(i){return Br(Ze)<Br(i)?1:-1}function Jx(i){for(var t=i.tagName+i.className+i.src+i.href+i.textContent,n=t.length,l=0;n--;)l+=t.charCodeAt(n);return l.toString(36)}function e0(i){ua.length=0;for(var t=i.getElementsByTagName("input"),n=t.length;n--;){var l=t[n];l.checked&&ua.push(l)}}function da(i){return setTimeout(i,0)}function js(i){return clearTimeout(i)}ca&&It(document,"touchmove",function(i){(ht.active||pi)&&i.cancelable&&i.preventDefault()});ht.utils={on:It,off:Ct,css:dt,find:lf,is:function(t,n){return!!Jr(t,n,t,!1)},extend:Nx,throttle:ff,closest:Jr,toggleClass:Pr,clone:hf,index:Br,nextTick:da,cancelNextTick:js,detectDirection:yf,getChild:ra};ht.get=function(i){return i[Rr]};ht.mount=function(){for(var i=arguments.length,t=new Array(i),n=0;n<i;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(l){if(!l.prototype||!l.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(l));l.utils&&(ht.utils=Sn({},ht.utils,l.utils)),io.mount(l)})};ht.create=function(i,t){return new ht(i,t)};ht.version=Ox;var er=[],uo,$s,Us=!1,Hs,Ws,ha,co;function t0(){function i(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return i.prototype={dragStarted:function(n){var l=n.originalEvent;this.sortable.nativeDraggable?It(document,"dragover",this._handleAutoScroll):this.options.supportPointer?It(document,"pointermove",this._handleFallbackAutoScroll):l.touches?It(document,"touchmove",this._handleFallbackAutoScroll):It(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var l=n.originalEvent;!this.options.dragOverBubble&&!l.rootEl&&this._handleAutoScroll(l)},drop:function(){this.sortable.nativeDraggable?Ct(document,"dragover",this._handleAutoScroll):(Ct(document,"pointermove",this._handleFallbackAutoScroll),Ct(document,"touchmove",this._handleFallbackAutoScroll),Ct(document,"mousemove",this._handleFallbackAutoScroll)),kf(),pa(),Bx()},nulling:function(){ha=$s=uo=Us=co=Hs=Ws=null,er.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,l){var c=this,d=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,h=document.elementFromPoint(d,a);if(ha=n,l||to||hn||ro){Gs(n,this.options,h,l);var f=En(h,!0);Us&&(!co||d!==Hs||a!==Ws)&&(co&&kf(),co=setInterval(function(){var p=En(document.elementFromPoint(d,a),!0);p!==f&&(f=p,pa()),Gs(n,c.options,p,l)},10),Hs=d,Ws=a)}else{if(!this.options.bubbleScroll||En(h,!0)===en()){pa();return}Gs(n,this.options,En(h,!1),!1)}}},fn(i,{pluginName:"scroll",initializeByDefault:!0})}function pa(){er.forEach(function(i){clearInterval(i.pid)}),er=[]}function kf(){clearInterval(co)}var Gs=ff(function(i,t,n,l){if(!!t.scroll){var c=(i.touches?i.touches[0]:i).clientX,d=(i.touches?i.touches[0]:i).clientY,a=t.scrollSensitivity,h=t.scrollSpeed,f=en(),p=!1,y;$s!==n&&($s=n,pa(),uo=t.scroll,y=t.scrollFn,uo===!0&&(uo=En(n,!0)));var g=0,v=uo;do{var b=v,k=gr(b),_=k.top,w=k.bottom,I=k.left,S=k.right,R=k.width,O=k.height,U=void 0,$=void 0,J=b.scrollWidth,K=b.scrollHeight,X=dt(b),G=b.scrollLeft,q=b.scrollTop;b===f?(U=R<J&&(X.overflowX==="auto"||X.overflowX==="scroll"||X.overflowX==="visible"),$=O<K&&(X.overflowY==="auto"||X.overflowY==="scroll"||X.overflowY==="visible")):(U=R<J&&(X.overflowX==="auto"||X.overflowX==="scroll"),$=O<K&&(X.overflowY==="auto"||X.overflowY==="scroll"));var T=U&&(Math.abs(S-c)<=a&&G+R<J)-(Math.abs(I-c)<=a&&!!G),A=$&&(Math.abs(w-d)<=a&&q+O<K)-(Math.abs(_-d)<=a&&!!q);if(!er[g])for(var j=0;j<=g;j++)er[j]||(er[j]={});(er[g].vx!=T||er[g].vy!=A||er[g].el!==b)&&(er[g].el=b,er[g].vx=T,er[g].vy=A,clearInterval(er[g].pid),(T!=0||A!=0)&&(p=!0,er[g].pid=setInterval(function(){l&&this.layer===0&&ht.active._onTouchMove(ha);var te=er[this.layer].vy?er[this.layer].vy*h:0,F=er[this.layer].vx?er[this.layer].vx*h:0;typeof y=="function"&&y.call(ht.dragged.parentNode[Rr],F,te,i,ha,er[this.layer].el)!=="continue"||df(er[this.layer].el,F,te)}.bind({layer:g}),24))),g++}while(t.bubbleScroll&&v!==f&&(v=En(v,!1)));Us=p}},30),_f=function(t){var n=t.originalEvent,l=t.putSortable,c=t.dragEl,d=t.activeSortable,a=t.dispatchSortableEvent,h=t.hideGhostForTarget,f=t.unhideGhostForTarget;if(!!n){var p=l||d;h();var y=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,g=document.elementFromPoint(y.clientX,y.clientY);f(),p&&!p.el.contains(g)&&(a("spill"),this.onSpill({dragEl:c,putSortable:l}))}};function Ks(){}Ks.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,l=t.putSortable;this.sortable.captureAnimationState(),l&&l.captureAnimationState();var c=ra(this.sortable.el,this.startIndex,this.options);c?this.sortable.el.insertBefore(n,c):this.sortable.el.appendChild(n),this.sortable.animateAll(),l&&l.animateAll()},drop:_f};fn(Ks,{pluginName:"revertOnSpill"});function Vs(){}Vs.prototype={onSpill:function(t){var n=t.dragEl,l=t.putSortable,c=l||this.sortable;c.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),c.animateAll()},drop:_f};fn(Vs,{pluginName:"removeOnSpill"});ht.mount(new t0);ht.mount(Vs,Ks);var gi=ht;var Sf={name:function(i,t){let n=i.getAttribute("data-name").trim().toLowerCase(),l=t.getAttribute("data-name").trim().toLowerCase();return n.localeCompare(l)},created:function(i,t){let n=Number(i.getAttribute("data-created"));return Number(t.getAttribute("data-created"))-n},updated:function(i,t){let n=Number(i.getAttribute("data-updated"));return Number(t.getAttribute("data-updated"))-n},chaptersFirst:function(i,t){let n=i.getAttribute("data-type"),l=t.getAttribute("data-type");return n===l?0:n==="chapter"?-1:1},chaptersLast:function(i,t){let n=i.getAttribute("data-type"),l=t.getAttribute("data-type");return n===l?0:n==="chapter"?1:-1}},Ef=class{constructor(t){this.elem=t,this.sortContainer=t.querySelector("[book-sort-boxes]"),this.input=t.querySelector("[book-sort-input]");let n=t.querySelector(".sort-box");this.setupBookSortable(n),this.setupSortPresets(),window.$events.listen("entity-select-confirm",this.bookSelect.bind(this))}setupSortPresets(){let t="",n=!1,l=["name","created","updated"];this.sortContainer.addEventListener("click",c=>{let d=c.target.closest(".sort-box-options [data-sort]");if(!d)return;c.preventDefault();let a=d.closest(".sort-box").querySelectorAll("ul"),h=d.getAttribute("data-sort");n=t===h?!n:!1;let f=Sf[h];n&&l.includes(h)&&(f=function(p,y){return 0-Sf[h](p,y)});for(let p of a)Array.from(p.children).filter(g=>g.matches("li")).sort(f).forEach(g=>{p.appendChild(g)});t=h,this.updateMapInput()})}bookSelect(t){if(this.elem.querySelector(`[data-type="book"][data-id="${t.id}"]`)!==null)return;let l=t.link+"/sort-item";window.$http.get(l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let a=d.children[0];this.sortContainer.append(a),this.setupBookSortable(a)})}setupBookSortable(t){let n=[t.querySelector(".sort-list")];n.push(...t.querySelectorAll(".entity-list-item + ul"));let l={name:"book",pull:["book","chapter"],put:["book","chapter"]},c={name:"chapter",pull:["book","chapter"],put:function(d,a,h){return h.getAttribute("data-type")==="page"}};for(let d of n)new gi(d,{group:d.classList.contains("sort-list")?l:c,animation:150,fallbackOnBody:!0,swapThreshold:.65,onSort:this.updateMapInput.bind(this),dragClass:"bg-white",ghostClass:"primary-background-light",multiDrag:!0,multiDragKey:"CTRL",selectedClass:"sortable-selected"})}updateMapInput(){let t=this.buildEntityMap();this.input.value=JSON.stringify(t)}buildEntityMap(){let t=[],n=this.elem.querySelectorAll(".sort-list");for(let l of n){let c=l.closest('[data-type="book"]').getAttribute("data-id"),d=Array.from(l.children).filter(a=>a.matches('[data-type="page"], [data-type="chapter"]'));for(let a=0;a<d.length;a++)this.addBookChildToMap(d[a],a,c,t)}return t}addBookChildToMap(t,n,l,c){let d=t.getAttribute("data-type"),a=!1,h=t.getAttribute("data-id");c.push({id:h,sort:n,parentChapter:a,type:d,book:l});let f=t.querySelectorAll('[data-type="page"]');for(let p=0;p<f.length;p++)c.push({id:f[p].getAttribute("data-id"),sort:p,parentChapter:h,type:"page",book:l})}},Cf=Ef;var ma=new WeakMap;function Tf(i,t=400,n=null){ya(i),i.style.display="block",va(i,{opacity:["0","1"]},t,()=>{n&&n()})}function ga(i,t=400,n=null){ya(i),va(i,{opacity:["1","0"]},t,()=>{i.style.display="none",n&&n()})}function vi(i,t=400){ya(i);let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),a={height:[`${n}px`,"0px"],overflow:["hidden","hidden"],paddingTop:[c,"0px"],paddingBottom:[d,"0px"]};va(i,a,t,()=>{i.style.display="none"})}function yi(i,t=400){ya(i),i.style.display="block";let n=i.getBoundingClientRect().height,l=getComputedStyle(i),c=l.getPropertyValue("padding-top"),d=l.getPropertyValue("padding-bottom"),a={height:["0px",`${n}px`],overflow:["hidden","hidden"],paddingTop:["0px",c],paddingBottom:["0px",d]};va(i,a,t)}function va(i,t,n=400,l=null){let c=Object.keys(t);for(let a of c)i.style[a]=t[a][0];let d=()=>{for(let a of c)i.style[a]=null;i.style.transition=null,i.removeEventListener("transitionend",d),ma.delete(i),l&&l()};setTimeout(()=>{i.style.transition=`all ease-in-out ${n}ms`;for(let a of c)i.style[a]=t[a][1];i.addEventListener("transitionend",d),ma.set(i,d)},15)}function ya(i){ma.has(i)&&ma.get(i)()}var Af=class{constructor(t){this.elem=t,this.isOpen=t.classList.contains("open"),t.addEventListener("click",this.click.bind(this))}open(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.add("open"),this.elem.setAttribute("aria-expanded","true"),yi(t,240)}close(){let t=this.elem.parentNode.querySelector(".inset-list");this.elem.classList.remove("open"),this.elem.setAttribute("aria-expanded","false"),vi(t,240)}click(t){t.preventDefault(),this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}},Lf=Af;var jn=St(At()),sh=St(Qs()),x_=St(Js()),w_=St(el()),k_=St(Rf()),__=St(Bf()),S_=St($f()),E_=St(Wf()),C_=St(rl()),T_=St(tl()),A_=St(ed()),L_=St(nd()),D_=St(ud()),I_=St(dd()),F_=St(md()),M_=St(yd()),O_=St(wd()),P_=St(Sd()),R_=St(Td()),z_=St(Dd()),N_=St(Md()),B_=St(Rd()),q_=St($d()),j_=St(Wd()),$_=St(Vd()),U_=St(Zd()),H_=St(eh()),W_=St(ba()),G_=St(nh()),K_=St(ah()),nl={css:"css",c:"text/x-csrc",java:"text/x-java",scala:"text/x-scala",kotlin:"text/x-kotlin","c++":"text/x-c++src","c#":"text/x-csharp",csharp:"text/x-csharp",diff:"diff",for:"fortran",fortran:"fortran",go:"go",haskell:"haskell",hs:"haskell",html:"htmlmixed",ini:"properties",javascript:"javascript",json:{name:"javascript",json:!0},js:"javascript",jl:"julia",julia:"julia",lua:"lua",md:"markdown",mdown:"markdown",markdown:"markdown",ml:"mllike",nginx:"nginx",perl:"perl",pl:"perl",powershell:"powershell",properties:"properties",ocaml:"mllike",pascal:"text/x-pascal",pas:"text/x-pascal",php:i=>i.includes("<?php")?"php":"text/x-php",py:"python",python:"python",ruby:"ruby",rust:"rust",rb:"ruby",rs:"rust",shell:"shell",sh:"shell",bash:"shell",toml:"toml",sql:"text/x-sql",vbs:"vbscript",vbscript:"vbscript",xml:"xml",yaml:"yaml",yml:"yaml"};function r0(){let i=document.querySelectorAll(".page-content pre, .comment-box .content pre");for(let t of i)lh(t)}function n0(i){let t=i.querySelectorAll("pre");for(let n of t)lh(n)}function lh(i){let t=i.querySelector("code[class^=language-]");i.innerHTML=i.innerHTML.replace(/<br\s*[\/]?>/gi,`
`);let n=i.textContent.trimEnd(),l="";if(t!==null){let d=t.className.replace("language-","");l=xa(d,n)}let c=(0,jn.default)(function(d){i.parentNode.replaceChild(d,i)},{value:n,mode:l,lineNumbers:!0,lineWrapping:!1,theme:wa(),readOnly:!0});i0(c)}function i0(i){let t='<svg viewBox="0 0 24 24" width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',n=document.createElement("div");n.classList.add("CodeMirror-copy"),n.innerHTML=t,i.display.wrapper.appendChild(n),new sh.default(n,{text:function(c){return i.getValue()}}).on("success",c=>{n.classList.add("success"),setTimeout(()=>{n.classList.remove("success")},240)})}function xa(i,t){i=i.trim().replace(/^\./g,"").toLowerCase();let n=typeof nl[i];return n==="undefined"?"":n==="function"?nl[i](t):nl[i]}function wa(){let i=document.documentElement.classList.contains("dark-mode");return window.codeTheme||(i?"darcula":"default")}function o0(i){let t=i.ownerDocument,n=i.querySelector("code"),l=(i.className||"").replace("language-","");l===""&&n&&(l=(n.className||"").replace("language-","")),i.innerHTML=i.innerHTML.replace(/<br\s*[\/]?>/gi,`
`);let c=i.textContent,d=t.createElement("div"),a=t.createElement("textarea");d.className="CodeMirrorContainer",d.setAttribute("data-lang",l),d.setAttribute("dir","ltr"),a.style.display="none",i.parentNode.replaceChild(d,i),d.appendChild(a),d.contentEditable=!1,a.textContent=c;let h=(0,jn.default)(function(f){d.appendChild(f)},{value:c,mode:xa(l,c),lineNumbers:!0,lineWrapping:!1,theme:wa(),readOnly:!0});return{wrap:d,editor:h}}function a0(i,t){let n=i.textContent;return(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},{value:n,mode:xa(t,n),lineNumbers:!0,lineWrapping:!1,theme:wa()})}function s0(i,t,n){i.setOption("mode",xa(t,n))}function l0(i,t){i.setValue(t),setTimeout(()=>{uh(i)},10)}function uh(i){i.refresh()}function u0(i){let n={value:i.textContent,mode:"markdown",lineNumbers:!0,lineWrapping:!0,theme:wa(),scrollPastEnd:!0};return window.$events.emitPublic(i,"editor-markdown-cm::pre-init",{config:n}),(0,jn.default)(function(l){i.parentNode.insertBefore(l,i),i.style.display="none"},n)}function c0(){return jn.default.keyMap.default==jn.default.keyMap.macDefault?"Cmd":"Ctrl"}var ur={highlight:r0,highlightWithin:n0,wysiwygView:o0,popupEditor:a0,setMode:s0,setContent:l0,updateLayout:uh,markdownEditor:u0,getMetaKey:c0};var ch=class{setup(){this.container=this.$refs.container,this.popup=this.$el,this.editorInput=this.$refs.editor,this.languageLinks=this.$manyRefs.languageLink,this.saveButton=this.$refs.saveButton,this.languageInput=this.$refs.languageInput,this.historyDropDown=this.$refs.historyDropDown,this.historyList=this.$refs.historyList,this.callback=null,this.editor=null,this.history={},this.historyKey="code_history",this.setupListeners()}setupListeners(){this.container.addEventListener("keydown",t=>{t.ctrlKey&&t.key==="Enter"&&this.save()}),Rt(this.languageLinks,t=>{let n=t.target.dataset.lang;this.languageInput.value=n,this.updateEditorMode(n)}),Qo(this.languageInput,t=>this.save()),Rt(this.saveButton,t=>this.save()),$t(this.historyList,"button","click",(t,n)=>{t.preventDefault();let l=n.dataset.time;this.editor&&this.editor.setValue(this.history[l])})}save(){this.callback&&this.callback(this.editor.getValue(),this.languageInput.value),this.hide()}open(t,n,l){this.languageInput.value=n,this.callback=l,this.show(),this.updateEditorMode(n),ur.setContent(this.editor,t)}show(){this.editor||(this.editor=ur.popupEditor(this.editorInput,this.languageInput.value)),this.loadHistory(),this.popup.components.popup.show(()=>{ur.updateLayout(this.editor),this.editor.focus()},()=>{this.addHistory()})}hide(){this.popup.components.popup.hide(),this.addHistory()}updateEditorMode(t){ur.setMode(this.editor,t,this.editor.getValue())}loadHistory(){this.history=JSON.parse(window.sessionStorage.getItem(this.historyKey)||"{}");let t=Object.keys(this.history).reverse();this.historyDropDown.classList.toggle("hidden",t.length===0),this.historyList.innerHTML=t.map(n=>{let l=new Date(parseInt(n)).toLocaleTimeString();return`<li><button type="button" data-time="${n}">${l}</button></li>`}).join("")}addHistory(){if(!this.editor)return;let t=this.editor.getValue();if(!t)return;let n=Object.keys(this.history).pop();if(this.history[n]===t)return;this.history[String(Date.now())]=t;let l=JSON.stringify(this.history);window.sessionStorage.setItem(this.historyKey,l)}},fh=ch;var dh=class{constructor(t){ur.highlightWithin(t)}},hh=dh;var ph=class{constructor(t){this.elem=t,this.trigger=t.querySelector("[collapsible-trigger]"),this.content=t.querySelector("[collapsible-content]"),!!this.trigger&&(this.trigger.addEventListener("click",this.toggle.bind(this)),this.openIfContainsError())}open(){this.elem.classList.add("open"),this.trigger.setAttribute("aria-expanded","true"),yi(this.content,300)}close(){this.elem.classList.remove("open"),this.trigger.setAttribute("aria-expanded","false"),vi(this.content,300)}toggle(){this.elem.classList.contains("open")?this.close():this.open()}openIfContainsError(){this.content.querySelector(".text-neg.text-small")&&this.open()}},mh=ph;var gh=class{constructor(t){this.elem=t,this.checkbox=t.querySelector("input[type=checkbox]"),this.display=t.querySelector('[role="checkbox"]'),this.checkbox.addEventListener("change",this.stateChange.bind(this)),this.elem.addEventListener("keydown",this.onKeyDown.bind(this))}onKeyDown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this.toggle())}toggle(){this.checkbox.checked=!this.checkbox.checked,this.checkbox.dispatchEvent(new Event("change")),this.stateChange()}stateChange(){let t=this.checkbox.checked?"true":"false";this.display.setAttribute("aria-checked",t)}},vh=gh;var yh=class{constructor(t){this.elem=t,this.dealtWith=!1,t.addEventListener("toggle",this.onToggle.bind(this))}onToggle(){this.dealtWith||(ur.highlightWithin(this.elem),this.dealtWith=!0)}},bh=yh;var xh=class{setup(){this.container=this.$el,this.menu=this.$refs.menu,this.toggle=this.$refs.toggle,this.moveMenu=this.$opts.moveMenu,this.bubbleEscapes=this.$opts.bubbleEscapes==="true",this.direction=document.dir==="rtl"?"right":"left",this.body=document.body,this.showing=!1,this.setupListeners(),this.hide=this.hide.bind(this)}show(t=null){this.hideAll(),this.menu.style.display="block",this.menu.classList.add("anim","menuIn"),this.toggle.setAttribute("aria-expanded","true"),this.moveMenu&&(this.rect=this.menu.getBoundingClientRect(),this.body.appendChild(this.menu),this.menu.style.position="fixed",this.direction==="right"?this.menu.style.right=`${this.rect.right-this.rect.width}px`:this.menu.style.left=`${this.rect.left}px`,this.menu.style.top=`${this.rect.top}px`,this.menu.style.width=`${this.rect.width}px`),this.menu.addEventListener("mouseleave",this.hide.bind(this)),window.addEventListener("click",c=>{this.menu.contains(c.target)||this.hide()});let n=this.menu.querySelector("input");n!==null&&n.focus(),this.showing=!0;let l=new Event("show");this.container.dispatchEvent(l),t&&t.stopPropagation()}hideAll(){for(let t of window.components.dropdown)t.hide()}hide(){this.menu.style.display="none",this.menu.classList.remove("anim","menuIn"),this.toggle.setAttribute("aria-expanded","false"),this.moveMenu&&(this.menu.style.position="",this.menu.style[this.direction]="",this.menu.style.top="",this.menu.style.width="",this.container.appendChild(this.menu)),this.showing=!1}getFocusable(){return Array.from(this.menu.querySelectorAll("[tabindex],[href],button,input:not([type=hidden])"))}focusNext(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)+1;l>=t.length&&(l=0),t[l].focus()}focusPrevious(){let t=this.getFocusable(),l=t.indexOf(document.activeElement)-1;l<0&&(l=t.length-1),t[l].focus()}setupListeners(){this.container.addEventListener("click",n=>{Array.from(this.menu.querySelectorAll("a")).includes(n.target)&&this.hide()}),Rt(this.toggle,n=>{n.stopPropagation(),this.show(n),n instanceof KeyboardEvent&&this.focusNext()});let t=n=>{n.key==="ArrowDown"||n.key==="ArrowRight"?(this.focusNext(),n.preventDefault()):n.key==="ArrowUp"||n.key==="ArrowLeft"?(this.focusPrevious(),n.preventDefault()):n.key==="Escape"&&(this.hide(),this.toggle.focus(),this.bubbleEscapes||n.stopPropagation())};this.container.addEventListener("keydown",t),this.moveMenu&&this.menu.addEventListener("keydown",t),this.menu.addEventListener("keydown ",n=>{n.key==="Enter"&&(n.preventDefault(),n.stopPropagation(),this.hide())})}},wh=xh;var kh=class{setup(){this.elem=this.$el,this.searchInput=this.$refs.searchInput,this.loadingElem=this.$refs.loading,this.listContainerElem=this.$refs.listContainer,this.localSearchSelector=this.$opts.localSearchSelector,this.url=this.$opts.url,this.elem.addEventListener("show",this.onShow.bind(this)),this.searchInput.addEventListener("input",this.onSearch.bind(this)),this.runAjaxSearch=Jo(this.runAjaxSearch,300,!1)}onShow(){this.loadList()}onSearch(){let t=this.searchInput.value.toLowerCase().trim();this.localSearchSelector?this.runLocalSearch(t):(this.toggleLoading(!0),this.runAjaxSearch(t))}runAjaxSearch(t){this.loadList(t)}runLocalSearch(t){let n=this.listContainerElem.querySelectorAll(this.localSearchSelector);for(let l of n){let c=!t||l.textContent.toLowerCase().includes(t);l.style.display=c?"flex":"none",l.classList.toggle("hidden",!c)}}async loadList(t=""){this.listContainerElem.innerHTML="",this.toggleLoading(!0);try{let n=await window.$http.get(this.getAjaxUrl(t));this.listContainerElem.innerHTML=n.data}catch(n){console.error(n)}this.toggleLoading(!1),this.localSearchSelector&&this.onSearch()}getAjaxUrl(t=null){if(!t)return this.url;let n=this.url.includes("?")?"&":"?";return`${this.url}${n}search=${encodeURIComponent(t)}`}toggleLoading(t=!1){this.loadingElem.style.display=t?"block":"none"}},_h=kh;var Eh=St(Sh());var Ch=class{setup(){this.container=this.$el,this.url=this.$opts.url,this.successMessage=this.$opts.successMessage,this.removeMessage=this.$opts.removeMessage,this.uploadLimitMessage=this.$opts.uploadLimitMessage,this.timeoutMessage=this.$opts.timeoutMessage;let t=this;this.dz=new Eh.default(this.container,{addRemoveLinks:!0,dictRemoveFile:this.removeMessage,timeout:Number(window.uploadTimeout)||6e4,maxFilesize:Number(window.uploadLimit)||256,url:this.url,withCredentials:!0,init(){this.dz=this,this.dz.on("sending",t.onSending.bind(t)),this.dz.on("success",t.onSuccess.bind(t)),this.dz.on("error",t.onError.bind(t))}})}onSending(t,n,l){let c=window.document.querySelector("meta[name=token]").getAttribute("content");l.append("_token",c),n.ontimeout=d=>{this.dz.emit("complete",t),this.dz.emit("error",t,this.timeoutMessage)}}onSuccess(t,n){this.$emit("success",{file:t,data:n}),this.successMessage&&window.$events.emit("success",this.successMessage),ga(t.previewElement,800,()=>{this.dz.removeFile(t)})}onError(t,n,l){this.$emit("error",{file:t,errorMessage:n,xhr:l});let c=d=>{let a=t.previewElement.querySelector("[data-dz-errormessage]");a.textContent=d};l&&l.status===413?c(this.uploadLimitMessage):n.file&&c(n.file)}removeAll(){this.dz.removeAllFiles(!0)}},Th=Ch;var Ah=class{constructor(t){this.elem=t,this.buttons=t.querySelectorAll("[toolbox-tab-button]"),this.contentElements=t.querySelectorAll("[toolbox-tab-content]"),this.toggleButton=t.querySelector("[toolbox-toggle]"),this.toggleButton.addEventListener("click",this.toggle.bind(this)),this.elem.addEventListener("click",n=>{let l=n.target.closest("[toolbox-tab-button]");if(l===null)return;let c=l.getAttribute("toolbox-tab-button");this.setActiveTab(c,!0)}),this.setActiveTab(this.contentElements[0].getAttribute("toolbox-tab-content"))}toggle(){this.elem.classList.toggle("open");let t=this.elem.classList.contains("open")?"true":"false";this.toggleButton.setAttribute("aria-expanded",t)}setActiveTab(t,n=!1){for(let l=0,c=this.buttons.length;l<c;l++)this.buttons[l].classList.remove("active"),this.buttons[l].getAttribute("toolbox-tab-button")===t&&this.buttons[l].classList.add("active");for(let l=0,c=this.contentElements.length;l<c;l++)this.contentElements[l].style.display="none",this.contentElements[l].getAttribute("toolbox-tab-content")===t&&(this.contentElements[l].style.display="block");n&&this.elem.classList.add("open")}},Lh=Ah;var Dh=class{constructor(t){this.permissionsTable=t.querySelector("[permissions-table]"),this.restrictedCheckbox=t.querySelector("[name=restricted]"),this.restrictedCheckbox.addEventListener("change",this.updateTableVisibility.bind(this))}updateTableVisibility(){this.permissionsTable.style.display=this.restrictedCheckbox.checked?null:"none"}},Ih=Dh;var Fh=class{setup(){this.entityId=this.$opts.entityId,this.entityType=this.$opts.entityType,this.contentView=this.$refs.contentView,this.searchView=this.$refs.searchView,this.searchResults=this.$refs.searchResults,this.searchInput=this.$refs.searchInput,this.searchForm=this.$refs.searchForm,this.clearButton=this.$refs.clearButton,this.loadingBlock=this.$refs.loadingBlock,this.setupListeners()}setupListeners(){this.searchInput.addEventListener("change",this.runSearch.bind(this)),this.searchForm.addEventListener("submit",t=>{t.preventDefault(),this.runSearch()}),Rt(this.clearButton,this.clearSearch.bind(this))}runSearch(){let t=this.searchInput.value.trim();if(t.length===0)return this.clearSearch();this.searchView.classList.remove("hidden"),this.contentView.classList.add("hidden"),this.loadingBlock.classList.remove("hidden");let n=window.baseUrl(`/search/${this.entityType}/${this.entityId}`);window.$http.get(n,{term:t}).then(l=>{this.searchResults.innerHTML=l.data}).catch(console.error).then(()=>{this.loadingBlock.classList.add("hidden")})}clearSearch(){this.searchView.classList.add("hidden"),this.contentView.classList.remove("hidden"),this.loadingBlock.classList.add("hidden"),this.searchInput.value=""}},Mh=Fh;var Oh=class{setup(){this.elem=this.$el,this.entityTypes=this.$opts.entityTypes||"page,book,chapter",this.entityPermission=this.$opts.entityPermission||"view",this.input=this.$refs.input,this.searchInput=this.$refs.search,this.loading=this.$refs.loading,this.resultsContainer=this.$refs.results,this.addButton=this.$refs.add,this.search="",this.lastClick=0,this.selectedItemData=null,this.setupListeners(),this.showLoading(),this.initialLoad()}setupListeners(){this.elem.addEventListener("click",this.onClick.bind(this));let t=0;this.searchInput.addEventListener("input",n=>{t=Date.now(),this.showLoading(),setTimeout(()=>{Date.now()-t<199||this.searchEntities(this.searchInput.value)},200)}),this.searchInput.addEventListener("keydown",n=>{n.keyCode===13&&n.preventDefault()}),this.addButton&&this.addButton.addEventListener("click",n=>{this.selectedItemData&&(this.confirmSelection(this.selectedItemData),this.unselectAll())}),$t(this.$el,"[data-entity-type]","keydown",(n,l)=>{if(n.ctrlKey&&n.code==="Enter"){let c=this.$el.closest("form");if(c){c.submit(),n.preventDefault();return}}n.code==="ArrowDown"&&this.focusAdjacent(!0),n.code==="ArrowUp"&&this.focusAdjacent(!1)}),this.searchInput.addEventListener("keydown",n=>{n.code==="ArrowDown"&&this.focusAdjacent(!0)})}focusAdjacent(t=!0){let n=Array.from(this.resultsContainer.querySelectorAll("[data-entity-type]")),l=n.indexOf(document.activeElement),c=n[l+(t?1:-1)]||n[0];c&&c.focus()}showLoading(){this.loading.style.display="block",this.resultsContainer.style.display="none"}hideLoading(){this.loading.style.display="none",this.resultsContainer.style.display="block"}initialLoad(){window.$http.get(this.searchUrl()).then(t=>{this.resultsContainer.innerHTML=t.data,this.hideLoading()})}searchUrl(){return`/ajax/search/entities?types=${encodeURIComponent(this.entityTypes)}&permission=${encodeURIComponent(this.entityPermission)}`}searchEntities(t){this.input.value="";let n=`${this.searchUrl()}&term=${encodeURIComponent(t)}`;window.$http.get(n).then(l=>{this.resultsContainer.innerHTML=l.data,this.hideLoading()})}isDoubleClick(){let t=Date.now(),n=t-this.lastClick<300;return this.lastClick=t,n}onClick(t){let n=t.target.closest("[data-entity-type]");n&&(t.preventDefault(),t.stopPropagation(),this.selectItem(n))}selectItem(t){let n=this.isDoubleClick(),l=t.getAttribute("data-entity-type"),c=t.getAttribute("data-entity-id"),d=!t.classList.contains("selected")||n;this.unselectAll(),this.input.value=d?`${l}:${c}`:"";let a=t.getAttribute("href"),h=t.querySelector(".entity-list-item-name").textContent,f={id:Number(c),name:h,link:a};d?(t.classList.add("selected"),this.selectedItemData=f):window.$events.emit("entity-select-change",null),!(!n&&!d)&&(n&&this.confirmSelection(f),d&&window.$events.emit("entity-select-change",f))}confirmSelection(t){window.$events.emit("entity-select-confirm",t)}unselectAll(){let t=this.elem.querySelectorAll(".selected");for(let n of t)n.classList.remove("selected","primary-background");this.selectedItemData=null}},Ph=Oh;var Rh=class{setup(){this.elem=this.$el,this.selectButton=this.$refs.select,window.EntitySelectorPopup=this,this.callback=null,this.selection=null,this.selectButton.addEventListener("click",this.onSelectButtonClick.bind(this)),window.$events.listen("entity-select-change",this.onSelectionChange.bind(this)),window.$events.listen("entity-select-confirm",this.onSelectionConfirm.bind(this))}show(t){this.callback=t,this.elem.components.popup.show()}hide(){this.elem.components.popup.hide()}onSelectButtonClick(){this.hide(),this.selection!==null&&this.callback&&this.callback(this.selection)}onSelectionConfirm(t){this.hide(),this.callback&&t&&this.callback(t)}onSelectionChange(t){this.selection=t,t===null?this.selectButton.setAttribute("disabled","true"):this.selectButton.removeAttribute("disabled")}},zh=Rh;var Nh=class{setup(){this.container=this.$el,this.name=this.$opts.name,Rt(this.$el,()=>{this.$emit(this.name,this.$opts)})}},Bh=Nh;var qh=class{constructor(t){this.elem=t,this.isOpen=t.getAttribute("expand-toggle-is-open")==="yes",this.updateEndpoint=t.getAttribute("expand-toggle-update-endpoint"),this.selector=t.getAttribute("expand-toggle"),t.addEventListener("click",this.click.bind(this))}open(t){yi(t,200)}close(t){vi(t,200)}click(t){t.preventDefault();let n=document.querySelectorAll(this.selector);for(let l of n)this.isOpen?this.close(l):this.open(l);this.isOpen=!this.isOpen,this.updateSystemAjax(this.isOpen)}updateSystemAjax(t){window.$http.patch(this.updateEndpoint,{expand:t?"true":"false"})}},jh=qh;var $h=class{setup(){this.elem=this.$el,this.toggleButton=this.$refs.toggle,this.menu=this.$refs.menu,this.open=!1,this.toggleButton.addEventListener("click",this.onToggle.bind(this)),this.onWindowClick=this.onWindowClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}onToggle(t){this.open=!this.open,this.menu.classList.toggle("show",this.open),this.toggleButton.setAttribute("aria-expanded",this.open?"true":"false"),this.open?(this.elem.addEventListener("keydown",this.onKeyDown),window.addEventListener("click",this.onWindowClick)):(this.elem.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("click",this.onWindowClick)),t.stopPropagation()}onKeyDown(t){t.code==="Escape"&&this.onToggle(t)}onWindowClick(t){this.onToggle(t)}},Uh=$h;var Hh=class{constructor(t){this.elem=t,this.typeControl=t.querySelector('[name="setting-app-homepage-type"]'),this.pagePickerContainer=t.querySelector("[page-picker-container]"),this.typeControl.addEventListener("change",this.controlPagePickerVisibility.bind(this)),this.controlPagePickerVisibility()}controlPagePickerVisibility(){let t=this.typeControl.value==="page";this.pagePickerContainer.style.display=t?"block":"none"}},Wh=Hh;var Gh=class{setup(){this.uploadedTo=this.$opts.uploadedTo,this.container=this.$el,this.popupEl=this.$refs.popup,this.searchForm=this.$refs.searchForm,this.searchInput=this.$refs.searchInput,this.cancelSearch=this.$refs.cancelSearch,this.listContainer=this.$refs.listContainer,this.filterTabs=this.$manyRefs.filterTabs,this.selectButton=this.$refs.selectButton,this.formContainer=this.$refs.formContainer,this.dropzoneContainer=this.$refs.dropzoneContainer,this.type="gallery",this.lastSelected={},this.lastSelectedTime=0,this.callback=null,this.resetState=()=>{this.hasData=!1,this.page=1,this.filter="all"},this.resetState(),this.setupListeners(),window.ImageManager=this}setupListeners(){Rt(this.filterTabs,t=>{this.resetAll(),this.filter=t.target.dataset.filter,this.setActiveFilterTab(this.filter),this.loadGallery()}),this.searchForm.addEventListener("submit",t=>{this.resetListView(),this.loadGallery(),t.preventDefault()}),Rt(this.cancelSearch,t=>{this.resetListView(),this.resetSearchView(),this.loadGallery(),this.cancelSearch.classList.remove("active")}),this.searchInput.addEventListener("input",t=>{this.cancelSearch.classList.toggle("active",this.searchInput.value.trim())}),$t(this.listContainer,".load-more","click",async t=>{Ji(t.target),this.page++,await this.loadGallery(),t.target.remove()}),this.listContainer.addEventListener("event-emit-select-image",this.onImageSelectEvent.bind(this)),Rt(this.selectButton,()=>{this.callback&&this.callback(this.lastSelected),this.hide()}),$t(this.formContainer,"#image-manager-delete","click",t=>{this.lastSelected&&this.loadImageEditForm(this.lastSelected.id,!0)}),this.formContainer.addEventListener("ajax-form-success",this.refreshGallery.bind(this)),this.container.addEventListener("dropzone-success",this.refreshGallery.bind(this))}show(t,n="gallery"){this.resetAll(),this.callback=t,this.type=n,this.popupEl.components.popup.show(),this.dropzoneContainer.classList.toggle("hidden",n!=="gallery"),this.hasData||(this.loadGallery(),this.hasData=!0)}hide(){this.popupEl.components.popup.hide()}async loadGallery(){let t={page:this.page,search:this.searchInput.value||null,uploaded_to:this.uploadedTo,filter_type:this.filter==="all"?null:this.filter},{data:n}=await window.$http.get(`images/${this.type}`,t);this.addReturnedHtmlElementsToList(n),$c(this.listContainer)}addReturnedHtmlElementsToList(t){let n=document.createElement("div");n.innerHTML=t,window.components.init(n);for(let l of[...n.children])this.listContainer.appendChild(l)}setActiveFilterTab(t){this.filterTabs.forEach(l=>l.classList.remove("selected"));let n=this.filterTabs.find(l=>l.dataset.filter===t);n&&n.classList.add("selected")}resetAll(){this.resetState(),this.resetListView(),this.resetSearchView(),this.resetEditForm(),this.setActiveFilterTab("all"),this.selectButton.classList.add("hidden")}resetSearchView(){this.searchInput.value=""}resetEditForm(){this.formContainer.innerHTML=""}resetListView(){Ji(this.listContainer),this.page=1}refreshGallery(){this.resetListView(),this.loadGallery()}onImageSelectEvent(t){let n=JSON.parse(t.detail.data),l=n&&n.id===this.lastSelected.id&&Date.now()-this.lastSelectedTime<400,c=t.target.classList.contains("selected");[...this.listContainer.querySelectorAll(".selected")].forEach(d=>{d.classList.remove("selected")}),c?this.resetEditForm():(t.target.classList.add("selected"),this.loadImageEditForm(n.id)),this.selectButton.classList.toggle("hidden",c),l&&this.callback&&(this.callback(n),this.hide()),this.lastSelected=n,this.lastSelectedTime=Date.now()}async loadImageEditForm(t,n=!1){n||(this.formContainer.innerHTML="");let l=n?{delete:!0}:{},{data:c}=await window.$http.get(`/images/edit/${t}`,l);this.formContainer.innerHTML=c,window.components.init(this.formContainer)}},Kh=Gh;var Vh=class{constructor(t){this.elem=t,this.imageElem=t.querySelector("img"),this.imageInput=t.querySelector("input[type=file]"),this.resetInput=t.querySelector("input[data-reset-input]"),this.removeInput=t.querySelector("input[data-remove-input]"),this.defaultImage=t.getAttribute("data-default-image"),t.querySelector('button[data-action="reset-image"]').addEventListener("click",this.reset.bind(this));let l=t.querySelector('button[data-action="remove-image"]');l&&l.addEventListener("click",this.removeImage.bind(this)),this.imageInput.addEventListener("change",this.fileInputChange.bind(this))}fileInputChange(){this.resetInput.setAttribute("disabled","disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled");for(let t of this.imageInput.files)this.imageElem.src=window.URL.createObjectURL(t);this.imageElem.classList.remove("none")}reset(){this.imageInput.value="",this.imageElem.src=this.defaultImage,this.resetInput.removeAttribute("disabled"),this.removeInput&&this.removeInput.setAttribute("disabled","disabled"),this.imageElem.classList.remove("none")}removeImage(){this.imageInput.value="",this.imageElem.classList.add("none"),this.removeInput.removeAttribute("disabled"),this.resetInput.setAttribute("disabled","disabled")}},Yh=Vh;var Xh=class{constructor(t){this.elem=t,this.menu=t.querySelector("ul"),this.sortInput=t.querySelector('[name="sort"]'),this.orderInput=t.querySelector('[name="order"]'),this.form=t.querySelector("form"),this.menu.addEventListener("click",n=>{n.target.closest("[data-sort-value]")!==null&&this.sortOptionClick(n)}),this.elem.addEventListener("click",n=>{n.target.closest("[data-sort-dir]")!==null&&this.sortDirectionClick(n)})}sortOptionClick(t){let n=t.target.closest("[data-sort-value]");this.sortInput.value=n.getAttribute("data-sort-value"),t.preventDefault(),this.form.submit()}sortDirectionClick(t){let l=this.orderInput.value==="asc"?"desc":"asc";this.orderInput.value=l,t.preventDefault(),this.form.submit()}},Zh=Xh;var hv=St(nv()),pv=St(lv());var uv=class{constructor(t){this.data=t}hasItems(){return Boolean(this.data)&&Boolean(this.data.types)&&this.data.types.length>0}containsTabularData(){let t=this.data.getData("text/rtf");return t&&t.includes("\\trowd")}getImages(){let t=this.data.types,n=this.data.files,l=[];for(let c of t)if(c.includes("image")){let d=this.data.getData(c);l.push(d.getAsFile())}for(let c of n)c.type.includes("image")&&l.push(c);return l}},yo=uv;var pn=null,Ol,Pl,Rl;function Fk(i,t,n){Pl=t,Rl=n,pn=document.createElement("iframe"),pn.setAttribute("frameborder","0"),window.addEventListener("message",cv),pn.setAttribute("src",i),pn.setAttribute("class","fullscreen"),pn.style.backgroundColor="#FFFFFF",document.body.appendChild(pn),Ol=new URL(i).origin}function Mk(){fv()}function cv(i){if(!i.data||i.data.length<1||i.origin!==Ol)return;let t=JSON.parse(i.data);t.event==="init"?Rk():t.event==="exit"?fv():t.event==="save"?Pk(t):t.event==="export"&&Ok(t)}function Ok(i){Rl&&Rl(i.data)}function Pk(i){dv({action:"export",format:"xmlpng",xml:i.xml,spin:"Updating drawing"})}function Rk(){!Pl||Pl().then(i=>{dv({action:"load",autosave:1,xml:i})})}function fv(){window.removeEventListener("message",cv),pn&&document.body.removeChild(pn)}function dv(i){pn.contentWindow.postMessage(JSON.stringify(i),Ol)}async function zk(i,t){let n={image:i,uploaded_to:t};return(await window.$http.post(window.baseUrl("/images/drawio"),n)).data}async function Nk(i){return`data:image/png;base64,${(await window.$http.get(window.baseUrl(`/images/drawio/base64/${i}`))).data.content}`}var Nr={show:Fk,close:Mk,upload:zk,load:Nk};var mv=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.markdown=new hv.default({html:!0}),this.markdown.use(pv.default,{label:!0}),this.display=this.elem.querySelector(".markdown-display"),this.displayStylesLoaded=!1,this.input=this.elem.querySelector("textarea"),this.cm=ur.markdownEditor(this.input),this.onMarkdownScroll=this.onMarkdownScroll.bind(this);let t=()=>{this.displayDoc=this.display.contentDocument,this.init()};this.display.contentDocument.readyState==="complete"?t():this.display.addEventListener("load",t.bind(this)),window.$events.emitPublic(this.elem,"editor-markdown::setup",{markdownIt:this.markdown,displayEl:this.display,codeMirrorInstance:this.cm})}init(){let t=0;this.displayDoc.addEventListener("click",c=>{let d=Date.now()-t<300,a=c.target.closest("a");if(a!==null){c.preventDefault(),window.open(a.getAttribute("href"));return}let h=c.target.closest("[drawio-diagram]");if(h!==null&&d){this.actionEditDrawing(h);return}t=Date.now()}),this.elem.addEventListener("click",c=>{let d=c.target.closest("button[data-action]");if(d===null)return;let a=d.getAttribute("data-action");if(a==="insertImage"&&this.actionInsertImage(),a==="insertLink"&&this.actionShowLinkSelector(),a==="insertDrawing"&&(c.ctrlKey||c.metaKey)){this.actionShowImageManager();return}a==="insertDrawing"&&this.actionStartDrawing(),a==="fullscreen"&&this.actionFullScreen()}),this.elem.addEventListener("click",c=>{let d=c.target.closest(".editor-toolbar-label");if(!d)return;let a=this.elem.querySelectorAll(".markdown-editor-wrap");for(let h of a)h.classList.remove("active");d.closest(".markdown-editor-wrap").classList.add("active")}),window.$events.listen("editor-markdown-update",c=>{this.cm.setValue(c),this.updateAndRender()}),this.codeMirrorSetup(),this.listenForBookStackEditorEvents();let l=new URL(window.location).searchParams.get("content-text");l&&this.scrollToText(l)}updateAndRender(){let t=this.cm.getValue();this.input.value=t;let n=this.markdown.render(t);window.$events.emit("editor-html-change",n),window.$events.emit("editor-markdown-change",t),this.displayDoc.body.className="page-content",this.displayDoc.body.innerHTML=n,this.loadStylesIntoDisplay()}loadStylesIntoDisplay(){if(this.displayStylesLoaded)return;this.displayDoc.documentElement.classList.add("markdown-editor-display"),document.documentElement.classList.contains("dark-mode")&&(this.displayDoc.documentElement.style.backgroundColor="#222",this.displayDoc.documentElement.classList.add("dark-mode")),this.displayDoc.head.innerHTML="";let t=document.head.querySelectorAll("style,link[rel=stylesheet]");for(let n of t){let l=n.cloneNode(!0);this.displayDoc.head.appendChild(l)}this.displayStylesLoaded=!0}onMarkdownScroll(t){let n=this.displayDoc.body.children;if(n.length<=t)return;(t===-1?n[n.length-1]:n[t]).scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}codeMirrorSetup(){let t=this.cm,n=this;t.setOption("direction","ltr");let l=ur.getMetaKey(),c={};c[`${l}-Alt-I`]=function(v){let k=`![${v.getSelection()}](http://)`,_=v.getCursor("from");v.replaceSelection(k),v.setCursor(_.line,_.ch+k.length-1)},c[`${l}-S`]=v=>{window.$events.emit("editor-save-draft")},c[`${l}-Enter`]=v=>{window.$events.emit("editor-save-page")},c[`Shift-${l}-K`]=v=>{this.actionShowLinkSelector()},c[`${l}-K`]=v=>{g()},c[`${l}-1`]=v=>{h("##")},c[`${l}-2`]=v=>{h("###")},c[`${l}-3`]=v=>{h("####")},c[`${l}-4`]=v=>{h("#####")},c[`${l}-5`]=v=>{h("")},c[`${l}-d`]=v=>{h("")},c[`${l}-6`]=v=>{h(">")},c[`${l}-q`]=v=>{h(">")},c[`${l}-7`]=v=>{p("\n```\n","\n```")},c[`${l}-8`]=v=>{p("`","`")},c[`Shift-${l}-E`]=v=>{p("`","`")},c[`${l}-9`]=v=>{p('<p class="callout info">',"</p>")},t.setOption("extraKeys",c),t.on("change",(v,b)=>{this.updateAndRender()});let d=Jo(v=>{let b=v.getScrollInfo();if(b.top+b.clientHeight===b.height){this.onMarkdownScroll(-1);return}let _=v.lineAtHeight(b.top,"local"),w=v.getRange({line:0,ch:null},{line:_,ch:null}),R=new DOMParser().parseFromString(this.markdown.render(w),"text/html").documentElement.querySelectorAll("body > *");this.onMarkdownScroll(R.length)},100);t.on("scroll",v=>{d(v)}),t.on("paste",(v,b)=>{let k=new yo(b.clipboardData||b.dataTransfer);if(!k.hasItems()||k.containsTabularData())return;let _=k.getImages();for(let w of _)y(w)}),t.on("drop",(v,b)=>{let k=b.dataTransfer.getData("bookstack/template");if(k){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.preventDefault(),window.$http.get(`/templates/${k}`).then(I=>{let S=I.data.markdown||I.data.html;v.replaceSelection(S)})}let _=new yo(b.dataTransfer);if(_.hasItems()&&_.getImages().length>0){let w=v.coordsChar({left:b.pageX,top:b.pageY});v.setCursor(w),b.stopPropagation(),b.preventDefault();let I=_.getImages();for(let S of I)y(S)}});function a(v,b){let k=t.getValue(),_=t.listSelections();t.setValue(k.replace(v,b)),t.setSelections(_)}function h(v){let b=t.getCursor(),k=t.getLine(b.line),_=k.length,w=k.split(" ")[0];if(w===v){k=k.replace(`${v} `,""),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:_}),t.setCursor({line:b.line,ch:b.ch-(v.length+1)});return}let I=/^[#>`]/.test(w),S=0;I?(S=v.length-w.length,k=k.replace(w,v).trim()):v!==""&&(S=v.length+1,k=v+" "+k),t.replaceRange(k,{line:b.line,ch:0},{line:b.line,ch:_}),t.setCursor({line:b.line,ch:b.ch+S})}function f(v,b){let k=t.getCursor(),_=t.getLine(k.line),w=_.length,I=_;_.indexOf(v)===0&&_.slice(-b.length)===b?I=_.slice(v.length,_.length-b.length):I=`${v}${_}${b}`,t.replaceRange(I,{line:k.line,ch:0},{line:k.line,ch:w}),t.setCursor({line:k.line,ch:k.ch+v.length})}function p(v,b){let k=t.getSelection();if(k==="")return f(v,b);let _=k,w=0,I=0;k.indexOf(v)===0&&k.slice(-b.length)===b?(_=k.slice(v.length,k.length-b.length),I=-(b.length+v.length)):(_=`${v}${k}${b}`,I=v.length+b.length);let S=t.listSelections()[0];t.replaceSelection(_);let R=S.head.ch<=S.anchor.ch;S.head.ch+=R?w:I,S.anchor.ch+=R?I:w,t.setSelections([S])}function y(v){if(v===null||v.type.indexOf("image")!==0)return;let b="png";if(v.name){let U=v.name.match(/\.(.+)$/);U.length>1&&(b=U[1])}let k="image-"+Math.random().toString(16).slice(2),_=window.baseUrl(`/loading.gif#upload${k}`),w=t.getSelection(),I=`![${w}](${_})`,S=t.getCursor();t.replaceSelection(I),t.setCursor({line:S.line,ch:S.ch+w.length+3});let R="image-"+Date.now()+"."+b,O=new FormData;O.append("file",v,R),O.append("uploaded_to",n.pageId),window.$http.post("/images/gallery",O).then(U=>{let $=`[![${w}](${U.data.thumbs.display})](${U.data.url})`;a(I,$)}).catch(U=>{window.$events.emit("error",n.imageUploadErrorText),a(I,w),console.log(U)})}function g(){let v=t.getCursor("from"),b=t.getSelection()||"",k=`[${b}]()`;t.focus(),t.replaceSelection(k);let _=b===""?-3:-1;t.setCursor(v.line,v.ch+k.length+_)}this.updateAndRender()}actionInsertImage(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{let l=this.cm.getSelection(),c="[!["+(l||n.name)+"]("+n.thumbs.display+")]("+n.url+")";this.cm.focus(),this.cm.replaceSelection(c),this.cm.setCursor(t.line,t.ch+c.length)},"gallery")}actionShowImageManager(){let t=this.cm.getCursor("from");window.ImageManager.show(n=>{this.insertDrawing(n,t)},"drawio")}actionShowLinkSelector(){let t=this.cm.getCursor("from");window.EntitySelectorPopup.show(n=>{let c=`[${this.cm.getSelection()||n.name}](${n.link})`;this.cm.focus(),this.cm.replaceSelection(c),this.cm.setCursor(t.line,t.ch+c.length)})}getDrawioUrl(){let t=document.querySelector("[drawio-url]");return t?t.getAttribute("drawio-url"):!1}actionStartDrawing(){let t=this.getDrawioUrl();if(!t)return;let n=this.cm.getCursor("from");Nr.show(t,()=>Promise.resolve(""),l=>{let c={image:l,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",c).then(d=>{this.insertDrawing(d.data,n),Nr.close()}).catch(d=>{this.handleDrawingUploadError(d)})})}insertDrawing(t,n){let l=`<div drawio-diagram="${t.id}"><img src="${t.url}"></div>`;this.cm.focus(),this.cm.replaceSelection(l),this.cm.setCursor(n.line,n.ch+l.length)}actionEditDrawing(t){let n=this.getDrawioUrl();if(!n)return;let l=this.cm.getCursor("from"),c=t.getAttribute("drawio-diagram");Nr.show(n,()=>Nr.load(c),d=>{let a={image:d,uploaded_to:Number(this.pageId)};window.$http.post("/images/drawio",a).then(h=>{let f=`<div drawio-diagram="${h.data.id}"><img src="${h.data.url}"></div>`,p=this.cm.getValue().split(`
`).map(y=>y.indexOf(`drawio-diagram="${c}"`)!==-1?f:y).join(`
`);this.cm.setValue(p),this.cm.setCursor(l),this.cm.focus(),Nr.close()}).catch(h=>{this.handleDrawingUploadError(h)})})}handleDrawingUploadError(t){t.status===413?window.$events.emit("error",this.serverUploadLimitText):window.$events.emit("error",this.imageUploadErrorText),console.log(t)}actionFullScreen(){let t=this.elem.classList.contains("fullscreen");this.elem.classList.toggle("fullscreen",!t),document.body.classList.toggle("markdown-fullscreen",!t)}scrollToText(t){if(!t)return;let l=this.cm.getValue().split(/\r?\n/),c=l.findIndex(d=>d&&d.indexOf(t)!==-1);c!==-1&&(this.cm.scrollIntoView({line:c},200),this.cm.focus(),this.cm.setCursor({line:c,char:l[c].length}))}listenForBookStackEditorEvents(){function t({html:n,markdown:l}){return l||n}window.$events.listen("editor::replace",n=>{let l=t(n);this.cm.setValue(l)}),window.$events.listen("editor::append",n=>{let l=this.cm.getCursor("from"),c=t(n),d=this.cm.getValue()+`
`+c;this.cm.setValue(d),this.cm.setCursor(l.line,l.ch)}),window.$events.listen("editor::prepend",n=>{let l=this.cm.getCursor("from"),c=t(n),d=c+`
`+this.cm.getValue();this.cm.setValue(d);let a=c.split(`
`).length;this.cm.setCursor(l.line+a,l.ch)}),window.$events.listen("editor::insert",n=>{let l=t(n);this.cm.replaceSelection(l)}),window.$events.listen("editor::focus",()=>{this.cm.focus()})}},gv=mv;var vv=class{constructor(t){this.elem=t,this.inviteOption=t.querySelector("input[name=send_invite]"),this.inviteOption&&(this.inviteOption.addEventListener("change",this.inviteOptionChange.bind(this)),this.inviteOptionChange())}inviteOptionChange(){let t=this.inviteOption.value==="true",n=this.elem.querySelectorAll("input[type=password]");for(let c of n)c.disabled=t;let l=this.elem.querySelector("#password-input-container");l&&(l.style.display=t?"none":"block")}},yv=vv;var bv=class{constructor(t){this.elem=t,this.type=t.getAttribute("notification"),this.textElem=t.querySelector("span"),this.autohide=this.elem.hasAttribute("data-autohide"),this.elem.style.display="grid",window.$events.listen(this.type,n=>{this.show(n)}),t.addEventListener("click",this.hide.bind(this)),t.hasAttribute("data-show")&&setTimeout(()=>this.show(this.textElem.textContent),100),this.hideCleanup=this.hideCleanup.bind(this)}show(t=""){if(this.elem.removeEventListener("transitionend",this.hideCleanup),this.textElem.textContent=t,this.elem.style.display="grid",setTimeout(()=>{this.elem.classList.add("showing")},1),this.autohide){let n=t.split(" ").length,l=Math.max(2e3,1e3+250*n);setTimeout(this.hide.bind(this),l)}}hide(){this.elem.classList.remove("showing"),this.elem.addEventListener("transitionend",this.hideCleanup)}hideCleanup(){this.elem.style.display="none",this.elem.removeEventListener("transitionend",this.hideCleanup)}},xv=bv;var wv=class{setup(){this.removeButton=this.$refs.remove,this.showButton=this.$refs.show,this.input=this.$refs.input,this.setupListeners()}setupListeners(){Rt(this.removeButton,()=>{this.input.value="",this.input.classList.add("hidden"),this.removeButton.classList.add("hidden"),this.showButton.classList.remove("hidden")}),Rt(this.showButton,()=>{this.input.classList.remove("hidden"),this.removeButton.classList.remove("hidden"),this.showButton.classList.add("hidden")})}},kv=wv;var _v=class{setup(){this.elem=this.$el,this.pageId=Number(this.$opts.pageId),this.container=this.$refs.commentContainer,this.formContainer=this.$refs.formContainer,this.commentCountBar=this.$refs.commentCountBar,this.addButtonContainer=this.$refs.addButtonContainer,this.replyToRow=this.$refs.replyToRow,this.updatedText=this.$opts.updatedText,this.deletedText=this.$opts.deletedText,this.createdText=this.$opts.createdText,this.countText=this.$opts.countText,this.editingComment=null,this.parentId=null,this.formContainer&&(this.form=this.formContainer.querySelector("form"),this.formInput=this.form.querySelector("textarea"),this.form.addEventListener("submit",this.saveComment.bind(this))),this.elem.addEventListener("click",this.handleAction.bind(this)),this.elem.addEventListener("submit",this.updateComment.bind(this))}handleAction(t){let n=t.target.closest("[action]");if(t.target.matches('a[href^="#"]')){let d=t.target.href.split("#")[1];eo(document.querySelector("#"+d))}if(n===null)return;t.preventDefault();let l=n.getAttribute("action"),c=n.closest("[comment]");l==="edit"&&this.editComment(c),l==="closeUpdateForm"&&this.closeUpdateForm(),l==="delete"&&this.deleteComment(c),l==="addComment"&&this.showForm(),l==="hideForm"&&this.hideForm(),l==="reply"&&this.setReply(c),l==="remove-reply-to"&&this.removeReplyTo()}closeUpdateForm(){!this.editingComment||(this.editingComment.querySelector("[comment-content]").style.display="block",this.editingComment.querySelector("[comment-edit-container]").style.display="none")}editComment(t){this.hideForm(),this.editingComment&&this.closeUpdateForm(),t.querySelector("[comment-content]").style.display="none",t.querySelector("[comment-edit-container]").style.display="block";let n=t.querySelector("[comment-edit-container] textarea"),l=n.value.split(`
`).length;n.style.height=l*20+40+"px",this.editingComment=t}updateComment(t){let n=t.target;t.preventDefault();let c={text:n.querySelector("textarea").value,parent_id:this.parentId||null};this.showLoading(n);let d=this.editingComment.getAttribute("comment");window.$http.put(`/comment/${d}`,c).then(a=>{let h=document.createElement("div");h.innerHTML=a.data,this.editingComment.innerHTML=h.children[0].innerHTML,window.$events.success(this.updatedText),window.components.init(this.editingComment),this.closeUpdateForm(),this.editingComment=null}).catch(window.$events.showValidationErrors).then(()=>{this.hideLoading(n)})}deleteComment(t){let n=t.getAttribute("comment");this.showLoading(t.querySelector("[comment-content]")),window.$http.delete(`/comment/${n}`).then(l=>{t.parentNode.removeChild(t),window.$events.success(this.deletedText),this.updateCount(),this.hideForm()})}saveComment(t){t.preventDefault(),t.stopPropagation();let l={text:this.formInput.value,parent_id:this.parentId||null};this.showLoading(this.form),window.$http.post(`/comment/${this.pageId}`,l).then(c=>{let d=document.createElement("div");d.innerHTML=c.data;let a=d.children[0];this.container.appendChild(a),window.components.init(a),window.$events.success(this.createdText),this.resetForm(),this.updateCount()}).catch(c=>{window.$events.showValidationErrors(c),this.hideLoading(this.form)})}updateCount(){let t=this.container.children.length;this.elem.querySelector("[comments-title]").textContent=window.trans_plural(this.countText,t,{count:t})}resetForm(){this.formInput.value="",this.formContainer.appendChild(this.form),this.hideForm(),this.removeReplyTo(),this.hideLoading(this.form)}showForm(){this.formContainer.style.display="block",this.formContainer.parentNode.style.display="block",this.addButtonContainer.style.display="none",this.formInput.focus(),this.formInput.scrollIntoView({behavior:"smooth"})}hideForm(){this.formContainer.style.display="none",this.formContainer.parentNode.style.display="none",this.getCommentCount()>0?this.elem.appendChild(this.addButtonContainer):this.commentCountBar.appendChild(this.addButtonContainer),this.addButtonContainer.style.display="block"}getCommentCount(){return this.elem.querySelectorAll(".comment-box[comment]").length}setReply(t){this.showForm(),this.parentId=Number(t.getAttribute("local-id")),this.replyToRow.style.display="block";let n=this.replyToRow.querySelector("a");n.textContent=`#${this.parentId}`,n.href=`#comment${this.parentId}`}removeReplyTo(){this.parentId=null,this.replyToRow.style.display="none"}showLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="none";t.querySelector(".form-group.loading").style.display="block"}hideLoading(t){let n=t.querySelectorAll(".form-group");for(let l of n)l.style.display="block";t.querySelector(".form-group.loading").style.display="none"}},Sv=_v;var Ev=St(Qs());var Cv=class{constructor(t){if(this.elem=t,this.pageId=t.getAttribute("page-display"),ur.highlight(),this.setupPointer(),this.setupNavHighlighting(),this.setupDetailsCodeBlockRefresh(),window.location.hash){let l=window.location.hash.replace(/\%20/g," ").substr(1);this.goToText(l)}let n=document.querySelector(".sidebar-page-nav");n&&$t(n,"a","click",(l,c)=>{l.preventDefault(),window.components["tri-layout"][0].showContent();let d=c.getAttribute("href").substr(1);this.goToText(d),window.history.pushState(null,null,"#"+d)})}goToText(t){let n=document.getElementById(t);if(Xo(".page-content [data-highlighted]",l=>{l.removeAttribute("data-highlighted"),l.style.backgroundColor=null}),n!==null)eo(n);else{let l=jc(".page-content > div > *",t);l&&eo(l)}}setupPointer(){let t=document.getElementById("pointer");if(!t)return;t=t.parentNode.removeChild(t);let n=t.querySelector("div.pointer"),l=!1,c=!1,d=!0,a="";$t(t,"input","click",(f,p)=>{p.select(),f.stopPropagation()}),Zo(t,["click","focus"],f=>{f.stopPropagation()}),$t(t,"span.icon","click",(f,p)=>{f.stopPropagation(),d=!d,p.querySelector('[data-icon="include"]').style.display=d?"none":"inline",p.querySelector('[data-icon="link"]').style.display=d?"inline":"none",h()}),new Ev.default(t.querySelector("button")),Zo(document.body,["click","focus"],f=>{!l||c||(t=t.parentElement.removeChild(t),l=!1)});let h=f=>{let p=d?window.baseUrl(`/link/${this.pageId}#${a}`):`{{@${this.pageId}#${a}}}`;d&&!p.startsWith("http")&&(p=window.location.protocol+"//"+window.location.host+p),t.querySelector("input").value=p;let y=t.querySelector("#pointer-edit");if(y&&f){let g=y.dataset.editHref,v=f.id,b=f.textContent&&f.textContent.substring(0,50);y.href=`${g}?content-id=${v}&content-text=${encodeURIComponent(b)}`}};Xo('.page-content [id^="bkmrk"]',f=>{Zo(f,["mouseup","keyup"],p=>{p.stopPropagation(),window.getSelection().toString().length!==0&&(a=f.id,h(f),f.parentNode.insertBefore(t,f),t.style.display="block",l=!0,c=!0,requestAnimationFrame(()=>{let g=f.getBoundingClientRect(),v=p.pageX-g.left-164;v<0&&(v=0);let b=v/g.width*100;n.style.left=b+"%",setTimeout(()=>{c=!1},100)}))})})}setupNavHighlighting(){if(!("IntersectionObserver"in window)||!("IntersectionObserverEntry"in window)||!("intersectionRatio"in window.IntersectionObserverEntry.prototype))return;let t=document.querySelector(".sidebar-page-nav"),n=document.querySelector(".page-content").querySelectorAll("h1, h2, h3, h4, h5, h6");n.length>0&&t!==null&&l(n);function l(a){let h={rootMargin:"0px 0px 0px 0px",threshold:1},f=new IntersectionObserver(c,h);for(let p of a)f.observe(p)}function c(a,h){for(let f of a){let p=f.intersectionRatio===1;d(f.target.id,p)}}function d(a,h){Xo('a[href="#'+a+'"]',f=>{f.closest("li").classList.toggle("current-heading",h)})}}setupDetailsCodeBlockRefresh(){let t=l=>{[...l.target.querySelectorAll(".CodeMirror")].forEach(d=>d.CodeMirror&&d.CodeMirror.refresh())};[...this.elem.querySelectorAll("details")].forEach(l=>l.addEventListener("toggle",t))}},Tv=Cv;function Av(i){let t=new Date(i*1e3),n=t.getHours(),l=t.getMinutes();return`${(n>9?"":"0")+n}:${(l>9?"":"0")+l}`}var Lv=class{setup(){this.draftsEnabled=this.$opts.draftsEnabled==="true",this.editorType=this.$opts.editorType,this.pageId=Number(this.$opts.pageId),this.isNewDraft=this.$opts.pageNewDraft==="true",this.hasDefaultTitle=this.$opts.hasDefaultTitle||!1,this.container=this.$el,this.titleElem=this.$refs.titleContainer.querySelector("input"),this.saveDraftButton=this.$refs.saveDraft,this.discardDraftButton=this.$refs.discardDraft,this.discardDraftWrap=this.$refs.discardDraftWrap,this.draftDisplay=this.$refs.draftDisplay,this.draftDisplayIcon=this.$refs.draftDisplayIcon,this.changelogInput=this.$refs.changelogInput,this.changelogDisplay=this.$refs.changelogDisplay,this.draftText=this.$opts.draftText,this.autosaveFailText=this.$opts.autosaveFailText,this.editingPageText=this.$opts.editingPageText,this.draftDiscardedText=this.$opts.draftDiscardedText,this.setChangelogText=this.$opts.setChangelogText,this.editorHTML="",this.editorMarkdown="",this.autoSave={interval:null,frequency:3e4,last:0},this.pageId!==0&&this.draftsEnabled&&window.setTimeout(()=>{this.startAutoSave()},1e3),this.draftDisplay.innerHTML=this.draftText,this.setupListeners(),this.setInitialFocus()}setupListeners(){window.$events.listen("editor-save-draft",this.saveDraft.bind(this)),window.$events.listen("editor-save-page",this.savePage.bind(this)),window.$events.listen("editor-html-change",t=>{this.editorHTML=t}),window.$events.listen("editor-markdown-change",t=>{this.editorMarkdown=t}),this.changelogInput.addEventListener("change",this.updateChangelogDisplay.bind(this)),Rt(this.saveDraftButton,this.saveDraft.bind(this)),Rt(this.discardDraftButton,this.discardDraft.bind(this))}setInitialFocus(){if(this.hasDefaultTitle)return this.titleElem.select();window.setTimeout(()=>{window.$events.emit("editor::focus","")},500)}startAutoSave(){let t=this.titleElem.value.trim()+"::"+this.editorHTML;this.autoSaveInterval=window.setInterval(()=>{if(Date.now()-this.autoSave.last<this.autoSave.frequency/2)return;let l=this.titleElem.value.trim()+"::"+this.editorHTML;l!==t&&(t=l,this.saveDraft())},this.autoSave.frequency)}savePage(){this.container.closest("form").submit()}async saveDraft(){let t={name:this.titleElem.value.trim(),html:this.editorHTML};this.editorType==="markdown"&&(t.markdown=this.editorMarkdown);try{let n=await window.$http.put(`/ajax/page/${this.pageId}/save-draft`,t);this.isNewDraft||this.toggleDiscardDraftVisibility(!0),this.draftNotifyChange(`${n.data.message} ${Av(n.data.timestamp)}`),this.autoSave.last=Date.now()}catch(n){try{let l=`draft-save-fail-${new Date().toISOString()}`;window.localStorage.setItem(l,JSON.stringify(t))}catch(l){}window.$events.emit("error",this.autosaveFailText)}}draftNotifyChange(t){this.draftDisplay.innerText=t,this.draftDisplayIcon.classList.add("visible"),window.setTimeout(()=>{this.draftDisplayIcon.classList.remove("visible")},2e3)}async discardDraft(){let t;try{t=await window.$http.get(`/ajax/page/${this.pageId}`)}catch(n){return console.error(n)}this.autoSave.interval&&window.clearInterval(this.autoSave.interval),this.draftDisplay.innerText=this.editingPageText,this.toggleDiscardDraftVisibility(!1),window.$events.emit("editor-html-update",t.data.html||""),window.$events.emit("editor-markdown-update",t.data.markdown||t.data.html),this.titleElem.value=t.data.name,window.setTimeout(()=>{this.startAutoSave()},1e3),window.$events.emit("success",this.draftDiscardedText)}updateChangelogDisplay(){let t=this.changelogInput.value.trim();t.length===0?t=this.setChangelogText:t.length>16&&(t=t.slice(0,16)+"..."),this.changelogDisplay.innerText=t}toggleDiscardDraftVisibility(t){this.discardDraftWrap.classList.toggle("hidden",!t)}},Dv=Lv;var Iv=class{constructor(t){this.elem=t,this.input=t.querySelector("input"),this.resetButton=t.querySelector("[page-picker-reset]"),this.selectButton=t.querySelector("[page-picker-select]"),this.display=t.querySelector("[page-picker-display]"),this.defaultDisplay=t.querySelector("[page-picker-default]"),this.buttonSep=t.querySelector("span.sep"),this.value=this.input.value,this.setupListeners()}setupListeners(){this.selectButton.addEventListener("click",this.showPopup.bind(this)),this.display.parentElement.addEventListener("click",this.showPopup.bind(this)),this.resetButton.addEventListener("click",t=>{this.setValue("","")})}showPopup(){window.EntitySelectorPopup.show(t=>{this.setValue(t.id,t.name)})}setValue(t,n){this.value=t,this.input.value=t,this.controlView(n)}controlView(t){let n=this.value&&this.value!==0;if(za(this.resetButton,n),za(this.buttonSep,n),za(this.defaultDisplay,!n),za(this.display,n),n){let l=this.getAssetIdFromVal();this.display.textContent=`#${l}, ${t}`,this.display.href=window.baseUrl(`/link/${l}`)}}getAssetIdFromVal(){return Number(this.value)}};function za(i,t){let n=i.tagName==="BUTTON"||i.tagName==="SPAN"?"inline-block":"block";i.style.display=t?n:"none"}var Fv=Iv;var Mv=class{constructor(t){this.container=t,t.querySelector("[permissions-table-toggle-all]").addEventListener("click",this.toggleAllClick.bind(this));let l=t.querySelectorAll("[permissions-table-toggle-all-in-row]");for(let d of l)d.addEventListener("click",this.toggleRowClick.bind(this));let c=t.querySelectorAll("[permissions-table-toggle-all-in-column]");for(let d of c)d.addEventListener("click",this.toggleColumnClick.bind(this))}toggleAllClick(t){t.preventDefault(),this.toggleAllInElement(this.container)}toggleRowClick(t){t.preventDefault(),this.toggleAllInElement(t.target.closest("tr"))}toggleColumnClick(t){t.preventDefault();let n=t.target.closest("th,td"),l=Array.from(n.parentElement.children).indexOf(n),c=n.closest("table").querySelectorAll("tr"),d=[];for(let a of c){let h=a.children[l];h&&d.push(...h.querySelectorAll("input[type=checkbox]"))}this.toggleAllInputs(d)}toggleAllInElement(t){let n=t.querySelectorAll("input[type=checkbox]");this.toggleAllInputs(n)}toggleAllInputs(t){let n=t.length>0?t[0].checked:!1;for(let l of t)l.checked=!n,l.dispatchEvent(new Event("change"))}},Ov=Mv;var Pv=class{setup(){this.container=this.$el,this.hideButtons=this.$manyRefs.hide||[],this.onkeyup=null,this.onHide=null,this.setupListeners()}setupListeners(){let t=null;this.container.addEventListener("mousedown",n=>{t=n.target}),this.container.addEventListener("click",n=>{if(n.target===this.container&&t===this.container)return this.hide()}),Rt(this.hideButtons,n=>this.hide())}hide(t=null){ga(this.container,240,t),this.onkeyup&&(window.removeEventListener("keyup",this.onkeyup),this.onkeyup=null),this.onHide&&this.onHide()}show(t=null,n=null){Tf(this.container,240,t),this.onkeyup=l=>{l.key==="Escape"&&this.hide()},window.addEventListener("keyup",this.onkeyup),this.onHide=n}},Rv=Pv;var zv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.lightColorInput=t.querySelector('input[name="setting-app-color-light"]'),this.resetButton=t.querySelector("[setting-app-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-app-color-picker-default]"),this.colorInput.addEventListener("change",this.updateColor.bind(this)),this.colorInput.addEventListener("input",this.updateColor.bind(this)),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current,this.updateColor()}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default,this.updateColor()})}updateColor(){let t=this.colorInput.value,n=this.hexToRgb(t),l="rgba("+[n.r,n.g,n.b,"0.15"].join(",")+")";this.lightColorInput.value=l;let c=document.getElementById("custom-styles"),d=c.getAttribute("data-color"),a=c.getAttribute("data-color-light");c.innerHTML=c.innerHTML.split(d).join(t),c.innerHTML=c.innerHTML.split(a).join(l),c.setAttribute("data-color",t),c.setAttribute("data-color-light",l)}hexToRgb(t){let n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return{r:n?parseInt(n[1],16):0,g:n?parseInt(n[2],16):0,b:n?parseInt(n[3],16):0}}},Nv=zv;var Bv=class{constructor(t){this.elem=t,this.colorInput=t.querySelector("input[type=color]"),this.resetButton=t.querySelector("[setting-color-picker-reset]"),this.defaultButton=t.querySelector("[setting-color-picker-default]"),this.resetButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.current}),this.defaultButton.addEventListener("click",n=>{this.colorInput.value=this.colorInput.dataset.default})}},qv=Bv;var jv=class{constructor(t){this.elem=t,this.input=document.getElementById("books-input"),this.shelfBooksList=t.querySelector("[shelf-sort-assigned-books]"),this.initSortable(),this.setupListeners()}initSortable(){let t=this.elem.querySelectorAll(".scroll-box");for(let n of t)new gi(n,{group:"shelf-books",ghostClass:"primary-background-light",animation:150,onSort:this.onChange.bind(this)})}setupListeners(){this.elem.addEventListener("click",t=>{let n=t.target.closest(".scroll-box-item:not(.instruction)");n&&(t.preventDefault(),this.sortItemClick(n))})}sortItemClick(t){let n=this.elem.querySelectorAll(".scroll-box"),l=Array.from(n).filter(c=>t.parentElement!==c);l.length>0&&l[0].appendChild(t),this.onChange()}onChange(){let t=Array.from(this.shelfBooksList.querySelectorAll("[data-id]"));this.input.value=t.map(n=>n.getAttribute("data-id")).join(",")}},$v=jv;var Uv=class{constructor(t){this.elem=t,this.toggleElem=t.querySelector(".sidebar-toggle"),this.toggleElem.addEventListener("click",this.toggle.bind(this))}toggle(t=!0){this.elem.classList.toggle("open")}},Hv=Uv;var Wv=class{setup(){this.container=this.$el,this.handleSelector=this.$opts.handleSelector;let t=new gi(this.container,{handle:this.handleSelector,animation:150,onSort:()=>{this.$emit("sort",{ids:t.toArray()})},setData(n,l){let c=l.getAttribute("data-drag-content");if(c){let d=JSON.parse(c);for(let[a,h]of Object.entries(d))n.setData(a,h)}},revertOnSpill:!0,dropBubble:!0,dragoverBubble:!1})}},Gv=Wv;var Kv=class{setup(){this.$el.addEventListener("change",()=>{let t=this.$el.closest("form");t&&t.submit()})}},Vv=Kv;var Yv=class{setup(){this.tabContentsByName={},this.tabButtonsByName={},this.allContents=[],this.allButtons=[];for(let[t,n]of Object.entries(this.$manyRefs||{})){if(t.startsWith("toggle")){let l=t.replace("toggle","").toLowerCase();Rt(n,c=>this.show(l)),this.allButtons.push(...n),this.tabButtonsByName[l]=n}if(t.startsWith("content")){let l=t.replace("content","").toLowerCase();this.tabContentsByName[l]=n,this.allContents.push(...n)}}}show(t){this.allContents.forEach(c=>{c.classList.add("hidden"),c.classList.remove("selected")}),this.allButtons.forEach(c=>c.classList.remove("selected"));let n=this.tabContentsByName[t]||[],l=this.tabButtonsByName[t]||[];n.length>0&&(n.forEach(c=>{c.classList.remove("hidden"),c.classList.add("selected")}),l.forEach(c=>c.classList.add("selected")))}},Xv=Yv;var Zv=class{setup(){this.addRemoveComponentEl=this.$refs.addRemove,this.container=this.$el,this.rowSelector=this.$opts.rowSelector,this.setupListeners()}setupListeners(){this.container.addEventListener("change",t=>{let n=this.addRemoveComponentEl.components["add-remove-rows"];this.hasEmptyRows()||n.add()})}hasEmptyRows(){return[...this.container.querySelectorAll(this.rowSelector)].find(l=>[...l.querySelectorAll("input")].filter(c=>c.value).length===0)!==void 0}},Qv=Zv;var Jv=class{constructor(t){this.elem=t,this.list=t.querySelector("[template-manager-list]"),this.searching=!1,$t(this.elem,"[template-action]","click",this.handleTemplateActionClick.bind(this)),$t(this.elem,".pagination a","click",this.handlePaginationClick.bind(this)),$t(this.elem,".template-item-content","click",this.handleTemplateItemClick.bind(this)),$t(this.elem,".template-item","dragstart",this.handleTemplateItemDragStart.bind(this)),this.setupSearchBox()}handleTemplateItemClick(t,n){let l=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(l,"replace")}handleTemplateItemDragStart(t,n){let l=n.closest("[template-id]").getAttribute("template-id");t.dataTransfer.setData("bookstack/template",l),t.dataTransfer.setData("text/plain",l)}handleTemplateActionClick(t,n){t.stopPropagation();let l=n.getAttribute("template-action"),c=n.closest("[template-id]").getAttribute("template-id");this.insertTemplate(c,l)}async insertTemplate(t,n="replace"){let l=await window.$http.get(`/templates/${t}`),c="editor::"+n;window.$events.emit(c,l.data)}async handlePaginationClick(t,n){t.preventDefault();let l=n.getAttribute("href"),c=await window.$http.get(l);this.list.innerHTML=c.data}setupSearchBox(){let t=this.elem.querySelector(".search-box");if(!t)return;let n=t.querySelector("input"),l=t.querySelector("button"),c=t.querySelector("button.search-box-cancel");async function d(){let a=n.value,h=await window.$http.get("/templates",{search:a});c.style.display=a?"block":"none",this.list.innerHTML=h.data}d=d.bind(this),t.addEventListener("keypress",a=>{a.key==="Enter"&&(a.preventDefault(),d())}),l.addEventListener("click",a=>{d()}),c.addEventListener("click",a=>{n.value="",d()})}},ey=Jv;var ty=class{constructor(t){this.elem=t,this.input=t.querySelector("input[type=hidden]"),this.checkbox=t.querySelector("input[type=checkbox]"),this.checkbox.addEventListener("change",this.stateChange.bind(this))}stateChange(){this.input.value=this.checkbox.checked?"true":"false";let t=new Event("change");this.input.dispatchEvent(t)}},ry=ty;var ny=class{setup(){this.container=this.$refs.container,this.tabs=this.$manyRefs.tab,this.lastLayoutType="none",this.onDestroy=null,this.scrollCache={content:0,info:0},this.lastTabShown="content",this.mobileTabClick=this.mobileTabClick.bind(this),this.updateLayout(),window.addEventListener("resize",t=>{this.updateLayout()},{passive:!0})}updateLayout(){let t="tablet";window.innerWidth<=1e3&&(t="mobile"),window.innerWidth>=1400&&(t="desktop"),t!==this.lastLayoutType&&(this.onDestroy&&(this.onDestroy(),this.onDestroy=null),t==="desktop"?this.setupDesktop():t==="mobile"&&this.setupMobile(),this.lastLayoutType=t)}setupMobile(){for(let t of this.tabs)t.addEventListener("click",this.mobileTabClick);this.onDestroy=()=>{for(let t of this.tabs)t.removeEventListener("click",this.mobileTabClick)}}setupDesktop(){}mobileTabClick(t){let n=t.target.dataset.tab;this.showTab(n)}showContent(){this.showTab("content",!1)}showTab(t,n=!0){this.scrollCache[this.lastTabShown]=document.documentElement.scrollTop;for(let c of this.tabs){let d=c.dataset.tab===t;c.setAttribute("aria-selected",d?"true":"false")}let l=t==="info";if(this.container.classList.toggle("show-info",l),n){let d=document.querySelector("header").getBoundingClientRect().bottom;document.documentElement.scrollTop=this.scrollCache[t]||d,setTimeout(()=>{document.documentElement.scrollTop=this.scrollCache[t]||d},50)}this.lastTabShown=t}},iy=ny;var oy=class{setup(){this.input=this.$refs.input,this.userInfoContainer=this.$refs.userInfo,this.hide=this.$el.components.dropdown.hide,$t(this.$el,"a.dropdown-search-item","click",this.selectUser.bind(this))}selectUser(t,n){t.preventDefault();let l=n.getAttribute("data-id");this.input.value=l,this.userInfoContainer.innerHTML=n.innerHTML,this.input.dispatchEvent(new Event("change",{bubbles:!0})),this.hide()}},ay=oy;function sy(i,t,n){let l=new yo(i.clipboardData||i.dataTransfer);if(!l.hasItems()||l.containsTabularData())return;let c=l.getImages();for(let d of c){let a="image-"+Math.random().toString(16).slice(2),h=window.baseUrl("/loading.gif");i.preventDefault(),setTimeout(()=>{t.insertContent(`<p><img src="${h}" id="${a}"></p>`),Bk(d,n).then(f=>{let p=f.name.replace(/"/g,""),y=`<img src="${f.thumbs.display}" alt="${p}" />`,g=t.dom.create("a",{target:"_blank",href:f.url},y);t.dom.replace(g,a)}).catch(f=>{t.dom.remove(a),window.$events.emit("error",n.imageUploadErrorText),console.log(f)})},10)}}async function Bk(i,t){if(i===null||i.type.indexOf("image")!==0)throw new Error("Not an image file");let n="png";if(i.name){let a=i.name.match(/\.(.+)$/);a.length>1&&(n=a[1])}let l="image-"+Date.now()+"."+n,c=new FormData;return c.append("file",i,l),c.append("uploaded_to",t.pageId),(await window.$http.post(window.baseUrl("/images/gallery"),c)).data}function qk(i){for(let t=1;t<5;t++)i.shortcuts.add("meta+"+t,"",["FormatBlock",!1,"h"+(t+1)]);i.shortcuts.add("meta+5","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+d","",["FormatBlock",!1,"p"]),i.shortcuts.add("meta+6","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+q","",["FormatBlock",!1,"blockquote"]),i.shortcuts.add("meta+7","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+e","",["codeeditor",!1,"pre"]),i.shortcuts.add("meta+8","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+shift+E","",["FormatBlock",!1,"code"]),i.shortcuts.add("meta+S","",()=>{window.$events.emit("editor-save-draft")}),i.shortcuts.add("meta+13","",()=>{window.$events.emit("editor-save-page")}),i.shortcuts.add("meta+9","",function(){let t=i.selection.getNode(),n=t?t.closest(".callout"):null,l=["info","success","warning","danger"],d=(l.findIndex(h=>n&&n.classList.contains(h))+1)%l.length,a=l[d];i.formatter.apply("callout"+a)})}function jk(i){window.$http.get(window.baseUrl("/custom-head-content")).then(t=>{if(!t.data)return;let n=i.getDoc().querySelector("head");n.innerHTML+=t.data})}function $k(){function i(l){return l.className==="CodeMirrorContainer"}function t(l){let c=l.selection.getNode();if(!i(c)){let h=l.selection.getNode().textContent;window.components.first("code-editor").open(h,"",(f,p)=>{let y=document.createElement("div");y.innerHTML=`<pre><code class="language-${p}"></code></pre>`,y.querySelector("code").innerText=f,l.formatter.toggle("pre");let g=l.selection.getNode();l.dom.setHTML(g,y.querySelector("pre").innerHTML),l.fire("SetContent"),l.focus()});return}let d=c.hasAttribute("data-lang")?c.getAttribute("data-lang"):"",a=c.querySelector("textarea").textContent;window.components.first("code-editor").open(a,d,(h,f)=>{let y=c.querySelector(".CodeMirror").CodeMirror;y&&(ur.setContent(y,h),ur.setMode(y,f,h));let g=c.querySelector("textarea");g&&(g.textContent=h),c.setAttribute("data-lang",f),l.focus()})}function n(l){let d=l.querySelector("textarea").textContent,a=l.getAttribute("data-lang");l.removeAttribute("contentEditable");let h=document.createElement("pre"),f=document.createElement("code");f.classList.add(`language-${a}`),f.textContent=d,h.appendChild(f),l.parentElement.replaceChild(h,l)}window.tinymce.PluginManager.add("codeeditor",function(l,c){let d=l.$;l.addButton("codeeditor",{text:"Code block",icon:!1,cmd:"codeeditor"}),l.addCommand("codeeditor",()=>{t(l)}),l.on("PreProcess",function(h){d("div.CodeMirrorContainer",h.node).each((f,p)=>{n(p)})}),l.on("dblclick",h=>{let f=l.selection.getNode();!i(f)||t(l)});function a(){d(".CodeMirrorContainer").filter((f,p)=>typeof p.querySelector(".CodeMirror").CodeMirror=="undefined").each((f,p)=>{n(p)}),d("body > pre").filter((f,p)=>p.contentEditable!=="false").each((f,p)=>{ur.wysiwygView(p)})}l.on("init",function(){l.undoManager.transact(function(){a()}),setTimeout(()=>{l.on("SetContent",()=>{setTimeout(a,100)})},200)})})}function Uk(i,t,n,l){let c=null,d=null;function a(g){return g.hasAttribute("drawio-diagram")}function h(g,v=null){c=g,d=v,window.ImageManager.show(function(b){if(v){let k=v.querySelector("img");c.dom.setAttrib(k,"src",b.url),c.dom.setAttrib(v,"drawio-diagram",b.id)}else{let k=`<div drawio-diagram="${b.id}" contenteditable="false"><img src="${b.url}"></div>`;c.insertContent(k)}},"drawio")}function f(g,v=null){c=g,d=v,Nr.show(i,y,p)}async function p(g){let v="image-"+Math.random().toString(16).slice(2),b=window.baseUrl("/loading.gif"),k=_=>{_.status===413?window.$events.emit("error",l.serverUploadLimitText):window.$events.emit("error",l.imageUploadErrorText),console.log(_)};if(d){Nr.close();let _=d.querySelector("img");try{let w=await Nr.upload(g,n);c.dom.setAttrib(_,"src",w.url),c.dom.setAttrib(d,"drawio-diagram",w.id)}catch(w){k(w)}return}setTimeout(async()=>{c.insertContent(`<div drawio-diagram contenteditable="false"><img src="${b}" id="${v}"></div>`),Nr.close();try{let _=await Nr.upload(g,n);c.dom.setAttrib(v,"src",_.url),c.dom.get(v).parentNode.setAttribute("drawio-diagram",_.id)}catch(_){c.dom.remove(v),k(_)}},5)}function y(){if(!d)return Promise.resolve("");let g=d.getAttribute("drawio-diagram");return Nr.load(g)}window.tinymce.PluginManager.add("drawio",function(g,v){g.addCommand("drawio",()=>{let b=g.selection.getNode();f(g,a(b)?b:null)}),g.addButton("drawio",{type:"splitbutton",tooltip:"Drawing",image:`data:image/svg+xml;base64,${btoa(`<svg viewBox="0 0 24 24" fill="${t?"#BBB":"#000000"}" xmlns="http://www.w3.org/2000/svg">
<path d="M23 7V1h-6v2H7V1H1v6h2v10H1v6h6v-2h10v2h6v-6h-2V7h2zM3 3h2v2H3V3zm2 18H3v-2h2v2zm12-2H7v-2H5V7h2V5h10v2h2v10h-2v2zm4 2h-2v-2h2v2zM19 5V3h2v2h-2zm-5.27 9h-3.49l-.73 2H7.89l3.4-9h1.4l3.41 9h-1.63l-.74-2zm-3.04-1.26h2.61L12 8.91l-1.31 3.83z"/>
<path d="M0 0h24v24H0z" fill="none"/>
</svg>`)}`,cmd:"drawio",menu:[{text:"Drawing Manager",onclick(){let b=g.selection.getNode();h(g,a(b)?b:null)}}]}),g.on("dblclick",b=>{let k=g.selection.getNode();!a(k)||f(g,k)}),g.on("SetContent",function(){let b=g.$("body > div[drawio-diagram]");!b.length||g.undoManager.transact(function(){b.each((k,_)=>{_.setAttribute("contenteditable","false")})})})})}function Hk(){window.tinymce.PluginManager.add("customhr",function(i){i.addCommand("InsertHorizontalRule",function(){let t=document.createElement("hr"),n=i.selection.getNode();n.parentNode.insertBefore(t,n)}),i.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),i.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})})}function Wk(i){window.$events.listen("editor::replace",({html:t})=>{i.setContent(t)}),window.$events.listen("editor::append",({html:t})=>{let n=i.getContent()+t;i.setContent(n)}),window.$events.listen("editor::prepend",({html:t})=>{let n=t+i.getContent();i.setContent(n)}),window.$events.listen("editor::insert",({html:t})=>{i.insertContent(t)}),window.$events.listen("editor::focus",()=>{i.focus()})}var ly=class{setup(){this.elem=this.$el,this.pageId=this.$opts.pageId,this.textDirection=this.$opts.textDirection,this.imageUploadErrorText=this.$opts.imageUploadErrorText,this.serverUploadLimitText=this.$opts.serverUploadLimitText,this.isDarkMode=document.documentElement.classList.contains("dark-mode"),this.plugins="image imagetools table textcolor paste link autolink fullscreen code customhr autosave lists codeeditor media",this.loadPlugins(),this.tinyMceConfig=this.getTinyMceConfig(),window.$events.emitPublic(this.elem,"editor-tinymce::pre-init",{config:this.tinyMceConfig}),window.tinymce.init(this.tinyMceConfig)}loadPlugins(){$k(),Hk();let t=document.querySelector("[drawio-url]");if(t){let n=t.getAttribute("drawio-url");Uk(n,this.isDarkMode,this.pageId,this),this.plugins+=" drawio"}this.textDirection==="rtl"&&(this.plugins+=" directionality")}getToolBar(){return`undo redo | styleselect | bold italic underline strikethrough superscript subscript | forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | table image-insert link hr drawio media | removeformat code ${this.textDirection==="rtl"?"ltr rtl":""} fullscreen`}getTinyMceConfig(){let t=this;return{selector:"#html-editor",content_css:[window.baseUrl("/dist/styles.css")],branding:!1,skin:this.isDarkMode?"dark":"lightgray",body_class:"page-content",browser_spellcheck:!0,relative_urls:!1,directionality:this.textDirection,remove_script_host:!1,document_base_url:window.baseUrl("/"),end_container_on_empty_block:!0,statusbar:!1,menubar:!1,paste_data_images:!1,extended_valid_elements:"pre[*],svg[*],div[drawio-diagram]",automatic_uploads:!1,valid_children:"-div[p|h1|h2|h3|h4|h5|h6|blockquote],+div[pre],+div[img]",plugins:this.plugins,imagetools_toolbar:"imageoptions",toolbar:this.getToolBar(),content_style:`html, body, html.dark-mode {background: ${this.isDarkMode?"#222":"#fff"};} body {padding-left: 15px !important; padding-right: 15px !important; margin:0!important; margin-left:auto!important;margin-right:auto!important;}`,style_formats:[{title:"Header Large",format:"h2"},{title:"Header Medium",format:"h3"},{title:"Header Small",format:"h4"},{title:"Header Tiny",format:"h5"},{title:"Paragraph",format:"p",exact:!0,classes:""},{title:"Blockquote",format:"blockquote"},{title:"Code Block",icon:"code",cmd:"codeeditor",format:"codeeditor"},{title:"Inline Code",icon:"code",inline:"code"},{title:"Callouts",items:[{title:"Info",format:"calloutinfo"},{title:"Success",format:"calloutsuccess"},{title:"Warning",format:"calloutwarning"},{title:"Danger",format:"calloutdanger"}]}],style_formats_merge:!1,media_alt_source:!1,media_poster:!1,formats:{codeeditor:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div"},alignleft:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-left"},aligncenter:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-center"},alignright:{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",classes:"align-right"},calloutsuccess:{block:"p",exact:!0,attributes:{class:"callout success"}},calloutinfo:{block:"p",exact:!0,attributes:{class:"callout info"}},calloutwarning:{block:"p",exact:!0,attributes:{class:"callout warning"}},calloutdanger:{block:"p",exact:!0,attributes:{class:"callout danger"}}},file_browser_callback:function(n,l,c,d){c==="file"&&window.EntitySelectorPopup.show(function(a){let h=d.document.getElementById(n);h.value=a.link;let p=h.closest(".mce-form").querySelectorAll("input");p[1].value||(p[1].value=a.name),p[2].value=a.name}),c==="image"&&window.ImageManager.show(function(a){if(d.document.getElementById(n).value=a.url,"createEvent"in document){let f=document.createEvent("HTMLEvents");f.initEvent("change",!1,!0),d.document.getElementById(n).dispatchEvent(f)}else d.document.getElementById(n).fireEvent("onchange");let h=`<a href="${a.url}" target="_blank">`;h+=`<img src="${a.thumbs.display}" alt="${a.name}">`,h+="</a>",d.tinyMCE.activeEditor.execCommand("mceInsertContent",!1,h)},"gallery")},paste_preprocess:function(n,l){l.content.indexOf('<img src="file://')!==-1&&(l.content="")},init_instance_callback:function(n){jk(n)},setup:function(n){n.on("ExecCommand change input NodeChange ObjectResized",l),n.on("init",()=>{l();let p=new URL(window.location).searchParams.get("content-id");p&&c(p);let g=n.getContainer().querySelectorAll(".mce-btn");for(let v of g)v.addEventListener("touchstart",b=>{b.stopPropagation()});window.editor=n});function l(){let f=n.getContent();t.isDarkMode&&n.contentDocument.documentElement.classList.add("dark-mode"),window.$events.emit("editor-html-change",f)}function c(f){let p=n.dom.get(encodeURIComponent(f).replace(/!/g,"%21"));!p||(p.scrollIntoView(),n.selection.select(p,!0),n.selection.collapse(!1),n.focus())}Wk(n),window.$events.listen("editor-html-update",f=>{n.setContent(f),n.selection.select(n.getBody(),!0),n.selection.collapse(!1),l(f)}),qk(n);let d,a;function h(f){return f&&!!(f.textContent||f.innerText)}n.on("dragstart",function(){let f=n.selection.getNode();f.nodeName==="IMG"&&(d=n.dom.getParent(f,".mceTemp"),!d&&f.parentNode.nodeName==="A"&&!h(f.parentNode)&&(d=f.parentNode)),f.hasAttribute("contenteditable")&&f.getAttribute("contenteditable")==="false"&&(a=f)}),n.on("drop",function(f){let p=n.dom,y=tinymce.dom.RangeUtils.getCaretRangeFromPoint(f.clientX,f.clientY,n.getDoc()),g=f.dataTransfer&&f.dataTransfer.getData("bookstack/template");g&&(f.preventDefault(),window.$http.get(`/templates/${g}`).then(v=>{n.selection.setRng(y),n.undoManager.transact(function(){n.execCommand("mceInsertContent",!1,v.data.html)})})),p.getParent(y.startContainer,".mceTemp")?f.preventDefault():d&&(f.preventDefault(),n.undoManager.transact(function(){n.selection.setRng(y),n.selection.setNode(d),p.remove(d)})),!f.isDefaultPrevented()&&a&&(f.preventDefault(),n.undoManager.transact(function(){let v=n.selection.getNode(),b=n.selection.getRng(),k=v.closest("body > *");b.startOffset>b.startContainer.length/2?n.$(k).after(a):n.$(k).before(a)})),f.isDefaultPrevented()||sy(f,n,t),d=null}),n.addButton("image-insert",{title:"My title",icon:"image",tooltip:"Insert an image",onclick:function(){window.ImageManager.show(function(f){let p=`<a href="${f.url}" target="_blank">`;p+=`<img src="${f.thumbs.display}" alt="${f.name}">`,p+="</a>",n.execCommand("mceInsertContent",!1,p)},"gallery")}}),n.on("paste",f=>sy(f,n,t)),window.$events.emitPublic(t.elem,"editor-tinymce::setup",{editor:n})}}}},uy=ly;var cy={"add-remove-rows":Gc,"ajax-delete-row":Vc,"ajax-form":Xc,attachments:Qc,"auto-suggest":ef,"back-to-top":rf,"book-sort":Cf,"chapter-toggle":Lf,"code-editor":fh,"code-highlighter":hh,collapsible:mh,"custom-checkbox":vh,"details-highlighter":bh,dropdown:wh,"dropdown-search":_h,dropzone:Th,"editor-toolbox":Lh,"entity-permissions-editor":Ih,"entity-search":Mh,"entity-selector":Ph,"entity-selector-popup":zh,"event-emit-select":Bh,"expand-toggle":jh,"header-mobile-toggle":Uh,"homepage-control":Wh,"image-manager":Kh,"image-picker":Yh,index:Na,"list-sort-control":Zh,"markdown-editor":gv,"new-user-password":yv,notification:xv,"optional-input":kv,"page-comments":Sv,"page-display":Tv,"page-editor":Dv,"page-picker":Fv,"permissions-table":Ov,popup:Rv,"setting-app-color-picker":Nv,"setting-color-picker":qv,"shelf-sort":$v,sidebar:Hv,"sortable-list":Gv,"submit-on-change":Vv,tabs:Xv,"tag-manager":Qv,"template-manager":ey,"toggle-switch":ry,"tri-layout":iy,"user-select":ay,"wysiwyg-editor":uy};window.components={};function Gk(i,t){let n=t.querySelectorAll(`[${i}]`);for(let l=0,c=n.length;l<c;l++)fy(i,n[l])}function fy(i,t){let n=cy[i];if(n===void 0)return;let l;try{l=new n(t),l.$el=t;let c=Kk(i,t);l.$refs=c.refs,l.$manyRefs=c.manyRefs,l.$opts=Vk(i,t),l.$emit=(d,a={})=>{a.from=l;let h=new CustomEvent(`${i}-${d}`,{bubbles:!0,detail:a});l.$el.dispatchEvent(h)},typeof l.setup=="function"&&l.setup()}catch(c){console.error("Failed to create component",c,i,t)}typeof window.components[i]=="undefined"&&(window.components[i]=[]),window.components[i].push(l),typeof t.components=="undefined"&&(t.components={}),t.components[i]=l}function Kk(i,t){let n={},l={},c=`${i}@`,d=`[refs*="${c}"]`,a=[...t.querySelectorAll(d)];t.matches(d)&&a.push(t);for(let h of a){let f=h.getAttribute("refs").split(" ").filter(p=>p.startsWith(c)).map(p=>p.replace(c,"")).map(dy);for(let p of f)n[p]=h,typeof l[p]=="undefined"&&(l[p]=[]),l[p].push(h)}return{refs:n,manyRefs:l}}function Vk(i,t){let n={},l=`option:${i}:`;for(let{name:c,value:d}of t.attributes)if(c.startsWith(l)){let a=c.replace(l,"");n[dy(a)]=d||""}return n}function dy(i){let t=l=>l.slice(0,1).toUpperCase()+l.slice(1),n=i.split("-");return n[0]+n.slice(1).map(t).join("")}function hy(i){typeof i=="undefined"&&(i=document);for(let n of Object.keys(cy))Gk(n,i);let t=i.querySelectorAll("[component],[components]");for(let n of t){let l=`${n.getAttribute("component")||""} ${n.getAttribute("components")}`.toLowerCase().split(" ").filter(Boolean);for(let c of l)fy(c,n)}}window.components.init=hy;window.components.first=i=>(window.components[i]||[null])[0];var Na=hy;window.baseUrl=function(i){let t=document.querySelector('meta[name="base-url"]').getAttribute("content");return t[t.length-1]==="/"&&(t=t.slice(0,t.length-1)),i[0]==="/"&&(i=i.slice(1)),t+"/"+i};window.$http=Nc;window.$events=Rc;var Si=new qc;window.trans=Si.get.bind(Si);window.trans_choice=Si.getPlural.bind(Si);window.trans_plural=Si.parsePlural.bind(Si);Na();})();
/*!
* clipboard.js v2.0.8
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/
/**!
* Sortable 1.13.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
//# sourceMappingURL=app.js.map