qword 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/qword.js CHANGED
@@ -1,2 +1,2 @@
1
- var qword;(()=>{var e={735(e){"use strict";e.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(e){const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();const i=document.execCommand("copy");if(document.body.removeChild(t),!i)return Promise.reject()}}},407(e,t,i){"use strict";const n=i(299),r=n((e,t,i)=>e.setAttribute(i,t[i])),s=n((e,t,i)=>e[i]=t[i]),o=n((e,t)=>!e(t)),a=e=>e!=e.toLowerCase();function l(e){var t;if(e)return t=e,document.querySelector(`[data-name="${t}"]`)}e.exports=(e,t={})=>{const{dataName:i,notAppend:n,parent:h=document.body,uniq:c=!0,...u}=t,f=l(i);if(c&&f)return f;const d=document.createElement(e);return i&&(d.dataset.name=i),Object.keys(u).filter(a).map(s(d,t)),Object.keys(u).filter(o(a)).map(r(d,t)),n||h.appendChild(d),d},e.exports.isElementPresent=l},645(e,t,i){"use strict";i.d(t,{A:()=>a});var n=i(354),r=i.n(n),s=i(314),o=i.n(s)()(r());o.push([e.id,".dword-msg{z-index:2;background-color:#7285b7;color:#d1f1a9;position:fixed;left:40%;top:25px;padding:5px;opacity:.9;transition:ease .5s}.CodeMirror{height:100%;font-family:'Droid Sans Mono'}.CodeMirror.cm-s-pastel-on-dark{font-size:16px}","",{version:3,sources:["webpack://./css/qword.css"],names:[],mappings:"AAAA,WACI,SAAS,CACT,wBAAkB,CAClB,aAAO,CACP,cAAU,CACV,QAAM,CACN,QAAK,CACL,WAAS,CACT,UAAS,CACT,mBAAiB,CAGrB,YACI,WAAQ,CACR,6BAAa,CAGjB,gCACI,cAAW",sourcesContent:[".dword-msg {\n z-index: 2;\n background-color: #7285b7;\n color: #d1f1a9;\n position: fixed;\n left: 40%;\n top: 25px;\n padding: 5px;\n opacity: 0.9;\n transition: ease 0.5s;\n}\n\n.CodeMirror {\n height: 100%;\n font-family: 'Droid Sans Mono';\n}\n\n.CodeMirror.cm-s-pastel-on-dark {\n font-size: 16px;\n}\n"],sourceRoot:""}]);const a=o},408(e,t,i){"use strict";i.d(t,{A:()=>p});var n=i(354),r=i.n(n),s=i(314),o=i.n(s),a=i(417),l=i.n(a),h=new URL(i(348),i.b),c=new URL(i(181),i.b),u=o()(r()),f=l()(h),d=l()(c);u.push([e.id,`.smalltalk{display:flex;align-items:center;flex-direction:column;justify-content:center;transition:.2s opacity;inset:0;overflow:auto;padding:20px;position:fixed;z-index:100}.smalltalk+.smalltalk{transition:ease 1s}.smalltalk .page{border-radius:3px;background:#fff;box-shadow:0 4px 23px 5px rgb(0 0 0 / 20%),0 2px 6px rgb(0 0 0 / 15%);color:#333;min-width:400px;padding:0;position:relative;z-index:0}@media only screen and (width <= 500px){.smalltalk .page{min-width:0}}.smalltalk .page>.close-button{background-image:url(${f});background-position:center;background-repeat:no-repeat;height:14px;position:absolute;right:7px;top:7px;width:14px;z-index:1}.smalltalk .page>.close-button:hover{background-image:url(${d})}.smalltalk .progress{display:block;width:100%}.smalltalk .page header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:500px;user-select:none;color:#333;font-size:120%;font-weight:700;margin:0;padding:14px 17px;text-shadow:#fff 0 1px 2px}.smalltalk .page .content-area{overflow:hidden;text-overflow:ellipsis;padding:6px 17px;position:relative}.smalltalk .page .action-area{padding:14px 17px}button{font-family:Ubuntu,Arial,sans-serif}.smalltalk .smalltalk,.smalltalk button{min-height:2em;min-width:4em}.smalltalk button{appearance:none;user-select:none;background-image:linear-gradient(#ededed,#ededed 38%,#dedede);border:1px solid rgb(0 0 0 / 25%);border-radius:2px;box-shadow:0 1px 0 rgb(0 0 0 / 8%),inset 0 1px 2px rgb(255 255 255 / 75%);color:#444;font:inherit;margin:0 1px 0 0;text-shadow:0 1px 0 rgb(240 240 240)}.smalltalk button::-moz-focus-inner{border:0}.smalltalk button:enabled:active{background-image:linear-gradient(#e7e7e7,#e7e7e7 38%,#d7d7d7);box-shadow:none;text-shadow:none}.smalltalk .page .button-strip{display:flex;flex-direction:row;justify-content:flex-end}.smalltalk .page .button-strip>button{margin-left:10px}.smalltalk input{width:100%;border:1px solid #bfbfbf;border-radius:2px;box-sizing:border-box;color:#444;font:inherit;margin:0;min-height:2em;padding:3px;outline:0}.smalltalk button:enabled:focus,.smalltalk input:enabled:focus{transition:border-color .2s;border-color:rgb(77 144 254);outline:0}`,"",{version:3,sources:["webpack://./node_modules/smalltalk/css/smalltalk.css"],names:[],mappings:"AAAA,WACI,YAAS,CACT,kBAAa,CACb,qBAAgB,CAChB,sBAAiB,CACjB,sBAAkB,CAClB,OAAO,CACP,aAAU,CACV,YAAS,CACT,cAAU,CACV,WAAS,CAGb,sBACI,kBAAiB,CAGrB,iBACI,iBAAe,CACf,eAAY,CACZ,qEAAuD,CACvD,UAAO,CACP,eAAW,CACX,SAAS,CACT,iBAAU,CACV,SAAS,CAGb,wCACI,iBACI,WAAW,CAAA,CAInB,+BACI,wDAAkB,CAClB,0BAAqB,CACrB,2BAAmB,CACnB,WAAQ,CACR,iBAAU,CACV,SAAO,CACP,OAAK,CACL,UAAO,CACP,SAAS,CAGb,qCACI,wDAAkB,CAGtB,qBACI,aAAS,CACT,UAAO,CAGX,wBACI,eAAU,CACV,sBAAe,CACf,kBAAa,CACb,eAAW,CACX,gBAAa,CACb,UAAO,CACP,cAAW,CACX,eAAa,CACb,QAAQ,CACR,iBAAc,CACd,0BAAyB,CAG7B,+BACI,eAAU,CACV,sBAAe,CACf,gBAAa,CACb,iBAAU,CAGd,8BACI,iBAAc,CAGlB,OACI,mCAAgC,CAGjB,wCACf,cAAY,CACZ,aAAW,CAGf,kBACI,eAAY,CACZ,gBAAa,CACb,6DAAkB,CAClB,iCAAkB,CAClB,iBAAe,CACf,yEAAqD,CACrD,UAAO,CACP,YAAM,CACN,gBAAgB,CAChB,oCAAqB,CAGzB,oCACI,QAAQ,CAGZ,iCACI,6DAAkB,CAClB,eAAY,CACZ,gBAAa,CAGjB,+BACI,YAAS,CACT,kBAAgB,CAChB,wBAAiB,CAGrB,sCACI,gBAAa,CAGjB,iBACI,UAAO,CACP,wBAAkB,CAClB,iBAAe,CACf,qBAAY,CACZ,UAAO,CACP,YAAM,CACN,QAAQ,CACR,cAAY,CACZ,WAAS,CACT,SAAS,CAGb,+DACI,2BAAyB,CACzB,4BAAc,CACd,SAAS",sourcesContent:[".smalltalk {\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n transition: 200ms opacity;\n inset: 0;\n overflow: auto;\n padding: 20px;\n position: fixed;\n z-index: 100;\n}\n\n.smalltalk + .smalltalk {\n transition: ease 1s;\n}\n\n.smalltalk .page {\n border-radius: 3px;\n background: white;\n box-shadow: 0 4px 23px 5px rgb(0 0 0 / 20%), 0 2px 6px rgb(0 0 0 / 15%);\n color: #333;\n min-width: 400px;\n padding: 0;\n position: relative;\n z-index: 0;\n}\n\n@media only screen and (width <= 500px) {\n .smalltalk .page {\n min-width: 0;\n }\n}\n\n.smalltalk .page > .close-button {\n background-image: url(../img/IDR_CLOSE_DIALOG.png);\n background-position: center;\n background-repeat: no-repeat;\n height: 14px;\n position: absolute;\n right: 7px;\n top: 7px;\n width: 14px;\n z-index: 1;\n}\n\n.smalltalk .page > .close-button:hover {\n background-image: url(../img/IDR_CLOSE_DIALOG_H.png);\n}\n\n.smalltalk .progress {\n display: block;\n width: 100%;\n}\n\n.smalltalk .page header {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 500px;\n user-select: none;\n color: #333;\n font-size: 120%;\n font-weight: bold;\n margin: 0;\n padding: 14px 17px;\n text-shadow: white 0 1px 2px;\n}\n\n.smalltalk .page .content-area {\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 6px 17px;\n position: relative;\n}\n\n.smalltalk .page .action-area {\n padding: 14px 17px;\n}\n\nbutton {\n font-family: 'Ubuntu', 'Arial', sans-serif;\n}\n\n.smalltalk button, .smalltalk .smalltalk {\n min-height: 2em;\n min-width: 4em;\n}\n\n.smalltalk button {\n appearance: none;\n user-select: none;\n background-image: linear-gradient(#ededed, #ededed 38%, #dedede);\n border: 1px solid rgb(0 0 0 / 25%);\n border-radius: 2px;\n box-shadow: 0 1px 0 rgb(0 0 0 / 8%), inset 0 1px 2px rgb(255 255 255 / 75%);\n color: #444;\n font: inherit;\n margin: 0 1px 0 0;\n text-shadow: 0 1px 0 rgb(240 240 240);\n}\n\n.smalltalk button::-moz-focus-inner {\n border: 0;\n}\n\n.smalltalk button:enabled:active {\n background-image: linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7);\n box-shadow: none;\n text-shadow: none;\n}\n\n.smalltalk .page .button-strip {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n}\n\n.smalltalk .page .button-strip > button {\n margin-left: 10px;\n}\n\n.smalltalk input {\n width: 100%;\n border: 1px solid #bfbfbf;\n border-radius: 2px;\n box-sizing: border-box;\n color: #444;\n font: inherit;\n margin: 0;\n min-height: 2em;\n padding: 3px;\n outline: none;\n}\n\n.smalltalk button:enabled:focus, .smalltalk input:enabled:focus {\n transition: border-color 200ms;\n border-color: rgb(77 144 254);\n outline: none;\n}\n\n"],sourceRoot:""}]);const p=u},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i}).join("")},t.i=function(e,i,n,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var h=0;h<e.length;h++){var c=[].concat(e[h]);n&&o[c[0]]||(void 0!==s&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=s),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},417(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},354(e){"use strict";e.exports=function(e){var t=e[1],i=e[3];if(!i)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),s="/*# ".concat(r," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},299(e){"use strict";const t=(e,...i)=>{if(function(e){if("function"!=typeof e)throw Error("fn should be function!")}(e),i.length>=e.length)return e(...i);const n=(...n)=>t(e,...i,...n),r=e.length-i.length-1,s=(e=>[function(t){return e(...arguments)},function(t,i){return e(...arguments)},function(t,i,n){return e(...arguments)},function(t,i,n,r){return e(...arguments)},function(t,i,n,r,s){return e(...arguments)}])(n)[r];return s||n};e.exports=t},911(e,t,i){!function(t){"use strict";function n(e){var t=new e;this.createPatch=function(e,i){var n=t.diff_main(e,i),r=t.patch_make(e,i,n);return t.patch_toText(r)},this.applyPatch=function(e,i){var n=t.patch_fromText(i);return t.patch_apply(n,e)[0]}}e.exports?e.exports=new n(i(189)):t.daffy=new n(t.diff_match_patch)}(this)},189(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},i=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,i,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=r;if(null==e||null==i)throw new Error("Null input. (diff_main)");if(e==i)return e?[new t.Diff(0,e)]:[];void 0===n&&(n=!0);var o=n,a=this.diff_commonPrefix(e,i),l=e.substring(0,a);e=e.substring(a),i=i.substring(a),a=this.diff_commonSuffix(e,i);var h=e.substring(e.length-a);e=e.substring(0,e.length-a),i=i.substring(0,i.length-a);var c=this.diff_compute_(e,i,o,s);return l&&c.unshift(new t.Diff(0,l)),h&&c.push(new t.Diff(0,h)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,n,r,s){var o;if(!e)return[new t.Diff(1,n)];if(!n)return[new t.Diff(i,e)];var a=e.length>n.length?e:n,l=e.length>n.length?n:e,h=a.indexOf(l);if(-1!=h)return o=[new t.Diff(1,a.substring(0,h)),new t.Diff(0,l),new t.Diff(1,a.substring(h+l.length))],e.length>n.length&&(o[0][0]=o[2][0]=i),o;if(1==l.length)return[new t.Diff(i,e),new t.Diff(1,n)];var c=this.diff_halfMatch_(e,n);if(c){var u=c[0],f=c[1],d=c[2],p=c[3],O=c[4],g=this.diff_main(u,d,r,s),m=this.diff_main(f,p,r,s);return g.concat([new t.Diff(0,O)],m)}return r&&e.length>100&&n.length>100?this.diff_lineMode_(e,n,s):this.diff_bisect_(e,n,s)},t.prototype.diff_lineMode_=function(e,n,r){var s=this.diff_linesToChars_(e,n);e=s.chars1,n=s.chars2;var o=s.lineArray,a=this.diff_main(e,n,!1,r);this.diff_charsToLines_(a,o),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,h=0,c=0,u="",f="";l<a.length;){switch(a[l][0]){case 1:c++,f+=a[l][1];break;case i:h++,u+=a[l][1];break;case 0:if(h>=1&&c>=1){a.splice(l-h-c,h+c),l=l-h-c;for(var d=this.diff_main(u,f,!1,r),p=d.length-1;p>=0;p--)a.splice(l,0,d[p]);l+=d.length}c=0,h=0,u="",f=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(e,n,r){for(var s=e.length,o=n.length,a=Math.ceil((s+o)/2),l=a,h=2*a,c=new Array(h),u=new Array(h),f=0;f<h;f++)c[f]=-1,u[f]=-1;c[l+1]=0,u[l+1]=0;for(var d=s-o,p=d%2!=0,O=0,g=0,m=0,v=0,y=0;y<a&&!((new Date).getTime()>r);y++){for(var w=-y+O;w<=y-g;w+=2){for(var b=l+w,S=(P=w==-y||w!=y&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-w;P<s&&S<o&&e.charAt(P)==n.charAt(S);)P++,S++;if(c[b]=P,P>s)g+=2;else if(S>o)O+=2;else if(p&&(Q=l+d-w)>=0&&Q<h&&-1!=u[Q]&&P>=(k=s-u[Q]))return this.diff_bisectSplit_(e,n,P,S,r)}for(var x=-y+m;x<=y-v;x+=2){for(var k,Q=l+x,$=(k=x==-y||x!=y&&u[Q-1]<u[Q+1]?u[Q+1]:u[Q-1]+1)-x;k<s&&$<o&&e.charAt(s-k-1)==n.charAt(o-$-1);)k++,$++;if(u[Q]=k,k>s)v+=2;else if($>o)m+=2;else if(!p){var P;if((b=l+d-x)>=0&&b<h&&-1!=c[b])if(S=l+(P=c[b])-b,P>=(k=s-k))return this.diff_bisectSplit_(e,n,P,S,r)}}}return[new t.Diff(i,e),new t.Diff(1,n)]},t.prototype.diff_bisectSplit_=function(e,t,i,n,r){var s=e.substring(0,i),o=t.substring(0,n),a=e.substring(i),l=t.substring(n),h=this.diff_main(s,o,!1,r),c=this.diff_main(a,l,!1,r);return h.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var i=[],n={};function r(e){for(var t="",r=0,o=-1,a=i.length;o<e.length-1;){-1==(o=e.indexOf("\n",r))&&(o=e.length-1);var l=e.substring(r,o+1);(n.hasOwnProperty?n.hasOwnProperty(l):void 0!==n[l])?t+=String.fromCharCode(n[l]):(a==s&&(l=e.substring(r),o=e.length),t+=String.fromCharCode(a),n[l]=a,i[a++]=l),r=o+1}return t}i[0]="";var s=4e4,o=r(e);return s=65535,{chars1:o,chars2:r(t),lineArray:i}},t.prototype.diff_charsToLines_=function(e,t){for(var i=0;i<e.length;i++){for(var n=e[i][1],r=[],s=0;s<n.length;s++)r[s]=t[n.charCodeAt(s)];e[i][1]=r.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,s=0;i<r;)e.substring(s,r)==t.substring(s,r)?s=i=r:n=r,r=Math.floor((n-i)/2+i);return r},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,s=0;i<r;)e.substring(e.length-r,e.length-s)==t.substring(t.length-r,t.length-s)?s=i=r:n=r,r=Math.floor((n-i)/2+i);return r},t.prototype.diff_commonOverlap_=function(e,t){var i=e.length,n=t.length;if(0==i||0==n)return 0;i>n?e=e.substring(i-n):i<n&&(t=t.substring(0,i));var r=Math.min(i,n);if(e==t)return r;for(var s=0,o=1;;){var a=e.substring(r-o),l=t.indexOf(a);if(-1==l)return s;o+=l,0!=l&&e.substring(r-o)!=t.substring(0,o)||(s=o,o++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var i=e.length>t.length?e:t,n=e.length>t.length?t:e;if(i.length<4||2*n.length<i.length)return null;var r=this;function s(e,t,i){for(var n,s,o,a,l=e.substring(i,i+Math.floor(e.length/4)),h=-1,c="";-1!=(h=t.indexOf(l,h+1));){var u=r.diff_commonPrefix(e.substring(i),t.substring(h)),f=r.diff_commonSuffix(e.substring(0,i),t.substring(0,h));c.length<f+u&&(c=t.substring(h-f,h)+t.substring(h,h+u),n=e.substring(0,i-f),s=e.substring(i+u),o=t.substring(0,h-f),a=t.substring(h+u))}return 2*c.length>=e.length?[n,s,o,a,c]:null}var o,a,l,h,c,u=s(i,n,Math.ceil(i.length/4)),f=s(i,n,Math.ceil(i.length/2));return u||f?(o=f?u&&u[4].length>f[4].length?u:f:u,e.length>t.length?(a=o[0],l=o[1],h=o[2],c=o[3]):(h=o[0],c=o[1],a=o[2],l=o[3]),[a,l,h,c,o[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var n=!1,r=[],s=0,o=null,a=0,l=0,h=0,c=0,u=0;a<e.length;)0==e[a][0]?(r[s++]=a,l=c,h=u,c=0,u=0,o=e[a][1]):(1==e[a][0]?c+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(l,h)&&o.length<=Math.max(c,u)&&(e.splice(r[s-1],0,new t.Diff(i,o)),e[r[s-1]+1][0]=1,s--,a=--s>0?r[s-1]:-1,l=0,h=0,c=0,u=0,o=null,n=!0)),a++;for(n&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]==i&&1==e[a][0]){var f=e[a-1][1],d=e[a][1],p=this.diff_commonOverlap_(f,d),O=this.diff_commonOverlap_(d,f);p>=O?(p>=f.length/2||p>=d.length/2)&&(e.splice(a,0,new t.Diff(0,d.substring(0,p))),e[a-1][1]=f.substring(0,f.length-p),e[a+1][1]=d.substring(p),a++):(O>=f.length/2||O>=d.length/2)&&(e.splice(a,0,new t.Diff(0,f.substring(0,O))),e[a-1][0]=1,e[a-1][1]=d.substring(0,d.length-O),e[a+1][0]=i,e[a+1][1]=f.substring(O),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function i(e,i){if(!e||!i)return 6;var n=e.charAt(e.length-1),r=i.charAt(0),s=n.match(t.nonAlphaNumericRegex_),o=r.match(t.nonAlphaNumericRegex_),a=s&&n.match(t.whitespaceRegex_),l=o&&r.match(t.whitespaceRegex_),h=a&&n.match(t.linebreakRegex_),c=l&&r.match(t.linebreakRegex_),u=h&&e.match(t.blanklineEndRegex_),f=c&&i.match(t.blanklineStartRegex_);return u||f?5:h||c?4:s&&!a&&l?3:a||l?2:s||o?1:0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],s=e[n][1],o=e[n+1][1],a=this.diff_commonSuffix(r,s);if(a){var l=s.substring(s.length-a);r=r.substring(0,r.length-a),s=l+s.substring(0,s.length-a),o=l+o}for(var h=r,c=s,u=o,f=i(r,s)+i(s,o);s.charAt(0)===o.charAt(0);){r+=s.charAt(0),s=s.substring(1)+o.charAt(0),o=o.substring(1);var d=i(r,s)+i(s,o);d>=f&&(f=d,h=r,c=s,u=o)}e[n-1][1]!=h&&(h?e[n-1][1]=h:(e.splice(n-1,1),n--),e[n][1]=c,u?e[n+1][1]=u:(e.splice(n+1,1),n--))}n++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var n=!1,r=[],s=0,o=null,a=0,l=!1,h=!1,c=!1,u=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(c||u)?(r[s++]=a,l=c,h=u,o=e[a][1]):(s=0,o=null),c=u=!1):(e[a][0]==i?u=!0:c=!0,o&&(l&&h&&c&&u||o.length<this.Diff_EditCost/2&&l+h+c+u==3)&&(e.splice(r[s-1],0,new t.Diff(i,o)),e[r[s-1]+1][0]=1,s--,o=null,l&&h?(c=u=!0,s=0):(a=--s>0?r[s-1]:-1,c=u=!1),n=!0)),a++;n&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var n,r=0,s=0,o=0,a="",l="";r<e.length;)switch(e[r][0]){case 1:o++,l+=e[r][1],r++;break;case i:s++,a+=e[r][1],r++;break;case 0:s+o>1?(0!==s&&0!==o&&(0!==(n=this.diff_commonPrefix(l,a))&&(r-s-o>0&&0==e[r-s-o-1][0]?e[r-s-o-1][1]+=l.substring(0,n):(e.splice(0,0,new t.Diff(0,l.substring(0,n))),r++),l=l.substring(n),a=a.substring(n)),0!==(n=this.diff_commonSuffix(l,a))&&(e[r][1]=l.substring(l.length-n)+e[r][1],l=l.substring(0,l.length-n),a=a.substring(0,a.length-n))),r-=s+o,e.splice(r,s+o),a.length&&(e.splice(r,0,new t.Diff(i,a)),r++),l.length&&(e.splice(r,0,new t.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,s=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),h=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),h=!0)),r++;h&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var n,r=0,s=0,o=0,a=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),e[n][0]!==i&&(s+=e[n][1].length),!(r>t));n++)o=r,a=s;return e.length!=n&&e[n][0]===i?a:a+(t-o)},t.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,s=/>/g,o=/\n/g,a=0;a<e.length;a++){var l=e[a][0],h=e[a][1].replace(n,"&amp;").replace(r,"&lt;").replace(s,"&gt;").replace(o,"&para;<br>");switch(l){case 1:t[a]='<ins style="background:#e6ffe6;">'+h+"</ins>";break;case i:t[a]='<del style="background:#ffe6e6;">'+h+"</del>";break;case 0:t[a]="<span>"+h+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],i=0;i<e.length;i++)1!==e[i][0]&&(t[i]=e[i][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==i&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,s=0;s<e.length;s++){var o=e[s][0],a=e[s][1];switch(o){case 1:n+=a.length;break;case i:r+=a.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+Math.max(n,r)},t.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case i:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,n){for(var r=[],s=0,o=0,a=n.split(/\t/g),l=0;l<a.length;l++){var h=a[l].substring(1);switch(a[l].charAt(0)){case"+":try{r[s++]=new t.Diff(1,decodeURI(h))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+h)}break;case"-":case"=":var c=parseInt(h,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+h);var u=e.substring(o,o+=c);"="==a[l].charAt(0)?r[s++]=new t.Diff(0,u):r[s++]=new t.Diff(i,u);break;default:if(a[l])throw new Error("Invalid diff operation in diff_fromDelta: "+a[l])}}if(o!=e.length)throw new Error("Delta length ("+o+") does not equal source text length ("+e.length+").");return r},t.prototype.match_main=function(e,t,i){if(null==e||null==t||null==i)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1},t.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(t),r=this;function s(e,n){var s=e/t.length,o=Math.abs(i-n);return r.Match_Distance?s+o/r.Match_Distance:o?1:s}var o=this.Match_Threshold,a=e.indexOf(t,i);-1!=a&&(o=Math.min(s(0,a),o),-1!=(a=e.lastIndexOf(t,i+t.length))&&(o=Math.min(s(0,a),o)));var l,h,c=1<<t.length-1;a=-1;for(var u,f=t.length+e.length,d=0;d<t.length;d++){for(l=0,h=f;l<h;)s(d,i+h)<=o?l=h:f=h,h=Math.floor((f-l)/2+l);f=h;var p=Math.max(1,i-h+1),O=Math.min(i+h,e.length)+t.length,g=Array(O+2);g[O+1]=(1<<d)-1;for(var m=O;m>=p;m--){var v=n[e.charAt(m-1)];if(g[m]=0===d?(g[m+1]<<1|1)&v:(g[m+1]<<1|1)&v|(u[m+1]|u[m])<<1|1|u[m+1],g[m]&c){var y=s(d,m-1);if(y<=o){if(o=y,!((a=m-1)>i))break;p=Math.max(1,2*i-a)}}}if(s(d+1,i)>o)break;u=g}return a},t.prototype.match_alphabet_=function(e){for(var t={},i=0;i<e.length;i++)t[e.charAt(i)]=0;for(i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t},t.prototype.patch_addContext_=function(e,i){if(0!=i.length){if(null===e.start2)throw Error("patch not initialized");for(var n=i.substring(e.start2,e.start2+e.length1),r=0;i.indexOf(n)!=i.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=i.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var s=i.substring(e.start2-r,e.start2);s&&e.diffs.unshift(new t.Diff(0,s));var o=i.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new t.Diff(0,o)),e.start1-=s.length,e.start2-=s.length,e.length1+=s.length+o.length,e.length2+=s.length+o.length}},t.prototype.patch_make=function(e,n,r){var s,o;if("string"==typeof e&&"string"==typeof n&&void 0===r)s=e,(o=this.diff_main(s,n,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===n&&void 0===r)o=e,s=this.diff_text1(o);else if("string"==typeof e&&n&&"object"==typeof n&&void 0===r)s=e,o=n;else{if("string"!=typeof e||"string"!=typeof n||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");s=e,o=r}if(0===o.length)return[];for(var a=[],l=new t.patch_obj,h=0,c=0,u=0,f=s,d=s,p=0;p<o.length;p++){var O=o[p][0],g=o[p][1];switch(h||0===O||(l.start1=c,l.start2=u),O){case 1:l.diffs[h++]=o[p],l.length2+=g.length,d=d.substring(0,u)+g+d.substring(u);break;case i:l.length1+=g.length,l.diffs[h++]=o[p],d=d.substring(0,u)+d.substring(u+g.length);break;case 0:g.length<=2*this.Patch_Margin&&h&&o.length!=p+1?(l.diffs[h++]=o[p],l.length1+=g.length,l.length2+=g.length):g.length>=2*this.Patch_Margin&&h&&(this.patch_addContext_(l,f),a.push(l),l=new t.patch_obj,h=0,f=d,c=u)}1!==O&&(c+=g.length),O!==i&&(u+=g.length)}return h&&(this.patch_addContext_(l,f),a.push(l)),a},t.prototype.patch_deepCopy=function(e){for(var i=[],n=0;n<e.length;n++){var r=e[n],s=new t.patch_obj;s.diffs=[];for(var o=0;o<r.diffs.length;o++)s.diffs[o]=new t.Diff(r.diffs[o][0],r.diffs[o][1]);s.start1=r.start1,s.start2=r.start2,s.length1=r.length1,s.length2=r.length2,i[n]=s}return i},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,s=[],o=0;o<e.length;o++){var a,l,h=e[o].start2+r,c=this.diff_text1(e[o].diffs),u=-1;if(c.length>this.Match_MaxBits?-1!=(a=this.match_main(t,c.substring(0,this.Match_MaxBits),h))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),h+c.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,c,h),-1==a)s[o]=!1,r-=e[o].length2-e[o].length1;else if(s[o]=!0,r=a-h,c==(l=-1==u?t.substring(a,a+c.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[o].diffs)+t.substring(a+c.length);else{var f=this.diff_main(c,l,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)s[o]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,O=0;O<e[o].diffs.length;O++){var g=e[o].diffs[O];0!==g[0]&&(d=this.diff_xIndex(f,p)),1===g[0]?t=t.substring(0,a+d)+g[1]+t.substring(a+d):g[0]===i&&(t=t.substring(0,a+d)+t.substring(a+this.diff_xIndex(f,p+g[1].length))),g[0]!==i&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),s]},t.prototype.patch_addPadding=function(e){for(var i=this.Patch_Margin,n="",r=1;r<=i;r++)n+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=i,e[r].start2+=i;var s=e[0],o=s.diffs;if(0==o.length||0!=o[0][0])o.unshift(new t.Diff(0,n)),s.start1-=i,s.start2-=i,s.length1+=i,s.length2+=i;else if(i>o[0][1].length){var a=i-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],s.start1-=a,s.start2-=a,s.length1+=a,s.length2+=a}return 0==(o=(s=e[e.length-1]).diffs).length||0!=o[o.length-1][0]?(o.push(new t.Diff(0,n)),s.length1+=i,s.length2+=i):i>o[o.length-1][1].length&&(a=i-o[o.length-1][1].length,o[o.length-1][1]+=n.substring(0,a),s.length1+=a,s.length2+=a),n},t.prototype.patch_splitMax=function(e){for(var n=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=n)){var s=e[r];e.splice(r--,1);for(var o=s.start1,a=s.start2,l="";0!==s.diffs.length;){var h=new t.patch_obj,c=!0;for(h.start1=o-l.length,h.start2=a-l.length,""!==l&&(h.length1=h.length2=l.length,h.diffs.push(new t.Diff(0,l)));0!==s.diffs.length&&h.length1<n-this.Patch_Margin;){var u=s.diffs[0][0],f=s.diffs[0][1];1===u?(h.length2+=f.length,a+=f.length,h.diffs.push(s.diffs.shift()),c=!1):u===i&&1==h.diffs.length&&0==h.diffs[0][0]&&f.length>2*n?(h.length1+=f.length,o+=f.length,c=!1,h.diffs.push(new t.Diff(u,f)),s.diffs.shift()):(f=f.substring(0,n-h.length1-this.Patch_Margin),h.length1+=f.length,o+=f.length,0===u?(h.length2+=f.length,a+=f.length):c=!1,h.diffs.push(new t.Diff(u,f)),f==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(f.length))}l=(l=this.diff_text2(h.diffs)).substring(l.length-this.Patch_Margin);var d=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==d&&(h.length1+=d.length,h.length2+=d.length,0!==h.diffs.length&&0===h.diffs[h.diffs.length-1][0]?h.diffs[h.diffs.length-1][1]+=d:h.diffs.push(new t.Diff(0,d))),c||e.splice(++r,0,h)}}},t.prototype.patch_toText=function(e){for(var t=[],i=0;i<e.length;i++)t[i]=e[i];return t.join("")},t.prototype.patch_fromText=function(e){var n=[];if(!e)return n;for(var r=e.split("\n"),s=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<r.length;){var a=r[s].match(o);if(!a)throw new Error("Invalid patch string: "+r[s]);var l=new t.patch_obj;for(n.push(l),l.start1=parseInt(a[1],10),""===a[2]?(l.start1--,l.length1=1):"0"==a[2]?l.length1=0:(l.start1--,l.length1=parseInt(a[2],10)),l.start2=parseInt(a[3],10),""===a[4]?(l.start2--,l.length2=1):"0"==a[4]?l.length2=0:(l.start2--,l.length2=parseInt(a[4],10)),s++;s<r.length;){var h=r[s].charAt(0);try{var c=decodeURI(r[s].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==h)l.diffs.push(new t.Diff(i,c));else if("+"==h)l.diffs.push(new t.Diff(1,c));else if(" "==h)l.diffs.push(new t.Diff(0,c));else{if("@"==h)break;if(""!==h)throw new Error('Invalid patch mode "'+h+'" in: '+c)}s++}}return n},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case i:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=i,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},411(e){"use strict";function t(){if(!(this instanceof t))return new t;this._all={}}function i(e){if("string"!=typeof e)throw Error("event should be string!")}function n(e,t){i(e),function(e){if("function"!=typeof e)throw Error("callback should be function!")}(t)}e.exports=t,t.prototype.on=function(e,t){const i=this._all[e];return n(e,t),i?i.push(t):this._all[e]=[t],this},t.prototype.addListener=t.prototype.on,t.prototype.once=function(e,t){const i=this;return n(e,t),this.on(e,function n(...r){t(...r),i.off(e,n)}),this},t.prototype.off=function(e,t){const i=this._all[e]||[];let r=i.indexOf(t);for(n(e,t);~r;)i.splice(r,1),r=i.indexOf(t);return this},t.prototype.removeListener=t.prototype.off,t.prototype.emit=function(e,...t){const n=this._all[e];if(i(e),!n&&"error"===e)throw t[0];if(!n)return this;for(const e of n)e(...t);return this},t.prototype.removeAllListeners=function(e){return i(e),this._all[e]=[],this}},256(e,t,i){"use strict";const{promisify:n}=i(450),r=i(407),s=()=>{},o=(e,t,i)=>{e.addEventListener(t,n=>{i(n),e.removeEventListener(t,i)})},a=async e=>{switch(function(e){let t,i="";return"string"==typeof e&&(t=e.lastIndexOf("."),~t&&(i=e.substr(t))),i}(e)){case".js":return await a.js(e);case".css":return await a.css(e);case".json":return await a.json(e);default:return await a.ajax(e)}};function l(e){if("string"!=typeof e)return"";~e.indexOf(":")&&(e+="-join");const t=e.lastIndexOf("/")+1,i=e.substr(e,t);return e.replace(i,"").replace(/\./g,"-")}a.onerror=s,a.onload=s,a.addLoadListener=e=>{a.onload=e},a.addErrorListener=e=>{a.onerror=e},e.exports=a,a.js=n((e,t)=>{const i=l(e);let n=document.getElementById(i);if(n)return t();n=r("script",{id:i,src:e}),o(n,"load",e=>{t(null,e),a.onload()}),o(n,"error",i=>{t(i),document.body.removeChild(n),a.onerror(i,e)})}),a.css=n((e,t)=>{const i=l(e);let n=document.getElementById(i);if(n)return t();n=r("link",{id:l(e),rel:"stylesheet",href:e,parent:document.head}),n.addEventListener("load",e=>{t(null,e),a.onload()}),n.addEventListener("error",i=>{t(i),document.head.removeChild(n),a.onerror(i,e)})}),a.ajax=n((e,t)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),i.addEventListener("load",()=>{if(i.status>=200&&i.status<400){const e=i.responseText;t(null,e),a.onload()}}),i.addEventListener("error",e=>{a.onerror(e),t(e)}),i.send()}),a.json=n((e,t)=>{a.ajax(e,(e,i)=>{let n;e||(n=JSON.parse(i)),t(e,n)})}),a.series=async e=>{const t=e.shift();t&&(await a(t),await a.series(e))},a.parallel=async e=>{const t=e.map(a);return await Promise.all(t)},a.getIdBySrc=l},450(e,t){"use strict";t.promisify=n;var i="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function n(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e[i],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var i=this,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return new r(function(n,r){s.push(function(e){if(e)return r(e);for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];if(1===s.length||!t)return n(s[0]);var a={};s.forEach(function(e,i){var n=t[i];n&&(a[n]=e)}),n(a)}),e.apply(i,s)})}}n.argumentNames=i,n.Promise=void 0},519(e,t,i){var n=i(587);function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},i=e.name||"Function wrapped with `once`";return t.onceError=i+" shouldn't be called more than once",t.called=!1,t}e.exports=n(r),e.exports.strict=n(s),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},668(e,t,i){"use strict";var n={};(0,i(805).assign)(n,i(303),i(83),i(681)),e.exports=n},303(e,t,i){"use strict";var n=i(792),r=i(805),s=i(996),o=i(674),a=i(442),l=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==i)throw new Error(o[i]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(i=n.deflateSetDictionary(this.strm,c)))throw new Error(o[i]);this._dict_set=!0}}function c(e,t){var i=new h(t);if(i.push(e,!0),i.err)throw i.msg||o[i.err];return i.result}h.prototype.push=function(e,t){var i,o,a=this.strm,h=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(h),a.next_out=0,a.avail_out=h),1!==(i=n.deflate(a,o))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(s.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==i);return 4===o?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),a.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=h,t.deflate=c,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},83(e,t,i){"use strict";var n=i(447),r=i(805),s=i(996),o=i(681),a=i(674),l=i(442),h=i(414),c=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(a[i]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(a[i])}function f(e,t){var i=new u(t);if(i.push(e,!0),i.err)throw i.msg||a[i.err];return i.result}u.prototype.push=function(e,t){var i,a,l,h,u,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,O=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(d),f.next_out=0,f.avail_out=d),(i=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===o.Z_BUF_ERROR&&!0===O&&(i=o.Z_OK,O=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&i!==o.Z_STREAM_END&&(0!==f.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(f.output,f.next_out),h=f.next_out-l,u=s.buf2string(f.output,l),f.next_out=h,f.avail_out=d-h,h&&r.arraySet(f.output,f.output,l,h,0),this.onData(u)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(O=!0)}while((f.avail_in>0||0===f.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=u,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},805(e,t){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(e[r]=i[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,i,n,r){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),r);else for(var s=0;s<n;s++)e[r+s]=t[i+s]},flattenChunks:function(e){var t,i,n,r,s,o;for(n=0,t=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),r=0,t=0,i=e.length;t<i;t++)s=e[t],o.set(s,r),r+=s.length;return o}},s={arraySet:function(e,t,i,n,r){for(var s=0;s<n;s++)e[r+s]=t[i+s]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(i)},996(e,t,i){"use strict";var n=i(805),r=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var o=new n.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o<t;o++)i+=String.fromCharCode(e[o]);return i}o[254]=o[254]=1,t.string2buf=function(e){var t,i,r,s,o,a=e.length,l=0;for(s=0;s<a;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(l),o=0,s=0;o<l;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),i<128?t[o++]=i:i<2048?(t[o++]=192|i>>>6,t[o++]=128|63&i):i<65536?(t[o++]=224|i>>>12,t[o++]=128|i>>>6&63,t[o++]=128|63&i):(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63,t[o++]=128|i>>>6&63,t[o++]=128|63&i);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,r=t.length;i<r;i++)t[i]=e.charCodeAt(i);return t},t.buf2string=function(e,t){var i,n,r,s,a=t||e.length,h=new Array(2*a);for(n=0,i=0;i<a;)if((r=e[i++])<128)h[n++]=r;else if((s=o[r])>4)h[n++]=65533,i+=s-1;else{for(r&=2===s?31:3===s?15:7;s>1&&i<a;)r=r<<6|63&e[i++],s--;s>1?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return l(h,n)},t.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},269(e){"use strict";e.exports=function(e,t,i,n){for(var r=65535&e,s=e>>>16&65535,o=0;0!==i;){i-=o=i>2e3?2e3:i;do{s=s+(r=r+t[n++]|0)|0}while(--o);r%=65521,s%=65521}return r|s<<16}},681(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},823(e){"use strict";var t=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();e.exports=function(e,i,n,r){var s=t,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^s[255&(e^i[a])];return-1^e}},792(e,t,i){"use strict";var n,r=i(805),s=i(665),o=i(269),a=i(823),l=i(674),h=-2,c=258,u=262,f=103,d=113,p=666;function O(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function m(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),0!==i&&(r.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function y(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function S(e,t,i,n){var s=e.avail_in;return s>n&&(s=n),0===s?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,i),1===e.state.wrap?e.adler=o(e.adler,t,s,i):2===e.state.wrap&&(e.adler=a(e.adler,t,s,i)),e.next_in+=s,e.total_in+=s,s)}function x(e,t){var i,n,r=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-u?e.strstart-(e.w_size-u):0,h=e.window,f=e.w_mask,d=e.prev,p=e.strstart+c,O=h[s+o-1],g=h[s+o];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do{if(h[(i=t)+o]===g&&h[i+o-1]===O&&h[i]===h[s]&&h[++i]===h[s+1]){s+=2,i++;do{}while(h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&s<p);if(n=c-(p-s),s=p-c,n>o){if(e.match_start=t,o=n,n>=a)break;O=h[s+o-1],g=h[s+o]}}}while((t=d[t&f])>l&&0!==--r);return o<=e.lookahead?o:e.lookahead}function k(e){var t,i,n,s,o,a=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-u)){r.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=i=e.hash_size;do{n=e.head[--t],e.head[t]=n>=a?n-a:0}while(--i);t=i=a;do{n=e.prev[--t],e.prev[t]=n>=a?n-a:0}while(--i);s+=a}if(0===e.strm.avail_in)break;if(i=S(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<u&&0!==e.strm.avail_in)}function Q(e,t){for(var i,n;;){if(e.lookahead<u){if(k(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(i=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==i&&e.strstart-i<=e.w_size-u&&(e.match_length=x(e,i)),e.match_length>=3)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function $(e,t){for(var i,n,r;;){if(e.lookahead<u){if(k(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(i=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-u&&(e.match_length=x(e,i),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-3,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(y(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=s._tr_tally(e,0,e.window[e.strstart-1]))&&y(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function P(e,t,i,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=n,this.func=r}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function C(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,s._tr_init(t),0):O(e,h)}function A(e){var t,i=C(e);return 0===i&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),i}function T(e,t,i,n,s,o){if(!e)return h;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),s<1||s>9||8!==i||n<8||n>15||t<0||t>9||o<0||o>4)return O(e,h);8===n&&(n=9);var l=new _;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=i,A(e)}n=[new P(0,0,0,0,function(e,t){var i=65535;for(i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-u&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)}),new P(4,4,8,4,Q),new P(4,5,16,8,Q),new P(4,6,32,32,Q),new P(4,4,16,16,$),new P(8,16,32,32,$),new P(8,16,128,128,$),new P(8,32,128,256,$),new P(32,128,258,1024,$),new P(32,258,258,4096,$)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=A,t.deflateResetKeep=C,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,0):h},t.deflate=function(e,t){var i,r,o,l;if(!e||!e.state||t>5||t<0)return e?O(e,h):h;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===p&&4!==t)return O(e,0===e.avail_out?-5:h);if(r.strm=e,i=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,w(r,31),w(r,139),w(r,8),r.gzhead?(w(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),w(r,255&r.gzhead.time),w(r,r.gzhead.time>>8&255),w(r,r.gzhead.time>>16&255),w(r,r.gzhead.time>>24&255),w(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),w(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(w(r,255&r.gzhead.extra.length),w(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=a(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(w(r,0),w(r,0),w(r,0),w(r,0),w(r,0),w(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),w(r,3),r.status=d);else{var u=8+(r.w_bits-8<<4)<<8;u|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(u|=32),u+=31-u%31,r.status=d,b(r,u),0!==r.strstart&&(b(r,e.adler>>>16),b(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),v(e),o=r.pending,r.pending!==r.pending_buf_size));)w(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),v(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,w(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),v(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,w(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=f)}else r.status=f;if(r.status===f&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&v(e),r.pending+2<=r.pending_buf_size&&(w(r,255&e.adler),w(r,e.adler>>8&255),e.adler=0,r.status=d)):r.status=d),0!==r.pending){if(v(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(i)&&4!==t)return O(e,-5);if(r.status===p&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==p){var S=2===r.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var i,n,r,o,a=e.window;;){if(e.lookahead<=c){if(k(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=a[r=e.strstart-1])===a[++r]&&n===a[++r]&&n===a[++r]){o=e.strstart+c;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<o);e.match_length=c-(o-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(i=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(r,t):n[r.level].func(r,t);if(3!==S&&4!==S||(r.status=p),1===S||3===S)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===S&&(1===t?s._tr_align(r):5!==t&&(s._tr_stored_block(r,0,0,!1),3===t&&(m(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),v(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(w(r,255&e.adler),w(r,e.adler>>8&255),w(r,e.adler>>16&255),w(r,e.adler>>24&255),w(r,255&e.total_in),w(r,e.total_in>>8&255),w(r,e.total_in>>16&255),w(r,e.total_in>>24&255)):(b(r,e.adler>>>16),b(r,65535&e.adler)),v(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==d&&t!==p?O(e,h):(e.state=null,t===d?O(e,-3):0):h},t.deflateSetDictionary=function(e,t){var i,n,s,a,l,c,u,f,d=t.length;if(!e||!e.state)return h;if(2===(a=(i=e.state).wrap)||1===a&&42!==i.status||i.lookahead)return h;for(1===a&&(e.adler=o(e.adler,t,d,0)),i.wrap=0,d>=i.w_size&&(0===a&&(m(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new r.Buf8(i.w_size),r.arraySet(f,t,d-i.w_size,i.w_size,0),t=f,d=i.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=d,e.next_in=0,e.input=t,k(i);i.lookahead>=3;){n=i.strstart,s=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--s);i.strstart=n,i.lookahead=2,k(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,i.wrap=a,0},t.deflateInfo="pako deflate (from Nodeca project)"},414(e){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},293(e){"use strict";e.exports=function(e,t){var i,n,r,s,o,a,l,h,c,u,f,d,p,O,g,m,v,y,w,b,S,x,k,Q,$;i=e.state,n=e.next_in,Q=e.input,r=n+(e.avail_in-5),s=e.next_out,$=e.output,o=s-(t-e.avail_out),a=s+(e.avail_out-257),l=i.dmax,h=i.wsize,c=i.whave,u=i.wnext,f=i.window,d=i.hold,p=i.bits,O=i.lencode,g=i.distcode,m=(1<<i.lenbits)-1,v=(1<<i.distbits)-1;e:do{p<15&&(d+=Q[n++]<<p,p+=8,d+=Q[n++]<<p,p+=8),y=O[d&m];t:for(;;){if(d>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))$[s++]=65535&y;else{if(!(16&w)){if(64&w){if(32&w){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}y=O[(65535&y)+(d&(1<<w)-1)];continue t}for(b=65535&y,(w&=15)&&(p<w&&(d+=Q[n++]<<p,p+=8),b+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=Q[n++]<<p,p+=8,d+=Q[n++]<<p,p+=8),y=g[d&v];;){if(d>>>=w=y>>>24,p-=w,16&(w=y>>>16&255)){if(S=65535&y,p<(w&=15)&&(d+=Q[n++]<<p,(p+=8)<w&&(d+=Q[n++]<<p,p+=8)),(S+=d&(1<<w)-1)>l){e.msg="invalid distance too far back",i.mode=30;break e}if(d>>>=w,p-=w,S>(w=s-o)){if((w=S-w)>c&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(x=0,k=f,0===u){if(x+=h-w,w<b){b-=w;do{$[s++]=f[x++]}while(--w);x=s-S,k=$}}else if(u<w){if(x+=h+u-w,(w-=u)<b){b-=w;do{$[s++]=f[x++]}while(--w);if(x=0,u<b){b-=w=u;do{$[s++]=f[x++]}while(--w);x=s-S,k=$}}}else if(x+=u-w,w<b){b-=w;do{$[s++]=f[x++]}while(--w);x=s-S,k=$}for(;b>2;)$[s++]=k[x++],$[s++]=k[x++],$[s++]=k[x++],b-=3;b&&($[s++]=k[x++],b>1&&($[s++]=k[x++]))}else{x=s-S;do{$[s++]=$[x++],$[s++]=$[x++],$[s++]=$[x++],b-=3}while(b>2);b&&($[s++]=$[x++],b>1&&($[s++]=$[x++]))}break}if(64&w){e.msg="invalid distance code",i.mode=30;break e}y=g[(65535&y)+(d&(1<<w)-1)]}}break}}while(n<r&&s<a);n-=b=p>>3,d&=(1<<(p-=b<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=s<a?a-s+257:257-(s-a),i.hold=d,i.bits=p}},447(e,t,i){"use strict";var n=i(805),r=i(269),s=i(823),o=i(293),a=i(998),l=-2,h=12,c=30;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function O(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,p(e))):l}function g(e,t){var i,n;return e?(n=new f,e.state=n,n.window=null,0!==(i=O(e,t))&&(e.state=null),i):l}var m,v,y=!0;function w(e){if(y){var t;for(m=new n.Buf32(512),v=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,v,0,e.work,{bits:5}),y=!1}e.lencode=m,e.lenbits=9,e.distcode=v,e.distbits=5}function b(e,t,i,r){var s,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),r>=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>r&&(s=r),n.arraySet(o.window,t,i-r,s,o.wnext),(r-=s)?(n.arraySet(o.window,t,i-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0}t.inflateReset=p,t.inflateReset2=O,t.inflateResetKeep=d,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var i,f,d,p,O,g,m,v,y,S,x,k,Q,$,P,_,C,A,T,Z,M,R,X,E,j=0,z=new n.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;(i=e.state).mode===h&&(i.mode=13),O=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,v=i.hold,y=i.bits,S=g,x=m,R=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(2&i.wrap&&35615===v){i.check=0,z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0),v=0,y=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",i.mode=c;break}if(8!=(15&v)){e.msg="unknown compression method",i.mode=c;break}if(y-=4,M=8+(15&(v>>>=4)),0===i.wbits)i.wbits=M;else if(M>i.wbits){e.msg="invalid window size",i.mode=c;break}i.dmax=1<<M,e.adler=i.check=1,i.mode=512&v?10:h,v=0,y=0;break;case 2:for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(i.flags=v,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=c;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=c;break}i.head&&(i.head.text=v>>8&1),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0)),v=0,y=0,i.mode=3;case 3:for(;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.head&&(i.head.time=v),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,z[2]=v>>>16&255,z[3]=v>>>24&255,i.check=s(i.check,z,4,0)),v=0,y=0,i.mode=4;case 4:for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.head&&(i.head.xflags=255&v,i.head.os=v>>8),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0)),v=0,y=0,i.mode=5;case 5:if(1024&i.flags){for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.length=v,i.head&&(i.head.extra_len=v),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0)),v=0,y=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((k=i.length)>g&&(k=g),k&&(i.head&&(M=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,f,p,k,M)),512&i.flags&&(i.check=s(i.check,f,k,p)),g-=k,p+=k,i.length-=k),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===g)break e;k=0;do{M=f[p+k++],i.head&&M&&i.length<65536&&(i.head.name+=String.fromCharCode(M))}while(M&&k<g);if(512&i.flags&&(i.check=s(i.check,f,k,p)),g-=k,p+=k,M)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===g)break e;k=0;do{M=f[p+k++],i.head&&M&&i.length<65536&&(i.head.comment+=String.fromCharCode(M))}while(M&&k<g);if(512&i.flags&&(i.check=s(i.check,f,k,p)),g-=k,p+=k,M)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(v!==(65535&i.check)){e.msg="header crc mismatch",i.mode=c;break}v=0,y=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=h;break;case 10:for(;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}e.adler=i.check=u(v),v=0,y=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=O,e.avail_out=m,e.next_in=p,e.avail_in=g,i.hold=v,i.bits=y,2;e.adler=i.check=1,i.mode=h;case h:if(5===t||6===t)break e;case 13:if(i.last){v>>>=7&y,y-=7&y,i.mode=27;break}for(;y<3;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}switch(i.last=1&v,y-=1,3&(v>>>=1)){case 0:i.mode=14;break;case 1:if(w(i),i.mode=20,6===t){v>>>=2,y-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=c}v>>>=2,y-=2;break;case 14:for(v>>>=7&y,y-=7&y;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",i.mode=c;break}if(i.length=65535&v,v=0,y=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(k=i.length){if(k>g&&(k=g),k>m&&(k=m),0===k)break e;n.arraySet(d,f,p,k,O),g-=k,p+=k,m-=k,O+=k,i.length-=k;break}i.mode=h;break;case 17:for(;y<14;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(i.nlen=257+(31&v),v>>>=5,y-=5,i.ndist=1+(31&v),v>>>=5,y-=5,i.ncode=4+(15&v),v>>>=4,y-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=c;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;y<3;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.lens[L[i.have++]]=7&v,v>>>=3,y-=3}for(;i.have<19;)i.lens[L[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,X={bits:i.lenbits},R=a(0,i.lens,0,19,i.lencode,0,i.work,X),i.lenbits=X.bits,R){e.msg="invalid code lengths set",i.mode=c;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;_=(j=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,C=65535&j,!((P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(C<16)v>>>=P,y-=P,i.lens[i.have++]=C;else{if(16===C){for(E=P+2;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(v>>>=P,y-=P,0===i.have){e.msg="invalid bit length repeat",i.mode=c;break}M=i.lens[i.have-1],k=3+(3&v),v>>>=2,y-=2}else if(17===C){for(E=P+3;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}y-=P,M=0,k=3+(7&(v>>>=P)),v>>>=3,y-=3}else{for(E=P+7;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}y-=P,M=0,k=11+(127&(v>>>=P)),v>>>=7,y-=7}if(i.have+k>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=c;break}for(;k--;)i.lens[i.have++]=M}}if(i.mode===c)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=c;break}if(i.lenbits=9,X={bits:i.lenbits},R=a(1,i.lens,0,i.nlen,i.lencode,0,i.work,X),i.lenbits=X.bits,R){e.msg="invalid literal/lengths set",i.mode=c;break}if(i.distbits=6,i.distcode=i.distdyn,X={bits:i.distbits},R=a(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,X),i.distbits=X.bits,R){e.msg="invalid distances set",i.mode=c;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(g>=6&&m>=258){e.next_out=O,e.avail_out=m,e.next_in=p,e.avail_in=g,i.hold=v,i.bits=y,o(e,x),O=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,v=i.hold,y=i.bits,i.mode===h&&(i.back=-1);break}for(i.back=0;_=(j=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,C=65535&j,!((P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(_&&!(240&_)){for(A=P,T=_,Z=C;_=(j=i.lencode[Z+((v&(1<<A+T)-1)>>A)])>>>16&255,C=65535&j,!(A+(P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}v>>>=A,y-=A,i.back+=A}if(v>>>=P,y-=P,i.back+=P,i.length=C,0===_){i.mode=26;break}if(32&_){i.back=-1,i.mode=h;break}if(64&_){e.msg="invalid literal/length code",i.mode=c;break}i.extra=15&_,i.mode=22;case 22:if(i.extra){for(E=i.extra;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.length+=v&(1<<i.extra)-1,v>>>=i.extra,y-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;_=(j=i.distcode[v&(1<<i.distbits)-1])>>>16&255,C=65535&j,!((P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(!(240&_)){for(A=P,T=_,Z=C;_=(j=i.distcode[Z+((v&(1<<A+T)-1)>>A)])>>>16&255,C=65535&j,!(A+(P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}v>>>=A,y-=A,i.back+=A}if(v>>>=P,y-=P,i.back+=P,64&_){e.msg="invalid distance code",i.mode=c;break}i.offset=C,i.extra=15&_,i.mode=24;case 24:if(i.extra){for(E=i.extra;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.offset+=v&(1<<i.extra)-1,v>>>=i.extra,y-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=c;break}i.mode=25;case 25:if(0===m)break e;if(k=x-m,i.offset>k){if((k=i.offset-k)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=c;break}k>i.wnext?(k-=i.wnext,Q=i.wsize-k):Q=i.wnext-k,k>i.length&&(k=i.length),$=i.window}else $=d,Q=O-i.offset,k=i.length;k>m&&(k=m),m-=k,i.length-=k;do{d[O++]=$[Q++]}while(--k);0===i.length&&(i.mode=21);break;case 26:if(0===m)break e;d[O++]=i.length,m--,i.mode=21;break;case 27:if(i.wrap){for(;y<32;){if(0===g)break e;g--,v|=f[p++]<<y,y+=8}if(x-=m,e.total_out+=x,i.total+=x,x&&(e.adler=i.check=i.flags?s(i.check,d,x,O-x):r(i.check,d,x,O-x)),x=m,(i.flags?v:u(v))!==i.check){e.msg="incorrect data check",i.mode=c;break}v=0,y=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(v!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=c;break}v=0,y=0}i.mode=29;case 29:R=1;break e;case c:R=-3;break e;case 31:return-4;default:return l}return e.next_out=O,e.avail_out=m,e.next_in=p,e.avail_in=g,i.hold=v,i.bits=y,(i.wsize||x!==e.avail_out&&i.mode<c&&(i.mode<27||4!==t))&&b(e,e.output,e.next_out,x-e.avail_out)?(i.mode=31,-4):(S-=e.avail_in,x-=e.avail_out,e.total_in+=S,e.total_out+=x,i.total+=x,i.wrap&&x&&(e.adler=i.check=i.flags?s(i.check,d,x,e.next_out-x):r(i.check,d,x,e.next_out-x)),e.data_type=i.bits+(i.last?64:0)+(i.mode===h?128:0)+(20===i.mode||15===i.mode?256:0),(0===S&&0===x||4===t)&&0===R&&(R=-5),R)},t.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var i;return e&&e.state&&2&(i=e.state).wrap?(i.head=t,t.done=!1,0):l},t.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,t,n,0)!==i.check?-3:b(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},t.inflateInfo="pako inflate (from Nodeca project)"},998(e,t,i){"use strict";var n=i(805),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,i,l,h,c,u,f){var d,p,O,g,m,v,y,w,b,S=f.bits,x=0,k=0,Q=0,$=0,P=0,_=0,C=0,A=0,T=0,Z=0,M=null,R=0,X=new n.Buf16(16),E=new n.Buf16(16),j=null,z=0;for(x=0;x<=15;x++)X[x]=0;for(k=0;k<l;k++)X[t[i+k]]++;for(P=S,$=15;$>=1&&0===X[$];$--);if(P>$&&(P=$),0===$)return h[c++]=20971520,h[c++]=20971520,f.bits=1,0;for(Q=1;Q<$&&0===X[Q];Q++);for(P<Q&&(P=Q),A=1,x=1;x<=15;x++)if(A<<=1,(A-=X[x])<0)return-1;if(A>0&&(0===e||1!==$))return-1;for(E[1]=0,x=1;x<15;x++)E[x+1]=E[x]+X[x];for(k=0;k<l;k++)0!==t[i+k]&&(u[E[t[i+k]]++]=k);if(0===e?(M=j=u,v=19):1===e?(M=r,R-=257,j=s,z-=257,v=256):(M=o,j=a,v=-1),Z=0,k=0,x=Q,m=c,_=P,C=0,O=-1,g=(T=1<<P)-1,1===e&&T>852||2===e&&T>592)return 1;for(;;){y=x-C,u[k]<v?(w=0,b=u[k]):u[k]>v?(w=j[z+u[k]],b=M[R+u[k]]):(w=96,b=0),d=1<<x-C,Q=p=1<<_;do{h[m+(Z>>C)+(p-=d)]=y<<24|w<<16|b}while(0!==p);for(d=1<<x-1;Z&d;)d>>=1;if(0!==d?(Z&=d-1,Z+=d):Z=0,k++,0===--X[x]){if(x===$)break;x=t[i+u[k]]}if(x>P&&(Z&g)!==O){for(0===C&&(C=P),m+=Q,A=1<<(_=x-C);_+C<$&&!((A-=X[_+C])<=0);)_++,A<<=1;if(T+=1<<_,1===e&&T>852||2===e&&T>592)return 1;h[O=Z&g]=P<<24|_<<16|m-c}}return 0!==Z&&(h[m+Z]=x-C<<24|64<<16),f.bits=P,0}},674(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},665(e,t,i){"use strict";var n=i(805);function r(e){for(var t=e.length;--t>=0;)e[t]=0}var s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);r(h);var c=new Array(60);r(c);var u=new Array(512);r(u);var f=new Array(256);r(f);var d=new Array(29);r(d);var p,O,g,m=new Array(30);function v(e,t,i,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?u[e]:u[256+(e>>>7)]}function b(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,i){e.bi_valid>16-i?(e.bi_buf|=t<<e.bi_valid&65535,b(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=i-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=i)}function x(e,t,i){S(e,i[2*t],i[2*t+1])}function k(e,t){var i=0;do{i|=1&e,e>>>=1,i<<=1}while(--t>0);return i>>>1}function Q(e,t,i){var n,r,s=new Array(16),o=0;for(n=1;n<=15;n++)s[n]=o=o+i[n-1]<<1;for(r=0;r<=t;r++){var a=e[2*r+1];0!==a&&(e[2*r]=k(s[a]++,a))}}function $(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function P(e){e.bi_valid>8?b(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function _(e,t,i,n){var r=2*t,s=2*i;return e[r]<e[s]||e[r]===e[s]&&n[t]<=n[i]}function C(e,t,i){for(var n=e.heap[i],r=i<<1;r<=e.heap_len&&(r<e.heap_len&&_(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!_(t,n,e.heap[r],e.depth));)e.heap[i]=e.heap[r],i=r,r<<=1;e.heap[i]=n}function A(e,t,i){var n,r,a,l,h=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*h]<<8|e.pending_buf[e.d_buf+2*h+1],r=e.pending_buf[e.l_buf+h],h++,0===n?x(e,r,t):(x(e,(a=f[r])+256+1,t),0!==(l=s[a])&&S(e,r-=d[a],l),x(e,a=w(--n),i),0!==(l=o[a])&&S(e,n-=m[a],l))}while(h<e.last_lit);x(e,256,t)}function T(e,t){var i,n,r,s=t.dyn_tree,o=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=573,i=0;i<l;i++)0!==s[2*i]?(e.heap[++e.heap_len]=h=i,e.depth[i]=0):s[2*i+1]=0;for(;e.heap_len<2;)s[2*(r=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[r]=0,e.opt_len--,a&&(e.static_len-=o[2*r+1]);for(t.max_code=h,i=e.heap_len>>1;i>=1;i--)C(e,s,i);r=l;do{i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],C(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=n,s[2*r]=s[2*i]+s[2*n],e.depth[r]=(e.depth[i]>=e.depth[n]?e.depth[i]:e.depth[n])+1,s[2*i+1]=s[2*n+1]=r,e.heap[1]=r++,C(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,n,r,s,o,a,l=t.dyn_tree,h=t.max_code,c=t.stat_desc.static_tree,u=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,O=0;for(s=0;s<=15;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<573;i++)(s=l[2*l[2*(n=e.heap[i])+1]+1]+1)>p&&(s=p,O++),l[2*n+1]=s,n>h||(e.bl_count[s]++,o=0,n>=d&&(o=f[n-d]),a=l[2*n],e.opt_len+=a*(s+o),u&&(e.static_len+=a*(c[2*n+1]+o)));if(0!==O){do{for(s=p-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[p]--,O-=2}while(O>0);for(s=p;0!==s;s--)for(n=e.bl_count[s];0!==n;)(r=e.heap[--i])>h||(l[2*r+1]!==s&&(e.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(e,t),Q(s,h,e.bl_count)}function Z(e,t,i){var n,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),t[2*(i+1)+1]=65535,n=0;n<=i;n++)r=o,o=t[2*(n+1)+1],++a<l&&r===o||(a<h?e.bl_tree[2*r]+=a:0!==r?(r!==s&&e.bl_tree[2*r]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4))}function M(e,t,i){var n,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),n=0;n<=i;n++)if(r=o,o=t[2*(n+1)+1],!(++a<l&&r===o)){if(a<h)do{x(e,r,e.bl_tree)}while(0!==--a);else 0!==r?(r!==s&&(x(e,r,e.bl_tree),a--),x(e,16,e.bl_tree),S(e,a-3,2)):a<=10?(x(e,17,e.bl_tree),S(e,a-3,3)):(x(e,18,e.bl_tree),S(e,a-11,7));a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4)}}r(m);var R=!1;function X(e,t,i,r){S(e,0+(r?1:0),3),function(e,t,i){P(e),b(e,i),b(e,~i),n.arraySet(e.pending_buf,e.window,t,i,e.pending),e.pending+=i}(e,t,i)}t._tr_init=function(e){R||(function(){var e,t,i,n,r,l=new Array(16);for(i=0,n=0;n<28;n++)for(d[n]=i,e=0;e<1<<s[n];e++)f[i++]=n;for(f[i-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,e=0;e<1<<o[n];e++)u[r++]=n;for(r>>=7;n<30;n++)for(m[n]=r<<7,e=0;e<1<<o[n]-7;e++)u[256+r++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,l[8]++;for(;e<=255;)h[2*e+1]=9,e++,l[9]++;for(;e<=279;)h[2*e+1]=7,e++,l[7]++;for(;e<=287;)h[2*e+1]=8,e++,l[8]++;for(Q(h,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=k(e,5);p=new v(h,s,257,286,15),O=new v(c,o,0,30,15),g=new v(new Array(0),a,0,19,7)}(),R=!0),e.l_desc=new y(e.dyn_ltree,p),e.d_desc=new y(e.dyn_dtree,O),e.bl_desc=new y(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,$(e)},t._tr_stored_block=X,t._tr_flush_block=function(e,t,i,n){var r,s,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),T(e,e.l_desc),T(e,e.d_desc),o=function(e){var t;for(Z(e,e.dyn_ltree,e.l_desc.max_code),Z(e,e.dyn_dtree,e.d_desc.max_code),T(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=r&&(r=s)):r=s=i+5,i+4<=r&&-1!==t?X(e,t,i,n):4===e.strategy||s===r?(S(e,2+(n?1:0),3),A(e,h,c)):(S(e,4+(n?1:0),3),function(e,t,i,n){var r;for(S(e,t-257,5),S(e,i-1,5),S(e,n-4,4),r=0;r<n;r++)S(e,e.bl_tree[2*l[r]+1],3);M(e,e.dyn_ltree,t-1),M(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),A(e,e.dyn_ltree,e.dyn_dtree)),$(e),n&&P(e)},t._tr_tally=function(e,t,i){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(f[i]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){S(e,2,3),x(e,256,h),function(e){16===e.bi_valid?(b(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},442(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},72(e){"use strict";var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var s={},o=[],a=0;a<e.length;a++){var l=e[a],h=n.base?l[0]+n.base:l[0],c=s[h]||0,u="".concat(h," ").concat(c);s[h]=c+1;var f=i(u),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var p=r(d,n);n.byIndex=a,t.splice(a,0,{identifier:u,updater:p,references:1})}o.push(u)}return o}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var s=n(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<s.length;o++){var a=i(s[o]);t[a].references--}for(var l=n(e,r),h=0;h<s.length;h++){var c=i(s[h]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}s=l}}},659(e){"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56(e,t,i){"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var s=i.sourceMap;s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},587(e){e.exports=function e(t,i){if(t&&i)return e(t)(i);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),i=0;i<e.length;i++)e[i]=arguments[i];var n=t.apply(this,e),r=e[e.length-1];return"function"==typeof n&&n!==r&&Object.keys(r).forEach(function(e){n[e]=r[e]}),n}}},317(e){"use strict";const t=e=>(...t)=>(...i)=>e(...t,...i);e.exports=(e,...i)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),i.length?t(e)(...i):t(e))},955(e,t,i){var n;!function(t){"use strict";function r(){var e=new s;return function(t,i){var r,s,o,a,l,h="arrayBuffer"===(a=t,l=new RegExp("\\s([a-zA-Z]+)"),{}.toString.call(a).match(l)[1].toLowerCase());if(!i)throw Error("callback could not be empty!");r=h?t:function(t){var i,n=e.unescape(encodeURIComponent(t)),r=n.length,s=new Uint8Array(r);for(i=0;i<r;i++)s[i]=n.charCodeAt(i);return s}(t),(s=new n.Deflate({gzip:!0})).push(r,!0),s.error||(o=s.result.buffer),i(s.error,o)}}function s(){var e="function"==typeof unescape?unescape:function(e){return e.replace(/%([EF][0-9A-F])%([89AB][0-9A-F])%([89AB][0-9A-F])/gi,function(e,t,i,n){var r,s=parseInt(t,16)-224,o=parseInt(i,16)-128;return 0===s&&o<32?e:(r=(s<<12)+(o<<6)+(parseInt(n,16)-128))>65535?e:String.fromCharCode(r)}).replace(/%([CD][0-9A-F])%([89AB][0-9A-F])/gi,function(e,t,i){var n,r;return(n=parseInt(t,16)-192)<2?e:(r=parseInt(i,16)-128,String.fromCharCode((n<<6)+r))}).replace(/%([0-7][0-9A-F])/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})};this.unescape=e}e.exports?(e.exports=new r,n=i(668)):t.zipio=new r}(this)},348(e,t,i){"use strict";e.exports=i.p+"2b22a33a0a80bb926bbc.png"},181(e,t,i){"use strict";e.exports=i.p+"8e9019bd86255ac9a618.png"}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.m=e,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),i.b="undefined"!=typeof document&&document.baseURI||self.location.href,i.nc=void 0;var n={};(()=>{"use strict";i.d(n,{default:()=>tm});var e=i(72),t=i.n(e),r=i(825),s=i.n(r),o=i(659),a=i.n(o),l=i(56),h=i.n(l),c=i(540),u=i.n(c),f=i(113),d=i.n(f),p=i(645),O={};O.styleTagTransform=d(),O.setAttributes=h(),O.insert=a().bind(null,"head"),O.domAPI=s(),O.insertStyleElement=u(),t()(p.A,O),p.A&&p.A.locals&&p.A.locals;let g=[],m=[];function v(e){if(e<768)return!1;for(let t=0,i=g.length;;){let n=t+i>>1;if(e<g[n])i=n;else{if(!(e>=m[n]))return!0;t=n+1}if(t==i)return!1}}function y(e){return e>=127462&&e<=127487}function w(e,t,i=!0,n=!0){return(i?b:S)(e,t,n)}function b(e,t,i){if(t==e.length)return t;t&&k(e.charCodeAt(t))&&Q(e.charCodeAt(t-1))&&t--;let n=x(e,t);for(t+=$(n);t<e.length;){let r=x(e,t);if(8205==n||8205==r||i&&v(r))t+=$(r),n=r;else{if(!y(r))break;{let i=0,n=t-2;for(;n>=0&&y(x(e,n));)i++,n-=2;if(i%2==0)break;t+=2}}}return t}function S(e,t,i){for(;t>0;){let n=b(e,t-2,i);if(n<t)return n;t--}return 0}function x(e,t){let i=e.charCodeAt(t);if(!Q(i)||t+1==e.length)return i;let n=e.charCodeAt(t+1);return k(n)?n-56320+(i-55296<<10)+65536:i}function k(e){return e>=56320&&e<57344}function Q(e){return e>=55296&&e<56320}function $(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,i=0;t<e.length;t++)(t%2?m:g).push(i+=e[t])})();class P{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=E(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),C.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=E(this,e,t);let i=[];return this.decompose(e,t,i,0),C.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Z(this),r=new Z(e);for(let e=t,s=t;;){if(n.next(e),r.next(e),e=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(s+=n.value.length,n.done||s>=i)return!0}}iter(e=1){return new Z(this,e)}iterRange(e,t=this.length){return new M(this,e,t)}iterLines(e,t){let i;if(null==e)i=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new R(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new _(e):C.from(_.split(e,[])):P.empty}}class _ extends P{constructor(e,t=function(e){let t=-1;for(let i of e)t+=i.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let s=this.text[r],o=n+s.length;if((t?i:o)>=e)return new X(n,o,i,s);n=o+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new _(T(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=i.pop(),t=A(r.text,e.text.slice(),0,r.length);if(t.length<=32)i.push(new _(t,e.length+r.length));else{let e=t.length>>1;i.push(new _(t.slice(0,e)),new _(t.slice(e)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof _))return super.replace(e,t,i);[e,t]=E(this,e,t);let n=A(this.text,A(i.text,T(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new _(n,r):C.from(_.split(n,[]),r)}sliceString(e,t=this.length,i="\n"){[e,t]=E(this,e,t);let n="";for(let r=0,s=0;r<=t&&s<this.text.length;s++){let o=this.text[s],a=r+o.length;r>e&&s&&(n+=i),e<a&&t>r&&(n+=o.slice(Math.max(0,e-r),t-r)),r=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,32==i.length&&(t.push(new _(i,n)),i=[],n=-1);return n>-1&&t.push(new _(i,n)),t}}class C extends P{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,i,n){for(let r=0;;r++){let s=this.children[r],o=n+s.length,a=i+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,i,n);n=o+1,i=a+1}}decompose(e,t,i,n){for(let r=0,s=0;s<=t&&r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e<=a&&t>=s){let r=n&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!r?i.push(o):o.decompose(e-s,t-s,i,r)}s=a+1}}replace(e,t,i){if([e,t]=E(this,e,t),i.lines<this.lines)for(let n=0,r=0;n<this.children.length;n++){let s=this.children[n],o=r+s.length;if(e>=r&&t<=o){let a=s.replace(e-r,t-r,i),l=this.lines-s.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let r=this.children.slice();return r[n]=a,new C(r,this.length-(t-e)+i.length)}return super.replace(r,o,a)}r=o+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i="\n"){[e,t]=E(this,e,t);let n="";for(let r=0,s=0;r<this.children.length&&s<=t;r++){let o=this.children[r],a=s+o.length;s>e&&r&&(n+=i),e<a&&t>s&&(n+=o.sliceString(e-s,t-s,i)),s=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof C))return 0;let i=0,[n,r,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==s||r==o)return i;let a=this.children[n],l=e.children[r];if(a!=l)return i+a.scanIdentical(l,t);i+=a.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let i=0;for(let t of e)i+=t.lines;if(i<32){let i=[];for(let t of e)t.flatten(i);return new _(i,t)}let n=Math.max(32,i>>5),r=n<<1,s=n>>1,o=[],a=0,l=-1,h=[];function c(e){let t;if(e.lines>r&&e instanceof C)for(let t of e.children)c(t);else e.lines>s&&(a>s||!a)?(u(),o.push(e)):e instanceof _&&a&&(t=h[h.length-1])instanceof _&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,h[h.length-1]=new _(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>n&&u(),a+=e.lines,l+=e.length+1,h.push(e))}function u(){0!=a&&(o.push(1==h.length?h[0]:C.from(h,l)),l=-1,a=h.length=0)}for(let t of e)c(t);return u(),1==o.length?o[0]:new C(o,t)}}function A(e,t,i=0,n=1e9){for(let r=0,s=0,o=!0;s<e.length&&r<=n;s++){let a=e[s],l=r+a.length;l>=i&&(l>n&&(a=a.slice(0,n-r)),r<i&&(a=a.slice(i-r)),o?(t[t.length-1]+=a,o=!1):t.push(a)),r=l+1}return t}function T(e,t,i){return A(e,[""],t,i)}P.empty=new _([""],0);class Z{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof _?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],s=r>>1,o=n instanceof _?n.text.length:n.children.length;if(s==(t>0?o:0)){if(0==i)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[i]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof _){let r=n.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=n.children[s+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof _?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class M{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Z(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class R{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(P.prototype[Symbol.iterator]=function(){return this.iter()},Z.prototype[Symbol.iterator]=M.prototype[Symbol.iterator]=R.prototype[Symbol.iterator]=function(){return this});class X{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}function E(e,t,i){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,i))]}function j(e,t,i=!0,n=!0){return w(e,t,i,n)}function z(e,t){let i=e.charCodeAt(t);if(!((n=i)>=55296&&n<56320&&t+1!=e.length))return i;var n;let r=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(r)?r-56320+(i-55296<<10)+65536:i}function L(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Y(e){return e<65536?1:2}const V=/\r\n?|\n/;var B=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(B||(B={}));class W{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,n=0;t<this.sections.length;){let r=this.sections[t++],s=this.sections[t++];s<0?(e(i,n,r),n+=r):n+=s,i+=r}}iterChangedRanges(e,t=!1){q(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];n<0?e.push(i,n):e.push(n,i)}return new W(e)}composeDesc(e){return this.empty?e:e.empty?this:G(this,e)}mapDesc(e,t=!1){return e.empty?this:U(this,e,t)}mapPos(e,t=-1,i=B.Simple){let n=0,r=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],a=this.sections[s++],l=n+o;if(a<0){if(l>e)return r+(e-n);r+=o}else{if(i!=B.Simple&&l>=e&&(i==B.TrackDel&&n<e&&l>e||i==B.TrackBefore&&n<e||i==B.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!o)return e==n||t<0?r:r+a;r+=a}n=l}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i<this.sections.length&&n<=t;){let r=n+this.sections[i++];if(this.sections[i++]>=0&&n<=t&&r>=e)return!(n<e&&r>t)||"cover";n=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new W(e)}static create(e){return new W(e)}}class I extends W{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return q(this,(t,i,n,r,s)=>e=e.replace(n,n+(i-t),s),!1),e}mapDesc(e,t=!1){return U(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n<t.length;n+=2){let s=t[n],o=t[n+1];if(o>=0){t[n]=o,t[n+1]=s;let a=n>>1;for(;i.length<a;)i.push(P.empty);i.push(s?e.slice(r,r+s):P.empty)}r+=s}return new I(t,i)}compose(e){return this.empty?e:e.empty?this:G(this,e,!0)}map(e,t=!1){return e.empty?this:U(this,e,t,!0)}iterChanges(e,t=!1){q(this,e,t)}get desc(){return W.create(this.sections)}filter(e){let t=[],i=[],n=[],r=new F(this);e:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,a-o);D(n,e,-1);let s=-1==r.ins?-1:0==r.off?r.ins:0;D(t,e,s),s>0&&N(i,t,r.text),r.forward(e),o+=e}let l=e[s++];for(;o<l;){if(r.done)break e;let e=Math.min(r.len,l-o);D(t,e,-1),D(n,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),o+=e}}return{changes:new I(t,i),filtered:W.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],n=this.sections[t+1];n<0?e.push(i):0==n?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],s=0,o=null;function a(e=!1){if(!e&&!n.length)return;s<t&&D(n,t-s,-1);let i=new I(n,r);o=o?o.compose(i.map(o)):i,n=[],r=[],s=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof I){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),o=o?o.compose(l.map(o)):l}else{let{from:e,to:o=e,insert:h}=l;if(e>o||e<0||o>t)throw new RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let c=h?"string"==typeof h?P.of(h.split(i||V)):h:P.empty,u=c.length;if(e==o&&0==u)return;e<s&&a(),e>s&&D(n,e-s,-1),D(n,o-e,u),N(r,n,c),s=o}}(e),a(!o),o}static empty(e){return new I(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;n<e.length;n++){let r=e[n];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some((e,t)=>t&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;i.length<n;)i.push(P.empty);i[n]=P.of(r.slice(1)),t.push(r[0],i[n].length)}}}return new I(t,i)}static createSet(e,t){return new I(e,t)}}function D(e,t,i,n=!1){if(0==t&&i<=0)return;let r=e.length-2;r>=0&&i<=0&&i==e[r+1]?e[r]+=t:r>=0&&0==t&&0==e[r]?e[r+1]+=i:n?(e[r]+=t,e[r+1]+=i):e.push(t,i)}function N(e,t,i){if(0==i.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(i);else{for(;e.length<n;)e.push(P.empty);e.push(i)}}function q(e,t,i){let n=e.inserted;for(let r=0,s=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)r+=a,s+=a;else{let h=r,c=s,u=P.empty;for(;h+=a,c+=l,l&&n&&(u=u.append(n[o-2>>1])),!(i||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(r,h,s,c,u),r=h,s=c}}}function U(e,t,i,n=!1){let r=[],s=n?[]:null,o=new F(e),a=new F(t);for(let e=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);D(r,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len<o.len||a.len==o.len&&!i))){let t=a.len;for(D(r,a.ins,-1);t;){let i=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=i&&(D(r,0,o.ins),s&&N(s,r,o.text),e=o.i),o.forward(i),t-=i}a.next()}else{if(!(o.ins>=0)){if(o.done&&a.done)return s?I.createSet(r,s):W.create(r);throw new Error("Mismatched change set lengths")}{let t=0,i=o.len;for(;i;)if(-1==a.ins){let e=Math.min(i,a.len);t+=e,i-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<i))break;i-=a.len,a.next()}D(r,t,e<o.i?o.ins:0),s&&e<o.i&&N(s,r,o.text),e=o.i,o.forward(o.len-i)}}}}function G(e,t,i=!1){let n=[],r=i?[]:null,s=new F(e),o=new F(t);for(let e=!1;;){if(s.done&&o.done)return r?I.createSet(n,r):W.create(n);if(0==s.ins)D(n,s.len,0,e),s.next();else if(0!=o.len||o.done){if(s.done||o.done)throw new Error("Mismatched change set lengths");{let t=Math.min(s.len2,o.len),i=n.length;if(-1==s.ins){let i=-1==o.ins?-1:o.off?0:o.ins;D(n,t,i,e),r&&i&&N(r,n,o.text)}else-1==o.ins?(D(n,s.off?0:s.len,t,e),r&&N(r,n,s.textBit(t))):(D(n,s.off?0:s.len,o.off?0:o.ins,e),r&&!o.off&&N(r,n,o.text));e=(s.ins>t||o.ins>=0&&o.len>t)&&(e||n.length>i),s.forward2(t),o.forward(t)}}else D(n,0,o.ins,e),r&&N(r,n,o.text),o.next()}}class F{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?P.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?P.empty:t[i].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class H{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new H(i,n,this.flags)}extend(e,t=e,i=0){if(e<=this.anchor&&t>=this.anchor)return K.range(e,t,void 0,void 0,i);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return K.range(this.anchor,n,void 0,void 0,i)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||this.goalColumn!=e.goalColumn||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return K.range(e.anchor,e.head)}static create(e,t,i){return new H(e,t,i)}}class K{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:K.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new K([this.main],0)}addRange(e,t=!0){return K.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,K.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new K(e.ranges.map(e=>H.fromJSON(e)),e.main)}static single(e,t=e){return new K([K.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let r=e[n];if(r.empty?r.from<=i:r.from<i)return K.normalized(e.slice(),t);i=r.to}return new K(e,t)}static cursor(e,t=0,i,n){return H.create(e,e,(0==t?0:t<0?8:16)|(null==i?7:Math.min(6,i))|(null!=n?n:16777215)<<6)}static range(e,t,i,n,r){let s=(null!=i?i:16777215)<<6|(null==n?7:Math.min(6,n));return r||e==t||(r=t<e?1:-1),t<e?H.create(t,e,48|s):H.create(e,t,(r?r<0?8:16:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(i);for(let i=1;i<e.length;i++){let n=e[i],r=e[i-1];if(n.empty?n.from<=r.to:n.from<r.to){let s=r.from,o=Math.max(n.to,r.to);i<=t&&t--,e.splice(--i,2,n.anchor>n.head?K.range(o,s):K.range(s,o))}}return new K(e,t)}}function J(e,t){for(let i of e.ranges)if(i.to>t)throw new RangeError("Selection points outside of document")}let ee=0;class te{constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=ee++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new te(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:ie),!!e.static,e.enables)}of(e){return new ne([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ne(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ne(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],i=>t(i.field(e)))}}function ie(e,t){return e==t||e.length==t.length&&e.every((e,i)=>e===t[i])}class ne{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=ee++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,s=e[r]>>1,o=2==this.type,a=!1,l=!1,h=[];for(let i of this.dependencies)"doc"==i?a=!0:"selection"==i?l=!0:1&(null!==(t=e[i.id])&&void 0!==t?t:1)||h.push(e[i.id]);return{create:e=>(e.values[s]=i(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||se(e,h)){let t=i(e);if(o?!re(t,e.values[s],n):!n(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[r];if(null!=l){let r=ge(t,l);if(this.dependencies.every(i=>i instanceof te?t.facet(i)===e.facet(i):!(i instanceof le)||t.field(i,!1)==e.field(i,!1))||(o?re(a=i(e),r,n):n(a=i(e),r)))return e.values[s]=r,0}else a=i(e);return e.values[s]=a,1}}}}function re(e,t,i){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1;return!0}function se(e,t){let i=!1;for(let n of t)1&Oe(e,n)&&(i=!0);return i}function oe(e,t,i){let n=i.map(t=>e[t.id]),r=i.map(e=>e.type),s=n.filter(e=>!(1&e)),o=e[t.id]>>1;function a(e){let i=[];for(let t=0;t<n.length;t++){let s=ge(e,n[t]);if(2==r[t])for(let e of s)i.push(e);else i.push(s)}return t.combine(i)}return{create(e){for(let t of n)Oe(e,t);return e.values[o]=a(e),1},update(e,i){if(!se(e,s))return 0;let n=a(e);return t.compare(n,e.values[o])?0:(e.values[o]=n,1)},reconfigure(e,r){let s=se(e,n),l=r.config.facets[t.id],h=r.facet(t);if(l&&!s&&ie(i,l))return e.values[o]=h,0;let c=a(e);return t.compare(c,h)?(e.values[o]=h,0):(e.values[o]=c,1)}}}const ae=te.define({static:!0});class le{constructor(e,t,i,n,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=n,this.spec=r,this.provides=void 0}static define(e){let t=new le(ee++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ae).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,i)=>{let n=e.values[t],r=this.updateF(n,i);return this.compareF(n,r)?0:(e.values[t]=r,1)},reconfigure:(e,i)=>{let n,r=e.facet(ae),s=i.facet(ae);return(n=r.find(e=>e.field==this))&&n!=s.find(e=>e.field==this)?(e.values[t]=n.create(e),1):null!=i.config.address[this.id]?(e.values[t]=i.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,ae.of({field:this,create:e})]}get extension(){return this}}function he(e){return t=>new ue(t,e)}const ce={highest:he(0),high:he(1),default:he(2),low:he(3),lowest:he(4)};class ue{constructor(e,t){this.inner=e,this.prec=t}}class fe{of(e){return new de(this,e)}reconfigure(e){return fe.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class de{constructor(e,t){this.compartment=e,this.inner=t}}class pe{constructor(e,t,i,n,r,s){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let n=[],r=Object.create(null),s=new Map;for(let i of function(e,t,i){let n=[[],[],[],[],[]],r=new Map;return function e(s,o){let a=r.get(s);if(null!=a){if(a<=o)return;let e=n[a].indexOf(s);e>-1&&n[a].splice(e,1),s instanceof de&&i.delete(s.compartment)}if(r.set(s,o),Array.isArray(s))for(let t of s)e(t,o);else if(s instanceof de){if(i.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(s.compartment)||s.inner;i.set(s.compartment,n),e(n,o)}else if(s instanceof ue)e(s.inner,s.prec);else if(s instanceof le)n[o].push(s),s.provides&&e(s.provides,o);else if(s instanceof ne)n[o].push(s),s.facet.extensions&&e(s.facet.extensions,2);else{let t=s.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,o)}}(e,2),n.reduce((e,t)=>e.concat(t))}(e,t,s))i instanceof le?n.push(i):(r[i.facet.id]||(r[i.facet.id]=[])).push(i);let o=Object.create(null),a=[],l=[];for(let e of n)o[e.id]=l.length<<1,l.push(t=>e.slot(t));let h=null==i?void 0:i.config.facets;for(let e in r){let t=r[e],n=t[0].facet,s=h&&h[e]||[];if(t.every(e=>0==e.type))if(o[n.id]=a.length<<1|1,ie(s,t))a.push(i.facet(n));else{let e=n.combine(t.map(e=>e.value));a.push(i&&n.compare(e,i.facet(n))?i.facet(n):e)}else{for(let e of t)0==e.type?(o[e.id]=a.length<<1|1,a.push(e.value)):(o[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));o[n.id]=l.length<<1,l.push(e=>oe(e,n,t))}}let c=l.map(e=>e(o));return new pe(e,s,c,o,a,r)}}function Oe(e,t){if(1&t)return 2;let i=t>>1,n=e.status[i];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[i]=4;let r=e.computeSlot(e,e.config.dynamicSlots[i]);return e.status[i]=2|r}function ge(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const me=te.define(),ve=te.define({combine:e=>e.some(e=>e),static:!0}),ye=te.define({combine:e=>e.length?e[0]:void 0,static:!0}),we=te.define(),be=te.define(),Se=te.define(),xe=te.define({combine:e=>!!e.length&&e[0]});class ke{constructor(e,t){this.type=e,this.value=t}static define(){return new Qe}}class Qe{of(e){return new ke(this,e)}}class $e{constructor(e){this.map=e}of(e){return new Pe(this,e)}}class Pe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Pe(this.type,t)}is(e){return this.type==e}static define(e={}){return new $e(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let e=n.map(t);e&&i.push(e)}return i}}Pe.reconfigure=Pe.define(),Pe.appendConfig=Pe.define();class _e{constructor(e,t,i,n,r,s){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,i&&J(i,t.newLength),r.some(e=>e.type==_e.time)||(this.annotations=r.concat(_e.time.of(Date.now())))}static create(e,t,i,n,r,s){return new _e(e,t,i,n,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(_e.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Ce(e,t){let i=[];for(let n=0,r=0;;){let s,o;if(n<e.length&&(r==t.length||t[r]>=e[n]))s=e[n++],o=e[n++];else{if(!(r<t.length))return i;s=t[r++],o=t[r++]}!i.length||i[i.length-1]<s?i.push(s,o):i[i.length-1]<o&&(i[i.length-1]=o)}}function Ae(e,t,i){var n;let r,s,o;return i?(r=t.changes,s=I.empty(t.changes.length),o=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(r)),{changes:o,selection:t.selection?t.selection.map(s):null===(n=e.selection)||void 0===n?void 0:n.map(r),effects:Pe.mapEffects(e.effects,r).concat(Pe.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Te(e,t,i){let n=t.selection,r=Re(t.annotations);return t.userEvent&&(r=r.concat(_e.userEvent.of(t.userEvent))),{changes:t.changes instanceof I?t.changes:I.of(t.changes||[],i,e.facet(ye)),selection:n&&(n instanceof K?n:K.single(n.anchor,n.head)),effects:Re(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function Ze(e,t,i){let n=Te(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(i=!1);for(let r=1;r<t.length;r++){!1===t[r].filter&&(i=!1);let s=!!t[r].sequential;n=Ae(n,Te(e,t[r],s?n.changes.newLength:e.doc.length),s)}let r=_e.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,i=t.facet(Se),n=e;for(let r=i.length-1;r>=0;r--){let s=i[r](e);s&&Object.keys(s).length&&(n=Ae(n,Te(t,s,e.changes.newLength),!0))}return n==e?e:_e.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(i?function(e){let t=e.startState,i=!0;for(let n of t.facet(we)){let t=n(e);if(!1===t){i=!1;break}Array.isArray(t)&&(i=!0===i?t:Ce(i,t))}if(!0!==i){let n,r;if(!1===i)r=e.changes.invertedDesc,n=I.empty(t.doc.length);else{let t=e.changes.filter(i);n=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=_e.create(t,n,e.selection&&e.selection.map(r),Pe.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let n=t.facet(be);for(let i=n.length-1;i>=0;i--){let r=n[i](e);e=r instanceof _e?r:Array.isArray(r)&&1==r.length&&r[0]instanceof _e?r[0]:Ze(t,Re(r),!1)}return e}(r):r)}_e.time=ke.define(),_e.userEvent=ke.define(),_e.addToHistory=ke.define(),_e.remote=ke.define();const Me=[];function Re(e){return null==e?Me:Array.isArray(e)?e:[e]}var Xe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Xe||(Xe={}));const Ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let je;try{je=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(eO){}class ze{constructor(e,t,i,n,r,s){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Oe(this,e<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(null!=i)return Oe(this,i),ge(this,i);if(t)throw new RangeError("Field is not present in this state")}update(...e){return Ze(this,e,!0)}applyTransaction(e){let t,i=this.config,{base:n,compartments:r}=i;for(let t of e.effects)t.is(fe.reconfigure)?(i&&(r=new Map,i.compartments.forEach((e,t)=>r.set(t,e)),i=null),r.set(t.value.compartment,t.value.extension)):t.is(Pe.reconfigure)?(i=null,n=t.value):t.is(Pe.appendConfig)&&(i=null,n=Re(n).concat(t.value));i?t=e.startState.values.slice():(i=pe.resolve(n,r,this),t=new ze(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let s=e.startState.facet(ve)?e.newSelection:e.newSelection.asSingle();new ze(i,e.newDoc,s,t,(t,i)=>i.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:K.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],s=Re(i.effects);for(let i=1;i<t.ranges.length;i++){let o=e(t.ranges[i]),a=this.changes(o.changes),l=a.map(n);for(let e=0;e<i;e++)r[e]=r[e].map(l);let h=n.mapDesc(a,!0);r.push(o.range.map(h)),n=n.compose(l),s=Pe.mapEffects(s,l).concat(Pe.mapEffects(Re(o.effects),h))}return{changes:n,selection:K.create(r,t.mainIndex),effects:s}}changes(e=[]){return e instanceof I?e:I.of(e,this.doc.length,this.facet(ze.lineSeparator))}toText(e){return P.of(e.split(this.facet(ze.lineSeparator)||V))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Oe(this,t),ge(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof le&&null!=this.config.address[n.id]&&(t[i]=n.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i)for(let t in i)if(Object.prototype.hasOwnProperty.call(e,t)){let r=i[t],s=e[t];n.push(r.init(e=>r.spec.fromJSON(s,e)))}return ze.create({doc:e.doc,selection:K.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=pe.resolve(e.extensions||[],new Map),i=e.doc instanceof P?e.doc:P.of((e.doc||"").split(t.staticFacet(ze.lineSeparator)||V)),n=e.selection?e.selection instanceof K?e.selection:K.single(e.selection.anchor,e.selection.head):K.single(0);return J(n,i.length),t.staticFacet(ve)||(n=n.asSingle()),new ze(t,i,n,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(ze.tabSize)}get lineBreak(){return this.facet(ze.lineSeparator)||"\n"}get readOnly(){return this.facet(xe)}phrase(e,...t){for(let t of this.facet(ze.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,i)=>{if("$"==i)return"$";let n=+(i||1);return!n||n>t.length?e:t[n-1]})),e}languageDataAt(e,t,i=-1){let n=[];for(let r of this.facet(me))for(let s of r(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&n.push(s[e]);return n}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return i=t.length?t[0]:"",e=>{if(!/\S/.test(e))return Xe.Space;if(function(e){if(je)return je.test(e);for(let t=0;t<e.length;t++){let i=e[t];if(/\w/.test(i)||i>"€"&&(i.toUpperCase()!=i.toLowerCase()||Ee.test(i)))return!0}return!1}(e))return Xe.Word;for(let t=0;t<i.length;t++)if(e.indexOf(i[t])>-1)return Xe.Word;return Xe.Other};var i}wordAt(e){let{text:t,from:i,length:n}=this.doc.lineAt(e),r=this.charCategorizer(e),s=e-i,o=e-i;for(;s>0;){let e=j(t,s,!1);if(r(t.slice(e,s))!=Xe.Word)break;s=e}for(;o<n;){let e=j(t,o);if(r(t.slice(o,e))!=Xe.Word)break;o=e}return s==o?null:K.range(s+i,o+i)}}function Le(e,t,i={}){let n={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],s=n[e];if(void 0===s)n[e]=r;else if(s===r||void 0===r);else{if(!Object.hasOwnProperty.call(i,e))throw new Error("Config merge conflict for field "+e);n[e]=i[e](s,r)}}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}ze.allowMultipleSelections=ve,ze.tabSize=te.define({combine:e=>e.length?e[0]:4}),ze.lineSeparator=ye,ze.readOnly=xe,ze.phrases=te.define({compare(e,t){let i=Object.keys(e),n=Object.keys(t);return i.length==n.length&&i.every(i=>e[i]==t[i])}}),ze.languageData=me,ze.changeFilter=we,ze.transactionFilter=be,ze.transactionExtender=Se,fe.reconfigure=Pe.define();class Ye{eq(e){return this==e}range(e,t=e){return Be.create(e,t,this)}}function Ve(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}Ye.prototype.startSide=Ye.prototype.endSide=0,Ye.prototype.point=!1,Ye.prototype.mapMode=B.TrackDel;class Be{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Be(e,t,i)}}function We(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ie{constructor(e,t,i,n){this.from=e,this.to=t,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,n=0){let r=i?this.to:this.from;for(let s=n,o=r.length;;){if(s==o)return s;let n=s+o>>1,a=r[n]-e||(i?this.value[n].endSide:this.value[n].startSide)-t;if(n==s)return a>=0?s:o;a>=0?o=n:s=n+1}}between(e,t,i,n){for(let r=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,r);r<s;r++)if(!1===n(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let i=[],n=[],r=[],s=-1,o=-1;for(let a=0;a<this.value.length;a++){let l,h,c=this.value[a],u=this.from[a]+e,f=this.to[a]+e;if(u==f){let e=t.mapPos(u,c.startSide,c.mapMode);if(null==e)continue;if(l=h=e,c.startSide!=c.endSide&&(h=t.mapPos(u,c.endSide),h<l))continue}else if(l=t.mapPos(u,c.startSide),h=t.mapPos(f,c.endSide),l>h||l==h&&c.startSide>0&&c.endSide<=0)continue;(h-l||c.endSide-c.startSide)<0||(s<0&&(s=l),c.point&&(o=Math.max(o,h-l)),i.push(c),n.push(l-s),r.push(h-s))}return{mapped:i.length?new Ie(n,r,i,o):null,pos:s}}}class De{constructor(e,t,i,n){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=n}static create(e,t,i,n){return new De(e,t,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(i&&(t=t.slice().sort(We)),this.isEmpty)return t.length?De.of(t):this;let o=new Ue(this,null,-1).goto(0),a=0,l=[],h=new Ne;for(;o.value||a<t.length;)if(a<t.length&&(o.from-t[a].from||o.startSide-t[a].value.startSide)>=0){let e=t[a++];h.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(o.chunkIndex)<t[a].from)&&(!s||n>this.chunkEnd(o.chunkIndex)||r<this.chunkPos[o.chunkIndex])&&h.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||n>o.to||r<o.from||s(o.from,o.to,o.value))&&(h.addInner(o.from,o.to,o.value)||l.push(Be.create(o.from,o.to,o.value))),o.next());return h.finishInner(this.nextLayer.isEmpty&&!l.length?De.empty:this.nextLayer.update({add:l,filter:s,filterFrom:n,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],n=-1;for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r],a=e.touchesRange(s,s+o.length);if(!1===a)n=Math.max(n,o.maxPoint),t.push(o),i.push(e.mapPos(s));else if(!0===a){let{mapped:r,pos:a}=o.map(s,e);r&&(n=Math.max(n,r.maxPoint),t.push(r),i.push(a))}}let r=this.nextLayer.map(e);return 0==t.length?r:new De(i,t,r||De.empty,n)}between(e,t,i){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let r=this.chunkPos[n],s=this.chunk[n];if(t>=r&&e<=r+s.length&&!1===s.between(r,e-r,t-r,i))return}this.nextLayer.between(e,t,i)}}iter(e=0){return Ge.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ge.from(e).goto(t)}static compare(e,t,i,n,r=-1){let s=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),a=qe(s,o,i),l=new He(s,a,r),h=new He(o,a,r);i.iterGaps((e,t,i)=>Ke(l,e,h,t,i,n)),i.empty&&0==i.length&&Ke(l,0,h,0,0,n)}static eq(e,t,i=0,n){null==n&&(n=999999999);let r=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),s=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(r.length!=s.length)return!1;if(!r.length)return!0;let o=qe(r,s),a=new He(r,o,0).goto(i),l=new He(s,o,0).goto(i);for(;;){if(a.to!=l.to||!Je(a.active,l.active)||a.point&&(!l.point||!Ve(a.point,l.point)))return!1;if(a.to>n)return!0;a.next(),l.next()}}static spans(e,t,i,n,r=-1){let s=new He(e,null,r).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,i);if(s.point){let i=s.activeForPoint(s.to),r=s.pointFrom<t?i.length+1:s.point.startSide<0?i.length:Math.min(i.length,a);n.point(o,e,s.point,i,r,s.pointRank),a=Math.min(s.openEnd(e),i.length)}else e>o&&(n.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>i)return a+(s.point&&s.to>i?1:0);o=s.to,s.next()}}static of(e,t=!1){let i=new Ne;for(let n of e instanceof Be?[e]:t?function(e){if(e.length>1)for(let t=e[0],i=1;i<e.length;i++){let n=e[i];if(We(t,n)>0)return e.slice().sort(We);t=n}return e}(e):e)i.add(n.from,n.to,n.value);return i.finish()}static join(e){if(!e.length)return De.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let n=e[i];n!=De.empty;n=n.nextLayer)t=new De(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}De.empty=new De([],[],null,-1),De.empty.nextLayer=De.empty;class Ne{finishChunk(e){this.chunks.push(new Ie(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new Ne)).add(e,t,i)}addInner(e,t,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(De.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=De.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function qe(e,t,i){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=n.get(e.chunk[t]);null==s||(i?i.mapPos(s):s)!=e.chunkPos[t]||(null==i?void 0:i.touchesRange(s,s+e.chunk[t].length))||r.add(e.chunk[t])}return r}class Ue{constructor(e,t,i,n=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ge{constructor(e){this.heap=e}static from(e,t=null,i=-1){let n=[];for(let r=0;r<e.length;r++)for(let s=e[r];!s.isEmpty;s=s.nextLayer)s.maxPoint>=i&&n.push(new Ue(s,t,i,r));return 1==n.length?n[0]:new Ge(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Fe(this.heap,e);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Fe(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Fe(this.heap,0)}}}function Fe(e,t){for(let i=e[t];;){let n=1+(t<<1);if(n>=e.length)break;let r=e[n];if(n+1<e.length&&r.compare(e[n+1])>=0&&(r=e[n+1],n++),i.compare(r)<0)break;e[n]=i,e[t]=r,t=n}}class He{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ge.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){et(this.active,e),et(this.activeTo,e),et(this.activeRank,e),this.minActive=it(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:n,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||n-this.activeTo[t])>0;)t++;tt(this.active,t,i),tt(this.activeTo,t,n),tt(this.activeRank,t,r),e&&tt(e,t,this.cursor.from),this.minActive=it(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&et(i,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(i),this.cursor.next()}}}if(i){this.openStart=0;for(let t=i.length-1;t>=0&&i[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Ke(e,t,i,n,r,s){e.goto(t),i.goto(n);let o=n+r,a=n,l=n-t,h=!!s.boundChange;for(let t=!1;;){let n=e.to+l-i.to,r=n||e.endSide-i.endSide,c=r<0?e.to+l:i.to,u=Math.min(c,o);if(e.point||i.point?(e.point&&i.point&&Ve(e.point,i.point)&&Je(e.activeForPoint(e.to),i.activeForPoint(i.to))||s.comparePoint(a,u,e.point,i.point),t=!1):(t&&s.boundChange(a),u>a&&!Je(e.active,i.active)&&s.compareRange(a,u,e.active,i.active),h&&u<o&&(n||e.openEnd(c)!=i.openEnd(c))&&(t=!0)),c>o)break;a=c,r<=0&&e.next(),r>=0&&i.next()}}function Je(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!=t[i]&&!Ve(e[i],t[i]))return!1;return!0}function et(e,t){for(let i=t,n=e.length-1;i<n;i++)e[i]=e[i+1];e.pop()}function tt(e,t,i){for(let i=e.length-1;i>=t;i--)e[i+1]=e[i];e[t]=i}function it(e,t){let i=-1,n=1e9;for(let r=0;r<t.length;r++)(t[r]-n||e[r].endSide-e[i].endSide)<0&&(i=r,n=t[r]);return i}function nt(e,t,i=e.length){let n=0;for(let r=0;r<i&&r<e.length;)9==e.charCodeAt(r)?(n+=t-n%t,r++):(n++,r=j(e,r));return n}const rt="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),st="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class at{constructor(e,t){this.rules=[];let{finish:i}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,s,o){let a=[],l=/^@(\w+)\b/.exec(e[0]),h=l&&"keyframes"==l[1];if(l&&null==t)return s.push(e[0]+";");for(let i in t){let o=t[i];if(/&/.test(i))r(i.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),o,s);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+i+") should be a primitive value.");r(n(i),o,a,h)}else null!=o&&a.push(i.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(a.length||h)&&s.push((!i||l||o?e:e.map(i)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)r(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=ot[rt]||1;return ot[rt]=e+1,"ͼ"+e.toString(36)}static mount(e,t,i){let n=e[st],r=i&&i.nonce;n?r&&n.setNonce(r):n=new ht(e,r),n.mount(Array.isArray(t)?t:[t],e)}}let lt=new Map;class ht{constructor(e,t){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=lt.get(i);if(t)return e[st]=t;this.sheet=new n.CSSStyleSheet,lt.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[st]=this}mount(e,t){let i=this.sheet,n=0,r=0;for(let t=0;t<e.length;t++){let s=e[t],o=this.modules.indexOf(s);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,s),i)for(let e=0;e<s.rules.length;e++)i.insertRule(s.rules[e],n++)}else{for(;r<o;)n+=this.modules[r++].rules.length;n+=s.rules.length,r++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let i=t.head||t;this.styleTag.parentNode!=i&&i.insertBefore(this.styleTag,i.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var ct={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ut={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ft="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),dt="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),pt=0;pt<10;pt++)ct[48+pt]=ct[96+pt]=String(pt);for(pt=1;pt<=24;pt++)ct[pt+111]="F"+pt;for(pt=65;pt<=90;pt++)ct[pt]=String.fromCharCode(pt+32),ut[pt]=String.fromCharCode(pt);for(var Ot in ct)ut.hasOwnProperty(Ot)||(ut[Ot]=ct[Ot]);let gt="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},mt="undefined"!=typeof document?document:{documentElement:{style:{}}};const vt=/Edge\/(\d+)/.exec(gt.userAgent),yt=/MSIE \d/.test(gt.userAgent),wt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gt.userAgent),bt=!!(yt||wt||vt),St=!bt&&/gecko\/(\d+)/i.test(gt.userAgent),xt=!bt&&/Chrome\/(\d+)/.exec(gt.userAgent),kt="webkitFontSmoothing"in mt.documentElement.style,Qt=!bt&&/Apple Computer/.test(gt.vendor),$t=Qt&&(/Mobile\/\w+/.test(gt.userAgent)||gt.maxTouchPoints>2);var Pt={mac:$t||/Mac/.test(gt.platform),windows:/Win/.test(gt.platform),linux:/Linux|X11/.test(gt.platform),ie:bt,ie_version:yt?mt.documentMode||6:wt?+wt[1]:vt?+vt[1]:0,gecko:St,gecko_version:St?+(/Firefox\/(\d+)/.exec(gt.userAgent)||[0,0])[1]:0,chrome:!!xt,chrome_version:xt?+xt[1]:0,ios:$t,android:/Android\b/.test(gt.userAgent),webkit:kt,webkit_version:kt?+(/\bAppleWebKit\/(\d+)/.exec(gt.userAgent)||[0,0])[1]:0,safari:Qt,safari_version:Qt?+(/\bVersion\/(\d+(\.\d+)?)/.exec(gt.userAgent)||[0,0])[1]:0,tabSize:null!=mt.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function _t(e,t){for(let i in e)"class"==i&&t.class?t.class+=" "+e.class:"style"==i&&t.style?t.style+=";"+e.style:t[i]=e[i];return t}const Ct=Object.create(null);function At(e,t,i){if(e==t)return!0;e||(e=Ct),t||(t=Ct);let n=Object.keys(e),r=Object.keys(t);if(n.length-(i&&n.indexOf(i)>-1?1:0)!=r.length-(i&&r.indexOf(i)>-1?1:0))return!1;for(let s of n)if(s!=i&&(-1==r.indexOf(s)||e[s]!==t[s]))return!1;return!0}function Tt(e,t,i){let n=!1;if(t)for(let r in t)i&&r in i||(n=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(i)for(let r in i)t&&t[r]==i[r]||(n=!0,"style"==r?e.style.cssText=i[r]:e.setAttribute(r,i[r]));return n}function Zt(e){let t=Object.create(null);for(let i=0;i<e.attributes.length;i++){let n=e.attributes[i];t[n.name]=n.value}return t}class Mt{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Rt=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Rt||(Rt={}));class Xt extends Ye{constructor(e,t,i,n){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(e){return new Et(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new zt(e,t,t,i,e.widget||null,!1)}static replace(e){let t,i,n=!!e.block;if(e.isBlockGap)t=-5e8,i=4e8;else{let{start:r,end:s}=Lt(e,n);t=(r?n?-3e8:-1:5e8)-1,i=1+(s?n?2e8:1:-6e8)}return new zt(e,t,i,n,e.widget||null,!0)}static line(e){return new jt(e)}static set(e,t=!1){return De.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Xt.none=De.empty;class Et extends Xt{constructor(e){let{start:t,end:i}=Lt(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?_t(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Ct}eq(e){return this==e||e instanceof Et&&this.tagName==e.tagName&&At(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Et.prototype.point=!1;class jt extends Xt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof jt&&this.spec.class==e.spec.class&&At(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}jt.prototype.mapMode=B.TrackBefore,jt.prototype.point=!0;class zt extends Xt{constructor(e,t,i,n,r,s){super(t,i,r,e),this.block=n,this.isReplace=s,this.mapMode=n?t<=0?B.TrackBefore:B.TrackAfter:B.TrackDel}get type(){return this.startSide!=this.endSide?Rt.WidgetRange:this.startSide<=0?Rt.WidgetBefore:Rt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof zt&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Lt(e,t=!1){let{inclusiveStart:i,inclusiveEnd:n}=e;return null==i&&(i=e.inclusive),null==n&&(n=e.inclusive),{start:null!=i?i:t,end:null!=n?n:t}}function Yt(e,t,i,n=0){let r=i.length-1;r>=0&&i[r]+n>=e?i[r]=Math.max(i[r],t):i.push(e,t)}zt.prototype.point=!0;class Vt extends Ye{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof Vt&&this.tagName==e.tagName&&At(this.attributes,e.attributes)}static create(e){return new Vt(e.tagName,e.attributes||Ct)}static set(e,t=!1){return De.of(e,t)}}function Bt(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Wt(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function It(e,t){if(!t.anchorNode)return!1;try{return Wt(e,t.anchorNode)}catch(e){return!1}}function Dt(e){return 3==e.nodeType?si(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Nt(e,t,i,n){return!!i&&(Gt(e,t,i,n,-1)||Gt(e,t,i,n,1))}function qt(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Ut(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function Gt(e,t,i,n,r){for(;;){if(e==i&&t==n)return!0;if(t==(r<0?0:Ft(e))){if("DIV"==e.nodeName)return!1;let i=e.parentNode;if(!i||1!=i.nodeType)return!1;t=qt(e)+(r<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?Ft(e):0}}}function Ft(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ht(e,t){let i=t?e.left:e.right;return{left:i,right:i,top:e.top,bottom:e.bottom}}function Kt(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Jt(e,t){let i=t.width/e.offsetWidth,n=t.height/e.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.width-e.offsetWidth)<1)&&(i=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.height-e.offsetHeight)<1)&&(n=1),{scaleX:i,scaleY:n}}function ei(e,t=!0){let i=e.ownerDocument,n=null,r=null;for(let s=e.parentNode;s&&s!=i.body&&(t&&!n||!r);)if(1==s.nodeType)!r&&s.scrollHeight>s.clientHeight&&(r=s),t&&!n&&s.scrollWidth>s.clientWidth&&(n=s),s=s.assignedSlot||s.parentNode;else{if(11!=s.nodeType)break;s=s.host}return{x:n,y:r}}Vt.prototype.startSide=Vt.prototype.endSide=-1;class ti{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?Ft(t):0),i,Math.min(e.focusOffset,i?Ft(i):0))}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}}let ii,ni=null;function ri(e){if(e.setActive)return e.setActive();if(ni)return e.focus(ni);let t=[];for(let i=e;i&&(t.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(e.focus(null==ni?{get preventScroll(){return ni={preventScroll:!0},!0}}:void 0),!ni){ni=!1;for(let e=0;e<t.length;){let i=t[e++],n=t[e++],r=t[e++];i.scrollTop!=n&&(i.scrollTop=n),i.scrollLeft!=r&&(i.scrollLeft=r)}}}function si(e,t,i=t){let n=ii||(ii=document.createRange());return n.setEnd(e,i),n.setStart(e,t),n}function oi(e,t,i,n){let r={key:t,code:t,keyCode:i,which:i,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,e.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function ai(e){return e instanceof Window?e.pageYOffset>Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function li(e,t){for(let i=e,n=t;;){if(3==i.nodeType&&n>0)return{node:i,offset:n};if(1==i.nodeType&&n>0){if("false"==i.contentEditable)return null;i=i.childNodes[n-1],n=Ft(i)}else{if(!i.parentNode||Ut(i))return null;n=qt(i),i=i.parentNode}}}function hi(e,t){for(let i=e,n=t;;){if(3==i.nodeType&&n<i.nodeValue.length)return{node:i,offset:n};if(1==i.nodeType&&n<i.childNodes.length){if("false"==i.contentEditable)return null;i=i.childNodes[n],n=0}else{if(!i.parentNode||Ut(i))return null;n=qt(i)+1,i=i.parentNode}}}Pt.safari&&Pt.safari_version>=26&&(ni=!1);class ci{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new ci(e.parentNode,qt(e),t)}static after(e,t){return new ci(e.parentNode,qt(e)+1,t)}}var ui=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ui||(ui={}));const fi=ui.LTR,di=ui.RTL;function pi(e){let t=[];for(let i=0;i<e.length;i++)t.push(1<<+e[i]);return t}const Oi=pi("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),gi=pi("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),mi=Object.create(null),vi=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),i=e.charCodeAt(1);mi[t]=i,mi[i]=-t}function yi(e){return e<=247?Oi[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?gi[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const wi=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class bi{get dir(){return this.level%2?di:fi}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,n){let r=-1;for(let s=0;s<e.length;s++){let o=e[s];if(o.from<=t&&o.to>=t){if(o.level==i)return s;(r<0||(0!=n?n<0?o.from<t:o.to>t:e[r].level>o.level))&&(r=s)}}if(r<0)throw new RangeError("Index out of range");return r}}function Si(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],r=t[i];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!Si(n.inner,r.inner))return!1}return!0}const xi=[];function ki(e,t,i,n,r,s,o){let a=n%2?2:1;if(n%2==r%2)for(let l=t,h=0;l<i;){let t=!0,c=!1;if(h==s.length||l<s[h].from){let e=xi[l];e!=a&&(t=!1,c=16==e)}let u=t||1!=a?null:[],f=t?n:n+1,d=l;e:for(;;)if(h<s.length&&d==s[h].from){if(c)break e;let p=s[h];if(!t)for(let e=p.to,t=h+1;;){if(e==i)break e;if(!(t<s.length&&s[t].from==e)){if(xi[e]==a)break e;break}e=s[t++].to}h++,u?u.push(p):(p.from>l&&o.push(new bi(l,p.from,f)),Qi(e,p.direction==fi!=!(f%2)?n+1:n,r,p.inner,p.from,p.to,o),l=p.to),d=p.to}else{if(d==i||(t?xi[d]!=a:xi[d]==a))break;d++}u?ki(e,l,d,n+1,r,u,o):l<d&&o.push(new bi(l,d,f)),l=d}else for(let l=i,h=s.length;l>t;){let i=!0,c=!1;if(!h||l>s[h-1].to){let e=xi[l-1];e!=a&&(i=!1,c=16==e)}let u=i||1!=a?null:[],f=i?n:n+1,d=l;e:for(;;)if(h&&d==s[h-1].to){if(c)break e;let p=s[--h];if(!i)for(let e=p.from,i=h;;){if(e==t)break e;if(!i||s[i-1].to!=e){if(xi[e-1]==a)break e;break}e=s[--i].from}u?u.push(p):(p.to<l&&o.push(new bi(p.to,l,f)),Qi(e,p.direction==fi!=!(f%2)?n+1:n,r,p.inner,p.from,p.to,o),l=p.from),d=p.from}else{if(d==t||(i?xi[d-1]!=a:xi[d-1]==a))break;d--}u?ki(e,d,l,n+1,r,u,o):d<l&&o.push(new bi(d,l,f)),l=d}}function Qi(e,t,i,n,r,s,o){let a=t%2?2:1;!function(e,t,i,n,r){for(let s=0;s<=n.length;s++){let o=s?n[s-1].to:t,a=s<n.length?n[s].from:i,l=s?256:r;for(let t=o,i=l,n=l;t<a;t++){let r=yi(e.charCodeAt(t));512==r?r=i:8==r&&4==n&&(r=16),xi[t]=4==r?2:r,7&r&&(n=r),i=r}for(let e=o,t=l,n=l;e<a;e++){let r=xi[e];if(128==r)e<a-1&&t==xi[e+1]&&24&t?r=xi[e]=t:xi[e]=256;else if(64==r){let r=e+1;for(;r<a&&64==xi[r];)r++;let s=e&&8==t||r<i&&8==xi[r]?1==n?1:8:256;for(let t=e;t<r;t++)xi[t]=s;e=r-1}else 8==r&&1==n&&(xi[e]=1);t=r,7&r&&(n=r)}}}(e,r,s,n,a),function(e,t,i,n,r){let s=1==r?2:1;for(let o=0,a=0,l=0;o<=n.length;o++){let h=o?n[o-1].to:t,c=o<n.length?n[o].from:i;for(let t,i,n,o=h;o<c;o++)if(i=mi[t=e.charCodeAt(o)])if(i<0){for(let e=a-3;e>=0;e-=3)if(vi[e+1]==-i){let t=vi[e+2],i=2&t?r:4&t?1&t?s:r:0;i&&(xi[o]=xi[vi[e]]=i),a=e;break}}else{if(189==vi.length)break;vi[a++]=o,vi[a++]=t,vi[a++]=l}else if(2==(n=xi[o])||1==n){let e=n==r;l=e?0:1;for(let t=a-3;t>=0;t-=3){let i=vi[t+2];if(2&i)break;if(e)vi[t+2]|=2;else{if(4&i)break;vi[t+2]|=4}}}}}(e,r,s,n,a),function(e,t,i,n){for(let r=0,s=n;r<=i.length;r++){let o=r?i[r-1].to:e,a=r<i.length?i[r].from:t;for(let l=o;l<a;){let o=xi[l];if(256==o){let o=l+1;for(;;)if(o==a){if(r==i.length)break;o=i[r++].to,a=r<i.length?i[r].from:t}else{if(256!=xi[o])break;o++}let h=1==s,c=h==(1==(o<t?xi[o]:n))?h?1:2:n;for(let t=o,n=r,s=n?i[n-1].to:e;t>l;)t==s&&(t=i[--n].from,s=n?i[n-1].to:e),xi[--t]=c;l=o}else s=o,l++}}}(r,s,n,a),ki(e,r,s,t,i,n,o)}function $i(e){return[new bi(0,e,0)]}let Pi="";function _i(e,t,i,n,r){var s;let o=n.head-e.from,a=bi.find(t,o,null!==(s=n.bidiLevel)&&void 0!==s?s:-1,n.assoc),l=t[a],h=l.side(r,i);if(o==h){let e=a+=r?1:-1;if(e<0||e>=t.length)return null;l=t[a=e],o=l.side(!r,i),h=l.side(r,i)}let c=j(e.text,o,l.forward(r,i));(c<l.from||c>l.to)&&(c=h),Pi=e.text.slice(Math.min(o,c),Math.max(o,c));let u=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return u&&c==h&&u.level+(r?0:1)<l.level?K.cursor(u.side(!r,i)+e.from,u.forward(r,i)?1:-1,u.level):K.cursor(c+e.from,l.forward(r,i)?-1:1,l.level)}function Ci(e,t,i){for(let n=t;n<i;n++){let t=yi(e.charCodeAt(n));if(1==t)return fi;if(2==t||4==t)return di}return fi}const Ai=te.define(),Ti=te.define(),Zi=te.define(),Mi=te.define(),Ri=te.define(),Xi=te.define(),Ei=te.define(),ji=te.define(),zi=te.define(),Li=te.define({combine:e=>e.some(e=>e)}),Yi=te.define({combine:e=>e.some(e=>e)}),Vi=te.define();class Bi{constructor(e,t,i,n,r,s=!1){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=r,this.isSnapshot=s}map(e){return e.empty?this:new Bi(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Bi(K.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Wi=Pe.define({map:(e,t)=>e.map(t)}),Ii=Pe.define();function Di(e,t,i){let n=e.facet(Mi);n.length?n[0](t):window.onerror&&window.onerror(String(t),i,void 0,void 0,t)||(i?console.error(i+":",t):console.error(t))}const Ni=te.define({combine:e=>!e.length||e[0]});let qi=0;const Ui=te.define({combine:e=>e.filter((t,i)=>{for(let n=0;n<i;n++)if(e[n].plugin==t.plugin)return!1;return!0})});class Gi{constructor(e,t,i,n,r){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=n,this.baseExtensions=r(this),this.extension=this.baseExtensions.concat(Ui.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Ui.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:n,provide:r,decorations:s}=t||{};return new Gi(qi++,e,i,n,e=>{let t=[];return s&&t.push(Ji.of(t=>{let i=t.plugin(e);return i?s(i):Xt.none})),r&&t.push(r(e)),t})}static fromClass(e,t){return Gi.define((t,i)=>new e(t,i),t)}}class Fi{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Di(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Di(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Di(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Hi=te.define(),Ki=te.define(),Ji=te.define(),en=te.define(),tn=te.define(),nn=te.define(),rn=te.define();function sn(e,t){let i=e.state.facet(rn);if(!i.length)return i;let n=i.map(t=>t instanceof Function?t(e):t),r=[];return De.spans(n,t.from,t.to,{point(){},span(e,i,n,s){let o=e-t.from,a=i-t.from,l=r;for(let e=n.length-1;e>=0;e--,s--){let i,r=n[e].spec.bidiIsolate;if(null==r&&(r=Ci(t.text,o,a)),s>0&&l.length&&(i=l[l.length-1]).to==o&&i.direction==r)i.to=a,l=i.inner;else{let e={from:o,to:a,direction:r,inner:[]};l.push(e),l=e.inner}}}}),r}const on=te.define();function an(e){let t=0,i=0,n=0,r=0;for(let s of e.state.facet(on)){let o=s(e);o&&(null!=o.left&&(t=Math.max(t,o.left)),null!=o.right&&(i=Math.max(i,o.right)),null!=o.top&&(n=Math.max(n,o.top)),null!=o.bottom&&(r=Math.max(r,o.bottom)))}return{left:t,right:i,top:n,bottom:r}}const ln=te.define();class hn{constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new hn(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toA<i.fromA)break;i=i.join(n),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(0==t.length)return e;let i=[];for(let n=0,r=0,s=0;;){let o=n<e.length?e[n].fromB:1e9,a=r<t.length?t[r]:1e9,l=Math.min(o,a);if(1e9==l)break;let h=l+s,c=l,u=h;for(;;)if(r<t.length&&t[r]<=c){let i=t[r+1];r+=2,c=Math.max(c,i);for(let t=n;t<e.length&&e[t].fromB<=c;t++)s=e[t].toA-e[t].toB;u=Math.max(u,i+s)}else{if(!(n<e.length&&e[n].fromB<=c))break;{let t=e[n++];c=Math.max(c,t.toB),u=Math.max(u,t.toA),s=t.toA-t.toB}}i.push(new hn(h,u,l,c))}return i}}class cn{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=I.empty(this.startState.doc.length);for(let e of i)this.changes=this.changes.compose(e.changes);let n=[];this.changes.iterChangedRanges((e,t,i,r)=>n.push(new hn(e,t,i,r))),this.changedRanges=n}static create(e,t,i){return new cn(e,t,i)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const un=[];class fn{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return un}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let i=e.attributes.length-1;i>=0;i--){let n=e.attributes[i].name;null==t[n]&&e.removeAttribute(n)}for(let i in t){let n=t[i];"style"==i?e.style.cssText=n:e.getAttribute(i)!=n&&e.setAttribute(i,n)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let t of this.children){if(t==e)return i;i+=t.length+t.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=qt(this.dom),n=this.length?e>0:t>0;return new ci(this.parent.dom,i+(n?1:0),0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof On)return e;return null}static get(e){return e.cmTile}}class dn extends fn{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t,i=this.dom,n=null,r=(null==e?void 0:e.node)==i?e:null,s=0;for(let o of this.children){if(o.sync(e),s+=o.length+o.breakAfter,t=n?n.nextSibling:i.firstChild,r&&t!=o.dom&&(r.written=!0),o.dom.parentNode==i)for(;t&&t!=o.dom;)t=pn(t);else i.insertBefore(o.dom,t);n=o.dom}for(t=n?n.nextSibling:i.firstChild,r&&t&&(r.written=!0);t;)t=pn(t);this.length=s}}function pn(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class On extends dn{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=fn.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,n=0,r=0;;)if(n==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&r++,n=t.pop()}else{let s=i.children[n++];if(s instanceof gn)t.push(n),i=s,n=0;else{let t=r+s.length,i=e(s,r);if(void 0!==i)return i;r=t+s.breakAfter}}}resolveBlock(e,t){let i,n,r=-1,s=-1;if(this.blockTiles((o,a)=>{let l=a+o.length;if(e>=a&&e<=l){if(o.isWidget()&&t>=-1&&t<=1){if(32&o.flags)return!0;16&o.flags&&(i=void 0)}(a<e||e==l&&(t<-1?o.length:o.covers(1)))&&(!i||!o.isWidget()&&i.isWidget())&&(i=o,r=e-a),(l>e||e==a&&(t>1?o.length:o.covers(-1)))&&(!n||!o.isWidget()&&n.isWidget())&&(n=o,s=e-a)}}),!i&&!n)throw new Error("No tile at position "+e);return i&&t<0||!n?{tile:i,offset:r}:{tile:n,offset:s}}}class gn extends dn{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let i=new gn(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class mn extends dn{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,i){let n=new mn(t||document.createElement("div"),e);return t&&i||(n.flags|=4),n}get domAttrs(){return this.attrs}resolveInline(e,t,i){let n=null,r=-1,s=null,o=-1;!function e(a,l){for(let h=0,c=0;h<a.children.length&&c<=l;h++){let u=a.children[h],f=c+u.length;f>=l&&(u.isComposite()?e(u,l-c):(!s||s.isHidden&&(t>0||i&&vn(s,u)))&&(f>l||32&u.flags)?(s=u,o=l-c):(c<l||16&u.flags&&!u.isHidden)&&(n=u,r=l-c)),c=f}}(this,e);let a=(t<0?n:s)||n||s;return a?{tile:a,offset:a==n?r:o}:null}coordsIn(e,t){let i=this.resolveInline(e,t,!0);return i?i.tile.coordsIn(Math.max(0,i.offset),t):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let i=Dt(t);return i[i.length-1]||null}(this)}domIn(e,t){let i=this.resolveInline(e,t);if(i){let{tile:e,offset:n}=i;if(this.dom.contains(e.dom))return e.isText()?new ci(e.dom,Math.min(e.dom.nodeValue.length,n)):e.domPosFor(n,16&e.flags?1:32&e.flags?-1:t);let r=i.tile.parent,s=!1;for(let e of r.children){if(s)return new ci(e.dom,0);e==i.tile&&(s=!0)}}return new ci(this.dom,0)}}function vn(e,t){let i=e.coordsIn(0,1),n=t.coordsIn(0,1);return i&&n&&n.top<i.bottom}class yn extends dn{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let i=new yn(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class wn extends fn{constructor(e,t){super(e,t.length),this.text=t}sync(e){2&this.flags||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let i=this.dom.nodeValue.length;e>i&&(e=i);let n=e,r=e,s=0;0==e&&t<0||e==i&&t>=0?Pt.chrome||Pt.gecko||(e?(n--,s=1):r<i&&(r++,s=-1)):t<0?n--:r<i&&r++;let o=si(this.dom,n,r).getClientRects();if(!o.length)return null;let a=o[(s?s<0:t>=0)?0:o.length-1];return Pt.safari&&!s&&0==a.width&&(a=Array.prototype.find.call(o,e=>e.width)||a),s?Ht(a,s<0):a||null}static of(e,t){let i=new wn(t||document.createTextNode(e),e);return t||(i.flags|=2),i}}class bn extends fn{constructor(e,t,i,n){super(e,t,n),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,i){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;if(i)return Ht(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),i=null;if(!t.length)return null;let n=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let r=n?t.length-1:0;i=t[r],!(e>0?0==r:r==t.length-1||i.top<i.bottom);r+=n?-1:1);return Ht(i,!n)}}get overrideDOMText(){if(!this.length)return P.empty;let{root:e}=this;if(!e)return P.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,i,n,r){return r||(r=e.toDOM(t),e.editable||(r.contentEditable="false")),new bn(r,i,e,n)}}class Sn extends fn{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return P.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class xn{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,i){let{tile:n,index:r,beforeBreak:s,parents:o}=this;for(;e||t>0;)if(n.isComposite())if(s){if(!e)break;i&&i.break(),e--,s=!1}else if(r==n.children.length){if(!e&&!o.length)break;i&&i.leave(n),s=!!n.breakAfter,({tile:n,index:r}=o.pop()),r++}else{let a=n.children[r],l=a.breakAfter;!(t>0?a.length<=e:a.length<e)||i&&!1===i.skip(a,0,a.length)&&a.isComposite?(o.push({tile:n,index:r}),n=a,r=0,i&&a.isComposite()&&i.enter(a)):(s=!!l,r++,e-=a.length)}else if(r==n.length)s=!!n.breakAfter,({tile:n,index:r}=o.pop()),r++;else{if(!e)break;{let t=Math.min(e,n.length-r);i&&i.skip(n,r,r+t),e-=t,r+=t}}return this.tile=n,this.index=r,this.beforeBreak=s,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class kn{constructor(e,t,i,n){this.from=e,this.to=t,this.wrapper=i,this.rank=n}}class Qn{constructor(e,t,i){this.cache=e,this.root=t,this.blockWrappers=i,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,i,n){var r;this.flushBuffer();let s=this.ensureMarks(t,i),o=s.lastChild;o&&o.isText()&&!(8&o.flags)&&o.length+e.length<512?(this.cache.reused.set(o,2),(s.children[s.children.length-1]=new wn(o.dom,o.text+e)).parent=s):s.append(n||wn.of(e,null===(r=this.cache.find(wn))||void 0===r?void 0:r.dom)),this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let i=this.curLine;i.dom!=t.line.dom&&(i.setDOM(this.cache.reused.has(t.line)?Zn(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let n=i;for(let e=t.marks.length-1;e>=0;e--){let i=t.marks[e],r=n.lastChild;if(r instanceof yn&&r.mark.eq(i.mark))r.dom!=i.dom&&r.setDOM(Zn(i.dom)),n=r;else{if(this.cache.reused.get(i)){let e=fn.get(i.dom);e&&e.setDOM(Zn(i.dom))}let e=yn.of(i.mark,i.dom);n.append(e),n=e}this.cache.reused.set(i,2)}let r=fn.get(e.text);r&&this.cache.reused.set(r,2);let s=new wn(e.text,e.text.nodeValue);s.flags|=8,this.pos=e.range.toB,n.append(s)}addInlineWidget(e,t,i){let n=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);n||this.flushBuffer();let r=this.ensureMarks(t,i);n||16&e.flags||r.append(this.getBuffer(1)),r.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){(this.afterWidget||this.lastBlock).length+=e,this.pos+=e}addLineStart(e,t){var i;e||(e=Tn);let n=mn.start(e,t||(null===(i=this.cache.find(mn))||void 0===i?void 0:i.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var i;let n=this.curLine;for(let r=e.length-1;r>=0;r--){let s,o=e[r];if(t>0&&(s=n.lastChild)&&s instanceof yn&&s.mark.eq(o))n=s,t--;else{let e=yn.of(o,null===(i=this.cache.find(yn,e=>e.mark.eq(o)))||void 0===i?void 0:i.dom);n.append(e),n=e,t=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;e&&An(this.curLine,!1)&&("BR"==e.dom.nodeName||!e.isWidget()||Pt.ios&&An(this.curLine,!0))||this.curLine.append(this.cache.findWidget(Rn,0,32)||new bn(Rn.toDOM(),0,Rn,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new kn(e.from,e.to,e.value,e.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-t.rank||this.wrappers[i-1].to-t.to)<0;)i--;this.wrappers.splice(i,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let i of this.wrappers){let n=t.lastChild;if(i.from<this.pos&&n instanceof gn&&n.wrapper.eq(i.wrapper))t=n;else{let n=gn.of(i.wrapper,null===(e=this.cache.find(gn,e=>e.wrapper.eq(i.wrapper)))||void 0===e?void 0:e.dom);t.append(n),t=n}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(Sn,void 0,1);return i&&(i.flags=t),i||new Sn(t)}flushBuffer(){!this.afterWidget||32&this.afterWidget.flags||(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class $n{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:i,done:n}=this.cursor.next(this.skipCount);if(this.skipCount=0,n)throw new Error("Ran out of text content when drawing inline views");this.text=t;let r=this.textOff=Math.min(e,t.length);return i?null:t.slice(0,r)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}}const Pn=[bn,mn,wn,yn,Sn,gn,On];for(let e=0;e<Pn.length;e++)Pn[e].bucket=e;class _n{constructor(e){this.view=e,this.buckets=Pn.map(()=>[]),this.index=Pn.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let n=e.bucket,r=this.buckets[n],s=this.index[n];for(let e=r.length-1;e>=0;e--){let o=(e+s)%r.length,a=r[o];if((!t||t(a))&&!this.reused.has(a))return r.splice(o,1),o<s&&this.index[n]--,this.reused.set(a,i),a}return null}findWidget(e,t,i){let n=this.buckets[0];if(n.length)for(let r=0,s=0;;r++){if(r==n.length){if(s)return null;s=1,r=0}let o=n[r];if(!this.reused.has(o)&&(0==s?o.widget.compare(e):o.widget.constructor==e.constructor&&e.updateDOM(o.dom,this.view,o.widget)))return n.splice(r,1),r<this.index[0]&&this.index[0]--,o.widget==e&&o.length==t&&(497&o.flags)==i?(this.reused.set(o,1),o):(this.reused.set(o,2),new bn(o.dom,t,e,-498&o.flags|i))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class Cn{constructor(e,t,i,n,r){this.view=e,this.decorations=n,this.disallowBlockEffectsFor=r,this.openWidget=!1,this.openMarks=0,this.cache=new _n(e),this.text=new $n(e.state.doc),this.builder=new Qn(this.cache,new On(e,e.contentDOM),De.iter(i)),this.cache.reused.set(t,2),this.old=new xn(t),this.reuseWalker={skip:(e,t,i)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let n=0,r=0,s=0;;){let o=s<e.length?e[s++]:null,a=o?o.fromA:this.old.root.length;if(a>n){let e=a-n;this.preserve(e,!s,!o),n=a,r+=e}if(!o)break;t&&o.fromA<=t.range.fromA&&o.toA>=t.range.toA?(this.forward(o.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(r,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,i),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,o.toA),this.emit(t.range.toB,o.toB)):(this.forward(o.fromA,o.toA),this.emit(r,o.toB)),r=o.toB,n=o.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,i){let n=function(e){let t=[];for(let i=e.parents.length;i>1;i--){let n=i==e.parents.length?e.tile:e.parents[i].tile;n instanceof yn&&t.push(n.mark)}return t}(this.old),r=this.openMarks;this.old.advance(e,i?1:-1,{skip:(e,t,i)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(i-t);else{let s=i>0||t<e.length?bn.of(e.widget,this.view,i-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);256&s.flags?(s.flags&=-2,this.builder.addBlockWidget(s)):(this.builder.ensureLine(null),this.builder.addInlineWidget(s,n,r),r=n.length)}else if(e.isText())this.builder.ensureLine(null),t||i!=e.length||this.cache.reused.has(e)?(this.cache.add(e),this.builder.addText(e.text.slice(t,i),n,r)):this.builder.addText(e.text,n,r,this.cache.reuse(e)),r=n.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof Sn)this.cache.add(e);else{if(!(e instanceof yn))return!1;this.builder.ensureLine(null),this.builder.addMark(e,n,r),this.cache.reused.set(e,1),r=n.length}this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof yn&&n.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?n.length&&(n.length=r=0):e instanceof yn&&(n.shift(),r=Math.min(r,n.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,n=this.builder,r=0,s=De.spans(this.decorations,e,t,{point:(e,t,s,o,a,l)=>{if(s instanceof zt){if(this.disallowBlockEffectsFor[l]){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=o.length,a>o.length)n.continueWidget(t-e);else{let r=s.widget||(s.block?Mn.block:Mn.inline),l=function(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}(s),h=this.cache.findWidget(r,t-e,l)||bn.of(r,this.view,t-e,l);s.block?(s.startSide>0&&n.addLineStartIfNotCovered(i),n.addBlockWidget(h)):(n.ensureLine(i),n.addInlineWidget(h,o,a))}i=null}else i=function(e,t){let i=t.spec.attributes,n=t.spec.class;return i||n?(e||(e={class:"cm-line"}),i&&_t(i,e),n&&(e.class+=" "+n),e):e}(i,s);t>e&&this.text.skip(t-e)},span:(e,t,r,s)=>{for(let o=e;o<t;){let a=this.text.next(Math.min(512,t-o));null==a?(n.addLineStartIfNotCovered(i),n.addBreak(),o++):(n.ensureLine(i),n.addText(a,r,o==e?s:r.length),o+=a.length),i=null}}});n.addLineStartIfNotCovered(i),this.openWidget=s>r,this.openMarks=s}forward(e,t,i=1){t-e<=10?this.old.advance(t-e,i,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,i,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let n=e.parentNode;;n=n.parentNode){let e=fn.get(n);if(n==this.view.contentDOM)break;e instanceof yn?t.push(e):(null==e?void 0:e.isLine())?i=e:e instanceof gn||("DIV"!=n.nodeName||i||n==this.view.contentDOM?i||t.push(yn.of(new Et({tagName:n.nodeName.toLowerCase(),attributes:Zt(n)}),n)):i=new mn(n,Tn))}return{line:i,marks:t}}}function An(e,t){let i=e=>{for(let n of e.children)if((t?n.isText():n.length)||i(n))return!0;return!1};return i(e)}const Tn={class:"cm-line"};function Zn(e){let t=fn.get(e);return t&&t.setDOM(e.cloneNode()),e}class Mn extends Mt{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Mn.inline=new Mn("span"),Mn.block=new Mn("div");const Rn=new class extends Mt{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class Xn{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Xt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new On(e,e.contentDOM),this.updateInner([new hn(0,0,0,e.state.doc.length)],null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?n=this.domChanged.newSel.head:function(e,t){let i=!1;return t&&e.iterChangedRanges((e,n)=>{e<t.to&&n>t.from&&(i=!0)}),i}(e.changes,this.hasComposition)||e.selectionSet||(n=e.state.selection.main.head));let r=n>-1?function(e,t,i){let n=jn(e,i);if(!n)return null;let{node:r,from:s,to:o}=n,a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc;return{range:new hn(l.mapPos(s),l.mapPos(o),s,o),text:r}}(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:n}=this.hasComposition;i=new hn(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(Pt.ie||Pt.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.blockWrappers;this.updateDeco();let a=function(e,t,i){let n=new zn;return De.compare(e,t,i,n),n.changes}(s,this.decorations,e.changes);a.length&&(i=hn.extendWithRanges(i,a));let l=function(e,t,i){let n=new Ln;return De.compare(e,t,i,n),n.changes}(o,this.blockWrappers,e.changes);return l.length&&(i=hn.extendWithRanges(i,l)),r&&!i.some(e=>e.fromA<=r.range.fromA&&e.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),!(2&this.tile.flags&&0==i.length||(this.updateInner(i,r),e.transactions.length&&(this.lastUpdate=Date.now()),0))}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let i=this.tile,n=new Cn(this.view,i,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&fn.get(t.text)&&n.cache.reused.set(fn.get(t.text),2),this.tile=n.run(e,t),En(i,n.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let n=Pt.chrome||Pt.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(n),!n||!n.written&&i.selectionRange.focusNode==n.node&&this.tile.dom.contains(n.node)||(this.forceSelection=!0),this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.tile.children)e.isWidget()&&e.widget instanceof Yn&&n.push(e.dom);i.updateGaps(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(Ii)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let{dom:i}=this.tile,n=this.view.root.activeElement,r=n==i,s=!r&&!(this.view.state.facet(Ni)||i.tabIndex>-1)&&It(i,this.view.observer.selectionRange)&&!(n&&i.contains(n));if(!(r||t||s))return;let o=this.forceSelection;this.forceSelection=!1;let a,l,h=this.view.state.selection.main;if(h.empty?l=a=this.inlineDOMNearPos(h.anchor,h.assoc||1):(l=this.inlineDOMNearPos(h.head,h.head==h.from?1:-1),a=this.inlineDOMNearPos(h.anchor,h.anchor==h.from?1:-1)),Pt.gecko&&h.empty&&!this.hasComposition&&1==(c=a).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null)),a=l=new ci(e,0),o=!0}var c;let u=this.view.observer.selectionRange;!o&&u.focusNode&&(Nt(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Nt(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,h))||(this.view.observer.ignore(()=>{Pt.android&&Pt.chrome&&i.contains(u.focusNode)&&function(e,t){for(let i=e;i&&i!=t;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(u.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let e=Bt(this.view.root);if(e)if(h.empty){if(Pt.gecko){let e=(t=a.node,r=a.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(r<t.childNodes.length&&"false"==t.childNodes[r].contentEditable?2:0));if(e&&3!=e){let t=(1==e?li:hi)(a.node,a.offset);t&&(a=new ci(t.node,t.offset))}}e.collapse(a.node,a.offset),null!=h.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=h.bidiLevel)}else if(e.extend){e.collapse(a.node,a.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();h.anchor>h.head&&([a,l]=[l,a]),t.setEnd(l.node,l.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,r;s&&this.view.root.activeElement==i&&(i.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new ci(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new ci(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Nt(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=Bt(e.root),{anchorNode:n,anchorOffset:r}=e.observer.selectionRange;if(!(i&&t.empty&&t.assoc&&i.modify))return;let s=this.lineAt(t.head,t.assoc);if(!s)return;let o=s.posAtStart;if(t.head==o||t.head==o+s.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let h=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(h.node,h.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&i.collapse(n,r)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let n=i.posAtStart;if(!i.isComposite())return i.isText()?e==i.dom?n+t:n+(t?i.length:0):n;{let r;if(e==i.dom)r=i.dom.childNodes[t];else{let n=0==Ft(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==i.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}r=n<0?e:e.nextSibling}if(r==i.dom.firstChild)return n;for(;r&&!fn.get(r);)r=r.nextSibling;if(!r)return n+i.length;for(let e=0,t=n;;e++){let n=i.children[e];if(n.dom==r)return t;t+=n.length+n.breakAfter}}}domAtPos(e,t){let{tile:i,offset:n}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(n,t)}inlineDOMNearPos(e,t){let i,n,r=-1,s=!1,o=-1,a=!1;return this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(s=!0)}else{let h=l+t.length;if(l<=e&&(i=t,r=e-l,s=h<e),h>=e&&!n&&(n=t,o=e-l,a=l>e),l>e&&n)return!0}}),i||n?(s&&n?i=null:a&&i&&(n=null),i&&t<0||!n?i.domIn(r,t):n.domIn(o,t)):this.domAtPos(e,t)}coordsAt(e,t){let{tile:i,offset:n}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof Yn?null:i.coordsInWidget(n,t,!0):i.coordsIn(n,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,i){if(t.isComposite())for(let n of t.children){if(n.length>=i){let t=e(n,i);if(t)return t}if((i-=n.length)<0)break}else if(t.isText()&&i<t.length){let e=j(t.text,i);if(e==i)return null;let n=si(t.dom,i,e).getClientRects();for(let e=0;e<n.length;e++){let t=n[e];if(e==n.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}(t,i):null}measureVisibleLineHeights(e){let t=[],{from:i,to:n}=e,r=this.view.contentDOM.clientWidth,s=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,a=this.view.textDirection==ui.LTR,l=0,h=(e,c,u)=>{for(let f=0;f<e.children.length&&!(c>n);f++){let n=e.children[f],d=c+n.length,p=n.dom.getBoundingClientRect(),{height:O}=p;if(u&&!f&&(l+=p.top-u.top),n instanceof gn)d>i&&h(n,c,p);else if(c>=i&&(l>0&&t.push(-l),t.push(O+l),l=0,s)){let e=n.dom.lastChild,t=e?Dt(e):[];if(t.length){let e=t[t.length-1],i=a?e.right-p.left:p.right-e.left;i>o&&(o=i,this.minWidth=r,this.minWidthFrom=c,this.minWidthTo=d)}}u&&f==e.children.length-1&&(l+=u.bottom-p.bottom),c=d+n.breakAfter}};return h(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?ui.RTL:ui.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t,i=0;for(let n of e.children){if(!n.isText()||/[^ -~]/.test(n.text))return;let e=Dt(n.dom);if(1!=e.length)return;i+=e[0].width,t=e[0].height}if(i)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:i/e.length,textHeight:t}}});if(e)return e;let t,i,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(r);let e=Dt(r.firstChild)[0];t=r.getBoundingClientRect().height,i=e&&e.width?e.width/27:7,n=e&&e.height?e.height:t,r.remove()}),{lineHeight:t,charWidth:i,textHeight:n}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let r=n==t.viewports.length?null:t.viewports[n],s=r?r.from-1:this.view.state.doc.length;if(s>i){let n=(t.lineBlockAt(s).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(Xt.replace({widget:new Yn(n),block:!0,inclusive:!0,isBlockGap:!0}).range(i,s))}if(!r)break;i=r.to+1}return Xt.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ji).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),i=!1,n=this.view.state.facet(tn).map((e,t)=>{let n="function"==typeof e;return n&&(i=!0),n?e(this.view):e});for(n.length&&(this.dynamicDecorationMap[e++]=i,t.push(De.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(en).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){var t;if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let t of this.view.state.facet(Vi))try{if(t(this.view,e.range,e))return!0}catch(e){Di(this.view.state,e,"scroll handler")}let i,{range:n}=e,r=this.coordsAt(n.head,null!==(t=n.assoc)&&void 0!==t?t:n.empty?0:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=an(this.view),o={left:r.left-s.left,top:r.top-s.top,right:r.right+s.right,bottom:r.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;if(function(e,t,i,n,r,s,o,a){let l=e.ownerDocument,h=l.defaultView||window;for(let c=e,u=!1;c&&!u;)if(1==c.nodeType){let e,f=c==l.body,d=1,p=1;if(f)e=Kt(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(u=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:d,scaleY:p}=Jt(c,t)),e={left:t.left,right:t.left+c.clientWidth*d,top:t.top,bottom:t.top+c.clientHeight*p}}let O=0,g=0;if("nearest"==r)t.top<e.top+o?(g=t.top-(e.top+o),i>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+o)):t.bottom>e.bottom-o&&(g=t.bottom-e.bottom+o,i<0&&t.top-g<e.top&&(g=t.top-(e.top+o)));else{let n=t.bottom-t.top,s=e.bottom-e.top;g=("center"==r&&n<=s?t.top+n/2-s/2:"start"==r||"center"==r&&i<0?t.top-o:t.bottom-s+o)-e.top}if("nearest"==n?t.left<e.left+s?(O=t.left-(e.left+s),i>0&&t.right>e.right+O&&(O=t.right-e.right+s)):t.right>e.right-s&&(O=t.right-e.right+s,i<0&&t.left<e.left+O&&(O=t.left-(e.left+s))):O=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==a?t.left-s:t.right-(e.right-e.left)+s)-e.left,O||g)if(f)h.scrollBy(O,g);else{let e=0,i=0;if(g){let e=c.scrollTop;c.scrollTop+=g/p,i=(c.scrollTop-e)*p}if(O){let t=c.scrollLeft;c.scrollLeft+=O/d,e=(c.scrollLeft-t)*d}t={left:t.left-e,top:t.top-i,right:t.right-e,bottom:t.bottom-i},e&&Math.abs(e-O)<1&&(n="nearest"),i&&Math.abs(i-g)<1&&(r="nearest")}if(f)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==ui.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(n.head,1);e&&e.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){En(this.tile)}}function En(e,t){let i=null==t?void 0:t.get(e);if(1!=i){null==i&&e.destroy();for(let i of e.children)En(i,t)}}function jn(e,t){let i=e.observer.selectionRange;if(!i.focusNode)return null;let n=li(i.focusNode,i.focusOffset),r=hi(i.focusNode,i.focusOffset),s=n||r;if(r&&n&&r.node!=n.node){let t=fn.get(r.node);if(!t||t.isText()&&t.text!=r.node.nodeValue)s=r;else if(e.docView.lastCompositionAfterCursor){let e=fn.get(n.node);!e||e.isText()&&e.text!=n.node.nodeValue||(s=r)}}if(e.docView.lastCompositionAfterCursor=s!=n,!s)return null;let o=t-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}let zn=class{constructor(){this.changes=[]}compareRange(e,t){Yt(e,t,this.changes)}comparePoint(e,t){Yt(e,t,this.changes)}boundChange(e){Yt(e,e,this.changes)}};class Ln{constructor(){this.changes=[]}compareRange(e,t){Yt(e,t,this.changes)}comparePoint(){}boundChange(e){Yt(e,e,this.changes)}}class Yn extends Mt{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Vn(e,t,i,n){let r=e.state.doc.lineAt(t.head),s=e.bidiSpans(r),o=e.textDirectionAt(r.from);for(let a=t,l=null;;){let t=_i(r,s,o,a,i),h=Pi;if(!t){if(r.number==(i?e.state.doc.lines:1))return a;h="\n",r=e.state.doc.line(r.number+(i?1:-1)),s=e.bidiSpans(r),t=e.visualLineSide(r,!i)}if(l){if(!l(h))return a}else{if(!n)return t;l=n(h)}a=t}}function Bn(e,t,i){for(;;){let n=0;for(let r of e)r.between(t-1,t+1,(e,r,s)=>{if(t>e&&t<r){let s=n||i||(t-e<r-t?-1:1);t=s<0?e:r,n=s}});if(!n)return t}}function Wn(e,t){let i=null;for(let n=0;n<t.ranges.length;n++){let r=t.ranges[n],s=null;if(r.empty){let t=Bn(e,r.from,0);t!=r.from&&(s=K.cursor(t,-1))}else{let t=Bn(e,r.from,-1),i=Bn(e,r.to,1);t==r.from&&i==r.to||(s=K.range(r.from==r.anchor?t:i,r.from==r.head?t:i))}s&&(i||(i=t.ranges.slice()),i[n]=s)}return i?K.create(i,t.mainIndex):t}function In(e,t,i){let n=Bn(e.state.facet(nn).map(t=>t(e)),i.from,t.head>i.from?-1:1);return n==i.from?i:K.cursor(n,n<i.from?1:-1)}class Dn{constructor(e,t){this.pos=e,this.assoc=t}}function Nn(e,t,i,n){let r,s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,{x:a,y:l}=t,h=l-o;for(;;){if(h<0)return new Dn(0,1);if(h>e.viewState.docHeight)return new Dn(e.state.doc.length,-1);if(r=e.elementAtHeight(h),null==n)break;if(r.type==Rt.Text){if(n<0?r.to<e.viewport.from:r.from>e.viewport.to)break;let t=e.docView.coordsAt(n<0?r.from:r.to,n>0?-1:1);if(t&&(n<0?t.top<=h+o:t.bottom>=h+o))break}let t=e.viewState.heightOracle.textHeight/2;h=n>0?r.bottom+t:r.top-t}if(e.viewport.from>=r.to||e.viewport.to<=r.from){if(i)return null;if(r.type==Rt.Text){let t=function(e,t,i,n,r){let s=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&i.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;s+=Math.floor((r-i.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(i.from,i.to);return i.from+function(e,t,i){for(let n=0,r=0;;){if(r>=t)return n;if(n==e.length)break;r+=9==e.charCodeAt(n)?i-r%i:1,n=j(e,n)}return e.length}(o,s,e.state.tabSize)}(e,s,r,a,l);return new Dn(t,t==r.from?1:-1)}}if(r.type!=Rt.Text)return h<(r.top+r.bottom)/2?new Dn(r.from,1):new Dn(r.to,-1);let c=e.docView.lineAt(r.from,2);return c&&c.length==r.length||(c=e.docView.lineAt(r.from,-2)),new qn(e,a,l,e.textDirectionAt(r.from)).scanTile(c,r.from)}class qn{constructor(e,t,i,n){this.view=e,this.x=t,this.y=i,this.baseDir=n,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:n}=this.bidiSpansAt(e);return n[bi.find(n,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:n}=this.bidiSpansAt(e);return n[bi.find(n,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:n}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+n.from<t)}scan(e,t,i=!1){let n,r,s,o=0,a=e.length-1,l=new Set,h=this.bidiIn(e[0],e[a]),c=-1,u=1e9;e:for(;o<a;){let i=a-o,f=o+a>>1;t:if(l.has(f)){let e=o+Math.floor(Math.random()*i);for(let t=0;t<i;t++){if(!l.has(e)){f=e;break t}e++,e==a&&(e=o)}break e}l.add(f);let d=t(f);if(d)for(let t=0;t<d.length;t++){let i=d[t],l=0;if(!(0==i.width&&d.length>1)){if(i.bottom<this.y)(!n||n.bottom<i.bottom)&&(n=i),l=1;else if(i.top>this.y)(!r||r.top>i.top)&&(r=i),l=-1;else{let e=i.left>this.x?this.x-i.left:i.right<this.x?this.x-i.right:0,t=Math.abs(e);t<u&&(c=f,u=t,s=i),e&&(l=e<0==(this.baseDir==ui.LTR)?-1:1)}-1!=l||h&&!this.baseDirAt(e[f],1)?1!=l||h&&!this.baseDirAt(e[f+1],-1)||(o=f+1):a=f}}}if(!s){let i=n&&(!r||this.y-n.bottom<r.top-this.y)?n:r;return this.y=(i.top+i.bottom)/2,this.scan(e,t,!0)}if(u&&!i){let{top:i,bottom:o}=s;if(n&&n.bottom>(i+i+o)/3)return this.y=n.bottom-1,this.scan(e,t,!0);if(r&&r.top<(i+o+o)/3)return this.y=r.top+1,this.scan(e,t,!0)}let f=(h?this.dirAt(e[c],1):this.baseDir)==ui.LTR;return{i:c,after:this.x>(s.left+s.right)/2==f}}scanText(e,t){let i=[];for(let n=0;n<e.length;n=j(e.text,n))i.push(t+n);i.push(t+e.length);let n=this.scan(i,n=>{let r=i[n]-t,s=i[n+1]-t;return si(e.dom,r,s).getClientRects()});return n.after?new Dn(i[n.i+1],-1):new Dn(i[n.i],1)}scanTile(e,t){if(!e.length)return new Dn(t,1);if(1==e.children.length){let i=e.children[0];if(i.isText())return this.scanText(i,t);if(i.isComposite())return this.scanTile(i,t)}let i=[t];for(let n=0,r=t;n<e.children.length;n++)i.push(r+=e.children[n].length);let n=this.scan(i,t=>{let i=e.children[t];return 48&i.flags?null:(1==i.dom.nodeType?i.dom:si(i.dom,0,i.length)).getClientRects()}),r=e.children[n.i],s=i[n.i];return r.isText()?this.scanText(r,s):r.isComposite()?this.scanTile(r,s):n.after?new Dn(i[n.i+1],-1):new Dn(s,1)}}const Un="￿";class Gn{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(ze.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Un}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let n=e;;){this.findPointBefore(i,n);let e=this.text.length;this.readNode(n);let r=fn.get(n),s=n.nextSibling;if(s==t){(null==r?void 0:r.breakAfter)&&!s&&i!=this.view.contentDOM&&this.lineBreak();break}let o=fn.get(s);(r&&o?r.breakAfter:(r?r.breakAfter:Ut(n))||Ut(s)&&("BR"!=n.nodeName||(null==r?void 0:r.isWidget()))&&this.text.length>e)&&!Hn(s,t)&&this.lineBreak(),n=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let r,s=-1,o=1;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(r=n.exec(t))&&(s=r.index,o=r[0].length),this.append(t.slice(i,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);i=s+o}}readNode(e){let t=fn.get(e),i=t&&t.overrideDOMText;if(null!=i){this.findPointInside(e,i.length);for(let e=i.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Fn(e,i.node,i.offset)?t:0))}}function Fn(e,t,i){for(;;){if(!t||i<Ft(t))return!1;if(t==e)return!0;i=qt(t)+1,t=t.parentNode}}function Hn(e,t){let i;for(;e!=t&&e;e=e.nextSibling){let t=fn.get(e);if(!(null==t?void 0:t.isWidget()))return!1;t&&(i||(i=[])).push(t)}if(i)for(let e of i){let t=e.overrideDOMText;if(null==t?void 0:t.length)return!1}return!0}class Kn{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Jn{constructor(e,t,i,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:r,impreciseAnchor:s}=e.docView,o=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=er(e.docView.tile,t,i,0))){let t=r||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:s}=e.observer.selectionRange;return i&&(t.push(new Kn(i,n)),r==i&&s==n||t.push(new Kn(r,s))),t}(e),i=new Gn(t,e);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(e,t){if(0==e.length)return null;let i=e[0].pos,n=2==e.length?e[1].pos:i;return i>-1&&n>-1?K.single(i+t,n+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,i=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!Wt(e.contentDOM,t.focusNode)?o.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),n=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!Wt(e.contentDOM,t.anchorNode)?o.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport;if((Pt.ios||Pt.chrome)&&o.main.empty&&i!=n&&(a.from>0||a.to<e.state.doc.length)){let t=Math.min(i,n),r=Math.max(i,n),s=a.from-t,o=a.to-r;0!=s&&1!=s&&0!=t||0!=o&&-1!=o&&r!=e.state.doc.length||(i=0,n=e.state.doc.length)}if(e.inputState.composing>-1&&o.ranges.length>1)this.newSel=o.replaceRange(K.range(n,i));else if(e.lineWrapping&&n==i&&(!o.main.empty||o.main.head!=i)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(i,-1),n=0;t&&(n=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=K.create([K.cursor(i,n)])}else this.newSel=K.single(n,i)}}}function er(e,t,i,n){if(e.isComposite()){let r=-1,s=-1,o=-1,a=-1;for(let l=0,h=n,c=n;l<e.children.length;l++){let n=e.children[l],u=h+n.length;if(h<t&&u>i)return er(n,t,i,h);if(u>=t&&-1==r&&(r=l,s=h),h>i&&n.dom.parentNode==e.dom){o=l,a=c;break}c=u,h=u+n.breakAfter}return{from:s,to:a<0?n+e.length:a,startDOM:(r?e.children[r-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o<e.children.length&&o>=0?e.children[o].dom:null}}return e.isText()?{from:n,to:n+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function tr(e,t){let i,{newSel:n}=t,{state:r}=e,s=r.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:n}=t.bounds,a=s.from,l=null;(8===o||Pt.android&&t.text.length<n-e)&&(a=s.to,l="end");let h,c,u=r.doc.sliceString(e,n,Un);!s.empty&&s.from>=e&&s.to<=n&&(t.typeOver||u!=t.text)&&u.slice(0,s.from-e)==t.text.slice(0,s.from-e)&&u.slice(s.to-e)==t.text.slice(h=t.text.length-(u.length-(s.to-e)))?i={from:s.from,to:s.to,insert:P.of(t.text.slice(s.from-e,h).split(Un))}:(c=nr(u,t.text,a-e,l))&&(Pt.chrome&&13==o&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==Un+Un&&c.toB--,i={from:e+c.from,to:e+c.toA,insert:P.of(t.text.slice(c.from,c.toB).split(Un))})}else n&&(!e.hasFocus&&r.facet(Ni)||rr(n,s))&&(n=null);if(!i&&!n)return!1;if((Pt.mac||Pt.android)&&i&&i.from==i.to&&i.from==s.head-1&&/^\. ?$/.test(i.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==i.insert.length&&(n=K.single(n.main.anchor-1,n.main.head-1)),i={from:i.from,to:i.to,insert:P.of([i.insert.toString().replace("."," ")])}):r.doc.lineAt(s.from).to<s.to&&e.docView.lineHasWidget(s.to)&&e.inputState.insertingTextAt>Date.now()-50?i={from:s.from,to:s.to,insert:r.toText(e.inputState.insertingText)}:Pt.chrome&&i&&i.from==i.to&&i.from==s.head&&"\n "==i.insert.toString()&&e.lineWrapping&&(n&&(n=K.single(n.main.anchor-1,n.main.head-1)),i={from:s.from,to:s.to,insert:P.of([" "])}),i)return ir(e,i,n,o);if(n&&!rr(n,s)){let t=!1,i="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),i=e.inputState.lastSelectionOrigin,"select.pointer"==i&&(n=Wn(r.facet(nn).map(t=>t(e)),n))),e.dispatch({selection:n,scrollIntoView:t,userEvent:i}),!0}return!1}function ir(e,t,i,n=-1){if(Pt.ios&&e.inputState.flushIOSKey(t))return!0;let r=e.state.selection.main;if(Pt.android&&(t.to==r.to&&(t.from==r.from||t.from==r.from-1&&" "==e.state.sliceDoc(t.from,r.from))&&1==t.insert.length&&2==t.insert.lines&&oi(e.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&0==t.insert.length||8==n&&t.insert.length<t.to-t.from&&t.to>r.head)&&oi(e.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&0==t.insert.length&&oi(e.contentDOM,"Delete",46)))return!0;let s,o=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a=()=>s||(s=function(e,t,i){let n,r=e.state,s=r.selection.main,o=-1;if(t.from==t.to&&t.from<s.from||t.from>s.to){let i=t.from<s.from?-1:1,n=i<0?s.from:s.to,a=Bn(r.facet(nn).map(t=>t(e)),n,i);t.from==a&&(o=a)}if(o>-1)n={changes:t,selection:K.cursor(t.from+t.insert.length,-1)};else if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!i||i.main.empty&&i.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let i=s.from<t.from?r.sliceDoc(s.from,t.from):"",o=s.to>t.to?r.sliceDoc(t.to,s.to):"";n=r.replaceSelection(e.state.toText(i+t.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=r.changes(t),a=i&&i.main.to<=o.newLength?i.main:void 0;if(r.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=s.to+10&&t.to>=s.to-10){let l,h=e.state.sliceDoc(t.from,t.to),c=i&&jn(e,i.main.head);if(c){let e=t.insert.length-(t.to-t.from);l={from:c.from,to:c.to-e}}else l=e.state.doc.lineAt(s.head);let u=s.to-t.to;n=r.changeByRange(i=>{if(i.from==s.from&&i.to==s.to)return{changes:o,range:a||i.map(o)};let n=i.to-u,c=n-h.length;if(e.state.sliceDoc(c,n)!=h||n>=l.from&&c<=l.to)return{range:i};let f=r.changes({from:c,to:n,insert:t.insert}),d=i.to-s.to;return{changes:f,range:a?K.range(Math.max(0,a.anchor+d),Math.max(0,a.head+d)):i.map(f)}})}else n={changes:o,selection:a&&r.selection.replaceRange(a)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:a,scrollIntoView:!0})}(e,t,i));return e.state.facet(Xi).some(i=>i(e,t.from,t.to,o,a))||e.dispatch(a()),!0}function nr(e,t,i,n){let r=Math.min(e.length,t.length),s=0;for(;s<r&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==r&&e.length==t.length)return null;let o=e.length,a=t.length;for(;o>0&&a>0&&e.charCodeAt(o-1)==t.charCodeAt(a-1);)o--,a--;return"end"==n&&(i-=o+Math.max(0,s-Math.min(o,a))-s),o<s&&e.length<t.length?(s-=i<=s&&i>=o?s-i:0,a=s+(a-o),o=s):a<s&&(s-=i<=s&&i>=a?s-i:0,o=s+(o-a),a=s),{from:s,toA:o,toB:a}}function rr(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class sr{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Pt.safari&&e.contentDOM.addEventListener("input",()=>null),Pt.gecko&&function(e){Cr.has(e)||(Cr.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let i,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=fn.get(n))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e)))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let e of i.observers)e(this.view,t);for(let e of i.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=ar(e),i=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let r=!t[e].handlers.length,s=i[e];s&&r!=!s.handlers.length&&(n.removeEventListener(e,this.handleEvent),s=null),s||n.addEventListener(e,this.handleEvent,{passive:r})}for(let e in i)"scroll"==e||t[e]||n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&cr.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Pt.android&&Pt.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!Pt.ios||e.synthetic||e.altKey||e.metaKey||e.shiftKey||!((t=lr.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||hr.indexOf(e.key)>-1&&e.ctrlKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,oi(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!(!/^key/.test(e.type)||e.synthetic)&&(this.composing>0||!!(Pt.safari&&!Pt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function or(e,t){return(i,n)=>{try{return t.call(e,n,i)}catch(e){Di(i.state,e)}}}function ar(e){let t=Object.create(null);function i(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,n=e&&e.plugin.domEventHandlers,r=e&&e.plugin.domEventObservers;if(n)for(let e in n){let r=n[e];r&&i(e).handlers.push(or(t.value,r))}if(r)for(let e in r){let n=r[e];n&&i(e).observers.push(or(t.value,n))}}for(let e in dr)i(e).handlers.push(dr[e]);for(let e in pr)i(e).observers.push(pr[e]);return t}const lr=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],hr="dthko",cr=[16,17,18,20,91,92,224,225];function ur(e){return.7*Math.max(0,e)+8}class fr{constructor(e,t,i,n){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=ei(e.contentDOM),this.atoms=e.state.facet(nn).map(t=>t(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ze.allowMultipleSelections)&&function(e,t){let i=e.state.facet(Ai);return i.length?i[0](t):Pt.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:i}=e.state.selection;if(i.empty)return!1;let n=Bt(e.root);if(!n||0==n.rangeCount)return!0;let r=n.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let i=r[e];if(i.left<=t.clientX&&i.right>=t.clientX&&i.top<=t.clientY&&i.bottom>=t.clientY)return!0}return!1}(e,t)||1!=xr(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,n=0,r=0,s=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:o}=this.scrollParents.y.getBoundingClientRect());let a=an(this.view);e.clientX-a.left<=n+6?t=-ur(n-e.clientX):e.clientX+a.right>=s-6&&(t=ur(e.clientX-s)),e.clientY-a.top<=r+6?i=-ur(r-e.clientY):e.clientY+a.bottom>=o-6&&(i=ur(e.clientY-o)),this.setScrollSpeed(t,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=Wn(this.atoms,this.style.get(e,this.extend,this.multiple));!this.mustSelect&&i.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}const dr=Object.create(null),pr=Object.create(null),Or=Pt.ie&&Pt.ie_version<15||Pt.ios&&Pt.webkit_version<604;function gr(e,t,i){for(let n of e.facet(t))i=n(i,e);return i}function mr(e,t){t=gr(e.state,ji,t);let i,{state:n}=e,r=1,s=n.toText(t),o=s.lines==n.selection.ranges.length,a=null!=Qr&&n.selection.ranges.every(e=>e.empty)&&Qr==s.toString();if(a){let e=-1;i=n.changeByRange(i=>{let a=n.doc.lineAt(i.from);if(a.from==e)return{range:i};e=a.from;let l=n.toText((o?s.line(r++).text:t)+n.lineBreak);return{changes:{from:a.from,insert:l},range:K.cursor(i.from+l.length)}})}else i=o?n.changeByRange(e=>{let t=s.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:K.cursor(e.from+t.length)}}):n.replaceSelection(s);e.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function vr(e,t,i,n){if(1==n)return K.cursor(t,i);if(2==n)return function(e,t,i=1){let n=e.charCategorizer(t),r=e.doc.lineAt(t),s=t-r.from;if(0==r.length)return K.cursor(t);0==s?i=1:s==r.length&&(i=-1);let o=s,a=s;i<0?o=j(r.text,s,!1):a=j(r.text,s);let l=n(r.text.slice(o,a));for(;o>0;){let e=j(r.text,o,!1);if(n(r.text.slice(e,o))!=l)break;o=e}for(;a<r.length;){let e=j(r.text,a);if(n(r.text.slice(a,e))!=l)break;a=e}return K.range(o+r.from,a+r.from)}(e.state,t,i);{let n=e.docView.lineAt(t,i),r=e.state.doc.lineAt(n?n.posAtEnd:t),s=n?n.posAtStart:r.from,o=n?n.posAtEnd:r.to;return o<e.state.doc.length&&o==r.to&&o++,K.range(s,o)}}pr.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},pr.wheel=pr.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},dr.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),pr.touchstart=(e,t)=>{let i=e.inputState,n=t.targetTouches[0];i.lastTouchTime=Date.now(),n&&(i.lastTouchX=n.clientX,i.lastTouchY=n.clientY),i.setSelectionOrigin("select.pointer")},pr.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},dr.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let n of e.state.facet(Zi))if(i=n(e,t),i)break;if(i||0!=t.button||(i=function(e,t){let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),n=xr(t),r=e.state.selection;return{update(e){e.docChanged&&(i.pos=e.changes.mapPos(i.pos),r=r.map(e.changes))},get(t,s,o){let a,l=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),h=vr(e,l.pos,l.assoc,n);if(i.pos!=l.pos&&!s){let t=vr(e,i.pos,i.assoc,n),r=Math.min(t.from,h.from),s=Math.max(t.to,h.to);h=r<h.from?K.range(r,s,h.assoc):K.range(s,r,h.assoc)}return s?r.replaceRange(r.main.extend(h.from,h.to,h.assoc)):o&&1==n&&r.ranges.length>1&&(a=function(e,t){for(let i=0;i<e.ranges.length;i++){let{from:n,to:r}=e.ranges[i];if(n<=t&&r>=t)return K.create(e.ranges.slice(0,i).concat(e.ranges.slice(i+1)),e.mainIndex==i?0:e.mainIndex-(e.mainIndex>i?1:0))}return null}(r,l.pos))?a:o?r.addRange(h):K.create([h])}}}(e,t)),i){let n=!e.hasFocus;e.inputState.startMouseSelection(new fr(e,t,i,n)),n&&e.observer.ignore(()=>{ri(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};const yr=Pt.ie&&Pt.ie_version<=11;let wr=null,br=0,Sr=0;function xr(e){if(!yr)return e.detail;let t=wr,i=Sr;return wr=e,Sr=Date.now(),br=!t||i>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(br+1)%3:1}function kr(e,t,i,n){if(!(i=gr(e.state,ji,i)))return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,o=n&&s&&function(e,t){let i=e.state.facet(Ti);return i.length?i[0](t):Pt.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:s.from,to:s.to}:null,a={from:r,insert:i},l=e.state.changes(o?[o,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}dr.dragstart=(e,t)=>{let{selection:{main:i}}=e.state;if(t.target.draggable){let n=e.docView.tile.nearest(t.target);if(n&&n.isWidget()){let e=n.posAtStart,t=e+n.length;(e>=i.to||t<=i.from)&&(i=K.range(e,t))}}let{inputState:n}=e;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=i,t.dataTransfer&&(t.dataTransfer.setData("Text",gr(e.state,zi,e.state.sliceDoc(i.from,i.to))),t.dataTransfer.effectAllowed="copyMove"),!1},dr.dragend=e=>(e.inputState.draggedContent=null,!1),dr.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let i=t.dataTransfer.files;if(i&&i.length){let n=Array(i.length),r=0,s=()=>{++r==i.length&&kr(e,t,n.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<i.length;e++){let t=new FileReader;t.onerror=s,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),s()},t.readAsText(i[e])}return!0}{let i=t.dataTransfer.getData("Text");if(i)return kr(e,t,i,!0),!0}return!1},dr.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let i=Or?null:t.clipboardData;return i?(mr(e,i.getData("text/plain")||i.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{e.focus(),i.remove(),mr(e,i.value)},50)}(e),!1)};let Qr=null;dr.copy=dr.cut=(e,t)=>{if(!It(e.contentDOM,e.observer.selectionRange))return!1;let{text:i,ranges:n,linewise:r}=function(e){let t=[],i=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),i.push(n));if(!t.length){let r=-1;for(let{from:n}of e.selection.ranges){let s=e.doc.lineAt(n);s.number>r&&(t.push(s.text),i.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),r=s.number}n=!0}return{text:gr(e,zi,t.join(e.lineBreak)),ranges:i,linewise:n}}(e.state);if(!i&&!r)return!1;Qr=r?i:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=Or?null:t.clipboardData;return s?(s.clearData(),s.setData("text/plain",i),!0):(function(e,t){let i=e.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout(()=>{n.remove(),e.focus()},50)}(e,i),!1)};const $r=ke.define();function Pr(e,t){let i=[];for(let n of e.facet(Ei)){let r=n(e,t);r&&i.push(r)}return i.length?e.update({effects:i,annotations:$r.of(!0)}):null}function _r(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let i=Pr(e.state,t);i?e.dispatch(i):e.update([])}},10)}pr.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),_r(e)},pr.blur=e=>{e.observer.clearSelectionRange(),_r(e)},pr.compositionstart=pr.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},pr.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Pt.chrome&&Pt.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},pr.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},dr.beforeinput=(e,t)=>{var i,n;if("insertText"!=t.inputType&&"insertCompositionText"!=t.inputType||(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let n=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text/plain"),r=t.getTargetRanges();if(n&&r.length){let t=r[0],i=e.posAtDOM(t.startContainer,t.startOffset),s=e.posAtDOM(t.endContainer,t.endOffset);return ir(e,{from:i,to:s,insert:e.state.toText(n)},null),!0}}let r;if(Pt.chrome&&Pt.android&&(r=lr.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return Pt.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),Pt.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>pr.compositionend(e,t),20),!1};const Cr=new Set,Ar=["pre-wrap","normal","pre-line","break-spaces"];let Tr=!1;function Zr(){Tr=!1}class Mr{constructor(e){this.lineWrapping=e,this.doc=P.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Ar.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let n=e[i];n<0?i++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,i,n,r,s){let o=Ar.indexOf(e)>-1,a=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=i,this.textHeight=n,this.lineLength=r,a){this.heightSamples={};for(let e=0;e<s.length;e++){let t=s[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class Rr{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Xr{constructor(e,t,i,n,r){this.from=e,this.length=t,this.top=i,this.height=n,this._content=r}get type(){return"number"==typeof this._content?Rt.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof zt?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Xr(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Er=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Er||(Er={}));const jr=.001;class zr{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>jr&&(Tr=!0),this.height=e)}replace(e,t,i){return zr.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let r=this,s=i.doc;for(let o=n.length-1;o>=0;o--){let{fromA:a,toA:l,fromB:h,toB:c}=n[o],u=r.lineAt(a,Er.ByPosNoHeight,i.setDoc(t),0,0),f=u.to>=l?u:r.lineAt(l,Er.ByPosNoHeight,i,0,0);for(c+=f.to-l,l=f.to;o>0&&u.from<=n[o-1].toA;)a=n[o-1].fromA,h=n[o-1].fromB,o--,a<u.from&&(u=r.lineAt(a,Er.ByPosNoHeight,i,0,0));h+=u.from-a,a=u.from;let d=Nr.build(i.setDoc(s),e,h,c);r=Lr(r,r.replace(a,l,d))}return r.updateHeight(i,0)}static empty(){return new Br(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,i=e.length,n=0,r=0;for(;;)if(t==i)if(n>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),i+=1+r.break,n-=r.size}else{if(!(r>2*n))break;{let t=e[i];t.break?e.splice(i,1,t.left,null,t.right):e.splice(i,1,t.left,t.right),i+=2+t.break,r-=t.size}}else if(n<r){let i=e[t++];i&&(n+=i.size)}else{let t=e[--i];t&&(r+=t.size)}let s=0;return null==e[t-1]?(s=1,t--):null==e[t]&&(s=1,i++),new Ir(zr.of(e.slice(0,t)),s,zr.of(e.slice(i)))}}function Lr(e,t){return e==t?e:(e.constructor!=t.constructor&&(Tr=!0),t)}zr.prototype.size=1;const Yr=Xt.replace({});class Vr extends zr{constructor(e,t,i){super(e,t),this.deco=i,this.spaceAbove=0}mainBlock(e,t){return new Xr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,i,n){return this.spaceAbove&&e<i+this.spaceAbove?new Xr(n,0,i,this.spaceAbove,Yr):this.mainBlock(i,n)}lineAt(e,t,i,n,r){let s=this.mainBlock(n,r);return this.spaceAbove?this.blockAt(0,i,n,r).join(s):s}forEachLine(e,t,i,n,r,s){e<=r+this.length&&t>=r&&s(this.lineAt(0,Er.ByPos,i,n,r))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setMeasuredHeight(n),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Br extends Vr{constructor(e,t,i){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(e,t){return new Xr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,i){let n=i[0];return 1==i.length&&(n instanceof Br||n instanceof Wr&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof Wr?n=new Br(n.length,this.height,this.spaceAbove):n.height=this.height,this.outdated||(n.outdated=!1),n):zr.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setMeasuredHeight(n):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Wr extends zr{constructor(e){super(e,0)}heightMetrics(e,t){let i,n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,s=r-n+1,o=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*s);i=t/s,this.length>s+1&&(o=(this.height-t)/(this.length-s-1))}else i=this.height/s;return{firstLine:n,lastLine:r,perLine:i,perChar:o}}blockAt(e,t,i,n){let{firstLine:r,lastLine:s,perLine:o,perChar:a}=this.heightMetrics(t,n);if(t.lineWrapping){let r=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),s=t.doc.lineAt(r),l=o+s.length*a,h=Math.max(i,e-l/2);return new Xr(s.from,s.length,h,l,0)}{let n=Math.max(0,Math.min(s-r,Math.floor((e-i)/o))),{from:a,length:l}=t.doc.line(r+n);return new Xr(a,l,i+o*n,o,0)}}lineAt(e,t,i,n,r){if(t==Er.ByHeight)return this.blockAt(e,i,n,r);if(t==Er.ByPosNoHeight){let{from:t,to:n}=i.doc.lineAt(e);return new Xr(t,n-t,0,0,0)}let{firstLine:s,perLine:o,perChar:a}=this.heightMetrics(i,r),l=i.doc.lineAt(e),h=o+l.length*a,c=l.number-s,u=n+o*c+a*(l.from-r-c);return new Xr(l.from,l.length,Math.max(n,Math.min(u,n+this.height-h)),h,0)}forEachLine(e,t,i,n,r,s){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(i,r);for(let h=e,c=n;h<=t;){let t=i.doc.lineAt(h);if(h==e){let i=t.number-o;c+=a*i+l*(e-r-i)}let n=a+l*t.length;s(new Xr(t.from,t.length,c,n,0)),c+=n,h=t.to+1}}replace(e,t,i){let n=this.length-t;if(n>0){let e=i[i.length-1];e instanceof Wr?i[i.length-1]=new Wr(e.length+n):i.push(null,new Wr(n-1))}if(e>0){let t=i[0];t instanceof Wr?i[0]=new Wr(e+t.length):i.unshift(new Wr(e-1),null)}return zr.of(i)}decomposeLeft(e,t){t.push(new Wr(e-1),null)}decomposeRight(e,t){t.push(null,new Wr(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let r=t+this.length;if(n&&n.from<=t+this.length&&n.more){let i=[],s=Math.max(t,n.from),o=-1;for(n.from>t&&i.push(new Wr(n.from-t-1).updateHeight(e,t));s<=r&&n.more;){let t=e.doc.lineAt(s).length;i.length&&i.push(null);let r=n.heights[n.index++],a=0;r<0&&(a=-r,r=n.heights[n.index++]),-1==o?o=r:Math.abs(r-o)>=jr&&(o=-2);let l=new Br(t,r,a);l.outdated=!1,i.push(l),s+=t+1}s<=r&&i.push(null,new Wr(r-s).updateHeight(e,s));let a=zr.of(i);return(o<0||Math.abs(a.height-this.height)>=jr||Math.abs(o-this.heightMetrics(e,t).perLine)>=jr)&&(Tr=!0),Lr(this,a)}return(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Ir extends zr{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,t,i,n){let r=i+this.left.height;return e<r?this.left.blockAt(e,t,i,n):this.right.blockAt(e,t,r,n+this.left.length+this.break)}lineAt(e,t,i,n,r){let s=n+this.left.height,o=r+this.left.length+this.break,a=t==Er.ByHeight?e<s:e<o,l=a?this.left.lineAt(e,t,i,n,r):this.right.lineAt(e,t,i,s,o);if(this.break||(a?l.to<o:l.from>o))return l;let h=t==Er.ByPosNoHeight?Er.ByPosNoHeight:Er.ByPos;return a?l.join(this.right.lineAt(o,h,i,s,o)):this.left.lineAt(o,h,i,n,r).join(l)}forEachLine(e,t,i,n,r,s){let o=n+this.left.height,a=r+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,n,r,s),t>=a&&this.right.forEachLine(e,t,i,o,a,s);else{let l=this.lineAt(a,Er.ByPos,i,n,r);e<l.from&&this.left.forEachLine(e,l.from-1,i,n,r,s),l.to>=e&&l.from<=t&&s(l),t>l.to&&this.right.forEachLine(l.to+1,t,i,o,a,s)}}replace(e,t,i){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let r=[];e>0&&this.decomposeLeft(e,r);let s=r.length;for(let e of i)r.push(e);if(e>0&&Dr(r,s-1),t<this.length){let e=r.length;this.decomposeRight(t,r),Dr(r,e)}return zr.of(r)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?zr.of(this.break?[e,null,t]:[e,t]):(this.left=Lr(this.left,e),this.right=Lr(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:r,right:s}=this,o=t+r.length+this.break,a=null;return n&&n.from<=t+r.length&&n.more?a=r=r.updateHeight(e,t,i,n):r.updateHeight(e,t,i),n&&n.from<=o+s.length&&n.more?a=s=s.updateHeight(e,o,i,n):s.updateHeight(e,o,i),a?this.balanced(r,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Dr(e,t){let i,n;null==e[t]&&(i=e[t-1])instanceof Wr&&(n=e[t+1])instanceof Wr&&e.splice(t-1,3,new Wr(i.length+1+n.length))}class Nr{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Br?i.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Br(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let n=i.widget?i.widget.estimatedHeight:0,r=i.widget?i.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let s=t-e;i.block?this.addBlock(new Vr(s,n,i)):(s||r||n>=5)&&this.addLineDeco(n,r,s)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Br(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let i=new Wr(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Br)return e;let t=new Br(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Br||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Br(0,-1,0));let i=e;for(let e of this.nodes)e instanceof Br&&e.updateHeight(this.oracle,i),i+=e?e.length:1;return this.nodes}static build(e,t,i,n){let r=new Nr(i,e);return De.spans(t,i,n,r,0),r.finish(i)}}class qr{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,n){(e<t||i&&i.heightRelevant||n&&n.heightRelevant)&&Yt(e,t,this.changes,5)}}function Ur(e,t){let i=e.getBoundingClientRect(),n=e.ownerDocument,r=n.defaultView||window,s=Math.max(0,i.left),o=Math.min(r.innerWidth,i.right),a=Math.max(0,i.top),l=Math.min(r.innerHeight,i.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let i=t,n=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=n.overflow){let n=i.getBoundingClientRect();s=Math.max(s,n.left),o=Math.min(o,n.right),a=Math.max(a,n.top),l=Math.min(t==e.parentNode?r.innerHeight:l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?i.offsetParent:i.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:s-i.left,right:Math.max(s,o)-i.left,top:a-(i.top+t),bottom:Math.max(a,l)-(i.top+t)}}function Gr(e,t){let i=e.getBoundingClientRect();return{left:0,right:i.right-i.left,top:t,bottom:i.bottom-(i.top+t)}}class Fr{constructor(e,t,i,n){this.from=e,this.to=t,this.size=i,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],r=t[i];if(n.from!=r.from||n.to!=r.to||n.size!=r.size)return!1}return!0}draw(e,t){return Xt.replace({widget:new Hr(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Hr extends Mt{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Kr{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=is,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ui.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let i=t.facet(Ki).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new Mr(i),this.stateDeco=ns(t),this.heightMap=zr.empty().applyChanges(this.stateDeco,P.empty,this.heightOracle.setDoc(t.doc),[new hn(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Xt.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some(({from:e,to:t})=>n>=e&&n<=t)){let{from:t,to:i}=this.lineBlockAt(n);e.push(new Jr(t,i))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?is:new rs(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(ss(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=ns(this.state);let n=e.changedRanges,r=hn.extendWithRanges(n,function(e,t,i){let n=new qr;return De.compare(e,t,i,n,0),n.changes}(i,this.stateDeco,e?e.changes:I.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Zr(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=s||Tr)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=s);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let l=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(l||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Yi)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?ui.RTL:ui.LTR;let s=this.heightOracle.mustRefreshForWrapping(r)||"refresh"===this.mustMeasureContent,o=t.getBoundingClientRect(),a=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let l=0,h=0;if(o.width&&o.height){let{scaleX:e,scaleY:i}=Jt(t,o);(e>.005&&Math.abs(this.scaleX-e)>.005||i>.005&&Math.abs(this.scaleY-i)>.005)&&(this.scaleX=e,this.scaleY=i,l|=16,s=a=!0)}let c=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;this.paddingTop==c&&this.paddingBottom==u||(this.paddingTop=c,this.paddingBottom=u,l|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=16);let f=ei(this.view.contentDOM,!1).y;f!=this.scrollParent&&(this.scrollParent=f,this.scrollAnchorHeight=-1,this.scrollOffset=0);let d=this.getScrollOffset();this.scrollOffset!=d&&(this.scrollAnchorHeight=-1,this.scrollOffset=d),this.scrolledToBottom=ai(this.scrollParent||e.win);let p=(this.printing?Gr:Ur)(t,this.paddingTop),O=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),i=e.ownerDocument.defaultView||window;return t.left<i.innerWidth&&t.right>0&&t.top<i.innerHeight&&t.bottom>0}(e.dom))return 0;let v=o.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,l|=16),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(t)&&(s=!0),s||n.lineWrapping&&Math.abs(v-this.contentDOMWidth)>n.charWidth){let{lineHeight:i,charWidth:o,textHeight:a}=e.docView.measureTextSize();s=i>0&&n.refresh(r,i,o,a,Math.max(5,v/o),t),s&&(e.docView.minWidth=0,l|=16)}O>0&&g>0?h=Math.max(O,g):O<0&&g<0&&(h=Math.min(O,g)),Zr();for(let i of this.viewports){let r=i.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(i);this.heightMap=(s?zr.empty().applyChanges(this.stateDeco,P.empty,this.heightOracle,[new hn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,s,new Rr(i.from,r))}Tr&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),l|=this.updateForViewport()),(2&l||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,r=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,a=new Jr(n.lineAt(s-1e3*i,Er.ByHeight,r,0,0).from,n.lineAt(o+1e3*(1-i),Er.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let i,s=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=n.lineAt(e,Er.ByPos,r,0,0);i="center"==t.y?(o.top+o.bottom)/2-s/2:"start"==t.y||"nearest"==t.y&&e<a.from?o.top:o.bottom-s,a=new Jr(n.lineAt(i-500,Er.ByHeight,r,0,0).from,n.lineAt(i+s+500,Er.ByHeight,r,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new Jr(this.heightMap.lineAt(i,Er.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,Er.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,Er.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(t,Er.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:o}=this;return(0==e||n<=s-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||r>=o+Math.max(10,Math.min(i,250)))&&n>s-2e3&&r<o+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let n of e)t.touchesRange(n.from,n.to)||i.push(new Fr(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,n=i?1e4:2e3,r=n>>1,s=n<<1;if(this.defaultTextDirection!=ui.LTR&&!i)return[];let o=[],a=(n,s,l,h)=>{if(s-n<r)return;let c=this.state.selection.main,u=[c.from];c.empty||u.push(c.to);for(let e of u)if(e>n&&e<s)return a(n,e-10,l,h),void a(e+10,s,l,h);let f=function(e,t){for(let i of e)if(t(i))return i}(e,e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-n)<r&&Math.abs(e.to-s)<r&&!u.some(t=>e.from<t&&e.to>t));if(!f){if(s<l.to&&t&&i&&t.visibleRanges.some(e=>e.from<=s&&e.to>=s)){let e=t.moveToLineBoundary(K.cursor(s),!1,!0).head;e>n&&(s=e)}let e=this.gapSize(l,n,s,h);f=new Fr(n,s,e,i||e<2e6?e:2e6)}o.push(f)},l=t=>{if(t.length<s||t.type!=Rt.Text)return;let r=function(e,t,i){let n=[],r=e,s=0;return De.spans(i,e,t,{span(){},point(e,t){e>r&&(n.push({from:r,to:e}),s+=e-r),r=t}},20),r<t&&(n.push({from:r,to:t}),s+=t-r),{total:s,ranges:n}}(t.from,t.to,this.stateDeco);if(r.total<s)return;let o,l,h=this.scrollTarget?this.scrollTarget.range.head:null;if(i){let e,i,s=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=h){let n=ts(r,h),o=((this.visibleBottom-this.visibleTop)/2+s)/t.height;e=n-o,i=n+o}else e=(this.visibleTop-t.top-s)/t.height,i=(this.visibleBottom-t.top+s)/t.height;o=es(r,e),l=es(r,i)}else{let i=r.total*this.heightOracle.charWidth,s=n*this.heightOracle.charWidth,a=0;if(i>2e6)for(let i of e)i.from>=t.from&&i.from<t.to&&i.size!=i.displaySize&&i.from*this.heightOracle.charWidth+a<this.pixelViewport.left&&(a=i.size-i.displaySize);let c,u,f=this.pixelViewport.left+a,d=this.pixelViewport.right+a;if(null!=h){let e=ts(r,h),t=((d-f)/2+s)/i;c=e-t,u=e+t}else c=(f-s)/i,u=(d+s)/i;o=es(r,c),l=es(r,u)}o>t.from&&a(t.from,o,t,r),l<t.to&&a(l,t.to,t,r)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(l):l(e);return o}gapSize(e,t,i,n){let r=ts(n,i)-ts(n,t);return this.heightOracle.lineWrapping?e.height*r:n.total*this.heightOracle.charWidth*r}updateLineGaps(e){Fr.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Xt.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];De.spans(t,this.viewport.from,this.viewport.to,{span(e,t){i.push({from:e,to:t})},point(){}},20);let n=0;if(i.length!=this.visibleRanges.length)n=12;else for(let t=0;t<i.length&&!(8&n);t++){let r=this.visibleRanges[t],s=i[t];r.from==s.from&&r.to==s.to||(n|=4,e&&e.mapPos(r.from,-1)==s.from&&e.mapPos(r.to,1)==s.to||(n|=8))}return this.visibleRanges=i,n}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ss(this.heightMap.lineAt(e,Er.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||ss(this.heightMap.lineAt(this.scaler.fromDOM(e),Er.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ss(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Jr{constructor(e,t){this.from=e,this.to=t}}function es({total:e,ranges:t},i){if(i<=0)return t[0].from;if(i>=1)return t[t.length-1].to;let n=Math.floor(e*i);for(let e=0;;e++){let{from:i,to:r}=t[e],s=r-i;if(n<=s)return i+n;n-=s}}function ts(e,t){let i=0;for(let{from:n,to:r}of e.ranges){if(t<=r){i+=t-n;break}i+=r-n}return i/e.total}const is={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function ns(e){let t=e.facet(Ji).filter(e=>"function"!=typeof e),i=e.facet(tn).filter(e=>"function"!=typeof e);return i.length&&t.push(De.join(i)),t}class rs{constructor(e,t,i){let n=0,r=0,s=0;this.viewports=i.map(({from:i,to:r})=>{let s=t.lineAt(i,Er.ByPos,e,0,0).top,o=t.lineAt(r,Er.ByPos,e,0,0).bottom;return n+=o-s,{from:i,to:r,top:s,bottom:o,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports)e.domTop=s+(e.top-r)*this.scale,s=e.domBottom=e.domTop+(e.bottom-e.top),r=e.bottom}toDOM(e){for(let t=0,i=0,n=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return n+(e-i)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);i=r.bottom,n=r.domBottom}}fromDOM(e){for(let t=0,i=0,n=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return i+(e-n)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);i=r.bottom,n=r.domBottom}}eq(e){return e instanceof rs&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to)}}function ss(e,t){if(1==t.scale)return e;let i=t.toDOM(e.top),n=t.toDOM(e.bottom);return new Xr(e.from,e.length,i,n-i,Array.isArray(e._content)?e._content.map(e=>ss(e,t)):e._content)}const os=te.define({combine:e=>e.join(" ")}),as=te.define({combine:e=>e.indexOf(!0)>-1}),ls=at.newName(),hs=at.newName(),cs=at.newName(),us={"&light":"."+hs,"&dark":"."+cs};function fs(e,t,i){return new at(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!i||!i[t])throw new RangeError(`Unsupported selector: ${t}`);return i[t]}):e+" "+t})}const ds=fs("."+ls,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},us),ps={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Os=Pt.ie&&Pt.ie_version<=11;class gs{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new ti,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(Pt.ie&&Pt.ie_version<=11||Pt.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!Pt.android||!1===e.constructor.EDIT_CONTEXT||Pt.chrome&&Pt.chrome_version<126||(this.editContext=new ys(e),e.state.facet(Ni)&&(e.contentDOM.editContext=this.editContext.editContext)),Os&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(Ni)?i.root.activeElement!=this.dom:!It(this.dom,n))return;let r=n.anchorNode&&i.docView.tile.nearest(n.anchorNode);r&&r.isWidget()&&r.widget.ignoreEvent(e)?t||(this.selectionChanged=!1):(Pt.ie&&Pt.ie_version<=11||Pt.android&&Pt.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Nt(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Bt(e.root);if(!t)return!1;let i=Pt.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return vs(e,i)}let i=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),i=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),i?vs(e,i):null}(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let n=It(this.dom,i);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let i=t.focusNode,n=t.focusOffset;if(!i||t.anchorNode!=i||t.anchorOffset!=n)return!1;for(n=Math.min(n,Ft(i));;)if(n){if(1!=i.nodeType)return!1;let e=i.childNodes[n-1];"false"==e.contentEditable?n--:(i=e,n=Ft(i))}else{if(i==e)return!0;n=qt(i),i=i.parentNode}}(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(1==i.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else{if(11!=i.nodeType)break;i=i.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ps),Os&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Os&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&oi(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(i=this.delayedAndroidKey)||void 0===i?void 0:i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,n=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(n=!0),-1==t?({from:t,to:i}=e):(t=Math.min(e.from,t),i=Math.max(e.to,i)))}return{from:t,to:i,typeOver:n}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),n=this.selectionChanged&&It(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Jn(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,n=tr(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!rr(this.view.state.selection,t.newSel.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let i=ms(t,e.previousSibling||e.target.previousSibling,-1),n=ms(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ni)!=e.state.facet(Ni)&&(e.view.contentDOM.editContext=e.state.facet(Ni)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function ms(e,t,i){for(;t;){let n=fn.get(t);if(n&&n.parent==e)return n;let r=t.parentNode;t=r!=e.dom?r:i>0?t.nextSibling:t.previousSibling}return null}function vs(e,t){let i=t.startContainer,n=t.startOffset,r=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return Nt(o.node,o.offset,r,s)&&([i,n,r,s]=[r,s,i,n]),{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:s}}class ys{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let n=e.state.selection.main,{anchor:r,head:s}=n,o=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:o,drifted:!1});let l=a-o>i.text.length;o==this.from&&r<this.from?o=r:a==this.to&&r>this.to&&(a=r);let h=nr(e.state.sliceDoc(o,a),i.text,(l?n.from:n.to)-o,l?"end":null);if(!h){let t=K.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));return void(rr(t,n)||e.dispatch({selection:t,userEvent:"select"}))}let c={from:h.from+o,to:h.toA+o,insert:P.of(i.text.slice(h.from,h.toB).split("\n"))};if((Pt.mac||Pt.android)&&c.from==s-1&&/^\. ?$/.test(i.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(c={from:o,to:a,insert:P.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let t=this.to-this.from+(c.to-c.from+c.insert.length);ir(e,c,K.single(this.toEditorPos(i.selectionStart,t),this.toEditorPos(i.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),c.from<c.to&&!c.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let n=[],r=null;for(let t=this.toEditorPos(i.rangeStart),s=this.toEditorPos(i.rangeEnd);t<s;t++){let i=e.coordsForChar(t);r=i&&new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.top)||r||new DOMRect,n.push(r)}t.updateCharacterBounds(i.rangeStart,n)},this.handlers.textformatupdate=t=>{let i=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,n=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(n)){let r=this.toEditorPos(e.rangeStart),s=this.toEditorPos(e.rangeEnd);if(r<s){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(n)?1:2}px`;i.push(Xt.mark({attributes:{style:e}}).range(r,s))}}}e.dispatch({effects:Ii.of(Xt.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=Bt(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,n=this.pendingContextChange;return e.changes.iterChanges((r,s,o,a,l)=>{if(i)return;let h=l.length-(s-r);if(n&&s>=n.to){if(n.from==r&&n.to==s&&n.insert.eq(l))return n=this.pendingContextChange=null,t+=h,void(this.to+=h);n=null,this.revertPending(e.state)}if(r+=t,(s+=t)<=this.from)this.from+=h,this.to+=h;else if(r<this.to){if(r<this.from||s>this.to||this.to-this.from+l.length>3e4)return void(i=!0);this.editContext.updateText(this.toContextPos(r),this.toContextPos(s),l.toString()),this.to+=h}t+=h}),n&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);this.editContext.selectionStart==i&&this.editContext.selectionEnd==n||this.editContext.updateSelection(i,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ws{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(e=>e.forEach(e=>i(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Kr(this,e.state||ze.create(e)),e.scrollTo&&e.scrollTo.is(Wi)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ui).map(e=>new Fi(e));for(let e of this.plugins)e.update(this);this.observer=new gs(this),this.inputState=new sr(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Xn(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof _e?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,i=!1,n=!1,r=this.state;for(let t of e){if(t.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=t.state}if(this.destroyed)return void(this.viewState.state=r);let s=this.hasFocus,o=0,a=null;e.some(e=>e.annotation($r))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,a=Pr(r,s),a||(o=1));let l=this.observer.delayedAndroidKey,h=null;if(l?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(h=null)):this.observer.clear(),r.facet(ze.phrases)!=this.state.facet(ze.phrases))return this.setState(r);t=cn.create(this,r,e),t.flags|=o;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(c&&(c=c.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:i,y:n}=this.state.facet(ws.cursorScrollMargin);c=new Bi(e.empty?e:K.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",n,i)}for(let e of t.effects)e.is(Wi)&&(c=e.value.clip(this.state))}this.viewState.update(t,c),this.bidiCache=xs.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),i=this.docView.update(t),this.state.facet(ln)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(t.startState.facet(os)!=t.state.facet(os)&&(this.viewState.mustMeasureContent=!0),(i||n||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!t.empty)for(let e of this.state.facet(Ri))try{e(t)}catch(e){Di(this.state,e,"update listener")}(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!tr(this,h)&&l.force&&oi(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Kr(this,e),this.plugins=e.facet(Ui).map(e=>new Fi(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Xn(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ui),i=e.state.facet(Ui);if(t!=i){let n=[];for(let r of i){let i=t.indexOf(r);if(i<0)n.push(new Fi(r));else{let t=this.plugins[i];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){Di(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.viewState.scrollParent,n=this.viewState.getScrollOffset(),{scrollAnchorPos:r,scrollAnchorHeight:s}=this.viewState;Math.abs(n-this.viewState.scrollOffset)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(s<0)if(ai(i||this.win))r=-1,s=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(n);r=e.from,s=e.top}this.updateState=1;let o=this.viewState.measure();if(!o&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&o||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map(e=>{try{return e.read(this)}catch(e){return Di(this.state,e),Ss}}),h=cn.create(this,this.state,[]),c=!1;h.flags|=o,t?t.flags|=o:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),c=this.docView.update(h),c&&this.docViewUpdate());for(let e=0;e<a.length;e++)if(l[e]!=Ss)try{let t=a[e];t.write&&t.write(l[e],this)}catch(e){Di(this.state,e)}if(c&&this.docView.updateSelection(!0),!h.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}{let e=((r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-s)/this.scaleY;if((e>1||e<-1)&&(i==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){n+=e,i?i.scrollTop+=e:this.win.scrollBy(0,e),s=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Ri))e(t)}get themeClasses(){return ls+" "+(this.state.facet(as)?cs:hs)+" "+this.state.facet(os)}updateAttrs(){let e=ks(this,Hi,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ni)?"true":"false",class:"cm-content",style:`${Pt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ks(this,Ki,t);let i=this.observer.ignore(()=>{let i=Tt(this.contentDOM,this.contentAttrs,t),n=Tt(this.dom,this.editorAttrs,e);return i||n});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let e of i.effects)e.is(ws.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(ln);let e=this.state.facet(ws.cspNonce);at.mount(this.root,this.styleModules.concat(ds).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return In(this,e,Vn(this,e,t,i))}moveByGroup(e,t){return In(this,e,Vn(this,e,t,t=>function(e,t,i){let n=e.state.charCategorizer(t),r=n(i);return e=>{let t=n(e);return r==Xe.Space&&(r=t),r==t}}(this,e.head,t)))}visualLineSide(e,t){let i=this.bidiSpans(e),n=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return K.cursor(r.side(t,n)+e.from,r.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,i=!0){return function(e,t,i,n){let r=function(e,t,i){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){let e;for(let r of n.type){if(r.from>t)break;if(!(r.to<t)){if(r.from<t&&r.to>t)return r;e&&(r.type!=Rt.Text||e.type==r.type&&!(i<0?r.from<t:r.to>t))||(e=r)}}return e||n}return n}(e,t.head,t.assoc||-1),s=n&&r.type==Rt.Text&&(e.lineWrapping||r.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(r.from),o=e.posAtCoords({x:i==(n==ui.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=o)return K.cursor(o,i?-1:1)}return K.cursor(i?r.to:r.from,i?-1:1)}(this,e,t,i)}moveVertically(e,t,i){return In(this,e,function(e,t,i,n){let r=t.head,s=i?1:-1;if(r==(i?e.state.doc.length:0))return K.cursor(r,t.assoc);let o,a=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),h=e.coordsAtPos(r,t.assoc||((t.empty?i:t.head==t.from)?1:-1)),c=e.documentTop;if(h)null==a&&(a=h.left-l.left),o=s<0?h.top:h.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(r-t.from))),o=(s<0?t.top:t.bottom)+c}let u=l.left+a,f=e.viewState.heightOracle.textHeight>>1,d=null!=n?n:f;for(let t=0;;t+=f){let n=o+(d+t)*s,r=Nn(e,{x:u,y:n},!1,s);if(i?n>l.bottom:n<l.top)return K.cursor(r.pos,r.assoc);let h=e.coordsAtPos(r.pos,r.assoc),c=h?(h.top+h.bottom)/2:0;if(!h||(i?c>o:c<o))return K.cursor(r.pos,r.assoc,void 0,a)}}(this,e,t,i))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let i=Nn(this,e,t);return i&&i.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),Nn(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),r=this.bidiSpans(n);return Ht(i,r[bi.find(r,e-n.from,-1,t)].dir==ui.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Li)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>bs)return $i(e.length);let t,i=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==i&&(n.fresh||Si(n.isolates,t=sn(this,e))))return n.order;t||(t=sn(this,e));let n=function(e,t,i){if(!e)return[new bi(0,0,t==di?1:0)];if(t==fi&&!i.length&&!wi.test(e))return $i(e.length);if(i.length)for(;e.length>xi.length;)xi[xi.length]=256;let n=[],r=t==fi?0:1;return Qi(e,r,r,i,0,e.length,n),n}(e.text,i,t);return this.bidiCache.push(new xs(e.from,e.to,i,t,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Pt.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{ri(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var i,n,r,s;return Wi.of(new Bi("number"==typeof e?K.cursor(e):e,null!==(i=t.y)&&void 0!==i?i:"nearest",null!==(n=t.x)&&void 0!==n?n:"nearest",null!==(r=t.yMargin)&&void 0!==r?r:5,null!==(s=t.xMargin)&&void 0!==s?s:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Wi.of(new Bi(K.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Gi.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Gi.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=at.newName(),n=[os.of(i),ln.of(fs(`.${i}`,e))];return t&&t.dark&&n.push(as.of(!0)),n}static baseTheme(e){return ce.lowest(ln.of(fs("."+ls,e,us)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),n=i&&fn.get(i)||fn.get(e);return(null===(t=null==n?void 0:n.root)||void 0===t?void 0:t.view)||null}}ws.styleModule=ln,ws.inputHandler=Xi,ws.clipboardInputFilter=ji,ws.clipboardOutputFilter=zi,ws.scrollHandler=Vi,ws.focusChangeEffect=Ei,ws.perLineTextDirection=Li,ws.exceptionSink=Mi,ws.updateListener=Ri,ws.editable=Ni,ws.mouseSelectionStyle=Zi,ws.dragMovesSelection=Ti,ws.clickAddsSelectionRange=Ai,ws.decorations=Ji,ws.blockWrappers=en,ws.outerDecorations=tn,ws.atomicRanges=nn,ws.bidiIsolatedRanges=rn,ws.cursorScrollMargin=te.define({combine:e=>{let t=5,i=5;for(let n of e)"number"==typeof n?t=i=n:({x:t,y:i}=n);return{x:t,y:i}}}),ws.scrollMargins=on,ws.darkTheme=as,ws.cspNonce=te.define({combine:e=>e.length?e[0]:""}),ws.contentAttributes=Ki,ws.editorAttributes=Hi,ws.lineWrapping=ws.contentAttributes.of({class:"cm-lineWrapping"}),ws.announce=Pe.define();const bs=4096,Ss={};class xs{constructor(e,t,i,n,r,s){this.from=e,this.to=t,this.dir=i,this.isolates=n,this.fresh=r,this.order=s}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let i=[],n=e.length?e[e.length-1].dir:ui.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let s=e[r];s.dir!=n||t.touchesRange(s.from,s.to)||i.push(new xs(t.mapPos(s.from,1),t.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return i}}function ks(e,t,i){for(let n=e.state.facet(t),r=n.length-1;r>=0;r--){let t=n[r],s="function"==typeof t?t(e):t;s&&_t(s,i)}return i}const Qs=Pt.mac?"mac":Pt.windows?"win":Pt.linux?"linux":"key";function $s(e,t,i){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==i&&t.shiftKey&&(e="Shift-"+e),e}const Ps=ce.default(ws.domEventHandlers({keydown:(e,t)=>Xs(As(t.state),e,t,"editor")})),_s=te.define({enables:Ps}),Cs=new WeakMap;function As(e){let t=e.facet(_s),i=Cs.get(t);return i||Cs.set(t,i=function(e,t=Qs){let i=Object.create(null),n=Object.create(null),r=(e,t)=>{let i=n[e];if(null==i)n[e]=t;else if(i!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},s=(e,n,s,o,a)=>{var l,h;let c=i[e]||(i[e]=Object.create(null)),u=n.split(/ (?!$)/).map(e=>function(e,t){const i=e.split(/-(?!$)/);let n,r,s,o,a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;++e){const a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))s=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?o=!0:r=!0}}return n&&(a="Alt-"+a),r&&(a="Ctrl-"+a),o&&(a="Meta-"+a),s&&(a="Shift-"+a),a}(e,t));for(let t=1;t<u.length;t++){let i=u.slice(0,t).join(" ");r(i,!0),c[i]||(c[i]={preventDefault:!0,stopPropagation:!1,run:[t=>{let n=Zs={view:t,prefix:i,scope:e};return setTimeout(()=>{Zs==n&&(Zs=null)},Ms),!0}]})}let f=u.join(" ");r(f,!1);let d=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});s&&d.run.push(s),o&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=i[t]||(i[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=n;for(let t in e)e[t].run.push(e=>r(e,Rs))}let r=n[t]||n.key;if(r)for(let t of e)s(t,r,n.run,n.preventDefault,n.stopPropagation),n.shift&&s(t,"Shift-"+r,n.shift,n.preventDefault,n.stopPropagation)}return i}(t.reduce((e,t)=>e.concat(t),[]))),i}function Ts(e,t,i){return Xs(As(e.state),t,e,i)}let Zs=null;const Ms=4e3;let Rs=null;function Xs(e,t,i,n){Rs=t;let r=function(e){var t=!(ft&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||dt&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?ut:ct)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),s=Y(z(r,0))==r.length&&" "!=r,o="",a=!1,l=!1,h=!1;Zs&&Zs.view==i&&Zs.scope==n&&(o=Zs.prefix+" ",cr.indexOf(t.keyCode)<0&&(l=!0,Zs=null));let c,u,f=new Set,d=e=>{if(e){for(let t of e.run)if(!f.has(t)&&(f.add(t),t(i)))return e.stopPropagation&&(h=!0),!0;e.preventDefault&&(e.stopPropagation&&(h=!0),l=!0)}return!1},p=e[n];return p&&(d(p[o+$s(r,t,!s)])?a=!0:!s||!(t.altKey||t.metaKey||t.ctrlKey)||Pt.windows&&t.ctrlKey&&t.altKey||Pt.mac&&t.altKey&&!t.ctrlKey&&!t.metaKey||!(c=ct[t.keyCode])||c==r?s&&t.shiftKey&&d(p[o+$s(r,t,!0)])&&(a=!0):(d(p[o+$s(c,t,!0)])||t.shiftKey&&(u=ut[t.keyCode])!=r&&u!=c&&d(p[o+$s(u,t,!1)]))&&(a=!0),!a&&d(p._any)&&(a=!0)),l&&(a=!0),a&&h&&t.stopPropagation(),Rs=null,a}const Es=te.define({combine:e=>Le(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}),js=Xt.line({class:"cm-activeLine"}),zs=Gi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,i=[];for(let n of e.state.selection.ranges){let r=e.lineBlockAt(n.head);r.from>t&&(i.push(js.range(r.from)),t=r.from)}return Xt.set(i)}},{decorations:e=>e.decorations}),Ls=te.define({combine(e){let t,i;for(let n of e)t=t||n.topContainer,i=i||n.bottomContainer;return{topContainer:t,bottomContainer:i}}}),Ys=Gi.fromClass(class{constructor(e){this.input=e.state.facet(Ws),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(Ls);this.top=new Vs(e,!0,t.topContainer),this.bottom=new Vs(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(Ls);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Vs(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Vs(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=e.state.facet(Ws);if(i!=this.input){let t=i.filter(e=>e),n=[],r=[],s=[],o=[];for(let i of t){let t,a=this.specs.indexOf(i);a<0?(t=i(e.view),o.push(t)):(t=this.panels[a],t.update&&t.update(e)),n.push(t),(t.top?r:s).push(t)}this.specs=t,this.panels=n,this.top.sync(r),this.bottom.sync(s);for(let e of o)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>ws.scrollMargins.of(t=>{let i=t.plugin(e);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class Vs{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Bs(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Bs(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Bs(e){let t=e.nextSibling;return e.remove(),t}const Ws=te.define({enables:Ys});class Is extends Ye{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Is.prototype.elementClass="",Is.prototype.toDOM=void 0,Is.prototype.mapMode=B.TrackBefore,Is.prototype.startSide=Is.prototype.endSide=-1,Is.prototype.point=!0;const Ds=te.define(),Ns=te.define(),qs=te.define(),Us=te.define({combine:e=>e.some(e=>e)});function Gs(e){let t=[Fs];return e&&!1===e.fixed&&t.push(Us.of(!0)),t}const Fs=Gi.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(qs).map(t=>new eo(e,t)),this.fixed=!e.state.facet(Us);for(let e of this.gutters)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,i=e.view.viewport,n=Math.min(t.to,i.to)-Math.max(t.from,i.from);this.syncGutters(n<.8*(i.to-i.from))}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Us)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let i=De.iter(this.view.state.facet(Ds),this.view.viewport.from),n=[],r=this.gutters.map(e=>new Js(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let s of e.type)if(s.type==Rt.Text&&t){Ks(i,n,s.from);for(let e of r)e.line(this.view,s,n);t=!1}else if(s.widget)for(let e of r)e.widget(this.view,s)}else if(e.type==Rt.Text){Ks(i,n,e.from);for(let t of r)t.line(this.view,e,n)}else if(e.widget)for(let t of r)t.widget(this.view,e);for(let e of r)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(qs),i=e.state.facet(qs),n=e.docChanged||e.heightChanged||e.viewportChanged||!De.eq(e.startState.facet(Ds),e.state.facet(Ds),e.view.viewport.from,e.view.viewport.to);if(t==i)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let r=[];for(let n of i){let i=t.indexOf(n);i<0?r.push(new eo(this.view,n)):(this.gutters[i].update(e),r.push(this.gutters[i]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=r}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>ws.scrollMargins.of(t=>{let i=t.plugin(e);if(!i||0==i.gutters.length||!i.fixed)return null;let n=i.dom.offsetWidth*t.scaleX,r=i.domAfter?i.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==ui.LTR?{left:n,right:r}:{right:n,left:r}})});function Hs(e){return Array.isArray(e)?e:[e]}function Ks(e,t,i){for(;e.value&&e.from<=i;)e.from==i&&t.push(e.value),e.next()}class Js{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=De.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:n}=this,r=(t.top-this.height)/e.scaleY,s=t.height/e.scaleY;if(this.i==n.elements.length){let t=new to(e,s,r,i);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,s,r,i);this.height=t.bottom,this.i++}line(e,t,i){let n=[];Ks(this.cursor,n,t.from),i.length&&(n=n.concat(i));let r=this.gutter.config.lineMarker(e,t,n);r&&n.unshift(r);let s=this.gutter;(0!=n.length||s.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),n=i?[i]:null;for(let i of e.state.facet(Ns)){let r=i(e,t.widget,t);r&&(n||(n=[])).push(r)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class eo{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,n=>{let r,s=n.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let e=s.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=n.clientY;let o=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[i](e,o,n)&&n.preventDefault()});this.markers=Hs(t.markers(e)),t.initialSpacer&&(this.spacer=new to(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Hs(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let i=e.view.viewport;return!De.eq(this.markers,t,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class to{constructor(e,t,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,n)}update(e,t,i,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].compare(t[i]))return!1;return!0}(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,s=0;;){let o=s,a=r<t.length?t[r++]:null,l=!1;if(a){let e=a.elementClass;e&&(i+=" "+e);for(let e=s;e<this.markers.length;e++)if(this.markers[e].compare(a)){o=e,l=!0;break}}else o=this.markers.length;for(;s<o;){let e=this.markers[s++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!a)break;a.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(a.toDOM(e),n)),l&&s++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}const io=te.define(),no=te.define(),ro=te.define({combine:e=>Le(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let e in t){let n=i[e],r=t[e];i[e]=n?(e,t,i)=>n(e,t,i)||r(e,t,i):r}return i}})});class so extends Is{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function oo(e,t){return e.state.facet(ro).formatNumber(t,e.state)}const ao=qs.compute([ro],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(io),lineMarker:(e,t,i)=>i.some(e=>e.toDOM)?null:new so(oo(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,i)=>{for(let n of e.state.facet(no)){let r=n(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(ro)!=e.state.facet(ro),initialSpacer:e=>new so(oo(e,ho(e.state.doc.lines))),updateSpacer(e,t){let i=oo(t.view,ho(t.view.state.doc.lines));return i==e.number?e:new so(i)},domEventHandlers:e.facet(ro).domEventHandlers,side:"before"}));function lo(e={}){return[ro.of(e),Gs(),ao]}function ho(e){let t=9;for(;t<e;)t=10*t+9;return t}const co=1024;let uo=0;class fo{constructor(e,t){this.from=e,this.to=t}}class po{constructor(e={}){this.id=uo++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=mo.match(e)),t=>{let i=e(t);return void 0===i?null:[this,i]}}}po.closedBy=new po({deserialize:e=>e.split(" ")}),po.openedBy=new po({deserialize:e=>e.split(" ")}),po.group=new po({deserialize:e=>e.split(" ")}),po.isolate=new po({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),po.contextHash=new po({perNode:!0}),po.lookAhead=new po({perNode:!0}),po.mounted=new po({perNode:!0});class Oo{constructor(e,t,i,n=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=n}static get(e){return e&&e.props&&e.props[po.mounted.id]}}const go=Object.create(null);class mo{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):go,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new mo(e.name||"",t,e.id,i);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(po.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return e=>{for(let i=e.prop(po.group),n=-1;n<(i?i.length:0);n++){let r=t[n<0?e.name:i[n]];if(r)return r}}}}mo.none=new mo("",Object.create(null),0,8);class vo{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let n=null;for(let t of e){let e=t(i);if(e){n||(n=Object.assign({},i.props));let t=e[1],r=e[0];r.combine&&r.id in n&&(t=r.combine(n[r.id],t)),n[r.id]=t}}t.push(n?new mo(i.name,n,i.id,i.flags):i)}return new vo(t)}}const yo=new WeakMap,wo=new WeakMap;var bo;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays",e[e.EnterBracketed=16]="EnterBracketed"}(bo||(bo={}));class So{constructor(e,t,i,n,r){if(this.type=e,this.children=t,this.positions=i,this.length=n,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=Oo.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let i=e.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Xo(this.topNode,e)}cursorAt(e,t=0,i=0){let n=yo.get(this)||this.topNode,r=new Xo(n);return r.moveTo(e,t),yo.set(this,r._tree),r}get topNode(){return new _o(this,0,0,null)}resolve(e,t=0){let i=$o(yo.get(this)||this.topNode,e,t,!1);return yo.set(this,i),i}resolveInner(e,t=0){let i=$o(wo.get(this)||this.topNode,e,t,!0);return wo.set(this,i),i}resolveStack(e,t=0){return function(e,t,i){let n=e.resolveInner(t,i),r=null;for(let e=n instanceof _o?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(r||(r=[n])).push(s.resolve(t,i)),e=s}else{let s=Oo.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new _o(s.tree,s.overlay[0].from+e.from,-1,e);(r||(r=[n])).push($o(o,t,i,!1))}}return r?Mo(r):n}(this,e,t)}iterate(e){let{enter:t,leave:i,from:n=0,to:r=this.length}=e,s=e.mode||0,o=(s&bo.IncludeAnonymous)>0;for(let e=this.cursor(s|bo.IncludeAnonymous);;){let s=!1;if(e.from<=r&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&i&&(o||!e.type.isAnonymous)&&i(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Lo(mo.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,i)=>new So(this.type,e,t,i,this.propValues),e.makeTree||((e,t,i)=>new So(mo.none,e,t,i)))}static build(e){return function(e){var t;let{buffer:i,nodeSet:n,maxBufferLength:r=co,reused:s=[],minRepeatType:o=n.types.length}=e,a=Array.isArray(i)?new xo(i,i.length):i,l=n.types,h=0,c=0;function u(e,t,i,g,m,v){let{id:y,start:w,end:b,size:S}=a,x=c,k=h;if(S<0){if(a.next(),-1==S){let t=s[y];return i.push(t),void g.push(w-e)}if(-3==S)return void(h=y);if(-4==S)return void(c=y);throw new RangeError(`Unrecognized record size: ${S}`)}let Q,$,P=l[y],_=w-e;if(b-w<=r&&($=function(e,t){let i=a.fork(),n=0,s=0,l=0,h=i.end-r,c={size:0,start:0,skip:0};e:for(let r=i.pos-e;i.pos>r;){let e=i.size;if(i.id==t&&e>=0){c.size=n,c.start=s,c.skip=l,l+=4,n+=4,i.next();continue}let a=i.pos-e;if(e<0||a<r||i.start<h)break;let u=i.id>=o?4:0,f=i.start;for(i.next();i.pos>a;){if(i.size<0){if(-3!=i.size&&-4!=i.size)break e;u+=4}else i.id>=o&&(u+=4);i.next()}s=f,n+=e,l+=u}return(t<0||n==e)&&(c.size=n,c.start=s,c.skip=l),c.size>4?c:void 0}(a.pos-t,m))){let t=new Uint16Array($.size-$.skip),i=a.pos-$.size,r=t.length;for(;a.pos>i;)r=O($.start,t,r);Q=new ko(t,b-$.start,n),_=$.start-e}else{let e=a.pos-S;a.next();let t=[],i=[],n=y>=o?y:-1,s=0,l=b;for(;a.pos>e;)n>=0&&a.id==n&&a.size>=0?(a.end<=l-r&&(d(t,i,w,s,a.end,l,n,x,k),s=t.length,l=a.end),a.next()):v>2500?f(w,e,t,i):u(w,e,t,i,n,v+1);if(n>=0&&s>0&&s<t.length&&d(t,i,w,s,w,l,n,x,k),t.reverse(),i.reverse(),n>-1&&s>0){let e=function(e,t){return(i,n,r)=>{let s,o,a=0,l=i.length-1;if(l>=0&&(s=i[l])instanceof So){if(!l&&s.type==e&&s.length==r)return s;(o=s.prop(po.lookAhead))&&(a=n[l]+s.length+o)}return p(e,i,n,r,a,t)}}(P,k);Q=Lo(P,t,i,0,t.length,0,b-w,e,e)}else Q=p(P,t,i,b-w,x-b,k)}i.push(Q),g.push(_)}function f(e,t,i,s){let o=[],l=0,h=-1;for(;a.pos>t;){let{id:e,start:t,end:i,size:n}=a;if(n>4)a.next();else{if(h>-1&&t<h)break;h<0&&(h=i-r),o.push(e,t,i),l++,a.next()}}if(l){let t=new Uint16Array(4*l),r=o[o.length-2];for(let e=o.length-3,i=0;e>=0;e-=3)t[i++]=o[e],t[i++]=o[e+1]-r,t[i++]=o[e+2]-r,t[i++]=i;i.push(new ko(t,o[2]-r,n)),s.push(r-e)}}function d(e,t,i,r,s,o,a,l,h){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+i-s);e.push(p(n.types[a],c,u,o-s,l-o,h)),t.push(s-i)}function p(e,t,i,n,r,s,o){if(s){let e=[po.contextHash,s];o=o?[e].concat(o):[e]}if(r>25){let e=[po.lookAhead,r];o=o?[e].concat(o):[e]}return new So(e,t,i,n,o)}function O(e,t,i){let{id:n,start:r,end:s,size:l}=a;if(a.next(),l>=0&&n<o){let o=i;if(l>4){let n=a.pos-(l-4);for(;a.pos>n;)i=O(e,t,i)}t[--i]=o,t[--i]=s-e,t[--i]=r-e,t[--i]=n}else-3==l?h=n:-4==l&&(c=n);return i}let g=[],m=[];for(;a.pos>0;)u(e.start||0,e.bufferStart||0,g,m,-1,0);let v=null!==(t=e.length)&&void 0!==t?t:g.length?m[0]+g[0].length:0;return new So(l[e.topID],g.reverse(),m.reverse(),v)}(e)}}So.empty=new So(mo.none,[],[],0);class xo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new xo(this.buffer,this.index)}}class ko{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return mo.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],n=this.set.types[t],r=n.name;if(/\W/.test(r)&&!n.isError&&(r=JSON.stringify(r)),i==(e+=4))return r;let s=[];for(;e<i;)s.push(this.childString(e)),e=this.buffer[e+3];return r+"("+s.join(",")+")"}findChild(e,t,i,n,r){let{buffer:s}=this,o=-1;for(let a=e;a!=t&&!(Qo(r,n,s[a+1],s[a+2])&&(o=a,i>0));a=s[a+3]);return o}slice(e,t,i){let n=this.buffer,r=new Uint16Array(t-e),s=0;for(let o=e,a=0;o<t;){r[a++]=n[o++],r[a++]=n[o++]-i;let t=r[a++]=n[o++]-i;r[a++]=n[o++]-e,s=Math.max(s,t)}return new ko(r,s,this.set)}}function Qo(e,t,i,n){switch(e){case-2:return i<t;case-1:return n>=t&&i<t;case 0:return i<t&&n>t;case 1:return i<=t&&n>t;case 2:return n>t;case 4:return!0}}function $o(e,t,i,n){for(var r;e.from==e.to||(i<1?e.from>=t:e.from>t)||(i>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof _o&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:bo.IgnoreOverlays;if(n)for(let n=e,o=n.parent;o;n=o,o=n.parent)n instanceof _o&&n.index<0&&(null===(r=o.enter(t,i,s))||void 0===r?void 0:r.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,i,s);if(!n)return e;e=n}}class Po{cursor(e=0){return new Xo(this,e)}getChild(e,t=null,i=null){let n=Co(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return Co(this,e,t,i)}resolve(e,t=0){return $o(this,e,t,!1)}resolveInner(e,t=0){return $o(this,e,t,!0)}matchContext(e){return Ao(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(i=t,t=e.prevSibling):t=e}return i}get node(){return this}get next(){return this.parent}}class _o extends Po{constructor(e,t,i,n){super(),this._tree=e,this.from=t,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,n,r=0){for(let s=this;;){for(let{children:o,positions:a}=s._tree,l=t>0?o.length:-1;e!=l;e+=t){let l,h=o[e],c=a[e]+s.from;if(r&bo.EnterBracketed&&h instanceof So&&(l=Oo.get(h))&&!l.overlay&&l.bracketed&&i>=c&&i<=c+h.length||Qo(n,i,c,c+h.length))if(h instanceof ko){if(r&bo.ExcludeBuffers)continue;let o=h.findChild(0,h.buffer.length,t,i-c,n);if(o>-1)return new Zo(new To(s,h,e,c),null,o)}else if(r&bo.IncludeAnonymous||!h.type.isAnonymous||Eo(h)){let o;if(!(r&bo.IgnoreMounts)&&(o=Oo.get(h))&&!o.overlay)return new _o(o.tree,c,e,s);let a=new _o(h,c,e,s);return r&bo.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?h.children.length-1:0,t,i,n,r)}}if(r&bo.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,i=0){let n;if(!(i&bo.IgnoreOverlays)&&(n=Oo.get(this._tree))&&n.overlay){let r=e-this.from,s=i&bo.EnterBracketed&&n.bracketed;for(let{from:e,to:i}of n.overlay)if((t>0||s?e<=r:e<r)&&(t<0||s?i>=r:i>r))return new _o(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Co(e,t,i,n){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=i)for(let e=!1;!e;)if(e=r.type.is(i),!r.nextSibling())return s;for(;;){if(null!=n&&r.type.is(n))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==n?s:[]}}function Ao(e,t,i=t.length-1){for(let n=e;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[i]&&t[i]!=n.name)return!1;i--}}return!0}class To{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class Zo extends Po{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new Zo(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,i=0){if(i&bo.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new Zo(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Zo(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Zo(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let s=i.buffer[this.index+1];e.push(i.slice(n,r,s)),t.push(0)}return new So(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Mo(e){if(!e.length)return null;let t=0,i=e[0];for(let n=1;n<e.length;n++){let r=e[n];(r.from>i.from||r.to<i.to)&&(i=r,t=n)}let n=i instanceof _o&&i.index<0?null:i.parent,r=e.slice();return n?r[t]=n:r.splice(t,1),new Ro(r,i)}class Ro{constructor(e,t){this.heads=e,this.node=t}get next(){return Mo(this.heads)}}class Xo{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~bo.EnterBracketed,e instanceof _o)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof _o?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?!(i&bo.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&bo.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&bo.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let e=i<0?0:this.stack[i]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(e)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:i}=n)}else({index:t,_parent:i}=this._tree);for(;i;({index:t,_parent:i}=i))if(t>-1)for(let n=t+e,r=e<0?-1:i._tree.children.length;n!=r;n+=e){let e=i._tree.children[n];if(this.mode&bo.IncludeAnonymous||e instanceof ko||!e.type.isAnonymous||Eo(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,r=this.stack.length;r>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,i=r+1;break e}n=this.stack[--r]}for(let e=i;e<this.stack.length;e++)t=new Zo(this.buffer,t,this.stack[e]);return this.bufferNode=new Zo(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return Ao(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let n=e.length-1,r=this.stack.length-1;n>=0;r--){if(r<0)return Ao(this._tree,e,n);let s=i[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function Eo(e){return e.children.some(e=>e instanceof ko||!e.type.isAnonymous||Eo(e))}const jo=new WeakMap;function zo(e,t){if(!e.isAnonymous||t instanceof ko||t.type!=e)return 1;let i=jo.get(t);if(null==i){i=1;for(let n of t.children){if(n.type!=e||!(n instanceof So)){i=1;break}i+=zo(e,n)}jo.set(t,i)}return i}function Lo(e,t,i,n,r,s,o,a,l){let h=0;for(let i=n;i<r;i++)h+=zo(e,t[i]);let c=Math.ceil(1.5*h/8),u=[],f=[];return function t(i,n,r,o,a){for(let h=r;h<o;){let r=h,d=n[h],p=zo(e,i[h]);for(h++;h<o;h++){let t=zo(e,i[h]);if(p+t>=c)break;p+=t}if(h==r+1){if(p>c){let e=i[r];t(e.children,e.positions,0,e.children.length,n[r]+a);continue}u.push(i[r])}else{let t=n[h-1]+i[h-1].length-d;u.push(Lo(e,i,n,r,h,d,t,null,l))}f.push(d+a-s)}}(t,i,n,r,0),(a||l)(u,f,o)}class Yo{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof Zo?this.setBuffer(e.context.buffer,e.index,t):e instanceof _o&&this.map.set(e.tree,t)}get(e){return e instanceof Zo?this.getBuffer(e.context.buffer,e.index):e instanceof _o?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Vo{constructor(e,t,i,n,r=!1,s=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],i=!1){let n=[new Vo(0,e.length,e,0,!1,i)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let h=o<t.length?t[o]:null,c=h?h.fromA:1e9;if(c-a>=i)for(;s&&s.from<c;){let t=s;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,i=Math.min(t.to,c)-l;t=e>=i?null:new Vo(e,i,t.tree,t.offset+l,o>0,!!h)}if(t&&n.push(t),s.to>c)break;s=r<e.length?e[r++]:null}if(!h)break;a=h.toA,l=h.toA-h.toB}return n}}class Bo{startParse(e,t,i){return"string"==typeof e&&(e=new Wo(e)),i=i?i.length?i.map(e=>new fo(e.from,e.to)):[new fo(0,0)]:[new fo(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let e=n.advance();if(e)return e}}}class Wo{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class Io{constructor(e,t,i,n,r,s){this.parser=e,this.parse=t,this.overlay=i,this.bracketed=n,this.target=r,this.from=s}}function Do(e){if(!e.length||e.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class No{constructor(e,t,i,n,r,s,o,a){this.parser=e,this.predicate=t,this.mounts=i,this.index=n,this.start=r,this.bracketed=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const qo=new po({perNode:!0});class Uo{constructor(e,t,i,n,r){this.nest=t,this.input=i,this.fragments=n,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new So(e.type,e.children,e.positions,e.length,e.propValues.concat([[qo,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[po.mounted.id]=new Oo(t,e.overlay,e.parser,e.bracketed),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Jo(this.fragments),t=null,i=null,n=new Xo(new _o(this.baseTree,this.ranges[0].from,0,null),bo.IncludeAnonymous|bo.IgnoreMounts);e:for(let r,s;;){let o,a=!0;if(null!=this.stoppedAt&&n.from>=this.stoppedAt)a=!1;else if(e.hasNode(n)){if(t){let e=t.mounts.find(e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay);if(e)for(let i of e.mount.overlay){let r=i.from+e.pos,s=i.to+e.pos;r>=n.from&&s<=n.to&&!t.ranges.some(e=>e.from<s&&e.to>r)&&t.ranges.push({from:r,to:s})}}a=!1}else if(i&&(s=Go(i.ranges,n.from,n.to)))a=2!=s;else if(!n.type.isAnonymous&&(r=this.nest(n,this.input))&&(n.from<n.to||!r.overlay)){n.tree||(Ho(n),t&&t.depth++,i&&i.depth++);let s=e.findMounts(n.from,r.parser);if("function"==typeof r.overlay)t=new No(r.parser,r.overlay,s,this.inner.length,n.from,!!r.bracketed,n.tree,t);else{let e=ea(this.ranges,r.overlay||(n.from<n.to?[new fo(n.from,n.to)]:[]));e.length&&Do(e),!e.length&&r.overlay||this.inner.push(new Io(r.parser,e.length?r.parser.startParse(this.input,ia(s,e),e):r.parser.startParse(""),r.overlay?r.overlay.map(e=>new fo(e.from-n.from,e.to-n.from)):null,!!r.bracketed,n.tree,e.length?e[0].from:n.from)),r.overlay?e.length&&(i={ranges:e,depth:0,prev:i}):a=!1}}else if(t&&(o=t.predicate(n))&&(!0===o&&(o=new fo(n.from,n.to)),o.from<o.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==o.from?t.ranges[e]={from:t.ranges[e].from,to:o.to}:t.ranges.push(o)}if(a&&n.firstChild())t&&t.depth++,i&&i.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(t&&! --t.depth){let e=ea(this.ranges,t.ranges);e.length&&(Do(e),this.inner.splice(t.index,0,new Io(t.parser,t.parser.startParse(this.input,ia(t.mounts,e),e),t.ranges.map(e=>new fo(e.from-t.start,e.to-t.start)),t.bracketed,t.target,e[0].from))),t=t.prev}i&&! --i.depth&&(i=i.prev)}}}}function Go(e,t,i){for(let n of e){if(n.from>=i)break;if(n.to>t)return n.from<=t&&n.to>=i?2:1}return 0}function Fo(e,t,i,n,r,s){if(t<i){let o=e.buffer[t+1];n.push(e.slice(t,i,o)),r.push(o-s)}}function Ho(e){let{node:t}=e,i=[],n=t.context.buffer;do{i.push(e.index),e.parent()}while(!e.tree);let r=e.tree,s=r.children.indexOf(n),o=r.children[s],a=o.buffer,l=[s];r.children[s]=function e(n,r,s,h,c,u){let f=i[u],d=[],p=[];Fo(o,n,f,d,p,h);let O=a[f+1],g=a[f+2];l.push(d.length);let m=u?e(f+4,a[f+3],o.set.types[a[f]],O,g-O,u-1):t.toTree();return d.push(m),p.push(O-h),Fo(o,a[f+3],r,d,p,h),new So(s,d,p,c)}(0,a.length,mo.none,0,o.length,i.length-1);for(let t of l){let i=e.tree.children[t],n=e.tree.positions[t];e.yield(new _o(i,n+e.from,t,e._tree))}}class Ko{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(bo.IncludeAnonymous|bo.IgnoreMounts)}moveTo(e){let{cursor:t}=this,i=e-this.offset;for(;!this.done&&t.from<i;)if(t.to>=e&&t.enter(i,1,bo.IgnoreOverlays|bo.ExcludeBuffers));else{if(!(t.to<=e))break;t.next(!1)||(this.done=!0)}}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof So))break;t=t.children[0]}return!1}}class Jo{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=null!==(t=i.tree.prop(qo))&&void 0!==t?t:i.to,this.inner=new Ko(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(qo))&&void 0!==e?e:t.to,this.inner=new Ko(t.tree,-t.offset)}}findMounts(e,t){var i;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(i=e.tree)||void 0===i?void 0:i.prop(po.mounted);if(r&&r.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let i=this.fragments[t];if(i.from>=e.to)break;i.tree==this.curFrag.tree&&n.push({frag:i,pos:e.from-i.offset,mount:r})}}}return n}}function ea(e,t){let i=null,n=t;for(let r=1,s=0;r<e.length;r++){let o=e[r-1].to,a=e[r].from;for(;s<n.length;s++){let e=n[s];if(e.from>=a)break;e.to<=o||(i||(n=i=t.slice()),e.from<o?(i[s]=new fo(e.from,o),e.to>a&&i.splice(s+1,0,new fo(a,e.to))):e.to>a?i[s--]=new fo(a,e.to):i.splice(s--,1))}}return n}function ta(e,t,i,n){let r=0,s=0,o=!1,a=!1,l=-1e9,h=[];for(;;){let c=r==e.length?1e9:o?e[r].to:e[r].from,u=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let e=Math.max(l,i),t=Math.min(c,u,n);e<t&&h.push(new fo(e,t))}if(l=Math.min(c,u),1e9==l)break;c==l&&(o?(o=!1,r++):o=!0),u==l&&(a?(a=!1,s++):a=!0)}return h}function ia(e,t){let i=[];for(let{pos:n,mount:r,frag:s}of e){let e=n+(r.overlay?r.overlay[0].from:0),o=e+r.tree.length,a=Math.max(s.from,e),l=Math.min(s.to,o);if(r.overlay){let o=r.overlay.map(e=>new fo(e.from+n,e.to+n)),h=ta(t,o,a,l);for(let t=0,n=a;;t++){let o=t==h.length,a=o?l:h[t].from;if(a>n&&i.push(new Vo(n,a,r.tree,-e,s.from>=n||s.openStart,s.to<=a||s.openEnd)),o)break;n=h[t].to}}else i.push(new Vo(a,l,r.tree,-e,s.from>=e||s.openStart,s.to<=o||s.openEnd))}return i}let na=0;class ra{constructor(e,t,i,n){this.name=e,this.set=t,this.base=i,this.modified=n,this.id=na++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i="string"==typeof e?e:"?";if(e instanceof ra&&(t=e),null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let n=new ra(i,[],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new oa(e);return e=>e.modified.indexOf(t)>-1?e:oa.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let sa=0;class oa{constructor(e){this.name=e,this.instances=[],this.id=sa++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(i=>i.base==e&&function(e,t){return e.length==t.length&&e.every((e,i)=>e==t[i])}(t,i.modified));if(i)return i;let n=[],r=new ra(e.name,n,e,t);for(let e of t)e.instances.push(r);let s=function(e){let t=[[]];for(let i=0;i<e.length;i++)for(let n=0,r=t.length;n<r;n++)t.push(t[n].concat(e[i]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of s)n.push(oa.get(t,e));return r}}function aa(e){let t=Object.create(null);for(let i in e){let n=e[i];Array.isArray(n)||(n=[n]);for(let e of i.split(" "))if(e){let i=[],r=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){r=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!n)throw new RangeError("Invalid path: "+e);if(i.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),t+=n[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){r=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let o=i.length-1,a=i[o];if(!a)throw new RangeError("Invalid path: "+e);let l=new ha(n,r,o>0?i.slice(0,o):null);t[a]=l.sort(t[a])}}return la.add(t)}const la=new po({combine(e,t){let i,n,r;for(;e||t;){if(!e||t&&e.depth>=t.depth?(r=t,t=t.next):(r=e,e=e.next),i&&i.mode==r.mode&&!r.context&&!i.context)continue;let s=new ha(r.tags,r.mode,r.context);i?i.next=s:n=s,i=s}return n}});class ha{constructor(e,t,i,n){this.tags=e,this.mode=t,this.context=i,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function ca(e,t){let i=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)i[e.id]=t.class;else i[t.tag.id]=t.class;let{scope:n,all:r=null}=t||{};return{style:e=>{let t=r;for(let n of e)for(let e of n.set){let n=i[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function ua(e,t,i,n=0,r=e.length){let s=new fa(n,Array.isArray(t)?t:[t],i);s.highlightRange(e.cursor(),n,r,"",s.highlighters),s.flush(r)}ha.empty=new ha([],2,null);class fa{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,n,r){let{type:s,from:o,to:a}=e;if(o>=i||a<=t)return;s.isTop&&(r=this.highlighters.filter(e=>!e.scope||e.scope(s)));let l=n,h=function(e){let t=e.type.prop(la);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||ha.empty,c=function(e,t){let i=null;for(let n of e){let e=n.style(t);e&&(i=i?i+" "+e:e)}return i}(r,h.tags);if(c&&(l&&(l+=" "),l+=c,1==h.mode&&(n+=(n?" ":"")+c)),this.startSpan(Math.max(t,o),l),h.opaque)return;let u=e.tree&&e.tree.prop(po.mounted);if(u&&u.overlay){let s=e.node.enter(u.overlay[0].from+o,1),h=this.highlighters.filter(e=>!e.scope||e.scope(u.tree.type)),c=e.firstChild();for(let f=0,d=o;;f++){let p=f<u.overlay.length?u.overlay[f]:null,O=p?p.from+o:a,g=Math.max(t,d),m=Math.min(i,O);if(g<m&&c)for(;e.from<m&&(this.highlightRange(e,g,m,n,r),this.startSpan(Math.min(m,e.to),l),!(e.to>=O)&&e.nextSibling()););if(!p||O>i)break;d=p.to+o,d>t&&(this.highlightRange(s.cursor(),Math.max(t,p.from+o),Math.min(i,d),"",h),this.startSpan(Math.min(i,d),l))}c&&e.parent()}else if(e.firstChild()){u&&(n="");do{if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,n,r),this.startSpan(Math.min(i,e.to),l)}}while(e.nextSibling());e.parent()}}}const da=ra.define,pa=da(),Oa=da(),ga=da(Oa),ma=da(Oa),va=da(),ya=da(va),wa=da(va),ba=da(),Sa=da(ba),xa=da(),ka=da(),Qa=da(),$a=da(Qa),Pa=da(),_a={comment:pa,lineComment:da(pa),blockComment:da(pa),docComment:da(pa),name:Oa,variableName:da(Oa),typeName:ga,tagName:da(ga),propertyName:ma,attributeName:da(ma),className:da(Oa),labelName:da(Oa),namespace:da(Oa),macroName:da(Oa),literal:va,string:ya,docString:da(ya),character:da(ya),attributeValue:da(ya),number:wa,integer:da(wa),float:da(wa),bool:da(va),regexp:da(va),escape:da(va),color:da(va),url:da(va),keyword:xa,self:da(xa),null:da(xa),atom:da(xa),unit:da(xa),modifier:da(xa),operatorKeyword:da(xa),controlKeyword:da(xa),definitionKeyword:da(xa),moduleKeyword:da(xa),operator:ka,derefOperator:da(ka),arithmeticOperator:da(ka),logicOperator:da(ka),bitwiseOperator:da(ka),compareOperator:da(ka),updateOperator:da(ka),definitionOperator:da(ka),typeOperator:da(ka),controlOperator:da(ka),punctuation:Qa,separator:da(Qa),bracket:$a,angleBracket:da($a),squareBracket:da($a),paren:da($a),brace:da($a),content:ba,heading:Sa,heading1:da(Sa),heading2:da(Sa),heading3:da(Sa),heading4:da(Sa),heading5:da(Sa),heading6:da(Sa),contentSeparator:da(ba),list:da(ba),quote:da(ba),emphasis:da(ba),strong:da(ba),link:da(ba),monospace:da(ba),strikethrough:da(ba),inserted:da(),deleted:da(),changed:da(),invalid:da(),meta:Pa,documentMeta:da(Pa),annotation:da(Pa),processingInstruction:da(Pa),definition:ra.defineModifier("definition"),constant:ra.defineModifier("constant"),function:ra.defineModifier("function"),standard:ra.defineModifier("standard"),local:ra.defineModifier("local"),special:ra.defineModifier("special")};for(let e in _a){let t=_a[e];t instanceof ra&&(t.name=e)}var Ca;ca([{tag:_a.link,class:"tok-link"},{tag:_a.heading,class:"tok-heading"},{tag:_a.emphasis,class:"tok-emphasis"},{tag:_a.strong,class:"tok-strong"},{tag:_a.keyword,class:"tok-keyword"},{tag:_a.atom,class:"tok-atom"},{tag:_a.bool,class:"tok-bool"},{tag:_a.url,class:"tok-url"},{tag:_a.labelName,class:"tok-labelName"},{tag:_a.inserted,class:"tok-inserted"},{tag:_a.deleted,class:"tok-deleted"},{tag:_a.literal,class:"tok-literal"},{tag:_a.string,class:"tok-string"},{tag:_a.number,class:"tok-number"},{tag:[_a.regexp,_a.escape,_a.special(_a.string)],class:"tok-string2"},{tag:_a.variableName,class:"tok-variableName"},{tag:_a.local(_a.variableName),class:"tok-variableName tok-local"},{tag:_a.definition(_a.variableName),class:"tok-variableName tok-definition"},{tag:_a.special(_a.variableName),class:"tok-variableName2"},{tag:_a.definition(_a.propertyName),class:"tok-propertyName tok-definition"},{tag:_a.typeName,class:"tok-typeName"},{tag:_a.namespace,class:"tok-namespace"},{tag:_a.className,class:"tok-className"},{tag:_a.macroName,class:"tok-macroName"},{tag:_a.propertyName,class:"tok-propertyName"},{tag:_a.operator,class:"tok-operator"},{tag:_a.comment,class:"tok-comment"},{tag:_a.meta,class:"tok-meta"},{tag:_a.invalid,class:"tok-invalid"},{tag:_a.punctuation,class:"tok-punctuation"}]);const Aa=new po;function Ta(e){return te.define({combine:e?t=>t.concat(e):void 0})}const Za=new po;class Ma{constructor(e,t,i=[],n=""){this.data=e,this.name=n,ze.prototype.hasOwnProperty("tree")||Object.defineProperty(ze.prototype,"tree",{get(){return Ea(this)}}),this.parser=t,this.extension=[Na.of(this),ze.languageData.of((e,t,i)=>{let n=Ra(e,t,i),r=n.type.prop(Aa);if(!r)return[];let s=e.facet(r),o=n.type.prop(Za);if(o){let r=n.resolve(t-n.from,i);for(let t of o)if(t.test(r,e)){let i=e.facet(t.facet);return"replace"==t.type?i:i.concat(s)}}return s})].concat(i)}isActiveAt(e,t,i=-1){return Ra(e,t,i).type.prop(Aa)==this.data}findRegions(e){let t=e.facet(Na);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(e,t)=>{if(e.prop(Aa)==this.data)return void i.push({from:t,to:t+e.length});let r=e.prop(po.mounted);if(r){if(r.tree.prop(Aa)==this.data){if(r.overlay)for(let e of r.overlay)i.push({from:e.from+t,to:e.to+t});else i.push({from:t,to:t+e.length});return}if(r.overlay){let e=i.length;if(n(r.tree,r.overlay[0].from+t),i.length>e)return}}for(let i=0;i<e.children.length;i++){let r=e.children[i];r instanceof So&&n(r,e.positions[i]+t)}};return n(Ea(e),0),i}get allowsNesting(){return!0}}function Ra(e,t,i){let n=e.facet(Na),r=Ea(e).topNode;if(!n||n.allowsNesting)for(let e=r;e;e=e.enter(t,i,bo.ExcludeBuffers|bo.EnterBracketed))e.type.isTop&&(r=e);return r}Ma.setState=Pe.define();class Xa extends Ma{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){let t=Ta(e.languageData);return new Xa(t,e.parser.configure({props:[Aa.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new Xa(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ea(e){let t=e.field(Ma.state,!1);return t?t.tree:So.empty}function ja(e,t,i=50){var n;let r=null===(n=e.field(Ma.state,!1))||void 0===n?void 0:n.context;if(!r)return null;let s=r.viewport;r.updateViewport({from:0,to:t});let o=r.isDone(t)||r.work(i,t)?r.tree:null;return r.updateViewport(s),o}class za{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let La=null;class Ya{constructor(e,t,i=[],n,r,s,o,a){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Ya(e,t,[],So.empty,0,i,[],null)}startParse(){return this.parser.startParse(new za(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=So.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(Vo.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(i=this.parse.stoppedAt)&&void 0!==i?i:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Vo.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=La;La=this;try{return e()}finally{La=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Va(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:r,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,i,n,r)=>t.push({fromA:e,toA:i,fromB:n,toB:r})),i=Vo.applyChanges(i,t),n=So.empty,r=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){o=[];for(let t of this.skipped){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);i<n&&o.push({from:i,to:n})}}}return new Ya(this.parser,t,i,n,r,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:i,to:n}=this.skipped[t];i<e.to&&n>e.from&&(this.fragments=Va(this.fragments,i,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Bo{createParse(t,i,n){let r=n[0].from,s=n[n.length-1].to,o={parsedPos:r,advance(){let t=La;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new So(mo.none,[],[],s-r)},stoppedAt:null,stopAt(){}};return o}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return La}}function Va(e,t,i){return Vo.applyChanges(e,[{fromA:t,toA:i,fromB:t,toB:i}])}class Ba{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Ba(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Ya.create(e.facet(Na).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Ba(i)}}Ma.state=le.define({create:Ba.init,update(e,t){for(let e of t.effects)if(e.is(Ma.setState))return e.value;return t.startState.facet(Na)!=t.state.facet(Na)?Ba.init(t.state):e.apply(t)}});let Wa=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Wa=e=>{let t=-1,i=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(i):cancelIdleCallback(t)});const Ia="undefined"!=typeof navigator&&(null===(Ca=navigator.scheduling)||void 0===Ca?void 0:Ca.isInputPending)?()=>navigator.scheduling.isInputPending():null,Da=Gi.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ma.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ma.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Wa(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:n}}=this.view,r=i.field(Ma.state);if(r.tree==r.context.tree&&r.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!Ia?Math.max(25,e.timeRemaining()-5):1e9),o=r.context.treeLen<n&&i.doc.length>n+1e3,a=r.context.work(()=>Ia&&Ia()||Date.now()>s,n+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ma.setState.of(new Ba(r.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Di(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Na=te.define({combine:e=>e.length?e[0]:null,enables:e=>[Ma.state,Da,ws.contentAttributes.compute([e],t=>{let i=t.facet(e);return i&&i.name?{"data-language":i.name}:{}})]});class qa{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Ua=te.define(),Ga=te.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Fa(e){let t=e.facet(Ga);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Ha(e,t){let i="",n=e.tabSize,r=e.facet(Ga)[0];if("\t"==r){for(;t>=n;)i+="\t",t-=n;r=" "}for(let e=0;e<t;e++)i+=r;return i}function Ka(e,t){e instanceof ze&&(e=new Ja(e));for(let i of e.state.facet(Ua)){let n=i(e,t);if(void 0!==n)return n}let i=Ea(e.state);return i.length>=t?function(e,t,i){let n=t.resolveStack(i),r=t.resolveInner(i,-1).resolve(i,0).enterUnfinishedNodesBefore(i);if(r!=n.node){let e=[];for(let t=r;t&&!(t.from<n.node.from||t.to>n.node.to||t.from==n.node.from&&t.type==n.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return tl(n,e,i)}(e,i,t):null}class Ja{constructor(e,t={}){this.state=e,this.options=t,this.unit=Fa(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:r}=this.options;return null!=n&&n>=i.from&&n<=i.to?r&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:i.text.slice(n-i.from),from:n}:{text:i.text.slice(0,n-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:n}=this.lineAt(e,t);return i.slice(e-n,Math.min(i.length,e+100-n))}column(e,t=1){let{text:i,from:n}=this.lineAt(e,t),r=this.countColumn(i,e-n),s=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return s>-1&&(r+=s-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return nt(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:n}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(n);if(e>-1)return e}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const el=new po;function tl(e,t,i){for(let n=e;n;n=n.next){let e=il(n.node);if(e)return e(rl.create(t,i,n))}return 0}function il(e){let t=e.type.prop(el);if(t)return t;let i,n=e.firstChild;if(n&&(i=n.type.prop(po.closedBy))){let t=e.lastChild,n=t&&i.indexOf(t.name)>-1;return e=>al(e,!0,1,void 0,n&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?nl:null}function nl(){return 0}class rl extends Ja{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new rl(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(sl(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return tl(this.context.next,this.base,this.pos)}}function sl(e,t){for(let i=t;i;i=i.parent)if(e==i)return!0;return!1}function ol({closing:e,align:t=!0,units:i=1}){return n=>al(n,t,i,e)}function al(e,t,i,n,r){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=n&&s.slice(o,o+n.length)==n||r==e.pos+o,l=t?function(e){let t=e.node,i=t.childAfter(t.from),n=t.lastChild;if(!i)return null;let r=e.options.simulateBreak,s=e.state.doc.lineAt(i.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let e=i.to;;){let r=t.childAfter(e);if(!r||r==n)return null;if(!r.type.isSkipped){if(r.from>=o)return null;let e=/^ */.exec(s.text.slice(i.to-s.from))[0].length;return{from:i.from,to:i.to+e}}e=r.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*i)}function ll({except:e,units:t=1}={}){return i=>{let n=e&&e.test(i.textAfter);return i.baseIndent+(n?0:t*i.unit)}}const hl=te.define(),cl=new po;function ul(e){let t=e.firstChild,i=e.lastChild;return t&&t.to<i.from?{from:t.to,to:i.type.isError?e.to:i.from}:null}function fl(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function dl(e,t,i){for(let n of e.facet(hl)){let r=n(e,t,i);if(r)return r}return function(e,t,i){let n=Ea(e);if(n.length<i)return null;let r=null;for(let s=n.resolveStack(i,1);s;s=s.next){let o=s.node;if(o.to<=i||o.from>i)continue;if(r&&o.from<t)break;let a=o.type.prop(cl);if(a&&(o.to<n.length-50||n.length==e.doc.length||!fl(o))){let n=a(o,e);n&&n.from<=i&&n.from>=t&&n.to>i&&(r=n)}}return r}(e,t,i)}function pl(e,t){let i=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return i>=n?void 0:{from:i,to:n}}const Ol=Pe.define({map:pl}),gl=Pe.define({map:pl});const ml=le.define({create:()=>Xt.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,i)=>e=vl(e,t,i)),e=e.map(t.changes);for(let i of t.effects)if(i.is(Ol)&&!yl(e,i.value.from,i.value.to)){let{preparePlaceholder:n}=t.state.facet(xl),r=n?Xt.replace({widget:new $l(n(t.state,i.value))}):Ql;e=e.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(gl)&&(e=e.update({filter:(e,t)=>i.value.from!=e||i.value.to!=t,filterFrom:i.value.from,filterTo:i.value.to}));return t.selection&&(e=vl(e,t.selection.main.head)),e},provide:e=>ws.decorations.from(e),toJSON(e,t){let i=[];return e.between(0,t.doc.length,(e,t)=>{i.push(e,t)}),i},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let i=0;i<e.length;){let n=e[i++],r=e[i++];if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid JSON for fold state");t.push(Ql.range(n,r))}return Xt.set(t,!0)}});function vl(e,t,i=t){let n=!1;return e.between(t,i,(e,r)=>{e<i&&r>t&&(n=!0)}),n?e.update({filterFrom:t,filterTo:i,filter:(e,n)=>e>=i||n<=t}):e}function yl(e,t,i){let n=!1;return e.between(t,t,(e,r)=>{e==t&&r==i&&(n=!0)}),n}function wl(e,t){return e.field(ml,!1)?t:t.concat(Pe.appendConfig.of(function(e){let t=[ml,Pl];return e&&t.push(xl.of(e)),t}()))}function bl(e,t,i=!0){let n=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return ws.announce.of(`${e.state.phrase(i?"Folded lines":"Unfolded lines")} ${n} ${e.state.phrase("to")} ${r}.`)}const Sl={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xl=te.define({combine:e=>Le(e,Sl)});function kl(e,t){let{state:i}=e,n=i.facet(xl),r=t=>{let i=e.lineBlockAt(e.posAtDOM(t.target)),n=function(e,t,i){var n;let r=null;return null===(n=e.field(ml,!1))||void 0===n||n.between(t,i,(e,t)=>{(!r||r.from>e)&&(r={from:e,to:t})}),r}(e.state,i.from,i.to);n&&e.dispatch({effects:gl.of(n)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r,t);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",i.phrase("folded code")),s.title=i.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const Ql=Xt.replace({widget:new class extends Mt{toDOM(e){return kl(e,null)}}});class $l extends Mt{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return kl(e,this.value)}}const Pl=ws.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class _l{constructor(e,t){let i;function n(e){let t=at.newName();return(i||(i=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?n(t.all):void 0,s=t.scope;this.scope=s instanceof Ma?e=>e.prop(Aa)==s.data:s?e=>e==s:void 0,this.style=ca(e.map(e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))})),{all:r}).style,this.module=i?new at(i):null,this.themeType=t.themeType}static define(e,t){return new _l(e,t||{})}}const Cl=te.define(),Al=te.define({combine:e=>e.length?[e[0]]:null});function Tl(e){let t=e.facet(Cl);return t.length?t:e.facet(Al)}function Zl(e,t){let i,n=[Rl];return e instanceof _l&&(e.module&&n.push(ws.styleModule.of(e.module)),i=e.themeType),(null==t?void 0:t.fallback)?n.push(Al.of(e)):i?n.push(Cl.computeN([ws.darkTheme],t=>t.facet(ws.darkTheme)==("dark"==i)?[e]:[])):n.push(Cl.of(e)),n}class Ml{constructor(e){this.markCache=Object.create(null),this.tree=Ea(e.state),this.decorations=this.buildDeco(e,Tl(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Ea(e.state),i=Tl(e.state),n=i!=Tl(e.startState),{viewport:r}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<r.to&&!n&&t.type==this.tree.type&&s>=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return Xt.none;let i=new Ne;for(let{from:n,to:r}of e.visibleRanges)ua(this.tree,t,(e,t,n)=>{i.add(e,t,this.markCache[n]||(this.markCache[n]=Xt.mark({class:n})))},n,r);return i.finish()}}const Rl=ce.high(Gi.fromClass(Ml,{decorations:e=>e.decorations})),Xl=_l.define([{tag:_a.meta,color:"#404740"},{tag:_a.link,textDecoration:"underline"},{tag:_a.heading,textDecoration:"underline",fontWeight:"bold"},{tag:_a.emphasis,fontStyle:"italic"},{tag:_a.strong,fontWeight:"bold"},{tag:_a.strikethrough,textDecoration:"line-through"},{tag:_a.keyword,color:"#708"},{tag:[_a.atom,_a.bool,_a.url,_a.contentSeparator,_a.labelName],color:"#219"},{tag:[_a.literal,_a.inserted],color:"#164"},{tag:[_a.string,_a.deleted],color:"#a11"},{tag:[_a.regexp,_a.escape,_a.special(_a.string)],color:"#e40"},{tag:_a.definition(_a.variableName),color:"#00f"},{tag:_a.local(_a.variableName),color:"#30a"},{tag:[_a.typeName,_a.namespace],color:"#085"},{tag:_a.className,color:"#167"},{tag:[_a.special(_a.variableName),_a.macroName],color:"#256"},{tag:_a.definition(_a.propertyName),color:"#00c"},{tag:_a.comment,color:"#940"},{tag:_a.invalid,color:"#f00"}]),El=new po;function jl(e,t,i){let n=e.prop(t<0?po.openedBy:po.closedBy);if(n)return n;if(1==e.name.length){let n=i.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[i[n+t]]}return null}function zl(e){let t=e.type.prop(El);return t?t(e.node):e}function Ll(e,t,i,n={}){let r=n.maxScanDistance||1e4,s=n.brackets||"()[]{}",o=Ea(e),a=o.resolveInner(t,i);for(let e=a;e;e=e.parent){let n=jl(e.type,i,s);if(n&&e.from<e.to){let r=zl(e);if(r&&(i>0?t>=r.from&&t<r.to:t>r.from&&t<=r.to))return Yl(0,0,i,e,r,n,s)}}return function(e,t,i,n,r,s,o){if(i<0?!t:t==e.doc.length)return null;let a=i<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=i>0)return null;let h={from:i<0?t-1:t,to:i>0?t+1:t},c=e.doc.iterRange(t,i>0?e.doc.length:0),u=0;for(let e=0;!c.next().done&&e<=s;){let s=c.value;i<0&&(e+=s.length);let a=t+e*i;for(let e=i>0?0:s.length-1,t=i>0?s.length:-1;e!=t;e+=i){let t=o.indexOf(s[e]);if(!(t<0||n.resolveInner(a+e,1).type!=r))if(t%2==0==i>0)u++;else{if(1==u)return{start:h,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};u--}}i>0&&(e+=s.length)}return c.done?{start:h,matched:!1}:null}(e,t,i,o,a.type,r,s)}function Yl(e,t,i,n,r,s,o){let a=n.parent,l={from:r.from,to:r.to},h=0,c=null==a?void 0:a.cursor();if(c&&(i<0?c.childBefore(n.from):c.childAfter(n.to)))do{if(i<0?c.to<=n.from:c.from>=n.to){if(0==h&&s.indexOf(c.type.name)>-1&&c.from<c.to){let e=zl(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(jl(c.type,i,o))h++;else if(jl(c.type,-i,o)){if(0==h){let e=zl(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}h--}}}while(i<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function Vl(e,t,i,n=0,r=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let s=r;for(let r=n;r<t;r++)9==e.charCodeAt(r)?s+=i-s%i:s++;return s}const Bl=Object.create(null),Wl=[mo.none],Il=[],Dl=Object.create(null),Nl=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Nl[e]=Ul(Bl,t);function ql(e,t){Il.indexOf(e)>-1||(Il.push(e),console.warn(t))}function Ul(e,t){let i=[];for(let n of t.split(" ")){let t=[];for(let i of n.split(".")){let n=e[i]||_a[i];n?"function"==typeof n?t.length?t=t.map(n):ql(i,`Modifier ${i} used at start of tag`):t.length?ql(i,`Tag ${i} used as modifier`):t=Array.isArray(n)?n:[n]:ql(i,`Unknown highlighting tag ${i}`)}for(let e of t)i.push(e)}if(!i.length)return 0;let n=t.replace(/ /g,"_"),r=n+" "+i.map(e=>e.id),s=Dl[r];if(s)return s.id;let o=Dl[r]=mo.define({id:Wl.length,name:n,props:[aa({[n]:i})]});return Wl.push(o),o.id}function Gl(e,t){return({state:i,dispatch:n})=>{if(i.readOnly)return!1;let r=e(t,i);return!!r&&(n(i.update(r)),!0)}}ui.RTL,ui.LTR;const Fl=Gl(ih,0),Hl=Gl(th,0),Kl=Gl((e,t)=>th(e,t,function(e){let t=[];for(let i of e.selection.ranges){let n=e.doc.lineAt(i.from),r=i.to<=n.to?n:e.doc.lineAt(i.to);r.from>n.from&&r.from==i.to&&(r=i.to==n.to+1?n:e.doc.lineAt(i.to-1));let s=t.length-1;s>=0&&t[s].to>n.from?t[s].to=r.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return t}(t)),0);function Jl(e,t){let i=e.languageDataAt("commentTokens",t,1);return i.length?i[0]:{}}const eh=50;function th(e,t,i=t.selection.ranges){let n=i.map(e=>Jl(t,e.from).block);if(!n.every(e=>e))return null;let r=i.map((e,i)=>function(e,{open:t,close:i},n,r){let s,o,a=e.sliceDoc(n-eh,n),l=e.sliceDoc(r,r+eh),h=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,u=a.length-h;if(a.slice(u-t.length,u)==t&&l.slice(c,c+i.length)==i)return{open:{pos:n-h,margin:h&&1},close:{pos:r+c,margin:c&&1}};r-n<=2*eh?s=o=e.sliceDoc(n,r):(s=e.sliceDoc(n,n+eh),o=e.sliceDoc(r-eh,r));let f=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,p=o.length-d-i.length;return s.slice(f,f+t.length)==t&&o.slice(p,p+i.length)==i?{open:{pos:n+f+t.length,margin:/\s/.test(s.charAt(f+t.length))?1:0},close:{pos:r-d-i.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null}(t,n[i],e.from,e.to));if(2!=e&&!r.every(e=>e))return{changes:t.changes(i.map((e,t)=>r[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}]))};if(1!=e&&r.some(e=>e)){let e=[];for(let t,i=0;i<r.length;i++)if(t=r[i]){let r=n[i],{open:s,close:o}=t;e.push({from:s.pos-r.open.length,to:s.pos+s.margin},{from:o.pos-o.margin,to:o.pos+r.close.length})}return{changes:e}}return null}function ih(e,t,i=t.selection.ranges){let n=[],r=-1;e:for(let{from:e,to:s}of i){let i,o=n.length,a=1e9;for(let o=e;o<=s;){let l=t.doc.lineAt(o);if(null==i&&(i=Jl(t,l.from).line,!i))continue e;if(l.from>r&&(e==s||s>l.from)){r=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,s=l.text.slice(e,e+i.length)==i?e:-1;e<l.text.length&&e<a&&(a=e),n.push({line:l,comment:s,token:i,indent:e,empty:t,single:!1})}o=l.to+1}if(a<1e9)for(let e=o;e<n.length;e++)n[e].indent<n[e].line.text.length&&(n[e].indent=a);n.length==o+1&&(n[o].single=!0)}if(2!=e&&n.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:i,indent:r,empty:s,single:o}of n)!o&&s||e.push({from:t.from+r,insert:i+" "});let i=t.changes(e);return{changes:i,selection:t.selection.map(i,1)}}if(1!=e&&n.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:i,token:r}of n)if(i>=0){let n=t.from+i,s=n+r.length;" "==t.text[s-t.from]&&s++,e.push({from:n,to:s})}return{changes:e}}return null}const nh=ke.define(),rh=ke.define(),sh=te.define(),oh=te.define({combine:e=>Le(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,n)=>e(i,n)||t(i,n)})}),ah=le.define({create:()=>kh.empty,update(e,t){let i=t.state.facet(oh),n=t.annotation(nh);if(n){let r=ph.fromTransaction(t,n.selection),s=n.side,o=0==s?e.undone:e.done;return o=r?Oh(o,o.length,i.minDepth,r):yh(o,t.startState.selection),new kh(0==s?n.rest:o,0==s?o:n.rest)}let r=t.annotation(rh);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(_e.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=ph.fromTransaction(t),o=t.annotation(_e.time),a=t.annotation(_e.userEvent);return s?e=e.addChanges(s,o,a,i,t):t.selection&&(e=e.addSelection(t.startState.selection,o,a,i.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new kh(e.done.map(ph.fromJSON),e.undone.map(ph.fromJSON))});function lh(e={}){return[ah,oh.of(e),ws.domEventHandlers({beforeinput(e,t){let i="historyUndo"==e.inputType?ch:"historyRedo"==e.inputType?uh:null;return!!i&&(e.preventDefault(),i(t))}})]}function hh(e,t){return function({state:i,dispatch:n}){if(!t&&i.readOnly)return!1;let r=i.field(ah,!1);if(!r)return!1;let s=r.pop(e,i,t);return!!s&&(n(s),!0)}}const ch=hh(0,!1),uh=hh(1,!1),fh=hh(0,!0),dh=hh(1,!0);class ph{constructor(e,t,i,n,r){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=n,this.selectionsAfter=r}setSelAfter(e){return new ph(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new ph(e.changes&&I.fromJSON(e.changes),[],e.mapped&&W.fromJSON(e.mapped),e.startSelection&&K.fromJSON(e.startSelection),e.selectionsAfter.map(K.fromJSON))}static fromTransaction(e,t){let i=mh;for(let t of e.startState.facet(sh)){let n=t(e);n.length&&(i=i.concat(n))}return!i.length&&e.changes.empty?null:new ph(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,mh)}static selection(e){return new ph(void 0,mh,void 0,void 0,e)}}function Oh(e,t,i,n){let r=t+1>i+20?t-i-1:0,s=e.slice(r,t);return s.push(n),s}function gh(e,t){return e.length?t.length?e.concat(t):e:t}const mh=[],vh=200;function yh(e,t){if(e.length){let i=e[e.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-vh));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),Oh(e,e.length-1,1e9,i.setSelAfter(n)))}return[ph.selection([t])]}function wh(e){let t=e[e.length-1],i=e.slice();return i[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),i}function bh(e,t){if(!e.length)return e;let i=e.length,n=mh;for(;i;){let r=Sh(e[i-1],t,n);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,i);return t[i-1]=r,t}t=r.mapped,i--,n=r.selectionsAfter}return n.length?[ph.selection(n)]:mh}function Sh(e,t,i){let n=gh(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):mh,i);if(!e.changes)return ph.selection(n);let r=e.changes.map(t),s=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(s):s;return new ph(r,Pe.mapEffects(e.effects,t),o,e.startSelection.map(s),n)}const xh=/^(input\.type|delete)($|\.)/;class kh{constructor(e,t,i=0,n=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new kh(this.done,this.undone):this}addChanges(e,t,i,n,r){let s=this.done,o=s[s.length-1];return s=o&&o.changes&&!o.changes.empty&&e.changes&&(!i||xh.test(i))&&(!o.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(r,function(e,t){let i=[],n=!1;return e.iterChangedRanges((e,t)=>i.push(e,t)),t.iterChangedRanges((e,t,r,s)=>{for(let e=0;e<i.length;){let t=i[e++],o=i[e++];s>=t&&r<=o&&(n=!0)}}),n}(o.changes,e.changes))||"input.type.compose"==i)?Oh(s,s.length-1,n.minDepth,new ph(e.changes.compose(o.changes),gh(Pe.mapEffects(e.effects,o.changes),o.effects),o.mapped,o.startSelection,mh)):Oh(s,s.length,n.minDepth,e),new kh(s,mh,t,i)}addSelection(e,t,i,n){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:mh;return r.length>0&&t-this.prevTime<n&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&function(e,t){return e.ranges.length==t.ranges.length&&0===e.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length}(r[r.length-1],e)?this:new kh(yh(this.done,e),this.undone,t,i)}addMapping(e){return new kh(bh(this.done,e),bh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let n=0==e?this.done:this.undone;if(0==n.length)return null;let r=n[n.length-1],s=r.selectionsAfter[0]||(r.startSelection?r.startSelection.map(r.changes.invertedDesc,1):t.selection);if(i&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:nh.of({side:e,rest:wh(n),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let i=1==n.length?mh:n.slice(0,n.length-1);return r.mapped&&(i=bh(i,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:nh.of({side:e,rest:i,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}kh.empty=new kh(mh,mh);const Qh=[{key:"Mod-z",run:ch,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:uh,preventDefault:!0},{linux:"Ctrl-Shift-z",run:uh,preventDefault:!0},{key:"Mod-u",run:fh,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:dh,preventDefault:!0}];function $h(e,t){return K.create(e.ranges.map(t),e.mainIndex)}function Ph(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function _h({state:e,dispatch:t},i){let n=$h(e.selection,i);return!n.eq(e.selection,!0)&&(t(Ph(e,n)),!0)}function Ch(e,t){return K.cursor(t?e.to:e.from)}function Ah(e,t){return _h(e,i=>i.empty?e.moveByChar(i,t):Ch(i,t))}function Th(e){return e.textDirectionAt(e.state.selection.main.head)==ui.LTR}const Zh=e=>Ah(e,!Th(e)),Mh=e=>Ah(e,Th(e));function Rh(e,t){return _h(e,i=>i.empty?e.moveByGroup(i,t):Ch(i,t))}function Xh(e,t,i){if(t.type.prop(i))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Eh(e,t,i){let n,r,s=Ea(e).resolveInner(t.head),o=i?po.closedBy:po.openedBy;for(let n=t.head;;){let t=i?s.childAfter(n):s.childBefore(n);if(!t)break;Xh(e,t,o)?s=t:n=i?t.to:t.from}return r=s.type.prop(o)&&(n=i?Ll(e,s.from,1):Ll(e,s.to,-1))&&n.matched?i?n.end.to:n.end.from:i?s.to:s.from,K.cursor(r,i?-1:1)}function jh(e,t){return _h(e,i=>{if(!i.empty)return Ch(i,t);let n=e.moveVertically(i,t);return n.head!=i.head?n:e.moveToLineBoundary(i,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;const zh=e=>jh(e,!1),Lh=e=>jh(e,!0);function Yh(e){let t,i=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0;if(i){for(let t of e.state.facet(ws.scrollMargins)){let i=t(e);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}t=e.scrollDOM.clientHeight-n-r}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:i,height:Math.max(e.defaultLineHeight,t-5)}}function Vh(e,t){let i,n=Yh(e),{state:r}=e,s=$h(r.selection,i=>i.empty?e.moveVertically(i,t,n.height):Ch(i,t));if(s.eq(r.selection))return!1;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),a=o.top+n.marginTop,l=o.bottom-n.marginBottom;t&&t.top>a&&t.bottom<l&&(i=ws.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch(Ph(r,s),{effects:i}),!0}const Bh=e=>Vh(e,!1),Wh=e=>Vh(e,!0);function Ih(e,t,i){let n=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,i);if(r.head==t.head&&r.head!=(i?n.to:n.from)&&(r=e.moveToLineBoundary(t,i,!1)),!i&&r.head==n.from&&n.length){let i=/^\s*/.exec(e.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;i&&t.head!=n.from+i&&(r=K.cursor(n.from+i))}return r}const Dh=e=>_h(e,t=>Ih(e,t,!0)),Nh=e=>_h(e,t=>Ih(e,t,!1));function qh(e,t){let i=$h(e.state.selection,e=>{let i=t(e);return K.range(e.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return!i.eq(e.state.selection)&&(e.dispatch(Ph(e.state,i)),!0)}function Uh(e,t){return qh(e,i=>e.moveByChar(i,t))}const Gh=e=>Uh(e,!Th(e)),Fh=e=>Uh(e,Th(e));function Hh(e,t){return qh(e,i=>e.moveByGroup(i,t))}function Kh(e,t){return qh(e,i=>e.moveVertically(i,t))}const Jh=e=>Kh(e,!1),ec=e=>Kh(e,!0);function tc(e,t){return qh(e,i=>e.moveVertically(i,t,Yh(e).height))}const ic=e=>tc(e,!1),nc=e=>tc(e,!0),rc=({state:e,dispatch:t})=>(t(Ph(e,{anchor:0})),!0),sc=({state:e,dispatch:t})=>(t(Ph(e,{anchor:e.doc.length})),!0),oc=({state:e,dispatch:t})=>(t(Ph(e,{anchor:e.selection.main.anchor,head:0})),!0),ac=({state:e,dispatch:t})=>(t(Ph(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function lc(e,t){let{state:i}=e,n=i.selection,r=i.selection.ranges.slice();for(let n of i.selection.ranges){let s=i.doc.lineAt(n.head);if(t?s.to<e.state.doc.length:s.from>0)for(let i=n;;){let n=e.moveVertically(i,t);if(n.head<s.from||n.head>s.to){r.some(e=>e.head==n.head)||r.push(n);break}if(n.head==i.head)break;i=n}}return r.length!=n.ranges.length&&(e.dispatch(Ph(i,K.create(r,r.length-1))),!0)}function hc(e,t){if(e.state.readOnly)return!1;let i="delete.selection",{state:n}=e,r=n.changeByRange(n=>{let{from:r,to:s}=n;if(r==s){let o=t(n);o<r?(i="delete.backward",o=cc(e,o,!1)):o>r&&(i="delete.forward",o=cc(e,o,!0)),r=Math.min(r,o),s=Math.max(s,o)}else r=cc(e,r,!1),s=cc(e,s,!0);return r==s?{range:n}:{changes:{from:r,to:s},range:K.cursor(r,r<n.head?-1:1)}});return!r.changes.empty&&(e.dispatch(n.update(r,{scrollIntoView:!0,userEvent:i,effects:"delete.selection"==i?ws.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function cc(e,t,i){if(e instanceof ws)for(let n of e.state.facet(ws.atomicRanges).map(t=>t(e)))n.between(t,t,(e,n)=>{e<t&&n>t&&(t=i?n:e)});return t}const uc=(e,t,i)=>hc(e,n=>{let r,s,o=n.from,{state:a}=e,l=a.doc.lineAt(o);if(i&&!t&&o>l.from&&o<l.from+200&&!/[^ \t]/.test(r=l.text.slice(0,o-l.from))){if("\t"==r[r.length-1])return o-1;let e=nt(r,a.tabSize)%Fa(a)||Fa(a);for(let t=0;t<e&&" "==r[r.length-1-t];t++)o--;s=o}else s=j(l.text,o-l.from,t,t)+l.from,s==o&&l.number!=(t?a.doc.lines:1)?s+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(s-l.from,o-l.from))&&(s=j(l.text,s-l.from,!1,!1)+l.from);return s}),fc=e=>uc(e,!1,!0),dc=e=>uc(e,!0,!1),pc=(e,t)=>hc(e,i=>{let n=i.head,{state:r}=e,s=r.doc.lineAt(n),o=r.charCategorizer(n);for(let e=null;;){if(n==(t?s.to:s.from)){n==i.head&&s.number!=(t?r.doc.lines:1)&&(n+=t?1:-1);break}let a=j(s.text,n-s.from,t)+s.from,l=s.text.slice(Math.min(n,a)-s.from,Math.max(n,a)-s.from),h=o(l);if(null!=e&&h!=e)break;" "==l&&n==i.head||(e=h),n=a}return n}),Oc=e=>pc(e,!1);function gc(e){let t=[],i=-1;for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),s=e.doc.lineAt(n.to);if(n.empty||n.to!=s.from||(s=e.doc.lineAt(n.to-1)),i>=r.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(n)}else t.push({from:r.from,to:s.to,ranges:[n]});i=s.number+1}return t}function mc(e,t,i){if(e.readOnly)return!1;let n=[],r=[];for(let t of gc(e)){if(i?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(i?t.to+1:t.from-1),o=s.length+1;if(i){n.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak});for(let i of t.ranges)r.push(K.range(Math.min(e.doc.length,i.anchor+o),Math.min(e.doc.length,i.head+o)))}else{n.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text});for(let e of t.ranges)r.push(K.range(e.anchor-o,e.head-o))}}return!!n.length&&(t(e.update({changes:n,scrollIntoView:!0,selection:K.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function vc(e,t,i){if(e.readOnly)return!1;let n=[];for(let t of gc(e))i?n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let r=e.changes(n);return t(e.update({changes:r,selection:e.selection.map(r,i?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const yc=bc(!1),wc=bc(!0);function bc(e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{let{from:n,to:r}=i,s=t.doc.lineAt(n),o=!e&&n==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let i,n=Ea(e).resolveInner(t),r=n.childBefore(t),s=n.childAfter(t);return r&&s&&r.to<=t&&s.from>=t&&(i=r.type.prop(po.closedBy))&&i.indexOf(s.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(r.to,s.from))?{from:r.to,to:s.from}:null}(t,n);e&&(n=r=(r<=s.to?s:t.doc.lineAt(r)).to);let a=new Ja(t,{simulateBreak:n,simulateDoubleBreak:!!o}),l=Ka(a,n);for(null==l&&(l=nt(/^\s*/.exec(t.doc.lineAt(n).text)[0],t.tabSize));r<s.to&&/\s/.test(s.text[r-s.from]);)r++;o?({from:n,to:r}=o):n>s.from&&n<s.from+100&&!/\S/.test(s.text.slice(0,n))&&(n=s.from);let h=["",Ha(t,l)];return o&&h.push(Ha(t,a.lineIndent(s.from,-1))),{changes:{from:n,to:r,insert:P.of(h)},range:K.cursor(n+1+h[1].length)}});return i(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Sc(e,t){let i=-1;return e.changeByRange(n=>{let r=[];for(let s=n.from;s<=n.to;){let o=e.doc.lineAt(s);o.number>i&&(n.empty||n.to>o.from)&&(t(o,r,n),i=o.number),s=o.to+1}let s=e.changes(r);return{changes:r,range:K.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const xc=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=Object.create(null),n=new Ja(e,{overrideIndentation:e=>i[e]??-1}),r=Sc(e,(t,r,s)=>{let o=Ka(n,t.from);if(null==o)return;/\S/.test(t.text)||(o=0);let a=/^\s*/.exec(t.text)[0],l=Ha(e,o);(a!=l||s.from<t.from+a.length)&&(i[t.from]=o,r.push({from:t.from,to:t.from+a.length,insert:l}))});return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0},kc=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Sc(e,(t,i)=>{i.push({from:t.from,insert:e.facet(Ga)})}),{userEvent:"input.indent"})),!0),Qc=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Sc(e,(t,i)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let r=nt(n,e.tabSize),s=0,o=Ha(e,Math.max(0,r-Fa(e)));for(;s<n.length&&s<o.length&&n.charCodeAt(s)==o.charCodeAt(s);)s++;i.push({from:t.from+s,to:t.from+n.length,insert:o.slice(s)})}),{userEvent:"delete.dedent"})),!0),$c=[{key:"ArrowLeft",run:Zh,shift:Gh,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Rh(e,!Th(e)),shift:e=>Hh(e,!Th(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>_h(e,t=>Ih(e,t,!Th(e))),shift:e=>qh(e,t=>Ih(e,t,!Th(e))),preventDefault:!0},{key:"ArrowRight",run:Mh,shift:Fh,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Rh(e,Th(e)),shift:e=>Hh(e,Th(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>_h(e,t=>Ih(e,t,Th(e))),shift:e=>qh(e,t=>Ih(e,t,Th(e))),preventDefault:!0},{key:"ArrowUp",run:zh,shift:Jh,preventDefault:!0},{mac:"Cmd-ArrowUp",run:rc,shift:oc},{mac:"Ctrl-ArrowUp",run:Bh,shift:ic},{key:"ArrowDown",run:Lh,shift:ec,preventDefault:!0},{mac:"Cmd-ArrowDown",run:sc,shift:ac},{mac:"Ctrl-ArrowDown",run:Wh,shift:nc},{key:"PageUp",run:Bh,shift:ic},{key:"PageDown",run:Wh,shift:nc},{key:"Home",run:Nh,shift:e=>qh(e,t=>Ih(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:rc,shift:oc},{key:"End",run:Dh,shift:e=>qh(e,t=>Ih(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:sc,shift:ac},{key:"Enter",run:yc,shift:yc},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:fc,shift:fc,preventDefault:!0},{key:"Delete",run:dc,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Oc,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>pc(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>hc(e,t=>{let i=e.moveToLineBoundary(t,!1).head;return t.head>i?i:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>hc(e,t=>{let i=e.moveToLineBoundary(t,!0).head;return t.head<i?i:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat([{key:"Ctrl-b",run:Zh,shift:Gh,preventDefault:!0},{key:"Ctrl-f",run:Mh,shift:Fh},{key:"Ctrl-p",run:zh,shift:Jh},{key:"Ctrl-n",run:Lh,shift:ec},{key:"Ctrl-a",run:e=>_h(e,t=>K.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>qh(e,t=>K.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>_h(e,t=>K.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>qh(e,t=>K.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:dc},{key:"Ctrl-h",run:fc},{key:"Ctrl-k",run:e=>hc(e,t=>{let i=e.lineBlockAt(t.head).to;return t.head<i?i:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:Oc},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:P.of(["",""])},range:K.cursor(e.from)}));return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let i=t.from,n=e.doc.lineAt(i),r=i==n.from?i-1:j(n.text,i-n.from,!1)+n.from,s=i==n.to?i+1:j(n.text,i-n.from,!0)+n.from;return{changes:{from:r,to:s,insert:e.doc.slice(i,s).append(e.doc.slice(r,i))},range:K.cursor(s)}});return!i.changes.empty&&(t(e.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Wh}].map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Pc=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>_h(e,t=>Eh(e.state,t,!Th(e))),shift:e=>qh(e,t=>Eh(e.state,t,!Th(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>_h(e,t=>Eh(e.state,t,Th(e))),shift:e=>qh(e,t=>Eh(e.state,t,Th(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>mc(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>vc(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>mc(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>vc(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>lc(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>lc(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let i=e.selection,n=null;return i.ranges.length>1?n=K.create([i.main]):i.main.empty||(n=K.create([K.cursor(i.main.head)])),!!n&&(t(Ph(e,n)),!0)}},{key:"Mod-Enter",run:wc},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let i=gc(e).map(({from:t,to:i})=>K.range(t,Math.min(i+1,e.doc.length)));return t(e.update({selection:K.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let i=$h(e.selection,t=>{let i=Ea(e),n=i.resolveStack(t.from,1);if(t.empty){let e=i.resolveStack(t.from,-1);e.node.from>=n.node.from&&e.node.to<=n.node.to&&(n=e)}for(let e=n;e;e=e.next){let{node:i}=e;if((i.from<t.from&&i.to>=t.to||i.to>t.to&&i.from<=t.from)&&e.next)return K.range(i.to,i.from)}return t});return!i.eq(e.selection)&&(t(Ph(e,i)),!0)},preventDefault:!0},{key:"Mod-[",run:Qc},{key:"Mod-]",run:kc},{key:"Mod-Alt-\\",run:xc},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,i=t.changes(gc(t).map(({from:e,to:i})=>(e>0?e--:i<t.doc.length&&i++,{from:e,to:i}))),n=$h(t.selection,t=>{let i;if(e.lineWrapping){let n=e.lineBlockAt(t.head),r=e.coordsAtPos(t.head,t.assoc||1);r&&(i=n.bottom+e.documentTop-r.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,i)}).map(i);return e.dispatch({changes:i,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,i){let n=!1,r=$h(e.selection,t=>{let r=Ll(e,t.head,-1)||Ll(e,t.head,1)||t.head>0&&Ll(e,t.head-1,1)||t.head<e.doc.length&&Ll(e,t.head+1,-1);if(!r||!r.end)return t;n=!0;let s=r.start.from==t.head?r.end.to:r.end.from;return i?K.range(t.anchor,s):K.cursor(s)});return!!n&&(t(Ph(e,r)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,i=t.doc.lineAt(t.selection.main.from),n=Jl(e.state,i.from);return n.line?Fl(e):!!n.block&&Kl(e)}},{key:"Alt-A",run:Hl},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat($c),_c="#e06c75",Cc="#abb2bf",Ac="#7d8799",Tc="#d19a66",Zc="#2c313a",Mc="#282c34",Rc="#353a42",Xc="#528bff",Ec=[ws.theme({"&":{color:Cc,backgroundColor:Mc},".cm-content":{caretColor:Xc},".cm-cursor, .cm-dropCursor":{borderLeftColor:Xc},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:Cc},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Mc,color:Ac,border:"none"},".cm-activeLineGutter":{backgroundColor:Zc},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Rc},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Rc,borderBottomColor:Rc},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Zc,color:Cc}}},{dark:!0}),Zl(_l.define([{tag:_a.keyword,color:"#c678dd"},{tag:[_a.name,_a.deleted,_a.character,_a.propertyName,_a.macroName],color:_c},{tag:[_a.function(_a.variableName),_a.labelName],color:"#61afef"},{tag:[_a.color,_a.constant(_a.name),_a.standard(_a.name)],color:Tc},{tag:[_a.definition(_a.name),_a.separator],color:Cc},{tag:[_a.typeName,_a.className,_a.number,_a.changed,_a.annotation,_a.modifier,_a.self,_a.namespace],color:"#e5c07b"},{tag:[_a.operator,_a.operatorKeyword,_a.url,_a.escape,_a.regexp,_a.link,_a.special(_a.string)],color:"#56b6c2"},{tag:[_a.meta,_a.comment],color:Ac},{tag:_a.strong,fontWeight:"bold"},{tag:_a.emphasis,fontStyle:"italic"},{tag:_a.strikethrough,textDecoration:"line-through"},{tag:_a.link,color:Ac,textDecoration:"underline"},{tag:_a.heading,fontWeight:"bold",color:_c},{tag:[_a.atom,_a.bool,_a.special(_a.variableName)],color:Tc},{tag:[_a.processingInstruction,_a.string,_a.inserted],color:"#98c379"},{tag:_a.invalid,color:"#ffffff"}]))];class jc{constructor(e,t,i,n,r,s,o,a,l,h=0,c){this.p=e,this.stack=t,this.state=i,this.reducePos=n,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let n=e.parser.context;return new jc(e,[],t,i,i,0,[],0,n?new zc(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,n=65535&e,{parser:r}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),o=r.dynamicPrecedence(n);if(o&&(this.score+=o),0==i)return n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,s?8:4,!0),void this.reduceContext(n,this.reducePos);let a=this.stack.length-3*(i-1)-(262144&e?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let h=this.reducePos-l;h>=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=h));let c=a?this.stack[a-1]:0,u=this.bufferBase+this.buffer.length-c;if(n<r.minRepeatTerm||131072&e){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,l,e,u+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,i,n=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&0==this.buffer[e-4]&&this.buffer[e-1]>-1){if(t==i)return;if(this.buffer[e-2]>=t)return void(this.buffer[e-2]=i)}}if(r&&this.pos!=i){let r=this.buffer.length;if(r>0&&(0!=this.buffer[r-4]||this.buffer[r-1]<0)){let e=!1;for(let t=r;t>0&&this.buffer[t-2]>i;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,n>4&&(n-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=i,this.buffer[r+3]=n}else this.buffer.push(e,t,i,n)}shift(e,t,i,n){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4);else{let r=e,{parser:s}=this.p;this.pos=n;let o=s.stateFlag(r,1);!o&&(n>i||t<=s.maxNode)&&(this.reducePos=n),this.pushState(r,o?i:Math.min(i,this.reducePos)),this.shiftContext(t,i),t<=s.maxNode&&this.buffer.push(t,i,n,4)}}apply(e,t,i,n){65536&e?this.reduce(e):this.shift(e,t,i,n)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(t&&0==e.buffer[t-4]&&(t-=4);t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new jc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Lc(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==i)return!1;if(!(65536&i))return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let n,r=0;r<t.length;r+=2)(n=t[r+1])!=this.state&&this.p.parser.hasAction(n,e)&&i.push(t[r],n);if(this.stack.length<120)for(let e=0;i.length<8&&e<t.length;e+=2){let n=t[e+1];i.some((e,t)=>1&t&&e==n)||i.push(t[e],n)}t=i}let i=[];for(let e=0;e<t.length&&i.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let r=this.split();r.pushState(n,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[e],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1;if(!e.validAction(this.state,t)){let i=t>>19,n=65535&t,r=this.stack.length-3*i;if(r<0||e.getGoto(this.stack[r],n,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(n,r)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let i=(t>>19)-r;if(i>1){let n=65535&t,r=this.stack.length-3*i;if(r>=0&&e.getGoto(this.stack[r],n,!1)>=0)return i<<19|65536|n}}else{let e=i(t,r+1);if(null!=e)return e}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new zc(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead||(this.emitLookAhead(),this.lookAhead=e,0))}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class zc{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class Lc{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,i=e>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class Yc{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Yc(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new Yc(this.stack,this.pos,this.index)}}function Vc(e,t=Uint16Array){if("string"!=typeof e)return e;let i=null;for(let n=0,r=0;n<e.length;){let s=0;for(;;){let t=e.charCodeAt(n++),i=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,i=!0),s+=r,i)break;s*=46}i?i[r++]=s:i=new t(s)}return i}class Bc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Wc=new Bc;class Ic{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Wc,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,n=this.rangeIndex,r=this.pos+e;for(;r<i.from;){if(!n)return null;let e=this.ranges[--n];r-=i.from-e.to,i=e}for(;t<0?r>i.to:r>=i.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];r+=e.from-i.to,i=e}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,i,n=this.chunkOff+e;if(n>=0&&n<this.chunk.length)t=this.pos+e,i=this.chunk.charCodeAt(n);else{let n=this.resolveOffset(e,1);if(null==n)return-1;if(t=n,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,n=this.range;for(;n.to<=t;)n=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),i=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),i}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(null==i||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Wc,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(i+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return i}}class Dc{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;Uc(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}Dc.prototype.contextual=Dc.prototype.fallback=Dc.prototype.extend=!1;class Nc{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data="string"==typeof e?Vc(e):e}token(e,t){let i=e.pos,n=0;for(;;){let i=e.next<0,r=e.resolveOffset(1,1);if(Uc(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(i||n++,null==r)break;e.reset(r,e.token)}n&&(e.reset(i,e.token),e.acceptToken(this.elseToken,n))}}Nc.prototype.contextual=Dc.prototype.fallback=Dc.prototype.extend=!1;class qc{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Uc(e,t,i,n,r,s){let o=0,a=1<<n,{dialect:l}=i.p.parser;e:for(;0!=(a&e[o]);){let i=e[o+1];for(let n=o+3;n<i;n+=2)if((e[n+1]&a)>0){let i=e[n];if(l.allows(i)&&(-1==t.token.value||t.token.value==i||Fc(i,t.token.value,r,s))){t.acceptToken(i);break}}let n=t.next,h=0,c=e[o+2];if(!(t.next<0&&c>h&&65535==e[i+3*c-3])){for(;h<c;){let r=h+c>>1,s=i+r+(r<<1),a=e[s],l=e[s+1]||65536;if(n<a)c=r;else{if(!(n>=l)){o=e[s+2],t.advance();continue e}h=r+1}}break}o=e[i+3*c-1]}}function Gc(e,t,i){for(let n,r=t;65535!=(n=e[r]);r++)if(n==i)return r-t;return-1}function Fc(e,t,i,n){let r=Gc(i,n,t);return r<0||Gc(i,n,e)<r}const Hc="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let Kc=null;function Jc(e,t,i){let n=e.cursor(bo.IncludeAnonymous);for(n.moveTo(t);;)if(!(i<0?n.childBefore(t):n.childAfter(t)))for(;;){if((i<0?n.to<t:n.from>t)&&!n.type.isError)return i<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(i<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return i<0?0:e.length}}class eu{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Jc(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Jc(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let i=this.trees[t],n=this.index[t];if(n==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=i.children[n],s=this.start[t]+i.positions[n];if(s>e)return this.nextStart=s,null;if(r instanceof So){if(s==e){if(s<this.safeFrom)return null;let e=s+r.length;if(e<=this.safeTo){let t=r.prop(po.lookAhead);if(!t||e+t<this.fragment.to)return r}}this.index[t]++,s+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+r.length}}}class tu{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new Bc)}getActions(e){let t=0,i=null,{parser:n}=e.p,{tokenizers:r}=n,s=n.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let n=0;n<r.length;n++){if(!(1<<n&s))continue;let l=r[n],h=this.tokens[n];if((!i||l.fallback)&&((l.contextual||h.start!=e.pos||h.mask!=s||h.context!=o)&&(this.updateCachedToken(h,l,e),h.mask=s,h.context=o),h.lookAhead>h.end+25&&(a=Math.max(h.lookAhead,a)),0!=h.value)){let n=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!l.extend&&(i=h,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),i||e.pos!=this.stream.end||(i=new Bc,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Bc,{pos:i,p:n}=e;return t.start=i,t.end=Math.min(i+1,n.stream.end),t.value=i==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,i){let n=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(n,e),i),e.value>-1){let{parser:t}=i.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let r=t.specializers[n](this.stream.read(e.start,e.end),i);if(r>=0&&i.p.parser.dialect.allows(r>>1)){1&r?e.extended=r>>1:e.value=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,i,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=i,n}addActions(e,t,i,n){let{state:r}=e,{parser:s}=e.p,{data:o}=s;for(let e=0;e<2;e++)for(let a=s.stateSlot(r,e?2:1);;a+=3){if(65535==o[a]){if(1!=o[a+1]){0==n&&2==o[a+1]&&(n=this.putAction(lu(o,a+2),t,i,n));break}a=lu(o,a+2)}o[a]==t&&(n=this.putAction(lu(o,a+1),t,i,n))}return n}}class iu{constructor(e,t,i,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Ic(t,n),this.tokens=new tu(e,this.stream),this.topTerm=e.top[1];let{from:r}=n[0];this.stacks=[jc.start(this,e.top[0],r)],this.fragments=i.length&&this.stream.end-r>4*e.bufferLength?new eu(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,i=this.stacks,n=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==i.length){let[e]=i;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<i.length;s++){let o=i[s];for(;;){if(this.tokens.mainToken=null,o.pos>n)r.push(o);else{if(this.advanceStack(o,r,i))continue;{e||(e=[],t=[]),e.push(o);let i=this.tokens.getMainToken(o);t.push(i.value,i.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let i of e){let e=i.p.stoppedAt;(i.pos==i.p.stream.end||null!=e&&i.pos>e)&&i.p.parser.stateFlag(i.state,2)&&(!t||t.score<i.score)&&(t=i)}return t}(e);if(t)return Hc&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw Hc&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let i=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,r);if(i)return Hc&&console.log("Force-finish "+this.stackID(i)),this.stackToTree(i.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort((e,t)=>t.score-e.score);r.length>e;)r.pop();r.some(e=>e.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let e=0;e<r.length-1;e++){let t=r[e];for(let i=e+1;i<r.length;i++){let n=r[i];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500){if(!((t.score-n.score||t.buffer.length-n.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(i--,1)}}}r.length>12&&(r.sort((e,t)=>t.score-e.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let e=1;e<r.length;e++)r[e].pos<this.minStackPos&&(this.minStackPos=r[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,i){let n=e.pos,{parser:r}=this,s=Hc?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,i=t?e.curContext.hash:0;for(let o=this.fragments.nodeAt(n);o;){let n=this.parser.nodeSet.types[o.type.id]==o.type?r.getGoto(e.state,o.type.id):-1;if(n>-1&&o.length&&(!t||(o.prop(po.contextHash)||0)==i))return e.useNode(o,n),Hc&&console.log(s+this.stackID(e)+` (via reuse of ${r.getName(o.type.id)})`),!0;if(!(o instanceof So)||0==o.children.length||o.positions[0]>0)break;let a=o.children[0];if(!(a instanceof So&&0==o.positions[0]))break;o=a}}let o=r.stateSlot(e.state,4);if(o>0)return e.reduce(o),Hc&&console.log(s+this.stackID(e)+` (via always-reduce ${r.getName(65535&o)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let o=0;o<a.length;){let l=a[o++],h=a[o++],c=a[o++],u=o==a.length||!i,f=u?e:e.split(),d=this.tokens.mainToken;if(f.apply(l,h,d?d.start:f.pos,c),Hc&&console.log(s+this.stackID(f)+` (via ${65536&l?`reduce of ${r.getName(65535&l)}`:"shift"} for ${r.getName(h)} @ ${n}${f==e?"":", split"})`),u)return!0;f.pos>n?t.push(f):i.push(f)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return nu(e,t),!0}}runRecovery(e,t,i){let n=null,r=!1;for(let s=0;s<e.length;s++){let o=e[s],a=t[s<<1],l=t[1+(s<<1)],h=Hc?this.stackID(o)+" -> ":"";if(o.deadEnd){if(r)continue;if(r=!0,o.restart(),Hc&&console.log(h+this.stackID(o)+" (restarted)"),this.advanceFully(o,i))continue}let c=o.split(),u=h;for(let e=0;e<10&&c.forceReduce()&&(Hc&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));e++)Hc&&(u=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(a))Hc&&console.log(h+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,i);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),Hc&&console.log(h+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),nu(o,i)):(!n||n.score<c.score)&&(n=c)}return n}stackToTree(e){return e.close(),So.build({buffer:Yc.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Kc||(Kc=new WeakMap)).get(e);return t||Kc.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function nu(e,t){for(let i=0;i<t.length;i++){let n=t[i];if(n.pos==e.pos&&n.sameState(e))return void(t[i].score<e.score&&(t[i]=e))}t.push(e)}class ru{constructor(e,t,i){this.source=e,this.flags=t,this.disabled=i}allows(e){return!this.disabled||0==this.disabled[e]}}const su=e=>e;class ou{constructor(e){this.start=e.start,this.shift=e.shift||su,this.reduce=e.reduce||su,this.reuse=e.reuse||su,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class au extends Bo{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let i=0;i<e.repeatNodeCount;i++)t.push("");let i=Object.keys(e.topRules).map(t=>e.topRules[t][1]),n=[];for(let e=0;e<t.length;e++)n.push([]);function r(e,t,i){n[e].push([t,t.deserialize(String(i))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=po[e]);for(let i=1;i<t.length;){let n=t[i++];if(n>=0)r(n,e,t[i++]);else{let s=t[i+-n];for(let o=-n;o>0;o--)r(t[i++],e,s);i++}}}this.nodeSet=new vo(t.map((t,r)=>mo.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:n[r],top:i.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=co;let s=Vc(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(hu),this.states=Vc(e.states,Uint32Array),this.data=Vc(e.stateData),this.goto=Vc(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new Dc(s,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let n=new iu(this,e,t,i);for(let r of this.wrappers)n=r(n,e,t,i);return n}getGoto(e,t,i=!1){let n=this.goto;if(t>=n[0])return-1;for(let r=n[t+1];;){let t=n[r++],s=1&t,o=n[r++];if(s&&i)return o;for(let i=r+(t>>1);r<i;r++)if(n[r]==e)return o;if(s)return-1}}hasAction(e,t){let i=this.data;for(let n=0;n<2;n++)for(let r,s=this.stateSlot(e,n?2:1);;s+=3){if(65535==(r=i[s])){if(1!=i[s+1]){if(2==i[s+1])return lu(i,s+2);break}r=i[s=lu(i,s+2)]}if(r==t||0==r)return lu(i,s+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let i=this.stateSlot(e,4),n=i?t(i):void 0;for(let i=this.stateSlot(e,1);null==n;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=lu(this.data,i+2)}n=t(lu(this.data,i+1))}return n}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=lu(this.data,i+2)}if(!(1&this.data[i+2])){let e=this.data[i+1];t.some((t,i)=>1&i&&t==e)||t.push(this.data[i],e)}}return t}configure(e){let t=Object.assign(Object.create(au.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let i=e.tokenizers.find(e=>e.from==t);return i?i.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,n)=>{let r=e.specializers.find(e=>e.from==i.external);if(!r)return i;let s=Object.assign(Object.assign({},i),{external:r.to});return t.specializers[n]=hu(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(i[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!i[e])for(let i,r=this.dialects[t[e]];65535!=(i=this.data[r++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[i]=1;return new ru(e,i,n)}static deserialize(e){return new au(e)}}function lu(e,t){return e[t]|e[t+1]<<16}function hu(e){if(e.external){let t=e.extend?1:0;return(i,n)=>e.external(i,n)<<1|t}return e.get}const cu=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uu=new ou({start:!1,shift:(e,t)=>5==t||6==t||320==t?e:321==t,strict:!1}),fu=new qc((e,t)=>{let{next:i}=e;(125==i||-1==i||t.context)&&e.acceptToken(318)},{contextual:!0,fallback:!0}),du=new qc((e,t)=>{let i,{next:n}=e;cu.indexOf(n)>-1||(47!=n||47!=(i=e.peek(1))&&42!=i)&&(125==n||59==n||-1==n||t.context||e.acceptToken(316))},{contextual:!0}),pu=new qc((e,t)=>{91!=e.next||t.context||e.acceptToken(317)},{contextual:!0}),Ou=new qc((e,t)=>{let{next:i}=e;if(43==i||45==i){if(e.advance(),i==e.next){e.advance();let i=!t.context&&t.canShift(1);e.acceptToken(i?1:2)}}else 63==i&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function gu(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const mu=new qc((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let i=0;for(;cu.indexOf(e.next)>-1;)e.advance(),i++;if(gu(e.next,!0)){for(e.advance(),i++;gu(e.next,!1);)e.advance(),i++;for(;cu.indexOf(e.next)>-1;)e.advance(),i++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!gu(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),i++}}e.acceptToken(4,-i)}),vu=aa({"get set async static":_a.modifier,"for while do if else switch try catch finally return throw break continue default case defer":_a.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":_a.operatorKeyword,"let var const using function class extends":_a.definitionKeyword,"import export from":_a.moduleKeyword,"with debugger new":_a.keyword,TemplateString:_a.special(_a.string),super:_a.atom,BooleanLiteral:_a.bool,this:_a.self,null:_a.null,Star:_a.modifier,VariableName:_a.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":_a.function(_a.variableName),VariableDefinition:_a.definition(_a.variableName),Label:_a.labelName,PropertyName:_a.propertyName,PrivatePropertyName:_a.special(_a.propertyName),"CallExpression/MemberExpression/PropertyName":_a.function(_a.propertyName),"FunctionDeclaration/VariableDefinition":_a.function(_a.definition(_a.variableName)),"ClassDeclaration/VariableDefinition":_a.definition(_a.className),"NewExpression/VariableName":_a.className,PropertyDefinition:_a.definition(_a.propertyName),PrivatePropertyDefinition:_a.definition(_a.special(_a.propertyName)),UpdateOp:_a.updateOperator,"LineComment Hashbang":_a.lineComment,BlockComment:_a.blockComment,Number:_a.number,String:_a.string,Escape:_a.escape,ArithOp:_a.arithmeticOperator,LogicOp:_a.logicOperator,BitOp:_a.bitwiseOperator,CompareOp:_a.compareOperator,RegExp:_a.regexp,Equals:_a.definitionOperator,Arrow:_a.function(_a.punctuation),": Spread":_a.punctuation,"( )":_a.paren,"[ ]":_a.squareBracket,"{ }":_a.brace,"InterpolationStart InterpolationEnd":_a.special(_a.brace),".":_a.derefOperator,", ;":_a.separator,"@":_a.meta,TypeName:_a.typeName,TypeDefinition:_a.definition(_a.typeName),"type enum interface implements namespace module declare":_a.definitionKeyword,"abstract global Privacy readonly override":_a.modifier,"is keyof unique infer asserts":_a.operatorKeyword,JSXAttributeValue:_a.attributeValue,JSXText:_a.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":_a.angleBracket,"JSXIdentifier JSXNameSpacedName":_a.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":_a.attributeName,"JSXBuiltin/JSXIdentifier":_a.standard(_a.tagName)}),yu={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},wu={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},bu={__proto__:null,"<":193},Su=au.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`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Q4Q<{Q4X<iQ5X0rQ5c1SQ6u=OQ6{3QQ7Q3WQ7a3lQ7b=PQ7k=RQ7l=ZQ8k5wQ9X6sQ9]6|Q9g=[Q9m=eQ9n=fQ:o9_Q;W:ZQ;`:mQ<W#SR=v>SR#[WR'Z!el!tQ!r!v!y!z'`'l'm'n-e-u1o5{5}S'V!e-]U*j$|*Z*oS-Y'W'_S0U*k*qQ0^*rQ2u-cQ4v0[R4{0_R({#xQ!fQT-d'`-e]!qQ!r'`-e1o5{Q#p]R'i<VR)f$dY!uQ'`-e1o5{Q'k!rS'u!v!yS'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:uu,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[vu],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S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Eruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[du,pu,Ou,mu,2,3,4,5,6,7,8,9,10,11,12,13,14,fu,new Nc("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOx~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!U~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new Nc("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>yu[e]||-1},{term:343,get:e=>wu[e]||-1},{term:95,get:e=>bu[e]||-1}],tokenPrec:15201});function xu(e){let t=Object.keys(e).join(""),i=/\w/.test(t);return i&&(t=t.replace(/\w/g,"")),`[${i?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function ku(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[i,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),i=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)i[n[e]]=!0}let n=xu(t)+xu(i)+"*$";return[new RegExp("^"+n),new RegExp(n)]}(t);return e=>{let r=e.matchBefore(n);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:i}:null}}const Qu=ke.define();"object"==typeof navigator&&navigator.platform;const $u=ws.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Pu{constructor(e,t,i,n){this.field=e,this.line=t,this.from=i,this.to=n}}class _u{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,B.TrackDel),i=e.mapPos(this.to,1,B.TrackDel);return null==t||null==i?null:new _u(this.field,t,i)}}class Cu{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],n=[t],r=e.doc.lineAt(t),s=/^\s*/.exec(r.text)[0];for(let r of this.lines){if(i.length){let i=s,o=/^\t*/.exec(r)[0].length;for(let t=0;t<o;t++)i+=e.facet(Ga);n.push(t+i.length-o),r=i+r.slice(o)}i.push(r),t+=r.length+1}let o=this.fieldPositions.map(e=>new _u(e.field,n[e.line]+e.from,n[e.line]+e.to));return{text:i,ranges:o}}static parse(e){let t,i=[],n=[],r=[];for(let s of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(s);){let e=t[1]?+t[1]:null,o=t[2]||t[3]||"",a=-1,l=o.replace(/\\[{}]/g,e=>e[1]);for(let t=0;t<i.length;t++)(null!=e?i[t].seq==e:l&&i[t].name==l)&&(a=t);if(a<0){let t=0;for(;t<i.length&&(null==e||null!=i[t].seq&&i[t].seq<e);)t++;i.splice(t,0,{seq:e,name:l}),a=t;for(let e of r)e.field>=a&&e.field++}for(let e of r)if(e.line==n.length&&e.from>t.index){let i=t[2]?3+(t[1]||"").length:2;e.from-=i,e.to-=i}r.push(new Pu(a,n.length,t.index,t.index+l.length)),s=s.slice(0,t.index)+o+s.slice(t.index+t[0].length)}s=s.replace(/\\([{}])/g,(e,t,i)=>{for(let e of r)e.line==n.length&&e.from>i&&(e.from--,e.to--);return t}),n.push(s)}return new Cu(n,r)}}let Au=Xt.widget({widget:new class extends Mt{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Tu=Xt.mark({class:"cm-snippetField"});class Zu{constructor(e,t){this.ranges=e,this.active=t,this.deco=Xt.set(e.map(e=>(e.from==e.to?Au:Tu).range(e.from,e.to)),!0)}map(e){let t=[];for(let i of this.ranges){let n=i.map(e);if(!n)return null;t.push(n)}return new Zu(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}const Mu=Pe.define({map:(e,t)=>e&&e.map(t)}),Ru=Pe.define(),Xu=le.define({create:()=>null,update(e,t){for(let i of t.effects){if(i.is(Mu))return i.value;if(i.is(Ru)&&e)return new Zu(e.ranges,i.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>ws.decorations.from(e,e=>e?e.deco:Xt.none)});function Eu(e,t){return K.create(e.filter(e=>e.field==t).map(e=>K.range(e.from,e.to)))}function ju(e){let t=Cu.parse(e);return(e,i,n,r)=>{let{text:s,ranges:o}=t.instantiate(e.state,n),{main:a}=e.state.selection,l={changes:{from:n,to:r==a.from?a.to:r,insert:P.of(s)},scrollIntoView:!0,annotations:i?[Qu.of(i),_e.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=Eu(o,0)),o.some(e=>e.field>0)){let t=new Zu(o,0),i=l.effects=[Mu.of(t)];void 0===e.state.field(Xu,!1)&&i.push(Pe.appendConfig.of([Xu,Vu,Wu,$u]))}e.dispatch(e.state.update(l))}}function zu(e){return({state:t,dispatch:i})=>{let n=t.field(Xu,!1);if(!n||e<0&&0==n.active)return!1;let r=n.active+e,s=e>0&&!n.ranges.some(t=>t.field==r+e);return i(t.update({selection:Eu(n.ranges,r),effects:Mu.of(s?null:new Zu(n.ranges,r)),scrollIntoView:!0})),!0}}const Lu=[{key:"Tab",run:zu(1),shift:zu(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Xu,!1)&&(t(e.update({effects:Mu.of(null)})),!0)}],Yu=te.define({combine:e=>e.length?e[0]:Lu}),Vu=ce.highest(_s.compute([Yu],e=>e.facet(Yu)));function Bu(e,t){return{...t,apply:ju(e)}}const Wu=ws.domEventHandlers({mousedown(e,t){let i,n=t.state.field(Xu,!1);if(!n||null==(i=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=n.ranges.find(e=>e.from<=i&&e.to>=i);return!(!r||r.field==n.active||(t.dispatch({selection:Eu(n.ranges,r.field),effects:Mu.of(n.ranges.some(e=>e.field>r.field)?new Zu(n.ranges,r.field):null),scrollIntoView:!0}),0))}}),Iu=new class extends Ye{};Iu.startSide=1,Iu.endSide=-1,"object"==typeof navigator&&navigator.userAgent;const Du=[Bu("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Bu("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Bu("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Bu("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Bu("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Bu("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Bu("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Bu("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Bu("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Bu('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Bu('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Nu=Du.concat([Bu("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Bu("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Bu("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),qu=new Yo,Uu=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Gu(e){return(t,i)=>{let n=t.node.getChild("VariableDefinition");return n&&i(n,e),!0}}const Fu=["FunctionDeclaration"],Hu={FunctionDeclaration:Gu("function"),ClassDeclaration:Gu("class"),ClassExpression:()=>!0,EnumDeclaration:Gu("constant"),TypeAliasDeclaration:Gu("type"),NamespaceDeclaration:Gu("namespace"),VariableDefinition(e,t){e.matchContext(Fu)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Ku(e,t){let i=qu.get(t);if(i)return i;let n=[],r=!0;function s(t,i){let r=e.sliceString(t.from,t.to);n.push({label:r,type:i})}return t.cursor(bo.IncludeAnonymous).iterate(t=>{if(r)r=!1;else if(t.name){let e=Hu[t.name];if(e&&e(t,s)||Uu.has(t.name))return!1}else if(t.to-t.from>8192){for(let i of Ku(e,t.node))n.push(i);return!1}}),qu.set(t,n),n}const Ju=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,ef=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function tf(e){let t=Ea(e.state).resolveInner(e.pos,-1);if(ef.indexOf(t.name)>-1)return null;let i="VariableName"==t.name||t.to-t.from<20&&Ju.test(e.state.sliceDoc(t.from,t.to));if(!i&&!e.explicit)return null;let n=[];for(let i=t;i;i=i.parent)Uu.has(i.name)&&(n=n.concat(Ku(e.state.doc,i)));return{options:n,from:i?t.from:e.pos,validFor:Ju}}const nf=Xa.define({name:"javascript",parser:Su.configure({props:[el.add({IfStatement:ll({except:/^\s*({|else\b)/}),TryStatement:ll({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,i=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(i?0:n?1:2)*e.unit},Block:ol({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":ll({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),cl.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":ul,BlockComment:e=>({from:e.from+2,to:e.to-2}),JSXElement(e){let t=e.firstChild;if(!t||"JSXSelfClosingTag"==t.name)return null;let i=e.lastChild;return{from:t.to,to:i.type.isError?e.to:i.from}},"JSXSelfClosingTag JSXOpenTag"(e){var t;let i=null===(t=e.firstChild)||void 0===t?void 0:t.nextSibling,n=e.lastChild;return!i||i.type.isError?null:{from:i.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),rf={test:e=>/^JSX/.test(e.name),facet:Ta({commentTokens:{block:{open:"{/*",close:"*/}"}}})},sf=nf.configure({dialect:"ts"},"typescript"),of=nf.configure({dialect:"jsx",props:[Za.add(e=>e.isTop?[rf]:void 0)]}),af=nf.configure({dialect:"jsx ts",props:[Za.add(e=>e.isTop?[rf]:void 0)]},"typescript");let lf=e=>({label:e,type:"keyword"});const hf="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(lf),cf=hf.concat(["declare","implements","private","protected","public"].map(lf));function uf(e={}){let t=e.jsx?e.typescript?af:of:e.typescript?sf:nf,i=e.typescript?Nu.concat(cf):Du.concat(hf);return new qa(t,[nf.data.of({autocomplete:(n=ef,r=ku(i),e=>{for(let t=Ea(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(n.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return r(e)})}),nf.data.of({autocomplete:tf}),e.jsx?pf:[]]);var n,r}function ff(e,t,i=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,i));return""}const df="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),pf=ws.inputHandler.of((e,t,i,n,r)=>{if((df?e.composing:e.compositionStarted)||e.state.readOnly||t!=i||">"!=n&&"/"!=n||!nf.isActiveAt(e.state,t,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(e=>{var t;let i,{head:r}=e,s=Ea(o).resolveInner(r-1,-1);if("JSXStartTag"==s.name&&(s=s.parent),o.doc.sliceString(r-1,r)!=n||"JSXAttributeValue"==s.name&&s.to>r);else{if(">"==n&&"JSXFragmentTag"==s.name)return{range:e,changes:{from:r,insert:"</>"}};if("/"==n&&"JSXStartCloseTag"==s.name){let e=s.parent,n=e.parent;if(n&&e.from==r-2&&((i=ff(o.doc,n.firstChild,r))||"JSXFragmentTag"==(null===(t=n.firstChild)||void 0===t?void 0:t.name))){let e=`${i}>`;return{range:K.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(s);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(o.doc.sliceString(r,r+2))&&(i=ff(o.doc,t,r)))return{range:e,changes:{from:r,insert:`</${i}>`}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Of=aa({String:_a.string,Number:_a.number,"True False":_a.bool,PropertyName:_a.propertyName,Null:_a.null,", :":_a.separator,"[ ]":_a.squareBracket,"{ }":_a.brace}),gf=au.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Of],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),mf=Xa.define({name:"json",parser:gf.configure({props:[el.add({Object:ll({except:/^\s*\}/}),Array:ll({except:/^\s*\]/})}),cl.add({"Object Array":ul})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}}),vf={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},yf={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},wf={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}};function bf(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let Sf=null,xf=null,kf=0;function Qf(e,t){let i=e.pos+t;if(kf==i&&xf==e)return Sf;let n=e.peek(t),r="";for(;bf(n);)r+=String.fromCharCode(n),n=e.peek(++t);return xf=e,kf=i,Sf=r?r.toLowerCase():n==$f||n==Pf?void 0:null}const $f=63,Pf=33;function _f(e,t){this.name=e,this.parent=t}const Cf=[6,10,7,8,9],Af=new ou({start:null,shift:(e,t,i,n)=>Cf.indexOf(t)>-1?new _f(Qf(n,1)||"",e):e,reduce:(e,t)=>21==t&&e?e.parent:e,reuse(e,t,i,n){let r=t.type.id;return 6==r||37==r?new _f(Qf(n,1)||"",e):e},strict:!1}),Tf=new qc((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(58));e.advance();let i=47==e.next;i&&e.advance();let n=Qf(e,0);if(void 0===n)return;if(!n)return e.acceptToken(i?15:14);let r=t.context?t.context.name:null;if(i){if(n==r)return e.acceptToken(11);if(r&&yf[r])return e.acceptToken(58,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(vf.hasOwnProperty(n))return e.acceptToken(10);r&&wf[r]&&wf[r][n]?e.acceptToken(58,-1):e.acceptToken(6)}},{contextual:!0}),Zf=new qc(e=>{for(let t=0,i=0;;i++){if(e.next<0){i&&e.acceptToken(59);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){i>=3&&e.acceptToken(59,-2);break}t=0}e.advance()}}),Mf=new qc((e,t)=>{if(47==e.next&&62==e.peek(1)){let i=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(i?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function Rf(e,t,i){let n=2+e.length;return new qc(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(t);break}if(0==s&&60==r.next||1==s&&47==r.next||s>=2&&s<n&&r.next==e.charCodeAt(s-2))s++,o++;else{if(s==n&&62==r.next){a>o?r.acceptToken(t,-o):r.acceptToken(i,-(o-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(t,1);break}s=o=0}r.advance()}})}const Xf=Rf("script",55,1),Ef=Rf("style",56,2),jf=Rf("textarea",57,3),zf=aa({"Text RawText IncompleteTag IncompleteCloseTag":_a.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":_a.angleBracket,TagName:_a.tagName,"MismatchedCloseTag/TagName":[_a.tagName,_a.invalid],AttributeName:_a.attributeName,"AttributeValue UnquotedAttributeValue":_a.attributeValue,Is:_a.definitionOperator,"EntityReference CharacterReference":_a.character,Comment:_a.blockComment,ProcessingInst:_a.processingInstruction,DoctypeDecl:_a.documentMeta}),Lf=au.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOa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OS}OT}OiyO~O!XfOPmX![mX~OP!WO![!XO~O!YiOQpX![pX~OQ!ZO![!XO~O!ZlORsX![sX~OR!]O![!XO~O![!XO~P#gOg!_O~O!]sO!f!aO~OS!bO~OS!cO~Oj!dOShXThXihX~OS!fOT!gOiyO~OS!hOT!gOiyO~OS!iOT!gOiyO~OS!jOT!gOiyO~OS!gOT!gOiyO~Og!kO~Og!lO~Og!mO~OS!nO~Ol!qO!a!oO!c!pO~OS!rO~OS!sO~OS!tO~Ob!uOc!uOd!uO!a!wO!b!uO~Ob!xOc!xOd!xO!c!wO!d!xO~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Af,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag Start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!7QOyPP!7TP;=`<%l!6Vq!7]V!dpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!dpyPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!b`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!b`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!b`yPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Xf,Ef,jf,Mf,Tf,Zf,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Yf(e,t){let i=Object.create(null);for(let n of e.getChildren(24)){let e=n.getChild(25),r=n.getChild(27)||n.getChild(28);e&&(i[t.read(e.from,e.to)]=r?27==r.type.id?t.read(r.from+1,r.to-1):t.read(r.from,r.to):"")}return i}function Vf(e,t){let i=e.getChild(23);return i?t.read(i.from,i.to):" "}function Bf(e,t,i){let n;for(let r of i)if(!r.attrs||r.attrs(n||(n=Yf(e.node.parent.firstChild,t))))return{parser:r.parser,bracketed:!0};return null}function Wf(e=[],t=[]){let i=[],n=[],r=[],s=[];for(let t of e)("script"==t.tag?i:"style"==t.tag?n:"textarea"==t.tag?r:s).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return a=(e,t)=>{let a=e.type.id;if(29==a)return Bf(e,t,i);if(32==a)return Bf(e,t,n);if(35==a)return Bf(e,t,r);if(21==a&&s.length){let i,n=e.node,r=n.firstChild,o=r&&Vf(r,t);if(o)for(let e of s)if(e.tag==o&&(!e.attrs||e.attrs(i||(i=Yf(r,t))))){let t=n.lastChild,i=38==t.type.id?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}if(o&&24==a){let i,n=e.node;if(i=n.firstChild){let e=o[t.read(i.from,i.to)];if(e)for(let i of e){if(i.tagName&&i.tagName!=Vf(n.parent,t))continue;let e=n.lastChild;if(27==e.type.id){let t=e.from+1,n=e.lastChild,r=e.to-(n&&n.isError?0:1);if(r>t)return{parser:i.parser,overlay:[{from:t,to:r}],bracketed:!0}}else if(28==e.type.id)return{parser:i.parser,overlay:[{from:e.from,to:e.to}]}}}}return null},(e,t,i,n)=>new Uo(e,a,t,i,n);var a}const If=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function Df(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Nf(e){return e>=48&&e<=57}function qf(e){return Nf(e)||e>=97&&e<=102||e>=65&&e<=70}const Uf=(e,t,i)=>(n,r)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=n;if(Df(l)||45==l||95==l||s&&Nf(l))!s&&(45!=l||a>0)&&(s=!0),o===a&&45==l&&o++,n.advance();else{if(92!=l||10==n.peek(1)){s&&n.acceptToken(2==o&&r.canShift(2)?t:40==l?i:e);break}if(n.advance(),qf(n.next)){do{n.advance()}while(qf(n.next));32==n.next&&n.advance()}else n.next>-1&&n.advance();s=!0}}},Gf=new qc(Uf(136,2,137),{contextual:!0}),Ff=new qc(Uf(138,3,4),{contextual:!0}),Hf=new qc(e=>{if(If.includes(e.peek(-1))){let{next:t}=e;(Df(t)||95==t||35==t||46==t||42==t||91==t||58==t&&Df(e.peek(1))||45==t||38==t)&&e.acceptToken(135)}}),Kf=new qc(e=>{if(!If.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),Df(t)){do{e.advance()}while(Df(e.next)||Nf(e.next));e.acceptToken(1)}}}),Jf=aa({"AtKeyword import charset namespace keyframes media supports font-feature-values":_a.definitionKeyword,"from to selector scope MatchFlag":_a.keyword,NamespaceName:_a.namespace,KeyframeName:_a.labelName,KeyframeRangeName:_a.operatorKeyword,TagName:_a.tagName,ClassName:_a.className,PseudoClassName:_a.constant(_a.className),IdName:_a.labelName,"FeatureName PropertyName":_a.propertyName,AttributeName:_a.attributeName,NumberLiteral:_a.number,KeywordQuery:_a.keyword,UnaryQueryOp:_a.operatorKeyword,"CallTag ValueName FontName":_a.atom,VariableName:_a.variableName,Callee:_a.operatorKeyword,Unit:_a.unit,"UniversalSelector NestingSelector":_a.definitionOperator,"MatchOp CompareOp":_a.compareOperator,"ChildOp SiblingOp, LogicOp":_a.logicOperator,BinOp:_a.arithmeticOperator,Important:_a.modifier,Comment:_a.blockComment,ColorLiteral:_a.color,"ParenthesizedContent StringLiteral":_a.string,":":_a.punctuation,"PseudoOp #":_a.derefOperator,"; , |":_a.separator,"( )":_a.paren,"[ ]":_a.squareBracket,"{ }":_a.brace}),ed={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},td={__proto__:null,or:104,and:104,not:112,only:112,layer:186},id={__proto__:null,selector:118,layer:182},nd={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},rd={__proto__:null,to:223},sd=au.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'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U'^'k'sQ!|gR$o!}Q!WYR#dyQ#c!WR%S#dQ!ZZR#fzQ!_[R#g{T!^[{Q#r!]R%]#sQ!SXQ!i`Q#SjQ#m!QQ$P!dQ$l!yQ$r#QQ$u#UQ$x#XQ%e$OQ&S$tQ&y&OQ&|&TR'h&xSnP!RQ#]oQ$|#ZR&Z$}ZmPo!R#Z$}Q${#YQ&X$yR'P&WR$e!qQ&n%oR'm'_R!}gR#PhR$q#PS&O$p&PR'f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[Jf],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%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{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[Hf,Kf,Gf,Ff,1,2,3,4,new Nc("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:e=>ed[e]||-1},{term:138,get:e=>td[e]||-1},{term:4,get:e=>id[e]||-1},{term:28,get:e=>nd[e]||-1},{term:136,get:e=>rd[e]||-1}],tokenPrec:2256});let od=null;function ad(){if(!od&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],i=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),i.has(n)||(t.push(n),i.add(n)));od=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return od||[]}const ld=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),hd=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","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","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","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","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","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","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(e=>({type:"keyword",label:e})).concat(["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"].map(e=>({type:"constant",label:e}))),cd=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),ud=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),fd=/^(\w[\w-]*|-\w[\w-]*|)$/,dd=/^-(-[\w-]*)?$/,pd=new Yo,Od=["Declaration"];function gd(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function md(e,t,i){if(t.to-t.from>4096){let n=pd.get(t);if(n)return n;let r=[],s=new Set,o=t.cursor(bo.IncludeAnonymous);if(o.firstChild())do{for(let t of md(e,o.node,i))s.has(t.label)||(s.add(t.label),r.push(t))}while(o.nextSibling());return pd.set(t,r),r}{let n=[],r=new Set;return t.cursor().iterate(t=>{var s;if(i(t)&&t.matchContext(Od)&&":"==(null===(s=t.node.nextSibling)||void 0===s?void 0:s.name)){let i=e.sliceString(t.from,t.to);r.has(i)||(r.add(i),n.push({label:i,type:"variable"}))}}),n}}const vd=e=>t=>{let{state:i,pos:n}=t,r=Ea(i).resolveInner(n,-1),s=r.type.isError&&r.from==r.to-1&&"-"==i.doc.sliceString(r.from,r.to);if("PropertyName"==r.name||(s||"TagName"==r.name)&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:ad(),validFor:fd};if("ValueName"==r.name)return{from:r.from,options:hd,validFor:fd};if("PseudoClassName"==r.name)return{from:r.from,options:ld,validFor:fd};if(e(r)||(t.explicit||s)&&function(e,t){var i;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(i=e.parent)||void 0===i?void 0:i.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(r,i.doc))return{from:e(r)||s?r.from:n,options:md(i.doc,gd(r),e),validFor:dd};if("TagName"==r.name){for(let{parent:e}=r;e;e=e.parent)if("Block"==e.name)return{from:r.from,options:ad(),validFor:fd};return{from:r.from,options:cd,validFor:fd}}if("AtKeyword"==r.name)return{from:r.from,options:ud,validFor:fd};if(!t.explicit)return null;let o=r.resolve(n),a=o.childBefore(n);return a&&":"==a.name&&"PseudoClassSelector"==o.name?{from:n,options:ld,validFor:fd}:a&&":"==a.name&&"Declaration"==o.name||"ArgList"==o.name?{from:n,options:hd,validFor:fd}:"Block"==o.name||"Styles"==o.name?{from:n,options:ad(),validFor:fd}:null},yd=vd(e=>"VariableName"==e.name),wd=Xa.define({name:"css",parser:sd.configure({props:[el.add({Declaration:ll()}),cl.add({"Block KeyframeList":ul})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),bd=["_blank","_self","_top","_parent"],Sd=["ascii","utf-8","utf-16","latin1","latin1"],xd=["get","post","put","delete"],kd=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qd=["true","false"],$d={},Pd={a:{attrs:{href:null,ping:null,type:null,media:null,target:bd,hreflang:null}},abbr:$d,address:$d,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:$d,aside:$d,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:$d,base:{attrs:{href:null,target:bd}},bdi:$d,bdo:$d,blockquote:{attrs:{cite:null}},body:$d,br:$d,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:kd,formmethod:xd,formnovalidate:["novalidate"],formtarget:bd,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:$d,center:$d,cite:$d,code:$d,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:$d,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:$d,div:$d,dl:$d,dt:$d,em:$d,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:$d,figure:$d,footer:$d,form:{attrs:{action:null,name:null,"accept-charset":Sd,autocomplete:["on","off"],enctype:kd,method:xd,novalidate:["novalidate"],target:bd}},h1:$d,h2:$d,h3:$d,h4:$d,h5:$d,h6:$d,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:$d,hgroup:$d,hr:$d,html:{attrs:{manifest:null}},i:$d,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:kd,formmethod:xd,formnovalidate:["novalidate"],formtarget:bd,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:$d,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:$d,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:$d,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Sd,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:$d,noscript:$d,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:$d,param:{attrs:{name:null,value:null}},pre:$d,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:$d,rt:$d,ruby:$d,samp:$d,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Sd}},section:$d,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:$d,source:{attrs:{src:null,type:null,media:null}},span:$d,strong:$d,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:$d,summary:$d,sup:$d,table:$d,tbody:$d,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:$d,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:$d,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:$d,time:{attrs:{datetime:null}},title:$d,tr:$d,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:$d,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:$d},_d={accesskey:null,class:null,contenteditable:Qd,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qd,autocorrect:Qd,autocapitalize:Qd,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qd,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qd,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qd,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qd,"aria-hidden":Qd,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qd,"aria-multiselectable":Qd,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qd,"aria-relevant":null,"aria-required":Qd,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Cd="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of Cd)_d[e]=null;class Ad{constructor(e,t){this.tags={...Pd,...e},this.globalAttrs={..._d,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function Td(e,t,i=e.length){if(!t)return"";let n=t.firstChild,r=n&&n.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,i)):""}function Zd(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function Md(e,t,i){let n=i.tags[Td(e,Zd(t))];return(null==n?void 0:n.children)||i.allTags}function Rd(e,t){let i=[];for(let n=Zd(t);n&&!n.type.isTop;n=Zd(n.parent)){let r=Td(e,n);if(r&&"CloseTag"==n.lastChild.name)break;r&&i.indexOf(r)<0&&("EndTag"==t.name||t.from>=n.firstChild.to)&&i.push(r)}return i}Ad.default=new Ad;const Xd=/^[:\-\.\w\u00b7-\uffff]*$/;function Ed(e,t,i,n,r){let s=/\s*>/.test(e.sliceDoc(r,r+5))?"":">",o=Zd(i,"StartTag"==i.name||"TagName"==i.name);return{from:n,to:r,options:Md(e.doc,o,t).map(e=>({label:e,type:"type"})).concat(Rd(e.doc,i).map((e,t)=>({label:"/"+e,apply:"/"+e+s,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function jd(e,t,i,n){let r=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:i,to:n,options:Rd(e.doc,t).map((e,t)=>({label:e,apply:e+r,type:"type",boost:99-t})),validFor:Xd}}function zd(e){let{extraTags:t,extraGlobalAttributes:i}=e,n=i||t?new Ad(t,i):Ad.default;return e=>function(e,t){let{state:i,pos:n}=t,r=Ea(i).resolveInner(n,-1),s=r.resolve(n);for(let e,t=n;s==r&&(e=r.childBefore(t));){let i=e.lastChild;if(!i||!i.type.isError||i.from<i.to)break;s=r=e,t=i.from}return"TagName"==r.name?r.parent&&/CloseTag$/.test(r.parent.name)?jd(i,r,r.from,n):Ed(i,e,r,r.from,n):"StartTag"==r.name||"IncompleteTag"==r.name?Ed(i,e,r,n,n):"StartCloseTag"==r.name||"IncompleteCloseTag"==r.name?jd(i,r,n,n):"OpenTag"==r.name||"SelfClosingTag"==r.name||"AttributeName"==r.name?function(e,t,i,n,r){let s=Zd(i),o=s?t.tags[Td(e.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[];return{from:n,to:r,options:(o&&!1===o.globalAttrs?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:"property"})),validFor:Xd}}(i,e,r,"AttributeName"==r.name?r.from:n,n):"Is"==r.name||"AttributeValue"==r.name||"UnquotedAttributeValue"==r.name?function(e,t,i,n,r){var s;let o,a=null===(s=i.parent)||void 0===s?void 0:s.getChild("AttributeName"),l=[];if(a){let s=e.sliceDoc(a.from,a.to),h=t.globalAttrs[s];if(!h){let n=Zd(i),r=n?t.tags[Td(e.doc,n)]:null;h=(null==r?void 0:r.attrs)&&r.attrs[s]}if(h){let t=e.sliceDoc(n,r).toLowerCase(),i='"',s='"';/^['"]/.test(t)?(o='"'==t[0]?/^[^"]*$/:/^[^']*$/,i="",s=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),n++):o=/^[^\s<>='"]*$/;for(let e of h)l.push({label:e,apply:i+e+s,type:"constant"})}}return{from:n,to:r,options:l,validFor:o}}(i,e,r,"Is"==r.name?n:r.from,n):!t.explicit||"Element"!=s.name&&"Text"!=s.name&&"Document"!=s.name?null:function(e,t,i,n){let r=[],s=0;for(let n of Md(e.doc,i,t))r.push({label:"<"+n,type:"type"});for(let t of Rd(e.doc,i))r.push({label:"</"+t+">",type:"type",boost:99-s++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(i,e,r,n)}(n,e)}const Ld=nf.parser.configure({top:"SingleExpression"}),Yd=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:sf.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:of.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:af.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:Ld},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:nf.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:wd.parser}],Vd=[{name:"style",parser:wd.parser.configure({top:"Styles"})}].concat(Cd.map(e=>({name:e,parser:nf.parser}))),Bd=Xa.define({name:"html",parser:Lf.configure({props:[el.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,i=null;for(let t=e.node;;){let e=t.lastChild;if(!e||"Element"!=e.name||e.to!=t.to)break;i=t=e}return i&&(!(t=i.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(i.from)+e.unit:null}}),cl.add({Element(e){let t=e.firstChild,i=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==i.name?i.from:e.to}:null}}),El.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Wd=Bd.configure({wrap:Wf(Yd,Vd)}),Id=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Dd=ws.inputHandler.of((e,t,i,n,r)=>{if(e.composing||e.state.readOnly||t!=i||">"!=n&&"/"!=n||!Wd.isActiveAt(e.state,t,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(e=>{var t,i,r;let s,a=o.doc.sliceString(e.from-1,e.to)==n,{head:l}=e,h=Ea(o).resolveInner(l,-1);if(a&&">"==n&&"EndTag"==h.name){let n=h.parent;if("CloseTag"!=(null===(i=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===i?void 0:i.name)&&(s=Td(o.doc,n.parent,l))&&!Id.has(s))return{range:e,changes:{from:l,to:l+(">"===o.doc.sliceString(l,l+1)?1:0),insert:`</${s}>`}}}else if(a&&"/"==n&&"IncompleteCloseTag"==h.name){let e=h.parent;if(h.from==l-2&&"CloseTag"!=(null===(r=e.lastChild)||void 0===r?void 0:r.name)&&(s=Td(o.doc,e,l))&&!Id.has(s)){let e=l+(">"===o.doc.sliceString(l,l+1)?1:0),t=`${s}>`;return{range:K.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var Nd=i(411),qd=i(408),Ud={};Ud.styleTagTransform=d(),Ud.setAttributes=h(),Ud.insert=a().bind(null,"head"),Ud.domAPI=s(),Ud.insertStyleElement=u(),t()(qd.A,Ud),qd.A&&qd.A.locals&&qd.A.locals;var Gd=i(299),Fd=i(407);function Hd(e){const t={value:e};return(...e)=>{const[i]=e;return e.length?(t.value=i,i):t.value}}const Kd=Gd(function(e,t,i,n){const r={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:s}=n,o=n.target,a=up(e,["ok","cancel","input"]).map(sp);switch(s){case r.ENTER:hp(o,e,t,i),n.preventDefault();break;case r.ESC:fp(e),i();break;case r.TAB:n.shiftKey&&lp(e,a),lp(e,a),n.preventDefault();break;default:["left","right","up","down"].filter(e=>s===r[e.toUpperCase()]).forEach(()=>{!function(e,t){const i=sp(document.activeElement),n=/ok|cancel/.test(i),r=t.length-1;if("input"===i||!r||!n)return;const s=op(i);for(const t of up(e,[s]))t.focus()}(e,a)})}n.stopPropagation()}),Jd={ok:"OK"},ep={ok:"OK",cancel:"Cancel"},tp=Hd(100),ip=(e,t,i)=>rp(e,t,"",np(i)||Jd,i);function np(e={}){const{buttons:t}=e;return t||null}function rp(e,t,i,n,r){const s=Hd(),o=Hd(),a=new Promise((e,t)=>{const i=r&&(e=>"boolean"==typeof e)(r.cancel)&&!r.cancel;s(e),o(i?()=>{}:()=>t(Error()))}),l=function(e,t,i,n){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${e}</header>\n <div class="content-area">${t.replace(/\n/g,"<br>")}${i}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(e){const t=Object.keys(e),i=Gd((e,t,i)=>`<button\n tabindex=${i}\n data-name="js-${t.toLowerCase()}">\n ${e[t]}\n </button>`);return t.map(i(e)).join("")}(n)}\n </div>\n </div>\n </div>`}(e,t,i,n),h=Fd("div",{innerHTML:l,className:"smalltalk",style:`z-index: ${tp(tp()+1)}`});for(const e of up(h,["ok","input"]))e.focus();for(const e of up(h,["input"]))e.setSelectionRange(0,i.length);!function(e,t,i,n){for(const e of up(t,["cancel","close","ok"]))e.addEventListener("click",n)}(0,h,0,e=>{hp(e.target,h,s(),o())});for(const e of["click","contextmenu"])h.addEventListener(e,e=>{e.stopPropagation();for(const e of up(h,["ok","input"]))e.focus()});return h.addEventListener("keydown",Kd(h,s(),o())),Object.assign(a,{dialog:h,ok:s})}function sp(e){return e.getAttribute("data-name").replace("js-","")}const op=e=>"cancel"===e?"ok":"cancel",ap=(e,t)=>t===e?0:t+1;function lp(e,t){const i=sp(document.activeElement),n=t.length-1,r=t.indexOf(i),s=t[ap(n,r)];for(const t of up(e,[s]))t.focus()}function hp(e,t,i,n){const r=e.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(r))return n(),void fp(t);let s=null;for(const e of up(t,["input"]))({value:s}=e);i(s),fp(t)}const cp=Gd((e,t)=>e.querySelector(`[data-name="js-${t}"]`));function up(e,t){return t.map(cp(e)).filter(Boolean)}function fp(e){const{parentElement:t}=e;t&&t.removeChild(e)}const dp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pp="ARRAYBUFFER not supported by this environment",Op="UINT8ARRAY not supported by this environment";function gp(e,t,i,n){let r,s,o;const a=t||[0],l=(i=i||0)>>>3,h=-1===n?3:0;for(r=0;r<e.length;r+=1)o=r+l,s=o>>>2,a.length<=s&&a.push(0),a[s]|=e[r]<<8*(h+n*(o%4));return{value:a,binLen:8*e.length+i}}function mp(e,t,i){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,i,n){let r,s,o,a;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");const l=t||[0],h=(i=i||0)>>>3,c=-1===n?3:0;for(r=0;r<e.length;r+=2){if(s=parseInt(e.substr(r,2),16),isNaN(s))throw new Error("String of HEX type contains invalid characters");for(a=(r>>>1)+h,o=a>>>2;l.length<=o;)l.push(0);l[o]|=s<<8*(c+n*(a%4))}return{value:l,binLen:4*e.length+i}}(e,t,n,i)};case"TEXT":return function(e,n,r){return function(e,t,i,n,r){let s,o,a,l,h,c,u,f,d=0;const p=i||[0],O=(n=n||0)>>>3;if("UTF8"===t)for(u=-1===r?3:0,a=0;a<e.length;a+=1)for(s=e.charCodeAt(a),o=[],128>s?o.push(s):2048>s?(o.push(192|s>>>6),o.push(128|63&s)):55296>s||57344<=s?o.push(224|s>>>12,128|s>>>6&63,128|63&s):(a+=1,s=65536+((1023&s)<<10|1023&e.charCodeAt(a)),o.push(240|s>>>18,128|s>>>12&63,128|s>>>6&63,128|63&s)),l=0;l<o.length;l+=1){for(c=d+O,h=c>>>2;p.length<=h;)p.push(0);p[h]|=o[l]<<8*(u+r*(c%4)),d+=1}else for(u=-1===r?2:0,f="UTF16LE"===t&&1!==r||"UTF16LE"!==t&&1===r,a=0;a<e.length;a+=1){for(s=e.charCodeAt(a),!0===f&&(l=255&s,s=l<<8|s>>>8),c=d+O,h=c>>>2;p.length<=h;)p.push(0);p[h]|=s<<8*(u+r*(c%4)),d+=2}return{value:p,binLen:8*d+n}}(e,t,n,r,i)};case"B64":return function(e,t,n){return function(e,t,i,n){let r,s,o,a,l,h,c,u=0;const f=t||[0],d=(i=i||0)>>>3,p=-1===n?3:0,O=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==O&&O<e.length)throw new Error("Invalid '=' found in base-64 string");for(s=0;s<e.length;s+=4){for(l=e.substr(s,4),a=0,o=0;o<l.length;o+=1)r=dp.indexOf(l.charAt(o)),a|=r<<18-6*o;for(o=0;o<l.length-1;o+=1){for(c=u+d,h=c>>>2;f.length<=h;)f.push(0);f[h]|=(a>>>16-8*o&255)<<8*(p+n*(c%4)),u+=1}}return{value:f,binLen:8*u+i}}(e,t,n,i)};case"BYTES":return function(e,t,n){return function(e,t,i,n){let r,s,o,a;const l=t||[0],h=(i=i||0)>>>3,c=-1===n?3:0;for(s=0;s<e.length;s+=1)r=e.charCodeAt(s),a=s+h,o=a>>>2,l.length<=o&&l.push(0),l[o]|=r<<8*(c+n*(a%4));return{value:l,binLen:8*e.length+i}}(e,t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(pp)}return function(e,t,n){return function(e,t,i,n){return gp(new Uint8Array(e),t,i,n)}(e,t,n,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Op)}return function(e,t,n){return gp(e,t,n,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function vp(e,t,i,n){switch(e){case"HEX":return function(e){return function(e,t,i,n){const r="0123456789abcdef";let s,o,a="";const l=t/8,h=-1===i?3:0;for(s=0;s<l;s+=1)o=e[s>>>2]>>>8*(h+i*(s%4)),a+=r.charAt(o>>>4&15)+r.charAt(15&o);return n.outputUpper?a.toUpperCase():a}(e,t,i,n)};case"B64":return function(e){return function(e,t,i,n){let r,s,o,a,l,h="";const c=t/8,u=-1===i?3:0;for(r=0;r<c;r+=3)for(a=r+1<c?e[r+1>>>2]:0,l=r+2<c?e[r+2>>>2]:0,o=(e[r>>>2]>>>8*(u+i*(r%4))&255)<<16|(a>>>8*(u+i*((r+1)%4))&255)<<8|l>>>8*(u+i*((r+2)%4))&255,s=0;s<4;s+=1)h+=8*r+6*s<=t?dp.charAt(o>>>6*(3-s)&63):n.b64Pad;return h}(e,t,i,n)};case"BYTES":return function(e){return function(e,t,i){let n,r,s="";const o=t/8,a=-1===i?3:0;for(n=0;n<o;n+=1)r=e[n>>>2]>>>8*(a+i*(n%4))&255,s+=String.fromCharCode(r);return s}(e,t,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(pp)}return function(e){return function(e,t,i){let n;const r=t/8,s=new ArrayBuffer(r),o=new Uint8Array(s),a=-1===i?3:0;for(n=0;n<r;n+=1)o[n]=e[n>>>2]>>>8*(a+i*(n%4))&255;return s}(e,t,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Op)}return function(e){return function(e,t,i){let n;const r=t/8,s=-1===i?3:0,o=new Uint8Array(r);for(n=0;n<r;n+=1)o[n]=e[n>>>2]>>>8*(s+i*(n%4))&255;return o}(e,t,i)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const yp=4294967296,wp=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],bp=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],Sp=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],xp="Chosen SHA variant is not supported",kp="Cannot set numRounds with MAC";function Qp(e,t){let i,n;const r=e.binLen>>>3,s=t.binLen>>>3,o=r<<3,a=4-r<<3;if(r%4!=0){for(i=0;i<s;i+=4)n=r+i>>>2,e.value[n]|=t.value[i>>>2]<<o,e.value.push(0),e.value[n+1]|=t.value[i>>>2]>>>a;return(e.value.length<<2)-4>=s+r&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function $p(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},i=e||{},n="Output length must be a multiple of 8";if(t.outputUpper=i.outputUpper||!1,i.b64Pad&&(t.b64Pad=i.b64Pad),i.outputLen){if(i.outputLen%8!=0)throw new Error(n);t.outputLen=i.outputLen}else if(i.shakeLen){if(i.shakeLen%8!=0)throw new Error(n);t.outputLen=i.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function Pp(e,t,i,n){const r=e+" must include a value and format";if(!t){if(!n)throw new Error(r);return n}if(void 0===t.value||!t.format)throw new Error(r);return mp(t.format,t.encoding||"UTF8",i)(t.value)}class _p{constructor(e,t,i){const n=i||{};if(this.t=t,this.i=n.encoding||"UTF8",this.numRounds=n.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(e){let t,i=0;const n=this.m>>>5,r=this.C(e,this.h,this.u),s=r.binLen,o=r.value,a=s>>>5;for(t=0;t<a;t+=n)i+this.m<=s&&(this.U=this.v(o.slice(t,t+n),this.U),i+=this.m);return this.A+=i,this.h=o.slice(i>>>5),this.u=s%this.m,this.l=!0,this}getHash(e,t){let i,n,r=this.R;const s=$p(t);if(this.K){if(-1===s.outputLen)throw new Error("Output length must be specified in options");r=s.outputLen}const o=vp(e,r,this.T,s);if(this.H&&this.g)return o(this.g(s));for(n=this.F(this.h.slice(),this.u,this.A,this.L(this.U),r),i=1;i<this.numRounds;i+=1)this.K&&r%32!=0&&(n[n.length-1]&=16777215>>>24-r%32),n=this.F(n,r,0,this.B(this.o),r);return o(n)}setHMACKey(e,t,i){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const n=mp(t,(i||{}).encoding||"UTF8",this.T);this.k(n(e))}k(e){const t=this.m>>>3,i=t/4-1;let n;if(1!==this.numRounds)throw new Error(kp);if(this.H)throw new Error("MAC key already set");for(t<e.binLen/8&&(e.value=this.F(e.value,e.binLen,0,this.B(this.o),this.R));e.value.length<=i;)e.value.push(0);for(n=0;n<=i;n+=1)this.S[n]=909522486^e.value[n],this.p[n]=1549556828^e.value[n];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(e,t){const i=$p(t);return vp(e,this.R,this.T,i)(this.Y())}Y(){let e;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return e=this.v(this.p,this.B(this.o)),e=this.F(t,this.R,this.m,e,this.R),e}}function Cp(e,t){return e<<t|e>>>32-t}function Ap(e,t){return e>>>t|e<<32-t}function Tp(e,t){return e>>>t}function Zp(e,t,i){return e^t^i}function Mp(e,t,i){return e&t^~e&i}function Rp(e,t,i){return e&t^e&i^t&i}function Xp(e){return Ap(e,2)^Ap(e,13)^Ap(e,22)}function Ep(e,t){const i=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(i>>>16))<<16|65535&i}function jp(e,t,i,n){const r=(65535&e)+(65535&t)+(65535&i)+(65535&n);return(65535&(e>>>16)+(t>>>16)+(i>>>16)+(n>>>16)+(r>>>16))<<16|65535&r}function zp(e,t,i,n,r){const s=(65535&e)+(65535&t)+(65535&i)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(i>>>16)+(n>>>16)+(r>>>16)+(s>>>16))<<16|65535&s}function Lp(e){return Ap(e,7)^Ap(e,18)^Tp(e,3)}function Yp(e){return Ap(e,6)^Ap(e,11)^Ap(e,25)}function Vp(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Bp(e,t){let i,n,r,s,o,a,l;const h=[];for(i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],l=0;l<80;l+=1)h[l]=l<16?e[l]:Cp(h[l-3]^h[l-8]^h[l-14]^h[l-16],1),a=l<20?zp(Cp(i,5),Mp(n,r,s),o,1518500249,h[l]):l<40?zp(Cp(i,5),Zp(n,r,s),o,1859775393,h[l]):l<60?zp(Cp(i,5),Rp(n,r,s),o,2400959708,h[l]):zp(Cp(i,5),Zp(n,r,s),o,3395469782,h[l]),o=s,s=r,r=Cp(n,30),n=i,i=a;return t[0]=Ep(i,t[0]),t[1]=Ep(n,t[1]),t[2]=Ep(r,t[2]),t[3]=Ep(s,t[3]),t[4]=Ep(o,t[4]),t}function Wp(e,t,i,n){let r;const s=15+(t+65>>>9<<4),o=t+i;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&o,e[s-1]=o/yp|0,r=0;r<e.length;r+=16)n=Bp(e.slice(r,r+16),n);return n}let Ip=class extends _p{constructor(e,t,i){if("SHA-1"!==e)throw new Error(xp);super(e,t,i);const n=i||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=mp(this.t,this.i,this.T),this.v=Bp,this.L=function(e){return e.slice()},this.B=Vp,this.F=Wp,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,n.hmacKey&&this.k(Pp("hmacKey",n.hmacKey,this.T))}};function Dp(e){let t;return t="SHA-224"==e?bp.slice():Sp.slice(),t}function Np(e,t){let i,n,r,s,o,a,l,h,c,u,f;const d=[];for(i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=t[6],h=t[7],f=0;f<64;f+=1)d[f]=f<16?e[f]:jp(Ap(p=d[f-2],17)^Ap(p,19)^Tp(p,10),d[f-7],Lp(d[f-15]),d[f-16]),c=zp(h,Yp(o),Mp(o,a,l),wp[f],d[f]),u=Ep(Xp(i),Rp(i,n,r)),h=l,l=a,a=o,o=Ep(s,c),s=r,r=n,n=i,i=Ep(c,u);var p;return t[0]=Ep(i,t[0]),t[1]=Ep(n,t[1]),t[2]=Ep(r,t[2]),t[3]=Ep(s,t[3]),t[4]=Ep(o,t[4]),t[5]=Ep(a,t[5]),t[6]=Ep(l,t[6]),t[7]=Ep(h,t[7]),t}let qp=class extends _p{constructor(e,t,i){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(xp);super(e,t,i);const n=i||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=mp(this.t,this.i,this.T),this.v=Np,this.L=function(e){return e.slice()},this.B=Dp,this.F=function(t,i,n,r){return function(e,t,i,n,r){let s,o;const a=15+(t+65>>>9<<4),l=t+i;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/yp|0,s=0;s<e.length;s+=16)n=Np(e.slice(s,s+16),n);return o="SHA-224"===r?[n[0],n[1],n[2],n[3],n[4],n[5],n[6]]:n,o}(t,i,n,r,e)},this.U=Dp(e),this.m=512,this.R="SHA-224"===e?224:256,this.K=!1,n.hmacKey&&this.k(Pp("hmacKey",n.hmacKey,this.T))}};class Up{constructor(e,t){this.N=e,this.I=t}}function Gp(e,t){let i;return t>32?(i=64-t,new Up(e.I<<t|e.N>>>i,e.N<<t|e.I>>>i)):0!==t?(i=32-t,new Up(e.N<<t|e.I>>>i,e.I<<t|e.N>>>i)):e}function Fp(e,t){let i;return t<32?(i=32-t,new Up(e.N>>>t|e.I<<i,e.I>>>t|e.N<<i)):(i=64-t,new Up(e.I>>>t|e.N<<i,e.N>>>t|e.I<<i))}function Hp(e,t){return new Up(e.N>>>t,e.I>>>t|e.N<<32-t)}function Kp(e,t,i){return new Up(e.N&t.N^e.N&i.N^t.N&i.N,e.I&t.I^e.I&i.I^t.I&i.I)}function Jp(e){const t=Fp(e,28),i=Fp(e,34),n=Fp(e,39);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}function eO(e,t){let i,n;i=(65535&e.I)+(65535&t.I),n=(e.I>>>16)+(t.I>>>16)+(i>>>16);const r=(65535&n)<<16|65535&i;return i=(65535&e.N)+(65535&t.N)+(n>>>16),n=(e.N>>>16)+(t.N>>>16)+(i>>>16),new Up((65535&n)<<16|65535&i,r)}function tO(e,t,i,n){let r,s;r=(65535&e.I)+(65535&t.I)+(65535&i.I)+(65535&n.I),s=(e.I>>>16)+(t.I>>>16)+(i.I>>>16)+(n.I>>>16)+(r>>>16);const o=(65535&s)<<16|65535&r;return r=(65535&e.N)+(65535&t.N)+(65535&i.N)+(65535&n.N)+(s>>>16),s=(e.N>>>16)+(t.N>>>16)+(i.N>>>16)+(n.N>>>16)+(r>>>16),new Up((65535&s)<<16|65535&r,o)}function iO(e,t,i,n,r){let s,o;s=(65535&e.I)+(65535&t.I)+(65535&i.I)+(65535&n.I)+(65535&r.I),o=(e.I>>>16)+(t.I>>>16)+(i.I>>>16)+(n.I>>>16)+(r.I>>>16)+(s>>>16);const a=(65535&o)<<16|65535&s;return s=(65535&e.N)+(65535&t.N)+(65535&i.N)+(65535&n.N)+(65535&r.N)+(o>>>16),o=(e.N>>>16)+(t.N>>>16)+(i.N>>>16)+(n.N>>>16)+(r.N>>>16)+(s>>>16),new Up((65535&o)<<16|65535&s,a)}function nO(e,t){return new Up(e.N^t.N,e.I^t.I)}function rO(e){const t=Fp(e,19),i=Fp(e,61),n=Hp(e,6);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}function sO(e){const t=Fp(e,1),i=Fp(e,8),n=Hp(e,7);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}function oO(e){const t=Fp(e,14),i=Fp(e,18),n=Fp(e,41);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}const aO=[new Up(wp[0],3609767458),new Up(wp[1],602891725),new Up(wp[2],3964484399),new Up(wp[3],2173295548),new Up(wp[4],4081628472),new Up(wp[5],3053834265),new Up(wp[6],2937671579),new Up(wp[7],3664609560),new Up(wp[8],2734883394),new Up(wp[9],1164996542),new Up(wp[10],1323610764),new Up(wp[11],3590304994),new Up(wp[12],4068182383),new Up(wp[13],991336113),new Up(wp[14],633803317),new Up(wp[15],3479774868),new Up(wp[16],2666613458),new Up(wp[17],944711139),new Up(wp[18],2341262773),new Up(wp[19],2007800933),new Up(wp[20],1495990901),new Up(wp[21],1856431235),new Up(wp[22],3175218132),new Up(wp[23],2198950837),new Up(wp[24],3999719339),new Up(wp[25],766784016),new Up(wp[26],2566594879),new Up(wp[27],3203337956),new Up(wp[28],1034457026),new Up(wp[29],2466948901),new Up(wp[30],3758326383),new Up(wp[31],168717936),new Up(wp[32],1188179964),new Up(wp[33],1546045734),new Up(wp[34],1522805485),new Up(wp[35],2643833823),new Up(wp[36],2343527390),new Up(wp[37],1014477480),new Up(wp[38],1206759142),new Up(wp[39],344077627),new Up(wp[40],1290863460),new Up(wp[41],3158454273),new Up(wp[42],3505952657),new Up(wp[43],106217008),new Up(wp[44],3606008344),new Up(wp[45],1432725776),new Up(wp[46],1467031594),new Up(wp[47],851169720),new Up(wp[48],3100823752),new Up(wp[49],1363258195),new Up(wp[50],3750685593),new Up(wp[51],3785050280),new Up(wp[52],3318307427),new Up(wp[53],3812723403),new Up(wp[54],2003034995),new Up(wp[55],3602036899),new Up(wp[56],1575990012),new Up(wp[57],1125592928),new Up(wp[58],2716904306),new Up(wp[59],442776044),new Up(wp[60],593698344),new Up(wp[61],3733110249),new Up(wp[62],2999351573),new Up(wp[63],3815920427),new Up(3391569614,3928383900),new Up(3515267271,566280711),new Up(3940187606,3454069534),new Up(4118630271,4000239992),new Up(116418474,1914138554),new Up(174292421,2731055270),new Up(289380356,3203993006),new Up(460393269,320620315),new Up(685471733,587496836),new Up(852142971,1086792851),new Up(1017036298,365543100),new Up(1126000580,2618297676),new Up(1288033470,3409855158),new Up(1501505948,4234509866),new Up(1607167915,987167468),new Up(1816402316,1246189591)];function lO(e){return"SHA-384"===e?[new Up(3418070365,bp[0]),new Up(1654270250,bp[1]),new Up(2438529370,bp[2]),new Up(355462360,bp[3]),new Up(1731405415,bp[4]),new Up(41048885895,bp[5]),new Up(3675008525,bp[6]),new Up(1203062813,bp[7])]:[new Up(Sp[0],4089235720),new Up(Sp[1],2227873595),new Up(Sp[2],4271175723),new Up(Sp[3],1595750129),new Up(Sp[4],2917565137),new Up(Sp[5],725511199),new Up(Sp[6],4215389547),new Up(Sp[7],327033209)]}function hO(e,t){let i,n,r,s,o,a,l,h,c,u,f,d;const p=[];for(i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=t[6],h=t[7],f=0;f<80;f+=1)f<16?(d=2*f,p[f]=new Up(e[d],e[d+1])):p[f]=tO(rO(p[f-2]),p[f-7],sO(p[f-15]),p[f-16]),c=iO(h,oO(o),(g=a,m=l,new Up((O=o).N&g.N^~O.N&m.N,O.I&g.I^~O.I&m.I)),aO[f],p[f]),u=eO(Jp(i),Kp(i,n,r)),h=l,l=a,a=o,o=eO(s,c),s=r,r=n,n=i,i=eO(c,u);var O,g,m;return t[0]=eO(i,t[0]),t[1]=eO(n,t[1]),t[2]=eO(r,t[2]),t[3]=eO(s,t[3]),t[4]=eO(o,t[4]),t[5]=eO(a,t[5]),t[6]=eO(l,t[6]),t[7]=eO(h,t[7]),t}let cO=class extends _p{constructor(e,t,i){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(xp);super(e,t,i);const n=i||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=mp(this.t,this.i,this.T),this.v=hO,this.L=function(e){return e.slice()},this.B=lO,this.F=function(t,i,n,r){return function(e,t,i,n,r){let s,o;const a=31+(t+129>>>10<<5),l=t+i;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/yp|0,s=0;s<e.length;s+=32)n=hO(e.slice(s,s+32),n);return o="SHA-384"===r?[n[0].N,n[0].I,n[1].N,n[1].I,n[2].N,n[2].I,n[3].N,n[3].I,n[4].N,n[4].I,n[5].N,n[5].I]:[n[0].N,n[0].I,n[1].N,n[1].I,n[2].N,n[2].I,n[3].N,n[3].I,n[4].N,n[4].I,n[5].N,n[5].I,n[6].N,n[6].I,n[7].N,n[7].I],o}(t,i,n,r,e)},this.U=lO(e),this.m=1024,this.R="SHA-384"===e?384:512,this.K=!1,n.hmacKey&&this.k(Pp("hmacKey",n.hmacKey,this.T))}};const uO=[new Up(0,1),new Up(0,32898),new Up(2147483648,32906),new Up(2147483648,2147516416),new Up(0,32907),new Up(0,2147483649),new Up(2147483648,2147516545),new Up(2147483648,32777),new Up(0,138),new Up(0,136),new Up(0,2147516425),new Up(0,2147483658),new Up(0,2147516555),new Up(2147483648,139),new Up(2147483648,32905),new Up(2147483648,32771),new Up(2147483648,32770),new Up(2147483648,128),new Up(0,32778),new Up(2147483648,2147483658),new Up(2147483648,2147516545),new Up(2147483648,32896),new Up(0,2147483649),new Up(2147483648,2147516424)],fO=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function dO(e){let t;const i=[];for(t=0;t<5;t+=1)i[t]=[new Up(0,0),new Up(0,0),new Up(0,0),new Up(0,0),new Up(0,0)];return i}function pO(e){let t;const i=[];for(t=0;t<5;t+=1)i[t]=e[t].slice();return i}function OO(e,t){let i,n,r,s;const o=[],a=[];if(null!==e)for(n=0;n<e.length;n+=2)t[(n>>>1)%5][(n>>>1)/5|0]=nO(t[(n>>>1)%5][(n>>>1)/5|0],new Up(e[n+1],e[n]));for(i=0;i<24;i+=1){for(s=dO(),n=0;n<5;n+=1)o[n]=(l=t[n][0],h=t[n][1],c=t[n][2],u=t[n][3],f=t[n][4],new Up(l.N^h.N^c.N^u.N^f.N,l.I^h.I^c.I^u.I^f.I));for(n=0;n<5;n+=1)a[n]=nO(o[(n+4)%5],Gp(o[(n+1)%5],1));for(n=0;n<5;n+=1)for(r=0;r<5;r+=1)t[n][r]=nO(t[n][r],a[n]);for(n=0;n<5;n+=1)for(r=0;r<5;r+=1)s[r][(2*n+3*r)%5]=Gp(t[n][r],fO[n][r]);for(n=0;n<5;n+=1)for(r=0;r<5;r+=1)t[n][r]=nO(s[n][r],new Up(~s[(n+1)%5][r].N&s[(n+2)%5][r].N,~s[(n+1)%5][r].I&s[(n+2)%5][r].I));t[0][0]=nO(t[0][0],uO[i])}var l,h,c,u,f;return t}function gO(e){let t,i,n=0;const r=[0,0],s=[4294967295&e,e/yp&2097151];for(t=6;t>=0;t--)i=s[t>>2]>>>8*t&255,0===i&&0===n||(r[n+1>>2]|=i<<8*(n+1),n+=1);return n=0!==n?n:1,r[0]|=n,{value:n+1>4?r:[r[0]],binLen:8+8*n}}function mO(e){return Qp(gO(e.binLen),e)}function vO(e,t){let i,n=gO(t);n=Qp(n,e);const r=t>>>2,s=(r-n.value.length%r)%r;for(i=0;i<s;i++)n.value.push(0);return n.value}let yO=class extends _p{constructor(e,t,i){let n=6,r=0;super(e,t,i);const s=i||{};if(1!==this.numRounds){if(s.kmacKey||s.hmacKey)throw new Error(kp);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=mp(this.t,this.i,this.T),this.v=OO,this.L=pO,this.B=dO,this.U=dO(),this.K=!1,e){case"SHA3-224":this.m=r=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=r=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=r=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=r=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":n=31,this.m=r=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":n=31,this.m=r=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":n=4,this.m=r=1344,this.X(i),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":n=4,this.m=r=1088,this.X(i),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=r=1344,n=this.O(i),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=r=1088,n=this.O(i),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(xp)}this.F=function(e,t,i,s,o){return function(e,t,i,n,r,s,o){let a,l,h=0;const c=[],u=r>>>5,f=t>>>5;for(a=0;a<f&&t>=r;a+=u)n=OO(e.slice(a,a+u),n),t-=r;for(e=e.slice(a),t%=r;e.length<u;)e.push(0);for(a=t>>>3,e[a>>2]^=s<<a%4*8,e[u-1]^=2147483648,n=OO(e,n);32*c.length<o&&(l=n[h%5][h/5|0],c.push(l.I),!(32*c.length>=o));)c.push(l.N),h+=1,0==64*h%r&&(OO(null,n),h=0);return c}(e,t,0,s,r,n,o)},s.hmacKey&&this.k(Pp("hmacKey",s.hmacKey,this.T))}O(e,t){const i=function(e){const t=e||{};return{funcName:Pp("funcName",t.funcName,1,{value:[],binLen:0}),customization:Pp("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(i.funcName=t);const n=Qp(mO(i.funcName),mO(i.customization));if(0!==i.customization.binLen||0!==i.funcName.binLen){const e=vO(n,this.m>>>3);for(let t=0;t<e.length;t+=this.m>>>5)this.U=this.v(e.slice(t,t+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(e){const t=function(e){const t=e||{};return{kmacKey:Pp("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:Pp("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const i=vO(mO(t.kmacKey),this.m>>>3);for(let e=0;e<i.length;e+=this.m>>>5)this.U=this.v(i.slice(e,e+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(e){const t=Qp({value:this.h.slice(),binLen:this.u},function(e){let t,i,n=0;const r=[0,0],s=[4294967295&e,e/yp&2097151];for(t=6;t>=0;t--)i=s[t>>2]>>>8*t&255,0===i&&0===n||(r[n>>2]|=i<<8*n,n+=1);return n=0!==n?n:1,r[n>>2]|=n<<8*n,{value:n+1>4?r:[r[0]],binLen:8+8*n}}(e.outputLen));return this.F(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)}};class wO{constructor(e,t,i){if("SHA-1"==e)this.P=new Ip(e,t,i);else if("SHA-224"==e||"SHA-256"==e)this.P=new qp(e,t,i);else if("SHA-384"==e||"SHA-512"==e)this.P=new cO(e,t,i);else{if("SHA3-224"!=e&&"SHA3-256"!=e&&"SHA3-384"!=e&&"SHA3-512"!=e&&"SHAKE128"!=e&&"SHAKE256"!=e&&"CSHAKE128"!=e&&"CSHAKE256"!=e&&"KMAC128"!=e&&"KMAC256"!=e)throw new Error(xp);this.P=new yO(e,t,i)}}update(e){return this.P.update(e),this}getHash(e,t){return this.P.getHash(e,t)}setHMACKey(e,t,i){this.P.setHMACKey(e,t,i)}getHMAC(e,t){return this.P.getHMAC(e,t)}}var bO=i(256),SO=i(911);let xO="/api/v1/fs";const kO=e=>"function"==typeof e,QO=(e,t,i)=>{!i&&kO(t)&&(i=t,t=null),$O({method:"PUT",url:xO+e,data:t,callback:i})};function $O({url:e,data:t,method:i,callback:n}){var r;!function(e,t){const{url:i,data:n,method:r}=e,s=new XMLHttpRequest;if(!kO(t))throw Error("Callback should be function!");s.open(r,i,!0),s.addEventListener("error",t),s.addEventListener("load",()=>{if(s.status>=200&&s.status<400)return t(null,s.responseText);t(Error(s.responseText))}),s.send(n)}({method:i,data:t,url:(r=e,encodeURI(r).replace(/#/g,"%23"))},n)}const PO="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class _O{constructor(e,t,i=0,n=e.length,r,s){this.test=s,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,n),this.bufferStart=i,this.normalize=r?e=>r(PO(e)):PO,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return z(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=L(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Y(e);let n=this.normalize(t);if(n.length)for(let e=0,r=i,s=!0;;e++){let i=n.charCodeAt(e),o=this.match(i,r,s,this.bufferPos+this.bufferStart,e==n.length-1);if(o)return this.value=o,this;if(e==n.length-1)break;s&&e<t.length&&t.charCodeAt(e)==i?r++:s=!1}}}match(e,t,i,n,r){let s=null;for(let t=0;t<this.matches.length;){let i=this.matches[t],o=!1;this.query.charCodeAt(i.index)==e&&(i.index==this.query.length-1?s={from:i.from,to:n,precise:r&&i.precise}:(i.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(1==this.query.length?s={from:t,to:n,precise:i&&r}:this.matches.push({from:t,index:1,precise:i})),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}"undefined"!=typeof Symbol&&(_O.prototype[Symbol.iterator]=function(){return this});const CO={from:-1,to:-1,match:/.*/.exec(""),precise:!0},AO="gm"+(null==/x/.unicode?"":"u");class TO{constructor(e,t,i,n=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=CO,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new RO(e,t,i,n,r);this.re=new RegExp(t,AO+((null==i?void 0:i.ignoreCase)?"i":"")),this.test=null==i?void 0:i.test,this.iter=e.iter();let s=e.lineAt(n);this.curLineStart=s.from,this.matchPos=XO(e,n),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,n=i+t[0].length;if(this.matchPos=XO(this.text,n+(i==n?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<n||i>this.value.to)&&(!this.test||this.test(i,n,t)))return this.value={from:i,to:n,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const ZO=new WeakMap;class MO{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let n=ZO.get(e);if(!n||n.from>=i||n.to<=t){let n=new MO(t,e.sliceString(t,i));return ZO.set(e,n),n}if(n.from==t&&n.to==i)return n;let{text:r,from:s}=n;return s>t&&(r=e.sliceString(t,s)+r,s=t),n.to<i&&(r+=e.sliceString(n.to,i)),ZO.set(e,new MO(s,r)),new MO(t,r.slice(t-s,i-s))}}class RO{constructor(e,t,i,n,r){this.text=e,this.to=r,this.done=!1,this.value=CO,this.matchPos=XO(e,n),this.re=new RegExp(t,AO+((null==i?void 0:i.ignoreCase)?"i":"")),this.test=null==i?void 0:i.test,this.flat=MO.get(e,n,this.chunkEnd(n+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,i=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,i,t)))return this.value={from:e,to:i,precise:!0,match:t},this.matchPos=XO(this.text,i+(e==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=MO.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function XO(e,t){if(t>=e.length)return t;let i,n=e.lineAt(t);for(;t<n.to&&(i=n.text.charCodeAt(t-n.from))>=56320&&i<57344;)t++;return t}"undefined"!=typeof Symbol&&(TO.prototype[Symbol.iterator]=RO.prototype[Symbol.iterator]=function(){return this});class EO{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,AO),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new WO(this):new LO(this)}getCursor(e,t=0,i){let n=e.doc?e:ze.create({doc:e});return null==i&&(i=n.doc.length),this.regexp?YO(this,n,t,i):zO(this,n,t,i)}}class jO{constructor(e){this.spec=e}}function zO(e,t,i,n){let r;return e.wholeWord&&(r=function(e,t){return(i,n,r,s)=>((s>i||s+r.length<n)&&(s=Math.max(0,i-2),r=e.sliceString(s,Math.min(e.length,n+2))),!(t(VO(r,i-s))==Xe.Word&&t(BO(r,i-s))==Xe.Word||t(BO(r,n-s))==Xe.Word&&t(VO(r,n-s))==Xe.Word))}(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(r=function(e,t,i){return(n,r,s,o)=>{if(i&&!i(n,r,s,o))return!1;let a=n>=o&&r<=o+s.length?s.slice(n-o,r-o):t.doc.sliceString(n,r);return e(a,t,n,r)}}(e.test,t,r)),new _O(t.doc,e.unquoted,i,n,e.caseSensitive?void 0:e=>e.toLowerCase(),r)}class LO extends jO{constructor(e){super(e)}nextMatch(e,t,i){let n=zO(this.spec,e,i,e.doc.length).nextOverlapping();if(n.done){let i=Math.min(e.doc.length,t+this.spec.unquoted.length);n=zO(this.spec,e,0,i).nextOverlapping()}return n.done||n.value.from==t&&n.value.to==i?null:n.value}prevMatchInRange(e,t,i){for(let n=i;;){let i=Math.max(t,n-1e4-this.spec.unquoted.length),r=zO(this.spec,e,i,n),s=null;for(;!r.nextOverlapping().done;)s=r.value;if(s)return s;if(i==t)return null;n-=1e4}}prevMatch(e,t,i){let n=this.prevMatchInRange(e,0,t);return n||(n=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),!n||n.from==t&&n.to==i?null:n}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=zO(this.spec,e,0,e.doc.length),n=[];for(;!i.next().done;){if(n.length>=t)return null;n.push(i.value)}return n}highlight(e,t,i,n){let r=zO(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)n(r.value.from,r.value.to)}}function YO(e,t,i,n){let r;var s;return e.wholeWord&&(s=t.charCategorizer(t.selection.main.head),r=(e,t,i)=>!i[0].length||(s(VO(i.input,i.index))!=Xe.Word||s(BO(i.input,i.index))!=Xe.Word)&&(s(BO(i.input,i.index+i[0].length))!=Xe.Word||s(VO(i.input,i.index+i[0].length))!=Xe.Word)),e.test&&(r=function(e,t,i){return(n,r,s)=>(!i||i(n,r,s))&&e(s[0],t,n,r)}(e.test,t,r)),new TO(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:r},i,n)}function VO(e,t){return e.slice(j(e,t,!1),t)}function BO(e,t){return e.slice(t,j(e,t))}class WO extends jO{nextMatch(e,t,i){let n=YO(this.spec,e,i,e.doc.length).next();return n.done&&(n=YO(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,i){for(let n=1;;n++){let r=Math.max(t,i-1e4*n),s=YO(this.spec,e,r,i),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==t||o.from>r+10))return o;if(r==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if("&"==i)return e.match[0];if("$"==i)return"$";for(let t=i.length;t>0;t--){let n=+i.slice(0,t);if(n>0&&n<e.match.length)return e.match[n]+i.slice(t)}return t})}matchAll(e,t){let i=YO(this.spec,e,0,e.doc.length),n=[];for(;!i.next().done;){if(n.length>=t)return null;n.push(i.value)}return n}highlight(e,t,i,n){let r=YO(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!r.next().done;)n(r.value.from,r.value.to)}}const IO=Pe.define();function DO(e){var t=e.Pos;function i(e,t,i){if(t.line===i.line&&t.ch>=i.ch-1){var n=e.getLine(t.line).charCodeAt(t.ch);55296<=n&&n<=55551&&(i.ch+=1)}return{start:t,end:i}}var n=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"g?",type:"operator",operator:"rot13"},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],r=Object.create(null),s=n.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"marks",excludeFromCommandHistory:!0},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],a=q("");function l(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(ae(e.getCursor(),0,1)),re.enterInsertMode(e,{},t))}),t.onPasteFn}var h=/[\d]/,c=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],u=[function(e){return/\S/.test(e)}],f=["<",">"],d=["-",'"',".",":","_","/","+"],p=/^\w$/,O=/^[A-Z]$/;try{O=new RegExp("^[\\p{Lu}]$","u")}catch(e){}function g(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function m(e){return/^[a-z]$/.test(e)}function v(e){return-1!="()[]{}".indexOf(e)}function y(e){return h.test(e)}function w(e){return O.test(e)}function b(e){return/^\s*$/.test(e)}function S(e){return-1!=".?!".indexOf(e)}function x(e,t){for(var i=0;i<t.length;i++)if(t[i]==e)return!0;return!1}var k={};function Q(e,t,i,n,r){if(void 0===t&&!r)throw Error("defaultValue is required unless callback is provided");if(i||(i="string"),k[e]={type:i,defaultValue:t,callback:r},n)for(var s=0;s<n.length;s++)k[n[s]]=k[e];t&&$(e,t)}function $(e,t,i,n){var r=k[e],s=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if("boolean"==r.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}r.callback?("local"!==s&&r.callback(t,void 0),"global"!==s&&i&&r.callback(t,i)):("local"!==s&&(r.value="boolean"==r.type?!!t:t),"global"!==s&&i&&(i.state.vim.options[e]={value:t}))}function P(e,t,i){var n=k[e],r=(i=i||{}).scope;if(!n)return new Error("Unknown option: "+e);if(n.callback){let e=t&&n.callback(void 0,t);return"global"!==r&&void 0!==e?e:"local"!==r?n.callback():void 0}return("global"!==r&&t&&t.state.vim.options[e]||"local"!==r&&n||{}).value}Q("filetype",void 0,"string",["ft"],function(e,t){if(void 0!==t){if(void 0===e){let e=t.getOption("mode");return"null"==e?"":e}{let i=""==e?"null":e;t.setOption("mode",i)}}}),Q("textwidth",80,"number",["tw"],function(e,t){if(void 0!==t){if(void 0===e)return t.getOption("textwidth");var i=Math.round(e);i>1&&t.setOption("textwidth",i)}});var _,C,A=function(){var e=100,t=-1,i=0,n=0,r=new Array(e);function s(s,o){(t+=o)>i?t=i:t<n&&(t=n);var a=r[(e+t)%e];if(a&&!a.find()){var l,h=o>0?1:-1,c=s.getCursor();do{if((a=r[(e+(t+=h))%e])&&(l=a.find())&&!ue(c,l))break}while(t<i&&t>n)}return a}return{cachedCursor:void 0,add:function(s,o,a){var l=r[t%e];function h(i){var n=++t%e,o=r[n];o&&o.clear(),r[n]=s.setBookmark(i)}if(l){var c=l.find();c&&!ue(c,o)&&h(o)}else h(o);h(a),i=t,(n=t-e+1)<0&&(n=0)},find:function(e,i){var n=t,r=s(e,i);return t=n,r&&r.find()},move:s}},T=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};class Z{constructor(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=T()}exitMacroRecordMode(){var e=_.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1}enterMacroRecordMode(e,t){var i=_.registerController.getRegister(t);if(i){if(i.clear(),this.latestRegister=t,e.openDialog){var n=Ne("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(n,function(){},{bottom:!0})}this.isRecording=!0}}}function M(e){return e.state.vim||(e.state.vim={inputState:new U,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:void 0,sel:{anchor:new t(0,0),head:new t(0,0)},options:{},expectLiteralNext:!1,status:""}),e.state.vim}function R(){for(var e in _={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:A(),macroModeState:new Z,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new J,exCommandHistoryController:new J},k){var t=k[e];t.value=t.defaultValue}}class X{constructor(e,t){this.keyName=e,this.key=t.key,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey}}var E,j={enterVimMode:function(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",ut),M(t),e.on(t.getInputField(),"paste",l(t))},leaveVimMode:function(t){t.setOption("disableInput",!1),t.off("cursorActivity",ut),e.off(t.getInputField(),"paste",l(t)),t.state.vim=null,Fe&&clearTimeout(Fe)},buildKeyMap:function(){},getRegisterController:function(){return _.registerController},resetVimGlobalState_:R,getVimGlobalState_:function(){return _},maybeInitVimState_:M,suppressErrorLogging:!1,InsertModeKey:X,map:function(e,t,i){st.map(e,t,i)},unmap:function(e,t){return st.unmap(e,t)},noremap:function(e,t,i){st.map(e,t,i,!0)},mapclear:function(e){var t=n.length,i=s,r=n.slice(0,t-i);if(n=n.slice(t-i),e)for(var o=r.length-1;o>=0;o--){var a=r[o];if(e!==a.context)if(a.context)this._mapCommand(a);else{var l=["normal","insert","visual"];for(var h in l)if(l[h]!==e){var c=Object.assign({},a);c.context=l[h],this._mapCommand(c)}}}},langmap:N,vimKeyFromEvent:D,setOption:$,getOption:P,defineOption:Q,defineEx:function(e,t,i){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;rt[e]=i,st.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,i){var n=this.findKey(e,t,i);if("function"==typeof n)return n()},multiSelectHandleKey:function(e,t,i){var n=M(e),r=e,s=!1,o=(n=j.maybeInitVimState_(r)).visualBlock||n.wasInVisualBlock;if(r.state.closeVimNotification){var a=r.state.closeVimNotification;if(r.state.closeVimNotification=null,a(),"<CR>"==t)return G(r),!0}var l=r.isInMultiSelectMode();if(n.wasInVisualBlock&&!l?n.wasInVisualBlock=!1:l&&n.visualBlock&&(n.wasInVisualBlock=!0),"<Esc>"!=t||n.insertMode||n.visualMode||!l||"<Esc>"!=n.status)if(o||!l||r.inVirtualSelectionMode)s=j.handleKey(r,t,i);else{var h=mt(n),c=n.inputState.changeQueueList||[];r.operation(function(){r.curOp&&(r.curOp.isVimOp=!0);var e=0;r.forEachSelection(function(){r.state.vim.inputState.changeQueue=c[e];var n=r.getCursor("head"),o=r.getCursor("anchor"),a=fe(n,o)?0:-1,l=fe(n,o)?-1:0;n=ae(n,0,a),o=ae(o,0,l),r.state.vim.sel.head=n,r.state.vim.sel.anchor=o,s=j.handleKey(r,t,i),r.virtualSelection&&(c[e]=r.state.vim.inputState.changeQueue,r.state.vim=mt(h)),e++}),r.curOp?.cursorActivity&&!s&&(r.curOp.cursorActivity=!1),r.state.vim=n,n.inputState.changeQueueList=c,n.inputState.changeQueue=null},!0)}else G(r);return!s||n.visualMode||n.insertMode||n.visualMode==r.somethingSelected()||ft(r,n),s},findKey:function(t,i,r){var s=M(t),o=t;function a(){if("<Esc>"==i){if(s.visualMode)ke(o);else{if(!s.insertMode)return;ot(o)}return G(o),!0}}var l=s.insertMode?function(){if(a())return!0;s.inputState.keyBuffer.push(i);var e=s.inputState.keyBuffer.join(""),t=1==i.length,r=ee.matchCommand(e,n,s.inputState,"insert"),l=s.inputState.changeQueue;if("none"==r.type)return G(o),!1;if("partial"==r.type){if(r.expectLiteralNext&&(s.expectLiteralNext=!0),C&&window.clearTimeout(C),C=t&&window.setTimeout(function(){s.insertMode&&s.inputState.keyBuffer.length&&G(o)},P("insertModeEscKeysTimeout")),t){var h=o.listSelections();l&&l.removed.length==h.length||(l=s.inputState.changeQueue=new F),l.inserted+=i;for(var c=0;c<h.length;c++){var u=de(h[c].anchor,h[c].head),f=pe(h[c].anchor,h[c].head),d=o.getRange(u,o.state.overwrite?ae(f,0,1):f);l.removed[c]=(l.removed[c]||"")+d}}return!t}if("full"==r.type&&(s.inputState.keyBuffer.length=0),s.expectLiteralNext=!1,C&&window.clearTimeout(C),r.command&&l){for(h=o.listSelections(),c=0;c<h.length;c++){var p=h[c].head;o.replaceRange(l.removed[c]||"",ae(p,0,-l.inserted.length),p,"+input")}_.macroModeState.lastInsertModeChanges.changes.pop()}return r.command||G(o),r.command}():function(){if(function(){var e=_.macroModeState;if(e.isRecording){if("q"==i)return e.exitMacroRecordMode(),G(o),!0;"mapping"!=r&&function(e,t){if(!e.isPlaying){var i=e.latestRegister,n=_.registerController.getRegister(i);n&&n.pushText(t)}}(e,i)}}()||a())return!0;s.inputState.keyBuffer.push(i);var e=s.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(e))return!0;var t=/^(\d*)(.*)$/.exec(e);if(!t)return G(o),!1;var l=s.visualMode?"visual":"normal",h=t[2]||t[1];s.inputState.operatorShortcut&&s.inputState.operatorShortcut.slice(-1)==h&&(h=s.inputState.operatorShortcut);var c=ee.matchCommand(h,n,s.inputState,l);return"none"==c.type?(G(o),!1):"partial"==c.type?(c.expectLiteralNext&&(s.expectLiteralNext=!0),!0):"clear"==c.type?(G(o),!0):(s.expectLiteralNext=!1,s.inputState.keyBuffer.length=0,(t=/^(\d*)(.*)$/.exec(e))&&t[1]&&"0"!=t[1]&&s.inputState.pushRepeatDigit(t[1]),c.command)}();return!1===l?!s.insertMode&&(1===i.length||e.isMac&&/<A-.>/.test(i))?function(){return!0}:void 0:!0===l?function(){return!0}:l?function(){return o.operation(function(){o.curOp.isVimOp=!0;try{if("object"!=typeof l)return;"keyToKey"==l.type?V(o,l.toKeys,l):ee.processCommand(o,s,l)}catch(e){throw o.state.vim=void 0,M(o),j.suppressErrorLogging||console.log(e),e}return!0})}:void 0},handleEx:function(e,t){st.processCommand(e,t)},defineMotion:function(e,t){te[e]=t},defineAction:function(e,t){re[e]=t},defineOperator:function(e,t){ne[e]=t},mapCommand:function(e,t,i,n,r){var s={keys:e,type:t};for(var o in s[t]=i,s[t+"Args"]=n,r)s[o]=r[o];at(s)},_mapCommand:at,defineRegister:function(e,t){var i=_.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(i[e])throw Error("Register already defined "+e);i[e]=t,d.push(e)},exitVisualMode:ke,exitInsertMode:ot},z=[],L=!1;function Y(e){if(!E)throw new Error("No prompt to send key to");if("<"==e[0]){var t=e.toLowerCase().slice(1,-1),i=t.split("-");if("lt"==(t=i.pop()||""))e="<";else if("space"==t)e=" ";else if("cr"==t)e="\n";else if(I[t]){var n=E.value||"",r={key:I[t],target:{value:n,selectionEnd:n.length,selectionStart:n.length}};return E.onKeyDown&&E.onKeyDown(r,E.value,o),void(E&&E.onKeyUp&&E.onKeyUp(r,E.value,o))}}if("\n"==e){var s=E;E=null,s.onClose&&s.onClose(s.value)}else E.value=(E.value||"")+e;function o(e){E&&("string"==typeof e?E.value=e:E=null)}}function V(e,t,i){var n=L;if(i){if(-1!=z.indexOf(i))return;z.push(i),L=0!=i.noremap}try{for(var r,s=M(e),o=/<(?:[CSMA]-)*\w+>|./gi;r=o.exec(t);){var a=r[0],l=s.insertMode;if(E)Y(a);else if(!j.handleKey(e,a,"mapping")&&l&&s.insertMode){if("<"==a[0]){var h=a.toLowerCase().slice(1,-1),c=h.split("-");if("lt"==(h=c.pop()||""))a="<";else if("space"==h)a=" ";else if("cr"==h)a="\n";else{if(I.hasOwnProperty(h)){Ot(e,a=I[h]);continue}a=a[0],o.lastIndex=r.index+1}}e.replaceSelection(a)}}}finally{if(z.pop(),L=!!z.length&&n,!z.length&&E){var u=E;E=null,Ue(e,u)}}}var B={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},W={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},I={};function D(t,i){var n=t.key;if(!W[n]){n.length>1&&"n"==n[0]&&(n=n.replace("Numpad","")),n=B[n]||n;var s="";if(t.ctrlKey&&(s+="C-"),t.altKey&&(s+="A-"),t.metaKey&&(s+="M-"),e.isMac&&"A-"==s&&1==n.length&&(s=s.slice(2)),(s||n.length>1)&&t.shiftKey&&(s+="S-"),i&&!i.expectLiteralNext&&1==n.length)if(a.keymap&&n in a.keymap)0==a.remapCtrl&&s||(n=a.keymap[n]);else if(n.charCodeAt(0)>128&&!r[n]){var o=t.code?.slice(-1)||"";t.shiftKey||(o=o.toLowerCase()),o&&(n=o,!s&&t.altKey&&(s="A-"))}return(s+=n).length>1&&(s="<"+s+">"),s}}function N(e,t){a.string!==e&&(a=q(e)),a.remapCtrl=t}function q(e){let t={};if(!e)return{keymap:t,string:""};function i(e){return e.split(/\\?(.)/).filter(Boolean)}return e.split(/((?:[^\\,]|\\.)+),/).map(e=>{if(!e)return;const n=e.split(/((?:[^\\;]|\\.)+);/);if(3==n.length){const e=i(n[1]),r=i(n[2]);if(e.length!==r.length)return;for(let i=0;i<e.length;++i)t[e[i]]=r[i]}else if(1==n.length){const n=i(e);if(n.length%2!=0)return;for(let e=0;e<n.length;e+=2)t[n[e]]=n[e+1]}}),{keymap:t,string:e}}"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(B)).forEach(function(e){I[(B[e]||"").toLowerCase()]=I[e.toLowerCase()]=e}),Q("langmap",void 0,"string",["lmap"],function(e,t){if(void 0===e)return a.string;N(e)});class U{constructor(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=void 0,this.changeQueue=null}pushRepeatDigit(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)}getRepeat(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e}}function G(t,i){t.state.vim.inputState=new U,t.state.vim.expectLiteralNext=!1,e.signal(t,"vim-command-done",i)}function F(){this.removed=[],this.inserted=""}class H{constructor(e,t,i){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!i}setText(e,t,i){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!i}pushText(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)}pushInsertModeChanges(e){this.insertModeChanges.push(T(e))}pushSearchQuery(e){this.searchQueries.push(e)}clear(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1}toString(){return this.keyBuffer.join("")}}class K{constructor(e){this.registers=e,this.unnamedRegister=e['"']=new H,e["."]=new H,e[":"]=new H,e["/"]=new H,e["+"]=new H}pushText(e,t,i,n,r){if("_"!==e){n&&"\n"!==i.charAt(i.length-1)&&(i+="\n");var s=this.isValidRegister(e)?this.getRegister(e):null;if(s&&e)w(e)?s.pushText(i,n):s.setText(i,n,r),"+"===e&&navigator.clipboard.writeText(i),this.unnamedRegister.setText(s.toString(),n);else{switch(t){case"yank":this.registers[0]=new H(i,n,r);break;case"delete":case"change":-1==i.indexOf("\n")?this.registers["-"]=new H(i,n):(this.shiftNumericRegisters_(),this.registers[1]=new H(i,n))}this.unnamedRegister.setText(i,n,r)}}}getRegister(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new H),this.registers[e]):this.unnamedRegister}isValidRegister(e){return e&&(x(e,d)||p.test(e))}shiftNumericRegisters_(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}}class J{constructor(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}nextMatch(e,t){var i=this.historyBuffer,n=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var r=this.iterator+n;t?r>=0:r<i.length;r+=n)for(var s=i[r],o=0;o<=s.length;o++)if(this.initialPrefix==s.substring(0,o))return this.iterator=r,s;return r>=i.length?(this.iterator=i.length,this.initialPrefix):r<0?e:void 0}pushInput(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)}reset(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}}var ee={matchCommand:function(e,t,i,n){var r=function(e,t,i,n){n.operator&&(i="operatorPending");for(var r,o=[],a=[],l=L?t.length-s:0;l<t.length;l++){var h=t[l];"insert"==i&&"insert"!=h.context||h.context&&h.context!=i||n.operator&&"action"==h.type||!(r=le(e,h.keys))||("partial"==r&&o.push(h),"full"==r&&a.push(h))}return{partial:o,full:a}}(e,t,n,i),o=r.full[0];if(!o)return r.partial.length?{type:"partial",expectLiteralNext:1==r.partial.length&&"<character>"==r.partial[0].keys.slice(-11)}:{type:"none"};if("<character>"==o.keys.slice(-11)||"<register>"==o.keys.slice(-10)){var a=function(e){var t=/^.*(<[^>]+>)$/.exec(e),i=t?t[1]:e.slice(-1);if(i.length>1)switch(i){case"<CR>":case"<S-CR>":i="\n";break;case"<Space>":case"<S-Space>":i=" ";break;default:i=""}return i}(e);if(!a||a.length>1)return{type:"clear"};i.selectedCharacter=a}return{type:"full",command:o}},processCommand:function(e,t,i){switch(t.inputState.repeatOverride=i.repeatOverride,i.type){case"motion":this.processMotion(e,t,i);break;case"operator":this.processOperator(e,t,i);break;case"operatorMotion":this.processOperatorMotion(e,t,i);break;case"action":this.processAction(e,t,i);break;case"search":this.processSearch(e,t,i);break;case"ex":case"keyToEx":this.processEx(e,t,i)}},processMotion:function(e,t,i){t.inputState.motion=i.motion,t.inputState.motionArgs=oe(i.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,i){var n=t.inputState;if(n.operator){if(n.operator==i.operator)return n.motion="expandToLine",n.motionArgs={linewise:!0,repeat:1},void this.evalInput(e,t);G(e)}n.operator=i.operator,n.operatorArgs=oe(i.operatorArgs),i.keys.length>1&&(n.operatorShortcut=i.keys),i.exitVisualBlock&&(t.visualBlock=!1,Se(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,i){var n=t.visualMode,r=oe(i.operatorMotionArgs);r&&n&&r.visualLine&&(t.visualLine=!0),this.processOperator(e,t,i),n||this.processMotion(e,t,i)},processAction:function(e,t,i){var n=t.inputState,r=n.getRepeat(),s=!!r,o=oe(i.actionArgs)||{repeat:1};n.selectedCharacter&&(o.selectedCharacter=n.selectedCharacter),i.operator&&this.processOperator(e,t,i),i.motion&&this.processMotion(e,t,i),(i.motion||i.operator)&&this.evalInput(e,t),o.repeat=r||1,o.repeatIsExplicit=s,o.registerName=n.registerName,G(e),t.lastMotion=null,i.isEdit&&this.recordLastEdit(t,n,i),re[i.action](e,o,t)},processSearch:function(t,i,n){if(t.getSearchCursor){var r=n.searchArgs.forward,s=n.searchArgs.wholeWordOnly;Ye(t).setReversed(!r);var o=r?"/":"?",a=Ye(t).getQuery(),l=t.getScrollInfo(),h="";switch(n.searchArgs.querySrc){case"prompt":var c=_.macroModeState;c.isPlaying?d(c.replaySearchQueries.shift()||"",!0,!1):Ue(t,{onClose:function(e){t.scrollTo(l.left,l.top),d(e,!0,!0);var i=_.macroModeState;i.isRecording&&function(e,t){if(!e.isPlaying){var i=e.latestRegister,n=_.registerController.getRegister(i);n&&n.pushSearchQuery&&n.pushSearchQuery(t)}}(i,e)},prefix:o,desc:Ne("span",{$cursor:"pointer",onmousedown:function(e){e.preventDefault(),$("pcre",!P("pcre")),this.textContent=p(),O()}},p()),onKeyUp:function(e,t,i){var n,r,s=D(e);"<Up>"==s||"<Down>"==s?(n="<Up>"==s,r=e.target?e.target.selectionEnd:0,i(t=_.searchHistoryController.nextMatch(t,n)||""),r&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(r,e.target.value.length))):s&&"<Left>"!=s&&"<Right>"!=s&&_.searchHistoryController.reset(),h=t,O()},onKeyDown:function(i,n,r){var s=D(i);"<Esc>"==s||"<C-c>"==s||"<C-[>"==s||"<BS>"==s&&""==n?(_.searchHistoryController.pushInput(n),_.searchHistoryController.reset(),Ge(t,a?.source||""),Je(t),t.scrollTo(l.left,l.top),e.e_stop(i),G(t),r(),t.focus()):"<Up>"==s||"<Down>"==s?e.e_stop(i):"<C-u>"==s&&(e.e_stop(i),r(""))}});break;case"wordUnderCursor":var u=$e(t,{noSymbol:!0}),f=!0;if(u||(u=$e(t,{noSymbol:!1}),f=!1),!u)return qe(t,"No word under cursor"),void G(t);let i=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);i=f&&s?"\\b"+i+"\\b":function(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}(i),_.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),d(i,!0,!1)}}function d(e,r,s){_.searchHistoryController.pushInput(e),_.searchHistoryController.reset();try{Ge(t,e,r,s)}catch(i){return qe(t,"Invalid regex: "+e),void G(t)}ee.processMotion(t,i,{keys:"",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:n.searchArgs.toJumplist}})}function p(){return P("pcre")?"(JavaScript regexp: set pcre)":"(Vim regexp: set nopcre)"}function O(){var e;try{e=Ge(t,h,!0,!0)}catch(e){}e?t.scrollIntoView(Ke(t,!r,e),30):(Je(t),t.scrollTo(l.left,l.top))}},processEx:function(t,i,n){if("keyToEx"==n.type)st.processCommand(t,n.exArgs.input);else{var r={onClose:function(e){_.exCommandHistoryController.pushInput(e),_.exCommandHistoryController.reset(),st.processCommand(t,e),t.state.vim&&G(t),Je(t)},onKeyDown:function(i,n,r){var s,o,a=D(i);("<Esc>"==a||"<C-c>"==a||"<C-[>"==a||"<BS>"==a&&""==n)&&(_.exCommandHistoryController.pushInput(n),_.exCommandHistoryController.reset(),e.e_stop(i),G(t),Je(t),r(),t.focus()),"<Up>"==a||"<Down>"==a?(e.e_stop(i),s="<Up>"==a,o=i.target?i.target.selectionEnd:0,r(n=_.exCommandHistoryController.nextMatch(n,s)||""),o&&i.target&&(i.target.selectionEnd=i.target.selectionStart=Math.min(o,i.target.value.length))):"<C-u>"==a?(e.e_stop(i),r("")):a&&"<Left>"!=a&&"<Right>"!=a&&_.exCommandHistoryController.reset()},onKeyUp:function(i,n){var r=new e.StringStream(n),s={};try{if(st.parseInput_(t,r,s),"s"!=s.commandName)return void Je(t);var o=st.matchCommand_(s.commandName);if(!o)return;if(st.parseCommandArgs_(r,s,o),!s.argString)return;var a=De(s.argString.slice(1),!0,!0);a&&He(t,a)}catch(i){}},prefix:":"};i.visualMode&&(r.value="'<,'>",r.selectValueOnOpen=!1),Ue(t,r)}},evalInput:function(e,n){var r,s,o,a=n.inputState,l=a.motion,h=a.motionArgs||{repeat:1},c=a.operator,u=a.operatorArgs||{},f=a.registerName,d=n.sel,p=ce(n.visualMode?se(e,d.head):e.getCursor("head")),O=ce(n.visualMode?se(e,d.anchor):e.getCursor("anchor")),g=ce(p),m=ce(O);if(c&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&h.explicitRepeat?h.repeatIsExplicit=!0:(h.noRepeat||!h.explicitRepeat&&0===o)&&(o=1,h.repeatIsExplicit=!1),a.selectedCharacter&&(h.selectedCharacter=u.selectedCharacter=a.selectedCharacter),h.repeat=o,G(e),l){var v=te[l](e,p,h,n,a);if(n.lastMotion=te[l],!v)return;if(h.toJumplist){var y=_.jumpList,w=y.cachedCursor;w?(Pe(e,w,v),delete y.cachedCursor):Pe(e,p,v)}v instanceof Array?(s=v[0],r=v[1]):r=v,r||(r=ce(p)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=se(e,r,g)),s&&(s=se(e,s)),s=s||m,d.anchor=s,d.head=r,Se(e),Re(e,n,"<",fe(s,r)?s:r),Re(e,n,">",fe(s,r)?r:s)):c||(r=se(e,r,g),e.setCursor(r.line,r.ch))}if(c){if(u.lastSel){s=m;var S=u.lastSel,x=Math.abs(S.head.line-S.anchor.line),k=Math.abs(S.head.ch-S.anchor.ch);r=S.visualLine?new t(m.line+x,m.ch):S.visualBlock?new t(m.line+x,m.ch+k):S.head.line==S.anchor.line?new t(m.line,m.ch+k):new t(m.line+x,m.ch),n.visualMode=!0,n.visualLine=S.visualLine,n.visualBlock=S.visualBlock,d=n.sel={anchor:s,head:r},Se(e)}else n.visualMode&&(u.lastSel={anchor:ce(d.anchor),head:ce(d.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var Q,$,P,C,A;if(n.visualMode){if(Q=de(d.head,d.anchor),$=pe(d.head,d.anchor),P=n.visualLine||u.linewise,C=n.visualBlock?"block":P?"line":"char",A=xe(e,{anchor:(R=i(e,Q,$)).start,head:R.end},C),P){var T=A.ranges;if("block"==C)for(var Z=0;Z<T.length;Z++)T[Z].head.ch=ge(e,T[Z].head.line);else"line"==C&&(T[0].head=new t(T[0].head.line+1,0))}}else{if(Q=ce(s||m),fe($=ce(r||g),Q)){var M=Q;Q=$,$=M}(P=h.linewise||u.linewise)?function(e,t,i){t.ch=0,i.ch=0,i.line++}(0,Q,$):h.forward&&function(e,t,i){var n=e.getRange(t,i);if(/\n\s*$/.test(n)){var r=n.split("\n");r.pop();for(var s=r.pop();r.length>0&&s&&b(s);s=r.pop())i.line--,i.ch=0;s?(i.line--,i.ch=ge(e,i.line)):i.ch=0}}(e,Q,$),C="char";var R,X=!h.inclusive||P;A=xe(e,{anchor:(R=i(e,Q,$)).start,head:R.end},C,X)}e.setSelections(A.ranges,A.primary),n.lastMotion=null,u.repeat=o,u.registerName=f,u.linewise=P;var E=ne[c](e,u,A.ranges,m,r);n.visualMode&&ke(e,null!=E),E&&e.setCursor(E)}},recordLastEdit:function(e,t,i){var n=_.macroModeState;n.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=i,n.lastInsertModeChanges.changes=[],n.lastInsertModeChanges.expectCursorActivityForChange=!1,n.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},te={moveToTopLine:function(e,i,n){var r=tt(e).top+n.repeat-1;return new t(r,Qe(e.getLine(r)))},moveToMiddleLine:function(e){var i=tt(e),n=Math.floor(.5*(i.top+i.bottom));return new t(n,Qe(e.getLine(n)))},moveToBottomLine:function(e,i,n){var r=tt(e).bottom-n.repeat+1;return new t(r,Qe(e.getLine(r)))},expandToLine:function(e,i,n){return new t(i.line+n.repeat-1,1/0)},findNext:function(e,t,i){var n=Ye(e),r=n.getQuery();if(r){var s=!i.forward;s=n.isReversed()?!s:s,He(e,r);var o=Ke(e,s,r,i.repeat);return o||qe(e,"No match found "+r+(P("pcre")?" (set nopcre to use Vim regexps)":"")),o}},findAndSelectNextInclusive:function(i,n,r,s,o){var a=Ye(i),l=a.getQuery();if(l){var h=!r.forward,c=function(e,i,n,r,s){return e.operation(function(){void 0===r&&(r=1);var o=e.getCursor(),a=e.getSearchCursor(n,o),l=a.find(!i);!s.visualMode&&l&&ue(a.from(),o)&&a.find(!i);for(var h=0;h<r;h++)if(!(l=a.find(i))&&!(a=e.getSearchCursor(n,i?new t(e.lastLine()):new t(e.firstLine(),0))).find(i))return;var c=a.from(),u=a.to();return c&&u&&[c,u]})}(i,h=a.isReversed()?!h:h,l,r.repeat,s);if(c){if(o.operator)return c;var u=c[0],f=new t(c[1].line,c[1].ch-1);if(s.visualMode){(s.visualLine||s.visualBlock)&&(s.visualLine=!1,s.visualBlock=!1,e.signal(i,"vim-mode-change",{mode:"visual",subMode:""}));var d=s.sel.anchor;if(d)return a.isReversed()?r.forward?[d,u]:[d,f]:r.forward?[d,f]:[d,u]}else s.visualMode=!0,s.visualLine=!1,s.visualBlock=!1,e.signal(i,"vim-mode-change",{mode:"visual",subMode:""});return h?[f,u]:[u,f]}}},goToMark:function(e,t,i,n){var r=it(e,n,i.selectedCharacter||"");return r?i.linewise?{line:r.line,ch:Qe(e.getLine(r.line))}:r:null},moveToOtherHighlightedEnd:function(e,i,n,r){var s=r.sel;return r.visualBlock&&n.sameLine?[se(e,new t(s.anchor.line,s.head.ch)),se(e,new t(s.head.line,s.anchor.ch))]:[s.head,s.anchor]},jumpToMark:function(e,i,n,r){for(var s=i,o=0;o<n.repeat;o++){var a=s;for(var l in r.marks)if(m(l)){var h=r.marks[l].find();if(!((n.forward?fe(h,a):fe(a,h))||n.linewise&&h.line==a.line)){var c=ue(a,s),u=n.forward?Oe(a,h,s):Oe(s,h,a);(c||u)&&(s=h)}}}return n.linewise&&(s=new t(s.line,Qe(e.getLine(s.line)))),s},moveByCharacters:function(e,i,n){var r=i,s=n.repeat,o=n.forward?r.ch+s:r.ch-s;return new t(r.line,o)},moveByLines:function(e,i,n,r){var s=i,o=s.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:o=r.lastHPos;break;default:r.lastHPos=o}var a=n.repeat+(n.repeatOffset||0),l=n.forward?s.line+a:s.line-a,h=e.firstLine(),c=e.lastLine(),u=e.findPosV(s,n.forward?a:-a,"line",r.lastHSPos);return(n.forward?u.line>l:u.line<l)&&(l=u.line,o=u.ch),l<h&&s.line==h?this.moveToStartOfLine(e,i,n,r):l>c&&s.line==c?Ze(e,i,n,r,!0):(n.toFirstChar&&(o=Qe(e.getLine(l)),r.lastHPos=o),r.lastHSPos=e.charCoords(new t(l,o),"div").left,new t(l,o))},moveByDisplayLines:function(e,i,n,r){var s=i;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(s,"div").left}var o=n.repeat,a=e.findPosV(s,n.forward?o:-o,"line",r.lastHSPos);if(a.hitSide)if(n.forward){var l={top:e.charCoords(a,"div").top+8,left:r.lastHSPos};a=e.coordsChar(l,"div")}else{var h=e.charCoords(new t(e.firstLine(),0),"div");h.left=r.lastHSPos,a=e.coordsChar(h,"div")}return r.lastHPos=a.ch,a},moveByPage:function(e,t,i){var n=t,r=i.repeat;return e.findPosV(n,i.forward?r:-r,"page")},moveByParagraph:function(e,t,i){var n=i.forward?1:-1;return Ee(e,t,i.repeat,n).start},moveBySentence:function(e,i,n){var r=n.forward?1:-1;return function(e,i,n,r){function s(e,t){if(null!==t.line)if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!g(e,t.ln))return void(t.line=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function o(e,t,i,n){var r=""===(h=e.getLine(t)),o={line:h,ln:t,pos:i,dir:n},a={ln:o.ln,pos:o.pos},l=""===o.line;for(s(e,o);null!==o.line;){if(a.ln=o.ln,a.pos=o.pos,""===o.line&&!l)return{ln:o.ln,pos:o.pos};if(r&&""!==o.line&&!b(o.line[o.pos]))return{ln:o.ln,pos:o.pos};!S(o.line[o.pos])||r||o.pos!==o.line.length-1&&!b(o.line[o.pos+1])||(r=!0),s(e,o)}var h=e.getLine(a.ln);a.pos=0;for(var c=h.length-1;c>=0;--c)if(!b(h[c])){a.pos=c;break}return a}function a(e,t,i,n){var r={line:e.getLine(t),ln:t,pos:i,dir:n},o=r.ln,a=null,l=""===r.line;for(s(e,r);null!==r.line;){if(""===r.line&&!l)return null!==a?{ln:o,pos:a}:{ln:r.ln,pos:r.pos};if(S(r.line[r.pos])&&null!==a&&(r.ln!==o||r.pos+1!==a))return{ln:o,pos:a};""===r.line||b(r.line[r.pos])||(l=!1,o=r.ln,a=r.pos),s(e,r)}var h=e.getLine(o);a=0;for(var c=0;c<h.length;++c)if(!b(h[c])){a=c;break}return{ln:o,pos:a}}for(var l={ln:i.line,pos:i.ch};n>0;)l=r<0?a(e,l.ln,l.pos,r):o(e,l.ln,l.pos,r),n--;return new t(l.ln,l.pos)}(e,i,n.repeat,r)},moveByScroll:function(e,t,i,n){var r,s=e.getScrollInfo(),o=i.repeat;o||(o=s.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,"local");if(i.repeat=o,!(r=te.moveByDisplayLines(e,t,i,n)))return null;var l=e.charCoords(r,"local");return e.scrollTo(null,s.top+l.top-a.top),r},moveByWords:function(e,i,n){return function(e,i,n,r,s,o){var a=ce(i),l=[];(r&&!s||!r&&s)&&n++;for(var h=!(r&&s),c=0;c<n;c++){var u=Te(e,i,r,o,h);if(!u){var f=ge(e,e.lastLine());l.push(r?{line:e.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(u),i=new t(u.line,r?u.to-1:u.from)}var d=l.length!=n,p=l[0],O=l.pop();return r&&!s?(d||p.from==a.ch&&p.line==a.line||(O=l.pop()),O&&new t(O.line,O.from)):r&&s?O&&new t(O.line,O.to-1):!r&&s?(d||p.to==a.ch&&p.line==a.line||(O=l.pop()),O&&new t(O.line,O.to)):O&&new t(O.line,O.from)}(e,i,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,i){var n=Me(e,i.repeat,i.forward,i.selectedCharacter,t),r=i.forward?-1:1;return _e(r,i),n?(n.ch+=r,n):null},moveToCharacter:function(e,t,i){var n=i.repeat;return _e(0,i),Me(e,n,i.forward,i.selectedCharacter,t)||t},moveToSymbol:function(e,i,n){var r=n.repeat;return n.selectedCharacter&&function(e,i,n,r){var s=ce(e.getCursor()),o=n?1:-1,a=n?e.lineCount():-1,l=s.ch,h=s.line,c=e.getLine(h),u={lineText:c,nextCh:c.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=Ce[r];if(!f)return s;var d=Ae[f].init,p=Ae[f].isComplete;for(d&&d(u);h!==a&&i;){if(u.index+=o,u.nextCh=u.lineText.charAt(u.index),!u.nextCh){if(h+=o,u.lineText=e.getLine(h)||"",o>0)u.index=0;else{var O=u.lineText.length;u.index=O>0?O-1:0}u.nextCh=u.lineText.charAt(u.index)}p(u)&&(s.line=h,s.ch=u.index,i--)}return u.nextCh||u.curMoveThrough?new t(h,u.index):s}(e,r,n.forward,n.selectedCharacter)||i},moveToColumn:function(e,i,n,r){var s=n.repeat;return r.lastHPos=s-1,r.lastHSPos=e.charCoords(i,"div").left,function(e,i){var n=e.getCursor().line;return se(e,new t(n,i-1))}(e,s)},moveToEol:function(e,t,i,n){return Ze(e,t,i,n,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,i){var n=i;return new t(n.line,Qe(e.getLine(n.line)))},moveToMatchedSymbol:function(e,i){for(var n,r=i,s=r.line,o=r.ch,a=e.getLine(s);o<a.length;o++)if((n=a.charAt(o))&&v(n)){var l=e.getTokenTypeAt(new t(s,o+1));if("string"!==l&&"comment"!==l)break}if(o<a.length){var h="<"===n||">"===n?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(s,o),{bracketRegex:h}).to}return r},moveToStartOfLine:function(e,i){return new t(i.line,0)},moveToLineOrEdgeOfDocument:function(e,i,n){var r=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(r=n.repeat-e.getOption("firstLineNumber")),new t(r,Qe(e.getLine(r)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(i,n,r,s){var o=r.selectedCharacter||"";"b"==o?o="(":"B"==o&&(o="{");var a,l,h=!r.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[o]){if(l=!0,!(a=ze(i,n,o,h))){var c=i.getSearchCursor(new RegExp("\\"+o,"g"),n);c.find()&&(a=ze(i,c.from(),o,h))}}else if({"'":!0,'"':!0,"`":!0}[o])l=!0,a=function(e,i,n,r){var s,o,a,l,h=ce(i),c=e.getLine(h.line).split(""),u=c.indexOf(n);if(h.ch<u)h.ch=u;else if(u<h.ch&&c[h.ch]==n){var f=/string/.test(e.getTokenTypeAt(ae(i,0,1))),d=/string/.test(e.getTokenTypeAt(i));f&&!d||(o=h.ch,--h.ch)}if(c[h.ch]!=n||o)for(a=h.ch;a>-1&&!s;a--)c[a]==n&&(s=a+1);else s=h.ch+1;if(s&&!o)for(a=s,l=c.length;a<l&&!o;a++)c[a]==n&&(o=a);return s&&o?(r&&(--s,++o),{start:new t(h.line,s),end:new t(h.line,o)}):{start:h,end:h}}(i,n,o,h);else if("W"===o||"w"===o)for(var u=r.repeat||1;u-- >0;){var f=$e(i,{inclusive:h,innerWord:!h,bigWord:"W"===o,noSymbol:"W"===o,multiline:!0},a&&a.end);f&&(a||(a=f),a.end=f.end)}else if("p"===o)if(a=Ee(i,n,r.repeat,0,h),r.linewise=!0,s.visualMode)s.visualLine||(s.visualLine=!0);else{var d=s.inputState.operatorArgs;d&&(d.linewise=!0),a.end.line--}else if("t"===o)a=function(t,i,n){var r=i;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:r,end:r};var s=e.findMatchingTag(t,i)||e.findEnclosingTag(t,i);return s&&s.open&&s.close?n?{start:s.open.from,end:s.close.to}:{start:s.open.to,end:s.close.from}:{start:r,end:r}}(i,n,h);else if("s"===o){var p=i.getLine(n.line);n.ch>0&&S(p[n.ch])&&(n.ch-=1);var O=je(i,n,r.repeat,1,h),g=je(i,n,r.repeat,-1,h);b(i.getLine(g.line)[g.ch])&&b(i.getLine(O.line)[O.ch-1])&&(g={line:g.line,ch:g.ch+1}),a={start:g,end:O}}return a?i.state.vim.visualMode?function(e,i,n,r){var s,o=e.state.vim.sel,a=r?i:o.head,l=r?i:o.anchor;return fe(n,i)&&(s=n,n=i,i=s),fe(a,l)?(a=de(i,a),l=pe(l,n)):(l=de(i,l),-1==(a=ae(a=pe(a,n),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,ge(e,a.line-1)))),[l,a]}(i,a.start,a.end,l):[a.start,a.end]:null},repeatLastCharacterSearch:function(e,t,i){var n=_.lastCharacterSearch,r=i.repeat,s=i.forward===n.forward,o=(n.increment?1:0)*(s?-1:1);e.moveH(-o,"char"),i.inclusive=!!s;var a=Me(e,r,s,n.selectedCharacter);return a?(a.ch+=o,a):(e.moveH(o,"char"),t)}};function ie(e,t){for(var i=[],n=0;n<t;n++)i.push(e);return i}var ne={change:function(e,i,n){var r,s,o=e.state.vim,a=n[0].anchor,l=n[0].head;if(o.visualMode)if(i.fullLine)l.ch=Number.MAX_VALUE,l.line--,e.setSelection(a,l),s=e.getSelection(),e.replaceSelection(""),r=a;else{s=e.getSelection();var h=ie("",n.length);e.replaceSelections(h),r=de(n[0].head,n[0].anchor)}else{s=e.getRange(a,l);var c=o.lastEditInputState;if("moveByWords"==c?.motion&&!b(s)){var u=/\s+$/.exec(s);u&&c.motionArgs&&c.motionArgs.forward&&(l=ae(l,0,-u[0].length),s=s.slice(0,-u[0].length))}i.linewise&&(a=new t(a.line,Qe(e.getLine(a.line))),l.line>a.line&&(l=new t(l.line-1,Number.MAX_VALUE))),e.replaceRange("",a,l),r=a}_.registerController.pushText(i.registerName,"change",s,i.linewise,n.length>1),re.enterInsertMode(e,{head:r},e.state.vim)},delete:function(e,i,n){var r,s,o=e.state.vim;if(o.visualBlock){s=e.getSelection();var a=ie("",n.length);e.replaceSelections(a),r=de(n[0].head,n[0].anchor)}else{var l=n[0].anchor,h=n[0].head;i.linewise&&h.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==h.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,ge(e,l.line-1))),s=e.getRange(l,h),e.replaceRange("",l,h),r=l,i.linewise&&(r=te.moveToFirstNonWhiteSpaceCharacter(e,l))}return _.registerController.pushText(i.registerName,"delete",s,i.linewise,o.visualBlock),se(e,r)},indent:function(e,t,i){var n=e.state.vim,r=n.visualMode&&t.repeat||1;if(n.visualBlock){for(var s,o=e.getOption("tabSize"),a=e.getOption("indentWithTabs")?"\t":" ".repeat(o),l=i.length-1;l>=0;l--)if(s=de(i[l].anchor,i[l].head),t.indentRight)e.replaceRange(a.repeat(r),s,s);else{for(var h=e.getLine(s.line),c=0,u=0;u<r;u++){var f=h[s.ch+c];if("\t"==f)c++;else{if(" "!=f)break;c++;for(var d=1;d<a.length&&" "===(f=h[s.ch+c]);d++)c++}}e.replaceRange("",s,ae(s,0,c))}return s}if(e.indentMore)for(u=0;u<r;u++)t.indentRight?e.indentMore():e.indentLess();else{var p=i[0].anchor.line,O=n.visualBlock?i[i.length-1].anchor.line:i[0].head.line;for(t.linewise&&O--,l=p;l<=O;l++)for(u=0;u<r;u++)e.indentLine(l,t.indentRight)}return te.moveToFirstNonWhiteSpaceCharacter(e,i[0].anchor)},indentAuto:function(e,t,i){return e.execCommand("indentAuto"),te.moveToFirstNonWhiteSpaceCharacter(e,i[0].anchor)},hardWrap:function(e,i,n,r){if(e.hardWrap){var s=n[0].anchor.line,o=n[0].head.line;i.linewise&&o--;var a=e.hardWrap({from:s,to:o});return a>s&&i.linewise&&a--,i.keepCursor?r:new t(a,0)}},changeCase:function(e,t,i,n,r){for(var s=e.getSelections(),o=[],a=t.toLower,l=0;l<s.length;l++){var h=s[l],c="";if(!0===a)c=h.toLowerCase();else if(!1===a)c=h.toUpperCase();else for(var u=0;u<h.length;u++){var f=h.charAt(u);c+=w(f)?f.toLowerCase():f.toUpperCase()}o.push(c)}return e.replaceSelections(o),t.shouldMoveCursor?r:!e.state.vim.visualMode&&t.linewise&&i[0].anchor.line+1==i[0].head.line?te.moveToFirstNonWhiteSpaceCharacter(e,n):t.linewise?n:de(i[0].anchor,i[0].head)},yank:function(e,t,i,n){var r=e.state.vim,s=e.getSelection(),o=r.visualMode?de(r.sel.anchor,r.sel.head,i[0].head,i[0].anchor):n;return _.registerController.pushText(t.registerName,"yank",s,t.linewise,r.visualBlock),o},rot13:function(e,t,i,n,r){for(var s=e.getSelections(),o=[],a=0;a<s.length;a++){const e=s[a].split("").map(e=>{const t=e.charCodeAt(0);return t>=65&&t<=90?String.fromCharCode(65+(t-65+13)%26):t>=97&&t<=122?String.fromCharCode(97+(t-97+13)%26):e}).join("");o.push(e)}return e.replaceSelections(o),t.shouldMoveCursor?r:!e.state.vim.visualMode&&t.linewise&&i[0].anchor.line+1==i[0].head.line?te.moveToFirstNonWhiteSpaceCharacter(e,n):t.linewise?n:de(i[0].anchor,i[0].head)}},re={jumpListWalk:function(e,t,i){if(!i.visualMode){var n=t.repeat||1,r=t.forward,s=_.jumpList.move(e,r?n:-n),o=s?s.find():void 0;o=o||e.getCursor(),e.setCursor(o)}},scroll:function(e,t,i){if(!i.visualMode){var n=t.repeat||1,r=e.defaultTextHeight(),s=e.getScrollInfo().top,o=r*n,a=t.forward?s+o:s-o,l=ce(e.getCursor()),h=e.charCoords(l,"local");if(t.forward)a>h.top?(l.line+=(a-h.top)/r,l.line=Math.ceil(l.line),e.setCursor(l),h=e.charCoords(l,"local"),e.scrollTo(null,h.top)):e.scrollTo(null,a);else{var c=a+e.getScrollInfo().clientHeight;c<h.bottom?(l.line-=(h.bottom-c)/r,l.line=Math.floor(l.line),e.setCursor(l),h=e.charCoords(l,"local"),e.scrollTo(null,h.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,a)}}},scrollToCursor:function(e,i){var n=e.getCursor().line,r=e.charCoords(new t(n,0),"local"),s=e.getScrollInfo().clientHeight,o=r.top;switch(i.position){case"center":o=r.bottom-s/2;break;case"bottom":var a=new t(n,e.getLine(n).length-1);o=o-s+(e.charCoords(a,"local").bottom-o)}e.scrollTo(null,o)},replayMacro:function(e,t,i){var n=t.selectedCharacter||"",r=t.repeat||1,s=_.macroModeState;for("@"==n?n=s.latestRegister||"":s.latestRegister=n;r--;)ht(e,i,s,n)},enterMacroRecordMode:function(e,t){var i=_.macroModeState,n=t.selectedCharacter;_.registerController.isValidRegister(n)&&i.enterMacroRecordMode(e,n)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,r,s){if(!n.getOption("readOnly")){s.insertMode=!0,s.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=s.sel,l=r.head||n.getCursor("head"),h=n.listSelections().length;if("eol"==o)l=new t(l.line,ge(n,l.line));else if("bol"==o)l=new t(l.line,0);else if("charAfter"==o)l=i(n,l,ae(l,0,1)).end;else if("firstNonBlank"==o)l=i(n,l,te.moveToFirstNonWhiteSpaceCharacter(n,l)).end;else if("startOfSelectedArea"==o){if(!s.visualMode)return;s.visualBlock?(l=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),h=Math.abs(a.head.line-a.anchor.line)+1):l=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!s.visualMode)return;s.visualBlock?(l=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),h=Math.abs(a.head.line-a.anchor.line)+1):l=a.head.line>=a.anchor.line?ae(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(s.visualMode)return}else"lastEdit"==o&&(l=nt(n)||l);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),_.macroModeState.isPlaying||(n.on("change",ct),s.insertEnd&&s.insertEnd.clear(),s.insertEnd=n.setBookmark(l,{insertLeft:!0}),e.on(n.getInputField(),"keydown",dt)),s.visualMode&&ke(n),we(n,l,h)}},toggleVisualMode:function(n,r,s){var o,a=r.repeat,l=n.getCursor();if(s.visualMode)s.visualLine!=!!r.linewise||s.visualBlock!=!!r.blockwise?(s.visualLine=!!r.linewise,s.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:s.visualLine?"linewise":s.visualBlock?"blockwise":""}),Se(n)):ke(n);else{s.visualMode=!0,s.visualLine=!!r.linewise,s.visualBlock=!!r.blockwise;var h=i(n,l,o=se(n,new t(l.line,l.ch+a-1)));s.sel={anchor:h.start,head:h.end},e.signal(n,"vim-mode-change",{mode:"visual",subMode:s.visualLine?"linewise":s.visualBlock?"blockwise":""}),Se(n),Re(n,s,"<",de(l,o)),Re(n,s,">",pe(l,o))}},reselectLastSelection:function(t,i,n){var r=n.lastSelection;if(n.visualMode&&be(t,n),r){var s=r.anchorMark.find(),o=r.headMark.find();if(!s||!o)return;n.sel={anchor:s,head:o},n.visualMode=!0,n.visualLine=r.visualLine,n.visualBlock=r.visualBlock,Se(t),Re(t,n,"<",de(s,o)),Re(t,n,">",pe(s,o)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""})}},joinLines:function(e,i,n){var r,s;if(n.visualMode){if(r=e.getCursor("anchor"),fe(s=e.getCursor("head"),r)){var o=s;s=r,r=o}s.ch=ge(e,s.line)-1}else{var a=Math.max(i.repeat,2);r=e.getCursor(),s=se(e,new t(r.line+a-1,1/0))}for(var l=0,h=r.line;h<s.line;h++){l=ge(e,r.line);var c="",u=0;if(!i.keepSpaces){var f=e.getLine(r.line+1);-1==(u=f.search(/\S/))?u=f.length:c=" "}e.replaceRange(c,new t(r.line,l),new t(r.line+1,u))}var d=se(e,new t(r.line,l));n.visualMode&&ke(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(i,n,r){r.insertMode=!0;var s=ce(i.getCursor());s.line!==i.firstLine()||n.after?(s.line=n.after?s.line:s.line-1,s.ch=ge(i,s.line),i.setCursor(s),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(i)):(i.replaceRange("\n",new t(i.firstLine(),0)),i.setCursor(i.firstLine(),0)),this.enterInsertMode(i,{repeat:n.repeat},r)},paste:function(e,t,i){var n=_.registerController.getRegister(t.registerName);if("+"===t.registerName)navigator.clipboard.readText().then(r=>{this.continuePaste(e,t,i,r,n)});else{var r=n.toString();this.continuePaste(e,t,i,r,n)}},continuePaste:function(e,i,n,r,s){var o=ce(e.getCursor());if(r){if(i.matchIndent){var a=e.getOption("tabSize"),l=function(e){var t=e.split("\t").length-1,i=e.split(" ").length-1;return t*a+1*i},h=e.getLine(e.getCursor().line),c=l(h.match(/^\s*/)[0]),u=r.replace(/\n$/,""),f=r!==u,d=l(r.match(/^\s*/)[0]);r=u.replace(/^\s*/gm,function(t){var i=c+(l(t)-d);if(i<0)return"";if(e.getOption("indentWithTabs")){var n=Math.floor(i/a);return Array(n+1).join("\t")}return Array(i+1).join(" ")}),r+=f?"\n":""}i.repeat>1&&(r=Array(i.repeat+1).join(r));var p,O=s.linewise,g=s.blockwise,m=g?r.split("\n"):void 0;if(m){O&&m.pop();for(var v=0;v<m.length;v++)m[v]=""==m[v]?" ":m[v];o.ch+=i.after?1:0,o.ch=Math.min(ge(e,o.line),o.ch)}else O?n.visualMode?r=n.visualLine?r.slice(0,-1):"\n"+r.slice(0,r.length-1)+"\n":i.after?(r="\n"+r.slice(0,r.length-1),o.ch=ge(e,o.line)):o.ch=0:o.ch+=i.after?1:0;if(n.visualMode){var y;n.lastPastedText=r;var w=function(e){var t=e.listSelections(),i=t[0],n=t[t.length-1];return[fe(i.anchor,i.head)?i.anchor:i.head,fe(n.anchor,n.head)?n.head:n.anchor]}(e),b=w[0],S=w[1],x=e.getSelection(),k=e.listSelections(),Q=new Array(k.length).join("1").split("1");n.lastSelection&&(y=n.lastSelection.headMark.find()),_.registerController.unnamedRegister.setText(x),g?(e.replaceSelections(Q),S=new t(b.line+r.length-1,b.ch),e.setCursor(b),ye(e,S),e.replaceSelections(r),p=b):n.visualBlock?(e.replaceSelections(Q),e.setCursor(b),e.replaceRange(r,b,b),p=b):(e.replaceRange(r,b,S),p=e.posFromIndex(e.indexFromPos(b)+r.length-1)),y&&(n.lastSelection.headMark=e.setBookmark(y)),O&&(p.ch=0)}else if(g&&m){for(e.setCursor(o),v=0;v<m.length;v++)($=o.line+v)>e.lastLine()&&e.replaceRange("\n",new t($,0)),ge(e,$)<o.ch&&ve(e,$,o.ch);e.setCursor(o),ye(e,new t(o.line+m.length-1,o.ch)),e.replaceSelections(m),p=o}else if(e.replaceRange(r,o),O){var $=i.after?o.line+1:o.line;p=new t($,Qe(e.getLine($)))}else p=ce(o),/\n/.test(r)||(p.ch+=r.length-(i.after?1:0));n.visualMode&&ke(e,!1),e.setCursor(p)}},undo:function(t,i){t.operation(function(){he(t,e.commands.undo,i.repeat)(),t.setCursor(se(t,t.getCursor("start")))})},redo:function(t,i){he(t,e.commands.redo,i.repeat)()},setRegister:function(e,t,i){i.inputState.registerName=t.selectedCharacter},insertRegister:function(e,t,i){var n=t.selectedCharacter,r=_.registerController.getRegister(n),s=r&&r.toString();s&&e.replaceSelection(s)},oneNormalCommand:function(t,i,n){ot(t,!0),n.insertModeReturn=!0,e.on(t,"vim-command-done",function i(){n.visualMode||(n.insertModeReturn&&(n.insertModeReturn=!1,n.insertMode||re.enterInsertMode(t,{},n)),e.off(t,"vim-command-done",i))})},setMark:function(e,t,i){var n=t.selectedCharacter;n&&Re(e,i,n,e.getCursor())},replace:function(n,r,s){var o,a,l=r.selectedCharacter||"",h=n.getCursor(),c=n.listSelections();if(s.visualMode)h=n.getCursor("start"),a=n.getCursor("end");else{var u=n.getLine(h.line);(o=h.ch+r.repeat)>u.length&&(o=u.length),a=new t(h.line,o)}var f=i(n,h,a);if(h=f.start,a=f.end,"\n"==l)s.visualMode||n.replaceRange("",h,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(h,a);if(d=(d=d.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l)).replace(/[^\n]/g,l),s.visualBlock){var p=new Array(n.getOption("tabSize")+1).join(" "),O=(d=(d=n.getSelection()).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l)).replace(/\t/g,p).replace(/[^\n]/g,l).split("\n");n.replaceSelections(O)}else n.replaceRange(d,h,a);s.visualMode?(h=fe(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,n.setCursor(h),ke(n,!1)):n.setCursor(ae(a,0,-1))}},incrementNumberToken:function(e,i){for(var n,r,s,o,a=e.getCursor(),l=e.getLine(a.line),h=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=h.exec(l))&&(s=(r=n.index)+n[0].length,!(a.ch<s)););if((i.backtrack||!(s<=a.ch))&&n){var c=n[2]||n[4],u=n[3]||n[5],f=i.increase?1:-1,d={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];o=(parseInt(n[1]+u,d)+f*i.repeat).toString(d);var p=c?new Array(u.length-o.length+1+n[1].length).join("0"):"";o="-"===o.charAt(0)?"-"+c+p+o.substr(1):c+p+o;var O=new t(a.line,r),g=new t(a.line,s);e.replaceRange(o,O,g),e.setCursor(new t(a.line,r+o.length-1))}},repeatLastEdit:function(e,t,i){var n=i.lastEditInputState;if(n){var r=t.repeat;r&&t.repeatIsExplicit?n.repeatOverride=r:r=n.repeatOverride||r,pt(e,i,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:function(e,t){ot(e)}};function se(e,i,n){var r=e.state.vim,s=r.insertMode||r.visualMode,o=Math.min(Math.max(e.firstLine(),i.line),e.lastLine()),a=e.getLine(o),l=a.length-1+Number(!!s),h=Math.min(Math.max(0,i.ch),l),c=a.charCodeAt(h);if(56320<=c&&c<=57343){var u=1;n&&n.line==o&&n.ch>h&&(u=-1),(h+=u)>l&&(h-=2)}return new t(o,h)}function oe(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function ae(e,i,n){return"object"==typeof i&&(n=i.ch,i=i.line),new t(e.line+i,e.ch+n)}function le(e,t){const i="<character>"==t.slice(-11),n="<register>"==t.slice(-10);if(i||n){var r=t.length-(i?11:10),s=e.slice(0,r),o=t.slice(0,r);return s==o&&e.length>r?"full":0==o.indexOf(s)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function he(e,t,i){return function(){for(var n=0;n<i;n++)t(e)}}function ce(e){return new t(e.line,e.ch)}function ue(e,t){return e.ch==t.ch&&e.line==t.line}function fe(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function de(e,t){return arguments.length>2&&(t=de.apply(void 0,Array.prototype.slice.call(arguments,1))),fe(e,t)?e:t}function pe(e,t){return arguments.length>2&&(t=pe.apply(void 0,Array.prototype.slice.call(arguments,1))),fe(e,t)?t:e}function Oe(e,t,i){var n=fe(e,t),r=fe(t,i);return n&&r}function ge(e,t){return e.getLine(t).length}function me(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ve(e,i,n){var r=ge(e,i),s=new Array(n-r+1).join(" ");e.setCursor(new t(i,r)),e.replaceRange(s,e.getCursor())}function ye(e,i){var n=[],r=e.listSelections(),s=ce(e.clipPos(i)),o=!ue(i,s),a=function(e,t){for(var i=0;i<e.length;i++){var n=ue(e[i].anchor,t),r=ue(e[i].head,t);if(n||r)return i}return-1}(r,e.getCursor("head")),l=ue(r[a].head,r[a].anchor),h=r.length-1,c=h-a>a?h:0,u=r[c].anchor,f=Math.min(u.line,s.line),d=Math.max(u.line,s.line),p=u.ch,O=s.ch,g=r[c].head.ch-p,m=O-p;g>0&&m<=0?(p++,o||O--):g<0&&m>=0?(p--,l||O++):g<0&&-1==m&&(p--,O++);for(var v=f;v<=d;v++){var y={anchor:new t(v,p),head:new t(v,O)};n.push(y)}return e.setSelections(n),i.ch=O,u.ch=p,u}function we(e,t,i){for(var n=[],r=0;r<i;r++){var s=ae(t,r,0);n.push({anchor:s,head:s})}e.setSelections(n,0)}function be(e,t){var i=t.sel.anchor,n=t.sel.head;t.lastPastedText&&(n=e.posFromIndex(e.indexFromPos(i)+t.lastPastedText.length),t.lastPastedText=void 0),t.lastSelection={anchorMark:e.setBookmark(i),headMark:e.setBookmark(n),anchor:ce(i),head:ce(n),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function Se(e,t,i){var n=e.state.vim;t=t||n.sel,i||(i=n.visualLine?"line":n.visualBlock?"block":"char");var r=xe(e,t,i);e.setSelections(r.ranges,r.primary)}function xe(e,i,n,r){var s=ce(i.head),o=ce(i.anchor);if("char"==n){var a=r||fe(i.head,i.anchor)?0:1,l=fe(i.head,i.anchor)?1:0;return s=ae(i.head,0,a),{ranges:[{anchor:o=ae(i.anchor,0,l),head:s}],primary:0}}if("line"==n){if(fe(i.head,i.anchor))s.ch=0,o.ch=ge(e,o.line);else{o.ch=0;var h=e.lastLine();s.line>h&&(s.line=h),s.ch=ge(e,s.line)}return{ranges:[{anchor:o,head:s}],primary:0}}if("block"==n){var c=Math.min(o.line,s.line),u=o.ch,f=Math.max(o.line,s.line),d=s.ch;u<d?d+=1:u+=1;for(var p=f-c+1,O=s.line==c?0:p-1,g=[],m=0;m<p;m++)g.push({anchor:new t(c+m,u),head:new t(c+m,d)});return{ranges:g,primary:O}}throw"never happens"}function ke(t,i){var n=t.state.vim;!1!==i&&t.setCursor(se(t,n.sel.head)),be(t,n),n.visualMode=!1,n.visualLine=!1,n.visualBlock=!1,n.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function Qe(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function $e(e,{inclusive:i,innerWord:n,bigWord:r,noSymbol:s,multiline:o},a){var l,h=a||function(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=de(t,e.getCursor("anchor"))),t}(e),f=e.getLine(h.line),d=f,p=h.line,O=p,g=h.ch,m=s?c[0]:u[0];if(n&&/\s/.test(f.charAt(g)))m=function(e){return/\s/.test(e)};else{for(;!m(f.charAt(g));)if(++g>=f.length){if(!o)return null;g--,l=Te(e,h,!0,r,!0);break}r?m=u[0]:(m=c[0])(f.charAt(g))||(m=c[1])}for(var v=g,y=g;m(f.charAt(y))&&y>=0;)y--;if(y++,l)v=l.to,O=l.line,(d=e.getLine(O))||0!=v||v++;else for(;m(f.charAt(v))&&v<f.length;)v++;if(i){var w=v,b=h.ch<=y&&/\s/.test(f.charAt(h.ch));if(!b)for(;/\s/.test(d.charAt(v))&&v<d.length;)v++;if(w==v||b){for(var S=y;/\s/.test(f.charAt(y-1))&&y>0;)y--;y||b||(y=S)}}return{start:new t(p,y),end:new t(O,v)}}function Pe(e,t,i){ue(t,i)||_.jumpList.add(e,t,i)}function _e(e,t){_.lastCharacterSearch.increment=e,_.lastCharacterSearch.forward=t.forward,_.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var Ce={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ae={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)?.[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Te(e,t,i,n,r){var s=t.line,o=t.ch,a=e.getLine(s),l=i?1:-1,h=n?u:c;if(r&&""==a){if(s+=l,a=e.getLine(s),!g(e,s))return null;o=i?0:a.length}for(;;){if(r&&""==a)return{from:0,to:0,line:s};for(var f=l>0?a.length:-1,d=f,p=f;o!=f;){for(var O=!1,m=0;m<h.length&&!O;++m)if(h[m](a.charAt(o))){for(d=o;o!=f&&h[m](a.charAt(o));)o+=l;if(O=d!=(p=o),d==t.ch&&s==t.line&&p==d+l)continue;return{from:Math.min(d,p+1),to:Math.max(d,p),line:s}}O||(o+=l)}if(!g(e,s+=l))return null;a=e.getLine(s),o=l>0?0:a.length}}function Ze(e,i,n,r,s){var o=new t(i.line+n.repeat-1,1/0),a=e.clipPos(o);return a.ch--,s||(r.lastHPos=1/0,r.lastHSPos=e.charCoords(a,"div").left),o}function Me(e,i,n,r,s){if(r){for(var o,a=s||e.getCursor(),l=a.ch,h=0;h<i;h++){if(-1==(o=Xe(l,e.getLine(a.line),r,n)))return;l=o}return null!=o?new t(e.getCursor().line,o):void 0}}function Re(e,t,i,n){(x(i,f)||p.test(i))&&(t.marks[i]&&t.marks[i].clear(),t.marks[i]=e.setBookmark(n))}function Xe(e,t,i,n,r){return n?t.indexOf(i,e+1):t.lastIndexOf(i,e-1)}function Ee(e,i,n,r,s){var o,a=i.line,l=e.firstLine(),h=e.lastLine(),c=a;function u(t){return!e.getLine(t)}function f(e,t,i){return i?u(e)!=u(e+t):!u(e)&&u(e+t)}if(r){for(;l<=c&&c<=h&&n>0;)f(c,r)&&n--,c+=r;return{start:new t(c,0),end:i}}var d=e.state.vim;if(d.visualLine&&f(a,1,!0)){var p=d.sel.anchor;f(p.line,-1,!0)&&(s&&p.line==a||(a+=1))}var O=u(a);for(c=a;c<=h&&n;c++)f(c,1,!0)&&(s&&u(c)==O||n--);for(o=new t(c,0),c>h&&!O?O=!0:s=!1,c=a;c>l&&(s&&u(c)!=O&&c!=a||!f(c,-1,!0));c--);return{start:new t(c,0),end:o}}function je(e,i,n,r,s){function o(e){null!==e.line&&(e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir)}function a(e,t,i,n){var r={line:e.getLine(t),ln:t,pos:i,dir:n};if(""===r.line)return{ln:r.ln,pos:r.pos};var a=r.pos;for(o(r);null!==r.line;){if(a=r.pos,S(r.line[r.pos])){if(s){for(o(r);null!==r.line&&b(r.line[r.pos]);)a=r.pos,o(r);return{ln:r.ln,pos:a+1}}return{ln:r.ln,pos:r.pos+1}}o(r)}return{ln:r.ln,pos:a+1}}function l(e,t,i,n){var r=e.getLine(t),a={line:r,ln:t,pos:i,dir:n};if(""===a.line)return{ln:a.ln,pos:a.pos};var l=a.pos;for(o(a);null!==a.line;){if(b(a.line[a.pos])||S(a.line[a.pos])){if(S(a.line[a.pos]))return s&&b(a.line[a.pos+1])?{ln:a.ln,pos:a.pos+1}:{ln:a.ln,pos:l}}else l=a.pos;o(a)}return a.line=r,s&&b(a.line[a.pos])?{ln:a.ln,pos:a.pos}:{ln:a.ln,pos:l}}for(var h={ln:i.line,pos:i.ch};n>0;)h=r<0?l(e,h.ln,h.pos,r):a(e,h.ln,h.pos,r),n--;return new t(h.ln,h.pos)}function ze(e,i,n,r){var s=i,o={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],a={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],l=e.getLine(s.line).charAt(s.ch)===a?1:0,h=e.scanForBracket(new t(s.line,s.ch+l),-1,void 0,{bracketRegex:o}),c=e.scanForBracket(new t(s.line,s.ch+l),1,void 0,{bracketRegex:o});if(!h||!c)return null;var u=h.pos,f=c.pos;if(u.line==f.line&&u.ch>f.ch||u.line>f.line){var d=u;u=f,f=d}return r?f.ch+=1:u.ch+=1,{start:u,end:f}}Q("pcre",!0,"boolean");class Le{constructor(){this.highlightTimeout}getQuery(){return _.query}setQuery(e){_.query=e}getOverlay(){return this.searchOverlay}setOverlay(e){this.searchOverlay=e}isReversed(){return _.isReversed}setReversed(e){_.isReversed=e}getScrollbarAnnotate(){return this.annotate}setScrollbarAnnotate(e){this.annotate=e}}function Ye(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Le)}function Ve(e,t){var i=Be(e,t)||[];if(!i.length)return[];var n=[];if(0===i[0]){for(var r=0;r<i.length;r++)"number"==typeof i[r]&&n.push(e.substring(i[r]+1,i[r+1]));return n}}function Be(e,t){t||(t="/");for(var i=!1,n=[],r=0;r<e.length;r++){var s=e.charAt(r);i||s!=t||n.push(r),i=!i&&"\\"==s}return n}var We={"\\n":"\n","\\r":"\r","\\t":"\t"},Ie={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function De(e,t,i){_.registerController.getRegister("/").setText(e);var n,r,s=Be(e,"/");return s.length?(n=e.substring(0,s[0]),r=-1!=e.substring(s[0]).indexOf("i")):n=e,n?(P("pcre")||(n=function(e){var t={V:"|(){+?*.[$^",M:"|(){+?*.[",m:"|(){+?",v:"<>"},i={">":"(?<=[\\w])(?=[^\\w]|$)","<":"(?<=[^\\w]|^)(?=[\\w])"},n=t.m,r=e.replace(/\\.|[\[|(){+*?.$^<>]/g,function(e){if("\\"===e[0]){var r=e[1];return"}"===r||-1!=n.indexOf(r)?r:r in t?(n=t[r],""):r in i?i[r]:e}return-1!=n.indexOf(e)?i[e]||"\\"+e:e}),s=r.indexOf("\\zs");return-1!=s&&(r="(?<="+r.slice(0,s)+")"+r.slice(s+3)),-1!=(s=r.indexOf("\\ze"))&&(r=r.slice(0,s)+"(?="+r.slice(s+3)+")"),r}(n)),i&&(t=/^[^A-Z]*$/.test(n)),new RegExp(n,t||r?"im":"m")):null}function Ne(e){"string"==typeof e&&(e=document.createElement(e));for(var t=1;t<arguments.length;t++){var i=arguments[t];if(i)if("object"!=typeof i&&(i=document.createTextNode(i)),i.nodeType)e.appendChild(i);else for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&("$"===n[0]?e.style[n.slice(1)]=i[n]:"function"==typeof i[n]?e[n]=i[n]:e.setAttribute(n,i[n]))}return e}function qe(e,t,i){var n=Ne("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},t);e.openNotification?i?(n=Ne("div",{},n,Ne("div",{},"Press ENTER or type command to continue")),e.state.closeVimNotification&&e.state.closeVimNotification(),e.state.closeVimNotification=e.openNotification(n,{bottom:!0,duration:0})):e.openNotification(n,{bottom:!0,duration:15e3}):alert(n.innerText)}function Ue(e,t){if(z.length)return t.value||(t.value=""),void(E=t);var i,n,r=(i=t.prefix,n=t.desc,Ne("div",{$display:"flex",$flex:1},Ne("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1,$display:"flex"},i,Ne("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$flex:1})),n&&Ne("span",{$color:"#888"},n)));if(e.openDialog)e.openDialog(r,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var s="";"string"!=typeof t.prefix&&t.prefix&&(s+=t.prefix.textContent),t.desc&&(s+=" "+t.desc),t.onClose?.(prompt(s,""))}}function Ge(e,t,i,n){if(t){var r,s,o=Ye(e),a=De(t,!!i,!!n);if(a)return He(e,a),r=a,s=o.getQuery(),r instanceof RegExp&&s instanceof RegExp&&r.flags==s.flags&&r.source==s.source||o.setQuery(a),a}}var Fe=0;function He(e,t){clearTimeout(Fe),Ye(e).highlightTimeout=Fe,Fe=setTimeout(function(){if(e.state.vim){var i=Ye(e);i.highlightTimeout=void 0;var n=i.getOverlay();n&&t==n.query||(n&&e.removeOverlay(n),n=function(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(i){if(!t||i.sol()){var n=i.match(e,!1);if(n)return 0==n[0].length?(i.next(),"searching"):i.sol()||(i.backUp(1),e.exec(i.next()+n[0]))?(i.match(e),"searching"):(i.next(),null);for(;!i.eol()&&(i.next(),!i.match(e,!1)););}else i.skipToEnd()},query:e}}(t),e.addOverlay(n),e.showMatchesOnScrollbar&&(i.getScrollbarAnnotate()&&i.getScrollbarAnnotate().clear(),i.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),i.setOverlay(n))}},50)}function Ke(e,i,n,r){return e.operation(function(){void 0===r&&(r=1);for(var s=e.getCursor(),o=e.getSearchCursor(n,s),a=0;a<r;a++){var l=o.find(i);if(0==a&&l&&ue(o.from(),s)){var h=i?o.from():o.to();(l=o.find(i))&&!l[0]&&ue(o.from(),h)&&e.getLine(h.line).length==h.ch&&(l=o.find(i))}if(!l&&!(o=e.getSearchCursor(n,i?new t(e.lastLine()):new t(e.firstLine(),0))).find(i))return}return o.from()})}function Je(e){var t=Ye(e);t.highlightTimeout&&(clearTimeout(t.highlightTimeout),t.highlightTimeout=void 0),e.removeOverlay(Ye(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function et(e,t,i){return"number"!=typeof e&&(e=e.line),t instanceof Array?x(e,t):"number"==typeof i?e>=t&&e<=i:e==t}function tt(e){var t=e.getScrollInfo(),i=e.coordsChar({left:0,top:6+t.top},"local"),n=t.clientHeight-10+t.top,r=e.coordsChar({left:0,top:n},"local");return{top:i.line,bottom:r.line}}function it(e,i,n){if("'"==n||"`"==n)return _.jumpList.find(e,-1)||new t(0,0);if("."==n)return nt(e);var r=i.marks[n];return r&&r.find()}function nt(e){if(e.getLastEditEnd)return e.getLastEditEnd();for(var t=e.doc.history.done,i=t.length;i--;)if(t[i].changes)return ce(t[i].changes[0].to)}var rt={colorscheme:function(e,t){!t.args||t.args.length<1?qe(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,i,n){var r=t.args;!r||r.length<2?e&&qe(e,"Invalid mapping: "+t.input):st.map(r[0],r[1],i,n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},omap:function(e,t){this.map(e,t,"operatorPending")},noremap:function(e,t){this.map(e,t,void 0,!0)},inoremap:function(e,t){this.map(e,t,"insert",!0)},nnoremap:function(e,t){this.map(e,t,"normal",!0)},vnoremap:function(e,t){this.map(e,t,"visual",!0)},onoremap:function(e,t){this.map(e,t,"operatorPending",!0)},unmap:function(e,t,i){var n=t.args;(!n||n.length<1||!st.unmap(n[0],i))&&e&&qe(e,"No such mapping: "+t.input)},mapclear:function(e,t){j.mapclear()},imapclear:function(e,t){j.mapclear("insert")},nmapclear:function(e,t){j.mapclear("normal")},vmapclear:function(e,t){j.mapclear("visual")},omapclear:function(e,t){j.mapclear("operatorPending")},move:function(e,t){ee.processCommand(e,e.state.vim,{keys:"",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var i=t.args,n=t.setCfg||{};if(!i||i.length<1)e&&qe(e,"Invalid mapping: "+t.input);else{var r=i[0].split("="),s=r.shift()||"",o=r.length>0?r.join("="):void 0,a=!1,l=!1;if("?"==s.charAt(s.length-1)){if(o)throw Error("Trailing characters: "+t.argString);s=s.substring(0,s.length-1),a=!0}else"!"==s.charAt(s.length-1)&&(s=s.substring(0,s.length-1),l=!0);void 0===o&&"no"==s.substring(0,2)&&(s=s.substring(2),o=!1);var h=k[s]&&"boolean"==k[s].type;if(h&&(l?o=!P(s,e,n):null==o&&(o=!0)),!h&&void 0===o||a){var c=P(s,e,n);c instanceof Error?qe(e,c.message):qe(e,!0===c||!1===c?" "+(c?"":"no")+s:" "+s+"="+c)}else{var u=$(s,o,e,n);u instanceof Error&&qe(e,u.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var i=t.args,n=_.registerController.registers,r="----------Registers----------\n\n";if(i)for(var s=i.join(""),o=0;o<s.length;o++)a=s.charAt(o),_.registerController.isValidRegister(a)&&(r+='"'+a+" "+(n[a]||new H).toString()+"\n");else for(var a in n){var l=n[a].toString();l.length&&(r+='"'+a+" "+l+"\n")}qe(e,r,!0)},marks:function(e,t){var i=t.args,n=e.state.vim.marks,r="-----------Marks-----------\nmark\tline\tcol\n\n";if(i)for(var s=i.join(""),o=0;o<s.length;o++)(l=n[a=s.charAt(o)]&&n[a].find())&&(r+=a+"\t"+l.line+"\t"+l.ch+"\n");else for(var a in n){var l;(l=n[a]&&n[a].find())&&(r+=a+"\t"+l.line+"\t"+l.ch+"\n")}qe(e,r,!0)},sort:function(i,n){var r,s,o,a,l,h=function(){if(n.argString){var t=new e.StringStream(n.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var i=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!i||!t.eol())return"Invalid arguments";if(i[1]){s=-1!=i[1].indexOf("i"),o=-1!=i[1].indexOf("u");var h=-1!=i[1].indexOf("d")||-1!=i[1].indexOf("n"),c=-1!=i[1].indexOf("x"),u=-1!=i[1].indexOf("o");if(Number(h)+Number(c)+Number(u)>1)return"Invalid arguments";a=(h?"decimal":c&&"hex")||u&&"octal"}i[2]&&(l=new RegExp(i[2].substr(1,i[2].length-2),s?"i":""))}}();if(h)qe(i,h+": "+n.argString);else{var c=n.line||i.firstLine(),u=n.lineEnd||n.line||i.lastLine();if(c!=u){var f=new t(c,0),d=new t(u,ge(i,u)),p=i.getRange(f,d).split("\n"),O="decimal"==a?/(-?)([\d]+)/:"hex"==a?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==a?/([0-7]+)/:null,g="decimal"==a?10:"hex"==a?16:"octal"==a?8:void 0,m=[],v=[];if(a||l)for(var y=0;y<p.length;y++){var w=l?p[y].match(l):null;w&&""!=w[0]?m.push(w):O&&O.exec(p[y])?m.push(p[y]):v.push(p[y])}else v=p;if(m.sort(l?function(e,t){var i;return r&&(i=e,e=t,t=i),s&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}:x),l)for(y=0;y<m.length;y++)m[y]=m[y].input;else a||v.sort(x);if(p=r?m.concat(v):v.concat(m),o){var b,S=p;for(p=[],y=0;y<S.length;y++)S[y]!=b&&p.push(S[y]),b=S[y]}i.replaceRange(p.join("\n"),f,d)}}function x(e,t){var i;r&&(i=e,e=t,t=i),s&&(e=e.toLowerCase(),t=t.toLowerCase());var n=O&&O.exec(e),o=O&&O.exec(t);return n&&o?parseInt((n[1]+n[2]).toLowerCase(),g)-parseInt((o[1]+o[2]).toLowerCase(),g):e<t?-1:1}},vglobal:function(e,t){this.global(e,t)},normal:function(e,t){var i=!1,n=t.argString;if(n&&"!"==n[0]&&(n=n.slice(1),i=!0),n=n.trimStart()){var r=t.line;if("number"==typeof r)for(var s=isNaN(t.lineEnd)?r:t.lineEnd,o=r;o<=s;o++)e.setCursor(o,0),V(e,t.argString.trimStart(),{noremap:i}),e.state.vim.insertMode&&ot(e,!0);else V(e,t.argString.trimStart(),{noremap:i}),e.state.vim.insertMode&&ot(e,!0)}else qe(e,"Argument is required.")},global:function(e,t){var i=t.argString;if(i){var n="v"===t.commandName[0];"!"===i[0]&&"g"===t.commandName[0]&&(n=!0,i=i.slice(1));var r=void 0!==t.line?t.line:e.firstLine(),s=t.lineEnd||t.line||e.lastLine(),o=function(e){return Ve(e,"/")}(i),a=i,l="";if(o&&o.length&&(a=o[0],l=o.slice(1,o.length).join("/")),a)try{Ge(e,a,!0,!0)}catch(t){return void qe(e,"Invalid regex: "+a)}for(var h=Ye(e).getQuery(),c=[],u=r;u<=s;u++){var f=e.getLine(u);h.test(f)!==n&&c.push(l?e.getLineHandle(u):f)}if(l){var d=0,p=function(){if(d<c.length){var t=c[d++],i=e.getLineNumber(t);if(null==i)return void p();var n=i+1+l;st.processCommand(e,n,{callback:p})}else e.releaseLineHandles&&e.releaseLineHandles()};p()}else qe(e,c.join("\n"))}else qe(e,"Regular Expression missing from global")},substitute:function(i,n){if(!i.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var r,s,o,a=n.argString,l=a?Ve(a,a[0]):[],h="",c="",u=!1,f=!1;if(l&&l.length)h=l[0],P("pcre")&&""!==h&&(h=new RegExp(h).source),void 0!==(c=l[1])&&(c=P("pcre")?function(t){for(var i=new e.StringStream(t),n=[];!i.eol();){for(;i.peek()&&"\\"!=i.peek();)n.push(i.next());var r=!1;for(var s in Ie)if(i.match(s,!0)){r=!0,n.push(Ie[s]);break}r||n.push(i.next())}return n.join("")}(c.replace(/([^\\])&/g,"$1$$&")):function(e){for(var t=!1,i=[],n=-1;n<e.length;n++){var r=e.charAt(n)||"",s=e.charAt(n+1)||"";We[r+s]?(i.push(We[r+s]),n++):t?(i.push(r),t=!1):"\\"===r?(t=!0,y(s)||"$"===s?i.push("$"):"/"!==s&&"\\"!==s&&i.push("\\")):("$"===r&&i.push("$"),i.push(r),"/"===s&&i.push("\\"))}return i.join("")}(c),_.lastSubstituteReplacePart=c),r=l[2]?l[2].split(" "):[];else if(a&&a.length)return void qe(i,"Substitutions should be of the form :s/pattern/replace/");if(r&&(s=r[0],o=parseInt(r[1]),s&&(-1!=s.indexOf("c")&&(u=!0),-1!=s.indexOf("g")&&(f=!0),h=P("pcre")?h+"/"+s:h.replace(/\//g,"\\/")+"/"+s)),h)try{Ge(i,h,!0,!0)}catch(e){return void qe(i,"Invalid regex: "+h)}if(void 0!==(c=c||_.lastSubstituteReplacePart)){var d=Ye(i).getQuery(),p=void 0!==n.line?n.line:i.getCursor().line,O=n.lineEnd||p;p==i.firstLine()&&O==i.lastLine()&&(O=1/0),o&&(O=(p=O)+o-1);var g=se(i,new t(p,0)),m=i.getSearchCursor(d,g);!function(t,i,n,r,s,o,a,l,h){t.state.vim.exMode=!0;var c,u,f,d=!1,p=0;function O(){t.operation(function(){for(;!d;)g(),v();y()})}function g(){var e="",i=o.match||o.pos&&o.pos.match;e=i?l.replace(/\$(\d{1,3}|[$&])/g,function(e,t){if("$"==t)return"$";if("&"==t)return i[0];for(var n=t;parseInt(n)>=i.length&&n.length>0;)n=n.slice(0,n.length-1);return n?i[n]+t.slice(n.length,t.length):e}):t.getRange(o.from(),o.to()).replace(a,l);var n=o.to().line;o.replace(e),u=o.to().line,s+=u-n,f=u<n}function m(){var e=c&&ce(o.to()),t=o.findNext();return t&&!t[0]&&e&&ue(o.from(),e)&&(t=o.findNext()),t&&p++,t}function v(){for(;m()&&et(o.from(),r,s);)if(n||o.from().line!=u||f)return t.scrollIntoView(o.from(),30),t.setSelection(o.from(),o.to()),c=o.from(),void(d=!1);d=!0}function y(e){if(e&&e(),t.focus(),c){t.setCursor(c);var i=t.state.vim;i.exMode=!1,i.lastHPos=i.lastHSPos=c.ch}h?h():d&&qe(t,(p?"Found "+p+" matches":"No matches found")+" for pattern: "+a+(P("pcre")?" (set nopcre to use Vim regexps)":""))}if(v(),!d)return i?void Ue(t,{prefix:Ne("span","replace with ",Ne("strong",l)," (y/n/a/q/l)"),onKeyDown:function(i,n,r){switch(e.e_stop(i),D(i)){case"y":g(),v();break;case"n":v();break;case"a":var s=h;h=void 0,t.operation(O),h=s;break;case"l":g();case"q":case"<Esc>":case"<C-c>":case"<C-[>":y(r)}return d&&y(r),!0}}):(O(),void(h&&h()));qe(t,"No matches for "+a+(P("pcre")?" (set nopcre to use vim regexps)":""))}(i,u,f,p,O,m,d,c,n.callback)}else qe(i,"No previous substitute regular expression")},startinsert:function(e,t){V(e,"!"==t.argString?"A":"i",{})},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){Je(e)},yank:function(e){var t=ce(e.getCursor()).line,i=e.getLine(t);_.registerController.pushText("0","yank",i,!0,!0)},delete:function(e,i){var n=i.selectionLine,r=isNaN(i.selectionLineEnd)?n:i.selectionLineEnd;ne.delete(e,{linewise:!0},[{anchor:new t(n,0),head:new t(r+1,0)}])},join:function(e,i){var n=i.selectionLine,r=isNaN(i.selectionLineEnd)?n:i.selectionLineEnd;e.setCursor(new t(n,0)),re.joinLines(e,{repeat:r-n},e.state.vim)},delmarks:function(t,i){if(i.argString&&me(i.argString))for(var n=t.state.vim,r=new e.StringStream(me(i.argString));!r.eol();){r.eatSpace();var s=r.pos;if(!r.match(/[a-zA-Z]/,!1))return void qe(t,"Invalid argument: "+i.argString.substring(s));var o=r.next();if(r.match("-",!0)){if(!r.match(/[a-zA-Z]/,!1))return void qe(t,"Invalid argument: "+i.argString.substring(s));var a=o,l=r.next();if(!a||!l||m(a)!=m(l))return void qe(t,"Invalid argument: "+a+"-");var h=a.charCodeAt(0),c=l.charCodeAt(0);if(h>=c)return void qe(t,"Invalid argument: "+i.argString.substring(s));for(var u=0;u<=c-h;u++){var f=String.fromCharCode(h+u);delete n.marks[f]}}else o&&delete n.marks[o]}else qe(t,"Argument required")}},st=new class{constructor(){this.commandMap_,this.buildCommandMap_()}processCommand(e,t,i){var n=this;e.operation(function(){e.curOp&&(e.curOp.isVimOp=!0),n._processCommand(e,t,i)})}_processCommand(t,i,n){var r=t.state.vim,s=_.registerController.getRegister(":"),o=s.toString(),a=new e.StringStream(i);s.setText(i);var l,h,c=n||{};c.input=i;try{this.parseInput_(t,a,c)}catch(e){throw qe(t,e+""),e}if(r.visualMode&&ke(t),c.commandName){if(l=this.matchCommand_(c.commandName)){if(h=l.name,l.excludeFromCommandHistory&&s.setText(o),this.parseCommandArgs_(a,c,l),"exToKey"==l.type)return void V(t,l.toKeys||"",l);if("exToEx"==l.type)return void this.processCommand(t,l.toInput||"")}}else void 0!==c.line&&(h="move");if(h)try{rt[h](t,c),l&&l.possiblyAsync||!c.callback||c.callback()}catch(e){throw qe(t,e+""),e}else qe(t,'Not an editor command ":'+i+'"')}parseInput_(e,t,i){t.eatWhile(":"),t.eat("%")?(i.line=e.firstLine(),i.lineEnd=e.lastLine()):(i.line=this.parseLineSpec_(e,t),void 0!==i.line&&t.eat(",")&&(i.lineEnd=this.parseLineSpec_(e,t))),null==i.line?e.state.vim.visualMode?(i.selectionLine=it(e,e.state.vim,"<")?.line,i.selectionLineEnd=it(e,e.state.vim,">")?.line):i.selectionLine=e.getCursor().line:(i.selectionLine=i.line,i.selectionLineEnd=i.lineEnd);var n=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return i.commandName=n?n[1]:(t.match(/.*/)||[""])[0],i}parseLineSpec_(e,t){var i=t.match(/^(\d+)/);if(i)return parseInt(i[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var n=t.next()||"",r=it(e,e.state.vim,n);if(!r)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,r.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}}parseLineSpecOffset_(e,t){var i=e.match(/^([+-])?(\d+)/);if(i){var n=parseInt(i[2],10);"-"==i[1]?t-=n:t+=n}return t}parseCommandArgs_(e,t,i){if(!e.eol()){t.argString=e.match(/.*/)?.[0];var n=i.argDelimiter||/\s+/,r=me(t.argString||"").split(n);r.length&&r[0]&&(t.args=r)}}matchCommand_(e){for(var t=e.length;t>0;t--){var i=e.substring(0,t);if(this.commandMap_[i]){var n=this.commandMap_[i];if(0===n.name.indexOf(e))return n}}}buildCommandMap_(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],i=t.shortName||t.name;this.commandMap_[i]=t}}map(e,t,i,n){if(":"!=e&&":"==e.charAt(0)){if(i)throw Error("Mode not supported for ex mappings");var r=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[r]={name:r,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[r]={name:r,type:"exToKey",toKeys:t,user:!0}}else{var s={keys:e,type:"keyToKey",toKeys:t,noremap:!!n};i&&(s.context=i),at(s)}}unmap(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var i=e.substring(1);if(this.commandMap_[i]&&this.commandMap_[i].user)return delete this.commandMap_[i],!0}else for(var r=e,s=0;s<n.length;s++)if(r==n[s].keys&&n[s].context===t)return n.splice(s,1),lt(r),!0}};function ot(t,i){var n=t.state.vim,r=_.macroModeState,s=_.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",ct),n.insertEnd&&n.insertEnd.clear(),n.insertEnd=void 0,e.off(t.getInputField(),"keydown",dt)),!o&&n.insertModeRepeat&&n.insertModeRepeat>1&&(pt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,i||t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),s.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,i=_.registerController.getRegister(t);i&&i.pushInsertModeChanges&&i.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function at(e){n.unshift(e),e.keys&&e.keys.split(/(<(?:[CSMA]-)*\w+>|.)/i).forEach(function(e){e&&(r[e]||(r[e]=0),r[e]++)})}function lt(e){e.split(/(<(?:[CSMA]-)*\w+>|.)/i).forEach(function(e){r[e]&&r[e]--})}function ht(e,t,i,n){var r=_.registerController.getRegister(n);if(":"==n)return r.keyBuffer[0]&&st.processCommand(e,r.keyBuffer[0]),void(i.isPlaying=!1);var s=r.keyBuffer,o=0;i.isPlaying=!0,i.replaySearchQueries=r.searchQueries.slice(0);for(var a=0;a<s.length;a++)for(var l,h,c=s[a],u=/<(?:[CSMA]-)*\w+>|./gi;l=u.exec(c);)if(h=l[0],j.handleKey(e,h,"macro"),t.insertMode){var f=r.insertModeChanges[o++].changes;_.macroModeState.lastInsertModeChanges.changes=f,gt(e,f,1),ot(e)}i.isPlaying=!1}function ct(e,t){var i=_.macroModeState,n=i.lastInsertModeChanges;if(!i.isPlaying)for(var r=e.state.vim;t;){if(n.expectCursorActivityForChange=!0,n.ignoreCount>1)n.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var s=e.listSelections().length;s>1&&(n.ignoreCount=s);var o=t.text.join("\n");if(n.maybeReset&&(n.changes=[],n.maybeReset=!1),o)if(e.state.overwrite&&!/\n/.test(o))n.changes.push([o]);else{if(o.length>1){var a=r&&r.insertEnd&&r.insertEnd.find(),l=e.getCursor();if(a&&a.line==l.line){var h=a.ch-l.ch;h>0&&h<o.length&&(n.changes.push([o,h]),o="")}}o&&n.changes.push(o)}}t=t.next}}function ut(e){var t=e.state.vim;if(t.insertMode){var i=_.macroModeState;if(i.isPlaying)return;var n=i.lastInsertModeChanges;n.expectCursorActivityForChange?n.expectCursorActivityForChange=!1:(n.maybeReset=!0,t.insertEnd&&t.insertEnd.clear(),t.insertEnd=e.setBookmark(e.getCursor(),{insertLeft:!0}))}else e.curOp?.isVimOp||ft(e,t)}function ft(t,i){var n=t.getCursor("anchor"),r=t.getCursor("head");if(i.visualMode&&!t.somethingSelected()?ke(t,!1):i.visualMode||i.insertMode||!t.somethingSelected()||(i.visualMode=!0,i.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),i.visualMode){var s=fe(r,n)?0:-1,o=fe(r,n)?-1:0;r=ae(r,0,s),n=ae(n,0,o),i.sel={anchor:n,head:r},Re(t,i,"<",de(r,n)),Re(t,i,">",pe(r,n))}else i.insertMode||(i.lastHPos=t.getCursor().ch)}function dt(t){var i=_.macroModeState.lastInsertModeChanges,n=e.keyName?e.keyName(t):t.key;n&&(-1==n.indexOf("Delete")&&-1==n.indexOf("Backspace")||(i.maybeReset&&(i.changes=[],i.maybeReset=!1),i.changes.push(new X(n,t))))}function pt(e,t,i,n){var r=_.macroModeState;r.isPlaying=!0;var s=t.lastEditActionCommand,o=t.inputState;function a(){s?ee.processAction(e,t,s):ee.evalInput(e,t)}function l(i){if(r.lastInsertModeChanges.changes.length>0){i=t.lastEditActionCommand?i:1;var n=r.lastInsertModeChanges;gt(e,n.changes,i)}}if(t.inputState=t.lastEditInputState,s&&s.interlaceInsertRepeat)for(var h=0;h<i;h++)a(),l(1);else n||a(),l(i);t.inputState=o,t.insertMode&&!n&&ot(e),r.isPlaying=!1}function Ot(t,i){e.lookupKey(i,"vim-insert",function(i){return"string"==typeof i?e.commands[i](t):i(t),!0})}function gt(e,t,i){var n=e.getCursor("head"),r=_.macroModeState.lastInsertModeChanges.visualBlock;r&&(we(e,n,r+1),i=e.listSelections().length,e.setCursor(n));for(var s=0;s<i;s++){r&&e.setCursor(ae(n,s,0));for(var o=0;o<t.length;o++){var a=t[o];if(a instanceof X)Ot(e,a.keyName);else if("string"==typeof a)e.replaceSelection(a);else{var l=e.getCursor(),h=ae(l,0,a[0].length-(a[1]||0));e.replaceRange(a[0],l,a[1]?l:h),e.setCursor(h)}}}r&&e.setCursor(ae(n,0,1))}function mt(e){var t=new e.constructor;return Object.keys(e).forEach(function(i){if("insertEnd"!=i){var n=e[i];Array.isArray(n)?n=n.slice():n&&"object"==typeof n&&n.constructor!=Object&&(n=mt(n)),t[i]=n}}),e.sel&&(t.sel={head:e.sel.head&&ce(e.sel.head),anchor:e.sel.anchor&&ce(e.sel.anchor)}),t}return j.defineEx("version","ve",e=>{qe(e,"Codemirror-vim version: 6.3.0")}),Q("insertModeEscKeysTimeout",200,"number"),R(),j}function NO(e,t){var i=t.ch,n=t.line+1;n<1&&(n=1,i=0),n>e.lines&&(n=e.lines,i=Number.MAX_VALUE);var r=e.line(n);return Math.min(r.from+Math.max(0,i),r.to)}function qO(e,t){let i=e.lineAt(t);return{line:i.number-1,ch:t-i.from}}class UO{constructor(e,t){this.line=e,this.ch=t}}function GO(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||[]).concat(i)}}function FO(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else{var n=e._handlers,r=n&&n[t];if(r){var s=r.indexOf(i);s>-1&&(n[t]=r.slice(0,s).concat(r.slice(s+1)))}}}function HO(e,t,...i){var n,r=null===(n=e._handlers)||void 0===n?void 0:n[t];if(r)for(var s=0;s<r.length;++s)r[s](...i)}function KO(e,...t){if(e)for(var i=0;i<e.length;++i)e[i](...t)}let JO;try{JO=new RegExp("[\\w\\p{Alphabetic}\\p{Number}_]","u")}catch(eO){JO=/[\w]/}function eg(e,t){var i=e.cm6;if(!i.state.readOnly){var n="input.type.compose";if(e.curOp&&(e.curOp.lastChange||(n="input.type.compose.start")),t.annotations)try{t.annotations.some(function(e){"input"==e.value&&(e.value=n)})}catch(e){console.error(e)}else t.userEvent=n;return i.dispatch(t)}}function tg(e,t){var i;e.curOp&&(e.curOp.$changeStart=void 0),(t?ch:uh)(e.cm6);let n=null===(i=e.curOp)||void 0===i?void 0:i.$changeStart;null!=n&&e.cm6.dispatch({selection:{anchor:n}})}var ig={Left:e=>Ts(e.cm6,{key:"Left"},"editor"),Right:e=>Ts(e.cm6,{key:"Right"},"editor"),Up:e=>Ts(e.cm6,{key:"Up"},"editor"),Down:e=>Ts(e.cm6,{key:"Down"},"editor"),Backspace:e=>Ts(e.cm6,{key:"Backspace"},"editor"),Delete:e=>Ts(e.cm6,{key:"Delete"},"editor")};class ng{openDialog(e,t,i){return function(e,t,i,n){n||(n={}),sg(e,void 0);var r=rg(0,t,n.bottom),s=!1;function o(t){if("string"==typeof t)a.value=t;else{if(s)return;s=!0,ag(e,r),e.state.dialog||e.focus(),n.onClose&&n.onClose(r)}}og(e,r);var a=r.getElementsByTagName("input")[0];return a&&(n.value&&(a.value=n.value,!1!==n.selectValueOnOpen&&a.select()),n.onInput&&ng.on(a,"input",function(e){n.onInput(e,a.value,o)}),n.onKeyUp&&ng.on(a,"keyup",function(e){n.onKeyUp(e,a.value,o)}),ng.on(a,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,a.value,o)||(13==e.keyCode&&i&&i(a.value),(27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(a.blur(),ng.e_stop(e),o()))}),!1!==n.closeOnBlur&&ng.on(a,"blur",function(){setTimeout(function(){document.activeElement!==a&&o()})}),a.focus()),o}(this,e,t,i)}openNotification(e,t){return function(e,t,i){sg(e,a);var n,r=rg(0,t,i&&i.bottom),s=!1,o=i&&void 0!==i.duration?i.duration:5e3;function a(){s||(s=!0,clearTimeout(n),r.remove(),ag(e,r))}return r.onclick=function(e){e.preventDefault(),a()},og(e,r),o&&(n=setTimeout(a,o)),a}(this,e,t)}constructor(e){this.state={},this.marks=Object.create(null),this.$mid=0,this.options={},this._handlers={},this.$lastChangeEndOffset=0,this.virtualSelection=null,this.cm6=e,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this)}on(e,t){GO(this,e,t)}off(e,t){FO(this,e,t)}signal(e,t,i){HO(this,e,t,i)}indexFromPos(e){return NO(this.cm6.state.doc,e)}posFromIndex(e){return qO(this.cm6.state.doc,e)}foldCode(e){let t=this.cm6,i=t.state.selection.ranges,n=NO(this.cm6.state.doc,e),r=K.create([K.range(n,n)],0).ranges;t.state.selection.ranges=r,(e=>{for(let t of function(e){let t=[];for(let{head:i}of e.state.selection.ranges)t.some(e=>e.from<=i&&e.to>=i)||t.push(e.lineBlockAt(i));return t}(e)){let i=dl(e.state,t.from,t.to);if(i)return e.dispatch({effects:wl(e.state,[Ol.of(i),bl(e,i)])}),!0}})(t),t.state.selection.ranges=i}firstLine(){return 0}lastLine(){return this.cm6.state.doc.lines-1}lineCount(){return this.cm6.state.doc.lines}setCursor(e,t){"object"==typeof e&&(t=e.ch,e=e.line);var i=NO(this.cm6.state.doc,{line:e,ch:t||0});this.cm6.dispatch({selection:{anchor:i}},{scrollIntoView:!this.curOp}),this.curOp&&!this.curOp.isVimOp&&this.onBeforeEndOperation()}getCursor(e){var t=this.cm6.state.selection.main,i="head"!=e&&e?"anchor"==e?t.anchor:"start"==e?t.from:"end"==e?t.to:null:t.head;if(null==i)throw new Error("Invalid cursor type");return this.posFromIndex(i)}listSelections(){var e=this.cm6.state.doc;return this.cm6.state.selection.ranges.map(t=>({anchor:qO(e,t.anchor),head:qO(e,t.head)}))}setSelections(e,t){var i=this.cm6.state.doc,n=e.map(e=>{var t=NO(i,e.head),n=NO(i,e.anchor);return t==n?K.cursor(t,1):K.range(n,t)});this.cm6.dispatch({selection:K.create(n,t)})}setSelection(e,t,i){this.setSelections([{anchor:e,head:t}],0),i&&"*mouse"==i.origin&&this.onBeforeEndOperation()}getLine(e){var t=this.cm6.state.doc;return e<0||e>=t.lines?"":this.cm6.state.doc.line(e+1).text}getLineHandle(e){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{row:e,index:this.indexFromPos(new UO(e,0))}}getLineNumber(e){var t=this.$lineHandleChanges;if(!t)return null;for(var i=e.index,n=0;n<t.length;n++)if(null==(i=t[n].changes.mapPos(i,1,B.TrackAfter)))return null;var r=this.posFromIndex(i);return 0==r.ch?r.line:null}releaseLineHandles(){this.$lineHandleChanges=void 0}getRange(e,t){var i=this.cm6.state.doc;return this.cm6.state.sliceDoc(NO(i,e),NO(i,t))}replaceRange(e,t,i,n){i||(i=t);var r=this.cm6.state.doc;eg(this,{changes:{from:NO(r,t),to:NO(r,i),insert:e}})}replaceSelection(e){eg(this,this.cm6.state.replaceSelection(e))}replaceSelections(e){var t=this.cm6.state.selection.ranges.map((t,i)=>({from:t.from,to:t.to,insert:e[i]||""}));eg(this,{changes:t})}getSelection(){return this.getSelections().join("\n")}getSelections(){var e=this.cm6;return e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to))}somethingSelected(){return this.cm6.state.selection.ranges.some(e=>!e.empty)}getInputField(){return this.cm6.contentDOM}clipPos(e){var t=this.cm6.state.doc,i=e.ch,n=e.line+1;n<1&&(n=1,i=0),n>t.lines&&(n=t.lines,i=Number.MAX_VALUE);var r=t.line(n);return i=Math.min(Math.max(0,i),r.to-r.from),new UO(n-1,i)}getValue(){return this.cm6.state.doc.toString()}setValue(e){var t=this.cm6;return t.dispatch({changes:{from:0,to:t.state.doc.length,insert:e},selection:K.range(0,0)})}focus(){return this.cm6.focus()}blur(){return this.cm6.contentDOM.blur()}defaultTextHeight(){return this.cm6.defaultLineHeight}findMatchingBracket(e,t){var i=this.cm6.state,n=NO(i.doc,e),r=Ll(i,n+1,-1);return r&&r.end||(r=Ll(i,n,1))&&r.end?{to:qO(i.doc,r.end.from)}:{to:void 0}}scanForBracket(e,t,i,n){return function(e,t,i,n,r){for(var s=r&&r.maxScanLineLength||1e4,o=r&&r.maxScanLines||1e3,a=[],l=function(e){return e&&e.bracketRegex||/[(){}[\]]/}(r),h=i>0?Math.min(t.line+o,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-o),c=t.line;c!=h;c+=i){var u=e.getLine(c);if(u){var f=i>0?0:u.length-1,d=i>0?u.length:-1;if(!(u.length>s))for(c==t.line&&(f=t.ch-(i<0?1:0));f!=d;f+=i){var p=u.charAt(f);if(l.test(p)){var O=lg[p];if(O&&">"==O.charAt(1)==i>0)a.push(p);else{if(!a.length)return{pos:new UO(c,f),ch:p};a.pop()}}}}}return c-i!=(i>0?e.lastLine():e.firstLine())&&null}(this,e,t,0,n)}indentLine(e,t){t?this.indentMore():this.indentLess()}indentMore(){kc(this.cm6)}indentLess(){Qc(this.cm6)}execCommand(e){if("indentAuto"==e)ng.commands.indentAuto(this);else if("goLineLeft"==e)Nh(this.cm6);else if("goLineRight"==e){Dh(this.cm6);let e=this.cm6.state,t=e.selection.main.head;t<e.doc.length&&"\n"!==e.sliceDoc(t,t+1)&&Ah(this.cm6,!1)}else console.log(e+" is not implemented")}setBookmark(e,t){var i=(null==t?void 0:t.insertLeft)?1:-1,n=this.indexFromPos(e);return new cg(this,n,i)}addOverlay({query:e}){let t=new EO({regexp:!0,search:e.source,caseSensitive:!/i/.test(e.flags)});if(t.valid){t.forVim=!0,this.cm6Query=t;let e=IO.of(t);return this.cm6.dispatch({effects:e}),t}}removeOverlay(e){if(!this.cm6Query)return;this.cm6Query.forVim=!1;let t=IO.of(this.cm6Query);this.cm6.dispatch({effects:t})}getSearchCursor(e,t){var i=this,n=null,r=null,s=!1;null==t.ch&&(t.ch=Number.MAX_VALUE);var o=NO(i.cm6.state.doc,t),a=e.source.replace(/(\\.|{(?:\d+(?:,\d*)?|,\d+)})|[{}]/g,function(e,t){return t||"\\"+e});function l(t,i=0,n=t.length){return new TO(t,a,{ignoreCase:e.ignoreCase},i,n)}return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var t=i.cm6.state.doc;if(e){let e=n?s?n.to-1:n.from:o;n=function(e,t){var n=i.cm6.state.doc;for(let e=1;;e++){let i=Math.max(0,t-1e4*e),r=l(n,i,t),s=null;for(;!r.next().done;)s=r.value;if(s&&(0==i||s.from>i+10))return s;if(0==i)return null}}(0,e)}else{let e=n?s?n.to+1:n.to:o;n=function(e){var t=i.cm6.state.doc;if(e>t.length)return null;let n=l(t,e).next();return n.done?null:n.value}(e)}return r=n&&{from:qO(t,n.from),to:qO(t,n.to),match:n.match},s=!!n&&n.from==n.to,n&&n.match},from:function(){return null==r?void 0:r.from},to:function(){return null==r?void 0:r.to},replace:function(e){n&&(eg(i,{changes:{from:n.from,to:n.to,insert:e}}),n.to=n.from+e.length,r&&(r.to=qO(i.cm6.state.doc,n.to)))},get match(){return r&&r.match}}}findPosV(e,t,i,n){let{cm6:r}=this;const s=r.state.doc;let o="page"==i?r.dom.clientHeight:0;const a=NO(s,e);let l=K.cursor(a,1,void 0,n),h=Math.round(Math.abs(t));for(let e=0;e<h;e++)"page"==i?l=r.moveVertically(l,t>0,o):"line"==i&&(l=r.moveVertically(l,t>0));let c=qO(s,l.head);return(t<0&&0==l.head&&0!=n&&0==e.line&&0!=e.ch||t>0&&l.head==s.length&&c.ch!=n&&e.line==c.line)&&(c.hitSide=!0),c}charCoords(e,t){var i=this.cm6.contentDOM.getBoundingClientRect(),n=NO(this.cm6.state.doc,e),r=this.cm6.coordsAtPos(n),s=-i.top;return{left:((null==r?void 0:r.left)||0)-i.left,top:((null==r?void 0:r.top)||0)+s,bottom:((null==r?void 0:r.bottom)||0)+s}}coordsChar(e,t){var i=this.cm6.contentDOM.getBoundingClientRect(),n=this.cm6.posAtCoords({x:e.left+i.left,y:e.top+i.top})||0;return qO(this.cm6.state.doc,n)}getScrollInfo(){var e=this.cm6.scrollDOM;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight,width:e.scrollWidth,clientHeight:e.clientHeight,clientWidth:e.clientWidth}}scrollTo(e,t){null!=e&&(this.cm6.scrollDOM.scrollLeft=e),null!=t&&(this.cm6.scrollDOM.scrollTop=t)}scrollIntoView(e,t){if(e){var i=this.indexFromPos(e);this.cm6.dispatch({effects:ws.scrollIntoView(i)})}else this.cm6.dispatch({scrollIntoView:!0,userEvent:"scroll"})}getWrapperElement(){return this.cm6.dom}getMode(){return{name:this.getOption("mode")}}setSize(e,t){this.cm6.dom.style.width=e+4+"px",this.cm6.dom.style.height=t+"px",this.refresh()}refresh(){this.cm6.measure()}destroy(){this.removeOverlay()}getLastEditEnd(){return this.posFromIndex(this.$lastChangeEndOffset)}onChange(e){this.$lineHandleChanges&&this.$lineHandleChanges.push(e);for(let t in this.marks)this.marks[t].update(e.changes);this.virtualSelection&&(this.virtualSelection.ranges=this.virtualSelection.ranges.map(t=>t.map(e.changes)));var t=this.curOp=this.curOp||{};e.changes.iterChanges((e,i,n,r,s)=>{(null==t.$changeStart||t.$changeStart>n)&&(t.$changeStart=n),this.$lastChangeEndOffset=r;var o={text:s.toJSON()};t.lastChange?t.lastChange.next=t.lastChange=o:t.lastChange=t.change=o},!0),t.changeHandlers||(t.changeHandlers=this._handlers.change&&this._handlers.change.slice())}onSelectionChange(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._handlers.cursorActivity&&this._handlers.cursorActivity.slice()),this.curOp.cursorActivity=!0}operation(e,t){this.curOp||(this.curOp={$d:0}),this.curOp.$d++;try{var i=e()}finally{this.curOp&&(this.curOp.$d--,this.curOp.$d||this.onBeforeEndOperation())}return i}onBeforeEndOperation(){var e=this.curOp,t=!1;e&&(e.change&&KO(e.changeHandlers,this,e.change),e&&e.cursorActivity&&(KO(e.cursorActivityHandlers,this,null),e.isVimOp&&(t=!0)),this.curOp=null),t&&this.scrollIntoView()}moveH(e,t){if("char"==t){var i=this.getCursor();this.setCursor(i.line,i.ch+e)}}setOption(e,t){switch(e){case"keyMap":this.state.keyMap=t;break;case"textwidth":this.state.textwidth=t}}getOption(e){switch(e){case"firstLineNumber":return 1;case"tabSize":return this.cm6.state.tabSize||4;case"readOnly":return this.cm6.state.readOnly;case"indentWithTabs":return"\t"==this.cm6.state.facet(Ga);case"indentUnit":return this.cm6.state.facet(Ga).length||2;case"textwidth":return this.state.textwidth;case"keyMap":return this.state.keyMap||"vim"}}toggleOverwrite(e){this.state.overwrite=e}getTokenTypeAt(e){var t,i=this.indexFromPos(e),n=ja(this.cm6.state,i),r=null==n?void 0:n.resolve(i),s=(null===(t=null==r?void 0:r.type)||void 0===t?void 0:t.name)||"";return/comment/i.test(s)?"comment":/string/i.test(s)?"string":""}overWriteSelection(e){var t=this.cm6.state.doc,i=this.cm6.state.selection,n=i.ranges.map(e=>{if(e.empty){var i=e.to<t.length?t.sliceString(e.from,e.to+1):"";if(i&&!/\n/.test(i))return K.range(e.from,e.to+1)}return e});this.cm6.dispatch({selection:K.create(n,i.mainIndex)}),this.replaceSelection(e)}isInMultiSelectMode(){return this.cm6.state.selection.ranges.length>1}virtualSelectionMode(){return!!this.virtualSelection}forEachSelection(e){var t=this.cm6.state.selection;this.virtualSelection=K.create(t.ranges,t.mainIndex);for(var i=0;i<this.virtualSelection.ranges.length;i++){var n=this.virtualSelection.ranges[i];n&&(this.cm6.dispatch({selection:K.create([n])}),e(),this.virtualSelection.ranges[i]=this.cm6.state.selection.ranges[0])}this.cm6.dispatch({selection:this.virtualSelection}),this.virtualSelection=null}hardWrap(e){return function(e,t){for(var i,n=t.column||e.getOption("textwidth")||80,r=0!=t.allowMerge,s=Math.min(t.from,t.to),o=Math.max(t.from,t.to);s<=o;){var a=e.getLine(s);if(a.length>n){if(c=p(a,n,5)){var l=null===(i=/^\s*/.exec(a))||void 0===i?void 0:i[0];e.replaceRange("\n"+l,new UO(s,c.start),new UO(s,c.end))}o++}else if(r&&/\S/.test(a)&&s!=o){var h=e.getLine(s+1);if(h&&/\S/.test(h)){var c,u=a.replace(/\s+$/,""),f=h.replace(/^\s+/,""),d=u+" "+f;(c=p(d,n,5))&&c.start>u.length||d.length<n?(e.replaceRange(" ",new UO(s,u.length),new UO(s+1,h.length-f.length)),s--,o--):u.length<a.length&&e.replaceRange("",new UO(s,u.length),new UO(s,a.length))}}s++}return s;function p(e,t,i){if(!(e.length<t)){var n=e.slice(0,t),r=e.slice(t),s=/^(?:(\s+)|(\S+)(\s+))/.exec(r),o=/(?:(\s+)|(\s+)(\S+))$/.exec(n),a=0,l=0;return o&&!o[2]&&(a=t-o[1].length,l=t),s&&!s[2]&&(a||(a=t),l=t+s[1].length),a?{start:a,end:l}:o&&o[2]&&o.index>i?{start:o.index,end:o.index+o[2].length}:s&&s[2]?{start:a=t+s[2].length,end:a+s[3].length}:void 0}}}(this,e)}}function rg(e,t,i){var n=document.createElement("div");return n.appendChild(t),n}function sg(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}function og(e,t){var i=e.state.dialog;e.state.dialog=t,t.style.flex="1",t&&i!==t&&(i&&i.contains(document.activeElement)&&e.focus(),i&&i.parentElement?i.parentElement.replaceChild(t,i):i&&i.remove(),ng.signal(e,"dialog"))}function ag(e,t){e.state.dialog==t&&(e.state.dialog=null,ng.signal(e,"dialog"))}ng.isMac="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),ng.Pos=UO,ng.StringStream=class{constructor(e,t,i,n){this.string=e,this.tabSize=t,this.indentUnit=i,this.overrideIndent=n,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t,i=this.string.charAt(this.pos);if(t="string"==typeof e?i==e:i&&(e instanceof RegExp?e.test(i):e(i)),t)return++this.pos,i}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Vl(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return null!==(e=this.overrideIndent)&&void 0!==e?e:Vl(this.string,null,this.tabSize)}match(e,t,i){if("string"==typeof e){let n=e=>i?e.toLowerCase():e;return n(this.string.substr(this.pos,e.length))==n(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}}current(){return this.string.slice(this.start,this.pos)}},ng.commands={cursorCharLeft:function(e){Zh(e.cm6)},redo:function(e){tg(e,!1)},undo:function(e){tg(e,!0)},newlineAndIndent:function(e){yc({state:e.cm6.state,dispatch:t=>eg(e,t)})},indentAuto:function(e){xc(e.cm6)},newlineAndIndentContinueComment:void 0,save:void 0},ng.isWordChar=function(e){return JO.test(e)},ng.keys=ig,ng.addClass=function(e,t){},ng.rmClass=function(e,t){},ng.e_preventDefault=function(e){e.preventDefault()},ng.e_stop=function(e){var t,i;null===(t=null==e?void 0:e.stopPropagation)||void 0===t||t.call(e),null===(i=null==e?void 0:e.preventDefault)||void 0===i||i.call(e)},ng.lookupKey=function(e,t,i){var n=ng.keys[e];!n&&/^Arrow/.test(e)&&(n=ng.keys[e.slice(5)]),n&&i(n)},ng.on=GO,ng.off=FO,ng.signal=HO,ng.findMatchingTag=function(e,t){return null},ng.findEnclosingTag=function(e,t){var i,n,r=e.cm6.state,s=e.indexFromPos(t);s<r.doc.length&&"<"==r.sliceDoc(s,s+1)&&s++;for(var o=ja(r,s),a=(null==o?void 0:o.resolve(s))||null;a;){if("OpenTag"==(null===(i=a.firstChild)||void 0===i?void 0:i.type.name)&&"CloseTag"==(null===(n=a.lastChild)||void 0===n?void 0:n.type.name))return{open:hg(r.doc,a.firstChild),close:hg(r.doc,a.lastChild)};a=a.parent}},ng.keyName=void 0;var lg={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function hg(e,t){return{from:qO(e,t.from),to:qO(e,t.to)}}class cg{constructor(e,t,i){this.cm=e,this.id=e.$mid++,this.offset=t,this.assoc=i,e.marks[this.id]=this}clear(){delete this.cm.marks[this.id]}find(){return null==this.offset?null:this.cm.posFromIndex(this.offset)}update(e){null!=this.offset&&(this.offset=e.mapPos(this.offset,this.assoc,B.TrackDel))}}let ug=function(e){return e.facet(Es)}||function(){let e={cursorBlinkRate:1200};return function(){return e}}();class fg{constructor(e,t,i,n,r,s,o,a,l,h){this.left=e,this.top=t,this.height=i,this.fontFamily=n,this.fontSize=r,this.fontWeight=s,this.color=o,this.className=a,this.letter=l,this.partial=h}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",e.style.height=this.height+"px",e.style.lineHeight=this.height+"px",e.style.fontFamily=this.fontFamily,e.style.fontSize=this.fontSize,e.style.fontWeight=this.fontWeight,e.style.color=this.partial?"transparent":this.color,e.className=this.className,e.textContent=this.letter}eq(e){return this.left==e.left&&this.top==e.top&&this.height==e.height&&this.fontFamily==e.fontFamily&&this.fontSize==e.fontSize&&this.fontWeight==e.fontWeight&&this.color==e.color&&this.className==e.className&&this.letter==e.letter}}class dg{constructor(e,t){this.view=e,this.rangePieces=[],this.cursors=[],this.cm=t,this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer cm-vimCursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){let e=ug(this.cm.cm6.state).cursorBlinkRate;this.cursorLayer.style.animationDuration=e+"ms"}update(e){(e.selectionSet||e.geometryChanged||e.viewportChanged)&&(this.view.requestMeasure(this.measureReq),this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),function(e){return ug(e.startState)!=ug(e.state)}(e)&&this.setBlinkRate()}scheduleRedraw(){this.view.requestMeasure(this.measureReq)}readPos(){let{state:e}=this.view,t=[];for(let i of e.selection.ranges){let n=i==e.selection.main,r=gg(this.cm,this.view,i,n);r&&t.push(r)}return{cursors:t}}drawSel({cursors:e}){if(e.length!=this.cursors.length||e.some((e,t)=>!e.eq(this.cursors[t]))){let t=this.cursorLayer.children;if(t.length!==e.length){this.cursorLayer.textContent="";for(const t of e)this.cursorLayer.appendChild(t.draw())}else e.forEach((e,i)=>e.adjust(t[i]));this.cursors=e}}destroy(){this.cursorLayer.remove()}}const pg={".cm-vimMode .cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-fat-cursor":{position:"absolute",background:"#ff9696",border:"none",whiteSpace:"pre"},"&:not(.cm-focused) .cm-fat-cursor":{background:"none",outline:"solid 1px #ff9696",color:"transparent !important"}},Og=ce.highest(ws.theme(pg));function gg(e,t,i,n){var r,s,o,a;let l=i.head,h=!1,c=1,u=e.state.vim;if(u&&(!u.insertMode||e.state.overwrite)){if(h=!0,u.visualBlock&&!n)return null;i.anchor<i.head&&"\n"!=(l<t.state.doc.length&&t.state.sliceDoc(l,l+1))&&l--,e.state.overwrite?c=.2:u.status&&(c=.5)}if(h){let e=l<t.state.doc.length&&t.state.sliceDoc(l,l+1);e&&/[\uDC00-\uDFFF]/.test(e)&&l>1&&(l--,e=t.state.sliceDoc(l,l+1));let i=t.coordsAtPos(l,1);if(!i)return null;let h=function(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ui.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}(t),u=t.domAtPos(l),d=u?u.node:t.contentDOM;for(d instanceof Text&&u.offset>=d.data.length&&(null===(r=d.parentElement)||void 0===r?void 0:r.nextSibling)&&(d=null===(s=d.parentElement)||void 0===s?void 0:s.nextSibling,u={node:d,offset:0});u&&u.node instanceof HTMLElement;)d=u.node,u={node:u.node.childNodes[u.offset],offset:0};if(!(d instanceof HTMLElement)){if(!d.parentNode)return null;d=d.parentNode}let p=getComputedStyle(d),O=i.left,g=null===(a=(o=t).coordsForChar)||void 0===a?void 0:a.call(o,l);if(g&&(O=g.left),e&&"\n"!=e&&"\r"!=e)if("\t"==e){e=" ";var f=t.coordsAtPos(l+1,-1);f&&(O=f.left-(f.left-i.left)/parseInt(p.tabSize))}else/[\uD800-\uDBFF]/.test(e)&&l<t.state.doc.length-1&&(e+=t.state.sliceDoc(l+1,l+2));else e=" ";let m=i.bottom-i.top;return new fg((O-h.left)/t.scaleX,(i.top-h.top+m*(1-c))/t.scaleY,m*c/t.scaleY,p.fontFamily,p.fontSize,p.fontWeight,p.color,n?"cm-fat-cursor cm-cursor-primary":"cm-fat-cursor cm-cursor-secondary",e,1!=c)}return null}var mg="undefined"!=typeof navigator&&/linux/i.test(navigator.platform)&&/ Gecko\/\d+/.exec(navigator.userAgent);const vg=DO(ng),yg=ws.baseTheme({".cm-vimMode .cm-cursorLayer:not(.cm-vimCursorLayer)":{display:"none"},".cm-vim-panel":{padding:"0px 10px",fontFamily:"monospace",minHeight:"1.3em",display:"flex"},".cm-vim-panel input":{border:"none",outline:"none",backgroundColor:"inherit"},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"}}),wg=Gi.fromClass(class{constructor(e){this.status="",this.query=null,this.decorations=Xt.none,this.waitForCopy=!1,this.lastKeydown="",this.useNextTextInput=!1,this.compositionText="",this.view=e;const t=this.cm=new ng(e);vg.enterVimMode(this.cm),this.view.cm=this.cm,this.cm.state.vimPlugin=this,this.blockCursor=new dg(e,t),this.updateClass(),this.cm.on("vim-command-done",()=>{t.state.vim&&(t.state.vim.status=""),this.blockCursor.scheduleRedraw(),this.updateStatus()}),this.cm.on("vim-mode-change",e=>{t.state.vim&&(t.state.vim.mode=e.mode,e.subMode&&(t.state.vim.mode+=" block"),t.state.vim.status="",this.blockCursor.scheduleRedraw(),this.updateClass(),this.updateStatus())}),this.cm.on("dialog",()=>{this.cm.state.statusbar?this.updateStatus():e.dispatch({effects:Sg.of(!!this.cm.state.dialog)})}),this.dom=document.createElement("span"),this.spacer=document.createElement("span"),this.spacer.style.flex="1",this.statusButton=document.createElement("span"),this.statusButton.onclick=e=>{vg.handleKey(this.cm,"<Esc>","user"),this.cm.focus()},this.statusButton.style.cssText="cursor: pointer"}update(e){var t;if((e.viewportChanged||e.docChanged)&&this.query&&this.highlight(this.query),e.docChanged&&this.cm.onChange(e),e.selectionSet&&this.cm.onSelectionChange(),e.viewportChanged,this.cm.curOp&&!this.cm.curOp.isVimOp&&this.cm.onBeforeEndOperation(),e.transactions)for(let i of e.transactions)for(let e of i.effects)if(e.is(IO))if(null===(t=e.value)||void 0===t?void 0:t.forVim){let t=e.value.create();this.highlight(t)}else this.highlight(null);this.blockCursor.update(e)}updateClass(){const e=this.cm.state;!e.vim||e.vim.insertMode&&!e.overwrite?this.view.scrollDOM.classList.remove("cm-vimMode"):this.view.scrollDOM.classList.add("cm-vimMode")}updateStatus(){let e=this.cm.state.statusbar,t=this.cm.state.vim;if(!e||!t)return;let i=this.cm.state.dialog;if(i)i.parentElement!=e&&(e.textContent="",e.appendChild(i));else{e.textContent="";var n=(t.mode||"normal").toUpperCase();t.insertModeReturn&&(n+="(C-O)"),this.statusButton.textContent=`--${n}--`,e.appendChild(this.statusButton),e.appendChild(this.spacer)}this.dom.textContent=t.status,e.appendChild(this.dom)}destroy(){vg.leaveVimMode(this.cm),this.updateClass(),this.blockCursor.destroy(),delete this.view.cm}highlight(e){if(this.query=e,!e)return this.decorations=Xt.none;let{view:t}=this,i=new Ne;for(let n=0,r=t.visibleRanges,s=r.length;n<s;n++){let{from:o,to:a}=r[n];for(;n<s-1&&a>r[n+1].from-500;)a=r[++n].to;e.highlight(t.state,o,a,(e,t)=>{i.add(e,t,bg)})}return this.decorations=i.finish()}handleKey(e,t){const i=this.cm;let n=i.state.vim;if(!n)return;const r=vg.vimKeyFromEvent(e,n);if(ng.signal(this.cm,"inputEvent",{type:"handleKey",key:r}),!r)return;if("<Esc>"==r&&!n.insertMode&&!n.visualMode&&this.query){const e=n.searchState_;e&&(i.removeOverlay(e.getOverlay()),e.setOverlay(null))}if("<C-c>"===r&&!ng.isMac&&i.somethingSelected())return this.waitForCopy=!0,!0;n.status=(n.status||"")+r;let s=vg.multiSelectHandleKey(i,r,"user");return n=vg.maybeInitVimState_(i),!s&&n.insertMode&&i.state.overwrite&&(e.key&&1==e.key.length&&!/\n/.test(e.key)?(s=!0,i.overWriteSelection(e.key)):"Backspace"==e.key&&(s=!0,ng.commands.cursorCharLeft(i))),s&&(ng.signal(this.cm,"vim-keypress",r),e.preventDefault(),e.stopPropagation(),this.blockCursor.scheduleRedraw()),this.updateStatus(),!!s}},{eventHandlers:{copy:function(e,t){this.waitForCopy&&(this.waitForCopy=!1,Promise.resolve().then(()=>{var e=this.cm,t=e.state.vim;t&&(t.insertMode?e.setSelection(e.getCursor(),e.getCursor()):e.operation(()=>{e.curOp&&(e.curOp.isVimOp=!0),vg.handleKey(e,"<Esc>","user")}))}))},compositionstart:function(e,t){this.useNextTextInput=!0,ng.signal(this.cm,"inputEvent",e)},compositionupdate:function(e,t){ng.signal(this.cm,"inputEvent",e)},compositionend:function(e,t){ng.signal(this.cm,"inputEvent",e)},keypress:function(e,t){ng.signal(this.cm,"inputEvent",e),"Dead"==this.lastKeydown&&this.handleKey(e,t)},keydown:function(e,t){ng.signal(this.cm,"inputEvent",e),this.lastKeydown=e.key,"Unidentified"==this.lastKeydown||"Process"==this.lastKeydown||"Dead"==this.lastKeydown?this.useNextTextInput=!0:(this.useNextTextInput=!1,this.handleKey(e,t))}},provide:()=>[ws.inputHandler.of((e,t,i,n)=>{var r,s,o=function(e){return e.cm||null}(e);if(!o)return!1;var a=null===(r=o.state)||void 0===r?void 0:r.vim,l=o.state.vimPlugin;if(a&&!a.insertMode&&!(null===(s=o.curOp)||void 0===s?void 0:s.isVimOp)){if("\0\0"===n)return!0;if(ng.signal(o,"inputEvent",{type:"text",text:n,from:t,to:i}),1==n.length&&l.useNextTextInput){if(a.expectLiteralNext&&e.composing)return l.compositionText=n,!1;if(l.compositionText){var h=l.compositionText;l.compositionText="";var c=e.state.selection.main.head;if(h===e.state.sliceDoc(c-h.length,c)){var u=o.getCursor();o.replaceRange("",o.posFromIndex(c-h.length),u)}}return l.handleKey({key:n,preventDefault:()=>{},stopPropagation:()=>{}}),function(e){var t=e.scrollDOM.parentElement;if(t){if(mg)return e.contentDOM.textContent="\0\0",void e.contentDOM.dispatchEvent(new CustomEvent("compositionend"));var i=e.scrollDOM.nextSibling,n=window.getSelection(),r=n&&{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset};e.scrollDOM.remove(),t.insertBefore(e.scrollDOM,i);try{r&&n&&(n.setPosition(r.anchorNode,r.anchorOffset),r.focusNode&&n.extend(r.focusNode,r.focusOffset))}catch(e){console.error(e)}e.focus(),e.contentDOM.dispatchEvent(new CustomEvent("compositionend"))}}(e),!0}}return!1})],decorations:e=>e.decorations}),bg=Xt.mark({class:"cm-searchMatch"}),Sg=Pe.define(),xg=le.define({create:()=>!1,update(e,t){for(let i of t.effects)i.is(Sg)&&(e=i.value);return e},provide:e=>Ws.from(e,e=>e?kg:null)});function kg(e){let t=document.createElement("div");t.className="cm-vim-panel";let i=e.cm;return i.state.dialog&&t.appendChild(i.state.dialog),{top:!1,dom:t}}function Qg(e){let t=document.createElement("div");t.className="cm-vim-panel";let i=e.cm;return i.state.statusbar=t,i.state.vimPlugin.updateStatus(),{dom:t}}function $g(e={}){return[yg,wg,Og,e.status?Ws.of(Qg):xg]}const Pg=async(e,...t)=>{!function(e){if(!(e=>"function"==typeof e)(e))throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}};function _g(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],i=_g.Promise||Promise;if("function"!=typeof i)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return new i((i,n)=>{r.push(function(e){if(e)return n(e);for(var r=arguments.length,s=Array(1<r?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];if(1===s.length||!t)return i(s[0]);var a={};s.forEach((e,i)=>{var n=t[i];n&&(a[n]=e)}),i(a)}),e.apply(this,r)})}}_g.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",_g.Promise=void 0;const Cg=Ag;function Ag(){if(!(this instanceof Ag))return new Ag}Ag.prototype.checkHash=async function(e){const t=`${e}-hash`;return await this.loadHash(e)===localStorage.getItem(t)},Ag.prototype.loadHash=_g(function(e,t){return((e,t)=>{$O({method:"GET",url:xO+e,callback:t})})(e+"?hash",t),this}),Ag.prototype.setData=function(e,t){const i=`${e}-data`;return localStorage.setItem(i,t),this},Ag.prototype.setHash=function(e,t){const i=`${e}-hash`;return localStorage.setItem(i,t),this},Ag.prototype.getData=function(e){const t=`${e}-data`;return localStorage.getItem(t)||""},Ag.prototype.getHash=function(e){const t=`${e}-hash`;return localStorage.getItem(t)||""};var Tg=i(519);const Zg=Tg(async e=>{const t=`${e}/modules.json`;return await bO.json(t)}),Mg=Tg(async e=>{const t=`${e}/options.json`;return await bO.json(t)}),Rg=async function(e){await bO.parallel(e)},Xg=async(e,t={})=>{const i=t,{prefix:n=""}=i;if(i.name&&globalThis[i.name])return;const r=[Zg(n),Mg(n)],[s,[o,a]]=await Pg(Promise.all.bind(Promise),r);let l,h;if(s)return alert(`Error: could not load module or config: ${s.message}`);const c=a.online&&navigator.onLine,u=function(e,t){let i;if(!(e=>"string"==typeof e)(e))throw Error("name should be string!");if(!Array.isArray(t))throw Error("array should be array!");return t.some(t=>{const n=t.name===e;return n&&(i=t),n}),i}(e,o),f=Array.isArray(u.local),{version:d}=u;f?(l=u.remote,({local:h}=u)):(l=[u.remote],h=[u.local]),h=h.map(e=>n+e);const p=l.map(e=>e.replace(/{{\sversion\s}}/g,d));if(!c)return await Rg(h);await(async e=>{const[t]=await Pg(bO.parallel,e);t&&await Rg()})(p)};(Object.getOwnPropertyDescriptor(Xg,"name")||{}).writable||Object.defineProperty(Xg,"name",{value:"default",configurable:!0});var Eg=i(735);const jg=function(e){return this._ElementMsg||(this._ElementMsg=Fd("div",{innerHTML:'<div class="dword-msg">/div>'}).firstChild,this._Element.appendChild(this._ElementMsg)),this._ElementMsg.textContent=e,this._ElementMsg.hidden=!1,setTimeout(()=>{this._ElementMsg.hidden=!0},2e3),this},zg=Promise.resolve.bind(Promise),Lg=Promise.reject.bind(Promise),Yg=Tg(jg),Vg=e=>{const t="editor-clipboard",{_Ace:i,_story:n}=void 0,r=i.getSelection("\n"),s=e=>i.getDoc().replaceSelection(e);return"copy"===e?(n.setData(t,r),Eg.writeText(r)):"cut"===e?(n.setData(t,r),function(e){const t=Fd("textarea",{value:e});t.select();const i=document.execCommand("cut");return document.body.removeChild(t),i}(r)?zg():Lg()):Eg.readText().then(s).catch(()=>{Yg("Could not paste from clipboard. Inner buffer used.");const e=n.getData(t);s(e)})};(Object.getOwnPropertyDescriptor(Vg,"name")||{}).writable||Object.defineProperty(Vg,"name",{value:"default",configurable:!0});var Bg=i(317),Wg=i(955);Object.defineProperty(qg,"name",{value:"default",configurable:!0});const Ig=e=>"string"==typeof e,Dg=_g(Wg),Ng=Bg(function(e){e._Value=e.getValue()});function qg(){return Ug.call(this).then(Ng(this)).catch(this._onSave.bind(this)),this}async function Ug(){const e=this.getValue(),{length:t}=e,{_FileName:i,_maxSize:n}=this,{diff:r,zip:s}=await this._loadOptions();if(r){const e=await this._doDiff(i),r=function(e,t,i){const n=e<t&&(i?.length||0)<e,r=Ig(i);return i&&r&&n}(t,n,e);if(r)return this._patch(i,e)}if(!s)return this._write(i,e);const o=await Dg(e);return this._write(`${i}?unzip`,o)}Object.defineProperty(Fg,"name",{value:"default",configurable:!0});const Gg=()=>{const e=location;return e.origin||e.protocol+"//"+e.host};function Fg(){const e=this,t=Gg(),i=(e,t)=>{r.emit("patch",e,t)},{_prefixSocket:n}=e,r=globalThis.io.connect(t+n,{"max reconnection attempts":2**32,"reconnection limit":5e3,path:this._socketPath+"/socket.io"});this._socket=r,r.on("reject",()=>{this.emit("reject")}),r.on("connect",()=>{e._patch=i}),r.on("message",e=>{this._onSave(null,e)}),r.on("file",(t,i)=>{e.setModeForPath(t).setValueFirst(t,i).moveCursorTo(0,0)}),r.on("patch",(t,i,n)=>{if(t!==this._FileName)return;if(n!==this._story.getHash(t))return;const r=e.getCursor(),s=e.getValue(),o=(0,SO.applyPatch)(s,i);this.setValue(o),this._story.setData(t,s).setHash(t,this.sha()),e.moveCursorTo(r.row,r.column)}),r.on("disconnect",()=>{e.save.patch=globalThis._patchHttp}),r.on("err",e=>{ip(this._TITLE,e)})}function Hg(){}const Kg=()=>{},Jg=e=>"function"==typeof e,em=e=>"string"==typeof e;function tm(e,t={},i=Kg){if(!(this instanceof tm))return new tm(e,t,i);if(Jg(t)&&(i=t,t={}),this._DIR="/modules/",this._TITLE="Qword",this._story=Cg(),this._Separator="\n",this._isKey=!0,this._Element=em(e)?document.querySelector(e):e||document.body,!this._Element)throw Error("Qword: element not found");this._maxSize=t.maxSize||512e3,this._PREFIX=t.prefix||"/qword",this._prefixSocket=t.prefixSocket||"/qword",this._socketPath=t.socketPath||"",this._Emitter=Nd(),this._view=null,this._pendingValue=null,this._modeCompartment=new fe,this._keymapCompartment=new fe,this._fontCompartment=new fe,this._langCompartment=new fe,this._vimCompartment=new fe,this._Element.addEventListener("drop",this._onDrop.bind(this)),this._Element.addEventListener("dragover",this._onDragOver.bind(this)),this._init().then(()=>i(this)),this._patch=(e,t)=>{this._patchHttp(e,t)},this._write=(e,t)=>{this._writeHttp(e,t)}}tm.prototype._init=async function(){const e=this._PREFIX,[t,i]=await Pg(bO.json,this._PREFIX+"/edit.json");return t?ip(this._TITLE,"Could not load edit.json!"):(this._Config=i,await Promise.all([Mg(e),Zg(e)]),await Xg("socket",{prefix:this._socketPath}),(e=>{xO=e})(`${this._PREFIX}/api/v1/fs`),this._initEditor(),null!==this._pendingValue&&(this.setValue(this._pendingValue),this._pendingValue=null),this._initSocket(),this)},tm.prototype._initEditor=function(){this._Element.style.height="100vh";const e=()=>[lo(),lh(),zs,Zl(Xl),Ec,this._langCompartment.of(uf()),this._vimCompartment.of([]),_s.of([...Pc,...Qh,{key:"Mod-s",run:()=>(this.save(),!0)}])];this._vimEnabled=!1;const t=ze.create({doc:"",extensions:e()});this._view=new ws({state:t,parent:this._Element}),this._baseExtensions=e},tm.prototype.getValue=function(){return this._view.state.doc.toString()},tm.prototype.setValue=function(e){return this._view?(this._view.dispatch({changes:{from:0,to:this._view.state.doc.length,insert:e}}),this):(this._pendingValue=e,this)},tm.prototype.focus=function(){return this._view.focus(),this},tm.prototype.getCursor=function(){const e=this._view.state.selection.main.head,t=this._view.state.doc.lineAt(e);return{row:t.number-1,column:e-t.from}},tm.prototype.moveCursorTo=function(e,t=0){const i=this._view.state.doc.line(e+1);return this._view.dispatch({selection:{anchor:i.from+t},scrollIntoView:!0}),this},tm.prototype.remove=function(e){const t=this._view.state.selection.main.head;return this._view.dispatch({changes:"right"===e?{from:t,to:t+1}:{from:t-1,to:t}}),this},tm.prototype.setModeForPath=function(e){const t=e.split(".").pop();let i=uf();return"json"===t&&(i=new qa(mf)),"html"===t&&(i=function(e={}){let t,i="";!1===e.matchClosingTags&&(i="noMatch"),!0===e.selfClosingTags&&(i=(i?i+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=Wf((e.nestedLanguages||[]).concat(Yd),(e.nestedAttributes||[]).concat(Vd)));let n=t?Bd.configure({wrap:t,dialect:i}):i?Wd.configure({dialect:i}):Wd;return new qa(n,[Wd.data.of({autocomplete:zd(e)}),!1!==e.autoCloseTags?Dd:[],uf().support,new qa(wd,wd.data.of({autocomplete:yd})).support])}()),this._view.dispatch({effects:this._langCompartment.reconfigure(i)}),this},tm.prototype.setValueFirst=function(e,t){return this.setModeForPath(e),this.setValue(t),this._FileName=e,this._Value=t,this.moveCursorTo(0,0),this},tm.prototype.addKeyMap=function(e){const t=Object.entries(e).map(([e,t])=>({key:e,run:()=>(t.call(this),!0)}));return this._view.dispatch({effects:this._keymapCompartment.reconfigure(_s.of(t))}),this},tm.prototype.on=function(e,t){return this._Emitter.on(e,t),this},tm.prototype.emit=function(...e){return this._Emitter.emit(...e),this},tm.prototype.isChanged=function(){return this.getValue()!==this._Value},tm.prototype._diff=function(e){return(0,SO.createPatch)(this._Value||"",e)},tm.prototype._patchHttp=function(e,t){var i,n,r;i=e,n=t,!(r=this._onSave.bind(this))&&kO(n)&&(r=n,n=null),$O({method:"PATCH",url:xO+i,data:n,callback:r})},tm.prototype._writeHttp=function(e,t){QO(e,t,this._onSave.bind(this))},tm.prototype.evaluate=function(){if(!this._FileName?.endsWith(".js"))return ip(this._TITLE,"JS only");const[e]=((e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}})(new Function(this.getValue()));return e&&ip(this._TITLE,e.message),this},tm.prototype.goToLine=function(){const e=Number(prompt("Line number"));if(!e)return;const t=this._view.state.doc.line(e);this._view.dispatch({selection:{anchor:t.from},scrollIntoView:!0}),this.focus()},tm.prototype._clipboard=Vg,tm.prototype.save=qg,tm.prototype._onSave=function(e,t){const i=this._Value,n=this._FileName;let r="Try again?";if(e){r=e.message?e.message+"\n"+r:"Can't save."+r;const t=this._onSave.bind(this);return((e,t,i)=>rp(e,t,"",np(i)||ep,i))(this._TITLE,r).then(()=>{QO(this._FileName,this._Value,t)}).catch(Hg).then(()=>{this.focus()})}this.showMessage(t);const s=this.sha();this._story.setData(n,i).setHash(n,s),this._Emitter.emit("save",i.length)},tm.prototype._initSocket=Fg,tm.prototype._onDragOver=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},tm.prototype._onDrop=function(e){e.preventDefault();const[t]=e.dataTransfer.files;if(!t)return;const i=new FileReader;i.onload=e=>{this.setValue(e.target.result)},i.readAsText(t)},tm.prototype.sha=function(){const e=new wO("SHA-1","TEXT");return e.update(this.getValue()),e.getHash("HEX")},tm.prototype.setOption=function(e,t){const{_Ace:i}=this;return(()=>{this._Config.options[e]=t})(),"keyMap"===e&&this.setKeyMap(t),this},tm.prototype.setOptions=function(e){const t=ws.theme({"&":{fontSize:e.fontSize,fontFamily:e.fontFamily}});return this._view.dispatch({effects:this._fontCompartment.reconfigure(t)}),this},tm.prototype.showMessage=jg,tm.prototype.setKeyMap=function(e){return this._vimEnabled="vim"===e,this._view.dispatch({effects:this._vimCompartment.reconfigure(this._vimEnabled?$g():[])}),this},tm.prototype._loadOptions=async function(){const e=this._PREFIX+"/options.json";if(this._Options)return this._Options;const t=await bO.json(e);return this._Options=t,t},tm.prototype.enableKey=function(){return this._isKey=!0,this}})(),qword=n.default})();
1
+ var qword;(()=>{var e={735(e){"use strict";e.exports=navigator.clipboard||{readText:function(){return Promise.reject()},writeText:async function(e){const t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();const i=document.execCommand("copy");if(document.body.removeChild(t),!i)return Promise.reject()}}},407(e,t,i){"use strict";const n=i(299),r=n((e,t,i)=>e.setAttribute(i,t[i])),s=n((e,t,i)=>e[i]=t[i]),o=n((e,t)=>!e(t)),a=e=>e!=e.toLowerCase();function l(e){var t;if(e)return t=e,document.querySelector(`[data-name="${t}"]`)}e.exports=(e,t={})=>{const{dataName:i,notAppend:n,parent:h=document.body,uniq:c=!0,...u}=t,f=l(i);if(c&&f)return f;const d=document.createElement(e);return i&&(d.dataset.name=i),Object.keys(u).filter(a).map(s(d,t)),Object.keys(u).filter(o(a)).map(r(d,t)),n||h.appendChild(d),d},e.exports.isElementPresent=l},645(e,t,i){"use strict";i.d(t,{A:()=>a});var n=i(354),r=i.n(n),s=i(314),o=i.n(s)()(r());o.push([e.id,".dword-msg{z-index:2;background-color:#7285b7;color:#d1f1a9;position:fixed;left:40%;top:25px;padding:5px;opacity:.9;transition:ease .5s}.CodeMirror{height:100%;font-family:'Droid Sans Mono'}.CodeMirror.cm-s-pastel-on-dark{font-size:16px}","",{version:3,sources:["webpack://./css/qword.css"],names:[],mappings:"AAAA,WACI,SAAS,CACT,wBAAkB,CAClB,aAAO,CACP,cAAU,CACV,QAAM,CACN,QAAK,CACL,WAAS,CACT,UAAS,CACT,mBAAiB,CAGrB,YACI,WAAQ,CACR,6BAAa,CAGjB,gCACI,cAAW",sourcesContent:[".dword-msg {\n z-index: 2;\n background-color: #7285b7;\n color: #d1f1a9;\n position: fixed;\n left: 40%;\n top: 25px;\n padding: 5px;\n opacity: 0.9;\n transition: ease 0.5s;\n}\n\n.CodeMirror {\n height: 100%;\n font-family: 'Droid Sans Mono';\n}\n\n.CodeMirror.cm-s-pastel-on-dark {\n font-size: 16px;\n}\n"],sourceRoot:""}]);const a=o},408(e,t,i){"use strict";i.d(t,{A:()=>p});var n=i(354),r=i.n(n),s=i(314),o=i.n(s),a=i(417),l=i.n(a),h=new URL(i(348),i.b),c=new URL(i(181),i.b),u=o()(r()),f=l()(h),d=l()(c);u.push([e.id,`.smalltalk{display:flex;align-items:center;flex-direction:column;justify-content:center;transition:.2s opacity;inset:0;overflow:auto;padding:20px;position:fixed;z-index:100}.smalltalk+.smalltalk{transition:ease 1s}.smalltalk .page{border-radius:3px;background:#fff;box-shadow:0 4px 23px 5px rgb(0 0 0 / 20%),0 2px 6px rgb(0 0 0 / 15%);color:#333;min-width:400px;padding:0;position:relative;z-index:0}@media only screen and (width <= 500px){.smalltalk .page{min-width:0}}.smalltalk .page>.close-button{background-image:url(${f});background-position:center;background-repeat:no-repeat;height:14px;position:absolute;right:7px;top:7px;width:14px;z-index:1}.smalltalk .page>.close-button:hover{background-image:url(${d})}.smalltalk .progress{display:block;width:100%}.smalltalk .page header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:500px;user-select:none;color:#333;font-size:120%;font-weight:700;margin:0;padding:14px 17px;text-shadow:#fff 0 1px 2px}.smalltalk .page .content-area{overflow:hidden;text-overflow:ellipsis;padding:6px 17px;position:relative}.smalltalk .page .action-area{padding:14px 17px}button{font-family:Ubuntu,Arial,sans-serif}.smalltalk .smalltalk,.smalltalk button{min-height:2em;min-width:4em}.smalltalk button{appearance:none;user-select:none;background-image:linear-gradient(#ededed,#ededed 38%,#dedede);border:1px solid rgb(0 0 0 / 25%);border-radius:2px;box-shadow:0 1px 0 rgb(0 0 0 / 8%),inset 0 1px 2px rgb(255 255 255 / 75%);color:#444;font:inherit;margin:0 1px 0 0;text-shadow:0 1px 0 rgb(240 240 240)}.smalltalk button::-moz-focus-inner{border:0}.smalltalk button:enabled:active{background-image:linear-gradient(#e7e7e7,#e7e7e7 38%,#d7d7d7);box-shadow:none;text-shadow:none}.smalltalk .page .button-strip{display:flex;flex-direction:row;justify-content:flex-end}.smalltalk .page .button-strip>button{margin-left:10px}.smalltalk input{width:100%;border:1px solid #bfbfbf;border-radius:2px;box-sizing:border-box;color:#444;font:inherit;margin:0;min-height:2em;padding:3px;outline:0}.smalltalk button:enabled:focus,.smalltalk input:enabled:focus{transition:border-color .2s;border-color:rgb(77 144 254);outline:0}`,"",{version:3,sources:["webpack://./node_modules/smalltalk/css/smalltalk.css"],names:[],mappings:"AAAA,WACI,YAAS,CACT,kBAAa,CACb,qBAAgB,CAChB,sBAAiB,CACjB,sBAAkB,CAClB,OAAO,CACP,aAAU,CACV,YAAS,CACT,cAAU,CACV,WAAS,CAGb,sBACI,kBAAiB,CAGrB,iBACI,iBAAe,CACf,eAAY,CACZ,qEAAuD,CACvD,UAAO,CACP,eAAW,CACX,SAAS,CACT,iBAAU,CACV,SAAS,CAGb,wCACI,iBACI,WAAW,CAAA,CAInB,+BACI,wDAAkB,CAClB,0BAAqB,CACrB,2BAAmB,CACnB,WAAQ,CACR,iBAAU,CACV,SAAO,CACP,OAAK,CACL,UAAO,CACP,SAAS,CAGb,qCACI,wDAAkB,CAGtB,qBACI,aAAS,CACT,UAAO,CAGX,wBACI,eAAU,CACV,sBAAe,CACf,kBAAa,CACb,eAAW,CACX,gBAAa,CACb,UAAO,CACP,cAAW,CACX,eAAa,CACb,QAAQ,CACR,iBAAc,CACd,0BAAyB,CAG7B,+BACI,eAAU,CACV,sBAAe,CACf,gBAAa,CACb,iBAAU,CAGd,8BACI,iBAAc,CAGlB,OACI,mCAAgC,CAGjB,wCACf,cAAY,CACZ,aAAW,CAGf,kBACI,eAAY,CACZ,gBAAa,CACb,6DAAkB,CAClB,iCAAkB,CAClB,iBAAe,CACf,yEAAqD,CACrD,UAAO,CACP,YAAM,CACN,gBAAgB,CAChB,oCAAqB,CAGzB,oCACI,QAAQ,CAGZ,iCACI,6DAAkB,CAClB,eAAY,CACZ,gBAAa,CAGjB,+BACI,YAAS,CACT,kBAAgB,CAChB,wBAAiB,CAGrB,sCACI,gBAAa,CAGjB,iBACI,UAAO,CACP,wBAAkB,CAClB,iBAAe,CACf,qBAAY,CACZ,UAAO,CACP,YAAM,CACN,QAAQ,CACR,cAAY,CACZ,WAAS,CACT,SAAS,CAGb,+DACI,2BAAyB,CACzB,4BAAc,CACd,SAAS",sourcesContent:[".smalltalk {\n display: flex;\n align-items: center;\n flex-direction: column;\n justify-content: center;\n transition: 200ms opacity;\n inset: 0;\n overflow: auto;\n padding: 20px;\n position: fixed;\n z-index: 100;\n}\n\n.smalltalk + .smalltalk {\n transition: ease 1s;\n}\n\n.smalltalk .page {\n border-radius: 3px;\n background: white;\n box-shadow: 0 4px 23px 5px rgb(0 0 0 / 20%), 0 2px 6px rgb(0 0 0 / 15%);\n color: #333;\n min-width: 400px;\n padding: 0;\n position: relative;\n z-index: 0;\n}\n\n@media only screen and (width <= 500px) {\n .smalltalk .page {\n min-width: 0;\n }\n}\n\n.smalltalk .page > .close-button {\n background-image: url(../img/IDR_CLOSE_DIALOG.png);\n background-position: center;\n background-repeat: no-repeat;\n height: 14px;\n position: absolute;\n right: 7px;\n top: 7px;\n width: 14px;\n z-index: 1;\n}\n\n.smalltalk .page > .close-button:hover {\n background-image: url(../img/IDR_CLOSE_DIALOG_H.png);\n}\n\n.smalltalk .progress {\n display: block;\n width: 100%;\n}\n\n.smalltalk .page header {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 500px;\n user-select: none;\n color: #333;\n font-size: 120%;\n font-weight: bold;\n margin: 0;\n padding: 14px 17px;\n text-shadow: white 0 1px 2px;\n}\n\n.smalltalk .page .content-area {\n overflow: hidden;\n text-overflow: ellipsis;\n padding: 6px 17px;\n position: relative;\n}\n\n.smalltalk .page .action-area {\n padding: 14px 17px;\n}\n\nbutton {\n font-family: 'Ubuntu', 'Arial', sans-serif;\n}\n\n.smalltalk button, .smalltalk .smalltalk {\n min-height: 2em;\n min-width: 4em;\n}\n\n.smalltalk button {\n appearance: none;\n user-select: none;\n background-image: linear-gradient(#ededed, #ededed 38%, #dedede);\n border: 1px solid rgb(0 0 0 / 25%);\n border-radius: 2px;\n box-shadow: 0 1px 0 rgb(0 0 0 / 8%), inset 0 1px 2px rgb(255 255 255 / 75%);\n color: #444;\n font: inherit;\n margin: 0 1px 0 0;\n text-shadow: 0 1px 0 rgb(240 240 240);\n}\n\n.smalltalk button::-moz-focus-inner {\n border: 0;\n}\n\n.smalltalk button:enabled:active {\n background-image: linear-gradient(#e7e7e7, #e7e7e7 38%, #d7d7d7);\n box-shadow: none;\n text-shadow: none;\n}\n\n.smalltalk .page .button-strip {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n}\n\n.smalltalk .page .button-strip > button {\n margin-left: 10px;\n}\n\n.smalltalk input {\n width: 100%;\n border: 1px solid #bfbfbf;\n border-radius: 2px;\n box-sizing: border-box;\n color: #444;\n font: inherit;\n margin: 0;\n min-height: 2em;\n padding: 3px;\n outline: none;\n}\n\n.smalltalk button:enabled:focus, .smalltalk input:enabled:focus {\n transition: border-color 200ms;\n border-color: rgb(77 144 254);\n outline: none;\n}\n\n"],sourceRoot:""}]);const p=u},314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var i="",n=void 0!==t[5];return t[4]&&(i+="@supports (".concat(t[4],") {")),t[2]&&(i+="@media ".concat(t[2]," {")),n&&(i+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),i+=e(t),n&&(i+="}"),t[2]&&(i+="}"),t[4]&&(i+="}"),i}).join("")},t.i=function(e,i,n,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var h=0;h<e.length;h++){var c=[].concat(e[h]);n&&o[c[0]]||(void 0!==s&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=s),i&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=i):c[2]=i),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},417(e){"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},354(e){"use strict";e.exports=function(e){var t=e[1],i=e[3];if(!i)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),s="/*# ".concat(r," */");return[t].concat([s]).join("\n")}return[t].join("\n")}},299(e){"use strict";const t=(e,...i)=>{if(function(e){if("function"!=typeof e)throw Error("fn should be function!")}(e),i.length>=e.length)return e(...i);const n=(...n)=>t(e,...i,...n),r=e.length-i.length-1,s=(e=>[function(t){return e(...arguments)},function(t,i){return e(...arguments)},function(t,i,n){return e(...arguments)},function(t,i,n,r){return e(...arguments)},function(t,i,n,r,s){return e(...arguments)}])(n)[r];return s||n};e.exports=t},911(e,t,i){!function(t){"use strict";function n(e){var t=new e;this.createPatch=function(e,i){var n=t.diff_main(e,i),r=t.patch_make(e,i,n);return t.patch_toText(r)},this.applyPatch=function(e,i){var n=t.patch_fromText(i);return t.patch_apply(n,e)[0]}}e.exports?e.exports=new n(i(189)):t.daffy=new n(t.diff_match_patch)}(this)},189(e){var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},i=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,i,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=r;if(null==e||null==i)throw new Error("Null input. (diff_main)");if(e==i)return e?[new t.Diff(0,e)]:[];void 0===n&&(n=!0);var o=n,a=this.diff_commonPrefix(e,i),l=e.substring(0,a);e=e.substring(a),i=i.substring(a),a=this.diff_commonSuffix(e,i);var h=e.substring(e.length-a);e=e.substring(0,e.length-a),i=i.substring(0,i.length-a);var c=this.diff_compute_(e,i,o,s);return l&&c.unshift(new t.Diff(0,l)),h&&c.push(new t.Diff(0,h)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,n,r,s){var o;if(!e)return[new t.Diff(1,n)];if(!n)return[new t.Diff(i,e)];var a=e.length>n.length?e:n,l=e.length>n.length?n:e,h=a.indexOf(l);if(-1!=h)return o=[new t.Diff(1,a.substring(0,h)),new t.Diff(0,l),new t.Diff(1,a.substring(h+l.length))],e.length>n.length&&(o[0][0]=o[2][0]=i),o;if(1==l.length)return[new t.Diff(i,e),new t.Diff(1,n)];var c=this.diff_halfMatch_(e,n);if(c){var u=c[0],f=c[1],d=c[2],p=c[3],O=c[4],g=this.diff_main(u,d,r,s),m=this.diff_main(f,p,r,s);return g.concat([new t.Diff(0,O)],m)}return r&&e.length>100&&n.length>100?this.diff_lineMode_(e,n,s):this.diff_bisect_(e,n,s)},t.prototype.diff_lineMode_=function(e,n,r){var s=this.diff_linesToChars_(e,n);e=s.chars1,n=s.chars2;var o=s.lineArray,a=this.diff_main(e,n,!1,r);this.diff_charsToLines_(a,o),this.diff_cleanupSemantic(a),a.push(new t.Diff(0,""));for(var l=0,h=0,c=0,u="",f="";l<a.length;){switch(a[l][0]){case 1:c++,f+=a[l][1];break;case i:h++,u+=a[l][1];break;case 0:if(h>=1&&c>=1){a.splice(l-h-c,h+c),l=l-h-c;for(var d=this.diff_main(u,f,!1,r),p=d.length-1;p>=0;p--)a.splice(l,0,d[p]);l+=d.length}c=0,h=0,u="",f=""}l++}return a.pop(),a},t.prototype.diff_bisect_=function(e,n,r){for(var s=e.length,o=n.length,a=Math.ceil((s+o)/2),l=a,h=2*a,c=new Array(h),u=new Array(h),f=0;f<h;f++)c[f]=-1,u[f]=-1;c[l+1]=0,u[l+1]=0;for(var d=s-o,p=d%2!=0,O=0,g=0,m=0,v=0,y=0;y<a&&!((new Date).getTime()>r);y++){for(var w=-y+O;w<=y-g;w+=2){for(var b=l+w,S=(P=w==-y||w!=y&&c[b-1]<c[b+1]?c[b+1]:c[b-1]+1)-w;P<s&&S<o&&e.charAt(P)==n.charAt(S);)P++,S++;if(c[b]=P,P>s)g+=2;else if(S>o)O+=2;else if(p&&(Q=l+d-w)>=0&&Q<h&&-1!=u[Q]&&P>=(k=s-u[Q]))return this.diff_bisectSplit_(e,n,P,S,r)}for(var x=-y+m;x<=y-v;x+=2){for(var k,Q=l+x,$=(k=x==-y||x!=y&&u[Q-1]<u[Q+1]?u[Q+1]:u[Q-1]+1)-x;k<s&&$<o&&e.charAt(s-k-1)==n.charAt(o-$-1);)k++,$++;if(u[Q]=k,k>s)v+=2;else if($>o)m+=2;else if(!p){var P;if((b=l+d-x)>=0&&b<h&&-1!=c[b])if(S=l+(P=c[b])-b,P>=(k=s-k))return this.diff_bisectSplit_(e,n,P,S,r)}}}return[new t.Diff(i,e),new t.Diff(1,n)]},t.prototype.diff_bisectSplit_=function(e,t,i,n,r){var s=e.substring(0,i),o=t.substring(0,n),a=e.substring(i),l=t.substring(n),h=this.diff_main(s,o,!1,r),c=this.diff_main(a,l,!1,r);return h.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var i=[],n={};function r(e){for(var t="",r=0,o=-1,a=i.length;o<e.length-1;){-1==(o=e.indexOf("\n",r))&&(o=e.length-1);var l=e.substring(r,o+1);(n.hasOwnProperty?n.hasOwnProperty(l):void 0!==n[l])?t+=String.fromCharCode(n[l]):(a==s&&(l=e.substring(r),o=e.length),t+=String.fromCharCode(a),n[l]=a,i[a++]=l),r=o+1}return t}i[0]="";var s=4e4,o=r(e);return s=65535,{chars1:o,chars2:r(t),lineArray:i}},t.prototype.diff_charsToLines_=function(e,t){for(var i=0;i<e.length;i++){for(var n=e[i][1],r=[],s=0;s<n.length;s++)r[s]=t[n.charCodeAt(s)];e[i][1]=r.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,s=0;i<r;)e.substring(s,r)==t.substring(s,r)?s=i=r:n=r,r=Math.floor((n-i)/2+i);return r},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var i=0,n=Math.min(e.length,t.length),r=n,s=0;i<r;)e.substring(e.length-r,e.length-s)==t.substring(t.length-r,t.length-s)?s=i=r:n=r,r=Math.floor((n-i)/2+i);return r},t.prototype.diff_commonOverlap_=function(e,t){var i=e.length,n=t.length;if(0==i||0==n)return 0;i>n?e=e.substring(i-n):i<n&&(t=t.substring(0,i));var r=Math.min(i,n);if(e==t)return r;for(var s=0,o=1;;){var a=e.substring(r-o),l=t.indexOf(a);if(-1==l)return s;o+=l,0!=l&&e.substring(r-o)!=t.substring(0,o)||(s=o,o++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var i=e.length>t.length?e:t,n=e.length>t.length?t:e;if(i.length<4||2*n.length<i.length)return null;var r=this;function s(e,t,i){for(var n,s,o,a,l=e.substring(i,i+Math.floor(e.length/4)),h=-1,c="";-1!=(h=t.indexOf(l,h+1));){var u=r.diff_commonPrefix(e.substring(i),t.substring(h)),f=r.diff_commonSuffix(e.substring(0,i),t.substring(0,h));c.length<f+u&&(c=t.substring(h-f,h)+t.substring(h,h+u),n=e.substring(0,i-f),s=e.substring(i+u),o=t.substring(0,h-f),a=t.substring(h+u))}return 2*c.length>=e.length?[n,s,o,a,c]:null}var o,a,l,h,c,u=s(i,n,Math.ceil(i.length/4)),f=s(i,n,Math.ceil(i.length/2));return u||f?(o=f?u&&u[4].length>f[4].length?u:f:u,e.length>t.length?(a=o[0],l=o[1],h=o[2],c=o[3]):(h=o[0],c=o[1],a=o[2],l=o[3]),[a,l,h,c,o[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var n=!1,r=[],s=0,o=null,a=0,l=0,h=0,c=0,u=0;a<e.length;)0==e[a][0]?(r[s++]=a,l=c,h=u,c=0,u=0,o=e[a][1]):(1==e[a][0]?c+=e[a][1].length:u+=e[a][1].length,o&&o.length<=Math.max(l,h)&&o.length<=Math.max(c,u)&&(e.splice(r[s-1],0,new t.Diff(i,o)),e[r[s-1]+1][0]=1,s--,a=--s>0?r[s-1]:-1,l=0,h=0,c=0,u=0,o=null,n=!0)),a++;for(n&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),a=1;a<e.length;){if(e[a-1][0]==i&&1==e[a][0]){var f=e[a-1][1],d=e[a][1],p=this.diff_commonOverlap_(f,d),O=this.diff_commonOverlap_(d,f);p>=O?(p>=f.length/2||p>=d.length/2)&&(e.splice(a,0,new t.Diff(0,d.substring(0,p))),e[a-1][1]=f.substring(0,f.length-p),e[a+1][1]=d.substring(p),a++):(O>=f.length/2||O>=d.length/2)&&(e.splice(a,0,new t.Diff(0,f.substring(0,O))),e[a-1][0]=1,e[a-1][1]=d.substring(0,d.length-O),e[a+1][0]=i,e[a+1][1]=f.substring(O),a++),a++}a++}},t.prototype.diff_cleanupSemanticLossless=function(e){function i(e,i){if(!e||!i)return 6;var n=e.charAt(e.length-1),r=i.charAt(0),s=n.match(t.nonAlphaNumericRegex_),o=r.match(t.nonAlphaNumericRegex_),a=s&&n.match(t.whitespaceRegex_),l=o&&r.match(t.whitespaceRegex_),h=a&&n.match(t.linebreakRegex_),c=l&&r.match(t.linebreakRegex_),u=h&&e.match(t.blanklineEndRegex_),f=c&&i.match(t.blanklineStartRegex_);return u||f?5:h||c?4:s&&!a&&l?3:a||l?2:s||o?1:0}for(var n=1;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],s=e[n][1],o=e[n+1][1],a=this.diff_commonSuffix(r,s);if(a){var l=s.substring(s.length-a);r=r.substring(0,r.length-a),s=l+s.substring(0,s.length-a),o=l+o}for(var h=r,c=s,u=o,f=i(r,s)+i(s,o);s.charAt(0)===o.charAt(0);){r+=s.charAt(0),s=s.substring(1)+o.charAt(0),o=o.substring(1);var d=i(r,s)+i(s,o);d>=f&&(f=d,h=r,c=s,u=o)}e[n-1][1]!=h&&(h?e[n-1][1]=h:(e.splice(n-1,1),n--),e[n][1]=c,u?e[n+1][1]=u:(e.splice(n+1,1),n--))}n++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var n=!1,r=[],s=0,o=null,a=0,l=!1,h=!1,c=!1,u=!1;a<e.length;)0==e[a][0]?(e[a][1].length<this.Diff_EditCost&&(c||u)?(r[s++]=a,l=c,h=u,o=e[a][1]):(s=0,o=null),c=u=!1):(e[a][0]==i?u=!0:c=!0,o&&(l&&h&&c&&u||o.length<this.Diff_EditCost/2&&l+h+c+u==3)&&(e.splice(r[s-1],0,new t.Diff(i,o)),e[r[s-1]+1][0]=1,s--,o=null,l&&h?(c=u=!0,s=0):(a=--s>0?r[s-1]:-1,c=u=!1),n=!0)),a++;n&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var n,r=0,s=0,o=0,a="",l="";r<e.length;)switch(e[r][0]){case 1:o++,l+=e[r][1],r++;break;case i:s++,a+=e[r][1],r++;break;case 0:s+o>1?(0!==s&&0!==o&&(0!==(n=this.diff_commonPrefix(l,a))&&(r-s-o>0&&0==e[r-s-o-1][0]?e[r-s-o-1][1]+=l.substring(0,n):(e.splice(0,0,new t.Diff(0,l.substring(0,n))),r++),l=l.substring(n),a=a.substring(n)),0!==(n=this.diff_commonSuffix(l,a))&&(e[r][1]=l.substring(l.length-n)+e[r][1],l=l.substring(0,l.length-n),a=a.substring(0,a.length-n))),r-=s+o,e.splice(r,s+o),a.length&&(e.splice(r,0,new t.Diff(i,a)),r++),l.length&&(e.splice(r,0,new t.Diff(1,l)),r++),r++):0!==r&&0==e[r-1][0]?(e[r-1][1]+=e[r][1],e.splice(r,1)):r++,o=0,s=0,a="",l=""}""===e[e.length-1][1]&&e.pop();var h=!1;for(r=1;r<e.length-1;)0==e[r-1][0]&&0==e[r+1][0]&&(e[r][1].substring(e[r][1].length-e[r-1][1].length)==e[r-1][1]?(e[r][1]=e[r-1][1]+e[r][1].substring(0,e[r][1].length-e[r-1][1].length),e[r+1][1]=e[r-1][1]+e[r+1][1],e.splice(r-1,1),h=!0):e[r][1].substring(0,e[r+1][1].length)==e[r+1][1]&&(e[r-1][1]+=e[r+1][1],e[r][1]=e[r][1].substring(e[r+1][1].length)+e[r+1][1],e.splice(r+1,1),h=!0)),r++;h&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var n,r=0,s=0,o=0,a=0;for(n=0;n<e.length&&(1!==e[n][0]&&(r+=e[n][1].length),e[n][0]!==i&&(s+=e[n][1].length),!(r>t));n++)o=r,a=s;return e.length!=n&&e[n][0]===i?a:a+(t-o)},t.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,r=/</g,s=/>/g,o=/\n/g,a=0;a<e.length;a++){var l=e[a][0],h=e[a][1].replace(n,"&amp;").replace(r,"&lt;").replace(s,"&gt;").replace(o,"&para;<br>");switch(l){case 1:t[a]='<ins style="background:#e6ffe6;">'+h+"</ins>";break;case i:t[a]='<del style="background:#ffe6e6;">'+h+"</del>";break;case 0:t[a]="<span>"+h+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],i=0;i<e.length;i++)1!==e[i][0]&&(t[i]=e[i][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],n=0;n<e.length;n++)e[n][0]!==i&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,n=0,r=0,s=0;s<e.length;s++){var o=e[s][0],a=e[s][1];switch(o){case 1:n+=a.length;break;case i:r+=a.length;break;case 0:t+=Math.max(n,r),n=0,r=0}}return t+Math.max(n,r)},t.prototype.diff_toDelta=function(e){for(var t=[],n=0;n<e.length;n++)switch(e[n][0]){case 1:t[n]="+"+encodeURI(e[n][1]);break;case i:t[n]="-"+e[n][1].length;break;case 0:t[n]="="+e[n][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,n){for(var r=[],s=0,o=0,a=n.split(/\t/g),l=0;l<a.length;l++){var h=a[l].substring(1);switch(a[l].charAt(0)){case"+":try{r[s++]=new t.Diff(1,decodeURI(h))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+h)}break;case"-":case"=":var c=parseInt(h,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+h);var u=e.substring(o,o+=c);"="==a[l].charAt(0)?r[s++]=new t.Diff(0,u):r[s++]=new t.Diff(i,u);break;default:if(a[l])throw new Error("Invalid diff operation in diff_fromDelta: "+a[l])}}if(o!=e.length)throw new Error("Delta length ("+o+") does not equal source text length ("+e.length+").");return r},t.prototype.match_main=function(e,t,i){if(null==e||null==t||null==i)throw new Error("Null input. (match_main)");return i=Math.max(0,Math.min(i,e.length)),e==t?0:e.length?e.substring(i,i+t.length)==t?i:this.match_bitap_(e,t,i):-1},t.prototype.match_bitap_=function(e,t,i){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var n=this.match_alphabet_(t),r=this;function s(e,n){var s=e/t.length,o=Math.abs(i-n);return r.Match_Distance?s+o/r.Match_Distance:o?1:s}var o=this.Match_Threshold,a=e.indexOf(t,i);-1!=a&&(o=Math.min(s(0,a),o),-1!=(a=e.lastIndexOf(t,i+t.length))&&(o=Math.min(s(0,a),o)));var l,h,c=1<<t.length-1;a=-1;for(var u,f=t.length+e.length,d=0;d<t.length;d++){for(l=0,h=f;l<h;)s(d,i+h)<=o?l=h:f=h,h=Math.floor((f-l)/2+l);f=h;var p=Math.max(1,i-h+1),O=Math.min(i+h,e.length)+t.length,g=Array(O+2);g[O+1]=(1<<d)-1;for(var m=O;m>=p;m--){var v=n[e.charAt(m-1)];if(g[m]=0===d?(g[m+1]<<1|1)&v:(g[m+1]<<1|1)&v|(u[m+1]|u[m])<<1|1|u[m+1],g[m]&c){var y=s(d,m-1);if(y<=o){if(o=y,!((a=m-1)>i))break;p=Math.max(1,2*i-a)}}}if(s(d+1,i)>o)break;u=g}return a},t.prototype.match_alphabet_=function(e){for(var t={},i=0;i<e.length;i++)t[e.charAt(i)]=0;for(i=0;i<e.length;i++)t[e.charAt(i)]|=1<<e.length-i-1;return t},t.prototype.patch_addContext_=function(e,i){if(0!=i.length){if(null===e.start2)throw Error("patch not initialized");for(var n=i.substring(e.start2,e.start2+e.length1),r=0;i.indexOf(n)!=i.lastIndexOf(n)&&n.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)r+=this.Patch_Margin,n=i.substring(e.start2-r,e.start2+e.length1+r);r+=this.Patch_Margin;var s=i.substring(e.start2-r,e.start2);s&&e.diffs.unshift(new t.Diff(0,s));var o=i.substring(e.start2+e.length1,e.start2+e.length1+r);o&&e.diffs.push(new t.Diff(0,o)),e.start1-=s.length,e.start2-=s.length,e.length1+=s.length+o.length,e.length2+=s.length+o.length}},t.prototype.patch_make=function(e,n,r){var s,o;if("string"==typeof e&&"string"==typeof n&&void 0===r)s=e,(o=this.diff_main(s,n,!0)).length>2&&(this.diff_cleanupSemantic(o),this.diff_cleanupEfficiency(o));else if(e&&"object"==typeof e&&void 0===n&&void 0===r)o=e,s=this.diff_text1(o);else if("string"==typeof e&&n&&"object"==typeof n&&void 0===r)s=e,o=n;else{if("string"!=typeof e||"string"!=typeof n||!r||"object"!=typeof r)throw new Error("Unknown call format to patch_make.");s=e,o=r}if(0===o.length)return[];for(var a=[],l=new t.patch_obj,h=0,c=0,u=0,f=s,d=s,p=0;p<o.length;p++){var O=o[p][0],g=o[p][1];switch(h||0===O||(l.start1=c,l.start2=u),O){case 1:l.diffs[h++]=o[p],l.length2+=g.length,d=d.substring(0,u)+g+d.substring(u);break;case i:l.length1+=g.length,l.diffs[h++]=o[p],d=d.substring(0,u)+d.substring(u+g.length);break;case 0:g.length<=2*this.Patch_Margin&&h&&o.length!=p+1?(l.diffs[h++]=o[p],l.length1+=g.length,l.length2+=g.length):g.length>=2*this.Patch_Margin&&h&&(this.patch_addContext_(l,f),a.push(l),l=new t.patch_obj,h=0,f=d,c=u)}1!==O&&(c+=g.length),O!==i&&(u+=g.length)}return h&&(this.patch_addContext_(l,f),a.push(l)),a},t.prototype.patch_deepCopy=function(e){for(var i=[],n=0;n<e.length;n++){var r=e[n],s=new t.patch_obj;s.diffs=[];for(var o=0;o<r.diffs.length;o++)s.diffs[o]=new t.Diff(r.diffs[o][0],r.diffs[o][1]);s.start1=r.start1,s.start2=r.start2,s.length1=r.length1,s.length2=r.length2,i[n]=s}return i},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var n=this.patch_addPadding(e);t=n+t+n,this.patch_splitMax(e);for(var r=0,s=[],o=0;o<e.length;o++){var a,l,h=e[o].start2+r,c=this.diff_text1(e[o].diffs),u=-1;if(c.length>this.Match_MaxBits?-1!=(a=this.match_main(t,c.substring(0,this.Match_MaxBits),h))&&(-1==(u=this.match_main(t,c.substring(c.length-this.Match_MaxBits),h+c.length-this.Match_MaxBits))||a>=u)&&(a=-1):a=this.match_main(t,c,h),-1==a)s[o]=!1,r-=e[o].length2-e[o].length1;else if(s[o]=!0,r=a-h,c==(l=-1==u?t.substring(a,a+c.length):t.substring(a,u+this.Match_MaxBits)))t=t.substring(0,a)+this.diff_text2(e[o].diffs)+t.substring(a+c.length);else{var f=this.diff_main(c,l,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)s[o]=!1;else{this.diff_cleanupSemanticLossless(f);for(var d,p=0,O=0;O<e[o].diffs.length;O++){var g=e[o].diffs[O];0!==g[0]&&(d=this.diff_xIndex(f,p)),1===g[0]?t=t.substring(0,a+d)+g[1]+t.substring(a+d):g[0]===i&&(t=t.substring(0,a+d)+t.substring(a+this.diff_xIndex(f,p+g[1].length))),g[0]!==i&&(p+=g[1].length)}}}}return[t=t.substring(n.length,t.length-n.length),s]},t.prototype.patch_addPadding=function(e){for(var i=this.Patch_Margin,n="",r=1;r<=i;r++)n+=String.fromCharCode(r);for(r=0;r<e.length;r++)e[r].start1+=i,e[r].start2+=i;var s=e[0],o=s.diffs;if(0==o.length||0!=o[0][0])o.unshift(new t.Diff(0,n)),s.start1-=i,s.start2-=i,s.length1+=i,s.length2+=i;else if(i>o[0][1].length){var a=i-o[0][1].length;o[0][1]=n.substring(o[0][1].length)+o[0][1],s.start1-=a,s.start2-=a,s.length1+=a,s.length2+=a}return 0==(o=(s=e[e.length-1]).diffs).length||0!=o[o.length-1][0]?(o.push(new t.Diff(0,n)),s.length1+=i,s.length2+=i):i>o[o.length-1][1].length&&(a=i-o[o.length-1][1].length,o[o.length-1][1]+=n.substring(0,a),s.length1+=a,s.length2+=a),n},t.prototype.patch_splitMax=function(e){for(var n=this.Match_MaxBits,r=0;r<e.length;r++)if(!(e[r].length1<=n)){var s=e[r];e.splice(r--,1);for(var o=s.start1,a=s.start2,l="";0!==s.diffs.length;){var h=new t.patch_obj,c=!0;for(h.start1=o-l.length,h.start2=a-l.length,""!==l&&(h.length1=h.length2=l.length,h.diffs.push(new t.Diff(0,l)));0!==s.diffs.length&&h.length1<n-this.Patch_Margin;){var u=s.diffs[0][0],f=s.diffs[0][1];1===u?(h.length2+=f.length,a+=f.length,h.diffs.push(s.diffs.shift()),c=!1):u===i&&1==h.diffs.length&&0==h.diffs[0][0]&&f.length>2*n?(h.length1+=f.length,o+=f.length,c=!1,h.diffs.push(new t.Diff(u,f)),s.diffs.shift()):(f=f.substring(0,n-h.length1-this.Patch_Margin),h.length1+=f.length,o+=f.length,0===u?(h.length2+=f.length,a+=f.length):c=!1,h.diffs.push(new t.Diff(u,f)),f==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(f.length))}l=(l=this.diff_text2(h.diffs)).substring(l.length-this.Patch_Margin);var d=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==d&&(h.length1+=d.length,h.length2+=d.length,0!==h.diffs.length&&0===h.diffs[h.diffs.length-1][0]?h.diffs[h.diffs.length-1][1]+=d:h.diffs.push(new t.Diff(0,d))),c||e.splice(++r,0,h)}}},t.prototype.patch_toText=function(e){for(var t=[],i=0;i<e.length;i++)t[i]=e[i];return t.join("")},t.prototype.patch_fromText=function(e){var n=[];if(!e)return n;for(var r=e.split("\n"),s=0,o=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;s<r.length;){var a=r[s].match(o);if(!a)throw new Error("Invalid patch string: "+r[s]);var l=new t.patch_obj;for(n.push(l),l.start1=parseInt(a[1],10),""===a[2]?(l.start1--,l.length1=1):"0"==a[2]?l.length1=0:(l.start1--,l.length1=parseInt(a[2],10)),l.start2=parseInt(a[3],10),""===a[4]?(l.start2--,l.length2=1):"0"==a[4]?l.length2=0:(l.start2--,l.length2=parseInt(a[4],10)),s++;s<r.length;){var h=r[s].charAt(0);try{var c=decodeURI(r[s].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==h)l.diffs.push(new t.Diff(i,c));else if("+"==h)l.diffs.push(new t.Diff(1,c));else if(" "==h)l.diffs.push(new t.Diff(0,c));else{if("@"==h)break;if(""!==h)throw new Error('Invalid patch mode "'+h+'" in: '+c)}s++}}return n},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],n=0;n<this.diffs.length;n++){switch(this.diffs[n][0]){case 1:e="+";break;case i:e="-";break;case 0:e=" "}t[n+1]=e+encodeURI(this.diffs[n][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=i,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},411(e){"use strict";function t(){if(!(this instanceof t))return new t;this._all={}}function i(e){if("string"!=typeof e)throw Error("event should be string!")}function n(e,t){i(e),function(e){if("function"!=typeof e)throw Error("callback should be function!")}(t)}e.exports=t,t.prototype.on=function(e,t){const i=this._all[e];return n(e,t),i?i.push(t):this._all[e]=[t],this},t.prototype.addListener=t.prototype.on,t.prototype.once=function(e,t){const i=this;return n(e,t),this.on(e,function n(...r){t(...r),i.off(e,n)}),this},t.prototype.off=function(e,t){const i=this._all[e]||[];let r=i.indexOf(t);for(n(e,t);~r;)i.splice(r,1),r=i.indexOf(t);return this},t.prototype.removeListener=t.prototype.off,t.prototype.emit=function(e,...t){const n=this._all[e];if(i(e),!n&&"error"===e)throw t[0];if(!n)return this;for(const e of n)e(...t);return this},t.prototype.removeAllListeners=function(e){return i(e),this._all[e]=[],this}},256(e,t,i){"use strict";const{promisify:n}=i(450),r=i(407),s=()=>{},o=(e,t,i)=>{e.addEventListener(t,n=>{i(n),e.removeEventListener(t,i)})},a=async e=>{switch(function(e){let t,i="";return"string"==typeof e&&(t=e.lastIndexOf("."),~t&&(i=e.substr(t))),i}(e)){case".js":return await a.js(e);case".css":return await a.css(e);case".json":return await a.json(e);default:return await a.ajax(e)}};function l(e){if("string"!=typeof e)return"";~e.indexOf(":")&&(e+="-join");const t=e.lastIndexOf("/")+1,i=e.substr(e,t);return e.replace(i,"").replace(/\./g,"-")}a.onerror=s,a.onload=s,a.addLoadListener=e=>{a.onload=e},a.addErrorListener=e=>{a.onerror=e},e.exports=a,a.js=n((e,t)=>{const i=l(e);let n=document.getElementById(i);if(n)return t();n=r("script",{id:i,src:e}),o(n,"load",e=>{t(null,e),a.onload()}),o(n,"error",i=>{t(i),document.body.removeChild(n),a.onerror(i,e)})}),a.css=n((e,t)=>{const i=l(e);let n=document.getElementById(i);if(n)return t();n=r("link",{id:l(e),rel:"stylesheet",href:e,parent:document.head}),n.addEventListener("load",e=>{t(null,e),a.onload()}),n.addEventListener("error",i=>{t(i),document.head.removeChild(n),a.onerror(i,e)})}),a.ajax=n((e,t)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),i.addEventListener("load",()=>{if(i.status>=200&&i.status<400){const e=i.responseText;t(null,e),a.onload()}}),i.addEventListener("error",e=>{a.onerror(e),t(e)}),i.send()}),a.json=n((e,t)=>{a.ajax(e,(e,i)=>{let n;e||(n=JSON.parse(i)),t(e,n)})}),a.series=async e=>{const t=e.shift();t&&(await a(t),await a.series(e))},a.parallel=async e=>{const t=e.map(a);return await Promise.all(t)},a.getIdBySrc=l},450(e,t){"use strict";t.promisify=n;var i="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__";function n(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e[i],r=n.Promise||Promise;if("function"!=typeof r)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var i=this,n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];return new r(function(n,r){s.push(function(e){if(e)return r(e);for(var i=arguments.length,s=new Array(i>1?i-1:0),o=1;o<i;o++)s[o-1]=arguments[o];if(1===s.length||!t)return n(s[0]);var a={};s.forEach(function(e,i){var n=t[i];n&&(a[n]=e)}),n(a)}),e.apply(i,s)})}}n.argumentNames=i,n.Promise=void 0},519(e,t,i){var n=i(587);function r(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function s(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},i=e.name||"Function wrapped with `once`";return t.onceError=i+" shouldn't be called more than once",t.called=!1,t}e.exports=n(r),e.exports.strict=n(s),r.proto=r(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return r(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return s(this)},configurable:!0})})},668(e,t,i){"use strict";var n={};(0,i(805).assign)(n,i(303),i(83),i(681)),e.exports=n},303(e,t,i){"use strict";var n=i(792),r=i(805),s=i(996),o=i(674),a=i(442),l=Object.prototype.toString;function h(e){if(!(this instanceof h))return new h(e);this.options=r.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var i=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(0!==i)throw new Error(o[i]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var c;if(c="string"==typeof t.dictionary?s.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,0!==(i=n.deflateSetDictionary(this.strm,c)))throw new Error(o[i]);this._dict_set=!0}}function c(e,t){var i=new h(t);if(i.push(e,!0),i.err)throw i.msg||o[i.err];return i.result}h.prototype.push=function(e,t){var i,o,a=this.strm,h=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?a.input=s.string2buf(e):"[object ArrayBuffer]"===l.call(e)?a.input=new Uint8Array(e):a.input=e,a.next_in=0,a.avail_in=a.input.length;do{if(0===a.avail_out&&(a.output=new r.Buf8(h),a.next_out=0,a.avail_out=h),1!==(i=n.deflate(a,o))&&0!==i)return this.onEnd(i),this.ended=!0,!1;0!==a.avail_out&&(0!==a.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(s.buf2binstring(r.shrinkBuf(a.output,a.next_out))):this.onData(r.shrinkBuf(a.output,a.next_out)))}while((a.avail_in>0||0===a.avail_out)&&1!==i);return 4===o?(i=n.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,0===i):2!==o||(this.onEnd(0),a.avail_out=0,!0)},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Deflate=h,t.deflate=c,t.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},t.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},83(e,t,i){"use strict";var n=i(447),r=i(805),s=i(996),o=i(681),a=i(674),l=i(442),h=i(414),c=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=r.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(t.windowBits>=0&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(15&t.windowBits||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var i=n.inflateInit2(this.strm,t.windowBits);if(i!==o.Z_OK)throw new Error(a[i]);if(this.header=new h,n.inflateGetHeader(this.strm,this.header),t.dictionary&&("string"==typeof t.dictionary?t.dictionary=s.string2buf(t.dictionary):"[object ArrayBuffer]"===c.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(i=n.inflateSetDictionary(this.strm,t.dictionary))!==o.Z_OK))throw new Error(a[i])}function f(e,t){var i=new u(t);if(i.push(e,!0),i.err)throw i.msg||a[i.err];return i.result}u.prototype.push=function(e,t){var i,a,l,h,u,f=this.strm,d=this.options.chunkSize,p=this.options.dictionary,O=!1;if(this.ended)return!1;a=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=s.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new r.Buf8(d),f.next_out=0,f.avail_out=d),(i=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&p&&(i=n.inflateSetDictionary(this.strm,p)),i===o.Z_BUF_ERROR&&!0===O&&(i=o.Z_OK,O=!1),i!==o.Z_STREAM_END&&i!==o.Z_OK)return this.onEnd(i),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&i!==o.Z_STREAM_END&&(0!==f.avail_in||a!==o.Z_FINISH&&a!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=s.utf8border(f.output,f.next_out),h=f.next_out-l,u=s.buf2string(f.output,l),f.next_out=h,f.avail_out=d-h,h&&r.arraySet(f.output,f.output,l,h,0),this.onData(u)):this.onData(r.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(O=!0)}while((f.avail_in>0||0===f.avail_out)&&i!==o.Z_STREAM_END);return i===o.Z_STREAM_END&&(a=o.Z_FINISH),a===o.Z_FINISH?(i=n.inflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===o.Z_OK):a!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=r.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},t.Inflate=u,t.inflate=f,t.inflateRaw=function(e,t){return(t=t||{}).raw=!0,f(e,t)},t.ungzip=f},805(e,t){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var i=t.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var r in i)n(i,r)&&(e[r]=i[r])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var r={arraySet:function(e,t,i,n,r){if(t.subarray&&e.subarray)e.set(t.subarray(i,i+n),r);else for(var s=0;s<n;s++)e[r+s]=t[i+s]},flattenChunks:function(e){var t,i,n,r,s,o;for(n=0,t=0,i=e.length;t<i;t++)n+=e[t].length;for(o=new Uint8Array(n),r=0,t=0,i=e.length;t<i;t++)s=e[t],o.set(s,r),r+=s.length;return o}},s={arraySet:function(e,t,i,n,r){for(var s=0;s<n;s++)e[r+s]=t[i+s]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,r)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(i)},996(e,t,i){"use strict";var n=i(805),r=!0,s=!0;try{String.fromCharCode.apply(null,[0])}catch(e){r=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){s=!1}for(var o=new n.Buf8(256),a=0;a<256;a++)o[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;function l(e,t){if(t<65534&&(e.subarray&&s||!e.subarray&&r))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var i="",o=0;o<t;o++)i+=String.fromCharCode(e[o]);return i}o[254]=o[254]=1,t.string2buf=function(e){var t,i,r,s,o,a=e.length,l=0;for(s=0;s<a;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),l+=i<128?1:i<2048?2:i<65536?3:4;for(t=new n.Buf8(l),o=0,s=0;o<l;s++)55296==(64512&(i=e.charCodeAt(s)))&&s+1<a&&56320==(64512&(r=e.charCodeAt(s+1)))&&(i=65536+(i-55296<<10)+(r-56320),s++),i<128?t[o++]=i:i<2048?(t[o++]=192|i>>>6,t[o++]=128|63&i):i<65536?(t[o++]=224|i>>>12,t[o++]=128|i>>>6&63,t[o++]=128|63&i):(t[o++]=240|i>>>18,t[o++]=128|i>>>12&63,t[o++]=128|i>>>6&63,t[o++]=128|63&i);return t},t.buf2binstring=function(e){return l(e,e.length)},t.binstring2buf=function(e){for(var t=new n.Buf8(e.length),i=0,r=t.length;i<r;i++)t[i]=e.charCodeAt(i);return t},t.buf2string=function(e,t){var i,n,r,s,a=t||e.length,h=new Array(2*a);for(n=0,i=0;i<a;)if((r=e[i++])<128)h[n++]=r;else if((s=o[r])>4)h[n++]=65533,i+=s-1;else{for(r&=2===s?31:3===s?15:7;s>1&&i<a;)r=r<<6|63&e[i++],s--;s>1?h[n++]=65533:r<65536?h[n++]=r:(r-=65536,h[n++]=55296|r>>10&1023,h[n++]=56320|1023&r)}return l(h,n)},t.utf8border=function(e,t){var i;for((t=t||e.length)>e.length&&(t=e.length),i=t-1;i>=0&&128==(192&e[i]);)i--;return i<0||0===i?t:i+o[e[i]]>t?i:t}},269(e){"use strict";e.exports=function(e,t,i,n){for(var r=65535&e,s=e>>>16&65535,o=0;0!==i;){i-=o=i>2e3?2e3:i;do{s=s+(r=r+t[n++]|0)|0}while(--o);r%=65521,s%=65521}return r|s<<16}},681(e){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},823(e){"use strict";var t=function(){for(var e,t=[],i=0;i<256;i++){e=i;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[i]=e}return t}();e.exports=function(e,i,n,r){var s=t,o=r+n;e^=-1;for(var a=r;a<o;a++)e=e>>>8^s[255&(e^i[a])];return-1^e}},792(e,t,i){"use strict";var n,r=i(805),s=i(665),o=i(269),a=i(823),l=i(674),h=-2,c=258,u=262,f=103,d=113,p=666;function O(e,t){return e.msg=l[t],t}function g(e){return(e<<1)-(e>4?9:0)}function m(e){for(var t=e.length;--t>=0;)e[t]=0}function v(e){var t=e.state,i=t.pending;i>e.avail_out&&(i=e.avail_out),0!==i&&(r.arraySet(e.output,t.pending_buf,t.pending_out,i,e.next_out),e.next_out+=i,t.pending_out+=i,e.total_out+=i,e.avail_out-=i,t.pending-=i,0===t.pending&&(t.pending_out=0))}function y(e,t){s._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,v(e.strm)}function w(e,t){e.pending_buf[e.pending++]=t}function b(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function S(e,t,i,n){var s=e.avail_in;return s>n&&(s=n),0===s?0:(e.avail_in-=s,r.arraySet(t,e.input,e.next_in,s,i),1===e.state.wrap?e.adler=o(e.adler,t,s,i):2===e.state.wrap&&(e.adler=a(e.adler,t,s,i)),e.next_in+=s,e.total_in+=s,s)}function x(e,t){var i,n,r=e.max_chain_length,s=e.strstart,o=e.prev_length,a=e.nice_match,l=e.strstart>e.w_size-u?e.strstart-(e.w_size-u):0,h=e.window,f=e.w_mask,d=e.prev,p=e.strstart+c,O=h[s+o-1],g=h[s+o];e.prev_length>=e.good_match&&(r>>=2),a>e.lookahead&&(a=e.lookahead);do{if(h[(i=t)+o]===g&&h[i+o-1]===O&&h[i]===h[s]&&h[++i]===h[s+1]){s+=2,i++;do{}while(h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&h[++s]===h[++i]&&s<p);if(n=c-(p-s),s=p-c,n>o){if(e.match_start=t,o=n,n>=a)break;O=h[s+o-1],g=h[s+o]}}}while((t=d[t&f])>l&&0!==--r);return o<=e.lookahead?o:e.lookahead}function k(e){var t,i,n,s,o,a=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=a+(a-u)){r.arraySet(e.window,e.window,a,a,0),e.match_start-=a,e.strstart-=a,e.block_start-=a,t=i=e.hash_size;do{n=e.head[--t],e.head[t]=n>=a?n-a:0}while(--i);t=i=a;do{n=e.prev[--t],e.prev[t]=n>=a?n-a:0}while(--i);s+=a}if(0===e.strm.avail_in)break;if(i=S(e.strm,e.window,e.strstart+e.lookahead,s),e.lookahead+=i,e.lookahead+e.insert>=3)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+3-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<u&&0!==e.strm.avail_in)}function Q(e,t){for(var i,n;;){if(e.lookahead<u){if(k(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(i=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==i&&e.strstart-i<=e.w_size-u&&(e.match_length=x(e,i)),e.match_length>=3)if(n=s._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){e.match_length--;do{e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart}while(0!==--e.match_length);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function $(e,t){for(var i,n,r;;){if(e.lookahead<u){if(k(e),e.lookahead<u&&0===t)return 1;if(0===e.lookahead)break}if(i=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==i&&e.prev_length<e.max_lazy_match&&e.strstart-i<=e.w_size-u&&(e.match_length=x(e,i),e.match_length<=5&&(1===e.strategy||3===e.match_length&&e.strstart-e.match_start>4096)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){r=e.strstart+e.lookahead-3,n=s._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;do{++e.strstart<=r&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,i=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart)}while(0!==--e.prev_length);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(y(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=s._tr_tally(e,0,e.window[e.strstart-1]))&&y(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=s._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}function P(e,t,i,n,r){this.good_length=e,this.max_lazy=t,this.nice_length=i,this.max_chain=n,this.func=r}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new r.Buf16(1146),this.dyn_dtree=new r.Buf16(122),this.bl_tree=new r.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new r.Buf16(16),this.heap=new r.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new r.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function C(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:d,e.adler=2===t.wrap?0:1,t.last_flush=0,s._tr_init(t),0):O(e,h)}function A(e){var t,i=C(e);return 0===i&&((t=e.state).window_size=2*t.w_size,m(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),i}function T(e,t,i,n,s,o){if(!e)return h;var a=1;if(-1===t&&(t=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),s<1||s>9||8!==i||n<8||n>15||t<0||t>9||o<0||o>4)return O(e,h);8===n&&(n=9);var l=new _;return e.state=l,l.strm=e,l.wrap=a,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=s+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new r.Buf8(2*l.w_size),l.head=new r.Buf16(l.hash_size),l.prev=new r.Buf16(l.w_size),l.lit_bufsize=1<<s+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new r.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=i,A(e)}n=[new P(0,0,0,0,function(e,t){var i=65535;for(i>e.pending_buf_size-5&&(i=e.pending_buf_size-5);;){if(e.lookahead<=1){if(k(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+i;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,y(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-u&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(y(e,!1),e.strm.avail_out),1)}),new P(4,4,8,4,Q),new P(4,5,16,8,Q),new P(4,6,32,32,Q),new P(4,4,16,16,$),new P(8,16,32,32,$),new P(8,16,128,128,$),new P(8,32,128,256,$),new P(32,128,258,1024,$),new P(32,258,258,4096,$)],t.deflateInit=function(e,t){return T(e,t,8,15,8,0)},t.deflateInit2=T,t.deflateReset=A,t.deflateResetKeep=C,t.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,0):h},t.deflate=function(e,t){var i,r,o,l;if(!e||!e.state||t>5||t<0)return e?O(e,h):h;if(r=e.state,!e.output||!e.input&&0!==e.avail_in||r.status===p&&4!==t)return O(e,0===e.avail_out?-5:h);if(r.strm=e,i=r.last_flush,r.last_flush=t,42===r.status)if(2===r.wrap)e.adler=0,w(r,31),w(r,139),w(r,8),r.gzhead?(w(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),w(r,255&r.gzhead.time),w(r,r.gzhead.time>>8&255),w(r,r.gzhead.time>>16&255),w(r,r.gzhead.time>>24&255),w(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),w(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(w(r,255&r.gzhead.extra.length),w(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=a(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(w(r,0),w(r,0),w(r,0),w(r,0),w(r,0),w(r,9===r.level?2:r.strategy>=2||r.level<2?4:0),w(r,3),r.status=d);else{var u=8+(r.w_bits-8<<4)<<8;u|=(r.strategy>=2||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(u|=32),u+=31-u%31,r.status=d,b(r,u),0!==r.strstart&&(b(r,e.adler>>>16),b(r,65535&e.adler)),e.adler=1}if(69===r.status)if(r.gzhead.extra){for(o=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),v(e),o=r.pending,r.pending!==r.pending_buf_size));)w(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),v(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,w(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){o=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),v(e),o=r.pending,r.pending===r.pending_buf_size)){l=1;break}l=r.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,w(r,l)}while(0!==l);r.gzhead.hcrc&&r.pending>o&&(e.adler=a(e.adler,r.pending_buf,r.pending-o,o)),0===l&&(r.status=f)}else r.status=f;if(r.status===f&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&v(e),r.pending+2<=r.pending_buf_size&&(w(r,255&e.adler),w(r,e.adler>>8&255),e.adler=0,r.status=d)):r.status=d),0!==r.pending){if(v(e),0===e.avail_out)return r.last_flush=-1,0}else if(0===e.avail_in&&g(t)<=g(i)&&4!==t)return O(e,-5);if(r.status===p&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==r.lookahead||0!==t&&r.status!==p){var S=2===r.strategy?function(e,t){for(var i;;){if(0===e.lookahead&&(k(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,i&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(r,t):3===r.strategy?function(e,t){for(var i,n,r,o,a=e.window;;){if(e.lookahead<=c){if(k(e),e.lookahead<=c&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&e.strstart>0&&(n=a[r=e.strstart-1])===a[++r]&&n===a[++r]&&n===a[++r]){o=e.strstart+c;do{}while(n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&n===a[++r]&&r<o);e.match_length=c-(o-r),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(i=s._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(i=s._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),i&&(y(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(y(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(y(e,!1),0===e.strm.avail_out)?1:2}(r,t):n[r.level].func(r,t);if(3!==S&&4!==S||(r.status=p),1===S||3===S)return 0===e.avail_out&&(r.last_flush=-1),0;if(2===S&&(1===t?s._tr_align(r):5!==t&&(s._tr_stored_block(r,0,0,!1),3===t&&(m(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),v(e),0===e.avail_out))return r.last_flush=-1,0}return 4!==t?0:r.wrap<=0?1:(2===r.wrap?(w(r,255&e.adler),w(r,e.adler>>8&255),w(r,e.adler>>16&255),w(r,e.adler>>24&255),w(r,255&e.total_in),w(r,e.total_in>>8&255),w(r,e.total_in>>16&255),w(r,e.total_in>>24&255)):(b(r,e.adler>>>16),b(r,65535&e.adler)),v(e),r.wrap>0&&(r.wrap=-r.wrap),0!==r.pending?0:1)},t.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&t!==f&&t!==d&&t!==p?O(e,h):(e.state=null,t===d?O(e,-3):0):h},t.deflateSetDictionary=function(e,t){var i,n,s,a,l,c,u,f,d=t.length;if(!e||!e.state)return h;if(2===(a=(i=e.state).wrap)||1===a&&42!==i.status||i.lookahead)return h;for(1===a&&(e.adler=o(e.adler,t,d,0)),i.wrap=0,d>=i.w_size&&(0===a&&(m(i.head),i.strstart=0,i.block_start=0,i.insert=0),f=new r.Buf8(i.w_size),r.arraySet(f,t,d-i.w_size,i.w_size,0),t=f,d=i.w_size),l=e.avail_in,c=e.next_in,u=e.input,e.avail_in=d,e.next_in=0,e.input=t,k(i);i.lookahead>=3;){n=i.strstart,s=i.lookahead-2;do{i.ins_h=(i.ins_h<<i.hash_shift^i.window[n+3-1])&i.hash_mask,i.prev[n&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=n,n++}while(--s);i.strstart=n,i.lookahead=2,k(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=2,i.match_available=0,e.next_in=c,e.input=u,e.avail_in=l,i.wrap=a,0},t.deflateInfo="pako deflate (from Nodeca project)"},414(e){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},293(e){"use strict";e.exports=function(e,t){var i,n,r,s,o,a,l,h,c,u,f,d,p,O,g,m,v,y,w,b,S,x,k,Q,$;i=e.state,n=e.next_in,Q=e.input,r=n+(e.avail_in-5),s=e.next_out,$=e.output,o=s-(t-e.avail_out),a=s+(e.avail_out-257),l=i.dmax,h=i.wsize,c=i.whave,u=i.wnext,f=i.window,d=i.hold,p=i.bits,O=i.lencode,g=i.distcode,m=(1<<i.lenbits)-1,v=(1<<i.distbits)-1;e:do{p<15&&(d+=Q[n++]<<p,p+=8,d+=Q[n++]<<p,p+=8),y=O[d&m];t:for(;;){if(d>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))$[s++]=65535&y;else{if(!(16&w)){if(64&w){if(32&w){i.mode=12;break e}e.msg="invalid literal/length code",i.mode=30;break e}y=O[(65535&y)+(d&(1<<w)-1)];continue t}for(b=65535&y,(w&=15)&&(p<w&&(d+=Q[n++]<<p,p+=8),b+=d&(1<<w)-1,d>>>=w,p-=w),p<15&&(d+=Q[n++]<<p,p+=8,d+=Q[n++]<<p,p+=8),y=g[d&v];;){if(d>>>=w=y>>>24,p-=w,16&(w=y>>>16&255)){if(S=65535&y,p<(w&=15)&&(d+=Q[n++]<<p,(p+=8)<w&&(d+=Q[n++]<<p,p+=8)),(S+=d&(1<<w)-1)>l){e.msg="invalid distance too far back",i.mode=30;break e}if(d>>>=w,p-=w,S>(w=s-o)){if((w=S-w)>c&&i.sane){e.msg="invalid distance too far back",i.mode=30;break e}if(x=0,k=f,0===u){if(x+=h-w,w<b){b-=w;do{$[s++]=f[x++]}while(--w);x=s-S,k=$}}else if(u<w){if(x+=h+u-w,(w-=u)<b){b-=w;do{$[s++]=f[x++]}while(--w);if(x=0,u<b){b-=w=u;do{$[s++]=f[x++]}while(--w);x=s-S,k=$}}}else if(x+=u-w,w<b){b-=w;do{$[s++]=f[x++]}while(--w);x=s-S,k=$}for(;b>2;)$[s++]=k[x++],$[s++]=k[x++],$[s++]=k[x++],b-=3;b&&($[s++]=k[x++],b>1&&($[s++]=k[x++]))}else{x=s-S;do{$[s++]=$[x++],$[s++]=$[x++],$[s++]=$[x++],b-=3}while(b>2);b&&($[s++]=$[x++],b>1&&($[s++]=$[x++]))}break}if(64&w){e.msg="invalid distance code",i.mode=30;break e}y=g[(65535&y)+(d&(1<<w)-1)]}}break}}while(n<r&&s<a);n-=b=p>>3,d&=(1<<(p-=b<<3))-1,e.next_in=n,e.next_out=s,e.avail_in=n<r?r-n+5:5-(n-r),e.avail_out=s<a?a-s+257:257-(s-a),i.hold=d,i.bits=p}},447(e,t,i){"use strict";var n=i(805),r=i(269),s=i(823),o=i(293),a=i(998),l=-2,h=12,c=30;function u(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function f(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):l}function p(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,d(e)):l}function O(e,t){var i,n;return e&&e.state?(n=e.state,t<0?(i=0,t=-t):(i=1+(t>>4),t<48&&(t&=15)),t&&(t<8||t>15)?l:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=i,n.wbits=t,p(e))):l}function g(e,t){var i,n;return e?(n=new f,e.state=n,n.window=null,0!==(i=O(e,t))&&(e.state=null),i):l}var m,v,y=!0;function w(e){if(y){var t;for(m=new n.Buf32(512),v=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(a(1,e.lens,0,288,m,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;a(2,e.lens,0,32,v,0,e.work,{bits:5}),y=!1}e.lencode=m,e.lenbits=9,e.distcode=v,e.distbits=5}function b(e,t,i,r){var s,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),r>=o.wsize?(n.arraySet(o.window,t,i-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((s=o.wsize-o.wnext)>r&&(s=r),n.arraySet(o.window,t,i-r,s,o.wnext),(r-=s)?(n.arraySet(o.window,t,i-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=s,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=s))),0}t.inflateReset=p,t.inflateReset2=O,t.inflateResetKeep=d,t.inflateInit=function(e){return g(e,15)},t.inflateInit2=g,t.inflate=function(e,t){var i,f,d,p,O,g,m,v,y,S,x,k,Q,$,P,_,C,A,T,Z,M,R,X,E,j=0,z=new n.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return l;(i=e.state).mode===h&&(i.mode=13),O=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,v=i.hold,y=i.bits,S=g,x=m,R=0;e:for(;;)switch(i.mode){case 1:if(0===i.wrap){i.mode=13;break}for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(2&i.wrap&&35615===v){i.check=0,z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0),v=0,y=0,i.mode=2;break}if(i.flags=0,i.head&&(i.head.done=!1),!(1&i.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",i.mode=c;break}if(8!=(15&v)){e.msg="unknown compression method",i.mode=c;break}if(y-=4,M=8+(15&(v>>>=4)),0===i.wbits)i.wbits=M;else if(M>i.wbits){e.msg="invalid window size",i.mode=c;break}i.dmax=1<<M,e.adler=i.check=1,i.mode=512&v?10:h,v=0,y=0;break;case 2:for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(i.flags=v,8!=(255&i.flags)){e.msg="unknown compression method",i.mode=c;break}if(57344&i.flags){e.msg="unknown header flags set",i.mode=c;break}i.head&&(i.head.text=v>>8&1),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0)),v=0,y=0,i.mode=3;case 3:for(;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.head&&(i.head.time=v),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,z[2]=v>>>16&255,z[3]=v>>>24&255,i.check=s(i.check,z,4,0)),v=0,y=0,i.mode=4;case 4:for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.head&&(i.head.xflags=255&v,i.head.os=v>>8),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0)),v=0,y=0,i.mode=5;case 5:if(1024&i.flags){for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.length=v,i.head&&(i.head.extra_len=v),512&i.flags&&(z[0]=255&v,z[1]=v>>>8&255,i.check=s(i.check,z,2,0)),v=0,y=0}else i.head&&(i.head.extra=null);i.mode=6;case 6:if(1024&i.flags&&((k=i.length)>g&&(k=g),k&&(i.head&&(M=i.head.extra_len-i.length,i.head.extra||(i.head.extra=new Array(i.head.extra_len)),n.arraySet(i.head.extra,f,p,k,M)),512&i.flags&&(i.check=s(i.check,f,k,p)),g-=k,p+=k,i.length-=k),i.length))break e;i.length=0,i.mode=7;case 7:if(2048&i.flags){if(0===g)break e;k=0;do{M=f[p+k++],i.head&&M&&i.length<65536&&(i.head.name+=String.fromCharCode(M))}while(M&&k<g);if(512&i.flags&&(i.check=s(i.check,f,k,p)),g-=k,p+=k,M)break e}else i.head&&(i.head.name=null);i.length=0,i.mode=8;case 8:if(4096&i.flags){if(0===g)break e;k=0;do{M=f[p+k++],i.head&&M&&i.length<65536&&(i.head.comment+=String.fromCharCode(M))}while(M&&k<g);if(512&i.flags&&(i.check=s(i.check,f,k,p)),g-=k,p+=k,M)break e}else i.head&&(i.head.comment=null);i.mode=9;case 9:if(512&i.flags){for(;y<16;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(v!==(65535&i.check)){e.msg="header crc mismatch",i.mode=c;break}v=0,y=0}i.head&&(i.head.hcrc=i.flags>>9&1,i.head.done=!0),e.adler=i.check=0,i.mode=h;break;case 10:for(;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}e.adler=i.check=u(v),v=0,y=0,i.mode=11;case 11:if(0===i.havedict)return e.next_out=O,e.avail_out=m,e.next_in=p,e.avail_in=g,i.hold=v,i.bits=y,2;e.adler=i.check=1,i.mode=h;case h:if(5===t||6===t)break e;case 13:if(i.last){v>>>=7&y,y-=7&y,i.mode=27;break}for(;y<3;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}switch(i.last=1&v,y-=1,3&(v>>>=1)){case 0:i.mode=14;break;case 1:if(w(i),i.mode=20,6===t){v>>>=2,y-=2;break e}break;case 2:i.mode=17;break;case 3:e.msg="invalid block type",i.mode=c}v>>>=2,y-=2;break;case 14:for(v>>>=7&y,y-=7&y;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if((65535&v)!=(v>>>16^65535)){e.msg="invalid stored block lengths",i.mode=c;break}if(i.length=65535&v,v=0,y=0,i.mode=15,6===t)break e;case 15:i.mode=16;case 16:if(k=i.length){if(k>g&&(k=g),k>m&&(k=m),0===k)break e;n.arraySet(d,f,p,k,O),g-=k,p+=k,m-=k,O+=k,i.length-=k;break}i.mode=h;break;case 17:for(;y<14;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(i.nlen=257+(31&v),v>>>=5,y-=5,i.ndist=1+(31&v),v>>>=5,y-=5,i.ncode=4+(15&v),v>>>=4,y-=4,i.nlen>286||i.ndist>30){e.msg="too many length or distance symbols",i.mode=c;break}i.have=0,i.mode=18;case 18:for(;i.have<i.ncode;){for(;y<3;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.lens[L[i.have++]]=7&v,v>>>=3,y-=3}for(;i.have<19;)i.lens[L[i.have++]]=0;if(i.lencode=i.lendyn,i.lenbits=7,X={bits:i.lenbits},R=a(0,i.lens,0,19,i.lencode,0,i.work,X),i.lenbits=X.bits,R){e.msg="invalid code lengths set",i.mode=c;break}i.have=0,i.mode=19;case 19:for(;i.have<i.nlen+i.ndist;){for(;_=(j=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,C=65535&j,!((P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(C<16)v>>>=P,y-=P,i.lens[i.have++]=C;else{if(16===C){for(E=P+2;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(v>>>=P,y-=P,0===i.have){e.msg="invalid bit length repeat",i.mode=c;break}M=i.lens[i.have-1],k=3+(3&v),v>>>=2,y-=2}else if(17===C){for(E=P+3;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}y-=P,M=0,k=3+(7&(v>>>=P)),v>>>=3,y-=3}else{for(E=P+7;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}y-=P,M=0,k=11+(127&(v>>>=P)),v>>>=7,y-=7}if(i.have+k>i.nlen+i.ndist){e.msg="invalid bit length repeat",i.mode=c;break}for(;k--;)i.lens[i.have++]=M}}if(i.mode===c)break;if(0===i.lens[256]){e.msg="invalid code -- missing end-of-block",i.mode=c;break}if(i.lenbits=9,X={bits:i.lenbits},R=a(1,i.lens,0,i.nlen,i.lencode,0,i.work,X),i.lenbits=X.bits,R){e.msg="invalid literal/lengths set",i.mode=c;break}if(i.distbits=6,i.distcode=i.distdyn,X={bits:i.distbits},R=a(2,i.lens,i.nlen,i.ndist,i.distcode,0,i.work,X),i.distbits=X.bits,R){e.msg="invalid distances set",i.mode=c;break}if(i.mode=20,6===t)break e;case 20:i.mode=21;case 21:if(g>=6&&m>=258){e.next_out=O,e.avail_out=m,e.next_in=p,e.avail_in=g,i.hold=v,i.bits=y,o(e,x),O=e.next_out,d=e.output,m=e.avail_out,p=e.next_in,f=e.input,g=e.avail_in,v=i.hold,y=i.bits,i.mode===h&&(i.back=-1);break}for(i.back=0;_=(j=i.lencode[v&(1<<i.lenbits)-1])>>>16&255,C=65535&j,!((P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(_&&!(240&_)){for(A=P,T=_,Z=C;_=(j=i.lencode[Z+((v&(1<<A+T)-1)>>A)])>>>16&255,C=65535&j,!(A+(P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}v>>>=A,y-=A,i.back+=A}if(v>>>=P,y-=P,i.back+=P,i.length=C,0===_){i.mode=26;break}if(32&_){i.back=-1,i.mode=h;break}if(64&_){e.msg="invalid literal/length code",i.mode=c;break}i.extra=15&_,i.mode=22;case 22:if(i.extra){for(E=i.extra;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.length+=v&(1<<i.extra)-1,v>>>=i.extra,y-=i.extra,i.back+=i.extra}i.was=i.length,i.mode=23;case 23:for(;_=(j=i.distcode[v&(1<<i.distbits)-1])>>>16&255,C=65535&j,!((P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(!(240&_)){for(A=P,T=_,Z=C;_=(j=i.distcode[Z+((v&(1<<A+T)-1)>>A)])>>>16&255,C=65535&j,!(A+(P=j>>>24)<=y);){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}v>>>=A,y-=A,i.back+=A}if(v>>>=P,y-=P,i.back+=P,64&_){e.msg="invalid distance code",i.mode=c;break}i.offset=C,i.extra=15&_,i.mode=24;case 24:if(i.extra){for(E=i.extra;y<E;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}i.offset+=v&(1<<i.extra)-1,v>>>=i.extra,y-=i.extra,i.back+=i.extra}if(i.offset>i.dmax){e.msg="invalid distance too far back",i.mode=c;break}i.mode=25;case 25:if(0===m)break e;if(k=x-m,i.offset>k){if((k=i.offset-k)>i.whave&&i.sane){e.msg="invalid distance too far back",i.mode=c;break}k>i.wnext?(k-=i.wnext,Q=i.wsize-k):Q=i.wnext-k,k>i.length&&(k=i.length),$=i.window}else $=d,Q=O-i.offset,k=i.length;k>m&&(k=m),m-=k,i.length-=k;do{d[O++]=$[Q++]}while(--k);0===i.length&&(i.mode=21);break;case 26:if(0===m)break e;d[O++]=i.length,m--,i.mode=21;break;case 27:if(i.wrap){for(;y<32;){if(0===g)break e;g--,v|=f[p++]<<y,y+=8}if(x-=m,e.total_out+=x,i.total+=x,x&&(e.adler=i.check=i.flags?s(i.check,d,x,O-x):r(i.check,d,x,O-x)),x=m,(i.flags?v:u(v))!==i.check){e.msg="incorrect data check",i.mode=c;break}v=0,y=0}i.mode=28;case 28:if(i.wrap&&i.flags){for(;y<32;){if(0===g)break e;g--,v+=f[p++]<<y,y+=8}if(v!==(4294967295&i.total)){e.msg="incorrect length check",i.mode=c;break}v=0,y=0}i.mode=29;case 29:R=1;break e;case c:R=-3;break e;case 31:return-4;default:return l}return e.next_out=O,e.avail_out=m,e.next_in=p,e.avail_in=g,i.hold=v,i.bits=y,(i.wsize||x!==e.avail_out&&i.mode<c&&(i.mode<27||4!==t))&&b(e,e.output,e.next_out,x-e.avail_out)?(i.mode=31,-4):(S-=e.avail_in,x-=e.avail_out,e.total_in+=S,e.total_out+=x,i.total+=x,i.wrap&&x&&(e.adler=i.check=i.flags?s(i.check,d,x,e.next_out-x):r(i.check,d,x,e.next_out-x)),e.data_type=i.bits+(i.last?64:0)+(i.mode===h?128:0)+(20===i.mode||15===i.mode?256:0),(0===S&&0===x||4===t)&&0===R&&(R=-5),R)},t.inflateEnd=function(e){if(!e||!e.state)return l;var t=e.state;return t.window&&(t.window=null),e.state=null,0},t.inflateGetHeader=function(e,t){var i;return e&&e.state&&2&(i=e.state).wrap?(i.head=t,t.done=!1,0):l},t.inflateSetDictionary=function(e,t){var i,n=t.length;return e&&e.state?0!==(i=e.state).wrap&&11!==i.mode?l:11===i.mode&&r(1,t,n,0)!==i.check?-3:b(e,t,n,n)?(i.mode=31,-4):(i.havedict=1,0):l},t.inflateInfo="pako inflate (from Nodeca project)"},998(e,t,i){"use strict";var n=i(805),r=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],s=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(e,t,i,l,h,c,u,f){var d,p,O,g,m,v,y,w,b,S=f.bits,x=0,k=0,Q=0,$=0,P=0,_=0,C=0,A=0,T=0,Z=0,M=null,R=0,X=new n.Buf16(16),E=new n.Buf16(16),j=null,z=0;for(x=0;x<=15;x++)X[x]=0;for(k=0;k<l;k++)X[t[i+k]]++;for(P=S,$=15;$>=1&&0===X[$];$--);if(P>$&&(P=$),0===$)return h[c++]=20971520,h[c++]=20971520,f.bits=1,0;for(Q=1;Q<$&&0===X[Q];Q++);for(P<Q&&(P=Q),A=1,x=1;x<=15;x++)if(A<<=1,(A-=X[x])<0)return-1;if(A>0&&(0===e||1!==$))return-1;for(E[1]=0,x=1;x<15;x++)E[x+1]=E[x]+X[x];for(k=0;k<l;k++)0!==t[i+k]&&(u[E[t[i+k]]++]=k);if(0===e?(M=j=u,v=19):1===e?(M=r,R-=257,j=s,z-=257,v=256):(M=o,j=a,v=-1),Z=0,k=0,x=Q,m=c,_=P,C=0,O=-1,g=(T=1<<P)-1,1===e&&T>852||2===e&&T>592)return 1;for(;;){y=x-C,u[k]<v?(w=0,b=u[k]):u[k]>v?(w=j[z+u[k]],b=M[R+u[k]]):(w=96,b=0),d=1<<x-C,Q=p=1<<_;do{h[m+(Z>>C)+(p-=d)]=y<<24|w<<16|b}while(0!==p);for(d=1<<x-1;Z&d;)d>>=1;if(0!==d?(Z&=d-1,Z+=d):Z=0,k++,0===--X[x]){if(x===$)break;x=t[i+u[k]]}if(x>P&&(Z&g)!==O){for(0===C&&(C=P),m+=Q,A=1<<(_=x-C);_+C<$&&!((A-=X[_+C])<=0);)_++,A<<=1;if(T+=1<<_,1===e&&T>852||2===e&&T>592)return 1;h[O=Z&g]=P<<24|_<<16|m-c}}return 0!==Z&&(h[m+Z]=x-C<<24|64<<16),f.bits=P,0}},674(e){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},665(e,t,i){"use strict";var n=i(805);function r(e){for(var t=e.length;--t>=0;)e[t]=0}var s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],h=new Array(576);r(h);var c=new Array(60);r(c);var u=new Array(512);r(u);var f=new Array(256);r(f);var d=new Array(29);r(d);var p,O,g,m=new Array(30);function v(e,t,i,n,r){this.static_tree=e,this.extra_bits=t,this.extra_base=i,this.elems=n,this.max_length=r,this.has_stree=e&&e.length}function y(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function w(e){return e<256?u[e]:u[256+(e>>>7)]}function b(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function S(e,t,i){e.bi_valid>16-i?(e.bi_buf|=t<<e.bi_valid&65535,b(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=i-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=i)}function x(e,t,i){S(e,i[2*t],i[2*t+1])}function k(e,t){var i=0;do{i|=1&e,e>>>=1,i<<=1}while(--t>0);return i>>>1}function Q(e,t,i){var n,r,s=new Array(16),o=0;for(n=1;n<=15;n++)s[n]=o=o+i[n-1]<<1;for(r=0;r<=t;r++){var a=e[2*r+1];0!==a&&(e[2*r]=k(s[a]++,a))}}function $(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function P(e){e.bi_valid>8?b(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function _(e,t,i,n){var r=2*t,s=2*i;return e[r]<e[s]||e[r]===e[s]&&n[t]<=n[i]}function C(e,t,i){for(var n=e.heap[i],r=i<<1;r<=e.heap_len&&(r<e.heap_len&&_(t,e.heap[r+1],e.heap[r],e.depth)&&r++,!_(t,n,e.heap[r],e.depth));)e.heap[i]=e.heap[r],i=r,r<<=1;e.heap[i]=n}function A(e,t,i){var n,r,a,l,h=0;if(0!==e.last_lit)do{n=e.pending_buf[e.d_buf+2*h]<<8|e.pending_buf[e.d_buf+2*h+1],r=e.pending_buf[e.l_buf+h],h++,0===n?x(e,r,t):(x(e,(a=f[r])+256+1,t),0!==(l=s[a])&&S(e,r-=d[a],l),x(e,a=w(--n),i),0!==(l=o[a])&&S(e,n-=m[a],l))}while(h<e.last_lit);x(e,256,t)}function T(e,t){var i,n,r,s=t.dyn_tree,o=t.stat_desc.static_tree,a=t.stat_desc.has_stree,l=t.stat_desc.elems,h=-1;for(e.heap_len=0,e.heap_max=573,i=0;i<l;i++)0!==s[2*i]?(e.heap[++e.heap_len]=h=i,e.depth[i]=0):s[2*i+1]=0;for(;e.heap_len<2;)s[2*(r=e.heap[++e.heap_len]=h<2?++h:0)]=1,e.depth[r]=0,e.opt_len--,a&&(e.static_len-=o[2*r+1]);for(t.max_code=h,i=e.heap_len>>1;i>=1;i--)C(e,s,i);r=l;do{i=e.heap[1],e.heap[1]=e.heap[e.heap_len--],C(e,s,1),n=e.heap[1],e.heap[--e.heap_max]=i,e.heap[--e.heap_max]=n,s[2*r]=s[2*i]+s[2*n],e.depth[r]=(e.depth[i]>=e.depth[n]?e.depth[i]:e.depth[n])+1,s[2*i+1]=s[2*n+1]=r,e.heap[1]=r++,C(e,s,1)}while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],function(e,t){var i,n,r,s,o,a,l=t.dyn_tree,h=t.max_code,c=t.stat_desc.static_tree,u=t.stat_desc.has_stree,f=t.stat_desc.extra_bits,d=t.stat_desc.extra_base,p=t.stat_desc.max_length,O=0;for(s=0;s<=15;s++)e.bl_count[s]=0;for(l[2*e.heap[e.heap_max]+1]=0,i=e.heap_max+1;i<573;i++)(s=l[2*l[2*(n=e.heap[i])+1]+1]+1)>p&&(s=p,O++),l[2*n+1]=s,n>h||(e.bl_count[s]++,o=0,n>=d&&(o=f[n-d]),a=l[2*n],e.opt_len+=a*(s+o),u&&(e.static_len+=a*(c[2*n+1]+o)));if(0!==O){do{for(s=p-1;0===e.bl_count[s];)s--;e.bl_count[s]--,e.bl_count[s+1]+=2,e.bl_count[p]--,O-=2}while(O>0);for(s=p;0!==s;s--)for(n=e.bl_count[s];0!==n;)(r=e.heap[--i])>h||(l[2*r+1]!==s&&(e.opt_len+=(s-l[2*r+1])*l[2*r],l[2*r+1]=s),n--)}}(e,t),Q(s,h,e.bl_count)}function Z(e,t,i){var n,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),t[2*(i+1)+1]=65535,n=0;n<=i;n++)r=o,o=t[2*(n+1)+1],++a<l&&r===o||(a<h?e.bl_tree[2*r]+=a:0!==r?(r!==s&&e.bl_tree[2*r]++,e.bl_tree[32]++):a<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4))}function M(e,t,i){var n,r,s=-1,o=t[1],a=0,l=7,h=4;for(0===o&&(l=138,h=3),n=0;n<=i;n++)if(r=o,o=t[2*(n+1)+1],!(++a<l&&r===o)){if(a<h)do{x(e,r,e.bl_tree)}while(0!==--a);else 0!==r?(r!==s&&(x(e,r,e.bl_tree),a--),x(e,16,e.bl_tree),S(e,a-3,2)):a<=10?(x(e,17,e.bl_tree),S(e,a-3,3)):(x(e,18,e.bl_tree),S(e,a-11,7));a=0,s=r,0===o?(l=138,h=3):r===o?(l=6,h=3):(l=7,h=4)}}r(m);var R=!1;function X(e,t,i,r){S(e,0+(r?1:0),3),function(e,t,i){P(e),b(e,i),b(e,~i),n.arraySet(e.pending_buf,e.window,t,i,e.pending),e.pending+=i}(e,t,i)}t._tr_init=function(e){R||(function(){var e,t,i,n,r,l=new Array(16);for(i=0,n=0;n<28;n++)for(d[n]=i,e=0;e<1<<s[n];e++)f[i++]=n;for(f[i-1]=n,r=0,n=0;n<16;n++)for(m[n]=r,e=0;e<1<<o[n];e++)u[r++]=n;for(r>>=7;n<30;n++)for(m[n]=r<<7,e=0;e<1<<o[n]-7;e++)u[256+r++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)h[2*e+1]=8,e++,l[8]++;for(;e<=255;)h[2*e+1]=9,e++,l[9]++;for(;e<=279;)h[2*e+1]=7,e++,l[7]++;for(;e<=287;)h[2*e+1]=8,e++,l[8]++;for(Q(h,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=k(e,5);p=new v(h,s,257,286,15),O=new v(c,o,0,30,15),g=new v(new Array(0),a,0,19,7)}(),R=!0),e.l_desc=new y(e.dyn_ltree,p),e.d_desc=new y(e.dyn_dtree,O),e.bl_desc=new y(e.bl_tree,g),e.bi_buf=0,e.bi_valid=0,$(e)},t._tr_stored_block=X,t._tr_flush_block=function(e,t,i,n){var r,s,o=0;e.level>0?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,i=4093624447;for(t=0;t<=31;t++,i>>>=1)if(1&i&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),T(e,e.l_desc),T(e,e.d_desc),o=function(e){var t;for(Z(e,e.dyn_ltree,e.l_desc.max_code),Z(e,e.dyn_dtree,e.d_desc.max_code),T(e,e.bl_desc),t=18;t>=3&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),r=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=r&&(r=s)):r=s=i+5,i+4<=r&&-1!==t?X(e,t,i,n):4===e.strategy||s===r?(S(e,2+(n?1:0),3),A(e,h,c)):(S(e,4+(n?1:0),3),function(e,t,i,n){var r;for(S(e,t-257,5),S(e,i-1,5),S(e,n-4,4),r=0;r<n;r++)S(e,e.bl_tree[2*l[r]+1],3);M(e,e.dyn_ltree,t-1),M(e,e.dyn_dtree,i-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),A(e,e.dyn_ltree,e.dyn_dtree)),$(e),n&&P(e)},t._tr_tally=function(e,t,i){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&i,e.last_lit++,0===t?e.dyn_ltree[2*i]++:(e.matches++,t--,e.dyn_ltree[2*(f[i]+256+1)]++,e.dyn_dtree[2*w(t)]++),e.last_lit===e.lit_bufsize-1},t._tr_align=function(e){S(e,2,3),x(e,256,h),function(e){16===e.bi_valid?(b(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},442(e){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},72(e){"use strict";var t=[];function i(e){for(var i=-1,n=0;n<t.length;n++)if(t[n].identifier===e){i=n;break}return i}function n(e,n){for(var s={},o=[],a=0;a<e.length;a++){var l=e[a],h=n.base?l[0]+n.base:l[0],c=s[h]||0,u="".concat(h," ").concat(c);s[h]=c+1;var f=i(u),d={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(d);else{var p=r(d,n);n.byIndex=a,t.splice(a,0,{identifier:u,updater:p,references:1})}o.push(u)}return o}function r(e,t){var i=t.domAPI(t);return i.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;i.update(e=t)}else i.remove()}}e.exports=function(e,r){var s=n(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<s.length;o++){var a=i(s[o]);t[a].references--}for(var l=n(e,r),h=0;h<s.length;h++){var c=i(s[h]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}s=l}}},659(e){"use strict";var t={};e.exports=function(e,i){var n=function(e){if(void 0===t[e]){var i=document.querySelector(e);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[e]=i}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(i)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56(e,t,i){"use strict";e.exports=function(e){var t=i.nc;t&&e.setAttribute("nonce",t)}},825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(i){!function(e,t,i){var n="";i.supports&&(n+="@supports (".concat(i.supports,") {")),i.media&&(n+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(n+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),n+=i.css,r&&(n+="}"),i.media&&(n+="}"),i.supports&&(n+="}");var s=i.sourceMap;s&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,i)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},587(e){e.exports=function e(t,i){if(t&&i)return e(t)(i);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),i=0;i<e.length;i++)e[i]=arguments[i];var n=t.apply(this,e),r=e[e.length-1];return"function"==typeof n&&n!==r&&Object.keys(r).forEach(function(e){n[e]=r[e]}),n}}},317(e){"use strict";const t=e=>(...t)=>(...i)=>e(...t,...i);e.exports=(e,...i)=>(function(e){if("function"!=typeof e)throw Error("fn should be a function!")}(e),i.length?t(e)(...i):t(e))},955(e,t,i){var n;!function(t){"use strict";function r(){var e=new s;return function(t,i){var r,s,o,a,l,h="arrayBuffer"===(a=t,l=new RegExp("\\s([a-zA-Z]+)"),{}.toString.call(a).match(l)[1].toLowerCase());if(!i)throw Error("callback could not be empty!");r=h?t:function(t){var i,n=e.unescape(encodeURIComponent(t)),r=n.length,s=new Uint8Array(r);for(i=0;i<r;i++)s[i]=n.charCodeAt(i);return s}(t),(s=new n.Deflate({gzip:!0})).push(r,!0),s.error||(o=s.result.buffer),i(s.error,o)}}function s(){var e="function"==typeof unescape?unescape:function(e){return e.replace(/%([EF][0-9A-F])%([89AB][0-9A-F])%([89AB][0-9A-F])/gi,function(e,t,i,n){var r,s=parseInt(t,16)-224,o=parseInt(i,16)-128;return 0===s&&o<32?e:(r=(s<<12)+(o<<6)+(parseInt(n,16)-128))>65535?e:String.fromCharCode(r)}).replace(/%([CD][0-9A-F])%([89AB][0-9A-F])/gi,function(e,t,i){var n,r;return(n=parseInt(t,16)-192)<2?e:(r=parseInt(i,16)-128,String.fromCharCode((n<<6)+r))}).replace(/%([0-7][0-9A-F])/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})};this.unescape=e}e.exports?(e.exports=new r,n=i(668)):t.zipio=new r}(this)},348(e,t,i){"use strict";e.exports=i.p+"2b22a33a0a80bb926bbc.png"},181(e,t,i){"use strict";e.exports=i.p+"8e9019bd86255ac9a618.png"}},t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var s=t[n]={id:n,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.exports}i.m=e,i.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return i.d(t,{a:t}),t},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;globalThis.importScripts&&(e=globalThis.location+"");var t=globalThis.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),i.p=e})(),i.b="undefined"!=typeof document&&document.baseURI||self.location.href,i.nc=void 0;var n={};(()=>{"use strict";i.d(n,{default:()=>tm});var e=i(72),t=i.n(e),r=i(825),s=i.n(r),o=i(659),a=i.n(o),l=i(56),h=i.n(l),c=i(540),u=i.n(c),f=i(113),d=i.n(f),p=i(645),O={};O.styleTagTransform=d(),O.setAttributes=h(),O.insert=a().bind(null,"head"),O.domAPI=s(),O.insertStyleElement=u(),t()(p.A,O),p.A&&p.A.locals&&p.A.locals;let g=[],m=[];function v(e){if(e<768)return!1;for(let t=0,i=g.length;;){let n=t+i>>1;if(e<g[n])i=n;else{if(!(e>=m[n]))return!0;t=n+1}if(t==i)return!1}}function y(e){return e>=127462&&e<=127487}function w(e,t,i=!0,n=!0){return(i?b:S)(e,t,n)}function b(e,t,i){if(t==e.length)return t;t&&k(e.charCodeAt(t))&&Q(e.charCodeAt(t-1))&&t--;let n=x(e,t);for(t+=$(n);t<e.length;){let r=x(e,t);if(8205==n||8205==r||i&&v(r))t+=$(r),n=r;else{if(!y(r))break;{let i=0,n=t-2;for(;n>=0&&y(x(e,n));)i++,n-=2;if(i%2==0)break;t+=2}}}return t}function S(e,t,i){for(;t>0;){let n=b(e,t-2,i);if(n<t)return n;t--}return 0}function x(e,t){let i=e.charCodeAt(t);if(!Q(i)||t+1==e.length)return i;let n=e.charCodeAt(t+1);return k(n)?n-56320+(i-55296<<10)+65536:i}function k(e){return e>=56320&&e<57344}function Q(e){return e>=55296&&e<56320}function $(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,i=0;t<e.length;t++)(t%2?m:g).push(i+=e[t])})();class P{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=E(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),C.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=E(this,e,t);let i=[];return this.decompose(e,t,i,0),C.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Z(this),r=new Z(e);for(let e=t,s=t;;){if(n.next(e),r.next(e),e=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(s+=n.value.length,n.done||s>=i)return!0}}iter(e=1){return new Z(this,e)}iterRange(e,t=this.length){return new M(this,e,t)}iterLines(e,t){let i;if(null==e)i=this.iter();else{null==t&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new R(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new _(e):C.from(_.split(e,[])):P.empty}}class _ extends P{constructor(e,t=function(e){let t=-1;for(let i of e)t+=i.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let s=this.text[r],o=n+s.length;if((t?i:o)>=e)return new X(n,o,i,s);n=o+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new _(T(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&n){let e=i.pop(),t=A(r.text,e.text.slice(),0,r.length);if(t.length<=32)i.push(new _(t,e.length+r.length));else{let e=t.length>>1;i.push(new _(t.slice(0,e)),new _(t.slice(e)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof _))return super.replace(e,t,i);[e,t]=E(this,e,t);let n=A(this.text,A(i.text,T(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new _(n,r):C.from(_.split(n,[]),r)}sliceString(e,t=this.length,i="\n"){[e,t]=E(this,e,t);let n="";for(let r=0,s=0;r<=t&&s<this.text.length;s++){let o=this.text[s],a=r+o.length;r>e&&s&&(n+=i),e<a&&t>r&&(n+=o.slice(Math.max(0,e-r),t-r)),r=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,32==i.length&&(t.push(new _(i,n)),i=[],n=-1);return n>-1&&t.push(new _(i,n)),t}}class C extends P{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let t of e)this.lines+=t.lines}lineInner(e,t,i,n){for(let r=0;;r++){let s=this.children[r],o=n+s.length,a=i+s.lines-1;if((t?a:o)>=e)return s.lineInner(e,t,i,n);n=o+1,i=a+1}}decompose(e,t,i,n){for(let r=0,s=0;s<=t&&r<this.children.length;r++){let o=this.children[r],a=s+o.length;if(e<=a&&t>=s){let r=n&((s<=e?1:0)|(a>=t?2:0));s>=e&&a<=t&&!r?i.push(o):o.decompose(e-s,t-s,i,r)}s=a+1}}replace(e,t,i){if([e,t]=E(this,e,t),i.lines<this.lines)for(let n=0,r=0;n<this.children.length;n++){let s=this.children[n],o=r+s.length;if(e>=r&&t<=o){let a=s.replace(e-r,t-r,i),l=this.lines-s.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let r=this.children.slice();return r[n]=a,new C(r,this.length-(t-e)+i.length)}return super.replace(r,o,a)}r=o+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i="\n"){[e,t]=E(this,e,t);let n="";for(let r=0,s=0;r<this.children.length&&s<=t;r++){let o=this.children[r],a=s+o.length;s>e&&r&&(n+=i),e<a&&t>s&&(n+=o.sliceString(e-s,t-s,i)),s=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof C))return 0;let i=0,[n,r,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==s||r==o)return i;let a=this.children[n],l=e.children[r];if(a!=l)return i+a.scanIdentical(l,t);i+=a.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let i=0;for(let t of e)i+=t.lines;if(i<32){let i=[];for(let t of e)t.flatten(i);return new _(i,t)}let n=Math.max(32,i>>5),r=n<<1,s=n>>1,o=[],a=0,l=-1,h=[];function c(e){let t;if(e.lines>r&&e instanceof C)for(let t of e.children)c(t);else e.lines>s&&(a>s||!a)?(u(),o.push(e)):e instanceof _&&a&&(t=h[h.length-1])instanceof _&&e.lines+t.lines<=32?(a+=e.lines,l+=e.length+1,h[h.length-1]=new _(t.text.concat(e.text),t.length+1+e.length)):(a+e.lines>n&&u(),a+=e.lines,l+=e.length+1,h.push(e))}function u(){0!=a&&(o.push(1==h.length?h[0]:C.from(h,l)),l=-1,a=h.length=0)}for(let t of e)c(t);return u(),1==o.length?o[0]:new C(o,t)}}function A(e,t,i=0,n=1e9){for(let r=0,s=0,o=!0;s<e.length&&r<=n;s++){let a=e[s],l=r+a.length;l>=i&&(l>n&&(a=a.slice(0,n-r)),r<i&&(a=a.slice(i-r)),o?(t[t.length-1]+=a,o=!1):t.push(a)),r=l+1}return t}function T(e,t,i){return A(e,[""],t,i)}P.empty=new _([""],0);class Z{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof _?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],s=r>>1,o=n instanceof _?n.text.length:n.children.length;if(s==(t>0?o:0)){if(0==i)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[i]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(n instanceof _){let r=n.text[s+(t<0?-1:0)];if(this.offsets[i]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=n.children[s+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof _?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class M{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Z(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class R{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(P.prototype[Symbol.iterator]=function(){return this.iter()},Z.prototype[Symbol.iterator]=M.prototype[Symbol.iterator]=R.prototype[Symbol.iterator]=function(){return this});class X{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}function E(e,t,i){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,i))]}function j(e,t,i=!0,n=!0){return w(e,t,i,n)}function z(e,t){let i=e.charCodeAt(t);if(!((n=i)>=55296&&n<56320&&t+1!=e.length))return i;var n;let r=e.charCodeAt(t+1);return function(e){return e>=56320&&e<57344}(r)?r-56320+(i-55296<<10)+65536:i}function L(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function Y(e){return e<65536?1:2}const V=/\r\n?|\n/;var B=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(B||(B={}));class W{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,n=0;t<this.sections.length;){let r=this.sections[t++],s=this.sections[t++];s<0?(e(i,n,r),n+=r):n+=s,i+=r}}iterChangedRanges(e,t=!1){q(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];n<0?e.push(i,n):e.push(n,i)}return new W(e)}composeDesc(e){return this.empty?e:e.empty?this:G(this,e)}mapDesc(e,t=!1){return e.empty?this:U(this,e,t)}mapPos(e,t=-1,i=B.Simple){let n=0,r=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],a=this.sections[s++],l=n+o;if(a<0){if(l>e)return r+(e-n);r+=o}else{if(i!=B.Simple&&l>=e&&(i==B.TrackDel&&n<e&&l>e||i==B.TrackBefore&&n<e||i==B.TrackAfter&&l>e))return null;if(l>e||l==e&&t<0&&!o)return e==n||t<0?r:r+a;r+=a}n=l}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i<this.sections.length&&n<=t;){let r=n+this.sections[i++];if(this.sections[i++]>=0&&n<=t&&r>=e)return!(n<e&&r>t)||"cover";n=r}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeDesc");return new W(e)}static create(e){return new W(e)}}class I extends W{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return q(this,(t,i,n,r,s)=>e=e.replace(n,n+(i-t),s),!1),e}mapDesc(e,t=!1){return U(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n<t.length;n+=2){let s=t[n],o=t[n+1];if(o>=0){t[n]=o,t[n+1]=s;let a=n>>1;for(;i.length<a;)i.push(P.empty);i.push(s?e.slice(r,r+s):P.empty)}r+=s}return new I(t,i)}compose(e){return this.empty?e:e.empty?this:G(this,e,!0)}map(e,t=!1){return e.empty?this:U(this,e,t,!0)}iterChanges(e,t=!1){q(this,e,t)}get desc(){return W.create(this.sections)}filter(e){let t=[],i=[],n=[],r=new F(this);e:for(let s=0,o=0;;){let a=s==e.length?1e9:e[s++];for(;o<a||o==a&&0==r.len;){if(r.done)break e;let e=Math.min(r.len,a-o);D(n,e,-1);let s=-1==r.ins?-1:0==r.off?r.ins:0;D(t,e,s),s>0&&N(i,t,r.text),r.forward(e),o+=e}let l=e[s++];for(;o<l;){if(r.done)break e;let e=Math.min(r.len,l-o);D(t,e,-1),D(n,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),o+=e}}return{changes:new I(t,i),filtered:W.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],n=this.sections[t+1];n<0?e.push(i):0==n?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],s=0,o=null;function a(e=!1){if(!e&&!n.length)return;s<t&&D(n,t-s,-1);let i=new I(n,r);o=o?o.compose(i.map(o)):i,n=[],r=[],s=0}return function e(l){if(Array.isArray(l))for(let t of l)e(t);else if(l instanceof I){if(l.length!=t)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${t})`);a(),o=o?o.compose(l.map(o)):l}else{let{from:e,to:o=e,insert:h}=l;if(e>o||e<0||o>t)throw new RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let c=h?"string"==typeof h?P.of(h.split(i||V)):h:P.empty,u=c.length;if(e==o&&0==u)return;e<s&&a(),e>s&&D(n,e-s,-1),D(n,o-e,u),N(r,n,c),s=o}}(e),a(!o),o}static empty(e){return new I(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;n<e.length;n++){let r=e[n];if("number"==typeof r)t.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some((e,t)=>t&&"string"!=typeof e))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)t.push(r[0],0);else{for(;i.length<n;)i.push(P.empty);i[n]=P.of(r.slice(1)),t.push(r[0],i[n].length)}}}return new I(t,i)}static createSet(e,t){return new I(e,t)}}function D(e,t,i,n=!1){if(0==t&&i<=0)return;let r=e.length-2;r>=0&&i<=0&&i==e[r+1]?e[r]+=t:r>=0&&0==t&&0==e[r]?e[r+1]+=i:n?(e[r]+=t,e[r+1]+=i):e.push(t,i)}function N(e,t,i){if(0==i.length)return;let n=t.length-2>>1;if(n<e.length)e[e.length-1]=e[e.length-1].append(i);else{for(;e.length<n;)e.push(P.empty);e.push(i)}}function q(e,t,i){let n=e.inserted;for(let r=0,s=0,o=0;o<e.sections.length;){let a=e.sections[o++],l=e.sections[o++];if(l<0)r+=a,s+=a;else{let h=r,c=s,u=P.empty;for(;h+=a,c+=l,l&&n&&(u=u.append(n[o-2>>1])),!(i||o==e.sections.length||e.sections[o+1]<0);)a=e.sections[o++],l=e.sections[o++];t(r,h,s,c,u),r=h,s=c}}}function U(e,t,i,n=!1){let r=[],s=n?[]:null,o=new F(e),a=new F(t);for(let e=-1;;){if(o.done&&a.len||a.done&&o.len)throw new Error("Mismatched change set lengths");if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);D(r,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(a.len<o.len||a.len==o.len&&!i))){let t=a.len;for(D(r,a.ins,-1);t;){let i=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=i&&(D(r,0,o.ins),s&&N(s,r,o.text),e=o.i),o.forward(i),t-=i}a.next()}else{if(!(o.ins>=0)){if(o.done&&a.done)return s?I.createSet(r,s):W.create(r);throw new Error("Mismatched change set lengths")}{let t=0,i=o.len;for(;i;)if(-1==a.ins){let e=Math.min(i,a.len);t+=e,i-=e,a.forward(e)}else{if(!(0==a.ins&&a.len<i))break;i-=a.len,a.next()}D(r,t,e<o.i?o.ins:0),s&&e<o.i&&N(s,r,o.text),e=o.i,o.forward(o.len-i)}}}}function G(e,t,i=!1){let n=[],r=i?[]:null,s=new F(e),o=new F(t);for(let e=!1;;){if(s.done&&o.done)return r?I.createSet(n,r):W.create(n);if(0==s.ins)D(n,s.len,0,e),s.next();else if(0!=o.len||o.done){if(s.done||o.done)throw new Error("Mismatched change set lengths");{let t=Math.min(s.len2,o.len),i=n.length;if(-1==s.ins){let i=-1==o.ins?-1:o.off?0:o.ins;D(n,t,i,e),r&&i&&N(r,n,o.text)}else-1==o.ins?(D(n,s.off?0:s.len,t,e),r&&N(r,n,s.textBit(t))):(D(n,s.off?0:s.len,o.off?0:o.ins,e),r&&!o.off&&N(r,n,o.text));e=(s.ins>t||o.ins>=0&&o.len>t)&&(e||n.length>i),s.forward2(t),o.forward(t)}}else D(n,0,o.ins,e),r&&N(r,n,o.text),o.next()}}class F{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return-2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?P.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?P.empty:t[i].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class H{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new H(i,n,this.flags)}extend(e,t=e,i=0){if(e<=this.anchor&&t>=this.anchor)return K.range(e,t,void 0,void 0,i);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return K.range(this.anchor,n,void 0,void 0,i)}eq(e,t=!1){return!(this.anchor!=e.anchor||this.head!=e.head||this.goalColumn!=e.goalColumn||t&&this.empty&&this.assoc!=e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return K.range(e.anchor,e.head)}static create(e,t,i){return new H(e,t,i)}}class K{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:K.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new K([this.main],0)}addRange(e,t=!0){return K.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,K.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new K(e.ranges.map(e=>H.fromJSON(e)),e.main)}static single(e,t=e){return new K([K.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let r=e[n];if(r.empty?r.from<=i:r.from<i)return K.normalized(e.slice(),t);i=r.to}return new K(e,t)}static cursor(e,t=0,i,n){return H.create(e,e,(0==t?0:t<0?8:16)|(null==i?7:Math.min(6,i))|(null!=n?n:16777215)<<6)}static range(e,t,i,n,r){let s=(null!=i?i:16777215)<<6|(null==n?7:Math.min(6,n));return r||e==t||(r=t<e?1:-1),t<e?H.create(t,e,48|s):H.create(e,t,(r?r<0?8:16:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(i);for(let i=1;i<e.length;i++){let n=e[i],r=e[i-1];if(n.empty?n.from<=r.to:n.from<r.to){let s=r.from,o=Math.max(n.to,r.to);i<=t&&t--,e.splice(--i,2,n.anchor>n.head?K.range(o,s):K.range(s,o))}}return new K(e,t)}}function J(e,t){for(let i of e.ranges)if(i.to>t)throw new RangeError("Selection points outside of document")}let ee=0;class te{constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=ee++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new te(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:ie),!!e.static,e.enables)}of(e){return new ne([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ne(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new ne(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],i=>t(i.field(e)))}}function ie(e,t){return e==t||e.length==t.length&&e.every((e,i)=>e===t[i])}class ne{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=ee++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,s=e[r]>>1,o=2==this.type,a=!1,l=!1,h=[];for(let i of this.dependencies)"doc"==i?a=!0:"selection"==i?l=!0:1&(null!==(t=e[i.id])&&void 0!==t?t:1)||h.push(e[i.id]);return{create:e=>(e.values[s]=i(e),1),update(e,t){if(a&&t.docChanged||l&&(t.docChanged||t.selection)||se(e,h)){let t=i(e);if(o?!re(t,e.values[s],n):!n(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let a,l=t.config.address[r];if(null!=l){let r=ge(t,l);if(this.dependencies.every(i=>i instanceof te?t.facet(i)===e.facet(i):!(i instanceof le)||t.field(i,!1)==e.field(i,!1))||(o?re(a=i(e),r,n):n(a=i(e),r)))return e.values[s]=r,0}else a=i(e);return e.values[s]=a,1}}}}function re(e,t,i){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1;return!0}function se(e,t){let i=!1;for(let n of t)1&Oe(e,n)&&(i=!0);return i}function oe(e,t,i){let n=i.map(t=>e[t.id]),r=i.map(e=>e.type),s=n.filter(e=>!(1&e)),o=e[t.id]>>1;function a(e){let i=[];for(let t=0;t<n.length;t++){let s=ge(e,n[t]);if(2==r[t])for(let e of s)i.push(e);else i.push(s)}return t.combine(i)}return{create(e){for(let t of n)Oe(e,t);return e.values[o]=a(e),1},update(e,i){if(!se(e,s))return 0;let n=a(e);return t.compare(n,e.values[o])?0:(e.values[o]=n,1)},reconfigure(e,r){let s=se(e,n),l=r.config.facets[t.id],h=r.facet(t);if(l&&!s&&ie(i,l))return e.values[o]=h,0;let c=a(e);return t.compare(c,h)?(e.values[o]=h,0):(e.values[o]=c,1)}}}const ae=te.define({static:!0});class le{constructor(e,t,i,n,r){this.id=e,this.createF=t,this.updateF=i,this.compareF=n,this.spec=r,this.provides=void 0}static define(e){let t=new le(ee++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(ae).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,i)=>{let n=e.values[t],r=this.updateF(n,i);return this.compareF(n,r)?0:(e.values[t]=r,1)},reconfigure:(e,i)=>{let n,r=e.facet(ae),s=i.facet(ae);return(n=r.find(e=>e.field==this))&&n!=s.find(e=>e.field==this)?(e.values[t]=n.create(e),1):null!=i.config.address[this.id]?(e.values[t]=i.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,ae.of({field:this,create:e})]}get extension(){return this}}function he(e){return t=>new ue(t,e)}const ce={highest:he(0),high:he(1),default:he(2),low:he(3),lowest:he(4)};class ue{constructor(e,t){this.inner=e,this.prec=t}}class fe{of(e){return new de(this,e)}reconfigure(e){return fe.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class de{constructor(e,t){this.compartment=e,this.inner=t}}class pe{constructor(e,t,i,n,r,s){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let n=[],r=Object.create(null),s=new Map;for(let i of function(e,t,i){let n=[[],[],[],[],[]],r=new Map;return function e(s,o){let a=r.get(s);if(null!=a){if(a<=o)return;let e=n[a].indexOf(s);e>-1&&n[a].splice(e,1),s instanceof de&&i.delete(s.compartment)}if(r.set(s,o),Array.isArray(s))for(let t of s)e(t,o);else if(s instanceof de){if(i.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let n=t.get(s.compartment)||s.inner;i.set(s.compartment,n),e(n,o)}else if(s instanceof ue)e(s.inner,s.prec);else if(s instanceof le)n[o].push(s),s.provides&&e(s.provides,o);else if(s instanceof ne)n[o].push(s),s.facet.extensions&&e(s.facet.extensions,2);else{let t=s.extension;if(!t)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(t,o)}}(e,2),n.reduce((e,t)=>e.concat(t))}(e,t,s))i instanceof le?n.push(i):(r[i.facet.id]||(r[i.facet.id]=[])).push(i);let o=Object.create(null),a=[],l=[];for(let e of n)o[e.id]=l.length<<1,l.push(t=>e.slot(t));let h=null==i?void 0:i.config.facets;for(let e in r){let t=r[e],n=t[0].facet,s=h&&h[e]||[];if(t.every(e=>0==e.type))if(o[n.id]=a.length<<1|1,ie(s,t))a.push(i.facet(n));else{let e=n.combine(t.map(e=>e.value));a.push(i&&n.compare(e,i.facet(n))?i.facet(n):e)}else{for(let e of t)0==e.type?(o[e.id]=a.length<<1|1,a.push(e.value)):(o[e.id]=l.length<<1,l.push(t=>e.dynamicSlot(t)));o[n.id]=l.length<<1,l.push(e=>oe(e,n,t))}}let c=l.map(e=>e(o));return new pe(e,s,c,o,a,r)}}function Oe(e,t){if(1&t)return 2;let i=t>>1,n=e.status[i];if(4==n)throw new Error("Cyclic dependency between fields and/or facets");if(2&n)return n;e.status[i]=4;let r=e.computeSlot(e,e.config.dynamicSlots[i]);return e.status[i]=2|r}function ge(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const me=te.define(),ve=te.define({combine:e=>e.some(e=>e),static:!0}),ye=te.define({combine:e=>e.length?e[0]:void 0,static:!0}),we=te.define(),be=te.define(),Se=te.define(),xe=te.define({combine:e=>!!e.length&&e[0]});class ke{constructor(e,t){this.type=e,this.value=t}static define(){return new Qe}}class Qe{of(e){return new ke(this,e)}}class $e{constructor(e){this.map=e}of(e){return new Pe(this,e)}}class Pe{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new Pe(this.type,t)}is(e){return this.type==e}static define(e={}){return new $e(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let e=n.map(t);e&&i.push(e)}return i}}Pe.reconfigure=Pe.define(),Pe.appendConfig=Pe.define();class _e{constructor(e,t,i,n,r,s){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,i&&J(i,t.newLength),r.some(e=>e.type==_e.time)||(this.annotations=r.concat(_e.time.of(Date.now())))}static create(e,t,i,n,r,s){return new _e(e,t,i,n,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(_e.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function Ce(e,t){let i=[];for(let n=0,r=0;;){let s,o;if(n<e.length&&(r==t.length||t[r]>=e[n]))s=e[n++],o=e[n++];else{if(!(r<t.length))return i;s=t[r++],o=t[r++]}!i.length||i[i.length-1]<s?i.push(s,o):i[i.length-1]<o&&(i[i.length-1]=o)}}function Ae(e,t,i){var n;let r,s,o;return i?(r=t.changes,s=I.empty(t.changes.length),o=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(r)),{changes:o,selection:t.selection?t.selection.map(s):null===(n=e.selection)||void 0===n?void 0:n.map(r),effects:Pe.mapEffects(e.effects,r).concat(Pe.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function Te(e,t,i){let n=t.selection,r=Re(t.annotations);return t.userEvent&&(r=r.concat(_e.userEvent.of(t.userEvent))),{changes:t.changes instanceof I?t.changes:I.of(t.changes||[],i,e.facet(ye)),selection:n&&(n instanceof K?n:K.single(n.anchor,n.head)),effects:Re(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}function Ze(e,t,i){let n=Te(e,t.length?t[0]:{},e.doc.length);t.length&&!1===t[0].filter&&(i=!1);for(let r=1;r<t.length;r++){!1===t[r].filter&&(i=!1);let s=!!t[r].sequential;n=Ae(n,Te(e,t[r],s?n.changes.newLength:e.doc.length),s)}let r=_e.create(e,n.changes,n.selection,n.effects,n.annotations,n.scrollIntoView);return function(e){let t=e.startState,i=t.facet(Se),n=e;for(let r=i.length-1;r>=0;r--){let s=i[r](e);s&&Object.keys(s).length&&(n=Ae(n,Te(t,s,e.changes.newLength),!0))}return n==e?e:_e.create(t,e.changes,e.selection,n.effects,n.annotations,n.scrollIntoView)}(i?function(e){let t=e.startState,i=!0;for(let n of t.facet(we)){let t=n(e);if(!1===t){i=!1;break}Array.isArray(t)&&(i=!0===i?t:Ce(i,t))}if(!0!==i){let n,r;if(!1===i)r=e.changes.invertedDesc,n=I.empty(t.doc.length);else{let t=e.changes.filter(i);n=t.changes,r=t.filtered.mapDesc(t.changes).invertedDesc}e=_e.create(t,n,e.selection&&e.selection.map(r),Pe.mapEffects(e.effects,r),e.annotations,e.scrollIntoView)}let n=t.facet(be);for(let i=n.length-1;i>=0;i--){let r=n[i](e);e=r instanceof _e?r:Array.isArray(r)&&1==r.length&&r[0]instanceof _e?r[0]:Ze(t,Re(r),!1)}return e}(r):r)}_e.time=ke.define(),_e.userEvent=ke.define(),_e.addToHistory=ke.define(),_e.remote=ke.define();const Me=[];function Re(e){return null==e?Me:Array.isArray(e)?e:[e]}var Xe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Xe||(Xe={}));const Ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let je;try{je=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(eO){}class ze{constructor(e,t,i,n,r,s){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)Oe(this,e<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(null!=i)return Oe(this,i),ge(this,i);if(t)throw new RangeError("Field is not present in this state")}update(...e){return Ze(this,e,!0)}applyTransaction(e){let t,i=this.config,{base:n,compartments:r}=i;for(let t of e.effects)t.is(fe.reconfigure)?(i&&(r=new Map,i.compartments.forEach((e,t)=>r.set(t,e)),i=null),r.set(t.value.compartment,t.value.extension)):t.is(Pe.reconfigure)?(i=null,n=t.value):t.is(Pe.appendConfig)&&(i=null,n=Re(n).concat(t.value));i?t=e.startState.values.slice():(i=pe.resolve(n,r,this),t=new ze(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values);let s=e.startState.facet(ve)?e.newSelection:e.newSelection.asSingle();new ze(i,e.newDoc,s,t,(t,i)=>i.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:K.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],s=Re(i.effects);for(let i=1;i<t.ranges.length;i++){let o=e(t.ranges[i]),a=this.changes(o.changes),l=a.map(n);for(let e=0;e<i;e++)r[e]=r[e].map(l);let h=n.mapDesc(a,!0);r.push(o.range.map(h)),n=n.compose(l),s=Pe.mapEffects(s,l).concat(Pe.mapEffects(Re(o.effects),h))}return{changes:n,selection:K.create(r,t.mainIndex),effects:s}}changes(e=[]){return e instanceof I?e:I.of(e,this.doc.length,this.facet(ze.lineSeparator))}toText(e){return P.of(e.split(this.facet(ze.lineSeparator)||V))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(Oe(this,t),ge(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof le&&null!=this.config.address[n.id]&&(t[i]=n.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i)for(let t in i)if(Object.prototype.hasOwnProperty.call(e,t)){let r=i[t],s=e[t];n.push(r.init(e=>r.spec.fromJSON(s,e)))}return ze.create({doc:e.doc,selection:K.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=pe.resolve(e.extensions||[],new Map),i=e.doc instanceof P?e.doc:P.of((e.doc||"").split(t.staticFacet(ze.lineSeparator)||V)),n=e.selection?e.selection instanceof K?e.selection:K.single(e.selection.anchor,e.selection.head):K.single(0);return J(n,i.length),t.staticFacet(ve)||(n=n.asSingle()),new ze(t,i,n,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(ze.tabSize)}get lineBreak(){return this.facet(ze.lineSeparator)||"\n"}get readOnly(){return this.facet(xe)}phrase(e,...t){for(let t of this.facet(ze.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,i)=>{if("$"==i)return"$";let n=+(i||1);return!n||n>t.length?e:t[n-1]})),e}languageDataAt(e,t,i=-1){let n=[];for(let r of this.facet(me))for(let s of r(this,t,i))Object.prototype.hasOwnProperty.call(s,e)&&n.push(s[e]);return n}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return i=t.length?t[0]:"",e=>{if(!/\S/.test(e))return Xe.Space;if(function(e){if(je)return je.test(e);for(let t=0;t<e.length;t++){let i=e[t];if(/\w/.test(i)||i>"€"&&(i.toUpperCase()!=i.toLowerCase()||Ee.test(i)))return!0}return!1}(e))return Xe.Word;for(let t=0;t<i.length;t++)if(e.indexOf(i[t])>-1)return Xe.Word;return Xe.Other};var i}wordAt(e){let{text:t,from:i,length:n}=this.doc.lineAt(e),r=this.charCategorizer(e),s=e-i,o=e-i;for(;s>0;){let e=j(t,s,!1);if(r(t.slice(e,s))!=Xe.Word)break;s=e}for(;o<n;){let e=j(t,o);if(r(t.slice(o,e))!=Xe.Word)break;o=e}return s==o?null:K.range(s+i,o+i)}}function Le(e,t,i={}){let n={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],s=n[e];if(void 0===s)n[e]=r;else if(s===r||void 0===r);else{if(!Object.hasOwnProperty.call(i,e))throw new Error("Config merge conflict for field "+e);n[e]=i[e](s,r)}}for(let e in t)void 0===n[e]&&(n[e]=t[e]);return n}ze.allowMultipleSelections=ve,ze.tabSize=te.define({combine:e=>e.length?e[0]:4}),ze.lineSeparator=ye,ze.readOnly=xe,ze.phrases=te.define({compare(e,t){let i=Object.keys(e),n=Object.keys(t);return i.length==n.length&&i.every(i=>e[i]==t[i])}}),ze.languageData=me,ze.changeFilter=we,ze.transactionFilter=be,ze.transactionExtender=Se,fe.reconfigure=Pe.define();class Ye{eq(e){return this==e}range(e,t=e){return Be.create(e,t,this)}}function Ve(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}Ye.prototype.startSide=Ye.prototype.endSide=0,Ye.prototype.point=!1,Ye.prototype.mapMode=B.TrackDel;class Be{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new Be(e,t,i)}}function We(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Ie{constructor(e,t,i,n){this.from=e,this.to=t,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,n=0){let r=i?this.to:this.from;for(let s=n,o=r.length;;){if(s==o)return s;let n=s+o>>1,a=r[n]-e||(i?this.value[n].endSide:this.value[n].startSide)-t;if(n==s)return a>=0?s:o;a>=0?o=n:s=n+1}}between(e,t,i,n){for(let r=this.findIndex(t,-1e9,!0),s=this.findIndex(i,1e9,!1,r);r<s;r++)if(!1===n(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let i=[],n=[],r=[],s=-1,o=-1;for(let a=0;a<this.value.length;a++){let l,h,c=this.value[a],u=this.from[a]+e,f=this.to[a]+e;if(u==f){let e=t.mapPos(u,c.startSide,c.mapMode);if(null==e)continue;if(l=h=e,c.startSide!=c.endSide&&(h=t.mapPos(u,c.endSide),h<l))continue}else if(l=t.mapPos(u,c.startSide),h=t.mapPos(f,c.endSide),l>h||l==h&&c.startSide>0&&c.endSide<=0)continue;(h-l||c.endSide-c.startSide)<0||(s<0&&(s=l),c.point&&(o=Math.max(o,h-l)),i.push(c),n.push(l-s),r.push(h-s))}return{mapped:i.length?new Ie(n,r,i,o):null,pos:s}}}class De{constructor(e,t,i,n){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=n}static create(e,t,i,n){return new De(e,t,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:n=0,filterTo:r=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(i&&(t=t.slice().sort(We)),this.isEmpty)return t.length?De.of(t):this;let o=new Ue(this,null,-1).goto(0),a=0,l=[],h=new Ne;for(;o.value||a<t.length;)if(a<t.length&&(o.from-t[a].from||o.startSide-t[a].value.startSide)>=0){let e=t[a++];h.addInner(e.from,e.to,e.value)||l.push(e)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(o.chunkIndex)<t[a].from)&&(!s||n>this.chunkEnd(o.chunkIndex)||r<this.chunkPos[o.chunkIndex])&&h.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||n>o.to||r<o.from||s(o.from,o.to,o.value))&&(h.addInner(o.from,o.to,o.value)||l.push(Be.create(o.from,o.to,o.value))),o.next());return h.finishInner(this.nextLayer.isEmpty&&!l.length?De.empty:this.nextLayer.update({add:l,filter:s,filterFrom:n,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],n=-1;for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r],a=e.touchesRange(s,s+o.length);if(!1===a)n=Math.max(n,o.maxPoint),t.push(o),i.push(e.mapPos(s));else if(!0===a){let{mapped:r,pos:a}=o.map(s,e);r&&(n=Math.max(n,r.maxPoint),t.push(r),i.push(a))}}let r=this.nextLayer.map(e);return 0==t.length?r:new De(i,t,r||De.empty,n)}between(e,t,i){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let r=this.chunkPos[n],s=this.chunk[n];if(t>=r&&e<=r+s.length&&!1===s.between(r,e-r,t-r,i))return}this.nextLayer.between(e,t,i)}}iter(e=0){return Ge.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return Ge.from(e).goto(t)}static compare(e,t,i,n,r=-1){let s=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),a=qe(s,o,i),l=new He(s,a,r),h=new He(o,a,r);i.iterGaps((e,t,i)=>Ke(l,e,h,t,i,n)),i.empty&&0==i.length&&Ke(l,0,h,0,0,n)}static eq(e,t,i=0,n){null==n&&(n=999999999);let r=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0),s=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0);if(r.length!=s.length)return!1;if(!r.length)return!0;let o=qe(r,s),a=new He(r,o,0).goto(i),l=new He(s,o,0).goto(i);for(;;){if(a.to!=l.to||!Je(a.active,l.active)||a.point&&(!l.point||!Ve(a.point,l.point)))return!1;if(a.to>n)return!0;a.next(),l.next()}}static spans(e,t,i,n,r=-1){let s=new He(e,null,r).goto(t),o=t,a=s.openStart;for(;;){let e=Math.min(s.to,i);if(s.point){let i=s.activeForPoint(s.to),r=s.pointFrom<t?i.length+1:s.point.startSide<0?i.length:Math.min(i.length,a);n.point(o,e,s.point,i,r,s.pointRank),a=Math.min(s.openEnd(e),i.length)}else e>o&&(n.span(o,e,s.active,a),a=s.openEnd(e));if(s.to>i)return a+(s.point&&s.to>i?1:0);o=s.to,s.next()}}static of(e,t=!1){let i=new Ne;for(let n of e instanceof Be?[e]:t?function(e){if(e.length>1)for(let t=e[0],i=1;i<e.length;i++){let n=e[i];if(We(t,n)>0)return e.slice().sort(We);t=n}return e}(e):e)i.add(n.from,n.to,n.value);return i.finish()}static join(e){if(!e.length)return De.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let n=e[i];n!=De.empty;n=n.nextLayer)t=new De(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}}De.empty=new De([],[],null,-1),De.empty.nextLayer=De.empty;class Ne{finishChunk(e){this.chunks.push(new Ie(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new Ne)).add(e,t,i)}addInner(e,t,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(n<0||(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),0))}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(De.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=De.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function qe(e,t,i){let n=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&n.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=n.get(e.chunk[t]);null==s||(i?i.mapPos(s):s)!=e.chunkPos[t]||(null==i?void 0:i.touchesRange(s,s+e.chunk[t].length))||r.add(e.chunk[t])}return r}class Ue{constructor(e,t,i,n=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Ge{constructor(e){this.heap=e}static from(e,t=null,i=-1){let n=[];for(let r=0;r<e.length;r++)for(let s=e[r];!s.isEmpty;s=s.nextLayer)s.maxPoint>=i&&n.push(new Ue(s,t,i,r));return 1==n.length?n[0]:new Ge(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)Fe(this.heap,e);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)Fe(this.heap,e);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Fe(this.heap,0)}}}function Fe(e,t){for(let i=e[t];;){let n=1+(t<<1);if(n>=e.length)break;let r=e[n];if(n+1<e.length&&r.compare(e[n+1])>=0&&(r=e[n+1],n++),i.compare(r)<0)break;e[n]=i,e[t]=r,t=n}}class He{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ge.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){et(this.active,e),et(this.activeTo,e),et(this.activeRank,e),this.minActive=it(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:n,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||n-this.activeTo[t])>0;)t++;tt(this.active,t,i),tt(this.activeTo,t,n),tt(this.activeRank,t,r),e&&tt(e,t,this.cursor.from),this.minActive=it(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&et(i,n)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}this.cursor.next()}else this.addActive(i),this.cursor.next()}}}if(i){this.openStart=0;for(let t=i.length-1;t>=0&&i[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}}function Ke(e,t,i,n,r,s){e.goto(t),i.goto(n);let o=n+r,a=n,l=n-t,h=!!s.boundChange;for(let t=!1;;){let n=e.to+l-i.to,r=n||e.endSide-i.endSide,c=r<0?e.to+l:i.to,u=Math.min(c,o);if(e.point||i.point?(e.point&&i.point&&Ve(e.point,i.point)&&Je(e.activeForPoint(e.to),i.activeForPoint(i.to))||s.comparePoint(a,u,e.point,i.point),t=!1):(t&&s.boundChange(a),u>a&&!Je(e.active,i.active)&&s.compareRange(a,u,e.active,i.active),h&&u<o&&(n||e.openEnd(c)!=i.openEnd(c))&&(t=!0)),c>o)break;a=c,r<=0&&e.next(),r>=0&&i.next()}}function Je(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!=t[i]&&!Ve(e[i],t[i]))return!1;return!0}function et(e,t){for(let i=t,n=e.length-1;i<n;i++)e[i]=e[i+1];e.pop()}function tt(e,t,i){for(let i=e.length-1;i>=t;i--)e[i+1]=e[i];e[t]=i}function it(e,t){let i=-1,n=1e9;for(let r=0;r<t.length;r++)(t[r]-n||e[r].endSide-e[i].endSide)<0&&(i=r,n=t[r]);return i}function nt(e,t,i=e.length){let n=0;for(let r=0;r<i&&r<e.length;)9==e.charCodeAt(r)?(n+=t-n%t,r++):(n++,r=j(e,r));return n}const rt="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),st="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class at{constructor(e,t){this.rules=[];let{finish:i}=t||{};function n(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function r(e,t,s,o){let a=[],l=/^@(\w+)\b/.exec(e[0]),h=l&&"keyframes"==l[1];if(l&&null==t)return s.push(e[0]+";");for(let i in t){let o=t[i];if(/&/.test(i))r(i.split(/,\s*/).map(t=>e.map(e=>t.replace(/&/,e))).reduce((e,t)=>e.concat(t)),o,s);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+i+") should be a primitive value.");r(n(i),o,a,h)}else null!=o&&a.push(i.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(a.length||h)&&s.push((!i||l||o?e:e.map(i)).join(", ")+" {"+a.join(" ")+"}")}for(let t in e)r(n(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=ot[rt]||1;return ot[rt]=e+1,"ͼ"+e.toString(36)}static mount(e,t,i){let n=e[st],r=i&&i.nonce;n?r&&n.setNonce(r):n=new ht(e,r),n.mount(Array.isArray(t)?t:[t],e)}}let lt=new Map;class ht{constructor(e,t){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let t=lt.get(i);if(t)return e[st]=t;this.sheet=new n.CSSStyleSheet,lt.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[st]=this}mount(e,t){let i=this.sheet,n=0,r=0;for(let t=0;t<e.length;t++){let s=e[t],o=this.modules.indexOf(s);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,s),i)for(let e=0;e<s.rules.length;e++)i.insertRule(s.rules[e],n++)}else{for(;r<o;)n+=this.modules[r++].rules.length;n+=s.rules.length,r++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let i=t.head||t;this.styleTag.parentNode!=i&&i.insertBefore(this.styleTag,i.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}for(var ct={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},ut={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},ft="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),dt="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),pt=0;pt<10;pt++)ct[48+pt]=ct[96+pt]=String(pt);for(pt=1;pt<=24;pt++)ct[pt+111]="F"+pt;for(pt=65;pt<=90;pt++)ct[pt]=String.fromCharCode(pt+32),ut[pt]=String.fromCharCode(pt);for(var Ot in ct)ut.hasOwnProperty(Ot)||(ut[Ot]=ct[Ot]);let gt="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},mt="undefined"!=typeof document?document:{documentElement:{style:{}}};const vt=/Edge\/(\d+)/.exec(gt.userAgent),yt=/MSIE \d/.test(gt.userAgent),wt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gt.userAgent),bt=!!(yt||wt||vt),St=!bt&&/gecko\/(\d+)/i.test(gt.userAgent),xt=!bt&&/Chrome\/(\d+)/.exec(gt.userAgent),kt="webkitFontSmoothing"in mt.documentElement.style,Qt=!bt&&/Apple Computer/.test(gt.vendor),$t=Qt&&(/Mobile\/\w+/.test(gt.userAgent)||gt.maxTouchPoints>2);var Pt={mac:$t||/Mac/.test(gt.platform),windows:/Win/.test(gt.platform),linux:/Linux|X11/.test(gt.platform),ie:bt,ie_version:yt?mt.documentMode||6:wt?+wt[1]:vt?+vt[1]:0,gecko:St,gecko_version:St?+(/Firefox\/(\d+)/.exec(gt.userAgent)||[0,0])[1]:0,chrome:!!xt,chrome_version:xt?+xt[1]:0,ios:$t,android:/Android\b/.test(gt.userAgent),webkit:kt,webkit_version:kt?+(/\bAppleWebKit\/(\d+)/.exec(gt.userAgent)||[0,0])[1]:0,safari:Qt,safari_version:Qt?+(/\bVersion\/(\d+(\.\d+)?)/.exec(gt.userAgent)||[0,0])[1]:0,tabSize:null!=mt.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function _t(e,t){for(let i in e)"class"==i&&t.class?t.class+=" "+e.class:"style"==i&&t.style?t.style+=";"+e.style:t[i]=e[i];return t}const Ct=Object.create(null);function At(e,t,i){if(e==t)return!0;e||(e=Ct),t||(t=Ct);let n=Object.keys(e),r=Object.keys(t);if(n.length-(i&&n.indexOf(i)>-1?1:0)!=r.length-(i&&r.indexOf(i)>-1?1:0))return!1;for(let s of n)if(s!=i&&(-1==r.indexOf(s)||e[s]!==t[s]))return!1;return!0}function Tt(e,t,i){let n=!1;if(t)for(let r in t)i&&r in i||(n=!0,"style"==r?e.style.cssText="":e.removeAttribute(r));if(i)for(let r in i)t&&t[r]==i[r]||(n=!0,"style"==r?e.style.cssText=i[r]:e.setAttribute(r,i[r]));return n}function Zt(e){let t=Object.create(null);for(let i=0;i<e.attributes.length;i++){let n=e.attributes[i];t[n.name]=n.value}return t}class Mt{eq(e){return!1}updateDOM(e,t,i){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Rt=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(Rt||(Rt={}));class Xt extends Ye{constructor(e,t,i,n){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(e){return new Et(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new zt(e,t,t,i,e.widget||null,!1)}static replace(e){let t,i,n=!!e.block;if(e.isBlockGap)t=-5e8,i=4e8;else{let{start:r,end:s}=Lt(e,n);t=(r?n?-3e8:-1:5e8)-1,i=1+(s?n?2e8:1:-6e8)}return new zt(e,t,i,n,e.widget||null,!0)}static line(e){return new jt(e)}static set(e,t=!1){return De.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}Xt.none=De.empty;class Et extends Xt{constructor(e){let{start:t,end:i}=Lt(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?_t(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Ct}eq(e){return this==e||e instanceof Et&&this.tagName==e.tagName&&At(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}Et.prototype.point=!1;class jt extends Xt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof jt&&this.spec.class==e.spec.class&&At(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}jt.prototype.mapMode=B.TrackBefore,jt.prototype.point=!0;class zt extends Xt{constructor(e,t,i,n,r,s){super(t,i,r,e),this.block=n,this.isReplace=s,this.mapMode=n?t<=0?B.TrackBefore:B.TrackAfter:B.TrackDel}get type(){return this.startSide!=this.endSide?Rt.WidgetRange:this.startSide<=0?Rt.WidgetBefore:Rt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof zt&&function(e,t){return e==t||!!(e&&t&&e.compare(t))}(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function Lt(e,t=!1){let{inclusiveStart:i,inclusiveEnd:n}=e;return null==i&&(i=e.inclusive),null==n&&(n=e.inclusive),{start:null!=i?i:t,end:null!=n?n:t}}function Yt(e,t,i,n=0){let r=i.length-1;r>=0&&i[r]+n>=e?i[r]=Math.max(i[r],t):i.push(e,t)}zt.prototype.point=!0;class Vt extends Ye{constructor(e,t,i){super(),this.tagName=e,this.attributes=t,this.rank=i}eq(e){return e==this||e instanceof Vt&&this.tagName==e.tagName&&At(this.attributes,e.attributes)}static create(e){return new Vt(e.tagName,e.attributes||Ct,null==e.rank?50:Math.max(0,Math.min(e.rank,100)))}static set(e,t=!1){return De.of(e,t)}}function Bt(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function Wt(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function It(e,t){if(!t.anchorNode)return!1;try{return Wt(e,t.anchorNode)}catch(e){return!1}}function Dt(e){return 3==e.nodeType?si(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function Nt(e,t,i,n){return!!i&&(Gt(e,t,i,n,-1)||Gt(e,t,i,n,1))}function qt(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function Ut(e){return 1==e.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function Gt(e,t,i,n,r){for(;;){if(e==i&&t==n)return!0;if(t==(r<0?0:Ft(e))){if("DIV"==e.nodeName)return!1;let i=e.parentNode;if(!i||1!=i.nodeType)return!1;t=qt(e)+(r<0?0:1),e=i}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(r<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=r<0?Ft(e):0}}}function Ft(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Ht(e,t){let i=t?e.left:e.right;return{left:i,right:i,top:e.top,bottom:e.bottom}}function Kt(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function Jt(e,t){let i=t.width/e.offsetWidth,n=t.height/e.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.width-e.offsetWidth)<1)&&(i=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.height-e.offsetHeight)<1)&&(n=1),{scaleX:i,scaleY:n}}function ei(e,t=!0){let i=e.ownerDocument,n=null,r=null;for(let s=e.parentNode;s&&s!=i.body&&(t&&!n||!r);)if(1==s.nodeType)!r&&s.scrollHeight>s.clientHeight&&(r=s),t&&!n&&s.scrollWidth>s.clientWidth&&(n=s),s=s.assignedSlot||s.parentNode;else{if(11!=s.nodeType)break;s=s.host}return{x:n,y:r}}Vt.prototype.startSide=Vt.prototype.endSide=-1;class ti{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?Ft(t):0),i,Math.min(e.focusOffset,i?Ft(i):0))}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}}let ii,ni=null;function ri(e){if(e.setActive)return e.setActive();if(ni)return e.focus(ni);let t=[];for(let i=e;i&&(t.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(e.focus(null==ni?{get preventScroll(){return ni={preventScroll:!0},!0}}:void 0),!ni){ni=!1;for(let e=0;e<t.length;){let i=t[e++],n=t[e++],r=t[e++];i.scrollTop!=n&&(i.scrollTop=n),i.scrollLeft!=r&&(i.scrollLeft=r)}}}function si(e,t,i=t){let n=ii||(ii=document.createRange());return n.setEnd(e,i),n.setStart(e,t),n}function oi(e,t,i,n){let r={key:t,code:t,keyCode:i,which:i,cancelable:!0};n&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=n);let s=new KeyboardEvent("keydown",r);s.synthetic=!0,e.dispatchEvent(s);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function ai(e){return e instanceof Window?e.pageYOffset>Math.max(0,e.document.documentElement.scrollHeight-e.innerHeight-4):e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}function li(e,t){for(let i=e,n=t;;){if(3==i.nodeType&&n>0)return{node:i,offset:n};if(1==i.nodeType&&n>0){if("false"==i.contentEditable)return null;i=i.childNodes[n-1],n=Ft(i)}else{if(!i.parentNode||Ut(i))return null;n=qt(i),i=i.parentNode}}}function hi(e,t){for(let i=e,n=t;;){if(3==i.nodeType&&n<i.nodeValue.length)return{node:i,offset:n};if(1==i.nodeType&&n<i.childNodes.length){if("false"==i.contentEditable)return null;i=i.childNodes[n],n=0}else{if(!i.parentNode||Ut(i))return null;n=qt(i)+1,i=i.parentNode}}}Pt.safari&&Pt.safari_version>=26&&(ni=!1);class ci{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new ci(e.parentNode,qt(e),t)}static after(e,t){return new ci(e.parentNode,qt(e)+1,t)}}var ui=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(ui||(ui={}));const fi=ui.LTR,di=ui.RTL;function pi(e){let t=[];for(let i=0;i<e.length;i++)t.push(1<<+e[i]);return t}const Oi=pi("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),gi=pi("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),mi=Object.create(null),vi=[];for(let e of["()","[]","{}"]){let t=e.charCodeAt(0),i=e.charCodeAt(1);mi[t]=i,mi[i]=-t}function yi(e){return e<=247?Oi[e]:1424<=e&&e<=1524?2:1536<=e&&e<=1785?gi[e-1536]:1774<=e&&e<=2220?4:8192<=e&&e<=8204?256:64336<=e&&e<=65023?4:1}const wi=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class bi{get dir(){return this.level%2?di:fi}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,n){let r=-1;for(let s=0;s<e.length;s++){let o=e[s];if(o.from<=t&&o.to>=t){if(o.level==i)return s;(r<0||(0!=n?n<0?o.from<t:o.to>t:e[r].level>o.level))&&(r=s)}}if(r<0)throw new RangeError("Index out of range");return r}}function Si(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],r=t[i];if(n.from!=r.from||n.to!=r.to||n.direction!=r.direction||!Si(n.inner,r.inner))return!1}return!0}const xi=[];function ki(e,t,i,n,r,s,o){let a=n%2?2:1;if(n%2==r%2)for(let l=t,h=0;l<i;){let t=!0,c=!1;if(h==s.length||l<s[h].from){let e=xi[l];e!=a&&(t=!1,c=16==e)}let u=t||1!=a?null:[],f=t?n:n+1,d=l;e:for(;;)if(h<s.length&&d==s[h].from){if(c)break e;let p=s[h];if(!t)for(let e=p.to,t=h+1;;){if(e==i)break e;if(!(t<s.length&&s[t].from==e)){if(xi[e]==a)break e;break}e=s[t++].to}h++,u?u.push(p):(p.from>l&&o.push(new bi(l,p.from,f)),Qi(e,p.direction==fi!=!(f%2)?n+1:n,r,p.inner,p.from,p.to,o),l=p.to),d=p.to}else{if(d==i||(t?xi[d]!=a:xi[d]==a))break;d++}u?ki(e,l,d,n+1,r,u,o):l<d&&o.push(new bi(l,d,f)),l=d}else for(let l=i,h=s.length;l>t;){let i=!0,c=!1;if(!h||l>s[h-1].to){let e=xi[l-1];e!=a&&(i=!1,c=16==e)}let u=i||1!=a?null:[],f=i?n:n+1,d=l;e:for(;;)if(h&&d==s[h-1].to){if(c)break e;let p=s[--h];if(!i)for(let e=p.from,i=h;;){if(e==t)break e;if(!i||s[i-1].to!=e){if(xi[e-1]==a)break e;break}e=s[--i].from}u?u.push(p):(p.to<l&&o.push(new bi(p.to,l,f)),Qi(e,p.direction==fi!=!(f%2)?n+1:n,r,p.inner,p.from,p.to,o),l=p.from),d=p.from}else{if(d==t||(i?xi[d-1]!=a:xi[d-1]==a))break;d--}u?ki(e,d,l,n+1,r,u,o):d<l&&o.push(new bi(d,l,f)),l=d}}function Qi(e,t,i,n,r,s,o){let a=t%2?2:1;!function(e,t,i,n,r){for(let s=0;s<=n.length;s++){let o=s?n[s-1].to:t,a=s<n.length?n[s].from:i,l=s?256:r;for(let t=o,i=l,n=l;t<a;t++){let r=yi(e.charCodeAt(t));512==r?r=i:8==r&&4==n&&(r=16),xi[t]=4==r?2:r,7&r&&(n=r),i=r}for(let e=o,t=l,n=l;e<a;e++){let r=xi[e];if(128==r)e<a-1&&t==xi[e+1]&&24&t?r=xi[e]=t:xi[e]=256;else if(64==r){let r=e+1;for(;r<a&&64==xi[r];)r++;let s=e&&8==t||r<i&&8==xi[r]?1==n?1:8:256;for(let t=e;t<r;t++)xi[t]=s;e=r-1}else 8==r&&1==n&&(xi[e]=1);t=r,7&r&&(n=r)}}}(e,r,s,n,a),function(e,t,i,n,r){let s=1==r?2:1;for(let o=0,a=0,l=0;o<=n.length;o++){let h=o?n[o-1].to:t,c=o<n.length?n[o].from:i;for(let t,i,n,o=h;o<c;o++)if(i=mi[t=e.charCodeAt(o)])if(i<0){for(let e=a-3;e>=0;e-=3)if(vi[e+1]==-i){let t=vi[e+2],i=2&t?r:4&t?1&t?s:r:0;i&&(xi[o]=xi[vi[e]]=i),a=e;break}}else{if(189==vi.length)break;vi[a++]=o,vi[a++]=t,vi[a++]=l}else if(2==(n=xi[o])||1==n){let e=n==r;l=e?0:1;for(let t=a-3;t>=0;t-=3){let i=vi[t+2];if(2&i)break;if(e)vi[t+2]|=2;else{if(4&i)break;vi[t+2]|=4}}}}}(e,r,s,n,a),function(e,t,i,n){for(let r=0,s=n;r<=i.length;r++){let o=r?i[r-1].to:e,a=r<i.length?i[r].from:t;for(let l=o;l<a;){let o=xi[l];if(256==o){let o=l+1;for(;;)if(o==a){if(r==i.length)break;o=i[r++].to,a=r<i.length?i[r].from:t}else{if(256!=xi[o])break;o++}let h=1==s,c=h==(1==(o<t?xi[o]:n))?h?1:2:n;for(let t=o,n=r,s=n?i[n-1].to:e;t>l;)t==s&&(t=i[--n].from,s=n?i[n-1].to:e),xi[--t]=c;l=o}else s=o,l++}}}(r,s,n,a),ki(e,r,s,t,i,n,o)}function $i(e){return[new bi(0,e,0)]}let Pi="";function _i(e,t,i,n,r){var s;let o=n.head-e.from,a=bi.find(t,o,null!==(s=n.bidiLevel)&&void 0!==s?s:-1,n.assoc),l=t[a],h=l.side(r,i);if(o==h){let e=a+=r?1:-1;if(e<0||e>=t.length)return null;l=t[a=e],o=l.side(!r,i),h=l.side(r,i)}let c=j(e.text,o,l.forward(r,i));(c<l.from||c>l.to)&&(c=h),Pi=e.text.slice(Math.min(o,c),Math.max(o,c));let u=a==(r?t.length-1:0)?null:t[a+(r?1:-1)];return u&&c==h&&u.level+(r?0:1)<l.level?K.cursor(u.side(!r,i)+e.from,u.forward(r,i)?1:-1,u.level):K.cursor(c+e.from,l.forward(r,i)?-1:1,l.level)}function Ci(e,t,i){for(let n=t;n<i;n++){let t=yi(e.charCodeAt(n));if(1==t)return fi;if(2==t||4==t)return di}return fi}const Ai=te.define(),Ti=te.define(),Zi=te.define(),Mi=te.define(),Ri=te.define(),Xi=te.define(),Ei=te.define(),ji=te.define(),zi=te.define(),Li=te.define({combine:e=>e.some(e=>e)}),Yi=te.define({combine:e=>e.some(e=>e)}),Vi=te.define();class Bi{constructor(e,t,i,n,r,s=!1){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=r,this.isSnapshot=s}map(e){return e.empty?this:new Bi(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new Bi(K.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Wi=Pe.define({map:(e,t)=>e.map(t)}),Ii=Pe.define();function Di(e,t,i){let n=e.facet(Mi);n.length?n[0](t):window.onerror&&window.onerror(String(t),i,void 0,void 0,t)||(i?console.error(i+":",t):console.error(t))}const Ni=te.define({combine:e=>!e.length||e[0]});let qi=0;const Ui=te.define({combine:e=>e.filter((t,i)=>{for(let n=0;n<i;n++)if(e[n].plugin==t.plugin)return!1;return!0})});class Gi{constructor(e,t,i,n,r){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=n,this.baseExtensions=r(this),this.extension=this.baseExtensions.concat(Ui.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(Ui.of({plugin:this,arg:e}))}static define(e,t){const{eventHandlers:i,eventObservers:n,provide:r,decorations:s}=t||{};return new Gi(qi++,e,i,n,e=>{let t=[];return s&&t.push(Ji.of(t=>{let i=t.plugin(e);return i?s(i):Xt.none})),r&&t.push(r(e)),t})}static fromClass(e,t){return Gi.define((t,i)=>new e(t,i),t)}}class Fi{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(Di(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(e){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){Di(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(t){Di(e.state,t,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Hi=te.define(),Ki=te.define(),Ji=te.define(),en=te.define(),tn=te.define(),nn=te.define(),rn=te.define();function sn(e,t){let i=e.state.facet(rn);if(!i.length)return i;let n=i.map(t=>t instanceof Function?t(e):t),r=[];return De.spans(n,t.from,t.to,{point(){},span(e,i,n,s){let o=e-t.from,a=i-t.from,l=r;for(let e=n.length-1;e>=0;e--,s--){let i,r=n[e].spec.bidiIsolate;if(null==r&&(r=Ci(t.text,o,a)),s>0&&l.length&&(i=l[l.length-1]).to==o&&i.direction==r)i.to=a,l=i.inner;else{let e={from:o,to:a,direction:r,inner:[]};l.push(e),l=e.inner}}}}),r}const on=te.define();function an(e){let t=0,i=0,n=0,r=0;for(let s of e.state.facet(on)){let o=s(e);o&&(null!=o.left&&(t=Math.max(t,o.left)),null!=o.right&&(i=Math.max(i,o.right)),null!=o.top&&(n=Math.max(n,o.top)),null!=o.bottom&&(r=Math.max(r,o.bottom)))}return{left:t,right:i,top:n,bottom:r}}const ln=te.define();class hn{constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new hn(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toA<i.fromA)break;i=i.join(n),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(0==t.length)return e;let i=[];for(let n=0,r=0,s=0;;){let o=n<e.length?e[n].fromB:1e9,a=r<t.length?t[r]:1e9,l=Math.min(o,a);if(1e9==l)break;let h=l+s,c=l,u=h;for(;;)if(r<t.length&&t[r]<=c){let i=t[r+1];r+=2,c=Math.max(c,i);for(let t=n;t<e.length&&e[t].fromB<=c;t++)s=e[t].toA-e[t].toB;u=Math.max(u,i+s)}else{if(!(n<e.length&&e[n].fromB<=c))break;{let t=e[n++];c=Math.max(c,t.toB),u=Math.max(u,t.toA),s=t.toA-t.toB}}i.push(new hn(h,u,l,c))}return i}}class cn{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=I.empty(this.startState.doc.length);for(let e of i)this.changes=this.changes.compose(e.changes);let n=[];this.changes.iterChangedRanges((e,t,i,r)=>n.push(new hn(e,t,i,r))),this.changedRanges=n}static create(e,t,i){return new cn(e,t,i)}get viewportChanged(){return(4&this.flags)>0}get viewportMoved(){return(8&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(18&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const un=[];class fn{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return un}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,4&this.flags){this.flags&=-5;let e=this.domAttrs;e&&function(e,t){for(let i=e.attributes.length-1;i>=0;i--){let n=e.attributes[i].name;null==t[n]&&e.removeAttribute(n)}for(let i in t){let n=t[i];"style"==i?e.style.cssText=n:e.getAttribute(i)!=n&&e.setAttribute(i,n)}}(this.dom,e)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let t of this.children){if(t==e)return i;i+=t.length+t.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=qt(this.dom),n=this.length?e>0:t>0;return new ci(this.parent.dom,i+(n?1:0),0==e||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof On)return e;return null}static get(e){return e.cmTile}}class dn extends fn{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(2&this.flags)return;super.sync(e);let t,i=this.dom,n=null,r=(null==e?void 0:e.node)==i?e:null,s=0;for(let o of this.children){if(o.sync(e),s+=o.length+o.breakAfter,t=n?n.nextSibling:i.firstChild,r&&t!=o.dom&&(r.written=!0),o.dom.parentNode==i)for(;t&&t!=o.dom;)t=pn(t);else i.insertBefore(o.dom,t);n=o.dom}for(t=n?n.nextSibling:i.firstChild,r&&t&&(r.written=!0);t;)t=pn(t);this.length=s}}function pn(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}class On extends dn{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=fn.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,n=0,r=0;;)if(n==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&r++,n=t.pop()}else{let s=i.children[n++];if(s instanceof gn)t.push(n),i=s,n=0;else{let t=r+s.length,i=e(s,r);if(void 0!==i)return i;r=t+s.breakAfter}}}resolveBlock(e,t){let i,n,r=-1,s=-1;if(this.blockTiles((o,a)=>{let l=a+o.length;if(e>=a&&e<=l){if(o.isWidget()&&t>=-1&&t<=1){if(32&o.flags)return!0;16&o.flags&&(i=void 0)}(a<e||e==l&&(t<-1?o.length:o.covers(1)))&&(!i||!o.isWidget()&&i.isWidget())&&(i=o,r=e-a),(l>e||e==a&&(t>1?o.length:o.covers(-1)))&&(!n||!o.isWidget()&&n.isWidget())&&(n=o,s=e-a)}}),!i&&!n)throw new Error("No tile at position "+e);return i&&t<0||!n?{tile:i,offset:r}:{tile:n,offset:s}}}class gn extends dn{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return!!this.children.length&&(e<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(e,t){let i=new gn(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class mn extends dn{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,i){let n=new mn(t||document.createElement("div"),e);return t&&i||(n.flags|=4),n}get domAttrs(){return this.attrs}resolveInline(e,t,i){let n=null,r=-1,s=null,o=-1;!function e(a,l){for(let h=0,c=0;h<a.children.length&&c<=l;h++){let u=a.children[h],f=c+u.length;f>=l&&(u.isComposite()?e(u,l-c):(!s||s.isHidden&&(t>0||i&&vn(s,u)))&&(f>l||32&u.flags)?(s=u,o=l-c):(c<l||16&u.flags&&!u.isHidden)&&(n=u,r=l-c)),c=f}}(this,e);let a=(t<0?n:s)||n||s;return a?{tile:a,offset:a==n?r:o}:null}coordsIn(e,t){let i=this.resolveInline(e,t,!0);return i?i.tile.coordsIn(Math.max(0,i.offset),t):function(e){let t=e.dom.lastChild;if(!t)return e.dom.getBoundingClientRect();let i=Dt(t);return i[i.length-1]||null}(this)}domIn(e,t){let i=this.resolveInline(e,t);if(i){let{tile:e,offset:n}=i;if(this.dom.contains(e.dom))return e.isText()?new ci(e.dom,Math.min(e.dom.nodeValue.length,n)):e.domPosFor(n,16&e.flags?1:32&e.flags?-1:t);let r=i.tile.parent,s=!1;for(let e of r.children){if(s)return new ci(e.dom,0);e==i.tile&&(s=!0)}}return new ci(this.dom,0)}}function vn(e,t){let i=e.coordsIn(0,1),n=t.coordsIn(0,1);return i&&n&&n.top<i.bottom}class yn extends dn{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let i=new yn(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}}class wn extends fn{constructor(e,t){super(e,t.length),this.text=t}sync(e){2&this.flags||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let i=this.dom.nodeValue.length;e>i&&(e=i);let n=e,r=e,s=0;0==e&&t<0||e==i&&t>=0?Pt.chrome||Pt.gecko||(e?(n--,s=1):r<i&&(r++,s=-1)):t<0?n--:r<i&&r++;let o=si(this.dom,n,r).getClientRects();if(!o.length)return null;let a=o[(s?s<0:t>=0)?0:o.length-1];return Pt.safari&&!s&&0==a.width&&(a=Array.prototype.find.call(o,e=>e.width)||a),s?Ht(a,s<0):a||null}static of(e,t){let i=new wn(t||document.createTextNode(e),e);return t||(i.flags|=2),i}}class bn extends fn{constructor(e,t,i,n){super(e,t,n),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return!(48&this.flags)&&(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,i){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;if(i)return Ht(this.dom.getBoundingClientRect(),this.length?0==e:t<=0);{let t=this.dom.getClientRects(),i=null;if(!t.length)return null;let n=!!(16&this.flags)||!(32&this.flags)&&e>0;for(let r=n?t.length-1:0;i=t[r],!(e>0?0==r:r==t.length-1||i.top<i.bottom);r+=n?-1:1);return Ht(i,!n)}}get overrideDOMText(){if(!this.length)return P.empty;let{root:e}=this;if(!e)return P.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,i,n,r){return r||(r=e.toDOM(t),e.editable||(r.contentEditable="false")),new bn(r,i,e,n)}}class Sn extends fn{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return P.empty}coordsIn(e){return this.dom.getBoundingClientRect()}}class xn{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,i){let{tile:n,index:r,beforeBreak:s,parents:o}=this;for(;e||t>0;)if(n.isComposite())if(s){if(!e)break;i&&i.break(),e--,s=!1}else if(r==n.children.length){if(!e&&!o.length)break;i&&i.leave(n),s=!!n.breakAfter,({tile:n,index:r}=o.pop()),r++}else{let a=n.children[r],l=a.breakAfter;!(t>0?a.length<=e:a.length<e)||i&&!1===i.skip(a,0,a.length)&&a.isComposite?(o.push({tile:n,index:r}),n=a,r=0,i&&a.isComposite()&&i.enter(a)):(s=!!l,r++,e-=a.length)}else if(r==n.length)s=!!n.breakAfter,({tile:n,index:r}=o.pop()),r++;else{if(!e)break;{let t=Math.min(e,n.length-r);i&&i.skip(n,r,r+t),e-=t,r+=t}}return this.tile=n,this.index=r,this.beforeBreak=s,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class kn{constructor(e,t,i,n){this.from=e,this.to=t,this.wrapper=i,this.rank=n}}class Qn{constructor(e,t,i){this.cache=e,this.root=t,this.blockWrappers=i,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,i,n){var r;this.flushBuffer();let s=this.ensureMarks(t,i),o=s.lastChild;o&&o.isText()&&!(8&o.flags)&&o.length+e.length<512?(this.cache.reused.set(o,2),(s.children[s.children.length-1]=new wn(o.dom,o.text+e)).parent=s):s.append(n||wn.of(e,null===(r=this.cache.find(wn))||void 0===r?void 0:r.dom)),this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let i=this.curLine;i.dom!=t.line.dom&&(i.setDOM(this.cache.reused.has(t.line)?Zn(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let n=i;for(let e=t.marks.length-1;e>=0;e--){let i=t.marks[e],r=n.lastChild;if(r instanceof yn&&r.mark.eq(i.mark))r.dom!=i.dom&&r.setDOM(Zn(i.dom)),n=r;else{if(this.cache.reused.get(i)){let e=fn.get(i.dom);e&&e.setDOM(Zn(i.dom))}let e=yn.of(i.mark,i.dom);n.append(e),n=e}this.cache.reused.set(i,2)}let r=fn.get(e.text);r&&this.cache.reused.set(r,2);let s=new wn(e.text,e.text.nodeValue);s.flags|=8,this.pos=e.range.toB,n.append(s)}addInlineWidget(e,t,i){let n=this.afterWidget&&48&e.flags&&(48&this.afterWidget.flags)==(48&e.flags);n||this.flushBuffer();let r=this.ensureMarks(t,i);n||16&e.flags||r.append(this.getBuffer(1)),r.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){(this.afterWidget||this.lastBlock).length+=e,this.pos+=e}addLineStart(e,t){var i;e||(e=Tn);let n=mn.start(e,t||(null===(i=this.cache.find(mn))||void 0===i?void 0:i.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var i;let n=this.curLine;for(let r=e.length-1;r>=0;r--){let s,o=e[r];if(t>0&&(s=n.lastChild)&&s instanceof yn&&s.mark.eq(o))n=s,t--;else{let e=yn.of(o,null===(i=this.cache.find(yn,e=>e.mark.eq(o)))||void 0===i?void 0:i.dom);n.append(e),n=e,t=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;e&&An(this.curLine,!1)&&("BR"==e.dom.nodeName||!e.isWidget()||Pt.ios&&An(this.curLine,!0))||this.curLine.append(this.cache.findWidget(Rn,0,32)||new bn(Rn.toDOM(),0,Rn,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=102*e.rank+e.value.rank,i=new kn(e.from,e.to,e.value,t),n=this.wrappers.length;for(;n>0&&(this.wrappers[n-1].rank-i.rank||this.wrappers[n-1].to-i.to)<0;)n--;this.wrappers.splice(n,0,i)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let i of this.wrappers){let n=t.lastChild;if(i.from<this.pos&&n instanceof gn&&n.wrapper.eq(i.wrapper))t=n;else{let n=gn.of(i.wrapper,null===(e=this.cache.find(gn,e=>e.wrapper.eq(i.wrapper)))||void 0===e?void 0:e.dom);t.append(n),t=n}}return t}blockPosCovered(){let e=this.lastBlock;return null!=e&&!e.breakAfter&&(!e.isWidget()||(160&e.flags)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(Sn,void 0,1);return i&&(i.flags=t),i||new Sn(t)}flushBuffer(){!this.afterWidget||32&this.afterWidget.flags||(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class $n{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:t,lineBreak:i,done:n}=this.cursor.next(this.skipCount);if(this.skipCount=0,n)throw new Error("Ran out of text content when drawing inline views");this.text=t;let r=this.textOff=Math.min(e,t.length);return i?null:t.slice(0,r)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}}const Pn=[bn,mn,wn,yn,Sn,gn,On];for(let e=0;e<Pn.length;e++)Pn[e].bucket=e;class _n{constructor(e){this.view=e,this.buckets=Pn.map(()=>[]),this.index=Pn.map(()=>0),this.reused=new Map}add(e){let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let n=e.bucket,r=this.buckets[n],s=this.index[n];for(let e=r.length-1;e>=0;e--){let o=(e+s)%r.length,a=r[o];if((!t||t(a))&&!this.reused.has(a))return r.splice(o,1),o<s&&this.index[n]--,this.reused.set(a,i),a}return null}findWidget(e,t,i){let n=this.buckets[0];if(n.length)for(let r=0,s=0;;r++){if(r==n.length){if(s)return null;s=1,r=0}let o=n[r];if(!this.reused.has(o)&&(0==s?o.widget.compare(e):o.widget.constructor==e.constructor&&e.updateDOM(o.dom,this.view,o.widget)))return n.splice(r,1),r<this.index[0]&&this.index[0]--,o.widget==e&&o.length==t&&(497&o.flags)==i?(this.reused.set(o,1),o):(this.reused.set(o,2),new bn(o.dom,t,e,-498&o.flags|i))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}}class Cn{constructor(e,t,i,n,r){this.view=e,this.decorations=n,this.disallowBlockEffectsFor=r,this.openWidget=!1,this.openMarks=0,this.cache=new _n(e),this.text=new $n(e.state.doc),this.builder=new Qn(this.cache,new On(e,e.contentDOM),De.iter(i)),this.cache.reused.set(t,2),this.old=new xn(t),this.reuseWalker={skip:(e,t,i)=>{if(this.cache.add(e),e.isComposite())return!1},enter:e=>this.cache.add(e),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let n=0,r=0,s=0;;){let o=s<e.length?e[s++]:null,a=o?o.fromA:this.old.root.length;if(a>n){let e=a-n;this.preserve(e,!s,!o),n=a,r+=e}if(!o)break;t&&o.fromA<=t.range.fromA&&o.toA>=t.range.toA?(this.forward(o.fromA,t.range.fromA,t.range.fromA<t.range.toA?1:-1),this.emit(r,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,i),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,o.toA),this.emit(t.range.toB,o.toB)):(this.forward(o.fromA,o.toA),this.emit(r,o.toB)),r=o.toB,n=o.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,i){let n=function(e){let t=[];for(let i=e.parents.length;i>1;i--){let n=i==e.parents.length?e.tile:e.parents[i].tile;n instanceof yn&&t.push(n.mark)}return t}(this.old),r=this.openMarks;this.old.advance(e,i?1:-1,{skip:(e,t,i)=>{if(e.isWidget())if(this.openWidget)this.builder.continueWidget(i-t);else{let s=i>0||t<e.length?bn.of(e.widget,this.view,i-t,496&e.flags,this.cache.maybeReuse(e)):this.cache.reuse(e);256&s.flags?(s.flags&=-2,this.builder.addBlockWidget(s)):(this.builder.ensureLine(null),this.builder.addInlineWidget(s,n,r),r=n.length)}else if(e.isText())this.builder.ensureLine(null),t||i!=e.length||this.cache.reused.has(e)?(this.cache.add(e),this.builder.addText(e.text.slice(t,i),n,r)):this.builder.addText(e.text,n,r,this.cache.reuse(e)),r=n.length;else if(e.isLine())e.flags&=-2,this.cache.reused.set(e,1),this.builder.addLine(e);else if(e instanceof Sn)this.cache.add(e);else{if(!(e instanceof yn))return!1;this.builder.ensureLine(null),this.builder.addMark(e,n,r),this.cache.reused.set(e,1),r=n.length}this.openWidget=!1},enter:e=>{e.isLine()?this.builder.addLineStart(e.attrs,this.cache.maybeReuse(e)):(this.cache.add(e),e instanceof yn&&n.unshift(e.mark)),this.openWidget=!1},leave:e=>{e.isLine()?n.length&&(n.length=r=0):e instanceof yn&&(n.shift(),r=Math.min(r,n.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,n=this.builder,r=0,s=De.spans(this.decorations,e,t,{point:(e,t,s,o,a,l)=>{if(s instanceof zt){if(this.disallowBlockEffectsFor[l]){if(s.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.view.state.doc.lineAt(e).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=o.length,a>o.length)n.continueWidget(t-e);else{let r=s.widget||(s.block?Mn.block:Mn.inline),l=function(e){let t=e.isReplace?(e.startSide<0?64:0)|(e.endSide>0?128:0):e.startSide>0?32:16;return e.block&&(t|=256),t}(s),h=this.cache.findWidget(r,t-e,l)||bn.of(r,this.view,t-e,l);s.block?(s.startSide>0&&n.addLineStartIfNotCovered(i),n.addBlockWidget(h)):(n.ensureLine(i),n.addInlineWidget(h,o,a))}i=null}else i=function(e,t){let i=t.spec.attributes,n=t.spec.class;return i||n?(e||(e={class:"cm-line"}),i&&_t(i,e),n&&(e.class+=" "+n),e):e}(i,s);t>e&&this.text.skip(t-e)},span:(e,t,r,s)=>{for(let o=e;o<t;){let a=this.text.next(Math.min(512,t-o));null==a?(n.addLineStartIfNotCovered(i),n.addBreak(),o++):(n.ensureLine(i),n.addText(a,r,o==e?s:r.length),o+=a.length),i=null}}});n.addLineStartIfNotCovered(i),this.openWidget=s>r,this.openMarks=s}forward(e,t,i=1){t-e<=10?this.old.advance(t-e,i,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,i,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let n=e.parentNode;;n=n.parentNode){let e=fn.get(n);if(n==this.view.contentDOM)break;e instanceof yn?t.push(e):(null==e?void 0:e.isLine())?i=e:e instanceof gn||("DIV"!=n.nodeName||i||n==this.view.contentDOM?i||t.push(yn.of(new Et({tagName:n.nodeName.toLowerCase(),attributes:Zt(n)}),n)):i=new mn(n,Tn))}return{line:i,marks:t}}}function An(e,t){let i=e=>{for(let n of e.children)if((t?n.isText():n.length)||i(n))return!0;return!1};return i(e)}const Tn={class:"cm-line"};function Zn(e){let t=fn.get(e);return t&&t.setDOM(e.cloneNode()),e}class Mn extends Mt{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}Mn.inline=new Mn("span"),Mn.block=new Mn("div");const Rn=new class extends Mt{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class Xn{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=Xt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new On(e,e.contentDOM),this.updateInner([new hn(0,0,0,e.state.doc.length)],null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:e,toA:t})=>t<this.minWidthFrom||e>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?n=this.domChanged.newSel.head:function(e,t){let i=!1;return t&&e.iterChangedRanges((e,n)=>{e<t.to&&n>t.from&&(i=!0)}),i}(e.changes,this.hasComposition)||e.selectionSet||(n=e.state.selection.main.head));let r=n>-1?function(e,t,i){let n=jn(e,i);if(!n)return null;let{node:r,from:s,to:o}=n,a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(e.state.doc.sliceString(n.from,n.to)!=a)return null;let l=t.invertedDesc;return{range:new hn(l.mapPos(s),l.mapPos(o),s,o),text:r}}(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:t,to:n}=this.hasComposition;i=new hn(t,n,e.changes.mapPos(t,-1),e.changes.mapPos(n,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(Pt.ie||Pt.chrome)&&!r&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.blockWrappers;this.updateDeco();let a=function(e,t,i){let n=new zn;return De.compare(e,t,i,n),n.changes}(s,this.decorations,e.changes);a.length&&(i=hn.extendWithRanges(i,a));let l=function(e,t,i){let n=new Ln;return De.compare(e,t,i,n),n.changes}(o,this.blockWrappers,e.changes);return l.length&&(i=hn.extendWithRanges(i,l)),r&&!i.some(e=>e.fromA<=r.range.fromA&&e.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),!(2&this.tile.flags&&0==i.length||(this.updateInner(i,r),e.transactions.length&&(this.lastUpdate=Date.now()),0))}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let i=this.tile,n=new Cn(this.view,i,this.blockWrappers,this.decorations,this.dynamicDecorationMap);t&&fn.get(t.text)&&n.cache.reused.set(fn.get(t.text),2),this.tile=n.run(e,t),En(i,n.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let n=Pt.chrome||Pt.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(n),!n||!n.written&&i.selectionRange.focusNode==n.node&&this.tile.dom.contains(n.node)||(this.forceSelection=!0),this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let e of this.tile.children)e.isWidget()&&e.widget instanceof Yn&&n.push(e.dom);i.updateGaps(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let e of t.effects)e.is(Ii)&&(this.editContextFormatting=e.value)}updateSelection(e=!1,t=!1){!e&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let{dom:i}=this.tile,n=this.view.root.activeElement,r=n==i,s=!r&&!(this.view.state.facet(Ni)||i.tabIndex>-1)&&It(i,this.view.observer.selectionRange)&&!(n&&i.contains(n));if(!(r||t||s))return;let o=this.forceSelection;this.forceSelection=!1;let a,l,h=this.view.state.selection.main;if(h.empty?l=a=this.inlineDOMNearPos(h.anchor,h.assoc||1):(l=this.inlineDOMNearPos(h.head,h.head==h.from?1:-1),a=this.inlineDOMNearPos(h.anchor,h.anchor==h.from?1:-1)),Pt.gecko&&h.empty&&!this.hasComposition&&1==(c=a).node.nodeType&&c.node.firstChild&&(0==c.offset||"false"==c.node.childNodes[c.offset-1].contentEditable)&&(c.offset==c.node.childNodes.length||"false"==c.node.childNodes[c.offset].contentEditable)){let e=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(e,a.node.childNodes[a.offset]||null)),a=l=new ci(e,0),o=!0}var c;let u=this.view.observer.selectionRange;!o&&u.focusNode&&(Nt(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Nt(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,h))||(this.view.observer.ignore(()=>{Pt.android&&Pt.chrome&&i.contains(u.focusNode)&&function(e,t){for(let i=e;i&&i!=t;i=i.assignedSlot||i.parentNode)if(1==i.nodeType&&"false"==i.contentEditable)return!0;return!1}(u.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let e=Bt(this.view.root);if(e)if(h.empty){if(Pt.gecko){let e=(t=a.node,r=a.offset,1!=t.nodeType?0:(r&&"false"==t.childNodes[r-1].contentEditable?1:0)|(r<t.childNodes.length&&"false"==t.childNodes[r].contentEditable?2:0));if(e&&3!=e){let t=(1==e?li:hi)(a.node,a.offset);t&&(a=new ci(t.node,t.offset))}}e.collapse(a.node,a.offset),null!=h.bidiLevel&&void 0!==e.caretBidiLevel&&(e.caretBidiLevel=h.bidiLevel)}else if(e.extend){e.collapse(a.node,a.offset);try{e.extend(l.node,l.offset)}catch(e){}}else{let t=document.createRange();h.anchor>h.head&&([a,l]=[l,a]),t.setEnd(l.node,l.offset),t.setStart(a.node,a.offset),e.removeAllRanges(),e.addRange(t)}var t,r;s&&this.view.root.activeElement==i&&(i.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new ci(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new ci(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&Nt(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=Bt(e.root),{anchorNode:n,anchorOffset:r}=e.observer.selectionRange;if(!(i&&t.empty&&t.assoc&&i.modify))return;let s=this.lineAt(t.head,t.assoc);if(!s)return;let o=s.posAtStart;if(t.head==o||t.head==o+s.length)return;let a=this.coordsAt(t.head,-1),l=this.coordsAt(t.head,1);if(!a||!l||a.bottom>l.top)return;let h=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(h.node,h.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let c=e.observer.selectionRange;e.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=t.from&&i.collapse(n,r)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return 2&this.tile.dom.compareDocumentPosition(e)?0:this.view.state.doc.length;let n=i.posAtStart;if(!i.isComposite())return i.isText()?e==i.dom?n+t:n+(t?i.length:0):n;{let r;if(e==i.dom)r=i.dom.childNodes[t];else{let n=0==Ft(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==i.dom)break;0==n&&t.firstChild!=t.lastChild&&(n=e==t.firstChild?-1:1),e=t}r=n<0?e:e.nextSibling}if(r==i.dom.firstChild)return n;for(;r&&!fn.get(r);)r=r.nextSibling;if(!r)return n+i.length;for(let e=0,t=n;;e++){let n=i.children[e];if(n.dom==r)return t;t+=n.length+n.breakAfter}}}domAtPos(e,t){let{tile:i,offset:n}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(n,t)}inlineDOMNearPos(e,t){let i,n,r=-1,s=!1,o=-1,a=!1;return this.tile.blockTiles((t,l)=>{if(t.isWidget()){if(32&t.flags&&l>=e)return!0;16&t.flags&&(s=!0)}else{let h=l+t.length;if(l<=e&&(i=t,r=e-l,s=h<e),h>=e&&!n&&(n=t,o=e-l,a=l>e),l>e&&n)return!0}}),i||n?(s&&n?i=null:a&&i&&(n=null),i&&t<0||!n?i.domIn(r,t):n.domIn(o,t)):this.domAtPos(e,t)}coordsAt(e,t){let{tile:i,offset:n}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof Yn?null:i.coordsInWidget(n,t,!0):i.coordsIn(n,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);return t.isLine()?function e(t,i){if(t.isComposite())for(let n of t.children){if(n.length>=i){let t=e(n,i);if(t)return t}if((i-=n.length)<0)break}else if(t.isText()&&i<t.length){let e=j(t.text,i);if(e==i)return null;let n=si(t.dom,i,e).getClientRects();for(let e=0;e<n.length;e++){let t=n[e];if(e==n.length-1||t.top<t.bottom&&t.left<t.right)return t}}return null}(t,i):null}measureVisibleLineHeights(e){let t=[],{from:i,to:n}=e,r=this.view.contentDOM.clientWidth,s=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,a=this.view.textDirection==ui.LTR,l=0,h=(e,c,u)=>{for(let f=0;f<e.children.length&&!(c>n);f++){let n=e.children[f],d=c+n.length,p=n.dom.getBoundingClientRect(),{height:O}=p;if(u&&!f&&(l+=p.top-u.top),n instanceof gn)d>i&&h(n,c,p);else if(c>=i&&(l>0&&t.push(-l),t.push(O+l),l=0,s)){let e=n.dom.lastChild,t=e?Dt(e):[];if(t.length){let e=t[t.length-1],i=a?e.right-p.left:p.right-e.left;i>o&&(o=i,this.minWidth=r,this.minWidthFrom=c,this.minWidthTo=d)}}u&&f==e.children.length-1&&(l+=u.bottom-p.bottom),c=d+n.breakAfter}};return h(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return"rtl"==getComputedStyle(t.dom).direction?ui.RTL:ui.LTR}measureTextSize(){let e=this.tile.blockTiles(e=>{if(e.isLine()&&e.children.length&&e.length<=20){let t,i=0;for(let n of e.children){if(!n.isText()||/[^ -~]/.test(n.text))return;let e=Dt(n.dom);if(1!=e.length)return;i+=e[0].width,t=e[0].height}if(i)return{lineHeight:e.dom.getBoundingClientRect().height,charWidth:i/e.length,textHeight:t}}});if(e)return e;let t,i,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(r);let e=Dt(r.firstChild)[0];t=r.getBoundingClientRect().height,i=e&&e.width?e.width/27:7,n=e&&e.height?e.height:t,r.remove()}),{lineHeight:t,charWidth:i,textHeight:n}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let r=n==t.viewports.length?null:t.viewports[n],s=r?r.from-1:this.view.state.doc.length;if(s>i){let n=(t.lineBlockAt(s).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(Xt.replace({widget:new Yn(n),block:!0,inclusive:!0,isBlockGap:!0}).range(i,s))}if(!r)break;i=r.to+1}return Xt.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ji).map(t=>(this.dynamicDecorationMap[e++]="function"==typeof t)?t(this.view):t),i=!1,n=this.view.state.facet(tn).map((e,t)=>{let n="function"==typeof e;return n&&(i=!0),n?e(this.view):e});for(n.length&&(this.dynamicDecorationMap[e++]=i,t.push(De.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(en).map(e=>"function"==typeof e?e(this.view):e)}scrollIntoView(e){var t;if(e.isSnapshot){let t=this.view.viewState.lineBlockAt(e.range.head);return this.view.scrollDOM.scrollTop=t.top-e.yMargin,void(this.view.scrollDOM.scrollLeft=e.xMargin)}for(let t of this.view.state.facet(Vi))try{if(t(this.view,e.range,e))return!0}catch(e){Di(this.view.state,e,"scroll handler")}let i,{range:n}=e,r=this.coordsAt(n.head,null!==(t=n.assoc)&&void 0!==t?t:n.empty?0:n.head>n.anchor?-1:1);if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let s=an(this.view),o={left:r.left-s.left,top:r.top-s.top,right:r.right+s.right,bottom:r.bottom+s.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;if(function(e,t,i,n,r,s,o,a){let l=e.ownerDocument,h=l.defaultView||window;for(let c=e,u=!1;c&&!u;)if(1==c.nodeType){let e,f=c==l.body,d=1,p=1;if(f)e=Kt(h);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(u=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let t=c.getBoundingClientRect();({scaleX:d,scaleY:p}=Jt(c,t)),e={left:t.left,right:t.left+c.clientWidth*d,top:t.top,bottom:t.top+c.clientHeight*p}}let O=0,g=0;if("nearest"==r)t.top<e.top+o?(g=t.top-(e.top+o),i>0&&t.bottom>e.bottom+g&&(g=t.bottom-e.bottom+o)):t.bottom>e.bottom-o&&(g=t.bottom-e.bottom+o,i<0&&t.top-g<e.top&&(g=t.top-(e.top+o)));else{let n=t.bottom-t.top,s=e.bottom-e.top;g=("center"==r&&n<=s?t.top+n/2-s/2:"start"==r||"center"==r&&i<0?t.top-o:t.bottom-s+o)-e.top}if("nearest"==n?t.left<e.left+s?(O=t.left-(e.left+s),i>0&&t.right>e.right+O&&(O=t.right-e.right+s)):t.right>e.right-s&&(O=t.right-e.right+s,i<0&&t.left<e.left+O&&(O=t.left-(e.left+s))):O=("center"==n?t.left+(t.right-t.left)/2-(e.right-e.left)/2:"start"==n==a?t.left-s:t.right-(e.right-e.left)+s)-e.left,O||g)if(f)h.scrollBy(O,g);else{let e=0,i=0;if(g){let e=c.scrollTop;c.scrollTop+=g/p,i=(c.scrollTop-e)*p}if(O){let t=c.scrollLeft;c.scrollLeft+=O/d,e=(c.scrollLeft-t)*d}t={left:t.left-e,top:t.top-i,right:t.right-e,bottom:t.bottom-i},e&&Math.abs(e-O)<1&&(n="nearest"),i&&Math.abs(i-g)<1&&(r="nearest")}if(f)break;(t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)&&(t={left:Math.max(t.left,e.left),right:Math.min(t.right,e.right),top:Math.max(t.top,e.top),bottom:Math.min(t.bottom,e.bottom)}),c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,o,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,a),-a),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==ui.LTR),window.visualViewport&&window.innerHeight-window.visualViewport.height>1&&(r.top>window.pageYOffset+window.visualViewport.offsetTop+window.visualViewport.height||r.bottom<window.pageYOffset+window.visualViewport.offsetTop)){let e=this.view.docView.lineAt(n.head,1);e&&e.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(e){let t=e=>e.isWidget()||e.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){En(this.tile)}}function En(e,t){let i=null==t?void 0:t.get(e);if(1!=i){null==i&&e.destroy();for(let i of e.children)En(i,t)}}function jn(e,t){let i=e.observer.selectionRange;if(!i.focusNode)return null;let n=li(i.focusNode,i.focusOffset),r=hi(i.focusNode,i.focusOffset),s=n||r;if(r&&n&&r.node!=n.node){let t=fn.get(r.node);if(!t||t.isText()&&t.text!=r.node.nodeValue)s=r;else if(e.docView.lastCompositionAfterCursor){let e=fn.get(n.node);!e||e.isText()&&e.text!=n.node.nodeValue||(s=r)}}if(e.docView.lastCompositionAfterCursor=s!=n,!s)return null;let o=t-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}let zn=class{constructor(){this.changes=[]}compareRange(e,t){Yt(e,t,this.changes)}comparePoint(e,t){Yt(e,t,this.changes)}boundChange(e){Yt(e,e,this.changes)}};class Ln{constructor(){this.changes=[]}compareRange(e,t){Yt(e,t,this.changes)}comparePoint(){}boundChange(e){Yt(e,e,this.changes)}}class Yn extends Mt{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function Vn(e,t,i,n){let r=e.state.doc.lineAt(t.head),s=e.bidiSpans(r),o=e.textDirectionAt(r.from);for(let a=t,l=null;;){let t=_i(r,s,o,a,i),h=Pi;if(!t){if(r.number==(i?e.state.doc.lines:1))return a;h="\n",r=e.state.doc.line(r.number+(i?1:-1)),s=e.bidiSpans(r),t=e.visualLineSide(r,!i)}if(l){if(!l(h))return a}else{if(!n)return t;l=n(h)}a=t}}function Bn(e,t,i){for(;;){let n=0;for(let r of e)r.between(t-1,t+1,(e,r,s)=>{if(t>e&&t<r){let s=n||i||(t-e<r-t?-1:1);t=s<0?e:r,n=s}});if(!n)return t}}function Wn(e,t){let i=null;for(let n=0;n<t.ranges.length;n++){let r=t.ranges[n],s=null;if(r.empty){let t=Bn(e,r.from,0);t!=r.from&&(s=K.cursor(t,-1))}else{let t=Bn(e,r.from,-1),i=Bn(e,r.to,1);t==r.from&&i==r.to||(s=K.range(r.from==r.anchor?t:i,r.from==r.head?t:i))}s&&(i||(i=t.ranges.slice()),i[n]=s)}return i?K.create(i,t.mainIndex):t}function In(e,t,i){let n=Bn(e.state.facet(nn).map(t=>t(e)),i.from,t.head>i.from?-1:1);return n==i.from?i:K.cursor(n,n<i.from?1:-1)}class Dn{constructor(e,t){this.pos=e,this.assoc=t}}function Nn(e,t,i,n){let r,s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,{x:a,y:l}=t,h=l-o;for(;;){if(h<0)return new Dn(0,1);if(h>e.viewState.docHeight)return new Dn(e.state.doc.length,-1);if(r=e.elementAtHeight(h),null==n)break;if(r.type==Rt.Text){if(n<0?r.to<e.viewport.from:r.from>e.viewport.to)break;let t=e.docView.coordsAt(n<0?r.from:r.to,n>0?-1:1);if(t&&(n<0?t.top<=h+o:t.bottom>=h+o))break}let t=e.viewState.heightOracle.textHeight/2;h=n>0?r.bottom+t:r.top-t}if(e.viewport.from>=r.to||e.viewport.to<=r.from){if(i)return null;if(r.type==Rt.Text){let t=function(e,t,i,n,r){let s=Math.round((n-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&i.height>1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;s+=Math.floor((r-i.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let o=e.state.sliceDoc(i.from,i.to);return i.from+function(e,t,i){for(let n=0,r=0;;){if(r>=t)return n;if(n==e.length)break;r+=9==e.charCodeAt(n)?i-r%i:1,n=j(e,n)}return e.length}(o,s,e.state.tabSize)}(e,s,r,a,l);return new Dn(t,t==r.from?1:-1)}}if(r.type!=Rt.Text)return h<(r.top+r.bottom)/2?new Dn(r.from,1):new Dn(r.to,-1);let c=e.docView.lineAt(r.from,2);return c&&c.length==r.length||(c=e.docView.lineAt(r.from,-2)),new qn(e,a,l,e.textDirectionAt(r.from)).scanTile(c,r.from)}class qn{constructor(e,t,i,n){this.view=e,this.x=t,this.y=i,this.baseDir=n,this.line=null,this.spans=null}bidiSpansAt(e){return(!this.line||this.line.from>e||this.line.to<e)&&(this.line=this.view.state.doc.lineAt(e),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(e,t){let{line:i,spans:n}=this.bidiSpansAt(e);return n[bi.find(n,e-i.from,-1,t)].level==this.baseDir}dirAt(e,t){let{line:i,spans:n}=this.bidiSpansAt(e);return n[bi.find(n,e-i.from,-1,t)].dir}bidiIn(e,t){let{spans:i,line:n}=this.bidiSpansAt(e);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+n.from<t)}scan(e,t,i=!1){let n,r,s,o=0,a=e.length-1,l=new Set,h=this.bidiIn(e[0],e[a]),c=-1,u=1e9;e:for(;o<a;){let i=a-o,f=o+a>>1;t:if(l.has(f)){let e=o+Math.floor(Math.random()*i);for(let t=0;t<i;t++){if(!l.has(e)){f=e;break t}e++,e==a&&(e=o)}break e}l.add(f);let d=t(f);if(d)for(let t=0;t<d.length;t++){let i=d[t],l=0;if(!(0==i.width&&d.length>1)){if(i.bottom<this.y)(!n||n.bottom<i.bottom)&&(n=i),l=1;else if(i.top>this.y)(!r||r.top>i.top)&&(r=i),l=-1;else{let e=i.left>this.x?this.x-i.left:i.right<this.x?this.x-i.right:0,t=Math.abs(e);t<u&&(c=f,u=t,s=i),e&&(l=e<0==(this.baseDir==ui.LTR)?-1:1)}-1!=l||h&&!this.baseDirAt(e[f],1)?1!=l||h&&!this.baseDirAt(e[f+1],-1)||(o=f+1):a=f}}}if(!s){let i=n&&(!r||this.y-n.bottom<r.top-this.y)?n:r;return this.y=(i.top+i.bottom)/2,this.scan(e,t,!0)}if(u&&!i){let{top:i,bottom:o}=s;if(n&&n.bottom>(i+i+o)/3)return this.y=n.bottom-1,this.scan(e,t,!0);if(r&&r.top<(i+o+o)/3)return this.y=r.top+1,this.scan(e,t,!0)}let f=(h?this.dirAt(e[c],1):this.baseDir)==ui.LTR;return{i:c,after:this.x>(s.left+s.right)/2==f}}scanText(e,t){let i=[];for(let n=0;n<e.length;n=j(e.text,n))i.push(t+n);i.push(t+e.length);let n=this.scan(i,n=>{let r=i[n]-t,s=i[n+1]-t;return si(e.dom,r,s).getClientRects()});return n.after?new Dn(i[n.i+1],-1):new Dn(i[n.i],1)}scanTile(e,t){if(!e.length)return new Dn(t,1);if(1==e.children.length){let i=e.children[0];if(i.isText())return this.scanText(i,t);if(i.isComposite())return this.scanTile(i,t)}let i=[t];for(let n=0,r=t;n<e.children.length;n++)i.push(r+=e.children[n].length);let n=this.scan(i,t=>{let i=e.children[t];return 48&i.flags?null:(1==i.dom.nodeType?i.dom:si(i.dom,0,i.length)).getClientRects()}),r=e.children[n.i],s=i[n.i];return r.isText()?this.scanText(r,s):r.isComposite()?this.scanTile(r,s):n.after?new Dn(i[n.i+1],-1):new Dn(s,1)}}const Un="￿";class Gn{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(ze.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Un}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let n=e;;){this.findPointBefore(i,n);let e=this.text.length;this.readNode(n);let r=fn.get(n),s=n.nextSibling;if(s==t){(null==r?void 0:r.breakAfter)&&!s&&i!=this.view.contentDOM&&this.lineBreak();break}let o=fn.get(s);(r&&o?r.breakAfter:(r?r.breakAfter:Ut(n))||Ut(s)&&("BR"!=n.nodeName||(null==r?void 0:r.isWidget()))&&this.text.length>e)&&!Hn(s,t)&&this.lineBreak(),n=s}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let r,s=-1,o=1;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(r=n.exec(t))&&(s=r.index,o=r[0].length),this.append(t.slice(i,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=o-1);i=s+o}}readNode(e){let t=fn.get(e),i=t&&t.overrideDOMText;if(null!=i){this.findPointInside(e,i.length);for(let e=i.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(3==e.nodeType?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(Fn(e,i.node,i.offset)?t:0))}}function Fn(e,t,i){for(;;){if(!t||i<Ft(t))return!1;if(t==e)return!0;i=qt(t)+1,t=t.parentNode}}function Hn(e,t){let i;for(;e!=t&&e;e=e.nextSibling){let t=fn.get(e);if(!(null==t?void 0:t.isWidget()))return!1;t&&(i||(i=[])).push(t)}if(i)for(let e of i){let t=e.overrideDOMText;if(null==t?void 0:t.length)return!1}return!0}class Kn{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}}class Jn{constructor(e,t,i,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:r,impreciseAnchor:s}=e.docView,o=e.state.selection;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=er(e.docView.tile,t,i,0))){let t=r||s?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:s}=e.observer.selectionRange;return i&&(t.push(new Kn(i,n)),r==i&&s==n||t.push(new Kn(r,s))),t}(e),i=new Gn(t,e);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(e,t){if(0==e.length)return null;let i=e[0].pos,n=2==e.length?e[1].pos:i;return i>-1&&n>-1?K.single(i+t,n+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,i=r&&r.node==t.focusNode&&r.offset==t.focusOffset||!Wt(e.contentDOM,t.focusNode)?o.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),n=s&&s.node==t.anchorNode&&s.offset==t.anchorOffset||!Wt(e.contentDOM,t.anchorNode)?o.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset),a=e.viewport;if((Pt.ios||Pt.chrome)&&o.main.empty&&i!=n&&(a.from>0||a.to<e.state.doc.length)){let t=Math.min(i,n),r=Math.max(i,n),s=a.from-t,o=a.to-r;0!=s&&1!=s&&0!=t||0!=o&&-1!=o&&r!=e.state.doc.length||(i=0,n=e.state.doc.length)}if(e.inputState.composing>-1&&o.ranges.length>1)this.newSel=o.replaceRange(K.range(n,i));else if(e.lineWrapping&&n==i&&(!o.main.empty||o.main.head!=i)&&e.inputState.lastTouchTime>Date.now()-100){let t=e.coordsAtPos(i,-1),n=0;t&&(n=e.inputState.lastTouchY<=t.bottom?-1:1),this.newSel=K.create([K.cursor(i,n)])}else this.newSel=K.single(n,i)}}}function er(e,t,i,n){if(e.isComposite()){let r=-1,s=-1,o=-1,a=-1;for(let l=0,h=n,c=n;l<e.children.length;l++){let n=e.children[l],u=h+n.length;if(h<t&&u>i)return er(n,t,i,h);if(u>=t&&-1==r&&(r=l,s=h),h>i&&n.dom.parentNode==e.dom){o=l,a=c;break}c=u,h=u+n.breakAfter}return{from:s,to:a<0?n+e.length:a,startDOM:(r?e.children[r-1].dom.nextSibling:null)||e.dom.firstChild,endDOM:o<e.children.length&&o>=0?e.children[o].dom:null}}return e.isText()?{from:n,to:n+e.length,startDOM:e.dom,endDOM:e.dom.nextSibling}:null}function tr(e,t){let i,{newSel:n}=t,{state:r}=e,s=r.selection.main,o=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:e,to:n}=t.bounds,a=s.from,l=null;(8===o||Pt.android&&t.text.length<n-e)&&(a=s.to,l="end");let h,c,u=r.doc.sliceString(e,n,Un);!s.empty&&s.from>=e&&s.to<=n&&(t.typeOver||u!=t.text)&&u.slice(0,s.from-e)==t.text.slice(0,s.from-e)&&u.slice(s.to-e)==t.text.slice(h=t.text.length-(u.length-(s.to-e)))?i={from:s.from,to:s.to,insert:P.of(t.text.slice(s.from-e,h).split(Un))}:(c=nr(u,t.text,a-e,l))&&(Pt.chrome&&13==o&&c.toB==c.from+2&&t.text.slice(c.from,c.toB)==Un+Un&&c.toB--,i={from:e+c.from,to:e+c.toA,insert:P.of(t.text.slice(c.from,c.toB).split(Un))})}else n&&(!e.hasFocus&&r.facet(Ni)||rr(n,s))&&(n=null);if(!i&&!n)return!1;if((Pt.mac||Pt.android)&&i&&i.from==i.to&&i.from==s.head-1&&/^\. ?$/.test(i.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(n&&2==i.insert.length&&(n=K.single(n.main.anchor-1,n.main.head-1)),i={from:i.from,to:i.to,insert:P.of([i.insert.toString().replace("."," ")])}):r.doc.lineAt(s.from).to<s.to&&e.docView.lineHasWidget(s.to)&&e.inputState.insertingTextAt>Date.now()-50?i={from:s.from,to:s.to,insert:r.toText(e.inputState.insertingText)}:Pt.chrome&&i&&i.from==i.to&&i.from==s.head&&"\n "==i.insert.toString()&&e.lineWrapping&&(n&&(n=K.single(n.main.anchor-1,n.main.head-1)),i={from:s.from,to:s.to,insert:P.of([" "])}),i)return ir(e,i,n,o);if(n&&!rr(n,s)){let t=!1,i="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),i=e.inputState.lastSelectionOrigin,"select.pointer"==i&&(n=Wn(r.facet(nn).map(t=>t(e)),n))),e.dispatch({selection:n,scrollIntoView:t,userEvent:i}),!0}return!1}function ir(e,t,i,n=-1){if(Pt.ios&&e.inputState.flushIOSKey(t))return!0;let r=e.state.selection.main;if(Pt.android&&(t.to==r.to&&(t.from==r.from||t.from==r.from-1&&" "==e.state.sliceDoc(t.from,r.from))&&1==t.insert.length&&2==t.insert.lines&&oi(e.contentDOM,"Enter",13)||(t.from==r.from-1&&t.to==r.to&&0==t.insert.length||8==n&&t.insert.length<t.to-t.from&&t.to>r.head)&&oi(e.contentDOM,"Backspace",8)||t.from==r.from&&t.to==r.to+1&&0==t.insert.length&&oi(e.contentDOM,"Delete",46)))return!0;let s,o=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let a=()=>s||(s=function(e,t,i){let n,r=e.state,s=r.selection.main,o=-1;if(t.from==t.to&&t.from<s.from||t.from>s.to){let i=t.from<s.from?-1:1,n=i<0?s.from:s.to,a=Bn(r.facet(nn).map(t=>t(e)),n,i);t.from==a&&(o=a)}if(o>-1)n={changes:t,selection:K.cursor(t.from+t.insert.length,-1)};else if(t.from>=s.from&&t.to<=s.to&&t.to-t.from>=(s.to-s.from)/3&&(!i||i.main.empty&&i.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let i=s.from<t.from?r.sliceDoc(s.from,t.from):"",o=s.to>t.to?r.sliceDoc(t.to,s.to):"";n=r.replaceSelection(e.state.toText(i+t.insert.sliceString(0,void 0,e.state.lineBreak)+o))}else{let o=r.changes(t),a=i&&i.main.to<=o.newLength?i.main:void 0;if(r.selection.ranges.length>1&&(e.inputState.composing>=0||e.inputState.compositionPendingChange)&&t.to<=s.to+10&&t.to>=s.to-10){let l,h=e.state.sliceDoc(t.from,t.to),c=i&&jn(e,i.main.head);if(c){let e=t.insert.length-(t.to-t.from);l={from:c.from,to:c.to-e}}else l=e.state.doc.lineAt(s.head);let u=s.to-t.to;n=r.changeByRange(i=>{if(i.from==s.from&&i.to==s.to)return{changes:o,range:a||i.map(o)};let n=i.to-u,c=n-h.length;if(e.state.sliceDoc(c,n)!=h||n>=l.from&&c<=l.to)return{range:i};let f=r.changes({from:c,to:n,insert:t.insert}),d=i.to-s.to;return{changes:f,range:a?K.range(Math.max(0,a.anchor+d),Math.max(0,a.head+d)):i.map(f)}})}else n={changes:o,selection:a&&r.selection.replaceRange(a)}}let a="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,a+=".compose",e.inputState.compositionFirstChange&&(a+=".start",e.inputState.compositionFirstChange=!1)),r.update(n,{userEvent:a,scrollIntoView:!0})}(e,t,i));return e.state.facet(Xi).some(i=>i(e,t.from,t.to,o,a))||e.dispatch(a()),!0}function nr(e,t,i,n){let r=Math.min(e.length,t.length),s=0;for(;s<r&&e.charCodeAt(s)==t.charCodeAt(s);)s++;if(s==r&&e.length==t.length)return null;let o=e.length,a=t.length;for(;o>0&&a>0&&e.charCodeAt(o-1)==t.charCodeAt(a-1);)o--,a--;return"end"==n&&(i-=o+Math.max(0,s-Math.min(o,a))-s),o<s&&e.length<t.length?(s-=i<=s&&i>=o?s-i:0,a=s+(a-o),o=s):a<s&&(s-=i<=s&&i>=a?s-i:0,o=s+(o-a),a=s),{from:s,toA:o,toB:a}}function rr(e,t){return t.head==e.main.head&&t.anchor==e.main.anchor}class sr{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastTouchX=0,this.lastTouchY=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.lastWheelEvent=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Pt.safari&&e.contentDOM.addEventListener("input",()=>null),Pt.gecko&&function(e){Cr.has(e)||(Cr.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let i,n=t.target;n!=e.contentDOM;n=n.parentNode)if(!n||11==n.nodeType||(i=fn.get(n))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e)))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let e of i.observers)e(this.view,t);for(let e of i.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=ar(e),i=this.handlers,n=this.view.contentDOM;for(let e in t)if("scroll"!=e){let r=!t[e].handlers.length,s=i[e];s&&r!=!s.handlers.length&&(n.removeEventListener(e,this.handleEvent),s=null),s||n.addEventListener(e,this.handleEvent,{passive:r})}for(let e in i)"scroll"==e||t[e]||n.removeEventListener(e,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=e.keyCode&&cr.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Pt.android&&Pt.chrome&&!e.synthetic&&(13==e.keyCode||8==e.keyCode))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return!Pt.ios||e.synthetic||e.altKey||e.metaKey||e.shiftKey||!((t=lr.find(t=>t.keyCode==e.keyCode))&&!e.ctrlKey||hr.indexOf(e.key)>-1&&e.ctrlKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(e){let t=this.pendingIOSKey;return!!t&&!("Enter"==t.key&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString()))&&(this.pendingIOSKey=void 0,oi(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!(!/^key/.test(e.type)||e.synthetic)&&(this.composing>0||!!(Pt.safari&&!Pt.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function or(e,t){return(i,n)=>{try{return t.call(e,n,i)}catch(e){Di(i.state,e)}}}function ar(e){let t=Object.create(null);function i(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let t of e){let e=t.spec,n=e&&e.plugin.domEventHandlers,r=e&&e.plugin.domEventObservers;if(n)for(let e in n){let r=n[e];r&&i(e).handlers.push(or(t.value,r))}if(r)for(let e in r){let n=r[e];n&&i(e).observers.push(or(t.value,n))}}for(let e in dr)i(e).handlers.push(dr[e]);for(let e in pr)i(e).observers.push(pr[e]);return t}const lr=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],hr="dthko",cr=[16,17,18,20,91,92,224,225];function ur(e){return.7*Math.max(0,e)+8}class fr{constructor(e,t,i,n){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=ei(e.contentDOM),this.atoms=e.state.facet(nn).map(t=>t(e));let r=e.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(ze.allowMultipleSelections)&&function(e,t){let i=e.state.facet(Ai);return i.length?i[0](t):Pt.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:i}=e.state.selection;if(i.empty)return!1;let n=Bt(e.root);if(!n||0==n.rangeCount)return!0;let r=n.getRangeAt(0).getClientRects();for(let e=0;e<r.length;e++){let i=r[e];if(i.left<=t.clientX&&i.right>=t.clientX&&i.top<=t.clientY&&i.bottom>=t.clientY)return!0}return!1}(e,t)||1!=xr(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&function(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,n=0,r=0,s=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:o}=this.scrollParents.y.getBoundingClientRect());let a=an(this.view);e.clientX-a.left<=n+6?t=-ur(n-e.clientX):e.clientX+a.right>=s-6&&(t=ur(e.clientX-s)),e.clientY-a.top<=r+6?i=-ur(r-e.clientY):e.clientY+a.bottom>=o-6&&(i=ur(e.clientY-o)),this.setScrollSpeed(t,i)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),!1===this.dragging&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=Wn(this.atoms,this.style.get(e,this.extend,this.multiple));!this.mustSelect&&i.eq(t.state.selection,!1===this.dragging)||this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(e=>e.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}const dr=Object.create(null),pr=Object.create(null),Or=Pt.ie&&Pt.ie_version<15||Pt.ios&&Pt.webkit_version<604;function gr(e,t,i){for(let n of e.facet(t))i=n(i,e);return i}function mr(e,t){t=gr(e.state,ji,t);let i,{state:n}=e,r=1,s=n.toText(t),o=s.lines==n.selection.ranges.length,a=null!=Qr&&n.selection.ranges.every(e=>e.empty)&&Qr==s.toString();if(a){let e=-1;i=n.changeByRange(i=>{let a=n.doc.lineAt(i.from);if(a.from==e)return{range:i};e=a.from;let l=n.toText((o?s.line(r++).text:t)+n.lineBreak);return{changes:{from:a.from,insert:l},range:K.cursor(i.from+l.length)}})}else i=o?n.changeByRange(e=>{let t=s.line(r++);return{changes:{from:e.from,to:e.to,insert:t.text},range:K.cursor(e.from+t.length)}}):n.replaceSelection(s);e.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function vr(e,t,i,n){if(1==n)return K.cursor(t,i);if(2==n)return function(e,t,i=1){let n=e.charCategorizer(t),r=e.doc.lineAt(t),s=t-r.from;if(0==r.length)return K.cursor(t);0==s?i=1:s==r.length&&(i=-1);let o=s,a=s;i<0?o=j(r.text,s,!1):a=j(r.text,s);let l=n(r.text.slice(o,a));for(;o>0;){let e=j(r.text,o,!1);if(n(r.text.slice(e,o))!=l)break;o=e}for(;a<r.length;){let e=j(r.text,a);if(n(r.text.slice(a,e))!=l)break;a=e}return K.range(o+r.from,a+r.from)}(e.state,t,i);{let n=e.docView.lineAt(t,i),r=e.state.doc.lineAt(n?n.posAtEnd:t),s=n?n.posAtStart:r.from,o=n?n.posAtEnd:r.to;return o<e.state.doc.length&&o==r.to&&o++,K.range(s,o)}}pr.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},pr.wheel=pr.mousewheel=e=>{e.inputState.lastWheelEvent=Date.now()},dr.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&0!=e.inputState.tabFocusMode&&(e.inputState.tabFocusMode=Date.now()+2e3),!1),pr.touchstart=(e,t)=>{let i=e.inputState,n=t.targetTouches[0];i.lastTouchTime=Date.now(),n&&(i.lastTouchX=n.clientX,i.lastTouchY=n.clientY),i.setSelectionOrigin("select.pointer")},pr.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},dr.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let n of e.state.facet(Zi))if(i=n(e,t),i)break;if(i||0!=t.button||(i=function(e,t){let i=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),n=xr(t),r=e.state.selection;return{update(e){e.docChanged&&(i.pos=e.changes.mapPos(i.pos),r=r.map(e.changes))},get(t,s,o){let a,l=e.posAndSideAtCoords({x:t.clientX,y:t.clientY},!1),h=vr(e,l.pos,l.assoc,n);if(i.pos!=l.pos&&!s){let t=vr(e,i.pos,i.assoc,n),r=Math.min(t.from,h.from),s=Math.max(t.to,h.to);h=r<h.from?K.range(r,s,h.assoc):K.range(s,r,h.assoc)}return s?r.replaceRange(r.main.extend(h.from,h.to,h.assoc)):o&&1==n&&r.ranges.length>1&&(a=function(e,t){for(let i=0;i<e.ranges.length;i++){let{from:n,to:r}=e.ranges[i];if(n<=t&&r>=t)return K.create(e.ranges.slice(0,i).concat(e.ranges.slice(i+1)),e.mainIndex==i?0:e.mainIndex-(e.mainIndex>i?1:0))}return null}(r,l.pos))?a:o?r.addRange(h):K.create([h])}}}(e,t)),i){let n=!e.hasFocus;e.inputState.startMouseSelection(new fr(e,t,i,n)),n&&e.observer.ignore(()=>{ri(e.contentDOM);let t=e.root.activeElement;t&&!t.contains(e.contentDOM)&&t.blur()});let r=e.inputState.mouseSelection;if(r)return r.start(t),!1===r.dragging}else e.inputState.setSelectionOrigin("select.pointer");return!1};const yr=Pt.ie&&Pt.ie_version<=11;let wr=null,br=0,Sr=0;function xr(e){if(!yr)return e.detail;let t=wr,i=Sr;return wr=e,Sr=Date.now(),br=!t||i>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(br+1)%3:1}function kr(e,t,i,n){if(!(i=gr(e.state,ji,i)))return;let r=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:s}=e.inputState,o=n&&s&&function(e,t){let i=e.state.facet(Ti);return i.length?i[0](t):Pt.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:s.from,to:s.to}:null,a={from:r,insert:i},l=e.state.changes(o?[o,a]:a);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),e.inputState.draggedContent=null}dr.dragstart=(e,t)=>{let{selection:{main:i}}=e.state;if(t.target.draggable){let n=e.docView.tile.nearest(t.target);if(n&&n.isWidget()){let e=n.posAtStart,t=e+n.length;(e>=i.to||t<=i.from)&&(i=K.range(e,t))}}let{inputState:n}=e;return n.mouseSelection&&(n.mouseSelection.dragging=!0),n.draggedContent=i,t.dataTransfer&&(t.dataTransfer.setData("Text",gr(e.state,zi,e.state.sliceDoc(i.from,i.to))),t.dataTransfer.effectAllowed="copyMove"),!1},dr.dragend=e=>(e.inputState.draggedContent=null,!1),dr.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let i=t.dataTransfer.files;if(i&&i.length){let n=Array(i.length),r=0,s=()=>{++r==i.length&&kr(e,t,n.filter(e=>null!=e).join(e.state.lineBreak),!1)};for(let e=0;e<i.length;e++){let t=new FileReader;t.onerror=s,t.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(n[e]=t.result),s()},t.readAsText(i[e])}return!0}{let i=t.dataTransfer.getData("Text");if(i)return kr(e,t,i,!0),!0}return!1},dr.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let i=Or?null:t.clipboardData;return i?(mr(e,i.getData("text/plain")||i.getData("text/uri-list")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{e.focus(),i.remove(),mr(e,i.value)},50)}(e),!1)};let Qr=null;dr.copy=dr.cut=(e,t)=>{if(!It(e.contentDOM,e.observer.selectionRange))return!1;let{text:i,ranges:n,linewise:r}=function(e){let t=[],i=[],n=!1;for(let n of e.selection.ranges)n.empty||(t.push(e.sliceDoc(n.from,n.to)),i.push(n));if(!t.length){let r=-1;for(let{from:n}of e.selection.ranges){let s=e.doc.lineAt(n);s.number>r&&(t.push(s.text),i.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),r=s.number}n=!0}return{text:gr(e,zi,t.join(e.lineBreak)),ranges:i,linewise:n}}(e.state);if(!i&&!r)return!1;Qr=r?i:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:n,scrollIntoView:!0,userEvent:"delete.cut"});let s=Or?null:t.clipboardData;return s?(s.clearData(),s.setData("text/plain",i),!0):(function(e,t){let i=e.dom.parentNode;if(!i)return;let n=i.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.value=t,n.focus(),n.selectionEnd=t.length,n.selectionStart=0,setTimeout(()=>{n.remove(),e.focus()},50)}(e,i),!1)};const $r=ke.define();function Pr(e,t){let i=[];for(let n of e.facet(Ei)){let r=n(e,t);r&&i.push(r)}return i.length?e.update({effects:i,annotations:$r.of(!0)}):null}function _r(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let i=Pr(e.state,t);i?e.dispatch(i):e.update([])}},10)}pr.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),_r(e)},pr.blur=e=>{e.observer.clearSelectionRange(),_r(e)},pr.compositionstart=pr.compositionupdate=e=>{e.observer.editContext||(null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))},pr.compositionend=e=>{e.observer.editContext||(e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,Pt.chrome&&Pt.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))},pr.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},dr.beforeinput=(e,t)=>{var i,n;if("insertText"!=t.inputType&&"insertCompositionText"!=t.inputType||(e.inputState.insertingText=t.data,e.inputState.insertingTextAt=Date.now()),"insertReplacementText"==t.inputType&&e.observer.editContext){let n=null===(i=t.dataTransfer)||void 0===i?void 0:i.getData("text/plain"),r=t.getTargetRanges();if(n&&r.length){let t=r[0],i=e.posAtDOM(t.startContainer,t.startOffset),s=e.posAtDOM(t.endContainer,t.endOffset);return ir(e,{from:i,to:s,insert:e.state.toText(n)},null),!0}}let r;if(Pt.chrome&&Pt.android&&(r=lr.find(e=>e.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout(()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return Pt.ios&&"deleteContentForward"==t.inputType&&e.observer.flushSoon(),Pt.safari&&"insertText"==t.inputType&&e.inputState.composing>=0&&setTimeout(()=>pr.compositionend(e,t),20),!1};const Cr=new Set,Ar=["pre-wrap","normal","pre-line","break-spaces"];let Tr=!1;function Zr(){Tr=!1}class Mr{constructor(e){this.lineWrapping=e,this.doc=P.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Ar.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let n=e[i];n<0?i++:this.heightSamples[Math.floor(10*n)]||(t=!0,this.heightSamples[Math.floor(10*n)]=!0)}return t}refresh(e,t,i,n,r,s){let o=Ar.indexOf(e)>-1,a=Math.abs(t-this.lineHeight)>.3||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=t,this.charWidth=i,this.textHeight=n,this.lineLength=r,a){this.heightSamples={};for(let e=0;e<s.length;e++){let t=s[e];t<0?e++:this.heightSamples[Math.floor(10*t)]=!0}}return a}}class Rr{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}}class Xr{constructor(e,t,i,n,r){this.from=e,this.length=t,this.top=i,this.height=n,this._content=r}get type(){return"number"==typeof this._content?Rt.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof zt?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Xr(this.from,this.length+e.length,this.top,this.height+e.height,t)}}var Er=function(e){return e[e.ByPos=0]="ByPos",e[e.ByHeight=1]="ByHeight",e[e.ByPosNoHeight=2]="ByPosNoHeight",e}(Er||(Er={}));const jr=.001;class zr{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>jr&&(Tr=!0),this.height=e)}replace(e,t,i){return zr.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let r=this,s=i.doc;for(let o=n.length-1;o>=0;o--){let{fromA:a,toA:l,fromB:h,toB:c}=n[o],u=r.lineAt(a,Er.ByPosNoHeight,i.setDoc(t),0,0),f=u.to>=l?u:r.lineAt(l,Er.ByPosNoHeight,i,0,0);for(c+=f.to-l,l=f.to;o>0&&u.from<=n[o-1].toA;)a=n[o-1].fromA,h=n[o-1].fromB,o--,a<u.from&&(u=r.lineAt(a,Er.ByPosNoHeight,i,0,0));h+=u.from-a,a=u.from;let d=Nr.build(i.setDoc(s),e,h,c);r=Lr(r,r.replace(a,l,d))}return r.updateHeight(i,0)}static empty(){return new Br(0,0,0)}static of(e){if(1==e.length)return e[0];let t=0,i=e.length,n=0,r=0;for(;;)if(t==i)if(n>2*r){let r=e[t-1];r.break?e.splice(--t,1,r.left,null,r.right):e.splice(--t,1,r.left,r.right),i+=1+r.break,n-=r.size}else{if(!(r>2*n))break;{let t=e[i];t.break?e.splice(i,1,t.left,null,t.right):e.splice(i,1,t.left,t.right),i+=2+t.break,r-=t.size}}else if(n<r){let i=e[t++];i&&(n+=i.size)}else{let t=e[--i];t&&(r+=t.size)}let s=0;return null==e[t-1]?(s=1,t--):null==e[t]&&(s=1,i++),new Ir(zr.of(e.slice(0,t)),s,zr.of(e.slice(i)))}}function Lr(e,t){return e==t?e:(e.constructor!=t.constructor&&(Tr=!0),t)}zr.prototype.size=1;const Yr=Xt.replace({});class Vr extends zr{constructor(e,t,i){super(e,t),this.deco=i,this.spaceAbove=0}mainBlock(e,t){return new Xr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,i,n){return this.spaceAbove&&e<i+this.spaceAbove?new Xr(n,0,i,this.spaceAbove,Yr):this.mainBlock(i,n)}lineAt(e,t,i,n,r){let s=this.mainBlock(n,r);return this.spaceAbove?this.blockAt(0,i,n,r).join(s):s}forEachLine(e,t,i,n,r,s){e<=r+this.length&&t>=r&&s(this.lineAt(0,Er.ByPos,i,n,r))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setMeasuredHeight(n),this.outdated=!1,this}toString(){return`block(${this.length})`}}class Br extends Vr{constructor(e,t,i){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(e,t){return new Xr(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,i){let n=i[0];return 1==i.length&&(n instanceof Br||n instanceof Wr&&4&n.flags)&&Math.abs(this.length-n.length)<10?(n instanceof Wr?n=new Br(n.length,this.height,this.spaceAbove):n.height=this.height,this.outdated||(n.outdated=!1),n):zr.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setMeasuredHeight(n):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Wr extends zr{constructor(e){super(e,0)}heightMetrics(e,t){let i,n=e.doc.lineAt(t).number,r=e.doc.lineAt(t+this.length).number,s=r-n+1,o=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*s);i=t/s,this.length>s+1&&(o=(this.height-t)/(this.length-s-1))}else i=this.height/s;return{firstLine:n,lastLine:r,perLine:i,perChar:o}}blockAt(e,t,i,n){let{firstLine:r,lastLine:s,perLine:o,perChar:a}=this.heightMetrics(t,n);if(t.lineWrapping){let r=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),s=t.doc.lineAt(r),l=o+s.length*a,h=Math.max(i,e-l/2);return new Xr(s.from,s.length,h,l,0)}{let n=Math.max(0,Math.min(s-r,Math.floor((e-i)/o))),{from:a,length:l}=t.doc.line(r+n);return new Xr(a,l,i+o*n,o,0)}}lineAt(e,t,i,n,r){if(t==Er.ByHeight)return this.blockAt(e,i,n,r);if(t==Er.ByPosNoHeight){let{from:t,to:n}=i.doc.lineAt(e);return new Xr(t,n-t,0,0,0)}let{firstLine:s,perLine:o,perChar:a}=this.heightMetrics(i,r),l=i.doc.lineAt(e),h=o+l.length*a,c=l.number-s,u=n+o*c+a*(l.from-r-c);return new Xr(l.from,l.length,Math.max(n,Math.min(u,n+this.height-h)),h,0)}forEachLine(e,t,i,n,r,s){e=Math.max(e,r),t=Math.min(t,r+this.length);let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(i,r);for(let h=e,c=n;h<=t;){let t=i.doc.lineAt(h);if(h==e){let i=t.number-o;c+=a*i+l*(e-r-i)}let n=a+l*t.length;s(new Xr(t.from,t.length,c,n,0)),c+=n,h=t.to+1}}replace(e,t,i){let n=this.length-t;if(n>0){let e=i[i.length-1];e instanceof Wr?i[i.length-1]=new Wr(e.length+n):i.push(null,new Wr(n-1))}if(e>0){let t=i[0];t instanceof Wr?i[0]=new Wr(e+t.length):i.unshift(new Wr(e-1),null)}return zr.of(i)}decomposeLeft(e,t){t.push(new Wr(e-1),null)}decomposeRight(e,t){t.push(null,new Wr(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let r=t+this.length;if(n&&n.from<=t+this.length&&n.more){let i=[],s=Math.max(t,n.from),o=-1;for(n.from>t&&i.push(new Wr(n.from-t-1).updateHeight(e,t));s<=r&&n.more;){let t=e.doc.lineAt(s).length;i.length&&i.push(null);let r=n.heights[n.index++],a=0;r<0&&(a=-r,r=n.heights[n.index++]),-1==o?o=r:Math.abs(r-o)>=jr&&(o=-2);let l=new Br(t,r,a);l.outdated=!1,i.push(l),s+=t+1}s<=r&&i.push(null,new Wr(r-s).updateHeight(e,s));let a=zr.of(i);return(o<0||Math.abs(a.height-this.height)>=jr||Math.abs(o-this.heightMetrics(e,t).perLine)>=jr)&&(Tr=!0),Lr(this,a)}return(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Ir extends zr{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return 1&this.flags}blockAt(e,t,i,n){let r=i+this.left.height;return e<r?this.left.blockAt(e,t,i,n):this.right.blockAt(e,t,r,n+this.left.length+this.break)}lineAt(e,t,i,n,r){let s=n+this.left.height,o=r+this.left.length+this.break,a=t==Er.ByHeight?e<s:e<o,l=a?this.left.lineAt(e,t,i,n,r):this.right.lineAt(e,t,i,s,o);if(this.break||(a?l.to<o:l.from>o))return l;let h=t==Er.ByPosNoHeight?Er.ByPosNoHeight:Er.ByPos;return a?l.join(this.right.lineAt(o,h,i,s,o)):this.left.lineAt(o,h,i,n,r).join(l)}forEachLine(e,t,i,n,r,s){let o=n+this.left.height,a=r+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,n,r,s),t>=a&&this.right.forEachLine(e,t,i,o,a,s);else{let l=this.lineAt(a,Er.ByPos,i,n,r);e<l.from&&this.left.forEachLine(e,l.from-1,i,n,r,s),l.to>=e&&l.from<=t&&s(l),t>l.to&&this.right.forEachLine(l.to+1,t,i,o,a,s)}}replace(e,t,i){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let r=[];e>0&&this.decomposeLeft(e,r);let s=r.length;for(let e of i)r.push(e);if(e>0&&Dr(r,s-1),t<this.length){let e=r.length;this.decomposeRight(t,r),Dr(r,e)}return zr.of(r)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?zr.of(this.break?[e,null,t]:[e,t]):(this.left=Lr(this.left,e),this.right=Lr(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:r,right:s}=this,o=t+r.length+this.break,a=null;return n&&n.from<=t+r.length&&n.more?a=r=r.updateHeight(e,t,i,n):r.updateHeight(e,t,i),n&&n.from<=o+s.length&&n.more?a=s=s.updateHeight(e,o,i,n):s.updateHeight(e,o,i),a?this.balanced(r,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Dr(e,t){let i,n;null==e[t]&&(i=e[t-1])instanceof Wr&&(n=e[t+1])instanceof Wr&&e.splice(t-1,3,new Wr(i.length+1+n.length))}class Nr{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof Br?i.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new Br(e-this.pos,-1,0)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let n=i.widget?i.widget.estimatedHeight:0,r=i.widget?i.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let s=t-e;i.block?this.addBlock(new Vr(s,n,i)):(s||r||n>=5)&&this.addLineDeco(n,r,s)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Br(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let i=new Wr(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Br)return e;let t=new Br(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof Br||this.isCovered?(this.writtenTo<this.pos||null==t)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new Br(0,-1,0));let i=e;for(let e of this.nodes)e instanceof Br&&e.updateHeight(this.oracle,i),i+=e?e.length:1;return this.nodes}static build(e,t,i,n){let r=new Nr(i,e);return De.spans(t,i,n,r,0),r.finish(i)}}class qr{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,n){(e<t||i&&i.heightRelevant||n&&n.heightRelevant)&&Yt(e,t,this.changes,5)}}function Ur(e,t){let i=e.getBoundingClientRect(),n=e.ownerDocument,r=n.defaultView||window,s=Math.max(0,i.left),o=Math.min(r.innerWidth,i.right),a=Math.max(0,i.top),l=Math.min(r.innerHeight,i.bottom);for(let t=e.parentNode;t&&t!=n.body;)if(1==t.nodeType){let i=t,n=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=n.overflow){let n=i.getBoundingClientRect();s=Math.max(s,n.left),o=Math.min(o,n.right),a=Math.max(a,n.top),l=Math.min(t==e.parentNode?r.innerHeight:l,n.bottom)}t="absolute"==n.position||"fixed"==n.position?i.offsetParent:i.parentNode}else{if(11!=t.nodeType)break;t=t.host}return{left:s-i.left,right:Math.max(s,o)-i.left,top:a-(i.top+t),bottom:Math.max(a,l)-(i.top+t)}}function Gr(e,t){let i=e.getBoundingClientRect();return{left:0,right:i.right-i.left,top:t,bottom:i.bottom-(i.top+t)}}class Fr{constructor(e,t,i,n){this.from=e,this.to=t,this.size=i,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],r=t[i];if(n.from!=r.from||n.to!=r.to||n.size!=r.size)return!1}return!0}draw(e,t){return Xt.replace({widget:new Hr(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}}class Hr extends Mt{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Kr{constructor(e,t){this.view=e,this.state=t,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scaleX=1,this.scaleY=1,this.scrollOffset=0,this.scrolledToBottom=!1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=is,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ui.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let i=t.facet(Ki).some(e=>"function"!=typeof e&&"cm-lineWrapping"==e.class);this.heightOracle=new Mr(i),this.stateDeco=ns(t),this.heightMap=zr.empty().applyChanges(this.stateDeco,P.empty,this.heightOracle.setDoc(t.doc),[new hn(0,0,0,t.doc.length)]);for(let e=0;e<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());e++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=Xt.set(this.lineGaps.map(e=>e.draw(this,!1))),this.scrollParent=e.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some(({from:e,to:t})=>n>=e&&n<=t)){let{from:t,to:i}=this.lineBlockAt(n);e.push(new Jr(t,i))}}return this.viewports=e.sort((e,t)=>e.from-t.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?is:new rs(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(ss(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=ns(this.state);let n=e.changedRanges,r=hn.extendWithRanges(n,function(e,t,i){let n=new qr;return De.compare(e,t,i,n,0),n.changes}(i,this.stateDeco,e?e.changes:I.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);Zr(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=s||Tr)&&(e.flags|=2),o?(this.scrollAnchorPos=e.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=s);let a=r.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let l=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(l||!e.changes.empty||2&e.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Yi)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:e}=this,t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?ui.RTL:ui.LTR;let s=this.heightOracle.mustRefreshForWrapping(r)||"refresh"===this.mustMeasureContent,o=t.getBoundingClientRect(),a=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let l=0,h=0;if(o.width&&o.height){let{scaleX:e,scaleY:i}=Jt(t,o);(e>.005&&Math.abs(this.scaleX-e)>.005||i>.005&&Math.abs(this.scaleY-i)>.005)&&(this.scaleX=e,this.scaleY=i,l|=16,s=a=!0)}let c=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;this.paddingTop==c&&this.paddingBottom==u||(this.paddingTop=c,this.paddingBottom=u,l|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,l|=16);let f=ei(this.view.contentDOM,!1).y;f!=this.scrollParent&&(this.scrollParent=f,this.scrollAnchorHeight=-1,this.scrollOffset=0);let d=this.getScrollOffset();this.scrollOffset!=d&&(this.scrollAnchorHeight=-1,this.scrollOffset=d),this.scrolledToBottom=ai(this.scrollParent||e.win);let p=(this.printing?Gr:Ur)(t,this.paddingTop),O=p.top-this.pixelViewport.top,g=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView&&(this.inView=m,m&&(a=!0)),!this.inView&&!this.scrollTarget&&!function(e){let t=e.getBoundingClientRect(),i=e.ownerDocument.defaultView||window;return t.left<i.innerWidth&&t.right>0&&t.top<i.innerHeight&&t.bottom>0}(e.dom))return 0;let v=o.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=o.width,this.editorHeight=e.scrollDOM.clientHeight,l|=16),a){let t=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(t)&&(s=!0),s||n.lineWrapping&&Math.abs(v-this.contentDOMWidth)>n.charWidth){let{lineHeight:i,charWidth:o,textHeight:a}=e.docView.measureTextSize();s=i>0&&n.refresh(r,i,o,a,Math.max(5,v/o),t),s&&(e.docView.minWidth=0,l|=16)}O>0&&g>0?h=Math.max(O,g):O<0&&g<0&&(h=Math.min(O,g)),Zr();for(let i of this.viewports){let r=i.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(i);this.heightMap=(s?zr.empty().applyChanges(this.stateDeco,P.empty,this.heightOracle,[new hn(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,s,new Rr(i.from,r))}Tr&&(l|=2)}let y=!this.viewportIsAppropriate(this.viewport,h)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return y&&(2&l&&(l|=this.updateScaler()),this.viewport=this.getViewport(h,this.scrollTarget),l|=this.updateForViewport()),(2&l||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,e)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,r=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,a=new Jr(n.lineAt(s-1e3*i,Er.ByHeight,r,0,0).from,n.lineAt(o+1e3*(1-i),Er.ByHeight,r,0,0).to);if(t){let{head:e}=t.range;if(e<a.from||e>a.to){let i,s=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=n.lineAt(e,Er.ByPos,r,0,0);i="center"==t.y?(o.top+o.bottom)/2-s/2:"start"==t.y||"nearest"==t.y&&e<a.from?o.top:o.bottom-s,a=new Jr(n.lineAt(i-500,Er.ByHeight,r,0,0).from,n.lineAt(i+s+500,Er.ByHeight,r,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new Jr(this.heightMap.lineAt(i,Er.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,Er.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,Er.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(t,Er.ByPos,this.heightOracle,0,0),{visibleTop:s,visibleBottom:o}=this;return(0==e||n<=s-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||r>=o+Math.max(10,Math.min(i,250)))&&n>s-2e3&&r<o+2e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let n of e)t.touchesRange(n.from,n.to)||i.push(new Fr(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,n=i?1e4:2e3,r=n>>1,s=n<<1;if(this.defaultTextDirection!=ui.LTR&&!i)return[];let o=[],a=(n,s,l,h)=>{if(s-n<r)return;let c=this.state.selection.main,u=[c.from];c.empty||u.push(c.to);for(let e of u)if(e>n&&e<s)return a(n,e-10,l,h),void a(e+10,s,l,h);let f=function(e,t){for(let i of e)if(t(i))return i}(e,e=>e.from>=l.from&&e.to<=l.to&&Math.abs(e.from-n)<r&&Math.abs(e.to-s)<r&&!u.some(t=>e.from<t&&e.to>t));if(!f){if(s<l.to&&t&&i&&t.visibleRanges.some(e=>e.from<=s&&e.to>=s)){let e=t.moveToLineBoundary(K.cursor(s),!1,!0).head;e>n&&(s=e)}let e=this.gapSize(l,n,s,h);f=new Fr(n,s,e,i||e<2e6?e:2e6)}o.push(f)},l=t=>{if(t.length<s||t.type!=Rt.Text)return;let r=function(e,t,i){let n=[],r=e,s=0;return De.spans(i,e,t,{span(){},point(e,t){e>r&&(n.push({from:r,to:e}),s+=e-r),r=t}},20),r<t&&(n.push({from:r,to:t}),s+=t-r),{total:s,ranges:n}}(t.from,t.to,this.stateDeco);if(r.total<s)return;let o,l,h=this.scrollTarget?this.scrollTarget.range.head:null;if(i){let e,i,s=n/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=h){let n=ts(r,h),o=((this.visibleBottom-this.visibleTop)/2+s)/t.height;e=n-o,i=n+o}else e=(this.visibleTop-t.top-s)/t.height,i=(this.visibleBottom-t.top+s)/t.height;o=es(r,e),l=es(r,i)}else{let i=r.total*this.heightOracle.charWidth,s=n*this.heightOracle.charWidth,a=0;if(i>2e6)for(let i of e)i.from>=t.from&&i.from<t.to&&i.size!=i.displaySize&&i.from*this.heightOracle.charWidth+a<this.pixelViewport.left&&(a=i.size-i.displaySize);let c,u,f=this.pixelViewport.left+a,d=this.pixelViewport.right+a;if(null!=h){let e=ts(r,h),t=((d-f)/2+s)/i;c=e-t,u=e+t}else c=(f-s)/i,u=(d+s)/i;o=es(r,c),l=es(r,u)}o>t.from&&a(t.from,o,t,r),l<t.to&&a(l,t.to,t,r)};for(let e of this.viewportLines)Array.isArray(e.type)?e.type.forEach(l):l(e);return o}gapSize(e,t,i,n){let r=ts(n,i)-ts(n,t);return this.heightOracle.lineWrapping?e.height*r:n.total*this.heightOracle.charWidth*r}updateLineGaps(e){Fr.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Xt.set(e.map(e=>e.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];De.spans(t,this.viewport.from,this.viewport.to,{span(e,t){i.push({from:e,to:t})},point(){}},20);let n=0;if(i.length!=this.visibleRanges.length)n=12;else for(let t=0;t<i.length&&!(8&n);t++){let r=this.visibleRanges[t],s=i[t];r.from==s.from&&r.to==s.to||(n|=4,e&&e.mapPos(r.from,-1)==s.from&&e.mapPos(r.to,1)==s.to||(n|=8))}return this.visibleRanges=i,n}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||ss(this.heightMap.lineAt(e,Er.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||ss(this.heightMap.lineAt(this.scaler.fromDOM(e),Er.ByHeight,this.heightOracle,0,0),this.scaler)}getScrollOffset(){return(this.scrollParent==this.view.scrollDOM?this.scrollParent.scrollTop:(this.scrollParent?this.scrollParent.getBoundingClientRect().top:0)-this.view.contentDOM.getBoundingClientRect().top)*this.scaleY}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return ss(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Jr{constructor(e,t){this.from=e,this.to=t}}function es({total:e,ranges:t},i){if(i<=0)return t[0].from;if(i>=1)return t[t.length-1].to;let n=Math.floor(e*i);for(let e=0;;e++){let{from:i,to:r}=t[e],s=r-i;if(n<=s)return i+n;n-=s}}function ts(e,t){let i=0;for(let{from:n,to:r}of e.ranges){if(t<=r){i+=t-n;break}i+=r-n}return i/e.total}const is={toDOM:e=>e,fromDOM:e=>e,scale:1,eq(e){return e==this}};function ns(e){let t=e.facet(Ji).filter(e=>"function"!=typeof e),i=e.facet(tn).filter(e=>"function"!=typeof e);return i.length&&t.push(De.join(i)),t}class rs{constructor(e,t,i){let n=0,r=0,s=0;this.viewports=i.map(({from:i,to:r})=>{let s=t.lineAt(i,Er.ByPos,e,0,0).top,o=t.lineAt(r,Er.ByPos,e,0,0).bottom;return n+=o-s,{from:i,to:r,top:s,bottom:o,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let e of this.viewports)e.domTop=s+(e.top-r)*this.scale,s=e.domBottom=e.domTop+(e.bottom-e.top),r=e.bottom}toDOM(e){for(let t=0,i=0,n=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.top)return n+(e-i)*this.scale;if(e<=r.bottom)return r.domTop+(e-r.top);i=r.bottom,n=r.domBottom}}fromDOM(e){for(let t=0,i=0,n=0;;t++){let r=t<this.viewports.length?this.viewports[t]:null;if(!r||e<r.domTop)return i+(e-n)/this.scale;if(e<=r.domBottom)return r.top+(e-r.domTop);i=r.bottom,n=r.domBottom}}eq(e){return e instanceof rs&&this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to)}}function ss(e,t){if(1==t.scale)return e;let i=t.toDOM(e.top),n=t.toDOM(e.bottom);return new Xr(e.from,e.length,i,n-i,Array.isArray(e._content)?e._content.map(e=>ss(e,t)):e._content)}const os=te.define({combine:e=>e.join(" ")}),as=te.define({combine:e=>e.indexOf(!0)>-1}),ls=at.newName(),hs=at.newName(),cs=at.newName(),us={"&light":"."+hs,"&dark":"."+cs};function fs(e,t,i){return new at(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,t=>{if("&"==t)return e;if(!i||!i[t])throw new RangeError(`Unsupported selector: ${t}`);return i[t]}):e+" "+t})}const ds=fs("."+ls,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-selectionHandle":{backgroundColor:"currentColor",width:"1.5px"},".cm-selectionHandle-start::before, .cm-selectionHandle-end::before":{content:'""',backgroundColor:"inherit",borderRadius:"50%",width:"8px",height:"8px",position:"absolute",left:"-3.25px"},".cm-selectionHandle-start::before":{top:"-8px"},".cm-selectionHandle-end::before":{bottom:"-8px"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},us),ps={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Os=Pt.ie&&Pt.ie_version<=11;class gs{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new ti,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let e of t)this.queue.push(e);(Pt.ie&&Pt.ie_version<=11||Pt.ios&&e.composing)&&t.some(e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!Pt.android||!1===e.constructor.EDIT_CONTEXT||Pt.chrome&&Pt.chrome_version<126||(this.editContext=new ys(e),e.state.facet(Ni)&&(e.contentDOM.editContext=this.editContext.editContext)),Os&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver(()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(e=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){("change"!=e.type&&e.type||e.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(Ni)?i.root.activeElement!=this.dom:!It(this.dom,n))return;let r=n.anchorNode&&i.docView.tile.nearest(n.anchorNode);r&&r.isWidget()&&r.widget.ignoreEvent(e)?t||(this.selectionChanged=!1):(Pt.ie&&Pt.ie_version<=11||Pt.android&&Pt.chrome)&&!i.state.selection.main.empty&&n.focusNode&&Nt(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=Bt(e.root);if(!t)return!1;let i=Pt.safari&&11==e.root.nodeType&&e.root.activeElement==this.dom&&function(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return vs(e,i)}let i=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),i=e.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),i?vs(e,i):null}(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let n=It(this.dom,i);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&function(e,t){let i=t.focusNode,n=t.focusOffset;if(!i||t.anchorNode!=i||t.anchorOffset!=n)return!1;for(n=Math.min(n,Ft(i));;)if(n){if(1!=i.nodeType)return!1;let e=i.childNodes[n-1];"false"==e.contentEditable?n--:(i=e,n=Ft(i))}else{if(i==e)return!0;n=qt(i),i=i.parentNode}}(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(1==i.nodeType)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else{if(11!=i.nodeType)break;i=i.host}if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);for(let e of this.scrollTargets=t)e.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ps),Os&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),Os&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let e=()=>{let e=this.delayedAndroidKey;e&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&oi(this.dom,e.key,e.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(null===(i=this.delayedAndroidKey)||void 0===i?void 0:i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,n=!1;for(let r of e){let e=this.readMutation(r);e&&(e.typeOver&&(n=!0),-1==t?({from:t,to:i}=e):(t=Math.min(e.from,t),i=Math.max(e.to,i)))}return{from:t,to:i,typeOver:n}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),n=this.selectionChanged&&It(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Jn(this.view,e,t,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,n=tr(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!rr(this.view.state.selection,t.newSel.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty("attributes"==e.type),"childList"==e.type){let i=ms(t,e.previousSibling||e.target.previousSibling,-1),n=ms(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ni)!=e.state.facet(Ni)&&(e.view.contentDOM.editContext=e.state.facet(Ni)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let e of this.scrollTargets)e.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function ms(e,t,i){for(;t;){let n=fn.get(t);if(n&&n.parent==e)return n;let r=t.parentNode;t=r!=e.dom?r:i>0?t.nextSibling:t.previousSibling}return null}function vs(e,t){let i=t.startContainer,n=t.startOffset,r=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor,1);return Nt(o.node,o.offset,r,s)&&([i,n,r,s]=[r,s,i,n]),{anchorNode:i,anchorOffset:n,focusNode:r,focusOffset:s}}class ys{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let n=e.state.selection.main,{anchor:r,head:s}=n,o=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:o,drifted:!1});let l=a-o>i.text.length;o==this.from&&r<this.from?o=r:a==this.to&&r>this.to&&(a=r);let h=nr(e.state.sliceDoc(o,a),i.text,(l?n.from:n.to)-o,l?"end":null);if(!h){let t=K.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));return void(rr(t,n)||e.dispatch({selection:t,userEvent:"select"}))}let c={from:h.from+o,to:h.toA+o,insert:P.of(i.text.slice(h.from,h.toB).split("\n"))};if((Pt.mac||Pt.android)&&c.from==s-1&&/^\. ?$/.test(i.text)&&"off"==e.contentDOM.getAttribute("autocorrect")&&(c={from:o,to:a,insert:P.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!e.state.readOnly){let t=this.to-this.from+(c.to-c.from+c.insert.length);ir(e,c,K.single(this.toEditorPos(i.selectionStart,t),this.toEditorPos(i.selectionEnd,t)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),c.from<c.to&&!c.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let n=[],r=null;for(let t=this.toEditorPos(i.rangeStart),s=this.toEditorPos(i.rangeEnd);t<s;t++){let i=e.coordsForChar(t);r=i&&new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.top)||r||new DOMRect,n.push(r)}t.updateCharacterBounds(i.rangeStart,n)},this.handlers.textformatupdate=t=>{let i=[];for(let e of t.getTextFormats()){let t=e.underlineStyle,n=e.underlineThickness;if(!/none/i.test(t)&&!/none/i.test(n)){let r=this.toEditorPos(e.rangeStart),s=this.toEditorPos(e.rangeEnd);if(r<s){let e=`text-decoration: underline ${/^[a-z]/.test(t)?t+" ":"Dashed"==t?"dashed ":"Squiggle"==t?"wavy ":""}${/thin/i.test(n)?1:2}px`;i.push(Xt.mark({attributes:{style:e}}).range(r,s))}}}e.dispatch({effects:Ii.of(Xt.set(i))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:t}=this.composing;this.composing=null,t&&this.reset(e.state)}};for(let e in this.handlers)t.addEventListener(e,this.handlers[e]);this.measureReq={read:e=>{this.editContext.updateControlBounds(e.contentDOM.getBoundingClientRect());let t=Bt(e.root);t&&t.rangeCount&&this.editContext.updateSelectionBounds(t.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,n=this.pendingContextChange;return e.changes.iterChanges((r,s,o,a,l)=>{if(i)return;let h=l.length-(s-r);if(n&&s>=n.to){if(n.from==r&&n.to==s&&n.insert.eq(l))return n=this.pendingContextChange=null,t+=h,void(this.to+=h);n=null,this.revertPending(e.state)}if(r+=t,(s+=t)<=this.from)this.from+=h,this.to+=h;else if(r<this.to){if(r<this.from||s>this.to||this.to-this.from+l.length>3e4)return void(i=!0);this.editContext.updateText(this.toContextPos(r),this.toContextPos(s),l.toString()),this.to+=h}t+=h}),n&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(e=>!e.isUserEvent("input.type")&&e.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):this.applyEdits(e)&&this.rangeIsValid(e.state)?(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state):(this.pendingContextChange=null,this.reset(e.state)),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);this.editContext.selectionStart==i&&this.editContext.selectionEnd==n||this.editContext.updateSelection(i,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>3e4)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}}class ws{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(e=>e.forEach(e=>i(e,this)))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new Kr(this,e.state||ze.create(e)),e.scrollTo&&e.scrollTo.is(Wi)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ui).map(e=>new Fi(e));for(let e of this.plugins)e.update(this);this.observer=new gs(this),this.inputState=new sr(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Xn(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(t=document.fonts)||void 0===t?void 0:t.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...e){let t=1==e.length&&e[0]instanceof _e?e:1==e.length&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t,i=!1,n=!1,r=this.state;for(let t of e){if(t.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=t.state}if(this.destroyed)return void(this.viewState.state=r);let s=this.hasFocus,o=0,a=null;e.some(e=>e.annotation($r))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,a=Pr(r,s),a||(o=1));let l=this.observer.delayedAndroidKey,h=null;if(l?(this.observer.clearDelayedAndroidKey(),h=this.observer.readChange(),(h&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(h=null)):this.observer.clear(),r.facet(ze.phrases)!=this.state.facet(ze.phrases))return this.setState(r);t=cn.create(this,r,e),t.flags|=o;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(c&&(c=c.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection,{x:i,y:n}=this.state.facet(ws.cursorScrollMargin);c=new Bi(e.empty?e:K.cursor(e.head,e.head>e.anchor?-1:1),"nearest","nearest",n,i)}for(let e of t.effects)e.is(Wi)&&(c=e.value.clip(this.state))}this.viewState.update(t,c),this.bidiCache=xs.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),i=this.docView.update(t),this.state.facet(ln)!=this.styleModules&&this.mountStyles(),n=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(i,e.some(e=>e.isUserEvent("select.pointer")))}finally{this.updateState=0}if(t.startState.facet(os)!=t.state.facet(os)&&(this.viewState.mustMeasureContent=!0),(i||n||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!t.empty)for(let e of this.state.facet(Ri))try{e(t)}catch(e){Di(this.state,e,"update listener")}(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!tr(this,h)&&l.force&&oi(this.contentDOM,l.key,l.keyCode)})}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new Kr(this,e),this.plugins=e.facet(Ui).map(e=>new Fi(e)),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView.destroy(),this.docView=new Xn(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(Ui),i=e.state.facet(Ui);if(t!=i){let n=[];for(let r of i){let i=t.indexOf(r);if(i<0)n.push(new Fi(r));else{let t=this.plugins[i];t.mustUpdate=e,n.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let t of this.plugins)t.mustUpdate=e;for(let e=0;e<this.plugins.length;e++)this.plugins[e].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(e){Di(this.state,e,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.viewState.scrollParent,n=this.viewState.getScrollOffset(),{scrollAnchorPos:r,scrollAnchorHeight:s}=this.viewState;Math.abs(n-this.viewState.scrollOffset)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(s<0)if(ai(i||this.win))r=-1,s=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(n);r=e.from,s=e.top}this.updateState=1;let o=this.viewState.measure();if(!o&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];4&o||([this.measureRequests,a]=[a,this.measureRequests]);let l=a.map(e=>{try{return e.read(this)}catch(e){return Di(this.state,e),Ss}}),h=cn.create(this,this.state,[]),c=!1;h.flags|=o,t?t.flags|=o:t=h,this.updateState=2,h.empty||(this.updatePlugins(h),this.inputState.update(h),this.updateAttrs(),c=this.docView.update(h),c&&this.docViewUpdate());for(let e=0;e<a.length;e++)if(l[e]!=Ss)try{let t=a[e];t.write&&t.write(l[e],this)}catch(e){Di(this.state,e)}if(c&&this.docView.updateSelection(!0),!h.viewportChanged&&0==this.measureRequests.length){if(this.viewState.editorHeight){if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,s=-1;continue}{let e=((r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-s)/this.scaleY;if((e>1||e<-1)&&(i==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){n+=e,i?i.scrollTop+=e:this.win.scrollBy(0,e),s=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let e of this.state.facet(Ri))e(t)}get themeClasses(){return ls+" "+(this.state.facet(as)?cs:hs)+" "+this.state.facet(os)}updateAttrs(){let e=ks(this,Hi,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Ni)?"true":"false",class:"cm-content",style:`${Pt.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),ks(this,Ki,t);let i=this.observer.ignore(()=>{let i=Tt(this.contentDOM,this.contentAttrs,t),n=Tt(this.dom,this.editorAttrs,e);return i||n});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let e of i.effects)e.is(ws.announce)&&(t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value)}mountStyles(){this.styleModules=this.state.facet(ln);let e=this.state.facet(ws.cspNonce);at.mount(this.root,this.styleModules.concat(ds).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key)return void(this.measureRequests[t]=e);this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(void 0===t||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(t=>t.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return In(this,e,Vn(this,e,t,i))}moveByGroup(e,t){return In(this,e,Vn(this,e,t,t=>function(e,t,i){let n=e.state.charCategorizer(t),r=n(i);return e=>{let t=n(e);return r==Xe.Space&&(r=t),r==t}}(this,e.head,t)))}visualLineSide(e,t){let i=this.bidiSpans(e),n=this.textDirectionAt(e.from),r=i[t?i.length-1:0];return K.cursor(r.side(t,n)+e.from,r.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,i=!0){return function(e,t,i,n){let r=function(e,t,i){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){let e;for(let r of n.type){if(r.from>t)break;if(!(r.to<t)){if(r.from<t&&r.to>t)return r;e&&(r.type!=Rt.Text||e.type==r.type&&!(i<0?r.from<t:r.to>t))||(e=r)}}return e||n}return n}(e,t.head,t.assoc||-1),s=n&&r.type==Rt.Text&&(e.lineWrapping||r.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>r.from?t.head-1:t.head):null;if(s){let t=e.dom.getBoundingClientRect(),n=e.textDirectionAt(r.from),o=e.posAtCoords({x:i==(n==ui.LTR)?t.right-1:t.left+1,y:(s.top+s.bottom)/2});if(null!=o)return K.cursor(o,i?-1:1)}return K.cursor(i?r.to:r.from,i?-1:1)}(this,e,t,i)}moveVertically(e,t,i){return In(this,e,function(e,t,i,n){let r=t.head,s=i?1:-1;if(r==(i?e.state.doc.length:0))return K.cursor(r,t.assoc);let o,a=t.goalColumn,l=e.contentDOM.getBoundingClientRect(),h=e.coordsAtPos(r,t.assoc||((t.empty?i:t.head==t.from)?1:-1)),c=e.documentTop;if(h)null==a&&(a=h.left-l.left),o=s<0?h.top:h.bottom;else{let t=e.viewState.lineBlockAt(r);null==a&&(a=Math.min(l.right-l.left,e.defaultCharacterWidth*(r-t.from))),o=(s<0?t.top:t.bottom)+c}let u=l.left+a,f=e.viewState.heightOracle.textHeight>>1,d=null!=n?n:f;for(let t=0;;t+=f){let n=o+(d+t)*s,r=Nn(e,{x:u,y:n},!1,s);if(i?n>l.bottom:n<l.top)return K.cursor(r.pos,r.assoc);let h=e.coordsAtPos(r.pos,r.assoc),c=h?(h.top+h.bottom)/2:0;if(!h||(i?c>o:c<o))return K.cursor(r.pos,r.assoc,void 0,a)}}(this,e,t,i))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let i=Nn(this,e,t);return i&&i.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),Nn(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),r=this.bidiSpans(n);return Ht(i,r[bi.find(r,e-n.from,-1,t)].dir==ui.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(Li)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>bs)return $i(e.length);let t,i=this.textDirectionAt(e.from);for(let n of this.bidiCache)if(n.from==e.from&&n.dir==i&&(n.fresh||Si(n.isolates,t=sn(this,e))))return n.order;t||(t=sn(this,e));let n=function(e,t,i){if(!e)return[new bi(0,0,t==di?1:0)];if(t==fi&&!i.length&&!wi.test(e))return $i(e.length);if(i.length)for(;e.length>xi.length;)xi[xi.length]=256;let n=[],r=t==fi?0:1;return Qi(e,r,r,i,0,e.length,n),n}(e.text,i,t);return this.bidiCache.push(new xs(e.from,e.to,i,t,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Pt.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{ri(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){var i,n,r,s;return Wi.of(new Bi("number"==typeof e?K.cursor(e):e,null!==(i=t.y)&&void 0!==i?i:"nearest",null!==(n=t.x)&&void 0!==n?n:"nearest",null!==(r=t.yMargin)&&void 0!==r?r:5,null!==(s=t.xMargin)&&void 0!==s?s:5))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Wi.of(new Bi(K.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){null==e?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof e?this.inputState.tabFocusMode=e?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return Gi.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return Gi.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=at.newName(),n=[os.of(i),ln.of(fs(`.${i}`,e))];return t&&t.dark&&n.push(as.of(!0)),n}static baseTheme(e){return ce.lowest(ln.of(fs("."+ls,e,us)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),n=i&&fn.get(i)||fn.get(e);return(null===(t=null==n?void 0:n.root)||void 0===t?void 0:t.view)||null}}ws.styleModule=ln,ws.inputHandler=Xi,ws.clipboardInputFilter=ji,ws.clipboardOutputFilter=zi,ws.scrollHandler=Vi,ws.focusChangeEffect=Ei,ws.perLineTextDirection=Li,ws.exceptionSink=Mi,ws.updateListener=Ri,ws.editable=Ni,ws.mouseSelectionStyle=Zi,ws.dragMovesSelection=Ti,ws.clickAddsSelectionRange=Ai,ws.decorations=Ji,ws.blockWrappers=en,ws.outerDecorations=tn,ws.atomicRanges=nn,ws.bidiIsolatedRanges=rn,ws.cursorScrollMargin=te.define({combine:e=>{let t=5,i=5;for(let n of e)"number"==typeof n?t=i=n:({x:t,y:i}=n);return{x:t,y:i}}}),ws.scrollMargins=on,ws.darkTheme=as,ws.cspNonce=te.define({combine:e=>e.length?e[0]:""}),ws.contentAttributes=Ki,ws.editorAttributes=Hi,ws.lineWrapping=ws.contentAttributes.of({class:"cm-lineWrapping"}),ws.announce=Pe.define();const bs=4096,Ss={};class xs{constructor(e,t,i,n,r,s){this.from=e,this.to=t,this.dir=i,this.isolates=n,this.fresh=r,this.order=s}static update(e,t){if(t.empty&&!e.some(e=>e.fresh))return e;let i=[],n=e.length?e[e.length-1].dir:ui.LTR;for(let r=Math.max(0,e.length-10);r<e.length;r++){let s=e[r];s.dir!=n||t.touchesRange(s.from,s.to)||i.push(new xs(t.mapPos(s.from,1),t.mapPos(s.to,-1),s.dir,s.isolates,!1,s.order))}return i}}function ks(e,t,i){for(let n=e.state.facet(t),r=n.length-1;r>=0;r--){let t=n[r],s="function"==typeof t?t(e):t;s&&_t(s,i)}return i}const Qs=Pt.mac?"mac":Pt.windows?"win":Pt.linux?"linux":"key";function $s(e,t,i){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==i&&t.shiftKey&&(e="Shift-"+e),e}const Ps=ce.default(ws.domEventHandlers({keydown:(e,t)=>Xs(As(t.state),e,t,"editor")})),_s=te.define({enables:Ps}),Cs=new WeakMap;function As(e){let t=e.facet(_s),i=Cs.get(t);return i||Cs.set(t,i=function(e,t=Qs){let i=Object.create(null),n=Object.create(null),r=(e,t)=>{let i=n[e];if(null==i)n[e]=t;else if(i!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},s=(e,n,s,o,a)=>{var l,h;let c=i[e]||(i[e]=Object.create(null)),u=n.split(/ (?!$)/).map(e=>function(e,t){const i=e.split(/-(?!$)/);let n,r,s,o,a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;++e){const a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))n=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))s=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==t?o=!0:r=!0}}return n&&(a="Alt-"+a),r&&(a="Ctrl-"+a),o&&(a="Meta-"+a),s&&(a="Shift-"+a),a}(e,t));for(let t=1;t<u.length;t++){let i=u.slice(0,t).join(" ");r(i,!0),c[i]||(c[i]={preventDefault:!0,stopPropagation:!1,run:[t=>{let n=Zs={view:t,prefix:i,scope:e};return setTimeout(()=>{Zs==n&&(Zs=null)},Ms),!0}]})}let f=u.join(" ");r(f,!1);let d=c[f]||(c[f]={preventDefault:!1,stopPropagation:!1,run:(null===(h=null===(l=c._any)||void 0===l?void 0:l.run)||void 0===h?void 0:h.slice())||[]});s&&d.run.push(s),o&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let n of e){let e=n.scope?n.scope.split(" "):["editor"];if(n.any)for(let t of e){let e=i[t]||(i[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=n;for(let t in e)e[t].run.push(e=>r(e,Rs))}let r=n[t]||n.key;if(r)for(let t of e)s(t,r,n.run,n.preventDefault,n.stopPropagation),n.shift&&s(t,"Shift-"+r,n.shift,n.preventDefault,n.stopPropagation)}return i}(t.reduce((e,t)=>e.concat(t),[]))),i}function Ts(e,t,i){return Xs(As(e.state),t,e,i)}let Zs=null;const Ms=4e3;let Rs=null;function Xs(e,t,i,n){Rs=t;let r=function(e){var t=!(ft&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||dt&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?ut:ct)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}(t),s=Y(z(r,0))==r.length&&" "!=r,o="",a=!1,l=!1,h=!1;Zs&&Zs.view==i&&Zs.scope==n&&(o=Zs.prefix+" ",cr.indexOf(t.keyCode)<0&&(l=!0,Zs=null));let c,u,f=new Set,d=e=>{if(e){for(let t of e.run)if(!f.has(t)&&(f.add(t),t(i)))return e.stopPropagation&&(h=!0),!0;e.preventDefault&&(e.stopPropagation&&(h=!0),l=!0)}return!1},p=e[n];return p&&(d(p[o+$s(r,t,!s)])?a=!0:!s||!(t.altKey||t.metaKey||t.ctrlKey)||Pt.windows&&t.ctrlKey&&t.altKey||Pt.mac&&t.altKey&&!t.ctrlKey&&!t.metaKey||!(c=ct[t.keyCode])||c==r?s&&t.shiftKey&&d(p[o+$s(r,t,!0)])&&(a=!0):(d(p[o+$s(c,t,!0)])||t.shiftKey&&(u=ut[t.keyCode])!=r&&u!=c&&d(p[o+$s(u,t,!1)]))&&(a=!0),!a&&d(p._any)&&(a=!0)),l&&(a=!0),a&&h&&t.stopPropagation(),Rs=null,a}const Es=te.define({combine:e=>Le(e,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})}),js=Xt.line({class:"cm-activeLine"}),zs=Gi.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,i=[];for(let n of e.state.selection.ranges){let r=e.lineBlockAt(n.head);r.from>t&&(i.push(js.range(r.from)),t=r.from)}return Xt.set(i)}},{decorations:e=>e.decorations}),Ls=te.define({combine(e){let t,i;for(let n of e)t=t||n.topContainer,i=i||n.bottomContainer;return{topContainer:t,bottomContainer:i}}}),Ys=Gi.fromClass(class{constructor(e){this.input=e.state.facet(Ws),this.specs=this.input.filter(e=>e),this.panels=this.specs.map(t=>t(e));let t=e.state.facet(Ls);this.top=new Vs(e,!0,t.topContainer),this.bottom=new Vs(e,!1,t.bottomContainer),this.top.sync(this.panels.filter(e=>e.top)),this.bottom.sync(this.panels.filter(e=>!e.top));for(let e of this.panels)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}update(e){let t=e.state.facet(Ls);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new Vs(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new Vs(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let i=e.state.facet(Ws);if(i!=this.input){let t=i.filter(e=>e),n=[],r=[],s=[],o=[];for(let i of t){let t,a=this.specs.indexOf(i);a<0?(t=i(e.view),o.push(t)):(t=this.panels[a],t.update&&t.update(e)),n.push(t),(t.top?r:s).push(t)}this.specs=t,this.panels=n,this.top.sync(r),this.bottom.sync(s);for(let e of o)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let t of this.panels)t.update&&t.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>ws.scrollMargins.of(t=>{let i=t.plugin(e);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}})});class Vs{constructor(e,t,i){this.view=e,this.top=t,this.container=i,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Bs(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Bs(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Bs(e){let t=e.nextSibling;return e.remove(),t}const Ws=te.define({enables:Ys});class Is extends Ye{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Is.prototype.elementClass="",Is.prototype.toDOM=void 0,Is.prototype.mapMode=B.TrackBefore,Is.prototype.startSide=Is.prototype.endSide=-1,Is.prototype.point=!0;const Ds=te.define(),Ns=te.define(),qs=te.define(),Us=te.define({combine:e=>e.some(e=>e)});function Gs(e){let t=[Fs];return e&&!1===e.fixed&&t.push(Us.of(!0)),t}const Fs=Gi.fromClass(class{constructor(e){this.view=e,this.domAfter=null,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(qs).map(t=>new eo(e,t)),this.fixed=!e.state.facet(Us);for(let e of this.gutters)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(e){if(this.updateGutters(e)){let t=this.prevViewport,i=e.view.viewport,n=Math.min(t.to,i.to)-Math.max(t.from,i.from);this.syncGutters(n<.8*(i.to-i.from))}if(e.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(Us)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let i=De.iter(this.view.state.facet(Ds),this.view.viewport.from),n=[],r=this.gutters.map(e=>new Js(e,this.view.viewport,-this.view.documentPadding.top));for(let e of this.view.viewportLineBlocks)if(n.length&&(n=[]),Array.isArray(e.type)){let t=!0;for(let s of e.type)if(s.type==Rt.Text&&t){Ks(i,n,s.from);for(let e of r)e.line(this.view,s,n);t=!1}else if(s.widget)for(let e of r)e.widget(this.view,s)}else if(e.type==Rt.Text){Ks(i,n,e.from);for(let t of r)t.line(this.view,e,n)}else if(e.widget)for(let t of r)t.widget(this.view,e);for(let e of r)e.finish();e&&(this.view.scrollDOM.insertBefore(this.dom,t),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(e){let t=e.startState.facet(qs),i=e.state.facet(qs),n=e.docChanged||e.heightChanged||e.viewportChanged||!De.eq(e.startState.facet(Ds),e.state.facet(Ds),e.view.viewport.from,e.view.viewport.to);if(t==i)for(let t of this.gutters)t.update(e)&&(n=!0);else{n=!0;let r=[];for(let n of i){let i=t.indexOf(n);i<0?r.push(new eo(this.view,n)):(this.gutters[i].update(e),r.push(this.gutters[i]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)"after"==e.config.side?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.gutters=r}return n}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:e=>ws.scrollMargins.of(t=>{let i=t.plugin(e);if(!i||0==i.gutters.length||!i.fixed)return null;let n=i.dom.offsetWidth*t.scaleX,r=i.domAfter?i.domAfter.offsetWidth*t.scaleX:0;return t.textDirection==ui.LTR?{left:n,right:r}:{right:n,left:r}})});function Hs(e){return Array.isArray(e)?e:[e]}function Ks(e,t,i){for(;e.value&&e.from<=i;)e.from==i&&t.push(e.value),e.next()}class Js{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=De.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:n}=this,r=(t.top-this.height)/e.scaleY,s=t.height/e.scaleY;if(this.i==n.elements.length){let t=new to(e,s,r,i);n.elements.push(t),n.dom.appendChild(t.dom)}else n.elements[this.i].update(e,s,r,i);this.height=t.bottom,this.i++}line(e,t,i){let n=[];Ks(this.cursor,n,t.from),i.length&&(n=n.concat(i));let r=this.gutter.config.lineMarker(e,t,n);r&&n.unshift(r);let s=this.gutter;(0!=n.length||s.config.renderEmptyElements)&&this.addElement(e,t,n)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),n=i?[i]:null;for(let i of e.state.facet(Ns)){let r=i(e,t.widget,t);r&&(n||(n=[])).push(r)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class eo{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,n=>{let r,s=n.target;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let e=s.getBoundingClientRect();r=(e.top+e.bottom)/2}else r=n.clientY;let o=e.lineBlockAtHeight(r-e.documentTop);t.domEventHandlers[i](e,o,n)&&n.preventDefault()});this.markers=Hs(t.markers(e)),t.initialSpacer&&(this.spacer=new to(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Hs(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let i=e.view.viewport;return!De.eq(this.markers,t,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class to{constructor(e,t,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,n)}update(e,t,i,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!e[i].compare(t[i]))return!1;return!0}(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let i="cm-gutterElement",n=this.dom.firstChild;for(let r=0,s=0;;){let o=s,a=r<t.length?t[r++]:null,l=!1;if(a){let e=a.elementClass;e&&(i+=" "+e);for(let e=s;e<this.markers.length;e++)if(this.markers[e].compare(a)){o=e,l=!0;break}}else o=this.markers.length;for(;s<o;){let e=this.markers[s++];if(e.toDOM){e.destroy(n);let t=n.nextSibling;n.remove(),n=t}}if(!a)break;a.toDOM&&(l?n=n.nextSibling:this.dom.insertBefore(a.toDOM(e),n)),l&&s++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}}const io=te.define(),no=te.define(),ro=te.define({combine:e=>Le(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let e in t){let n=i[e],r=t[e];i[e]=n?(e,t,i)=>n(e,t,i)||r(e,t,i):r}return i}})});class so extends Is{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function oo(e,t){return e.state.facet(ro).formatNumber(t,e.state)}const ao=qs.compute([ro],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(io),lineMarker:(e,t,i)=>i.some(e=>e.toDOM)?null:new so(oo(e,e.state.doc.lineAt(t.from).number)),widgetMarker:(e,t,i)=>{for(let n of e.state.facet(no)){let r=n(e,t,i);if(r)return r}return null},lineMarkerChange:e=>e.startState.facet(ro)!=e.state.facet(ro),initialSpacer:e=>new so(oo(e,ho(e.state.doc.lines))),updateSpacer(e,t){let i=oo(t.view,ho(t.view.state.doc.lines));return i==e.number?e:new so(i)},domEventHandlers:e.facet(ro).domEventHandlers,side:"before"}));function lo(e={}){return[ro.of(e),Gs(),ao]}function ho(e){let t=9;for(;t<e;)t=10*t+9;return t}const co=1024;let uo=0;class fo{constructor(e,t){this.from=e,this.to=t}}class po{constructor(e={}){this.id=uo++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=mo.match(e)),t=>{let i=e(t);return void 0===i?null:[this,i]}}}po.closedBy=new po({deserialize:e=>e.split(" ")}),po.openedBy=new po({deserialize:e=>e.split(" ")}),po.group=new po({deserialize:e=>e.split(" ")}),po.isolate=new po({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}}),po.contextHash=new po({perNode:!0}),po.lookAhead=new po({perNode:!0}),po.mounted=new po({perNode:!0});class Oo{constructor(e,t,i,n=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=n}static get(e){return e&&e.props&&e.props[po.mounted.id]}}const go=Object.create(null);class mo{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):go,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(null==e.name?8:0),n=new mo(e.name||"",t,e.id,i);if(e.props)for(let i of e.props)if(Array.isArray(i)||(i=i(n)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[i[0].id]=i[1]}return n}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(po.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return e=>{for(let i=e.prop(po.group),n=-1;n<(i?i.length:0);n++){let r=t[n<0?e.name:i[n]];if(r)return r}}}}mo.none=new mo("",Object.create(null),0,8);class vo{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let i of this.types){let n=null;for(let t of e){let e=t(i);if(e){n||(n=Object.assign({},i.props));let t=e[1],r=e[0];r.combine&&r.id in n&&(t=r.combine(n[r.id],t)),n[r.id]=t}}t.push(n?new mo(i.name,n,i.id,i.flags):i)}return new vo(t)}}const yo=new WeakMap,wo=new WeakMap;var bo;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays",e[e.EnterBracketed=16]="EnterBracketed"}(bo||(bo={}));class So{constructor(e,t,i,n,r){if(this.type=e,this.children=t,this.positions=i,this.length=n,this.props=null,r&&r.length){this.props=Object.create(null);for(let[e,t]of r)this.props["number"==typeof e?e:e.id]=t}}toString(){let e=Oo.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let i=e.toString();i&&(t&&(t+=","),t+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new Xo(this.topNode,e)}cursorAt(e,t=0,i=0){let n=yo.get(this)||this.topNode,r=new Xo(n);return r.moveTo(e,t),yo.set(this,r._tree),r}get topNode(){return new _o(this,0,0,null)}resolve(e,t=0){let i=$o(yo.get(this)||this.topNode,e,t,!1);return yo.set(this,i),i}resolveInner(e,t=0){let i=$o(wo.get(this)||this.topNode,e,t,!0);return wo.set(this,i),i}resolveStack(e,t=0){return function(e,t,i){let n=e.resolveInner(t,i),r=null;for(let e=n instanceof _o?n:n.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(r||(r=[n])).push(s.resolve(t,i)),e=s}else{let s=Oo.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new _o(s.tree,s.overlay[0].from+e.from,-1,e);(r||(r=[n])).push($o(o,t,i,!1))}}return r?Mo(r):n}(this,e,t)}iterate(e){let{enter:t,leave:i,from:n=0,to:r=this.length}=e,s=e.mode||0,o=(s&bo.IncludeAnonymous)>0;for(let e=this.cursor(s|bo.IncludeAnonymous);;){let s=!1;if(e.from<=r&&e.to>=n&&(!o&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;s=!0}for(;s&&i&&(o||!e.type.isAnonymous)&&i(e),!e.nextSibling();){if(!e.parent())return;s=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Lo(mo.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,i)=>new So(this.type,e,t,i,this.propValues),e.makeTree||((e,t,i)=>new So(mo.none,e,t,i)))}static build(e){return function(e){var t;let{buffer:i,nodeSet:n,maxBufferLength:r=co,reused:s=[],minRepeatType:o=n.types.length}=e,a=Array.isArray(i)?new xo(i,i.length):i,l=n.types,h=0,c=0;function u(e,t,i,g,m,v){let{id:y,start:w,end:b,size:S}=a,x=c,k=h;if(S<0){if(a.next(),-1==S){let t=s[y];return i.push(t),void g.push(w-e)}if(-3==S)return void(h=y);if(-4==S)return void(c=y);throw new RangeError(`Unrecognized record size: ${S}`)}let Q,$,P=l[y],_=w-e;if(b-w<=r&&($=function(e,t){let i=a.fork(),n=0,s=0,l=0,h=i.end-r,c={size:0,start:0,skip:0};e:for(let r=i.pos-e;i.pos>r;){let e=i.size;if(i.id==t&&e>=0){c.size=n,c.start=s,c.skip=l,l+=4,n+=4,i.next();continue}let a=i.pos-e;if(e<0||a<r||i.start<h)break;let u=i.id>=o?4:0,f=i.start;for(i.next();i.pos>a;){if(i.size<0){if(-3!=i.size&&-4!=i.size)break e;u+=4}else i.id>=o&&(u+=4);i.next()}s=f,n+=e,l+=u}return(t<0||n==e)&&(c.size=n,c.start=s,c.skip=l),c.size>4?c:void 0}(a.pos-t,m))){let t=new Uint16Array($.size-$.skip),i=a.pos-$.size,r=t.length;for(;a.pos>i;)r=O($.start,t,r);Q=new ko(t,b-$.start,n),_=$.start-e}else{let e=a.pos-S;a.next();let t=[],i=[],n=y>=o?y:-1,s=0,l=b;for(;a.pos>e;)n>=0&&a.id==n&&a.size>=0?(a.end<=l-r&&(d(t,i,w,s,a.end,l,n,x,k),s=t.length,l=a.end),a.next()):v>2500?f(w,e,t,i):u(w,e,t,i,n,v+1);if(n>=0&&s>0&&s<t.length&&d(t,i,w,s,w,l,n,x,k),t.reverse(),i.reverse(),n>-1&&s>0){let e=function(e,t){return(i,n,r)=>{let s,o,a=0,l=i.length-1;if(l>=0&&(s=i[l])instanceof So){if(!l&&s.type==e&&s.length==r)return s;(o=s.prop(po.lookAhead))&&(a=n[l]+s.length+o)}return p(e,i,n,r,a,t)}}(P,k);Q=Lo(P,t,i,0,t.length,0,b-w,e,e)}else Q=p(P,t,i,b-w,x-b,k)}i.push(Q),g.push(_)}function f(e,t,i,s){let o=[],l=0,h=-1;for(;a.pos>t;){let{id:e,start:t,end:i,size:n}=a;if(n>4)a.next();else{if(h>-1&&t<h)break;h<0&&(h=i-r),o.push(e,t,i),l++,a.next()}}if(l){let t=new Uint16Array(4*l),r=o[o.length-2];for(let e=o.length-3,i=0;e>=0;e-=3)t[i++]=o[e],t[i++]=o[e+1]-r,t[i++]=o[e+2]-r,t[i++]=i;i.push(new ko(t,o[2]-r,n)),s.push(r-e)}}function d(e,t,i,r,s,o,a,l,h){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+i-s);e.push(p(n.types[a],c,u,o-s,l-o,h)),t.push(s-i)}function p(e,t,i,n,r,s,o){if(s){let e=[po.contextHash,s];o=o?[e].concat(o):[e]}if(r>25){let e=[po.lookAhead,r];o=o?[e].concat(o):[e]}return new So(e,t,i,n,o)}function O(e,t,i){let{id:n,start:r,end:s,size:l}=a;if(a.next(),l>=0&&n<o){let o=i;if(l>4){let n=a.pos-(l-4);for(;a.pos>n;)i=O(e,t,i)}t[--i]=o,t[--i]=s-e,t[--i]=r-e,t[--i]=n}else-3==l?h=n:-4==l&&(c=n);return i}let g=[],m=[];for(;a.pos>0;)u(e.start||0,e.bufferStart||0,g,m,-1,0);let v=null!==(t=e.length)&&void 0!==t?t:g.length?m[0]+g[0].length:0;return new So(l[e.topID],g.reverse(),m.reverse(),v)}(e)}}So.empty=new So(mo.none,[],[],0);class xo{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new xo(this.buffer,this.index)}}class ko{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return mo.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],n=this.set.types[t],r=n.name;if(/\W/.test(r)&&!n.isError&&(r=JSON.stringify(r)),i==(e+=4))return r;let s=[];for(;e<i;)s.push(this.childString(e)),e=this.buffer[e+3];return r+"("+s.join(",")+")"}findChild(e,t,i,n,r){let{buffer:s}=this,o=-1;for(let a=e;a!=t&&!(Qo(r,n,s[a+1],s[a+2])&&(o=a,i>0));a=s[a+3]);return o}slice(e,t,i){let n=this.buffer,r=new Uint16Array(t-e),s=0;for(let o=e,a=0;o<t;){r[a++]=n[o++],r[a++]=n[o++]-i;let t=r[a++]=n[o++]-i;r[a++]=n[o++]-e,s=Math.max(s,t)}return new ko(r,s,this.set)}}function Qo(e,t,i,n){switch(e){case-2:return i<t;case-1:return n>=t&&i<t;case 0:return i<t&&n>t;case 1:return i<=t&&n>t;case 2:return n>t;case 4:return!0}}function $o(e,t,i,n){for(var r;e.from==e.to||(i<1?e.from>=t:e.from>t)||(i>-1?e.to<=t:e.to<t);){let t=!n&&e instanceof _o&&e.index<0?null:e.parent;if(!t)return e;e=t}let s=n?0:bo.IgnoreOverlays;if(n)for(let n=e,o=n.parent;o;n=o,o=n.parent)n instanceof _o&&n.index<0&&(null===(r=o.enter(t,i,s))||void 0===r?void 0:r.from)!=n.from&&(e=o);for(;;){let n=e.enter(t,i,s);if(!n)return e;e=n}}class Po{cursor(e=0){return new Xo(this,e)}getChild(e,t=null,i=null){let n=Co(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return Co(this,e,t,i)}resolve(e,t=0){return $o(this,e,t,!1)}resolveInner(e,t=0){return $o(this,e,t,!0)}matchContext(e){return Ao(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(i=t,t=e.prevSibling):t=e}return i}get node(){return this}get next(){return this.parent}}class _o extends Po{constructor(e,t,i,n){super(),this._tree=e,this.from=t,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,n,r=0){for(let s=this;;){for(let{children:o,positions:a}=s._tree,l=t>0?o.length:-1;e!=l;e+=t){let l,h=o[e],c=a[e]+s.from;if(r&bo.EnterBracketed&&h instanceof So&&(l=Oo.get(h))&&!l.overlay&&l.bracketed&&i>=c&&i<=c+h.length||Qo(n,i,c,c+h.length))if(h instanceof ko){if(r&bo.ExcludeBuffers)continue;let o=h.findChild(0,h.buffer.length,t,i-c,n);if(o>-1)return new Zo(new To(s,h,e,c),null,o)}else if(r&bo.IncludeAnonymous||!h.type.isAnonymous||Eo(h)){let o;if(!(r&bo.IgnoreMounts)&&(o=Oo.get(h))&&!o.overlay)return new _o(o.tree,c,e,s);let a=new _o(h,c,e,s);return r&bo.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(t<0?h.children.length-1:0,t,i,n,r)}}if(r&bo.IncludeAnonymous||!s.type.isAnonymous)return null;if(e=s.index>=0?s.index+t:t<0?-1:s._parent._tree.children.length,s=s._parent,!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,i=0){let n;if(!(i&bo.IgnoreOverlays)&&(n=Oo.get(this._tree))&&n.overlay){let r=e-this.from,s=i&bo.EnterBracketed&&n.bracketed;for(let{from:e,to:i}of n.overlay)if((t>0||s?e<=r:e<r)&&(t<0||s?i>=r:i>r))return new _o(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function Co(e,t,i,n){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=i)for(let e=!1;!e;)if(e=r.type.is(i),!r.nextSibling())return s;for(;;){if(null!=n&&r.type.is(n))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==n?s:[]}}function Ao(e,t,i=t.length-1){for(let n=e;i>=0;n=n.parent){if(!n)return!1;if(!n.type.isAnonymous){if(t[i]&&t[i]!=n.name)return!1;i--}}return!0}class To{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}}class Zo extends Po{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return r<0?null:new Zo(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,i=0){if(i&bo.ExcludeBuffers)return null;let{buffer:n}=this.context,r=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return r<0?null:new Zo(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Zo(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new Zo(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,r=i.buffer[this.index+3];if(r>n){let s=i.buffer[this.index+1];e.push(i.slice(n,r,s)),t.push(0)}return new So(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Mo(e){if(!e.length)return null;let t=0,i=e[0];for(let n=1;n<e.length;n++){let r=e[n];(r.from>i.from||r.to<i.to)&&(i=r,t=n)}let n=i instanceof _o&&i.index<0?null:i.parent,r=e.slice();return n?r[t]=n:r.splice(t,1),new Ro(r,i)}class Ro{constructor(e,t){this.heads=e,this.node=t}get next(){return Mo(this.heads)}}class Xo{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~bo.EnterBracketed,e instanceof _o)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return!!e&&(e instanceof _o?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,r=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?!(i&bo.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&bo.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&bo.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let e=i<0?0:this.stack[i]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(e)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(n.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:i}=n)}else({index:t,_parent:i}=this._tree);for(;i;({index:t,_parent:i}=i))if(t>-1)for(let n=t+e,r=e<0?-1:i._tree.children.length;n!=r;n+=e){let e=i._tree.children[n];if(this.mode&bo.IncludeAnonymous||e instanceof ko||!e.type.isAnonymous||Eo(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,r=this.stack.length;r>=0;){for(let s=e;s;s=s._parent)if(s.index==n){if(n==this.index)return s;t=s,i=r+1;break e}n=this.stack[--r]}for(let e=i;e<this.stack.length;e++)t=new Zo(this.buffer,t,this.stack[e]);return this.bufferNode=new Zo(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let n=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return Ao(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let n=e.length-1,r=this.stack.length-1;n>=0;r--){if(r<0)return Ao(this._tree,e,n);let s=i[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[n]&&e[n]!=s.name)return!1;n--}}return!0}}function Eo(e){return e.children.some(e=>e instanceof ko||!e.type.isAnonymous||Eo(e))}const jo=new WeakMap;function zo(e,t){if(!e.isAnonymous||t instanceof ko||t.type!=e)return 1;let i=jo.get(t);if(null==i){i=1;for(let n of t.children){if(n.type!=e||!(n instanceof So)){i=1;break}i+=zo(e,n)}jo.set(t,i)}return i}function Lo(e,t,i,n,r,s,o,a,l){let h=0;for(let i=n;i<r;i++)h+=zo(e,t[i]);let c=Math.ceil(1.5*h/8),u=[],f=[];return function t(i,n,r,o,a){for(let h=r;h<o;){let r=h,d=n[h],p=zo(e,i[h]);for(h++;h<o;h++){let t=zo(e,i[h]);if(p+t>=c)break;p+=t}if(h==r+1){if(p>c){let e=i[r];t(e.children,e.positions,0,e.children.length,n[r]+a);continue}u.push(i[r])}else{let t=n[h-1]+i[h-1].length-d;u.push(Lo(e,i,n,r,h,d,t,null,l))}f.push(d+a-s)}}(t,i,n,r,0),(a||l)(u,f,o)}class Yo{constructor(){this.map=new WeakMap}setBuffer(e,t,i){let n=this.map.get(e);n||this.map.set(e,n=new Map),n.set(t,i)}getBuffer(e,t){let i=this.map.get(e);return i&&i.get(t)}set(e,t){e instanceof Zo?this.setBuffer(e.context.buffer,e.index,t):e instanceof _o&&this.map.set(e.tree,t)}get(e){return e instanceof Zo?this.getBuffer(e.context.buffer,e.index):e instanceof _o?this.map.get(e.tree):void 0}cursorSet(e,t){e.buffer?this.setBuffer(e.buffer.buffer,e.index,t):this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class Vo{constructor(e,t,i,n,r=!1,s=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=(r?1:0)|(s?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],i=!1){let n=[new Vo(0,e.length,e,0,!1,i)];for(let i of t)i.to>e.length&&n.push(i);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],r=1,s=e.length?e[0]:null;for(let o=0,a=0,l=0;;o++){let h=o<t.length?t[o]:null,c=h?h.fromA:1e9;if(c-a>=i)for(;s&&s.from<c;){let t=s;if(a>=t.from||c<=t.to||l){let e=Math.max(t.from,a)-l,i=Math.min(t.to,c)-l;t=e>=i?null:new Vo(e,i,t.tree,t.offset+l,o>0,!!h)}if(t&&n.push(t),s.to>c)break;s=r<e.length?e[r++]:null}if(!h)break;a=h.toA,l=h.toA-h.toB}return n}}class Bo{startParse(e,t,i){return"string"==typeof e&&(e=new Wo(e)),i=i?i.length?i.map(e=>new fo(e.from,e.to)):[new fo(0,0)]:[new fo(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let e=n.advance();if(e)return e}}}class Wo{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}class Io{constructor(e,t,i,n,r,s){this.parser=e,this.parse=t,this.overlay=i,this.bracketed=n,this.target=r,this.from=s}}function Do(e){if(!e.length||e.some(e=>e.from>=e.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class No{constructor(e,t,i,n,r,s,o,a){this.parser=e,this.predicate=t,this.mounts=i,this.index=n,this.start=r,this.bracketed=s,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const qo=new po({perNode:!0});class Uo{constructor(e,t,i,n,r){this.nest=t,this.input=i,this.fragments=n,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;if(this.baseParse=null,this.baseTree=e,this.startInner(),null!=this.stoppedAt)for(let e of this.inner)e.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;return null!=this.stoppedAt&&(e=new So(e.type,e.children,e.positions,e.length,e.propValues.concat([[qo,this.stoppedAt]]))),e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let i=Object.assign(Object.create(null),e.target.props);i[po.mounted.id]=new Oo(t,e.overlay,e.parser,e.bracketed),e.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].from<e&&(e=Math.min(e,this.inner[t].parse.parsedPos));return e}stopAt(e){if(this.stoppedAt=e,this.baseParse)this.baseParse.stopAt(e);else for(let t=this.innerDone;t<this.inner.length;t++)this.inner[t].parse.stopAt(e)}startInner(){let e=new Jo(this.fragments),t=null,i=null,n=new Xo(new _o(this.baseTree,this.ranges[0].from,0,null),bo.IncludeAnonymous|bo.IgnoreMounts);e:for(let r,s;;){let o,a=!0;if(null!=this.stoppedAt&&n.from>=this.stoppedAt)a=!1;else if(e.hasNode(n)){if(t){let e=t.mounts.find(e=>e.frag.from<=n.from&&e.frag.to>=n.to&&e.mount.overlay);if(e)for(let i of e.mount.overlay){let r=i.from+e.pos,s=i.to+e.pos;r>=n.from&&s<=n.to&&!t.ranges.some(e=>e.from<s&&e.to>r)&&t.ranges.push({from:r,to:s})}}a=!1}else if(i&&(s=Go(i.ranges,n.from,n.to)))a=2!=s;else if(!n.type.isAnonymous&&(r=this.nest(n,this.input))&&(n.from<n.to||!r.overlay)){n.tree||(Ho(n),t&&t.depth++,i&&i.depth++);let s=e.findMounts(n.from,r.parser);if("function"==typeof r.overlay)t=new No(r.parser,r.overlay,s,this.inner.length,n.from,!!r.bracketed,n.tree,t);else{let e=ea(this.ranges,r.overlay||(n.from<n.to?[new fo(n.from,n.to)]:[]));e.length&&Do(e),!e.length&&r.overlay||this.inner.push(new Io(r.parser,e.length?r.parser.startParse(this.input,ia(s,e),e):r.parser.startParse(""),r.overlay?r.overlay.map(e=>new fo(e.from-n.from,e.to-n.from)):null,!!r.bracketed,n.tree,e.length?e[0].from:n.from)),r.overlay?e.length&&(i={ranges:e,depth:0,prev:i}):a=!1}}else if(t&&(o=t.predicate(n))&&(!0===o&&(o=new fo(n.from,n.to)),o.from<o.to)){let e=t.ranges.length-1;e>=0&&t.ranges[e].to==o.from?t.ranges[e]={from:t.ranges[e].from,to:o.to}:t.ranges.push(o)}if(a&&n.firstChild())t&&t.depth++,i&&i.depth++;else for(;!n.nextSibling();){if(!n.parent())break e;if(t&&! --t.depth){let e=ea(this.ranges,t.ranges);e.length&&(Do(e),this.inner.splice(t.index,0,new Io(t.parser,t.parser.startParse(this.input,ia(t.mounts,e),e),t.ranges.map(e=>new fo(e.from-t.start,e.to-t.start)),t.bracketed,t.target,e[0].from))),t=t.prev}i&&! --i.depth&&(i=i.prev)}}}}function Go(e,t,i){for(let n of e){if(n.from>=i)break;if(n.to>t)return n.from<=t&&n.to>=i?2:1}return 0}function Fo(e,t,i,n,r,s){if(t<i){let o=e.buffer[t+1];n.push(e.slice(t,i,o)),r.push(o-s)}}function Ho(e){let{node:t}=e,i=[],n=t.context.buffer;do{i.push(e.index),e.parent()}while(!e.tree);let r=e.tree,s=r.children.indexOf(n),o=r.children[s],a=o.buffer,l=[s];r.children[s]=function e(n,r,s,h,c,u){let f=i[u],d=[],p=[];Fo(o,n,f,d,p,h);let O=a[f+1],g=a[f+2];l.push(d.length);let m=u?e(f+4,a[f+3],o.set.types[a[f]],O,g-O,u-1):t.toTree();return d.push(m),p.push(O-h),Fo(o,a[f+3],r,d,p,h),new So(s,d,p,c)}(0,a.length,mo.none,0,o.length,i.length-1);for(let t of l){let i=e.tree.children[t],n=e.tree.positions[t];e.yield(new _o(i,n+e.from,t,e._tree))}}class Ko{constructor(e,t){this.offset=t,this.done=!1,this.cursor=e.cursor(bo.IncludeAnonymous|bo.IgnoreMounts)}moveTo(e){let{cursor:t}=this,i=e-this.offset;for(;!this.done&&t.from<i;)if(t.to>=e&&t.enter(i,1,bo.IgnoreOverlays|bo.ExcludeBuffers));else{if(!(t.to<=e))break;t.next(!1)||(this.done=!0)}}hasNode(e){if(this.moveTo(e.from),!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree)for(let t=this.cursor.tree;;){if(t==e.tree)return!0;if(!(t.children.length&&0==t.positions[0]&&t.children[0]instanceof So))break;t=t.children[0]}return!1}}class Jo{constructor(e){var t;if(this.fragments=e,this.curTo=0,this.fragI=0,e.length){let i=this.curFrag=e[0];this.curTo=null!==(t=i.tree.prop(qo))&&void 0!==t?t:i.to,this.inner=new Ko(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(e){for(;this.curFrag&&e.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(e=t.tree.prop(qo))&&void 0!==e?e:t.to,this.inner=new Ko(t.tree,-t.offset)}}findMounts(e,t){var i;let n=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let r=null===(i=e.tree)||void 0===i?void 0:i.prop(po.mounted);if(r&&r.parser==t)for(let t=this.fragI;t<this.fragments.length;t++){let i=this.fragments[t];if(i.from>=e.to)break;i.tree==this.curFrag.tree&&n.push({frag:i,pos:e.from-i.offset,mount:r})}}}return n}}function ea(e,t){let i=null,n=t;for(let r=1,s=0;r<e.length;r++){let o=e[r-1].to,a=e[r].from;for(;s<n.length;s++){let e=n[s];if(e.from>=a)break;e.to<=o||(i||(n=i=t.slice()),e.from<o?(i[s]=new fo(e.from,o),e.to>a&&i.splice(s+1,0,new fo(a,e.to))):e.to>a?i[s--]=new fo(a,e.to):i.splice(s--,1))}}return n}function ta(e,t,i,n){let r=0,s=0,o=!1,a=!1,l=-1e9,h=[];for(;;){let c=r==e.length?1e9:o?e[r].to:e[r].from,u=s==t.length?1e9:a?t[s].to:t[s].from;if(o!=a){let e=Math.max(l,i),t=Math.min(c,u,n);e<t&&h.push(new fo(e,t))}if(l=Math.min(c,u),1e9==l)break;c==l&&(o?(o=!1,r++):o=!0),u==l&&(a?(a=!1,s++):a=!0)}return h}function ia(e,t){let i=[];for(let{pos:n,mount:r,frag:s}of e){let e=n+(r.overlay?r.overlay[0].from:0),o=e+r.tree.length,a=Math.max(s.from,e),l=Math.min(s.to,o);if(r.overlay){let o=r.overlay.map(e=>new fo(e.from+n,e.to+n)),h=ta(t,o,a,l);for(let t=0,n=a;;t++){let o=t==h.length,a=o?l:h[t].from;if(a>n&&i.push(new Vo(n,a,r.tree,-e,s.from>=n||s.openStart,s.to<=a||s.openEnd)),o)break;n=h[t].to}}else i.push(new Vo(a,l,r.tree,-e,s.from>=e||s.openStart,s.to<=o||s.openEnd))}return i}let na=0;class ra{constructor(e,t,i,n){this.name=e,this.set=t,this.base=i,this.modified=n,this.id=na++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i="string"==typeof e?e:"?";if(e instanceof ra&&(t=e),null==t?void 0:t.base)throw new Error("Can not derive from a modified tag");let n=new ra(i,[],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new oa(e);return e=>e.modified.indexOf(t)>-1?e:oa.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let sa=0;class oa{constructor(e){this.name=e,this.instances=[],this.id=sa++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(i=>i.base==e&&function(e,t){return e.length==t.length&&e.every((e,i)=>e==t[i])}(t,i.modified));if(i)return i;let n=[],r=new ra(e.name,n,e,t);for(let e of t)e.instances.push(r);let s=function(e){let t=[[]];for(let i=0;i<e.length;i++)for(let n=0,r=t.length;n<r;n++)t.push(t[n].concat(e[i]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of s)n.push(oa.get(t,e));return r}}function aa(e){let t=Object.create(null);for(let i in e){let n=e[i];Array.isArray(n)||(n=[n]);for(let e of i.split(" "))if(e){let i=[],r=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){r=1;break}let n=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!n)throw new RangeError("Invalid path: "+e);if(i.push("*"==n[0]?"":'"'==n[0][0]?JSON.parse(n[0]):n[0]),t+=n[0].length,t==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){r=0;break}if("/"!=o)throw new RangeError("Invalid path: "+e);s=e.slice(t)}let o=i.length-1,a=i[o];if(!a)throw new RangeError("Invalid path: "+e);let l=new ha(n,r,o>0?i.slice(0,o):null);t[a]=l.sort(t[a])}}return la.add(t)}const la=new po({combine(e,t){let i,n,r;for(;e||t;){if(!e||t&&e.depth>=t.depth?(r=t,t=t.next):(r=e,e=e.next),i&&i.mode==r.mode&&!r.context&&!i.context)continue;let s=new ha(r.tags,r.mode,r.context);i?i.next=s:n=s,i=s}return n}});class ha{constructor(e,t,i,n){this.tags=e,this.mode=t,this.context=i,this.next=n}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function ca(e,t){let i=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)i[e.id]=t.class;else i[t.tag.id]=t.class;let{scope:n,all:r=null}=t||{};return{style:e=>{let t=r;for(let n of e)for(let e of n.set){let n=i[e.id];if(n){t=t?t+" "+n:n;break}}return t},scope:n}}function ua(e,t,i,n=0,r=e.length){let s=new fa(n,Array.isArray(t)?t:[t],i);s.highlightRange(e.cursor(),n,r,"",s.highlighters),s.flush(r)}ha.empty=new ha([],2,null);class fa{constructor(e,t,i){this.at=e,this.highlighters=t,this.span=i,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,i,n,r){let{type:s,from:o,to:a}=e;if(o>=i||a<=t)return;s.isTop&&(r=this.highlighters.filter(e=>!e.scope||e.scope(s)));let l=n,h=function(e){let t=e.type.prop(la);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}(e)||ha.empty,c=function(e,t){let i=null;for(let n of e){let e=n.style(t);e&&(i=i?i+" "+e:e)}return i}(r,h.tags);if(c&&(l&&(l+=" "),l+=c,1==h.mode&&(n+=(n?" ":"")+c)),this.startSpan(Math.max(t,o),l),h.opaque)return;let u=e.tree&&e.tree.prop(po.mounted);if(u&&u.overlay){let s=e.node.enter(u.overlay[0].from+o,1),h=this.highlighters.filter(e=>!e.scope||e.scope(u.tree.type)),c=e.firstChild();for(let f=0,d=o;;f++){let p=f<u.overlay.length?u.overlay[f]:null,O=p?p.from+o:a,g=Math.max(t,d),m=Math.min(i,O);if(g<m&&c)for(;e.from<m&&(this.highlightRange(e,g,m,n,r),this.startSpan(Math.min(m,e.to),l),!(e.to>=O)&&e.nextSibling()););if(!p||O>i)break;d=p.to+o,d>t&&(this.highlightRange(s.cursor(),Math.max(t,p.from+o),Math.min(i,d),"",h),this.startSpan(Math.min(i,d),l))}c&&e.parent()}else if(e.firstChild()){u&&(n="");do{if(!(e.to<=t)){if(e.from>=i)break;this.highlightRange(e,t,i,n,r),this.startSpan(Math.min(i,e.to),l)}}while(e.nextSibling());e.parent()}}}const da=ra.define,pa=da(),Oa=da(),ga=da(Oa),ma=da(Oa),va=da(),ya=da(va),wa=da(va),ba=da(),Sa=da(ba),xa=da(),ka=da(),Qa=da(),$a=da(Qa),Pa=da(),_a={comment:pa,lineComment:da(pa),blockComment:da(pa),docComment:da(pa),name:Oa,variableName:da(Oa),typeName:ga,tagName:da(ga),propertyName:ma,attributeName:da(ma),className:da(Oa),labelName:da(Oa),namespace:da(Oa),macroName:da(Oa),literal:va,string:ya,docString:da(ya),character:da(ya),attributeValue:da(ya),number:wa,integer:da(wa),float:da(wa),bool:da(va),regexp:da(va),escape:da(va),color:da(va),url:da(va),keyword:xa,self:da(xa),null:da(xa),atom:da(xa),unit:da(xa),modifier:da(xa),operatorKeyword:da(xa),controlKeyword:da(xa),definitionKeyword:da(xa),moduleKeyword:da(xa),operator:ka,derefOperator:da(ka),arithmeticOperator:da(ka),logicOperator:da(ka),bitwiseOperator:da(ka),compareOperator:da(ka),updateOperator:da(ka),definitionOperator:da(ka),typeOperator:da(ka),controlOperator:da(ka),punctuation:Qa,separator:da(Qa),bracket:$a,angleBracket:da($a),squareBracket:da($a),paren:da($a),brace:da($a),content:ba,heading:Sa,heading1:da(Sa),heading2:da(Sa),heading3:da(Sa),heading4:da(Sa),heading5:da(Sa),heading6:da(Sa),contentSeparator:da(ba),list:da(ba),quote:da(ba),emphasis:da(ba),strong:da(ba),link:da(ba),monospace:da(ba),strikethrough:da(ba),inserted:da(),deleted:da(),changed:da(),invalid:da(),meta:Pa,documentMeta:da(Pa),annotation:da(Pa),processingInstruction:da(Pa),definition:ra.defineModifier("definition"),constant:ra.defineModifier("constant"),function:ra.defineModifier("function"),standard:ra.defineModifier("standard"),local:ra.defineModifier("local"),special:ra.defineModifier("special")};for(let e in _a){let t=_a[e];t instanceof ra&&(t.name=e)}var Ca;ca([{tag:_a.link,class:"tok-link"},{tag:_a.heading,class:"tok-heading"},{tag:_a.emphasis,class:"tok-emphasis"},{tag:_a.strong,class:"tok-strong"},{tag:_a.keyword,class:"tok-keyword"},{tag:_a.atom,class:"tok-atom"},{tag:_a.bool,class:"tok-bool"},{tag:_a.url,class:"tok-url"},{tag:_a.labelName,class:"tok-labelName"},{tag:_a.inserted,class:"tok-inserted"},{tag:_a.deleted,class:"tok-deleted"},{tag:_a.literal,class:"tok-literal"},{tag:_a.string,class:"tok-string"},{tag:_a.number,class:"tok-number"},{tag:[_a.regexp,_a.escape,_a.special(_a.string)],class:"tok-string2"},{tag:_a.variableName,class:"tok-variableName"},{tag:_a.local(_a.variableName),class:"tok-variableName tok-local"},{tag:_a.definition(_a.variableName),class:"tok-variableName tok-definition"},{tag:_a.special(_a.variableName),class:"tok-variableName2"},{tag:_a.definition(_a.propertyName),class:"tok-propertyName tok-definition"},{tag:_a.typeName,class:"tok-typeName"},{tag:_a.namespace,class:"tok-namespace"},{tag:_a.className,class:"tok-className"},{tag:_a.macroName,class:"tok-macroName"},{tag:_a.propertyName,class:"tok-propertyName"},{tag:_a.operator,class:"tok-operator"},{tag:_a.comment,class:"tok-comment"},{tag:_a.meta,class:"tok-meta"},{tag:_a.invalid,class:"tok-invalid"},{tag:_a.punctuation,class:"tok-punctuation"}]);const Aa=new po;function Ta(e){return te.define({combine:e?t=>t.concat(e):void 0})}const Za=new po;class Ma{constructor(e,t,i=[],n=""){this.data=e,this.name=n,ze.prototype.hasOwnProperty("tree")||Object.defineProperty(ze.prototype,"tree",{get(){return Ea(this)}}),this.parser=t,this.extension=[Na.of(this),ze.languageData.of((e,t,i)=>{let n=Ra(e,t,i),r=n.type.prop(Aa);if(!r)return[];let s=e.facet(r),o=n.type.prop(Za);if(o){let r=n.resolve(t-n.from,i);for(let t of o)if(t.test(r,e)){let i=e.facet(t.facet);return"replace"==t.type?i:i.concat(s)}}return s})].concat(i)}isActiveAt(e,t,i=-1){return Ra(e,t,i).type.prop(Aa)==this.data}findRegions(e){let t=e.facet(Na);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(e,t)=>{if(e.prop(Aa)==this.data)return void i.push({from:t,to:t+e.length});let r=e.prop(po.mounted);if(r){if(r.tree.prop(Aa)==this.data){if(r.overlay)for(let e of r.overlay)i.push({from:e.from+t,to:e.to+t});else i.push({from:t,to:t+e.length});return}if(r.overlay){let e=i.length;if(n(r.tree,r.overlay[0].from+t),i.length>e)return}}for(let i=0;i<e.children.length;i++){let r=e.children[i];r instanceof So&&n(r,e.positions[i]+t)}};return n(Ea(e),0),i}get allowsNesting(){return!0}}function Ra(e,t,i){let n=e.facet(Na),r=Ea(e).topNode;if(!n||n.allowsNesting)for(let e=r;e;e=e.enter(t,i,bo.ExcludeBuffers|bo.EnterBracketed))e.type.isTop&&(r=e);return r}Ma.setState=Pe.define();class Xa extends Ma{constructor(e,t,i){super(e,t,[],i),this.parser=t}static define(e){let t=Ta(e.languageData);return new Xa(t,e.parser.configure({props:[Aa.add(e=>e.isTop?t:void 0)]}),e.name)}configure(e,t){return new Xa(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ea(e){let t=e.field(Ma.state,!1);return t?t.tree:So.empty}function ja(e,t,i=50){var n;let r=null===(n=e.field(Ma.state,!1))||void 0===n?void 0:n.context;if(!r)return null;let s=r.viewport;r.updateViewport({from:0,to:t});let o=r.isDone(t)||r.work(i,t)?r.tree:null;return r.updateViewport(s),o}class za{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}}let La=null;class Ya{constructor(e,t,i=[],n,r,s,o,a){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new Ya(e,t,[],So.empty,0,i,[],null)}startParse(){return this.parser.startParse(new za(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=So.empty&&this.isDone(null!=t?t:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n){if(this.fragments=this.withoutTempSkipped(Vo.addTree(n,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(i=this.parse.stoppedAt)&&void 0!==i?i:this.state.doc.length,this.tree=n,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Vo.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=La;La=this;try{return e()}finally{La=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=Va(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:r,viewport:s,skipped:o}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,i,n,r)=>t.push({fromA:e,toA:i,fromB:n,toB:r})),i=Vo.applyChanges(i,t),n=So.empty,r=0,s={from:e.mapPos(s.from,-1),to:e.mapPos(s.to,1)},this.skipped.length){o=[];for(let t of this.skipped){let i=e.mapPos(t.from,1),n=e.mapPos(t.to,-1);i<n&&o.push({from:i,to:n})}}}return new Ya(this.parser,t,i,n,r,s,o,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:i,to:n}=this.skipped[t];i<e.to&&n>e.from&&(this.fragments=Va(this.fragments,i,n),this.skipped.splice(t--,1))}return!(this.skipped.length>=t||(this.reset(),0))}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Bo{createParse(t,i,n){let r=n[0].from,s=n[n.length-1].to,o={parsedPos:r,advance(){let t=La;if(t){for(let e of n)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=s,new So(mo.none,[],[],s-r)},stoppedAt:null,stopAt(){}};return o}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return La}}function Va(e,t,i){return Vo.applyChanges(e,[{fromA:t,toA:i,fromB:t,toB:i}])}class Ba{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new Ba(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=Ya.create(e.facet(Na).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new Ba(i)}}Ma.state=le.define({create:Ba.init,update(e,t){for(let e of t.effects)if(e.is(Ma.setState))return e.value;return t.startState.facet(Na)!=t.state.facet(Na)?Ba.init(t.state):e.apply(t)}});let Wa=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(Wa=e=>{let t=-1,i=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(i):cancelIdleCallback(t)});const Ia="undefined"!=typeof navigator&&(null===(Ca=navigator.scheduling)||void 0===Ca?void 0:Ca.isInputPending)?()=>navigator.scheduling.isInputPending():null,Da=Gi.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Ma.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Ma.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=Wa(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:n}}=this.view,r=i.field(Ma.state);if(r.tree==r.context.tree&&r.context.isDone(n+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!Ia?Math.max(25,e.timeRemaining()-5):1e9),o=r.context.treeLen<n&&i.doc.length>n+1e3,a=r.context.work(()=>Ia&&Ia()||Date.now()>s,n+(o?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ma.setState.of(new Ba(r.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>Di(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Na=te.define({combine:e=>e.length?e[0]:null,enables:e=>[Ma.state,Da,ws.contentAttributes.compute([e],t=>{let i=t.facet(e);return i&&i.name?{"data-language":i.name}:{}})]});class qa{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}const Ua=te.define(),Ga=te.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function Fa(e){let t=e.facet(Ga);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function Ha(e,t){let i="",n=e.tabSize,r=e.facet(Ga)[0];if("\t"==r){for(;t>=n;)i+="\t",t-=n;r=" "}for(let e=0;e<t;e++)i+=r;return i}function Ka(e,t){e instanceof ze&&(e=new Ja(e));for(let i of e.state.facet(Ua)){let n=i(e,t);if(void 0!==n)return n}let i=Ea(e.state);return i.length>=t?function(e,t,i){let n=t.resolveStack(i),r=t.resolveInner(i,-1).resolve(i,0).enterUnfinishedNodesBefore(i);if(r!=n.node){let e=[];for(let t=r;t&&!(t.from<n.node.from||t.to>n.node.to||t.from==n.node.from&&t.type==n.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)n={node:e[t],next:n}}return tl(n,e,i)}(e,i,t):null}class Ja{constructor(e,t={}){this.state=e,this.options=t,this.unit=Fa(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:r}=this.options;return null!=n&&n>=i.from&&n<=i.to?r&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:i.text.slice(n-i.from),from:n}:{text:i.text.slice(0,n-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:n}=this.lineAt(e,t);return i.slice(e-n,Math.min(i.length,e+100-n))}column(e,t=1){let{text:i,from:n}=this.lineAt(e,t),r=this.countColumn(i,e-n),s=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return s>-1&&(r+=s-this.countColumn(i,i.search(/\S|$/))),r}countColumn(e,t=e.length){return nt(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:n}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(n);if(e>-1)return e}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const el=new po;function tl(e,t,i){for(let n=e;n;n=n.next){let e=il(n.node);if(e)return e(rl.create(t,i,n))}return 0}function il(e){let t=e.type.prop(el);if(t)return t;let i,n=e.firstChild;if(n&&(i=n.type.prop(po.closedBy))){let t=e.lastChild,n=t&&i.indexOf(t.name)>-1;return e=>al(e,!0,1,void 0,n&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?nl:null}function nl(){return 0}class rl extends Ja{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new rl(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(sl(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return tl(this.context.next,this.base,this.pos)}}function sl(e,t){for(let i=t;i;i=i.parent)if(e==i)return!0;return!1}function ol({closing:e,align:t=!0,units:i=1}){return n=>al(n,t,i,e)}function al(e,t,i,n,r){let s=e.textAfter,o=s.match(/^\s*/)[0].length,a=n&&s.slice(o,o+n.length)==n||r==e.pos+o,l=t?function(e){let t=e.node,i=t.childAfter(t.from),n=t.lastChild;if(!i)return null;let r=e.options.simulateBreak,s=e.state.doc.lineAt(i.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let e=i.to;;){let r=t.childAfter(e);if(!r||r==n)return null;if(!r.type.isSkipped){if(r.from>=o)return null;let e=/^ */.exec(s.text.slice(i.to-s.from))[0].length;return{from:i.from,to:i.to+e}}e=r.to}}(e):null;return l?a?e.column(l.from):e.column(l.to):e.baseIndent+(a?0:e.unit*i)}function ll({except:e,units:t=1}={}){return i=>{let n=e&&e.test(i.textAfter);return i.baseIndent+(n?0:t*i.unit)}}const hl=te.define(),cl=new po;function ul(e){let t=e.firstChild,i=e.lastChild;return t&&t.to<i.from?{from:t.to,to:i.type.isError?e.to:i.from}:null}function fl(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function dl(e,t,i){for(let n of e.facet(hl)){let r=n(e,t,i);if(r)return r}return function(e,t,i){let n=Ea(e);if(n.length<i)return null;let r=null;for(let s=n.resolveStack(i,1);s;s=s.next){let o=s.node;if(o.to<=i||o.from>i)continue;if(r&&o.from<t)break;let a=o.type.prop(cl);if(a&&(o.to<n.length-50||n.length==e.doc.length||!fl(o))){let n=a(o,e);n&&n.from<=i&&n.from>=t&&n.to>i&&(r=n)}}return r}(e,t,i)}function pl(e,t){let i=t.mapPos(e.from,1),n=t.mapPos(e.to,-1);return i>=n?void 0:{from:i,to:n}}const Ol=Pe.define({map:pl}),gl=Pe.define({map:pl});const ml=le.define({create:()=>Xt.none,update(e,t){t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,i)=>e=vl(e,t,i)),e=e.map(t.changes);for(let i of t.effects)if(i.is(Ol)&&!yl(e,i.value.from,i.value.to)){let{preparePlaceholder:n}=t.state.facet(xl),r=n?Xt.replace({widget:new $l(n(t.state,i.value))}):Ql;e=e.update({add:[r.range(i.value.from,i.value.to)]})}else i.is(gl)&&(e=e.update({filter:(e,t)=>i.value.from!=e||i.value.to!=t,filterFrom:i.value.from,filterTo:i.value.to}));return t.selection&&(e=vl(e,t.selection.main.head)),e},provide:e=>ws.decorations.from(e),toJSON(e,t){let i=[];return e.between(0,t.doc.length,(e,t)=>{i.push(e,t)}),i},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let i=0;i<e.length;){let n=e[i++],r=e[i++];if("number"!=typeof n||"number"!=typeof r)throw new RangeError("Invalid JSON for fold state");t.push(Ql.range(n,r))}return Xt.set(t,!0)}});function vl(e,t,i=t){let n=!1;return e.between(t,i,(e,r)=>{e<i&&r>t&&(n=!0)}),n?e.update({filterFrom:t,filterTo:i,filter:(e,n)=>e>=i||n<=t}):e}function yl(e,t,i){let n=!1;return e.between(t,t,(e,r)=>{e==t&&r==i&&(n=!0)}),n}function wl(e,t){return e.field(ml,!1)?t:t.concat(Pe.appendConfig.of(function(e){let t=[ml,Pl];return e&&t.push(xl.of(e)),t}()))}function bl(e,t,i=!0){let n=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return ws.announce.of(`${e.state.phrase(i?"Folded lines":"Unfolded lines")} ${n} ${e.state.phrase("to")} ${r}.`)}const Sl={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},xl=te.define({combine:e=>Le(e,Sl)});function kl(e,t){let{state:i}=e,n=i.facet(xl),r=t=>{let i=e.lineBlockAt(e.posAtDOM(t.target)),n=function(e,t,i){var n;let r=null;return null===(n=e.field(ml,!1))||void 0===n||n.between(t,i,(e,t)=>{(!r||r.from>e)&&(r={from:e,to:t})}),r}(e.state,i.from,i.to);n&&e.dispatch({effects:gl.of(n)}),t.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(e,r,t);let s=document.createElement("span");return s.textContent=n.placeholderText,s.setAttribute("aria-label",i.phrase("folded code")),s.title=i.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}const Ql=Xt.replace({widget:new class extends Mt{toDOM(e){return kl(e,null)}}});class $l extends Mt{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return kl(e,this.value)}}const Pl=ws.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class _l{constructor(e,t){let i;function n(e){let t=at.newName();return(i||(i=Object.create(null)))["."+t]=e,t}this.specs=e;const r="string"==typeof t.all?t.all:t.all?n(t.all):void 0,s=t.scope;this.scope=s instanceof Ma?e=>e.prop(Aa)==s.data:s?e=>e==s:void 0,this.style=ca(e.map(e=>({tag:e.tag,class:e.class||n(Object.assign({},e,{tag:null}))})),{all:r}).style,this.module=i?new at(i):null,this.themeType=t.themeType}static define(e,t){return new _l(e,t||{})}}const Cl=te.define(),Al=te.define({combine:e=>e.length?[e[0]]:null});function Tl(e){let t=e.facet(Cl);return t.length?t:e.facet(Al)}function Zl(e,t){let i,n=[Rl];return e instanceof _l&&(e.module&&n.push(ws.styleModule.of(e.module)),i=e.themeType),(null==t?void 0:t.fallback)?n.push(Al.of(e)):i?n.push(Cl.computeN([ws.darkTheme],t=>t.facet(ws.darkTheme)==("dark"==i)?[e]:[])):n.push(Cl.of(e)),n}class Ml{constructor(e){this.markCache=Object.create(null),this.tree=Ea(e.state),this.decorations=this.buildDeco(e,Tl(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=Ea(e.state),i=Tl(e.state),n=i!=Tl(e.startState),{viewport:r}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<r.to&&!n&&t.type==this.tree.type&&s>=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||n)&&(this.tree=t,this.decorations=this.buildDeco(e.view,i),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return Xt.none;let i=new Ne;for(let{from:n,to:r}of e.visibleRanges)ua(this.tree,t,(e,t,n)=>{i.add(e,t,this.markCache[n]||(this.markCache[n]=Xt.mark({class:n})))},n,r);return i.finish()}}const Rl=ce.high(Gi.fromClass(Ml,{decorations:e=>e.decorations})),Xl=_l.define([{tag:_a.meta,color:"#404740"},{tag:_a.link,textDecoration:"underline"},{tag:_a.heading,textDecoration:"underline",fontWeight:"bold"},{tag:_a.emphasis,fontStyle:"italic"},{tag:_a.strong,fontWeight:"bold"},{tag:_a.strikethrough,textDecoration:"line-through"},{tag:_a.keyword,color:"#708"},{tag:[_a.atom,_a.bool,_a.url,_a.contentSeparator,_a.labelName],color:"#219"},{tag:[_a.literal,_a.inserted],color:"#164"},{tag:[_a.string,_a.deleted],color:"#a11"},{tag:[_a.regexp,_a.escape,_a.special(_a.string)],color:"#e40"},{tag:_a.definition(_a.variableName),color:"#00f"},{tag:_a.local(_a.variableName),color:"#30a"},{tag:[_a.typeName,_a.namespace],color:"#085"},{tag:_a.className,color:"#167"},{tag:[_a.special(_a.variableName),_a.macroName],color:"#256"},{tag:_a.definition(_a.propertyName),color:"#00c"},{tag:_a.comment,color:"#940"},{tag:_a.invalid,color:"#f00"}]),El=new po;function jl(e,t,i){let n=e.prop(t<0?po.openedBy:po.closedBy);if(n)return n;if(1==e.name.length){let n=i.indexOf(e.name);if(n>-1&&n%2==(t<0?1:0))return[i[n+t]]}return null}function zl(e){let t=e.type.prop(El);return t?t(e.node):e}function Ll(e,t,i,n={}){let r=n.maxScanDistance||1e4,s=n.brackets||"()[]{}",o=Ea(e),a=o.resolveInner(t,i);for(let e=a;e;e=e.parent){let n=jl(e.type,i,s);if(n&&e.from<e.to){let r=zl(e);if(r&&(i>0?t>=r.from&&t<r.to:t>r.from&&t<=r.to))return Yl(0,0,i,e,r,n,s)}}return function(e,t,i,n,r,s,o){if(i<0?!t:t==e.doc.length)return null;let a=i<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=o.indexOf(a);if(l<0||l%2==0!=i>0)return null;let h={from:i<0?t-1:t,to:i>0?t+1:t},c=e.doc.iterRange(t,i>0?e.doc.length:0),u=0;for(let e=0;!c.next().done&&e<=s;){let s=c.value;i<0&&(e+=s.length);let a=t+e*i;for(let e=i>0?0:s.length-1,t=i>0?s.length:-1;e!=t;e+=i){let t=o.indexOf(s[e]);if(!(t<0||n.resolveInner(a+e,1).type!=r))if(t%2==0==i>0)u++;else{if(1==u)return{start:h,end:{from:a+e,to:a+e+1},matched:t>>1==l>>1};u--}}i>0&&(e+=s.length)}return c.done?{start:h,matched:!1}:null}(e,t,i,o,a.type,r,s)}function Yl(e,t,i,n,r,s,o){let a=n.parent,l={from:r.from,to:r.to},h=0,c=null==a?void 0:a.cursor();if(c&&(i<0?c.childBefore(n.from):c.childAfter(n.to)))do{if(i<0?c.to<=n.from:c.from>=n.to){if(0==h&&s.indexOf(c.type.name)>-1&&c.from<c.to){let e=zl(c);return{start:l,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}if(jl(c.type,i,o))h++;else if(jl(c.type,-i,o)){if(0==h){let e=zl(c);return{start:l,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}h--}}}while(i<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function Vl(e,t,i,n=0,r=0){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let s=r;for(let r=n;r<t;r++)9==e.charCodeAt(r)?s+=i-s%i:s++;return s}const Bl=Object.create(null),Wl=[mo.none],Il=[],Dl=Object.create(null),Nl=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])Nl[e]=Ul(Bl,t);function ql(e,t){Il.indexOf(e)>-1||(Il.push(e),console.warn(t))}function Ul(e,t){let i=[];for(let n of t.split(" ")){let t=[];for(let i of n.split(".")){let n=e[i]||_a[i];n?"function"==typeof n?t.length?t=t.map(n):ql(i,`Modifier ${i} used at start of tag`):t.length?ql(i,`Tag ${i} used as modifier`):t=Array.isArray(n)?n:[n]:ql(i,`Unknown highlighting tag ${i}`)}for(let e of t)i.push(e)}if(!i.length)return 0;let n=t.replace(/ /g,"_"),r=n+" "+i.map(e=>e.id),s=Dl[r];if(s)return s.id;let o=Dl[r]=mo.define({id:Wl.length,name:n,props:[aa({[n]:i})]});return Wl.push(o),o.id}function Gl(e,t){return({state:i,dispatch:n})=>{if(i.readOnly)return!1;let r=e(t,i);return!!r&&(n(i.update(r)),!0)}}ui.RTL,ui.LTR;const Fl=Gl(ih,0),Hl=Gl(th,0),Kl=Gl((e,t)=>th(e,t,function(e){let t=[];for(let i of e.selection.ranges){let n=e.doc.lineAt(i.from),r=i.to<=n.to?n:e.doc.lineAt(i.to);r.from>n.from&&r.from==i.to&&(r=i.to==n.to+1?n:e.doc.lineAt(i.to-1));let s=t.length-1;s>=0&&t[s].to>n.from?t[s].to=r.to:t.push({from:n.from+/^\s*/.exec(n.text)[0].length,to:r.to})}return t}(t)),0);function Jl(e,t){let i=e.languageDataAt("commentTokens",t,1);return i.length?i[0]:{}}const eh=50;function th(e,t,i=t.selection.ranges){let n=i.map(e=>Jl(t,e.from).block);if(!n.every(e=>e))return null;let r=i.map((e,i)=>function(e,{open:t,close:i},n,r){let s,o,a=e.sliceDoc(n-eh,n),l=e.sliceDoc(r,r+eh),h=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,u=a.length-h;if(a.slice(u-t.length,u)==t&&l.slice(c,c+i.length)==i)return{open:{pos:n-h,margin:h&&1},close:{pos:r+c,margin:c&&1}};r-n<=2*eh?s=o=e.sliceDoc(n,r):(s=e.sliceDoc(n,n+eh),o=e.sliceDoc(r-eh,r));let f=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,p=o.length-d-i.length;return s.slice(f,f+t.length)==t&&o.slice(p,p+i.length)==i?{open:{pos:n+f+t.length,margin:/\s/.test(s.charAt(f+t.length))?1:0},close:{pos:r-d-i.length,margin:/\s/.test(o.charAt(p-1))?1:0}}:null}(t,n[i],e.from,e.to));if(2!=e&&!r.every(e=>e))return{changes:t.changes(i.map((e,t)=>r[t]?[]:[{from:e.from,insert:n[t].open+" "},{from:e.to,insert:" "+n[t].close}]))};if(1!=e&&r.some(e=>e)){let e=[];for(let t,i=0;i<r.length;i++)if(t=r[i]){let r=n[i],{open:s,close:o}=t;e.push({from:s.pos-r.open.length,to:s.pos+s.margin},{from:o.pos-o.margin,to:o.pos+r.close.length})}return{changes:e}}return null}function ih(e,t,i=t.selection.ranges){let n=[],r=-1;e:for(let{from:e,to:s}of i){let i,o=n.length,a=1e9;for(let o=e;o<=s;){let l=t.doc.lineAt(o);if(null==i&&(i=Jl(t,l.from).line,!i))continue e;if(l.from>r&&(e==s||s>l.from)){r=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,s=l.text.slice(e,e+i.length)==i?e:-1;e<l.text.length&&e<a&&(a=e),n.push({line:l,comment:s,token:i,indent:e,empty:t,single:!1})}o=l.to+1}if(a<1e9)for(let e=o;e<n.length;e++)n[e].indent<n[e].line.text.length&&(n[e].indent=a);n.length==o+1&&(n[o].single=!0)}if(2!=e&&n.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:i,indent:r,empty:s,single:o}of n)!o&&s||e.push({from:t.from+r,insert:i+" "});let i=t.changes(e);return{changes:i,selection:t.selection.map(i,1)}}if(1!=e&&n.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:i,token:r}of n)if(i>=0){let n=t.from+i,s=n+r.length;" "==t.text[s-t.from]&&s++,e.push({from:n,to:s})}return{changes:e}}return null}const nh=ke.define(),rh=ke.define(),sh=te.define(),oh=te.define({combine:e=>Le(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,n)=>e(i,n)||t(i,n)})}),ah=le.define({create:()=>kh.empty,update(e,t){let i=t.state.facet(oh),n=t.annotation(nh);if(n){let r=ph.fromTransaction(t,n.selection),s=n.side,o=0==s?e.undone:e.done;return o=r?Oh(o,o.length,i.minDepth,r):yh(o,t.startState.selection),new kh(0==s?n.rest:o,0==s?o:n.rest)}let r=t.annotation(rh);if("full"!=r&&"before"!=r||(e=e.isolate()),!1===t.annotation(_e.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let s=ph.fromTransaction(t),o=t.annotation(_e.time),a=t.annotation(_e.userEvent);return s?e=e.addChanges(s,o,a,i,t):t.selection&&(e=e.addSelection(t.startState.selection,o,a,i.newGroupDelay)),"full"!=r&&"after"!=r||(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new kh(e.done.map(ph.fromJSON),e.undone.map(ph.fromJSON))});function lh(e={}){return[ah,oh.of(e),ws.domEventHandlers({beforeinput(e,t){let i="historyUndo"==e.inputType?ch:"historyRedo"==e.inputType?uh:null;return!!i&&(e.preventDefault(),i(t))}})]}function hh(e,t){return function({state:i,dispatch:n}){if(!t&&i.readOnly)return!1;let r=i.field(ah,!1);if(!r)return!1;let s=r.pop(e,i,t);return!!s&&(n(s),!0)}}const ch=hh(0,!1),uh=hh(1,!1),fh=hh(0,!0),dh=hh(1,!0);class ph{constructor(e,t,i,n,r){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=n,this.selectionsAfter=r}setSelAfter(e){return new ph(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new ph(e.changes&&I.fromJSON(e.changes),[],e.mapped&&W.fromJSON(e.mapped),e.startSelection&&K.fromJSON(e.startSelection),e.selectionsAfter.map(K.fromJSON))}static fromTransaction(e,t){let i=mh;for(let t of e.startState.facet(sh)){let n=t(e);n.length&&(i=i.concat(n))}return!i.length&&e.changes.empty?null:new ph(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,mh)}static selection(e){return new ph(void 0,mh,void 0,void 0,e)}}function Oh(e,t,i,n){let r=t+1>i+20?t-i-1:0,s=e.slice(r,t);return s.push(n),s}function gh(e,t){return e.length?t.length?e.concat(t):e:t}const mh=[],vh=200;function yh(e,t){if(e.length){let i=e[e.length-1],n=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-vh));return n.length&&n[n.length-1].eq(t)?e:(n.push(t),Oh(e,e.length-1,1e9,i.setSelAfter(n)))}return[ph.selection([t])]}function wh(e){let t=e[e.length-1],i=e.slice();return i[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),i}function bh(e,t){if(!e.length)return e;let i=e.length,n=mh;for(;i;){let r=Sh(e[i-1],t,n);if(r.changes&&!r.changes.empty||r.effects.length){let t=e.slice(0,i);return t[i-1]=r,t}t=r.mapped,i--,n=r.selectionsAfter}return n.length?[ph.selection(n)]:mh}function Sh(e,t,i){let n=gh(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):mh,i);if(!e.changes)return ph.selection(n);let r=e.changes.map(t),s=t.mapDesc(e.changes,!0),o=e.mapped?e.mapped.composeDesc(s):s;return new ph(r,Pe.mapEffects(e.effects,t),o,e.startSelection.map(s),n)}const xh=/^(input\.type|delete)($|\.)/;class kh{constructor(e,t,i=0,n=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new kh(this.done,this.undone):this}addChanges(e,t,i,n,r){let s=this.done,o=s[s.length-1];return s=o&&o.changes&&!o.changes.empty&&e.changes&&(!i||xh.test(i))&&(!o.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(r,function(e,t){let i=[],n=!1;return e.iterChangedRanges((e,t)=>i.push(e,t)),t.iterChangedRanges((e,t,r,s)=>{for(let e=0;e<i.length;){let t=i[e++],o=i[e++];s>=t&&r<=o&&(n=!0)}}),n}(o.changes,e.changes))||"input.type.compose"==i)?Oh(s,s.length-1,n.minDepth,new ph(e.changes.compose(o.changes),gh(Pe.mapEffects(e.effects,o.changes),o.effects),o.mapped,o.startSelection,mh)):Oh(s,s.length,n.minDepth,e),new kh(s,mh,t,i)}addSelection(e,t,i,n){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:mh;return r.length>0&&t-this.prevTime<n&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&function(e,t){return e.ranges.length==t.ranges.length&&0===e.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length}(r[r.length-1],e)?this:new kh(yh(this.done,e),this.undone,t,i)}addMapping(e){return new kh(bh(this.done,e),bh(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let n=0==e?this.done:this.undone;if(0==n.length)return null;let r=n[n.length-1],s=r.selectionsAfter[0]||(r.startSelection?r.startSelection.map(r.changes.invertedDesc,1):t.selection);if(i&&r.selectionsAfter.length)return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:nh.of({side:e,rest:wh(n),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let i=1==n.length?mh:n.slice(0,n.length-1);return r.mapped&&(i=bh(i,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:nh.of({side:e,rest:i,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}kh.empty=new kh(mh,mh);const Qh=[{key:"Mod-z",run:ch,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:uh,preventDefault:!0},{linux:"Ctrl-Shift-z",run:uh,preventDefault:!0},{key:"Mod-u",run:fh,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:dh,preventDefault:!0}];function $h(e,t){return K.create(e.ranges.map(t),e.mainIndex)}function Ph(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function _h({state:e,dispatch:t},i){let n=$h(e.selection,i);return!n.eq(e.selection,!0)&&(t(Ph(e,n)),!0)}function Ch(e,t){return K.cursor(t?e.to:e.from)}function Ah(e,t){return _h(e,i=>i.empty?e.moveByChar(i,t):Ch(i,t))}function Th(e){return e.textDirectionAt(e.state.selection.main.head)==ui.LTR}const Zh=e=>Ah(e,!Th(e)),Mh=e=>Ah(e,Th(e));function Rh(e,t){return _h(e,i=>i.empty?e.moveByGroup(i,t):Ch(i,t))}function Xh(e,t,i){if(t.type.prop(i))return!0;let n=t.to-t.from;return n&&(n>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Eh(e,t,i){let n,r,s=Ea(e).resolveInner(t.head),o=i?po.closedBy:po.openedBy;for(let n=t.head;;){let t=i?s.childAfter(n):s.childBefore(n);if(!t)break;Xh(e,t,o)?s=t:n=i?t.to:t.from}return r=s.type.prop(o)&&(n=i?Ll(e,s.from,1):Ll(e,s.to,-1))&&n.matched?i?n.end.to:n.end.from:i?s.to:s.from,K.cursor(r,i?-1:1)}function jh(e,t){return _h(e,i=>{if(!i.empty)return Ch(i,t);let n=e.moveVertically(i,t);return n.head!=i.head?n:e.moveToLineBoundary(i,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;const zh=e=>jh(e,!1),Lh=e=>jh(e,!0);function Yh(e){let t,i=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,r=0;if(i){for(let t of e.state.facet(ws.scrollMargins)){let i=t(e);(null==i?void 0:i.top)&&(n=Math.max(null==i?void 0:i.top,n)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}t=e.scrollDOM.clientHeight-n-r}else t=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:i,height:Math.max(e.defaultLineHeight,t-5)}}function Vh(e,t){let i,n=Yh(e),{state:r}=e,s=$h(r.selection,i=>i.empty?e.moveVertically(i,t,n.height):Ch(i,t));if(s.eq(r.selection))return!1;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),a=o.top+n.marginTop,l=o.bottom-n.marginBottom;t&&t.top>a&&t.bottom<l&&(i=ws.scrollIntoView(s.main.head,{y:"start",yMargin:t.top-a}))}return e.dispatch(Ph(r,s),{effects:i}),!0}const Bh=e=>Vh(e,!1),Wh=e=>Vh(e,!0);function Ih(e,t,i){let n=e.lineBlockAt(t.head),r=e.moveToLineBoundary(t,i);if(r.head==t.head&&r.head!=(i?n.to:n.from)&&(r=e.moveToLineBoundary(t,i,!1)),!i&&r.head==n.from&&n.length){let i=/^\s*/.exec(e.state.sliceDoc(n.from,Math.min(n.from+100,n.to)))[0].length;i&&t.head!=n.from+i&&(r=K.cursor(n.from+i))}return r}const Dh=e=>_h(e,t=>Ih(e,t,!0)),Nh=e=>_h(e,t=>Ih(e,t,!1));function qh(e,t){let i=$h(e.state.selection,e=>{let i=t(e);return K.range(e.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return!i.eq(e.state.selection)&&(e.dispatch(Ph(e.state,i)),!0)}function Uh(e,t){return qh(e,i=>e.moveByChar(i,t))}const Gh=e=>Uh(e,!Th(e)),Fh=e=>Uh(e,Th(e));function Hh(e,t){return qh(e,i=>e.moveByGroup(i,t))}function Kh(e,t){return qh(e,i=>e.moveVertically(i,t))}const Jh=e=>Kh(e,!1),ec=e=>Kh(e,!0);function tc(e,t){return qh(e,i=>e.moveVertically(i,t,Yh(e).height))}const ic=e=>tc(e,!1),nc=e=>tc(e,!0),rc=({state:e,dispatch:t})=>(t(Ph(e,{anchor:0})),!0),sc=({state:e,dispatch:t})=>(t(Ph(e,{anchor:e.doc.length})),!0),oc=({state:e,dispatch:t})=>(t(Ph(e,{anchor:e.selection.main.anchor,head:0})),!0),ac=({state:e,dispatch:t})=>(t(Ph(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function lc(e,t){let{state:i}=e,n=i.selection,r=i.selection.ranges.slice();for(let n of i.selection.ranges){let s=i.doc.lineAt(n.head);if(t?s.to<e.state.doc.length:s.from>0)for(let i=n;;){let n=e.moveVertically(i,t);if(n.head<s.from||n.head>s.to){r.some(e=>e.head==n.head)||r.push(n);break}if(n.head==i.head)break;i=n}}return r.length!=n.ranges.length&&(e.dispatch(Ph(i,K.create(r,r.length-1))),!0)}function hc(e,t){if(e.state.readOnly)return!1;let i="delete.selection",{state:n}=e,r=n.changeByRange(n=>{let{from:r,to:s}=n;if(r==s){let o=t(n);o<r?(i="delete.backward",o=cc(e,o,!1)):o>r&&(i="delete.forward",o=cc(e,o,!0)),r=Math.min(r,o),s=Math.max(s,o)}else r=cc(e,r,!1),s=cc(e,s,!0);return r==s?{range:n}:{changes:{from:r,to:s},range:K.cursor(r,r<n.head?-1:1)}});return!r.changes.empty&&(e.dispatch(n.update(r,{scrollIntoView:!0,userEvent:i,effects:"delete.selection"==i?ws.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function cc(e,t,i){if(e instanceof ws)for(let n of e.state.facet(ws.atomicRanges).map(t=>t(e)))n.between(t,t,(e,n)=>{e<t&&n>t&&(t=i?n:e)});return t}const uc=(e,t,i)=>hc(e,n=>{let r,s,o=n.from,{state:a}=e,l=a.doc.lineAt(o);if(i&&!t&&o>l.from&&o<l.from+200&&!/[^ \t]/.test(r=l.text.slice(0,o-l.from))){if("\t"==r[r.length-1])return o-1;let e=nt(r,a.tabSize)%Fa(a)||Fa(a);for(let t=0;t<e&&" "==r[r.length-1-t];t++)o--;s=o}else s=j(l.text,o-l.from,t,t)+l.from,s==o&&l.number!=(t?a.doc.lines:1)?s+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(l.text.slice(s-l.from,o-l.from))&&(s=j(l.text,s-l.from,!1,!1)+l.from);return s}),fc=e=>uc(e,!1,!0),dc=e=>uc(e,!0,!1),pc=(e,t)=>hc(e,i=>{let n=i.head,{state:r}=e,s=r.doc.lineAt(n),o=r.charCategorizer(n);for(let e=null;;){if(n==(t?s.to:s.from)){n==i.head&&s.number!=(t?r.doc.lines:1)&&(n+=t?1:-1);break}let a=j(s.text,n-s.from,t)+s.from,l=s.text.slice(Math.min(n,a)-s.from,Math.max(n,a)-s.from),h=o(l);if(null!=e&&h!=e)break;" "==l&&n==i.head||(e=h),n=a}return n}),Oc=e=>pc(e,!1);function gc(e){let t=[],i=-1;for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),s=e.doc.lineAt(n.to);if(n.empty||n.to!=s.from||(s=e.doc.lineAt(n.to-1)),i>=r.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(n)}else t.push({from:r.from,to:s.to,ranges:[n]});i=s.number+1}return t}function mc(e,t,i){if(e.readOnly)return!1;let n=[],r=[];for(let t of gc(e)){if(i?t.to==e.doc.length:0==t.from)continue;let s=e.doc.lineAt(i?t.to+1:t.from-1),o=s.length+1;if(i){n.push({from:t.to,to:s.to},{from:t.from,insert:s.text+e.lineBreak});for(let i of t.ranges)r.push(K.range(Math.min(e.doc.length,i.anchor+o),Math.min(e.doc.length,i.head+o)))}else{n.push({from:s.from,to:t.from},{from:t.to,insert:e.lineBreak+s.text});for(let e of t.ranges)r.push(K.range(e.anchor-o,e.head-o))}}return!!n.length&&(t(e.update({changes:n,scrollIntoView:!0,selection:K.create(r,e.selection.mainIndex),userEvent:"move.line"})),!0)}function vc(e,t,i){if(e.readOnly)return!1;let n=[];for(let t of gc(e))i?n.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):n.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let r=e.changes(n);return t(e.update({changes:r,selection:e.selection.map(r,i?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const yc=bc(!1),wc=bc(!0);function bc(e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let n=t.changeByRange(i=>{let{from:n,to:r}=i,s=t.doc.lineAt(n),o=!e&&n==r&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let i,n=Ea(e).resolveInner(t),r=n.childBefore(t),s=n.childAfter(t);return r&&s&&r.to<=t&&s.from>=t&&(i=r.type.prop(po.closedBy))&&i.indexOf(s.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(r.to,s.from))?{from:r.to,to:s.from}:null}(t,n);e&&(n=r=(r<=s.to?s:t.doc.lineAt(r)).to);let a=new Ja(t,{simulateBreak:n,simulateDoubleBreak:!!o}),l=Ka(a,n);for(null==l&&(l=nt(/^\s*/.exec(t.doc.lineAt(n).text)[0],t.tabSize));r<s.to&&/\s/.test(s.text[r-s.from]);)r++;o?({from:n,to:r}=o):n>s.from&&n<s.from+100&&!/\S/.test(s.text.slice(0,n))&&(n=s.from);let h=["",Ha(t,l)];return o&&h.push(Ha(t,a.lineIndent(s.from,-1))),{changes:{from:n,to:r,insert:P.of(h)},range:K.cursor(n+1+h[1].length)}});return i(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}}function Sc(e,t){let i=-1;return e.changeByRange(n=>{let r=[];for(let s=n.from;s<=n.to;){let o=e.doc.lineAt(s);o.number>i&&(n.empty||n.to>o.from)&&(t(o,r,n),i=o.number),s=o.to+1}let s=e.changes(r);return{changes:r,range:K.range(s.mapPos(n.anchor,1),s.mapPos(n.head,1))}})}const xc=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=Object.create(null),n=new Ja(e,{overrideIndentation:e=>i[e]??-1}),r=Sc(e,(t,r,s)=>{let o=Ka(n,t.from);if(null==o)return;/\S/.test(t.text)||(o=0);let a=/^\s*/.exec(t.text)[0],l=Ha(e,o);(a!=l||s.from<t.from+a.length)&&(i[t.from]=o,r.push({from:t.from,to:t.from+a.length,insert:l}))});return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0},kc=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Sc(e,(t,i)=>{i.push({from:t.from,insert:e.facet(Ga)})}),{userEvent:"input.indent"})),!0),Qc=({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(Sc(e,(t,i)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let r=nt(n,e.tabSize),s=0,o=Ha(e,Math.max(0,r-Fa(e)));for(;s<n.length&&s<o.length&&n.charCodeAt(s)==o.charCodeAt(s);)s++;i.push({from:t.from+s,to:t.from+n.length,insert:o.slice(s)})}),{userEvent:"delete.dedent"})),!0),$c=[{key:"ArrowLeft",run:Zh,shift:Gh,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>Rh(e,!Th(e)),shift:e=>Hh(e,!Th(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>_h(e,t=>Ih(e,t,!Th(e))),shift:e=>qh(e,t=>Ih(e,t,!Th(e))),preventDefault:!0},{key:"ArrowRight",run:Mh,shift:Fh,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>Rh(e,Th(e)),shift:e=>Hh(e,Th(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>_h(e,t=>Ih(e,t,Th(e))),shift:e=>qh(e,t=>Ih(e,t,Th(e))),preventDefault:!0},{key:"ArrowUp",run:zh,shift:Jh,preventDefault:!0},{mac:"Cmd-ArrowUp",run:rc,shift:oc},{mac:"Ctrl-ArrowUp",run:Bh,shift:ic},{key:"ArrowDown",run:Lh,shift:ec,preventDefault:!0},{mac:"Cmd-ArrowDown",run:sc,shift:ac},{mac:"Ctrl-ArrowDown",run:Wh,shift:nc},{key:"PageUp",run:Bh,shift:ic},{key:"PageDown",run:Wh,shift:nc},{key:"Home",run:Nh,shift:e=>qh(e,t=>Ih(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:rc,shift:oc},{key:"End",run:Dh,shift:e=>qh(e,t=>Ih(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:sc,shift:ac},{key:"Enter",run:yc,shift:yc},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:fc,shift:fc,preventDefault:!0},{key:"Delete",run:dc,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Oc,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>pc(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>hc(e,t=>{let i=e.moveToLineBoundary(t,!1).head;return t.head>i?i:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>hc(e,t=>{let i=e.moveToLineBoundary(t,!0).head;return t.head<i?i:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat([{key:"Ctrl-b",run:Zh,shift:Gh,preventDefault:!0},{key:"Ctrl-f",run:Mh,shift:Fh},{key:"Ctrl-p",run:zh,shift:Jh},{key:"Ctrl-n",run:Lh,shift:ec},{key:"Ctrl-a",run:e=>_h(e,t=>K.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>qh(e,t=>K.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>_h(e,t=>K.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>qh(e,t=>K.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:dc},{key:"Ctrl-h",run:fc},{key:"Ctrl-k",run:e=>hc(e,t=>{let i=e.lineBlockAt(t.head).to;return t.head<i?i:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:Oc},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:P.of(["",""])},range:K.cursor(e.from)}));return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let i=t.from,n=e.doc.lineAt(i),r=i==n.from?i-1:j(n.text,i-n.from,!1)+n.from,s=i==n.to?i+1:j(n.text,i-n.from,!0)+n.from;return{changes:{from:r,to:s,insert:e.doc.slice(i,s).append(e.doc.slice(r,i))},range:K.cursor(s)}});return!i.changes.empty&&(t(e.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Wh}].map(e=>({mac:e.key,run:e.run,shift:e.shift}))),Pc=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>_h(e,t=>Eh(e.state,t,!Th(e))),shift:e=>qh(e,t=>Eh(e.state,t,!Th(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>_h(e,t=>Eh(e.state,t,Th(e))),shift:e=>qh(e,t=>Eh(e.state,t,Th(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>mc(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>vc(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>mc(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>vc(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>lc(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>lc(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let i=e.selection,n=null;return i.ranges.length>1?n=K.create([i.main]):i.main.empty||(n=K.create([K.cursor(i.main.head)])),!!n&&(t(Ph(e,n)),!0)}},{key:"Mod-Enter",run:wc},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let i=gc(e).map(({from:t,to:i})=>K.range(t,Math.min(i+1,e.doc.length)));return t(e.update({selection:K.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let i=$h(e.selection,t=>{let i=Ea(e),n=i.resolveStack(t.from,1);if(t.empty){let e=i.resolveStack(t.from,-1);e.node.from>=n.node.from&&e.node.to<=n.node.to&&(n=e)}for(let e=n;e;e=e.next){let{node:i}=e;if((i.from<t.from&&i.to>=t.to||i.to>t.to&&i.from<=t.from)&&e.next)return K.range(i.to,i.from)}return t});return!i.eq(e.selection)&&(t(Ph(e,i)),!0)},preventDefault:!0},{key:"Mod-[",run:Qc},{key:"Mod-]",run:kc},{key:"Mod-Alt-\\",run:xc},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,i=t.changes(gc(t).map(({from:e,to:i})=>(e>0?e--:i<t.doc.length&&i++,{from:e,to:i}))),n=$h(t.selection,t=>{let i;if(e.lineWrapping){let n=e.lineBlockAt(t.head),r=e.coordsAtPos(t.head,t.assoc||1);r&&(i=n.bottom+e.documentTop-r.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,i)}).map(i);return e.dispatch({changes:i,selection:n,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>function(e,t,i){let n=!1,r=$h(e.selection,t=>{let r=Ll(e,t.head,-1)||Ll(e,t.head,1)||t.head>0&&Ll(e,t.head-1,1)||t.head<e.doc.length&&Ll(e,t.head+1,-1);if(!r||!r.end)return t;n=!0;let s=r.start.from==t.head?r.end.to:r.end.from;return i?K.range(t.anchor,s):K.cursor(s)});return!!n&&(t(Ph(e,r)),!0)}(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,i=t.doc.lineAt(t.selection.main.from),n=Jl(e.state,i.from);return n.line?Fl(e):!!n.block&&Kl(e)}},{key:"Alt-A",run:Hl},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat($c),_c="#e06c75",Cc="#abb2bf",Ac="#7d8799",Tc="#d19a66",Zc="#2c313a",Mc="#282c34",Rc="#353a42",Xc="#528bff",Ec=[ws.theme({"&":{color:Cc,backgroundColor:Mc},".cm-content":{caretColor:Xc},".cm-cursor, .cm-dropCursor":{borderLeftColor:Xc},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:"#3E4451"},".cm-panels":{backgroundColor:"#21252b",color:Cc},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Mc,color:Ac,border:"none"},".cm-activeLineGutter":{backgroundColor:Zc},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Rc},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Rc,borderBottomColor:Rc},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Zc,color:Cc}}},{dark:!0}),Zl(_l.define([{tag:_a.keyword,color:"#c678dd"},{tag:[_a.name,_a.deleted,_a.character,_a.propertyName,_a.macroName],color:_c},{tag:[_a.function(_a.variableName),_a.labelName],color:"#61afef"},{tag:[_a.color,_a.constant(_a.name),_a.standard(_a.name)],color:Tc},{tag:[_a.definition(_a.name),_a.separator],color:Cc},{tag:[_a.typeName,_a.className,_a.number,_a.changed,_a.annotation,_a.modifier,_a.self,_a.namespace],color:"#e5c07b"},{tag:[_a.operator,_a.operatorKeyword,_a.url,_a.escape,_a.regexp,_a.link,_a.special(_a.string)],color:"#56b6c2"},{tag:[_a.meta,_a.comment],color:Ac},{tag:_a.strong,fontWeight:"bold"},{tag:_a.emphasis,fontStyle:"italic"},{tag:_a.strikethrough,textDecoration:"line-through"},{tag:_a.link,color:Ac,textDecoration:"underline"},{tag:_a.heading,fontWeight:"bold",color:_c},{tag:[_a.atom,_a.bool,_a.special(_a.variableName)],color:Tc},{tag:[_a.processingInstruction,_a.string,_a.inserted],color:"#98c379"},{tag:_a.invalid,color:"#ffffff"}]))];class jc{constructor(e,t,i,n,r,s,o,a,l,h=0,c){this.p=e,this.stack=t,this.state=i,this.reducePos=n,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,i=0){let n=e.parser.context;return new jc(e,[],t,i,i,0,[],0,n?new zc(n,n.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let i=e>>19,n=65535&e,{parser:r}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),o=r.dynamicPrecedence(n);if(o&&(this.score+=o),0==i)return n<r.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(r.getGoto(this.state,n,!0),this.reducePos),n<r.minRepeatTerm&&this.storeNode(n,this.reducePos,this.reducePos,s?8:4,!0),void this.reduceContext(n,this.reducePos);let a=this.stack.length-3*(i-1)-(262144&e?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from;n<r.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let h=this.reducePos-l;h>=2e3&&!(null===(t=this.p.parser.nodeSet.types[n])||void 0===t?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=h));let c=a?this.stack[a-1]:0,u=this.bufferBase+this.buffer.length-c;if(n<r.minRepeatTerm||131072&e){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(n,l,e,u+4,!0)}if(262144&e)this.state=this.stack[a];else{let e=this.stack[a-3];this.state=r.getGoto(e,n,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(n,l)}storeNode(e,t,i,n=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&0==this.buffer[e-4]&&this.buffer[e-1]>-1){if(t==i)return;if(this.buffer[e-2]>=t)return void(this.buffer[e-2]=i)}}if(r&&this.pos!=i){let r=this.buffer.length;if(r>0&&(0!=this.buffer[r-4]||this.buffer[r-1]<0)){let e=!1;for(let t=r;t>0&&this.buffer[t-2]>i;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;r>0&&this.buffer[r-2]>i;)this.buffer[r]=this.buffer[r-4],this.buffer[r+1]=this.buffer[r-3],this.buffer[r+2]=this.buffer[r-2],this.buffer[r+3]=this.buffer[r-1],r-=4,n>4&&(n-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=i,this.buffer[r+3]=n}else this.buffer.push(e,t,i,n)}shift(e,t,i,n){if(131072&e)this.pushState(65535&e,this.pos);else if(262144&e)this.pos=n,this.shiftContext(t,i),t<=this.p.parser.maxNode&&this.buffer.push(t,i,n,4);else{let r=e,{parser:s}=this.p;this.pos=n;let o=s.stateFlag(r,1);!o&&(n>i||t<=s.maxNode)&&(this.reducePos=n),this.pushState(r,o?i:Math.min(i,this.reducePos)),this.shiftContext(t,i),t<=s.maxNode&&this.buffer.push(t,i,n,4)}}apply(e,t,i,n){65536&e?this.reduce(e):this.shift(e,t,i,n)}useNode(e,t){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=e)&&(this.p.reused.push(e),i++);let n=this.pos;this.reducePos=this.pos=n+e.length,this.pushState(t,n),this.buffer.push(i,n,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(t&&0==e.buffer[t-4]&&(t-=4);t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let i=e.buffer.slice(t),n=e.bufferBase+t;for(;e&&n==e.bufferBase;)e=e.parent;return new jc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,n,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let i=e<=this.p.parser.maxNode;i&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,i?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new Lc(this);;){let i=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==i)return!1;if(!(65536&i))return!0;t.reduce(i)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let i=[];for(let n,r=0;r<t.length;r+=2)(n=t[r+1])!=this.state&&this.p.parser.hasAction(n,e)&&i.push(t[r],n);if(this.stack.length<120)for(let e=0;i.length<8&&e<t.length;e+=2){let n=t[e+1];i.some((e,t)=>1&t&&e==n)||i.push(t[e],n)}t=i}let i=[];for(let e=0;e<t.length&&i.length<4;e+=2){let n=t[e+1];if(n==this.state)continue;let r=this.split();r.pushState(n,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[e],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if(!(65536&t))return!1;if(!e.validAction(this.state,t)){let i=t>>19,n=65535&t,r=this.stack.length-3*i;if(r<0||e.getGoto(this.stack[r],n,!1)<0){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],i=(n,r)=>{if(!t.includes(n))return t.push(n),e.allActions(n,t=>{if(393216&t);else if(65536&t){let i=(t>>19)-r;if(i>1){let n=65535&t,r=this.stack.length-3*i;if(r>=0&&e.getGoto(this.stack[r],n,!1)>=0)return i<<19|65536|n}}else{let e=i(t,r+1);if(null!=e)return e}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new zc(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead||(this.emitLookAhead(),this.lookAhead=e,0))}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class zc{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class Lc{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=65535&e,i=e>>19;0==i?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=3*(i-1);let n=this.start.p.parser.getGoto(this.stack[this.base-3],t,!0);this.state=n}}class Yc{constructor(e,t,i){this.stack=e,this.pos=t,this.index=i,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new Yc(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new Yc(this.stack,this.pos,this.index)}}function Vc(e,t=Uint16Array){if("string"!=typeof e)return e;let i=null;for(let n=0,r=0;n<e.length;){let s=0;for(;;){let t=e.charCodeAt(n++),i=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,i=!0),s+=r,i)break;s*=46}i?i[r++]=s:i=new t(s)}return i}class Bc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Wc=new Bc;class Ic{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Wc,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let i=this.range,n=this.rangeIndex,r=this.pos+e;for(;r<i.from;){if(!n)return null;let e=this.ranges[--n];r-=i.from-e.to,i=e}for(;t<0?r>i.to:r>=i.to;){if(n==this.ranges.length-1)return null;let e=this.ranges[++n];r+=e.from-i.to,i=e}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t,i,n=this.chunkOff+e;if(n>=0&&n<this.chunk.length)t=this.pos+e,i=this.chunk.charCodeAt(n);else{let n=this.resolveOffset(e,1);if(null==n)return-1;if(t=n,t>=this.chunk2Pos&&t<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(t-this.chunk2Pos);else{let e=this.rangeIndex,n=this.range;for(;n.to<=t;)n=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=t),t+this.chunk2.length>n.to&&(this.chunk2=this.chunk2.slice(0,n.to-t)),i=this.chunk2.charCodeAt(0)}}return t>=this.token.lookAhead&&(this.token.lookAhead=t+1),i}acceptToken(e,t=0){let i=t?this.resolveOffset(t,-1):this.pos;if(null==i||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=i}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=Wc,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let i="";for(let n of this.ranges){if(n.from>=t)break;n.to>e&&(i+=this.input.read(Math.max(n.from,e),Math.min(n.to,t)))}return i}}class Dc{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:i}=t.p;Uc(this.data,e,t,this.id,i.data,i.tokenPrecTable)}}Dc.prototype.contextual=Dc.prototype.fallback=Dc.prototype.extend=!1;class Nc{constructor(e,t,i){this.precTable=t,this.elseToken=i,this.data="string"==typeof e?Vc(e):e}token(e,t){let i=e.pos,n=0;for(;;){let i=e.next<0,r=e.resolveOffset(1,1);if(Uc(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(i||n++,null==r)break;e.reset(r,e.token)}n&&(e.reset(i,e.token),e.acceptToken(this.elseToken,n))}}Nc.prototype.contextual=Dc.prototype.fallback=Dc.prototype.extend=!1;class qc{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function Uc(e,t,i,n,r,s){let o=0,a=1<<n,{dialect:l}=i.p.parser;e:for(;0!=(a&e[o]);){let i=e[o+1];for(let n=o+3;n<i;n+=2)if((e[n+1]&a)>0){let i=e[n];if(l.allows(i)&&(-1==t.token.value||t.token.value==i||Fc(i,t.token.value,r,s))){t.acceptToken(i);break}}let n=t.next,h=0,c=e[o+2];if(!(t.next<0&&c>h&&65535==e[i+3*c-3])){for(;h<c;){let r=h+c>>1,s=i+r+(r<<1),a=e[s],l=e[s+1]||65536;if(n<a)c=r;else{if(!(n>=l)){o=e[s+2],t.advance();continue e}h=r+1}}break}o=e[i+3*c-1]}}function Gc(e,t,i){for(let n,r=t;65535!=(n=e[r]);r++)if(n==i)return r-t;return-1}function Fc(e,t,i,n){let r=Gc(i,n,t);return r<0||Gc(i,n,e)<r}const Hc="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let Kc=null;function Jc(e,t,i){let n=e.cursor(bo.IncludeAnonymous);for(n.moveTo(t);;)if(!(i<0?n.childBefore(t):n.childAfter(t)))for(;;){if((i<0?n.to<t:n.from>t)&&!n.type.isError)return i<0?Math.max(0,Math.min(n.to-1,t-25)):Math.min(e.length,Math.max(n.from+1,t+25));if(i<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return i<0?0:e.length}}class eu{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?Jc(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Jc(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let i=this.trees[t],n=this.index[t];if(n==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=i.children[n],s=this.start[t]+i.positions[n];if(s>e)return this.nextStart=s,null;if(r instanceof So){if(s==e){if(s<this.safeFrom)return null;let e=s+r.length;if(e<=this.safeTo){let t=r.prop(po.lookAhead);if(!t||e+t<this.fragment.to)return r}}this.index[t]++,s+r.length>=Math.max(this.safeFrom,e)&&(this.trees.push(r),this.start.push(s),this.index.push(0))}else this.index[t]++,this.nextStart=s+r.length}}}class tu{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new Bc)}getActions(e){let t=0,i=null,{parser:n}=e.p,{tokenizers:r}=n,s=n.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,a=0;for(let n=0;n<r.length;n++){if(!(1<<n&s))continue;let l=r[n],h=this.tokens[n];if((!i||l.fallback)&&((l.contextual||h.start!=e.pos||h.mask!=s||h.context!=o)&&(this.updateCachedToken(h,l,e),h.mask=s,h.context=o),h.lookAhead>h.end+25&&(a=Math.max(h.lookAhead,a)),0!=h.value)){let n=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!l.extend&&(i=h,t>n))break}}for(;this.actions.length>t;)this.actions.pop();return a&&e.setLookAhead(a),i||e.pos!=this.stream.end||(i=new Bc,i.value=e.p.parser.eofTerm,i.start=i.end=e.pos,t=this.addActions(e,i.value,i.end,t)),this.mainToken=i,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new Bc,{pos:i,p:n}=e;return t.start=i,t.end=Math.min(i+1,n.stream.end),t.value=i==n.stream.end?n.parser.eofTerm:0,t}updateCachedToken(e,t,i){let n=this.stream.clipPos(i.pos);if(t.token(this.stream.reset(n,e),i),e.value>-1){let{parser:t}=i.p;for(let n=0;n<t.specialized.length;n++)if(t.specialized[n]==e.value){let r=t.specializers[n](this.stream.read(e.start,e.end),i);if(r>=0&&i.p.parser.dialect.allows(r>>1)){1&r?e.extended=r>>1:e.value=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(n+1)}putAction(e,t,i,n){for(let t=0;t<n;t+=3)if(this.actions[t]==e)return n;return this.actions[n++]=e,this.actions[n++]=t,this.actions[n++]=i,n}addActions(e,t,i,n){let{state:r}=e,{parser:s}=e.p,{data:o}=s;for(let e=0;e<2;e++)for(let a=s.stateSlot(r,e?2:1);;a+=3){if(65535==o[a]){if(1!=o[a+1]){0==n&&2==o[a+1]&&(n=this.putAction(lu(o,a+2),t,i,n));break}a=lu(o,a+2)}o[a]==t&&(n=this.putAction(lu(o,a+1),t,i,n))}return n}}class iu{constructor(e,t,i,n){this.parser=e,this.input=t,this.ranges=n,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new Ic(t,n),this.tokens=new tu(e,this.stream),this.topTerm=e.top[1];let{from:r}=n[0];this.stacks=[jc.start(this,e.top[0],r)],this.fragments=i.length&&this.stream.end-r>4*e.bufferLength?new eu(i,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,i=this.stacks,n=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==i.length){let[e]=i;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<i.length;s++){let o=i[s];for(;;){if(this.tokens.mainToken=null,o.pos>n)r.push(o);else{if(this.advanceStack(o,r,i))continue;{e||(e=[],t=[]),e.push(o);let i=this.tokens.getMainToken(o);t.push(i.value,i.end)}}break}}if(!r.length){let t=e&&function(e){let t=null;for(let i of e){let e=i.p.stoppedAt;(i.pos==i.p.stream.end||null!=e&&i.pos>e)&&i.p.parser.stateFlag(i.state,2)&&(!t||t.score<i.score)&&(t=i)}return t}(e);if(t)return Hc&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw Hc&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&e){let i=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,r);if(i)return Hc&&console.log("Force-finish "+this.stackID(i)),this.stackToTree(i.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort((e,t)=>t.score-e.score);r.length>e;)r.pop();r.some(e=>e.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let e=0;e<r.length-1;e++){let t=r[e];for(let i=e+1;i<r.length;i++){let n=r[i];if(t.sameState(n)||t.buffer.length>500&&n.buffer.length>500){if(!((t.score-n.score||t.buffer.length-n.buffer.length)>0)){r.splice(e--,1);continue e}r.splice(i--,1)}}}r.length>12&&(r.sort((e,t)=>t.score-e.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let e=1;e<r.length;e++)r[e].pos<this.minStackPos&&(this.minStackPos=r[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,i){let n=e.pos,{parser:r}=this,s=Hc?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&n>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,i=t?e.curContext.hash:0;for(let o=this.fragments.nodeAt(n);o;){let n=this.parser.nodeSet.types[o.type.id]==o.type?r.getGoto(e.state,o.type.id):-1;if(n>-1&&o.length&&(!t||(o.prop(po.contextHash)||0)==i))return e.useNode(o,n),Hc&&console.log(s+this.stackID(e)+` (via reuse of ${r.getName(o.type.id)})`),!0;if(!(o instanceof So)||0==o.children.length||o.positions[0]>0)break;let a=o.children[0];if(!(a instanceof So&&0==o.positions[0]))break;o=a}}let o=r.stateSlot(e.state,4);if(o>0)return e.reduce(o),Hc&&console.log(s+this.stackID(e)+` (via always-reduce ${r.getName(65535&o)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let o=0;o<a.length;){let l=a[o++],h=a[o++],c=a[o++],u=o==a.length||!i,f=u?e:e.split(),d=this.tokens.mainToken;if(f.apply(l,h,d?d.start:f.pos,c),Hc&&console.log(s+this.stackID(f)+` (via ${65536&l?`reduce of ${r.getName(65535&l)}`:"shift"} for ${r.getName(h)} @ ${n}${f==e?"":", split"})`),u)return!0;f.pos>n?t.push(f):i.push(f)}return!1}advanceFully(e,t){let i=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>i)return nu(e,t),!0}}runRecovery(e,t,i){let n=null,r=!1;for(let s=0;s<e.length;s++){let o=e[s],a=t[s<<1],l=t[1+(s<<1)],h=Hc?this.stackID(o)+" -> ":"";if(o.deadEnd){if(r)continue;if(r=!0,o.restart(),Hc&&console.log(h+this.stackID(o)+" (restarted)"),this.advanceFully(o,i))continue}let c=o.split(),u=h;for(let e=0;e<10&&c.forceReduce()&&(Hc&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));e++)Hc&&(u=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(a))Hc&&console.log(h+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,i);this.stream.end>o.pos?(l==o.pos&&(l++,a=0),o.recoverByDelete(a,l),Hc&&console.log(h+this.stackID(o)+` (via recover-delete ${this.parser.getName(a)})`),nu(o,i)):(!n||n.score<c.score)&&(n=c)}return n}stackToTree(e){return e.close(),So.build({buffer:Yc.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(Kc||(Kc=new WeakMap)).get(e);return t||Kc.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function nu(e,t){for(let i=0;i<t.length;i++){let n=t[i];if(n.pos==e.pos&&n.sameState(e))return void(t[i].score<e.score&&(t[i]=e))}t.push(e)}class ru{constructor(e,t,i){this.source=e,this.flags=t,this.disabled=i}allows(e){return!this.disabled||0==this.disabled[e]}}const su=e=>e;class ou{constructor(e){this.start=e.start,this.shift=e.shift||su,this.reduce=e.reduce||su,this.reuse=e.reuse||su,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class au extends Bo{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let i=0;i<e.repeatNodeCount;i++)t.push("");let i=Object.keys(e.topRules).map(t=>e.topRules[t][1]),n=[];for(let e=0;e<t.length;e++)n.push([]);function r(e,t,i){n[e].push([t,t.deserialize(String(i))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=po[e]);for(let i=1;i<t.length;){let n=t[i++];if(n>=0)r(n,e,t[i++]);else{let s=t[i+-n];for(let o=-n;o>0;o--)r(t[i++],e,s);i++}}}this.nodeSet=new vo(t.map((t,r)=>mo.define({name:r>=this.minRepeatTerm?void 0:t,id:r,props:n[r],top:i.indexOf(r)>-1,error:0==r,skipped:e.skippedNodes&&e.skippedNodes.indexOf(r)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=co;let s=Vc(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(hu),this.states=Vc(e.states,Uint32Array),this.data=Vc(e.stateData),this.goto=Vc(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new Dc(s,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,i){let n=new iu(this,e,t,i);for(let r of this.wrappers)n=r(n,e,t,i);return n}getGoto(e,t,i=!1){let n=this.goto;if(t>=n[0])return-1;for(let r=n[t+1];;){let t=n[r++],s=1&t,o=n[r++];if(s&&i)return o;for(let i=r+(t>>1);r<i;r++)if(n[r]==e)return o;if(s)return-1}}hasAction(e,t){let i=this.data;for(let n=0;n<2;n++)for(let r,s=this.stateSlot(e,n?2:1);;s+=3){if(65535==(r=i[s])){if(1!=i[s+1]){if(2==i[s+1])return lu(i,s+2);break}r=i[s=lu(i,s+2)]}if(r==t||0==r)return lu(i,s+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let i=this.stateSlot(e,4),n=i?t(i):void 0;for(let i=this.stateSlot(e,1);null==n;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=lu(this.data,i+2)}n=t(lu(this.data,i+1))}return n}nextStates(e){let t=[];for(let i=this.stateSlot(e,1);;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=lu(this.data,i+2)}if(!(1&this.data[i+2])){let e=this.data[i+1];t.some((t,i)=>1&i&&t==e)||t.push(this.data[i],e)}}return t}configure(e){let t=Object.assign(Object.create(au.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let i=this.topRules[e.top];if(!i)throw new RangeError(`Invalid top rule name ${e.top}`);t.top=i}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let i=e.tokenizers.find(e=>e.from==t);return i?i.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((i,n)=>{let r=e.specializers.find(e=>e.from==i.external);if(!r)return i;let s=Object.assign(Object.assign({},i),{external:r.to});return t.specializers[n]=hu(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),i=t.map(()=>!1);if(e)for(let n of e.split(" ")){let e=t.indexOf(n);e>=0&&(i[e]=!0)}let n=null;for(let e=0;e<t.length;e++)if(!i[e])for(let i,r=this.dialects[t[e]];65535!=(i=this.data[r++]);)(n||(n=new Uint8Array(this.maxTerm+1)))[i]=1;return new ru(e,i,n)}static deserialize(e){return new au(e)}}function lu(e,t){return e[t]|e[t+1]<<16}function hu(e){if(e.external){let t=e.extend?1:0;return(i,n)=>e.external(i,n)<<1|t}return e.get}const cu=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],uu=new ou({start:!1,shift:(e,t)=>5==t||6==t||320==t?e:321==t,strict:!1}),fu=new qc((e,t)=>{let{next:i}=e;(125==i||-1==i||t.context)&&e.acceptToken(318)},{contextual:!0,fallback:!0}),du=new qc((e,t)=>{let i,{next:n}=e;cu.indexOf(n)>-1||(47!=n||47!=(i=e.peek(1))&&42!=i)&&(125==n||59==n||-1==n||t.context||e.acceptToken(316))},{contextual:!0}),pu=new qc((e,t)=>{91!=e.next||t.context||e.acceptToken(317)},{contextual:!0}),Ou=new qc((e,t)=>{let{next:i}=e;if(43==i||45==i){if(e.advance(),i==e.next){e.advance();let i=!t.context&&t.canShift(1);e.acceptToken(i?1:2)}}else 63==i&&46==e.peek(1)&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(3))},{contextual:!0});function gu(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const mu=new qc((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let i=0;for(;cu.indexOf(e.next)>-1;)e.advance(),i++;if(gu(e.next,!0)){for(e.advance(),i++;gu(e.next,!1);)e.advance(),i++;for(;cu.indexOf(e.next)>-1;)e.advance(),i++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!gu(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),i++}}e.acceptToken(4,-i)}),vu=aa({"get set async static":_a.modifier,"for while do if else switch try catch finally return throw break continue default case defer":_a.controlKeyword,"in of await yield void typeof delete instanceof as satisfies":_a.operatorKeyword,"let var const using function class extends":_a.definitionKeyword,"import export from":_a.moduleKeyword,"with debugger new":_a.keyword,TemplateString:_a.special(_a.string),super:_a.atom,BooleanLiteral:_a.bool,this:_a.self,null:_a.null,Star:_a.modifier,VariableName:_a.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":_a.function(_a.variableName),VariableDefinition:_a.definition(_a.variableName),Label:_a.labelName,PropertyName:_a.propertyName,PrivatePropertyName:_a.special(_a.propertyName),"CallExpression/MemberExpression/PropertyName":_a.function(_a.propertyName),"FunctionDeclaration/VariableDefinition":_a.function(_a.definition(_a.variableName)),"ClassDeclaration/VariableDefinition":_a.definition(_a.className),"NewExpression/VariableName":_a.className,PropertyDefinition:_a.definition(_a.propertyName),PrivatePropertyDefinition:_a.definition(_a.special(_a.propertyName)),UpdateOp:_a.updateOperator,"LineComment Hashbang":_a.lineComment,BlockComment:_a.blockComment,Number:_a.number,String:_a.string,Escape:_a.escape,ArithOp:_a.arithmeticOperator,LogicOp:_a.logicOperator,BitOp:_a.bitwiseOperator,CompareOp:_a.compareOperator,RegExp:_a.regexp,Equals:_a.definitionOperator,Arrow:_a.function(_a.punctuation),": Spread":_a.punctuation,"( )":_a.paren,"[ ]":_a.squareBracket,"{ }":_a.brace,"InterpolationStart InterpolationEnd":_a.special(_a.brace),".":_a.derefOperator,", ;":_a.separator,"@":_a.meta,TypeName:_a.typeName,TypeDefinition:_a.definition(_a.typeName),"type enum interface implements namespace module declare":_a.definitionKeyword,"abstract global Privacy readonly override":_a.modifier,"is keyof unique infer asserts":_a.operatorKeyword,JSXAttributeValue:_a.attributeValue,JSXText:_a.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":_a.angleBracket,"JSXIdentifier JSXNameSpacedName":_a.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":_a.attributeName,"JSXBuiltin/JSXIdentifier":_a.standard(_a.tagName)}),yu={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,in:52,out:55,const:56,extends:60,this:64,true:72,false:72,null:84,void:88,typeof:92,super:108,new:142,delete:154,yield:163,await:167,class:172,public:235,private:235,protected:235,readonly:237,instanceof:256,satisfies:259,import:292,keyof:349,unique:353,infer:359,asserts:395,is:397,abstract:417,implements:419,type:421,let:424,var:426,using:429,interface:435,enum:439,namespace:445,module:447,declare:451,global:455,defer:471,for:476,of:485,while:488,with:492,do:496,if:500,else:502,switch:506,case:512,try:518,catch:522,finally:526,return:530,throw:534,break:538,continue:542,debugger:546},wu={__proto__:null,async:129,get:131,set:133,declare:195,public:197,private:197,protected:197,static:199,abstract:201,override:203,readonly:209,accessor:211,new:401},bu={__proto__:null,"<":193},Su=au.deserialize({version:14,states:"$F|Q%TQlOOO%[QlOOO'_QpOOP(lO`OOO*zQ!0MxO'#CiO+RO#tO'#CjO+aO&jO'#CjO+oO#@ItO'#DaO.QQlO'#DgO.bQlO'#DrO%[QlO'#DzO0fQlO'#ESOOQ!0Lf'#E['#E[O1PQ`O'#EXOOQO'#Ep'#EpOOQO'#Il'#IlO1XQ`O'#GsO1dQ`O'#EoO1iQ`O'#EoO3hQ!0MxO'#JrO6[Q!0MxO'#JsO6uQ`O'#F]O6zQ,UO'#FtOOQ!0Lf'#Ff'#FfO7VO7dO'#FfO9XQMhO'#F|O9`Q`O'#F{OOQ!0Lf'#Js'#JsOOQ!0Lb'#Jr'#JrO9eQ`O'#GwOOQ['#K_'#K_O9pQ`O'#IYO9uQ!0LrO'#IZOOQ['#J`'#J`OOQ['#I_'#I_Q`QlOOQ`QlOOO9}Q!L^O'#DvO:UQlO'#EOO:]QlO'#EQO9kQ`O'#GsO:dQMhO'#CoO:rQ`O'#EnO:}Q`O'#EyO;hQMhO'#FeO;xQ`O'#GsOOQO'#K`'#K`O;}Q`O'#K`O<]Q`O'#G{O<]Q`O'#G|O<]Q`O'#HOO9kQ`O'#HRO=SQ`O'#HUO>kQ`O'#CeO>{Q`O'#HcO?TQ`O'#HiO?TQ`O'#HkO`QlO'#HmO?TQ`O'#HoO?TQ`O'#HrO?YQ`O'#HxO?_Q!0LsO'#IOO%[QlO'#IQO?jQ!0LsO'#ISO?uQ!0LsO'#IUO9uQ!0LrO'#IWO@QQ!0MxO'#CiOASQpO'#DlQOQ`OOO%[QlO'#EQOAjQ`O'#ETO:dQMhO'#EnOAuQ`O'#EnOBQQ!bO'#FeOOQ['#Cg'#CgOOQ!0Lb'#Dq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S'w!z5}S-t'l'mQ-v'nR3T-uT#kZ%eS#jZ%eS%km,oU(g#h#i#lS.Y(h(iQ.^(jQ0t+^Q3Y.ZU3Z.[.]._S7S3[3]R9`7Td#^W#W#Z%h(T(^*Y+Z.T/mr#gZm#h#i#l%e(h(i(j+^.Z.[.]._3[3]7TS*]$x*bQ/t*^Q2U,oQ2l-VQ4`/pQ6q2dQ7s4aQ9W6rT=m'X+[V#aW%h*YU#`W%h*YS(U#W(^U(Z#Z+Z/mS-['X+[T.O(T.TV'^!e%i*ZQ$lfR)x$qT)m$l)nR4V/UT*_$x*bT*h${*YQ0w+fQ1g,VQ3_.fQ5t1iQ6P1qQ7X3cQ8r6SQ9c7WQ:^8qQ:p9bQ;Z:`Q;c:rQ;n;[R;q;dnqOXst!Z#d%m&r&t&u&w,s,x2[2_Q&l!VR,h&itmOXst!U!V!Z#d%m&i&r&t&u&w,s,x2[2_R,o&oT%lm,oR1k,XR,g&gQ&U|S+}&V&WR1^,OR+s&PT&p!W&sT&q!W&sT2^,x2_",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList in out const TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast < ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate asserts is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration defer ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:380,context:uu,nodeProps:[["isolate",-8,5,6,14,37,39,51,53,55,""],["group",-26,9,17,19,68,207,211,215,216,218,221,224,234,237,243,245,247,249,252,258,264,266,268,270,272,274,275,"Statement",-34,13,14,32,35,36,42,51,54,55,57,62,70,72,76,80,82,84,85,110,111,120,121,136,139,141,142,143,144,145,147,148,167,169,171,"Expression",-23,31,33,37,41,43,45,173,175,177,178,180,181,182,184,185,186,188,189,190,201,203,205,206,"Type",-3,88,103,109,"ClassItem"],["openedBy",23,"<",38,"InterpolationStart",56,"[",60,"{",73,"(",160,"JSXStartCloseTag"],["closedBy",-2,24,168,">",40,"InterpolationEnd",50,"]",61,"}",74,")",165,"JSXEndTag"]],propSources:[vu],skippedNodes:[0,5,6,278],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$i&j(Wp(Z!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$i&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$i&j(Z!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(Z!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$i&j(WpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<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z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(c~~",141,340),new Nc("j~RQYZXz{^~^O(Q~~aP!P!Qd~iO(R~~",25,323)],topRules:{Script:[0,7],SingleExpression:[1,276],SingleClassItem:[2,277]},dialects:{jsx:0,ts:15175},dynamicPrecedences:{80:1,82:1,94:1,169:1,199:1},specialized:[{term:327,get:e=>yu[e]||-1},{term:343,get:e=>wu[e]||-1},{term:95,get:e=>bu[e]||-1}],tokenPrec:15201});function xu(e){let t=Object.keys(e).join(""),i=/\w/.test(t);return i&&(t=t.replace(/\w/g,"")),`[${i?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function ku(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[i,n]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),i=Object.create(null);for(let{label:n}of e){t[n[0]]=!0;for(let e=1;e<n.length;e++)i[n[e]]=!0}let n=xu(t)+xu(i)+"*$";return[new RegExp("^"+n),new RegExp(n)]}(t);return e=>{let r=e.matchBefore(n);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:i}:null}}const Qu=ke.define();"object"==typeof navigator&&navigator.platform;const $u=ws.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center",cursor:"pointer"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class Pu{constructor(e,t,i,n){this.field=e,this.line=t,this.from=i,this.to=n}}class _u{constructor(e,t,i){this.field=e,this.from=t,this.to=i}map(e){let t=e.mapPos(this.from,-1,B.TrackDel),i=e.mapPos(this.to,1,B.TrackDel);return null==t||null==i?null:new _u(this.field,t,i)}}class Cu{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let i=[],n=[t],r=e.doc.lineAt(t),s=/^\s*/.exec(r.text)[0];for(let r of this.lines){if(i.length){let i=s,o=/^\t*/.exec(r)[0].length;for(let t=0;t<o;t++)i+=e.facet(Ga);n.push(t+i.length-o),r=i+r.slice(o)}i.push(r),t+=r.length+1}let o=this.fieldPositions.map(e=>new _u(e.field,n[e.line]+e.from,n[e.line]+e.to));return{text:i,ranges:o}}static parse(e){let t,i=[],n=[],r=[];for(let s of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(s);){let e=t[1]?+t[1]:null,o=t[2]||t[3]||"",a=-1,l=o.replace(/\\[{}]/g,e=>e[1]);for(let t=0;t<i.length;t++)(null!=e?i[t].seq==e:l&&i[t].name==l)&&(a=t);if(a<0){let t=0;for(;t<i.length&&(null==e||null!=i[t].seq&&i[t].seq<e);)t++;i.splice(t,0,{seq:e,name:l}),a=t;for(let e of r)e.field>=a&&e.field++}for(let e of r)if(e.line==n.length&&e.from>t.index){let i=t[2]?3+(t[1]||"").length:2;e.from-=i,e.to-=i}r.push(new Pu(a,n.length,t.index,t.index+l.length)),s=s.slice(0,t.index)+o+s.slice(t.index+t[0].length)}s=s.replace(/\\([{}])/g,(e,t,i)=>{for(let e of r)e.line==n.length&&e.from>i&&(e.from--,e.to--);return t}),n.push(s)}return new Cu(n,r)}}let Au=Xt.widget({widget:new class extends Mt{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),Tu=Xt.mark({class:"cm-snippetField"});class Zu{constructor(e,t){this.ranges=e,this.active=t,this.deco=Xt.set(e.map(e=>(e.from==e.to?Au:Tu).range(e.from,e.to)),!0)}map(e){let t=[];for(let i of this.ranges){let n=i.map(e);if(!n)return null;t.push(n)}return new Zu(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}const Mu=Pe.define({map:(e,t)=>e&&e.map(t)}),Ru=Pe.define(),Xu=le.define({create:()=>null,update(e,t){for(let i of t.effects){if(i.is(Mu))return i.value;if(i.is(Ru)&&e)return new Zu(e.ranges,i.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>ws.decorations.from(e,e=>e?e.deco:Xt.none)});function Eu(e,t){return K.create(e.filter(e=>e.field==t).map(e=>K.range(e.from,e.to)))}function ju(e){let t=Cu.parse(e);return(e,i,n,r)=>{let{text:s,ranges:o}=t.instantiate(e.state,n),{main:a}=e.state.selection,l={changes:{from:n,to:r==a.from?a.to:r,insert:P.of(s)},scrollIntoView:!0,annotations:i?[Qu.of(i),_e.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=Eu(o,0)),o.some(e=>e.field>0)){let t=new Zu(o,0),i=l.effects=[Mu.of(t)];void 0===e.state.field(Xu,!1)&&i.push(Pe.appendConfig.of([Xu,Vu,Wu,$u]))}e.dispatch(e.state.update(l))}}function zu(e){return({state:t,dispatch:i})=>{let n=t.field(Xu,!1);if(!n||e<0&&0==n.active)return!1;let r=n.active+e,s=e>0&&!n.ranges.some(t=>t.field==r+e);return i(t.update({selection:Eu(n.ranges,r),effects:Mu.of(s?null:new Zu(n.ranges,r)),scrollIntoView:!0})),!0}}const Lu=[{key:"Tab",run:zu(1),shift:zu(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Xu,!1)&&(t(e.update({effects:Mu.of(null)})),!0)}],Yu=te.define({combine:e=>e.length?e[0]:Lu}),Vu=ce.highest(_s.compute([Yu],e=>e.facet(Yu)));function Bu(e,t){return{...t,apply:ju(e)}}const Wu=ws.domEventHandlers({mousedown(e,t){let i,n=t.state.field(Xu,!1);if(!n||null==(i=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let r=n.ranges.find(e=>e.from<=i&&e.to>=i);return!(!r||r.field==n.active||(t.dispatch({selection:Eu(n.ranges,r.field),effects:Mu.of(n.ranges.some(e=>e.field>r.field)?new Zu(n.ranges,r.field):null),scrollIntoView:!0}),0))}}),Iu=new class extends Ye{};Iu.startSide=1,Iu.endSide=-1,"object"==typeof navigator&&navigator.userAgent;const Du=[Bu("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Bu("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Bu("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Bu("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Bu("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Bu("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Bu("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Bu("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Bu("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Bu('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Bu('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Nu=Du.concat([Bu("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Bu("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Bu("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),qu=new Yo,Uu=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Gu(e){return(t,i)=>{let n=t.node.getChild("VariableDefinition");return n&&i(n,e),!0}}const Fu=["FunctionDeclaration"],Hu={FunctionDeclaration:Gu("function"),ClassDeclaration:Gu("class"),ClassExpression:()=>!0,EnumDeclaration:Gu("constant"),TypeAliasDeclaration:Gu("type"),NamespaceDeclaration:Gu("namespace"),VariableDefinition(e,t){e.matchContext(Fu)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function Ku(e,t){let i=qu.get(t);if(i)return i;let n=[],r=!0;function s(t,i){let r=e.sliceString(t.from,t.to);n.push({label:r,type:i})}return t.cursor(bo.IncludeAnonymous).iterate(t=>{if(r)r=!1;else if(t.name){let e=Hu[t.name];if(e&&e(t,s)||Uu.has(t.name))return!1}else if(t.to-t.from>8192){for(let i of Ku(e,t.node))n.push(i);return!1}}),qu.set(t,n),n}const Ju=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,ef=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function tf(e){let t=Ea(e.state).resolveInner(e.pos,-1);if(ef.indexOf(t.name)>-1)return null;let i="VariableName"==t.name||t.to-t.from<20&&Ju.test(e.state.sliceDoc(t.from,t.to));if(!i&&!e.explicit)return null;let n=[];for(let i=t;i;i=i.parent)Uu.has(i.name)&&(n=n.concat(Ku(e.state.doc,i)));return{options:n,from:i?t.from:e.pos,validFor:Ju}}const nf=Xa.define({name:"javascript",parser:Su.configure({props:[el.add({IfStatement:ll({except:/^\s*({|else\b)/}),TryStatement:ll({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:e=>e.baseIndent,SwitchBody:e=>{let t=e.textAfter,i=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(i?0:n?1:2)*e.unit},Block:ol({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":ll({except:/^\s*{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),cl.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":ul,BlockComment:e=>({from:e.from+2,to:e.to-2}),JSXElement(e){let t=e.firstChild;if(!t||"JSXSelfClosingTag"==t.name)return null;let i=e.lastChild;return{from:t.to,to:i.type.isError?e.to:i.from}},"JSXSelfClosingTag JSXOpenTag"(e){var t;let i=null===(t=e.firstChild)||void 0===t?void 0:t.nextSibling,n=e.lastChild;return!i||i.type.isError?null:{from:i.to,to:n.type.isError?e.to:n.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),rf={test:e=>/^JSX/.test(e.name),facet:Ta({commentTokens:{block:{open:"{/*",close:"*/}"}}})},sf=nf.configure({dialect:"ts"},"typescript"),of=nf.configure({dialect:"jsx",props:[Za.add(e=>e.isTop?[rf]:void 0)]}),af=nf.configure({dialect:"jsx ts",props:[Za.add(e=>e.isTop?[rf]:void 0)]},"typescript");let lf=e=>({label:e,type:"keyword"});const hf="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(lf),cf=hf.concat(["declare","implements","private","protected","public"].map(lf));function uf(e={}){let t=e.jsx?e.typescript?af:of:e.typescript?sf:nf,i=e.typescript?Nu.concat(cf):Du.concat(hf);return new qa(t,[nf.data.of({autocomplete:(n=ef,r=ku(i),e=>{for(let t=Ea(e.state).resolveInner(e.pos,-1);t;t=t.parent){if(n.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return r(e)})}),nf.data.of({autocomplete:tf}),e.jsx?pf:[]]);var n,r}function ff(e,t,i=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,i));return""}const df="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),pf=ws.inputHandler.of((e,t,i,n,r)=>{if((df?e.composing:e.compositionStarted)||e.state.readOnly||t!=i||">"!=n&&"/"!=n||!nf.isActiveAt(e.state,t,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(e=>{var t;let i,{head:r}=e,s=Ea(o).resolveInner(r-1,-1);if("JSXStartTag"==s.name&&(s=s.parent),o.doc.sliceString(r-1,r)!=n||"JSXAttributeValue"==s.name&&s.to>r);else{if(">"==n&&"JSXFragmentTag"==s.name)return{range:e,changes:{from:r,insert:"</>"}};if("/"==n&&"JSXStartCloseTag"==s.name){let e=s.parent,n=e.parent;if(n&&e.from==r-2&&((i=ff(o.doc,n.firstChild,r))||"JSXFragmentTag"==(null===(t=n.firstChild)||void 0===t?void 0:t.name))){let e=`${i}>`;return{range:K.cursor(r+e.length,-1),changes:{from:r,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(s);if(t&&"JSXOpenTag"==t.name&&!/^\/?>|^<\//.test(o.doc.sliceString(r,r+2))&&(i=ff(o.doc,t,r)))return{range:e,changes:{from:r,insert:`</${i}>`}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Of=aa({String:_a.string,Number:_a.number,"True False":_a.bool,PropertyName:_a.propertyName,Null:_a.null,", :":_a.separator,"[ ]":_a.squareBracket,"{ }":_a.brace}),gf=au.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[Of],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),mf=Xa.define({name:"json",parser:gf.configure({props:[el.add({Object:ll({except:/^\s*\}/}),Array:ll({except:/^\s*\]/})}),cl.add({"Object Array":ul})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}}),vf={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},yf={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},wf={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}};function bf(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let Sf=null,xf=null,kf=0;function Qf(e,t){let i=e.pos+t;if(kf==i&&xf==e)return Sf;let n=e.peek(t),r="";for(;bf(n);)r+=String.fromCharCode(n),n=e.peek(++t);return xf=e,kf=i,Sf=r?r.toLowerCase():n==$f||n==Pf?void 0:null}const $f=63,Pf=33;function _f(e,t){this.name=e,this.parent=t}const Cf=[6,10,7,8,9],Af=new ou({start:null,shift:(e,t,i,n)=>Cf.indexOf(t)>-1?new _f(Qf(n,1)||"",e):e,reduce:(e,t)=>21==t&&e?e.parent:e,reuse(e,t,i,n){let r=t.type.id;return 6==r||37==r?new _f(Qf(n,1)||"",e):e},strict:!1}),Tf=new qc((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(58));e.advance();let i=47==e.next;i&&e.advance();let n=Qf(e,0);if(void 0===n)return;if(!n)return e.acceptToken(i?15:14);let r=t.context?t.context.name:null;if(i){if(n==r)return e.acceptToken(11);if(r&&yf[r])return e.acceptToken(58,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(vf.hasOwnProperty(n))return e.acceptToken(10);r&&wf[r]&&wf[r][n]?e.acceptToken(58,-1):e.acceptToken(6)}},{contextual:!0}),Zf=new qc(e=>{for(let t=0,i=0;;i++){if(e.next<0){i&&e.acceptToken(59);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){i>=3&&e.acceptToken(59,-2);break}t=0}e.advance()}}),Mf=new qc((e,t)=>{if(47==e.next&&62==e.peek(1)){let i=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(i?5:4,2)}else 62==e.next&&e.acceptToken(4,1)});function Rf(e,t,i){let n=2+e.length;return new qc(r=>{for(let s=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(t);break}if(0==s&&60==r.next||1==s&&47==r.next||s>=2&&s<n&&r.next==e.charCodeAt(s-2))s++,o++;else{if(s==n&&62==r.next){a>o?r.acceptToken(t,-o):r.acceptToken(i,-(o-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(t,1);break}s=o=0}r.advance()}})}const Xf=Rf("script",55,1),Ef=Rf("style",56,2),jf=Rf("textarea",57,3),zf=aa({"Text RawText IncompleteTag IncompleteCloseTag":_a.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":_a.angleBracket,TagName:_a.tagName,"MismatchedCloseTag/TagName":[_a.tagName,_a.invalid],AttributeName:_a.attributeName,"AttributeValue UnquotedAttributeValue":_a.attributeValue,Is:_a.definitionOperator,"EntityReference CharacterReference":_a.character,Comment:_a.blockComment,ProcessingInst:_a.processingInstruction,DoctypeDecl:_a.documentMeta}),Lf=au.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1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O~Ob!uOc!uOd!uO!a!{O!b!uO~Ob!xOc!xOd!xO!c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Af,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[zf],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a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=`<%l!8]!R!:dY!b`!dpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Xf,Ef,jf,Mf,Tf,Zf,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Yf(e,t){let i=Object.create(null);for(let n of e.getChildren(24)){let e=n.getChild(25),r=n.getChild(27)||n.getChild(28);e&&(i[t.read(e.from,e.to)]=r?27==r.type.id?t.read(r.from+1,r.to-1):t.read(r.from,r.to):"")}return i}function Vf(e,t){let i=e.getChild(23);return i?t.read(i.from,i.to):" "}function Bf(e,t,i){let n;for(let r of i)if(!r.attrs||r.attrs(n||(n=Yf(e.node.parent.firstChild,t))))return{parser:r.parser,bracketed:!0};return null}function Wf(e=[],t=[]){let i=[],n=[],r=[],s=[];for(let t of e)("script"==t.tag?i:"style"==t.tag?n:"textarea"==t.tag?r:s).push(t);let o=t.length?Object.create(null):null;for(let e of t)(o[e.name]||(o[e.name]=[])).push(e);return a=(e,t)=>{let a=e.type.id;if(29==a)return Bf(e,t,i);if(32==a)return Bf(e,t,n);if(35==a)return Bf(e,t,r);if(21==a&&s.length){let i,n=e.node,r=n.firstChild,o=r&&Vf(r,t);if(o)for(let e of s)if(e.tag==o&&(!e.attrs||e.attrs(i||(i=Yf(r,t))))){let t=n.lastChild,i=38==t.type.id?t.from:n.to;if(i>r.to)return{parser:e.parser,overlay:[{from:r.to,to:i}]}}}if(o&&24==a){let i,n=e.node;if(i=n.firstChild){let e=o[t.read(i.from,i.to)];if(e)for(let i of e){if(i.tagName&&i.tagName!=Vf(n.parent,t))continue;let e=n.lastChild;if(27==e.type.id){let t=e.from+1,n=e.lastChild,r=e.to-(n&&n.isError?0:1);if(r>t)return{parser:i.parser,overlay:[{from:t,to:r}],bracketed:!0}}else if(28==e.type.id)return{parser:i.parser,overlay:[{from:e.from,to:e.to}]}}}}return null},(e,t,i,n)=>new Uo(e,a,t,i,n);var a}const If=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function Df(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Nf(e){return e>=48&&e<=57}function qf(e){return Nf(e)||e>=97&&e<=102||e>=65&&e<=70}const Uf=(e,t,i)=>(n,r)=>{for(let s=!1,o=0,a=0;;a++){let{next:l}=n;if(Df(l)||45==l||95==l||s&&Nf(l))!s&&(45!=l||a>0)&&(s=!0),o===a&&45==l&&o++,n.advance();else{if(92!=l||10==n.peek(1)){s&&n.acceptToken(2==o&&r.canShift(2)?t:40==l?i:e);break}if(n.advance(),qf(n.next)){do{n.advance()}while(qf(n.next));32==n.next&&n.advance()}else n.next>-1&&n.advance();s=!0}}},Gf=new qc(Uf(136,2,137),{contextual:!0}),Ff=new qc(Uf(138,3,4),{contextual:!0}),Hf=new qc(e=>{if(If.includes(e.peek(-1))){let{next:t}=e;(Df(t)||95==t||35==t||46==t||42==t||91==t||58==t&&Df(e.peek(1))||45==t||38==t)&&e.acceptToken(135)}}),Kf=new qc(e=>{if(!If.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),Df(t)){do{e.advance()}while(Df(e.next)||Nf(e.next));e.acceptToken(1)}}}),Jf=aa({"AtKeyword import charset namespace keyframes media supports font-feature-values":_a.definitionKeyword,"from to selector scope MatchFlag":_a.keyword,NamespaceName:_a.namespace,KeyframeName:_a.labelName,KeyframeRangeName:_a.operatorKeyword,TagName:_a.tagName,ClassName:_a.className,PseudoClassName:_a.constant(_a.className),IdName:_a.labelName,"FeatureName PropertyName":_a.propertyName,AttributeName:_a.attributeName,NumberLiteral:_a.number,KeywordQuery:_a.keyword,UnaryQueryOp:_a.operatorKeyword,"CallTag ValueName FontName":_a.atom,VariableName:_a.variableName,Callee:_a.operatorKeyword,Unit:_a.unit,"UniversalSelector NestingSelector":_a.definitionOperator,"MatchOp CompareOp":_a.compareOperator,"ChildOp SiblingOp, LogicOp":_a.logicOperator,BinOp:_a.arithmeticOperator,Important:_a.modifier,Comment:_a.blockComment,ColorLiteral:_a.color,"ParenthesizedContent StringLiteral":_a.string,":":_a.punctuation,"PseudoOp #":_a.derefOperator,"; , |":_a.separator,"( )":_a.paren,"[ ]":_a.squareBracket,"{ }":_a.brace}),ed={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},td={__proto__:null,or:104,and:104,not:112,only:112,layer:186},id={__proto__:null,selector:118,layer:182},nd={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},rd={__proto__:null,to:223},sd=au.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'o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f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[Jf],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=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ed[e]||-1},{term:138,get:e=>td[e]||-1},{term:4,get:e=>id[e]||-1},{term:28,get:e=>nd[e]||-1},{term:136,get:e=>rd[e]||-1}],tokenPrec:2256});let od=null;function ad(){if(!od&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],i=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,e=>"-"+e.toLowerCase())),i.has(n)||(t.push(n),i.add(n)));od=t.sort().map(e=>({type:"property",label:e,apply:e+": "}))}return od||[]}const ld=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(e=>({type:"class",label:e})),hd=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","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","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","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","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-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","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","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","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","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","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","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","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","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","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","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","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","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","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"].map(e=>({type:"keyword",label:e})).concat(["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"].map(e=>({type:"constant",label:e}))),cd=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),ud=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(e=>({type:"keyword",label:e})),fd=/^(\w[\w-]*|-\w[\w-]*|)$/,dd=/^-(-[\w-]*)?$/,pd=new Yo,Od=["Declaration"];function gd(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function md(e,t,i){if(t.to-t.from>4096){let n=pd.get(t);if(n)return n;let r=[],s=new Set,o=t.cursor(bo.IncludeAnonymous);if(o.firstChild())do{for(let t of md(e,o.node,i))s.has(t.label)||(s.add(t.label),r.push(t))}while(o.nextSibling());return pd.set(t,r),r}{let n=[],r=new Set;return t.cursor().iterate(t=>{var s;if(i(t)&&t.matchContext(Od)&&":"==(null===(s=t.node.nextSibling)||void 0===s?void 0:s.name)){let i=e.sliceString(t.from,t.to);r.has(i)||(r.add(i),n.push({label:i,type:"variable"}))}}),n}}const vd=e=>t=>{let{state:i,pos:n}=t,r=Ea(i).resolveInner(n,-1),s=r.type.isError&&r.from==r.to-1&&"-"==i.doc.sliceString(r.from,r.to);if("PropertyName"==r.name||(s||"TagName"==r.name)&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:ad(),validFor:fd};if("ValueName"==r.name)return{from:r.from,options:hd,validFor:fd};if("PseudoClassName"==r.name)return{from:r.from,options:ld,validFor:fd};if(e(r)||(t.explicit||s)&&function(e,t){var i;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(i=e.parent)||void 0===i?void 0:i.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(r,i.doc))return{from:e(r)||s?r.from:n,options:md(i.doc,gd(r),e),validFor:dd};if("TagName"==r.name){for(let{parent:e}=r;e;e=e.parent)if("Block"==e.name)return{from:r.from,options:ad(),validFor:fd};return{from:r.from,options:cd,validFor:fd}}if("AtKeyword"==r.name)return{from:r.from,options:ud,validFor:fd};if(!t.explicit)return null;let o=r.resolve(n),a=o.childBefore(n);return a&&":"==a.name&&"PseudoClassSelector"==o.name?{from:n,options:ld,validFor:fd}:a&&":"==a.name&&"Declaration"==o.name||"ArgList"==o.name?{from:n,options:hd,validFor:fd}:"Block"==o.name||"Styles"==o.name?{from:n,options:ad(),validFor:fd}:null},yd=vd(e=>"VariableName"==e.name),wd=Xa.define({name:"css",parser:sd.configure({props:[el.add({Declaration:ll()}),cl.add({"Block KeyframeList":ul})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}}),bd=["_blank","_self","_top","_parent"],Sd=["ascii","utf-8","utf-16","latin1","latin1"],xd=["get","post","put","delete"],kd=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Qd=["true","false"],$d={},Pd={a:{attrs:{href:null,ping:null,type:null,media:null,target:bd,hreflang:null}},abbr:$d,address:$d,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:$d,aside:$d,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:$d,base:{attrs:{href:null,target:bd}},bdi:$d,bdo:$d,blockquote:{attrs:{cite:null}},body:$d,br:$d,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:kd,formmethod:xd,formnovalidate:["novalidate"],formtarget:bd,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:$d,center:$d,cite:$d,code:$d,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:$d,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:$d,div:$d,dl:$d,dt:$d,em:$d,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:$d,figure:$d,footer:$d,form:{attrs:{action:null,name:null,"accept-charset":Sd,autocomplete:["on","off"],enctype:kd,method:xd,novalidate:["novalidate"],target:bd}},h1:$d,h2:$d,h3:$d,h4:$d,h5:$d,h6:$d,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:$d,hgroup:$d,hr:$d,html:{attrs:{manifest:null}},i:$d,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:kd,formmethod:xd,formnovalidate:["novalidate"],formtarget:bd,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:$d,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:$d,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:$d,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Sd,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:$d,noscript:$d,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:$d,param:{attrs:{name:null,value:null}},pre:$d,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:$d,rt:$d,ruby:$d,samp:$d,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Sd}},section:$d,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:$d,source:{attrs:{src:null,type:null,media:null}},span:$d,strong:$d,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:$d,summary:$d,sup:$d,table:$d,tbody:$d,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:$d,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:$d,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:$d,time:{attrs:{datetime:null}},title:$d,tr:$d,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:$d,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:$d},_d={accesskey:null,class:null,contenteditable:Qd,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Qd,autocorrect:Qd,autocapitalize:Qd,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Qd,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Qd,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Qd,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Qd,"aria-hidden":Qd,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Qd,"aria-multiselectable":Qd,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Qd,"aria-relevant":null,"aria-required":Qd,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Cd="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(e=>"on"+e);for(let e of Cd)_d[e]=null;class Ad{constructor(e,t){this.tags={...Pd,...e},this.globalAttrs={..._d,...t},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function Td(e,t,i=e.length){if(!t)return"";let n=t.firstChild,r=n&&n.getChild("TagName");return r?e.sliceString(r.from,Math.min(r.to,i)):""}function Zd(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function Md(e,t,i){let n=i.tags[Td(e,Zd(t))];return(null==n?void 0:n.children)||i.allTags}function Rd(e,t){let i=[];for(let n=Zd(t);n&&!n.type.isTop;n=Zd(n.parent)){let r=Td(e,n);if(r&&"CloseTag"==n.lastChild.name)break;r&&i.indexOf(r)<0&&("EndTag"==t.name||t.from>=n.firstChild.to)&&i.push(r)}return i}Ad.default=new Ad;const Xd=/^[:\-\.\w\u00b7-\uffff]*$/;function Ed(e,t,i,n,r){let s=/\s*>/.test(e.sliceDoc(r,r+5))?"":">",o=Zd(i,"StartTag"==i.name||"TagName"==i.name);return{from:n,to:r,options:Md(e.doc,o,t).map(e=>({label:e,type:"type"})).concat(Rd(e.doc,i).map((e,t)=>({label:"/"+e,apply:"/"+e+s,type:"type",boost:99-t}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function jd(e,t,i,n){let r=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:i,to:n,options:Rd(e.doc,t).map((e,t)=>({label:e,apply:e+r,type:"type",boost:99-t})),validFor:Xd}}function zd(e){let{extraTags:t,extraGlobalAttributes:i}=e,n=i||t?new Ad(t,i):Ad.default;return e=>function(e,t){let{state:i,pos:n}=t,r=Ea(i).resolveInner(n,-1),s=r.resolve(n);for(let e,t=n;s==r&&(e=r.childBefore(t));){let i=e.lastChild;if(!i||!i.type.isError||i.from<i.to)break;s=r=e,t=i.from}return"TagName"==r.name?r.parent&&/CloseTag$/.test(r.parent.name)?jd(i,r,r.from,n):Ed(i,e,r,r.from,n):"StartTag"==r.name||"IncompleteTag"==r.name?Ed(i,e,r,n,n):"StartCloseTag"==r.name||"IncompleteCloseTag"==r.name?jd(i,r,n,n):"OpenTag"==r.name||"SelfClosingTag"==r.name||"AttributeName"==r.name?function(e,t,i,n,r){let s=Zd(i),o=s?t.tags[Td(e.doc,s)]:null,a=o&&o.attrs?Object.keys(o.attrs):[];return{from:n,to:r,options:(o&&!1===o.globalAttrs?a:a.length?a.concat(t.globalAttrNames):t.globalAttrNames).map(e=>({label:e,type:"property"})),validFor:Xd}}(i,e,r,"AttributeName"==r.name?r.from:n,n):"Is"==r.name||"AttributeValue"==r.name||"UnquotedAttributeValue"==r.name?function(e,t,i,n,r){var s;let o,a=null===(s=i.parent)||void 0===s?void 0:s.getChild("AttributeName"),l=[];if(a){let s=e.sliceDoc(a.from,a.to),h=t.globalAttrs[s];if(!h){let n=Zd(i),r=n?t.tags[Td(e.doc,n)]:null;h=(null==r?void 0:r.attrs)&&r.attrs[s]}if(h){let t=e.sliceDoc(n,r).toLowerCase(),i='"',s='"';/^['"]/.test(t)?(o='"'==t[0]?/^[^"]*$/:/^[^']*$/,i="",s=e.sliceDoc(r,r+1)==t[0]?"":t[0],t=t.slice(1),n++):o=/^[^\s<>='"]*$/;for(let e of h)l.push({label:e,apply:i+e+s,type:"constant"})}}return{from:n,to:r,options:l,validFor:o}}(i,e,r,"Is"==r.name?n:r.from,n):!t.explicit||"Element"!=s.name&&"Text"!=s.name&&"Document"!=s.name?null:function(e,t,i,n){let r=[],s=0;for(let n of Md(e.doc,i,t))r.push({label:"<"+n,type:"type"});for(let t of Rd(e.doc,i))r.push({label:"</"+t+">",type:"type",boost:99-s++});return{from:n,to:n,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(i,e,r,n)}(n,e)}const Ld=nf.parser.configure({top:"SingleExpression"}),Yd=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:sf.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:of.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:af.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:Ld},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:nf.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:wd.parser}],Vd=[{name:"style",parser:wd.parser.configure({top:"Styles"})}].concat(Cd.map(e=>({name:e,parser:nf.parser}))),Bd=Xa.define({name:"html",parser:Lf.configure({props:[el.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,i=null;for(let t=e.node;;){let e=t.lastChild;if(!e||"Element"!=e.name||e.to!=t.to)break;i=t=e}return i&&(!(t=i.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(i.from)+e.unit:null}}),cl.add({Element(e){let t=e.firstChild,i=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==i.name?i.from:e.to}:null}}),El.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),Wd=Bd.configure({wrap:Wf(Yd,Vd)}),Id=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Dd=ws.inputHandler.of((e,t,i,n,r)=>{if(e.composing||e.state.readOnly||t!=i||">"!=n&&"/"!=n||!Wd.isActiveAt(e.state,t,-1))return!1;let s=r(),{state:o}=s,a=o.changeByRange(e=>{var t,i,r;let s,a=o.doc.sliceString(e.from-1,e.to)==n,{head:l}=e,h=Ea(o).resolveInner(l,-1);if(a&&">"==n&&"EndTag"==h.name){let n=h.parent;if("CloseTag"!=(null===(i=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===i?void 0:i.name)&&(s=Td(o.doc,n.parent,l))&&!Id.has(s))return{range:e,changes:{from:l,to:l+(">"===o.doc.sliceString(l,l+1)?1:0),insert:`</${s}>`}}}else if(a&&"/"==n&&"IncompleteCloseTag"==h.name){let e=h.parent;if(h.from==l-2&&"CloseTag"!=(null===(r=e.lastChild)||void 0===r?void 0:r.name)&&(s=Td(o.doc,e,l))&&!Id.has(s)){let e=l+(">"===o.doc.sliceString(l,l+1)?1:0),t=`${s}>`;return{range:K.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}});return!a.changes.empty&&(e.dispatch([s,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var Nd=i(411),qd=i(408),Ud={};Ud.styleTagTransform=d(),Ud.setAttributes=h(),Ud.insert=a().bind(null,"head"),Ud.domAPI=s(),Ud.insertStyleElement=u(),t()(qd.A,Ud),qd.A&&qd.A.locals&&qd.A.locals;var Gd=i(299),Fd=i(407);function Hd(e){const t={value:e};return(...e)=>{const[i]=e;return e.length?(t.value=i,i):t.value}}const Kd=Gd(function(e,t,i,n){const r={ENTER:13,ESC:27,TAB:9,LEFT:37,UP:38,RIGHT:39,DOWN:40},{keyCode:s}=n,o=n.target,a=up(e,["ok","cancel","input"]).map(sp);switch(s){case r.ENTER:hp(o,e,t,i),n.preventDefault();break;case r.ESC:fp(e),i();break;case r.TAB:n.shiftKey&&lp(e,a),lp(e,a),n.preventDefault();break;default:["left","right","up","down"].filter(e=>s===r[e.toUpperCase()]).forEach(()=>{!function(e,t){const i=sp(document.activeElement),n=/ok|cancel/.test(i),r=t.length-1;if("input"===i||!r||!n)return;const s=op(i);for(const t of up(e,[s]))t.focus()}(e,a)})}n.stopPropagation()}),Jd={ok:"OK"},ep={ok:"OK",cancel:"Cancel"},tp=Hd(100),ip=(e,t,i)=>rp(e,t,"",np(i)||Jd,i);function np(e={}){const{buttons:t}=e;return t||null}function rp(e,t,i,n,r){const s=Hd(),o=Hd(),a=new Promise((e,t)=>{const i=r&&(e=>"boolean"==typeof e)(r.cancel)&&!r.cancel;s(e),o(i?()=>{}:()=>t(Error()))}),l=function(e,t,i,n){return`<div class="page">\n <div data-name="js-close" class="close-button"></div>\n <header>${e}</header>\n <div class="content-area">${t.replace(/\n/g,"<br>")}${i}</div>\n <div class="action-area">\n <div class="button-strip">\n ${function(e){const t=Object.keys(e),i=Gd((e,t,i)=>`<button\n tabindex=${i}\n data-name="js-${t.toLowerCase()}">\n ${e[t]}\n </button>`);return t.map(i(e)).join("")}(n)}\n </div>\n </div>\n </div>`}(e,t,i,n),h=Fd("div",{innerHTML:l,className:"smalltalk",style:`z-index: ${tp(tp()+1)}`});for(const e of up(h,["ok","input"]))e.focus();for(const e of up(h,["input"]))e.setSelectionRange(0,i.length);!function(e,t,i,n){for(const e of up(t,["cancel","close","ok"]))e.addEventListener("click",n)}(0,h,0,e=>{hp(e.target,h,s(),o())});for(const e of["click","contextmenu"])h.addEventListener(e,e=>{e.stopPropagation();for(const e of up(h,["ok","input"]))e.focus()});return h.addEventListener("keydown",Kd(h,s(),o())),Object.assign(a,{dialog:h,ok:s})}function sp(e){return e.getAttribute("data-name").replace("js-","")}const op=e=>"cancel"===e?"ok":"cancel",ap=(e,t)=>t===e?0:t+1;function lp(e,t){const i=sp(document.activeElement),n=t.length-1,r=t.indexOf(i),s=t[ap(n,r)];for(const t of up(e,[s]))t.focus()}function hp(e,t,i,n){const r=e.getAttribute("data-name").replace("js-","");if(/close|cancel/.test(r))return n(),void fp(t);let s=null;for(const e of up(t,["input"]))({value:s}=e);i(s),fp(t)}const cp=Gd((e,t)=>e.querySelector(`[data-name="js-${t}"]`));function up(e,t){return t.map(cp(e)).filter(Boolean)}function fp(e){const{parentElement:t}=e;t&&t.removeChild(e)}const dp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pp="ARRAYBUFFER not supported by this environment",Op="UINT8ARRAY not supported by this environment";function gp(e,t,i,n){let r,s,o;const a=t||[0],l=(i=i||0)>>>3,h=-1===n?3:0;for(r=0;r<e.length;r+=1)o=r+l,s=o>>>2,a.length<=s&&a.push(0),a[s]|=e[r]<<8*(h+n*(o%4));return{value:a,binLen:8*e.length+i}}function mp(e,t,i){switch(t){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,i,n){let r,s,o,a;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");const l=t||[0],h=(i=i||0)>>>3,c=-1===n?3:0;for(r=0;r<e.length;r+=2){if(s=parseInt(e.substr(r,2),16),isNaN(s))throw new Error("String of HEX type contains invalid characters");for(a=(r>>>1)+h,o=a>>>2;l.length<=o;)l.push(0);l[o]|=s<<8*(c+n*(a%4))}return{value:l,binLen:4*e.length+i}}(e,t,n,i)};case"TEXT":return function(e,n,r){return function(e,t,i,n,r){let s,o,a,l,h,c,u,f,d=0;const p=i||[0],O=(n=n||0)>>>3;if("UTF8"===t)for(u=-1===r?3:0,a=0;a<e.length;a+=1)for(s=e.charCodeAt(a),o=[],128>s?o.push(s):2048>s?(o.push(192|s>>>6),o.push(128|63&s)):55296>s||57344<=s?o.push(224|s>>>12,128|s>>>6&63,128|63&s):(a+=1,s=65536+((1023&s)<<10|1023&e.charCodeAt(a)),o.push(240|s>>>18,128|s>>>12&63,128|s>>>6&63,128|63&s)),l=0;l<o.length;l+=1){for(c=d+O,h=c>>>2;p.length<=h;)p.push(0);p[h]|=o[l]<<8*(u+r*(c%4)),d+=1}else for(u=-1===r?2:0,f="UTF16LE"===t&&1!==r||"UTF16LE"!==t&&1===r,a=0;a<e.length;a+=1){for(s=e.charCodeAt(a),!0===f&&(l=255&s,s=l<<8|s>>>8),c=d+O,h=c>>>2;p.length<=h;)p.push(0);p[h]|=s<<8*(u+r*(c%4)),d+=2}return{value:p,binLen:8*d+n}}(e,t,n,r,i)};case"B64":return function(e,t,n){return function(e,t,i,n){let r,s,o,a,l,h,c,u=0;const f=t||[0],d=(i=i||0)>>>3,p=-1===n?3:0,O=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==O&&O<e.length)throw new Error("Invalid '=' found in base-64 string");for(s=0;s<e.length;s+=4){for(l=e.substr(s,4),a=0,o=0;o<l.length;o+=1)r=dp.indexOf(l.charAt(o)),a|=r<<18-6*o;for(o=0;o<l.length-1;o+=1){for(c=u+d,h=c>>>2;f.length<=h;)f.push(0);f[h]|=(a>>>16-8*o&255)<<8*(p+n*(c%4)),u+=1}}return{value:f,binLen:8*u+i}}(e,t,n,i)};case"BYTES":return function(e,t,n){return function(e,t,i,n){let r,s,o,a;const l=t||[0],h=(i=i||0)>>>3,c=-1===n?3:0;for(s=0;s<e.length;s+=1)r=e.charCodeAt(s),a=s+h,o=a>>>2,l.length<=o&&l.push(0),l[o]|=r<<8*(c+n*(a%4));return{value:l,binLen:8*e.length+i}}(e,t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(pp)}return function(e,t,n){return function(e,t,i,n){return gp(new Uint8Array(e),t,i,n)}(e,t,n,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Op)}return function(e,t,n){return gp(e,t,n,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function vp(e,t,i,n){switch(e){case"HEX":return function(e){return function(e,t,i,n){const r="0123456789abcdef";let s,o,a="";const l=t/8,h=-1===i?3:0;for(s=0;s<l;s+=1)o=e[s>>>2]>>>8*(h+i*(s%4)),a+=r.charAt(o>>>4&15)+r.charAt(15&o);return n.outputUpper?a.toUpperCase():a}(e,t,i,n)};case"B64":return function(e){return function(e,t,i,n){let r,s,o,a,l,h="";const c=t/8,u=-1===i?3:0;for(r=0;r<c;r+=3)for(a=r+1<c?e[r+1>>>2]:0,l=r+2<c?e[r+2>>>2]:0,o=(e[r>>>2]>>>8*(u+i*(r%4))&255)<<16|(a>>>8*(u+i*((r+1)%4))&255)<<8|l>>>8*(u+i*((r+2)%4))&255,s=0;s<4;s+=1)h+=8*r+6*s<=t?dp.charAt(o>>>6*(3-s)&63):n.b64Pad;return h}(e,t,i,n)};case"BYTES":return function(e){return function(e,t,i){let n,r,s="";const o=t/8,a=-1===i?3:0;for(n=0;n<o;n+=1)r=e[n>>>2]>>>8*(a+i*(n%4))&255,s+=String.fromCharCode(r);return s}(e,t,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error(pp)}return function(e){return function(e,t,i){let n;const r=t/8,s=new ArrayBuffer(r),o=new Uint8Array(s),a=-1===i?3:0;for(n=0;n<r;n+=1)o[n]=e[n>>>2]>>>8*(a+i*(n%4))&255;return s}(e,t,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error(Op)}return function(e){return function(e,t,i){let n;const r=t/8,s=-1===i?3:0,o=new Uint8Array(r);for(n=0;n<r;n+=1)o[n]=e[n>>>2]>>>8*(s+i*(n%4))&255;return o}(e,t,i)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}const yp=4294967296,wp=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],bp=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428],Sp=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],xp="Chosen SHA variant is not supported",kp="Cannot set numRounds with MAC";function Qp(e,t){let i,n;const r=e.binLen>>>3,s=t.binLen>>>3,o=r<<3,a=4-r<<3;if(r%4!=0){for(i=0;i<s;i+=4)n=r+i>>>2,e.value[n]|=t.value[i>>>2]<<o,e.value.push(0),e.value[n+1]|=t.value[i>>>2]>>>a;return(e.value.length<<2)-4>=s+r&&e.value.pop(),{value:e.value,binLen:e.binLen+t.binLen}}return{value:e.value.concat(t.value),binLen:e.binLen+t.binLen}}function $p(e){const t={outputUpper:!1,b64Pad:"=",outputLen:-1},i=e||{},n="Output length must be a multiple of 8";if(t.outputUpper=i.outputUpper||!1,i.b64Pad&&(t.b64Pad=i.b64Pad),i.outputLen){if(i.outputLen%8!=0)throw new Error(n);t.outputLen=i.outputLen}else if(i.shakeLen){if(i.shakeLen%8!=0)throw new Error(n);t.outputLen=i.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function Pp(e,t,i,n){const r=e+" must include a value and format";if(!t){if(!n)throw new Error(r);return n}if(void 0===t.value||!t.format)throw new Error(r);return mp(t.format,t.encoding||"UTF8",i)(t.value)}class _p{constructor(e,t,i){const n=i||{};if(this.t=t,this.i=n.encoding||"UTF8",this.numRounds=n.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.o=e,this.h=[],this.u=0,this.l=!1,this.A=0,this.H=!1,this.S=[],this.p=[]}update(e){let t,i=0;const n=this.m>>>5,r=this.C(e,this.h,this.u),s=r.binLen,o=r.value,a=s>>>5;for(t=0;t<a;t+=n)i+this.m<=s&&(this.U=this.v(o.slice(t,t+n),this.U),i+=this.m);return this.A+=i,this.h=o.slice(i>>>5),this.u=s%this.m,this.l=!0,this}getHash(e,t){let i,n,r=this.R;const s=$p(t);if(this.K){if(-1===s.outputLen)throw new Error("Output length must be specified in options");r=s.outputLen}const o=vp(e,r,this.T,s);if(this.H&&this.g)return o(this.g(s));for(n=this.F(this.h.slice(),this.u,this.A,this.L(this.U),r),i=1;i<this.numRounds;i+=1)this.K&&r%32!=0&&(n[n.length-1]&=16777215>>>24-r%32),n=this.F(n,r,0,this.B(this.o),r);return o(n)}setHMACKey(e,t,i){if(!this.M)throw new Error("Variant does not support HMAC");if(this.l)throw new Error("Cannot set MAC key after calling update");const n=mp(t,(i||{}).encoding||"UTF8",this.T);this.k(n(e))}k(e){const t=this.m>>>3,i=t/4-1;let n;if(1!==this.numRounds)throw new Error(kp);if(this.H)throw new Error("MAC key already set");for(t<e.binLen/8&&(e.value=this.F(e.value,e.binLen,0,this.B(this.o),this.R));e.value.length<=i;)e.value.push(0);for(n=0;n<=i;n+=1)this.S[n]=909522486^e.value[n],this.p[n]=1549556828^e.value[n];this.U=this.v(this.S,this.U),this.A=this.m,this.H=!0}getHMAC(e,t){const i=$p(t);return vp(e,this.R,this.T,i)(this.Y())}Y(){let e;if(!this.H)throw new Error("Cannot call getHMAC without first setting MAC key");const t=this.F(this.h.slice(),this.u,this.A,this.L(this.U),this.R);return e=this.v(this.p,this.B(this.o)),e=this.F(t,this.R,this.m,e,this.R),e}}function Cp(e,t){return e<<t|e>>>32-t}function Ap(e,t){return e>>>t|e<<32-t}function Tp(e,t){return e>>>t}function Zp(e,t,i){return e^t^i}function Mp(e,t,i){return e&t^~e&i}function Rp(e,t,i){return e&t^e&i^t&i}function Xp(e){return Ap(e,2)^Ap(e,13)^Ap(e,22)}function Ep(e,t){const i=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(i>>>16))<<16|65535&i}function jp(e,t,i,n){const r=(65535&e)+(65535&t)+(65535&i)+(65535&n);return(65535&(e>>>16)+(t>>>16)+(i>>>16)+(n>>>16)+(r>>>16))<<16|65535&r}function zp(e,t,i,n,r){const s=(65535&e)+(65535&t)+(65535&i)+(65535&n)+(65535&r);return(65535&(e>>>16)+(t>>>16)+(i>>>16)+(n>>>16)+(r>>>16)+(s>>>16))<<16|65535&s}function Lp(e){return Ap(e,7)^Ap(e,18)^Tp(e,3)}function Yp(e){return Ap(e,6)^Ap(e,11)^Ap(e,25)}function Vp(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function Bp(e,t){let i,n,r,s,o,a,l;const h=[];for(i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],l=0;l<80;l+=1)h[l]=l<16?e[l]:Cp(h[l-3]^h[l-8]^h[l-14]^h[l-16],1),a=l<20?zp(Cp(i,5),Mp(n,r,s),o,1518500249,h[l]):l<40?zp(Cp(i,5),Zp(n,r,s),o,1859775393,h[l]):l<60?zp(Cp(i,5),Rp(n,r,s),o,2400959708,h[l]):zp(Cp(i,5),Zp(n,r,s),o,3395469782,h[l]),o=s,s=r,r=Cp(n,30),n=i,i=a;return t[0]=Ep(i,t[0]),t[1]=Ep(n,t[1]),t[2]=Ep(r,t[2]),t[3]=Ep(s,t[3]),t[4]=Ep(o,t[4]),t}function Wp(e,t,i,n){let r;const s=15+(t+65>>>9<<4),o=t+i;for(;e.length<=s;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[s]=4294967295&o,e[s-1]=o/yp|0,r=0;r<e.length;r+=16)n=Bp(e.slice(r,r+16),n);return n}let Ip=class extends _p{constructor(e,t,i){if("SHA-1"!==e)throw new Error(xp);super(e,t,i);const n=i||{};this.M=!0,this.g=this.Y,this.T=-1,this.C=mp(this.t,this.i,this.T),this.v=Bp,this.L=function(e){return e.slice()},this.B=Vp,this.F=Wp,this.U=[1732584193,4023233417,2562383102,271733878,3285377520],this.m=512,this.R=160,this.K=!1,n.hmacKey&&this.k(Pp("hmacKey",n.hmacKey,this.T))}};function Dp(e){let t;return t="SHA-224"==e?bp.slice():Sp.slice(),t}function Np(e,t){let i,n,r,s,o,a,l,h,c,u,f;const d=[];for(i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=t[6],h=t[7],f=0;f<64;f+=1)d[f]=f<16?e[f]:jp(Ap(p=d[f-2],17)^Ap(p,19)^Tp(p,10),d[f-7],Lp(d[f-15]),d[f-16]),c=zp(h,Yp(o),Mp(o,a,l),wp[f],d[f]),u=Ep(Xp(i),Rp(i,n,r)),h=l,l=a,a=o,o=Ep(s,c),s=r,r=n,n=i,i=Ep(c,u);var p;return t[0]=Ep(i,t[0]),t[1]=Ep(n,t[1]),t[2]=Ep(r,t[2]),t[3]=Ep(s,t[3]),t[4]=Ep(o,t[4]),t[5]=Ep(a,t[5]),t[6]=Ep(l,t[6]),t[7]=Ep(h,t[7]),t}let qp=class extends _p{constructor(e,t,i){if("SHA-224"!==e&&"SHA-256"!==e)throw new Error(xp);super(e,t,i);const n=i||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=mp(this.t,this.i,this.T),this.v=Np,this.L=function(e){return e.slice()},this.B=Dp,this.F=function(t,i,n,r){return function(e,t,i,n,r){let s,o;const a=15+(t+65>>>9<<4),l=t+i;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/yp|0,s=0;s<e.length;s+=16)n=Np(e.slice(s,s+16),n);return o="SHA-224"===r?[n[0],n[1],n[2],n[3],n[4],n[5],n[6]]:n,o}(t,i,n,r,e)},this.U=Dp(e),this.m=512,this.R="SHA-224"===e?224:256,this.K=!1,n.hmacKey&&this.k(Pp("hmacKey",n.hmacKey,this.T))}};class Up{constructor(e,t){this.N=e,this.I=t}}function Gp(e,t){let i;return t>32?(i=64-t,new Up(e.I<<t|e.N>>>i,e.N<<t|e.I>>>i)):0!==t?(i=32-t,new Up(e.N<<t|e.I>>>i,e.I<<t|e.N>>>i)):e}function Fp(e,t){let i;return t<32?(i=32-t,new Up(e.N>>>t|e.I<<i,e.I>>>t|e.N<<i)):(i=64-t,new Up(e.I>>>t|e.N<<i,e.N>>>t|e.I<<i))}function Hp(e,t){return new Up(e.N>>>t,e.I>>>t|e.N<<32-t)}function Kp(e,t,i){return new Up(e.N&t.N^e.N&i.N^t.N&i.N,e.I&t.I^e.I&i.I^t.I&i.I)}function Jp(e){const t=Fp(e,28),i=Fp(e,34),n=Fp(e,39);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}function eO(e,t){let i,n;i=(65535&e.I)+(65535&t.I),n=(e.I>>>16)+(t.I>>>16)+(i>>>16);const r=(65535&n)<<16|65535&i;return i=(65535&e.N)+(65535&t.N)+(n>>>16),n=(e.N>>>16)+(t.N>>>16)+(i>>>16),new Up((65535&n)<<16|65535&i,r)}function tO(e,t,i,n){let r,s;r=(65535&e.I)+(65535&t.I)+(65535&i.I)+(65535&n.I),s=(e.I>>>16)+(t.I>>>16)+(i.I>>>16)+(n.I>>>16)+(r>>>16);const o=(65535&s)<<16|65535&r;return r=(65535&e.N)+(65535&t.N)+(65535&i.N)+(65535&n.N)+(s>>>16),s=(e.N>>>16)+(t.N>>>16)+(i.N>>>16)+(n.N>>>16)+(r>>>16),new Up((65535&s)<<16|65535&r,o)}function iO(e,t,i,n,r){let s,o;s=(65535&e.I)+(65535&t.I)+(65535&i.I)+(65535&n.I)+(65535&r.I),o=(e.I>>>16)+(t.I>>>16)+(i.I>>>16)+(n.I>>>16)+(r.I>>>16)+(s>>>16);const a=(65535&o)<<16|65535&s;return s=(65535&e.N)+(65535&t.N)+(65535&i.N)+(65535&n.N)+(65535&r.N)+(o>>>16),o=(e.N>>>16)+(t.N>>>16)+(i.N>>>16)+(n.N>>>16)+(r.N>>>16)+(s>>>16),new Up((65535&o)<<16|65535&s,a)}function nO(e,t){return new Up(e.N^t.N,e.I^t.I)}function rO(e){const t=Fp(e,19),i=Fp(e,61),n=Hp(e,6);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}function sO(e){const t=Fp(e,1),i=Fp(e,8),n=Hp(e,7);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}function oO(e){const t=Fp(e,14),i=Fp(e,18),n=Fp(e,41);return new Up(t.N^i.N^n.N,t.I^i.I^n.I)}const aO=[new Up(wp[0],3609767458),new Up(wp[1],602891725),new Up(wp[2],3964484399),new Up(wp[3],2173295548),new Up(wp[4],4081628472),new Up(wp[5],3053834265),new Up(wp[6],2937671579),new Up(wp[7],3664609560),new Up(wp[8],2734883394),new Up(wp[9],1164996542),new Up(wp[10],1323610764),new Up(wp[11],3590304994),new Up(wp[12],4068182383),new Up(wp[13],991336113),new Up(wp[14],633803317),new Up(wp[15],3479774868),new Up(wp[16],2666613458),new Up(wp[17],944711139),new Up(wp[18],2341262773),new Up(wp[19],2007800933),new Up(wp[20],1495990901),new Up(wp[21],1856431235),new Up(wp[22],3175218132),new Up(wp[23],2198950837),new Up(wp[24],3999719339),new Up(wp[25],766784016),new Up(wp[26],2566594879),new Up(wp[27],3203337956),new Up(wp[28],1034457026),new Up(wp[29],2466948901),new Up(wp[30],3758326383),new Up(wp[31],168717936),new Up(wp[32],1188179964),new Up(wp[33],1546045734),new Up(wp[34],1522805485),new Up(wp[35],2643833823),new Up(wp[36],2343527390),new Up(wp[37],1014477480),new Up(wp[38],1206759142),new Up(wp[39],344077627),new Up(wp[40],1290863460),new Up(wp[41],3158454273),new Up(wp[42],3505952657),new Up(wp[43],106217008),new Up(wp[44],3606008344),new Up(wp[45],1432725776),new Up(wp[46],1467031594),new Up(wp[47],851169720),new Up(wp[48],3100823752),new Up(wp[49],1363258195),new Up(wp[50],3750685593),new Up(wp[51],3785050280),new Up(wp[52],3318307427),new Up(wp[53],3812723403),new Up(wp[54],2003034995),new Up(wp[55],3602036899),new Up(wp[56],1575990012),new Up(wp[57],1125592928),new Up(wp[58],2716904306),new Up(wp[59],442776044),new Up(wp[60],593698344),new Up(wp[61],3733110249),new Up(wp[62],2999351573),new Up(wp[63],3815920427),new Up(3391569614,3928383900),new Up(3515267271,566280711),new Up(3940187606,3454069534),new Up(4118630271,4000239992),new Up(116418474,1914138554),new Up(174292421,2731055270),new Up(289380356,3203993006),new Up(460393269,320620315),new Up(685471733,587496836),new Up(852142971,1086792851),new Up(1017036298,365543100),new Up(1126000580,2618297676),new Up(1288033470,3409855158),new Up(1501505948,4234509866),new Up(1607167915,987167468),new Up(1816402316,1246189591)];function lO(e){return"SHA-384"===e?[new Up(3418070365,bp[0]),new Up(1654270250,bp[1]),new Up(2438529370,bp[2]),new Up(355462360,bp[3]),new Up(1731405415,bp[4]),new Up(41048885895,bp[5]),new Up(3675008525,bp[6]),new Up(1203062813,bp[7])]:[new Up(Sp[0],4089235720),new Up(Sp[1],2227873595),new Up(Sp[2],4271175723),new Up(Sp[3],1595750129),new Up(Sp[4],2917565137),new Up(Sp[5],725511199),new Up(Sp[6],4215389547),new Up(Sp[7],327033209)]}function hO(e,t){let i,n,r,s,o,a,l,h,c,u,f,d;const p=[];for(i=t[0],n=t[1],r=t[2],s=t[3],o=t[4],a=t[5],l=t[6],h=t[7],f=0;f<80;f+=1)f<16?(d=2*f,p[f]=new Up(e[d],e[d+1])):p[f]=tO(rO(p[f-2]),p[f-7],sO(p[f-15]),p[f-16]),c=iO(h,oO(o),(g=a,m=l,new Up((O=o).N&g.N^~O.N&m.N,O.I&g.I^~O.I&m.I)),aO[f],p[f]),u=eO(Jp(i),Kp(i,n,r)),h=l,l=a,a=o,o=eO(s,c),s=r,r=n,n=i,i=eO(c,u);var O,g,m;return t[0]=eO(i,t[0]),t[1]=eO(n,t[1]),t[2]=eO(r,t[2]),t[3]=eO(s,t[3]),t[4]=eO(o,t[4]),t[5]=eO(a,t[5]),t[6]=eO(l,t[6]),t[7]=eO(h,t[7]),t}let cO=class extends _p{constructor(e,t,i){if("SHA-384"!==e&&"SHA-512"!==e)throw new Error(xp);super(e,t,i);const n=i||{};this.g=this.Y,this.M=!0,this.T=-1,this.C=mp(this.t,this.i,this.T),this.v=hO,this.L=function(e){return e.slice()},this.B=lO,this.F=function(t,i,n,r){return function(e,t,i,n,r){let s,o;const a=31+(t+129>>>10<<5),l=t+i;for(;e.length<=a;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[a]=4294967295&l,e[a-1]=l/yp|0,s=0;s<e.length;s+=32)n=hO(e.slice(s,s+32),n);return o="SHA-384"===r?[n[0].N,n[0].I,n[1].N,n[1].I,n[2].N,n[2].I,n[3].N,n[3].I,n[4].N,n[4].I,n[5].N,n[5].I]:[n[0].N,n[0].I,n[1].N,n[1].I,n[2].N,n[2].I,n[3].N,n[3].I,n[4].N,n[4].I,n[5].N,n[5].I,n[6].N,n[6].I,n[7].N,n[7].I],o}(t,i,n,r,e)},this.U=lO(e),this.m=1024,this.R="SHA-384"===e?384:512,this.K=!1,n.hmacKey&&this.k(Pp("hmacKey",n.hmacKey,this.T))}};const uO=[new Up(0,1),new Up(0,32898),new Up(2147483648,32906),new Up(2147483648,2147516416),new Up(0,32907),new Up(0,2147483649),new Up(2147483648,2147516545),new Up(2147483648,32777),new Up(0,138),new Up(0,136),new Up(0,2147516425),new Up(0,2147483658),new Up(0,2147516555),new Up(2147483648,139),new Up(2147483648,32905),new Up(2147483648,32771),new Up(2147483648,32770),new Up(2147483648,128),new Up(0,32778),new Up(2147483648,2147483658),new Up(2147483648,2147516545),new Up(2147483648,32896),new Up(0,2147483649),new Up(2147483648,2147516424)],fO=[[0,36,3,41,18],[1,44,10,45,2],[62,6,43,15,61],[28,55,25,21,56],[27,20,39,8,14]];function dO(e){let t;const i=[];for(t=0;t<5;t+=1)i[t]=[new Up(0,0),new Up(0,0),new Up(0,0),new Up(0,0),new Up(0,0)];return i}function pO(e){let t;const i=[];for(t=0;t<5;t+=1)i[t]=e[t].slice();return i}function OO(e,t){let i,n,r,s;const o=[],a=[];if(null!==e)for(n=0;n<e.length;n+=2)t[(n>>>1)%5][(n>>>1)/5|0]=nO(t[(n>>>1)%5][(n>>>1)/5|0],new Up(e[n+1],e[n]));for(i=0;i<24;i+=1){for(s=dO(),n=0;n<5;n+=1)o[n]=(l=t[n][0],h=t[n][1],c=t[n][2],u=t[n][3],f=t[n][4],new Up(l.N^h.N^c.N^u.N^f.N,l.I^h.I^c.I^u.I^f.I));for(n=0;n<5;n+=1)a[n]=nO(o[(n+4)%5],Gp(o[(n+1)%5],1));for(n=0;n<5;n+=1)for(r=0;r<5;r+=1)t[n][r]=nO(t[n][r],a[n]);for(n=0;n<5;n+=1)for(r=0;r<5;r+=1)s[r][(2*n+3*r)%5]=Gp(t[n][r],fO[n][r]);for(n=0;n<5;n+=1)for(r=0;r<5;r+=1)t[n][r]=nO(s[n][r],new Up(~s[(n+1)%5][r].N&s[(n+2)%5][r].N,~s[(n+1)%5][r].I&s[(n+2)%5][r].I));t[0][0]=nO(t[0][0],uO[i])}var l,h,c,u,f;return t}function gO(e){let t,i,n=0;const r=[0,0],s=[4294967295&e,e/yp&2097151];for(t=6;t>=0;t--)i=s[t>>2]>>>8*t&255,0===i&&0===n||(r[n+1>>2]|=i<<8*(n+1),n+=1);return n=0!==n?n:1,r[0]|=n,{value:n+1>4?r:[r[0]],binLen:8+8*n}}function mO(e){return Qp(gO(e.binLen),e)}function vO(e,t){let i,n=gO(t);n=Qp(n,e);const r=t>>>2,s=(r-n.value.length%r)%r;for(i=0;i<s;i++)n.value.push(0);return n.value}let yO=class extends _p{constructor(e,t,i){let n=6,r=0;super(e,t,i);const s=i||{};if(1!==this.numRounds){if(s.kmacKey||s.hmacKey)throw new Error(kp);if("CSHAKE128"===this.o||"CSHAKE256"===this.o)throw new Error("Cannot set numRounds for CSHAKE variants")}switch(this.T=1,this.C=mp(this.t,this.i,this.T),this.v=OO,this.L=pO,this.B=dO,this.U=dO(),this.K=!1,e){case"SHA3-224":this.m=r=1152,this.R=224,this.M=!0,this.g=this.Y;break;case"SHA3-256":this.m=r=1088,this.R=256,this.M=!0,this.g=this.Y;break;case"SHA3-384":this.m=r=832,this.R=384,this.M=!0,this.g=this.Y;break;case"SHA3-512":this.m=r=576,this.R=512,this.M=!0,this.g=this.Y;break;case"SHAKE128":n=31,this.m=r=1344,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"SHAKE256":n=31,this.m=r=1088,this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"KMAC128":n=4,this.m=r=1344,this.X(i),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"KMAC256":n=4,this.m=r=1088,this.X(i),this.R=-1,this.K=!0,this.M=!1,this.g=this._;break;case"CSHAKE128":this.m=r=1344,n=this.O(i),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;case"CSHAKE256":this.m=r=1088,n=this.O(i),this.R=-1,this.K=!0,this.M=!1,this.g=null;break;default:throw new Error(xp)}this.F=function(e,t,i,s,o){return function(e,t,i,n,r,s,o){let a,l,h=0;const c=[],u=r>>>5,f=t>>>5;for(a=0;a<f&&t>=r;a+=u)n=OO(e.slice(a,a+u),n),t-=r;for(e=e.slice(a),t%=r;e.length<u;)e.push(0);for(a=t>>>3,e[a>>2]^=s<<a%4*8,e[u-1]^=2147483648,n=OO(e,n);32*c.length<o&&(l=n[h%5][h/5|0],c.push(l.I),!(32*c.length>=o));)c.push(l.N),h+=1,0==64*h%r&&(OO(null,n),h=0);return c}(e,t,0,s,r,n,o)},s.hmacKey&&this.k(Pp("hmacKey",s.hmacKey,this.T))}O(e,t){const i=function(e){const t=e||{};return{funcName:Pp("funcName",t.funcName,1,{value:[],binLen:0}),customization:Pp("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});t&&(i.funcName=t);const n=Qp(mO(i.funcName),mO(i.customization));if(0!==i.customization.binLen||0!==i.funcName.binLen){const e=vO(n,this.m>>>3);for(let t=0;t<e.length;t+=this.m>>>5)this.U=this.v(e.slice(t,t+(this.m>>>5)),this.U),this.A+=this.m;return 4}return 31}X(e){const t=function(e){const t=e||{};return{kmacKey:Pp("kmacKey",t.kmacKey,1),funcName:{value:[1128353099],binLen:32},customization:Pp("Customization",t.customization,1,{value:[],binLen:0})}}(e||{});this.O(e,t.funcName);const i=vO(mO(t.kmacKey),this.m>>>3);for(let e=0;e<i.length;e+=this.m>>>5)this.U=this.v(i.slice(e,e+(this.m>>>5)),this.U),this.A+=this.m;this.H=!0}_(e){const t=Qp({value:this.h.slice(),binLen:this.u},function(e){let t,i,n=0;const r=[0,0],s=[4294967295&e,e/yp&2097151];for(t=6;t>=0;t--)i=s[t>>2]>>>8*t&255,0===i&&0===n||(r[n>>2]|=i<<8*n,n+=1);return n=0!==n?n:1,r[n>>2]|=n<<8*n,{value:n+1>4?r:[r[0]],binLen:8+8*n}}(e.outputLen));return this.F(t.value,t.binLen,this.A,this.L(this.U),e.outputLen)}};class wO{constructor(e,t,i){if("SHA-1"==e)this.P=new Ip(e,t,i);else if("SHA-224"==e||"SHA-256"==e)this.P=new qp(e,t,i);else if("SHA-384"==e||"SHA-512"==e)this.P=new cO(e,t,i);else{if("SHA3-224"!=e&&"SHA3-256"!=e&&"SHA3-384"!=e&&"SHA3-512"!=e&&"SHAKE128"!=e&&"SHAKE256"!=e&&"CSHAKE128"!=e&&"CSHAKE256"!=e&&"KMAC128"!=e&&"KMAC256"!=e)throw new Error(xp);this.P=new yO(e,t,i)}}update(e){return this.P.update(e),this}getHash(e,t){return this.P.getHash(e,t)}setHMACKey(e,t,i){this.P.setHMACKey(e,t,i)}getHMAC(e,t){return this.P.getHMAC(e,t)}}var bO=i(256),SO=i(911);let xO="/api/v1/fs";const kO=e=>"function"==typeof e,QO=(e,t,i)=>{!i&&kO(t)&&(i=t,t=null),$O({method:"PUT",url:xO+e,data:t,callback:i})};function $O({url:e,data:t,method:i,callback:n}){var r;!function(e,t){const{url:i,data:n,method:r}=e,s=new XMLHttpRequest;if(!kO(t))throw Error("Callback should be function!");s.open(r,i,!0),s.addEventListener("error",t),s.addEventListener("load",()=>{if(s.status>=200&&s.status<400)return t(null,s.responseText);t(Error(s.responseText))}),s.send(n)}({method:i,data:t,url:(r=e,encodeURI(r).replace(/#/g,"%23"))},n)}const PO="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class _O{constructor(e,t,i=0,n=e.length,r,s){this.test=s,this.value={from:0,to:0,precise:!1},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(i,n),this.bufferStart=i,this.normalize=r?e=>r(PO(e)):PO,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return z(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=L(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=Y(e);let n=this.normalize(t);if(n.length)for(let e=0,r=i,s=!0;;e++){let i=n.charCodeAt(e),o=this.match(i,r,s,this.bufferPos+this.bufferStart,e==n.length-1);if(o)return this.value=o,this;if(e==n.length-1)break;s&&e<t.length&&t.charCodeAt(e)==i?r++:s=!1}}}match(e,t,i,n,r){let s=null;for(let t=0;t<this.matches.length;){let i=this.matches[t],o=!1;this.query.charCodeAt(i.index)==e&&(i.index==this.query.length-1?s={from:i.from,to:n,precise:r&&i.precise}:(i.index++,o=!0)),o?t++:this.matches.splice(t,1)}return this.query.charCodeAt(0)==e&&(1==this.query.length?s={from:t,to:n,precise:i&&r}:this.matches.push({from:t,index:1,precise:i})),s&&this.test&&!this.test(s.from,s.to,this.buffer,this.bufferStart)&&(s=null),s}}"undefined"!=typeof Symbol&&(_O.prototype[Symbol.iterator]=function(){return this});const CO={from:-1,to:-1,match:/.*/.exec(""),precise:!0},AO="gm"+(null==/x/.unicode?"":"u");class TO{constructor(e,t,i,n=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=CO,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new RO(e,t,i,n,r);this.re=new RegExp(t,AO+((null==i?void 0:i.ignoreCase)?"i":"")),this.test=null==i?void 0:i.test,this.iter=e.iter();let s=e.lineAt(n);this.curLineStart=s.from,this.matchPos=XO(e,n),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,n=i+t[0].length;if(this.matchPos=XO(this.text,n+(i==n?1:0)),i==this.curLineStart+this.curLine.length&&this.nextLine(),(i<n||i>this.value.to)&&(!this.test||this.test(i,n,t)))return this.value={from:i,to:n,precise:!0,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}const ZO=new WeakMap;class MO{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,i){let n=ZO.get(e);if(!n||n.from>=i||n.to<=t){let n=new MO(t,e.sliceString(t,i));return ZO.set(e,n),n}if(n.from==t&&n.to==i)return n;let{text:r,from:s}=n;return s>t&&(r=e.sliceString(t,s)+r,s=t),n.to<i&&(r+=e.sliceString(n.to,i)),ZO.set(e,new MO(s,r)),new MO(t,r.slice(t-s,i-s))}}class RO{constructor(e,t,i,n,r){this.text=e,this.to=r,this.done=!1,this.value=CO,this.matchPos=XO(e,n),this.re=new RegExp(t,AO+((null==i?void 0:i.ignoreCase)?"i":"")),this.test=null==i?void 0:i.test,this.flat=MO.get(e,n,this.chunkEnd(n+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,i=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,i,t)))return this.value={from:e,to:i,precise:!0,match:t},this.matchPos=XO(this.text,i+(e==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=MO.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function XO(e,t){if(t>=e.length)return t;let i,n=e.lineAt(t);for(;t<n.to&&(i=n.text.charCodeAt(t-n.from))>=56320&&i<57344;)t++;return t}"undefined"!=typeof Symbol&&(TO.prototype[Symbol.iterator]=RO.prototype[Symbol.iterator]=function(){return this});class EO{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,AO),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new WO(this):new LO(this)}getCursor(e,t=0,i){let n=e.doc?e:ze.create({doc:e});return null==i&&(i=n.doc.length),this.regexp?YO(this,n,t,i):zO(this,n,t,i)}}class jO{constructor(e){this.spec=e}}function zO(e,t,i,n){let r;return e.wholeWord&&(r=function(e,t){return(i,n,r,s)=>((s>i||s+r.length<n)&&(s=Math.max(0,i-2),r=e.sliceString(s,Math.min(e.length,n+2))),!(t(VO(r,i-s))==Xe.Word&&t(BO(r,i-s))==Xe.Word||t(BO(r,n-s))==Xe.Word&&t(VO(r,n-s))==Xe.Word))}(t.doc,t.charCategorizer(t.selection.main.head))),e.test&&(r=function(e,t,i){return(n,r,s,o)=>{if(i&&!i(n,r,s,o))return!1;let a=n>=o&&r<=o+s.length?s.slice(n-o,r-o):t.doc.sliceString(n,r);return e(a,t,n,r)}}(e.test,t,r)),new _O(t.doc,e.unquoted,i,n,e.caseSensitive?void 0:e=>e.toLowerCase(),r)}class LO extends jO{constructor(e){super(e)}nextMatch(e,t,i){let n=zO(this.spec,e,i,e.doc.length).nextOverlapping();if(n.done){let i=Math.min(e.doc.length,t+this.spec.unquoted.length);n=zO(this.spec,e,0,i).nextOverlapping()}return n.done||n.value.from==t&&n.value.to==i?null:n.value}prevMatchInRange(e,t,i){for(let n=i;;){let i=Math.max(t,n-1e4-this.spec.unquoted.length),r=zO(this.spec,e,i,n),s=null;for(;!r.nextOverlapping().done;)s=r.value;if(s)return s;if(i==t)return null;n-=1e4}}prevMatch(e,t,i){let n=this.prevMatchInRange(e,0,t);return n||(n=this.prevMatchInRange(e,Math.max(0,i-this.spec.unquoted.length),e.doc.length)),!n||n.from==t&&n.to==i?null:n}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let i=zO(this.spec,e,0,e.doc.length),n=[];for(;!i.next().done;){if(n.length>=t)return null;n.push(i.value)}return n}highlight(e,t,i,n){let r=zO(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)n(r.value.from,r.value.to)}}function YO(e,t,i,n){let r;var s;return e.wholeWord&&(s=t.charCategorizer(t.selection.main.head),r=(e,t,i)=>!i[0].length||(s(VO(i.input,i.index))!=Xe.Word||s(BO(i.input,i.index))!=Xe.Word)&&(s(BO(i.input,i.index+i[0].length))!=Xe.Word||s(VO(i.input,i.index+i[0].length))!=Xe.Word)),e.test&&(r=function(e,t,i){return(n,r,s)=>(!i||i(n,r,s))&&e(s[0],t,n,r)}(e.test,t,r)),new TO(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:r},i,n)}function VO(e,t){return e.slice(j(e,t,!1),t)}function BO(e,t){return e.slice(t,j(e,t))}class WO extends jO{nextMatch(e,t,i){let n=YO(this.spec,e,i,e.doc.length).next();return n.done&&(n=YO(this.spec,e,0,t).next()),n.done?null:n.value}prevMatchInRange(e,t,i){for(let n=1;;n++){let r=Math.max(t,i-1e4*n),s=YO(this.spec,e,r,i),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==t||o.from>r+10))return o;if(r==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,i)=>{if("&"==i)return e.match[0];if("$"==i)return"$";for(let t=i.length;t>0;t--){let n=+i.slice(0,t);if(n>0&&n<e.match.length)return e.match[n]+i.slice(t)}return t})}matchAll(e,t){let i=YO(this.spec,e,0,e.doc.length),n=[];for(;!i.next().done;){if(n.length>=t)return null;n.push(i.value)}return n}highlight(e,t,i,n){let r=YO(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));for(;!r.next().done;)n(r.value.from,r.value.to)}}const IO=Pe.define();function DO(e){var t=e.Pos;function i(e,t,i){if(t.line===i.line&&t.ch>=i.ch-1){var n=e.getLine(t.line).charCodeAt(t.ch);55296<=n&&n<=55551&&(i.ch+=1)}return{start:t,end:i}}var n=[{keys:"<Left>",type:"keyToKey",toKeys:"h"},{keys:"<Right>",type:"keyToKey",toKeys:"l"},{keys:"<Up>",type:"keyToKey",toKeys:"k"},{keys:"<Down>",type:"keyToKey",toKeys:"j"},{keys:"g<Up>",type:"keyToKey",toKeys:"gk"},{keys:"g<Down>",type:"keyToKey",toKeys:"gj"},{keys:"<Space>",type:"keyToKey",toKeys:"l"},{keys:"<BS>",type:"keyToKey",toKeys:"h"},{keys:"<Del>",type:"keyToKey",toKeys:"x"},{keys:"<C-Space>",type:"keyToKey",toKeys:"W"},{keys:"<C-BS>",type:"keyToKey",toKeys:"B"},{keys:"<S-Space>",type:"keyToKey",toKeys:"w"},{keys:"<S-BS>",type:"keyToKey",toKeys:"b"},{keys:"<C-n>",type:"keyToKey",toKeys:"j"},{keys:"<C-p>",type:"keyToKey",toKeys:"k"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-[>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-c>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>"},{keys:"<C-Esc>",type:"keyToKey",toKeys:"<Esc>",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"<Home>",type:"keyToKey",toKeys:"0"},{keys:"<End>",type:"keyToKey",toKeys:"$"},{keys:"<PageUp>",type:"keyToKey",toKeys:"<C-b>"},{keys:"<PageDown>",type:"keyToKey",toKeys:"<C-f>"},{keys:"<CR>",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"<Ins>",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"<Ins>",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"<C-f>",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"<C-b>",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"<C-d>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"<C-u>",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F<character>",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T<character>",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`<register>",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[<character>",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"gq",type:"operator",operator:"hardWrap"},{keys:"gw",type:"operator",operator:"hardWrap",operatorArgs:{keepCursor:!0}},{keys:"g?",type:"operator",operator:"rot13"},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"<C-u>",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"<C-w>",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"<C-w>",type:"idle",context:"normal"},{keys:"<C-i>",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"<C-o>",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"<C-e>",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"<C-y>",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"<C-v>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"<C-q>",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r<character>",type:"action",action:"replace",isEdit:!0},{keys:"@<register>",type:"action",action:"replayMacro"},{keys:"q<register>",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"<C-r>",type:"action",action:"redo"},{keys:"m<register>",type:"action",action:"setMark"},{keys:'"<register>',type:"action",action:"setRegister"},{keys:"<C-r><register>",type:"action",action:"insertRegister",context:"insert",isEdit:!0},{keys:"<C-o>",type:"action",action:"oneNormalCommand",context:"insert"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z<CR>",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"<C-a>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"<C-x>",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"<C-t>",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"<C-d>",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a<register>",type:"motion",motion:"textObjectManipulation"},{keys:"i<register>",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],r=Object.create(null),s=n.length,o=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"omap",shortName:"om"},{name:"noremap",shortName:"no"},{name:"nnoremap",shortName:"nn"},{name:"vnoremap",shortName:"vn"},{name:"inoremap",shortName:"ino"},{name:"onoremap",shortName:"ono"},{name:"unmap"},{name:"mapclear",shortName:"mapc"},{name:"nmapclear",shortName:"nmapc"},{name:"vmapclear",shortName:"vmapc"},{name:"imapclear",shortName:"imapc"},{name:"omapclear",shortName:"omapc"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"startinsert",shortName:"start"},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"marks",excludeFromCommandHistory:!0},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"delete",shortName:"d"},{name:"join",shortName:"j"},{name:"normal",shortName:"norm"},{name:"global",shortName:"g"}],a=q("");function l(e){var t=e.state.vim;return t.onPasteFn||(t.onPasteFn=function(){t.insertMode||(e.setCursor(ae(e.getCursor(),0,1)),re.enterInsertMode(e,{},t))}),t.onPasteFn}var h=/[\d]/,c=[e.isWordChar,function(t){return t&&!e.isWordChar(t)&&!/\s/.test(t)}],u=[function(e){return/\S/.test(e)}],f=["<",">"],d=["-",'"',".",":","_","/","+"],p=/^\w$/,O=/^[A-Z]$/;try{O=new RegExp("^[\\p{Lu}]$","u")}catch(e){}function g(e,t){return t>=e.firstLine()&&t<=e.lastLine()}function m(e){return/^[a-z]$/.test(e)}function v(e){return-1!="()[]{}".indexOf(e)}function y(e){return h.test(e)}function w(e){return O.test(e)}function b(e){return/^\s*$/.test(e)}function S(e){return-1!=".?!".indexOf(e)}function x(e,t){for(var i=0;i<t.length;i++)if(t[i]==e)return!0;return!1}var k={};function Q(e,t,i,n,r){if(void 0===t&&!r)throw Error("defaultValue is required unless callback is provided");if(i||(i="string"),k[e]={type:i,defaultValue:t,callback:r},n)for(var s=0;s<n.length;s++)k[n[s]]=k[e];t&&$(e,t)}function $(e,t,i,n){var r=k[e],s=(n=n||{}).scope;if(!r)return new Error("Unknown option: "+e);if("boolean"==r.type){if(t&&!0!==t)return new Error("Invalid argument: "+e+"="+t);!1!==t&&(t=!0)}r.callback?("local"!==s&&r.callback(t,void 0),"global"!==s&&i&&r.callback(t,i)):("local"!==s&&(r.value="boolean"==r.type?!!t:t),"global"!==s&&i&&(i.state.vim.options[e]={value:t}))}function P(e,t,i){var n=k[e],r=(i=i||{}).scope;if(!n)return new Error("Unknown option: "+e);if(n.callback){let e=t&&n.callback(void 0,t);return"global"!==r&&void 0!==e?e:"local"!==r?n.callback():void 0}return("global"!==r&&t&&t.state.vim.options[e]||"local"!==r&&n||{}).value}Q("filetype",void 0,"string",["ft"],function(e,t){if(void 0!==t){if(void 0===e){let e=t.getOption("mode");return"null"==e?"":e}{let i=""==e?"null":e;t.setOption("mode",i)}}}),Q("textwidth",80,"number",["tw"],function(e,t){if(void 0!==t){if(void 0===e)return t.getOption("textwidth");var i=Math.round(e);i>1&&t.setOption("textwidth",i)}});var _,C,A=function(){var e=100,t=-1,i=0,n=0,r=new Array(e);function s(s,o){(t+=o)>i?t=i:t<n&&(t=n);var a=r[(e+t)%e];if(a&&!a.find()){var l,h=o>0?1:-1,c=s.getCursor();do{if((a=r[(e+(t+=h))%e])&&(l=a.find())&&!ue(c,l))break}while(t<i&&t>n)}return a}return{cachedCursor:void 0,add:function(s,o,a){var l=r[t%e];function h(i){var n=++t%e,o=r[n];o&&o.clear(),r[n]=s.setBookmark(i)}if(l){var c=l.find();c&&!ue(c,o)&&h(o)}else h(o);h(a),i=t,(n=t-e+1)<0&&(n=0)},find:function(e,i){var n=t,r=s(e,i);return t=n,r&&r.find()},move:s}},T=function(e){return e?{changes:e.changes,expectCursorActivityForChange:e.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};class Z{constructor(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=T()}exitMacroRecordMode(){var e=_.macroModeState;e.onRecordingDone&&e.onRecordingDone(),e.onRecordingDone=void 0,e.isRecording=!1}enterMacroRecordMode(e,t){var i=_.registerController.getRegister(t);if(i){if(i.clear(),this.latestRegister=t,e.openDialog){var n=Ne("span",{class:"cm-vim-message"},"recording @"+t);this.onRecordingDone=e.openDialog(n,function(){},{bottom:!0})}this.isRecording=!0}}}function M(e){return e.state.vim||(e.state.vim={inputState:new U,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeReturn:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:void 0,sel:{anchor:new t(0,0),head:new t(0,0)},options:{},expectLiteralNext:!1,status:""}),e.state.vim}function R(){for(var e in _={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:A(),macroModeState:new Z,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new K({}),searchHistoryController:new J,exCommandHistoryController:new J},k){var t=k[e];t.value=t.defaultValue}}class X{constructor(e,t){this.keyName=e,this.key=t.key,this.ctrlKey=t.ctrlKey,this.altKey=t.altKey,this.metaKey=t.metaKey,this.shiftKey=t.shiftKey}}var E,j={enterVimMode:function(t){t.setOption("disableInput",!0),t.setOption("showCursorWhenSelecting",!1),e.signal(t,"vim-mode-change",{mode:"normal"}),t.on("cursorActivity",ut),M(t),e.on(t.getInputField(),"paste",l(t))},leaveVimMode:function(t){t.setOption("disableInput",!1),t.off("cursorActivity",ut),e.off(t.getInputField(),"paste",l(t)),t.state.vim=null,Fe&&clearTimeout(Fe)},buildKeyMap:function(){},getRegisterController:function(){return _.registerController},resetVimGlobalState_:R,getVimGlobalState_:function(){return _},maybeInitVimState_:M,suppressErrorLogging:!1,InsertModeKey:X,map:function(e,t,i){st.map(e,t,i)},unmap:function(e,t){return st.unmap(e,t)},noremap:function(e,t,i){st.map(e,t,i,!0)},mapclear:function(e){var t=n.length,i=s,r=n.slice(0,t-i);if(n=n.slice(t-i),e)for(var o=r.length-1;o>=0;o--){var a=r[o];if(e!==a.context)if(a.context)this._mapCommand(a);else{var l=["normal","insert","visual"];for(var h in l)if(l[h]!==e){var c=Object.assign({},a);c.context=l[h],this._mapCommand(c)}}}},langmap:N,vimKeyFromEvent:D,setOption:$,getOption:P,defineOption:Q,defineEx:function(e,t,i){if(t){if(0!==e.indexOf(t))throw new Error('(Vim.defineEx) "'+t+'" is not a prefix of "'+e+'", command not registered')}else t=e;rt[e]=i,st.commandMap_[t]={name:e,shortName:t,type:"api"}},handleKey:function(e,t,i){var n=this.findKey(e,t,i);if("function"==typeof n)return n()},multiSelectHandleKey:function(e,t,i){var n=M(e),r=e,s=!1,o=(n=j.maybeInitVimState_(r)).visualBlock||n.wasInVisualBlock;if(r.state.closeVimNotification){var a=r.state.closeVimNotification;if(r.state.closeVimNotification=null,a(),"<CR>"==t)return G(r),!0}var l=r.isInMultiSelectMode();if(n.wasInVisualBlock&&!l?n.wasInVisualBlock=!1:l&&n.visualBlock&&(n.wasInVisualBlock=!0),"<Esc>"!=t||n.insertMode||n.visualMode||!l||"<Esc>"!=n.status)if(o||!l||r.inVirtualSelectionMode)s=j.handleKey(r,t,i);else{var h=mt(n),c=n.inputState.changeQueueList||[];r.operation(function(){r.curOp&&(r.curOp.isVimOp=!0);var e=0;r.forEachSelection(function(){r.state.vim.inputState.changeQueue=c[e];var n=r.getCursor("head"),o=r.getCursor("anchor"),a=fe(n,o)?0:-1,l=fe(n,o)?-1:0;n=ae(n,0,a),o=ae(o,0,l),r.state.vim.sel.head=n,r.state.vim.sel.anchor=o,s=j.handleKey(r,t,i),r.virtualSelection&&(c[e]=r.state.vim.inputState.changeQueue,r.state.vim=mt(h)),e++}),r.curOp?.cursorActivity&&!s&&(r.curOp.cursorActivity=!1),r.state.vim=n,n.inputState.changeQueueList=c,n.inputState.changeQueue=null},!0)}else G(r);return!s||n.visualMode||n.insertMode||n.visualMode==r.somethingSelected()||ft(r,n),s},findKey:function(t,i,r){var s=M(t),o=t;function a(){if("<Esc>"==i){if(s.visualMode)ke(o);else{if(!s.insertMode)return;ot(o)}return G(o),!0}}var l=s.insertMode?function(){if(a())return!0;s.inputState.keyBuffer.push(i);var e=s.inputState.keyBuffer.join(""),t=1==i.length,r=ee.matchCommand(e,n,s.inputState,"insert"),l=s.inputState.changeQueue;if("none"==r.type)return G(o),!1;if("partial"==r.type){if(r.expectLiteralNext&&(s.expectLiteralNext=!0),C&&window.clearTimeout(C),C=t&&window.setTimeout(function(){s.insertMode&&s.inputState.keyBuffer.length&&G(o)},P("insertModeEscKeysTimeout")),t){var h=o.listSelections();l&&l.removed.length==h.length||(l=s.inputState.changeQueue=new F),l.inserted+=i;for(var c=0;c<h.length;c++){var u=de(h[c].anchor,h[c].head),f=pe(h[c].anchor,h[c].head),d=o.getRange(u,o.state.overwrite?ae(f,0,1):f);l.removed[c]=(l.removed[c]||"")+d}}return!t}if("full"==r.type&&(s.inputState.keyBuffer.length=0),s.expectLiteralNext=!1,C&&window.clearTimeout(C),r.command&&l){for(h=o.listSelections(),c=0;c<h.length;c++){var p=h[c].head;o.replaceRange(l.removed[c]||"",ae(p,0,-l.inserted.length),p,"+input")}_.macroModeState.lastInsertModeChanges.changes.pop()}return r.command||G(o),r.command}():function(){if(function(){var e=_.macroModeState;if(e.isRecording){if("q"==i)return e.exitMacroRecordMode(),G(o),!0;"mapping"!=r&&function(e,t){if(!e.isPlaying){var i=e.latestRegister,n=_.registerController.getRegister(i);n&&n.pushText(t)}}(e,i)}}()||a())return!0;s.inputState.keyBuffer.push(i);var e=s.inputState.keyBuffer.join("");if(/^[1-9]\d*$/.test(e))return!0;var t=/^(\d*)(.*)$/.exec(e);if(!t)return G(o),!1;var l=s.visualMode?"visual":"normal",h=t[2]||t[1];s.inputState.operatorShortcut&&s.inputState.operatorShortcut.slice(-1)==h&&(h=s.inputState.operatorShortcut);var c=ee.matchCommand(h,n,s.inputState,l);return"none"==c.type?(G(o),!1):"partial"==c.type?(c.expectLiteralNext&&(s.expectLiteralNext=!0),!0):"clear"==c.type?(G(o),!0):(s.expectLiteralNext=!1,s.inputState.keyBuffer.length=0,(t=/^(\d*)(.*)$/.exec(e))&&t[1]&&"0"!=t[1]&&s.inputState.pushRepeatDigit(t[1]),c.command)}();return!1===l?!s.insertMode&&(1===i.length||e.isMac&&/<A-.>/.test(i))?function(){return!0}:void 0:!0===l?function(){return!0}:l?function(){return o.operation(function(){o.curOp.isVimOp=!0;try{if("object"!=typeof l)return;"keyToKey"==l.type?V(o,l.toKeys,l):ee.processCommand(o,s,l)}catch(e){throw o.state.vim=void 0,M(o),j.suppressErrorLogging||console.log(e),e}return!0})}:void 0},handleEx:function(e,t){st.processCommand(e,t)},defineMotion:function(e,t){te[e]=t},defineAction:function(e,t){re[e]=t},defineOperator:function(e,t){ne[e]=t},mapCommand:function(e,t,i,n,r){var s={keys:e,type:t};for(var o in s[t]=i,s[t+"Args"]=n,r)s[o]=r[o];at(s)},_mapCommand:at,defineRegister:function(e,t){var i=_.registerController.registers;if(!e||1!=e.length)throw Error("Register name must be 1 character");if(i[e])throw Error("Register already defined "+e);i[e]=t,d.push(e)},exitVisualMode:ke,exitInsertMode:ot},z=[],L=!1;function Y(e){if(!E)throw new Error("No prompt to send key to");if("<"==e[0]){var t=e.toLowerCase().slice(1,-1),i=t.split("-");if("lt"==(t=i.pop()||""))e="<";else if("space"==t)e=" ";else if("cr"==t)e="\n";else if(I[t]){var n=E.value||"",r={key:I[t],target:{value:n,selectionEnd:n.length,selectionStart:n.length}};return E.onKeyDown&&E.onKeyDown(r,E.value,o),void(E&&E.onKeyUp&&E.onKeyUp(r,E.value,o))}}if("\n"==e){var s=E;E=null,s.onClose&&s.onClose(s.value)}else E.value=(E.value||"")+e;function o(e){E&&("string"==typeof e?E.value=e:E=null)}}function V(e,t,i){var n=L;if(i){if(-1!=z.indexOf(i))return;z.push(i),L=0!=i.noremap}try{for(var r,s=M(e),o=/<(?:[CSMA]-)*\w+>|./gi;r=o.exec(t);){var a=r[0],l=s.insertMode;if(E)Y(a);else if(!j.handleKey(e,a,"mapping")&&l&&s.insertMode){if("<"==a[0]){var h=a.toLowerCase().slice(1,-1),c=h.split("-");if("lt"==(h=c.pop()||""))a="<";else if("space"==h)a=" ";else if("cr"==h)a="\n";else{if(I.hasOwnProperty(h)){Ot(e,a=I[h]);continue}a=a[0],o.lastIndex=r.index+1}}e.replaceSelection(a)}}}finally{if(z.pop(),L=!!z.length&&n,!z.length&&E){var u=E;E=null,Ue(e,u)}}}var B={Return:"CR",Backspace:"BS",Delete:"Del",Escape:"Esc",Insert:"Ins",ArrowLeft:"Left",ArrowRight:"Right",ArrowUp:"Up",ArrowDown:"Down",Enter:"CR"," ":"Space"},W={Shift:1,Alt:1,Command:1,Control:1,CapsLock:1,AltGraph:1,Dead:1,Unidentified:1},I={};function D(t,i){var n=t.key;if(!W[n]){n.length>1&&"n"==n[0]&&(n=n.replace("Numpad","")),n=B[n]||n;var s="";if(t.ctrlKey&&(s+="C-"),t.altKey&&(s+="A-"),t.metaKey&&(s+="M-"),e.isMac&&"A-"==s&&1==n.length&&(s=s.slice(2)),(s||n.length>1)&&t.shiftKey&&(s+="S-"),i&&!i.expectLiteralNext&&1==n.length)if(a.keymap&&n in a.keymap)0==a.remapCtrl&&s||(n=a.keymap[n]);else if(n.charCodeAt(0)>128&&!r[n]){var o=t.code?.slice(-1)||"";t.shiftKey||(o=o.toLowerCase()),o&&(n=o,!s&&t.altKey&&(s="A-"))}return(s+=n).length>1&&(s="<"+s+">"),s}}function N(e,t){a.string!==e&&(a=q(e)),a.remapCtrl=t}function q(e){let t={};if(!e)return{keymap:t,string:""};function i(e){return e.split(/\\?(.)/).filter(Boolean)}return e.split(/((?:[^\\,]|\\.)+),/).map(e=>{if(!e)return;const n=e.split(/((?:[^\\;]|\\.)+);/);if(3==n.length){const e=i(n[1]),r=i(n[2]);if(e.length!==r.length)return;for(let i=0;i<e.length;++i)t[e[i]]=r[i]}else if(1==n.length){const n=i(e);if(n.length%2!=0)return;for(let e=0;e<n.length;e+=2)t[n[e]]=n[e+1]}}),{keymap:t,string:e}}"Left|Right|Up|Down|End|Home".split("|").concat(Object.keys(B)).forEach(function(e){I[(B[e]||"").toLowerCase()]=I[e.toLowerCase()]=e}),Q("langmap",void 0,"string",["lmap"],function(e,t){if(void 0===e)return a.string;N(e)});class U{constructor(){this.prefixRepeat=[],this.motionRepeat=[],this.operator=null,this.operatorArgs=null,this.motion=null,this.motionArgs=null,this.keyBuffer=[],this.registerName=void 0,this.changeQueue=null}pushRepeatDigit(e){this.operator?this.motionRepeat=this.motionRepeat.concat(e):this.prefixRepeat=this.prefixRepeat.concat(e)}getRepeat(){var e=0;return(this.prefixRepeat.length>0||this.motionRepeat.length>0)&&(e=1,this.prefixRepeat.length>0&&(e*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(e*=parseInt(this.motionRepeat.join(""),10))),e}}function G(t,i){t.state.vim.inputState=new U,t.state.vim.expectLiteralNext=!1,e.signal(t,"vim-command-done",i)}function F(){this.removed=[],this.inserted=""}class H{constructor(e,t,i){this.clear(),this.keyBuffer=[e||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!t,this.blockwise=!!i}setText(e,t,i){this.keyBuffer=[e||""],this.linewise=!!t,this.blockwise=!!i}pushText(e,t){t&&(this.linewise||this.keyBuffer.push("\n"),this.linewise=!0),this.keyBuffer.push(e)}pushInsertModeChanges(e){this.insertModeChanges.push(T(e))}pushSearchQuery(e){this.searchQueries.push(e)}clear(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1}toString(){return this.keyBuffer.join("")}}class K{constructor(e){this.registers=e,this.unnamedRegister=e['"']=new H,e["."]=new H,e[":"]=new H,e["/"]=new H,e["+"]=new H}pushText(e,t,i,n,r){if("_"!==e){n&&"\n"!==i.charAt(i.length-1)&&(i+="\n");var s=this.isValidRegister(e)?this.getRegister(e):null;if(s&&e)w(e)?s.pushText(i,n):s.setText(i,n,r),"+"===e&&navigator.clipboard.writeText(i),this.unnamedRegister.setText(s.toString(),n);else{switch(t){case"yank":this.registers[0]=new H(i,n,r);break;case"delete":case"change":-1==i.indexOf("\n")?this.registers["-"]=new H(i,n):(this.shiftNumericRegisters_(),this.registers[1]=new H(i,n))}this.unnamedRegister.setText(i,n,r)}}}getRegister(e){return this.isValidRegister(e)?(e=e.toLowerCase(),this.registers[e]||(this.registers[e]=new H),this.registers[e]):this.unnamedRegister}isValidRegister(e){return e&&(x(e,d)||p.test(e))}shiftNumericRegisters_(){for(var e=9;e>=2;e--)this.registers[e]=this.getRegister(""+(e-1))}}class J{constructor(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}nextMatch(e,t){var i=this.historyBuffer,n=t?-1:1;null===this.initialPrefix&&(this.initialPrefix=e);for(var r=this.iterator+n;t?r>=0:r<i.length;r+=n)for(var s=i[r],o=0;o<=s.length;o++)if(this.initialPrefix==s.substring(0,o))return this.iterator=r,s;return r>=i.length?(this.iterator=i.length,this.initialPrefix):r<0?e:void 0}pushInput(e){var t=this.historyBuffer.indexOf(e);t>-1&&this.historyBuffer.splice(t,1),e.length&&this.historyBuffer.push(e)}reset(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}}var ee={matchCommand:function(e,t,i,n){var r=function(e,t,i,n){n.operator&&(i="operatorPending");for(var r,o=[],a=[],l=L?t.length-s:0;l<t.length;l++){var h=t[l];"insert"==i&&"insert"!=h.context||h.context&&h.context!=i||n.operator&&"action"==h.type||!(r=le(e,h.keys))||("partial"==r&&o.push(h),"full"==r&&a.push(h))}return{partial:o,full:a}}(e,t,n,i),o=r.full[0];if(!o)return r.partial.length?{type:"partial",expectLiteralNext:1==r.partial.length&&"<character>"==r.partial[0].keys.slice(-11)}:{type:"none"};if("<character>"==o.keys.slice(-11)||"<register>"==o.keys.slice(-10)){var a=function(e){var t=/^.*(<[^>]+>)$/.exec(e),i=t?t[1]:e.slice(-1);if(i.length>1)switch(i){case"<CR>":case"<S-CR>":i="\n";break;case"<Space>":case"<S-Space>":i=" ";break;default:i=""}return i}(e);if(!a||a.length>1)return{type:"clear"};i.selectedCharacter=a}return{type:"full",command:o}},processCommand:function(e,t,i){switch(t.inputState.repeatOverride=i.repeatOverride,i.type){case"motion":this.processMotion(e,t,i);break;case"operator":this.processOperator(e,t,i);break;case"operatorMotion":this.processOperatorMotion(e,t,i);break;case"action":this.processAction(e,t,i);break;case"search":this.processSearch(e,t,i);break;case"ex":case"keyToEx":this.processEx(e,t,i)}},processMotion:function(e,t,i){t.inputState.motion=i.motion,t.inputState.motionArgs=oe(i.motionArgs),this.evalInput(e,t)},processOperator:function(e,t,i){var n=t.inputState;if(n.operator){if(n.operator==i.operator)return n.motion="expandToLine",n.motionArgs={linewise:!0,repeat:1},void this.evalInput(e,t);G(e)}n.operator=i.operator,n.operatorArgs=oe(i.operatorArgs),i.keys.length>1&&(n.operatorShortcut=i.keys),i.exitVisualBlock&&(t.visualBlock=!1,Se(e)),t.visualMode&&this.evalInput(e,t)},processOperatorMotion:function(e,t,i){var n=t.visualMode,r=oe(i.operatorMotionArgs);r&&n&&r.visualLine&&(t.visualLine=!0),this.processOperator(e,t,i),n||this.processMotion(e,t,i)},processAction:function(e,t,i){var n=t.inputState,r=n.getRepeat(),s=!!r,o=oe(i.actionArgs)||{repeat:1};n.selectedCharacter&&(o.selectedCharacter=n.selectedCharacter),i.operator&&this.processOperator(e,t,i),i.motion&&this.processMotion(e,t,i),(i.motion||i.operator)&&this.evalInput(e,t),o.repeat=r||1,o.repeatIsExplicit=s,o.registerName=n.registerName,G(e),t.lastMotion=null,i.isEdit&&this.recordLastEdit(t,n,i),re[i.action](e,o,t)},processSearch:function(t,i,n){if(t.getSearchCursor){var r=n.searchArgs.forward,s=n.searchArgs.wholeWordOnly;Ye(t).setReversed(!r);var o=r?"/":"?",a=Ye(t).getQuery(),l=t.getScrollInfo(),h="";switch(n.searchArgs.querySrc){case"prompt":var c=_.macroModeState;c.isPlaying?d(c.replaySearchQueries.shift()||"",!0,!1):Ue(t,{onClose:function(e){t.scrollTo(l.left,l.top),d(e,!0,!0);var i=_.macroModeState;i.isRecording&&function(e,t){if(!e.isPlaying){var i=e.latestRegister,n=_.registerController.getRegister(i);n&&n.pushSearchQuery&&n.pushSearchQuery(t)}}(i,e)},prefix:o,desc:Ne("span",{$cursor:"pointer",onmousedown:function(e){e.preventDefault(),$("pcre",!P("pcre")),this.textContent=p(),O()}},p()),onKeyUp:function(e,t,i){var n,r,s=D(e);"<Up>"==s||"<Down>"==s?(n="<Up>"==s,r=e.target?e.target.selectionEnd:0,i(t=_.searchHistoryController.nextMatch(t,n)||""),r&&e.target&&(e.target.selectionEnd=e.target.selectionStart=Math.min(r,e.target.value.length))):s&&"<Left>"!=s&&"<Right>"!=s&&_.searchHistoryController.reset(),h=t,O()},onKeyDown:function(i,n,r){var s=D(i);"<Esc>"==s||"<C-c>"==s||"<C-[>"==s||"<BS>"==s&&""==n?(_.searchHistoryController.pushInput(n),_.searchHistoryController.reset(),Ge(t,a?.source||""),Je(t),t.scrollTo(l.left,l.top),e.e_stop(i),G(t),r(),t.focus()):"<Up>"==s||"<Down>"==s?e.e_stop(i):"<C-u>"==s&&(e.e_stop(i),r(""))}});break;case"wordUnderCursor":var u=$e(t,{noSymbol:!0}),f=!0;if(u||(u=$e(t,{noSymbol:!1}),f=!1),!u)return qe(t,"No word under cursor"),void G(t);let i=t.getLine(u.start.line).substring(u.start.ch,u.end.ch);i=f&&s?"\\b"+i+"\\b":function(e){return e.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}(i),_.jumpList.cachedCursor=t.getCursor(),t.setCursor(u.start),d(i,!0,!1)}}function d(e,r,s){_.searchHistoryController.pushInput(e),_.searchHistoryController.reset();try{Ge(t,e,r,s)}catch(i){return qe(t,"Invalid regex: "+e),void G(t)}ee.processMotion(t,i,{keys:"",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:n.searchArgs.toJumplist}})}function p(){return P("pcre")?"(JavaScript regexp: set pcre)":"(Vim regexp: set nopcre)"}function O(){var e;try{e=Ge(t,h,!0,!0)}catch(e){}e?t.scrollIntoView(Ke(t,!r,e),30):(Je(t),t.scrollTo(l.left,l.top))}},processEx:function(t,i,n){if("keyToEx"==n.type)st.processCommand(t,n.exArgs.input);else{var r={onClose:function(e){_.exCommandHistoryController.pushInput(e),_.exCommandHistoryController.reset(),st.processCommand(t,e),t.state.vim&&G(t),Je(t)},onKeyDown:function(i,n,r){var s,o,a=D(i);("<Esc>"==a||"<C-c>"==a||"<C-[>"==a||"<BS>"==a&&""==n)&&(_.exCommandHistoryController.pushInput(n),_.exCommandHistoryController.reset(),e.e_stop(i),G(t),Je(t),r(),t.focus()),"<Up>"==a||"<Down>"==a?(e.e_stop(i),s="<Up>"==a,o=i.target?i.target.selectionEnd:0,r(n=_.exCommandHistoryController.nextMatch(n,s)||""),o&&i.target&&(i.target.selectionEnd=i.target.selectionStart=Math.min(o,i.target.value.length))):"<C-u>"==a?(e.e_stop(i),r("")):a&&"<Left>"!=a&&"<Right>"!=a&&_.exCommandHistoryController.reset()},onKeyUp:function(i,n){var r=new e.StringStream(n),s={};try{if(st.parseInput_(t,r,s),"s"!=s.commandName)return void Je(t);var o=st.matchCommand_(s.commandName);if(!o)return;if(st.parseCommandArgs_(r,s,o),!s.argString)return;var a=De(s.argString.slice(1),!0,!0);a&&He(t,a)}catch(i){}},prefix:":"};i.visualMode&&(r.value="'<,'>",r.selectValueOnOpen=!1),Ue(t,r)}},evalInput:function(e,n){var r,s,o,a=n.inputState,l=a.motion,h=a.motionArgs||{repeat:1},c=a.operator,u=a.operatorArgs||{},f=a.registerName,d=n.sel,p=ce(n.visualMode?se(e,d.head):e.getCursor("head")),O=ce(n.visualMode?se(e,d.anchor):e.getCursor("anchor")),g=ce(p),m=ce(O);if(c&&this.recordLastEdit(n,a),(o=void 0!==a.repeatOverride?a.repeatOverride:a.getRepeat())>0&&h.explicitRepeat?h.repeatIsExplicit=!0:(h.noRepeat||!h.explicitRepeat&&0===o)&&(o=1,h.repeatIsExplicit=!1),a.selectedCharacter&&(h.selectedCharacter=u.selectedCharacter=a.selectedCharacter),h.repeat=o,G(e),l){var v=te[l](e,p,h,n,a);if(n.lastMotion=te[l],!v)return;if(h.toJumplist){var y=_.jumpList,w=y.cachedCursor;w?(Pe(e,w,v),delete y.cachedCursor):Pe(e,p,v)}v instanceof Array?(s=v[0],r=v[1]):r=v,r||(r=ce(p)),n.visualMode?(n.visualBlock&&r.ch===1/0||(r=se(e,r,g)),s&&(s=se(e,s)),s=s||m,d.anchor=s,d.head=r,Se(e),Re(e,n,"<",fe(s,r)?s:r),Re(e,n,">",fe(s,r)?r:s)):c||(r=se(e,r,g),e.setCursor(r.line,r.ch))}if(c){if(u.lastSel){s=m;var S=u.lastSel,x=Math.abs(S.head.line-S.anchor.line),k=Math.abs(S.head.ch-S.anchor.ch);r=S.visualLine?new t(m.line+x,m.ch):S.visualBlock?new t(m.line+x,m.ch+k):S.head.line==S.anchor.line?new t(m.line,m.ch+k):new t(m.line+x,m.ch),n.visualMode=!0,n.visualLine=S.visualLine,n.visualBlock=S.visualBlock,d=n.sel={anchor:s,head:r},Se(e)}else n.visualMode&&(u.lastSel={anchor:ce(d.anchor),head:ce(d.head),visualBlock:n.visualBlock,visualLine:n.visualLine});var Q,$,P,C,A;if(n.visualMode){if(Q=de(d.head,d.anchor),$=pe(d.head,d.anchor),P=n.visualLine||u.linewise,C=n.visualBlock?"block":P?"line":"char",A=xe(e,{anchor:(R=i(e,Q,$)).start,head:R.end},C),P){var T=A.ranges;if("block"==C)for(var Z=0;Z<T.length;Z++)T[Z].head.ch=ge(e,T[Z].head.line);else"line"==C&&(T[0].head=new t(T[0].head.line+1,0))}}else{if(Q=ce(s||m),fe($=ce(r||g),Q)){var M=Q;Q=$,$=M}(P=h.linewise||u.linewise)?function(e,t,i){t.ch=0,i.ch=0,i.line++}(0,Q,$):h.forward&&function(e,t,i){var n=e.getRange(t,i);if(/\n\s*$/.test(n)){var r=n.split("\n");r.pop();for(var s=r.pop();r.length>0&&s&&b(s);s=r.pop())i.line--,i.ch=0;s?(i.line--,i.ch=ge(e,i.line)):i.ch=0}}(e,Q,$),C="char";var R,X=!h.inclusive||P;A=xe(e,{anchor:(R=i(e,Q,$)).start,head:R.end},C,X)}e.setSelections(A.ranges,A.primary),n.lastMotion=null,u.repeat=o,u.registerName=f,u.linewise=P;var E=ne[c](e,u,A.ranges,m,r);n.visualMode&&ke(e,null!=E),E&&e.setCursor(E)}},recordLastEdit:function(e,t,i){var n=_.macroModeState;n.isPlaying||(e.lastEditInputState=t,e.lastEditActionCommand=i,n.lastInsertModeChanges.changes=[],n.lastInsertModeChanges.expectCursorActivityForChange=!1,n.lastInsertModeChanges.visualBlock=e.visualBlock?e.sel.head.line-e.sel.anchor.line:0)}},te={moveToTopLine:function(e,i,n){var r=tt(e).top+n.repeat-1;return new t(r,Qe(e.getLine(r)))},moveToMiddleLine:function(e){var i=tt(e),n=Math.floor(.5*(i.top+i.bottom));return new t(n,Qe(e.getLine(n)))},moveToBottomLine:function(e,i,n){var r=tt(e).bottom-n.repeat+1;return new t(r,Qe(e.getLine(r)))},expandToLine:function(e,i,n){return new t(i.line+n.repeat-1,1/0)},findNext:function(e,t,i){var n=Ye(e),r=n.getQuery();if(r){var s=!i.forward;s=n.isReversed()?!s:s,He(e,r);var o=Ke(e,s,r,i.repeat);return o||qe(e,"No match found "+r+(P("pcre")?" (set nopcre to use Vim regexps)":"")),o}},findAndSelectNextInclusive:function(i,n,r,s,o){var a=Ye(i),l=a.getQuery();if(l){var h=!r.forward,c=function(e,i,n,r,s){return e.operation(function(){void 0===r&&(r=1);var o=e.getCursor(),a=e.getSearchCursor(n,o),l=a.find(!i);!s.visualMode&&l&&ue(a.from(),o)&&a.find(!i);for(var h=0;h<r;h++)if(!(l=a.find(i))&&!(a=e.getSearchCursor(n,i?new t(e.lastLine()):new t(e.firstLine(),0))).find(i))return;var c=a.from(),u=a.to();return c&&u&&[c,u]})}(i,h=a.isReversed()?!h:h,l,r.repeat,s);if(c){if(o.operator)return c;var u=c[0],f=new t(c[1].line,c[1].ch-1);if(s.visualMode){(s.visualLine||s.visualBlock)&&(s.visualLine=!1,s.visualBlock=!1,e.signal(i,"vim-mode-change",{mode:"visual",subMode:""}));var d=s.sel.anchor;if(d)return a.isReversed()?r.forward?[d,u]:[d,f]:r.forward?[d,f]:[d,u]}else s.visualMode=!0,s.visualLine=!1,s.visualBlock=!1,e.signal(i,"vim-mode-change",{mode:"visual",subMode:""});return h?[f,u]:[u,f]}}},goToMark:function(e,t,i,n){var r=it(e,n,i.selectedCharacter||"");return r?i.linewise?{line:r.line,ch:Qe(e.getLine(r.line))}:r:null},moveToOtherHighlightedEnd:function(e,i,n,r){var s=r.sel;return r.visualBlock&&n.sameLine?[se(e,new t(s.anchor.line,s.head.ch)),se(e,new t(s.head.line,s.anchor.ch))]:[s.head,s.anchor]},jumpToMark:function(e,i,n,r){for(var s=i,o=0;o<n.repeat;o++){var a=s;for(var l in r.marks)if(m(l)){var h=r.marks[l].find();if(!((n.forward?fe(h,a):fe(a,h))||n.linewise&&h.line==a.line)){var c=ue(a,s),u=n.forward?Oe(a,h,s):Oe(s,h,a);(c||u)&&(s=h)}}}return n.linewise&&(s=new t(s.line,Qe(e.getLine(s.line)))),s},moveByCharacters:function(e,i,n){var r=i,s=n.repeat,o=n.forward?r.ch+s:r.ch-s;return new t(r.line,o)},moveByLines:function(e,i,n,r){var s=i,o=s.ch;switch(r.lastMotion){case this.moveByLines:case this.moveByDisplayLines:case this.moveByScroll:case this.moveToColumn:case this.moveToEol:o=r.lastHPos;break;default:r.lastHPos=o}var a=n.repeat+(n.repeatOffset||0),l=n.forward?s.line+a:s.line-a,h=e.firstLine(),c=e.lastLine(),u=e.findPosV(s,n.forward?a:-a,"line",r.lastHSPos);return(n.forward?u.line>l:u.line<l)&&(l=u.line,o=u.ch),l<h&&s.line==h?this.moveToStartOfLine(e,i,n,r):l>c&&s.line==c?Ze(e,i,n,r,!0):(n.toFirstChar&&(o=Qe(e.getLine(l)),r.lastHPos=o),r.lastHSPos=e.charCoords(new t(l,o),"div").left,new t(l,o))},moveByDisplayLines:function(e,i,n,r){var s=i;switch(r.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:r.lastHSPos=e.charCoords(s,"div").left}var o=n.repeat,a=e.findPosV(s,n.forward?o:-o,"line",r.lastHSPos);if(a.hitSide)if(n.forward){var l={top:e.charCoords(a,"div").top+8,left:r.lastHSPos};a=e.coordsChar(l,"div")}else{var h=e.charCoords(new t(e.firstLine(),0),"div");h.left=r.lastHSPos,a=e.coordsChar(h,"div")}return r.lastHPos=a.ch,a},moveByPage:function(e,t,i){var n=t,r=i.repeat;return e.findPosV(n,i.forward?r:-r,"page")},moveByParagraph:function(e,t,i){var n=i.forward?1:-1;return Ee(e,t,i.repeat,n).start},moveBySentence:function(e,i,n){var r=n.forward?1:-1;return function(e,i,n,r){function s(e,t){if(null!==t.line)if(t.pos+t.dir<0||t.pos+t.dir>=t.line.length){if(t.ln+=t.dir,!g(e,t.ln))return void(t.line=null);t.line=e.getLine(t.ln),t.pos=t.dir>0?0:t.line.length-1}else t.pos+=t.dir}function o(e,t,i,n){var r=""===(h=e.getLine(t)),o={line:h,ln:t,pos:i,dir:n},a={ln:o.ln,pos:o.pos},l=""===o.line;for(s(e,o);null!==o.line;){if(a.ln=o.ln,a.pos=o.pos,""===o.line&&!l)return{ln:o.ln,pos:o.pos};if(r&&""!==o.line&&!b(o.line[o.pos]))return{ln:o.ln,pos:o.pos};!S(o.line[o.pos])||r||o.pos!==o.line.length-1&&!b(o.line[o.pos+1])||(r=!0),s(e,o)}var h=e.getLine(a.ln);a.pos=0;for(var c=h.length-1;c>=0;--c)if(!b(h[c])){a.pos=c;break}return a}function a(e,t,i,n){var r={line:e.getLine(t),ln:t,pos:i,dir:n},o=r.ln,a=null,l=""===r.line;for(s(e,r);null!==r.line;){if(""===r.line&&!l)return null!==a?{ln:o,pos:a}:{ln:r.ln,pos:r.pos};if(S(r.line[r.pos])&&null!==a&&(r.ln!==o||r.pos+1!==a))return{ln:o,pos:a};""===r.line||b(r.line[r.pos])||(l=!1,o=r.ln,a=r.pos),s(e,r)}var h=e.getLine(o);a=0;for(var c=0;c<h.length;++c)if(!b(h[c])){a=c;break}return{ln:o,pos:a}}for(var l={ln:i.line,pos:i.ch};n>0;)l=r<0?a(e,l.ln,l.pos,r):o(e,l.ln,l.pos,r),n--;return new t(l.ln,l.pos)}(e,i,n.repeat,r)},moveByScroll:function(e,t,i,n){var r,s=e.getScrollInfo(),o=i.repeat;o||(o=s.clientHeight/(2*e.defaultTextHeight()));var a=e.charCoords(t,"local");if(i.repeat=o,!(r=te.moveByDisplayLines(e,t,i,n)))return null;var l=e.charCoords(r,"local");return e.scrollTo(null,s.top+l.top-a.top),r},moveByWords:function(e,i,n){return function(e,i,n,r,s,o){var a=ce(i),l=[];(r&&!s||!r&&s)&&n++;for(var h=!(r&&s),c=0;c<n;c++){var u=Te(e,i,r,o,h);if(!u){var f=ge(e,e.lastLine());l.push(r?{line:e.lastLine(),from:f,to:f}:{line:0,from:0,to:0});break}l.push(u),i=new t(u.line,r?u.to-1:u.from)}var d=l.length!=n,p=l[0],O=l.pop();return r&&!s?(d||p.from==a.ch&&p.line==a.line||(O=l.pop()),O&&new t(O.line,O.from)):r&&s?O&&new t(O.line,O.to-1):!r&&s?(d||p.to==a.ch&&p.line==a.line||(O=l.pop()),O&&new t(O.line,O.to)):O&&new t(O.line,O.from)}(e,i,n.repeat,!!n.forward,!!n.wordEnd,!!n.bigWord)},moveTillCharacter:function(e,t,i){var n=Me(e,i.repeat,i.forward,i.selectedCharacter,t),r=i.forward?-1:1;return _e(r,i),n?(n.ch+=r,n):null},moveToCharacter:function(e,t,i){var n=i.repeat;return _e(0,i),Me(e,n,i.forward,i.selectedCharacter,t)||t},moveToSymbol:function(e,i,n){var r=n.repeat;return n.selectedCharacter&&function(e,i,n,r){var s=ce(e.getCursor()),o=n?1:-1,a=n?e.lineCount():-1,l=s.ch,h=s.line,c=e.getLine(h),u={lineText:c,nextCh:c.charAt(l),lastCh:null,index:l,symb:r,reverseSymb:(n?{")":"(","}":"{"}:{"(":")","{":"}"})[r],forward:n,depth:0,curMoveThrough:!1},f=Ce[r];if(!f)return s;var d=Ae[f].init,p=Ae[f].isComplete;for(d&&d(u);h!==a&&i;){if(u.index+=o,u.nextCh=u.lineText.charAt(u.index),!u.nextCh){if(h+=o,u.lineText=e.getLine(h)||"",o>0)u.index=0;else{var O=u.lineText.length;u.index=O>0?O-1:0}u.nextCh=u.lineText.charAt(u.index)}p(u)&&(s.line=h,s.ch=u.index,i--)}return u.nextCh||u.curMoveThrough?new t(h,u.index):s}(e,r,n.forward,n.selectedCharacter)||i},moveToColumn:function(e,i,n,r){var s=n.repeat;return r.lastHPos=s-1,r.lastHSPos=e.charCoords(i,"div").left,function(e,i){var n=e.getCursor().line;return se(e,new t(n,i-1))}(e,s)},moveToEol:function(e,t,i,n){return Ze(e,t,i,n,!1)},moveToFirstNonWhiteSpaceCharacter:function(e,i){var n=i;return new t(n.line,Qe(e.getLine(n.line)))},moveToMatchedSymbol:function(e,i){for(var n,r=i,s=r.line,o=r.ch,a=e.getLine(s);o<a.length;o++)if((n=a.charAt(o))&&v(n)){var l=e.getTokenTypeAt(new t(s,o+1));if("string"!==l&&"comment"!==l)break}if(o<a.length){var h="<"===n||">"===n?/[(){}[\]<>]/:/[(){}[\]]/;return e.findMatchingBracket(new t(s,o),{bracketRegex:h}).to}return r},moveToStartOfLine:function(e,i){return new t(i.line,0)},moveToLineOrEdgeOfDocument:function(e,i,n){var r=n.forward?e.lastLine():e.firstLine();return n.repeatIsExplicit&&(r=n.repeat-e.getOption("firstLineNumber")),new t(r,Qe(e.getLine(r)))},moveToStartOfDisplayLine:function(e){return e.execCommand("goLineLeft"),e.getCursor()},moveToEndOfDisplayLine:function(e){e.execCommand("goLineRight");var t=e.getCursor();return"before"==t.sticky&&t.ch--,t},textObjectManipulation:function(i,n,r,s){var o=r.selectedCharacter||"";"b"==o?o="(":"B"==o&&(o="{");var a,l,h=!r.textObjectInner;if({"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"}[o]){if(l=!0,!(a=ze(i,n,o,h))){var c=i.getSearchCursor(new RegExp("\\"+o,"g"),n);c.find()&&(a=ze(i,c.from(),o,h))}}else if({"'":!0,'"':!0,"`":!0}[o])l=!0,a=function(e,i,n,r){var s,o,a,l,h=ce(i),c=e.getLine(h.line).split(""),u=c.indexOf(n);if(h.ch<u)h.ch=u;else if(u<h.ch&&c[h.ch]==n){var f=/string/.test(e.getTokenTypeAt(ae(i,0,1))),d=/string/.test(e.getTokenTypeAt(i));f&&!d||(o=h.ch,--h.ch)}if(c[h.ch]!=n||o)for(a=h.ch;a>-1&&!s;a--)c[a]==n&&(s=a+1);else s=h.ch+1;if(s&&!o)for(a=s,l=c.length;a<l&&!o;a++)c[a]==n&&(o=a);return s&&o?(r&&(--s,++o),{start:new t(h.line,s),end:new t(h.line,o)}):{start:h,end:h}}(i,n,o,h);else if("W"===o||"w"===o)for(var u=r.repeat||1;u-- >0;){var f=$e(i,{inclusive:h,innerWord:!h,bigWord:"W"===o,noSymbol:"W"===o,multiline:!0},a&&a.end);f&&(a||(a=f),a.end=f.end)}else if("p"===o)if(a=Ee(i,n,r.repeat,0,h),r.linewise=!0,s.visualMode)s.visualLine||(s.visualLine=!0);else{var d=s.inputState.operatorArgs;d&&(d.linewise=!0),a.end.line--}else if("t"===o)a=function(t,i,n){var r=i;if(!e.findMatchingTag||!e.findEnclosingTag)return{start:r,end:r};var s=e.findMatchingTag(t,i)||e.findEnclosingTag(t,i);return s&&s.open&&s.close?n?{start:s.open.from,end:s.close.to}:{start:s.open.to,end:s.close.from}:{start:r,end:r}}(i,n,h);else if("s"===o){var p=i.getLine(n.line);n.ch>0&&S(p[n.ch])&&(n.ch-=1);var O=je(i,n,r.repeat,1,h),g=je(i,n,r.repeat,-1,h);b(i.getLine(g.line)[g.ch])&&b(i.getLine(O.line)[O.ch-1])&&(g={line:g.line,ch:g.ch+1}),a={start:g,end:O}}return a?i.state.vim.visualMode?function(e,i,n,r){var s,o=e.state.vim.sel,a=r?i:o.head,l=r?i:o.anchor;return fe(n,i)&&(s=n,n=i,i=s),fe(a,l)?(a=de(i,a),l=pe(l,n)):(l=de(i,l),-1==(a=ae(a=pe(a,n),0,-1)).ch&&a.line!=e.firstLine()&&(a=new t(a.line-1,ge(e,a.line-1)))),[l,a]}(i,a.start,a.end,l):[a.start,a.end]:null},repeatLastCharacterSearch:function(e,t,i){var n=_.lastCharacterSearch,r=i.repeat,s=i.forward===n.forward,o=(n.increment?1:0)*(s?-1:1);e.moveH(-o,"char"),i.inclusive=!!s;var a=Me(e,r,s,n.selectedCharacter);return a?(a.ch+=o,a):(e.moveH(o,"char"),t)}};function ie(e,t){for(var i=[],n=0;n<t;n++)i.push(e);return i}var ne={change:function(e,i,n){var r,s,o=e.state.vim,a=n[0].anchor,l=n[0].head;if(o.visualMode)if(i.fullLine)l.ch=Number.MAX_VALUE,l.line--,e.setSelection(a,l),s=e.getSelection(),e.replaceSelection(""),r=a;else{s=e.getSelection();var h=ie("",n.length);e.replaceSelections(h),r=de(n[0].head,n[0].anchor)}else{s=e.getRange(a,l);var c=o.lastEditInputState;if("moveByWords"==c?.motion&&!b(s)){var u=/\s+$/.exec(s);u&&c.motionArgs&&c.motionArgs.forward&&(l=ae(l,0,-u[0].length),s=s.slice(0,-u[0].length))}i.linewise&&(a=new t(a.line,Qe(e.getLine(a.line))),l.line>a.line&&(l=new t(l.line-1,Number.MAX_VALUE))),e.replaceRange("",a,l),r=a}_.registerController.pushText(i.registerName,"change",s,i.linewise,n.length>1),re.enterInsertMode(e,{head:r},e.state.vim)},delete:function(e,i,n){var r,s,o=e.state.vim;if(o.visualBlock){s=e.getSelection();var a=ie("",n.length);e.replaceSelections(a),r=de(n[0].head,n[0].anchor)}else{var l=n[0].anchor,h=n[0].head;i.linewise&&h.line!=e.firstLine()&&l.line==e.lastLine()&&l.line==h.line-1&&(l.line==e.firstLine()?l.ch=0:l=new t(l.line-1,ge(e,l.line-1))),s=e.getRange(l,h),e.replaceRange("",l,h),r=l,i.linewise&&(r=te.moveToFirstNonWhiteSpaceCharacter(e,l))}return _.registerController.pushText(i.registerName,"delete",s,i.linewise,o.visualBlock),se(e,r)},indent:function(e,t,i){var n=e.state.vim,r=n.visualMode&&t.repeat||1;if(n.visualBlock){for(var s,o=e.getOption("tabSize"),a=e.getOption("indentWithTabs")?"\t":" ".repeat(o),l=i.length-1;l>=0;l--)if(s=de(i[l].anchor,i[l].head),t.indentRight)e.replaceRange(a.repeat(r),s,s);else{for(var h=e.getLine(s.line),c=0,u=0;u<r;u++){var f=h[s.ch+c];if("\t"==f)c++;else{if(" "!=f)break;c++;for(var d=1;d<a.length&&" "===(f=h[s.ch+c]);d++)c++}}e.replaceRange("",s,ae(s,0,c))}return s}if(e.indentMore)for(u=0;u<r;u++)t.indentRight?e.indentMore():e.indentLess();else{var p=i[0].anchor.line,O=n.visualBlock?i[i.length-1].anchor.line:i[0].head.line;for(t.linewise&&O--,l=p;l<=O;l++)for(u=0;u<r;u++)e.indentLine(l,t.indentRight)}return te.moveToFirstNonWhiteSpaceCharacter(e,i[0].anchor)},indentAuto:function(e,t,i){return e.execCommand("indentAuto"),te.moveToFirstNonWhiteSpaceCharacter(e,i[0].anchor)},hardWrap:function(e,i,n,r){if(e.hardWrap){var s=n[0].anchor.line,o=n[0].head.line;i.linewise&&o--;var a=e.hardWrap({from:s,to:o});return a>s&&i.linewise&&a--,i.keepCursor?r:new t(a,0)}},changeCase:function(e,t,i,n,r){for(var s=e.getSelections(),o=[],a=t.toLower,l=0;l<s.length;l++){var h=s[l],c="";if(!0===a)c=h.toLowerCase();else if(!1===a)c=h.toUpperCase();else for(var u=0;u<h.length;u++){var f=h.charAt(u);c+=w(f)?f.toLowerCase():f.toUpperCase()}o.push(c)}return e.replaceSelections(o),t.shouldMoveCursor?r:!e.state.vim.visualMode&&t.linewise&&i[0].anchor.line+1==i[0].head.line?te.moveToFirstNonWhiteSpaceCharacter(e,n):t.linewise?n:de(i[0].anchor,i[0].head)},yank:function(e,t,i,n){var r=e.state.vim,s=e.getSelection(),o=r.visualMode?de(r.sel.anchor,r.sel.head,i[0].head,i[0].anchor):n;return _.registerController.pushText(t.registerName,"yank",s,t.linewise,r.visualBlock),o},rot13:function(e,t,i,n,r){for(var s=e.getSelections(),o=[],a=0;a<s.length;a++){const e=s[a].split("").map(e=>{const t=e.charCodeAt(0);return t>=65&&t<=90?String.fromCharCode(65+(t-65+13)%26):t>=97&&t<=122?String.fromCharCode(97+(t-97+13)%26):e}).join("");o.push(e)}return e.replaceSelections(o),t.shouldMoveCursor?r:!e.state.vim.visualMode&&t.linewise&&i[0].anchor.line+1==i[0].head.line?te.moveToFirstNonWhiteSpaceCharacter(e,n):t.linewise?n:de(i[0].anchor,i[0].head)}},re={jumpListWalk:function(e,t,i){if(!i.visualMode){var n=t.repeat||1,r=t.forward,s=_.jumpList.move(e,r?n:-n),o=s?s.find():void 0;o=o||e.getCursor(),e.setCursor(o)}},scroll:function(e,t,i){if(!i.visualMode){var n=t.repeat||1,r=e.defaultTextHeight(),s=e.getScrollInfo().top,o=r*n,a=t.forward?s+o:s-o,l=ce(e.getCursor()),h=e.charCoords(l,"local");if(t.forward)a>h.top?(l.line+=(a-h.top)/r,l.line=Math.ceil(l.line),e.setCursor(l),h=e.charCoords(l,"local"),e.scrollTo(null,h.top)):e.scrollTo(null,a);else{var c=a+e.getScrollInfo().clientHeight;c<h.bottom?(l.line-=(h.bottom-c)/r,l.line=Math.floor(l.line),e.setCursor(l),h=e.charCoords(l,"local"),e.scrollTo(null,h.bottom-e.getScrollInfo().clientHeight)):e.scrollTo(null,a)}}},scrollToCursor:function(e,i){var n=e.getCursor().line,r=e.charCoords(new t(n,0),"local"),s=e.getScrollInfo().clientHeight,o=r.top;switch(i.position){case"center":o=r.bottom-s/2;break;case"bottom":var a=new t(n,e.getLine(n).length-1);o=o-s+(e.charCoords(a,"local").bottom-o)}e.scrollTo(null,o)},replayMacro:function(e,t,i){var n=t.selectedCharacter||"",r=t.repeat||1,s=_.macroModeState;for("@"==n?n=s.latestRegister||"":s.latestRegister=n;r--;)ht(e,i,s,n)},enterMacroRecordMode:function(e,t){var i=_.macroModeState,n=t.selectedCharacter;_.registerController.isValidRegister(n)&&i.enterMacroRecordMode(e,n)},toggleOverwrite:function(t){t.state.overwrite?(t.toggleOverwrite(!1),t.setOption("keyMap","vim-insert"),e.signal(t,"vim-mode-change",{mode:"insert"})):(t.toggleOverwrite(!0),t.setOption("keyMap","vim-replace"),e.signal(t,"vim-mode-change",{mode:"replace"}))},enterInsertMode:function(n,r,s){if(!n.getOption("readOnly")){s.insertMode=!0,s.insertModeRepeat=r&&r.repeat||1;var o=r?r.insertAt:null,a=s.sel,l=r.head||n.getCursor("head"),h=n.listSelections().length;if("eol"==o)l=new t(l.line,ge(n,l.line));else if("bol"==o)l=new t(l.line,0);else if("charAfter"==o)l=i(n,l,ae(l,0,1)).end;else if("firstNonBlank"==o)l=i(n,l,te.moveToFirstNonWhiteSpaceCharacter(n,l)).end;else if("startOfSelectedArea"==o){if(!s.visualMode)return;s.visualBlock?(l=new t(Math.min(a.head.line,a.anchor.line),Math.min(a.head.ch,a.anchor.ch)),h=Math.abs(a.head.line-a.anchor.line)+1):l=a.head.line<a.anchor.line?a.head:new t(a.anchor.line,0)}else if("endOfSelectedArea"==o){if(!s.visualMode)return;s.visualBlock?(l=new t(Math.min(a.head.line,a.anchor.line),Math.max(a.head.ch,a.anchor.ch)+1),h=Math.abs(a.head.line-a.anchor.line)+1):l=a.head.line>=a.anchor.line?ae(a.head,0,1):new t(a.anchor.line,0)}else if("inplace"==o){if(s.visualMode)return}else"lastEdit"==o&&(l=nt(n)||l);n.setOption("disableInput",!1),r&&r.replace?(n.toggleOverwrite(!0),n.setOption("keyMap","vim-replace"),e.signal(n,"vim-mode-change",{mode:"replace"})):(n.toggleOverwrite(!1),n.setOption("keyMap","vim-insert"),e.signal(n,"vim-mode-change",{mode:"insert"})),_.macroModeState.isPlaying||(n.on("change",ct),s.insertEnd&&s.insertEnd.clear(),s.insertEnd=n.setBookmark(l,{insertLeft:!0}),e.on(n.getInputField(),"keydown",dt)),s.visualMode&&ke(n),we(n,l,h)}},toggleVisualMode:function(n,r,s){var o,a=r.repeat,l=n.getCursor();if(s.visualMode)s.visualLine!=!!r.linewise||s.visualBlock!=!!r.blockwise?(s.visualLine=!!r.linewise,s.visualBlock=!!r.blockwise,e.signal(n,"vim-mode-change",{mode:"visual",subMode:s.visualLine?"linewise":s.visualBlock?"blockwise":""}),Se(n)):ke(n);else{s.visualMode=!0,s.visualLine=!!r.linewise,s.visualBlock=!!r.blockwise;var h=i(n,l,o=se(n,new t(l.line,l.ch+a-1)));s.sel={anchor:h.start,head:h.end},e.signal(n,"vim-mode-change",{mode:"visual",subMode:s.visualLine?"linewise":s.visualBlock?"blockwise":""}),Se(n),Re(n,s,"<",de(l,o)),Re(n,s,">",pe(l,o))}},reselectLastSelection:function(t,i,n){var r=n.lastSelection;if(n.visualMode&&be(t,n),r){var s=r.anchorMark.find(),o=r.headMark.find();if(!s||!o)return;n.sel={anchor:s,head:o},n.visualMode=!0,n.visualLine=r.visualLine,n.visualBlock=r.visualBlock,Se(t),Re(t,n,"<",de(s,o)),Re(t,n,">",pe(s,o)),e.signal(t,"vim-mode-change",{mode:"visual",subMode:n.visualLine?"linewise":n.visualBlock?"blockwise":""})}},joinLines:function(e,i,n){var r,s;if(n.visualMode){if(r=e.getCursor("anchor"),fe(s=e.getCursor("head"),r)){var o=s;s=r,r=o}s.ch=ge(e,s.line)-1}else{var a=Math.max(i.repeat,2);r=e.getCursor(),s=se(e,new t(r.line+a-1,1/0))}for(var l=0,h=r.line;h<s.line;h++){l=ge(e,r.line);var c="",u=0;if(!i.keepSpaces){var f=e.getLine(r.line+1);-1==(u=f.search(/\S/))?u=f.length:c=" "}e.replaceRange(c,new t(r.line,l),new t(r.line+1,u))}var d=se(e,new t(r.line,l));n.visualMode&&ke(e,!1),e.setCursor(d)},newLineAndEnterInsertMode:function(i,n,r){r.insertMode=!0;var s=ce(i.getCursor());s.line!==i.firstLine()||n.after?(s.line=n.after?s.line:s.line-1,s.ch=ge(i,s.line),i.setCursor(s),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(i)):(i.replaceRange("\n",new t(i.firstLine(),0)),i.setCursor(i.firstLine(),0)),this.enterInsertMode(i,{repeat:n.repeat},r)},paste:function(e,t,i){var n=_.registerController.getRegister(t.registerName);if("+"===t.registerName)navigator.clipboard.readText().then(r=>{this.continuePaste(e,t,i,r,n)});else{var r=n.toString();this.continuePaste(e,t,i,r,n)}},continuePaste:function(e,i,n,r,s){var o=ce(e.getCursor());if(r){if(i.matchIndent){var a=e.getOption("tabSize"),l=function(e){var t=e.split("\t").length-1,i=e.split(" ").length-1;return t*a+1*i},h=e.getLine(e.getCursor().line),c=l(h.match(/^\s*/)[0]),u=r.replace(/\n$/,""),f=r!==u,d=l(r.match(/^\s*/)[0]);r=u.replace(/^\s*/gm,function(t){var i=c+(l(t)-d);if(i<0)return"";if(e.getOption("indentWithTabs")){var n=Math.floor(i/a);return Array(n+1).join("\t")}return Array(i+1).join(" ")}),r+=f?"\n":""}i.repeat>1&&(r=Array(i.repeat+1).join(r));var p,O=s.linewise,g=s.blockwise,m=g?r.split("\n"):void 0;if(m){O&&m.pop();for(var v=0;v<m.length;v++)m[v]=""==m[v]?" ":m[v];o.ch+=i.after?1:0,o.ch=Math.min(ge(e,o.line),o.ch)}else O?n.visualMode?r=n.visualLine?r.slice(0,-1):"\n"+r.slice(0,r.length-1)+"\n":i.after?(r="\n"+r.slice(0,r.length-1),o.ch=ge(e,o.line)):o.ch=0:o.ch+=i.after?1:0;if(n.visualMode){var y;n.lastPastedText=r;var w=function(e){var t=e.listSelections(),i=t[0],n=t[t.length-1];return[fe(i.anchor,i.head)?i.anchor:i.head,fe(n.anchor,n.head)?n.head:n.anchor]}(e),b=w[0],S=w[1],x=e.getSelection(),k=e.listSelections(),Q=new Array(k.length).join("1").split("1");n.lastSelection&&(y=n.lastSelection.headMark.find()),_.registerController.unnamedRegister.setText(x),g?(e.replaceSelections(Q),S=new t(b.line+r.length-1,b.ch),e.setCursor(b),ye(e,S),e.replaceSelections(r),p=b):n.visualBlock?(e.replaceSelections(Q),e.setCursor(b),e.replaceRange(r,b,b),p=b):(e.replaceRange(r,b,S),p=e.posFromIndex(e.indexFromPos(b)+r.length-1)),y&&(n.lastSelection.headMark=e.setBookmark(y)),O&&(p.ch=0)}else if(g&&m){for(e.setCursor(o),v=0;v<m.length;v++)($=o.line+v)>e.lastLine()&&e.replaceRange("\n",new t($,0)),ge(e,$)<o.ch&&ve(e,$,o.ch);e.setCursor(o),ye(e,new t(o.line+m.length-1,o.ch)),e.replaceSelections(m),p=o}else if(e.replaceRange(r,o),O){var $=i.after?o.line+1:o.line;p=new t($,Qe(e.getLine($)))}else p=ce(o),/\n/.test(r)||(p.ch+=r.length-(i.after?1:0));n.visualMode&&ke(e,!1),e.setCursor(p)}},undo:function(t,i){t.operation(function(){he(t,e.commands.undo,i.repeat)(),t.setCursor(se(t,t.getCursor("start")))})},redo:function(t,i){he(t,e.commands.redo,i.repeat)()},setRegister:function(e,t,i){i.inputState.registerName=t.selectedCharacter},insertRegister:function(e,t,i){var n=t.selectedCharacter,r=_.registerController.getRegister(n),s=r&&r.toString();s&&e.replaceSelection(s)},oneNormalCommand:function(t,i,n){ot(t,!0),n.insertModeReturn=!0,e.on(t,"vim-command-done",function i(){n.visualMode||(n.insertModeReturn&&(n.insertModeReturn=!1,n.insertMode||re.enterInsertMode(t,{},n)),e.off(t,"vim-command-done",i))})},setMark:function(e,t,i){var n=t.selectedCharacter;n&&Re(e,i,n,e.getCursor())},replace:function(n,r,s){var o,a,l=r.selectedCharacter||"",h=n.getCursor(),c=n.listSelections();if(s.visualMode)h=n.getCursor("start"),a=n.getCursor("end");else{var u=n.getLine(h.line);(o=h.ch+r.repeat)>u.length&&(o=u.length),a=new t(h.line,o)}var f=i(n,h,a);if(h=f.start,a=f.end,"\n"==l)s.visualMode||n.replaceRange("",h,a),(e.commands.newlineAndIndentContinueComment||e.commands.newlineAndIndent)(n);else{var d=n.getRange(h,a);if(d=(d=d.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l)).replace(/[^\n]/g,l),s.visualBlock){var p=new Array(n.getOption("tabSize")+1).join(" "),O=(d=(d=n.getSelection()).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l)).replace(/\t/g,p).replace(/[^\n]/g,l).split("\n");n.replaceSelections(O)}else n.replaceRange(d,h,a);s.visualMode?(h=fe(c[0].anchor,c[0].head)?c[0].anchor:c[0].head,n.setCursor(h),ke(n,!1)):n.setCursor(ae(a,0,-1))}},incrementNumberToken:function(e,i){for(var n,r,s,o,a=e.getCursor(),l=e.getLine(a.line),h=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi;null!==(n=h.exec(l))&&(s=(r=n.index)+n[0].length,!(a.ch<s)););if((i.backtrack||!(s<=a.ch))&&n){var c=n[2]||n[4],u=n[3]||n[5],f=i.increase?1:-1,d={"0b":2,0:8,"":10,"0x":16}[c.toLowerCase()];o=(parseInt(n[1]+u,d)+f*i.repeat).toString(d);var p=c?new Array(u.length-o.length+1+n[1].length).join("0"):"";o="-"===o.charAt(0)?"-"+c+p+o.substr(1):c+p+o;var O=new t(a.line,r),g=new t(a.line,s);e.replaceRange(o,O,g),e.setCursor(new t(a.line,r+o.length-1))}},repeatLastEdit:function(e,t,i){var n=i.lastEditInputState;if(n){var r=t.repeat;r&&t.repeatIsExplicit?n.repeatOverride=r:r=n.repeatOverride||r,pt(e,i,r,!1)}},indent:function(e,t){e.indentLine(e.getCursor().line,t.indentRight)},exitInsertMode:function(e,t){ot(e)}};function se(e,i,n){var r=e.state.vim,s=r.insertMode||r.visualMode,o=Math.min(Math.max(e.firstLine(),i.line),e.lastLine()),a=e.getLine(o),l=a.length-1+Number(!!s),h=Math.min(Math.max(0,i.ch),l),c=a.charCodeAt(h);if(56320<=c&&c<=57343){var u=1;n&&n.line==o&&n.ch>h&&(u=-1),(h+=u)>l&&(h-=2)}return new t(o,h)}function oe(e){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function ae(e,i,n){return"object"==typeof i&&(n=i.ch,i=i.line),new t(e.line+i,e.ch+n)}function le(e,t){const i="<character>"==t.slice(-11),n="<register>"==t.slice(-10);if(i||n){var r=t.length-(i?11:10),s=e.slice(0,r),o=t.slice(0,r);return s==o&&e.length>r?"full":0==o.indexOf(s)&&"partial"}return e==t?"full":0==t.indexOf(e)&&"partial"}function he(e,t,i){return function(){for(var n=0;n<i;n++)t(e)}}function ce(e){return new t(e.line,e.ch)}function ue(e,t){return e.ch==t.ch&&e.line==t.line}function fe(e,t){return e.line<t.line||e.line==t.line&&e.ch<t.ch}function de(e,t){return arguments.length>2&&(t=de.apply(void 0,Array.prototype.slice.call(arguments,1))),fe(e,t)?e:t}function pe(e,t){return arguments.length>2&&(t=pe.apply(void 0,Array.prototype.slice.call(arguments,1))),fe(e,t)?t:e}function Oe(e,t,i){var n=fe(e,t),r=fe(t,i);return n&&r}function ge(e,t){return e.getLine(t).length}function me(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function ve(e,i,n){var r=ge(e,i),s=new Array(n-r+1).join(" ");e.setCursor(new t(i,r)),e.replaceRange(s,e.getCursor())}function ye(e,i){var n=[],r=e.listSelections(),s=ce(e.clipPos(i)),o=!ue(i,s),a=function(e,t){for(var i=0;i<e.length;i++){var n=ue(e[i].anchor,t),r=ue(e[i].head,t);if(n||r)return i}return-1}(r,e.getCursor("head")),l=ue(r[a].head,r[a].anchor),h=r.length-1,c=h-a>a?h:0,u=r[c].anchor,f=Math.min(u.line,s.line),d=Math.max(u.line,s.line),p=u.ch,O=s.ch,g=r[c].head.ch-p,m=O-p;g>0&&m<=0?(p++,o||O--):g<0&&m>=0?(p--,l||O++):g<0&&-1==m&&(p--,O++);for(var v=f;v<=d;v++){var y={anchor:new t(v,p),head:new t(v,O)};n.push(y)}return e.setSelections(n),i.ch=O,u.ch=p,u}function we(e,t,i){for(var n=[],r=0;r<i;r++){var s=ae(t,r,0);n.push({anchor:s,head:s})}e.setSelections(n,0)}function be(e,t){var i=t.sel.anchor,n=t.sel.head;t.lastPastedText&&(n=e.posFromIndex(e.indexFromPos(i)+t.lastPastedText.length),t.lastPastedText=void 0),t.lastSelection={anchorMark:e.setBookmark(i),headMark:e.setBookmark(n),anchor:ce(i),head:ce(n),visualMode:t.visualMode,visualLine:t.visualLine,visualBlock:t.visualBlock}}function Se(e,t,i){var n=e.state.vim;t=t||n.sel,i||(i=n.visualLine?"line":n.visualBlock?"block":"char");var r=xe(e,t,i);e.setSelections(r.ranges,r.primary)}function xe(e,i,n,r){var s=ce(i.head),o=ce(i.anchor);if("char"==n){var a=r||fe(i.head,i.anchor)?0:1,l=fe(i.head,i.anchor)?1:0;return s=ae(i.head,0,a),{ranges:[{anchor:o=ae(i.anchor,0,l),head:s}],primary:0}}if("line"==n){if(fe(i.head,i.anchor))s.ch=0,o.ch=ge(e,o.line);else{o.ch=0;var h=e.lastLine();s.line>h&&(s.line=h),s.ch=ge(e,s.line)}return{ranges:[{anchor:o,head:s}],primary:0}}if("block"==n){var c=Math.min(o.line,s.line),u=o.ch,f=Math.max(o.line,s.line),d=s.ch;u<d?d+=1:u+=1;for(var p=f-c+1,O=s.line==c?0:p-1,g=[],m=0;m<p;m++)g.push({anchor:new t(c+m,u),head:new t(c+m,d)});return{ranges:g,primary:O}}throw"never happens"}function ke(t,i){var n=t.state.vim;!1!==i&&t.setCursor(se(t,n.sel.head)),be(t,n),n.visualMode=!1,n.visualLine=!1,n.visualBlock=!1,n.insertMode||e.signal(t,"vim-mode-change",{mode:"normal"})}function Qe(e){if(!e)return 0;var t=e.search(/\S/);return-1==t?e.length:t}function $e(e,{inclusive:i,innerWord:n,bigWord:r,noSymbol:s,multiline:o},a){var l,h=a||function(e){var t=e.getCursor("head");return 1==e.getSelection().length&&(t=de(t,e.getCursor("anchor"))),t}(e),f=e.getLine(h.line),d=f,p=h.line,O=p,g=h.ch,m=s?c[0]:u[0];if(n&&/\s/.test(f.charAt(g)))m=function(e){return/\s/.test(e)};else{for(;!m(f.charAt(g));)if(++g>=f.length){if(!o)return null;g--,l=Te(e,h,!0,r,!0);break}r?m=u[0]:(m=c[0])(f.charAt(g))||(m=c[1])}for(var v=g,y=g;m(f.charAt(y))&&y>=0;)y--;if(y++,l)v=l.to,O=l.line,(d=e.getLine(O))||0!=v||v++;else for(;m(f.charAt(v))&&v<f.length;)v++;if(i){var w=v,b=h.ch<=y&&/\s/.test(f.charAt(h.ch));if(!b)for(;/\s/.test(d.charAt(v))&&v<d.length;)v++;if(w==v||b){for(var S=y;/\s/.test(f.charAt(y-1))&&y>0;)y--;y||b||(y=S)}}return{start:new t(p,y),end:new t(O,v)}}function Pe(e,t,i){ue(t,i)||_.jumpList.add(e,t,i)}function _e(e,t){_.lastCharacterSearch.increment=e,_.lastCharacterSearch.forward=t.forward,_.lastCharacterSearch.selectedCharacter=t.selectedCharacter}var Ce={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},Ae={bracket:{isComplete:function(e){if(e.nextCh===e.symb){if(e.depth++,e.depth>=1)return!0}else e.nextCh===e.reverseSymb&&e.depth--;return!1}},section:{init:function(e){e.curMoveThrough=!0,e.symb=(e.forward?"]":"[")===e.symb?"{":"}"},isComplete:function(e){return 0===e.index&&e.nextCh===e.symb}},comment:{isComplete:function(e){var t="*"===e.lastCh&&"/"===e.nextCh;return e.lastCh=e.nextCh,t}},method:{init:function(e){e.symb="m"===e.symb?"{":"}",e.reverseSymb="{"===e.symb?"}":"{"},isComplete:function(e){return e.nextCh===e.symb}},preprocess:{init:function(e){e.index=0},isComplete:function(e){if("#"===e.nextCh){var t=e.lineText.match(/^#(\w+)/)?.[1];if("endif"===t){if(e.forward&&0===e.depth)return!0;e.depth++}else if("if"===t){if(!e.forward&&0===e.depth)return!0;e.depth--}if("else"===t&&0===e.depth)return!0}return!1}}};function Te(e,t,i,n,r){var s=t.line,o=t.ch,a=e.getLine(s),l=i?1:-1,h=n?u:c;if(r&&""==a){if(s+=l,a=e.getLine(s),!g(e,s))return null;o=i?0:a.length}for(;;){if(r&&""==a)return{from:0,to:0,line:s};for(var f=l>0?a.length:-1,d=f,p=f;o!=f;){for(var O=!1,m=0;m<h.length&&!O;++m)if(h[m](a.charAt(o))){for(d=o;o!=f&&h[m](a.charAt(o));)o+=l;if(O=d!=(p=o),d==t.ch&&s==t.line&&p==d+l)continue;return{from:Math.min(d,p+1),to:Math.max(d,p),line:s}}O||(o+=l)}if(!g(e,s+=l))return null;a=e.getLine(s),o=l>0?0:a.length}}function Ze(e,i,n,r,s){var o=new t(i.line+n.repeat-1,1/0),a=e.clipPos(o);return a.ch--,s||(r.lastHPos=1/0,r.lastHSPos=e.charCoords(a,"div").left),o}function Me(e,i,n,r,s){if(r){for(var o,a=s||e.getCursor(),l=a.ch,h=0;h<i;h++){if(-1==(o=Xe(l,e.getLine(a.line),r,n)))return;l=o}return null!=o?new t(e.getCursor().line,o):void 0}}function Re(e,t,i,n){(x(i,f)||p.test(i))&&(t.marks[i]&&t.marks[i].clear(),t.marks[i]=e.setBookmark(n))}function Xe(e,t,i,n,r){return n?t.indexOf(i,e+1):t.lastIndexOf(i,e-1)}function Ee(e,i,n,r,s){var o,a=i.line,l=e.firstLine(),h=e.lastLine(),c=a;function u(t){return!e.getLine(t)}function f(e,t,i){return i?u(e)!=u(e+t):!u(e)&&u(e+t)}if(r){for(;l<=c&&c<=h&&n>0;)f(c,r)&&n--,c+=r;return{start:new t(c,0),end:i}}var d=e.state.vim;if(d.visualLine&&f(a,1,!0)){var p=d.sel.anchor;f(p.line,-1,!0)&&(s&&p.line==a||(a+=1))}var O=u(a);for(c=a;c<=h&&n;c++)f(c,1,!0)&&(s&&u(c)==O||n--);for(o=new t(c,0),c>h&&!O?O=!0:s=!1,c=a;c>l&&(s&&u(c)!=O&&c!=a||!f(c,-1,!0));c--);return{start:new t(c,0),end:o}}function je(e,i,n,r,s){function o(e){null!==e.line&&(e.pos+e.dir<0||e.pos+e.dir>=e.line.length?e.line=null:e.pos+=e.dir)}function a(e,t,i,n){var r={line:e.getLine(t),ln:t,pos:i,dir:n};if(""===r.line)return{ln:r.ln,pos:r.pos};var a=r.pos;for(o(r);null!==r.line;){if(a=r.pos,S(r.line[r.pos])){if(s){for(o(r);null!==r.line&&b(r.line[r.pos]);)a=r.pos,o(r);return{ln:r.ln,pos:a+1}}return{ln:r.ln,pos:r.pos+1}}o(r)}return{ln:r.ln,pos:a+1}}function l(e,t,i,n){var r=e.getLine(t),a={line:r,ln:t,pos:i,dir:n};if(""===a.line)return{ln:a.ln,pos:a.pos};var l=a.pos;for(o(a);null!==a.line;){if(b(a.line[a.pos])||S(a.line[a.pos])){if(S(a.line[a.pos]))return s&&b(a.line[a.pos+1])?{ln:a.ln,pos:a.pos+1}:{ln:a.ln,pos:l}}else l=a.pos;o(a)}return a.line=r,s&&b(a.line[a.pos])?{ln:a.ln,pos:a.pos}:{ln:a.ln,pos:l}}for(var h={ln:i.line,pos:i.ch};n>0;)h=r<0?l(e,h.ln,h.pos,r):a(e,h.ln,h.pos,r),n--;return new t(h.ln,h.pos)}function ze(e,i,n,r){var s=i,o={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[n],a={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[n],l=e.getLine(s.line).charAt(s.ch)===a?1:0,h=e.scanForBracket(new t(s.line,s.ch+l),-1,void 0,{bracketRegex:o}),c=e.scanForBracket(new t(s.line,s.ch+l),1,void 0,{bracketRegex:o});if(!h||!c)return null;var u=h.pos,f=c.pos;if(u.line==f.line&&u.ch>f.ch||u.line>f.line){var d=u;u=f,f=d}return r?f.ch+=1:u.ch+=1,{start:u,end:f}}Q("pcre",!0,"boolean");class Le{constructor(){this.highlightTimeout}getQuery(){return _.query}setQuery(e){_.query=e}getOverlay(){return this.searchOverlay}setOverlay(e){this.searchOverlay=e}isReversed(){return _.isReversed}setReversed(e){_.isReversed=e}getScrollbarAnnotate(){return this.annotate}setScrollbarAnnotate(e){this.annotate=e}}function Ye(e){var t=e.state.vim;return t.searchState_||(t.searchState_=new Le)}function Ve(e,t){var i=Be(e,t)||[];if(!i.length)return[];var n=[];if(0===i[0]){for(var r=0;r<i.length;r++)"number"==typeof i[r]&&n.push(e.substring(i[r]+1,i[r+1]));return n}}function Be(e,t){t||(t="/");for(var i=!1,n=[],r=0;r<e.length;r++){var s=e.charAt(r);i||s!=t||n.push(r),i=!i&&"\\"==s}return n}var We={"\\n":"\n","\\r":"\r","\\t":"\t"},Ie={"\\/":"/","\\\\":"\\","\\n":"\n","\\r":"\r","\\t":"\t","\\&":"&"};function De(e,t,i){_.registerController.getRegister("/").setText(e);var n,r,s=Be(e,"/");return s.length?(n=e.substring(0,s[0]),r=-1!=e.substring(s[0]).indexOf("i")):n=e,n?(P("pcre")||(n=function(e){var t={V:"|(){+?*.[$^",M:"|(){+?*.[",m:"|(){+?",v:"<>"},i={">":"(?<=[\\w])(?=[^\\w]|$)","<":"(?<=[^\\w]|^)(?=[\\w])"},n=t.m,r=e.replace(/\\.|[\[|(){+*?.$^<>]/g,function(e){if("\\"===e[0]){var r=e[1];return"}"===r||-1!=n.indexOf(r)?r:r in t?(n=t[r],""):r in i?i[r]:e}return-1!=n.indexOf(e)?i[e]||"\\"+e:e}),s=r.indexOf("\\zs");return-1!=s&&(r="(?<="+r.slice(0,s)+")"+r.slice(s+3)),-1!=(s=r.indexOf("\\ze"))&&(r=r.slice(0,s)+"(?="+r.slice(s+3)+")"),r}(n)),i&&(t=/^[^A-Z]*$/.test(n)),new RegExp(n,t||r?"im":"m")):null}function Ne(e){"string"==typeof e&&(e=document.createElement(e));for(var t=1;t<arguments.length;t++){var i=arguments[t];if(i)if("object"!=typeof i&&(i=document.createTextNode(i)),i.nodeType)e.appendChild(i);else for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&("$"===n[0]?e.style[n.slice(1)]=i[n]:"function"==typeof i[n]?e[n]=i[n]:e.setAttribute(n,i[n]))}return e}function qe(e,t,i){var n=Ne("div",{$color:"red",$whiteSpace:"pre",class:"cm-vim-message"},t);e.openNotification?i?(n=Ne("div",{},n,Ne("div",{},"Press ENTER or type command to continue")),e.state.closeVimNotification&&e.state.closeVimNotification(),e.state.closeVimNotification=e.openNotification(n,{bottom:!0,duration:0})):e.openNotification(n,{bottom:!0,duration:15e3}):alert(n.innerText)}function Ue(e,t){if(z.length)return t.value||(t.value=""),void(E=t);var i,n,r=(i=t.prefix,n=t.desc,Ne("div",{$display:"flex",$flex:1},Ne("span",{$fontFamily:"monospace",$whiteSpace:"pre",$flex:1,$display:"flex"},i,Ne("input",{type:"text",autocorrect:"off",autocapitalize:"off",spellcheck:"false",$flex:1})),n&&Ne("span",{$color:"#888"},n)));if(e.openDialog)e.openDialog(r,t.onClose,{onKeyDown:t.onKeyDown,onKeyUp:t.onKeyUp,bottom:!0,selectValueOnOpen:!1,value:t.value});else{var s="";"string"!=typeof t.prefix&&t.prefix&&(s+=t.prefix.textContent),t.desc&&(s+=" "+t.desc),t.onClose?.(prompt(s,""))}}function Ge(e,t,i,n){if(t){var r,s,o=Ye(e),a=De(t,!!i,!!n);if(a)return He(e,a),r=a,s=o.getQuery(),r instanceof RegExp&&s instanceof RegExp&&r.flags==s.flags&&r.source==s.source||o.setQuery(a),a}}var Fe=0;function He(e,t){clearTimeout(Fe),Ye(e).highlightTimeout=Fe,Fe=setTimeout(function(){if(e.state.vim){var i=Ye(e);i.highlightTimeout=void 0;var n=i.getOverlay();n&&t==n.query||(n&&e.removeOverlay(n),n=function(e){if("^"==e.source.charAt(0))var t=!0;return{token:function(i){if(!t||i.sol()){var n=i.match(e,!1);if(n)return 0==n[0].length?(i.next(),"searching"):i.sol()||(i.backUp(1),e.exec(i.next()+n[0]))?(i.match(e),"searching"):(i.next(),null);for(;!i.eol()&&(i.next(),!i.match(e,!1)););}else i.skipToEnd()},query:e}}(t),e.addOverlay(n),e.showMatchesOnScrollbar&&(i.getScrollbarAnnotate()&&i.getScrollbarAnnotate().clear(),i.setScrollbarAnnotate(e.showMatchesOnScrollbar(t))),i.setOverlay(n))}},50)}function Ke(e,i,n,r){return e.operation(function(){void 0===r&&(r=1);for(var s=e.getCursor(),o=e.getSearchCursor(n,s),a=0;a<r;a++){var l=o.find(i);if(0==a&&l&&ue(o.from(),s)){var h=i?o.from():o.to();(l=o.find(i))&&!l[0]&&ue(o.from(),h)&&e.getLine(h.line).length==h.ch&&(l=o.find(i))}if(!l&&!(o=e.getSearchCursor(n,i?new t(e.lastLine()):new t(e.firstLine(),0))).find(i))return}return o.from()})}function Je(e){var t=Ye(e);t.highlightTimeout&&(clearTimeout(t.highlightTimeout),t.highlightTimeout=void 0),e.removeOverlay(Ye(e).getOverlay()),t.setOverlay(null),t.getScrollbarAnnotate()&&(t.getScrollbarAnnotate().clear(),t.setScrollbarAnnotate(null))}function et(e,t,i){return"number"!=typeof e&&(e=e.line),t instanceof Array?x(e,t):"number"==typeof i?e>=t&&e<=i:e==t}function tt(e){var t=e.getScrollInfo(),i=e.coordsChar({left:0,top:6+t.top},"local"),n=t.clientHeight-10+t.top,r=e.coordsChar({left:0,top:n},"local");return{top:i.line,bottom:r.line}}function it(e,i,n){if("'"==n||"`"==n)return _.jumpList.find(e,-1)||new t(0,0);if("."==n)return nt(e);var r=i.marks[n];return r&&r.find()}function nt(e){if(e.getLastEditEnd)return e.getLastEditEnd();for(var t=e.doc.history.done,i=t.length;i--;)if(t[i].changes)return ce(t[i].changes[0].to)}var rt={colorscheme:function(e,t){!t.args||t.args.length<1?qe(e,e.getOption("theme")):e.setOption("theme",t.args[0])},map:function(e,t,i,n){var r=t.args;!r||r.length<2?e&&qe(e,"Invalid mapping: "+t.input):st.map(r[0],r[1],i,n)},imap:function(e,t){this.map(e,t,"insert")},nmap:function(e,t){this.map(e,t,"normal")},vmap:function(e,t){this.map(e,t,"visual")},omap:function(e,t){this.map(e,t,"operatorPending")},noremap:function(e,t){this.map(e,t,void 0,!0)},inoremap:function(e,t){this.map(e,t,"insert",!0)},nnoremap:function(e,t){this.map(e,t,"normal",!0)},vnoremap:function(e,t){this.map(e,t,"visual",!0)},onoremap:function(e,t){this.map(e,t,"operatorPending",!0)},unmap:function(e,t,i){var n=t.args;(!n||n.length<1||!st.unmap(n[0],i))&&e&&qe(e,"No such mapping: "+t.input)},mapclear:function(e,t){j.mapclear()},imapclear:function(e,t){j.mapclear("insert")},nmapclear:function(e,t){j.mapclear("normal")},vmapclear:function(e,t){j.mapclear("visual")},omapclear:function(e,t){j.mapclear("operatorPending")},move:function(e,t){ee.processCommand(e,e.state.vim,{keys:"",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0},repeatOverride:t.line+1})},set:function(e,t){var i=t.args,n=t.setCfg||{};if(!i||i.length<1)e&&qe(e,"Invalid mapping: "+t.input);else{var r=i[0].split("="),s=r.shift()||"",o=r.length>0?r.join("="):void 0,a=!1,l=!1;if("?"==s.charAt(s.length-1)){if(o)throw Error("Trailing characters: "+t.argString);s=s.substring(0,s.length-1),a=!0}else"!"==s.charAt(s.length-1)&&(s=s.substring(0,s.length-1),l=!0);void 0===o&&"no"==s.substring(0,2)&&(s=s.substring(2),o=!1);var h=k[s]&&"boolean"==k[s].type;if(h&&(l?o=!P(s,e,n):null==o&&(o=!0)),!h&&void 0===o||a){var c=P(s,e,n);c instanceof Error?qe(e,c.message):qe(e,!0===c||!1===c?" "+(c?"":"no")+s:" "+s+"="+c)}else{var u=$(s,o,e,n);u instanceof Error&&qe(e,u.message)}}},setlocal:function(e,t){t.setCfg={scope:"local"},this.set(e,t)},setglobal:function(e,t){t.setCfg={scope:"global"},this.set(e,t)},registers:function(e,t){var i=t.args,n=_.registerController.registers,r="----------Registers----------\n\n";if(i)for(var s=i.join(""),o=0;o<s.length;o++)a=s.charAt(o),_.registerController.isValidRegister(a)&&(r+='"'+a+" "+(n[a]||new H).toString()+"\n");else for(var a in n){var l=n[a].toString();l.length&&(r+='"'+a+" "+l+"\n")}qe(e,r,!0)},marks:function(e,t){var i=t.args,n=e.state.vim.marks,r="-----------Marks-----------\nmark\tline\tcol\n\n";if(i)for(var s=i.join(""),o=0;o<s.length;o++)(l=n[a=s.charAt(o)]&&n[a].find())&&(r+=a+"\t"+l.line+"\t"+l.ch+"\n");else for(var a in n){var l;(l=n[a]&&n[a].find())&&(r+=a+"\t"+l.line+"\t"+l.ch+"\n")}qe(e,r,!0)},sort:function(i,n){var r,s,o,a,l,h=function(){if(n.argString){var t=new e.StringStream(n.argString);if(t.eat("!")&&(r=!0),t.eol())return;if(!t.eatSpace())return"Invalid arguments";var i=t.match(/([dinuox]+)?\s*(\/.+\/)?\s*/);if(!i||!t.eol())return"Invalid arguments";if(i[1]){s=-1!=i[1].indexOf("i"),o=-1!=i[1].indexOf("u");var h=-1!=i[1].indexOf("d")||-1!=i[1].indexOf("n"),c=-1!=i[1].indexOf("x"),u=-1!=i[1].indexOf("o");if(Number(h)+Number(c)+Number(u)>1)return"Invalid arguments";a=(h?"decimal":c&&"hex")||u&&"octal"}i[2]&&(l=new RegExp(i[2].substr(1,i[2].length-2),s?"i":""))}}();if(h)qe(i,h+": "+n.argString);else{var c=n.line||i.firstLine(),u=n.lineEnd||n.line||i.lastLine();if(c!=u){var f=new t(c,0),d=new t(u,ge(i,u)),p=i.getRange(f,d).split("\n"),O="decimal"==a?/(-?)([\d]+)/:"hex"==a?/(-?)(?:0x)?([0-9a-f]+)/i:"octal"==a?/([0-7]+)/:null,g="decimal"==a?10:"hex"==a?16:"octal"==a?8:void 0,m=[],v=[];if(a||l)for(var y=0;y<p.length;y++){var w=l?p[y].match(l):null;w&&""!=w[0]?m.push(w):O&&O.exec(p[y])?m.push(p[y]):v.push(p[y])}else v=p;if(m.sort(l?function(e,t){var i;return r&&(i=e,e=t,t=i),s&&(e[0]=e[0].toLowerCase(),t[0]=t[0].toLowerCase()),e[0]<t[0]?-1:1}:x),l)for(y=0;y<m.length;y++)m[y]=m[y].input;else a||v.sort(x);if(p=r?m.concat(v):v.concat(m),o){var b,S=p;for(p=[],y=0;y<S.length;y++)S[y]!=b&&p.push(S[y]),b=S[y]}i.replaceRange(p.join("\n"),f,d)}}function x(e,t){var i;r&&(i=e,e=t,t=i),s&&(e=e.toLowerCase(),t=t.toLowerCase());var n=O&&O.exec(e),o=O&&O.exec(t);return n&&o?parseInt((n[1]+n[2]).toLowerCase(),g)-parseInt((o[1]+o[2]).toLowerCase(),g):e<t?-1:1}},vglobal:function(e,t){this.global(e,t)},normal:function(e,t){var i=!1,n=t.argString;if(n&&"!"==n[0]&&(n=n.slice(1),i=!0),n=n.trimStart()){var r=t.line;if("number"==typeof r)for(var s=isNaN(t.lineEnd)?r:t.lineEnd,o=r;o<=s;o++)e.setCursor(o,0),V(e,t.argString.trimStart(),{noremap:i}),e.state.vim.insertMode&&ot(e,!0);else V(e,t.argString.trimStart(),{noremap:i}),e.state.vim.insertMode&&ot(e,!0)}else qe(e,"Argument is required.")},global:function(e,t){var i=t.argString;if(i){var n="v"===t.commandName[0];"!"===i[0]&&"g"===t.commandName[0]&&(n=!0,i=i.slice(1));var r=void 0!==t.line?t.line:e.firstLine(),s=t.lineEnd||t.line||e.lastLine(),o=function(e){return Ve(e,"/")}(i),a=i,l="";if(o&&o.length&&(a=o[0],l=o.slice(1,o.length).join("/")),a)try{Ge(e,a,!0,!0)}catch(t){return void qe(e,"Invalid regex: "+a)}for(var h=Ye(e).getQuery(),c=[],u=r;u<=s;u++){var f=e.getLine(u);h.test(f)!==n&&c.push(l?e.getLineHandle(u):f)}if(l){var d=0,p=function(){if(d<c.length){var t=c[d++],i=e.getLineNumber(t);if(null==i)return void p();var n=i+1+l;st.processCommand(e,n,{callback:p})}else e.releaseLineHandles&&e.releaseLineHandles()};p()}else qe(e,c.join("\n"))}else qe(e,"Regular Expression missing from global")},substitute:function(i,n){if(!i.getSearchCursor)throw new Error("Search feature not available. Requires searchcursor.js or any other getSearchCursor implementation.");var r,s,o,a=n.argString,l=a?Ve(a,a[0]):[],h="",c="",u=!1,f=!1;if(l&&l.length)h=l[0],P("pcre")&&""!==h&&(h=new RegExp(h).source),void 0!==(c=l[1])&&(c=P("pcre")?function(t){for(var i=new e.StringStream(t),n=[];!i.eol();){for(;i.peek()&&"\\"!=i.peek();)n.push(i.next());var r=!1;for(var s in Ie)if(i.match(s,!0)){r=!0,n.push(Ie[s]);break}r||n.push(i.next())}return n.join("")}(c.replace(/([^\\])&/g,"$1$$&")):function(e){for(var t=!1,i=[],n=-1;n<e.length;n++){var r=e.charAt(n)||"",s=e.charAt(n+1)||"";We[r+s]?(i.push(We[r+s]),n++):t?(i.push(r),t=!1):"\\"===r?(t=!0,y(s)||"$"===s?i.push("$"):"/"!==s&&"\\"!==s&&i.push("\\")):("$"===r&&i.push("$"),i.push(r),"/"===s&&i.push("\\"))}return i.join("")}(c),_.lastSubstituteReplacePart=c),r=l[2]?l[2].split(" "):[];else if(a&&a.length)return void qe(i,"Substitutions should be of the form :s/pattern/replace/");if(r&&(s=r[0],o=parseInt(r[1]),s&&(-1!=s.indexOf("c")&&(u=!0),-1!=s.indexOf("g")&&(f=!0),h=P("pcre")?h+"/"+s:h.replace(/\//g,"\\/")+"/"+s)),h)try{Ge(i,h,!0,!0)}catch(e){return void qe(i,"Invalid regex: "+h)}if(void 0!==(c=c||_.lastSubstituteReplacePart)){var d=Ye(i).getQuery(),p=void 0!==n.line?n.line:i.getCursor().line,O=n.lineEnd||p;p==i.firstLine()&&O==i.lastLine()&&(O=1/0),o&&(O=(p=O)+o-1);var g=se(i,new t(p,0)),m=i.getSearchCursor(d,g);!function(t,i,n,r,s,o,a,l,h){t.state.vim.exMode=!0;var c,u,f,d=!1,p=0;function O(){t.operation(function(){for(;!d;)g(),v();y()})}function g(){var e="",i=o.match||o.pos&&o.pos.match;e=i?l.replace(/\$(\d{1,3}|[$&])/g,function(e,t){if("$"==t)return"$";if("&"==t)return i[0];for(var n=t;parseInt(n)>=i.length&&n.length>0;)n=n.slice(0,n.length-1);return n?i[n]+t.slice(n.length,t.length):e}):t.getRange(o.from(),o.to()).replace(a,l);var n=o.to().line;o.replace(e),u=o.to().line,s+=u-n,f=u<n}function m(){var e=c&&ce(o.to()),t=o.findNext();return t&&!t[0]&&e&&ue(o.from(),e)&&(t=o.findNext()),t&&p++,t}function v(){for(;m()&&et(o.from(),r,s);)if(n||o.from().line!=u||f)return t.scrollIntoView(o.from(),30),t.setSelection(o.from(),o.to()),c=o.from(),void(d=!1);d=!0}function y(e){if(e&&e(),t.focus(),c){t.setCursor(c);var i=t.state.vim;i.exMode=!1,i.lastHPos=i.lastHSPos=c.ch}h?h():d&&qe(t,(p?"Found "+p+" matches":"No matches found")+" for pattern: "+a+(P("pcre")?" (set nopcre to use Vim regexps)":""))}if(v(),!d)return i?void Ue(t,{prefix:Ne("span","replace with ",Ne("strong",l)," (y/n/a/q/l)"),onKeyDown:function(i,n,r){switch(e.e_stop(i),D(i)){case"y":g(),v();break;case"n":v();break;case"a":var s=h;h=void 0,t.operation(O),h=s;break;case"l":g();case"q":case"<Esc>":case"<C-c>":case"<C-[>":y(r)}return d&&y(r),!0}}):(O(),void(h&&h()));qe(t,"No matches for "+a+(P("pcre")?" (set nopcre to use vim regexps)":""))}(i,u,f,p,O,m,d,c,n.callback)}else qe(i,"No previous substitute regular expression")},startinsert:function(e,t){V(e,"!"==t.argString?"A":"i",{})},redo:e.commands.redo,undo:e.commands.undo,write:function(t){e.commands.save?e.commands.save(t):t.save&&t.save()},nohlsearch:function(e){Je(e)},yank:function(e){var t=ce(e.getCursor()).line,i=e.getLine(t);_.registerController.pushText("0","yank",i,!0,!0)},delete:function(e,i){var n=i.selectionLine,r=isNaN(i.selectionLineEnd)?n:i.selectionLineEnd;ne.delete(e,{linewise:!0},[{anchor:new t(n,0),head:new t(r+1,0)}])},join:function(e,i){var n=i.selectionLine,r=isNaN(i.selectionLineEnd)?n:i.selectionLineEnd;e.setCursor(new t(n,0)),re.joinLines(e,{repeat:r-n},e.state.vim)},delmarks:function(t,i){if(i.argString&&me(i.argString))for(var n=t.state.vim,r=new e.StringStream(me(i.argString));!r.eol();){r.eatSpace();var s=r.pos;if(!r.match(/[a-zA-Z]/,!1))return void qe(t,"Invalid argument: "+i.argString.substring(s));var o=r.next();if(r.match("-",!0)){if(!r.match(/[a-zA-Z]/,!1))return void qe(t,"Invalid argument: "+i.argString.substring(s));var a=o,l=r.next();if(!a||!l||m(a)!=m(l))return void qe(t,"Invalid argument: "+a+"-");var h=a.charCodeAt(0),c=l.charCodeAt(0);if(h>=c)return void qe(t,"Invalid argument: "+i.argString.substring(s));for(var u=0;u<=c-h;u++){var f=String.fromCharCode(h+u);delete n.marks[f]}}else o&&delete n.marks[o]}else qe(t,"Argument required")}},st=new class{constructor(){this.commandMap_,this.buildCommandMap_()}processCommand(e,t,i){var n=this;e.operation(function(){e.curOp&&(e.curOp.isVimOp=!0),n._processCommand(e,t,i)})}_processCommand(t,i,n){var r=t.state.vim,s=_.registerController.getRegister(":"),o=s.toString(),a=new e.StringStream(i);s.setText(i);var l,h,c=n||{};c.input=i;try{this.parseInput_(t,a,c)}catch(e){throw qe(t,e+""),e}if(r.visualMode&&ke(t),c.commandName){if(l=this.matchCommand_(c.commandName)){if(h=l.name,l.excludeFromCommandHistory&&s.setText(o),this.parseCommandArgs_(a,c,l),"exToKey"==l.type)return void V(t,l.toKeys||"",l);if("exToEx"==l.type)return void this.processCommand(t,l.toInput||"")}}else void 0!==c.line&&(h="move");if(h)try{rt[h](t,c),l&&l.possiblyAsync||!c.callback||c.callback()}catch(e){throw qe(t,e+""),e}else qe(t,'Not an editor command ":'+i+'"')}parseInput_(e,t,i){t.eatWhile(":"),t.eat("%")?(i.line=e.firstLine(),i.lineEnd=e.lastLine()):(i.line=this.parseLineSpec_(e,t),void 0!==i.line&&t.eat(",")&&(i.lineEnd=this.parseLineSpec_(e,t))),null==i.line?e.state.vim.visualMode?(i.selectionLine=it(e,e.state.vim,"<")?.line,i.selectionLineEnd=it(e,e.state.vim,">")?.line):i.selectionLine=e.getCursor().line:(i.selectionLine=i.line,i.selectionLineEnd=i.lineEnd);var n=t.match(/^(\w+|!!|@@|[!#&*<=>@~])/);return i.commandName=n?n[1]:(t.match(/.*/)||[""])[0],i}parseLineSpec_(e,t){var i=t.match(/^(\d+)/);if(i)return parseInt(i[1],10)-1;switch(t.next()){case".":return this.parseLineSpecOffset_(t,e.getCursor().line);case"$":return this.parseLineSpecOffset_(t,e.lastLine());case"'":var n=t.next()||"",r=it(e,e.state.vim,n);if(!r)throw new Error("Mark not set");return this.parseLineSpecOffset_(t,r.line);case"-":case"+":return t.backUp(1),this.parseLineSpecOffset_(t,e.getCursor().line);default:return void t.backUp(1)}}parseLineSpecOffset_(e,t){var i=e.match(/^([+-])?(\d+)/);if(i){var n=parseInt(i[2],10);"-"==i[1]?t-=n:t+=n}return t}parseCommandArgs_(e,t,i){if(!e.eol()){t.argString=e.match(/.*/)?.[0];var n=i.argDelimiter||/\s+/,r=me(t.argString||"").split(n);r.length&&r[0]&&(t.args=r)}}matchCommand_(e){for(var t=e.length;t>0;t--){var i=e.substring(0,t);if(this.commandMap_[i]){var n=this.commandMap_[i];if(0===n.name.indexOf(e))return n}}}buildCommandMap_(){this.commandMap_={};for(var e=0;e<o.length;e++){var t=o[e],i=t.shortName||t.name;this.commandMap_[i]=t}}map(e,t,i,n){if(":"!=e&&":"==e.charAt(0)){if(i)throw Error("Mode not supported for ex mappings");var r=e.substring(1);":"!=t&&":"==t.charAt(0)?this.commandMap_[r]={name:r,type:"exToEx",toInput:t.substring(1),user:!0}:this.commandMap_[r]={name:r,type:"exToKey",toKeys:t,user:!0}}else{var s={keys:e,type:"keyToKey",toKeys:t,noremap:!!n};i&&(s.context=i),at(s)}}unmap(e,t){if(":"!=e&&":"==e.charAt(0)){if(t)throw Error("Mode not supported for ex mappings");var i=e.substring(1);if(this.commandMap_[i]&&this.commandMap_[i].user)return delete this.commandMap_[i],!0}else for(var r=e,s=0;s<n.length;s++)if(r==n[s].keys&&n[s].context===t)return n.splice(s,1),lt(r),!0}};function ot(t,i){var n=t.state.vim,r=_.macroModeState,s=_.registerController.getRegister("."),o=r.isPlaying,a=r.lastInsertModeChanges;o||(t.off("change",ct),n.insertEnd&&n.insertEnd.clear(),n.insertEnd=void 0,e.off(t.getInputField(),"keydown",dt)),!o&&n.insertModeRepeat&&n.insertModeRepeat>1&&(pt(t,n,n.insertModeRepeat-1,!0),n.lastEditInputState.repeatOverride=n.insertModeRepeat),delete n.insertModeRepeat,n.insertMode=!1,i||t.setCursor(t.getCursor().line,t.getCursor().ch-1),t.setOption("keyMap","vim"),t.setOption("disableInput",!0),t.toggleOverwrite(!1),s.setText(a.changes.join("")),e.signal(t,"vim-mode-change",{mode:"normal"}),r.isRecording&&function(e){if(!e.isPlaying){var t=e.latestRegister,i=_.registerController.getRegister(t);i&&i.pushInsertModeChanges&&i.pushInsertModeChanges(e.lastInsertModeChanges)}}(r)}function at(e){n.unshift(e),e.keys&&e.keys.split(/(<(?:[CSMA]-)*\w+>|.)/i).forEach(function(e){e&&(r[e]||(r[e]=0),r[e]++)})}function lt(e){e.split(/(<(?:[CSMA]-)*\w+>|.)/i).forEach(function(e){r[e]&&r[e]--})}function ht(e,t,i,n){var r=_.registerController.getRegister(n);if(":"==n)return r.keyBuffer[0]&&st.processCommand(e,r.keyBuffer[0]),void(i.isPlaying=!1);var s=r.keyBuffer,o=0;i.isPlaying=!0,i.replaySearchQueries=r.searchQueries.slice(0);for(var a=0;a<s.length;a++)for(var l,h,c=s[a],u=/<(?:[CSMA]-)*\w+>|./gi;l=u.exec(c);)if(h=l[0],j.handleKey(e,h,"macro"),t.insertMode){var f=r.insertModeChanges[o++].changes;_.macroModeState.lastInsertModeChanges.changes=f,gt(e,f,1),ot(e)}i.isPlaying=!1}function ct(e,t){var i=_.macroModeState,n=i.lastInsertModeChanges;if(!i.isPlaying)for(var r=e.state.vim;t;){if(n.expectCursorActivityForChange=!0,n.ignoreCount>1)n.ignoreCount--;else if("+input"==t.origin||"paste"==t.origin||void 0===t.origin){var s=e.listSelections().length;s>1&&(n.ignoreCount=s);var o=t.text.join("\n");if(n.maybeReset&&(n.changes=[],n.maybeReset=!1),o)if(e.state.overwrite&&!/\n/.test(o))n.changes.push([o]);else{if(o.length>1){var a=r&&r.insertEnd&&r.insertEnd.find(),l=e.getCursor();if(a&&a.line==l.line){var h=a.ch-l.ch;h>0&&h<o.length&&(n.changes.push([o,h]),o="")}}o&&n.changes.push(o)}}t=t.next}}function ut(e){var t=e.state.vim;if(t.insertMode){var i=_.macroModeState;if(i.isPlaying)return;var n=i.lastInsertModeChanges;n.expectCursorActivityForChange?n.expectCursorActivityForChange=!1:(n.maybeReset=!0,t.insertEnd&&t.insertEnd.clear(),t.insertEnd=e.setBookmark(e.getCursor(),{insertLeft:!0}))}else e.curOp?.isVimOp||ft(e,t)}function ft(t,i){var n=t.getCursor("anchor"),r=t.getCursor("head");if(i.visualMode&&!t.somethingSelected()?ke(t,!1):i.visualMode||i.insertMode||!t.somethingSelected()||(i.visualMode=!0,i.visualLine=!1,e.signal(t,"vim-mode-change",{mode:"visual"})),i.visualMode){var s=fe(r,n)?0:-1,o=fe(r,n)?-1:0;r=ae(r,0,s),n=ae(n,0,o),i.sel={anchor:n,head:r},Re(t,i,"<",de(r,n)),Re(t,i,">",pe(r,n))}else i.insertMode||(i.lastHPos=t.getCursor().ch)}function dt(t){var i=_.macroModeState.lastInsertModeChanges,n=e.keyName?e.keyName(t):t.key;n&&(-1==n.indexOf("Delete")&&-1==n.indexOf("Backspace")||(i.maybeReset&&(i.changes=[],i.maybeReset=!1),i.changes.push(new X(n,t))))}function pt(e,t,i,n){var r=_.macroModeState;r.isPlaying=!0;var s=t.lastEditActionCommand,o=t.inputState;function a(){s?ee.processAction(e,t,s):ee.evalInput(e,t)}function l(i){if(r.lastInsertModeChanges.changes.length>0){i=t.lastEditActionCommand?i:1;var n=r.lastInsertModeChanges;gt(e,n.changes,i)}}if(t.inputState=t.lastEditInputState,s&&s.interlaceInsertRepeat)for(var h=0;h<i;h++)a(),l(1);else n||a(),l(i);t.inputState=o,t.insertMode&&!n&&ot(e),r.isPlaying=!1}function Ot(t,i){e.lookupKey(i,"vim-insert",function(i){return"string"==typeof i?e.commands[i](t):i(t),!0})}function gt(e,t,i){var n=e.getCursor("head"),r=_.macroModeState.lastInsertModeChanges.visualBlock;r&&(we(e,n,r+1),i=e.listSelections().length,e.setCursor(n));for(var s=0;s<i;s++){r&&e.setCursor(ae(n,s,0));for(var o=0;o<t.length;o++){var a=t[o];if(a instanceof X)Ot(e,a.keyName);else if("string"==typeof a)e.replaceSelection(a);else{var l=e.getCursor(),h=ae(l,0,a[0].length-(a[1]||0));e.replaceRange(a[0],l,a[1]?l:h),e.setCursor(h)}}}r&&e.setCursor(ae(n,0,1))}function mt(e){var t=new e.constructor;return Object.keys(e).forEach(function(i){if("insertEnd"!=i){var n=e[i];Array.isArray(n)?n=n.slice():n&&"object"==typeof n&&n.constructor!=Object&&(n=mt(n)),t[i]=n}}),e.sel&&(t.sel={head:e.sel.head&&ce(e.sel.head),anchor:e.sel.anchor&&ce(e.sel.anchor)}),t}return j.defineEx("version","ve",e=>{qe(e,"Codemirror-vim version: 6.3.0")}),Q("insertModeEscKeysTimeout",200,"number"),R(),j}function NO(e,t){var i=t.ch,n=t.line+1;n<1&&(n=1,i=0),n>e.lines&&(n=e.lines,i=Number.MAX_VALUE);var r=e.line(n);return Math.min(r.from+Math.max(0,i),r.to)}function qO(e,t){let i=e.lineAt(t);return{line:i.number-1,ch:t-i.from}}class UO{constructor(e,t){this.line=e,this.ch=t}}function GO(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||[]).concat(i)}}function FO(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else{var n=e._handlers,r=n&&n[t];if(r){var s=r.indexOf(i);s>-1&&(n[t]=r.slice(0,s).concat(r.slice(s+1)))}}}function HO(e,t,...i){var n,r=null===(n=e._handlers)||void 0===n?void 0:n[t];if(r)for(var s=0;s<r.length;++s)r[s](...i)}function KO(e,...t){if(e)for(var i=0;i<e.length;++i)e[i](...t)}let JO;try{JO=new RegExp("[\\w\\p{Alphabetic}\\p{Number}_]","u")}catch(eO){JO=/[\w]/}function eg(e,t){var i=e.cm6;if(!i.state.readOnly){var n="input.type.compose";if(e.curOp&&(e.curOp.lastChange||(n="input.type.compose.start")),t.annotations)try{t.annotations.some(function(e){"input"==e.value&&(e.value=n)})}catch(e){console.error(e)}else t.userEvent=n;return i.dispatch(t)}}function tg(e,t){var i;e.curOp&&(e.curOp.$changeStart=void 0),(t?ch:uh)(e.cm6);let n=null===(i=e.curOp)||void 0===i?void 0:i.$changeStart;null!=n&&e.cm6.dispatch({selection:{anchor:n}})}var ig={Left:e=>Ts(e.cm6,{key:"Left"},"editor"),Right:e=>Ts(e.cm6,{key:"Right"},"editor"),Up:e=>Ts(e.cm6,{key:"Up"},"editor"),Down:e=>Ts(e.cm6,{key:"Down"},"editor"),Backspace:e=>Ts(e.cm6,{key:"Backspace"},"editor"),Delete:e=>Ts(e.cm6,{key:"Delete"},"editor")};class ng{openDialog(e,t,i){return function(e,t,i,n){n||(n={}),sg(e,void 0);var r=rg(0,t,n.bottom),s=!1;function o(t){if("string"==typeof t)a.value=t;else{if(s)return;s=!0,ag(e,r),e.state.dialog||e.focus(),n.onClose&&n.onClose(r)}}og(e,r);var a=r.getElementsByTagName("input")[0];return a&&(n.value&&(a.value=n.value,!1!==n.selectValueOnOpen&&a.select()),n.onInput&&ng.on(a,"input",function(e){n.onInput(e,a.value,o)}),n.onKeyUp&&ng.on(a,"keyup",function(e){n.onKeyUp(e,a.value,o)}),ng.on(a,"keydown",function(e){n&&n.onKeyDown&&n.onKeyDown(e,a.value,o)||(13==e.keyCode&&i&&i(a.value),(27==e.keyCode||!1!==n.closeOnEnter&&13==e.keyCode)&&(a.blur(),ng.e_stop(e),o()))}),!1!==n.closeOnBlur&&ng.on(a,"blur",function(){setTimeout(function(){document.activeElement!==a&&o()})}),a.focus()),o}(this,e,t,i)}openNotification(e,t){return function(e,t,i){sg(e,a);var n,r=rg(0,t,i&&i.bottom),s=!1,o=i&&void 0!==i.duration?i.duration:5e3;function a(){s||(s=!0,clearTimeout(n),r.remove(),ag(e,r))}return r.onclick=function(e){e.preventDefault(),a()},og(e,r),o&&(n=setTimeout(a,o)),a}(this,e,t)}constructor(e){this.state={},this.marks=Object.create(null),this.$mid=0,this.options={},this._handlers={},this.$lastChangeEndOffset=0,this.virtualSelection=null,this.cm6=e,this.onChange=this.onChange.bind(this),this.onSelectionChange=this.onSelectionChange.bind(this)}on(e,t){GO(this,e,t)}off(e,t){FO(this,e,t)}signal(e,t,i){HO(this,e,t,i)}indexFromPos(e){return NO(this.cm6.state.doc,e)}posFromIndex(e){return qO(this.cm6.state.doc,e)}foldCode(e){let t=this.cm6,i=t.state.selection.ranges,n=NO(this.cm6.state.doc,e),r=K.create([K.range(n,n)],0).ranges;t.state.selection.ranges=r,(e=>{for(let t of function(e){let t=[];for(let{head:i}of e.state.selection.ranges)t.some(e=>e.from<=i&&e.to>=i)||t.push(e.lineBlockAt(i));return t}(e)){let i=dl(e.state,t.from,t.to);if(i)return e.dispatch({effects:wl(e.state,[Ol.of(i),bl(e,i)])}),!0}})(t),t.state.selection.ranges=i}firstLine(){return 0}lastLine(){return this.cm6.state.doc.lines-1}lineCount(){return this.cm6.state.doc.lines}setCursor(e,t){"object"==typeof e&&(t=e.ch,e=e.line);var i=NO(this.cm6.state.doc,{line:e,ch:t||0});this.cm6.dispatch({selection:{anchor:i}},{scrollIntoView:!this.curOp}),this.curOp&&!this.curOp.isVimOp&&this.onBeforeEndOperation()}getCursor(e){var t=this.cm6.state.selection.main,i="head"!=e&&e?"anchor"==e?t.anchor:"start"==e?t.from:"end"==e?t.to:null:t.head;if(null==i)throw new Error("Invalid cursor type");return this.posFromIndex(i)}listSelections(){var e=this.cm6.state.doc;return this.cm6.state.selection.ranges.map(t=>({anchor:qO(e,t.anchor),head:qO(e,t.head)}))}setSelections(e,t){var i=this.cm6.state.doc,n=e.map(e=>{var t=NO(i,e.head),n=NO(i,e.anchor);return t==n?K.cursor(t,1):K.range(n,t)});this.cm6.dispatch({selection:K.create(n,t)})}setSelection(e,t,i){this.setSelections([{anchor:e,head:t}],0),i&&"*mouse"==i.origin&&this.onBeforeEndOperation()}getLine(e){var t=this.cm6.state.doc;return e<0||e>=t.lines?"":this.cm6.state.doc.line(e+1).text}getLineHandle(e){return this.$lineHandleChanges||(this.$lineHandleChanges=[]),{row:e,index:this.indexFromPos(new UO(e,0))}}getLineNumber(e){var t=this.$lineHandleChanges;if(!t)return null;for(var i=e.index,n=0;n<t.length;n++)if(null==(i=t[n].changes.mapPos(i,1,B.TrackAfter)))return null;var r=this.posFromIndex(i);return 0==r.ch?r.line:null}releaseLineHandles(){this.$lineHandleChanges=void 0}getRange(e,t){var i=this.cm6.state.doc;return this.cm6.state.sliceDoc(NO(i,e),NO(i,t))}replaceRange(e,t,i,n){i||(i=t);var r=this.cm6.state.doc;eg(this,{changes:{from:NO(r,t),to:NO(r,i),insert:e}})}replaceSelection(e){eg(this,this.cm6.state.replaceSelection(e))}replaceSelections(e){var t=this.cm6.state.selection.ranges.map((t,i)=>({from:t.from,to:t.to,insert:e[i]||""}));eg(this,{changes:t})}getSelection(){return this.getSelections().join("\n")}getSelections(){var e=this.cm6;return e.state.selection.ranges.map(t=>e.state.sliceDoc(t.from,t.to))}somethingSelected(){return this.cm6.state.selection.ranges.some(e=>!e.empty)}getInputField(){return this.cm6.contentDOM}clipPos(e){var t=this.cm6.state.doc,i=e.ch,n=e.line+1;n<1&&(n=1,i=0),n>t.lines&&(n=t.lines,i=Number.MAX_VALUE);var r=t.line(n);return i=Math.min(Math.max(0,i),r.to-r.from),new UO(n-1,i)}getValue(){return this.cm6.state.doc.toString()}setValue(e){var t=this.cm6;return t.dispatch({changes:{from:0,to:t.state.doc.length,insert:e},selection:K.range(0,0)})}focus(){return this.cm6.focus()}blur(){return this.cm6.contentDOM.blur()}defaultTextHeight(){return this.cm6.defaultLineHeight}findMatchingBracket(e,t){var i=this.cm6.state,n=NO(i.doc,e),r=Ll(i,n+1,-1);return r&&r.end||(r=Ll(i,n,1))&&r.end?{to:qO(i.doc,r.end.from)}:{to:void 0}}scanForBracket(e,t,i,n){return function(e,t,i,n,r){for(var s=r&&r.maxScanLineLength||1e4,o=r&&r.maxScanLines||1e3,a=[],l=function(e){return e&&e.bracketRegex||/[(){}[\]]/}(r),h=i>0?Math.min(t.line+o,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-o),c=t.line;c!=h;c+=i){var u=e.getLine(c);if(u){var f=i>0?0:u.length-1,d=i>0?u.length:-1;if(!(u.length>s))for(c==t.line&&(f=t.ch-(i<0?1:0));f!=d;f+=i){var p=u.charAt(f);if(l.test(p)){var O=lg[p];if(O&&">"==O.charAt(1)==i>0)a.push(p);else{if(!a.length)return{pos:new UO(c,f),ch:p};a.pop()}}}}}return c-i!=(i>0?e.lastLine():e.firstLine())&&null}(this,e,t,0,n)}indentLine(e,t){t?this.indentMore():this.indentLess()}indentMore(){kc(this.cm6)}indentLess(){Qc(this.cm6)}execCommand(e){if("indentAuto"==e)ng.commands.indentAuto(this);else if("goLineLeft"==e)Nh(this.cm6);else if("goLineRight"==e){Dh(this.cm6);let e=this.cm6.state,t=e.selection.main.head;t<e.doc.length&&"\n"!==e.sliceDoc(t,t+1)&&Ah(this.cm6,!1)}else console.log(e+" is not implemented")}setBookmark(e,t){var i=(null==t?void 0:t.insertLeft)?1:-1,n=this.indexFromPos(e);return new cg(this,n,i)}addOverlay({query:e}){let t=new EO({regexp:!0,search:e.source,caseSensitive:!/i/.test(e.flags)});if(t.valid){t.forVim=!0,this.cm6Query=t;let e=IO.of(t);return this.cm6.dispatch({effects:e}),t}}removeOverlay(e){if(!this.cm6Query)return;this.cm6Query.forVim=!1;let t=IO.of(this.cm6Query);this.cm6.dispatch({effects:t})}getSearchCursor(e,t){var i=this,n=null,r=null,s=!1;null==t.ch&&(t.ch=Number.MAX_VALUE);var o=NO(i.cm6.state.doc,t),a=e.source.replace(/(\\.|{(?:\d+(?:,\d*)?|,\d+)})|[{}]/g,function(e,t){return t||"\\"+e});function l(t,i=0,n=t.length){return new TO(t,a,{ignoreCase:e.ignoreCase},i,n)}return{findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(e){var t=i.cm6.state.doc;if(e){let e=n?s?n.to-1:n.from:o;n=function(e,t){var n=i.cm6.state.doc;for(let e=1;;e++){let i=Math.max(0,t-1e4*e),r=l(n,i,t),s=null;for(;!r.next().done;)s=r.value;if(s&&(0==i||s.from>i+10))return s;if(0==i)return null}}(0,e)}else{let e=n?s?n.to+1:n.to:o;n=function(e){var t=i.cm6.state.doc;if(e>t.length)return null;let n=l(t,e).next();return n.done?null:n.value}(e)}return r=n&&{from:qO(t,n.from),to:qO(t,n.to),match:n.match},s=!!n&&n.from==n.to,n&&n.match},from:function(){return null==r?void 0:r.from},to:function(){return null==r?void 0:r.to},replace:function(e){n&&(eg(i,{changes:{from:n.from,to:n.to,insert:e}}),n.to=n.from+e.length,r&&(r.to=qO(i.cm6.state.doc,n.to)))},get match(){return r&&r.match}}}findPosV(e,t,i,n){let{cm6:r}=this;const s=r.state.doc;let o="page"==i?r.dom.clientHeight:0;const a=NO(s,e);let l=K.cursor(a,1,void 0,n),h=Math.round(Math.abs(t));for(let e=0;e<h;e++)"page"==i?l=r.moveVertically(l,t>0,o):"line"==i&&(l=r.moveVertically(l,t>0));let c=qO(s,l.head);return(t<0&&0==l.head&&0!=n&&0==e.line&&0!=e.ch||t>0&&l.head==s.length&&c.ch!=n&&e.line==c.line)&&(c.hitSide=!0),c}charCoords(e,t){var i=this.cm6.contentDOM.getBoundingClientRect(),n=NO(this.cm6.state.doc,e),r=this.cm6.coordsAtPos(n),s=-i.top;return{left:((null==r?void 0:r.left)||0)-i.left,top:((null==r?void 0:r.top)||0)+s,bottom:((null==r?void 0:r.bottom)||0)+s}}coordsChar(e,t){var i=this.cm6.contentDOM.getBoundingClientRect(),n=this.cm6.posAtCoords({x:e.left+i.left,y:e.top+i.top})||0;return qO(this.cm6.state.doc,n)}getScrollInfo(){var e=this.cm6.scrollDOM;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight,width:e.scrollWidth,clientHeight:e.clientHeight,clientWidth:e.clientWidth}}scrollTo(e,t){null!=e&&(this.cm6.scrollDOM.scrollLeft=e),null!=t&&(this.cm6.scrollDOM.scrollTop=t)}scrollIntoView(e,t){if(e){var i=this.indexFromPos(e);this.cm6.dispatch({effects:ws.scrollIntoView(i)})}else this.cm6.dispatch({scrollIntoView:!0,userEvent:"scroll"})}getWrapperElement(){return this.cm6.dom}getMode(){return{name:this.getOption("mode")}}setSize(e,t){this.cm6.dom.style.width=e+4+"px",this.cm6.dom.style.height=t+"px",this.refresh()}refresh(){this.cm6.measure()}destroy(){this.removeOverlay()}getLastEditEnd(){return this.posFromIndex(this.$lastChangeEndOffset)}onChange(e){this.$lineHandleChanges&&this.$lineHandleChanges.push(e);for(let t in this.marks)this.marks[t].update(e.changes);this.virtualSelection&&(this.virtualSelection.ranges=this.virtualSelection.ranges.map(t=>t.map(e.changes)));var t=this.curOp=this.curOp||{};e.changes.iterChanges((e,i,n,r,s)=>{(null==t.$changeStart||t.$changeStart>n)&&(t.$changeStart=n),this.$lastChangeEndOffset=r;var o={text:s.toJSON()};t.lastChange?t.lastChange.next=t.lastChange=o:t.lastChange=t.change=o},!0),t.changeHandlers||(t.changeHandlers=this._handlers.change&&this._handlers.change.slice())}onSelectionChange(){var e=this.curOp=this.curOp||{};e.cursorActivityHandlers||(e.cursorActivityHandlers=this._handlers.cursorActivity&&this._handlers.cursorActivity.slice()),this.curOp.cursorActivity=!0}operation(e,t){this.curOp||(this.curOp={$d:0}),this.curOp.$d++;try{var i=e()}finally{this.curOp&&(this.curOp.$d--,this.curOp.$d||this.onBeforeEndOperation())}return i}onBeforeEndOperation(){var e=this.curOp,t=!1;e&&(e.change&&KO(e.changeHandlers,this,e.change),e&&e.cursorActivity&&(KO(e.cursorActivityHandlers,this,null),e.isVimOp&&(t=!0)),this.curOp=null),t&&this.scrollIntoView()}moveH(e,t){if("char"==t){var i=this.getCursor();this.setCursor(i.line,i.ch+e)}}setOption(e,t){switch(e){case"keyMap":this.state.keyMap=t;break;case"textwidth":this.state.textwidth=t}}getOption(e){switch(e){case"firstLineNumber":return 1;case"tabSize":return this.cm6.state.tabSize||4;case"readOnly":return this.cm6.state.readOnly;case"indentWithTabs":return"\t"==this.cm6.state.facet(Ga);case"indentUnit":return this.cm6.state.facet(Ga).length||2;case"textwidth":return this.state.textwidth;case"keyMap":return this.state.keyMap||"vim"}}toggleOverwrite(e){this.state.overwrite=e}getTokenTypeAt(e){var t,i=this.indexFromPos(e),n=ja(this.cm6.state,i),r=null==n?void 0:n.resolve(i),s=(null===(t=null==r?void 0:r.type)||void 0===t?void 0:t.name)||"";return/comment/i.test(s)?"comment":/string/i.test(s)?"string":""}overWriteSelection(e){var t=this.cm6.state.doc,i=this.cm6.state.selection,n=i.ranges.map(e=>{if(e.empty){var i=e.to<t.length?t.sliceString(e.from,e.to+1):"";if(i&&!/\n/.test(i))return K.range(e.from,e.to+1)}return e});this.cm6.dispatch({selection:K.create(n,i.mainIndex)}),this.replaceSelection(e)}isInMultiSelectMode(){return this.cm6.state.selection.ranges.length>1}virtualSelectionMode(){return!!this.virtualSelection}forEachSelection(e){var t=this.cm6.state.selection;this.virtualSelection=K.create(t.ranges,t.mainIndex);for(var i=0;i<this.virtualSelection.ranges.length;i++){var n=this.virtualSelection.ranges[i];n&&(this.cm6.dispatch({selection:K.create([n])}),e(),this.virtualSelection.ranges[i]=this.cm6.state.selection.ranges[0])}this.cm6.dispatch({selection:this.virtualSelection}),this.virtualSelection=null}hardWrap(e){return function(e,t){for(var i,n=t.column||e.getOption("textwidth")||80,r=0!=t.allowMerge,s=Math.min(t.from,t.to),o=Math.max(t.from,t.to);s<=o;){var a=e.getLine(s);if(a.length>n){if(c=p(a,n,5)){var l=null===(i=/^\s*/.exec(a))||void 0===i?void 0:i[0];e.replaceRange("\n"+l,new UO(s,c.start),new UO(s,c.end))}o++}else if(r&&/\S/.test(a)&&s!=o){var h=e.getLine(s+1);if(h&&/\S/.test(h)){var c,u=a.replace(/\s+$/,""),f=h.replace(/^\s+/,""),d=u+" "+f;(c=p(d,n,5))&&c.start>u.length||d.length<n?(e.replaceRange(" ",new UO(s,u.length),new UO(s+1,h.length-f.length)),s--,o--):u.length<a.length&&e.replaceRange("",new UO(s,u.length),new UO(s,a.length))}}s++}return s;function p(e,t,i){if(!(e.length<t)){var n=e.slice(0,t),r=e.slice(t),s=/^(?:(\s+)|(\S+)(\s+))/.exec(r),o=/(?:(\s+)|(\s+)(\S+))$/.exec(n),a=0,l=0;return o&&!o[2]&&(a=t-o[1].length,l=t),s&&!s[2]&&(a||(a=t),l=t+s[1].length),a?{start:a,end:l}:o&&o[2]&&o.index>i?{start:o.index,end:o.index+o[2].length}:s&&s[2]?{start:a=t+s[2].length,end:a+s[3].length}:void 0}}}(this,e)}}function rg(e,t,i){var n=document.createElement("div");return n.appendChild(t),n}function sg(e,t){e.state.currentNotificationClose&&e.state.currentNotificationClose(),e.state.currentNotificationClose=t}function og(e,t){var i=e.state.dialog;e.state.dialog=t,t.style.flex="1",t&&i!==t&&(i&&i.contains(document.activeElement)&&e.focus(),i&&i.parentElement?i.parentElement.replaceChild(t,i):i&&i.remove(),ng.signal(e,"dialog"))}function ag(e,t){e.state.dialog==t&&(e.state.dialog=null,ng.signal(e,"dialog"))}ng.isMac="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),ng.Pos=UO,ng.StringStream=class{constructor(e,t,i,n){this.string=e,this.tabSize=t,this.indentUnit=i,this.overrideIndent=n,this.pos=0,this.start=0,this.lastColumnPos=0,this.lastColumnValue=0}eol(){return this.pos>=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)}eat(e){let t,i=this.string.charAt(this.pos);if(t="string"==typeof e?i==e:i&&(e instanceof RegExp?e.test(i):e(i)),t)return++this.pos,i}eatWhile(e){let t=this.pos;for(;this.eat(e););return this.pos>t}eatSpace(){let e=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e}skipToEnd(){this.pos=this.string.length}skipTo(e){let t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0}backUp(e){this.pos-=e}column(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Vl(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue}indentation(){var e;return null!==(e=this.overrideIndent)&&void 0!==e?e:Vl(this.string,null,this.tabSize)}match(e,t,i){if("string"==typeof e){let n=e=>i?e.toLowerCase():e;return n(this.string.substr(this.pos,e.length))==n(e)?(!1!==t&&(this.pos+=e.length),!0):null}{let i=this.string.slice(this.pos).match(e);return i&&i.index>0?null:(i&&!1!==t&&(this.pos+=i[0].length),i)}}current(){return this.string.slice(this.start,this.pos)}},ng.commands={cursorCharLeft:function(e){Zh(e.cm6)},redo:function(e){tg(e,!1)},undo:function(e){tg(e,!0)},newlineAndIndent:function(e){yc({state:e.cm6.state,dispatch:t=>eg(e,t)})},indentAuto:function(e){xc(e.cm6)},newlineAndIndentContinueComment:void 0,save:void 0},ng.isWordChar=function(e){return JO.test(e)},ng.keys=ig,ng.addClass=function(e,t){},ng.rmClass=function(e,t){},ng.e_preventDefault=function(e){e.preventDefault()},ng.e_stop=function(e){var t,i;null===(t=null==e?void 0:e.stopPropagation)||void 0===t||t.call(e),null===(i=null==e?void 0:e.preventDefault)||void 0===i||i.call(e)},ng.lookupKey=function(e,t,i){var n=ng.keys[e];!n&&/^Arrow/.test(e)&&(n=ng.keys[e.slice(5)]),n&&i(n)},ng.on=GO,ng.off=FO,ng.signal=HO,ng.findMatchingTag=function(e,t){return null},ng.findEnclosingTag=function(e,t){var i,n,r=e.cm6.state,s=e.indexFromPos(t);s<r.doc.length&&"<"==r.sliceDoc(s,s+1)&&s++;for(var o=ja(r,s),a=(null==o?void 0:o.resolve(s))||null;a;){if("OpenTag"==(null===(i=a.firstChild)||void 0===i?void 0:i.type.name)&&"CloseTag"==(null===(n=a.lastChild)||void 0===n?void 0:n.type.name))return{open:hg(r.doc,a.firstChild),close:hg(r.doc,a.lastChild)};a=a.parent}},ng.keyName=void 0;var lg={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function hg(e,t){return{from:qO(e,t.from),to:qO(e,t.to)}}class cg{constructor(e,t,i){this.cm=e,this.id=e.$mid++,this.offset=t,this.assoc=i,e.marks[this.id]=this}clear(){delete this.cm.marks[this.id]}find(){return null==this.offset?null:this.cm.posFromIndex(this.offset)}update(e){null!=this.offset&&(this.offset=e.mapPos(this.offset,this.assoc,B.TrackDel))}}let ug=function(e){return e.facet(Es)}||function(){let e={cursorBlinkRate:1200};return function(){return e}}();class fg{constructor(e,t,i,n,r,s,o,a,l,h){this.left=e,this.top=t,this.height=i,this.fontFamily=n,this.fontSize=r,this.fontWeight=s,this.color=o,this.className=a,this.letter=l,this.partial=h}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",e.style.height=this.height+"px",e.style.lineHeight=this.height+"px",e.style.fontFamily=this.fontFamily,e.style.fontSize=this.fontSize,e.style.fontWeight=this.fontWeight,e.style.color=this.partial?"transparent":this.color,e.className=this.className,e.textContent=this.letter}eq(e){return this.left==e.left&&this.top==e.top&&this.height==e.height&&this.fontFamily==e.fontFamily&&this.fontSize==e.fontSize&&this.fontWeight==e.fontWeight&&this.color==e.color&&this.className==e.className&&this.letter==e.letter}}class dg{constructor(e,t){this.view=e,this.rangePieces=[],this.cursors=[],this.cm=t,this.measureReq={read:this.readPos.bind(this),write:this.drawSel.bind(this)},this.cursorLayer=e.scrollDOM.appendChild(document.createElement("div")),this.cursorLayer.className="cm-cursorLayer cm-vimCursorLayer",this.cursorLayer.setAttribute("aria-hidden","true"),e.requestMeasure(this.measureReq),this.setBlinkRate()}setBlinkRate(){let e=ug(this.cm.cm6.state).cursorBlinkRate;this.cursorLayer.style.animationDuration=e+"ms"}update(e){(e.selectionSet||e.geometryChanged||e.viewportChanged)&&(this.view.requestMeasure(this.measureReq),this.cursorLayer.style.animationName="cm-blink"==this.cursorLayer.style.animationName?"cm-blink2":"cm-blink"),function(e){return ug(e.startState)!=ug(e.state)}(e)&&this.setBlinkRate()}scheduleRedraw(){this.view.requestMeasure(this.measureReq)}readPos(){let{state:e}=this.view,t=[];for(let i of e.selection.ranges){let n=i==e.selection.main,r=gg(this.cm,this.view,i,n);r&&t.push(r)}return{cursors:t}}drawSel({cursors:e}){if(e.length!=this.cursors.length||e.some((e,t)=>!e.eq(this.cursors[t]))){let t=this.cursorLayer.children;if(t.length!==e.length){this.cursorLayer.textContent="";for(const t of e)this.cursorLayer.appendChild(t.draw())}else e.forEach((e,i)=>e.adjust(t[i]));this.cursors=e}}destroy(){this.cursorLayer.remove()}}const pg={".cm-vimMode .cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-fat-cursor":{position:"absolute",background:"#ff9696",border:"none",whiteSpace:"pre"},"&:not(.cm-focused) .cm-fat-cursor":{background:"none",outline:"solid 1px #ff9696",color:"transparent !important"}},Og=ce.highest(ws.theme(pg));function gg(e,t,i,n){var r,s,o,a;let l=i.head,h=!1,c=1,u=e.state.vim;if(u&&(!u.insertMode||e.state.overwrite)){if(h=!0,u.visualBlock&&!n)return null;i.anchor<i.head&&"\n"!=(l<t.state.doc.length&&t.state.sliceDoc(l,l+1))&&l--,e.state.overwrite?c=.2:u.status&&(c=.5)}if(h){let e=l<t.state.doc.length&&t.state.sliceDoc(l,l+1);e&&/[\uDC00-\uDFFF]/.test(e)&&l>1&&(l--,e=t.state.sliceDoc(l,l+1));let i=t.coordsAtPos(l,1);if(!i)return null;let h=function(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==ui.LTR?t.left:t.right-e.scrollDOM.clientWidth)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}(t),u=t.domAtPos(l),d=u?u.node:t.contentDOM;for(d instanceof Text&&u.offset>=d.data.length&&(null===(r=d.parentElement)||void 0===r?void 0:r.nextSibling)&&(d=null===(s=d.parentElement)||void 0===s?void 0:s.nextSibling,u={node:d,offset:0});u&&u.node instanceof HTMLElement;)d=u.node,u={node:u.node.childNodes[u.offset],offset:0};if(!(d instanceof HTMLElement)){if(!d.parentNode)return null;d=d.parentNode}let p=getComputedStyle(d),O=i.left,g=null===(a=(o=t).coordsForChar)||void 0===a?void 0:a.call(o,l);if(g&&(O=g.left),e&&"\n"!=e&&"\r"!=e)if("\t"==e){e=" ";var f=t.coordsAtPos(l+1,-1);f&&(O=f.left-(f.left-i.left)/parseInt(p.tabSize))}else/[\uD800-\uDBFF]/.test(e)&&l<t.state.doc.length-1&&(e+=t.state.sliceDoc(l+1,l+2));else e=" ";let m=i.bottom-i.top;return new fg((O-h.left)/t.scaleX,(i.top-h.top+m*(1-c))/t.scaleY,m*c/t.scaleY,p.fontFamily,p.fontSize,p.fontWeight,p.color,n?"cm-fat-cursor cm-cursor-primary":"cm-fat-cursor cm-cursor-secondary",e,1!=c)}return null}var mg="undefined"!=typeof navigator&&/linux/i.test(navigator.platform)&&/ Gecko\/\d+/.exec(navigator.userAgent);const vg=DO(ng),yg=ws.baseTheme({".cm-vimMode .cm-cursorLayer:not(.cm-vimCursorLayer)":{display:"none"},".cm-vim-panel":{padding:"0px 10px",fontFamily:"monospace",minHeight:"1.3em",display:"flex"},".cm-vim-panel input":{border:"none",outline:"none",backgroundColor:"inherit"},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"}}),wg=Gi.fromClass(class{constructor(e){this.status="",this.query=null,this.decorations=Xt.none,this.waitForCopy=!1,this.lastKeydown="",this.useNextTextInput=!1,this.compositionText="",this.view=e;const t=this.cm=new ng(e);vg.enterVimMode(this.cm),this.view.cm=this.cm,this.cm.state.vimPlugin=this,this.blockCursor=new dg(e,t),this.updateClass(),this.cm.on("vim-command-done",()=>{t.state.vim&&(t.state.vim.status=""),this.blockCursor.scheduleRedraw(),this.updateStatus()}),this.cm.on("vim-mode-change",e=>{t.state.vim&&(t.state.vim.mode=e.mode,e.subMode&&(t.state.vim.mode+=" block"),t.state.vim.status="",this.blockCursor.scheduleRedraw(),this.updateClass(),this.updateStatus())}),this.cm.on("dialog",()=>{this.cm.state.statusbar?this.updateStatus():e.dispatch({effects:Sg.of(!!this.cm.state.dialog)})}),this.dom=document.createElement("span"),this.spacer=document.createElement("span"),this.spacer.style.flex="1",this.statusButton=document.createElement("span"),this.statusButton.onclick=e=>{vg.handleKey(this.cm,"<Esc>","user"),this.cm.focus()},this.statusButton.style.cssText="cursor: pointer"}update(e){var t;if((e.viewportChanged||e.docChanged)&&this.query&&this.highlight(this.query),e.docChanged&&this.cm.onChange(e),e.selectionSet&&this.cm.onSelectionChange(),e.viewportChanged,this.cm.curOp&&!this.cm.curOp.isVimOp&&this.cm.onBeforeEndOperation(),e.transactions)for(let i of e.transactions)for(let e of i.effects)if(e.is(IO))if(null===(t=e.value)||void 0===t?void 0:t.forVim){let t=e.value.create();this.highlight(t)}else this.highlight(null);this.blockCursor.update(e)}updateClass(){const e=this.cm.state;!e.vim||e.vim.insertMode&&!e.overwrite?this.view.scrollDOM.classList.remove("cm-vimMode"):this.view.scrollDOM.classList.add("cm-vimMode")}updateStatus(){let e=this.cm.state.statusbar,t=this.cm.state.vim;if(!e||!t)return;let i=this.cm.state.dialog;if(i)i.parentElement!=e&&(e.textContent="",e.appendChild(i));else{e.textContent="";var n=(t.mode||"normal").toUpperCase();t.insertModeReturn&&(n+="(C-O)"),this.statusButton.textContent=`--${n}--`,e.appendChild(this.statusButton),e.appendChild(this.spacer)}this.dom.textContent=t.status,e.appendChild(this.dom)}destroy(){vg.leaveVimMode(this.cm),this.updateClass(),this.blockCursor.destroy(),delete this.view.cm}highlight(e){if(this.query=e,!e)return this.decorations=Xt.none;let{view:t}=this,i=new Ne;for(let n=0,r=t.visibleRanges,s=r.length;n<s;n++){let{from:o,to:a}=r[n];for(;n<s-1&&a>r[n+1].from-500;)a=r[++n].to;e.highlight(t.state,o,a,(e,t)=>{i.add(e,t,bg)})}return this.decorations=i.finish()}handleKey(e,t){const i=this.cm;let n=i.state.vim;if(!n)return;const r=vg.vimKeyFromEvent(e,n);if(ng.signal(this.cm,"inputEvent",{type:"handleKey",key:r}),!r)return;if("<Esc>"==r&&!n.insertMode&&!n.visualMode&&this.query){const e=n.searchState_;e&&(i.removeOverlay(e.getOverlay()),e.setOverlay(null))}if("<C-c>"===r&&!ng.isMac&&i.somethingSelected())return this.waitForCopy=!0,!0;n.status=(n.status||"")+r;let s=vg.multiSelectHandleKey(i,r,"user");return n=vg.maybeInitVimState_(i),!s&&n.insertMode&&i.state.overwrite&&(e.key&&1==e.key.length&&!/\n/.test(e.key)?(s=!0,i.overWriteSelection(e.key)):"Backspace"==e.key&&(s=!0,ng.commands.cursorCharLeft(i))),s&&(ng.signal(this.cm,"vim-keypress",r),e.preventDefault(),e.stopPropagation(),this.blockCursor.scheduleRedraw()),this.updateStatus(),!!s}},{eventHandlers:{copy:function(e,t){this.waitForCopy&&(this.waitForCopy=!1,Promise.resolve().then(()=>{var e=this.cm,t=e.state.vim;t&&(t.insertMode?e.setSelection(e.getCursor(),e.getCursor()):e.operation(()=>{e.curOp&&(e.curOp.isVimOp=!0),vg.handleKey(e,"<Esc>","user")}))}))},compositionstart:function(e,t){this.useNextTextInput=!0,ng.signal(this.cm,"inputEvent",e)},compositionupdate:function(e,t){ng.signal(this.cm,"inputEvent",e)},compositionend:function(e,t){ng.signal(this.cm,"inputEvent",e)},keypress:function(e,t){ng.signal(this.cm,"inputEvent",e),"Dead"==this.lastKeydown&&this.handleKey(e,t)},keydown:function(e,t){ng.signal(this.cm,"inputEvent",e),this.lastKeydown=e.key,"Unidentified"==this.lastKeydown||"Process"==this.lastKeydown||"Dead"==this.lastKeydown?this.useNextTextInput=!0:(this.useNextTextInput=!1,this.handleKey(e,t))}},provide:()=>[ws.inputHandler.of((e,t,i,n)=>{var r,s,o=function(e){return e.cm||null}(e);if(!o)return!1;var a=null===(r=o.state)||void 0===r?void 0:r.vim,l=o.state.vimPlugin;if(a&&!a.insertMode&&!(null===(s=o.curOp)||void 0===s?void 0:s.isVimOp)){if("\0\0"===n)return!0;if(ng.signal(o,"inputEvent",{type:"text",text:n,from:t,to:i}),1==n.length&&l.useNextTextInput){if(a.expectLiteralNext&&e.composing)return l.compositionText=n,!1;if(l.compositionText){var h=l.compositionText;l.compositionText="";var c=e.state.selection.main.head;if(h===e.state.sliceDoc(c-h.length,c)){var u=o.getCursor();o.replaceRange("",o.posFromIndex(c-h.length),u)}}return l.handleKey({key:n,preventDefault:()=>{},stopPropagation:()=>{}}),function(e){var t=e.scrollDOM.parentElement;if(t){if(mg)return e.contentDOM.textContent="\0\0",void e.contentDOM.dispatchEvent(new CustomEvent("compositionend"));var i=e.scrollDOM.nextSibling,n=window.getSelection(),r=n&&{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset};e.scrollDOM.remove(),t.insertBefore(e.scrollDOM,i);try{r&&n&&(n.setPosition(r.anchorNode,r.anchorOffset),r.focusNode&&n.extend(r.focusNode,r.focusOffset))}catch(e){console.error(e)}e.focus(),e.contentDOM.dispatchEvent(new CustomEvent("compositionend"))}}(e),!0}}return!1})],decorations:e=>e.decorations}),bg=Xt.mark({class:"cm-searchMatch"}),Sg=Pe.define(),xg=le.define({create:()=>!1,update(e,t){for(let i of t.effects)i.is(Sg)&&(e=i.value);return e},provide:e=>Ws.from(e,e=>e?kg:null)});function kg(e){let t=document.createElement("div");t.className="cm-vim-panel";let i=e.cm;return i.state.dialog&&t.appendChild(i.state.dialog),{top:!1,dom:t}}function Qg(e){let t=document.createElement("div");t.className="cm-vim-panel";let i=e.cm;return i.state.statusbar=t,i.state.vimPlugin.updateStatus(),{dom:t}}function $g(e={}){return[yg,wg,Og,e.status?Ws.of(Qg):xg]}const Pg=async(e,...t)=>{!function(e){if(!(e=>"function"==typeof e)(e))throw Error("fn should be a function!")}(e);try{return[null,await e(...t)]}catch(e){return[e]}};function _g(e){if("function"!=typeof e)throw new TypeError("Argument to promisify must be a function");var t=e["__ES6-PROMISIFY--CUSTOM-ARGUMENTS__"],i=_g.Promise||Promise;if("function"!=typeof i)throw new Error("No Promise implementation found; do you need a polyfill?");return function(){for(var n=arguments.length,r=Array(n),s=0;s<n;s++)r[s]=arguments[s];return new i((i,n)=>{r.push(function(e){if(e)return n(e);for(var r=arguments.length,s=Array(1<r?r-1:0),o=1;o<r;o++)s[o-1]=arguments[o];if(1===s.length||!t)return i(s[0]);var a={};s.forEach((e,i)=>{var n=t[i];n&&(a[n]=e)}),i(a)}),e.apply(this,r)})}}_g.argumentNames="__ES6-PROMISIFY--CUSTOM-ARGUMENTS__",_g.Promise=void 0;const Cg=Ag;function Ag(){if(!(this instanceof Ag))return new Ag}Ag.prototype.checkHash=async function(e){const t=`${e}-hash`;return await this.loadHash(e)===localStorage.getItem(t)},Ag.prototype.loadHash=_g(function(e,t){return((e,t)=>{$O({method:"GET",url:xO+e,callback:t})})(e+"?hash",t),this}),Ag.prototype.setData=function(e,t){const i=`${e}-data`;return localStorage.setItem(i,t),this},Ag.prototype.setHash=function(e,t){const i=`${e}-hash`;return localStorage.setItem(i,t),this},Ag.prototype.getData=function(e){const t=`${e}-data`;return localStorage.getItem(t)||""},Ag.prototype.getHash=function(e){const t=`${e}-hash`;return localStorage.getItem(t)||""};var Tg=i(519);const Zg=Tg(async e=>{const t=`${e}/modules.json`;return await bO.json(t)}),Mg=Tg(async e=>{const t=`${e}/options.json`;return await bO.json(t)}),Rg=async function(e){await bO.parallel(e)},Xg=async(e,t={})=>{const i=t,{prefix:n=""}=i;if(i.name&&globalThis[i.name])return;const r=[Zg(n),Mg(n)],[s,[o,a]]=await Pg(Promise.all.bind(Promise),r);let l,h;if(s)return alert(`Error: could not load module or config: ${s.message}`);const c=a.online&&navigator.onLine,u=function(e,t){let i;if(!(e=>"string"==typeof e)(e))throw Error("name should be string!");if(!Array.isArray(t))throw Error("array should be array!");return t.some(t=>{const n=t.name===e;return n&&(i=t),n}),i}(e,o),f=Array.isArray(u.local),{version:d}=u;f?(l=u.remote,({local:h}=u)):(l=[u.remote],h=[u.local]),h=h.map(e=>n+e);const p=l.map(e=>e.replace(/{{\sversion\s}}/g,d));if(!c)return await Rg(h);await(async e=>{const[t]=await Pg(bO.parallel,e);t&&await Rg()})(p)};(Object.getOwnPropertyDescriptor(Xg,"name")||{}).writable||Object.defineProperty(Xg,"name",{value:"default",configurable:!0});var Eg=i(735);const jg=function(e){return this._ElementMsg||(this._ElementMsg=Fd("div",{innerHTML:'<div class="dword-msg">/div>'}).firstChild,this._Element.appendChild(this._ElementMsg)),this._ElementMsg.textContent=e,this._ElementMsg.hidden=!1,setTimeout(()=>{this._ElementMsg.hidden=!0},2e3),this},zg=Promise.resolve.bind(Promise),Lg=Promise.reject.bind(Promise),Yg=Tg(jg),Vg=e=>{const t="editor-clipboard",{_Ace:i,_story:n}=void 0,r=i.getSelection("\n"),s=e=>i.getDoc().replaceSelection(e);return"copy"===e?(n.setData(t,r),Eg.writeText(r)):"cut"===e?(n.setData(t,r),function(e){const t=Fd("textarea",{value:e});t.select();const i=document.execCommand("cut");return document.body.removeChild(t),i}(r)?zg():Lg()):Eg.readText().then(s).catch(()=>{Yg("Could not paste from clipboard. Inner buffer used.");const e=n.getData(t);s(e)})};(Object.getOwnPropertyDescriptor(Vg,"name")||{}).writable||Object.defineProperty(Vg,"name",{value:"default",configurable:!0});var Bg=i(317),Wg=i(955);Object.defineProperty(qg,"name",{value:"default",configurable:!0});const Ig=e=>"string"==typeof e,Dg=_g(Wg),Ng=Bg(function(e){e._Value=e.getValue()});function qg(){return Ug.call(this).then(Ng(this)).catch(this._onSave.bind(this)),this}async function Ug(){const e=this.getValue(),{length:t}=e,{_FileName:i,_maxSize:n}=this,{diff:r,zip:s}=await this._loadOptions();if(r){const e=await this._doDiff(i),r=function(e,t,i){const n=e<t&&(i?.length||0)<e,r=Ig(i);return i&&r&&n}(t,n,e);if(r)return this._patch(i,e)}if(!s)return this._write(i,e);const o=await Dg(e);return this._write(`${i}?unzip`,o)}Object.defineProperty(Fg,"name",{value:"default",configurable:!0});const Gg=()=>{const e=location;return e.origin||e.protocol+"//"+e.host};function Fg(){const e=this,t=Gg(),i=(e,t)=>{r.emit("patch",e,t)},{_prefixSocket:n}=e,r=globalThis.io.connect(t+n,{"max reconnection attempts":2**32,"reconnection limit":5e3,path:this._socketPath+"/socket.io"});this._socket=r,r.on("reject",()=>{this.emit("reject")}),r.on("connect",()=>{e._patch=i}),r.on("message",e=>{this._onSave(null,e)}),r.on("file",(t,i)=>{e.setModeForPath(t).setValueFirst(t,i).moveCursorTo(0,0)}),r.on("patch",(t,i,n)=>{if(t!==this._FileName)return;if(n!==this._story.getHash(t))return;const r=e.getCursor(),s=e.getValue(),o=(0,SO.applyPatch)(s,i);this.setValue(o),this._story.setData(t,s).setHash(t,this.sha()),e.moveCursorTo(r.row,r.column)}),r.on("disconnect",()=>{e.save.patch=globalThis._patchHttp}),r.on("err",e=>{ip(this._TITLE,e)})}function Hg(){}const Kg=()=>{},Jg=e=>"function"==typeof e,em=e=>"string"==typeof e;function tm(e,t={},i=Kg){if(!(this instanceof tm))return new tm(e,t,i);if(Jg(t)&&(i=t,t={}),this._DIR="/modules/",this._TITLE="Qword",this._story=Cg(),this._Separator="\n",this._isKey=!0,this._Element=em(e)?document.querySelector(e):e||document.body,!this._Element)throw Error("Qword: element not found");this._maxSize=t.maxSize||512e3,this._PREFIX=t.prefix||"/qword",this._prefixSocket=t.prefixSocket||"/qword",this._socketPath=t.socketPath||"",this._Emitter=Nd(),this._view=null,this._pendingValue=null,this._modeCompartment=new fe,this._keymapCompartment=new fe,this._fontCompartment=new fe,this._langCompartment=new fe,this._historyCompartment=new fe,this._vimCompartment=new fe,this._Element.addEventListener("drop",this._onDrop.bind(this)),this._Element.addEventListener("dragover",this._onDragOver.bind(this)),this._init().then(()=>i(this)),this._patch=(e,t)=>{this._patchHttp(e,t)},this._write=(e,t)=>{this._writeHttp(e,t)}}tm.prototype._init=async function(){const e=this._PREFIX,[t,i]=await Pg(bO.json,this._PREFIX+"/edit.json");return t?ip(this._TITLE,"Could not load edit.json!"):(this._Config=i,await Promise.all([Mg(e),Zg(e)]),await Xg("socket",{prefix:this._socketPath}),(e=>{xO=e})(`${this._PREFIX}/api/v1/fs`),this._initEditor(),null!==this._pendingValue&&(this.setValue(this._pendingValue),this._pendingValue=null),this._initSocket(),this)},tm.prototype._initEditor=function(){this._Element.style.height="100vh";const e=()=>[this._historyCompartment.of([lh(),_s.of(Qh)]),lo(),lh(),zs,Zl(Xl),Ec,this._langCompartment.of(uf()),this._vimCompartment.of([]),_s.of([...Pc,...Qh,{key:"Mod-s",run:()=>(this.save(),!0)}])];this._vimEnabled=!1;const t=ze.create({doc:"",extensions:e()});this._view=new ws({state:t,parent:this._Element}),this._baseExtensions=e},tm.prototype.getValue=function(){return this._view.state.doc.toString()},tm.prototype.setValue=function(e){return this._view?(this._view.dispatch({changes:{from:0,to:this._view.state.doc.length,insert:e}}),this):(this._pendingValue=e,this)},tm.prototype.focus=function(){return this._view.focus(),this},tm.prototype.getCursor=function(){const e=this._view.state.selection.main.head,t=this._view.state.doc.lineAt(e);return{row:t.number-1,column:e-t.from}},tm.prototype.moveCursorTo=function(e,t=0){const i=this._view.state.doc.line(e+1);return this._view.dispatch({selection:{anchor:i.from+t},scrollIntoView:!0}),this},tm.prototype.remove=function(e){const t=this._view.state.selection.main.head;return this._view.dispatch({changes:"right"===e?{from:t,to:t+1}:{from:t-1,to:t}}),this},tm.prototype.setModeForPath=function(e){const t=e.split(".").pop();let i=uf();return"json"===t&&(i=new qa(mf)),"html"===t&&(i=function(e={}){let t,i="";!1===e.matchClosingTags&&(i="noMatch"),!0===e.selfClosingTags&&(i=(i?i+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=Wf((e.nestedLanguages||[]).concat(Yd),(e.nestedAttributes||[]).concat(Vd)));let n=t?Bd.configure({wrap:t,dialect:i}):i?Wd.configure({dialect:i}):Wd;return new qa(n,[Wd.data.of({autocomplete:zd(e)}),!1!==e.autoCloseTags?Dd:[],uf().support,new qa(wd,wd.data.of({autocomplete:yd})).support])}()),this._view.dispatch({effects:this._langCompartment.reconfigure(i)}),this},tm.prototype.setValueFirst=function(e,t){return this.setModeForPath(e),this.setValue(t),this._FileName=e,this._Value=t,this.clearHistory(),this.moveCursorTo(0,0),this},tm.prototype.addKeyMap=function(e){const t=Object.entries(e).map(([e,t])=>({key:e,run:()=>(t.call(this),!0)}));return this._view.dispatch({effects:this._keymapCompartment.reconfigure(_s.of(t))}),this},tm.prototype.on=function(e,t){return this._Emitter.on(e,t),this},tm.prototype.emit=function(...e){return this._Emitter.emit(...e),this},tm.prototype.isChanged=function(){return this.getValue()!==this._Value},tm.prototype._diff=function(e){return(0,SO.createPatch)(this._Value||"",e)},tm.prototype._patchHttp=function(e,t){var i,n,r;i=e,n=t,!(r=this._onSave.bind(this))&&kO(n)&&(r=n,n=null),$O({method:"PATCH",url:xO+i,data:n,callback:r})},tm.prototype._writeHttp=function(e,t){QO(e,t,this._onSave.bind(this))},tm.prototype.evaluate=function(){if(!this._FileName?.endsWith(".js"))return ip(this._TITLE,"JS only");const[e]=((e,...t)=>{try{return[null,e(...t)]}catch(e){return[e]}})(new Function(this.getValue()));return e&&ip(this._TITLE,e.message),this},tm.prototype.goToLine=function(){const e=Number(prompt("Line number"));if(!e)return;const t=this._view.state.doc.line(e);this._view.dispatch({selection:{anchor:t.from},scrollIntoView:!0}),this.focus()},tm.prototype._clipboard=Vg,tm.prototype.save=qg,tm.prototype._onSave=function(e,t){const i=this._Value,n=this._FileName;let r="Try again?";if(e){r=e.message?e.message+"\n"+r:"Can't save."+r;const t=this._onSave.bind(this);return((e,t,i)=>rp(e,t,"",np(i)||ep,i))(this._TITLE,r).then(()=>{QO(this._FileName,this._Value,t)}).catch(Hg).then(()=>{this.focus()})}this.showMessage(t);const s=this.sha();this._story.setData(n,i).setHash(n,s),this._Emitter.emit("save",i.length)},tm.prototype._initSocket=Fg,tm.prototype._onDragOver=function(e){e.preventDefault(),e.dataTransfer.dropEffect="copy"},tm.prototype._onDrop=function(e){e.preventDefault();const[t]=e.dataTransfer.files;if(!t)return;const i=new FileReader;i.onload=e=>{this.setValue(e.target.result)},i.readAsText(t)},tm.prototype.sha=function(){const e=new wO("SHA-1","TEXT");return e.update(this.getValue()),e.getHash("HEX")},tm.prototype.setOption=function(e,t){const{_Ace:i}=this;return(()=>{this._Config.options[e]=t})(),"keyMap"===e&&this.setKeyMap(t),this},tm.prototype.setOptions=function(e){const t=ws.theme({"&":{fontSize:e.fontSize,fontFamily:e.fontFamily}});return this._view.dispatch({effects:this._fontCompartment.reconfigure(t)}),this},tm.prototype.showMessage=jg,tm.prototype.setKeyMap=function(e){return this._vimEnabled="vim"===e,this._view.dispatch({effects:this._vimCompartment.reconfigure(this._vimEnabled?$g():[])}),this},tm.prototype._loadOptions=async function(){const e=this._PREFIX+"/options.json";if(this._Options)return this._Options;const t=await bO.json(e);return this._Options=t,t},tm.prototype.enableKey=function(){return this._isKey=!0,this},tm.prototype.clearHistory=function(){if(!this._view)return this;this._view.dispatch({effects:this._historyCompartment.reconfigure(this._vimEnabled?[]:[lh(),_s.of(Qh)])});const{cm:e}=this._view;return e.state.vim.undoHistory=[],e.state.vim.redoHistory=[],e.state.vim.globalState.jumpList=[],this}})(),qword=n.default})();
2
2
  //# sourceMappingURL=qword.js.map