MCPcopy
hub / github.com/braziljs/eloquente-javascript / split

Method split

docs/ejs.js:1–1  ·  view source on GitHub ↗
(t,e)

Source from the content-addressed store, hash-verified

1!function(t){"function"==typeof define&&define.amd?define(t):t()}(function(){"use strict";let t=[],e=[];function i(i){if(i<768)return!1;for(let s=0,r=t.length;;){let n=s+r>>1;if(i<t[n])r=n;else{if(!(i>=e[n]))return!0;s=n+1}if(s==r)return!1}}function s(t){return t>=127462&&t<=127487}(()=>{let i="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(t=>t?parseInt(t,36):1);for(let s=0,r=0;s<i.length;s++)(s%2?e:t).push(r+=i[s])})();function r(t,e,i=!0,s=!0){return(i?n:o)(t,e,s)}function n(t,e,r){if(e==t.length)return e;e&&l(t.charCodeAt(e))&&h(t.charCodeAt(e-1))&&e--;let n=a(t,e);for(e+=c(n);e<t.length;){let o=a(t,e);if(8205==n||8205==o||r&&i(o))e+=c(o),n=o;else{if(!s(o))break;{let i=0,r=e-2;for(;r>=0&&s(a(t,r));)i++,r-=2;if(i%2==0)break;e+=2}}}return e}function o(t,e,i){for(;e>0;){let s=n(t,e-2,i);if(s<e)return s;e--}return 0}function a(t,e){let i=t.charCodeAt(e);if(!h(i)||e+1==t.length)return i;let s=t.charCodeAt(e+1);return l(s)?s-56320+(i-55296<<10)+65536:i}function l(t){return t>=56320&&t<57344}function h(t){return t>=55296&&t<56320}function c(t){return t<65536?1:2}class u{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=y(this,t,e);let s=[];return this.decompose(0,t,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(e,this.length,s,1),d.from(s,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=y(this,t,e);let i=[];return this.decompose(t,e,i,0),d.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),s=new m(this),r=new m(t);for(let t=e,n=e;;){if(s.next(t),r.next(t),t=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(n+=s.value.length,s.done||n>=i)return!0}}iter(t=1){return new m(this,t)}iterRange(t,e=this.length){return new g(this,t,e)}iterLines(t,e){let i;if(null==t)i=this.iter();else{null==e&&(e=this.lines+1);let s=this.line(t).from;i=this.iterRange(s,Math.max(s,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new x(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(0==t.length)throw new RangeError("A document must have at least one line");return 1!=t.length||t[0]?t.length<=32?new p(t):d.from(p.split(t,[])):u.empty}}class p extends u{constructor(t,e=function(t){let e=-1;for(let i of t)e+=i.length+1;return e}(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,s){for(let r=0;;r++){let n=this.text[r],o=s+n.length;if((e?i:o)>=t)return new v(s,o,i,n);s=o+1,i++}}decompose(t,e,i,s){let r=t<=0&&e>=this.length?this:new p(f(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(1&s){let t=i.pop(),e=O(r.text,t.text.slice(),0,r.length);if(e.length<=32)i.push(new p(e,t.length+r.length));else{let t=e.length>>1;i.push(new p(e.slice(0,t)),new p(e.slice(t)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof p))return super.replace(t,e,i);[t,e]=y(this,t,e);let s=O(this.text,O(i.text,f(this.text,0,t)),e),r=this.length+i.length-(e-t);return s.length<=32?new p(s,r):d.from(p.split(s,[]),r)}sliceString(t,e=this.length,i="\n"){[t,e]=y(this,t,e);let s="";for(let r=0,n=0;r<=e&&n<this.text.length;n++){let o=this.text[n],a=r+o.length;r>t&&n&&(s+=i),t<a&&e>r&&(s+=o.slice(Math.max(0,t-r),e-r)),r=a+1}return s}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],s=-1;for(let r of t)i.push(r),s+=r.length+1,32==i.length&&(e.push(new p(i,s)),i=[],s=-1);return s>-1&&e.push(new p(i,s)),e}}class d extends u{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let e of t)this.lines+=e.lines}lineInner(t,e,i,s){for(let r=0;;r++){let n=this.children[r],o=s+n.length,a=i+n.lines-1;if((e?a:o)>=t)return n.lineInner(t,e,i,s);s=o+1,i=a+1}}decompose(t,e,i,s){for(let r=0,n=0;n<=e&&r<this.children.length;r++){let o=this.children[r],a=n+o.length;if(t<=a&&e>=n){let r=s&((n<=t?1:0)|(a>=e?2:0));n>=t&&a<=e&&!r?i.push(o):o.decompose(t-n,e-n,i,r)}n=a+1}}replace(t,e,i){if([t,e]=y(this,t,e),i.lines<this.lines)for(let s=0,r=0;s<this.children.length;s++){let n=this.children[s],o=r+n.length;if(t>=r&&e<=o){let a=n.replace(t-r,e-r,i),l=this.lines-n.lines+a.lines;if(a.lines<l>>4&&a.lines>l>>6){let r=this.children.slice();return r[s]=a,new d(r,this.length-(e-t)+i.length)}return super.replace(r,o,a)}r=o+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i="\n"){[t,e]=y(this,t,e);let s="";for(let r=0,n=0;r<this.children.length&&n<=e;r++){let o=this.children[r],a=n+o.length;n>t&&r&&(s+=i),t<a&&e>n&&(s+=o.sliceString(t-n,e-n,i)),n=a+1}return s}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof d))return 0;let i=0,[s,r,n,o]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;s+=e,r+=e){if(s==n||r==o)return i;let a=this.children[s],l=t.children[r];if(a!=l)return i+a.scanIdentical(l,e);i+=a.length+1}}static from(t,e=t.reduce((t,e)=>t+e.length+1,-1)){let i=0;for(let e of t)i+=e.lines;if(i<32){let i=[];for(let e of t)e.flatten(i);return new p(i,e)}let s=Math.max(32,i>>5),r=s<<1,n=s>>1,o=[],a=0,l=-1,h=[];function c(t){let e;if(t.lines>r&&t instanceof d)for(let e of t.children)c(e);else t.lines>n&&(a>n||!a)?(u(),o.push(t)):t instanceof p&&a&&(e=h[h.length-1])instanceof p&&t.lines+e.lines<=32?(a+=t.lines,l+=t.length+1,h[h.length-1]=new p(e.text.concat(t.text),e.length+1+t.length)):(a+t.lines>s&&u(),a+=t.lines,l+=t.length+1,h.push(t))}function u(){0!=a&&(o.push(1==h.length?h[0]:d.from(h,l)),l=-1,a=h.length=0)}for(let e of t)c(e);return u(),1==o.length?o[0]:new d(o,e)}}function O(t,e,i=0,s=1e9){for(let r=0,n=0,o=!0;n<t.length&&r<=s;n++){let a=t[n],l=r+a.length;l>=i&&(l>s&&(a=a.slice(0,s-r)),r<i&&(a=a.slice(i-r)),o?(e[e.length-1]+=a,o=!1):e.push(a)),r=l+1}return e}function f(t,e,i){return O(t,[""],e,i)}u.empty=new p([""],0);class m{constructor(t,e=1){this.dir=e,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[t],this.offsets=[e>0?1:(t instanceof p?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],n=r>>1,o=s instanceof p?s.text.length:s.children.length;if(n==(e>0?o:0)){if(0==i)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(e>0?0:1)){if(this.offsets[i]+=e,0==t)return this.lineBreak=!0,this.value="\n",this;t--}else if(s instanceof p){let r=s.text[n+(e<0?-1:0)];if(this.offsets[i]+=e,r.length>Math.max(0,t))return this.value=0==t?r:e>0?r.slice(t):r.slice(0,r.length-t),this;t-=r.length}else{let r=s.children[n+(e<0?-1:0)];t>r.length?(t-=r.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(r),this.offsets.push(e>0?1:(r instanceof p?r.text.length:r.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class g{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new m(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:s}=this.cursor.next(t);return this.pos+=(s.length+t)*e,this.value=s.length<=i?s:e<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class x{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:s}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(u.prototype[Symbol.iterator]=function(){return this.iter()},m.prototype[Symbol.iterator]=g.prototype[Symbol.iterator]=x.prototype[Symbol.iterator]=function(){return this});class v{constructor(t,e,i,s){this.from=t,this.to=e,this.number=i,this.text=s}get length(){return this.to-this.from}}function y(t,e,i){return[e=Math.max(0,Math.min(t.length,e)),Math.max(e,Math.min(t.length,i))]}function S(t,e,i=!0,s=!0){return r(t,e,i,s)}function b(t,e){let i=t.charCodeAt(e);if(!(s=i,s>=55296&&s<56320&&e+1!=t.length))return i;var s;let r=t.charCodeAt(e+1);return function(t){return t>=56320&&t<57344}(r)?r-56320+(i-55296<<10)+65536:i}const Q=/\r\n?|\n/;var w=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(w||(w={}));class k{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;e<this.sections.length;e+=2)t+=this.sections[e];return t}get newLength(){let t=0;for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e+1];t+=i<0?this.sections[e]:i}return t}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(t){for(let e=0,i=0,s=0;e<this.sections.length;){let r=this.sections[e++],n=this.sections[e++];n<0?(t(i,s,r),s+=r):s+=n,i+=r}}iterChangedRanges(t,e=!1){C(this,t,e)}get invertedDesc(){let t=[];for(let e=0;e<this.sections.length;){let i=this.sections[e++],s=this.sections[e++];s<0?t.push(i,s):t.push(s,i)}return new k(t)}composeDesc(t){return this.empty?t:t.empty?this:A(this,t)}mapDesc(t,e=!1){return t.empty?this:_(this,t,e)}mapPos(t,e=-1,i=w.Simple){let s=0,r=0;for(let n=0;n<this.sections.length;){let o=this.sections[n++],a=this.sections[n++],l=s+o;if(a<0){if(l>t)return r+(t-s);r+=o}else{if(i!=w.Simple&&l>=t&&(i==w.TrackDel&&s<t&&l>t||i==w.TrackBefore&&s<t||i==w.TrackAfter&&l>t))return null;if(l>t||l==t&&e<0&&!o)return t==s||e<0?r:r+a;r+=a}s=l}if(t>s)throw new RangeError(`Position ${t} is out of range for changeset of length ${s}`);return r}touchesRange(t,e=t){for(let i=0,s=0;i<this.sections.length&&s<=e;){let r=s+this.sections[i++];if(this.sections[i++]>=0&&s<=e&&r>=t)return!(s<t&&r>e)||"cover";s=r}return!1}toString(){let t="";for(let e=0;e<this.sections.length;){let i=this.sections[e++],s=this.sections[e++];t+=(t?" ":"")+i+(s>=0?":"+s:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(t=>"number"!=typeof t))throw new RangeError("Invalid JSON representation of ChangeDesc");return new k(t)}static create(t){return new k(t)}}class P extends k{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return C(this,(e,i,s,r,n)=>t=t.replace(s,s+(i-e),n),!1),t}mapDesc(t,e=!1){return _(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let s=0,r=0;s<e.length;s+=2){let n=e[s],o=e[s+1];if(o>=0){e[s]=o,e[s+1]=n;let a=s>>1;for(;i.length<a;)i.push(u.empty);i.push(n?t.slice(r,r+n):u.empty)}r+=n}return new P(e,i)}compose(t){return this.empty?t:t.empty?this:A(this,t,!0)}map(t,e=!1){return t.empty?this:_(this,t,e,!0)}iterChanges(t,e=!1){C(this,t,e)}get desc(){return k.create(this.sections)}filter(t){let e=[],i=[],s=[],r=new Z(this);t:for(let n=0,o=0;;){let a=n==t.length?1e9:t[n++];for(;o<a||o==a&&0==r.len;){if(r.done)break t;let t=Math.min(r.len,a-o);$(s,t,-1);let n=-1==r.ins?-1:0==r.off?r.ins:0;$(e,t,n),n>0&&T(i,e,r.text),r.forward(t),o+=t}let l=t[n++];for(;o<l;){if(r.done)break t;let t=Math.min(r.len,l-o);$(e,t,-1),$(s,t,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(t),o+=t}}return{changes:new P(e,i),filtered:k.create(s)}}toJSON(){let t=[];for(let e=0;e<this.sections.length;e+=2){let i=this.sections[e],s=this.sections[e+1];s<0?t.push(i):0==s?t.push([i]):t.push([i].concat(this.inserted[e>>1].toJSON()))}return t}static of(t,e,i){let s=[],r=[],n=0,o=null;function a(t=!1){if(!t&&!s.length)return;n<e&&$(s,e-n,-1);let i=new P(s,r);o=o?o.compose(i.map(o)):i,s=[],r=[],n=0}return function t(l){if(Array.isArray(l))for(let e of l)t(e);else if(l instanceof P){if(l.length!=e)throw new RangeError(`Mismatched change set length (got ${l.length}, expected ${e})`);a(),o=o?o.compose(l.map(o)):l}else{let{from:t,to:o=t,insert:h}=l;if(t>o||t<0||o>e)throw new RangeError(`Invalid change range ${t} to ${o} (in doc of length ${e})`);let c=h?"string"==typeof h?u.of(h.split(i||Q)):h:u.empty,p=c.length;if(t==o&&0==p)return;t<n&&a(),t>n&&$(s,t-n,-1),$(s,o-t,p),T(r,s,c),n=o}}(t),a(!o),o}static empty(t){return new P(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let s=0;s<t.length;s++){let r=t[s];if("number"==typeof r)e.push(r,-1);else{if(!Array.isArray(r)||"number"!=typeof r[0]||r.some((t,e)=>e&&"string"!=typeof t))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==r.length)e.push(r[0],0);else{for(;i.length<s;)i.push(u.empty);i[s]=u.of(r.slice(1)),e.push(r[0],i[s].length)}}}return new P(e,i)}static createSet(t,e){return new P(t,e)}}function $(t,e,i,s=!1){if(0==e&&i<=0)return;let r=t.length-2;r>=0&&i<=0&&i==t[r+1]?t[r]+=e:r>=0&&0==e&&0==t[r]?t[r+1]+=i:s?(t[r]+=e,t[r+1]+=i):t.push(e,i)}function T(t,e,i){if(0==i.length)return;let s=e.length-2>>1;if(s<t.length)t[t.length-1]=t[t.length-1].append(i);else{for(;t.length<s;)t.push(u.empty);t.push(i)}}function C(t,e,i){let s=t.inserted;for(let r=0,n=0,o=0;o<t.sections.length;){let a=t.sections[o++],l=t.sections[o++];if(l<0)r+=a,n+=a;else{let h=r,c=n,p=u.empty;for(;h+=a,c+=l,l&&s&&(p=p.append(s[o-2>>1])),!(i||o==t.sections.length||t.sections[o+1]<0);)a=t.sections[o++],l=t.sections[o++];e(r,h,n,c,p),r=h,n=c}}}function _(t,e,i,s=!1){let r=[],n=s?[]:null,o=new Z(t),a=new Z(e);for(let t=-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 t=Math.min(o.len,a.len);$(r,t,-1),o.forward(t),a.forward(t)}else if(a.ins>=0&&(o.ins<0||t==o.i||0==o.off&&(a.len<o.len||a.len==o.len&&!i))){let e=a.len;for($(r,a.ins,-1);e;){let i=Math.min(o.len,e);o.ins>=0&&t<o.i&&o.len<=i&&($(r,0,o.ins),n&&T(n,r,o.text),t=o.i),o.forward(i),e-=i}a.next()}else{if(!(o.ins>=0)){if(o.done&&a.done)return n?P.createSet(r,n):k.create(r);throw new Error("Mismatched change set lengths")}{let e=0,i=o.len;for(;i;)if(-1==a.ins){let t=Math.min(i,a.len);e+=t,i-=t,a.forward(t)}else{if(!(0==a.ins&&a.len<i))break;i-=a.len,a.next()}$(r,e,t<o.i?o.ins:0),n&&t<o.i&&T(n,r,o.text),t=o.i,o.forward(o.len-i)}}}}function A(t,e,i=!1){let s=[],r=i?[]:null,n=new Z(t),o=new Z(e);for(let t=!1;;){if(n.done&&o.done)return r?P.createSet(s,r):k.create(s);if(0==n.ins)$(s,n.len,0,t),n.next();else if(0!=o.len||o.done){if(n.done||o.done)throw new Error("Mismatched change set lengths");{let e=Math.min(n.len2,o.len),i=s.length;if(-1==n.ins){let i=-1==o.ins?-1:o.off?0:o.ins;$(s,e,i,t),r&&i&&T(r,s,o.text)}else-1==o.ins?($(s,n.off?0:n.len,e,t),r&&T(r,s,n.textBit(e))):($(s,n.off?0:n.len,o.off?0:o.ins,t),r&&!o.off&&T(r,s,o.text));t=(n.ins>e||o.ins>=0&&o.len>e)&&(t||s.length>i),n.forward2(e),o.forward(e)}}else $(s,0,o.ins,t),r&&T(r,s,o.text),o.next()}}class Z{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i<t.length?(this.len=t[this.i++],this.ins=t[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:t}=this.set,e=this.i-2>>1;return e>=t.length?u.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?u.empty:e[i].slice(this.off,null==t?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){-1==this.ins?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class X{constructor(t,e,i){this.from=t,this.to=e,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 t=7&this.flags;return 7==t?null:t}get goalColumn(){let t=this.flags>>6;return 16777215==t?void 0:t}map(t,e=-1){let i,s;return this.empty?i=s=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),s=t.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new X(i,s,this.flags)}extend(t,e=t,i=0){if(t<=this.anchor&&e>=this.anchor)return E.range(t,e,void 0,void 0,i);let s=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return E.range(this.anchor,s,void 0,void 0,i)}eq(t,e=!1){return!(this.anchor!=t.anchor||this.head!=t.head||this.goalColumn!=t.goalColumn||e&&this.empty&&this.assoc!=t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||"number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid JSON representation for SelectionRange");return E.range(t.anchor,t.head)}static create(t,e,i){return new X(t,e,i)}}class E{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:E.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(t.ranges[i],e))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new E([this.main],0)}addRange(t,e=!0){return E.create([t].concat(this.ranges),e?0:this.mainIndex+1)}replaceRange(t,e=this.mainIndex){let i=this.ranges.slice();return i[e]=t,E.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(t=>t.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||"number"!=typeof t.main||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new E(t.ranges.map(t=>X.fromJSON(t)),t.main)}static single(t,e=t){return new E([E.range(t,e)],0)}static create(t,e=0){if(0==t.length)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;s<t.length;s++){let r=t[s];if(r.empty?r.from<=i:r.from<i)return E.normalized(t.slice(),e);i=r.to}return new E(t,e)}static cursor(t,e=0,i,s){return X.create(t,t,(0==e?0:e<0?8:16)|(null==i?7:Math.min(6,i))|(null!=s?s:16777215)<<6)}static range(t,e,i,s,r){let n=(null!=i?i:16777215)<<6|(null==s?7:Math.min(6,s));return r||t==e||(r=e<t?1:-1),e<t?X.create(e,t,48|n):X.create(t,e,(r?r<0?8:16:0)|n)}static normalized(t,e=0){let i=t[e];t.sort((t,e)=>t.from-e.from),e=t.indexOf(i);for(let i=1;i<t.length;i++){let s=t[i],r=t[i-1];if(s.empty?s.from<=r.to:s.from<r.to){let n=r.from,o=Math.max(s.to,r.to);i<=e&&e--,t.splice(--i,2,s.anchor>s.head?E.range(o,n):E.range(n,o))}}return new E(t,e)}}function R(t,e){for(let i of t.ranges)if(i.to>e)throw new RangeError("Selection points outside of document")}let M=0;class V{constructor(t,e,i,s,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=s,this.id=M++,this.default=t([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(t={}){return new V(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(t.combine?(t,e)=>t===e:z),!!t.static,t.enables)}of(t){return new I([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new I(t,this,2,e)}from(t,e){return e||(e=t=>t),this.compute([t],i=>e(i.field(t)))}}function z(t,e){return t==e||t.length==e.length&&t.every((t,i)=>t===e[i])}class I{constructor(t,e,i,s){this.dependencies=t,this.facet=e,this.type=i,this.value=s,this.id=M++}dynamicSlot(t){var e;let i=this.value,s=this.facet.compareInput,r=this.id,n=t[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!==(e=t[i.id])&&void 0!==e?e:1)||h.push(t[i.id]);return{create:t=>(t.values[n]=i(t),1),update(t,e){if(a&&e.docChanged||l&&(e.docChanged||e.selection)||q(t,h)){let e=i(t);if(o?!Y(e,t.values[n],s):!s(e,t.values[n]))return t.values[n]=e,1}return 0},reconfigure:(t,e)=>{let a,l=e.config.address[r];if(null!=l){let r=it(e,l);if(this.dependencies.every(i=>i instanceof V?e.facet(i)===t.facet(i):!(i instanceof N)||e.field(i,!1)==t.field(i,!1))||(o?Y(a=i(t),r,s):s(a=i(t),r)))return t.values[n]=r,0}else a=i(t);return t.values[n]=a,1}}}}function Y(t,e,i){if(t.length!=e.length)return!1;for(let s=0;s<t.length;s++)if(!i(t[s],e[s]))return!1;return!0}function q(t,e){let i=!1;for(let s of e)1&et(t,s)&&(i=!0);return i}function D(t,e,i){let s=i.map(e=>t[e.id]),r=i.map(t=>t.type),n=s.filter(t=>!(1&t)),o=t[e.id]>>1;function a(t){let i=[];for(let e=0;e<s.length;e++){let n=it(t,s[e]);if(2==r[e])for(let t of n)i.push(t);else i.push(n)}return e.combine(i)}return{create(t){for(let e of s)et(t,e);return t.values[o]=a(t),1},update(t,i){if(!q(t,n))return 0;let s=a(t);return e.compare(s,t.values[o])?0:(t.values[o]=s,1)},reconfigure(t,r){let n=q(t,s),l=r.config.facets[e.id],h=r.facet(e);if(l&&!n&&z(i,l))return t.values[o]=h,0;let c=a(t);return e.compare(c,h)?(t.values[o]=h,0):(t.values[o]=c,1)}}}const L=V.define({static:!0});class N{constructor(t,e,i,s,r){this.id=t,this.createF=e,this.updateF=i,this.compareF=s,this.spec=r,this.provides=void 0}static define(t){let e=new N(M++,t.create,t.update,t.compare||((t,e)=>t===e),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(L).find(t=>t.field==this);return((null==e?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>(t.values[e]=this.create(t),1),update:(t,i)=>{let s=t.values[e],r=this.updateF(s,i);return this.compareF(s,r)?0:(t.values[e]=r,1)},reconfigure:(t,i)=>{let s,r=t.facet(L),n=i.facet(L);return(s=r.find(t=>t.field==this))&&s!=n.find(t=>t.field==this)?(t.values[e]=s.create(t),1):null!=i.config.address[this.id]?(t.values[e]=i.field(this),0):(t.values[e]=this.create(t),1)}}}init(t){return[this,L.of({field:this,create:t})]}get extension(){return this}}const W=4,j=3,B=2,G=1;function U(t){return e=>new H(e,t)}const F={highest:U(0),high:U(G),default:U(B),low:U(j),lowest:U(W)};class H{constructor(t,e){this.inner=t,this.prec=e}}class K{of(t){return new J(this,t)}reconfigure(t){return K.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class J{constructor(t,e){this.compartment=t,this.inner=e}}class tt{constructor(t,e,i,s,r,n){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=n,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(t){let e=this.address[t.id];return null==e?t.default:this.staticValues[e>>1]}static resolve(t,e,i){let s=[],r=Object.create(null),n=new Map;for(let i of function(t,e,i){let s=[[],[],[],[],[]],r=new Map;function n(t,o){let a=r.get(t);if(null!=a){if(a<=o)return;let e=s[a].indexOf(t);e>-1&&s[a].splice(e,1),t instanceof J&&i.delete(t.compartment)}if(r.set(t,o),Array.isArray(t))for(let e of t)n(e,o);else if(t instanceof J){if(i.has(t.compartment))throw new RangeError("Duplicate use of compartment in extensions");let s=e.get(t.compartment)||t.inner;i.set(t.compartment,s),n(s,o)}else if(t instanceof H)n(t.inner,t.prec);else if(t instanceof N)s[o].push(t),t.provides&&n(t.provides,o);else if(t instanceof I)s[o].push(t),t.facet.extensions&&n(t.facet.extensions,B);else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);n(e,o)}}return n(t,B),s.reduce((t,e)=>t.concat(e))}(t,e,n))i instanceof N?s.push(i):(r[i.facet.id]||(r[i.facet.id]=[])).push(i);let o=Object.create(null),a=[],l=[];for(let t of s)o[t.id]=l.length<<1,l.push(e=>t.slot(e));let h=null==i?void 0:i.config.facets;for(let t in r){let e=r[t],s=e[0].facet,n=h&&h[t]||[];if(e.every(t=>0==t.type))if(o[s.id]=a.length<<1|1,z(n,e))a.push(i.facet(s));else{let t=s.combine(e.map(t=>t.value));a.push(i&&s.compare(t,i.facet(s))?i.facet(s):t)}else{for(let t of e)0==t.type?(o[t.id]=a.length<<1|1,a.push(t.value)):(o[t.id]=l.length<<1,l.push(e=>t.dynamicSlot(e)));o[s.id]=l.length<<1,l.push(t=>D(t,s,e))}}let c=l.map(t=>t(o));return new tt(t,n,c,o,a,r)}}function et(t,e){if(1&e)return 2;let i=e>>1,s=t.status[i];if(4==s)throw new Error("Cyclic dependency between fields and/or facets");if(2&s)return s;t.status[i]=4;let r=t.computeSlot(t,t.config.dynamicSlots[i]);return t.status[i]=2|r}function it(t,e){return 1&e?t.config.staticValues[e>>1]:t.values[e>>1]}const st=V.define(),rt=V.define({combine:t=>t.some(t=>t),static:!0}),nt=V.define({combine:t=>t.length?t[0]:void 0,static:!0}),ot=V.define(),at=V.define(),lt=V.define(),ht=V.define({combine:t=>!!t.length&&t[0]});class ct{constructor(t,e){this.type=t,this.value=e}static define(){return new ut}}class ut{of(t){return new ct(this,t)}}class pt{constructor(t){this.map=t}of(t){return new dt(this,t)}}class dt{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return void 0===e?void 0:e==this.value?this:new dt(this.type,e)}is(t){return this.type==t}static define(t={}){return new pt(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let s of t){let t=s.map(e);t&&i.push(t)}return i}}dt.reconfigure=dt.define(),dt.appendConfig=dt.define();class Ot{constructor(t,e,i,s,r,n){this.startState=t,this.changes=e,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=n,this._doc=null,this._state=null,i&&R(i,e.newLength),r.some(t=>t.type==Ot.time)||(this.annotations=r.concat(Ot.time.of(Date.now())))}static create(t,e,i,s,r,n){return new Ot(t,e,i,s,r,n)}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(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(Ot.userEvent);return!(!e||!(e==t||e.length>t.length&&e.slice(0,t.length)==t&&"."==e[t.length]))}}function ft(t,e){let i=[];for(let s=0,r=0;;){let n,o;if(s<t.length&&(r==e.length||e[r]>=t[s]))n=t[s++],o=t[s++];else{if(!(r<e.length))return i;n=e[r++],o=e[r++]}!i.length||i[i.length-1]<n?i.push(n,o):i[i.length-1]<o&&(i[i.length-1]=o)}}function mt(t,e,i){var s;let r,n,o;return i?(r=e.changes,n=P.empty(e.changes.length),o=t.changes.compose(e.changes)):(r=e.changes.map(t.changes),n=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(r)),{changes:o,selection:e.selection?e.selection.map(n):null===(s=t.selection)||void 0===s?void 0:s.map(r),effects:dt.mapEffects(t.effects,r).concat(dt.mapEffects(e.effects,n)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function gt(t,e,i){let s=e.selection,r=yt(e.annotations);return e.userEvent&&(r=r.concat(Ot.userEvent.of(e.userEvent))),{changes:e.changes instanceof P?e.changes:P.of(e.changes||[],i,t.facet(nt)),selection:s&&(s instanceof E?s:E.single(s.anchor,s.head)),effects:yt(e.effects),annotations:r,scrollIntoView:!!e.scrollIntoView}}function xt(t,e,i){let s=gt(t,e.length?e[0]:{},t.doc.length);e.length&&!1===e[0].filter&&(i=!1);for(let r=1;r<e.length;r++){!1===e[r].filter&&(i=!1);let n=!!e[r].sequential;s=mt(s,gt(t,e[r],n?s.changes.newLength:t.doc.length),n)}let r=Ot.create(t,s.changes,s.selection,s.effects,s.annotations,s.scrollIntoView);return function(t){let e=t.startState,i=e.facet(lt),s=t;for(let r=i.length-1;r>=0;r--){let n=i[r](t);n&&Object.keys(n).length&&(s=mt(s,gt(e,n,t.changes.newLength),!0))}return s==t?t:Ot.create(e,t.changes,t.selection,s.effects,s.annotations,s.scrollIntoView)}(i?function(t){let e=t.startState,i=!0;for(let s of e.facet(ot)){let e=s(t);if(!1===e){i=!1;break}Array.isArray(e)&&(i=!0===i?e:ft(i,e))}if(!0!==i){let s,r;if(!1===i)r=t.changes.invertedDesc,s=P.empty(e.doc.length);else{let e=t.changes.filter(i);s=e.changes,r=e.filtered.mapDesc(e.changes).invertedDesc}t=Ot.create(e,s,t.selection&&t.selection.map(r),dt.mapEffects(t.effects,r),t.annotations,t.scrollIntoView)}let s=e.facet(at);for(let i=s.length-1;i>=0;i--){let r=s[i](t);t=r instanceof Ot?r:Array.isArray(r)&&1==r.length&&r[0]instanceof Ot?r[0]:xt(e,yt(r),!1)}return t}(r):r)}Ot.time=ct.define(),Ot.userEvent=ct.define(),Ot.addToHistory=ct.define(),Ot.remote=ct.define();const vt=[];function yt(t){return null==t?vt:Array.isArray(t)?t:[t]}var St=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(St||(St={}));const bt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Qt;try{Qt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(t){}function wt(t){return e=>{if(!/\S/.test(e))return St.Space;if(function(t){if(Qt)return Qt.test(t);for(let e=0;e<t.length;e++){let i=t[e];if(/\w/.test(i)||i>"€"&&(i.toUpperCase()!=i.toLowerCase()||bt.test(i)))return!0}return!1}(e))return St.Word;for(let i=0;i<t.length;i++)if(e.indexOf(t[i])>-1)return St.Word;return St.Other}}class kt{constructor(t,e,i,s,r,n){this.config=t,this.doc=e,this.selection=i,this.values=s,this.status=t.statusTemplate.slice(),this.computeSlot=r,n&&(n._state=this);for(let t=0;t<this.config.dynamicSlots.length;t++)et(this,t<<1);this.computeSlot=null}field(t,e=!0){let i=this.config.address[t.id];if(null!=i)return et(this,i),it(this,i);if(e)throw new RangeError("Field is not present in this state")}update(...t){return xt(this,t,!0)}applyTransaction(t){let e,i=this.config,{base:s,compartments:r}=i;for(let e of t.effects)e.is(K.reconfigure)?(i&&(r=new Map,i.compartments.forEach((t,e)=>r.set(e,t)),i=null),r.set(e.value.compartment,e.value.extension)):e.is(dt.reconfigure)?(i=null,s=e.value):e.is(dt.appendConfig)&&(i=null,s=yt(s).concat(e.value));if(i)e=t.startState.values.slice();else{i=tt.resolve(s,r,this),e=new kt(i,this.doc,this.selection,i.dynamicSlots.map(()=>null),(t,e)=>e.reconfigure(t,this),null).values}let n=t.startState.facet(rt)?t.newSelection:t.newSelection.asSingle();new kt(i,t.newDoc,n,e,(e,i)=>i.update(e,t),t)}replaceSelection(t){return"string"==typeof t&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:E.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),s=this.changes(i.changes),r=[i.range],n=yt(i.effects);for(let i=1;i<e.ranges.length;i++){let o=t(e.ranges[i]),a=this.changes(o.changes),l=a.map(s);for(let t=0;t<i;t++)r[t]=r[t].map(l);let h=s.mapDesc(a,!0);r.push(o.range.map(h)),s=s.compose(l),n=dt.mapEffects(n,l).concat(dt.mapEffects(yt(o.effects),h))}return{changes:s,selection:E.create(r,e.mainIndex),effects:n}}changes(t=[]){return t instanceof P?t:P.of(t,this.doc.length,this.facet(kt.lineSeparator))}toText(t){return u.of(t.split(this.facet(kt.lineSeparator)||Q))}sliceDoc(t=0,e=this.doc.length){return this.doc.sliceString(t,e,this.lineBreak)}facet(t){let e=this.config.address[t.id];return null==e?t.default:(et(this,e),it(this,e))}toJSON(t){let e={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(t)for(let i in t){let s=t[i];s instanceof N&&null!=this.config.address[s.id]&&(e[i]=s.spec.toJSON(this.field(t[i]),this))}return e}static fromJSON(t,e={},i){if(!t||"string"!=typeof t.doc)throw new RangeError("Invalid JSON representation for EditorState");let s=[];if(i)for(let e in i)if(Object.prototype.hasOwnProperty.call(t,e)){let r=i[e],n=t[e];s.push(r.init(t=>r.spec.fromJSON(n,t)))}return kt.create({doc:t.doc,selection:E.fromJSON(t.selection),extensions:e.extensions?s.concat([e.extensions]):s})}static create(t={}){let e=tt.resolve(t.extensions||[],new Map),i=t.doc instanceof u?t.doc:u.of((t.doc||"").split(e.staticFacet(kt.lineSeparator)||Q)),s=t.selection?t.selection instanceof E?t.selection:E.single(t.selection.anchor,t.selection.head):E.single(0);return R(s,i.length),e.staticFacet(rt)||(s=s.asSingle()),new kt(e,i,s,e.dynamicSlots.map(()=>null),(t,e)=>e.create(t),null)}get tabSize(){return this.facet(kt.tabSize)}get lineBreak(){return this.facet(kt.lineSeparator)||"\n"}get readOnly(){return this.facet(ht)}phrase(t,...e){for(let e of this.facet(kt.phrases))if(Object.prototype.hasOwnProperty.call(e,t)){t=e[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(t,i)=>{if("$"==i)return"$";let s=+(i||1);return!s||s>e.length?t:e[s-1]})),t}languageDataAt(t,e,i=-1){let s=[];for(let r of this.facet(st))for(let n of r(this,e,i))Object.prototype.hasOwnProperty.call(n,t)&&s.push(n[t]);return s}charCategorizer(t){let e=this.languageDataAt("wordChars",t);return wt(e.length?e[0]:"")}wordAt(t){let{text:e,from:i,length:s}=this.doc.lineAt(t),r=this.charCategorizer(t),n=t-i,o=t-i;for(;n>0;){let t=S(e,n,!1);if(r(e.slice(t,n))!=St.Word)break;n=t}for(;o<s;){let t=S(e,o);if(r(e.slice(o,t))!=St.Word)break;o=t}return n==o?null:E.range(n+i,o+i)}}function Pt(t,e,i={}){let s={};for(let e of t)for(let t of Object.keys(e)){let r=e[t],n=s[t];if(void 0===n)s[t]=r;else if(n===r||void 0===r);else{if(!Object.hasOwnProperty.call(i,t))throw new Error("Config merge conflict for field "+t);s[t]=i[t](n,r)}}for(let t in e)void 0===s[t]&&(s[t]=e[t]);return s}kt.allowMultipleSelections=rt,kt.tabSize=V.define({combine:t=>t.length?t[0]:4}),kt.lineSeparator=nt,kt.readOnly=ht,kt.phrases=V.define({compare(t,e){let i=Object.keys(t),s=Object.keys(e);return i.length==s.length&&i.every(i=>t[i]==e[i])}}),kt.languageData=st,kt.changeFilter=ot,kt.transactionFilter=at,kt.transactionExtender=lt,K.reconfigure=dt.define();class $t{eq(t){return this==t}range(t,e=t){return Ct.create(t,e,this)}}function Tt(t,e){return t==e||t.constructor==e.constructor&&t.eq(e)}$t.prototype.startSide=$t.prototype.endSide=0,$t.prototype.point=!1,$t.prototype.mapMode=w.TrackDel;let Ct=class t{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(e,i,s){return new t(e,i,s)}};function _t(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class At{constructor(t,e,i,s){this.from=t,this.to=e,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,s=0){let r=i?this.to:this.from;for(let n=s,o=r.length;;){if(n==o)return n;let s=n+o>>1,a=r[s]-t||(i?this.value[s].endSide:this.value[s].startSide)-e;if(s==n)return a>=0?n:o;a>=0?o=s:n=s+1}}between(t,e,i,s){for(let r=this.findIndex(e,-1e9,!0),n=this.findIndex(i,1e9,!1,r);r<n;r++)if(!1===s(this.from[r]+t,this.to[r]+t,this.value[r]))return!1}map(t,e){let i=[],s=[],r=[],n=-1,o=-1;for(let a=0;a<this.value.length;a++){let l,h,c=this.value[a],u=this.from[a]+t,p=this.to[a]+t;if(u==p){let t=e.mapPos(u,c.startSide,c.mapMode);if(null==t)continue;if(l=h=t,c.startSide!=c.endSide&&(h=e.mapPos(u,c.endSide),h<l))continue}else if(l=e.mapPos(u,c.startSide),h=e.mapPos(p,c.endSide),l>h||l==h&&c.startSide>0&&c.endSide<=0)continue;(h-l||c.endSide-c.startSide)<0||(n<0&&(n=l),c.point&&(o=Math.max(o,h-l)),i.push(c),s.push(l-n),r.push(h-n))}return{mapped:i.length?new At(s,r,i,o):null,pos:n}}}class Zt{constructor(t,e,i,s){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=s}static create(t,e,i,s){return new Zt(t,e,i,s)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=t,n=t.filter;if(0==e.length&&!n)return this;if(i&&(e=e.slice().sort(_t)),this.isEmpty)return e.length?Zt.of(e):this;let o=new Rt(this,null,-1).goto(0),a=0,l=[],h=new Xt;for(;o.value||a<e.length;)if(a<e.length&&(o.from-e[a].from||o.startSide-e[a].value.startSide)>=0){let t=e[a++];h.addInner(t.from,t.to,t.value)||l.push(t)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(a==e.length||this.chunkEnd(o.chunkIndex)<e[a].from)&&(!n||s>this.chunkEnd(o.chunkIndex)||r<this.chunkPos[o.chunkIndex])&&h.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!n||s>o.to||r<o.from||n(o.from,o.to,o.value))&&(h.addInner(o.from,o.to,o.value)||l.push(Ct.create(o.from,o.to,o.value))),o.next());return h.finishInner(this.nextLayer.isEmpty&&!l.length?Zt.empty:this.nextLayer.update({add:l,filter:n,filterFrom:s,filterTo:r}))}map(t){if(t.empty||this.isEmpty)return this;let e=[],i=[],s=-1;for(let r=0;r<this.chunk.length;r++){let n=this.chunkPos[r],o=this.chunk[r],a=t.touchesRange(n,n+o.length);if(!1===a)s=Math.max(s,o.maxPoint),e.push(o),i.push(t.mapPos(n));else if(!0===a){let{mapped:r,pos:a}=o.map(n,t);r&&(s=Math.max(s,r.maxPoint),e.push(r),i.push(a))}}let r=this.nextLayer.map(t);return 0==e.length?r:new Zt(i,e,r||Zt.empty,s)}between(t,e,i){if(!this.isEmpty){for(let s=0;s<this.chunk.length;s++){let r=this.chunkPos[s],n=this.chunk[s];if(e>=r&&t<=r+n.length&&!1===n.between(r,t-r,e-r,i))return}this.nextLayer.between(t,e,i)}}iter(t=0){return Mt.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return Mt.from(t).goto(e)}static compare(t,e,i,s,r=-1){let n=t.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),o=e.filter(t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=r),a=Et(n,o,i),l=new zt(n,a,r),h=new zt(o,a,r);i.iterGaps((t,e,i)=>It(l,t,h,e,i,s)),i.empty&&0==i.length&&It(l,0,h,0,0,s)}static eq(t,e,i=0,s){null==s&&(s=999999999);let r=t.filter(t=>!t.isEmpty&&e.indexOf(t)<0),n=e.filter(e=>!e.isEmpty&&t.indexOf(e)<0);if(r.length!=n.length)return!1;if(!r.length)return!0;let o=Et(r,n),a=new zt(r,o,0).goto(i),l=new zt(n,o,0).goto(i);for(;;){if(a.to!=l.to||!Yt(a.active,l.active)||a.point&&(!l.point||!Tt(a.point,l.point)))return!1;if(a.to>s)return!0;a.next(),l.next()}}static spans(t,e,i,s,r=-1){let n=new zt(t,null,r).goto(e),o=e,a=n.openStart;for(;;){let t=Math.min(n.to,i);if(n.point){let i=n.activeForPoint(n.to),r=n.pointFrom<e?i.length+1:n.point.startSide<0?i.length:Math.min(i.length,a);s.point(o,t,n.point,i,r,n.pointRank),a=Math.min(n.openEnd(t),i.length)}else t>o&&(s.span(o,t,n.active,a),a=n.openEnd(t));if(n.to>i)return a+(n.point&&n.to>i?1:0);o=n.to,n.next()}}static of(t,e=!1){let i=new Xt;for(let s of t instanceof Ct?[t]:e?function(t){if(t.length>1)for(let e=t[0],i=1;i<t.length;i++){let s=t[i];if(_t(e,s)>0)return t.slice().sort(_t);e=s}return t}(t):t)i.add(s.from,s.to,s.value);return i.finish()}static join(t){if(!t.length)return Zt.empty;let e=t[t.length-1];for(let i=t.length-2;i>=0;i--)for(let s=t[i];s!=Zt.empty;s=s.nextLayer)e=new Zt(s.chunkPos,s.chunk,e,Math.max(s.maxPoint,e.maxPoint));return e}}Zt.empty=new Zt([],[],null,-1),Zt.empty.nextLayer=Zt.empty;class Xt{finishChunk(t){this.chunks.push(new At(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,t&&(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(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new Xt)).add(t,e,i)}addInner(t,e,i){let s=t-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(s<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(Zt.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return t;let e=Zt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function Et(t,e,i){let s=new Map;for(let e of t)for(let t=0;t<e.chunk.length;t++)e.chunk[t].maxPoint<=0&&s.set(e.chunk[t],e.chunkPos[t]);let r=new Set;for(let t of e)for(let e=0;e<t.chunk.length;e++){let n=s.get(t.chunk[e]);null==n||(i?i.mapPos(n):n)!=t.chunkPos[e]||(null==i?void 0:i.touchesRange(n,n+t.chunk[e].length))||r.add(t.chunk[e])}return r}class Rt{constructor(t,e,i,s=0){this.layer=t,this.skip=e,this.minPoint=i,this.rank=s}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(t,e=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(t,e,!1),this}gotoInner(t,e,i){for(;this.chunkIndex<this.layer.chunk.length;){let e=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(e)||this.layer.chunkEnd(this.chunkIndex)<t||e.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let s=this.layer.chunk[this.chunkIndex].findIndex(t-this.layer.chunkPos[this.chunkIndex],e,!0);(!i||this.rangeIndex<s)&&this.setRangeIndex(s)}this.next()}forward(t,e){(this.to-t||this.endSide-e)<0&&this.gotoInner(t,e,!0)}next(){for(;;){if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}{let t=this.layer.chunkPos[this.chunkIndex],e=this.layer.chunk[this.chunkIndex],i=t+e.from[this.rangeIndex];if(this.from=i,this.to=t+e.to[this.rangeIndex],this.value=e.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}}setRangeIndex(t){if(t==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=t}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(t){return this.from-t.from||this.startSide-t.startSide||this.rank-t.rank||this.to-t.to||this.endSide-t.endSide}}class Mt{constructor(t){this.heap=t}static from(t,e=null,i=-1){let s=[];for(let r=0;r<t.length;r++)for(let n=t[r];!n.isEmpty;n=n.nextLayer)n.maxPoint>=i&&s.push(new Rt(n,e,i,r));return 1==s.length?s[0]:new Mt(s)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let t=this.heap.length>>1;t>=0;t--)Vt(this.heap,t);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let t=this.heap.length>>1;t>=0;t--)Vt(this.heap,t);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Vt(this.heap,0)}}}function Vt(t,e){for(let i=t[e];;){let s=1+(e<<1);if(s>=t.length)break;let r=t[s];if(s+1<t.length&&r.compare(t[s+1])>=0&&(r=t[s+1],s++),i.compare(r)<0)break;t[s]=i,t[e]=r,e=s}}class zt{constructor(t,e,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=Mt.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){qt(this.active,t),qt(this.activeTo,t),qt(this.activeRank,t),this.minActive=Lt(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:s,rank:r}=this.cursor;for(;e<this.activeRank.length&&(r-this.activeRank[e]||s-this.activeTo[e])>0;)e++;Dt(this.active,e,i),Dt(this.activeTo,e,s),Dt(this.activeRank,e,r),t&&Dt(t,e,this.cursor.from),this.minActive=Lt(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>t){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&qt(i,s)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let t=this.cursor.value;if(t.point){if(!(e&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)){this.point=t,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=t.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 e=i.length-1;e>=0&&i[e]<t;e--)this.openStart++}}activeForPoint(t){if(!this.active.length)return this.active;let e=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function It(t,e,i,s,r,n){t.goto(e),i.goto(s);let o=s+r,a=s,l=s-e,h=!!n.boundChange;for(let e=!1;;){let s=t.to+l-i.to,r=s||t.endSide-i.endSide,c=r<0?t.to+l:i.to,u=Math.min(c,o);if(t.point||i.point?(t.point&&i.point&&Tt(t.point,i.point)&&Yt(t.activeForPoint(t.to),i.activeForPoint(i.to))||n.comparePoint(a,u,t.point,i.point),e=!1):(e&&n.boundChange(a),u>a&&!Yt(t.active,i.active)&&n.compareRange(a,u,t.active,i.active),h&&u<o&&(s||t.openEnd(c)!=i.openEnd(c))&&(e=!0)),c>o)break;a=c,r<=0&&t.next(),r>=0&&i.next()}}function Yt(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(t[i]!=e[i]&&!Tt(t[i],e[i]))return!1;return!0}function qt(t,e){for(let i=e,s=t.length-1;i<s;i++)t[i]=t[i+1];t.pop()}function Dt(t,e,i){for(let i=t.length-1;i>=e;i--)t[i+1]=t[i];t[e]=i}function Lt(t,e){let i=-1,s=1e9;for(let r=0;r<e.length;r++)(e[r]-s||t[r].endSide-t[i].endSide)<0&&(i=r,s=e[r]);return i}function Nt(t,e,i=t.length){let s=0;for(let r=0;r<i&&r<t.length;)9==t.charCodeAt(r)?(s+=e-s%e,r++):(s++,r=S(t,r));return s}const Wt="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),jt="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),Bt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class Gt{constructor(t,e){this.rules=[];let{finish:i}=e||{};function s(t){return/^@/.test(t)?[t]:t.split(/,\s*/)}function r(t,e,n,o){let a=[],l=/^@(\w+)\b/.exec(t[0]),h=l&&"keyframes"==l[1];if(l&&null==e)return n.push(t[0]+";");for(let i in e){let o=e[i];if(/&/.test(i))r(i.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((t,e)=>t.concat(e)),o,n);else if(o&&"object"==typeof o){if(!l)throw new RangeError("The value of a property ("+i+") should be a primitive value.");r(s(i),o,a,h)}else null!=o&&a.push(i.replace(/_.*/,"").replace(/[A-Z]/g,t=>"-"+t.toLowerCase())+": "+o+";")}(a.length||h)&&n.push((!i||l||o?t:t.map(i)).join(", ")+" {"+a.join(" ")+"}")}for(let e in t)r(s(e),t[e],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let t=Bt[Wt]||1;return Bt[Wt]=t+1,"ͼ"+t.toString(36)}static mount(t,e,i){let s=t[jt],r=i&&i.nonce;s?r&&s.setNonce(r):s=new Ft(t,r),s.mount(Array.isArray(e)?e:[e],t)}}let Ut=new Map;class Ft{constructor(t,e){let i=t.ownerDocument||t,s=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&s.CSSStyleSheet){let e=Ut.get(i);if(e)return t[jt]=e;this.sheet=new s.CSSStyleSheet,Ut.set(i,this)}else this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[jt]=this}mount(t,e){let i=this.sheet,s=0,r=0;for(let e=0;e<t.length;e++){let n=t[e],o=this.modules.indexOf(n);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,n),i)for(let t=0;t<n.rules.length;t++)i.insertRule(n.rules[t],s++)}else{for(;r<o;)s+=this.modules[r++].rules.length;s+=n.rules.length,r++}}if(i)e.adoptedStyleSheets.indexOf(this.sheet)<0&&(e.adoptedStyleSheets=[this.sheet,...e.adoptedStyleSheets]);else{let t="";for(let e=0;e<this.modules.length;e++)t+=this.modules[e].getRules()+"\n";this.styleTag.textContent=t;let i=e.head||e;this.styleTag.parentNode!=i&&i.insertBefore(this.styleTag,i.firstChild)}}setNonce(t){this.styleTag&&this.styleTag.getAttribute("nonce")!=t&&this.styleTag.setAttribute("nonce",t)}}for(var Ht={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:"'"},Kt={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Jt="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),te="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),ee=0;ee<10;ee++)Ht[48+ee]=Ht[96+ee]=String(ee);for(ee=1;ee<=24;ee++)Ht[ee+111]="F"+ee;for(ee=65;ee<=90;ee++)Ht[ee]=String.fromCharCode(ee+32),Kt[ee]=String.fromCharCode(ee);for(var ie in Ht)Kt.hasOwnProperty(ie)||(Kt[ie]=Ht[ie]);let se="undefined"!=typeof navigator?navigator:{userAgent:"",vendor:"",platform:""},re="undefined"!=typeof document?document:{documentElement:{style:{}}};const ne=/Edge\/(\d+)/.exec(se.userAgent),oe=/MSIE \d/.test(se.userAgent),ae=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(se.userAgent),le=!!(oe||ae||ne),he=!le&&/gecko\/(\d+)/i.test(se.userAgent),ce=!le&&/Chrome\/(\d+)/.exec(se.userAgent),ue="webkitFontSmoothing"in re.documentElement.style,pe=!le&&/Apple Computer/.test(se.vendor),de=pe&&(/Mobile\/\w+/.test(se.userAgent)||se.maxTouchPoints>2);var Oe={mac:de||/Mac/.test(se.platform),windows:/Win/.test(se.platform),linux:/Linux|X11/.test(se.platform),ie:le,ie_version:oe?re.documentMode||6:ae?+ae[1]:ne?+ne[1]:0,gecko:he,gecko_version:he?+(/Firefox\/(\d+)/.exec(se.userAgent)||[0,0])[1]:0,chrome:!!ce,chrome_version:ce?+ce[1]:0,ios:de,android:/Android\b/.test(se.userAgent),webkit:ue,webkit_version:ue?+(/\bAppleWebKit\/(\d+)/.exec(se.userAgent)||[0,0])[1]:0,safari:pe,safari_version:pe?+(/\bVersion\/(\d+(\.\d+)?)/.exec(se.userAgent)||[0,0])[1]:0,tabSize:null!=re.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};function fe(t,e){for(let i in t)"class"==i&&e.class?e.class+=" "+t.class:"style"==i&&e.style?e.style+=";"+t.style:e[i]=t[i];return e}const me=Object.create(null);function ge(t,e,i){if(t==e)return!0;t||(t=me),e||(e=me);let s=Object.keys(t),r=Object.keys(e);if(s.length-(i&&s.indexOf(i)>-1?1:0)!=r.length-(i&&r.indexOf(i)>-1?1:0))return!1;for(let n of s)if(n!=i&&(-1==r.indexOf(n)||t[n]!==e[n]))return!1;return!0}function xe(t,e,i){let s=!1;if(e)for(let r in e)i&&r in i||(s=!0,"style"==r?t.style.cssText="":t.removeAttribute(r));if(i)for(let r in i)e&&e[r]==i[r]||(s=!0,"style"==r?t.style.cssText=i[r]:t.setAttribute(r,i[r]));return s}function ve(t){let e=Object.create(null);for(let i=0;i<t.attributes.length;i++){let s=t.attributes[i];e[s.name]=s.value}return e}class ye{eq(t){return!1}updateDOM(t,e,i){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Se=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Se||(Se={}));class be extends $t{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new Qe(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),i=!!t.block;return e+=i&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new ke(t,e,e,i,t.widget||null,!1)}static replace(t){let e,i,s=!!t.block;if(t.isBlockGap)e=-5e8,i=4e8;else{let{start:r,end:n}=Pe(t,s);e=(r?s?-3e8:-1:5e8)-1,i=1+(n?s?2e8:1:-6e8)}return new ke(t,e,i,s,t.widget||null,!0)}static line(t){return new we(t)}static set(t,e=!1){return Zt.of(t,e)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}be.none=Zt.empty;class Qe extends be{constructor(t){let{start:e,end:i}=Pe(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.attrs=t.class&&t.attributes?fe(t.attributes,{class:t.class}):t.class?{class:t.class}:t.attributes||me}eq(t){return this==t||t instanceof Qe&&this.tagName==t.tagName&&ge(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}Qe.prototype.point=!1;class we extends be{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof we&&this.spec.class==t.spec.class&&ge(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}we.prototype.mapMode=w.TrackBefore,we.prototype.point=!0;class ke extends be{constructor(t,e,i,s,r,n){super(e,i,r,t),this.block=s,this.isReplace=n,this.mapMode=s?e<=0?w.TrackBefore:w.TrackAfter:w.TrackDel}get type(){return this.startSide!=this.endSide?Se.WidgetRange:this.startSide<=0?Se.WidgetBefore:Se.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof ke&&(e=this.widget,i=t.widget,e==i||!!(e&&i&&e.compare(i)))&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide;var e,i}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}function Pe(t,e=!1){let{inclusiveStart:i,inclusiveEnd:s}=t;return null==i&&(i=t.inclusive),null==s&&(s=t.inclusive),{start:null!=i?i:e,end:null!=s?s:e}}function $e(t,e,i,s=0){let r=i.length-1;r>=0&&i[r]+s>=t?i[r]=Math.max(i[r],e):i.push(t,e)}ke.prototype.point=!0;class Te extends $t{constructor(t,e){super(),this.tagName=t,this.attributes=e}eq(t){return t==this||t instanceof Te&&this.tagName==t.tagName&&ge(this.attributes,t.attributes)}static create(t){return new Te(t.tagName,t.attributes||me)}static set(t,e=!1){return Zt.of(t,e)}}function Ce(t){let e;return e=11==t.nodeType?t.getSelection?t:t.ownerDocument:t,e.getSelection()}function _e(t,e){return!!e&&(t==e||t.contains(1!=e.nodeType?e.parentNode:e))}function Ae(t,e){if(!e.anchorNode)return!1;try{return _e(t,e.anchorNode)}catch(t){return!1}}function Ze(t){return 3==t.nodeType?je(t,0,t.nodeValue.length).getClientRects():1==t.nodeType?t.getClientRects():[]}function Xe(t,e,i,s){return!!i&&(Me(t,e,i,s,-1)||Me(t,e,i,s,1))}function Ee(t){for(var e=0;;e++)if(!(t=t.previousSibling))return e}function Re(t){return 1==t.nodeType&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function Me(t,e,i,s,r){for(;;){if(t==i&&e==s)return!0;if(e==(r<0?0:Ve(t))){if("DIV"==t.nodeName)return!1;let i=t.parentNode;if(!i||1!=i.nodeType)return!1;e=Ee(t)+(r<0?0:1),t=i}else{if(1!=t.nodeType)return!1;if(1==(t=t.childNodes[e+(r<0?-1:0)]).nodeType&&"false"==t.contentEditable)return!1;e=r<0?Ve(t):0}}}function Ve(t){return 3==t.nodeType?t.nodeValue.length:t.childNodes.length}function ze(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function Ie(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function Ye(t,e){let i=e.width/t.offsetWidth,s=e.height/t.offsetHeight;return(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.width-t.offsetWidth)<1)&&(i=1),(s>.995&&s<1.005||!isFinite(s)||Math.abs(e.height-t.offsetHeight)<1)&&(s=1),{scaleX:i,scaleY:s}}function qe(t,e=!0){let i=t.ownerDocument,s=null,r=null;for(let n=t.parentNode;n&&(n!=i.body&&(e&&!s||!r));)if(1==n.nodeType)!r&&n.scrollHeight>n.clientHeight&&(r=n),e&&!s&&n.scrollWidth>n.clientWidth&&(s=n),n=n.assignedSlot||n.parentNode;else{if(11!=n.nodeType)break;n=n.host}return{x:s,y:r}}Te.prototype.startSide=Te.prototype.endSide=-1;class De{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?Ve(e):0),i,Math.min(t.focusOffset,i?Ve(i):0))}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let Le,Ne=null;function We(t){if(t.setActive)return t.setActive();if(Ne)return t.focus(Ne);let e=[];for(let i=t;i&&(e.push(i,i.scrollTop,i.scrollLeft),i!=i.ownerDocument);i=i.parentNode);if(t.focus(null==Ne?{get preventScroll(){return Ne={preventScroll:!0},!0}}:void 0),!Ne){Ne=!1;for(let t=0;t<e.length;){let i=e[t++],s=e[t++],r=e[t++];i.scrollTop!=s&&(i.scrollTop=s),i.scrollLeft!=r&&(i.scrollLeft=r)}}}function je(t,e,i=e){let s=Le||(Le=document.createRange());return s.setEnd(t,i),s.setStart(t,e),s}function Be(t,e,i,s){let r={key:e,code:e,keyCode:i,which:i,cancelable:!0};s&&({altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey}=s);let n=new KeyboardEvent("keydown",r);n.synthetic=!0,t.dispatchEvent(n);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,t.dispatchEvent(o),n.defaultPrevented||o.defaultPrevented}function Ge(t){return t instanceof Window?t.pageYOffset>Math.max(0,t.document.documentElement.scrollHeight-t.innerHeight-4):t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function Ue(t,e){for(let i=t,s=e;;){if(3==i.nodeType&&s>0)return{node:i,offset:s};if(1==i.nodeType&&s>0){if("false"==i.contentEditable)return null;i=i.childNodes[s-1],s=Ve(i)}else{if(!i.parentNode||Re(i))return null;s=Ee(i),i=i.parentNode}}}function Fe(t,e){for(let i=t,s=e;;){if(3==i.nodeType&&s<i.nodeValue.length)return{node:i,offset:s};if(1==i.nodeType&&s<i.childNodes.length){if("false"==i.contentEditable)return null;i=i.childNodes[s],s=0}else{if(!i.parentNode||Re(i))return null;s=Ee(i)+1,i=i.parentNode}}}Oe.safari&&Oe.safari_version>=26&&(Ne=!1);class He{constructor(t,e,i=!0){this.node=t,this.offset=e,this.precise=i}static before(t,e){return new He(t.parentNode,Ee(t),e)}static after(t,e){return new He(t.parentNode,Ee(t)+1,e)}}var Ke=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Ke||(Ke={}));const Je=Ke.LTR,ti=Ke.RTL;function ei(t){let e=[];for(let i=0;i<t.length;i++)e.push(1<<+t[i]);return e}const ii=ei("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),si=ei("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),ri=Object.create(null),ni=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),i=t.charCodeAt(1);ri[e]=i,ri[i]=-e}function oi(t){return t<=247?ii[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?si[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const ai=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class li{get dir(){return this.level%2?ti:Je}constructor(t,e,i){this.from=t,this.to=e,this.level=i}side(t,e){return this.dir==e==t?this.to:this.from}forward(t,e){return t==(this.dir==e)}static find(t,e,i,s){let r=-1;for(let n=0;n<t.length;n++){let o=t[n];if(o.from<=e&&o.to>=e){if(o.level==i)return n;(r<0||(0!=s?s<0?o.from<e:o.to>e:t[r].level>o.level))&&(r=n)}}if(r<0)throw new RangeError("Index out of range");return r}}function hi(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=e[i];if(s.from!=r.from||s.to!=r.to||s.direction!=r.direction||!hi(s.inner,r.inner))return!1}return!0}const ci=[];function ui(t,e,i,s,r,n,o){let a=s%2?2:1;if(s%2==r%2)for(let l=e,h=0;l<i;){let e=!0,c=!1;if(h==n.length||l<n[h].from){let t=ci[l];t!=a&&(e=!1,c=16==t)}let u=e||1!=a?null:[],p=e?s:s+1,d=l;t:for(;;)if(h<n.length&&d==n[h].from){if(c)break t;let O=n[h];if(!e)for(let t=O.to,e=h+1;;){if(t==i)break t;if(!(e<n.length&&n[e].from==t)){if(ci[t]==a)break t;break}t=n[e++].to}if(h++,u)u.push(O);else{O.from>l&&o.push(new li(l,O.from,p)),pi(t,O.direction==Je!=!(p%2)?s+1:s,r,O.inner,O.from,O.to,o),l=O.to}d=O.to}else{if(d==i||(e?ci[d]!=a:ci[d]==a))break;d++}u?ui(t,l,d,s+1,r,u,o):l<d&&o.push(new li(l,d,p)),l=d}else for(let l=i,h=n.length;l>e;){let i=!0,c=!1;if(!h||l>n[h-1].to){let t=ci[l-1];t!=a&&(i=!1,c=16==t)}let u=i||1!=a?null:[],p=i?s:s+1,d=l;t:for(;;)if(h&&d==n[h-1].to){if(c)break t;let O=n[--h];if(!i)for(let t=O.from,i=h;;){if(t==e)break t;if(!i||n[i-1].to!=t){if(ci[t-1]==a)break t;break}t=n[--i].from}if(u)u.push(O);else{O.to<l&&o.push(new li(O.to,l,p)),pi(t,O.direction==Je!=!(p%2)?s+1:s,r,O.inner,O.from,O.to,o),l=O.from}d=O.from}else{if(d==e||(i?ci[d-1]!=a:ci[d-1]==a))break;d--}u?ui(t,d,l,s+1,r,u,o):d<l&&o.push(new li(d,l,p)),l=d}}function pi(t,e,i,s,r,n,o){let a=e%2?2:1;!function(t,e,i,s,r){for(let n=0;n<=s.length;n++){let o=n?s[n-1].to:e,a=n<s.length?s[n].from:i,l=n?256:r;for(let e=o,i=l,s=l;e<a;e++){let r=oi(t.charCodeAt(e));512==r?r=i:8==r&&4==s&&(r=16),ci[e]=4==r?2:r,7&r&&(s=r),i=r}for(let t=o,e=l,s=l;t<a;t++){let r=ci[t];if(128==r)t<a-1&&e==ci[t+1]&&24&e?r=ci[t]=e:ci[t]=256;else if(64==r){let r=t+1;for(;r<a&&64==ci[r];)r++;let n=t&&8==e||r<i&&8==ci[r]?1==s?1:8:256;for(let e=t;e<r;e++)ci[e]=n;t=r-1}else 8==r&&1==s&&(ci[t]=1);e=r,7&r&&(s=r)}}}(t,r,n,s,a),function(t,e,i,s,r){let n=1==r?2:1;for(let o=0,a=0,l=0;o<=s.length;o++){let h=o?s[o-1].to:e,c=o<s.length?s[o].from:i;for(let e,i,s,o=h;o<c;o++)if(i=ri[e=t.charCodeAt(o)])if(i<0){for(let t=a-3;t>=0;t-=3)if(ni[t+1]==-i){let e=ni[t+2],i=2&e?r:4&e?1&e?n:r:0;i&&(ci[o]=ci[ni[t]]=i),a=t;break}}else{if(189==ni.length)break;ni[a++]=o,ni[a++]=e,ni[a++]=l}else if(2==(s=ci[o])||1==s){let t=s==r;l=t?0:1;for(let e=a-3;e>=0;e-=3){let i=ni[e+2];if(2&i)break;if(t)ni[e+2]|=2;else{if(4&i)break;ni[e+2]|=4}}}}}(t,r,n,s,a),function(t,e,i,s){for(let r=0,n=s;r<=i.length;r++){let o=r?i[r-1].to:t,a=r<i.length?i[r].from:e;for(let l=o;l<a;){let o=ci[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:e}else{if(256!=ci[o])break;o++}let h=1==n,c=h==(1==(o<e?ci[o]:s))?h?1:2:s;for(let e=o,s=r,n=s?i[s-1].to:t;e>l;)e==n&&(e=i[--s].from,n=s?i[s-1].to:t),ci[--e]=c;l=o}else n=o,l++}}}(r,n,s,a),ui(t,r,n,e,i,s,o)}function di(t){return[new li(0,t,0)]}let Oi="";function fi(t,e,i,s,r){var n;let o=s.head-t.from,a=li.find(e,o,null!==(n=s.bidiLevel)&&void 0!==n?n:-1,s.assoc),l=e[a],h=l.side(r,i);if(o==h){let t=a+=r?1:-1;if(t<0||t>=e.length)return null;l=e[a=t],o=l.side(!r,i),h=l.side(r,i)}let c=S(t.text,o,l.forward(r,i));(c<l.from||c>l.to)&&(c=h),Oi=t.text.slice(Math.min(o,c),Math.max(o,c));let u=a==(r?e.length-1:0)?null:e[a+(r?1:-1)];return u&&c==h&&u.level+(r?0:1)<l.level?E.cursor(u.side(!r,i)+t.from,u.forward(r,i)?1:-1,u.level):E.cursor(c+t.from,l.forward(r,i)?-1:1,l.level)}function mi(t,e,i){for(let s=e;s<i;s++){let e=oi(t.charCodeAt(s));if(1==e)return Je;if(2==e||4==e)return ti}return Je}const gi=V.define(),xi=V.define(),vi=V.define(),yi=V.define(),Si=V.define(),bi=V.define(),Qi=V.define(),wi=V.define(),ki=V.define(),Pi=V.define({combine:t=>t.some(t=>t)}),$i=V.define({combine:t=>t.some(t=>t)}),Ti=V.define();class Ci{constructor(t,e="nearest",i="nearest",s=5,r=5,n=!1){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=n}map(t){return t.empty?this:new Ci(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Ci(E.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const _i=dt.define({map:(t,e)=>t.map(e)}),Ai=dt.define();function Zi(t,e,i){let s=t.facet(yi);s.length?s[0](e):window.onerror&&window.onerror(String(e),i,void 0,void 0,e)||(i?console.error(i+":",e):console.error(e))}const Xi=V.define({combine:t=>!t.length||t[0]});let Ei=0;const Ri=V.define({combine:t=>t.filter((e,i)=>{for(let s=0;s<i;s++)if(t[s].plugin==e.plugin)return!1;return!0})});class Mi{constructor(t,e,i,s,r){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=s,this.baseExtensions=r(this),this.extension=this.baseExtensions.concat(Ri.of({plugin:this,arg:void 0}))}of(t){return this.baseExtensions.concat(Ri.of({plugin:this,arg:t}))}static define(t,e){const{eventHandlers:i,eventObservers:s,provide:r,decorations:n}=e||{};return new Mi(Ei++,t,i,s,t=>{let e=[];return n&&e.push(Yi.of(e=>{let i=e.plugin(t);return i?n(i):be.none})),r&&e.push(r(t)),e})}static fromClass(t,e){return Mi.define((e,i)=>new t(e,i),e)}}class Vi{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(t){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(e){if(Zi(t.state,e,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(t){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(t,this.spec.arg)}catch(e){Zi(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(null===(e=this.value)||void 0===e?void 0:e.destroy)try{this.value.destroy()}catch(e){Zi(t.state,e,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const zi=V.define(),Ii=V.define(),Yi=V.define(),qi=V.define(),Di=V.define(),Li=V.define(),Ni=V.define();function Wi(t,e){let i=t.state.facet(Ni);if(!i.length)return i;let s=i.map(e=>e instanceof Function?e(t):e),r=[];return Zt.spans(s,e.from,e.to,{point(){},span(t,i,s,n){let o=t-e.from,a=i-e.from,l=r;for(let t=s.length-1;t>=0;t--,n--){let i,r=s[t].spec.bidiIsolate;if(null==r&&(r=mi(e.text,o,a)),n>0&&l.length&&(i=l[l.length-1]).to==o&&i.direction==r)i.to=a,l=i.inner;else{let t={from:o,to:a,direction:r,inner:[]};l.push(t),l=t.inner}}}}),r}const ji=V.define();function Bi(t){let e=0,i=0,s=0,r=0;for(let n of t.state.facet(ji)){let o=n(t);o&&(null!=o.left&&(e=Math.max(e,o.left)),null!=o.right&&(i=Math.max(i,o.right)),null!=o.top&&(s=Math.max(s,o.top)),null!=o.bottom&&(r=Math.max(r,o.bottom)))}return{left:e,right:i,top:s,bottom:r}}const Gi=V.define();class Ui{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new Ui(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toA<i.fromA)break;i=i.join(s),t.splice(e-1,1)}}return t.splice(e,0,i),t}static extendWithRanges(t,e){if(0==e.length)return t;let i=[];for(let s=0,r=0,n=0;;){let o=s<t.length?t[s].fromB:1e9,a=r<e.length?e[r]:1e9,l=Math.min(o,a);if(1e9==l)break;let h=l+n,c=l,u=h;for(;;)if(r<e.length&&e[r]<=c){let i=e[r+1];r+=2,c=Math.max(c,i);for(let e=s;e<t.length&&t[e].fromB<=c;e++)n=t[e].toA-t[e].toB;u=Math.max(u,i+n)}else{if(!(s<t.length&&t[s].fromB<=c))break;{let e=t[s++];c=Math.max(c,e.toB),u=Math.max(u,e.toA),n=e.toA-e.toB}}i.push(new Ui(h,u,l,c))}return i}}class Fi{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=P.empty(this.startState.doc.length);for(let t of i)this.changes=this.changes.compose(t.changes);let s=[];this.changes.iterChangedRanges((t,e,i,r)=>s.push(new Ui(t,e,i,r))),this.changedRanges=s}static create(t,e,i){return new Fi(t,e,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(t=>t.selection)}get empty(){return 0==this.flags&&0==this.transactions.length}}const Hi=[];class Ki{constructor(t,e,i=0){this.dom=t,this.length=e,this.flags=i,this.parent=null,t.cmTile=this}get breakAfter(){return 1&this.flags}get children(){return Hi}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(t){if(this.flags|=2,4&this.flags){this.flags&=-5;let t=this.domAttrs;t&&function(t,e){for(let i=t.attributes.length-1;i>=0;i--){let s=t.attributes[i].name;null==e[s]&&t.removeAttribute(s)}for(let i in e){let s=e[i];"style"==i?t.style.cssText=s:t.getAttribute(i)!=s&&t.setAttribute(i,s)}}(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(t){this.dom=t,t.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t,e=this.posAtStart){let i=e;for(let e of this.children){if(e==t)return i;i+=e.length+e.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}covers(t){return!0}coordsIn(t,e){return null}domPosFor(t,e){let i=Ee(this.dom),s=this.length?t>0:e>0;return new He(this.parent.dom,i+(s?1:0),0==t||t==this.length)}markDirty(t){this.flags&=-3,t&&(this.flags|=4),this.parent&&2&this.parent.flags&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let t=this;t;t=t.parent)if(t instanceof es)return t;return null}static get(t){return t.cmTile}}class Ji extends Ki{constructor(t){super(t,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(t){this.children.push(t),t.parent=this}sync(t){if(2&this.flags)return;super.sync(t);let e,i=this.dom,s=null,r=(null==t?void 0:t.node)==i?t:null,n=0;for(let o of this.children){if(o.sync(t),n+=o.length+o.breakAfter,e=s?s.nextSibling:i.firstChild,r&&e!=o.dom&&(r.written=!0),o.dom.parentNode==i)for(;e&&e!=o.dom;)e=ts(e);else i.insertBefore(o.dom,e);s=o.dom}for(e=s?s.nextSibling:i.firstChild,r&&e&&(r.written=!0);e;)e=ts(e);this.length=n}}function ts(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class es extends Ji{constructor(t,e){super(e),this.view=t}owns(t){for(;t;t=t.parent)if(t==this)return!0;return!1}isBlock(){return!0}nearest(t){for(;;){if(!t)return null;let e=Ki.get(t);if(e&&this.owns(e))return e;t=t.parentNode}}blockTiles(t){for(let e=[],i=this,s=0,r=0;;)if(s==i.children.length){if(!e.length)return;i=i.parent,i.breakAfter&&r++,s=e.pop()}else{let n=i.children[s++];if(n instanceof is)e.push(s),i=n,s=0;else{let e=r+n.length,i=t(n,r);if(void 0!==i)return i;r=e+n.breakAfter}}}resolveBlock(t,e){let i,s,r=-1,n=-1;if(this.blockTiles((o,a)=>{let l=a+o.length;if(t>=a&&t<=l){if(o.isWidget()&&e>=-1&&e<=1){if(32&o.flags)return!0;16&o.flags&&(i=void 0)}(a<t||t==l&&(e<-1?o.length:o.covers(1)))&&(!i||!o.isWidget()&&i.isWidget())&&(i=o,r=t-a),(l>t||t==a&&(e>1?o.length:o.covers(-1)))&&(!s||!o.isWidget()&&s.isWidget())&&(s=o,n=t-a)}}),!i&&!s)throw new Error("No tile at position "+t);return i&&e<0||!s?{tile:i,offset:r}:{tile:s,offset:n}}}class is extends Ji{constructor(t,e){super(t),this.wrapper=e}isBlock(){return!0}covers(t){return!!this.children.length&&(t<0?this.children[0].covers(-1):this.lastChild.covers(1))}get domAttrs(){return this.wrapper.attributes}static of(t,e){let i=new is(e||document.createElement(t.tagName),t);return e||(i.flags|=4),i}}class ss extends Ji{constructor(t,e){super(t),this.attrs=e}isLine(){return!0}static start(t,e,i){let s=new ss(e||document.createElement("div"),t);return e&&i||(s.flags|=4),s}get domAttrs(){return this.attrs}resolveInline(t,e,i){let s=null,r=-1,n=null,o=-1;!function t(a,l){for(let h=0,c=0;h<a.children.length&&c<=l;h++){let u=a.children[h],p=c+u.length;p>=l&&(u.isComposite()?t(u,l-c):(!n||n.isHidden&&(e>0||i&&rs(n,u)))&&(p>l||32&u.flags)?(n=u,o=l-c):(c<l||16&u.flags&&!u.isHidden)&&(s=u,r=l-c)),c=p}}(this,t);let a=(e<0?s:n)||s||n;return a?{tile:a,offset:a==s?r:o}:null}coordsIn(t,e){let i=this.resolveInline(t,e,!0);return i?i.tile.coordsIn(Math.max(0,i.offset),e):function(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let i=Ze(e);return i[i.length-1]||null}(this)}domIn(t,e){let i=this.resolveInline(t,e);if(i){let{tile:t,offset:s}=i;if(this.dom.contains(t.dom))return t.isText()?new He(t.dom,Math.min(t.dom.nodeValue.length,s)):t.domPosFor(s,16&t.flags?1:32&t.flags?-1:e);let r=i.tile.parent,n=!1;for(let t of r.children){if(n)return new He(t.dom,0);t==i.tile&&(n=!0)}}return new He(this.dom,0)}}function rs(t,e){let i=t.coordsIn(0,1),s=e.coordsIn(0,1);return i&&s&&s.top<i.bottom}class ns extends Ji{constructor(t,e){super(t),this.mark=e}get domAttrs(){return this.mark.attrs}static of(t,e){let i=new ns(e||document.createElement(t.tagName),t);return e||(i.flags|=4),i}}class os extends Ki{constructor(t,e){super(t,e.length),this.text=e}sync(t){2&this.flags||(super.sync(t),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(t,e){let i=this.dom.nodeValue.length;t>i&&(t=i);let s=t,r=t,n=0;0==t&&e<0||t==i&&e>=0?Oe.chrome||Oe.gecko||(t?(s--,n=1):r<i&&(r++,n=-1)):e<0?s--:r<i&&r++;let o=je(this.dom,s,r).getClientRects();if(!o.length)return null;let a=o[(n?n<0:e>=0)?0:o.length-1];return Oe.safari&&!n&&0==a.width&&(a=Array.prototype.find.call(o,t=>t.width)||a),n?ze(a,n<0):a||null}static of(t,e){let i=new os(e||document.createTextNode(t),t);return e||(i.flags|=2),i}}class as extends Ki{constructor(t,e,i,s){super(t,e,s),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(t){return!(48&this.flags)&&(this.flags&(t<0?64:128))>0}coordsIn(t,e){return this.coordsInWidget(t,e,!1)}coordsInWidget(t,e,i){let s=this.widget.coordsAt(this.dom,t,e);if(s)return s;if(i)return ze(this.dom.getBoundingClientRect(),this.length?0==t:e<=0);{let e=this.dom.getClientRects(),i=null;if(!e.length)return null;let s=!!(16&this.flags)||!(32&this.flags)&&t>0;for(let r=s?e.length-1:0;i=e[r],!(t>0?0==r:r==e.length-1||i.top<i.bottom);r+=s?-1:1);return ze(i,!s)}}get overrideDOMText(){if(!this.length)return u.empty;let{root:t}=this;if(!t)return u.empty;let e=this.posAtStart;return t.view.state.doc.slice(e,e+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(t,e,i,s,r){return r||(r=t.toDOM(e),t.editable||(r.contentEditable="false")),new as(r,i,t,s)}}class ls extends Ki{constructor(t){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),super(e,0,t)}get isHidden(){return!0}get overrideDOMText(){return u.empty}coordsIn(t){return this.dom.getBoundingClientRect()}}class hs{constructor(t){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=t}advance(t,e,i){let{tile:s,index:r,beforeBreak:n,parents:o}=this;for(;t||e>0;)if(s.isComposite())if(n){if(!t)break;i&&i.break(),t--,n=!1}else if(r==s.children.length){if(!t&&!o.length)break;i&&i.leave(s),n=!!s.breakAfter,({tile:s,index:r}=o.pop()),r++}else{let a=s.children[r],l=a.breakAfter;!(e>0?a.length<=t:a.length<t)||i&&!1===i.skip(a,0,a.length)&&a.isComposite?(o.push({tile:s,index:r}),s=a,r=0,i&&a.isComposite()&&i.enter(a)):(n=!!l,r++,t-=a.length)}else if(r==s.length)n=!!s.breakAfter,({tile:s,index:r}=o.pop()),r++;else{if(!t)break;{let e=Math.min(t,s.length-r);i&&i.skip(s,r,r+e),t-=e,r+=e}}return this.tile=s,this.index=r,this.beforeBreak=n,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}}class cs{constructor(t,e,i,s){this.from=t,this.to=e,this.wrapper=i,this.rank=s}}class us{constructor(t,e,i){this.cache=t,this.root=e,this.blockWrappers=i,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(t,e,i,s){var r;this.flushBuffer();let n=this.ensureMarks(e,i),o=n.lastChild;if(o&&o.isText()&&!(8&o.flags)&&o.length+t.length<512){this.cache.reused.set(o,2),(n.children[n.children.length-1]=new os(o.dom,o.text+t)).parent=n}else n.append(s||os.of(t,null===(r=this.cache.find(os))||void 0===r?void 0:r.dom));this.pos+=t.length,this.afterWidget=null}addComposition(t,e){let i=this.curLine;i.dom!=e.line.dom&&(i.setDOM(this.cache.reused.has(e.line)?xs(e.line.dom):e.line.dom),this.cache.reused.set(e.line,2));let s=i;for(let t=e.marks.length-1;t>=0;t--){let i=e.marks[t],r=s.lastChild;if(r instanceof ns&&r.mark.eq(i.mark))r.dom!=i.dom&&r.setDOM(xs(i.dom)),s=r;else{if(this.cache.reused.get(i)){let t=Ki.get(i.dom);t&&t.setDOM(xs(i.dom))}let t=ns.of(i.mark,i.dom);s.append(t),s=t}this.cache.reused.set(i,2)}let r=Ki.get(t.text);r&&this.cache.reused.set(r,2);let n=new os(t.text,t.text.nodeValue);n.flags|=8,s.append(n)}addInlineWidget(t,e,i){let s=this.afterWidget&&48&t.flags&&(48&this.afterWidget.flags)==(48&t.flags);s||this.flushBuffer();let r=this.ensureMarks(e,i);s||16&t.flags||r.append(this.getBuffer(1)),r.append(t),this.pos+=t.length,this.afterWidget=t}addMark(t,e,i){this.flushBuffer(),this.ensureMarks(e,i).append(t),this.pos+=t.length,this.afterWidget=null}addBlockWidget(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}continueWidget(t){(this.afterWidget||this.lastBlock).length+=t,this.pos+=t}addLineStart(t,e){var i;t||(t=gs);let s=ss.start(t,e||(null===(i=this.cache.find(ss))||void 0===i?void 0:i.dom),!!e);this.getBlockPos().append(this.lastBlock=this.curLine=s)}addLine(t){this.getBlockPos().append(t),this.pos+=t.length,this.lastBlock=t,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(t){this.blockPosCovered()||this.addLineStart(t)}ensureLine(t){this.curLine||this.addLineStart(t)}ensureMarks(t,e){var i;let s=this.curLine;for(let r=t.length-1;r>=0;r--){let n,o=t[r];if(e>0&&(n=s.lastChild)&&n instanceof ns&&n.mark.eq(o))s=n,e--;else{let t=ns.of(o,null===(i=this.cache.find(ns,t=>t.mark.eq(o)))||void 0===i?void 0:i.dom);s.append(t),s=t,e=0}}return s}endLine(){if(this.curLine){this.flushBuffer();let t=this.curLine.lastChild;t&&ms(this.curLine,!1)&&("BR"==t.dom.nodeName||!t.isWidget()||Oe.ios&&ms(this.curLine,!0))||this.curLine.append(this.cache.findWidget(ys,0,32)||new as(ys.toDOM(),0,ys,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let t=this.wrappers.length-1;t>=0;t--)this.wrappers[t].to<this.pos&&this.wrappers.splice(t,1);for(let t=this.blockWrappers;t.value&&t.from<=this.pos;t.next())if(t.to>=this.pos){let e=new cs(t.from,t.to,t.value,t.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-e.rank||this.wrappers[i-1].to-e.to)<0;)i--;this.wrappers.splice(i,0,e)}this.wrapperPos=this.pos}getBlockPos(){var t;this.updateBlockWrappers();let e=this.root;for(let i of this.wrappers){let s=e.lastChild;if(i.from<this.pos&&s instanceof is&&s.wrapper.eq(i.wrapper))e=s;else{let s=is.of(i.wrapper,null===(t=this.cache.find(is,t=>t.wrapper.eq(i.wrapper)))||void 0===t?void 0:t.dom);e.append(s),e=s}}return e}blockPosCovered(){let t=this.lastBlock;return null!=t&&!t.breakAfter&&(!t.isWidget()||(160&t.flags)>0)}getBuffer(t){let e=2|(t<0?16:32),i=this.cache.find(ls,void 0,1);return i&&(i.flags=e),i||new ls(e)}flushBuffer(){!this.afterWidget||32&this.afterWidget.flags||(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}}class ps{constructor(t){this.skipCount=0,this.text="",this.textOff=0,this.cursor=t.iter()}skip(t){this.textOff+t<=this.text.length?this.textOff+=t:(this.skipCount+=t-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(t){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skipCount);if(this.skipCount=0,s)throw new Error("Ran out of text content when drawing inline views");this.text=e;let r=this.textOff=Math.min(t,e.length);return i?null:e.slice(0,r)}let e=Math.min(this.text.length,this.textOff+t),i=this.text.slice(this.textOff,e);return this.textOff=e,i}}const ds=[as,ss,os,ns,ls,is,es];for(let t=0;t<ds.length;t++)ds[t].bucket=t;class Os{constructor(t){this.view=t,this.buckets=ds.map(()=>[]),this.index=ds.map(()=>0),this.reused=new Map}add(t){let e=t.constructor.bucket,i=this.buckets[e];i.length<6?i.push(t):i[this.index[e]=(this.index[e]+1)%6]=t}find(t,e,i=2){let s=t.bucket,r=this.buckets[s],n=this.index[s];for(let t=r.length-1;t>=0;t--){let o=(t+n)%r.length,a=r[o];if((!e||e(a))&&!this.reused.has(a))return r.splice(o,1),o<n&&this.index[s]--,this.reused.set(a,i),a}return null}findWidget(t,e,i){let s=this.buckets[0];if(s.length)for(let r=0,n=0;;r++){if(r==s.length){if(n)return null;n=1,r=0}let o=s[r];if(!this.reused.has(o)&&(0==n?o.widget.compare(t):o.widget.constructor==t.constructor&&t.updateDOM(o.dom,this.view,o.widget)))return s.splice(r,1),r<this.index[0]&&this.index[0]--,o.widget==t&&o.length==e&&(497&o.flags)==i?(this.reused.set(o,1),o):(this.reused.set(o,2),new as(o.dom,e,t,-498&o.flags|i))}}reuse(t){return this.reused.set(t,1),t}maybeReuse(t,e=2){if(!this.reused.has(t))return this.reused.set(t,e),t.dom}clear(){for(let t=0;t<this.buckets.length;t++)this.buckets[t].length=this.index[t]=0}}class fs{constructor(t,e,i,s,r){this.view=t,this.decorations=s,this.disallowBlockEffectsFor=r,this.openWidget=!1,this.openMarks=0,this.cache=new Os(t),this.text=new ps(t.state.doc),this.builder=new us(this.cache,new es(t,t.contentDOM),Zt.iter(i)),this.cache.reused.set(e,2),this.old=new hs(e),this.reuseWalker={skip:(t,e,i)=>{if(this.cache.add(t),t.isComposite())return!1},enter:t=>this.cache.add(t),leave:()=>{},break:()=>{}}}run(t,e){let i=e&&this.getCompositionContext(e.text);for(let s=0,r=0,n=0;;){let o=n<t.length?t[n++]:null,a=o?o.fromA:this.old.root.length;if(a>s){let t=a-s;this.preserve(t,!n,!o),s=a,r+=t}if(!o)break;e&&o.fromA<=e.range.fromA&&o.toA>=e.range.toA?(this.forward(o.fromA,e.range.fromA,e.range.fromA<e.range.toA?1:-1),this.emit(r,e.range.fromB),this.cache.clear(),this.builder.addComposition(e,i),this.text.skip(e.range.toB-e.range.fromB),this.forward(e.range.fromA,o.toA),this.emit(e.range.toB,o.toB)):(this.forward(o.fromA,o.toA),this.emit(r,o.toB)),r=o.toB,s=o.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(t,e,i){let s=function(t){let e=[];for(let i=t.parents.length;i>1;i--){let s=i==t.parents.length?t.tile:t.parents[i].tile;s instanceof ns&&e.push(s.mark)}return e}(this.old),r=this.openMarks;this.old.advance(t,i?1:-1,{skip:(t,e,i)=>{if(t.isWidget())if(this.openWidget)this.builder.continueWidget(i-e);else{let n=i>0||e<t.length?as.of(t.widget,this.view,i-e,496&t.flags,this.cache.maybeReuse(t)):this.cache.reuse(t);256&n.flags?(n.flags&=-2,this.builder.addBlockWidget(n)):(this.builder.ensureLine(null),this.builder.addInlineWidget(n,s,r),r=s.length)}else if(t.isText())this.builder.ensureLine(null),e||i!=t.length||this.cache.reused.has(t)?(this.cache.add(t),this.builder.addText(t.text.slice(e,i),s,r)):this.builder.addText(t.text,s,r,this.cache.reuse(t)),r=s.length;else if(t.isLine())t.flags&=-2,this.cache.reused.set(t,1),this.builder.addLine(t);else if(t instanceof ls)this.cache.add(t);else{if(!(t instanceof ns))return!1;this.builder.ensureLine(null),this.builder.addMark(t,s,r),this.cache.reused.set(t,1),r=s.length}this.openWidget=!1},enter:t=>{t.isLine()?this.builder.addLineStart(t.attrs,this.cache.maybeReuse(t)):(this.cache.add(t),t instanceof ns&&s.unshift(t.mark)),this.openWidget=!1},leave:t=>{t.isLine()?s.length&&(s.length=r=0):t instanceof ns&&(s.shift(),r=Math.min(r,s.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(t)}emit(t,e){let i=null,s=this.builder,r=0,n=Zt.spans(this.decorations,t,e,{point:(t,e,n,o,a,l)=>{if(n instanceof ke){if(this.disallowBlockEffectsFor[l]){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.view.state.doc.lineAt(t).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(r=o.length,a>o.length)s.continueWidget(e-t);else{let r=n.widget||(n.block?vs.block:vs.inline),l=function(t){let e=t.isReplace?(t.startSide<0?64:0)|(t.endSide>0?128:0):t.startSide>0?32:16;t.block&&(e|=256);return e}(n),h=this.cache.findWidget(r,e-t,l)||as.of(r,this.view,e-t,l);n.block?(n.startSide>0&&s.addLineStartIfNotCovered(i),s.addBlockWidget(h)):(s.ensureLine(i),s.addInlineWidget(h,o,a))}i=null}else i=function(t,e){let i=e.spec.attributes,s=e.spec.class;if(!i&&!s)return t;t||(t={class:"cm-line"});i&&fe(i,t);s&&(t.class+=" "+s);return t}(i,n);e>t&&this.text.skip(e-t)},span:(t,e,r,n)=>{for(let o=t;o<e;){let a=this.text.next(Math.min(512,e-o));null==a?(s.addLineStartIfNotCovered(i),s.addBreak(),o++):(s.ensureLine(i),s.addText(a,r,o==t?n:r.length),o+=a.length),i=null}}});s.addLineStartIfNotCovered(i),this.openWidget=n>r,this.openMarks=n}forward(t,e,i=1){e-t<=10?this.old.advance(e-t,i,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(e-t-10,-1),this.old.advance(5,i,this.reuseWalker))}getCompositionContext(t){let e=[],i=null;for(let s=t.parentNode;;s=s.parentNode){let t=Ki.get(s);if(s==this.view.contentDOM)break;t instanceof ns?e.push(t):(null==t?void 0:t.isLine())?i=t:t instanceof is||("DIV"!=s.nodeName||i||s==this.view.contentDOM?i||e.push(ns.of(new Qe({tagName:s.nodeName.toLowerCase(),attributes:ve(s)}),s)):i=new ss(s,gs))}return{line:i,marks:e}}}function ms(t,e){let i=t=>{for(let s of t.children)if((e?s.isText():s.length)||i(s))return!0;return!1};return i(t)}const gs={class:"cm-line"};function xs(t){let e=Ki.get(t);return e&&e.setDOM(t.cloneNode()),t}class vs extends ye{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}vs.inline=new vs("span"),vs.block=new vs("div");const ys=new class extends ye{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}};class Ss{constructor(t){this.view=t,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=be.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 es(t,t.contentDOM),this.updateInner([new Ui(0,0,0,t.state.doc.length)],null)}update(t){var e;let i=t.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:t,toA:e})=>e<this.minWidthFrom||t>this.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&((null===(e=this.domChanged)||void 0===e?void 0:e.newSel)?s=this.domChanged.newSel.head:function(t,e){let i=!1;e&&t.iterChangedRanges((t,s)=>{t<e.to&&s>e.from&&(i=!0)});return i}(t.changes,this.hasComposition)||t.selectionSet||(s=t.state.selection.main.head));let r=s>-1?function(t,e,i){let s=Qs(t,i);if(!s)return null;let{node:r,from:n,to:o}=s,a=r.nodeValue;if(/[\n\r]/.test(a))return null;if(t.state.doc.sliceString(s.from,s.to)!=a)return null;let l=e.invertedDesc;return{range:new Ui(l.mapPos(n),l.mapPos(o),n,o),text:r}}(this.view,t.changes,s):null;if(this.domChanged=null,this.hasComposition){let{from:e,to:s}=this.hasComposition;i=new Ui(e,s,t.changes.mapPos(e,-1),t.changes.mapPos(s,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(Oe.ie||Oe.chrome)&&!r&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let n=this.decorations,o=this.blockWrappers;this.updateDeco();let a=function(t,e,i){let s=new ws;return Zt.compare(t,e,i,s),s.changes}(n,this.decorations,t.changes);a.length&&(i=Ui.extendWithRanges(i,a));let l=function(t,e,i){let s=new ks;return Zt.compare(t,e,i,s),s.changes}(o,this.blockWrappers,t.changes);return l.length&&(i=Ui.extendWithRanges(i,l)),r&&!i.some(t=>t.fromA<=r.range.fromA&&t.toA>=r.range.toA)&&(i=r.range.addToSet(i.slice())),!(2&this.tile.flags&&0==i.length)&&(this.updateInner(i,r),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(e||t.length){let i=this.tile,s=new fs(this.view,i,this.blockWrappers,this.decorations,this.dynamicDecorationMap);e&&Ki.get(e.text)&&s.cache.reused.set(Ki.get(e.text),2),this.tile=s.run(t,e),bs(i,s.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 s=Oe.chrome||Oe.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(s),!s||!s.written&&i.selectionRange.focusNode==s.node&&this.tile.dom.contains(s.node)||(this.forceSelection=!0),this.tile.dom.style.height=""});let s=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let t of this.tile.children)t.isWidget()&&t.widget instanceof Ps&&s.push(t.dom);i.updateGaps(s)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let t of e.effects)t.is(Ai)&&(this.editContextFormatting=t.value)}updateSelection(t=!1,e=!1){!t&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let{dom:i}=this.tile,s=this.view.root.activeElement,r=s==i,n=!r&&!(this.view.state.facet(Xi)||i.tabIndex>-1)&&Ae(i,this.view.observer.selectionRange)&&!(s&&i.contains(s));if(!(r||e||n))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)),Oe.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 t=document.createTextNode("");this.view.observer.ignore(()=>a.node.insertBefore(t,a.node.childNodes[a.offset]||null)),a=l=new He(t,0),o=!0}var c;let u=this.view.observer.selectionRange;!o&&u.focusNode&&(Xe(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Xe(l.node,l.offset,u.focusNode,u.focusOffset)||this.suppressWidgetCursorChange(u,h))||(this.view.observer.ignore(()=>{Oe.android&&Oe.chrome&&i.contains(u.focusNode)&&function(t,e){for(let i=t;i&&i!=e;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 t=Ce(this.view.root);if(t)if(h.empty){if(Oe.gecko){let t=(e=a.node,r=a.offset,1!=e.nodeType?0:(r&&"false"==e.childNodes[r-1].contentEditable?1:0)|(r<e.childNodes.length&&"false"==e.childNodes[r].contentEditable?2:0));if(t&&3!=t){let e=(1==t?Ue:Fe)(a.node,a.offset);e&&(a=new He(e.node,e.offset))}}t.collapse(a.node,a.offset),null!=h.bidiLevel&&void 0!==t.caretBidiLevel&&(t.caretBidiLevel=h.bidiLevel)}else if(t.extend){t.collapse(a.node,a.offset);try{t.extend(l.node,l.offset)}catch(t){}}else{let e=document.createRange();h.anchor>h.head&&([a,l]=[l,a]),e.setEnd(l.node,l.offset),e.setStart(a.node,a.offset),t.removeAllRanges(),t.addRange(e)}else;var e,r;n&&this.view.root.activeElement==i&&(i.blur(),s&&s.focus())}),this.view.observer.setSelectionRange(a,l)),this.impreciseAnchor=a.precise?null:new He(u.anchorNode,u.anchorOffset),this.impreciseHead=l.precise?null:new He(u.focusNode,u.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&Xe(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=Ce(t.root),{anchorNode:s,anchorOffset:r}=t.observer.selectionRange;if(!(i&&e.empty&&e.assoc&&i.modify))return;let n=this.lineAt(e.head,e.assoc);if(!n)return;let o=n.posAtStart;if(e.head==o||e.head==o+n.length)return;let a=this.coordsAt(e.head,-1),l=this.coordsAt(e.head,1);if(!a||!l||a.bottom>l.top)return;let h=this.domAtPos(e.head+e.assoc,e.assoc);i.collapse(h.node,h.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(s,r)}posFromDOM(t,e){let i=this.tile.nearest(t);if(!i)return 2&this.tile.dom.compareDocumentPosition(t)?0:this.view.state.doc.length;let s=i.posAtStart;if(!i.isComposite())return i.isText()?t==i.dom?s+e:s+(e?i.length:0):s;{let r;if(t==i.dom)r=i.dom.childNodes[e];else{let s=0==Ve(t)?0:0==e?-1:1;for(;;){let e=t.parentNode;if(e==i.dom)break;0==s&&e.firstChild!=e.lastChild&&(s=t==e.firstChild?-1:1),t=e}r=s<0?t:t.nextSibling}if(r==i.dom.firstChild)return s;for(;r&&!Ki.get(r);)r=r.nextSibling;if(!r)return s+i.length;for(let t=0,e=s;;t++){let s=i.children[t];if(s.dom==r)return e;e+=s.length+s.breakAfter}}}domAtPos(t,e){let{tile:i,offset:s}=this.tile.resolveBlock(t,e);return i.isWidget()?i.domPosFor(t,e):i.domIn(s,e)}inlineDOMNearPos(t,e){let i,s,r=-1,n=!1,o=-1,a=!1;return this.tile.blockTiles((e,l)=>{if(e.isWidget()){if(32&e.flags&&l>=t)return!0;16&e.flags&&(n=!0)}else{let h=l+e.length;if(l<=t&&(i=e,r=t-l,n=h<t),h>=t&&!s&&(s=e,o=t-l,a=l>t),l>t&&s)return!0}}),i||s?(n&&s?i=null:a&&i&&(s=null),i&&e<0||!s?i.domIn(r,e):s.domIn(o,e)):this.domAtPos(t,e)}coordsAt(t,e){let{tile:i,offset:s}=this.tile.resolveBlock(t,e);return i.isWidget()?i.widget instanceof Ps?null:i.coordsInWidget(s,e,!0):i.coordsIn(s,e)}lineAt(t,e){let{tile:i}=this.tile.resolveBlock(t,e);return i.isLine()?i:null}coordsForChar(t){let{tile:e,offset:i}=this.tile.resolveBlock(t,1);if(!e.isLine())return null;return function t(e,i){if(e.isComposite())for(let s of e.children){if(s.length>=i){let e=t(s,i);if(e)return e}if((i-=s.length)<0)break}else if(e.isText()&&i<e.length){let t=S(e.text,i);if(t==i)return null;let s=je(e.dom,i,t).getClientRects();for(let t=0;t<s.length;t++){let e=s[t];if(t==s.length-1||e.top<e.bottom&&e.left<e.right)return e}}return null}(e,i)}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t,r=this.view.contentDOM.clientWidth,n=r>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,a=this.view.textDirection==Ke.LTR,l=0,h=(t,c,u)=>{for(let p=0;p<t.children.length&&!(c>s);p++){let s=t.children[p],d=c+s.length,O=s.dom.getBoundingClientRect(),{height:f}=O;if(u&&!p&&(l+=O.top-u.top),s instanceof is)d>i&&h(s,c,O);else if(c>=i&&(l>0&&e.push(-l),e.push(f+l),l=0,n)){let t=s.dom.lastChild,e=t?Ze(t):[];if(e.length){let t=e[e.length-1],i=a?t.right-O.left:O.right-t.left;i>o&&(o=i,this.minWidth=r,this.minWidthFrom=c,this.minWidthTo=d)}}u&&p==t.children.length-1&&(l+=u.bottom-O.bottom),c=d+s.breakAfter}};return h(this.tile,0,null),e}textDirectionAt(t){let{tile:e}=this.tile.resolveBlock(t,1);return"rtl"==getComputedStyle(e.dom).direction?Ke.RTL:Ke.LTR}measureTextSize(){let t=this.tile.blockTiles(t=>{if(t.isLine()&&t.children.length&&t.length<=20){let e,i=0;for(let s of t.children){if(!s.isText()||/[^ -~]/.test(s.text))return;let t=Ze(s.dom);if(1!=t.length)return;i+=t[0].width,e=t[0].height}if(i)return{lineHeight:t.dom.getBoundingClientRect().height,charWidth:i/t.length,textHeight:e}}});if(t)return t;let e,i,s,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 t=Ze(r.firstChild)[0];e=r.getBoundingClientRect().height,i=t&&t.width?t.width/27:7,s=t&&t.height?t.height:e,r.remove()}),{lineHeight:e,charWidth:i,textHeight:s}}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let r=s==e.viewports.length?null:e.viewports[s],n=r?r.from-1:this.view.state.doc.length;if(n>i){let s=(e.lineBlockAt(n).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(be.replace({widget:new Ps(s),block:!0,inclusive:!0,isBlockGap:!0}).range(i,n))}if(!r)break;i=r.to+1}return be.set(t)}updateDeco(){let t=1,e=this.view.state.facet(Yi).map(e=>(this.dynamicDecorationMap[t++]="function"==typeof e)?e(this.view):e),i=!1,s=this.view.state.facet(Di).map((t,e)=>{let s="function"==typeof t;return s&&(i=!0),s?t(this.view):t});for(s.length&&(this.dynamicDecorationMap[t++]=i,e.push(Zt.join(s))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];t<this.decorations.length;)this.dynamicDecorationMap[t++]=!1;this.blockWrappers=this.view.state.facet(qi).map(t=>"function"==typeof t?t(this.view):t)}scrollIntoView(t){var e;if(t.isSnapshot){let e=this.view.viewState.lineBlockAt(t.range.head);return this.view.scrollDOM.scrollTop=e.top-t.yMargin,void(this.view.scrollDOM.scrollLeft=t.xMargin)}for(let e of this.view.state.facet(Ti))try{if(e(this.view,t.range,t))return!0}catch(t){Zi(this.view.state,t,"scroll handler")}let i,{range:s}=t,r=this.coordsAt(s.head,null!==(e=s.assoc)&&void 0!==e?e:s.empty?0:s.head>s.anchor?-1:1);if(!r)return;!s.empty&&(i=this.coordsAt(s.anchor,s.anchor>s.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 n=Bi(this.view),o={left:r.left-n.left,top:r.top-n.top,right:r.right+n.right,bottom:r.bottom+n.bottom},{offsetWidth:a,offsetHeight:l}=this.view.scrollDOM;if(function(t,e,i,s,r,n,o,a){let l=t.ownerDocument,h=l.defaultView||window;for(let c=t,u=!1;c&&!u;)if(1==c.nodeType){let t,p=c==l.body,d=1,O=1;if(p)t=Ie(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 e=c.getBoundingClientRect();({scaleX:d,scaleY:O}=Ye(c,e)),t={left:e.left,right:e.left+c.clientWidth*d,top:e.top,bottom:e.top+c.clientHeight*O}}let f=0,m=0;if("nearest"==r)e.top<t.top?(m=e.top-(t.top+o),i>0&&e.bottom>t.bottom+m&&(m=e.bottom-t.bottom+o)):e.bottom>t.bottom&&(m=e.bottom-t.bottom+o,i<0&&e.top-m<t.top&&(m=e.top-(t.top+o)));else{let s=e.bottom-e.top,n=t.bottom-t.top;m=("center"==r&&s<=n?e.top+s/2-n/2:"start"==r||"center"==r&&i<0?e.top-o:e.bottom-n+o)-t.top}if("nearest"==s?e.left<t.left?(f=e.left-(t.left+n),i>0&&e.right>t.right+f&&(f=e.right-t.right+n)):e.right>t.right&&(f=e.right-t.right+n,i<0&&e.left<t.left+f&&(f=e.left-(t.left+n))):f=("center"==s?e.left+(e.right-e.left)/2-(t.right-t.left)/2:"start"==s==a?e.left-n:e.right-(t.right-t.left)+n)-t.left,f||m)if(p)h.scrollBy(f,m);else{let t=0,i=0;if(m){let t=c.scrollTop;c.scrollTop+=m/O,i=(c.scrollTop-t)*O}if(f){let e=c.scrollLeft;c.scrollLeft+=f/d,t=(c.scrollLeft-e)*d}e={left:e.left-t,top:e.top-i,right:e.right-t,bottom:e.bottom-i},t&&Math.abs(t-f)<1&&(s="nearest"),i&&Math.abs(i-m)<1&&(r="nearest")}if(p)break;(e.top<t.top||e.bottom>t.bottom||e.left<t.left||e.right>t.right)&&(e={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)}),c=c.assignedSlot||c.parentNode}else{if(11!=c.nodeType)break;c=c.host}}(this.view.scrollDOM,o,s.head<s.anchor?-1:1,t.x,t.y,Math.max(Math.min(t.xMargin,a),-a),Math.max(Math.min(t.yMargin,l),-l),this.view.textDirection==Ke.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 t=this.view.docView.lineAt(s.head,1);t&&t.dom.scrollIntoView({block:"nearest"})}}lineHasWidget(t){let e=t=>t.isWidget()||t.children.some(e);return e(this.tile.resolveBlock(t,1).tile)}destroy(){bs(this.tile)}}function bs(t,e){let i=null==e?void 0:e.get(t);if(1!=i){null==i&&t.destroy();for(let i of t.children)bs(i,e)}}function Qs(t,e){let i=t.observer.selectionRange;if(!i.focusNode)return null;let s=Ue(i.focusNode,i.focusOffset),r=Fe(i.focusNode,i.focusOffset),n=s||r;if(r&&s&&r.node!=s.node){let e=Ki.get(r.node);if(!e||e.isText()&&e.text!=r.node.nodeValue)n=r;else if(t.docView.lastCompositionAfterCursor){let t=Ki.get(s.node);!t||t.isText()&&t.text!=s.node.nodeValue||(n=r)}}if(t.docView.lastCompositionAfterCursor=n!=s,!n)return null;let o=e-n.offset;return{from:o,to:o+n.node.nodeValue.length,node:n.node}}let ws=class{constructor(){this.changes=[]}compareRange(t,e){$e(t,e,this.changes)}comparePoint(t,e){$e(t,e,this.changes)}boundChange(t){$e(t,t,this.changes)}};class ks{constructor(){this.changes=[]}compareRange(t,e){$e(t,e,this.changes)}comparePoint(){}boundChange(t){$e(t,t,this.changes)}}class Ps extends ye{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function $s(t,e,i,s,r){let n=Math.round((s-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&i.height>1.5*t.defaultLineHeight){let e=t.viewState.heightOracle.textHeight;n+=Math.floor((r-i.top-.5*(t.defaultLineHeight-e))/e)*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(i.from,i.to);return i.from+function(t,e,i,s){for(let s=0,r=0;;){if(r>=e)return s;if(s==t.length)break;r+=9==t.charCodeAt(s)?i-r%i:1,s=S(t,s)}return!0===s?-1:t.length}(o,n,t.state.tabSize)}function Ts(t,e,i){let s=t.lineBlockAt(e);if(Array.isArray(s.type)){let t;for(let r of s.type){if(r.from>e)break;if(!(r.to<e)){if(r.from<e&&r.to>e)return r;t&&(r.type!=Se.Text||t.type==r.type&&!(i<0?r.from<e:r.to>e))||(t=r)}}return t||s}return s}function Cs(t,e,i,s){let r=t.state.doc.lineAt(e.head),n=t.bidiSpans(r),o=t.textDirectionAt(r.from);for(let a=e,l=null;;){let e=fi(r,n,o,a,i),h=Oi;if(!e){if(r.number==(i?t.state.doc.lines:1))return a;h="\n",r=t.state.doc.line(r.number+(i?1:-1)),n=t.bidiSpans(r),e=t.visualLineSide(r,!i)}if(l){if(!l(h))return a}else{if(!s)return e;l=s(h)}a=e}}function _s(t,e,i){for(;;){let s=0;for(let r of t)r.between(e-1,e+1,(t,r,n)=>{if(e>t&&e<r){let n=s||i||(e-t<r-e?-1:1);e=n<0?t:r,s=n}});if(!s)return e}}function As(t,e){let i=null;for(let s=0;s<e.ranges.length;s++){let r=e.ranges[s],n=null;if(r.empty){let e=_s(t,r.from,0);e!=r.from&&(n=E.cursor(e,-1))}else{let e=_s(t,r.from,-1),i=_s(t,r.to,1);e==r.from&&i==r.to||(n=E.range(r.from==r.anchor?e:i,r.from==r.head?e:i))}n&&(i||(i=e.ranges.slice()),i[s]=n)}return i?E.create(i,e.mainIndex):e}function Zs(t,e,i){let s=_s(t.state.facet(Li).map(e=>e(t)),i.from,e.head>i.from?-1:1);return s==i.from?i:E.cursor(s,s<i.from?1:-1)}class Xs{constructor(t,e){this.pos=t,this.assoc=e}}function Es(t,e,i,s){let r,n=t.contentDOM.getBoundingClientRect(),o=n.top+t.viewState.paddingTop,{x:a,y:l}=e,h=l-o;for(;;){if(h<0)return new Xs(0,1);if(h>t.viewState.docHeight)return new Xs(t.state.doc.length,-1);if(r=t.elementAtHeight(h),null==s)break;if(r.type==Se.Text){if(s<0?r.to<t.viewport.from:r.from>t.viewport.to)break;let e=t.docView.coordsAt(s<0?r.from:r.to,s>0?-1:1);if(e&&(s<0?e.top<=h+o:e.bottom>=h+o))break}let e=t.viewState.heightOracle.textHeight/2;h=s>0?r.bottom+e:r.top-e}if(t.viewport.from>=r.to||t.viewport.to<=r.from){if(i)return null;if(r.type==Se.Text){let e=$s(t,n,r,a,l);return new Xs(e,e==r.from?1:-1)}}if(r.type!=Se.Text)return h<(r.top+r.bottom)/2?new Xs(r.from,1):new Xs(r.to,-1);let c=t.docView.lineAt(r.from,2);return c&&c.length==r.length||(c=t.docView.lineAt(r.from,-2)),new Rs(t,a,l,t.textDirectionAt(r.from)).scanTile(c,r.from)}class Rs{constructor(t,e,i,s){this.view=t,this.x=e,this.y=i,this.baseDir=s,this.line=null,this.spans=null}bidiSpansAt(t){return(!this.line||this.line.from>t||this.line.to<t)&&(this.line=this.view.state.doc.lineAt(t),this.spans=this.view.bidiSpans(this.line)),this}baseDirAt(t,e){let{line:i,spans:s}=this.bidiSpansAt(t);return s[li.find(s,t-i.from,-1,e)].level==this.baseDir}dirAt(t,e){let{line:i,spans:s}=this.bidiSpansAt(t);return s[li.find(s,t-i.from,-1,e)].dir}bidiIn(t,e){let{spans:i,line:s}=this.bidiSpansAt(t);return i.length>1||i.length&&(i[0].level!=this.baseDir||i[0].to+s.from<e)}scan(t,e){let i,s,r,n=0,o=t.length-1,a=new Set,l=this.bidiIn(t[0],t[o]),h=-1,c=1e9;t:for(;n<o;){let u=o-n,p=n+o>>1;e:if(a.has(p)){let t=n+Math.floor(Math.random()*u);for(let e=0;e<u;e++){if(!a.has(t)){p=t;break e}t++,t==o&&(t=n)}break t}a.add(p);let d=e(p);if(d)for(let e=0;e<d.length;e++){let a=d[e],u=0;if(!(0==a.width&&d.length>1)){if(a.bottom<this.y)(!i||i.bottom<a.bottom)&&(i=a),u=1;else if(a.top>this.y)(!s||s.top>a.top)&&(s=a),u=-1;else{let t=a.left>this.x?this.x-a.left:a.right<this.x?this.x-a.right:0,e=Math.abs(t);e<c&&(h=p,c=e,r=a),t&&(u=t<0==(this.baseDir==Ke.LTR)?-1:1)}-1!=u||l&&!this.baseDirAt(t[p],1)?1!=u||l&&!this.baseDirAt(t[p+1],-1)||(n=p+1):o=p}}}if(!r){let r=i&&(!s||this.y-i.bottom<s.top-this.y)?i:s;return this.y=(r.top+r.bottom)/2,this.scan(t,e)}let u=(l?this.dirAt(t[h],1):this.baseDir)==Ke.LTR;return{i:h,after:this.x>(r.left+r.right)/2==u}}scanText(t,e){let i=[];for(let s=0;s<t.length;s=S(t.text,s))i.push(e+s);i.push(e+t.length);let s=this.scan(i,s=>{let r=i[s]-e,n=i[s+1]-e;return je(t.dom,r,n).getClientRects()});return s.after?new Xs(i[s.i+1],-1):new Xs(i[s.i],1)}scanTile(t,e){if(!t.length)return new Xs(e,1);if(1==t.children.length){let i=t.children[0];if(i.isText())return this.scanText(i,e);if(i.isComposite())return this.scanTile(i,e)}let i=[e];for(let s=0,r=e;s<t.children.length;s++)i.push(r+=t.children[s].length);let s=this.scan(i,e=>{let i=t.children[e];return 48&i.flags?null:(1==i.dom.nodeType?i.dom:je(i.dom,0,i.length)).getClientRects()}),r=t.children[s.i],n=i[s.i];return r.isText()?this.scanText(r,n):r.isComposite()?this.scanTile(r,n):s.after?new Xs(i[s.i+1],-1):new Xs(n,1)}}const Ms="￿";class Vs{constructor(t,e){this.points=t,this.view=e,this.text="",this.lineSeparator=e.state.facet(kt.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=Ms}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);let t=this.text.length;this.readNode(s);let r=Ki.get(s),n=s.nextSibling;if(n==e){(null==r?void 0:r.breakAfter)&&!n&&i!=this.view.contentDOM&&this.lineBreak();break}let o=Ki.get(n);(r&&o?r.breakAfter:(r?r.breakAfter:Re(s))||Re(n)&&("BR"!=s.nodeName||(null==r?void 0:r.isWidget()))&&this.text.length>t)&&!Is(n,e)&&this.lineBreak(),s=n}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r,n=-1,o=1;if(this.lineSeparator?(n=e.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(r=s.exec(e))&&(n=r.index,o=r[0].length),this.append(e.slice(i,n<0?e.length:n)),n<0)break;if(this.lineBreak(),o>1)for(let e of this.points)e.node==t&&e.pos>this.text.length&&(e.pos-=o-1);i=n+o}}readNode(t){let e=Ki.get(t),i=e&&e.overrideDOMText;if(null!=i){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;)t.lineBreak?this.lineBreak():this.append(t.value)}else 3==t.nodeType?this.readTextNode(t):"BR"==t.nodeName?t.nextSibling&&this.lineBreak():1==t.nodeType&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(3==t.nodeType?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(zs(t,i.node,i.offset)?e:0))}}function zs(t,e,i){for(;;){if(!e||i<Ve(e))return!1;if(e==t)return!0;i=Ee(e)+1,e=e.parentNode}}function Is(t,e){let i;for(;t!=e&&t;t=t.nextSibling){let e=Ki.get(t);if(!(null==e?void 0:e.isWidget()))return!1;e&&(i||(i=[])).push(e)}if(i)for(let t of i){let e=t.overrideDOMText;if(null==e?void 0:e.length)return!1}return!0}class Ys{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class qs{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="",this.domChanged=e>-1;let{impreciseHead:r,impreciseAnchor:n}=t.docView,o=t.state.selection;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=Ds(t.docView.tile,e,i,0))){let e=r||n?[]:function(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:r,focusOffset:n}=t.observer.selectionRange;i&&(e.push(new Ys(i,s)),r==i&&n==s||e.push(new Ys(r,n)));return e}(t),i=new Vs(e,t);i.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=i.text,this.newSel=function(t,e){if(0==t.length)return null;let i=t[0].pos,s=2==t.length?t[1].pos:i;return i>-1&&s>-1?E.single(i+e,s+e):null}(e,this.bounds.from)}else{let e=t.observer.selectionRange,i=r&&r.node==e.focusNode&&r.offset==e.focusOffset||!_e(t.contentDOM,e.focusNode)?o.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset),s=n&&n.node==e.anchorNode&&n.offset==e.anchorOffset||!_e(t.contentDOM,e.anchorNode)?o.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset),a=t.viewport;if((Oe.ios||Oe.chrome)&&o.main.empty&&i!=s&&(a.from>0||a.to<t.state.doc.length)){let e=Math.min(i,s),r=Math.max(i,s),n=a.from-e,o=a.to-r;0!=n&&1!=n&&0!=e||0!=o&&-1!=o&&r!=t.state.doc.length||(i=0,s=t.state.doc.length)}if(t.inputState.composing>-1&&o.ranges.length>1)this.newSel=o.replaceRange(E.range(s,i));else if(t.lineWrapping&&s==i&&(!o.main.empty||o.main.head!=i)&&t.inputState.lastTouchTime>Date.now()-100){let e=t.coordsAtPos(i,-1),s=0;e&&(s=t.inputState.lastTouchY<=e.bottom?-1:1),this.newSel=E.create([E.cursor(i,s)])}else this.newSel=E.single(s,i)}}}function Ds(t,e,i,s){if(t.isComposite()){let r=-1,n=-1,o=-1,a=-1;for(let l=0,h=s,c=s;l<t.children.length;l++){let s=t.children[l],u=h+s.length;if(h<e&&u>i)return Ds(s,e,i,h);if(u>=e&&-1==r&&(r=l,n=h),h>i&&s.dom.parentNode==t.dom){o=l,a=c;break}c=u,h=u+s.breakAfter}return{from:n,to:a<0?s+t.length:a,startDOM:(r?t.children[r-1].dom.nextSibling:null)||t.dom.firstChild,endDOM:o<t.children.length&&o>=0?t.children[o].dom:null}}return t.isText()?{from:s,to:s+t.length,startDOM:t.dom,endDOM:t.dom.nextSibling}:null}function Ls(t,e){let i,{newSel:s}=e,{state:r}=t,n=r.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:t,to:s}=e.bounds,a=n.from,l=null;(8===o||Oe.android&&e.text.length<s-t)&&(a=n.to,l="end");let h,c,p=r.doc.sliceString(t,s,Ms);!n.empty&&n.from>=t&&n.to<=s&&(e.typeOver||p!=e.text)&&p.slice(0,n.from-t)==e.text.slice(0,n.from-t)&&p.slice(n.to-t)==e.text.slice(h=e.text.length-(p.length-(n.to-t)))?i={from:n.from,to:n.to,insert:u.of(e.text.slice(n.from-t,h).split(Ms))}:(c=Ws(p,e.text,a-t,l))&&(Oe.chrome&&13==o&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==Ms+Ms&&c.toB--,i={from:t+c.from,to:t+c.toA,insert:u.of(e.text.slice(c.from,c.toB).split(Ms))})}else s&&(!t.hasFocus&&r.facet(Xi)||js(s,n))&&(s=null);if(!i&&!s)return!1;if((Oe.mac||Oe.android)&&i&&i.from==i.to&&i.from==n.head-1&&/^\. ?$/.test(i.insert.toString())&&"off"==t.contentDOM.getAttribute("autocorrect")?(s&&2==i.insert.length&&(s=E.single(s.main.anchor-1,s.main.head-1)),i={from:i.from,to:i.to,insert:u.of([i.insert.toString().replace("."," ")])}):r.doc.lineAt(n.from).to<n.to&&t.docView.lineHasWidget(n.to)&&t.inputState.insertingTextAt>Date.now()-50?i={from:n.from,to:n.to,insert:r.toText(t.inputState.insertingText)}:Oe.chrome&&i&&i.from==i.to&&i.from==n.head&&"\n "==i.insert.toString()&&t.lineWrapping&&(s&&(s=E.single(s.main.anchor-1,s.main.head-1)),i={from:n.from,to:n.to,insert:u.of([" "])}),i)return Ns(t,i,s,o);if(s&&!js(s,n)){let e=!1,i="select";return t.inputState.lastSelectionTime>Date.now()-50&&("select"==t.inputState.lastSelectionOrigin&&(e=!0),i=t.inputState.lastSelectionOrigin,"select.pointer"==i&&(s=As(r.facet(Li).map(e=>e(t)),s))),t.dispatch({selection:s,scrollIntoView:e,userEvent:i}),!0}return!1}function Ns(t,e,i,s=-1){if(Oe.ios&&t.inputState.flushIOSKey(e))return!0;let r=t.state.selection.main;if(Oe.android&&(e.to==r.to&&(e.from==r.from||e.from==r.from-1&&" "==t.state.sliceDoc(e.from,r.from))&&1==e.insert.length&&2==e.insert.lines&&Be(t.contentDOM,"Enter",13)||(e.from==r.from-1&&e.to==r.to&&0==e.insert.length||8==s&&e.insert.length<e.to-e.from&&e.to>r.head)&&Be(t.contentDOM,"Backspace",8)||e.from==r.from&&e.to==r.to+1&&0==e.insert.length&&Be(t.contentDOM,"Delete",46)))return!0;let n,o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a=()=>n||(n=function(t,e,i){let s,r=t.state,n=r.selection.main,o=-1;if(e.from==e.to&&e.from<n.from||e.from>n.to){let i=e.from<n.from?-1:1,s=i<0?n.from:n.to,a=_s(r.facet(Li).map(e=>e(t)),s,i);e.from==a&&(o=a)}if(o>-1)s={changes:e,selection:E.cursor(e.from+e.insert.length,-1)};else if(e.from>=n.from&&e.to<=n.to&&e.to-e.from>=(n.to-n.from)/3&&(!i||i.main.empty&&i.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let i=n.from<e.from?r.sliceDoc(n.from,e.from):"",o=n.to>e.to?r.sliceDoc(e.to,n.to):"";s=r.replaceSelection(t.state.toText(i+e.insert.sliceString(0,void 0,t.state.lineBreak)+o))}else{let o=r.changes(e),a=i&&i.main.to<=o.newLength?i.main:void 0;if(r.selection.ranges.length>1&&(t.inputState.composing>=0||t.inputState.compositionPendingChange)&&e.to<=n.to+10&&e.to>=n.to-10){let l,h=t.state.sliceDoc(e.from,e.to),c=i&&Qs(t,i.main.head);if(c){let t=e.insert.length-(e.to-e.from);l={from:c.from,to:c.to-t}}else l=t.state.doc.lineAt(n.head);let u=n.to-e.to;s=r.changeByRange(i=>{if(i.from==n.from&&i.to==n.to)return{changes:o,range:a||i.map(o)};let s=i.to-u,c=s-h.length;if(t.state.sliceDoc(c,s)!=h||s>=l.from&&c<=l.to)return{range:i};let p=r.changes({from:c,to:s,insert:e.insert}),d=i.to-n.to;return{changes:p,range:a?E.range(Math.max(0,a.anchor+d),Math.max(0,a.head+d)):i.map(p)}})}else s={changes:o,selection:a&&r.selection.replaceRange(a)}}let a="input.type";(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1));return r.update(s,{userEvent:a,scrollIntoView:!0})}(t,e,i));return t.state.facet(bi).some(i=>i(t,e.from,e.to,o,a))||t.dispatch(a()),!0}function Ws(t,e,i,s){let r=Math.min(t.length,e.length),n=0;for(;n<r&&t.charCodeAt(n)==e.charCodeAt(n);)n++;if(n==r&&t.length==e.length)return null;let o=t.length,a=e.length;for(;o>0&&a>0&&t.charCodeAt(o-1)==e.charCodeAt(a-1);)o--,a--;if("end"==s){i-=o+Math.max(0,n-Math.min(o,a))-n}if(o<n&&t.length<e.length){n-=i<=n&&i>=o?n-i:0,a=n+(a-o),o=n}else if(a<n){n-=i<=n&&i>=a?n-i:0,o=n+(o-a),a=n}return{from:n,toA:o,toB:a}}function js(t,e){return e.head==t.main.head&&e.anchor==t.main.anchor}class Bs{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,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=t.hasFocus,Oe.safari&&t.contentDOM.addEventListener("input",()=>null),Oe.gecko&&function(t){gr.has(t)||(gr.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}(t.contentDOM.ownerDocument)}handleEvent(t){(function(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let i,s=e.target;s!=t.contentDOM;s=s.parentNode)if(!s||11==s.nodeType||(i=Ki.get(s))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(e))return!1;return!0})(this.view,t)&&!this.ignoreDuringComposition(t)&&("keydown"==t.type&&this.keydown(t)||(0!=this.view.updateState?Promise.resolve().then(()=>this.runHandlers(t.type,t)):this.runHandlers(t.type,t)))}runHandlers(t,e){let i=this.handlers[t];if(i){for(let t of i.observers)t(this.view,e);for(let t of i.handlers){if(e.defaultPrevented)break;if(t(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=Us(t),i=this.handlers,s=this.view.contentDOM;for(let t in e)if("scroll"!=t){let r=!e[t].handlers.length,n=i[t];n&&r!=!n.handlers.length&&(s.removeEventListener(t,this.handleEvent),n=null),n||s.addEventListener(t,this.handleEvent,{passive:r})}for(let t in i)"scroll"==t||e[t]||s.removeEventListener(t,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),9==t.keyCode&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&27!=t.keyCode&&Ks.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),Oe.android&&Oe.chrome&&!t.synthetic&&(13==t.keyCode||8==t.keyCode))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let e;return!Oe.ios||t.synthetic||t.altKey||t.metaKey||t.shiftKey||!((e=Fs.find(e=>e.keyCode==t.keyCode))&&!t.ctrlKey||Hs.indexOf(t.key)>-1&&t.ctrlKey)?(229!=t.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0)}flushIOSKey(t){let e=this.pendingIOSKey;return!!e&&(!("Enter"==e.key&&t&&t.from<t.to&&/^\S+$/.test(t.insert.toString()))&&(this.pendingIOSKey=void 0,Be(this.view.contentDOM,e.key,e.keyCode,e instanceof KeyboardEvent?e:void 0)))}ignoreDuringComposition(t){return!(!/^key/.test(t.type)||t.synthetic)&&(this.composing>0||!!(Oe.safari&&!Oe.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Gs(t,e){return(i,s)=>{try{return e.call(t,s,i)}catch(t){Zi(i.state,t)}}}function Us(t){let e=Object.create(null);function i(t){return e[t]||(e[t]={observers:[],handlers:[]})}for(let e of t){let t=e.spec,s=t&&t.plugin.domEventHandlers,r=t&&t.plugin.domEventObservers;if(s)for(let t in s){let r=s[t];r&&i(t).handlers.push(Gs(e.value,r))}if(r)for(let t in r){let s=r[t];s&&i(t).observers.push(Gs(e.value,s))}}for(let t in er)i(t).handlers.push(er[t]);for(let t in ir)i(t).observers.push(ir[t]);return e}const Fs=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Hs="dthko",Ks=[16,17,18,20,91,92,224,225];function Js(t){return.7*Math.max(0,t)+8}class tr{constructor(t,e,i,s){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=qe(t.contentDOM),this.atoms=t.state.facet(Li).map(e=>e(t));let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(kt.allowMultipleSelections)&&function(t,e){let i=t.state.facet(gi);return i.length?i[0](e):Oe.mac?e.metaKey:e.ctrlKey}(t,e),this.dragging=!(!function(t,e){let{main:i}=t.state.selection;if(i.empty)return!1;let s=Ce(t.root);if(!s||0==s.rangeCount)return!0;let r=s.getRangeAt(0).getClientRects();for(let t=0;t<r.length;t++){let i=r[t];if(i.left<=e.clientX&&i.right>=e.clientX&&i.top<=e.clientY&&i.bottom>=e.clientY)return!0}return!1}(t,e)||1!=ur(e))&&null}start(t){!1===this.dragging&&this.select(t)}move(t){if(0==t.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(e=this.startEvent,i=t,Math.max(Math.abs(e.clientX-i.clientX),Math.abs(e.clientY-i.clientY))<10))return;var e,i;this.select(this.lastEvent=t);let s=0,r=0,n=0,o=0,a=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:a}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:o,bottom:l}=this.scrollParents.y.getBoundingClientRect());let h=Bi(this.view);t.clientX-h.left<=n+6?s=-Js(n-t.clientX):t.clientX+h.right>=a-6&&(s=Js(t.clientX-a)),t.clientY-h.top<=o+6?r=-Js(o-t.clientY):t.clientY+h.bottom>=l-6&&(r=Js(t.clientY-l)),this.setScrollSpeed(s,r)}up(t){null==this.dragging&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),!1===this.dragging&&this.select(this.lastEvent)}select(t){let{view:e}=this,i=As(this.atoms,this.style.get(t,this.extend,this.multiple));!this.mustSelect&&i.eq(e.state.selection,!1===this.dragging)||this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(t){t.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}const er=Object.create(null),ir=Object.create(null),sr=Oe.ie&&Oe.ie_version<15||Oe.ios&&Oe.webkit_version<604;function rr(t,e,i){for(let s of t.facet(e))i=s(i,t);return i}function nr(t,e){e=rr(t.state,wi,e);let i,{state:s}=t,r=1,n=s.toText(e),o=n.lines==s.selection.ranges.length;if(null!=dr&&s.selection.ranges.every(t=>t.empty)&&dr==n.toString()){let t=-1;i=s.changeByRange(i=>{let a=s.doc.lineAt(i.from);if(a.from==t)return{range:i};t=a.from;let l=s.toText((o?n.line(r++).text:e)+s.lineBreak);return{changes:{from:a.from,insert:l},range:E.cursor(i.from+l.length)}})}else i=o?s.changeByRange(t=>{let e=n.line(r++);return{changes:{from:t.from,to:t.to,insert:e.text},range:E.cursor(t.from+e.length)}}):s.replaceSelection(n);t.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}function or(t,e,i,s){if(1==s)return E.cursor(e,i);if(2==s)return function(t,e,i=1){let s=t.charCategorizer(e),r=t.doc.lineAt(e),n=e-r.from;if(0==r.length)return E.cursor(e);0==n?i=1:n==r.length&&(i=-1);let o=n,a=n;i<0?o=S(r.text,n,!1):a=S(r.text,n);let l=s(r.text.slice(o,a));for(;o>0;){let t=S(r.text,o,!1);if(s(r.text.slice(t,o))!=l)break;o=t}for(;a<r.length;){let t=S(r.text,a);if(s(r.text.slice(a,t))!=l)break;a=t}return E.range(o+r.from,a+r.from)}(t.state,e,i);{let s=t.docView.lineAt(e,i),r=t.state.doc.lineAt(s?s.posAtEnd:e),n=s?s.posAtStart:r.from,o=s?s.posAtEnd:r.to;return o<t.state.doc.length&&o==r.to&&o++,E.range(n,o)}}ir.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},ir.wheel=ir.mousewheel=t=>{t.inputState.lastWheelEvent=Date.now()},er.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),27==e.keyCode&&0!=t.inputState.tabFocusMode&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),ir.touchstart=(t,e)=>{let i=t.inputState,s=e.targetTouches[0];i.lastTouchTime=Date.now(),s&&(i.lastTouchX=s.clientX,i.lastTouchY=s.clientY),i.setSelectionOrigin("select.pointer")},ir.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},er.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let i=null;for(let s of t.state.facet(vi))if(i=s(t,e),i)break;if(i||0!=e.button||(i=function(t,e){let i=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),s=ur(e),r=t.state.selection;return{update(t){t.docChanged&&(i.pos=t.changes.mapPos(i.pos),r=r.map(t.changes))},get(e,n,o){let a,l=t.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),h=or(t,l.pos,l.assoc,s);if(i.pos!=l.pos&&!n){let e=or(t,i.pos,i.assoc,s),r=Math.min(e.from,h.from),n=Math.max(e.to,h.to);h=r<h.from?E.range(r,n,h.assoc):E.range(n,r,h.assoc)}return n?r.replaceRange(r.main.extend(h.from,h.to,h.assoc)):o&&1==s&&r.ranges.length>1&&(a=function(t,e){for(let i=0;i<t.ranges.length;i++){let{from:s,to:r}=t.ranges[i];if(s<=e&&r>=e)return E.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}(r,l.pos))?a:o?r.addRange(h):E.create([h])}}}(t,e)),i){let s=!t.hasFocus;t.inputState.startMouseSelection(new tr(t,e,i,s)),s&&t.observer.ignore(()=>{We(t.contentDOM);let e=t.root.activeElement;e&&!e.contains(t.contentDOM)&&e.blur()});let r=t.inputState.mouseSelection;if(r)return r.start(e),!1===r.dragging}else t.inputState.setSelectionOrigin("select.pointer");return!1};const ar=Oe.ie&&Oe.ie_version<=11;let lr=null,hr=0,cr=0;function ur(t){if(!ar)return t.detail;let e=lr,i=cr;return lr=t,cr=Date.now(),hr=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(hr+1)%3:1}function pr(t,e,i,s){if(!(i=rr(t.state,wi,i)))return;let r=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:n}=t.inputState,o=s&&n&&function(t,e){let i=t.state.facet(xi);return i.length?i[0](e):Oe.mac?!e.altKey:!e.ctrlKey}(t,e)?{from:n.from,to:n.to}:null,a={from:r,insert:i},l=t.state.changes(o?[o,a]:a);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(r,-1),head:l.mapPos(r,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}er.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;if(e.target.draggable){let s=t.docView.tile.nearest(e.target);if(s&&s.isWidget()){let t=s.posAtStart,e=t+s.length;(t>=i.to||e<=i.from)&&(i=E.range(t,e))}}let{inputState:s}=t;return s.mouseSelection&&(s.mouseSelection.dragging=!0),s.draggedContent=i,e.dataTransfer&&(e.dataTransfer.setData("Text",rr(t.state,ki,t.state.sliceDoc(i.from,i.to))),e.dataTransfer.effectAllowed="copyMove"),!1},er.dragend=t=>(t.inputState.draggedContent=null,!1),er.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let i=e.dataTransfer.files;if(i&&i.length){let s=Array(i.length),r=0,n=()=>{++r==i.length&&pr(t,e,s.filter(t=>null!=t).join(t.state.lineBreak),!1)};for(let t=0;t<i.length;t++){let e=new FileReader;e.onerror=n,e.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(e.result)||(s[t]=e.result),n()},e.readAsText(i[t])}return!0}{let i=e.dataTransfer.getData("Text");if(i)return pr(t,e,i,!0),!0}return!1},er.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let i=sr?null:e.clipboardData;return i?(nr(t,i.getData("text/plain")||i.getData("text/uri-list")),!0):(function(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus(),setTimeout(()=>{t.focus(),i.remove(),nr(t,i.value)},50)}(t),!1)};let dr=null;er.copy=er.cut=(t,e)=>{if(!Ae(t.contentDOM,t.observer.selectionRange))return!1;let{text:i,ranges:s,linewise:r}=function(t){let e=[],i=[],s=!1;for(let s of t.selection.ranges)s.empty||(e.push(t.sliceDoc(s.from,s.to)),i.push(s));if(!e.length){let r=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);n.number>r&&(e.push(n.text),i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})),r=n.number}s=!0}return{text:rr(t,ki,e.join(t.lineBreak)),ranges:i,linewise:s}}(t.state);if(!i&&!r)return!1;dr=r?i:null,"cut"!=e.type||t.state.readOnly||t.dispatch({changes:s,scrollIntoView:!0,userEvent:"delete.cut"});let n=sr?null:e.clipboardData;return n?(n.clearData(),n.setData("text/plain",i),!0):(function(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px",s.value=e,s.focus(),s.selectionEnd=e.length,s.selectionStart=0,setTimeout(()=>{s.remove(),t.focus()},50)}(t,i),!1)};const Or=ct.define();function fr(t,e){let i=[];for(let s of t.facet(Qi)){let r=s(t,e);r&&i.push(r)}return i.length?t.update({effects:i,annotations:Or.of(!0)}):null}function mr(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=fr(t.state,e);i?t.dispatch(i):t.update([])}},10)}ir.focus=t=>{t.inputState.lastFocusTime=Date.now(),t.scrollDOM.scrollTop||!t.inputState.lastScrollTop&&!t.inputState.lastScrollLeft||(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),mr(t)},ir.blur=t=>{t.observer.clearSelectionRange(),mr(t)},ir.compositionstart=ir.compositionupdate=t=>{t.observer.editContext||(null==t.inputState.compositionFirstChange&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},ir.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Oe.chrome&&Oe.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))},ir.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},er.beforeinput=(t,e)=>{var i,s;if("insertText"!=e.inputType&&"insertCompositionText"!=e.inputType||(t.inputState.insertingText=e.data,t.inputState.insertingTextAt=Date.now()),"insertReplacementText"==e.inputType&&t.observer.editContext){let s=null===(i=e.dataTransfer)||void 0===i?void 0:i.getData("text/plain"),r=e.getTargetRanges();if(s&&r.length){let e=r[0],i=t.posAtDOM(e.startContainer,e.startOffset),n=t.posAtDOM(e.endContainer,e.endOffset);return Ns(t,{from:i,to:n,insert:t.state.toText(s)},null),!0}}let r;if(Oe.chrome&&Oe.android&&(r=Fs.find(t=>t.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let e=(null===(s=window.visualViewport)||void 0===s?void 0:s.height)||0;setTimeout(()=>{var i;((null===(i=window.visualViewport)||void 0===i?void 0:i.height)||0)>e+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Oe.ios&&"deleteContentForward"==e.inputType&&t.observer.flushSoon(),Oe.safari&&"insertText"==e.inputType&&t.inputState.composing>=0&&setTimeout(()=>ir.compositionend(t,e),20),!1};const gr=new Set;const xr=["pre-wrap","normal","pre-line","break-spaces"];let vr=!1;function yr(){vr=!1}class Sr{constructor(t){this.lineWrapping=t,this.doc=u.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((t-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return xr.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i<t.length;i++){let s=t[i];s<0?i++:this.heightSamples[Math.floor(10*s)]||(e=!0,this.heightSamples[Math.floor(10*s)]=!0)}return e}refresh(t,e,i,s,r,n){let o=xr.indexOf(t)>-1,a=Math.abs(e-this.lineHeight)>.3||this.lineWrapping!=o||Math.abs(i-this.charWidth)>.1;if(this.lineWrapping=o,this.lineHeight=e,this.charWidth=i,this.textHeight=s,this.lineLength=r,a){this.heightSamples={};for(let t=0;t<n.length;t++){let e=n[t];e<0?t++:this.heightSamples[Math.floor(10*e)]=!0}}return a}}class br{constructor(t,e){this.from=t,this.heights=e,this.index=0}get more(){return this.index<this.heights.length}}class Qr{constructor(t,e,i,s,r){this.from=t,this.length=e,this.top=i,this.height=s,this._content=r}get type(){return"number"==typeof this._content?Se.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 ke?this._content.widget:null}get widgetLineBreaks(){return"number"==typeof this._content?this._content:0}join(t){let e=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(t._content)?t._content:[t]);return new Qr(this.from,this.length+t.length,this.top,this.height+t.height,e)}}var wr=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(wr||(wr={}));const kr=.001;class Pr{constructor(t,e,i=2){this.length=t,this.height=e,this.flags=i}get outdated(){return(2&this.flags)>0}set outdated(t){this.flags=(t?2:0)|-3&this.flags}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>kr&&(vr=!0),this.height=t)}replace(t,e,i){return Pr.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let r=this,n=i.doc;for(let o=s.length-1;o>=0;o--){let{fromA:a,toA:l,fromB:h,toB:c}=s[o],u=r.lineAt(a,wr.ByPosNoHeight,i.setDoc(e),0,0),p=u.to>=l?u:r.lineAt(l,wr.ByPosNoHeight,i,0,0);for(c+=p.to-l,l=p.to;o>0&&u.from<=s[o-1].toA;)a=s[o-1].fromA,h=s[o-1].fromB,o--,a<u.from&&(u=r.lineAt(a,wr.ByPosNoHeight,i,0,0));h+=u.from-a,a=u.from;let d=Er.build(i.setDoc(n),t,h,c);r=$r(r,r.replace(a,l,d))}return r.updateHeight(i,0)}static empty(){return new _r(0,0,0)}static of(t){if(1==t.length)return t[0];let e=0,i=t.length,s=0,r=0;for(;;)if(e==i)if(s>2*r){let r=t[e-1];r.break?t.splice(--e,1,r.left,null,r.right):t.splice(--e,1,r.left,r.right),i+=1+r.break,s-=r.size}else{if(!(r>2*s))break;{let e=t[i];e.break?t.splice(i,1,e.left,null,e.right):t.splice(i,1,e.left,e.right),i+=2+e.break,r-=e.size}}else if(s<r){let i=t[e++];i&&(s+=i.size)}else{let e=t[--i];e&&(r+=e.size)}let n=0;return null==t[e-1]?(n=1,e--):null==t[e]&&(n=1,i++),new Zr(Pr.of(t.slice(0,e)),n,Pr.of(t.slice(i)))}}function $r(t,e){return t==e?t:(t.constructor!=e.constructor&&(vr=!0),e)}Pr.prototype.size=1;const Tr=be.replace({});class Cr extends Pr{constructor(t,e,i){super(t,e),this.deco=i,this.spaceAbove=0}mainBlock(t,e){return new Qr(e,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(t,e,i,s){return this.spaceAbove&&t<i+this.spaceAbove?new Qr(s,0,i,this.spaceAbove,Tr):this.mainBlock(i,s)}lineAt(t,e,i,s,r){let n=this.mainBlock(s,r);return this.spaceAbove?this.blockAt(0,i,s,r).join(n):n}forEachLine(t,e,i,s,r,n){t<=r+this.length&&e>=r&&n(this.lineAt(0,wr.ByPos,i,s,r))}setMeasuredHeight(t){let e=t.heights[t.index++];e<0?(this.spaceAbove=-e,e=t.heights[t.index++]):this.spaceAbove=0,this.setHeight(e)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setMeasuredHeight(s),this.outdated=!1,this}toString(){return`block(${this.length})`}}class _r extends Cr{constructor(t,e,i){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(t,e){return new Qr(e,this.length,t+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(t,e,i){let s=i[0];return 1==i.length&&(s instanceof _r||s instanceof Ar&&4&s.flags)&&Math.abs(this.length-s.length)<10?(s instanceof Ar?s=new _r(s.length,this.height,this.spaceAbove):s.height=this.height,this.outdated||(s.outdated=!1),s):Pr.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setMeasuredHeight(s):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Ar extends Pr{constructor(t){super(t,0)}heightMetrics(t,e){let i,s=t.doc.lineAt(e).number,r=t.doc.lineAt(e+this.length).number,n=r-s+1,o=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*n);i=e/n,this.length>n+1&&(o=(this.height-e)/(this.length-n-1))}else i=this.height/n;return{firstLine:s,lastLine:r,perLine:i,perChar:o}}blockAt(t,e,i,s){let{firstLine:r,lastLine:n,perLine:o,perChar:a}=this.heightMetrics(e,s);if(e.lineWrapping){let r=s+(t<e.lineHeight?0:Math.round(Math.max(0,Math.min(1,(t-i)/this.height))*this.length)),n=e.doc.lineAt(r),l=o+n.length*a,h=Math.max(i,t-l/2);return new Qr(n.from,n.length,h,l,0)}{let s=Math.max(0,Math.min(n-r,Math.floor((t-i)/o))),{from:a,length:l}=e.doc.line(r+s);return new Qr(a,l,i+o*s,o,0)}}lineAt(t,e,i,s,r){if(e==wr.ByHeight)return this.blockAt(t,i,s,r);if(e==wr.ByPosNoHeight){let{from:e,to:s}=i.doc.lineAt(t);return new Qr(e,s-e,0,0,0)}let{firstLine:n,perLine:o,perChar:a}=this.heightMetrics(i,r),l=i.doc.lineAt(t),h=o+l.length*a,c=l.number-n,u=s+o*c+a*(l.from-r-c);return new Qr(l.from,l.length,Math.max(s,Math.min(u,s+this.height-h)),h,0)}forEachLine(t,e,i,s,r,n){t=Math.max(t,r),e=Math.min(e,r+this.length);let{firstLine:o,perLine:a,perChar:l}=this.heightMetrics(i,r);for(let h=t,c=s;h<=e;){let e=i.doc.lineAt(h);if(h==t){let i=e.number-o;c+=a*i+l*(t-r-i)}let s=a+l*e.length;n(new Qr(e.from,e.length,c,s,0)),c+=s,h=e.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let t=i[i.length-1];t instanceof Ar?i[i.length-1]=new Ar(t.length+s):i.push(null,new Ar(s-1))}if(t>0){let e=i[0];e instanceof Ar?i[0]=new Ar(t+e.length):i.unshift(new Ar(t-1),null)}return Pr.of(i)}decomposeLeft(t,e){e.push(new Ar(t-1),null)}decomposeRight(t,e){e.push(null,new Ar(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let r=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),o=-1;for(s.from>e&&i.push(new Ar(s.from-e-1).updateHeight(t,e));n<=r&&s.more;){let e=t.doc.lineAt(n).length;i.length&&i.push(null);let r=s.heights[s.index++],a=0;r<0&&(a=-r,r=s.heights[s.index++]),-1==o?o=r:Math.abs(r-o)>=kr&&(o=-2);let l=new _r(e,r,a);l.outdated=!1,i.push(l),n+=e+1}n<=r&&i.push(null,new Ar(r-n).updateHeight(t,n));let a=Pr.of(i);return(o<0||Math.abs(a.height-this.height)>=kr||Math.abs(o-this.heightMetrics(t,e).perLine)>=kr)&&(vr=!0),$r(this,a)}return(i||this.outdated)&&(this.setHeight(t.heightForGap(e,e+this.length)),this.outdated=!1),this}toString(){return`gap(${this.length})`}}class Zr extends Pr{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return 1&this.flags}blockAt(t,e,i,s){let r=i+this.left.height;return t<r?this.left.blockAt(t,e,i,s):this.right.blockAt(t,e,r,s+this.left.length+this.break)}lineAt(t,e,i,s,r){let n=s+this.left.height,o=r+this.left.length+this.break,a=e==wr.ByHeight?t<n:t<o,l=a?this.left.lineAt(t,e,i,s,r):this.right.lineAt(t,e,i,n,o);if(this.break||(a?l.to<o:l.from>o))return l;let h=e==wr.ByPosNoHeight?wr.ByPosNoHeight:wr.ByPos;return a?l.join(this.right.lineAt(o,h,i,n,o)):this.left.lineAt(o,h,i,s,r).join(l)}forEachLine(t,e,i,s,r,n){let o=s+this.left.height,a=r+this.left.length+this.break;if(this.break)t<a&&this.left.forEachLine(t,e,i,s,r,n),e>=a&&this.right.forEachLine(t,e,i,o,a,n);else{let l=this.lineAt(a,wr.ByPos,i,s,r);t<l.from&&this.left.forEachLine(t,l.from-1,i,s,r,n),l.to>=t&&l.from<=e&&n(l),e>l.to&&this.right.forEachLine(l.to+1,e,i,o,a,n)}}replace(t,e,i){let s=this.left.length+this.break;if(e<s)return this.balanced(this.left.replace(t,e,i),this.right);if(t>this.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let r=[];t>0&&this.decomposeLeft(t,r);let n=r.length;for(let t of i)r.push(t);if(t>0&&Xr(r,n-1),e<this.length){let t=r.length;this.decomposeRight(e,r),Xr(r,t)}return Pr.of(r)}decomposeLeft(t,e){let i=this.left.length;if(t<=i)return this.left.decomposeLeft(t,e);e.push(this.left),this.break&&(i++,t>=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t<i&&this.left.decomposeRight(t,e),this.break&&t<s&&e.push(null),e.push(this.right)}balanced(t,e){return t.size>2*e.size||e.size>2*t.size?Pr.of(this.break?[t,null,e]:[t,e]):(this.left=$r(this.left,t),this.right=$r(this.right,e),this.setHeight(t.height+e.height),this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:r,right:n}=this,o=e+r.length+this.break,a=null;return s&&s.from<=e+r.length&&s.more?a=r=r.updateHeight(t,e,i,s):r.updateHeight(t,e,i),s&&s.from<=o+n.length&&s.more?a=n=n.updateHeight(t,o,i,s):n.updateHeight(t,o,i),a?this.balanced(r,n):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Xr(t,e){let i,s;null==t[e]&&(i=t[e-1])instanceof Ar&&(s=t[e+1])instanceof Ar&&t.splice(e-1,3,new Ar(i.length+1+s.length))}class Er{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof _r?i.length+=t-this.pos:(t>this.pos||!this.isCovered)&&this.nodes.push(new _r(t-this.pos,-1,0)),this.writtenTo=t,e>t&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t<e||i.heightRelevant){let s=i.widget?i.widget.estimatedHeight:0,r=i.widget?i.widget.lineBreaks:0;s<0&&(s=this.oracle.lineHeight);let n=e-t;i.block?this.addBlock(new Cr(n,s,i)):(n||r||s>=5)&&this.addLineDeco(s,r,n)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTo<t&&((this.writtenTo<t-1||null==this.nodes[this.nodes.length-1])&&this.nodes.push(this.blankContent(this.writtenTo,t-1)),this.nodes.push(null)),this.pos>t&&this.nodes.push(new _r(this.pos-t,-1,0)),this.writtenTo=this.pos}blankContent(t,e){let i=new Ar(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof _r)return t;let e=new _r(0,-1,0);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,t),s.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||e instanceof _r||this.isCovered?(this.writtenTo<this.pos||null==e)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos)):this.nodes.push(new _r(0,-1,0));let i=t;for(let t of this.nodes)t instanceof _r&&t.updateHeight(this.oracle,i),i+=t?t.length:1;return this.nodes}static build(t,e,i,s){let r=new Er(i,t);return Zt.spans(e,i,s,r,0),r.finish(i)}}class Rr{constructor(){this.changes=[]}compareRange(){}comparePoint(t,e,i,s){(t<e||i&&i.heightRelevant||s&&s.heightRelevant)&&$e(t,e,this.changes,5)}}function Mr(t,e){let i=t.getBoundingClientRect(),s=t.ownerDocument,r=s.defaultView||window,n=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 e=t.parentNode;e&&e!=s.body;)if(1==e.nodeType){let i=e,s=window.getComputedStyle(i);if((i.scrollHeight>i.clientHeight||i.scrollWidth>i.clientWidth)&&"visible"!=s.overflow){let s=i.getBoundingClientRect();n=Math.max(n,s.left),o=Math.min(o,s.right),a=Math.max(a,s.top),l=Math.min(e==t.parentNode?r.innerHeight:l,s.bottom)}e="absolute"==s.position||"fixed"==s.position?i.offsetParent:i.parentNode}else{if(11!=e.nodeType)break;e=e.host}return{left:n-i.left,right:Math.max(n,o)-i.left,top:a-(i.top+e),bottom:Math.max(a,l)-(i.top+e)}}function Vr(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class zr{constructor(t,e,i,s){this.from=t,this.to=e,this.size=i,this.displaySize=s}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++){let s=t[i],r=e[i];if(s.from!=r.from||s.to!=r.to||s.size!=r.size)return!1}return!0}draw(t,e){return be.replace({widget:new Ir(this.displaySize*(e?t.scaleY:t.scaleX),e)}).range(this.from,this.to)}}class Ir extends ye{constructor(t,e){super(),this.size=t,this.vertical=e}eq(t){return t.size==this.size&&t.vertical==this.vertical}toDOM(){let t=document.createElement("div");return this.vertical?t.style.height=this.size+"px":(t.style.width=this.size+"px",t.style.height="2px",t.style.display="inline-block"),t}get estimatedHeight(){return this.vertical?this.size:-1}}class Yr{constructor(t,e){this.view=t,this.state=e,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=Nr,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ke.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let i=e.facet(Ii).some(t=>"function"!=typeof t&&"cm-lineWrapping"==t.class);this.heightOracle=new Sr(i),this.stateDeco=Wr(e),this.heightMap=Pr.empty().applyChanges(this.stateDeco,u.empty,this.heightOracle.setDoc(e.doc),[new Ui(0,0,0,e.doc.length)]);for(let t=0;t<2&&(this.viewport=this.getViewport(0,null),this.updateForViewport());t++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=be.set(this.lineGaps.map(t=>t.draw(this,!1))),this.scrollParent=t.scrollDOM,this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:t,to:e})=>s>=t&&s<=e)){let{from:e,to:i}=this.lineBlockAt(s);t.push(new qr(e,i))}}return this.viewports=t.sort((t,e)=>t.from-e.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?Nr:new jr(this.heightOracle,this.heightMap,this.viewports),t.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,t=>{this.viewportLines.push(Br(t,this.scaler))})}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=Wr(this.state);let s=t.changedRanges,r=Ui.extendWithRanges(s,function(t,e,i){let s=new Rr;return Zt.compare(t,e,i,s,0),s.changes}(i,this.stateDeco,t?t.changes:P.empty(this.state.doc.length))),n=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollOffset);yr(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),(this.heightMap.height!=n||vr)&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=n);let a=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.head<a.from||e.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,e));let l=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,t.flags|=this.updateForViewport(),(l||!t.changes.empty||2&t.flags)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(t.changes),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&(t.selectionSet||t.focusChanged)&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet($i)&&(this.mustEnforceCursorAssoc=!0)}measure(){let{view:t}=this,e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection="rtl"==i.direction?Ke.RTL:Ke.LTR;let n=this.heightOracle.mustRefreshForWrapping(r)||"refresh"===this.mustMeasureContent,o=e.getBoundingClientRect(),a=n||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:t,scaleY:i}=Ye(e,o);(t>.005&&Math.abs(this.scaleX-t)>.005||i>.005&&Math.abs(this.scaleY-i)>.005)&&(this.scaleX=t,this.scaleY=i,l|=16,n=a=!0)}let c=(parseInt(i.paddingTop)||0)*this.scaleY,p=(parseInt(i.paddingBottom)||0)*this.scaleY;this.paddingTop==c&&this.paddingBottom==p||(this.paddingTop=c,this.paddingBottom=p,l|=18),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(a=!0),this.editorWidth=t.scrollDOM.clientWidth,l|=16);let d=qe(this.view.contentDOM,!1).y;d!=this.scrollParent&&(this.scrollParent=d,this.scrollAnchorHeight=-1,this.scrollOffset=0);let O=this.getScrollOffset();this.scrollOffset!=O&&(this.scrollAnchorHeight=-1,this.scrollOffset=O),this.scrolledToBottom=Ge(this.scrollParent||t.win);let f=(this.printing?Vr:Mr)(e,this.paddingTop),m=f.top-this.pixelViewport.top,g=f.bottom-this.pixelViewport.bottom;this.pixelViewport=f;let x=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(x!=this.inView&&(this.inView=x,x&&(a=!0)),!this.inView&&!this.scrollTarget&&!function(t){let e=t.getBoundingClientRect(),i=t.ownerDocument.defaultView||window;return e.left<i.innerWidth&&e.right>0&&e.top<i.innerHeight&&e.bottom>0}(t.dom))return 0;let v=o.width;if(this.contentDOMWidth==v&&this.editorHeight==t.scrollDOM.clientHeight||(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,l|=16),a){let e=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(e)&&(n=!0),n||s.lineWrapping&&Math.abs(v-this.contentDOMWidth)>s.charWidth){let{lineHeight:i,charWidth:o,textHeight:a}=t.docView.measureTextSize();n=i>0&&s.refresh(r,i,o,a,Math.max(5,v/o),e),n&&(t.docView.minWidth=0,l|=16)}m>0&&g>0?h=Math.max(m,g):m<0&&g<0&&(h=Math.min(m,g)),yr();for(let i of this.viewports){let r=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(n?Pr.empty().applyChanges(this.stateDeco,u.empty,this.heightOracle,[new Ui(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,n,new br(i.from,r))}vr&&(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(n?[]:this.lineGaps,t)),l|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),l}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:n,visibleBottom:o}=this,a=new qr(s.lineAt(n-1e3*i,wr.ByHeight,r,0,0).from,s.lineAt(o+1e3*(1-i),wr.ByHeight,r,0,0).to);if(e){let{head:t}=e.range;if(t<a.from||t>a.to){let i,n=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),o=s.lineAt(t,wr.ByPos,r,0,0);i="center"==e.y?(o.top+o.bottom)/2-n/2:"start"==e.y||"nearest"==e.y&&t<a.from?o.top:o.bottom-n,a=new qr(s.lineAt(i-500,wr.ByHeight,r,0,0).from,s.lineAt(i+n+500,wr.ByHeight,r,0,0).to)}}return a}mapViewport(t,e){let i=e.mapPos(t.from,-1),s=e.mapPos(t.to,1);return new qr(this.heightMap.lineAt(i,wr.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(s,wr.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:t,to:e},i=0){if(!this.inView)return!0;let{top:s}=this.heightMap.lineAt(t,wr.ByPos,this.heightOracle,0,0),{bottom:r}=this.heightMap.lineAt(e,wr.ByPos,this.heightOracle,0,0),{visibleTop:n,visibleBottom:o}=this;return(0==t||s<=n-Math.max(10,Math.min(-i,250)))&&(e==this.state.doc.length||r>=o+Math.max(10,Math.min(i,250)))&&s>n-2e3&&r<o+2e3}mapLineGaps(t,e){if(!t.length||e.empty)return t;let i=[];for(let s of t)e.touchesRange(s.from,s.to)||i.push(new zr(e.mapPos(s.from),e.mapPos(s.to),s.size,s.displaySize));return i}ensureLineGaps(t,e){let i=this.heightOracle.lineWrapping,s=i?1e4:2e3,r=s>>1,n=s<<1;if(this.defaultTextDirection!=Ke.LTR&&!i)return[];let o=[],a=(s,n,l,h)=>{if(n-s<r)return;let c=this.state.selection.main,u=[c.from];c.empty||u.push(c.to);for(let t of u)if(t>s&&t<n)return a(s,t-10,l,h),void a(t+10,n,l,h);let p=function(t,e){for(let i of t)if(e(i))return i;return}(t,t=>t.from>=l.from&&t.to<=l.to&&Math.abs(t.from-s)<r&&Math.abs(t.to-n)<r&&!u.some(e=>t.from<e&&t.to>e));if(!p){if(n<l.to&&e&&i&&e.visibleRanges.some(t=>t.from<=n&&t.to>=n)){let t=e.moveToLineBoundary(E.cursor(n),!1,!0).head;t>s&&(n=t)}let t=this.gapSize(l,s,n,h);p=new zr(s,n,t,i||t<2e6?t:2e6)}o.push(p)},l=e=>{if(e.length<n||e.type!=Se.Text)return;let r=function(t,e,i){let s=[],r=t,n=0;Zt.spans(i,t,e,{span(){},point(t,e){t>r&&(s.push({from:r,to:t}),n+=t-r),r=e}},20),r<e&&(s.push({from:r,to:e}),n+=e-r);return{total:n,ranges:s}}(e.from,e.to,this.stateDeco);if(r.total<n)return;let o,l,h=this.scrollTarget?this.scrollTarget.range.head:null;if(i){let t,i,n=s/this.heightOracle.lineLength*this.heightOracle.lineHeight;if(null!=h){let s=Lr(r,h),o=((this.visibleBottom-this.visibleTop)/2+n)/e.height;t=s-o,i=s+o}else t=(this.visibleTop-e.top-n)/e.height,i=(this.visibleBottom-e.top+n)/e.height;o=Dr(r,t),l=Dr(r,i)}else{let i=r.total*this.heightOracle.charWidth,n=s*this.heightOracle.charWidth,a=0;if(i>2e6)for(let i of t)i.from>=e.from&&i.from<e.to&&i.size!=i.displaySize&&i.from*this.heightOracle.charWidth+a<this.pixelViewport.left&&(a=i.size-i.displaySize);let c,u,p=this.pixelViewport.left+a,d=this.pixelViewport.right+a;if(null!=h){let t=Lr(r,h),e=((d-p)/2+n)/i;c=t-e,u=t+e}else c=(p-n)/i,u=(d+n)/i;o=Dr(r,c),l=Dr(r,u)}o>e.from&&a(e.from,o,e,r),l<e.to&&a(l,e.to,e,r)};for(let t of this.viewportLines)Array.isArray(t.type)?t.type.forEach(l):l(t);return o}gapSize(t,e,i,s){let r=Lr(s,i)-Lr(s,e);return this.heightOracle.lineWrapping?t.height*r:s.total*this.heightOracle.charWidth*r}updateLineGaps(t){zr.same(t,this.lineGaps)||(this.lineGaps=t,this.lineGapDeco=be.set(t.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(t){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let i=[];Zt.spans(e,this.viewport.from,this.viewport.to,{span(t,e){i.push({from:t,to:e})},point(){}},20);let s=0;if(i.length!=this.visibleRanges.length)s=12;else for(let e=0;e<i.length&&!(8&s);e++){let r=this.visibleRanges[e],n=i[e];r.from==n.from&&r.to==n.to||(s|=4,t&&t.mapPos(r.from,-1)==n.from&&t.mapPos(r.to,1)==n.to||(s|=8))}return this.visibleRanges=i,s}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||Br(this.heightMap.lineAt(t,wr.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||Br(this.heightMap.lineAt(this.scaler.fromDOM(t),wr.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(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return Br(this.heightMap.blockAt(this.scaler.fromDOM(t),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 qr{constructor(t,e){this.from=t,this.to=e}}function Dr({total:t,ranges:e},i){if(i<=0)return e[0].from;if(i>=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let t=0;;t++){let{from:i,to:r}=e[t],n=r-i;if(s<=n)return i+s;s-=n}}function Lr(t,e){let i=0;for(let{from:s,to:r}of t.ranges){if(e<=r){i+=e-s;break}i+=r-s}return i/t.total}const Nr={toDOM:t=>t,fromDOM:t=>t,scale:1,eq(t){return t==this}};function Wr(t){let e=t.facet(Yi).filter(t=>"function"!=typeof t),i=t.facet(Di).filter(t=>"function"!=typeof t);return i.length&&e.push(Zt.join(i)),e}class jr{constructor(t,e,i){let s=0,r=0,n=0;this.viewports=i.map(({from:i,to:r})=>{let n=e.lineAt(i,wr.ByPos,t,0,0).top,o=e.lineAt(r,wr.ByPos,t,0,0).bottom;return s+=o-n,{from:i,to:r,top:n,bottom:o,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s);for(let t of this.viewports)t.domTop=n+(t.top-r)*this.scale,n=t.domBottom=t.domTop+(t.bottom-t.top),r=t.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let r=e<this.viewports.length?this.viewports[e]:null;if(!r||t<r.top)return s+(t-i)*this.scale;if(t<=r.bottom)return r.domTop+(t-r.top);i=r.bottom,s=r.domBottom}}fromDOM(t){for(let e=0,i=0,s=0;;e++){let r=e<this.viewports.length?this.viewports[e]:null;if(!r||t<r.domTop)return i+(t-s)/this.scale;if(t<=r.domBottom)return r.top+(t-r.domTop);i=r.bottom,s=r.domBottom}}eq(t){return t instanceof jr&&(this.scale==t.scale&&this.viewports.length==t.viewports.length&&this.viewports.every((e,i)=>e.from==t.viewports[i].from&&e.to==t.viewports[i].to))}}function Br(t,e){if(1==e.scale)return t;let i=e.toDOM(t.top),s=e.toDOM(t.bottom);return new Qr(t.from,t.length,i,s-i,Array.isArray(t._content)?t._content.map(t=>Br(t,e)):t._content)}const Gr=V.define({combine:t=>t.join(" ")}),Ur=V.define({combine:t=>t.indexOf(!0)>-1}),Fr=Gt.newName(),Hr=Gt.newName(),Kr=Gt.newName(),Jr={"&light":"."+Hr,"&dark":"."+Kr};function tn(t,e,i){return new Gt(e,{finish:e=>/&/.test(e)?e.replace(/&\w*/,e=>{if("&"==e)return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]}):t+" "+e})}const en=tn("."+Fr,{"&":{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"}},Jr),sn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},rn=Oe.ie&&Oe.ie_version<=11;class nn{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new De,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=t.contentDOM,this.observer=new MutationObserver(e=>{for(let t of e)this.queue.push(t);(Oe.ie&&Oe.ie_version<=11||Oe.ios&&t.composing)&&e.some(t=>"childList"==t.type&&t.removedNodes.length||"characterData"==t.type&&t.oldValue.length>t.target.nodeValue.length)?this.flushSoon():this.flush()}),!window.EditContext||!Oe.android||!1===t.constructor.EDIT_CONTEXT||Oe.chrome&&Oe.chrome_version<126||(this.editContext=new ln(t),t.state.facet(Xi)&&(t.contentDOM.editContext=this.editContext.editContext)),rn&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.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 t;(null===(t=this.view.docView)||void 0===t?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(t.scrollDOM)),this.addWindowListeners(this.win=t.win),this.start(),"function"==typeof IntersectionObserver&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.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(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){("change"!=t.type&&t.type||t.matches)&&(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(Xi)?i.root.activeElement!=this.dom:!Ae(this.dom,s))return;let r=s.anchorNode&&i.docView.tile.nearest(s.anchorNode);r&&r.isWidget()&&r.widget.ignoreEvent(t)?e||(this.selectionChanged=!1):(Oe.ie&&Oe.ie_version<=11||Oe.android&&Oe.chrome)&&!i.state.selection.main.empty&&s.focusNode&&Xe(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=Ce(t.root);if(!e)return!1;let i=Oe.safari&&11==t.root.nodeType&&t.root.activeElement==this.dom&&function(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return an(t,i)}let i=null;function s(t){t.preventDefault(),t.stopImmediatePropagation(),i=t.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",s,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",s,!0),i?an(t,i):null}(this.view,e)||e;if(!i||this.selectionRange.eq(i))return!1;let s=Ae(this.dom,i);return s&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime<Date.now()-300&&function(t,e){let i=e.focusNode,s=e.focusOffset;if(!i||e.anchorNode!=i||e.anchorOffset!=s)return!1;for(s=Math.min(s,Ve(i));;)if(s){if(1!=i.nodeType)return!1;let t=i.childNodes[s-1];"false"==t.contentEditable?s--:(i=t,s=Ve(i))}else{if(i==t)return!0;s=Ee(i),i=i.parentNode}}(this.dom,i)?(this.view.inputState.lastFocusTime=0,t.docView.updateSelection(),!1):(this.selectionRange.setRange(i),s&&(this.selectionChanged=!0),!0)}setSelectionRange(t,e){this.selectionRange.set(t.node,t.offset,e.node,e.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let t=0,e=null;for(let i=this.dom;i;)if(1==i.nodeType)!e&&t<this.scrollTargets.length&&this.scrollTargets[t]==i?t++:e||(e=this.scrollTargets.slice(0,t)),e&&e.push(i),i=i.assignedSlot||i.parentNode;else{if(11!=i.nodeType)break;i=i.host}if(t<this.scrollTargets.length&&!e&&(e=this.scrollTargets.slice(0,t)),e){for(let t of this.scrollTargets)t.removeEventListener("scroll",this.onScroll);for(let t of this.scrollTargets=e)t.addEventListener("scroll",this.onScroll)}}ignore(t){if(!this.active)return t();try{return this.stop(),t()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,sn),rn&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),rn&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(t,e){var i;if(!this.delayedAndroidKey){let t=()=>{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=t.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&t.force&&Be(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}this.delayedAndroidKey&&"Enter"!=t||(this.delayedAndroidKey={key:t,keyCode:e,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 t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,s=!1;for(let r of t){let t=this.readMutation(r);t&&(t.typeOver&&(s=!0),-1==e?({from:e,to:i}=t):(e=Math.min(t.from,e),i=Math.max(t.to,i)))}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Ae(this.dom,this.selectionRange);if(t<0&&!s)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new qs(this.view,t,e,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,s=Ls(this.view,e);return this.view.state==i&&(e.domChanged||e.newSel&&!js(this.view.state.selection,e.newSel.main))&&this.view.update([]),s}readMutation(t){let e=this.view.docView.tile.nearest(t.target);if(!e||e.isWidget())return null;if(e.markDirty("attributes"==t.type),"childList"==t.type){let i=on(e,t.previousSibling||t.target.previousSibling,-1),s=on(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}return"characterData"==t.type?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(Xi)!=t.state.facet(Xi)&&(t.view.contentDOM.editContext=t.state.facet(Xi)?this.editContext.editContext:null))}destroy(){var t,e,i;this.stop(),null===(t=this.intersection)||void 0===t||t.disconnect(),null===(e=this.gapIntersection)||void 0===e||e.disconnect(),null===(i=this.resizeScroll)||void 0===i||i.disconnect();for(let t of this.scrollTargets)t.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 on(t,e,i){for(;e;){let s=Ki.get(e);if(s&&s.parent==t)return s;let r=e.parentNode;e=r!=t.dom?r:i>0?e.nextSibling:e.previousSibling}return null}function an(t,e){let i=e.startContainer,s=e.startOffset,r=e.endContainer,n=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor,1);return Xe(o.node,o.offset,r,n)&&([i,s,r,n]=[r,n,i,s]),{anchorNode:i,anchorOffset:s,focusNode:r,focusOffset:n}}class ln{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=i=>{let s=t.state.selection.main,{anchor:r,head:n}=s,o=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);t.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=Ws(t.state.sliceDoc(o,a),i.text,(l?s.from:s.to)-o,l?"end":null);if(!h){let e=E.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));return void(js(e,s)||t.dispatch({selection:e,userEvent:"select"}))}let c={from:h.from+o,to:h.toA+o,insert:u.of(i.text.slice(h.from,h.toB).split("\n"))};if((Oe.mac||Oe.android)&&c.from==n-1&&/^\. ?$/.test(i.text)&&"off"==t.contentDOM.getAttribute("autocorrect")&&(c={from:o,to:a,insert:u.of([i.text.replace("."," ")])}),this.pendingContextChange=c,!t.state.readOnly){let e=this.to-this.from+(c.to-c.from+c.insert.length);Ns(t,c,E.single(this.toEditorPos(i.selectionStart,e),this.toEditorPos(i.selectionEnd,e)))}this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)),c.from<c.to&&!c.insert.length&&t.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(e.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(e.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let e=this.toEditorPos(i.rangeStart),n=this.toEditorPos(i.rangeEnd);e<n;e++){let i=t.coordsForChar(e);r=i&&new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.top)||r||new DOMRect,s.push(r)}e.updateCharacterBounds(i.rangeStart,s)},this.handlers.textformatupdate=e=>{let i=[];for(let t of e.getTextFormats()){let e=t.underlineStyle,s=t.underlineThickness;if(!/none/i.test(e)&&!/none/i.test(s)){let r=this.toEditorPos(t.rangeStart),n=this.toEditorPos(t.rangeEnd);if(r<n){let t=`text-decoration: underline ${/^[a-z]/.test(e)?e+" ":"Dashed"==e?"dashed ":"Squiggle"==e?"wavy ":""}${/thin/i.test(s)?1:2}px`;i.push(be.mark({attributes:{style:t}}).range(r,n))}}}t.dispatch({effects:Ai.of(be.set(i))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(t.inputState.composing=-1,t.inputState.compositionFirstChange=null,this.composing){let{drifted:e}=this.composing;this.composing=null,e&&this.reset(t.state)}};for(let t in this.handlers)e.addEventListener(t,this.handlers[t]);this.measureReq={read:t=>{this.editContext.updateControlBounds(t.contentDOM.getBoundingClientRect());let e=Ce(t.root);e&&e.rangeCount&&this.editContext.updateSelectionBounds(e.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=!1,s=this.pendingContextChange;return t.changes.iterChanges((r,n,o,a,l)=>{if(i)return;let h=l.length-(n-r);if(s&&n>=s.to){if(s.from==r&&s.to==n&&s.insert.eq(l))return s=this.pendingContextChange=null,e+=h,void(this.to+=h);s=null,this.revertPending(t.state)}if(r+=e,(n+=e)<=this.from)this.from+=h,this.to+=h;else if(r<this.to){if(r<this.from||n>this.to||this.to-this.from+l.length>3e4)return void(i=!0);this.editContext.updateText(this.toContextPos(r),this.toContextPos(n),l.toString()),this.to+=h}e+=h}),s&&!i&&this.revertPending(t.state),!i}update(t){let e=this.pendingContextChange,i=t.startState.selection.main;this.composing&&(this.composing.drifted||!t.changes.touchesRange(i.from,i.to)&&t.transactions.some(t=>!t.isUserEvent("input.type")&&t.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=t.changes.mapPos(this.composing.editorBase)):this.applyEdits(t)&&this.rangeIsValid(t.state)?(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state):(this.pendingContextChange=null,this.reset(t.state)),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}reset(t){this.resetRange(t),this.editContext.updateText(0,this.editContext.text.length,t.doc.sliceString(this.from,this.to)),this.setSelection(t)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),s=this.toContextPos(e.head);this.editContext.selectionStart==i&&this.editContext.selectionEnd==s||this.editContext.updateSelection(i,s)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to<t.doc.length&&this.to-e<500||this.to-this.from>3e4)}toEditorPos(t,e=this.to-this.from){t=Math.min(t,e);let i=this.composing;return i&&i.drifted?i.editorBase+(t-i.contextBase):t+this.from}toContextPos(t){let e=this.composing;return e&&e.drifted?e.contextBase+(t-e.editorBase):t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class hn{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(t={}){var e;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),t.parent&&t.parent.appendChild(this.dom);let{dispatch:i}=t;this.dispatchTransactions=t.dispatchTransactions||i&&(t=>t.forEach(t=>i(t,this)))||(t=>this.update(t)),this.dispatch=this.dispatch.bind(this),this._root=t.root||function(t){for(;t;){if(t&&(9==t.nodeType||11==t.nodeType&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}(t.parent)||document,this.viewState=new Yr(this,t.state||kt.create(t)),t.scrollTo&&t.scrollTo.is(_i)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ri).map(t=>new Vi(t));for(let t of this.plugins)t.update(this);this.observer=new nn(this),this.inputState=new Bs(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Ss(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),(null===(e=document.fonts)||void 0===e?void 0:e.ready)&&document.fonts.ready.then(()=>{this.viewState.mustMeasureContent="refresh",this.requestMeasure()})}dispatch(...t){let e=1==t.length&&t[0]instanceof Ot?t:1==t.length&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(0!=this.updateState)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e,i=!1,s=!1,r=this.state;for(let e of t){if(e.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=e.state}if(this.destroyed)return void(this.viewState.state=r);let n=this.hasFocus,o=0,a=null;t.some(t=>t.annotation(Or))?(this.inputState.notifiedFocused=n,o=1):n!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=n,a=fr(r,n),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(kt.phrases)!=this.state.facet(kt.phrases))return this.setState(r);e=Fi.create(this,r,t),e.flags|=o;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(c&&(c=c.map(e.changes)),e.scrollIntoView){let{main:t}=e.state.selection;c=new Ci(t.empty?t:E.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)t.is(_i)&&(c=t.value.clip(this.state))}this.viewState.update(e,c),this.bidiCache=pn.update(this.bidiCache,e.changes),e.empty||(this.updatePlugins(e),this.inputState.update(e)),i=this.docView.update(e),this.state.facet(Gi)!=this.styleModules&&this.mountStyles(),s=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(i,t.some(t=>t.isUserEvent("select.pointer")))}finally{this.updateState=0}if(e.startState.facet(Gr)!=e.state.facet(Gr)&&(this.viewState.mustMeasureContent=!0),(i||s||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),i&&this.docViewUpdate(),!e.empty)for(let t of this.state.facet(Si))try{t(e)}catch(t){Zi(this.state,t,"update listener")}(a||h)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),h&&!Ls(this,h)&&l.force&&Be(this.contentDOM,l.key,l.keyCode)})}setState(t){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=t);this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new Yr(this,t),this.plugins=t.facet(Ri).map(t=>new Vi(t)),this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView.destroy(),this.docView=new Ss(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Ri),i=t.state.facet(Ri);if(e!=i){let s=[];for(let r of i){let i=e.indexOf(r);if(i<0)s.push(new Vi(r));else{let e=this.plugins[i];e.mustUpdate=t,s.push(e)}}for(let e of this.plugins)e.mustUpdate!=t&&e.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let e of this.plugins)e.mustUpdate=t;for(let t=0;t<this.plugins.length;t++)this.plugins[t].update(this);e!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let t of this.plugins){let e=t.value;if(e&&e.docViewUpdate)try{e.docViewUpdate(this)}catch(t){Zi(this.state,t,"doc view update listener")}}}measure(t=!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,t&&this.observer.forceFlush();let e=null,i=this.viewState.scrollParent,s=this.viewState.getScrollOffset(),{scrollAnchorPos:r,scrollAnchorHeight:n}=this.viewState;Math.abs(s-this.viewState.scrollOffset)>1&&(n=-1),this.viewState.scrollAnchorHeight=-1;try{for(let t=0;;t++){if(n<0)if(Ge(i||this.win))r=-1,n=this.viewState.heightMap.height;else{let t=this.viewState.scrollAnchorAt(s);r=t.from,n=t.top}this.updateState=1;let o=this.viewState.measure();if(!o&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(t>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(t=>{try{return t.read(this)}catch(t){return Zi(this.state,t),un}}),h=Fi.create(this,this.state,[]),c=!1;h.flags|=o,e?e.flags|=o:e=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 t=0;t<a.length;t++)if(l[t]!=un)try{let e=a[t];e.write&&e.write(l[t],this)}catch(t){Zi(this.state,t)}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,n=-1;continue}{let t=((r<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(r).top)-n)/this.scaleY;if((t>1||t<-1)&&(i==this.scrollDOM||this.hasFocus||Math.max(this.inputState.lastWheelEvent,this.inputState.lastTouchTime)>Date.now()-100)){s+=t,i?i.scrollTop+=t:this.win.scrollBy(0,t),n=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let t of this.state.facet(Si))t(e)}get themeClasses(){return Fr+" "+(this.state.facet(Ur)?Kr:Hr)+" "+this.state.facet(Gr)}updateAttrs(){let t=dn(this,zi,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Xi)?"true":"false",class:"cm-content",style:`${Oe.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),dn(this,Ii,e);let i=this.observer.ignore(()=>{let i=xe(this.contentDOM,this.contentAttrs,e),s=xe(this.dom,this.editorAttrs,t);return i||s});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let t of i.effects)if(t.is(hn.announce)){e&&(this.announceDOM.textContent=""),e=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(Gi);let t=this.state.facet(hn.cspNonce);Gt.mount(this.root,this.styleModules.concat(en).reverse(),t?{nonce:t}: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(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(null!=t.key)for(let e=0;e<this.measureRequests.length;e++)if(this.measureRequests[e].key===t.key)return void(this.measureRequests[e]=t);this.measureRequests.push(t)}}plugin(t){let e=this.pluginMap.get(t);return(void 0===e||e&&e.plugin!=t)&&this.pluginMap.set(t,e=this.plugins.find(e=>e.plugin==t)||null),e&&e.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(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return Zs(this,t,Cs(this,t,e,i))}moveByGroup(t,e){return Zs(this,t,Cs(this,t,e,e=>function(t,e,i){let s=t.state.charCategorizer(e),r=s(i);return t=>{let e=s(t);return r==St.Space&&(r=e),r==e}}(this,t.head,e)))}visualLineSide(t,e){let i=this.bidiSpans(t),s=this.textDirectionAt(t.from),r=i[e?i.length-1:0];return E.cursor(r.side(e,s)+t.from,r.forward(!e,s)?1:-1)}moveToLineBoundary(t,e,i=!0){return function(t,e,i,s){let r=Ts(t,e.head,e.assoc||-1),n=s&&r.type==Se.Text&&(t.lineWrapping||r.widgetLineBreaks)?t.coordsAtPos(e.assoc<0&&e.head>r.from?e.head-1:e.head):null;if(n){let e=t.dom.getBoundingClientRect(),s=t.textDirectionAt(r.from),o=t.posAtCoords({x:i==(s==Ke.LTR)?e.right-1:e.left+1,y:(n.top+n.bottom)/2});if(null!=o)return E.cursor(o,i?-1:1)}return E.cursor(i?r.to:r.from,i?-1:1)}(this,t,e,i)}moveVertically(t,e,i){return Zs(this,t,function(t,e,i,s){let r=e.head,n=i?1:-1;if(r==(i?t.state.doc.length:0))return E.cursor(r,e.assoc);let o,a=e.goalColumn,l=t.contentDOM.getBoundingClientRect(),h=t.coordsAtPos(r,e.assoc||((e.empty?i:e.head==e.from)?1:-1)),c=t.documentTop;if(h)null==a&&(a=h.left-l.left),o=n<0?h.top:h.bottom;else{let e=t.viewState.lineBlockAt(r);null==a&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(r-e.from))),o=(n<0?e.top:e.bottom)+c}let u=l.left+a,p=t.viewState.heightOracle.textHeight>>1,d=null!=s?s:p;for(let e=0;;e+=p){let s=o+(d+e)*n,r=Es(t,{x:u,y:s},!1,n);if(i?s>l.bottom:s<l.top)return E.cursor(r.pos,r.assoc);let h=t.coordsAtPos(r.pos,r.assoc),c=h?(h.top+h.bottom)/2:0;if(!h||(i?c>o:c<o))return E.cursor(r.pos,r.assoc,void 0,a)}}(this,t,e,i))}domAtPos(t,e=1){return this.docView.domAtPos(t,e)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){this.readMeasured();let i=Es(this,t,e);return i&&i.pos}posAndSideAtCoords(t,e=!0){return this.readMeasured(),Es(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),r=this.bidiSpans(s);return ze(i,r[li.find(r,t-s.from,-1,e)].dir==Ke.LTR==e>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Pi)||t<this.viewport.from||t>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>cn)return di(t.length);let e,i=this.textDirectionAt(t.from);for(let s of this.bidiCache)if(s.from==t.from&&s.dir==i&&(s.fresh||hi(s.isolates,e=Wi(this,t))))return s.order;e||(e=Wi(this,t));let s=function(t,e,i){if(!t)return[new li(0,0,e==ti?1:0)];if(e==Je&&!i.length&&!ai.test(t))return di(t.length);if(i.length)for(;t.length>ci.length;)ci[ci.length]=256;let s=[],r=e==Je?0:1;return pi(t,r,r,i,0,t.length,s),s}(t.text,i,e);return this.bidiCache.push(new pn(t.from,t.to,i,e,!0,s)),s}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||Oe.safari&&(null===(t=this.inputState)||void 0===t?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{We(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((9==t.nodeType?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.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(t,e={}){return _i.of(new Ci("number"==typeof t?E.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return _i.of(new Ci(E.cursor(i.from),"start","start",i.top-t,e,!0))}setTabFocusMode(t){null==t?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:"boolean"==typeof t?this.inputState.tabFocusMode=t?0:-1:0!=this.inputState.tabFocusMode&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return Mi.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Mi.define(()=>({}),{eventObservers:t})}static theme(t,e){let i=Gt.newName(),s=[Gr.of(i),Gi.of(tn(`.${i}`,t))];return e&&e.dark&&s.push(Ur.of(!0)),s}static baseTheme(t){return F.lowest(Gi.of(tn("."+Fr,t,Jr)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&Ki.get(i)||Ki.get(t);return(null===(e=null==s?void 0:s.root)||void 0===e?void 0:e.view)||null}}hn.styleModule=Gi,hn.inputHandler=bi,hn.clipboardInputFilter=wi,hn.clipboardOutputFilter=ki,hn.scrollHandler=Ti,hn.focusChangeEffect=Qi,hn.perLineTextDirection=Pi,hn.exceptionSink=yi,hn.updateListener=Si,hn.editable=Xi,hn.mouseSelectionStyle=vi,hn.dragMovesSelection=xi,hn.clickAddsSelectionRange=gi,hn.decorations=Yi,hn.blockWrappers=qi,hn.outerDecorations=Di,hn.atomicRanges=Li,hn.bidiIsolatedRanges=Ni,hn.scrollMargins=ji,hn.darkTheme=Ur,hn.cspNonce=V.define({combine:t=>t.length?t[0]:""}),hn.contentAttributes=Ii,hn.editorAttributes=zi,hn.lineWrapping=hn.contentAttributes.of({class:"cm-lineWrapping"}),hn.announce=dt.define();const cn=4096,un={};class pn{constructor(t,e,i,s,r,n){this.from=t,this.to=e,this.dir=i,this.isolates=s,this.fresh=r,this.order=n}static update(t,e){if(e.empty&&!t.some(t=>t.fresh))return t;let i=[],s=t.length?t[t.length-1].dir:Ke.LTR;for(let r=Math.max(0,t.length-10);r<t.length;r++){let n=t[r];n.dir!=s||e.touchesRange(n.from,n.to)||i.push(new pn(e.mapPos(n.from,1),e.mapPos(n.to,-1),n.dir,n.isolates,!1,n.order))}return i}}function dn(t,e,i){for(let s=t.state.facet(e),r=s.length-1;r>=0;r--){let e=s[r],n="function"==typeof e?e(t):e;n&&fe(n,i)}return i}const On=Oe.mac?"mac":Oe.windows?"win":Oe.linux?"linux":"key";function fn(t,e,i){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),!1!==i&&e.shiftKey&&(t="Shift-"+t),t}const mn=F.default(hn.domEventHandlers({keydown:(t,e)=>function(t,e,i,s){Sn=e;let r=function(t){var e=!(Jt&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||te&&t.shiftKey&&t.key&&1==t.key.length||"Unidentified"==t.key)&&t.key||(t.shiftKey?Kt:Ht)[t.keyCode]||t.key||"Unidentified";return"Esc"==e&&(e="Escape"),"Del"==e&&(e="Delete"),"Left"==e&&(e="ArrowLeft"),"Up"==e&&(e="ArrowUp"),"Right"==e&&(e="ArrowRight"),"Down"==e&&(e="ArrowDown"),e}(e),n=b(r,0),o=function(t){return t<65536?1:2}(n)==r.length&&" "!=r,a="",l=!1,h=!1,c=!1;vn&&vn.view==i&&vn.scope==s&&(a=vn.prefix+" ",Ks.indexOf(e.keyCode)<0&&(h=!0,vn=null));let u,p,d=new Set,O=t=>{if(t){for(let e of t.run)if(!d.has(e)&&(d.add(e),e(i)))return t.stopPropagation&&(c=!0),!0;t.preventDefault&&(t.stopPropagation&&(c=!0),h=!0)}return!1},f=t[s];f&&(O(f[a+fn(r,e,!o)])?l=!0:!o||!(e.altKey||e.metaKey||e.ctrlKey)||Oe.windows&&e.ctrlKey&&e.altKey||Oe.mac&&e.altKey&&!e.ctrlKey&&!e.metaKey||!(u=Ht[e.keyCode])||u==r?o&&e.shiftKey&&O(f[a+fn(r,e,!0)])&&(l=!0):(O(f[a+fn(u,e,!0)])||e.shiftKey&&(p=Kt[e.keyCode])!=r&&p!=u&&O(f[a+fn(p,e,!1)]))&&(l=!0),!l&&O(f._any)&&(l=!0));h&&(l=!0);l&&c&&e.stopPropagation();return Sn=null,l}(function(t){let e=t.facet(gn),i=xn.get(e);i||xn.set(e,i=function(t,e=On){let i=Object.create(null),s=Object.create(null),r=(t,e)=>{let i=s[t];if(null==i)s[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")},n=(t,s,n,o,a)=>{var l,h;let c=i[t]||(i[t]=Object.create(null)),u=s.split(/ (?!$)/).map(t=>function(t,e){const i=t.split(/-(?!$)/);let s,r,n,o,a=i[i.length-1];"Space"==a&&(a=" ");for(let t=0;t<i.length-1;++t){const a=i[t];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))s=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))n=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);"mac"==e?o=!0:r=!0}}return s&&(a="Alt-"+a),r&&(a="Ctrl-"+a),o&&(a="Meta-"+a),n&&(a="Shift-"+a),a}(t,e));for(let e=1;e<u.length;e++){let i=u.slice(0,e).join(" ");r(i,!0),c[i]||(c[i]={preventDefault:!0,stopPropagation:!1,run:[e=>{let s=vn={view:e,prefix:i,scope:t};return setTimeout(()=>{vn==s&&(vn=null)},yn),!0}]})}let p=u.join(" ");r(p,!1);let d=c[p]||(c[p]={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())||[]});n&&d.run.push(n),o&&(d.preventDefault=!0),a&&(d.stopPropagation=!0)};for(let s of t){let t=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));t._any||(t._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:r}=s;for(let e in t)t[e].run.push(t=>r(t,Sn))}let r=s[e]||s.key;if(r)for(let e of t)n(e,r,s.run,s.preventDefault,s.stopPropagation),s.shift&&n(e,"Shift-"+r,s.shift,s.preventDefault,s.stopPropagation)}return i}(e.reduce((t,e)=>t.concat(e),[])));return i}(e.state),t,e,"editor")})),gn=V.define({enables:mn}),xn=new WeakMap;let vn=null;const yn=4e3;let Sn=null;class bn{constructor(t,e,i,s,r){this.className=t,this.left=e,this.top=i,this.width=s,this.height=r}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,e){return e.className==this.className&&(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",null!=this.width&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let r=Qn(t);return[new bn(e,s.left-r.left,s.top-r.top,null,s.bottom-s.top)]}return function(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),r=Math.min(i.to,t.viewport.to),n=t.textDirection==Ke.LTR,o=t.contentDOM,a=o.getBoundingClientRect(),l=Qn(t),h=o.querySelector(".cm-line"),c=h&&window.getComputedStyle(h),u=a.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),p=a.right-(c?parseInt(c.paddingRight):0),d=Ts(t,s,1),O=Ts(t,r,-1),f=d.type==Se.Text?d:null,m=O.type==Se.Text?O:null;f&&(t.lineWrapping||d.widgetLineBreaks)&&(f=wn(t,s,1,f));m&&(t.lineWrapping||O.widgetLineBreaks)&&(m=wn(t,r,-1,m));if(f&&m&&f.from==m.from&&f.to==m.to)return x(v(i.from,i.to,f));{let e=f?v(i.from,null,f):y(d,!1),s=m?v(null,i.to,m):y(O,!0),r=[];return(f||d).to<(m||O).from-(f&&m?1:0)||d.widgetLineBreaks>1&&e.bottom+t.defaultLineHeight/2<s.top?r.push(g(u,e.bottom,p,s.top)):e.bottom<s.top&&t.elementAtHeight((e.bottom+s.top)/2).type==Se.Text&&(e.bottom=s.top=(e.bottom+s.top)/2),x(e).concat(r).concat(x(s))}function g(t,i,s,r){return new bn(e,t-l.left,i-l.top,Math.max(0,s-t),r-i)}function x({top:t,bottom:e,horizontal:i}){let s=[];for(let r=0;r<i.length;r+=2)s.push(g(i[r],t,i[r+1],e));return s}function v(e,i,s){let r=1e9,o=-1e9,a=[];function l(e,i,l,h,c){let d=t.coordsAtPos(e,e==s.to?-2:2),O=t.coordsAtPos(l,l==s.from?2:-2);d&&O&&(r=Math.min(d.top,O.top,r),o=Math.max(d.bottom,O.bottom,o),c==Ke.LTR?a.push(n&&i?u:d.left,n&&h?p:O.right):a.push(!n&&h?u:O.left,!n&&i?p:d.right))}let h=null!=e?e:s.from,c=null!=i?i:s.to;for(let s of t.visibleRanges)if(s.to>h&&s.from<c)for(let r=Math.max(s.from,h),n=Math.min(s.to,c);;){let s=t.state.doc.lineAt(r);for(let o of t.bidiSpans(s)){let t=o.from+s.from,a=o.to+s.from;if(t>=n)break;a>r&&l(Math.max(t,r),null==e&&t<=h,Math.min(a,n),null==i&&a>=c,o.dir)}if(r=s.to+1,r>=n)break}return 0==a.length&&l(h,null==e,c,null==i,t.textDirection),{top:r,bottom:o,horizontal:a}}function y(t,e){let i=a.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}(t,e,i)}}function Qn(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ke.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function wn(t,e,i,s){let r=t.coordsAtPos(e,2*i);if(!r)return s;let n=t.dom.getBoundingClientRect(),o=(r.top+r.bottom)/2,a=t.posAtCoords({x:n.left+1,y:o}),l=t.posAtCoords({x:n.right-1,y:o});return null==a||null==l?s:{from:Math.max(s.from,Math.min(a,l)),to:Math.min(s.to,Math.max(a,l))}}class kn{constructor(t,e){this.view=t,this.layer=e,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=t.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),e.above&&this.dom.classList.add("cm-layer-above"),e.class&&this.dom.classList.add(e.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(t.state),t.requestMeasure(this.measureReq),e.mount&&e.mount(this.dom,t)}update(t){t.startState.facet(Pn)!=t.state.facet(Pn)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){!1!==this.layer.updateOnDocViewUpdate&&t.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(Pn);for(;e<i.length&&i[e]!=this.layer;)e++;this.dom.style.zIndex=String((this.layer.above?150:-1)-e)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:t,scaleY:e}=this.view;t==this.scaleX&&e==this.scaleY||(this.scaleX=t,this.scaleY=e,this.dom.style.transform=`scale(${1/t}, ${1/e})`)}draw(t){if(t.length!=this.drawn.length||t.some((t,e)=>{return i=t,s=this.drawn[e],!(i.constructor==s.constructor&&i.eq(s));var i,s})){let e=this.dom.firstChild,i=0;for(let s of t)s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])?(e=e.nextSibling,i++):this.dom.insertBefore(s.draw(),e);for(;e;){let t=e.nextSibling;e.remove(),e=t}this.drawn=t,Oe.safari&&Oe.safari_version>=26&&(this.dom.style.display=this.dom.firstChild?"":"none")}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Pn=V.define();function $n(t){return[Mi.define(e=>new kn(e,t)),Pn.of(t)]}const Tn=V.define({combine:t=>Pt(t,{cursorBlinkRate:1200,drawRangeCursor:!0,iosSelectionHandles:!0},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})});function Cn(t={}){return[Tn.of(t),An,Xn,En,$i.of(!0)]}function _n(t){return t.startState.facet(Tn)!=t.state.facet(Tn)}const An=$n({above:!0,markers(t){let{state:e}=t,i=e.facet(Tn),s=[];for(let r of e.selection.ranges){let n=r==e.selection.main;if(r.empty||i.drawRangeCursor&&!(n&&Oe.ios&&i.iosSelectionHandles)){let e=n?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",i=r.empty?r:E.cursor(r.head,r.assoc);for(let r of bn.forRange(t,e,i))s.push(r)}}return s},update(t,e){t.transactions.some(t=>t.selection)&&(e.style.animationName="cm-blink"==e.style.animationName?"cm-blink2":"cm-blink");let i=_n(t);return i&&Zn(t.state,e),t.docChanged||t.selectionSet||i},mount(t,e){Zn(e.state,t)},class:"cm-cursorLayer"});function Zn(t,e){e.style.animationDuration=t.facet(Tn).cursorBlinkRate+"ms"}const Xn=$n({above:!1,markers(t){let e=[],{main:i,ranges:s}=t.state.selection;for(let i of s)if(!i.empty)for(let s of bn.forRange(t,"cm-selectionBackground",i))e.push(s);if(Oe.ios&&!i.empty&&t.state.facet(Tn).iosSelectionHandles){for(let s of bn.forRange(t,"cm-selectionHandle cm-selectionHandle-start",E.cursor(i.from,1)))e.push(s);for(let s of bn.forRange(t,"cm-selectionHandle cm-selectionHandle-end",E.cursor(i.to,1)))e.push(s)}return e},update:(t,e)=>t.docChanged||t.selectionSet||t.viewportChanged||_n(t),class:"cm-selectionLayer"}),En=F.highest(hn.theme({".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"},caretColor:"transparent !important"},".cm-content":{caretColor:"transparent !important","& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}}));function Rn(t,e,i,s,r){e.lastIndex=0;for(let n,o=t.iterRange(i,s),a=i;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;n=e.exec(o.value);)r(a+n.index,n)}class Mn{constructor(t){const{regexp:e,decoration:i,decorate:s,boundary:r,maxLength:n=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=e,s)this.addMatch=(t,e,i,r)=>s(r,i,i+t[0].length,t,e);else if("function"==typeof i)this.addMatch=(t,e,s,r)=>{let n=i(t,e,s);n&&r(s,s+t[0].length,n)};else{if(!i)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(t,e,s,r)=>r(s,s+t[0].length,i)}this.boundary=r,this.maxLength=n}createDeco(t){let e=new Xt,i=e.add.bind(e);for(let{from:e,to:s}of function(t,e){let i=t.visibleRanges;if(1==i.length&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:r,to:n}of i)r=Math.max(t.state.doc.lineAt(r).from,r-e),n=Math.min(t.state.doc.lineAt(n).to,n+e),s.length&&s[s.length-1].to>=r?s[s.length-1].to=n:s.push({from:r,to:n});return s}(t,this.maxLength))Rn(t.state.doc,this.regexp,e,s,(e,s)=>this.addMatch(s,t,e,i));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;return t.docChanged&&t.changes.iterChanges((e,r,n,o)=>{o>=t.view.viewport.from&&n<=t.view.viewport.to&&(i=Math.min(n,i),s=Math.max(o,s))}),t.viewportMoved||s-i>1e3?this.createDeco(t.view):s>-1?this.updateRange(t.view,e.map(t.changes),i,s):e}updateRange(t,e,i,s){for(let r of t.visibleRanges){let n=Math.max(r.from,i),o=Math.min(r.to,s);if(o>=n){let i=t.state.doc.lineAt(n),s=i.to<o?t.state.doc.lineAt(o):i,a=Math.max(r.from,i.from),l=Math.min(r.to,s.to);if(this.boundary){for(;n>i.from;n--)if(this.boundary.test(i.text[n-1-i.from])){a=n;break}for(;o<s.to;o++)if(this.boundary.test(s.text[o-s.from])){l=o;break}}let h,c=[],u=(t,e,i)=>c.push(i.range(t,e));if(i==s)for(this.regexp.lastIndex=a-i.from;(h=this.regexp.exec(i.text))&&h.index<l-i.from;)this.addMatch(h,t,h.index+i.from,u);else Rn(t.state.doc,this.regexp,a,l,(e,i)=>this.addMatch(i,t,e,u));e=e.update({filterFrom:a,filterTo:l,filter:(t,e)=>t<a||e>l,add:c})}}return e}}const Vn=null!=/x/.unicode?"gu":"g",zn=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",Vn),In={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Yn=null;const qn=V.define({combine(t){let e=Pt(t,{render:null,specialChars:zn,addSpecialChars:null});return(e.replaceTabs=!function(){var t;if(null==Yn&&"undefined"!=typeof document&&document.body){let e=document.body.style;Yn=null!=(null!==(t=e.tabSize)&&void 0!==t?t:e.MozTabSize)}return Yn||!1}())&&(e.specialChars=new RegExp("\t|"+e.specialChars.source,Vn)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,Vn)),e}});function Dn(t={}){return[qn.of(t),Ln||(Ln=Mi.fromClass(class{constructor(t){this.view=t,this.decorations=be.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(qn)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Mn({regexp:t.specialChars,decoration:(e,i,s)=>{let{doc:r}=i.state,n=b(e[0],0);if(9==n){let t=r.lineAt(s),e=i.state.tabSize,n=Nt(t.text,e,s-t.from);return be.replace({widget:new Wn((e-n%e)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[n]||(this.decorationCache[n]=be.replace({widget:new Nn(t,n)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(qn);t.startState.facet(qn)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))]}let Ln=null;class Nn extends ye{constructor(t,e){super(),this.options=t,this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=function(t){return t>=32?"•":10==t?"␤":String.fromCharCode(9216+t)}(this.code),i=t.state.phrase("Control character")+" "+(In[this.code]||"0x"+this.code.toString(16)),s=this.options.render&&this.options.render(this.code,i,e);if(s)return s;let r=document.createElement("span");return r.textContent=e,r.title=i,r.setAttribute("aria-label",i),r.className="cm-specialChar",r}ignoreEvent(){return!1}}class Wn extends ye{constructor(t){super(),this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");return t.textContent="\t",t.className="cm-tab",t.style.width=this.width+"px",t}ignoreEvent(){return!1}}class jn extends $t{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}jn.prototype.elementClass="",jn.prototype.toDOM=void 0,jn.prototype.mapMode=w.TrackBefore,jn.prototype.startSide=jn.prototype.endSide=-1,jn.prototype.point=!0;const Bn=V.define(),Gn=V.define(),Un=V.define(),Fn=V.define({combine:t=>t.some(t=>t)});function Hn(t){let e=[Kn];return t&&!1===t.fixed&&e.push(Fn.of(!0)),e}const Kn=Mi.fromClass(class{constructor(t){this.view=t,this.domAfter=null,this.prevViewport=t.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=t.state.facet(Un).map(e=>new io(t,e)),this.fixed=!t.state.facet(Fn);for(let t of this.gutters)"after"==t.config.side?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.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(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport,s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<.8*(i.to-i.from))}if(t.geometryChanged){let t=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=t,this.domAfter&&(this.domAfter.style.minHeight=t)}this.view.state.facet(Fn)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let i=Zt.iter(this.view.state.facet(Bn),this.view.viewport.from),s=[],r=this.gutters.map(t=>new eo(t,this.view.viewport,-this.view.documentPadding.top));for(let t of this.view.viewportLineBlocks)if(s.length&&(s=[]),Array.isArray(t.type)){let e=!0;for(let n of t.type)if(n.type==Se.Text&&e){to(i,s,n.from);for(let t of r)t.line(this.view,n,s);e=!1}else if(n.widget)for(let t of r)t.widget(this.view,n)}else if(t.type==Se.Text){to(i,s,t.from);for(let e of r)e.line(this.view,t,s)}else if(t.widget)for(let e of r)e.widget(this.view,t);for(let t of r)t.finish();t&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(t){let e=t.startState.facet(Un),i=t.state.facet(Un),s=t.docChanged||t.heightChanged||t.viewportChanged||!Zt.eq(t.startState.facet(Bn),t.state.facet(Bn),t.view.viewport.from,t.view.viewport.to);if(e==i)for(let e of this.gutters)e.update(t)&&(s=!0);else{s=!0;let r=[];for(let s of i){let i=e.indexOf(s);i<0?r.push(new io(this.view,s)):(this.gutters[i].update(t),r.push(this.gutters[i]))}for(let t of this.gutters)t.dom.remove(),r.indexOf(t)<0&&t.destroy();for(let t of r)"after"==t.config.side?this.getDOMAfter().appendChild(t.dom):this.dom.appendChild(t.dom);this.gutters=r}return s}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:t=>hn.scrollMargins.of(e=>{let i=e.plugin(t);if(!i||0==i.gutters.length||!i.fixed)return null;let s=i.dom.offsetWidth*e.scaleX,r=i.domAfter?i.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==Ke.LTR?{left:s,right:r}:{right:s,left:r}})});function Jn(t){return Array.isArray(t)?t:[t]}function to(t,e,i){for(;t.value&&t.from<=i;)t.from==i&&e.push(t.value),t.next()}class eo{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=Zt.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,r=(e.top-this.height)/t.scaleY,n=e.height/t.scaleY;if(this.i==s.elements.length){let e=new so(t,n,r,i);s.elements.push(e),s.dom.appendChild(e.dom)}else s.elements[this.i].update(t,n,r,i);this.height=e.bottom,this.i++}line(t,e,i){let s=[];to(this.cursor,s,e.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(t,e,s);r&&s.unshift(r);let n=this.gutter;(0!=s.length||n.config.renderEmptyElements)&&this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e),s=i?[i]:null;for(let i of t.state.facet(Gn)){let r=i(t,e.widget,e);r&&(s||(s=[])).push(r)}s&&this.addElement(t,e,s)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class io{constructor(t,e){this.view=t,this.config=e,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 e.domEventHandlers)this.dom.addEventListener(i,s=>{let r,n=s.target;if(n!=this.dom&&this.dom.contains(n)){for(;n.parentNode!=this.dom;)n=n.parentNode;let t=n.getBoundingClientRect();r=(t.top+t.bottom)/2}else r=s.clientY;let o=t.lineBlockAtHeight(r-t.documentTop);e.domEventHandlers[i](t,o,s)&&s.preventDefault()});this.markers=Jn(e.markers(t)),e.initialSpacer&&(this.spacer=new so(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=Jn(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);e!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!Zt.eq(this.markers,e,i.from,i.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(t)}destroy(){for(let t of this.elements)t.destroy()}}class so{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),function(t,e){if(t.length!=e.length)return!1;for(let i=0;i<t.length;i++)if(!t[i].compare(e[i]))return!1;return!0}(this.markers,s)||this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,n=0;;){let o=n,a=r<e.length?e[r++]:null,l=!1;if(a){let t=a.elementClass;t&&(i+=" "+t);for(let t=n;t<this.markers.length;t++)if(this.markers[t].compare(a)){o=t,l=!0;break}}else o=this.markers.length;for(;n<o;){let t=this.markers[n++];if(t.toDOM){t.destroy(s);let e=s.nextSibling;s.remove(),s=e}}if(!a)break;a.toDOM&&(l?s=s.nextSibling:this.dom.insertBefore(a.toDOM(t),s)),l&&n++}this.dom.className=i,this.markers=e}destroy(){this.setMarkers(null,[])}}const ro=V.define(),no=V.define(),oo=V.define({combine:t=>Pt(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(t,e){let i=Object.assign({},t);for(let t in e){let s=i[t],r=e[t];i[t]=s?(t,e,i)=>s(t,e,i)||r(t,e,i):r}return i}})});class ao extends jn{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function lo(t,e){return t.state.facet(oo).formatNumber(e,t.state)}const ho=Un.compute([oo],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:t=>t.state.facet(ro),lineMarker:(t,e,i)=>i.some(t=>t.toDOM)?null:new ao(lo(t,t.state.doc.lineAt(e.from).number)),widgetMarker:(t,e,i)=>{for(let s of t.state.facet(no)){let r=s(t,e,i);if(r)return r}return null},lineMarkerChange:t=>t.startState.facet(oo)!=t.state.facet(oo),initialSpacer:t=>new ao(lo(t,uo(t.state.doc.lines))),updateSpacer(t,e){let i=lo(e.view,uo(e.view.state.doc.lines));return i==t.number?t:new ao(i)},domEventHandlers:t.facet(oo).domEventHandlers,side:"before"}));function co(t={}){return[oo.of(t),Hn(),ho]}function uo(t){let e=9;for(;e<t;)e=10*e+9;return e}const po=1024;let Oo=0;class fo{constructor(t,e){this.from=t,this.to=e}}class mo{constructor(t={}){this.id=Oo++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=t.combine||null}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return"function"!=typeof t&&(t=vo.match(t)),e=>{let i=t(e);return void 0===i?null:[this,i]}}}mo.closedBy=new mo({deserialize:t=>t.split(" ")}),mo.openedBy=new mo({deserialize:t=>t.split(" ")}),mo.group=new mo({deserialize:t=>t.split(" ")}),mo.isolate=new mo({deserialize:t=>{if(t&&"rtl"!=t&&"ltr"!=t&&"auto"!=t)throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),mo.contextHash=new mo({perNode:!0}),mo.lookAhead=new mo({perNode:!0}),mo.mounted=new mo({perNode:!0});class go{constructor(t,e,i,s=!1){this.tree=t,this.overlay=e,this.parser=i,this.bracketed=s}static get(t){return t&&t.props&&t.props[mo.mounted.id]}}const xo=Object.create(null);class vo{constructor(t,e,i,s=0){this.name=t,this.props=e,this.id=i,this.flags=s}static define(t){let e=t.props&&t.props.length?Object.create(null):xo,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(null==t.name?8:0),s=new vo(t.name||"",e,t.id,i);if(t.props)for(let i of t.props)if(Array.isArray(i)||(i=i(s)),i){if(i[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[i[0].id]=i[1]}return s}prop(t){return this.props[t.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(t){if("string"==typeof t){if(this.name==t)return!0;let e=this.prop(mo.group);return!!e&&e.indexOf(t)>-1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let s of i.split(" "))e[s]=t[i];return t=>{for(let i=t.prop(mo.group),s=-1;s<(i?i.length:0);s++){let r=e[s<0?t.name:i[s]];if(r)return r}}}}vo.none=new vo("",Object.create(null),0,8);class yo{constructor(t){this.types=t;for(let e=0;e<t.length;e++)if(t[e].id!=e)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...t){let e=[];for(let i of this.types){let s=null;for(let e of t){let t=e(i);if(t){s||(s=Object.assign({},i.props));let e=t[1],r=t[0];r.combine&&r.id in s&&(e=r.combine(s[r.id],e)),s[r.id]=e}}e.push(s?new vo(i.name,s,i.id,i.flags):i)}return new yo(e)}}const So=new WeakMap,bo=new WeakMap;var Qo;!function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays",t[t.EnterBracketed=16]="EnterBracketed"}(Qo||(Qo={}));class wo{constructor(t,e,i,s,r){if(this.type=t,this.children=e,this.positions=i,this.length=s,this.props=null,r&&r.length){this.props=Object.create(null);for(let[t,e]of r)this.props["number"==typeof t?t:t.id]=e}}toString(){let t=go.get(this);if(t&&!t.overlay)return t.tree.toString();let e="";for(let t of this.children){let i=t.toString();i&&(e&&(e+=","),e+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(e.length?"("+e+")":""):e}cursor(t=0){return new Vo(this.topNode,t)}cursorAt(t,e=0,i=0){let s=So.get(this)||this.topNode,r=new Vo(s);return r.moveTo(t,e),So.set(this,r._tree),r}get topNode(){return new _o(this,0,0,null)}resolve(t,e=0){let i=To(So.get(this)||this.topNode,t,e,!1);return So.set(this,i),i}resolveInner(t,e=0){let i=To(bo.get(this)||this.topNode,t,e,!0);return bo.set(this,i),i}resolveStack(t,e=0){return function(t,e,i){let s=t.resolveInner(e,i),r=null;for(let t=s instanceof _o?s:s.context.parent;t;t=t.parent)if(t.index<0){let n=t.parent;(r||(r=[s])).push(n.resolve(e,i)),t=n}else{let n=go.get(t.tree);if(n&&n.overlay&&n.overlay[0].from<=e&&n.overlay[n.overlay.length-1].to>=e){let o=new _o(n.tree,n.overlay[0].from+t.from,-1,t);(r||(r=[s])).push(To(o,e,i,!1))}}return r?Ro(r):s}(this,t,e)}iterate(t){let{enter:e,leave:i,from:s=0,to:r=this.length}=t,n=t.mode||0,o=(n&Qo.IncludeAnonymous)>0;for(let t=this.cursor(n|Qo.IncludeAnonymous);;){let n=!1;if(t.from<=r&&t.to>=s&&(!o&&t.type.isAnonymous||!1!==e(t))){if(t.firstChild())continue;n=!0}for(;n&&i&&(o||!t.type.isAnonymous)&&i(t),!t.nextSibling();){if(!t.parent())return;n=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:qo(vo.none,this.children,this.positions,0,this.children.length,0,this.length,(t,e,i)=>new wo(this.type,t,e,i,this.propValues),t.makeTree||((t,e,i)=>new wo(vo.none,t,e,i)))}static build(t){return function(t){var e;let{buffer:i,nodeSet:s,maxBufferLength:r=po,reused:n=[],minRepeatType:o=s.types.length}=t,a=Array.isArray(i)?new ko(i,i.length):i,l=s.types,h=0,c=0;function u(t,e,i,x,v,y){let{id:S,start:b,end:Q,size:w}=a,k=c,P=h;if(w<0){if(a.next(),-1==w){let e=n[S];return i.push(e),void x.push(b-t)}if(-3==w)return void(h=S);if(-4==w)return void(c=S);throw new RangeError(`Unrecognized record size: ${w}`)}let $,T,C=l[S],_=b-t;if(Q-b<=r&&(T=m(a.pos-e,v))){let e=new Uint16Array(T.size-T.skip),i=a.pos-T.size,r=e.length;for(;a.pos>i;)r=g(T.start,e,r);$=new Po(e,Q-T.start,s),_=T.start-t}else{let t=a.pos-w;a.next();let e=[],i=[],s=S>=o?S:-1,n=0,l=Q;for(;a.pos>t;)s>=0&&a.id==s&&a.size>=0?(a.end<=l-r&&(O(e,i,b,n,a.end,l,s,k,P),n=e.length,l=a.end),a.next()):y>2500?p(b,t,e,i):u(b,t,e,i,s,y+1);if(s>=0&&n>0&&n<e.length&&O(e,i,b,n,b,l,s,k,P),e.reverse(),i.reverse(),s>-1&&n>0){let t=d(C,P);$=qo(C,e,i,0,e.length,0,Q-b,t,t)}else $=f(C,e,i,Q-b,k-Q,P)}i.push($),x.push(_)}function p(t,e,i,n){let o=[],l=0,h=-1;for(;a.pos>e;){let{id:t,start:e,end:i,size:s}=a;if(s>4)a.next();else{if(h>-1&&e<h)break;h<0&&(h=i-r),o.push(t,e,i),l++,a.next()}}if(l){let e=new Uint16Array(4*l),r=o[o.length-2];for(let t=o.length-3,i=0;t>=0;t-=3)e[i++]=o[t],e[i++]=o[t+1]-r,e[i++]=o[t+2]-r,e[i++]=i;i.push(new Po(e,o[2]-r,s)),n.push(r-t)}}function d(t,e){return(i,s,r)=>{let n,o,a=0,l=i.length-1;if(l>=0&&(n=i[l])instanceof wo){if(!l&&n.type==t&&n.length==r)return n;(o=n.prop(mo.lookAhead))&&(a=s[l]+n.length+o)}return f(t,i,s,r,a,e)}}function O(t,e,i,r,n,o,a,l,h){let c=[],u=[];for(;t.length>r;)c.push(t.pop()),u.push(e.pop()+i-n);t.push(f(s.types[a],c,u,o-n,l-o,h)),e.push(n-i)}function f(t,e,i,s,r,n,o){if(n){let t=[mo.contextHash,n];o=o?[t].concat(o):[t]}if(r>25){let t=[mo.lookAhead,r];o=o?[t].concat(o):[t]}return new wo(t,e,i,s,o)}function m(t,e){let i=a.fork(),s=0,n=0,l=0,h=i.end-r,c={size:0,start:0,skip:0};t:for(let r=i.pos-t;i.pos>r;){let t=i.size;if(i.id==e&&t>=0){c.size=s,c.start=n,c.skip=l,l+=4,s+=4,i.next();continue}let a=i.pos-t;if(t<0||a<r||i.start<h)break;let u=i.id>=o?4:0,p=i.start;for(i.next();i.pos>a;){if(i.size<0){if(-3!=i.size&&-4!=i.size)break t;u+=4}else i.id>=o&&(u+=4);i.next()}n=p,s+=t,l+=u}return(e<0||s==t)&&(c.size=s,c.start=n,c.skip=l),c.size>4?c:void 0}function g(t,e,i){let{id:s,start:r,end:n,size:l}=a;if(a.next(),l>=0&&s<o){let o=i;if(l>4){let s=a.pos-(l-4);for(;a.pos>s;)i=g(t,e,i)}e[--i]=o,e[--i]=n-t,e[--i]=r-t,e[--i]=s}else-3==l?h=s:-4==l&&(c=s);return i}let x=[],v=[];for(;a.pos>0;)u(t.start||0,t.bufferStart||0,x,v,-1,0);let y=null!==(e=t.length)&&void 0!==e?e:x.length?v[0]+x[0].length:0;return new wo(l[t.topID],x.reverse(),v.reverse(),y)}(t)}}wo.empty=new wo(vo.none,[],[],0);class ko{constructor(t,e){this.buffer=t,this.index=e}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 ko(this.buffer,this.index)}}class Po{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return vo.none}toString(){let t=[];for(let e=0;e<this.buffer.length;)t.push(this.childString(e)),e=this.buffer[e+3];return t.join(",")}childString(t){let e=this.buffer[t],i=this.buffer[t+3],s=this.set.types[e],r=s.name;if(/\W/.test(r)&&!s.isError&&(r=JSON.stringify(r)),i==(t+=4))return r;let n=[];for(;t<i;)n.push(this.childString(t)),t=this.buffer[t+3];return r+"("+n.join(",")+")"}findChild(t,e,i,s,r){let{buffer:n}=this,o=-1;for(let a=t;a!=e&&!($o(r,s,n[a+1],n[a+2])&&(o=a,i>0));a=n[a+3]);return o}slice(t,e,i){let s=this.buffer,r=new Uint16Array(e-t),n=0;for(let o=t,a=0;o<e;){r[a++]=s[o++],r[a++]=s[o++]-i;let e=r[a++]=s[o++]-i;r[a++]=s[o++]-t,n=Math.max(n,e)}return new Po(r,n,this.set)}}function $o(t,e,i,s){switch(t){case-2:return i<e;case-1:return s>=e&&i<e;case 0:return i<e&&s>e;case 1:return i<=e&&s>e;case 2:return s>e;case 4:return!0}}function To(t,e,i,s){for(var r;t.from==t.to||(i<1?t.from>=e:t.from>e)||(i>-1?t.to<=e:t.to<e);){let e=!s&&t instanceof _o&&t.index<0?null:t.parent;if(!e)return t;t=e}let n=s?0:Qo.IgnoreOverlays;if(s)for(let s=t,o=s.parent;o;s=o,o=s.parent)s instanceof _o&&s.index<0&&(null===(r=o.enter(e,i,n))||void 0===r?void 0:r.from)!=s.from&&(t=o);for(;;){let s=t.enter(e,i,n);if(!s)return t;t=s}}class Co{cursor(t=0){return new Vo(this,t)}getChild(t,e=null,i=null){let s=Ao(this,t,e,i);return s.length?s[0]:null}getChildren(t,e=null,i=null){return Ao(this,t,e,i)}resolve(t,e=0){return To(this,t,e,!1)}resolveInner(t,e=0){return To(this,t,e,!0)}matchContext(t){return Zo(this.parent,t)}enterUnfinishedNodesBefore(t){let e=this.childBefore(t),i=this;for(;e;){let t=e.lastChild;if(!t||t.to!=e.to)break;t.type.isError&&t.from==t.to?(i=e,e=t.prevSibling):e=t}return i}get node(){return this}get next(){return this.parent}}class _o extends Co{constructor(t,e,i,s){super(),this._tree=t,this.from=e,this.index=i,this._parent=s}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(t,e,i,s,r=0){for(let n=this;;){for(let{children:o,positions:a}=n._tree,l=e>0?o.length:-1;t!=l;t+=e){let l,h=o[t],c=a[t]+n.from;if(r&Qo.EnterBracketed&&h instanceof wo&&(l=go.get(h))&&!l.overlay&&l.bracketed&&i>=c&&i<=c+h.length||$o(s,i,c,c+h.length))if(h instanceof Po){if(r&Qo.ExcludeBuffers)continue;let o=h.findChild(0,h.buffer.length,e,i-c,s);if(o>-1)return new Eo(new Xo(n,h,t,c),null,o)}else if(r&Qo.IncludeAnonymous||!h.type.isAnonymous||zo(h)){let o;if(!(r&Qo.IgnoreMounts)&&(o=go.get(h))&&!o.overlay)return new _o(o.tree,c,t,n);let a=new _o(h,c,t,n);return r&Qo.IncludeAnonymous||!a.type.isAnonymous?a:a.nextChild(e<0?h.children.length-1:0,e,i,s,r)}}if(r&Qo.IncludeAnonymous||!n.type.isAnonymous)return null;if(t=n.index>=0?n.index+e:e<0?-1:n._parent._tree.children.length,n=n._parent,!n)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(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}prop(t){return this._tree.prop(t)}enter(t,e,i=0){let s;if(!(i&Qo.IgnoreOverlays)&&(s=go.get(this._tree))&&s.overlay){let r=t-this.from,n=i&Qo.EnterBracketed&&s.bracketed;for(let{from:t,to:i}of s.overlay)if((e>0||n?t<=r:t<r)&&(e<0||n?i>=r:i>r))return new _o(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}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 Ao(t,e,i,s){let r=t.cursor(),n=[];if(!r.firstChild())return n;if(null!=i)for(let t=!1;!t;)if(t=r.type.is(i),!r.nextSibling())return n;for(;;){if(null!=s&&r.type.is(s))return n;if(r.type.is(e)&&n.push(r.node),!r.nextSibling())return null==s?n:[]}}function Zo(t,e,i=e.length-1){for(let s=t;i>=0;s=s.parent){if(!s)return!1;if(!s.type.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}class Xo{constructor(t,e,i,s){this.parent=t,this.buffer=e,this.index=i,this.start=s}}class Eo extends Co{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(t,e,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.context.start,i);return r<0?null:new Eo(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}prop(t){return this.type.prop(t)}enter(t,e,i=0){if(i&Qo.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new Eo(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Eo(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new Eo(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let n=i.buffer[this.index+1];t.push(i.slice(s,r,n)),e.push(0)}return new wo(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ro(t){if(!t.length)return null;let e=0,i=t[0];for(let s=1;s<t.length;s++){let r=t[s];(r.from>i.from||r.to<i.to)&&(i=r,e=s)}let s=i instanceof _o&&i.index<0?null:i.parent,r=t.slice();return s?r[e]=s:r.splice(e,1),new Mo(r,i)}class Mo{constructor(t,e){this.heads=t,this.node=e}get next(){return Ro(this.heads)}}class Vo{get name(){return this.type.name}constructor(t,e=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=e&~Qo.EnterBracketed,t instanceof _o)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let e=t._parent;e;e=e._parent)this.stack.unshift(e.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return!!t&&(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0)}yieldBuf(t,e){this.index=t;let{start:i,buffer:s}=this.buffer;return this.type=e||s.set.types[s.buffer[t]],this.from=i+s.buffer[t+1],this.to=i+s.buffer[t+2],!0}yield(t){return!!t&&(t instanceof _o?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-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(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?!(i&Qo.ExcludeBuffers)&&this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Qo.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&Qo.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode));let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let t=i<0?0:this.stack[i]+4;if(this.index!=t)return this.yieldBuf(e.findChild(t,this.index,-1,0,4))}else{let t=e.buffer[this.index+3];if(t<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(t)}return i<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:s}=this;if(s){if(t>0){if(this.index<s.buffer.buffer.length)return!1}else for(let t=0;t<this.index;t++)if(s.buffer.buffer[t+3]<this.index)return!1;({index:e,parent:i}=s)}else({index:e,_parent:i}=this._tree);for(;i;({index:e,_parent:i}=i))if(e>-1)for(let s=e+t,r=t<0?-1:i._tree.children.length;s!=r;s+=t){let t=i._tree.children[s];if(this.mode&Qo.IncludeAnonymous||t instanceof Po||!t.type.isAnonymous||zo(t))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to<t))&&this.parent(););for(;this.enterChild(1,t,e););return this}get node(){if(!this.buffer)return this._tree;let t=this.bufferNode,e=null,i=0;if(t&&t.context==this.buffer)t:for(let s=this.index,r=this.stack.length;r>=0;){for(let n=t;n;n=n._parent)if(n.index==s){if(s==this.index)return n;e=n,i=r+1;break t}s=this.stack[--r]}for(let t=i;t<this.stack.length;t++)e=new Eo(this.buffer,e,this.stack[t]);return this.bufferNode=new Eo(this.buffer,e,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(t,e){for(let i=0;;){let s=!1;if(this.type.isAnonymous||!1!==t(this)){if(this.firstChild()){i++;continue}this.type.isAnonymous||(s=!0)}for(;;){if(s&&e&&e(this),s=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,s=!0}}}matchContext(t){if(!this.buffer)return Zo(this.node.parent,t);let{buffer:e}=this.buffer,{types:i}=e.set;for(let s=t.length-1,r=this.stack.length-1;s>=0;r--){if(r<0)return Zo(this._tree,t,s);let n=i[e.buffer[this.stack[r]]];if(!n.isAnonymous){if(t[s]&&t[s]!=n.name)return!1;s--}}return!0}}function zo(t){return t.children.some(t=>t instanceof Po||!t.type.isAnonymous||zo(t))}const Io=new WeakMap;function Yo(t,e){if(!t.isAnonymous||e instanceof Po||e.type!=t)return 1;let i=Io.get(e);if(null==i){i=1;for(let s of e.children){if(s.type!=t||!(s instanceof wo)){i=1;break}i+=Yo(t,s)}Io.set(e,i)}return i}function qo(t,e,i,s,r,n,o,a,l){let h=0;for(let i=s;i<r;i++)h+=Yo(t,e[i]);let c=Math.ceil(1.5*h/8),u=[],p=[];return function e(i,s,r,o,a){for(let h=r;h<o;){let r=h,d=s[h],O=Yo(t,i[h]);for(h++;h<o;h++){let e=Yo(t,i[h]);if(O+e>=c)break;O+=e}if(h==r+1){if(O>c){let t=i[r];e(t.children,t.positions,0,t.children.length,s[r]+a);continue}u.push(i[r])}else{let e=s[h-1]+i[h-1].length-d;u.push(qo(t,i,s,r,h,d,e,null,l))}p.push(d+a-n)}}(e,i,s,r,0),(a||l)(u,p,o)}class Do{constructor(){this.map=new WeakMap}setBuffer(t,e,i){let s=this.map.get(t);s||this.map.set(t,s=new Map),s.set(e,i)}getBuffer(t,e){let i=this.map.get(t);return i&&i.get(e)}set(t,e){t instanceof Eo?this.setBuffer(t.context.buffer,t.index,e):t instanceof _o&&this.map.set(t.tree,e)}get(t){return t instanceof Eo?this.getBuffer(t.context.buffer,t.index):t instanceof _o?this.map.get(t.tree):void 0}cursorSet(t,e){t.buffer?this.setBuffer(t.buffer.buffer,t.index,e):this.map.set(t.tree,e)}cursorGet(t){return t.buffer?this.getBuffer(t.buffer.buffer,t.index):this.map.get(t.tree)}}class Lo{constructor(t,e,i,s,r=!1,n=!1){this.from=t,this.to=e,this.tree=i,this.offset=s,this.open=(r?1:0)|(n?2:0)}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(t,e=[],i=!1){let s=[new Lo(0,t.length,t,0,!1,i)];for(let i of e)i.to>t.length&&s.push(i);return s}static applyChanges(t,e,i=128){if(!e.length)return t;let s=[],r=1,n=t.length?t[0]:null;for(let o=0,a=0,l=0;;o++){let h=o<e.length?e[o]:null,c=h?h.fromA:1e9;if(c-a>=i)for(;n&&n.from<c;){let e=n;if(a>=e.from||c<=e.to||l){let t=Math.max(e.from,a)-l,i=Math.min(e.to,c)-l;e=t>=i?null:new Lo(t,i,e.tree,e.offset+l,o>0,!!h)}if(e&&s.push(e),n.to>c)break;n=r<t.length?t[r++]:null}if(!h)break;a=h.toA,l=h.toA-h.toB}return s}}let No=class{startParse(t,e,i){return"string"==typeof t&&(t=new Wo(t)),i=i?i.length?i.map(t=>new fo(t.from,t.to)):[new fo(0,0)]:[new fo(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let s=this.startParse(t,e,i);for(;;){let t=s.advance();if(t)return t}}};class Wo{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}class jo{constructor(t,e,i,s,r,n){this.parser=t,this.parse=e,this.overlay=i,this.bracketed=s,this.target=r,this.from=n}}function Bo(t){if(!t.length||t.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(t))}class Go{constructor(t,e,i,s,r,n,o,a){this.parser=t,this.predicate=e,this.mounts=i,this.index=s,this.start=r,this.bracketed=n,this.target=o,this.prev=a,this.depth=0,this.ranges=[]}}const Uo=new mo({perNode:!0});class Fo{constructor(t,e,i,s,r){this.nest=e,this.input=i,this.fragments=s,this.ranges=r,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let t=this.baseParse.advance();if(!t)return null;if(this.baseParse=null,this.baseTree=t,this.startInner(),null!=this.stoppedAt)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let t=this.baseTree;return null!=this.stoppedAt&&(t=new wo(t.type,t.children,t.positions,t.length,t.propValues.concat([[Uo,this.stoppedAt]]))),t}let t=this.inner[this.innerDone],e=t.parse.advance();if(e){this.innerDone++;let i=Object.assign(Object.create(null),t.target.props);i[mo.mounted.id]=new go(e,t.overlay,t.parser,t.bracketed),t.target.props=i}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].from<t&&(t=Math.min(t,this.inner[e].parse.parsedPos));return t}stopAt(t){if(this.stoppedAt=t,this.baseParse)this.baseParse.stopAt(t);else for(let e=this.innerDone;e<this.inner.length;e++)this.inner[e].parse.stopAt(t)}startInner(){let t=new ea(this.fragments),e=null,i=null,s=new Vo(new _o(this.baseTree,this.ranges[0].from,0,null),Qo.IncludeAnonymous|Qo.IgnoreMounts);t:for(let r,n;;){let o,a=!0;if(null!=this.stoppedAt&&s.from>=this.stoppedAt)a=!1;else if(t.hasNode(s)){if(e){let t=e.mounts.find(t=>t.frag.from<=s.from&&t.frag.to>=s.to&&t.mount.overlay);if(t)for(let i of t.mount.overlay){let r=i.from+t.pos,n=i.to+t.pos;r>=s.from&&n<=s.to&&!e.ranges.some(t=>t.from<n&&t.to>r)&&e.ranges.push({from:r,to:n})}}a=!1}else if(i&&(n=Ho(i.ranges,s.from,s.to)))a=2!=n;else if(!s.type.isAnonymous&&(r=this.nest(s,this.input))&&(s.from<s.to||!r.overlay)){s.tree||(Jo(s),e&&e.depth++,i&&i.depth++);let n=t.findMounts(s.from,r.parser);if("function"==typeof r.overlay)e=new Go(r.parser,r.overlay,n,this.inner.length,s.from,!!r.bracketed,s.tree,e);else{let t=ia(this.ranges,r.overlay||(s.from<s.to?[new fo(s.from,s.to)]:[]));t.length&&Bo(t),!t.length&&r.overlay||this.inner.push(new jo(r.parser,t.length?r.parser.startParse(this.input,ra(n,t),t):r.parser.startParse(""),r.overlay?r.overlay.map(t=>new fo(t.from-s.from,t.to-s.from)):null,!!r.bracketed,s.tree,t.length?t[0].from:s.from)),r.overlay?t.length&&(i={ranges:t,depth:0,prev:i}):a=!1}}else if(e&&(o=e.predicate(s))&&(!0===o&&(o=new fo(s.from,s.to)),o.from<o.to)){let t=e.ranges.length-1;t>=0&&e.ranges[t].to==o.from?e.ranges[t]={from:e.ranges[t].from,to:o.to}:e.ranges.push(o)}if(a&&s.firstChild())e&&e.depth++,i&&i.depth++;else for(;!s.nextSibling();){if(!s.parent())break t;if(e&&! --e.depth){let t=ia(this.ranges,e.ranges);t.length&&(Bo(t),this.inner.splice(e.index,0,new jo(e.parser,e.parser.startParse(this.input,ra(e.mounts,t),t),e.ranges.map(t=>new fo(t.from-e.start,t.to-e.start)),e.bracketed,e.target,t[0].from))),e=e.prev}i&&! --i.depth&&(i=i.prev)}}}}function Ho(t,e,i){for(let s of t){if(s.from>=i)break;if(s.to>e)return s.from<=e&&s.to>=i?2:1}return 0}function Ko(t,e,i,s,r,n){if(e<i){let o=t.buffer[e+1];s.push(t.slice(e,i,o)),r.push(o-n)}}function Jo(t){let{node:e}=t,i=[],s=e.context.buffer;do{i.push(t.index),t.parent()}while(!t.tree);let r=t.tree,n=r.children.indexOf(s),o=r.children[n],a=o.buffer,l=[n];r.children[n]=function t(s,r,n,h,c,u){let p=i[u],d=[],O=[];Ko(o,s,p,d,O,h);let f=a[p+1],m=a[p+2];l.push(d.length);let g=u?t(p+4,a[p+3],o.set.types[a[p]],f,m-f,u-1):e.toTree();return d.push(g),O.push(f-h),Ko(o,a[p+3],r,d,O,h),new wo(n,d,O,c)}(0,a.length,vo.none,0,o.length,i.length-1);for(let e of l){let i=t.tree.children[e],s=t.tree.positions[e];t.yield(new _o(i,s+t.from,e,t._tree))}}class ta{constructor(t,e){this.offset=e,this.done=!1,this.cursor=t.cursor(Qo.IncludeAnonymous|Qo.IgnoreMounts)}moveTo(t){let{cursor:e}=this,i=t-this.offset;for(;!this.done&&e.from<i;)e.to>=t&&e.enter(i,1,Qo.IgnoreOverlays|Qo.ExcludeBuffers)||e.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let e=this.cursor.tree;;){if(e==t.tree)return!0;if(!(e.children.length&&0==e.positions[0]&&e.children[0]instanceof wo))break;e=e.children[0]}return!1}}let ea=class{constructor(t){var e;if(this.fragments=t,this.curTo=0,this.fragI=0,t.length){let i=this.curFrag=t[0];this.curTo=null!==(e=i.tree.prop(Uo))&&void 0!==e?e:i.to,this.inner=new ta(i.tree,-i.offset)}else this.curFrag=this.inner=null}hasNode(t){for(;this.curFrag&&t.from>=this.curTo;)this.nextFrag();return this.curFrag&&this.curFrag.from<=t.from&&this.curTo>=t.to&&this.inner.hasNode(t)}nextFrag(){var t;if(this.fragI++,this.fragI==this.fragments.length)this.curFrag=this.inner=null;else{let e=this.curFrag=this.fragments[this.fragI];this.curTo=null!==(t=e.tree.prop(Uo))&&void 0!==t?t:e.to,this.inner=new ta(e.tree,-e.offset)}}findMounts(t,e){var i;let s=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let t=this.inner.cursor.node;t;t=t.parent){let r=null===(i=t.tree)||void 0===i?void 0:i.prop(mo.mounted);if(r&&r.parser==e)for(let e=this.fragI;e<this.fragments.length;e++){let i=this.fragments[e];if(i.from>=t.to)break;i.tree==this.curFrag.tree&&s.push({frag:i,pos:t.from-i.offset,mount:r})}}}return s}};function ia(t,e){let i=null,s=e;for(let r=1,n=0;r<t.length;r++){let o=t[r-1].to,a=t[r].from;for(;n<s.length;n++){let t=s[n];if(t.from>=a)break;t.to<=o||(i||(s=i=e.slice()),t.from<o?(i[n]=new fo(t.from,o),t.to>a&&i.splice(n+1,0,new fo(a,t.to))):t.to>a?i[n--]=new fo(a,t.to):i.splice(n--,1))}}return s}function sa(t,e,i,s){let r=0,n=0,o=!1,a=!1,l=-1e9,h=[];for(;;){let c=r==t.length?1e9:o?t[r].to:t[r].from,u=n==e.length?1e9:a?e[n].to:e[n].from;if(o!=a){let t=Math.max(l,i),e=Math.min(c,u,s);t<e&&h.push(new fo(t,e))}if(l=Math.min(c,u),1e9==l)break;c==l&&(o?(o=!1,r++):o=!0),u==l&&(a?(a=!1,n++):a=!0)}return h}function ra(t,e){let i=[];for(let{pos:s,mount:r,frag:n}of t){let t=s+(r.overlay?r.overlay[0].from:0),o=t+r.tree.length,a=Math.max(n.from,t),l=Math.min(n.to,o);if(r.overlay){let o=sa(e,r.overlay.map(t=>new fo(t.from+s,t.to+s)),a,l);for(let e=0,s=a;;e++){let a=e==o.length,h=a?l:o[e].from;if(h>s&&i.push(new Lo(s,h,r.tree,-t,n.from>=s||n.openStart,n.to<=h||n.openEnd)),a)break;s=o[e].to}}else i.push(new Lo(a,l,r.tree,-t,n.from>=t||n.openStart,n.to<=o||n.openEnd))}return i}let na=0;class oa{constructor(t,e,i,s){this.name=t,this.set=e,this.base=i,this.modified=s,this.id=na++}toString(){let{name:t}=this;for(let e of this.modified)e.name&&(t=`${e.name}(${t})`);return t}static define(t,e){let i="string"==typeof t?t:"?";if(t instanceof oa&&(e=t),null==e?void 0:e.base)throw new Error("Can not derive from a modified tag");let s=new oa(i,[],null,[]);if(s.set.push(s),e)for(let t of e.set)s.set.push(t);return s}static defineModifier(t){let e=new la(t);return t=>t.modified.indexOf(e)>-1?t:la.get(t.base||t,t.modified.concat(e).sort((t,e)=>t.id-e.id))}}let aa=0;class la{constructor(t){this.name=t,this.instances=[],this.id=aa++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(i=>{return i.base==t&&(s=e,r=i.modified,s.length==r.length&&s.every((t,e)=>t==r[e]));var s,r});if(i)return i;let s=[],r=new oa(t.name,s,t,e);for(let t of e)t.instances.push(r);let n=function(t){let e=[[]];for(let i=0;i<t.length;i++)for(let s=0,r=e.length;s<r;s++)e.push(e[s].concat(t[i]));return e.sort((t,e)=>e.length-t.length)}(e);for(let e of t.set)if(!e.modified.length)for(let t of n)s.push(la.get(e,t));return r}}function ha(t){let e=Object.create(null);for(let i in t){let s=t[i];Array.isArray(s)||(s=[s]);for(let t of i.split(" "))if(t){let i=[],r=2,n=t;for(let e=0;;){if("..."==n&&e>0&&e+3==t.length){r=1;break}let s=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(n);if(!s)throw new RangeError("Invalid path: "+t);if(i.push("*"==s[0]?"":'"'==s[0][0]?JSON.parse(s[0]):s[0]),e+=s[0].length,e==t.length)break;let o=t[e++];if(e==t.length&&"!"==o){r=0;break}if("/"!=o)throw new RangeError("Invalid path: "+t);n=t.slice(e)}let o=i.length-1,a=i[o];if(!a)throw new RangeError("Invalid path: "+t);let l=new ua(s,r,o>0?i.slice(0,o):null);e[a]=l.sort(e[a])}}return ca.add(e)}const ca=new mo({combine(t,e){let i,s,r;for(;t||e;){if(!t||e&&t.depth>=e.depth?(r=e,e=e.next):(r=t,t=t.next),i&&i.mode==r.mode&&!r.context&&!i.context)continue;let n=new ua(r.tags,r.mode,r.context);i?i.next=n:s=n,i=n}return s}});class ua{constructor(t,e,i,s){this.tags=t,this.mode=e,this.context=i,this.next=s}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(t){return!t||t.depth<this.depth?(this.next=t,this):(t.next=this.sort(t.next),t)}get depth(){return this.context?this.context.length:0}}function pa(t,e){let i=Object.create(null);for(let e of t)if(Array.isArray(e.tag))for(let t of e.tag)i[t.id]=e.class;else i[e.tag.id]=e.class;let{scope:s,all:r=null}=e||{};return{style:t=>{let e=r;for(let s of t)for(let t of s.set){let s=i[t.id];if(s){e=e?e+" "+s:s;break}}return e},scope:s}}function da(t,e,i,s=0,r=t.length){let n=new Oa(s,Array.isArray(e)?e:[e],i);n.highlightRange(t.cursor(),s,r,"",n.highlighters),n.flush(r)}ua.empty=new ua([],2,null);class Oa{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,s,r){let{type:n,from:o,to:a}=t;if(o>=i||a<=e)return;n.isTop&&(r=this.highlighters.filter(t=>!t.scope||t.scope(n)));let l=s,h=function(t){let e=t.type.prop(ca);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}(t)||ua.empty,c=function(t,e){let i=null;for(let s of t){let t=s.style(e);t&&(i=i?i+" "+t:t)}return i}(r,h.tags);if(c&&(l&&(l+=" "),l+=c,1==h.mode&&(s+=(s?" ":"")+c)),this.startSpan(Math.max(e,o),l),h.opaque)return;let u=t.tree&&t.tree.prop(mo.mounted);if(u&&u.overlay){let n=t.node.enter(u.overlay[0].from+o,1),h=this.highlighters.filter(t=>!t.scope||t.scope(u.tree.type)),c=t.firstChild();for(let p=0,d=o;;p++){let O=p<u.overlay.length?u.overlay[p]:null,f=O?O.from+o:a,m=Math.max(e,d),g=Math.min(i,f);if(m<g&&c)for(;t.from<g&&(this.highlightRange(t,m,g,s,r),this.startSpan(Math.min(g,t.to),l),!(t.to>=f)&&t.nextSibling()););if(!O||f>i)break;d=O.to+o,d>e&&(this.highlightRange(n.cursor(),Math.max(e,O.from+o),Math.min(i,d),"",h),this.startSpan(Math.min(i,d),l))}c&&t.parent()}else if(t.firstChild()){u&&(s="");do{if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,s,r),this.startSpan(Math.min(i,t.to),l)}}while(t.nextSibling());t.parent()}}}const fa=oa.define,ma=fa(),ga=fa(),xa=fa(ga),va=fa(ga),ya=fa(),Sa=fa(ya),ba=fa(ya),Qa=fa(),wa=fa(Qa),ka=fa(),Pa=fa(),$a=fa(),Ta=fa($a),Ca=fa(),_a={comment:ma,lineComment:fa(ma),blockComment:fa(ma),docComment:fa(ma),name:ga,variableName:fa(ga),typeName:xa,tagName:fa(xa),propertyName:va,attributeName:fa(va),className:fa(ga),labelName:fa(ga),namespace:fa(ga),macroName:fa(ga),literal:ya,string:Sa,docString:fa(Sa),character:fa(Sa),attributeValue:fa(Sa),number:ba,integer:fa(ba),float:fa(ba),bool:fa(ya),regexp:fa(ya),escape:fa(ya),color:fa(ya),url:fa(ya),keyword:ka,self:fa(ka),null:fa(ka),atom:fa(ka),unit:fa(ka),modifier:fa(ka),operatorKeyword:fa(ka),controlKeyword:fa(ka),definitionKeyword:fa(ka),moduleKeyword:fa(ka),operator:Pa,derefOperator:fa(Pa),arithmeticOperator:fa(Pa),logicOperator:fa(Pa),bitwiseOperator:fa(Pa),compareOperator:fa(Pa),updateOperator:fa(Pa),definitionOperator:fa(Pa),typeOperator:fa(Pa),controlOperator:fa(Pa),punctuation:$a,separator:fa($a),bracket:Ta,angleBracket:fa(Ta),squareBracket:fa(Ta),paren:fa(Ta),brace:fa(Ta),content:Qa,heading:wa,heading1:fa(wa),heading2:fa(wa),heading3:fa(wa),heading4:fa(wa),heading5:fa(wa),heading6:fa(wa),contentSeparator:fa(Qa),list:fa(Qa),quote:fa(Qa),emphasis:fa(Qa),strong:fa(Qa),link:fa(Qa),monospace:fa(Qa),strikethrough:fa(Qa),inserted:fa(),deleted:fa(),changed:fa(),invalid:fa(),meta:Ca,documentMeta:fa(Ca),annotation:fa(Ca),processingInstruction:fa(Ca),definition:oa.defineModifier("definition"),constant:oa.defineModifier("constant"),function:oa.defineModifier("function"),standard:oa.defineModifier("standard"),local:oa.defineModifier("local"),special:oa.defineModifier("special")};for(let t in _a){let e=_a[t];e instanceof oa&&(e.name=t)}const Aa=pa([{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"}]);var Za;const Xa=new mo;function Ea(t){return V.define({combine:t?e=>e.concat(t):void 0})}const Ra=new mo;class Ma{constructor(t,e,i=[],s=""){this.data=t,this.name=s,kt.prototype.hasOwnProperty("tree")||Object.defineProperty(kt.prototype,"tree",{get(){return Ia(this)}}),this.parser=e,this.extension=[Ga.of(this),kt.languageData.of((t,e,i)=>{let s=Va(t,e,i),r=s.type.prop(Xa);if(!r)return[];let n=t.facet(r),o=s.type.prop(Ra);if(o){let r=s.resolve(e-s.from,i);for(let e of o)if(e.test(r,t)){let i=t.facet(e.facet);return"replace"==e.type?i:i.concat(n)}}return n})].concat(i)}isActiveAt(t,e,i=-1){return Va(t,e,i).type.prop(Xa)==this.data}findRegions(t){let e=t.facet(Ga);if((null==e?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],s=(t,e)=>{if(t.prop(Xa)==this.data)return void i.push({from:e,to:e+t.length});let r=t.prop(mo.mounted);if(r){if(r.tree.prop(Xa)==this.data){if(r.overlay)for(let t of r.overlay)i.push({from:t.from+e,to:t.to+e});else i.push({from:e,to:e+t.length});return}if(r.overlay){let t=i.length;if(s(r.tree,r.overlay[0].from+e),i.length>t)return}}for(let i=0;i<t.children.length;i++){let r=t.children[i];r instanceof wo&&s(r,t.positions[i]+e)}};return s(Ia(t),0),i}get allowsNesting(){return!0}}function Va(t,e,i){let s=t.facet(Ga),r=Ia(t).topNode;if(!s||s.allowsNesting)for(let t=r;t;t=t.enter(e,i,Qo.ExcludeBuffers|Qo.EnterBracketed))t.type.isTop&&(r=t);return r}Ma.setState=dt.define();class za extends Ma{constructor(t,e,i){super(t,e,[],i),this.parser=e}static define(t){let e=Ea(t.languageData);return new za(e,t.parser.configure({props:[Xa.add(t=>t.isTop?e:void 0)]}),t.name)}configure(t,e){return new za(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ia(t){let e=t.field(Ma.state,!1);return e?e.tree:wo.empty}class Ya{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t<i||e>=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let qa=null;class Da{constructor(t,e,i=[],s,r,n,o,a){this.parser=t,this.state=e,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=n,this.skipped=o,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new Da(t,e,[],wo.empty,0,i,[],null)}startParse(){return this.parser.startParse(new Ya(this.state.doc),this.fragments)}work(t,e){return null!=e&&e>=this.state.doc.length&&(e=void 0),this.tree!=wo.empty&&this.isDone(null!=e?e:this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if("number"==typeof t){let e=Date.now()+t;t=()=>Date.now()>e}for(this.parse||(this.parse=this.startParse()),null!=e&&(null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&e<this.state.doc.length&&this.parse.stopAt(e);;){let s=this.parse.advance();if(s){if(this.fragments=this.withoutTempSkipped(Lo.addTree(s,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!==(i=this.parse.stoppedAt)&&void 0!==i?i:this.state.doc.length,this.tree=s,this.parse=null,!(this.treeLen<(null!=e?e:this.state.doc.length)))return!0;this.parse=this.startParse()}if(t())return!1}})}takeTree(){let t,e;this.parse&&(t=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(Lo.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=qa;qa=this;try{return t()}finally{qa=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=La(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:s,treeLen:r,viewport:n,skipped:o}=this;if(this.takeTree(),!t.empty){let e=[];if(t.iterChangedRanges((t,i,s,r)=>e.push({fromA:t,toA:i,fromB:s,toB:r})),i=Lo.applyChanges(i,e),s=wo.empty,r=0,n={from:t.mapPos(n.from,-1),to:t.mapPos(n.to,1)},this.skipped.length){o=[];for(let e of this.skipped){let i=t.mapPos(e.from,1),s=t.mapPos(e.to,-1);i<s&&o.push({from:i,to:s})}}}return new Da(this.parser,e,i,s,r,n,o,this.scheduleOn)}updateViewport(t){if(this.viewport.from==t.from&&this.viewport.to==t.to)return!1;this.viewport=t;let e=this.skipped.length;for(let e=0;e<this.skipped.length;e++){let{from:i,to:s}=this.skipped[e];i<t.to&&s>t.from&&(this.fragments=La(this.fragments,i,s),this.skipped.splice(e--,1))}return!(this.skipped.length>=e)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends No{createParse(e,i,s){let r=s[0].from,n=s[s.length-1].to;return{parsedPos:r,advance(){let e=qa;if(e){for(let t of s)e.tempSkipped.push(t);t&&(e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t)}return this.parsedPos=n,new wo(vo.none,[],[],n-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&0==e[0].from&&e[0].to>=t}static get(){return qa}}function La(t,e,i){return Lo.applyChanges(t,[{fromA:e,toA:i,fromB:e,toB:i}])}class Na{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Na(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=Da.create(t.facet(Ga).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Na(i)}}Ma.state=N.define({create:Na.init,update(t,e){for(let t of e.effects)if(t.is(Ma.setState))return t.value;return e.startState.facet(Ga)!=e.state.facet(Ga)?Na.init(e.state):t.apply(e)}});let Wa=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};"undefined"!=typeof requestIdleCallback&&(Wa=t=>{let e=-1,i=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(i):cancelIdleCallback(e)});const ja="undefined"!=typeof navigator&&(null===(Za=navigator.scheduling)||void 0===Za?void 0:Za.isInputPending)?()=>navigator.scheduling.isInputPending():null,Ba=Mi.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(Ma.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(Ma.state);e.tree==e.context.tree&&e.context.isDone(t.doc.length)||(this.working=Wa(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnd<e&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=e+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:s}}=this.view,r=i.field(Ma.state);if(r.tree==r.context.tree&&r.context.isDone(s+1e5))return;let n=Date.now()+Math.min(this.chunkBudget,100,t&&!ja?Math.max(25,t.timeRemaining()-5):1e9),o=r.context.treeLen<s&&i.doc.length>s+1e3,a=r.context.work(()=>ja&&ja()||Date.now()>n,s+(o?0:1e5));this.chunkBudget-=Date.now()-e,(a||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ma.setState.of(new Na(r.context))})),this.chunkBudget>0&&(!a||o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(t=>Zi(this.view.state,t)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Ga=V.define({combine:t=>t.length?t[0]:null,enables:t=>[Ma.state,Ba,hn.contentAttributes.compute([t],e=>{let i=e.facet(t);return i&&i.name?{"data-language":i.name}:{}})]});class Ua{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const Fa=V.define(),Ha=V.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function Ka(t){let e=t.facet(Ha);return 9==e.charCodeAt(0)?t.tabSize*e.length:e.length}function Ja(t,e){let i="",s=t.tabSize,r=t.facet(Ha)[0];if("\t"==r){for(;e>=s;)i+="\t",e-=s;r=" "}for(let t=0;t<e;t++)i+=r;return i}function tl(t,e){t instanceof kt&&(t=new el(t));for(let i of t.state.facet(Fa)){let s=i(t,e);if(void 0!==s)return s}let i=Ia(t.state);return i.length>=e?function(t,e,i){let s=e.resolveStack(i),r=e.resolveInner(i,-1).resolve(i,0).enterUnfinishedNodesBefore(i);if(r!=s.node){let t=[];for(let e=r;e&&!(e.from<s.node.from||e.to>s.node.to||e.from==s.node.from&&e.type==s.node.type);e=e.parent)t.push(e);for(let e=t.length-1;e>=0;e--)s={node:t[e],next:s}}return sl(s,t,i)}(t,i,e):null}class el{constructor(t,e={}){this.state=t,this.options=e,this.unit=Ka(t)}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return null!=s&&s>=i.from&&s<=i.to?r&&s==t?{text:"",from:t}:(e<0?s<t:s<=t)?{text:i.text.slice(s-i.from),from:s}:{text:i.text.slice(0,s-i.from),from:i.from}:i}textAfterPos(t,e=1){if(this.options.simulateDoubleBreak&&t==this.options.simulateBreak)return"";let{text:i,from:s}=this.lineAt(t,e);return i.slice(t-s,Math.min(i.length,t+100-s))}column(t,e=1){let{text:i,from:s}=this.lineAt(t,e),r=this.countColumn(i,t-s),n=this.options.overrideIndentation?this.options.overrideIndentation(s):-1;return n>-1&&(r+=n-this.countColumn(i,i.search(/\S|$/))),r}countColumn(t,e=t.length){return Nt(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:s}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let t=r(s);if(t>-1)return t}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const il=new mo;function sl(t,e,i){for(let s=t;s;s=s.next){let t=rl(s.node);if(t)return t(ol.create(e,i,s))}return 0}function rl(t){let e=t.type.prop(il);if(e)return e;let i,s=t.firstChild;if(s&&(i=s.type.prop(mo.closedBy))){let e=t.lastChild,s=e&&i.indexOf(e.name)>-1;return t=>hl(t,!0,1,void 0,s&&!function(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}(t)?e.from:void 0)}return null==t.parent?nl:null}function nl(){return 0}class ol extends el{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i}get node(){return this.context.node}static create(t,e,i){return new ol(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(al(i,t))break;e=this.state.doc.lineAt(i.from)}return this.lineIndent(e.from)}continue(){return sl(this.context.next,this.base,this.pos)}}function al(t,e){for(let i=e;i;i=i.parent)if(t==i)return!0;return!1}function ll({closing:t,align:e=!0,units:i=1}){return s=>hl(s,e,i,t)}function hl(t,e,i,s,r){let n=t.textAfter,o=n.match(/^\s*/)[0].length,a=s&&n.slice(o,o+s.length)==s||r==t.pos+o,l=e?function(t){let e=t.node,i=e.childAfter(e.from),s=e.lastChild;if(!i)return null;let r=t.options.simulateBreak,n=t.state.doc.lineAt(i.from),o=null==r||r<=n.from?n.to:Math.min(n.to,r);for(let t=i.to;;){let r=e.childAfter(t);if(!r||r==s)return null;if(!r.type.isSkipped){if(r.from>=o)return null;let t=/^ */.exec(n.text.slice(i.to-n.from))[0].length;return{from:i.from,to:i.to+t}}t=r.to}}(t):null;return l?a?t.column(l.from):t.column(l.to):t.baseIndent+(a?0:t.unit*i)}function cl({except:t,units:e=1}={}){return i=>{let s=t&&t.test(i.textAfter);return i.baseIndent+(s?0:e*i.unit)}}const ul=new mo;function pl(t){let e=t.firstChild,i=t.lastChild;return e&&e.to<i.from?{from:e.to,to:i.type.isError?t.to:i.from}:null}class dl{constructor(t,e){let i;function s(t){let e=Gt.newName();return(i||(i=Object.create(null)))["."+e]=t,e}this.specs=t;const r="string"==typeof e.all?e.all:e.all?s(e.all):void 0,n=e.scope;this.scope=n instanceof Ma?t=>t.prop(Xa)==n.data:n?t=>t==n:void 0,this.style=pa(t.map(t=>({tag:t.tag,class:t.class||s(Object.assign({},t,{tag:null}))})),{all:r}).style,this.module=i?new Gt(i):null,this.themeType=e.themeType}static define(t,e){return new dl(t,e||{})}}const Ol=V.define(),fl=V.define({combine:t=>t.length?[t[0]]:null});function ml(t){let e=t.facet(Ol);return e.length?e:t.facet(fl)}function gl(t,e){let i,s=[vl];return t instanceof dl&&(t.module&&s.push(hn.styleModule.of(t.module)),i=t.themeType),(null==e?void 0:e.fallback)?s.push(fl.of(t)):i?s.push(Ol.computeN([hn.darkTheme],e=>e.facet(hn.darkTheme)==("dark"==i)?[t]:[])):s.push(Ol.of(t)),s}class xl{constructor(t){this.markCache=Object.create(null),this.tree=Ia(t.state),this.decorations=this.buildDeco(t,ml(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=Ia(t.state),i=ml(t.state),s=i!=ml(t.startState),{viewport:r}=t.view,n=t.changes.mapPos(this.decoratedTo,1);e.length<r.to&&!s&&e.type==this.tree.type&&n>=r.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=n):(e!=this.tree||t.viewportChanged||s)&&(this.tree=e,this.decorations=this.buildDeco(t.view,i),this.decoratedTo=r.to)}buildDeco(t,e){if(!e||!this.tree.length)return be.none;let i=new Xt;for(let{from:s,to:r}of t.visibleRanges)da(this.tree,e,(t,e,s)=>{i.add(t,e,this.markCache[s]||(this.markCache[s]=be.mark({class:s})))},s,r);return i.finish()}}const vl=F.high(Mi.fromClass(xl,{decorations:t=>t.decorations})),yl=dl.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"}]),Sl=hn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),bl="()[]{}",Ql=V.define({combine:t=>Pt(t,{afterCursor:!0,brackets:bl,maxScanDistance:1e4,renderMatch:Pl})}),wl=be.mark({class:"cm-matchingBracket"}),kl=be.mark({class:"cm-nonmatchingBracket"});function Pl(t){let e=[],i=t.matched?wl:kl;return e.push(i.range(t.start.from,t.start.to)),t.end&&e.push(i.range(t.end.from,t.end.to)),e}function $l(t){let e=[],i=t.facet(Ql);for(let s of t.selection.ranges){if(!s.empty)continue;let r=Xl(t,s.head,-1,i)||s.head>0&&Xl(t,s.head-1,1,i)||i.afterCursor&&(Xl(t,s.head,1,i)||s.head<t.doc.length&&Xl(t,s.head+1,-1,i));r&&(e=e.concat(i.renderMatch(r,t)))}return be.set(e,!0)}const Tl=[Mi.fromClass(class{constructor(t){this.paused=!1,this.decorations=$l(t.state)}update(t){(t.docChanged||t.selectionSet||this.paused)&&(t.view.composing?(this.decorations=this.decorations.map(t.changes),this.paused=!0):(this.decorations=$l(t.state),this.paused=!1))}},{decorations:t=>t.decorations}),Sl];function Cl(t={}){return[Ql.of(t),Tl]}const _l=new mo;function Al(t,e,i){let s=t.prop(e<0?mo.openedBy:mo.closedBy);if(s)return s;if(1==t.name.length){let s=i.indexOf(t.name);if(s>-1&&s%2==(e<0?1:0))return[i[s+e]]}return null}function Zl(t){let e=t.type.prop(_l);return e?e(t.node):t}function Xl(t,e,i,s={}){let r=s.maxScanDistance||1e4,n=s.brackets||bl,o=Ia(t),a=o.resolveInner(e,i);for(let s=a;s;s=s.parent){let r=Al(s.type,i,n);if(r&&s.from<s.to){let o=Zl(s);if(o&&(i>0?e>=o.from&&e<o.to:e>o.from&&e<=o.to))return El(t,e,i,s,o,r,n)}}return function(t,e,i,s,r,n,o){let a=i<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.indexOf(a);if(l<0||l%2==0!=i>0)return null;let h={from:i<0?e-1:e,to:i>0?e+1:e},c=t.doc.iterRange(e,i>0?t.doc.length:0),u=0;for(let t=0;!c.next().done&&t<=n;){let n=c.value;i<0&&(t+=n.length);let a=e+t*i;for(let t=i>0?0:n.length-1,e=i>0?n.length:-1;t!=e;t+=i){let e=o.indexOf(n[t]);if(!(e<0||s.resolveInner(a+t,1).type!=r))if(e%2==0==i>0)u++;else{if(1==u)return{start:h,end:{from:a+t,to:a+t+1},matched:e>>1==l>>1};u--}}i>0&&(t+=n.length)}return c.done?{start:h,matched:!1}:null}(t,e,i,o,a.type,r,n)}function El(t,e,i,s,r,n,o){let a=s.parent,l={from:r.from,to:r.to},h=0,c=null==a?void 0:a.cursor();if(c&&(i<0?c.childBefore(s.from):c.childAfter(s.to)))do{if(i<0?c.to<=s.from:c.from>=s.to){if(0==h&&n.indexOf(c.type.name)>-1&&c.from<c.to){let t=Zl(c);return{start:l,end:t?{from:t.from,to:t.to}:void 0,matched:!0}}if(Al(c.type,i,o))h++;else if(Al(c.type,-i,o)){if(0==h){let t=Zl(c);return{start:l,end:t&&t.from<t.to?{from:t.from,to:t.to}:void 0,matched:!1}}h--}}}while(i<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}const Rl=Object.create(null),Ml=[vo.none],Vl=[],zl=Object.create(null),Il=Object.create(null);for(let[t,e]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"]])Il[t]=ql(Rl,e);function Yl(t,e){Vl.indexOf(t)>-1||(Vl.push(t),console.warn(e))}function ql(t,e){let i=[];for(let s of e.split(" ")){let e=[];for(let i of s.split(".")){let s=t[i]||_a[i];s?"function"==typeof s?e.length?e=e.map(s):Yl(i,`Modifier ${i} used at start of tag`):e.length?Yl(i,`Tag ${i} used as modifier`):e=Array.isArray(s)?s:[s]:Yl(i,`Unknown highlighting tag ${i}`)}for(let t of e)i.push(t)}if(!i.length)return 0;let s=e.replace(/ /g,"_"),r=s+" "+i.map(t=>t.id),n=zl[r];if(n)return n.id;let o=zl[r]=vo.define({id:Ml.length,name:s,props:[ha({[s]:i})]});return Ml.push(o),o.id}Ke.RTL,Ke.LTR;function Dl(t,e){return({state:i,dispatch:s})=>{if(i.readOnly)return!1;let r=t(e,i);return!!r&&(s(i.update(r)),!0)}}const Ll=Dl(Ul,0),Nl=Dl(Gl,0),Wl=Dl((t,e)=>Gl(t,e,function(t){let e=[];for(let i of t.selection.ranges){let s=t.doc.lineAt(i.from),r=i.to<=s.to?s:t.doc.lineAt(i.to);r.from>s.from&&r.from==i.to&&(r=i.to==s.to+1?s:t.doc.lineAt(i.to-1));let n=e.length-1;n>=0&&e[n].to>s.from?e[n].to=r.to:e.push({from:s.from+/^\s*/.exec(s.text)[0].length,to:r.to})}return e}(e)),0);function jl(t,e){let i=t.languageDataAt("commentTokens",e,1);return i.length?i[0]:{}}const Bl=50;function Gl(t,e,i=e.selection.ranges){let s=i.map(t=>jl(e,t.from).block);if(!s.every(t=>t))return null;let r=i.map((t,i)=>function(t,{open:e,close:i},s,r){let n,o,a=t.sliceDoc(s-Bl,s),l=t.sliceDoc(r,r+Bl),h=/\s*$/.exec(a)[0].length,c=/^\s*/.exec(l)[0].length,u=a.length-h;if(a.slice(u-e.length,u)==e&&l.slice(c,c+i.length)==i)return{open:{pos:s-h,margin:h&&1},close:{pos:r+c,margin:c&&1}};r-s<=2*Bl?n=o=t.sliceDoc(s,r):(n=t.sliceDoc(s,s+Bl),o=t.sliceDoc(r-Bl,r));let p=/^\s*/.exec(n)[0].length,d=/\s*$/.exec(o)[0].length,O=o.length-d-i.length;return n.slice(p,p+e.length)==e&&o.slice(O,O+i.length)==i?{open:{pos:s+p+e.length,margin:/\s/.test(n.charAt(p+e.length))?1:0},close:{pos:r-d-i.length,margin:/\s/.test(o.charAt(O-1))?1:0}}:null}(e,s[i],t.from,t.to));if(2!=t&&!r.every(t=>t))return{changes:e.changes(i.map((t,e)=>r[e]?[]:[{from:t.from,insert:s[e].open+" "},{from:t.to,insert:" "+s[e].close}]))};if(1!=t&&r.some(t=>t)){let t=[];for(let e,i=0;i<r.length;i++)if(e=r[i]){let r=s[i],{open:n,close:o}=e;t.push({from:n.pos-r.open.length,to:n.pos+n.margin},{from:o.pos-o.margin,to:o.pos+r.close.length})}return{changes:t}}return null}function Ul(t,e,i=e.selection.ranges){let s=[],r=-1;t:for(let{from:t,to:n}of i){let i,o=s.length,a=1e9;for(let o=t;o<=n;){let l=e.doc.lineAt(o);if(null==i&&(i=jl(e,l.from).line,!i))continue t;if(l.from>r&&(t==n||n>l.from)){r=l.from;let t=/^\s*/.exec(l.text)[0].length,e=t==l.length,n=l.text.slice(t,t+i.length)==i?t:-1;t<l.text.length&&t<a&&(a=t),s.push({line:l,comment:n,token:i,indent:t,empty:e,single:!1})}o=l.to+1}if(a<1e9)for(let t=o;t<s.length;t++)s[t].indent<s[t].line.text.length&&(s[t].indent=a);s.length==o+1&&(s[o].single=!0)}if(2!=t&&s.some(t=>t.comment<0&&(!t.empty||t.single))){let t=[];for(let{line:e,token:i,indent:r,empty:n,single:o}of s)!o&&n||t.push({from:e.from+r,insert:i+" "});let i=e.changes(t);return{changes:i,selection:e.selection.map(i,1)}}if(1!=t&&s.some(t=>t.comment>=0)){let t=[];for(let{line:e,comment:i,token:r}of s)if(i>=0){let s=e.from+i,n=s+r.length;" "==e.text[n-e.from]&&n++,t.push({from:s,to:n})}return{changes:t}}return null}const Fl=ct.define(),Hl=ct.define(),Kl=V.define(),Jl=V.define({combine:t=>Pt(t,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(i,s)=>t(i,s)||e(i,s)})}),th=N.define({create:()=>gh.empty,update(t,e){let i=e.state.facet(Jl),s=e.annotation(Fl);if(s){let r=ah.fromTransaction(e,s.selection),n=s.side,o=0==n?t.undone:t.done;return o=r?lh(o,o.length,i.minDepth,r):ph(o,e.startState.selection),new gh(0==n?s.rest:o,0==n?o:s.rest)}let r=e.annotation(Hl);if("full"!=r&&"before"!=r||(t=t.isolate()),!1===e.annotation(Ot.addToHistory))return e.changes.empty?t:t.addMapping(e.changes.desc);let n=ah.fromTransaction(e),o=e.annotation(Ot.time),a=e.annotation(Ot.userEvent);return n?t=t.addChanges(n,o,a,i,e):e.selection&&(t=t.addSelection(e.startState.selection,o,a,i.newGroupDelay)),"full"!=r&&"after"!=r||(t=t.isolate()),t},toJSON:t=>({done:t.done.map(t=>t.toJSON()),undone:t.undone.map(t=>t.toJSON())}),fromJSON:t=>new gh(t.done.map(ah.fromJSON),t.undone.map(ah.fromJSON))});function eh(t={}){return[th,Jl.of(t),hn.domEventHandlers({beforeinput(t,e){let i="historyUndo"==t.inputType?sh:"historyRedo"==t.inputType?rh:null;return!!i&&(t.preventDefault(),i(e))}})]}function ih(t,e){return function({state:i,dispatch:s}){if(!e&&i.readOnly)return!1;let r=i.field(th,!1);if(!r)return!1;let n=r.pop(t,i,e);return!!n&&(s(n),!0)}}const sh=ih(0,!1),rh=ih(1,!1),nh=ih(0,!0),oh=ih(1,!0);class ah{constructor(t,e,i,s,r){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=s,this.selectionsAfter=r}setSelAfter(t){return new ah(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:null===(t=this.changes)||void 0===t?void 0:t.toJSON(),mapped:null===(e=this.mapped)||void 0===e?void 0:e.toJSON(),startSelection:null===(i=this.startSelection)||void 0===i?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(t=>t.toJSON())}}static fromJSON(t){return new ah(t.changes&&P.fromJSON(t.changes),[],t.mapped&&k.fromJSON(t.mapped),t.startSelection&&E.fromJSON(t.startSelection),t.selectionsAfter.map(E.fromJSON))}static fromTransaction(t,e){let i=ch;for(let e of t.startState.facet(Kl)){let s=e(t);s.length&&(i=i.concat(s))}return!i.length&&t.changes.empty?null:new ah(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,ch)}static selection(t){return new ah(void 0,ch,void 0,void 0,t)}}function lh(t,e,i,s){let r=e+1>i+20?e-i-1:0,n=t.slice(r,e);return n.push(s),n}function hh(t,e){return t.length?e.length?t.concat(e):t:e}const ch=[],uh=200;function ph(t,e){if(t.length){let i=t[t.length-1],s=i.selectionsAfter.slice(Math.max(0,i.selectionsAfter.length-uh));return s.length&&s[s.length-1].eq(e)?t:(s.push(e),lh(t,t.length-1,1e9,i.setSelAfter(s)))}return[ah.selection([e])]}function dh(t){let e=t[t.length-1],i=t.slice();return i[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),i}function Oh(t,e){if(!t.length)return t;let i=t.length,s=ch;for(;i;){let r=fh(t[i-1],e,s);if(r.changes&&!r.changes.empty||r.effects.length){let e=t.slice(0,i);return e[i-1]=r,e}e=r.mapped,i--,s=r.selectionsAfter}return s.length?[ah.selection(s)]:ch}function fh(t,e,i){let s=hh(t.selectionsAfter.length?t.selectionsAfter.map(t=>t.map(e)):ch,i);if(!t.changes)return ah.selection(s);let r=t.changes.map(e),n=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(n):n;return new ah(r,dt.mapEffects(t.effects,e),o,t.startSelection.map(n),s)}const mh=/^(input\.type|delete)($|\.)/;class gh{constructor(t,e,i=0,s=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new gh(this.done,this.undone):this}addChanges(t,e,i,s,r){let n=this.done,o=n[n.length-1];return n=o&&o.changes&&!o.changes.empty&&t.changes&&(!i||mh.test(i))&&(!o.selectionsAfter.length&&e-this.prevTime<s.newGroupDelay&&s.joinToEvent(r,function(t,e){let i=[],s=!1;return t.iterChangedRanges((t,e)=>i.push(t,e)),e.iterChangedRanges((t,e,r,n)=>{for(let t=0;t<i.length;){let e=i[t++],o=i[t++];n>=e&&r<=o&&(s=!0)}}),s}(o.changes,t.changes))||"input.type.compose"==i)?lh(n,n.length-1,s.minDepth,new ah(t.changes.compose(o.changes),hh(dt.mapEffects(t.effects,o.changes),o.effects),o.mapped,o.startSelection,ch)):lh(n,n.length,s.minDepth,t),new gh(n,ch,e,i)}addSelection(t,e,i,s){let r=this.done.length?this.done[this.done.length-1].selectionsAfter:ch;return r.length>0&&e-this.prevTime<s&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&(n=r[r.length-1],o=t,n.ranges.length==o.ranges.length&&0===n.ranges.filter((t,e)=>t.empty!=o.ranges[e].empty).length)?this:new gh(ph(this.done,t),this.undone,e,i);var n,o}addMapping(t){return new gh(Oh(this.done,t),Oh(this.undone,t),this.prevTime,this.prevUserEvent)}pop(t,e,i){let s=0==t?this.done:this.undone;if(0==s.length)return null;let r=s[s.length-1],n=r.selectionsAfter[0]||(r.startSelection?r.startSelection.map(r.changes.invertedDesc,1):e.selection);if(i&&r.selectionsAfter.length)return e.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:Fl.of({side:t,rest:dh(s),selection:n}),userEvent:0==t?"select.undo":"select.redo",scrollIntoView:!0});if(r.changes){let i=1==s.length?ch:s.slice(0,s.length-1);return r.mapped&&(i=Oh(i,r.mapped)),e.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:Fl.of({side:t,rest:i,selection:n}),filter:!1,userEvent:0==t?"undo":"redo",scrollIntoView:!0})}return null}}gh.empty=new gh(ch,ch);const xh=[{key:"Mod-z",run:sh,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:rh,preventDefault:!0},{linux:"Ctrl-Shift-z",run:rh,preventDefault:!0},{key:"Mod-u",run:nh,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:oh,preventDefault:!0}];function vh(t,e){return E.create(t.ranges.map(e),t.mainIndex)}function yh(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Sh({state:t,dispatch:e},i){let s=vh(t.selection,i);return!s.eq(t.selection,!0)&&(e(yh(t,s)),!0)}function bh(t,e){return E.cursor(e?t.to:t.from)}function Qh(t,e){return Sh(t,i=>i.empty?t.moveByChar(i,e):bh(i,e))}function wh(t){return t.textDirectionAt(t.state.selection.main.head)==Ke.LTR}const kh=t=>Qh(t,!wh(t)),Ph=t=>Qh(t,wh(t));function $h(t,e){return Sh(t,i=>i.empty?t.moveByGroup(i,e):bh(i,e))}function Th(t,e,i){if(e.type.prop(i))return!0;let s=e.to-e.from;return s&&(s>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function Ch(t,e,i){let s,r,n=Ia(t).resolveInner(e.head),o=i?mo.closedBy:mo.openedBy;for(let s=e.head;;){let e=i?n.childAfter(s):n.childBefore(s);if(!e)break;Th(t,e,o)?n=e:s=i?e.to:e.from}return r=n.type.prop(o)&&(s=i?Xl(t,n.from,1):Xl(t,n.to,-1))&&s.matched?i?s.end.to:s.end.from:i?n.to:n.from,E.cursor(r,i?-1:1)}function _h(t,e){return Sh(t,i=>{if(!i.empty)return bh(i,e);let s=t.moveVertically(i,e);return s.head!=i.head?s:t.moveToLineBoundary(i,e)})}const Ah=t=>_h(t,!1),Zh=t=>_h(t,!0);function Xh(t){let e,i=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,s=0,r=0;if(i){for(let e of t.state.facet(hn.scrollMargins)){let i=e(t);(null==i?void 0:i.top)&&(s=Math.max(null==i?void 0:i.top,s)),(null==i?void 0:i.bottom)&&(r=Math.max(null==i?void 0:i.bottom,r))}e=t.scrollDOM.clientHeight-s-r}else e=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:s,marginBottom:r,selfScroll:i,height:Math.max(t.defaultLineHeight,e-5)}}function Eh(t,e){let i,s=Xh(t),{state:r}=t,n=vh(r.selection,i=>i.empty?t.moveVertically(i,e,s.height):bh(i,e));if(n.eq(r.selection))return!1;if(s.selfScroll){let e=t.coordsAtPos(r.selection.main.head),o=t.scrollDOM.getBoundingClientRect(),a=o.top+s.marginTop,l=o.bottom-s.marginBottom;e&&e.top>a&&e.bottom<l&&(i=hn.scrollIntoView(n.main.head,{y:"start",yMargin:e.top-a}))}return t.dispatch(yh(r,n),{effects:i}),!0}const Rh=t=>Eh(t,!1),Mh=t=>Eh(t,!0);function Vh(t,e,i){let s=t.lineBlockAt(e.head),r=t.moveToLineBoundary(e,i);if(r.head==e.head&&r.head!=(i?s.to:s.from)&&(r=t.moveToLineBoundary(e,i,!1)),!i&&r.head==s.from&&s.length){let i=/^\s*/.exec(t.state.sliceDoc(s.from,Math.min(s.from+100,s.to)))[0].length;i&&e.head!=s.from+i&&(r=E.cursor(s.from+i))}return r}function zh(t,e){let i=vh(t.state.selection,t=>{let i=e(t);return E.range(t.anchor,i.head,i.goalColumn,i.bidiLevel||void 0,i.assoc)});return!i.eq(t.state.selection)&&(t.dispatch(yh(t.state,i)),!0)}function Ih(t,e){return zh(t,i=>t.moveByChar(i,e))}const Yh=t=>Ih(t,!wh(t)),qh=t=>Ih(t,wh(t));function Dh(t,e){return zh(t,i=>t.moveByGroup(i,e))}function Lh(t,e){return zh(t,i=>t.moveVertically(i,e))}const Nh=t=>Lh(t,!1),Wh=t=>Lh(t,!0);function jh(t,e){return zh(t,i=>t.moveVertically(i,e,Xh(t).height))}const Bh=t=>jh(t,!1),Gh=t=>jh(t,!0),Uh=({state:t,dispatch:e})=>(e(yh(t,{anchor:0})),!0),Fh=({state:t,dispatch:e})=>(e(yh(t,{anchor:t.doc.length})),!0),Hh=({state:t,dispatch:e})=>(e(yh(t,{anchor:t.selection.main.anchor,head:0})),!0),Kh=({state:t,dispatch:e})=>(e(yh(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0);function Jh(t,e){let{state:i}=t,s=i.selection,r=i.selection.ranges.slice();for(let s of i.selection.ranges){let n=i.doc.lineAt(s.head);if(e?n.to<t.state.doc.length:n.from>0)for(let i=s;;){let s=t.moveVertically(i,e);if(s.head<n.from||s.head>n.to){r.some(t=>t.head==s.head)||r.push(s);break}if(s.head==i.head)break;i=s}}return r.length!=s.ranges.length&&(t.dispatch(yh(i,E.create(r,r.length-1))),!0)}function tc(t,e){if(t.state.readOnly)return!1;let i="delete.selection",{state:s}=t,r=s.changeByRange(s=>{let{from:r,to:n}=s;if(r==n){let o=e(s);o<r?(i="delete.backward",o=ec(t,o,!1)):o>r&&(i="delete.forward",o=ec(t,o,!0)),r=Math.min(r,o),n=Math.max(n,o)}else r=ec(t,r,!1),n=ec(t,n,!0);return r==n?{range:s}:{changes:{from:r,to:n},range:E.cursor(r,r<s.head?-1:1)}});return!r.changes.empty&&(t.dispatch(s.update(r,{scrollIntoView:!0,userEvent:i,effects:"delete.selection"==i?hn.announce.of(s.phrase("Selection deleted")):void 0})),!0)}function ec(t,e,i){if(t instanceof hn)for(let s of t.state.facet(hn.atomicRanges).map(e=>e(t)))s.between(e,e,(t,s)=>{t<e&&s>e&&(e=i?s:t)});return e}const ic=(t,e,i)=>tc(t,s=>{let r,n,o=s.from,{state:a}=t,l=a.doc.lineAt(o);if(i&&!e&&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 t=Nt(r,a.tabSize)%Ka(a)||Ka(a);for(let e=0;e<t&&" "==r[r.length-1-e];e++)o--;n=o}else n=S(l.text,o-l.from,e,e)+l.from,n==o&&l.number!=(e?a.doc.lines:1)?n+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(l.text.slice(n-l.from,o-l.from))&&(n=S(l.text,n-l.from,!1,!1)+l.from);return n}),sc=t=>ic(t,!1,!0),rc=t=>ic(t,!0,!1),nc=(t,e)=>tc(t,i=>{let s=i.head,{state:r}=t,n=r.doc.lineAt(s),o=r.charCategorizer(s);for(let t=null;;){if(s==(e?n.to:n.from)){s==i.head&&n.number!=(e?r.doc.lines:1)&&(s+=e?1:-1);break}let a=S(n.text,s-n.from,e)+n.from,l=n.text.slice(Math.min(s,a)-n.from,Math.max(s,a)-n.from),h=o(l);if(null!=t&&h!=t)break;" "==l&&s==i.head||(t=h),s=a}return s}),oc=t=>nc(t,!1);function ac(t){let e=[],i=-1;for(let s of t.selection.ranges){let r=t.doc.lineAt(s.from),n=t.doc.lineAt(s.to);if(s.empty||s.to!=n.from||(n=t.doc.lineAt(s.to-1)),i>=r.number){let t=e[e.length-1];t.to=n.to,t.ranges.push(s)}else e.push({from:r.from,to:n.to,ranges:[s]});i=n.number+1}return e}function lc(t,e,i){if(t.readOnly)return!1;let s=[],r=[];for(let e of ac(t)){if(i?e.to==t.doc.length:0==e.from)continue;let n=t.doc.lineAt(i?e.to+1:e.from-1),o=n.length+1;if(i){s.push({from:e.to,to:n.to},{from:e.from,insert:n.text+t.lineBreak});for(let i of e.ranges)r.push(E.range(Math.min(t.doc.length,i.anchor+o),Math.min(t.doc.length,i.head+o)))}else{s.push({from:n.from,to:e.from},{from:e.to,insert:t.lineBreak+n.text});for(let t of e.ranges)r.push(E.range(t.anchor-o,t.head-o))}}return!!s.length&&(e(t.update({changes:s,scrollIntoView:!0,selection:E.create(r,t.selection.mainIndex),userEvent:"move.line"})),!0)}function hc(t,e,i){if(t.readOnly)return!1;let s=[];for(let e of ac(t))i?s.push({from:e.from,insert:t.doc.slice(e.from,e.to)+t.lineBreak}):s.push({from:e.to,insert:t.lineBreak+t.doc.slice(e.from,e.to)});let r=t.changes(s);return e(t.update({changes:r,selection:t.selection.map(r,i?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}const cc=uc(!1);function uc(t){return({state:e,dispatch:i})=>{if(e.readOnly)return!1;let s=e.changeByRange(i=>{let{from:s,to:r}=i,n=e.doc.lineAt(s),o=!t&&s==r&&function(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let i,s=Ia(t).resolveInner(e),r=s.childBefore(e),n=s.childAfter(e);return r&&n&&r.to<=e&&n.from>=e&&(i=r.type.prop(mo.closedBy))&&i.indexOf(n.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(n.from).from&&!/\S/.test(t.sliceDoc(r.to,n.from))?{from:r.to,to:n.from}:null}(e,s);t&&(s=r=(r<=n.to?n:e.doc.lineAt(r)).to);let a=new el(e,{simulateBreak:s,simulateDoubleBreak:!!o}),l=tl(a,s);for(null==l&&(l=Nt(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));r<n.to&&/\s/.test(n.text[r-n.from]);)r++;o?({from:s,to:r}=o):s>n.from&&s<n.from+100&&!/\S/.test(n.text.slice(0,s))&&(s=n.from);let h=["",Ja(e,l)];return o&&h.push(Ja(e,a.lineIndent(n.from,-1))),{changes:{from:s,to:r,insert:u.of(h)},range:E.cursor(s+1+h[1].length)}});return i(e.update(s,{scrollIntoView:!0,userEvent:"input"})),!0}}function pc(t,e){let i=-1;return t.changeByRange(s=>{let r=[];for(let n=s.from;n<=s.to;){let o=t.doc.lineAt(n);o.number>i&&(s.empty||s.to>o.from)&&(e(o,r,s),i=o.number),n=o.to+1}let n=t.changes(r);return{changes:r,range:E.range(n.mapPos(s.anchor,1),n.mapPos(s.head,1))}})}const dc=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:t=>Sh(t,e=>Ch(t.state,e,!wh(t))),shift:t=>zh(t,e=>Ch(t.state,e,!wh(t)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:t=>Sh(t,e=>Ch(t.state,e,wh(t))),shift:t=>zh(t,e=>Ch(t.state,e,wh(t)))},{key:"Alt-ArrowUp",run:({state:t,dispatch:e})=>lc(t,e,!1)},{key:"Shift-Alt-ArrowUp",run:({state:t,dispatch:e})=>hc(t,e,!1)},{key:"Alt-ArrowDown",run:({state:t,dispatch:e})=>lc(t,e,!0)},{key:"Shift-Alt-ArrowDown",run:({state:t,dispatch:e})=>hc(t,e,!0)},{key:"Mod-Alt-ArrowUp",run:t=>Jh(t,!1)},{key:"Mod-Alt-ArrowDown",run:t=>Jh(t,!0)},{key:"Escape",run:({state:t,dispatch:e})=>{let i=t.selection,s=null;return i.ranges.length>1?s=E.create([i.main]):i.main.empty||(s=E.create([E.cursor(i.main.head)])),!!s&&(e(yh(t,s)),!0)}},{key:"Mod-Enter",run:uc(!0)},{key:"Alt-l",mac:"Ctrl-l",run:({state:t,dispatch:e})=>{let i=ac(t).map(({from:e,to:i})=>E.range(e,Math.min(i+1,t.doc.length)));return e(t.update({selection:E.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:t,dispatch:e})=>{let i=vh(t.selection,e=>{let i=Ia(t),s=i.resolveStack(e.from,1);if(e.empty){let t=i.resolveStack(e.from,-1);t.node.from>=s.node.from&&t.node.to<=s.node.to&&(s=t)}for(let t=s;t;t=t.next){let{node:i}=t;if((i.from<e.from&&i.to>=e.to||i.to>e.to&&i.from<=e.from)&&t.next)return E.range(i.to,i.from)}return e});return!i.eq(t.selection)&&(e(yh(t,i)),!0)},preventDefault:!0},{key:"Mod-[",run:({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(pc(t,(e,i)=>{let s=/^\s*/.exec(e.text)[0];if(!s)return;let r=Nt(s,t.tabSize),n=0,o=Ja(t,Math.max(0,r-Ka(t)));for(;n<s.length&&n<o.length&&s.charCodeAt(n)==o.charCodeAt(n);)n++;i.push({from:e.from+n,to:e.from+s.length,insert:o.slice(n)})}),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:t,dispatch:e})=>!t.readOnly&&(e(t.update(pc(t,(e,i)=>{i.push({from:e.from,insert:t.facet(Ha)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=Object.create(null),s=new el(t,{overrideIndentation:t=>{let e=i[t];return null==e?-1:e}}),r=pc(t,(e,r,n)=>{let o=tl(s,e.from);if(null==o)return;/\S/.test(e.text)||(o=0);let a=/^\s*/.exec(e.text)[0],l=Ja(t,o);(a!=l||n.from<e.from+a.length)&&(i[e.from]=o,r.push({from:e.from,to:e.from+a.length,insert:l}))});return r.changes.empty||e(t.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:t=>{if(t.state.readOnly)return!1;let{state:e}=t,i=e.changes(ac(e).map(({from:t,to:i})=>(t>0?t--:i<e.doc.length&&i++,{from:t,to:i}))),s=vh(e.selection,e=>{let i;if(t.lineWrapping){let s=t.lineBlockAt(e.head),r=t.coordsAtPos(e.head,e.assoc||1);r&&(i=s.bottom+t.documentTop-r.bottom+t.defaultLineHeight/2)}return t.moveVertically(e,!0,i)}).map(i);return t.dispatch({changes:i,selection:s,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:t,dispatch:e})=>function(t,e,i){let s=!1,r=vh(t.selection,e=>{let r=Xl(t,e.head,-1)||Xl(t,e.head,1)||e.head>0&&Xl(t,e.head-1,1)||e.head<t.doc.length&&Xl(t,e.head+1,-1);if(!r||!r.end)return e;s=!0;let n=r.start.from==e.head?r.end.to:r.end.from;return i?E.range(e.anchor,n):E.cursor(n)});return!!s&&(e(yh(t,r)),!0)}(t,e,!1)},{key:"Mod-/",run:t=>{let{state:e}=t,i=e.doc.lineAt(e.selection.main.from),s=jl(t.state,i.from);return s.line?Ll(t):!!s.block&&Wl(t)}},{key:"Alt-A",run:Nl},{key:"Ctrl-m",mac:"Shift-Alt-m",run:t=>(t.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:kh,shift:Yh,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:t=>$h(t,!wh(t)),shift:t=>Dh(t,!wh(t)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:t=>Sh(t,e=>Vh(t,e,!wh(t))),shift:t=>zh(t,e=>Vh(t,e,!wh(t))),preventDefault:!0},{key:"ArrowRight",run:Ph,shift:qh,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:t=>$h(t,wh(t)),shift:t=>Dh(t,wh(t)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:t=>Sh(t,e=>Vh(t,e,wh(t))),shift:t=>zh(t,e=>Vh(t,e,wh(t))),preventDefault:!0},{key:"ArrowUp",run:Ah,shift:Nh,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Uh,shift:Hh},{mac:"Ctrl-ArrowUp",run:Rh,shift:Bh},{key:"ArrowDown",run:Zh,shift:Wh,preventDefault:!0},{mac:"Cmd-ArrowDown",run:Fh,shift:Kh},{mac:"Ctrl-ArrowDown",run:Mh,shift:Gh},{key:"PageUp",run:Rh,shift:Bh},{key:"PageDown",run:Mh,shift:Gh},{key:"Home",run:t=>Sh(t,e=>Vh(t,e,!1)),shift:t=>zh(t,e=>Vh(t,e,!1)),preventDefault:!0},{key:"Mod-Home",run:Uh,shift:Hh},{key:"End",run:t=>Sh(t,e=>Vh(t,e,!0)),shift:t=>zh(t,e=>Vh(t,e,!0)),preventDefault:!0},{key:"Mod-End",run:Fh,shift:Kh},{key:"Enter",run:cc,shift:cc},{key:"Mod-a",run:({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:sc,shift:sc,preventDefault:!0},{key:"Delete",run:rc,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:oc,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:t=>nc(t,!0),preventDefault:!0},{mac:"Mod-Backspace",run:t=>tc(t,e=>{let i=t.moveToLineBoundary(e,!1).head;return e.head>i?i:Math.max(0,e.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:t=>tc(t,e=>{let i=t.moveToLineBoundary(e,!0).head;return e.head<i?i:Math.min(t.state.doc.length,e.head+1)}),preventDefault:!0}].concat([{key:"Ctrl-b",run:kh,shift:Yh,preventDefault:!0},{key:"Ctrl-f",run:Ph,shift:qh},{key:"Ctrl-p",run:Ah,shift:Nh},{key:"Ctrl-n",run:Zh,shift:Wh},{key:"Ctrl-a",run:t=>Sh(t,e=>E.cursor(t.lineBlockAt(e.head).from,1)),shift:t=>zh(t,e=>E.cursor(t.lineBlockAt(e.head).from))},{key:"Ctrl-e",run:t=>Sh(t,e=>E.cursor(t.lineBlockAt(e.head).to,-1)),shift:t=>zh(t,e=>E.cursor(t.lineBlockAt(e.head).to))},{key:"Ctrl-d",run:rc},{key:"Ctrl-h",run:sc},{key:"Ctrl-k",run:t=>tc(t,e=>{let i=t.lineBlockAt(e.head).to;return e.head<i?i:Math.min(t.state.doc.length,e.head+1)})},{key:"Ctrl-Alt-h",run:oc},{key:"Ctrl-o",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:u.of(["",""])},range:E.cursor(t.from)}));return e(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let i=e.from,s=t.doc.lineAt(i),r=i==s.from?i-1:S(s.text,i-s.from,!1)+s.from,n=i==s.to?i+1:S(s.text,i-s.from,!0)+s.from;return{changes:{from:r,to:n,insert:t.doc.slice(i,n).append(t.doc.slice(r,i))},range:E.cursor(n)}});return!i.changes.empty&&(e(t.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Mh}].map(t=>({mac:t.key,run:t.run,shift:t.shift}))));function Oc(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function fc(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[i,s]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),i=Object.create(null);for(let{label:s}of t){e[s[0]]=!0;for(let t=1;t<s.length;t++)i[s[t]]=!0}let s=Oc(e)+Oc(i)+"*$";return[new RegExp("^"+s),new RegExp(s)]}(e);return t=>{let r=t.matchBefore(s);return r||t.explicit?{from:r?r.from:t.pos,options:e,validFor:i}:null}}const mc=ct.define(),gc=hn.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"},".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 xc{constructor(t,e,i,s){this.field=t,this.line=e,this.from=i,this.to=s}}class vc{constructor(t,e,i){this.field=t,this.from=e,this.to=i}map(t){let e=t.mapPos(this.from,-1,w.TrackDel),i=t.mapPos(this.to,1,w.TrackDel);return null==e||null==i?null:new vc(this.field,e,i)}}class yc{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let i=[],s=[e],r=t.doc.lineAt(e),n=/^\s*/.exec(r.text)[0];for(let r of this.lines){if(i.length){let i=n,o=/^\t*/.exec(r)[0].length;for(let e=0;e<o;e++)i+=t.facet(Ha);s.push(e+i.length-o),r=i+r.slice(o)}i.push(r),e+=r.length+1}let o=this.fieldPositions.map(t=>new vc(t.field,s[t.line]+t.from,s[t.line]+t.to));return{text:i,ranges:o}}static parse(t){let e,i=[],s=[],r=[];for(let n of t.split(/\r\n?|\n/)){for(;e=/[#$]\{(?:(\d+)(?::([^{}]*))?|((?:\\[{}]|[^{}])*))\}/.exec(n);){let t=e[1]?+e[1]:null,o=e[2]||e[3]||"",a=-1,l=o.replace(/\\[{}]/g,t=>t[1]);for(let e=0;e<i.length;e++)(null!=t?i[e].seq==t:l&&i[e].name==l)&&(a=e);if(a<0){let e=0;for(;e<i.length&&(null==t||null!=i[e].seq&&i[e].seq<t);)e++;i.splice(e,0,{seq:t,name:l}),a=e;for(let t of r)t.field>=a&&t.field++}for(let t of r)if(t.line==s.length&&t.from>e.index){let i=e[2]?3+(e[1]||"").length:2;t.from-=i,t.to-=i}r.push(new xc(a,s.length,e.index,e.index+l.length)),n=n.slice(0,e.index)+o+n.slice(e.index+e[0].length)}n=n.replace(/\\([{}])/g,(t,e,i)=>{for(let t of r)t.line==s.length&&t.from>i&&(t.from--,t.to--);return e}),s.push(n)}return new yc(s,r)}}let Sc=be.widget({widget:new class extends ye{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),bc=be.mark({class:"cm-snippetField"});class Qc{constructor(t,e){this.ranges=t,this.active=e,this.deco=be.set(t.map(t=>(t.from==t.to?Sc:bc).range(t.from,t.to)),!0)}map(t){let e=[];for(let i of this.ranges){let s=i.map(t);if(!s)return null;e.push(s)}return new Qc(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}const wc=dt.define({map:(t,e)=>t&&t.map(e)}),kc=dt.define(),Pc=N.define({create:()=>null,update(t,e){for(let i of e.effects){if(i.is(wc))return i.value;if(i.is(kc)&&t)return new Qc(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>hn.decorations.from(t,t=>t?t.deco:be.none)});function $c(t,e){return E.create(t.filter(t=>t.field==e).map(t=>E.range(t.from,t.to)))}function Tc(t){let e=yc.parse(t);return(t,i,s,r)=>{let{text:n,ranges:o}=e.instantiate(t.state,s),{main:a}=t.state.selection,l={changes:{from:s,to:r==a.from?a.to:r,insert:u.of(n)},scrollIntoView:!0,annotations:i?[mc.of(i),Ot.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=$c(o,0)),o.some(t=>t.field>0)){let e=new Qc(o,0),i=l.effects=[wc.of(e)];void 0===t.state.field(Pc,!1)&&i.push(dt.appendConfig.of([Pc,Zc,Ec,gc]))}t.dispatch(t.state.update(l))}}function Cc(t){return({state:e,dispatch:i})=>{let s=e.field(Pc,!1);if(!s||t<0&&0==s.active)return!1;let r=s.active+t,n=t>0&&!s.ranges.some(e=>e.field==r+t);return i(e.update({selection:$c(s.ranges,r),effects:wc.of(n?null:new Qc(s.ranges,r)),scrollIntoView:!0})),!0}}const _c=[{key:"Tab",run:Cc(1),shift:Cc(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(Pc,!1)&&(e(t.update({effects:wc.of(null)})),!0)}],Ac=V.define({combine:t=>t.length?t[0]:_c}),Zc=F.highest(gn.compute([Ac],t=>t.facet(Ac)));function Xc(t,e){return{...e,apply:Tc(t)}}const Ec=hn.domEventHandlers({mousedown(t,e){let i,s=e.state.field(Pc,!1);if(!s||null==(i=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let r=s.ranges.find(t=>t.from<=i&&t.to>=i);return!(!r||r.field==s.active)&&(e.dispatch({selection:$c(s.ranges,r.field),effects:wc.of(s.ranges.some(t=>t.field>r.field)?new Qc(s.ranges,r.field):null),scrollIntoView:!0}),!0)}}),Rc=new class extends $t{};Rc.startSide=1,Rc.endSide=-1;const Mc=(()=>[Dn(),eh(),Cn(),gl(yl,{fallback:!0}),gn.of([...dc,...xh])])();class Vc{constructor(t,e,i,s,r,n,o,a,l,h=0,c){this.p=t,this.stack=e,this.state=i,this.reducePos=s,this.pos=r,this.score=n,this.buffer=o,this.bufferBase=a,this.curContext=l,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let s=t.parser.context;return new Vc(t,[],e,i,i,0,[],0,s?new zc(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let i=t>>19,s=65535&t,{parser:r}=this.p,n=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),o=r.dynamicPrecedence(s);if(o&&(this.score+=o),0==i)return this.pushState(r.getGoto(this.state,s,!0),this.reducePos),s<r.minRepeatTerm&&this.storeNode(s,this.reducePos,this.reducePos,n?8:4,!0),void this.reduceContext(s,this.reducePos);let a=this.stack.length-3*(i-1)-(262144&t?6:0),l=a?this.stack[a-2]:this.p.ranges[0].from,h=this.reducePos-l;h>=2e3&&!(null===(e=this.p.parser.nodeSet.types[s])||void 0===e?void 0:e.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(s<r.minRepeatTerm||131072&t){let t=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(s,l,t,u+4,!0)}if(262144&t)this.state=this.stack[a];else{let t=this.stack[a-3];this.state=r.getGoto(t,s,!0)}for(;this.stack.length>a;)this.stack.pop();this.reduceContext(s,l)}storeNode(t,e,i,s=4,r=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let t=this,s=this.buffer.length;if(0==s&&t.parent&&(s=t.bufferBase-t.parent.bufferBase,t=t.parent),s>0&&0==t.buffer[s-4]&&t.buffer[s-1]>-1){if(e==i)return;if(t.buffer[s-2]>=e)return void(t.buffer[s-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 t=!1;for(let e=r;e>0&&this.buffer[e-2]>i;e-=4)if(this.buffer[e-1]>=0){t=!0;break}if(t)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,s>4&&(s-=4)}this.buffer[r]=t,this.buffer[r+1]=e,this.buffer[r+2]=i,this.buffer[r+3]=s}else this.buffer.push(t,e,i,s)}shift(t,e,i,s){if(131072&t)this.pushState(65535&t,this.pos);else if(262144&t)this.pos=s,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,s,4);else{let r=t,{parser:n}=this.p;this.pos=s;let o=n.stateFlag(r,1);!o&&(s>i||e<=n.maxNode)&&(this.reducePos=s),this.pushState(r,o?i:Math.min(i,this.reducePos)),this.shiftContext(e,i),e<=n.maxNode&&this.buffer.push(e,i,s,4)}}apply(t,e,i,s){65536&t?this.reduce(t):this.shift(t,e,i,s)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let s=this.pos;this.reducePos=this.pos=s+t.length,this.pushState(e,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),s=t.bufferBase+e;for(;t&&s==t.bufferBase;)t=t.parent;return new Vc(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new Ic(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==i)return!1;if(!(65536&i))return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let s,r=0;r<e.length;r+=2)(s=e[r+1])!=this.state&&this.p.parser.hasAction(s,t)&&i.push(e[r],s);if(this.stack.length<120)for(let t=0;i.length<8&&t<e.length;t+=2){let s=e[t+1];i.some((t,e)=>1&e&&t==s)||i.push(e[t],s)}e=i}let i=[];for(let t=0;t<e.length&&i.length<4;t+=2){let s=e[t+1];if(s==this.state)continue;let r=this.split();r.pushState(s,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(e[t],this.pos),r.reducePos=this.pos,r.score-=200,i.push(r)}return i}forceReduce(){let{parser:t}=this.p,e=t.stateSlot(this.state,5);if(!(65536&e))return!1;if(!t.validAction(this.state,e)){let i=e>>19,s=65535&e,r=this.stack.length-3*i;if(r<0||t.getGoto(this.stack[r],s,!1)<0){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],i=(s,r)=>{if(!e.includes(s))return e.push(s),t.allActions(s,e=>{if(393216&e);else if(65536&e){let i=(e>>19)-r;if(i>1){let s=65535&e,r=this.stack.length-3*i;if(r>=0&&t.getGoto(this.stack[r],s,!1)>=0)return i<<19|65536|s}}else{let t=i(e,r+1);if(null!=t)return t}})};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:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;e<this.stack.length;e+=3)if(this.stack[e]!=t.stack[e])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(t){return this.p.parser.dialect.flags[t]}shiftContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,t,this,this.p.stream.reset(e)))}reduceContext(t,e){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,t,this,this.p.stream.reset(e)))}emitContext(){let t=this.buffer.length-1;(t<0||-3!=this.buffer[t])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let t=this.buffer.length-1;(t<0||-4!=this.buffer[t])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(t){if(t!=this.curContext.context){let e=new zc(this.curContext.tracker,t);e.hash!=this.curContext.hash&&this.emitContext(),this.curContext=e}}setLookAhead(t){return!(t<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=t,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class zc{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class Ic{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=65535&t,i=t>>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 s=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=s}}class Yc{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new Yc(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.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 qc(t,e=Uint16Array){if("string"!=typeof t)return t;let i=null;for(let s=0,r=0;s<t.length;){let n=0;for(;;){let e=t.charCodeAt(s++),i=!1;if(126==e){n=65535;break}e>=92&&e--,e>=34&&e--;let r=e-32;if(r>=46&&(r-=46,i=!0),n+=r,i)break;n*=46}i?i[r++]=n:i=new e(n)}return i}class Dc{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Lc=new Dc;class Nc{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Lc,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,s=this.rangeIndex,r=this.pos+t;for(;r<i.from;){if(!s)return null;let t=this.ranges[--s];r-=i.from-t.to,i=t}for(;e<0?r>i.to:r>=i.to;){if(s==this.ranges.length-1)return null;let t=this.ranges[++s];r+=t.from-i.to,i=t}return r}clipPos(t){if(t>=this.range.from&&t<this.range.to)return t;for(let e of this.ranges)if(e.to>t)return Math.max(t,e.from);return this.end}peek(t){let e,i,s=this.chunkOff+t;if(s>=0&&s<this.chunk.length)e=this.pos+t,i=this.chunk.charCodeAt(s);else{let s=this.resolveOffset(t,1);if(null==s)return-1;if(e=s,e>=this.chunk2Pos&&e<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(e-this.chunk2Pos);else{let t=this.rangeIndex,s=this.range;for(;s.to<=e;)s=this.ranges[++t];this.chunk2=this.input.chunk(this.chunk2Pos=e),e+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-e)),i=this.chunk2.charCodeAt(0)}}return e>=this.token.lookAhead&&(this.token.lookAhead=e+1),i}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=t,this.token.end=i}acceptTokenTo(t,e){this.token.value=t,this.token.end=e}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:t,chunkPos:e}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=t,this.chunk2Pos=e,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let t=this.input.chunk(this.pos),e=this.pos+t.length;this.chunk=e>this.range.to?t.slice(0,this.range.to-this.pos):t,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(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,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(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=Lc,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;t>=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t<this.chunkPos+this.chunk.length?this.chunkOff=t-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(t,e){if(t>=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let s of this.ranges){if(s.from>=e)break;s.to>t&&(i+=this.input.read(Math.max(s.from,t),Math.min(s.to,e)))}return i}}class Wc{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;Gc(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}Wc.prototype.contextual=Wc.prototype.fallback=Wc.prototype.extend=!1;class jc{constructor(t,e,i){this.precTable=e,this.elseToken=i,this.data="string"==typeof t?qc(t):t}token(t,e){let i=t.pos,s=0;for(;;){let i=t.next<0,r=t.resolveOffset(1,1);if(Gc(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(i||s++,null==r)break;t.reset(r,t.token)}s&&(t.reset(i,t.token),t.acceptToken(this.elseToken,s))}}jc.prototype.contextual=Wc.prototype.fallback=Wc.prototype.extend=!1;class Bc{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function Gc(t,e,i,s,r,n){let o=0,a=1<<s,{dialect:l}=i.p.parser;t:for(;0!=(a&t[o]);){let i=t[o+1];for(let s=o+3;s<i;s+=2)if((t[s+1]&a)>0){let i=t[s];if(l.allows(i)&&(-1==e.token.value||e.token.value==i||Fc(i,e.token.value,r,n))){e.acceptToken(i);break}}let s=e.next,h=0,c=t[o+2];if(!(e.next<0&&c>h&&65535==t[i+3*c-3])){for(;h<c;){let r=h+c>>1,n=i+r+(r<<1),a=t[n],l=t[n+1]||65536;if(s<a)c=r;else{if(!(s>=l)){o=t[n+2],e.advance();continue t}h=r+1}}break}o=t[i+3*c-1]}}function Uc(t,e,i){for(let s,r=e;65535!=(s=t[r]);r++)if(s==i)return r-e;return-1}function Fc(t,e,i,s){let r=Uc(i,s,e);return r<0||Uc(i,s,t)<r}const Hc="undefined"!=typeof process&&process.env&&/\bparse\b/.test(process.env.LOG);let Kc=null;function Jc(t,e,i){let s=t.cursor(Qo.IncludeAnonymous);for(s.moveTo(e);;)if(!(i<0?s.childBefore(e):s.childAfter(e)))for(;;){if((i<0?s.to<e:s.from>e)&&!s.type.isError)return i<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(t.length,Math.max(s.from+1,e+25));if(i<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return i<0?0:t.length}}class tu{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?Jc(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?Jc(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(t<this.nextStart)return null;for(;this.fragment&&this.safeTo<=t;)this.nextFragment();if(!this.fragment)return null;for(;;){let e=this.trees.length-1;if(e<0)return this.nextFragment(),null;let i=this.trees[e],s=this.index[e];if(s==i.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let r=i.children[s],n=this.start[e]+i.positions[s];if(n>t)return this.nextStart=n,null;if(r instanceof wo){if(n==t){if(n<this.safeFrom)return null;let t=n+r.length;if(t<=this.safeTo){let e=r.prop(mo.lookAhead);if(!e||t+e<this.fragment.to)return r}}this.index[e]++,n+r.length>=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(n),this.index.push(0))}else this.index[e]++,this.nextStart=n+r.length}}}class eu{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new Dc)}getActions(t){let e=0,i=null,{parser:s}=t.p,{tokenizers:r}=s,n=s.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,a=0;for(let s=0;s<r.length;s++){if(!(1<<s&n))continue;let l=r[s],h=this.tokens[s];if((!i||l.fallback)&&((l.contextual||h.start!=t.pos||h.mask!=n||h.context!=o)&&(this.updateCachedToken(h,l,t),h.mask=n,h.context=o),h.lookAhead>h.end+25&&(a=Math.max(h.lookAhead,a)),0!=h.value)){let s=e;if(h.extended>-1&&(e=this.addActions(t,h.extended,h.end,e)),e=this.addActions(t,h.value,h.end,e),!l.extend&&(i=h,e>s))break}}for(;this.actions.length>e;)this.actions.pop();return a&&t.setLookAhead(a),i||t.pos!=this.stream.end||(i=new Dc,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new Dc,{pos:i,p:s}=t;return e.start=i,e.end=Math.min(i+1,s.stream.end),e.value=i==s.stream.end?s.parser.eofTerm:0,e}updateCachedToken(t,e,i){let s=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(s,t),i),t.value>-1){let{parser:e}=i.p;for(let s=0;s<e.specialized.length;s++)if(e.specialized[s]==t.value){let r=e.specializers[s](this.stream.read(t.start,t.end),i);if(r>=0&&i.p.parser.dialect.allows(r>>1)){1&r?t.extended=r>>1:t.value=r>>1;break}}}else t.value=0,t.end=this.stream.clipPos(s+1)}putAction(t,e,i,s){for(let e=0;e<s;e+=3)if(this.actions[e]==t)return s;return this.actions[s++]=t,this.actions[s++]=e,this.actions[s++]=i,s}addActions(t,e,i,s){let{state:r}=t,{parser:n}=t.p,{data:o}=n;for(let t=0;t<2;t++)for(let a=n.stateSlot(r,t?2:1);;a+=3){if(65535==o[a]){if(1!=o[a+1]){0==s&&2==o[a+1]&&(s=this.putAction(lu(o,a+2),e,i,s));break}a=lu(o,a+2)}o[a]==e&&(s=this.putAction(lu(o,a+1),e,i,s))}return s}}class iu{constructor(t,e,i,s){this.parser=t,this.input=e,this.ranges=s,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 Nc(e,s),this.tokens=new eu(t,this.stream),this.topTerm=t.top[1];let{from:r}=s[0];this.stacks=[Vc.start(this,t.top[0],r)],this.fragments=i.length&&this.stream.end-r>4*t.bufferLength?new tu(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,i=this.stacks,s=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==i.length){let[t]=i;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let n=0;n<i.length;n++){let o=i[n];for(;;){if(this.tokens.mainToken=null,o.pos>s)r.push(o);else{if(this.advanceStack(o,r,i))continue;{t||(t=[],e=[]),t.push(o);let i=this.tokens.getMainToken(o);e.push(i.value,i.end)}}break}}if(!r.length){let e=t&&function(t){let e=null;for(let i of t){let t=i.p.stoppedAt;(i.pos==i.p.stream.end||null!=t&&i.pos>t)&&i.p.parser.stateFlag(i.state,2)&&(!e||e.score<i.score)&&(e=i)}return e}(t);if(e)return Hc&&console.log("Finish with "+this.stackID(e)),this.stackToTree(e);if(this.parser.strict)throw Hc&&t&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+s);this.recovering||(this.recovering=5)}if(this.recovering&&t){let i=null!=this.stoppedAt&&t[0].pos>this.stoppedAt?t[0]:this.runRecovery(t,e,r);if(i)return Hc&&console.log("Force-finish "+this.stackID(i)),this.stackToTree(i.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(r.length>t)for(r.sort((t,e)=>e.score-t.score);r.length>t;)r.pop();r.some(t=>t.reducePos>s)&&this.recovering--}else if(r.length>1){t:for(let t=0;t<r.length-1;t++){let e=r[t];for(let i=t+1;i<r.length;i++){let s=r[i];if(e.sameState(s)||e.buffer.length>500&&s.buffer.length>500){if(!((e.score-s.score||e.buffer.length-s.buffer.length)>0)){r.splice(t--,1);continue t}r.splice(i--,1)}}}r.length>12&&(r.sort((t,e)=>e.score-t.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let t=1;t<r.length;t++)r[t].pos<this.minStackPos&&(this.minStackPos=r[t].pos);return null}stopAt(t){if(null!=this.stoppedAt&&this.stoppedAt<t)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=t}advanceStack(t,e,i){let s=t.pos,{parser:r}=this,n=Hc?this.stackID(t)+" -> ":"";if(null!=this.stoppedAt&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,i=e?t.curContext.hash:0;for(let o=this.fragments.nodeAt(s);o;){let s=this.parser.nodeSet.types[o.type.id]==o.type?r.getGoto(t.state,o.type.id):-1;if(s>-1&&o.length&&(!e||(o.prop(mo.contextHash)||0)==i))return t.useNode(o,s),Hc&&console.log(n+this.stackID(t)+` (via reuse of ${r.getName(o.type.id)})`),!0;if(!(o instanceof wo)||0==o.children.length||o.positions[0]>0)break;let a=o.children[0];if(!(a instanceof wo&&0==o.positions[0]))break;o=a}}let o=r.stateSlot(t.state,4);if(o>0)return t.reduce(o),Hc&&console.log(n+this.stackID(t)+` (via always-reduce ${r.getName(65535&o)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let o=0;o<a.length;){let l=a[o++],h=a[o++],c=a[o++],u=o==a.length||!i,p=u?t:t.split(),d=this.tokens.mainToken;if(p.apply(l,h,d?d.start:p.pos,c),Hc&&console.log(n+this.stackID(p)+` (via ${65536&l?`reduce of ${r.getName(65535&l)}`:"shift"} for ${r.getName(h)} @ ${s}${p==t?"":", split"})`),u)return!0;p.pos>s?e.push(p):i.push(p)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return su(t,e),!0}}runRecovery(t,e,i){let s=null,r=!1;for(let n=0;n<t.length;n++){let o=t[n],a=e[n<<1],l=e[1+(n<<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 t=0;t<10&&c.forceReduce();t++){if(Hc&&console.log(u+this.stackID(c)+" (via force-reduce)"),this.advanceFully(c,i))break;Hc&&(u=this.stackID(c)+" -> ")}for(let t of o.recoverByInsert(a))Hc&&console.log(h+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,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)})`),su(o,i)):(!s||s.score<c.score)&&(s=c)}return s}stackToTree(t){return t.close(),wo.build({buffer:Yc.create(t),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:t.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(t){let e=(Kc||(Kc=new WeakMap)).get(t);return e||Kc.set(t,e=String.fromCodePoint(this.nextStackID++)),e+t}}function su(t,e){for(let i=0;i<e.length;i++){let s=e[i];if(s.pos==t.pos&&s.sameState(t))return void(e[i].score<t.score&&(e[i]=t))}e.push(t)}class ru{constructor(t,e,i){this.source=t,this.flags=e,this.disabled=i}allows(t){return!this.disabled||0==this.disabled[t]}}const nu=t=>t;class ou{constructor(t){this.start=t.start,this.shift=t.shift||nu,this.reduce=t.reduce||nu,this.reuse=t.reuse||nu,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class au extends No{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let i=0;i<t.repeatNodeCount;i++)e.push("");let i=Object.keys(t.topRules).map(e=>t.topRules[e][1]),s=[];for(let t=0;t<e.length;t++)s.push([]);function r(t,e,i){s[t].push([e,e.deserialize(String(i))])}if(t.nodeProps)for(let e of t.nodeProps){let t=e[0];"string"==typeof t&&(t=mo[t]);for(let i=1;i<e.length;){let s=e[i++];if(s>=0)r(s,t,e[i++]);else{let n=e[i+-s];for(let o=-s;o>0;o--)r(e[i++],t,n);i++}}}this.nodeSet=new yo(e.map((e,r)=>vo.define({name:r>=this.minRepeatTerm?void 0:e,id:r,props:s[r],top:i.indexOf(r)>-1,error:0==r,skipped:t.skippedNodes&&t.skippedNodes.indexOf(r)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=po;let n=qc(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t<this.specializerSpecs.length;t++)this.specialized[t]=this.specializerSpecs[t].term;this.specializers=this.specializerSpecs.map(hu),this.states=qc(t.states,Uint32Array),this.data=qc(t.stateData),this.goto=qc(t.goto),this.maxTerm=t.maxTerm,this.tokenizers=t.tokenizers.map(t=>"number"==typeof t?new Wc(n,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let s=new iu(this,t,e,i);for(let r of this.wrappers)s=r(s,t,e,i);return s}getGoto(t,e,i=!1){let s=this.goto;if(e>=s[0])return-1;for(let r=s[e+1];;){let e=s[r++],n=1&e,o=s[r++];if(n&&i)return o;for(let i=r+(e>>1);r<i;r++)if(s[r]==t)return o;if(n)return-1}}hasAction(t,e){let i=this.data;for(let s=0;s<2;s++)for(let r,n=this.stateSlot(t,s?2:1);;n+=3){if(65535==(r=i[n])){if(1!=i[n+1]){if(2==i[n+1])return lu(i,n+2);break}r=i[n=lu(i,n+2)]}if(r==e||0==r)return lu(i,n+1)}return 0}stateSlot(t,e){return this.states[6*t+e]}stateFlag(t,e){return(this.stateSlot(t,0)&e)>0}validAction(t,e){return!!this.allActions(t,t=>t==e||null)}allActions(t,e){let i=this.stateSlot(t,4),s=i?e(i):void 0;for(let i=this.stateSlot(t,1);null==s;i+=3){if(65535==this.data[i]){if(1!=this.data[i+1])break;i=lu(this.data,i+2)}s=e(lu(this.data,i+1))}return s}nextStates(t){let e=[];for(let i=this.stateSlot(t,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 t=this.data[i+1];e.some((e,i)=>1&i&&e==t)||e.push(this.data[i],t)}}return e}configure(t){let e=Object.assign(Object.create(au.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(e=>{let i=t.tokenizers.find(t=>t.from==e);return i?i.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,s)=>{let r=t.specializers.find(t=>t.from==i.external);if(!r)return i;let n=Object.assign(Object.assign({},i),{external:r.to});return e.specializers[s]=hu(n),n})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let s of t.split(" ")){let t=e.indexOf(s);t>=0&&(i[t]=!0)}let s=null;for(let t=0;t<e.length;t++)if(!i[t])for(let i,r=this.dialects[e[t]];65535!=(i=this.data[r++]);)(s||(s=new Uint8Array(this.maxTerm+1)))[i]=1;return new ru(t,i,s)}static deserialize(t){return new au(t)}}function lu(t,e){return t[e]|t[e+1]<<16}function hu(t){if(t.external){let e=t.extend?1:0;return(i,s)=>t.external(i,s)<<1|e}return t.get}const cu={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},uu={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},pu={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 du(t){return 45==t||46==t||58==t||t>=65&&t<=90||95==t||t>=97&&t<=122||t>=161}let Ou=null,fu=null,mu=0;function gu(t,e){let i=t.pos+e;if(mu==i&&fu==t)return Ou;let s=t.peek(e),r="";for(;du(s);)r+=String.fromCharCode(s),s=t.peek(++e);return fu=t,mu=i,Ou=r?r.toLowerCase():s==xu||s==vu?void 0:null}const xu=63,vu=33;function yu(t,e){this.name=t,this.parent=e}const Su=[6,10,7,8,9],bu=new ou({start:null,shift:(t,e,i,s)=>Su.indexOf(e)>-1?new yu(gu(s,1)||"",t):t,reduce:(t,e)=>21==e&&t?t.parent:t,reuse(t,e,i,s){let r=e.type.id;return 6==r||37==r?new yu(gu(s,1)||"",t):t},strict:!1}),Qu=new Bc((t,e)=>{if(60!=t.next)return void(t.next<0&&e.context&&t.acceptToken(58));t.advance();let i=47==t.next;i&&t.advance();let s=gu(t,0);if(void 0===s)return;if(!s)return t.acceptToken(i?15:14);let r=e.context?e.context.name:null;if(i){if(s==r)return t.acceptToken(11);if(r&&uu[r])return t.acceptToken(58,-2);if(e.dialectEnabled(0))return t.acceptToken(12);for(let t=e.context;t;t=t.parent)if(t.name==s)return;t.acceptToken(13)}else{if("script"==s)return t.acceptToken(7);if("style"==s)return t.acceptToken(8);if("textarea"==s)return t.acceptToken(9);if(cu.hasOwnProperty(s))return t.acceptToken(10);r&&pu[r]&&pu[r][s]?t.acceptToken(58,-1):t.acceptToken(6)}},{contextual:!0}),wu=new Bc(t=>{for(let e=0,i=0;;i++){if(t.next<0){i&&t.acceptToken(59);break}if(45==t.next)e++;else{if(62==t.next&&e>=2){i>=3&&t.acceptToken(59,-2);break}e=0}t.advance()}});const ku=new Bc((t,e)=>{if(47==t.next&&62==t.peek(1)){let i=e.dialectEnabled(1)||function(t){for(;t;t=t.parent)if("svg"==t.name||"math"==t.name)return!0;return!1}(e.context);t.acceptToken(i?5:4,2)}else 62==t.next&&t.acceptToken(4,1)});function Pu(t,e,i){let s=2+t.length;return new Bc(r=>{for(let n=0,o=0,a=0;;a++){if(r.next<0){a&&r.acceptToken(e);break}if(0==n&&60==r.next||1==n&&47==r.next||n>=2&&n<s&&r.next==t.charCodeAt(n-2))n++,o++;else{if(n==s&&62==r.next){a>o?r.acceptToken(e,-o):r.acceptToken(i,-(o-2));break}if((10==r.next||13==r.next)&&a){r.acceptToken(e,1);break}n=o=0}r.advance()}})}const $u=Pu("script",55,1),Tu=Pu("style",56,2),Cu=Pu("textarea",57,3),_u=ha({"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}),Au=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&}Ob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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:bu,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,"OpenT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v!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:[$u,Tu,Cu,ku,Qu,wu,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Zu(t,e){let i=Object.create(null);for(let s of t.getChildren(24)){let t=s.getChild(25),r=s.getChild(27)||s.getChild(28);t&&(i[e.read(t.from,t.to)]=r?27==r.type.id?e.read(r.from+1,r.to-1):e.read(r.from,r.to):"")}return i}function Xu(t,e){let i=t.getChild(23);return i?e.read(i.from,i.to):" "}function Eu(t,e,i){let s;for(let r of i)if(!r.attrs||r.attrs(s||(s=Zu(t.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function Ru(t=[],e=[]){let i=[],s=[],r=[],n=[];for(let e of t){("script"==e.tag?i:"style"==e.tag?s:"textarea"==e.tag?r:n).push(e)}let o=e.length?Object.create(null):null;for(let t of e)(o[t.name]||(o[t.name]=[])).push(t);return a=(t,e)=>{let a=t.type.id;if(29==a)return Eu(t,e,i);if(32==a)return Eu(t,e,s);if(35==a)return Eu(t,e,r);if(21==a&&n.length){let i,s=t.node,r=s.firstChild,o=r&&Xu(r,e);if(o)for(let t of n)if(t.tag==o&&(!t.attrs||t.attrs(i||(i=Zu(r,e))))){let e=s.lastChild,i=38==e.type.id?e.from:s.to;if(i>r.to)return{parser:t.parser,overlay:[{from:r.to,to:i}]}}}if(o&&24==a){let i,s=t.node;if(i=s.firstChild){let t=o[e.read(i.from,i.to)];if(t)for(let i of t){if(i.tagName&&i.tagName!=Xu(s.parent,e))continue;let t=s.lastChild;if(27==t.type.id){let e=t.from+1,s=t.lastChild,r=t.to-(s&&s.isError?0:1);if(r>e)return{parser:i.parser,overlay:[{from:e,to:r}],bracketed:!0}}else if(28==t.type.id)return{parser:i.parser,overlay:[{from:t.from,to:t.to}]}}}}return null},(t,e,i,s)=>new Fo(t,a,e,i,s);var a}const Mu=[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 Vu(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function zu(t){return t>=48&&t<=57}function Iu(t){return zu(t)||t>=97&&t<=102||t>=65&&t<=70}const Yu=(t,e,i)=>(s,r)=>{for(let n=!1,o=0,a=0;;a++){let{next:l}=s;if(Vu(l)||45==l||95==l||n&&zu(l))!n&&(45!=l||a>0)&&(n=!0),o===a&&45==l&&o++,s.advance();else{if(92!=l||10==s.peek(1)){n&&s.acceptToken(2==o&&r.canShift(2)?e:40==l?i:t);break}if(s.advance(),Iu(s.next)){do{s.advance()}while(Iu(s.next));32==s.next&&s.advance()}else s.next>-1&&s.advance();n=!0}}},qu=new Bc(Yu(123,2,124)),Du=new Bc(Yu(125,3,4)),Lu=new Bc(t=>{if(Mu.includes(t.peek(-1))){let{next:e}=t;(Vu(e)||95==e||35==e||46==e||42==e||91==e||58==e&&Vu(t.peek(1))||45==e||38==e)&&t.acceptToken(122)}}),Nu=new Bc(t=>{if(!Mu.includes(t.peek(-1))){let{next:e}=t;if(37==e&&(t.advance(),t.acceptToken(1)),Vu(e)){do{t.advance()}while(Vu(t.next)||zu(t.next));t.acceptToken(1)}}}),Wu=ha({"AtKeyword import charset namespace keyframes media supports":_a.definitionKeyword,"from to selector":_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":_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}),ju={__proto__:null,lang:38,"nth-child":38,"nth-last-child":38,"nth-of-type":38,"nth-last-of-type":38,dir:38,"host-context":38,if:84,url:124,"url-prefix":124,domain:124,regexp:124},Bu={__proto__:null,or:98,and:98,not:106,only:106,layer:170},Gu={__proto__:null,selector:112,layer:166},Uu={__proto__:null,"@import":162,"@media":174,"@charset":178,"@namespace":182,"@keyframes":188,"@supports":200,"@scope":204},Fu={__proto__:null,to:207},Hu=au.deserialize({version:14,states:"EbQYQdOOO#qQdOOP#xO`OOOOQP'#Cf'#CfOOQP'#Ce'#CeO#}QdO'#ChO$nQaO'#CcO$xQdO'#CkO%TQdO'#DpO%YQdO'#DrO%_QdO'#DuO%_QdO'#DxOOQP'#FV'#FVO&eQhO'#EhOOQS'#FU'#FUOOQS'#Ek'#EkQYQdOOO&lQdO'#EOO&PQhO'#EUO&lQdO'#EWO'aQdO'#EYO'lQdO'#E]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xR&w&hQ!ygQ#p!`Q$^!xR%f$`R#n!]!U!mac!c!d!e!z#a#c#t#v#x#{$a$k$p$s%h%i%q%u%z&P&d&l&x'QQ!qdR$X!rQ!PVR#TrQ#S!PR$i#TQ!SWR#VsQ!UXR#WtQ{UQ!wgQ#^yQ#o!_Q$U!nQ$[!uQ$_!yQ%e$^Q&Y%aQ&]%fR&v&XSjPzQ!}kQ$c!{R%k$dZiPkz!{$dR$P!gQ%}%SR&z&mR!rdR!teR$Z!tS%a$Y%bR&t&WV%_$Y%b&WQ#PmR$g#PQ`OSkPzU!a`k$dR$d!{Q$p#aY%p$p%u&d&l'QQ%u$sQ&d%qQ&l%zR'Q&xQ#t!cQ#v!dQ#x!eV$}#t#v#xQ%X$RR&T%XQ%y$zS&k%y&yR&y&lQ%r$pR&e%rQ%n$mR&c%nQyUR#]yQ%i$aR&_%iQ!|jS$e!|$fR$f!}Q&n%}R&{&nQ#k!ZR$x#kQ%b$YR&Z%bQ&X%aR&u&X__OP`kz!{$d^UOP`kz!{$dQ!VYQ!WZQ#XuQ#YvQ#ZwQ#[xQ$]!vQ$m#`R&b%mR$q#aQ!gaQ!oc[#q!c!d!e#t#v#xQ$a!zd$o#a$p$s%q%u%z&d&l&x'QQ$r#cQ%R#{S%g$a%iQ%l$kQ&^%hR&p&P]#s!c!d!e#t#v#xW!Z]b!g$PQ!ufQ#f!YQ#l![Q$v#iQ$w#jQ$z#mS%V$R%XR&i%xQ#h!YQ%w$tR&w&hR$|#mR$n#`QlPR#_zQ!_]Q!nbQ$O!gR%U$P",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector 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 , CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName MatchOp 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 AtRule Styles",maxTerm:143,nodeProps:[["isolate",-2,5,36,""],["openedBy",20,"(",28,"[",31,"{"],["closedBy",21,")",29,"]",32,"}"]],propSources:[Wu],skippedNodes:[0,5,106],repeatNodeCount:15,tokenData:"JQ~R!YOX$qX^%i^p$qpq%iqr({rs-ust/itu6Wuv$qvw7Qwx7cxy9Qyz9cz{9h{|:R|}>t}!O?V!O!P?t!P!Q@]!Q![AU![!]BP!]!^B{!^!_C^!_!`DY!`!aDm!a!b$q!b!cEn!c!}$q!}#OG{#O#P$q#P#QH^#Q#R6W#R#o$q#o#pHo#p#q6W#q#rIQ#r#sIc#s#y$q#y#z%i#z$f$q$f$g%i$g#BY$q#BY#BZ%i#BZ$IS$q$IS$I_%i$I_$I|$q$I|$JO%i$JO$JT$q$JT$JU%i$JU$KV$q$KV$KW%i$KW&FU$q&FU&FV%i&FV;'S$q;'S;=`Iz<%lO$q`$tSOy%Qz;'S%Q;'S;=`%c<%lO%Q`%VS!a`Oy%Qz;'S%Q;'S;=`%c<%lO%Q`%fP;=`<%l%Q~%nh#s~OX%QX^'Y^p%Qpq'Yqy%Qz#y%Q#y#z'Y#z$f%Q$f$g'Y$g#BY%Q#BY#BZ'Y#BZ$IS%Q$IS$I_'Y$I_$I|%Q$I|$JO'Y$JO$JT%Q$JT$JU'Y$JU$KV%Q$KV$KW'Y$KW&FU%Q&FU&FV'Y&FV;'S%Q;'S;=`%c<%lO%Q~'ah#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%Q;'S;=`%c<%lO%QjHQSmYOy%Qz;'S%Q;'S;=`%c<%lO%QnHcSl^Oy%Qz;'S%Q;'S;=`%c<%lO%QjHtSpYOy%Qz;'S%Q;'S;=`%c<%lO%QjIVSoYOy%Qz;'S%Q;'S;=`%c<%lO%QfIhU!mQOy%Qz!_%Q!_!`6m!`;'S%Q;'S;=`%c<%lO%Q`I}P;=`<%l$q",tokenizers:[Lu,Nu,qu,Du,1,2,3,4,new jc("m~RRYZ[z{a~~g~aO#v~~dP!P!Qg~lO#w~~",28,129)],topRules:{StyleSheet:[0,6],Styles:[1,105]},dynamicPrecedences:{76:1},specialized:[{term:124,get:t=>ju[t]||-1},{term:125,get:t=>Bu[t]||-1},{term:4,get:t=>Gu[t]||-1},{term:25,get:t=>Uu[t]||-1},{term:123,get:t=>Fu[t]||-1}],tokenPrec:1963});let Ku=null;function Ju(){if(!Ku&&"object"==typeof document&&document.body){let{style:t}=document.body,e=[],i=new Set;for(let s in t)"cssText"!=s&&"cssFloat"!=s&&"string"==typeof t[s]&&(/[A-Z]/.test(s)&&(s=s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())),i.has(s)||(e.push(s),i.add(s)));Ku=e.sort().map(t=>({type:"property",label:t,apply:t+": "}))}return Ku||[]}const tp=["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(t=>({type:"class",label:t})),ep=["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(t=>({type:"keyword",label:t})).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(t=>({type:"constant",label:t}))),ip=["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(t=>({type:"type",label:t})),sp=["@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(t=>({type:"keyword",label:t})),rp=/^(\w[\w-]*|-\w[\w-]*|)$/,np=/^-(-[\w-]*)?$/;const op=new Do,ap=["Declaration"];function lp(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function hp(t,e,i){if(e.to-e.from>4096){let s=op.get(e);if(s)return s;let r=[],n=new Set,o=e.cursor(Qo.IncludeAnonymous);if(o.firstChild())do{for(let e of hp(t,o.node,i))n.has(e.label)||(n.add(e.label),r.push(e))}while(o.nextSibling());return op.set(e,r),r}{let s=[],r=new Set;return e.cursor().iterate(e=>{var n;if(i(e)&&e.matchContext(ap)&&":"==(null===(n=e.node.nextSibling)||void 0===n?void 0:n.name)){let i=t.sliceString(e.from,e.to);r.has(i)||(r.add(i),s.push({label:i,type:"variable"}))}}),s}}const cp=t=>e=>{let{state:i,pos:s}=e,r=Ia(i).resolveInner(s,-1),n=r.type.isError&&r.from==r.to-1&&"-"==i.doc.sliceString(r.from,r.to);if("PropertyName"==r.name||(n||"TagName"==r.name)&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:Ju(),validFor:rp};if("ValueName"==r.name)return{from:r.from,options:ep,validFor:rp};if("PseudoClassName"==r.name)return{from:r.from,options:tp,validFor:rp};if(t(r)||(e.explicit||n)&&function(t,e){var i;if(("("==t.name||t.type.isError)&&(t=t.parent||t),"ArgList"!=t.name)return!1;let s=null===(i=t.parent)||void 0===i?void 0:i.firstChild;return"Callee"==(null==s?void 0:s.name)&&"var"==e.sliceString(s.from,s.to)}(r,i.doc))return{from:t(r)||n?r.from:s,options:hp(i.doc,lp(r),t),validFor:np};if("TagName"==r.name){for(let{parent:t}=r;t;t=t.parent)if("Block"==t.name)return{from:r.from,options:Ju(),validFor:rp};return{from:r.from,options:ip,validFor:rp}}if("AtKeyword"==r.name)return{from:r.from,options:sp,validFor:rp};if(!e.explicit)return null;let o=r.resolve(s),a=o.childBefore(s);return a&&":"==a.name&&"PseudoClassSelector"==o.name?{from:s,options:tp,validFor:rp}:a&&":"==a.name&&"Declaration"==o.name||"ArgList"==o.name?{from:s,options:ep,validFor:rp}:"Block"==o.name||"Styles"==o.name?{from:s,options:Ju(),validFor:rp}:null},up=cp(t=>"VariableName"==t.name),pp=za.define({name:"css",parser:Hu.configure({props:[il.add({Declaration:cl()}),ul.add({"Block KeyframeList":pl})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});const dp=[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],Op=new ou({start:!1,shift:(t,e)=>5==e||6==e||320==e?t:321==e,strict:!1}),fp=new Bc((t,e)=>{let{next:i}=t;(125==i||-1==i||e.context)&&t.acceptToken(318)},{contextual:!0,fallback:!0}),mp=new Bc((t,e)=>{let i,{next:s}=t;dp.indexOf(s)>-1||(47!=s||47!=(i=t.peek(1))&&42!=i)&&(125==s||59==s||-1==s||e.context||t.acceptToken(316))},{contextual:!0}),gp=new Bc((t,e)=>{91!=t.next||e.context||t.acceptToken(317)},{contextual:!0}),xp=new Bc((t,e)=>{let{next:i}=t;if(43==i||45==i){if(t.advance(),i==t.next){t.advance();let i=!e.context&&e.canShift(1);t.acceptToken(i?1:2)}}else 63==i&&46==t.peek(1)&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(3))},{contextual:!0});function vp(t,e){return t>=65&&t<=90||t>=97&&t<=122||95==t||t>=192||!e&&t>=48&&t<=57}const yp=new Bc((t,e)=>{if(60!=t.next||!e.dialectEnabled(0))return;if(t.advance(),47==t.next)return;let i=0;for(;dp.indexOf(t.next)>-1;)t.advance(),i++;if(vp(t.next,!0)){for(t.advance(),i++;vp(t.next,!1);)t.advance(),i++;for(;dp.indexOf(t.next)>-1;)t.advance(),i++;if(44==t.next)return;for(let e=0;;e++){if(7==e){if(!vp(t.next,!0))return;break}if(t.next!="extends".charCodeAt(e))break;t.advance(),i++}}t.acceptToken(4,-i)}),Sp=ha({"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)}),bp={__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},Qp={__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},wp={__proto__:null,"<":193},kp=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'#I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[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:Op,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:[Sp],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;'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izers:[mp,gp,xp,yp,2,3,4,5,6,7,8,9,10,11,12,13,14,fp,new jc("$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 jc("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:t=>bp[t]||-1},{term:343,get:t=>Qp[t]||-1},{term:95,get:t=>wp[t]||-1}],tokenPrec:15201}),Pp=[Xc("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),Xc("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),Xc("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Xc("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Xc("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),Xc("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),Xc("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),Xc("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),Xc("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),Xc('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Xc('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],$p=Pp.concat([Xc("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Xc("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Xc("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Tp=new Do,Cp=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function _p(t){return(e,i)=>{let s=e.node.getChild("VariableDefinition");return s&&i(s,t),!0}}const Ap=["FunctionDeclaration"],Zp={FunctionDeclaration:_p("function"),ClassDeclaration:_p("class"),ClassExpression:()=>!0,EnumDeclaration:_p("constant"),TypeAliasDeclaration:_p("type"),NamespaceDeclaration:_p("namespace"),VariableDefinition(t,e){t.matchContext(Ap)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Xp(t,e){let i=Tp.get(e);if(i)return i;let s=[],r=!0;function n(e,i){let r=t.sliceString(e.from,e.to);s.push({label:r,type:i})}return e.cursor(Qo.IncludeAnonymous).iterate(e=>{if(r)r=!1;else if(e.name){let t=Zp[e.name];if(t&&t(e,n)||Cp.has(e.name))return!1}else if(e.to-e.from>8192){for(let i of Xp(t,e.node))s.push(i);return!1}}),Tp.set(e,s),s}const Ep=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Rp=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Mp(t){let e=Ia(t.state).resolveInner(t.pos,-1);if(Rp.indexOf(e.name)>-1)return null;let i="VariableName"==e.name||e.to-e.from<20&&Ep.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let s=[];for(let i=e;i;i=i.parent)Cp.has(i.name)&&(s=s.concat(Xp(t.state.doc,i)));return{options:s,from:i?e.from:t.pos,validFor:Ep}}const Vp=za.define({name:"javascript",parser:kp.configure({props:[il.add({IfStatement:cl({except:/^\s*({|else\b)/}),TryStatement:cl({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:t=>t.baseIndent,SwitchBody:t=>{let e=t.textAfter,i=/^\s*\}/.test(e),s=/^\s*(case|default)\b/.test(e);return t.baseIndent+(i?0:s?1:2)*t.unit},Block:ll({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":cl({except:/^\s*{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag":t=>t.column(t.node.from)+t.unit}),ul.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":pl,BlockComment:t=>({from:t.from+2,to:t.to-2}),JSXElement(t){let e=t.firstChild;if(!e||"JSXSelfClosingTag"==e.name)return null;let i=t.lastChild;return{from:e.to,to:i.type.isError?t.to:i.from}},"JSXSelfClosingTag JSXOpenTag"(t){var e;let i=null===(e=t.firstChild)||void 0===e?void 0:e.nextSibling,s=t.lastChild;return!i||i.type.isError?null:{from:i.to,to:s.type.isError?t.to:s.from}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),zp={test:t=>/^JSX/.test(t.name),facet:Ea({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Ip=Vp.configure({dialect:"ts"},"typescript"),Yp=Vp.configure({dialect:"jsx",props:[Ra.add(t=>t.isTop?[zp]:void 0)]}),qp=Vp.configure({dialect:"jsx ts",props:[Ra.add(t=>t.isTop?[zp]:void 0)]},"typescript");let Dp=t=>({label:t,type:"keyword"});const Lp="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(Dp),Np=Lp.concat(["declare","implements","private","protected","public"].map(Dp));function Wp(t={}){let e=t.jsx?t.typescript?qp:Yp:t.typescript?Ip:Vp,i=t.typescript?$p.concat(Np):Pp.concat(Lp);return new Ua(e,[Vp.data.of({autocomplete:(s=Rp,r=fc(i),t=>{for(let e=Ia(t.state).resolveInner(t.pos,-1);e;e=e.parent){if(s.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return r(t)})}),Vp.data.of({autocomplete:Mp}),t.jsx?Gp:[]]);var s,r}function jp(t,e,i=t.length){for(let s=null==e?void 0:e.firstChild;s;s=s.nextSibling)if("JSXIdentifier"==s.name||"JSXBuiltin"==s.name||"JSXNamespacedName"==s.name||"JSXMemberExpression"==s.name)return t.sliceString(s.from,Math.min(s.to,i));return""}const Bp="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),Gp=hn.inputHandler.of((t,e,i,s,r)=>{if((Bp?t.composing:t.compositionStarted)||t.state.readOnly||e!=i||">"!=s&&"/"!=s||!Vp.isActiveAt(t.state,e,-1))return!1;let n=r(),{state:o}=n,a=o.changeByRange(t=>{var e;let i,{head:r}=t,n=Ia(o).resolveInner(r-1,-1);if("JSXStartTag"==n.name&&(n=n.parent),o.doc.sliceString(r-1,r)!=s||"JSXAttributeValue"==n.name&&n.to>r);else{if(">"==s&&"JSXFragmentTag"==n.name)return{range:t,changes:{from:r,insert:"</>"}};if("/"==s&&"JSXStartCloseTag"==n.name){let t=n.parent,s=t.parent;if(s&&t.from==r-2&&((i=jp(o.doc,s.firstChild,r))||"JSXFragmentTag"==(null===(e=s.firstChild)||void 0===e?void 0:e.name))){let t=`${i}>`;return{range:E.cursor(r+t.length,-1),changes:{from:r,insert:t}}}}else if(">"==s){let e=function(t){for(;;){if("JSXOpenTag"==t.name||"JSXSelfClosingTag"==t.name||"JSXFragmentTag"==t.name)return t;if("JSXEscape"==t.name||!t.parent)return null;t=t.parent}}(n);if(e&&"JSXOpenTag"==e.name&&!/^\/?>|^<\//.test(o.doc.sliceString(r,r+2))&&(i=jp(o.doc,e,r)))return{range:t,changes:{from:r,insert:`</${i}>`}}}}return{range:t}});return!a.changes.empty&&(t.dispatch([n,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Up=["_blank","_self","_top","_parent"],Fp=["ascii","utf-8","utf-16","latin1","latin1"],Hp=["get","post","put","delete"],Kp=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Jp=["true","false"],td={},ed={a:{attrs:{href:null,ping:null,type:null,media:null,target:Up,hreflang:null}},abbr:td,address:td,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:td,aside:td,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:td,base:{attrs:{href:null,target:Up}},bdi:td,bdo:td,blockquote:{attrs:{cite:null}},body:td,br:td,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Kp,formmethod:Hp,formnovalidate:["novalidate"],formtarget:Up,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:td,center:td,cite:td,code:td,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:td,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:td,div:td,dl:td,dt:td,em:td,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:td,figure:td,footer:td,form:{attrs:{action:null,name:null,"accept-charset":Fp,autocomplete:["on","off"],enctype:Kp,method:Hp,novalidate:["novalidate"],target:Up}},h1:td,h2:td,h3:td,h4:td,h5:td,h6:td,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:td,hgroup:td,hr:td,html:{attrs:{manifest:null}},i:td,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:Kp,formmethod:Hp,formnovalidate:["novalidate"],formtarget:Up,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:td,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:td,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:td,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Fp,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:td,noscript:td,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:td,param:{attrs:{name:null,value:null}},pre:td,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:td,rt:td,ruby:td,samp:td,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Fp}},section:td,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:td,source:{attrs:{src:null,type:null,media:null}},span:td,strong:td,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:td,summary:td,sup:td,table:td,tbody:td,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:td,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:td,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:td,time:{attrs:{datetime:null}},title:td,tr:td,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:td,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:td},id={accesskey:null,class:null,contenteditable:Jp,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:Jp,autocorrect:Jp,autocapitalize:Jp,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":Jp,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Jp,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Jp,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Jp,"aria-hidden":Jp,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Jp,"aria-multiselectable":Jp,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Jp,"aria-relevant":null,"aria-required":Jp,"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},sd="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(t=>"on"+t);for(let t of sd)id[t]=null;class rd{constructor(t,e){this.tags={...ed,...t},this.globalAttrs={...id,...e},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function nd(t,e,i=t.length){if(!e)return"";let s=e.firstChild,r=s&&s.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,i)):""}function od(t,e=!1){for(;t;t=t.parent)if("Element"==t.name){if(!e)return t;e=!1}return null}function ad(t,e,i){let s=i.tags[nd(t,od(e))];return(null==s?void 0:s.children)||i.allTags}function ld(t,e){let i=[];for(let s=od(e);s&&!s.type.isTop;s=od(s.parent)){let r=nd(t,s);if(r&&"CloseTag"==s.lastChild.name)break;r&&i.indexOf(r)<0&&("EndTag"==e.name||e.from>=s.firstChild.to)&&i.push(r)}return i}rd.default=new rd;const hd=/^[:\-\.\w\u00b7-\uffff]*$/;function cd(t,e,i,s,r){let n=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",o=od(i,"StartTag"==i.name||"TagName"==i.name);return{from:s,to:r,options:ad(t.doc,o,e).map(t=>({label:t,type:"type"})).concat(ld(t.doc,i).map((t,e)=>({label:"/"+t,apply:"/"+t+n,type:"type",boost:99-e}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function ud(t,e,i,s){let r=/\s*>/.test(t.sliceDoc(s,s+5))?"":">";return{from:i,to:s,options:ld(t.doc,e).map((t,e)=>({label:t,apply:t+r,type:"type",boost:99-e})),validFor:hd}}function pd(t,e){let{state:i,pos:s}=e,r=Ia(i).resolveInner(s,-1),n=r.resolve(s);for(let t,e=s;n==r&&(t=r.childBefore(e));){let i=t.lastChild;if(!i||!i.type.isError||i.from<i.to)break;n=r=t,e=i.from}return"TagName"==r.name?r.parent&&/CloseTag$/.test(r.parent.name)?ud(i,r,r.from,s):cd(i,t,r,r.from,s):"StartTag"==r.name||"IncompleteTag"==r.name?cd(i,t,r,s,s):"StartCloseTag"==r.name||"IncompleteCloseTag"==r.name?ud(i,r,s,s):"OpenTag"==r.name||"SelfClosingTag"==r.name||"AttributeName"==r.name?function(t,e,i,s,r){let n=od(i),o=n?e.tags[nd(t.doc,n)]:null,a=o&&o.attrs?Object.keys(o.attrs):[];return{from:s,to:r,options:(o&&!1===o.globalAttrs?a:a.length?a.concat(e.globalAttrNames):e.globalAttrNames).map(t=>({label:t,type:"property"})),validFor:hd}}(i,t,r,"AttributeName"==r.name?r.from:s,s):"Is"==r.name||"AttributeValue"==r.name||"UnquotedAttributeValue"==r.name?function(t,e,i,s,r){var n;let o,a=null===(n=i.parent)||void 0===n?void 0:n.getChild("AttributeName"),l=[];if(a){let n=t.sliceDoc(a.from,a.to),h=e.globalAttrs[n];if(!h){let s=od(i),r=s?e.tags[nd(t.doc,s)]:null;h=(null==r?void 0:r.attrs)&&r.attrs[n]}if(h){let e=t.sliceDoc(s,r).toLowerCase(),i='"',n='"';/^['"]/.test(e)?(o='"'==e[0]?/^[^"]*$/:/^[^']*$/,i="",n=t.sliceDoc(r,r+1)==e[0]?"":e[0],e=e.slice(1),s++):o=/^[^\s<>='"]*$/;for(let t of h)l.push({label:t,apply:i+t+n,type:"constant"})}}return{from:s,to:r,options:l,validFor:o}}(i,t,r,"Is"==r.name?s:r.from,s):!e.explicit||"Element"!=n.name&&"Text"!=n.name&&"Document"!=n.name?null:function(t,e,i,s){let r=[],n=0;for(let s of ad(t.doc,i,e))r.push({label:"<"+s,type:"type"});for(let e of ld(t.doc,i))r.push({label:"</"+e+">",type:"type",boost:99-n++});return{from:s,to:s,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(i,t,r,s)}function dd(t){let{extraTags:e,extraGlobalAttributes:i}=t,s=i||e?new rd(e,i):rd.default;return t=>pd(s,t)}const Od=Vp.parser.configure({top:"SingleExpression"}),fd=[{tag:"script",attrs:t=>"text/typescript"==t.type||"ts"==t.lang,parser:Ip.parser},{tag:"script",attrs:t=>"text/babel"==t.type||"text/jsx"==t.type,parser:Yp.parser},{tag:"script",attrs:t=>"text/typescript-jsx"==t.type,parser:qp.parser},{tag:"script",attrs:t=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type),parser:Od},{tag:"script",attrs:t=>!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type),parser:Vp.parser},{tag:"style",attrs:t=>(!t.lang||"css"==t.lang)&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type)),parser:pp.parser}],md=[{name:"style",parser:pp.parser.configure({top:"Styles"})}].concat(sd.map(t=>({name:t,parser:Vp.parser}))),gd=za.define({name:"html",parser:Au.configure({props:[il.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag":t=>t.column(t.node.from)+t.unit,Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e,i=null;for(let e=t.node;;){let t=e.lastChild;if(!t||"Element"!=t.name||t.to!=e.to)break;i=e=t}return i&&(!(e=i.lastChild)||"CloseTag"!=e.name&&"SelfClosingTag"!=e.name)?t.lineIndent(i.from)+t.unit:null}}),ul.add({Element(t){let e=t.firstChild,i=t.lastChild;return e&&"OpenTag"==e.name?{from:e.to,to:"CloseTag"==i.name?i.from:t.to}:null}}),_l.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),xd=gd.configure({wrap:Ru(fd,md)});function vd(t={}){let e,i="";!1===t.matchClosingTags&&(i="noMatch"),!0===t.selfClosingTags&&(i=(i?i+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(e=Ru((t.nestedLanguages||[]).concat(fd),(t.nestedAttributes||[]).concat(md)));let s=e?gd.configure({wrap:e,dialect:i}):i?xd.configure({dialect:i}):xd;return new Ua(s,[xd.data.of({autocomplete:dd(t)}),!1!==t.autoCloseTags?Sd:[],Wp().support,new Ua(pp,pp.data.of({autocomplete:up})).support])}const yd=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Sd=hn.inputHandler.of((t,e,i,s,r)=>{if(t.composing||t.state.readOnly||e!=i||">"!=s&&"/"!=s||!xd.isActiveAt(t.state,e,-1))return!1;let n=r(),{state:o}=n,a=o.changeByRange(t=>{var e,i,r;let n,a=o.doc.sliceString(t.from-1,t.to)==s,{head:l}=t,h=Ia(o).resolveInner(l,-1);if(a&&">"==s&&"EndTag"==h.name){let s=h.parent;if("CloseTag"!=(null===(i=null===(e=s.parent)||void 0===e?void 0:e.lastChild)||void 0===i?void 0:i.name)&&(n=nd(o.doc,s.parent,l))&&!yd.has(n)){return{range:t,changes:{from:l,to:l+(">"===o.doc.sliceString(l,l+1)?1:0),insert:`</${n}>`}}}}else if(a&&"/"==s&&"IncompleteCloseTag"==h.name){let t=h.parent;if(h.from==l-2&&"CloseTag"!=(null===(r=t.lastChild)||void 0===r?void 0:r.name)&&(n=nd(o.doc,t,l))&&!yd.has(n)){let t=l+(">"===o.doc.sliceString(l,l+1)?1:0),e=`${n}>`;return{range:E.cursor(l+e.length,-1),changes:{from:l,to:t,insert:e}}}}return{range:t}});return!a.changes.empty&&(t.dispatch([n,o.update(a,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});let bd=new K;function Qd(t,e,i=[]){return kt.create({doc:t,extensions:[i,bd.of("html"==e?vd():Wp()),Mc,gl(Aa),Cl(),co(),hn.contentAttributes.of({"aria-label":"Code editor"})]})}var wd=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],kd=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Pd="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",$d={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},Td="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",Cd={5:Td,"5module":Td+" export import",6:Td+" const class extends export import super"},_d=/^in(stanceof)?$/,Ad=new RegExp("["+Pd+"]"),Zd=new RegExp("["+Pd+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function Xd(t,e){for(var i=65536,s=0;s<e.length;s+=2){if((i+=e[s])>t)return!1;if((i+=e[s+1])>=t)return!0}return!1}function Ed(t,e){return t<65?36===t:t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Ad.test(String.fromCharCode(t)):!1!==e&&Xd(t,kd)))}function Rd(t,e){return t<48?36===t:t<58||!(t<65)&&(t<91||(t<97?95===t:t<123||(t<=65535?t>=170&&Zd.test(String.fromCharCode(t)):!1!==e&&(Xd(t,kd)||Xd(t,wd)))))}var Md=function(t,e){void 0===e&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};function Vd(t,e){return new Md(t,{beforeExpr:!0,binop:e})}var zd={beforeExpr:!0},Id={startsExpr:!0},Yd={};function qd(t,e){return void 0===e&&(e={}),e.keyword=t,Yd[t]=new Md(t,e)}var Dd={num:new Md("num",Id),regexp:new Md("regexp",Id),string:new Md("string",Id),name:new Md("name",Id),privateId:new Md("privateId",Id),eof:new Md("eof"),bracketL:new Md("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new Md("]"),braceL:new Md("{",{beforeExpr:!0,startsExpr:!0}),braceR:new Md("}"),parenL:new Md("(",{beforeExpr:!0,startsExpr:!0}),parenR:new Md(")"),comma:new Md(",",zd),semi:new Md(";",zd),colon:new Md(":",zd),dot:new Md("."),question:new Md("?",zd),questionDot:new Md("?."),arrow:new Md("=>",zd),template:new Md("template"),invalidTemplate:new Md("invalidTemplate"),ellipsis:new Md("...",zd),backQuote:new Md("`",Id),dollarBraceL:new Md("${",{beforeExpr:!0,startsExpr:!0}),eq:new Md("=",{beforeExpr:!0,isAssign:!0}),assign:new Md("_=",{beforeExpr:!0,isAssign:!0}),incDec:new Md("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new Md("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Vd("||",1),logicalAND:Vd("&&",2),bitwiseOR:Vd("|",3),bitwiseXOR:Vd("^",4),bitwiseAND:Vd("&",5),equality:Vd("==/!=/===/!==",6),relational:Vd("</>/<=/>=",7),bitShift:Vd("<</>>/>>>",8),plusMin:new Md("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Vd("%",10),star:Vd("*",10),slash:Vd("/",10),starstar:new Md("**",{beforeExpr:!0}),coalesce:Vd("??",1),_break:qd("break"),_case:qd("case",zd),_catch:qd("catch"),_continue:qd("continue"),_debugger:qd("debugger"),_default:qd("default",zd),_do:qd("do",{isLoop:!0,beforeExpr:!0}),_else:qd("else",zd),_finally:qd("finally"),_for:qd("for",{isLoop:!0}),_function:qd("function",Id),_if:qd("if"),_return:qd("return",zd),_switch:qd("switch"),_throw:qd("throw",zd),_try:qd("try"),_var:qd("var"),_const:qd("const"),_while:qd("while",{isLoop:!0}),_with:qd("with"),_new:qd("new",{beforeExpr:!0,startsExpr:!0}),_this:qd("this",Id),_super:qd("super",Id),_class:qd("class",Id),_extends:qd("extends",zd),_export:qd("export"),_import:qd("import",Id),_null:qd("null",Id),_true:qd("true",Id),_false:qd("false",Id),_in:qd("in",{beforeExpr:!0,binop:7}),_instanceof:qd("instanceof",{beforeExpr:!0,binop:7}),_typeof:qd("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:qd("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:qd("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Ld=/\r\n?|\n|\u2028|\u2029/,Nd=new RegExp(Ld.source,"g");function Wd(t){return 10===t||13===t||8232===t||8233===t}function jd(t,e,i){void 0===i&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(Wd(r))return s<i-1&&13===r&&10===t.charCodeAt(s+1)?s+2:s+1}return-1}var Bd=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Gd=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ud=Object.prototype,Fd=Ud.hasOwnProperty,Hd=Ud.toString,Kd=Object.hasOwn||function(t,e){return Fd.call(t,e)},Jd=Array.isArray||function(t){return"[object Array]"===Hd.call(t)},tO=Object.create(null);function eO(t){return tO[t]||(tO[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function iO(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t)))}var sO=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,rO=function(t,e){this.line=t,this.column=e};rO.prototype.offset=function(t){return new rO(this.line,this.column+t)};var nO=function(t,e,i){this.start=e,this.end=i,null!==t.sourceFile&&(this.source=t.sourceFile)};function oO(t,e){for(var i=1,s=0;;){var r=jd(t,s,e);if(r<0)return new rO(i,e-s);++i,s=r}}var aO={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},lO=!1;function hO(t){var e={};for(var i in aO)e[i]=t&&Kd(t,i)?t[i]:aO[i];if("latest"===e.ecmaVersion?e.ecmaVersion=1e8:null==e.ecmaVersion?(!lO&&"object"==typeof console&&console.warn&&(lO=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),null==e.allowReserved&&(e.allowReserved=e.ecmaVersion<5),t&&null!=t.allowHashBang||(e.allowHashBang=e.ecmaVersion>=14),Jd(e.onToken)){var s=e.onToken;e.onToken=function(t){return s.push(t)}}if(Jd(e.onComment)&&(e.onComment=function(t,e){return function(i,s,r,n,o,a){var l={type:i?"Block":"Line",value:s,start:r,end:n};t.locations&&(l.loc=new nO(this,o,a)),t.ranges&&(l.range=[r,n]),e.push(l)}}(e,e.onComment)),"commonjs"===e.sourceType&&e.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return e}var cO=256,uO=259;function pO(t,e){return 2|(t?4:0)|(e?8:0)}var dO=function(t,e,i){this.options=t=hO(t),this.sourceFile=t.sourceFile,this.keywords=eO(Cd[t.ecmaVersion>=6?6:"module"===t.sourceType?"5module":5]);var s="";!0!==t.allowReserved&&(s=$d[t.ecmaVersion>=6?6:5===t.ecmaVersion?5:3],"module"===t.sourceType&&(s+=" await")),this.reservedWords=eO(s);var r=(s?s+" ":"")+$d.strict;this.reservedWordsStrict=eO(r),this.reservedWordsStrictBind=eO(r+" "+$d.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf("\n",i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Ld).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=Dd.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule="module"===t.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&t.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},OO={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};dO.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},OO.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},OO.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},OO.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},OO.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e)return!1;if(2&e)return(4&e)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},OO.allowReturn.get=function(){return!!this.inFunction||!!(this.options.allowReturnOutsideFunction&&1&this.currentVarScope().flags)},OO.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},OO.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},OO.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},OO.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t].flags;if(768&e||2&e&&!(16&e))return!0}return!1},OO.allowUsing.get=function(){var t=this.currentScope().flags;return!(1024&t)&&!(!this.inModule&&1&t)},OO.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&cO)>0},dO.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i},dO.parse=function(t,e){return new this(e,t).parse()},dO.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()},dO.tokenizer=function(t,e){return new this(e,t)},Object.defineProperties(dO.prototype,OO);var fO=dO.prototype,mO=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;fO.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){Gd.lastIndex=t,t+=Gd.exec(this.input)[0].length;var e=mO.exec(this.input.slice(t));if(!e)return!1;if("use strict"===(e[1]||e[2])){Gd.lastIndex=t+e[0].length;var i=Gd.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return";"===r||"}"===r||Ld.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||"!"===r&&"="===this.input.charAt(s+1))}t+=e[0].length,Gd.lastIndex=t,t+=Gd.exec(this.input)[0].length,";"===this.input[t]&&t++}},fO.eat=function(t){return this.type===t&&(this.next(),!0)},fO.isContextual=function(t){return this.type===Dd.name&&this.value===t&&!this.containsEsc},fO.eatContextual=function(t){return!!this.isContextual(t)&&(this.next(),!0)},fO.expectContextual=function(t){this.eatContextual(t)||this.unexpected()},fO.canInsertSemicolon=function(){return this.type===Dd.eof||this.type===Dd.braceR||Ld.test(this.input.slice(this.lastTokEnd,this.start))},fO.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},fO.semicolon=function(){this.eat(Dd.semi)||this.insertSemicolon()||this.unexpected()},fO.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0},fO.expect=function(t){this.eat(t)||this.unexpected()},fO.unexpected=function(t){this.raise(null!=t?t:this.start,"Unexpected token")};var gO=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};fO.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}},fO.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},fO.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},fO.isSimpleAssignTarget=function(t){return"ParenthesizedExpression"===t.type?this.isSimpleAssignTarget(t.expression):"Identifier"===t.type||"MemberExpression"===t.type};var xO=dO.prototype;xO.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==Dd.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(t,"Program")};var vO={kind:"loop"},yO={kind:"switch"};xO.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Gd.lastIndex=this.pos;var e=Gd.exec(this.input),i=this.pos+e[0].length,s=this.fullCharCodeAt(i);if(91===s||92===s)return!0;if(t)return!1;if(123===s)return!0;if(Ed(s)){var r=i;do{i+=s<=65535?1:2}while(Rd(s=this.fullCharCodeAt(i)));if(92===s)return!0;var n=this.input.slice(r,i);if(!_d.test(n))return!0}return!1},xO.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Gd.lastIndex=this.pos;var t,e=Gd.exec(this.input),i=this.pos+e[0].length;return!(Ld.test(this.input.slice(this.pos,i))||"function"!==this.input.slice(i,i+8)||i+8!==this.input.length&&(Rd(t=this.fullCharCodeAt(i+8))||92===t))},xO.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;Gd.lastIndex=this.pos;var i=Gd.exec(this.input),s=this.pos+i[0].length;if(Ld.test(this.input.slice(this.pos,s)))return!1;if(t){var r,n=s+5;if("using"!==this.input.slice(s,n)||n===this.input.length||Rd(r=this.fullCharCodeAt(n))||92===r)return!1;Gd.lastIndex=n;var o=Gd.exec(this.input);if(s=n+o[0].length,o&&Ld.test(this.input.slice(n,s)))return!1}var a=this.fullCharCodeAt(s);if(!Ed(a)&&92!==a)return!1;var l=s;do{s+=a<=65535?1:2}while(Rd(a=this.fullCharCodeAt(s)));if(92===a)return!0;var h=this.input.slice(l,s);return!(_d.test(h)||e&&"of"===h)},xO.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)},xO.isUsing=function(t){return this.isUsingKeyword(!1,t)},xO.parseStatement=function(t,e,i){var s,r=this.type,n=this.startNode();switch(this.isLet(t)&&(r=Dd._var,s="let"),r){case Dd._break:case Dd._continue:return this.parseBreakContinueStatement(n,r.keyword);case Dd._debugger:return this.parseDebuggerStatement(n);case Dd._do:return this.parseDoStatement(n);case Dd._for:return this.parseForStatement(n);case Dd._function:return t&&(this.strict||"if"!==t&&"label"!==t)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(n,!1,!t);case Dd._class:return t&&this.unexpected(),this.parseClass(n,!0);case Dd._if:return this.parseIfStatement(n);case Dd._return:return this.parseReturnStatement(n);case Dd._switch:return this.parseSwitchStatement(n);case Dd._throw:return this.parseThrowStatement(n);case Dd._try:return this.parseTryStatement(n);case Dd._const:case Dd._var:return s=s||this.value,t&&"var"!==s&&this.unexpected(),this.parseVarStatement(n,s);case Dd._while:return this.parseWhileStatement(n);case Dd._with:return this.parseWithStatement(n);case Dd.braceL:return this.parseBlock(!0,n);case Dd.semi:return this.parseEmptyStatement(n);case Dd._export:case Dd._import:if(this.options.ecmaVersion>10&&r===Dd._import){Gd.lastIndex=this.pos;var o=Gd.exec(this.input),a=this.pos+o[0].length,l=this.input.charCodeAt(a);if(40===l||46===l)return this.parseExpressionStatement(n,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),r===Dd._import?this.parseImport(n):this.parseExport(n,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(n,!0,!t);var h=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(h)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===h&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(n,!1,h),this.semicolon(),this.finishNode(n,"VariableDeclaration");var c=this.value,u=this.parseExpression();return r===Dd.name&&"Identifier"===u.type&&this.eat(Dd.colon)?this.parseLabeledStatement(n,c,u,t):this.parseExpressionStatement(n,u)}},xO.parseBreakContinueStatement=function(t,e){var i="break"===e;this.next(),this.eat(Dd.semi)||this.insertSemicolon()?t.label=null:this.type!==Dd.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if(null==t.label||r.name===t.label.name){if(null!=r.kind&&(i||"loop"===r.kind))break;if(t.label&&i)break}}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")},xO.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")},xO.parseDoStatement=function(t){return this.next(),this.labels.push(vO),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(Dd._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(Dd.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")},xO.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(vO),this.enterScope(0),this.expect(Dd.parenL),this.type===Dd.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===Dd._var||this.type===Dd._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,e)}var n=this.isContextual("let"),o=!1,a=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(a){var l=this.startNode();return this.next(),"await using"===a&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,a),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(t,l,e)}var h=this.containsEsc,c=new gO,u=this.start,p=e>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===Dd._in||(o=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===Dd._in&&this.unexpected(e),t.await=!0):o&&this.options.ecmaVersion>=8&&(p.start!==u||h||"Identifier"!==p.type||"async"!==p.name?this.options.ecmaVersion>=9&&(t.await=!1):this.unexpected()),n&&o&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,c),this.checkLValPattern(p),this.parseForIn(t,p)):(this.checkExpressionErrors(c,!0),e>-1&&this.unexpected(e),this.parseFor(t,p))},xO.parseForAfterInit=function(t,e,i){return(this.type===Dd._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===e.declarations.length?(this.options.ecmaVersion>=9&&(this.type===Dd._in?i>-1&&this.unexpected(i):t.await=i>-1),this.parseForIn(t,e)):(i>-1&&this.unexpected(i),this.parseFor(t,e))},xO.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,bO|(i?0:QO),!1,e)},xO.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(Dd._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")},xO.parseReturnStatement=function(t){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(Dd.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")},xO.parseSwitchStatement=function(t){var e;this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(Dd.braceL),this.labels.push(yO),this.enterScope(1024);for(var i=!1;this.type!==Dd.braceR;)if(this.type===Dd._case||this.type===Dd._default){var s=this.type===Dd._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(Dd.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")},xO.parseThrowStatement=function(t){return this.next(),Ld.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};var SO=[];xO.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e="Identifier"===t.type;return this.enterScope(e?32:0),this.checkLValPattern(t,e?4:2),this.expect(Dd.parenR),t},xO.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===Dd._catch){var e=this.startNode();this.next(),this.eat(Dd.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(Dd._finally)?this.parseBlock():null,t.handler||t.finalizer||this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")},xO.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")},xO.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(vO),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")},xO.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")},xO.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")},xO.parseLabeledStatement=function(t,e,i,s){for(var r=0,n=this.labels;r<n.length;r+=1){n[r].name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===Dd._switch?"switch":null,a=this.labels.length-1;a>=0;a--){var l=this.labels[a];if(l.statementStart!==t.start)break;l.statementStart=this.start,l.kind=o}return this.labels.push({name:e,kind:o,statementStart:this.start}),t.body=this.parseStatement(s?-1===s.indexOf("label")?s+"label":s:"label"),this.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")},xO.parseExpressionStatement=function(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")},xO.parseBlock=function(t,e,i){for(void 0===t&&(t=!0),void 0===e&&(e=this.startNode()),e.body=[],this.expect(Dd.braceL),t&&this.enterScope(0);this.type!==Dd.braceR;){var s=this.parseStatement(null);e.body.push(s)}return i&&(this.strict=!1),this.next(),t&&this.exitScope(),this.finishNode(e,"BlockStatement")},xO.parseFor=function(t,e){return t.init=e,this.expect(Dd.semi),t.test=this.type===Dd.semi?null:this.parseExpression(),this.expect(Dd.semi),t.update=this.type===Dd.parenR?null:this.parseExpression(),this.expect(Dd.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,"ForStatement")},xO.parseForIn=function(t,e){var i=this.type===Dd._in;return this.next(),"VariableDeclaration"===e.type&&null!=e.declarations[0].init&&(!i||this.options.ecmaVersion<8||this.strict||"var"!==e.kind||"Identifier"!==e.declarations[0].id.type)&&this.raise(e.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),t.left=e,t.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(Dd.parenR),t.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(t,i?"ForInStatement":"ForOfStatement")},xO.parseVar=function(t,e,i,s){for(t.declarations=[],t.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(Dd.eq)?r.init=this.parseMaybeAssign(e):s||"const"!==i||this.type===Dd._in||this.options.ecmaVersion>=6&&this.isContextual("of")?s||"using"!==i&&"await using"!==i||!(this.options.ecmaVersion>=17)||this.type===Dd._in||this.isContextual("of")?s||"Identifier"===r.id.type||e&&(this.type===Dd._in||this.isContextual("of"))?r.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+i+" declaration"):this.unexpected(),t.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(Dd.comma))break}return t},xO.parseVarId=function(t,e){t.id="using"===e||"await using"===e?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(t.id,"var"===e?1:2,!1)};var bO=1,QO=2;function wO(t,e){var i=e.key.name,s=t[i],r="true";return"MethodDefinition"!==e.type||"get"!==e.kind&&"set"!==e.kind||(r=(e.static?"s":"i")+e.kind),"iget"===s&&"iset"===r||"iset"===s&&"iget"===r||"sget"===s&&"sset"===r||"sset"===s&&"sget"===r?(t[i]="true",!1):!!s||(t[i]=r,!1)}function kO(t,e){var i=t.computed,s=t.key;return!i&&("Identifier"===s.type&&s.name===e||"Literal"===s.type&&s.value===e)}xO.parseFunction=function(t,e,i,s,r){this.initFunction(t),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===Dd.star&&e&QO&&this.unexpected(),t.generator=this.eat(Dd.star)),this.options.ecmaVersion>=8&&(t.async=!!s),e&bO&&(t.id=4&e&&this.type!==Dd.name?null:this.parseIdent(),!t.id||e&QO||this.checkLValSimple(t.id,this.strict||t.generator||t.async?this.treatFunctionsAsVar?1:2:3));var n=this.yieldPos,o=this.awaitPos,a=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(pO(t.async,t.generator)),e&bO||(t.id=this.type===Dd.name?this.parseIdent():null),this.parseFunctionParams(t),this.parseFunctionBody(t,i,!1,r),this.yieldPos=n,this.awaitPos=o,this.awaitIdentPos=a,this.finishNode(t,e&bO?"FunctionDeclaration":"FunctionExpression")},xO.parseFunctionParams=function(t){this.expect(Dd.parenL),t.params=this.parseBindingList(Dd.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},xO.parseClass=function(t,e){this.next();var i=this.strict;this.strict=!0,this.parseClassId(t,e),this.parseClassSuper(t);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(Dd.braceL);this.type!==Dd.braceR;){var o=this.parseClassElement(null!==t.superClass);o&&(r.body.push(o),"MethodDefinition"===o.type&&"constructor"===o.kind?(n&&this.raiseRecoverable(o.start,"Duplicate constructor in the same class"),n=!0):o.key&&"PrivateIdentifier"===o.key.type&&wO(s,o)&&this.raiseRecoverable(o.key.start,"Identifier '#"+o.key.name+"' has already been declared"))}return this.strict=i,this.next(),t.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")},xO.parseClassElement=function(t){if(this.eat(Dd.semi))return null;var e=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,o="method",a=!1;if(this.eatContextual("static")){if(e>=13&&this.eat(Dd.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===Dd.star?a=!0:s="static"}if(i.static=a,!s&&e>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==Dd.star||this.canInsertSemicolon()?s="async":n=!0),!s&&(e>=9||!n)&&this.eat(Dd.star)&&(r=!0),!s&&!n&&!r){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?o=l:s=l)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),e<13||this.type===Dd.parenL||"method"!==o||r||n){var h=!i.static&&kO(i,"constructor"),c=h&&t;h&&"method"!==o&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=h?"constructor":o,this.parseClassMethod(i,r,n,c)}else this.parseClassField(i);return i},xO.isClassElementNameStart=function(){return this.type===Dd.name||this.type===Dd.privateId||this.type===Dd.num||this.type===Dd.string||this.type===Dd.bracketL||this.type.keyword},xO.parseClassElementName=function(t){this.type===Dd.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),t.computed=!1,t.key=this.parsePrivateIdent()):this.parsePropertyName(t)},xO.parseClassMethod=function(t,e,i,s){var r=t.key;"constructor"===t.kind?(e&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):t.static&&kO(t,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=t.value=this.parseMethod(e,i,s);return"get"===t.kind&&0!==n.params.length&&this.raiseRecoverable(n.start,"getter should have no params"),"set"===t.kind&&1!==n.params.length&&this.raiseRecoverable(n.start,"setter should have exactly one param"),"set"===t.kind&&"RestElement"===n.params[0].type&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(t,"MethodDefinition")},xO.parseClassField=function(t){return kO(t,"constructor")?this.raise(t.key.start,"Classes can't have a field named 'constructor'"):t.static&&kO(t,"prototype")&&this.raise(t.key.start,"Classes can't have a static field named 'prototype'"),this.eat(Dd.eq)?(this.enterScope(576),t.value=this.parseMaybeAssign(),this.exitScope()):t.value=null,this.semicolon(),this.finishNode(t,"PropertyDefinition")},xO.parseClassStaticBlock=function(t){t.body=[];var e=this.labels;for(this.labels=[],this.enterScope(320);this.type!==Dd.braceR;){var i=this.parseStatement(null);t.body.push(i)}return this.next(),this.exitScope(),this.labels=e,this.finishNode(t,"StaticBlock")},xO.parseClassId=function(t,e){this.type===Dd.name?(t.id=this.parseIdent(),e&&this.checkLValSimple(t.id,2,!1)):(!0===e&&this.unexpected(),t.id=null)},xO.parseClassSuper=function(t){t.superClass=this.eat(Dd._extends)?this.parseExprSubscripts(null,!1):null},xO.enterClassBody=function(){var t={declared:Object.create(null),used:[]};return this.privateNameStack.push(t),t.declared},xO.exitClassBody=function(){var t=this.privateNameStack.pop(),e=t.declared,i=t.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=0===s?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var o=i[n];Kd(e,o.name)||(r?r.used.push(o):this.raiseRecoverable(o.start,"Private field '#"+o.name+"' must be declared in an enclosing class"))}},xO.parseExportAllDeclaration=function(t,e){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(t.exported=this.parseModuleExportName(),this.checkExport(e,t.exported,this.lastTokStart)):t.exported=null),this.expectContextual("from"),this.type!==Dd.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ExportAllDeclaration")},xO.parseExport=function(t,e){if(this.next(),this.eat(Dd.star))return this.parseExportAllDeclaration(t,e);if(this.eat(Dd._default))return this.checkExport(e,"default",this.lastTokStart),t.declaration=this.parseExportDefaultDeclaration(),this.finishNode(t,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())t.declaration=this.parseExportDeclaration(t),"VariableDeclaration"===t.declaration.type?this.checkVariableExport(e,t.declaration.declarations):this.checkExport(e,t.declaration.id,t.declaration.id.start),t.specifiers=[],t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[]);else{if(t.declaration=null,t.specifiers=this.parseExportSpecifiers(e),this.eatContextual("from"))this.type!==Dd.string&&this.unexpected(),t.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause());else{for(var i=0,s=t.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),"Literal"===r.local.type&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}t.source=null,this.options.ecmaVersion>=16&&(t.attributes=[])}this.semicolon()}return this.finishNode(t,"ExportNamedDeclaration")},xO.parseExportDeclaration=function(t){return this.parseStatement(null)},xO.parseExportDefaultDeclaration=function(){var t;if(this.type===Dd._function||(t=this.isAsyncFunction())){var e=this.startNode();return this.next(),t&&this.next(),this.parseFunction(e,4|bO,!1,t)}if(this.type===Dd._class){var i=this.startNode();return this.parseClass(i,"nullableID")}var s=this.parseMaybeAssign();return this.semicolon(),s},xO.checkExport=function(t,e,i){t&&("string"!=typeof e&&(e="Identifier"===e.type?e.name:e.value),Kd(t,e)&&this.raiseRecoverable(i,"Duplicate export '"+e+"'"),t[e]=!0)},xO.checkPatternExport=function(t,e){var i=e.type;if("Identifier"===i)this.checkExport(t,e,e.start);else if("ObjectPattern"===i)for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(t,n)}else if("ArrayPattern"===i)for(var o=0,a=e.elements;o<a.length;o+=1){var l=a[o];l&&this.checkPatternExport(t,l)}else"Property"===i?this.checkPatternExport(t,e.value):"AssignmentPattern"===i?this.checkPatternExport(t,e.left):"RestElement"===i&&this.checkPatternExport(t,e.argument)},xO.checkVariableExport=function(t,e){if(t)for(var i=0,s=e;i<s.length;i+=1){var r=s[i];this.checkPatternExport(t,r.id)}},xO.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},xO.parseExportSpecifier=function(t){var e=this.startNode();return e.local=this.parseModuleExportName(),e.exported=this.eatContextual("as")?this.parseModuleExportName():e.local,this.checkExport(t,e.exported,e.exported.start),this.finishNode(e,"ExportSpecifier")},xO.parseExportSpecifiers=function(t){var e=[],i=!0;for(this.expect(Dd.braceL);!this.eat(Dd.braceR);){if(i)i=!1;else if(this.expect(Dd.comma),this.afterTrailingComma(Dd.braceR))break;e.push(this.parseExportSpecifier(t))}return e},xO.parseImport=function(t){return this.next(),this.type===Dd.string?(t.specifiers=SO,t.source=this.parseExprAtom()):(t.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),t.source=this.type===Dd.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(t.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(t,"ImportDeclaration")},xO.parseImportSpecifier=function(){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.eatContextual("as")?t.local=this.parseIdent():(this.checkUnreserved(t.imported),t.local=t.imported),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportSpecifier")},xO.parseImportDefaultSpecifier=function(){var t=this.startNode();return t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportDefaultSpecifier")},xO.parseImportNamespaceSpecifier=function(){var t=this.startNode();return this.next(),this.expectContextual("as"),t.local=this.parseIdent(),this.checkLValSimple(t.local,2),this.finishNode(t,"ImportNamespaceSpecifier")},xO.parseImportSpecifiers=function(){var t=[],e=!0;if(this.type===Dd.name&&(t.push(this.parseImportDefaultSpecifier()),!this.eat(Dd.comma)))return t;if(this.type===Dd.star)return t.push(this.parseImportNamespaceSpecifier()),t;for(this.expect(Dd.braceL);!this.eat(Dd.braceR);){if(e)e=!1;else if(this.expect(Dd.comma),this.afterTrailingComma(Dd.braceR))break;t.push(this.parseImportSpecifier())}return t},xO.parseWithClause=function(){var t=[];if(!this.eat(Dd._with))return t;this.expect(Dd.braceL);for(var e={},i=!0;!this.eat(Dd.braceR);){if(i)i=!1;else if(this.expect(Dd.comma),this.afterTrailingComma(Dd.braceR))break;var s=this.parseImportAttribute(),r="Identifier"===s.key.type?s.key.name:s.key.value;Kd(e,r)&&this.raiseRecoverable(s.key.start,"Duplicate attribute key '"+r+"'"),e[r]=!0,t.push(s)}return t},xO.parseImportAttribute=function(){var t=this.startNode();return t.key=this.type===Dd.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(Dd.colon),this.type!==Dd.string&&this.unexpected(),t.value=this.parseExprAtom(),this.finishNode(t,"ImportAttribute")},xO.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===Dd.string){var t=this.parseLiteral(this.value);return sO.test(t.value)&&this.raise(t.start,"An export name cannot include a lone surrogate."),t}return this.parseIdent(!0)},xO.adaptDirectivePrologue=function(t){for(var e=0;e<t.length&&this.isDirectiveCandidate(t[e]);++e)t[e].directive=t[e].expression.raw.slice(1,-1)},xO.isDirectiveCandidate=function(t){return this.options.ecmaVersion>=5&&"ExpressionStatement"===t.type&&"Literal"===t.expression.type&&"string"==typeof t.expression.value&&('"'===this.input[t.start]||"'"===this.input[t.start])};var PO=dO.prototype;PO.toAssignable=function(t,e,i){if(this.options.ecmaVersion>=6&&t)switch(t.type){case"Identifier":this.inAsync&&"await"===t.name&&this.raise(t.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,e),"RestElement"!==n.type||"ArrayPattern"!==n.argument.type&&"ObjectPattern"!==n.argument.type||this.raise(n.argument.start,"Unexpected token")}break;case"Property":"init"!==t.kind&&this.raise(t.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(t.value,e);break;case"ArrayExpression":t.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(t.elements,e);break;case"SpreadElement":t.type="RestElement",this.toAssignable(t.argument,e),"AssignmentPattern"===t.argument.type&&this.raise(t.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==t.operator&&this.raise(t.left.end,"Only '=' operator can be used for specifying default value."),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,e);break;case"ParenthesizedExpression":this.toAssignable(t.expression,e,i);break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!e)break;default:this.raise(t.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return t},PO.toAssignableList=function(t,e){for(var i=t.length,s=0;s<i;s++){var r=t[s];r&&this.toAssignable(r,e)}if(i){var n=t[i-1];6===this.options.ecmaVersion&&e&&n&&"RestElement"===n.type&&"Identifier"!==n.argument.type&&this.unexpected(n.argument.start)}return t},PO.parseSpread=function(t){var e=this.startNode();return this.next(),e.argument=this.parseMaybeAssign(!1,t),this.finishNode(e,"SpreadElement")},PO.parseRestBinding=function(){var t=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==Dd.name&&this.unexpected(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")},PO.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case Dd.bracketL:var t=this.startNode();return this.next(),t.elements=this.parseBindingList(Dd.bracketR,!0,!0),this.finishNode(t,"ArrayPattern");case Dd.braceL:return this.parseObj(!0)}return this.parseIdent()},PO.parseBindingList=function(t,e,i,s){for(var r=[],n=!0;!this.eat(t);)if(n?n=!1:this.expect(Dd.comma),e&&this.type===Dd.comma)r.push(null);else{if(i&&this.afterTrailingComma(t))break;if(this.type===Dd.ellipsis){var o=this.parseRestBinding();this.parseBindingListItem(o),r.push(o),this.type===Dd.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(t);break}r.push(this.parseAssignableListItem(s))}return r},PO.parseAssignableListItem=function(t){var e=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(e),e},PO.parseBindingListItem=function(t){return t},PO.parseMaybeDefault=function(t,e,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(Dd.eq))return i;var s=this.startNodeAt(t,e);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},PO.checkLValSimple=function(t,e,i){void 0===e&&(e=0);var s=0!==e;switch(t.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(t.name)&&this.raiseRecoverable(t.start,(s?"Binding ":"Assigning to ")+t.name+" in strict mode"),s&&(2===e&&"let"===t.name&&this.raiseRecoverable(t.start,"let is disallowed as a lexically bound name"),i&&(Kd(i,t.name)&&this.raiseRecoverable(t.start,"Argument name clash"),i[t.name]=!0),5!==e&&this.declareName(t.name,e,t.start));break;case"ChainExpression":this.raiseRecoverable(t.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(t.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(t.start,"Binding parenthesized expression"),this.checkLValSimple(t.expression,e,i);default:this.raise(t.start,(s?"Binding":"Assigning to")+" rvalue")}},PO.checkLValPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"ObjectPattern":for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,e,i)}break;case"ArrayPattern":for(var o=0,a=t.elements;o<a.length;o+=1){var l=a[o];l&&this.checkLValInnerPattern(l,e,i)}break;default:this.checkLValSimple(t,e,i)}},PO.checkLValInnerPattern=function(t,e,i){switch(void 0===e&&(e=0),t.type){case"Property":this.checkLValInnerPattern(t.value,e,i);break;case"AssignmentPattern":this.checkLValPattern(t.left,e,i);break;case"RestElement":this.checkLValPattern(t.argument,e,i);break;default:this.checkLValPattern(t,e,i)}};var $O=function(t,e,i,s,r){this.token=t,this.isExpr=!!e,this.preserveSpace=!!i,this.override=s,this.generator=!!r},TO={b_stat:new $O("{",!1),b_expr:new $O("{",!0),b_tmpl:new $O("${",!1),p_stat:new $O("(",!1),p_expr:new $O("(",!0),q_tmpl:new $O("`",!0,!0,function(t){return t.tryReadTemplateToken()}),f_stat:new $O("function",!1),f_expr:new $O("function",!0),f_expr_gen:new $O("function",!0,!1,null,!0),f_gen:new $O("function",!1,!1,null,!0)},CO=dO.prototype;CO.initialContext=function(){return[TO.b_stat]},CO.curContext=function(){return this.context[this.context.length-1]},CO.braceIsBlock=function(t){var e=this.curContext();return e===TO.f_expr||e===TO.f_stat||(t!==Dd.colon||e!==TO.b_stat&&e!==TO.b_expr?t===Dd._return||t===Dd.name&&this.exprAllowed?Ld.test(this.input.slice(this.lastTokEnd,this.start)):t===Dd._else||t===Dd.semi||t===Dd.eof||t===Dd.parenR||t===Dd.arrow||(t===Dd.braceL?e===TO.b_stat:t!==Dd._var&&t!==Dd._const&&t!==Dd.name&&!this.exprAllowed):!e.isExpr)},CO.inGeneratorContext=function(){for(var t=this.context.length-1;t>=1;t--){var e=this.context[t];if("function"===e.token)return e.generator}return!1},CO.updateContext=function(t){var e,i=this.type;i.keyword&&t===Dd.dot?this.exprAllowed=!1:(e=i.updateContext)?e.call(this,t):this.exprAllowed=i.beforeExpr},CO.overrideContext=function(t){this.curContext()!==t&&(this.context[this.context.length-1]=t)},Dd.parenR.updateContext=Dd.braceR.updateContext=function(){if(1!==this.context.length){var t=this.context.pop();t===TO.b_stat&&"function"===this.curContext().token&&(t=this.context.pop()),this.exprAllowed=!t.isExpr}else this.exprAllowed=!0},Dd.braceL.updateContext=function(t){this.context.push(this.braceIsBlock(t)?TO.b_stat:TO.b_expr),this.exprAllowed=!0},Dd.dollarBraceL.updateContext=function(){this.context.push(TO.b_tmpl),this.exprAllowed=!0},Dd.parenL.updateContext=function(t){var e=t===Dd._if||t===Dd._for||t===Dd._with||t===Dd._while;this.context.push(e?TO.p_stat:TO.p_expr),this.exprAllowed=!0},Dd.incDec.updateContext=function(){},Dd._function.updateContext=Dd._class.updateContext=function(t){!t.beforeExpr||t===Dd._else||t===Dd.semi&&this.curContext()!==TO.p_stat||t===Dd._return&&Ld.test(this.input.slice(this.lastTokEnd,this.start))||(t===Dd.colon||t===Dd.braceL)&&this.curContext()===TO.b_stat?this.context.push(TO.f_stat):this.context.push(TO.f_expr),this.exprAllowed=!1},Dd.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},Dd.backQuote.updateContext=function(){this.curContext()===TO.q_tmpl?this.context.pop():this.context.push(TO.q_tmpl),this.exprAllowed=!1},Dd.star.updateContext=function(t){if(t===Dd._function){var e=this.context.length-1;this.context[e]===TO.f_expr?this.context[e]=TO.f_expr_gen:this.context[e]=TO.f_gen}this.exprAllowed=!0},Dd.name.updateContext=function(t){var e=!1;this.options.ecmaVersion>=6&&t!==Dd.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(e=!0),this.exprAllowed=e};var _O=dO.prototype;function AO(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&AO(t.expression)}function ZO(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&ZO(t.expression)||"ParenthesizedExpression"===t.type&&ZO(t.expression)}_O.checkPropClash=function(t,e,i){if(!(this.options.ecmaVersion>=9&&"SpreadElement"===t.type||this.options.ecmaVersion>=6&&(t.computed||t.method||t.shorthand))){var s,r=t.key;switch(r.type){case"Identifier":s=r.name;break;case"Literal":s=String(r.value);break;default:return}var n=t.kind;if(this.options.ecmaVersion>=6)"__proto__"===s&&"init"===n&&(e.proto&&(i?i.doubleProto<0&&(i.doubleProto=r.start):this.raiseRecoverable(r.start,"Redefinition of __proto__ property")),e.proto=!0);else{var o=e[s="$"+s];if(o)("init"===n?this.strict&&o.init||o.get||o.set:o.init||o[n])&&this.raiseRecoverable(r.start,"Redefinition of property");else o=e[s]={init:!1,get:!1,set:!1};o[n]=!0}}},_O.parseExpression=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(t,e);if(this.type===Dd.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(Dd.comma);)n.expressions.push(this.parseMaybeAssign(t,e));return this.finishNode(n,"SequenceExpression")}return r},_O.parseMaybeAssign=function(t,e,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(t);this.exprAllowed=!1}var s=!1,r=-1,n=-1,o=-1;e?(r=e.parenthesizedAssign,n=e.trailingComma,o=e.doubleProto,e.parenthesizedAssign=e.trailingComma=-1):(e=new gO,s=!0);var a=this.start,l=this.startLoc;this.type!==Dd.parenL&&this.type!==Dd.name||(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===t);var h=this.parseMaybeConditional(t,e);if(i&&(h=i.call(this,h,a,l)),this.type.isAssign){var c=this.startNodeAt(a,l);return c.operator=this.value,this.type===Dd.eq&&(h=this.toAssignable(h,!1,e)),s||(e.parenthesizedAssign=e.trailingComma=e.doubleProto=-1),e.shorthandAssign>=h.start&&(e.shorthandAssign=-1),this.type===Dd.eq?this.checkLValPattern(h):this.checkLValSimple(h),c.left=h,this.next(),c.right=this.parseMaybeAssign(t),o>-1&&(e.doubleProto=o),this.finishNode(c,"AssignmentExpression")}return s&&this.checkExpressionErrors(e,!0),r>-1&&(e.parenthesizedAssign=r),n>-1&&(e.trailingComma=n),h},_O.parseMaybeConditional=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprOps(t,e);if(this.checkExpressionErrors(e))return r;if(this.eat(Dd.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(Dd.colon),n.alternate=this.parseMaybeAssign(t),this.finishNode(n,"ConditionalExpression")}return r},_O.parseExprOps=function(t,e){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(e,!1,!1,t);return this.checkExpressionErrors(e)||r.start===i&&"ArrowFunctionExpression"===r.type?r:this.parseExprOp(r,i,s,-1,t)},_O.parseExprOp=function(t,e,i,s,r){var n=this.type.binop;if(null!=n&&(!r||this.type!==Dd._in)&&n>s){var o=this.type===Dd.logicalOR||this.type===Dd.logicalAND,a=this.type===Dd.coalesce;a&&(n=Dd.logicalAND.binop);var l=this.value;this.next();var h=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),h,c,n,r),p=this.buildBinary(e,i,t,u,l,o||a);return(o&&this.type===Dd.coalesce||a&&(this.type===Dd.logicalOR||this.type===Dd.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(p,e,i,s,r)}return t},_O.buildBinary=function(t,e,i,s,r,n){"PrivateIdentifier"===s.type&&this.raise(s.start,"Private identifier can only be left side of binary expression");var o=this.startNodeAt(t,e);return o.left=i,o.operator=r,o.right=s,this.finishNode(o,n?"LogicalExpression":"BinaryExpression")},_O.parseMaybeUnary=function(t,e,i,s){var r,n=this.start,o=this.startLoc;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(s),e=!0;else if(this.type.prefix){var a=this.startNode(),l=this.type===Dd.incDec;a.operator=this.value,a.prefix=!0,this.next(),a.argument=this.parseMaybeUnary(null,!0,l,s),this.checkExpressionErrors(t,!0),l?this.checkLValSimple(a.argument):this.strict&&"delete"===a.operator&&AO(a.argument)?this.raiseRecoverable(a.start,"Deleting local variable in strict mode"):"delete"===a.operator&&ZO(a.argument)?this.raiseRecoverable(a.start,"Private fields can not be deleted"):e=!0,r=this.finishNode(a,l?"UpdateExpression":"UnaryExpression")}else if(e||this.type!==Dd.privateId){if(r=this.parseExprSubscripts(t,s),this.checkExpressionErrors(t))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var h=this.startNodeAt(n,o);h.operator=this.value,h.prefix=!1,h.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(h,"UpdateExpression")}}else(s||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==Dd._in&&this.unexpected();return i||!this.eat(Dd.starstar)?r:e?void this.unexpected(this.lastTokStart):this.buildBinary(n,o,r,this.parseMaybeUnary(null,!1,!1,s),"**",!1)},_O.parseExprSubscripts=function(t,e){var i=this.start,s=this.startLoc,r=this.parseExprAtom(t,e);if("ArrowFunctionExpression"===r.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return r;var n=this.parseSubscripts(r,i,s,!1,e);return t&&"MemberExpression"===n.type&&(t.parenthesizedAssign>=n.start&&(t.parenthesizedAssign=-1),t.parenthesizedBind>=n.start&&(t.parenthesizedBind=-1),t.trailingComma>=n.start&&(t.trailingComma=-1)),n},_O.parseSubscripts=function(t,e,i,s,r){for(var n=this.options.ecmaVersion>=8&&"Identifier"===t.type&&"async"===t.name&&this.lastTokEnd===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.potentialArrowAt===t.start,o=!1;;){var a=this.parseSubscript(t,e,i,s,n,o,r);if(a.optional&&(o=!0),a===t||"ArrowFunctionExpression"===a.type){if(o){var l=this.startNodeAt(e,i);l.expression=a,a=this.finishNode(l,"ChainExpression")}return a}t=a}},_O.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(Dd.arrow)},_O.parseSubscriptAsyncArrow=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!0,s)},_O.parseSubscript=function(t,e,i,s,r,n,o){var a=this.options.ecmaVersion>=11,l=a&&this.eat(Dd.questionDot);s&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var h=this.eat(Dd.bracketL);if(h||l&&this.type!==Dd.parenL&&this.type!==Dd.backQuote||this.eat(Dd.dot)){var c=this.startNodeAt(e,i);c.object=t,h?(c.property=this.parseExpression(),this.expect(Dd.bracketR)):this.type===Dd.privateId&&"Super"!==t.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!h,a&&(c.optional=l),t=this.finishNode(c,"MemberExpression")}else if(!s&&this.eat(Dd.parenL)){var u=new gO,p=this.yieldPos,d=this.awaitPos,O=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var f=this.parseExprList(Dd.parenR,this.options.ecmaVersion>=8,!1,u);if(r&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=O,this.parseSubscriptAsyncArrow(e,i,f,o);this.checkExpressionErrors(u,!0),this.yieldPos=p||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=O||this.awaitIdentPos;var m=this.startNodeAt(e,i);m.callee=t,m.arguments=f,a&&(m.optional=l),t=this.finishNode(m,"CallExpression")}else if(this.type===Dd.backQuote){(l||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var g=this.startNodeAt(e,i);g.tag=t,g.quasi=this.parseTemplate({isTagged:!0}),t=this.finishNode(g,"TaggedTemplateExpression")}return t},_O.parseExprAtom=function(t,e,i){this.type===Dd.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case Dd._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type!==Dd.parenL||this.allowDirectSuper||this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==Dd.dot&&this.type!==Dd.bracketL&&this.type!==Dd.parenL&&this.unexpected(),this.finishNode(s,"Super");case Dd._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case Dd.name:var n=this.start,o=this.startLoc,a=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!a&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(Dd._function))return this.overrideContext(TO.f_expr),this.parseFunction(this.startNodeAt(n,o),0,!1,!0,e);if(r&&!this.canInsertSemicolon()){if(this.eat(Dd.arrow))return this.parseArrowExpression(this.startNodeAt(n,o),[l],!1,e);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===Dd.name&&!a&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(Dd.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,o),[l],!0,e)}return l;case Dd.regexp:var h=this.value;return(s=this.parseLiteral(h.value)).regex={pattern:h.pattern,flags:h.flags},s;case Dd.num:case Dd.string:return this.parseLiteral(this.value);case Dd._null:case Dd._true:case Dd._false:return(s=this.startNode()).value=this.type===Dd._null?null:this.type===Dd._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case Dd.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(r,e);return t&&(t.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(t.parenthesizedAssign=c),t.parenthesizedBind<0&&(t.parenthesizedBind=c)),u;case Dd.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(Dd.bracketR,!0,!0,t),this.finishNode(s,"ArrayExpression");case Dd.braceL:return this.overrideContext(TO.b_expr),this.parseObj(!1,t);case Dd._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case Dd._class:return this.parseClass(this.startNode(),!1);case Dd._new:return this.parseNew();case Dd.backQuote:return this.parseTemplate();case Dd._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},_O.parseExprAtomDefault=function(){this.unexpected()},_O.parseExprImport=function(t){var e=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===Dd.parenL&&!t)return this.parseDynamicImport(e);if(this.type===Dd.dot){var i=this.startNodeAt(e.start,e.loc&&e.loc.start);return i.name="import",e.meta=this.finishNode(i,"Identifier"),this.parseImportMeta(e)}this.unexpected()},_O.parseDynamicImport=function(t){if(this.next(),t.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(Dd.parenR)?t.options=null:(this.expect(Dd.comma),this.afterTrailingComma(Dd.parenR)?t.options=null:(t.options=this.parseMaybeAssign(),this.eat(Dd.parenR)||(this.expect(Dd.comma),this.afterTrailingComma(Dd.parenR)||this.unexpected())));else if(!this.eat(Dd.parenR)){var e=this.start;this.eat(Dd.comma)&&this.eat(Dd.parenR)?this.raiseRecoverable(e,"Trailing comma is not allowed in import()"):this.unexpected(e)}return this.finishNode(t,"ImportExpression")},_O.parseImportMeta=function(t){this.next();var e=this.containsEsc;return t.property=this.parseIdent(!0),"meta"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for import is 'import.meta'"),e&&this.raiseRecoverable(t.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(t.start,"Cannot use 'import.meta' outside a module"),this.finishNode(t,"MetaProperty")},_O.parseLiteral=function(t){var e=this.startNode();return e.value=t,e.raw=this.input.slice(this.start,this.end),110===e.raw.charCodeAt(e.raw.length-1)&&(e.bigint=null!=e.value?e.value.toString():e.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(e,"Literal")},_O.parseParenExpression=function(){this.expect(Dd.parenL);var t=this.parseExpression();return this.expect(Dd.parenR),t},_O.shouldParseArrow=function(t){return!this.canInsertSemicolon()},_O.parseParenAndDistinguishExpression=function(t,e){var i,s=this.start,r=this.startLoc,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var o,a=this.start,l=this.startLoc,h=[],c=!0,u=!1,p=new gO,d=this.yieldPos,O=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==Dd.parenR;){if(c?c=!1:this.expect(Dd.comma),n&&this.afterTrailingComma(Dd.parenR,!0)){u=!0;break}if(this.type===Dd.ellipsis){o=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===Dd.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}h.push(this.parseMaybeAssign(!1,p,this.parseParenItem))}var f=this.lastTokEnd,m=this.lastTokEndLoc;if(this.expect(Dd.parenR),t&&this.shouldParseArrow(h)&&this.eat(Dd.arrow))return this.checkPatternErrors(p,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=O,this.parseParenArrowList(s,r,h,e);h.length&&!u||this.unexpected(this.lastTokStart),o&&this.unexpected(o),this.checkExpressionErrors(p,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=O||this.awaitPos,h.length>1?((i=this.startNodeAt(a,l)).expressions=h,this.finishNodeAt(i,"SequenceExpression",f,m)):i=h[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var g=this.startNodeAt(s,r);return g.expression=i,this.finishNode(g,"ParenthesizedExpression")}return i},_O.parseParenItem=function(t){return t},_O.parseParenArrowList=function(t,e,i,s){return this.parseArrowExpression(this.startNodeAt(t,e),i,!1,s)};var XO=[];_O.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===Dd.dot){var e=this.startNodeAt(t.start,t.loc&&t.loc.start);e.name="new",t.meta=this.finishNode(e,"Identifier"),this.next();var i=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,r=this.startLoc;return t.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(Dd.parenL)?t.arguments=this.parseExprList(Dd.parenR,this.options.ecmaVersion>=8,!1):t.arguments=XO,this.finishNode(t,"NewExpression")},_O.parseTemplateElement=function(t){var e=t.isTagged,i=this.startNode();return this.type===Dd.invalidTemplate?(e||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),i.tail=this.type===Dd.backQuote,this.finishNode(i,"TemplateElement")},_O.parseTemplate=function(t){void 0===t&&(t={});var e=t.isTagged;void 0===e&&(e=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:e});for(i.quasis=[s];!s.tail;)this.type===Dd.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(Dd.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(Dd.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:e}));return this.next(),this.finishNode(i,"TemplateLiteral")},_O.isAsyncProp=function(t){return!t.computed&&"Identifier"===t.key.type&&"async"===t.key.name&&(this.type===Dd.name||this.type===Dd.num||this.type===Dd.string||this.type===Dd.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===Dd.star)&&!Ld.test(this.input.slice(this.lastTokEnd,this.start))},_O.parseObj=function(t,e){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(Dd.braceR);){if(s)s=!1;else if(this.expect(Dd.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(Dd.braceR))break;var n=this.parseProperty(t,e);t||this.checkPropClash(n,r,e),i.properties.push(n)}return this.finishNode(i,t?"ObjectPattern":"ObjectExpression")},_O.parseProperty=function(t,e){var i,s,r,n,o=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(Dd.ellipsis))return t?(o.argument=this.parseIdent(!1),this.type===Dd.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(o,"RestElement")):(o.argument=this.parseMaybeAssign(!1,e),this.type===Dd.comma&&e&&e.trailingComma<0&&(e.trailingComma=this.start),this.finishNode(o,"SpreadElement"));this.options.ecmaVersion>=6&&(o.method=!1,o.shorthand=!1,(t||e)&&(r=this.start,n=this.startLoc),t||(i=this.eat(Dd.star)));var a=this.containsEsc;return this.parsePropertyName(o),!t&&!a&&this.options.ecmaVersion>=8&&!i&&this.isAsyncProp(o)?(s=!0,i=this.options.ecmaVersion>=9&&this.eat(Dd.star),this.parsePropertyName(o)):s=!1,this.parsePropertyValue(o,t,i,s,r,n,e,a),this.finishNode(o,"Property")},_O.parseGetterSetter=function(t){var e=t.key.name;this.parsePropertyName(t),t.value=this.parseMethod(!1),t.kind=e;var i="get"===t.kind?0:1;if(t.value.params.length!==i){var s=t.value.start;"get"===t.kind?this.raiseRecoverable(s,"getter should have no params"):this.raiseRecoverable(s,"setter should have exactly one param")}else"set"===t.kind&&"RestElement"===t.value.params[0].type&&this.raiseRecoverable(t.value.params[0].start,"Setter cannot use rest params")},_O.parsePropertyValue=function(t,e,i,s,r,n,o,a){(i||s)&&this.type===Dd.colon&&this.unexpected(),this.eat(Dd.colon)?(t.value=e?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),t.kind="init"):this.options.ecmaVersion>=6&&this.type===Dd.parenL?(e&&this.unexpected(),t.method=!0,t.value=this.parseMethod(i,s),t.kind="init"):e||a||!(this.options.ecmaVersion>=5)||t.computed||"Identifier"!==t.key.type||"get"!==t.key.name&&"set"!==t.key.name||this.type===Dd.comma||this.type===Dd.braceR||this.type===Dd.eq?this.options.ecmaVersion>=6&&!t.computed&&"Identifier"===t.key.type?((i||s)&&this.unexpected(),this.checkUnreserved(t.key),"await"!==t.key.name||this.awaitIdentPos||(this.awaitIdentPos=r),e?t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key)):this.type===Dd.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),t.value=this.parseMaybeDefault(r,n,this.copyNode(t.key))):t.value=this.copyNode(t.key),t.kind="init",t.shorthand=!0):this.unexpected():((i||s)&&this.unexpected(),this.parseGetterSetter(t))},_O.parsePropertyName=function(t){if(this.options.ecmaVersion>=6){if(this.eat(Dd.bracketL))return t.computed=!0,t.key=this.parseMaybeAssign(),this.expect(Dd.bracketR),t.key;t.computed=!1}return t.key=this.type===Dd.num||this.type===Dd.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},_O.initFunction=function(t){t.id=null,this.options.ecmaVersion>=6&&(t.generator=t.expression=!1),this.options.ecmaVersion>=8&&(t.async=!1)},_O.parseMethod=function(t,e,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=t),this.options.ecmaVersion>=8&&(s.async=!!e),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|pO(e,s.generator)|(i?128:0)),this.expect(Dd.parenL),s.params=this.parseBindingList(Dd.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")},_O.parseArrowExpression=function(t,e,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(16|pO(i,!1)),this.initFunction(t),this.options.ecmaVersion>=8&&(t.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,t.params=this.toAssignableList(e,!0),this.parseFunctionBody(t,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(t,"ArrowFunctionExpression")},_O.parseFunctionBody=function(t,e,i,s){var r=e&&this.type!==Dd.braceL,n=this.strict,o=!1;if(r)t.body=this.parseMaybeAssign(s),t.expression=!0,this.checkParams(t,!1);else{var a=this.options.ecmaVersion>=7&&!this.isSimpleParamList(t.params);n&&!a||(o=this.strictDirective(this.end))&&a&&this.raiseRecoverable(t.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],o&&(this.strict=!0),this.checkParams(t,!n&&!o&&!e&&!i&&this.isSimpleParamList(t.params)),this.strict&&t.id&&this.checkLValSimple(t.id,5),t.body=this.parseBlock(!1,void 0,o&&!n),t.expression=!1,this.adaptDirectivePrologue(t.body.body),this.labels=l}this.exitScope()},_O.isSimpleParamList=function(t){for(var e=0,i=t;e<i.length;e+=1){if("Identifier"!==i[e].type)return!1}return!0},_O.checkParams=function(t,e){for(var i=Object.create(null),s=0,r=t.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,1,e?null:i)}},_O.parseExprList=function(t,e,i,s){for(var r=[],n=!0;!this.eat(t);){if(n)n=!1;else if(this.expect(Dd.comma),e&&this.afterTrailingComma(t))break;var o=void 0;i&&this.type===Dd.comma?o=null:this.type===Dd.ellipsis?(o=this.parseSpread(s),s&&this.type===Dd.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):o=this.parseMaybeAssign(!1,s),r.push(o)}return r},_O.checkUnreserved=function(t){var e=t.start,i=t.end,s=t.name;(this.inGenerator&&"yield"===s&&this.raiseRecoverable(e,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===s&&this.raiseRecoverable(e,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().flags&uO||"arguments"!==s||this.raiseRecoverable(e,"Cannot use 'arguments' in class field initializer"),!this.inClassStaticBlock||"arguments"!==s&&"await"!==s||this.raise(e,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(e,"Unexpected keyword '"+s+"'"),this.options.ecmaVersion<6&&-1!==this.input.slice(e,i).indexOf("\\"))||(this.strict?this.reservedWordsStrict:this.reservedWords).test(s)&&(this.inAsync||"await"!==s||this.raiseRecoverable(e,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(e,"The keyword '"+s+"' is reserved"))},_O.parseIdent=function(t){var e=this.parseIdentNode();return this.next(!!t),this.finishNode(e,"Identifier"),t||(this.checkUnreserved(e),"await"!==e.name||this.awaitIdentPos||(this.awaitIdentPos=e.start)),e},_O.parseIdentNode=function(){var t=this.startNode();return this.type===Dd.name?t.name=this.value:this.type.keyword?(t.name=this.type.keyword,"class"!==t.name&&"function"!==t.name||this.lastTokEnd===this.lastTokStart+1&&46===this.input.charCodeAt(this.lastTokStart)||this.context.pop(),this.type=Dd.name):this.unexpected(),t},_O.parsePrivateIdent=function(){var t=this.startNode();return this.type===Dd.privateId?t.name=this.value:this.unexpected(),this.next(),this.finishNode(t,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(t.start,"Private field '#"+t.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(t)),t},_O.parseYield=function(t){this.yieldPos||(this.yieldPos=this.start);var e=this.startNode();return this.next(),this.type===Dd.semi||this.canInsertSemicolon()||this.type!==Dd.star&&!this.type.startsExpr?(e.delegate=!1,e.argument=null):(e.delegate=this.eat(Dd.star),e.argument=this.parseMaybeAssign(t)),this.finishNode(e,"YieldExpression")},_O.parseAwait=function(t){this.awaitPos||(this.awaitPos=this.start);var e=this.startNode();return this.next(),e.argument=this.parseMaybeUnary(null,!0,!1,t),this.finishNode(e,"AwaitExpression")};var EO=dO.prototype;EO.raise=function(t,e){var i=oO(this.input,t);e+=" ("+i.line+":"+i.column+")",this.sourceFile&&(e+=" in "+this.sourceFile);var s=new SyntaxError(e);throw s.pos=t,s.loc=i,s.raisedAt=this.pos,s},EO.raiseRecoverable=EO.raise,EO.curPosition=function(){if(this.options.locations)return new rO(this.curLine,this.pos-this.lineStart)};var RO=dO.prototype,MO=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};RO.enterScope=function(t){this.scopeStack.push(new MO(t))},RO.exitScope=function(){this.scopeStack.pop()},RO.treatFunctionsAsVarInScope=function(t){return 2&t.flags||!this.inModule&&1&t.flags},RO.declareName=function(t,e,i){var s=!1;if(2===e){var r=this.currentScope();s=r.lexical.indexOf(t)>-1||r.functions.indexOf(t)>-1||r.var.indexOf(t)>-1,r.lexical.push(t),this.inModule&&1&r.flags&&delete this.undefinedExports[t]}else if(4===e){this.currentScope().lexical.push(t)}else if(3===e){var n=this.currentScope();s=this.treatFunctionsAsVar?n.lexical.indexOf(t)>-1:n.lexical.indexOf(t)>-1||n.var.indexOf(t)>-1,n.functions.push(t)}else for(var o=this.scopeStack.length-1;o>=0;--o){var a=this.scopeStack[o];if(a.lexical.indexOf(t)>-1&&!(32&a.flags&&a.lexical[0]===t)||!this.treatFunctionsAsVarInScope(a)&&a.functions.indexOf(t)>-1){s=!0;break}if(a.var.push(t),this.inModule&&1&a.flags&&delete this.undefinedExports[t],a.flags&uO)break}s&&this.raiseRecoverable(i,"Identifier '"+t+"' has already been declared")},RO.checkLocalExport=function(t){-1===this.scopeStack[0].lexical.indexOf(t.name)&&-1===this.scopeStack[0].var.indexOf(t.name)&&(this.undefinedExports[t.name]=t)},RO.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},RO.currentVarScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags)return e}},RO.currentThisScope=function(){for(var t=this.scopeStack.length-1;;t--){var e=this.scopeStack[t];if(771&e.flags&&!(16&e.flags))return e}};var VO=function(t,e,i){this.type="",this.start=e,this.end=0,t.options.locations&&(this.loc=new nO(t,i)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[e,0])},zO=dO.prototype;function IO(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}zO.startNode=function(){return new VO(this,this.start,this.startLoc)},zO.startNodeAt=function(t,e){return new VO(this,t,e)},zO.finishNode=function(t,e){return IO.call(this,t,e,this.lastTokEnd,this.lastTokEndLoc)},zO.finishNodeAt=function(t,e,i,s){return IO.call(this,t,e,i,s)},zO.copyNode=function(t){var e=new VO(this,t.start,this.startLoc);for(var i in t)e[i]=t[i];return e};var YO="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",qO=YO+" Extended_Pictographic",DO=qO+" EBase EComp EMod EPres ExtPict",LO={9:YO,10:qO,11:qO,12:DO,13:DO,14:DO},NO={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},WO="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",jO="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",BO=jO+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",GO=BO+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",UO=GO+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",FO=UO+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",HO={9:jO,10:BO,11:GO,12:UO,13:FO,14:FO+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},KO={};function JO(t){var e=KO[t]={binary:eO(LO[t]+" "+WO),binaryOfStrings:eO(NO[t]),nonBinary:{General_Category:eO(WO),Script:eO(HO[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}for(var tf=0,ef=[9,10,11,12,13,14];tf<ef.length;tf+=1){JO(ef[tf])}var sf=dO.prototype,rf=function(t,e){this.parent=t,this.base=e||this};rf.prototype.separatedFrom=function(t){for(var e=this;e;e=e.parent)for(var i=t;i;i=i.parent)if(e.base===i.base&&e!==i)return!0;return!1},rf.prototype.sibling=function(){return new rf(this.parent,this.base)};var nf=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=KO[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function of(t){return 105===t||109===t||115===t}function af(t){return 36===t||t>=40&&t<=43||46===t||63===t||t>=91&&t<=94||t>=123&&t<=125}function lf(t){return t>=65&&t<=90||t>=97&&t<=122}nf.prototype.reset=function(t,e,i){var s=-1!==i.indexOf("v"),r=-1!==i.indexOf("u");this.start=0|t,this.source=e+"",this.flags=i,s&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=r&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=r&&this.parser.options.ecmaVersion>=9)},nf.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},nf.prototype.at=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return-1;var r=i.charCodeAt(t);if(!e&&!this.switchU||r<=55295||r>=57344||t+1>=s)return r;var n=i.charCodeAt(t+1);return n>=56320&&n<=57343?(r<<10)+n-56613888:r},nf.prototype.nextIndex=function(t,e){void 0===e&&(e=!1);var i=this.source,s=i.length;if(t>=s)return s;var r,n=i.charCodeAt(t);return!e&&!this.switchU||n<=55295||n>=57344||t+1>=s||(r=i.charCodeAt(t+1))<56320||r>57343?t+1:t+2},nf.prototype.current=function(t){return void 0===t&&(t=!1),this.at(this.pos,t)},nf.prototype.lookahead=function(t){return void 0===t&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},nf.prototype.advance=function(t){void 0===t&&(t=!1),this.pos=this.nextIndex(this.pos,t)},nf.prototype.eat=function(t,e){return void 0===e&&(e=!1),this.current(e)===t&&(this.advance(e),!0)},nf.prototype.eatChars=function(t,e){void 0===e&&(e=!1);for(var i=this.pos,s=0,r=t;s<r.length;s+=1){var n=r[s],o=this.at(i,e);if(-1===o||o!==n)return!1;i=this.nextIndex(i,e)}return this.pos=i,!0},sf.validateRegExpFlags=function(t){for(var e=t.validFlags,i=t.flags,s=!1,r=!1,n=0;n<i.length;n++){var o=i.charAt(n);-1===e.indexOf(o)&&this.raise(t.start,"Invalid regular expression flag"),i.indexOf(o,n+1)>-1&&this.raise(t.start,"Duplicate regular expression flag"),"u"===o&&(s=!0),"v"===o&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(t.start,"Invalid regular expression flag")},sf.validateRegExpPattern=function(t){this.regexp_pattern(t),!t.switchN&&this.options.ecmaVersion>=9&&function(t){for(var e in t)return!0;return!1}(t.groupNames)&&(t.switchN=!0,this.regexp_pattern(t))},sf.regexp_pattern=function(t){t.pos=0,t.lastIntValue=0,t.lastStringValue="",t.lastAssertionIsQuantifiable=!1,t.numCapturingParens=0,t.maxBackReference=0,t.groupNames=Object.create(null),t.backReferenceNames.length=0,t.branchID=null,this.regexp_disjunction(t),t.pos!==t.source.length&&(t.eat(41)&&t.raise("Unmatched ')'"),(t.eat(93)||t.eat(125))&&t.raise("Lone quantifier brackets")),t.maxBackReference>t.numCapturingParens&&t.raise("Invalid escape");for(var e=0,i=t.backReferenceNames;e<i.length;e+=1){var s=i[e];t.groupNames[s]||t.raise("Invalid named capture referenced")}},sf.regexp_disjunction=function(t){var e=this.options.ecmaVersion>=16;for(e&&(t.branchID=new rf(t.branchID,null)),this.regexp_alternative(t);t.eat(124);)e&&(t.branchID=t.branchID.sibling()),this.regexp_alternative(t);e&&(t.branchID=t.branchID.parent),this.regexp_eatQuantifier(t,!0)&&t.raise("Nothing to repeat"),t.eat(123)&&t.raise("Lone quantifier brackets")},sf.regexp_alternative=function(t){for(;t.pos<t.source.length&&this.regexp_eatTerm(t););},sf.regexp_eatTerm=function(t){return this.regexp_eatAssertion(t)?(t.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(t)&&t.switchU&&t.raise("Invalid quantifier"),!0):!!(t.switchU?this.regexp_eatAtom(t):this.regexp_eatExtendedAtom(t))&&(this.regexp_eatQuantifier(t),!0)},sf.regexp_eatAssertion=function(t){var e=t.pos;if(t.lastAssertionIsQuantifiable=!1,t.eat(94)||t.eat(36))return!0;if(t.eat(92)){if(t.eat(66)||t.eat(98))return!0;t.pos=e}if(t.eat(40)&&t.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=t.eat(60)),t.eat(61)||t.eat(33))return this.regexp_disjunction(t),t.eat(41)||t.raise("Unterminated group"),t.lastAssertionIsQuantifiable=!i,!0}return t.pos=e,!1},sf.regexp_eatQuantifier=function(t,e){return void 0===e&&(e=!1),!!this.regexp_eatQuantifierPrefix(t,e)&&(t.eat(63),!0)},sf.regexp_eatQuantifierPrefix=function(t,e){return t.eat(42)||t.eat(43)||t.eat(63)||this.regexp_eatBracedQuantifier(t,e)},sf.regexp_eatBracedQuantifier=function(t,e){var i=t.pos;if(t.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(t)&&(s=t.lastIntValue,t.eat(44)&&this.regexp_eatDecimalDigits(t)&&(r=t.lastIntValue),t.eat(125)))return-1!==r&&r<s&&!e&&t.raise("numbers out of order in {} quantifier"),!0;t.switchU&&!e&&t.raise("Incomplete quantifier"),t.pos=i}return!1},sf.regexp_eatAtom=function(t){return this.regexp_eatPatternCharacters(t)||t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)},sf.regexp_eatReverseSolidusAtomEscape=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatAtomEscape(t))return!0;t.pos=e}return!1},sf.regexp_eatUncapturingGroup=function(t){var e=t.pos;if(t.eat(40)){if(t.eat(63)){if(this.options.ecmaVersion>=16){var i=this.regexp_eatModifiers(t),s=t.eat(45);if(i||s){for(var r=0;r<i.length;r++){var n=i.charAt(r);i.indexOf(n,r+1)>-1&&t.raise("Duplicate regular expression modifiers")}if(s){var o=this.regexp_eatModifiers(t);i||o||58!==t.current()||t.raise("Invalid regular expression modifiers");for(var a=0;a<o.length;a++){var l=o.charAt(a);(o.indexOf(l,a+1)>-1||i.indexOf(l)>-1)&&t.raise("Duplicate regular expression modifiers")}}}}if(t.eat(58)){if(this.regexp_disjunction(t),t.eat(41))return!0;t.raise("Unterminated group")}}t.pos=e}return!1},sf.regexp_eatCapturingGroup=function(t){if(t.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(t):63===t.current()&&t.raise("Invalid group"),this.regexp_disjunction(t),t.eat(41))return t.numCapturingParens+=1,!0;t.raise("Unterminated group")}return!1},sf.regexp_eatModifiers=function(t){for(var e="",i=0;-1!==(i=t.current())&&of(i);)e+=iO(i),t.advance();return e},sf.regexp_eatExtendedAtom=function(t){return t.eat(46)||this.regexp_eatReverseSolidusAtomEscape(t)||this.regexp_eatCharacterClass(t)||this.regexp_eatUncapturingGroup(t)||this.regexp_eatCapturingGroup(t)||this.regexp_eatInvalidBracedQuantifier(t)||this.regexp_eatExtendedPatternCharacter(t)},sf.regexp_eatInvalidBracedQuantifier=function(t){return this.regexp_eatBracedQuantifier(t,!0)&&t.raise("Nothing to repeat"),!1},sf.regexp_eatSyntaxCharacter=function(t){var e=t.current();return!!af(e)&&(t.lastIntValue=e,t.advance(),!0)},sf.regexp_eatPatternCharacters=function(t){for(var e=t.pos,i=0;-1!==(i=t.current())&&!af(i);)t.advance();return t.pos!==e},sf.regexp_eatExtendedPatternCharacter=function(t){var e=t.current();return!(-1===e||36===e||e>=40&&e<=43||46===e||63===e||91===e||94===e||124===e)&&(t.advance(),!0)},sf.regexp_groupSpecifier=function(t){if(t.eat(63)){this.regexp_eatGroupName(t)||t.raise("Invalid group");var e=this.options.ecmaVersion>=16,i=t.groupNames[t.lastStringValue];if(i)if(e)for(var s=0,r=i;s<r.length;s+=1){r[s].separatedFrom(t.branchID)||t.raise("Duplicate capture group name")}else t.raise("Duplicate capture group name");e?(i||(t.groupNames[t.lastStringValue]=[])).push(t.branchID):t.groupNames[t.lastStringValue]=!0}},sf.regexp_eatGroupName=function(t){if(t.lastStringValue="",t.eat(60)){if(this.regexp_eatRegExpIdentifierName(t)&&t.eat(62))return!0;t.raise("Invalid capture group name")}return!1},sf.regexp_eatRegExpIdentifierName=function(t){if(t.lastStringValue="",this.regexp_eatRegExpIdentifierStart(t)){for(t.lastStringValue+=iO(t.lastIntValue);this.regexp_eatRegExpIdentifierPart(t);)t.lastStringValue+=iO(t.lastIntValue);return!0}return!1},sf.regexp_eatRegExpIdentifierStart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return Ed(t,!0)||36===t||95===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},sf.regexp_eatRegExpIdentifierPart=function(t){var e=t.pos,i=this.options.ecmaVersion>=11,s=t.current(i);return t.advance(i),92===s&&this.regexp_eatRegExpUnicodeEscapeSequence(t,i)&&(s=t.lastIntValue),function(t){return Rd(t,!0)||36===t||95===t||8204===t||8205===t}(s)?(t.lastIntValue=s,!0):(t.pos=e,!1)},sf.regexp_eatAtomEscape=function(t){return!!(this.regexp_eatBackReference(t)||this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)||t.switchN&&this.regexp_eatKGroupName(t))||(t.switchU&&(99===t.current()&&t.raise("Invalid unicode escape"),t.raise("Invalid escape")),!1)},sf.regexp_eatBackReference=function(t){var e=t.pos;if(this.regexp_eatDecimalEscape(t)){var i=t.lastIntValue;if(t.switchU)return i>t.maxBackReference&&(t.maxBackReference=i),!0;if(i<=t.numCapturingParens)return!0;t.pos=e}return!1},sf.regexp_eatKGroupName=function(t){if(t.eat(107)){if(this.regexp_eatGroupName(t))return t.backReferenceNames.push(t.lastStringValue),!0;t.raise("Invalid named reference")}return!1},sf.regexp_eatCharacterEscape=function(t){return this.regexp_eatControlEscape(t)||this.regexp_eatCControlLetter(t)||this.regexp_eatZero(t)||this.regexp_eatHexEscapeSequence(t)||this.regexp_eatRegExpUnicodeEscapeSequence(t,!1)||!t.switchU&&this.regexp_eatLegacyOctalEscapeSequence(t)||this.regexp_eatIdentityEscape(t)},sf.regexp_eatCControlLetter=function(t){var e=t.pos;if(t.eat(99)){if(this.regexp_eatControlLetter(t))return!0;t.pos=e}return!1},sf.regexp_eatZero=function(t){return 48===t.current()&&!uf(t.lookahead())&&(t.lastIntValue=0,t.advance(),!0)},sf.regexp_eatControlEscape=function(t){var e=t.current();return 116===e?(t.lastIntValue=9,t.advance(),!0):110===e?(t.lastIntValue=10,t.advance(),!0):118===e?(t.lastIntValue=11,t.advance(),!0):102===e?(t.lastIntValue=12,t.advance(),!0):114===e&&(t.lastIntValue=13,t.advance(),!0)},sf.regexp_eatControlLetter=function(t){var e=t.current();return!!lf(e)&&(t.lastIntValue=e%32,t.advance(),!0)},sf.regexp_eatRegExpUnicodeEscapeSequence=function(t,e){void 0===e&&(e=!1);var i,s=t.pos,r=e||t.switchU;if(t.eat(117)){if(this.regexp_eatFixedHexDigits(t,4)){var n=t.lastIntValue;if(r&&n>=55296&&n<=56319){var o=t.pos;if(t.eat(92)&&t.eat(117)&&this.regexp_eatFixedHexDigits(t,4)){var a=t.lastIntValue;if(a>=56320&&a<=57343)return t.lastIntValue=1024*(n-55296)+(a-56320)+65536,!0}t.pos=o,t.lastIntValue=n}return!0}if(r&&t.eat(123)&&this.regexp_eatHexDigits(t)&&t.eat(125)&&((i=t.lastIntValue)>=0&&i<=1114111))return!0;r&&t.raise("Invalid unicode escape"),t.pos=s}return!1},sf.regexp_eatIdentityEscape=function(t){if(t.switchU)return!!this.regexp_eatSyntaxCharacter(t)||!!t.eat(47)&&(t.lastIntValue=47,!0);var e=t.current();return!(99===e||t.switchN&&107===e)&&(t.lastIntValue=e,t.advance(),!0)},sf.regexp_eatDecimalEscape=function(t){t.lastIntValue=0;var e=t.current();if(e>=49&&e<=57){do{t.lastIntValue=10*t.lastIntValue+(e-48),t.advance()}while((e=t.current())>=48&&e<=57);return!0}return!1};function hf(t){return lf(t)||95===t}function cf(t){return hf(t)||uf(t)}function uf(t){return t>=48&&t<=57}function pf(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function df(t){return t>=65&&t<=70?t-65+10:t>=97&&t<=102?t-97+10:t-48}function Of(t){return t>=48&&t<=55}sf.regexp_eatCharacterClassEscape=function(t){var e=t.current();if(function(t){return 100===t||68===t||115===t||83===t||119===t||87===t}(e))return t.lastIntValue=-1,t.advance(),1;var i=!1;if(t.switchU&&this.options.ecmaVersion>=9&&((i=80===e)||112===e)){var s;if(t.lastIntValue=-1,t.advance(),t.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(t))&&t.eat(125))return i&&2===s&&t.raise("Invalid property name"),s;t.raise("Invalid property name")}return 0},sf.regexp_eatUnicodePropertyValueExpression=function(t){var e=t.pos;if(this.regexp_eatUnicodePropertyName(t)&&t.eat(61)){var i=t.lastStringValue;if(this.regexp_eatUnicodePropertyValue(t)){var s=t.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(t,i,s),1}}if(t.pos=e,this.regexp_eatLoneUnicodePropertyNameOrValue(t)){var r=t.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(t,r)}return 0},sf.regexp_validateUnicodePropertyNameAndValue=function(t,e,i){Kd(t.unicodeProperties.nonBinary,e)||t.raise("Invalid property name"),t.unicodeProperties.nonBinary[e].test(i)||t.raise("Invalid property value")},sf.regexp_validateUnicodePropertyNameOrValue=function(t,e){return t.unicodeProperties.binary.test(e)?1:t.switchV&&t.unicodeProperties.binaryOfStrings.test(e)?2:void t.raise("Invalid property name")},sf.regexp_eatUnicodePropertyName=function(t){var e=0;for(t.lastStringValue="";hf(e=t.current());)t.lastStringValue+=iO(e),t.advance();return""!==t.lastStringValue},sf.regexp_eatUnicodePropertyValue=function(t){var e=0;for(t.lastStringValue="";cf(e=t.current());)t.lastStringValue+=iO(e),t.advance();return""!==t.lastStringValue},sf.regexp_eatLoneUnicodePropertyNameOrValue=function(t){return this.regexp_eatUnicodePropertyValue(t)},sf.regexp_eatCharacterClass=function(t){if(t.eat(91)){var e=t.eat(94),i=this.regexp_classContents(t);return t.eat(93)||t.raise("Unterminated character class"),e&&2===i&&t.raise("Negated character class may contain strings"),!0}return!1},sf.regexp_classContents=function(t){return 93===t.current()?1:t.switchV?this.regexp_classSetExpression(t):(this.regexp_nonEmptyClassRanges(t),1)},sf.regexp_nonEmptyClassRanges=function(t){for(;this.regexp_eatClassAtom(t);){var e=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassAtom(t)){var i=t.lastIntValue;!t.switchU||-1!==e&&-1!==i||t.raise("Invalid character class"),-1!==e&&-1!==i&&e>i&&t.raise("Range out of order in character class")}}},sf.regexp_eatClassAtom=function(t){var e=t.pos;if(t.eat(92)){if(this.regexp_eatClassEscape(t))return!0;if(t.switchU){var i=t.current();(99===i||Of(i))&&t.raise("Invalid class escape"),t.raise("Invalid escape")}t.pos=e}var s=t.current();return 93!==s&&(t.lastIntValue=s,t.advance(),!0)},sf.regexp_eatClassEscape=function(t){var e=t.pos;if(t.eat(98))return t.lastIntValue=8,!0;if(t.switchU&&t.eat(45))return t.lastIntValue=45,!0;if(!t.switchU&&t.eat(99)){if(this.regexp_eatClassControlLetter(t))return!0;t.pos=e}return this.regexp_eatCharacterClassEscape(t)||this.regexp_eatCharacterEscape(t)},sf.regexp_classSetExpression=function(t){var e,i=1;if(this.regexp_eatClassSetRange(t));else if(e=this.regexp_eatClassSetOperand(t)){2===e&&(i=2);for(var s=t.pos;t.eatChars([38,38]);)38!==t.current()&&(e=this.regexp_eatClassSetOperand(t))?2!==e&&(i=1):t.raise("Invalid character in character class");if(s!==t.pos)return i;for(;t.eatChars([45,45]);)this.regexp_eatClassSetOperand(t)||t.raise("Invalid character in character class");if(s!==t.pos)return i}else t.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(t)){if(!(e=this.regexp_eatClassSetOperand(t)))return i;2===e&&(i=2)}},sf.regexp_eatClassSetRange=function(t){var e=t.pos;if(this.regexp_eatClassSetCharacter(t)){var i=t.lastIntValue;if(t.eat(45)&&this.regexp_eatClassSetCharacter(t)){var s=t.lastIntValue;return-1!==i&&-1!==s&&i>s&&t.raise("Range out of order in character class"),!0}t.pos=e}return!1},sf.regexp_eatClassSetOperand=function(t){return this.regexp_eatClassSetCharacter(t)?1:this.regexp_eatClassStringDisjunction(t)||this.regexp_eatNestedClass(t)},sf.regexp_eatNestedClass=function(t){var e=t.pos;if(t.eat(91)){var i=t.eat(94),s=this.regexp_classContents(t);if(t.eat(93))return i&&2===s&&t.raise("Negated character class may contain strings"),s;t.pos=e}if(t.eat(92)){var r=this.regexp_eatCharacterClassEscape(t);if(r)return r;t.pos=e}return null},sf.regexp_eatClassStringDisjunction=function(t){var e=t.pos;if(t.eatChars([92,113])){if(t.eat(123)){var i=this.regexp_classStringDisjunctionContents(t);if(t.eat(125))return i}else t.raise("Invalid escape");t.pos=e}return null},sf.regexp_classStringDisjunctionContents=function(t){for(var e=this.regexp_classString(t);t.eat(124);)2===this.regexp_classString(t)&&(e=2);return e},sf.regexp_classString=function(t){for(var e=0;this.regexp_eatClassSetCharacter(t);)e++;return 1===e?1:2},sf.regexp_eatClassSetCharacter=function(t){var e=t.pos;if(t.eat(92))return!(!this.regexp_eatCharacterEscape(t)&&!this.regexp_eatClassSetReservedPunctuator(t))||(t.eat(98)?(t.lastIntValue=8,!0):(t.pos=e,!1));var i=t.current();return!(i<0||i===t.lookahead()&&function(t){return 33===t||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t}(i))&&(!function(t){return 40===t||41===t||45===t||47===t||t>=91&&t<=93||t>=123&&t<=125}(i)&&(t.advance(),t.lastIntValue=i,!0))},sf.regexp_eatClassSetReservedPunctuator=function(t){var e=t.current();return!!function(t){return 33===t||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t}(e)&&(t.lastIntValue=e,t.advance(),!0)},sf.regexp_eatClassControlLetter=function(t){var e=t.current();return!(!uf(e)&&95!==e)&&(t.lastIntValue=e%32,t.advance(),!0)},sf.regexp_eatHexEscapeSequence=function(t){var e=t.pos;if(t.eat(120)){if(this.regexp_eatFixedHexDigits(t,2))return!0;t.switchU&&t.raise("Invalid escape"),t.pos=e}return!1},sf.regexp_eatDecimalDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;uf(i=t.current());)t.lastIntValue=10*t.lastIntValue+(i-48),t.advance();return t.pos!==e},sf.regexp_eatHexDigits=function(t){var e=t.pos,i=0;for(t.lastIntValue=0;pf(i=t.current());)t.lastIntValue=16*t.lastIntValue+df(i),t.advance();return t.pos!==e},sf.regexp_eatLegacyOctalEscapeSequence=function(t){if(this.regexp_eatOctalDigit(t)){var e=t.lastIntValue;if(this.regexp_eatOctalDigit(t)){var i=t.lastIntValue;e<=3&&this.regexp_eatOctalDigit(t)?t.lastIntValue=64*e+8*i+t.lastIntValue:t.lastIntValue=8*e+i}else t.lastIntValue=e;return!0}return!1},sf.regexp_eatOctalDigit=function(t){var e=t.current();return Of(e)?(t.lastIntValue=e-48,t.advance(),!0):(t.lastIntValue=0,!1)},sf.regexp_eatFixedHexDigits=function(t,e){var i=t.pos;t.lastIntValue=0;for(var s=0;s<e;++s){var r=t.current();if(!pf(r))return t.pos=i,!1;t.lastIntValue=16*t.lastIntValue+df(r),t.advance()}return!0};var ff=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new nO(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},mf=dO.prototype;function gf(t){return"function"!=typeof BigInt?null:BigInt(t.replace(/_/g,""))}mf.next=function(t){!t&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ff(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},mf.getToken=function(){return this.next(),new ff(this)},"undefined"!=typeof Symbol&&(mf[Symbol.iterator]=function(){var t=this;return{next:function(){var e=t.getToken();return{done:e.type===Dd.eof,value:e}}}}),mf.nextToken=function(){var t=this.curContext();return t&&t.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length?this.finishToken(Dd.eof):t.override?t.override(this):void this.readToken(this.fullCharCodeAtPos())},mf.readToken=function(t){return Ed(t,this.options.ecmaVersion>=6)||92===t?this.readWord():this.getTokenFromCode(t)},mf.fullCharCodeAt=function(t){var e=this.input.charCodeAt(t);if(e<=55295||e>=56320)return e;var i=this.input.charCodeAt(t+1);return i<=56319||i>=57344?e:(e<<10)+i-56613888},mf.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},mf.skipBlockComment=function(){var t=this.options.onComment&&this.curPosition(),e=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(-1===i&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=e;(s=jd(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(e+2,i),e,this.pos,t,this.curPosition())},mf.skipLineComment=function(t){for(var e=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=t);this.pos<this.input.length&&!Wd(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(e+t,this.pos),e,this.pos,i,this.curPosition())},mf.skipSpace=function(){t:for(;this.pos<this.input.length;){var t=this.input.charCodeAt(this.pos);switch(t){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(!(t>8&&t<14||t>=5760&&Bd.test(String.fromCharCode(t))))break t;++this.pos}}},mf.finishToken=function(t,e){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=t,this.value=e,this.updateContext(i)},mf.readToken_dot=function(){var t=this.input.charCodeAt(this.pos+1);if(t>=48&&t<=57)return this.readNumber(!0);var e=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===t&&46===e?(this.pos+=3,this.finishToken(Dd.ellipsis)):(++this.pos,this.finishToken(Dd.dot))},mf.readToken_slash=function(){var t=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===t?this.finishOp(Dd.assign,2):this.finishOp(Dd.slash,1)},mf.readToken_mult_modulo_exp=function(t){var e=this.input.charCodeAt(this.pos+1),i=1,s=42===t?Dd.star:Dd.modulo;return this.options.ecmaVersion>=7&&42===t&&42===e&&(++i,s=Dd.starstar,e=this.input.charCodeAt(this.pos+2)),61===e?this.finishOp(Dd.assign,i+1):this.finishOp(s,i)},mf.readToken_pipe_amp=function(t){var e=this.input.charCodeAt(this.pos+1);if(e===t){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Dd.assign,3);return this.finishOp(124===t?Dd.logicalOR:Dd.logicalAND,2)}return 61===e?this.finishOp(Dd.assign,2):this.finishOp(124===t?Dd.bitwiseOR:Dd.bitwiseAND,1)},mf.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(Dd.assign,2):this.finishOp(Dd.bitwiseXOR,1)},mf.readToken_plus_min=function(t){var e=this.input.charCodeAt(this.pos+1);return e===t?45!==e||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Ld.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(Dd.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===e?this.finishOp(Dd.assign,2):this.finishOp(Dd.plusMin,1)},mf.readToken_lt_gt=function(t){var e=this.input.charCodeAt(this.pos+1),i=1;return e===t?(i=62===t&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+i)?this.finishOp(Dd.assign,i+1):this.finishOp(Dd.bitShift,i)):33!==e||60!==t||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===e&&(i=2),this.finishOp(Dd.relational,i)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},mf.readToken_eq_excl=function(t){var e=this.input.charCodeAt(this.pos+1);return 61===e?this.finishOp(Dd.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===t&&62===e&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(Dd.arrow)):this.finishOp(61===t?Dd.eq:Dd.prefix,1)},mf.readToken_question=function(){var t=this.options.ecmaVersion;if(t>=11){var e=this.input.charCodeAt(this.pos+1);if(46===e){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(Dd.questionDot,2)}if(63===e){if(t>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(Dd.assign,3);return this.finishOp(Dd.coalesce,2)}}return this.finishOp(Dd.question,1)},mf.readToken_numberSign=function(){var t=35;if(this.options.ecmaVersion>=13&&(++this.pos,Ed(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(Dd.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+iO(t)+"'")},mf.getTokenFromCode=function(t){switch(t){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(Dd.parenL);case 41:return++this.pos,this.finishToken(Dd.parenR);case 59:return++this.pos,this.finishToken(Dd.semi);case 44:return++this.pos,this.finishToken(Dd.comma);case 91:return++this.pos,this.finishToken(Dd.bracketL);case 93:return++this.pos,this.finishToken(Dd.bracketR);case 123:return++this.pos,this.finishToken(Dd.braceL);case 125:return++this.pos,this.finishToken(Dd.braceR);case 58:return++this.pos,this.finishToken(Dd.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(Dd.backQuote);case 48:var e=this.input.charCodeAt(this.pos+1);if(120===e||88===e)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===e||79===e)return this.readRadixNumber(8);if(98===e||66===e)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(t);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(t);case 124:case 38:return this.readToken_pipe_amp(t);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(t);case 60:case 62:return this.readToken_lt_gt(t);case 61:case 33:return this.readToken_eq_excl(t);case 63:return this.readToken_question();case 126:return this.finishOp(Dd.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+iO(t)+"'")},mf.finishOp=function(t,e){var i=this.input.slice(this.pos,this.pos+e);return this.pos+=e,this.finishToken(t,i)},mf.readRegexp=function(){for(var t,e,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(Ld.test(s)&&this.raise(i,"Unterminated regular expression"),t)t=!1;else{if("["===s)e=!0;else if("]"===s&&e)e=!1;else if("/"===s&&!e)break;t="\\"===s}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,o=this.readWord1();this.containsEsc&&this.unexpected(n);var a=this.regexpState||(this.regexpState=new nf(this));a.reset(i,r,o),this.validateRegExpFlags(a),this.validateRegExpPattern(a);var l=null;try{l=new RegExp(r,o)}catch(t){}return this.finishToken(Dd.regexp,{pattern:r,flags:o,value:l})},mf.readInt=function(t,e,i){for(var s=this.options.ecmaVersion>=12&&void 0===e,r=i&&48===this.input.charCodeAt(this.pos),n=this.pos,o=0,a=0,l=0,h=null==e?1/0:e;l<h;++l,++this.pos){var c=this.input.charCodeAt(this.pos),u=void 0;if(s&&95===c)r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===a&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),a=c;else{if((u=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=t)break;a=c,o=o*t+u}}return s&&95===a&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||null!=e&&this.pos-n!==e?null:o},mf.readRadixNumber=function(t){var e=this.pos;this.pos+=2;var i=this.readInt(t);return null==i&&this.raise(this.start+2,"Expected number in radix "+t),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(i=gf(this.input.slice(e,this.pos)),++this.pos):Ed(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dd.num,i)},mf.readNumber=function(t){var e=this.pos;t||null!==this.readInt(10,void 0,!0)||this.raise(e,"Invalid number");var i=this.pos-e>=2&&48===this.input.charCodeAt(e);i&&this.strict&&this.raise(e,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!t&&this.options.ecmaVersion>=11&&110===s){var r=gf(this.input.slice(e,this.pos));return++this.pos,Ed(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(Dd.num,r)}i&&/[89]/.test(this.input.slice(e,this.pos))&&(i=!1),46!==s||i||(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),69!==s&&101!==s||i||(43!==(s=this.input.charCodeAt(++this.pos))&&45!==s||++this.pos,null===this.readInt(10)&&this.raise(e,"Invalid number")),Ed(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n,o=(n=this.input.slice(e,this.pos),i?parseInt(n,8):parseFloat(n.replace(/_/g,"")));return this.finishToken(Dd.num,o)},mf.readCodePoint=function(){var t;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var e=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(e,"Code point out of bounds")}else t=this.readHexChar(4);return t},mf.readString=function(t){for(var e="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===t)break;92===s?(e+=this.input.slice(i,this.pos),e+=this.readEscapedChar(!1),i=this.pos):8232===s||8233===s?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Wd(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return e+=this.input.slice(i,this.pos++),this.finishToken(Dd.string,e)};var xf={};mf.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(t){if(t!==xf)throw t;this.readInvalidTemplateToken()}this.inTemplateElement=!1},mf.invalidStringToken=function(t,e){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xf;this.raise(t,e)},mf.readTmplToken=function(){for(var t="",e=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(96===i||36===i&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==Dd.template&&this.type!==Dd.invalidTemplate?(t+=this.input.slice(e,this.pos),this.finishToken(Dd.template,t)):36===i?(this.pos+=2,this.finishToken(Dd.dollarBraceL)):(++this.pos,this.finishToken(Dd.backQuote));if(92===i)t+=this.input.slice(e,this.pos),t+=this.readEscapedChar(!0),e=this.pos;else if(Wd(i)){switch(t+=this.input.slice(e,this.pos),++this.pos,i){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:t+="\n";break;default:t+=String.fromCharCode(i)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),e=this.pos}else++this.pos}},mf.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(Dd.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},mf.readEscapedChar=function(t){var e=this.input.charCodeAt(++this.pos);switch(++this.pos,e){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return iO(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),t){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(e>=48&&e<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,e=this.input.charCodeAt(this.pos),"0"===s&&56!==e&&57!==e||!this.strict&&!t||this.invalidStringToken(this.pos-1-s.length,t?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return Wd(e)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(e)}},mf.readHexChar=function(t){var e=this.pos,i=this.readInt(16,t);return null===i&&this.invalidStringToken(e,"Bad character escape sequence"),i},mf.readWord1=function(){this.containsEsc=!1;for(var t="",e=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(Rd(r,s))this.pos+=r<=65535?1:2;else{if(92!==r)break;this.containsEsc=!0,t+=this.input.slice(i,this.pos);var n=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(e?Ed:Rd)(o,s)||this.invalidStringToken(n,"Invalid Unicode escape"),t+=iO(o),i=this.pos}e=!1}return t+this.input.slice(i,this.pos)},mf.readWord=function(){var t=this.readWord1(),e=Dd.name;return this.keywords.test(t)&&(e=Yd[t]),this.finishToken(e,t)};function vf(t,e){return dO.parse(t,e)}function yf(t,e,i,s,r){i||(i=wf),function t(s,r,n){var o=n||s.type;Qf(i,o,s,r,t),e[o]&&e[o](s,r)}(t,s,r)}function Sf(t,e,i){i(t,e)}function bf(t,e,i){}function Qf(t,e,i,s,r){if(null==t[e])throw new Error("No walker function defined for node type "+e);t[e](i,s,r)}dO.acorn={Parser:dO,version:"8.16.0",defaultOptions:aO,Position:rO,SourceLocation:nO,getLineInfo:oO,Node:VO,TokenType:Md,tokTypes:Dd,keywordTypes:Yd,TokContext:$O,tokContexts:TO,isIdentifierChar:Rd,isIdentifierStart:Ed,Token:ff,isNewLine:Wd,lineBreak:Ld,lineBreakG:Nd,nonASCIIwhitespace:Bd};var wf={};function kf(t){return"line "+t.line+(t.fn?" in function "+t.fn:"")}wf.Program=wf.BlockStatement=wf.StaticBlock=function(t,e,i){for(var s=0,r=t.body;s<r.length;s+=1){i(r[s],e,"Statement")}},wf.Statement=Sf,wf.EmptyStatement=bf,wf.ExpressionStatement=wf.ParenthesizedExpression=wf.ChainExpression=function(t,e,i){return i(t.expression,e,"Expression")},wf.IfStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Statement"),t.alternate&&i(t.alternate,e,"Statement")},wf.LabeledStatement=function(t,e,i){return i(t.body,e,"Statement")},wf.BreakStatement=wf.ContinueStatement=bf,wf.WithStatement=function(t,e,i){i(t.object,e,"Expression"),i(t.body,e,"Statement")},wf.SwitchStatement=function(t,e,i){i(t.discriminant,e,"Expression");for(var s=0,r=t.cases;s<r.length;s+=1){i(r[s],e)}},wf.SwitchCase=function(t,e,i){t.test&&i(t.test,e,"Expression");for(var s=0,r=t.consequent;s<r.length;s+=1){i(r[s],e,"Statement")}},wf.ReturnStatement=wf.YieldExpression=wf.AwaitExpression=function(t,e,i){t.argument&&i(t.argument,e,"Expression")},wf.ThrowStatement=wf.SpreadElement=function(t,e,i){return i(t.argument,e,"Expression")},wf.TryStatement=function(t,e,i){i(t.block,e,"Statement"),t.handler&&i(t.handler,e),t.finalizer&&i(t.finalizer,e,"Statement")},wf.CatchClause=function(t,e,i){t.param&&i(t.param,e,"Pattern"),i(t.body,e,"Statement")},wf.WhileStatement=wf.DoWhileStatement=function(t,e,i){i(t.test,e,"Expression"),i(t.body,e,"Statement")},wf.ForStatement=function(t,e,i){t.init&&i(t.init,e,"ForInit"),t.test&&i(t.test,e,"Expression"),t.update&&i(t.update,e,"Expression"),i(t.body,e,"Statement")},wf.ForInStatement=wf.ForOfStatement=function(t,e,i){i(t.left,e,"ForInit"),i(t.right,e,"Expression"),i(t.body,e,"Statement")},wf.ForInit=function(t,e,i){"VariableDeclaration"===t.type?i(t,e):i(t,e,"Expression")},wf.DebuggerStatement=bf,wf.FunctionDeclaration=function(t,e,i){return i(t,e,"Function")},wf.VariableDeclaration=function(t,e,i){for(var s=0,r=t.declarations;s<r.length;s+=1){i(r[s],e)}},wf.VariableDeclarator=function(t,e,i){i(t.id,e,"Pattern"),t.init&&i(t.init,e,"Expression")},wf.Function=function(t,e,i){t.id&&i(t.id,e,"Pattern");for(var s=0,r=t.params;s<r.length;s+=1){i(r[s],e,"Pattern")}i(t.body,e,t.expression?"Expression":"Statement")},wf.Pattern=function(t,e,i){"Identifier"===t.type?i(t,e,"VariablePattern"):"MemberExpression"===t.type?i(t,e,"MemberPattern"):i(t,e)},wf.VariablePattern=bf,wf.MemberPattern=Sf,wf.RestElement=function(t,e,i){return i(t.argument,e,"Pattern")},wf.ArrayPattern=function(t,e,i){for(var s=0,r=t.elements;s<r.length;s+=1){var n=r[s];n&&i(n,e,"Pattern")}},wf.ObjectPattern=function(t,e,i){for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];"Property"===n.type?(n.computed&&i(n.key,e,"Expression"),i(n.value,e,"Pattern")):"RestElement"===n.type&&i(n.argument,e,"Pattern")}},wf.Expression=Sf,wf.ThisExpression=wf.Super=wf.MetaProperty=bf,wf.ArrayExpression=function(t,e,i){for(var s=0,r=t.elements;s<r.length;s+=1){var n=r[s];n&&i(n,e,"Expression")}},wf.ObjectExpression=function(t,e,i){for(var s=0,r=t.properties;s<r.length;s+=1){i(r[s],e)}},wf.FunctionExpression=wf.ArrowFunctionExpression=wf.FunctionDeclaration,wf.SequenceExpression=function(t,e,i){for(var s=0,r=t.expressions;s<r.length;s+=1){i(r[s],e,"Expression")}},wf.TemplateLiteral=function(t,e,i){for(var s=0,r=t.quasis;s<r.length;s+=1){i(r[s],e)}for(var n=0,o=t.expressions;n<o.length;n+=1){i(o[n],e,"Expression")}},wf.TemplateElement=bf,wf.UnaryExpression=wf.UpdateExpression=function(t,e,i){i(t.argument,e,"Expression")},wf.BinaryExpression=wf.LogicalExpression=function(t,e,i){i(t.left,e,"Expression"),i(t.right,e,"Expression")},wf.AssignmentExpression=wf.AssignmentPattern=function(t,e,i){i(t.left,e,"Pattern"),i(t.right,e,"Expression")},wf.ConditionalExpression=function(t,e,i){i(t.test,e,"Expression"),i(t.consequent,e,"Expression"),i(t.alternate,e,"Expression")},wf.NewExpression=wf.CallExpression=function(t,e,i){if(i(t.callee,e,"Expression"),t.arguments)for(var s=0,r=t.arguments;s<r.length;s+=1){i(r[s],e,"Expression")}},wf.MemberExpression=function(t,e,i){i(t.object,e,"Expression"),t.computed&&i(t.property,e,"Expression")},wf.ExportNamedDeclaration=wf.ExportDefaultDeclaration=function(t,e,i){if(t.declaration&&i(t.declaration,e,"ExportNamedDeclaration"===t.type||t.declaration.id?"Statement":"Expression"),t.source&&i(t.source,e,"Expression"),t.attributes)for(var s=0,r=t.attributes;s<r.length;s+=1){i(r[s],e)}},wf.ExportAllDeclaration=function(t,e,i){if(t.exported&&i(t.exported,e),i(t.source,e,"Expression"),t.attributes)for(var s=0,r=t.attributes;s<r.length;s+=1){i(r[s],e)}},wf.ImportAttribute=function(t,e,i){i(t.value,e,"Expression")},wf.ImportDeclaration=function(t,e,i){for(var s=0,r=t.specifiers;s<r.length;s+=1){i(r[s],e)}if(i(t.source,e,"Expression"),t.attributes)for(var n=0,o=t.attributes;n<o.length;n+=1){i(o[n],e)}},wf.ImportExpression=function(t,e,i){i(t.source,e,"Expression"),t.options&&i(t.options,e,"Expression")},wf.ImportSpecifier=wf.ImportDefaultSpecifier=wf.ImportNamespaceSpecifier=wf.Identifier=wf.PrivateIdentifier=wf.Literal=bf,wf.TaggedTemplateExpression=function(t,e,i){i(t.tag,e,"Expression"),i(t.quasi,e,"Expression")},wf.ClassDeclaration=wf.ClassExpression=function(t,e,i){return i(t,e,"Class")},wf.Class=function(t,e,i){t.id&&i(t.id,e,"Pattern"),t.superClass&&i(t.superClass,e,"Expression"),i(t.body,e)},wf.ClassBody=function(t,e,i){for(var s=0,r=t.body;s<r.length;s+=1){i(r[s],e)}},wf.MethodDefinition=wf.PropertyDefinition=wf.Property=function(t,e,i){t.computed&&i(t.key,e,"Expression"),t.value&&i(t.value,e,"Expression")};class Pf{static async create(t){this.emptyPath=t.emptyPath||"./";let e=document.createElement("iframe");e.src=this.emptyPath+"empty.html",t.place?t.place(e):(e.style.height="0px",e.style.border="none",document.body.appendChild(e)),await qf(e,"load");let i=new Pf(e),s=(t.loadFiles||[]).map(t=>{let e=i.win.document.createElement("script");return e.src=t,i.win.document.body.appendChild(e),qf(e,"load")});return await Promise.all(s),i}constructor(t){this.startedAt=null,this.extraSecs=2,this.output=null,this.handleDeps=!0,this.callbacks={},this.timeouts=[],this.intervals=[],this.frames=[],this.framePos=0,this.loaded=new Xf(t=>Ef.compute(t).then(({name:t,code:e})=>this.evalModule(t,e))),this.frame=t,this.win=t.contentWindow,this.setupEnv();const e=()=>{"none"!=this.frame.style.display&&this.resizeFrame()};this.frame.addEventListener("load",e);const i=()=>{this.win.clearTimeout(null),this.win.__setTimeout(e,200)};this.win.addEventListener("keydown",i),this.win.addEventListener("mousedown",i)}async run(t,e){return e&&(this.output=e),this.startedAt=Date.now(),this.extraSecs="string"==typeof t&&/promtDirection/.test(t)?.1:2,this.win.__c=0,this.prepare(t).then(t=>this.sandbox_run(t)).catch(t=>this.error(t))}sandbox_run(t){return t instanceof Function?t():this.win.eval(t)}prepare(t){let{code:e,dependencies:i}=$f(t,this);return(this.handleDeps?Promise.all(i.map(t=>this.loaded.compute(t))):Promise.resolve([])).then(()=>e)}evalModule(t,e){if(/\.json$/.test(t))return this.loaded.store(t,{exports:JSON.parse(e)});let i=function(t){let e,i=[];try{e=vf(t)}catch(t){return i}return yf(e,{CallExpression(t){"Identifier"!=t.callee.type||"require"!=t.callee.name||1!=t.arguments.length||"Literal"!=t.arguments[0].type||"string"!=typeof t.arguments[0].value||i.includes(t.arguments[0].value)||i.push(t.arguments[0].value)}}),i}(e).map(e=>this.loaded.compute(Zf(t,e)));return Promise.all(i).then(()=>{let i=new this.win.Function("require, exports, module, __dirname, __filename",e+"\n//# sourceURL=code"+Af()),s=this.loaded.store(t,{exports:{}});return i(e=>this.require(Zf(t,e)),s.exports,s,t,t),s})}require(t){let e=Ef.get(t);if(!e)throw new Error(`Could not load module '${t}'`);return this.loaded.get(e.name).exports}async setHTML(t,e){this.clearEvents();let i=String(this.win.document.location);if(i!=String(document.location)&&!/\/empty\.html$/.test(i))return this.frame.src=this.emptyPath+"empty.html",await avaitEvent(this.frame,"load"),this.setupEnv(),this.setHTML(t,e);let s=[],r=this,n=this.win.document;this.frame.style.display="block";n.documentElement.innerHTML=t.replace(/<script\b[^>]*?(?:\bsrc\s*=\s*('[^']+'|"[^"]+"|[^\s>]+)[^>]*)?>([\s\S]*?)<\/script>/g,function(t,e,i){let o=n.createElement("script");return e?(/["']/.test(e.charAt(0))&&(e=e.slice(1,e.length-1)),o.src=e):o.text=$f(i,r).code,s.push(o),""}),this.frame.style.height="80px",this.resizeFrame(),e&&(this.output=e);for(let t of s)r.startedAt=Date.now(),r.extraSecs=2,r.win.__c=0,t.src?(n.body.appendChild(t),await qf(t,"load")):await new Promise(e=>{let i=Af();r.callbacks[i]=()=>{delete r.callbacks[i],e()},t.text+="\n;__sandbox.callbacks['"+i+"']();",n.body.appendChild(t)});(s.length||n.querySelector("img"))&&setTimeout(()=>r.resizeFrame(),100)}setupEnv(){let t=this.win;t.__sandbox=this,t.onerror=(t,e,i)=>{if(this.output)return this.output.out("error",[t+(null!=i?" (line "+i+")":"")]),!0},t.console={log:(...t)=>this.out("log",t),error:(...t)=>this.out("error",t),warn:(...t)=>this.out("warn",t),info:(...t)=>this.out("log",t)},t.setInterval(()=>{this.startedAt=null},1e3),t.__setTimeout=t.setTimeout,t.__setInterval=t.setInterval,t.setTimeout=(e,i,...s)=>{if(s.length&&"string"!=typeof e){let t=e;e=()=>t(...s)}let r=t.__setTimeout(()=>this.run(e),i);return this.timeouts.push(r),r},t.setInterval=(e,i,...s)=>{if(s.length&&"string"!=typeof e){let t=e;e=()=>t(...s)}let r=t.__setInterval(()=>this.run(e),i);return this.intervals.push(r),r};let e=t.requestAnimationFrame;t.requestAnimationFrame=i=>{let s=e.call(t,i);return this.frames.length>50?this.frames[this.framePos++%50]=s:this.frames.push(s),s},t.addEventListener("unhandledrejection",t=>this.error(t.reason)),t.require=t=>this.require(t),t.require.preload=(t,e)=>Ef.store(t,{name:t,code:e}),t.module={exports:{}},t.exports=t.module.exports}resizeFrame(){this.frame.style.height=Math.max(80,Math.min(this.win.document.documentElement.offsetHeight+2,500))+"px";let t=this.frame.getBoundingClientRect();t.bottom>t.top&&t.top>=0&&t.top<window.innerHeight&&t.bottom>window.innerHeight&&window.scrollBy(0,Math.min(t.top,t.bottom-window.innerHeight))}tick(){let t=Date.now();if(null==this.startedAt&&(this.startedAt=t),t<this.startedAt+1e3*this.extraSecs)return;let e=confirm("This code has been running for "+this.extraSecs+" seconds. Abort it?");if(this.startedAt+=Date.now()-t,this.extraSecs+=Math.max(this.extraSecs,8),e)throw new Error("Aborted")}out(t,e){this.output?this.output.out(t,e):console[t].apply(console,e)}error(t){if(!this.output)throw t;let e=function(t){let e,i=[],s=/([\w$]*)@(.*?):(\d+)|\bat (?:([^\s(]+) \()?(.*?):(\d+)/g;for(;e=s.exec(t);){let t=e[1]||e[4]||null,s=e[2]||e[5]||null;if(t&&/sandbox/i.test(t))break;i.push({fn:t,file:s,line:e[3]||e[6]})}return i}(t.stack);if(this.output.out("error",[String(t)+(e.length?" ("+kf(e[0])+")":"")]),e.length>1){this.output.div.lastChild.appendChild(document.createTextNode(" "));let t=this.output.div.lastChild.appendChild(document.createElement("span"));t.innerHTML="…",t.className="sandbox-output-etc",t.addEventListener("click",()=>{t.className="",t.innerHTML="\n called from "+e.slice(1).map(kf).join("\n called from ")})}}clearEvents(){for(;this.timeouts.length;)this.win.clearTimeout(this.timeouts.pop());for(;this.intervals.length;)this.win.clearInterval(this.intervals.pop());for(;this.frames.length;)this.win.cancelAnimationFrame(this.frames.pop());this.timeouts.length=this.intervals.length=this.frames.length=this.framePos=0}}function $f(t,e){if("string"!=typeof t){if(t.apply){let i=t;t=(...t)=>{try{return i.apply(null,t)}catch(t){e.error(t)}}}return{code:t,dependencies:[]}}/\n$/.test(t)||(t+="\n");let i,s=/^(\s|\/\/.*)*["']use strict['"]/.test(t);try{i=vf(t,{sourceType:_f(t),ecmaVersion:"latest"})}catch(e){return{code:t,dependencies:[]}}let r=[],n=";if (++__c % 1000 === 0) __sandbox.tick();";function o(t){"BlockStatement"==t.body.type?r.push({from:t.body.end-1,text:n}):r.push({from:t.body.start,text:"{"},{from:t.body.end,text:n+"}"})}let a=[];yf(i,{ForStatement:o,ForInStatement:o,WhileStatement:o,DoWhileStatement:o,CallExpression(t){"Identifier"!=t.callee.type||"require"!=t.callee.name||1!=t.arguments.length||"Literal"!=t.arguments[0].type||"string"!=typeof t.arguments[0].value||a.includes(t.arguments[0].value)||a.push(t.arguments[0].value)},ImportDeclaration(t){a.push(t.source.value);let e,i="require("+t.source.raw+")";if(0==t.specifiers.length)e=i;else if(t.specifiers.length>1||"ImportDefaultSpecifier"==t.specifiers[0].type){let s="m_"+t.source.value.replace(/\W+/g,"_")+"__";e="var "+s+" = "+i,t.specifiers.forEach(t=>{"ImportDefaultSpecifier"==t.type?e+=", "+t.local.name+" = "+s+".default || "+s:null!=s&&(e+=", "+t.local.name+" = "+s+"."+t.imported.name)})}else e="var ",t.specifiers.forEach(t=>{"ImportNamespaceSpecifier"==t.type?e+=t.local.name+" = "+i:e+=t.local.name+" = "+i+"."+t.imported.name});r.push({from:t.start,to:t.end,text:e+";"})},ExportNamedDeclaration(t){t.source||!t.declaration?r.push({from:t.start,to:t.end,text:""}):r.push({from:t.start,to:t.declaration.start,text:""})},ExportDefaultDeclaration(t){/Declaration/.test(t.declaration.type)?r.push({from:t.start,to:t.declaration.start,text:""}):r.push({from:t.start,to:t.declaration.start,text:";("},{from:t.declaration.end,text:")"})},ExportAllDeclaration:function(t){r.push({from:t.start,to:t.end,text:""})}});let l=0,h=i.end;for(let t=s?1:0;t<i.body.length;t++){let e=i.body[t];if("FunctionDeclaration"!=e.type&&(0==l&&(l=e.start),h=e.end),"VariableDeclaration"==e.type&&"var"!=e.kind){if("const"==e.kind){let t=Tf(e.declarations,i);t&&r.push({from:0,text:`throw new TypeError("invalid assignment to const '${t}'");`})}r.push({from:e.start,to:e.start+e.kind.length,text:"var"})}"ClassDeclaration"==e.type&&r.push({from:e.start,text:"var "+e.id.name+" = "})}r.push({from:l,text:"try{",priority:10}),r.push({from:h,text:"}catch(e){__sandbox.error(e);}",priority:-10}),r.sort((t,e)=>t.from-e.from||(t.to||t.from)-(e.to||e.from)||(e.priority||0)-(t.priority||0));let c="",u=0;for(let e=0;e<r.length;++e){let i=r[e];c+=t.slice(u,i.from)+i.text,u=i.to||i.from}return c+=t.slice(u,t.length),c+="\n//# sourceURL=code"+Af(),{code:(s?'"use strict";':"")+c,dependencies:a}}function Tf(t,e){let i=null;for(let s=0;s<t.length;s++)yf(t[s].id,{VariablePattern(t){Cf(t.name,e)&&(i=t.name)}},null,null,"Pattern");return i}function Cf(t,e){let i=!1;var s,r,n,o,a,l;return s=e,r={AssignmentExpression(e,s){if("Identifier"==e.left.type&&e.left.name==t){for(let t=2;t<s.length;t++)if(/Statement|Declaration/.test(s[t].type))return;i=!0}}},l=[],n||(n=wf),function t(e,i,s){var o=s||e.type,a=e!==l[l.length-1];a&&l.push(e),Qf(n,o,e,i,t),r[o]&&r[o](e,i||l,l),a&&l.pop()}(s,o,a),i}function _f(t){return/(^|\n)\s*(im|ex)port\b/.test(t)?"module":"script"}function Af(){return Math.floor(4294967295*Math.random()).toString(16)}function Zf(t,e){if(!/\.\.?\//.test(e))return e;let i;for(t=t.replace(/[^\/]+$/,"");i=/^\.(\.)?\//.exec(e);)i[1]&&(t=t.replace(/\/[^\/]+\/$/,"/")),e=e.slice(i[0].length);return t+e}class Xf{constructor(t){this.mapping=t,this.work=Object.create(null),this.done=Object.create(null)}compute(t){return this.work[t]||(this.work[t]=this.mapping(t).then(e=>this.done[t]=e))}store(t,e){return this.work[t]=Promise.resolve(e),this.done[t]=e}get(t){return this.done[t]}}const Ef=new Xf(t=>fetch("https://unpkg.com/"+t.replace(/\/$/,"")).then(e=>{if(e.status>=400)throw new Error(`Failed to resolve package '${t}'`);let i=e.url.replace(/.*unpkg\.com\//,"");return Ef.get(i)||e.text().then(t=>Ef.store(i,{name:i,code:t}))}));function Rf(t,e){let i=document.createElement("span");return i.className="sandbox-output-"+t,i.appendChild(document.createTextNode(e)),i}function Mf(t){return t.textContent.length}function Vf(t,e){return"boolean"==typeof t?Rf("bool",String(t)):"number"==typeof t?Rf("number",String(t)):"string"==typeof t?Rf("string",JSON.stringify(t)):"symbol"==typeof t?Rf("symbol",String(t)):null==t?Rf("null",String(t)):Array.isArray(t)?function(t,e){e-=2;let i=document.createElement("span");i.appendChild(document.createTextNode("["));for(let s=0;s<t.length;++s){s&&(i.appendChild(document.createTextNode(", ")),e-=2);let r=e>0&&Vf(t[s],e),n=r?Mf(r):0;if(e-n<=0){i.appendChild(Rf("etc","…")).addEventListener("click",()=>Yf(i,"array",t));break}e-=n,i.appendChild(r)}return i.appendChild(document.createTextNode("]")),i}(t,e):function(t,e){let i,s="function"==typeof t.toString&&t.toString();if(!s||/^\[object .*\]$/.test(s))return function(t,e){e-=2;let i=document.createElement("span"),s=zf(t);s&&(e-=s.length,i.appendChild(document.createTextNode(s)));i.appendChild(document.createTextNode("{"));try{let s=!0;for(let r in t)if(If(t,r)){s?s=!1:(e-=2,i.appendChild(document.createTextNode(", ")));let n=e>0&&Vf(t[r],e),o=n?r.length+2+Mf(n):0;if(e-o<=0){i.appendChild(Rf("etc","…")).addEventListener("click",()=>Yf(i,"obj",t));break}e-=o,i.appendChild(Rf("prop",r+": ")),i.appendChild(n)}}catch(t){i.appendChild(document.createTextNode("…"))}return i.appendChild(document.createTextNode("}")),i}(t,e);if(t.call&&(i=s.match(/^\s*(function[^(]*\([^)]*\))/)))return Rf("fun",i[1]+"{…}");let r=Rf("etc",s);return r.addEventListener("click",()=>Yf(r,"obj",t)),r}(t,e)}function zf(t){if(!t.constructor)return null;let e=String(t.constructor).match(/^function\s*([^\s(]+)/);return e&&"Object"!=e[1]?e[1]:void 0}function If(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Yf(t,e,i){let s,r=document.createElement("span"),n="array"==e?"[":"{";"{"==n&&(s=zf(i))&&(n=s+" {"),r.appendChild(document.createTextNode(n));let o=r.appendChild(document.createElement("div"));o.className="sandbox-output-etc-block";let a=o.appendChild(document.createElement("table"));function l(t){let e=a.appendChild(document.createElement("tr"));e.appendChild(document.createElement("td")).appendChild(Rf("prop",t+":")),e.appendChild(document.createElement("td")).appendChild(Vf(i[t],40))}if("array"==e)for(let t=0;t<i.length;++t)l(t);else for(let t in i)If(i,t)&&l(t);r.appendChild(document.createTextNode("array"==e?"]":"}")),t.parentNode.replaceChild(r,t)}function qf(t,e){return new Promise(i=>{let s=()=>{t.removeEventListener(e,s),i()};t.addEventListener(e,s)})}function Df(t,e=50){let i;return s=>{i&&clearTimeout(i),i=setTimeout(()=>t(s),e)}}if(Pf.Output=class{constructor(t){this.div=t}clear(){let t=this.div.cloneNode(!1);this.div.parentNode.replaceChild(t,this.div),this.div=t}get empty(){return!this.div.firstChild}out(t,e){let i=document.createElement("pre");i.className="sandbox-output-"+t;for(let t=0;t<e.length;++t){let s=e[t];t&&i.appendChild(document.createTextNode(" ")),"string"==typeof s?i.appendChild(document.createTextNode(s)):i.appendChild(Vf(s,58))}this.div.appendChild(i)}},window.page&&/^chapter|hints$/.test(window.page.type)){!function(){document.querySelectorAll("button.help").forEach(t=>{t.style.display="inline",t.addEventListener("click",e)}),document.body.addEventListener("keydown",t=>{let i=document.activeElement;if("?"!=t.key||t.ctrlKey||t.altKey||t.metaKey||(!i||"true"!=i.contentEditable&&"INPUT"!=i.nodeName)&&(t.preventDefault(),e()),"Enter"==t.key&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let e=i&&n(i);e&&(t.preventDefault(),e.focus())}});let t=/Mac/.test(navigator.platform)?"Cmd-":"Ctrl-";function e(){let e=document.body.appendChild(document.createElement("div"));e.className="popup",e.appendChild(document.createElement("h2")).textContent="Instructions",e.appendChild(document.createElement("p")).textContent="Code snippets on this page can be edited and run by clicking them or moving focus to them and pressing Enter. Executed snippets share their environment with other snippets ran on the page, and some pre-defined code for the chapter. When inside the code editor, the following keyboard shortcuts are available:";for(let[i,s]of[[t+"Enter","Run code"],[t+"j","Revert code"],[t+"↓","Deactivate editor"],[t+"Escape","Reset environment"]]){let t=e.appendChild(document.createElement("div"));t.appendChild(document.createElement("kbd")).textContent=i,t.appendChild(document.createTextNode(": "+s))}e.tabIndex=0,e.addEventListener("blur",()=>e.remove()),e.addEventListener("keydown",t=>{"Escape"==t.key&&(t.preventDefault(),e.remove())}),e.focus()}function i(t,e){let i=1,s=document.createElement(t);if(e&&"object"==typeof e&&null==e.nodeType){for(let t in e)if(e.hasOwnProperty(t)){let i=e[t];"css"==t?s.style.cssText=i:"string"!=typeof i?s[t]=i:s.setAttribute(t,i)}i=2}for(let t=i;t<arguments.length;++t){let e=arguments[t];"string"==typeof e&&(e=document.createTextNode(e)),s.appendChild(e)}return s}document.body.addEventListener("mousedown",t=>{for(let e=t.target;e;e=e.parentNode){if("c_ident"==e.className)return;let i=n(e);if(i)return t.preventDefault(),void setTimeout(()=>{let e=i.posAtCoords({x:t.clientX,y:t.clientY},!1);i.dispatch({selection:{anchor:e}}),i.focus()},20)}});const s=V.define({combine:t=>t[0]}),r=gn.of([{key:"ArrowDown",run(t){let{main:e}=t.state.selection;return!(!e.empty||e.head<t.state.doc.length||(document.activeElement.blur(),0))}},{key:"ArrowUp",run(t){let{main:e}=t.state.selection;return!(!e.empty||e.head>0||(document.activeElement.blur(),0))}},{key:"Escape",run:t=>(t.contentDOM.blur(),!0)},{key:"Mod-Enter",run:t=>(l(t),!0)},{key:"Mod-j",run:t=>(h(t),!0)},{key:"Mod-ArrowDown",run:t=>(function(t){let e=t.state.facet(s);e.isHTML&&e.sandbox||(e.wrap.remove(),e.orig.style.display="")}(t),!0)},{key:"Mod-Escape",run:t=>(p(t.state.facet(s).sandbox),!0)}]);function n(t){if("PRE"==t.nodeName){let e=t.getAttribute("data-language");if(/^(javascript|html)$/.test(e))return a(t,e)}}let o=0;function a(e,n){let a=pageYOffset,u=e.getBoundingClientRect();u.top<0&&u.height>500&&(a-=Math.min(-u.top,u.height-500));let d=e.querySelector("a").id,O=window.localStorage&&localStorage.getItem(d)||e.textContent,f=e.parentNode.insertBefore(i("div",{class:"editor-wrap"}),e),m=null;function g(){if(document.activeElement!=S.contentDOM)return;let t=S.dom.getBoundingClientRect();t.bottom<0||t.top>innerHeight?S.contentDOM.blur():m=setTimeout(g,500)}let x=e.getAttribute("data-sandbox"),v={wrap:f,orig:e,isHTML:"html"==n,sandbox:x,meta:e.getAttribute("data-meta")},y=Qd(O,n,[r,hn.domEventHandlers({focus:(e,r)=>{clearTimeout(m),m=setTimeout(g,500),function(e){e.dom.parentNode.querySelector(".editor-controls")||e.dom.parentNode.appendChild(i("div",{class:"editor-controls"},i("button",{onmousedown:t=>{l(e),t.preventDefault()},title:`Run code (${t}Enter)`,"aria-label":"Run code"},"▸"),i("button",{onmousedown:t=>{h(e),t.preventDefault()},title:`Revert code (${t}j)`,"aria-label":"Revert code"},"▫"),i("button",{onmousedown:t=>{p(e.state.facet(s).sandbox),t.preventDefault()},title:`Reset sandbox (${t}Escape)`,"aria-label":"Reset sandbox"},"ø")))}(r)},blur:(t,e)=>{setTimeout(()=>{e.hasFocus||function(t){let e=t.dom.parentNode.querySelector(".editor-controls");e&&e.remove()}(e)},100)}}),hn.updateListener.of(Df(t=>{t.docChanged&&window.localStorage&&localStorage.setItem(d,S.state.doc.toString())},250)),s.of(v)]),S=new hn({state:y,parent:f}),b=f.appendChild(i("div",{class:"sandbox-output","aria-live":"polite"}));return v.output=new Pf.Output(b),"html"!=n||x||(x=v.sandbox="html"+o++,e.setAttribute("data-sandbox",x),c[x]=e),e.style.display="none",window.scrollTo(pageXOffset,a),setTimeout(()=>window.scrollTo(pageXOffset,a),20),S}function l(t){let e=t.state.facet(s);e.output.clear();let i=t.state.doc.toString();(async function(t,e){if(t=t||"null",u.hasOwnProperty(t))return u[t];let i,s={loadFiles:window.page.load_files};if(c.hasOwnProperty(t)){let r=c[t];s.place=t=>function(t,e){let i,s=e.previousSibling;if(s&&"editor-wrap"==s.className?i=s.getBoundingClientRect().bottom:(i=e.getBoundingClientRect().bottom,a(e,"html"),s=e.previousSibling),s.insertBefore(t,s.childNodes[1]),i<50){let t=s.getBoundingClientRect().bottom;window.scrollBy(0,t-i)}}(t,r),e||(i=r.textContent)}let r=await Pf.create(s);return null!=i&&(r.win.document.documentElement.innerHTML=i),u[t]=r,r})(e.sandbox,e.isHTML).then(t=>{e.isHTML?t.setHTML(i,e.output).then(()=>{e.orig.getAttribute("data-focus")&&(t.win.focus(),t.win.document.body.focus())}):t.run(i,e.output).then(i=>{null!=i&&e.meta&&/\bexpr\b/.test(e.meta)&&e.output.empty&&t.out("log",[i])})})}function h(t){let e=t.state.facet(s);t.dispatch({selection:{anchor:0},changes:{from:0,to:t.state.doc.length,insert:e.orig.textContent}})}document.getElementsByTagName("article")[0];let c={};{let t=document.getElementsByClassName("snippet");for(let e=0;e<t.length;e++){let i=t[e];"html"==i.getAttribute("data-language")&&i.getAttribute("data-sandbox")&&(c[i.getAttribute("data-sandbox")]=i)}}let u={};function p(t){if(!u.hasOwnProperty(t))return;let e=u[t].frame;e.parentNode.removeChild(e),delete u[t]}}();let{hash:t}=document.location;if(/^#[phic]_./.test(t)){if(document.getElementById(t.replace(/_/,"-")))document.location.hash=t.replace(/_/,"-");else{let e=/\/[^\/]+\.html/.exec(document.location);e&&(document.location=`https://eloquentjavascript.net/3rd_edition${e[0]}${t}`)}}}const Lf=V.define({combine:t=>t[0]});function Nf(t){let e;if("string"==typeof t)e=t;else for(let i=1;i<=t.lines;i++){let s=t.line(i).text;if(/\S/.test(s)){e=s;break}}return/^[\s\w]*</.test(e)?"html":"javascript"}const Wf=kt.transactionExtender.of(t=>{let e;return t.docChanged&&null==t.startState.facet(Lf).type&&(e=Nf(t.newDoc))!=t.startState.facet(Ga).name?{effects:(i=e,bd.reconfigure("html"==i?vd():Wp()))}:null;var i});function jf(t,e){if(!e)return t;let i,s=/(?:\s|<!--.*?-->)*<script src="([^"]*)"><\/script>/g,r=[];for(;i=s.exec(t);)r.push(i[1]);return e.every(t=>r.indexOf(t)>-1)}function Bf(t,e){let i=document.createElement("option");return i.value=t,i.textContent=e||t,i}function Gf(t){for(let e=0;e<chapterData.length;e++)if(chapterData[e].number==t)return chapterData[e]}function Uf(t,e){let i=t.appendChild(document.createElement("li")).appendChild(document.createElement("a"));i.href="../"+e,i.textContent=e.replace(/^code\//,"")}function Ff(t,e){let i=t.split(".");e||(e=Gf(i[0]));for(let t=0;t<e.exercises.length;t++)if(e.exercises[t].number==i[1])return e.exercises[t]}window.page&&"code"==window.page.type&&(window.codeSandbox=new class{constructor(){this.extensions=[gn.of([{key:"Ctrl-Enter",run:()=>(this.runCode(),!0)},{key:"Cmd-Enter",run:()=>(this.runCode(),!0)}]),Wf],this.editor=new hn({state:Qd("","javascript",[this.extensions,Lf.of({include:[],mode:null})]),parent:document.querySelector("#editor")}),this.output=new Pf.Output(document.querySelector(".sandbox-output")),this.sandbox=null,this.chapters=document.querySelector("#chapters"),chapterData.forEach(t=>{this.chapters.appendChild(Bf(t.number,t.number+". "+t.title)),t.exercises.forEach(e=>{e.chapter=t})}),this.chapters.addEventListener("change",()=>{this.selectChapter(this.chapters.value),document.location.hash="#"+this.chapters.value}),this.per=document.querySelector("#per_chapter"),this.per.addEventListener("change",()=>{this.selectContext(this.per.value),document.location.hash="#"+("box"==this.per.value?this.chapters.value:this.per.value)}),this.fileList=document.querySelector("#files"),this.fileInfo=document.querySelector("#fileInfo"),this.runLocally=document.querySelector("#runLocally"),this.localFileList=document.querySelector("#local-files"),document.querySelector("#run").addEventListener("click",()=>this.runCode()),document.querySelector("#solution").addEventListener("click",()=>{let t=this.editor.state.facet(Lf);this.setEditorState(t.solution,t)}),this.parseFragment()||this.selectChapter(0,"box"),addEventListener("hashchange",()=>this.parseFragment())}setEditorState(t,e){this.editor.setState(Qd(t,e.type||Nf(t),[this.extensions,Lf.of(e)]))}selectContext(t){this.output.clear(),this.clearSandbox();let e,i=Gf(this.chapters.value);if("box"==t){let t=this.chapters.value<20||this.chapters.value>21?"Run code here in the context of Chapter "+i.number:"Code from Node.js chapters can't be run in the browser";t="javascript"==Nf(i.start_code)?"// "+t:"\x3c!-- "+t+" --\x3e",i.start_code&&(t+="\n\n"+i.start_code),this.setEditorState(t,{include:i.include}),e="box"}else{let s=Ff(t,i);if(s.goto)return void(document.location=s.goto);this.setEditorState(s.code,{include:i.include,solution:s.solution,type:s.type}),e="exercise";let r=document.querySelector("#download");r.setAttribute("download","solution"+t+".js"),/\.zip$/.test(s.file)?r.href="../"+s.file:r.href="data:text/plain;charset=UTF-8,"+encodeURIComponent(s.solution)}["box","exercise"].forEach(t=>{document.querySelector("#"+t+"_info").style.display=t==e?"":"none"})}clearSandbox(){this.sandbox&&(this.sandbox.frame.remove(),this.sandbox=null)}runCode(){this.clearSandbox();let t=this.editor.state.doc.toString(),e=this.editor.state.facet(Ga).name,i=this.editor.state.facet(Lf);Pf.create({loadFiles:jf(t,i.include)?[]:i.include,emptyPath:"../",place:"html"==e&&function(t){let e=document.querySelector(".sandbox-output");e.parentNode.insertBefore(t,e)}}).then(i=>{this.sandbox=i,this.output.clear(),"html"==e?i.setHTML(t,this.output):i.run(t,this.output)})}selectChapter(t,e){this.per.textContent="";let i=Gf(t);i.exercises.length?(this.per.appendChild(Bf("box","Select an exercise")),i.exercises.forEach(t=>{let e=i.number+"."+t.number;this.per.appendChild(Bf(e,e+" "+t.name))})):this.per.appendChild(Bf("box","This chapter has no exercises")),this.fileInfo.style.display=this.runLocally.style.display="none",this.fileList.textContent=this.localFileList.textContent="",i.links&&i.links.forEach((t,e)=>{e||(this.runLocally.style.display=""),Uf(this.localFileList,t)}),i.include&&i.include.forEach((t,e)=>{e||(this.fileInfo.style.display=""),/(^|\/)_/.test(t)||Uf(this.fileList,t)}),this.selectContext(e||"box")}parseFragment(){let t,e,i=document.location.hash.slice(1),s=/^(\d+)(?:\.(\d+.*))?$/.exec(i);if(s&&(t=Gf(Number(s[1])),e=t&&s[2]&&Ff(i,t),(!t||s[2]&&!e)&&(s=null)),s){let t=e?i:"box",r=!1;return this.chapters.value!=s[1]&&(this.chapters.value=s[1],this.selectChapter(Number(s[1]),t),r=!0),this.per.value!=t&&(this.per.value=t,r||this.selectContext(t)),!0}}})});

Callers 15

build_code.mjsFile · 0.45
posFunction · 0.45
compareClippedFunction · 0.45
fakeRequireFunction · 0.45
render_html.mjsFile · 0.45
getStartCodeFunction · 0.45
startAndEndFunction · 0.45
transform.mjsFile · 0.45
capitalizeTitleFunction · 0.45
findExerciseFunction · 0.45
ejs.jsFile · 0.45
ofMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected