1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[83643],{4948:(e,t,n)=>{n.d(t,{oQ:()=>et});var i=n(55284),r=n(47621);class s{constructor(e,t,n,i,r,s,o,l,a,h=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=i,this.pos=r,this.score=s,this.buffer=o,this.bufferBase=l,this.curContext=a,this.lookAhead=h,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let i=e.parser.context;return new s(e,[],t,n,n,0,[],0,i?new o(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,i=65535&e,{parser:r}=this.p,s=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),o=r.dynamicPrecedence(i);if(o&&(this.score+=o),0==n){this.pushState(r.getGoto(this.state,i,!0),this.reducePos),i<r.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,s?8:4,!0),this.reduceContext(i,this.reducePos);return}let l=this.stack.length-(n-1)*3-(262144&e?6:0),a=l?this.stack[l-2]:this.p.ranges[0].from,h=this.reducePos-a;h>=2e3&&!(null==(t=this.p.parser.nodeSet.types[i])?void 0:t.isAnonymous)&&(a==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSize<h&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=a,this.p.lastBigReductionSize=h));let c=l?this.stack[l-1]:0,u=this.bufferBase+this.buffer.length-c;if(i<r.minRepeatTerm||131072&e){let e=r.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,a,e,u+4,!0)}if(262144&e)this.state=this.stack[l];else{let e=this.stack[l-3];this.state=r.getGoto(e,i,!0)}for(;this.stack.length>l;)this.stack.pop();this.reduceContext(i,a)}storeNode(e,t,n,i=4,r=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this,i=this.buffer.length;if(0==i&&e.parent&&(i=e.bufferBase-e.parent.bufferBase,e=e.parent),i>0&&0==e.buffer[i-4]&&e.buffer[i-1]>-1){if(t==n)return;if(e.buffer[i-2]>=t){e.buffer[i-2]=n;return}}}if(r&&this.pos!=n){let r=this.buffer.length;if(r>0&&(0!=this.buffer[r-4]||this.buffer[r-1]<0)){let e=!1;for(let t=r;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;r>0&&this.buffer[r-2]>n;)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,i>4&&(i-=4)}this.buffer[r]=e,this.buffer[r+1]=t,this.buffer[r+2]=n,this.buffer[r+3]=i}else this.buffer.push(e,t,n,i)}shift(e,t,n,i){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:r}=this.p;this.pos=i;let s=r.stateFlag(e,1);!s&&(i>n||t<=r.maxNode)&&(this.reducePos=i),this.pushState(e,s?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=r.maxNode&&this.buffer.push(t,n,i,4)}else this.pos=i,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,i,4)}apply(e,t,n,i){65536&e?this.reduce(e):this.shift(e,t,n,i)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(t,i),this.buffer.push(n,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(;t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),i=e.bufferBase+t;for(;e&&i==e.bufferBase;)e=e.parent;return new s(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new l(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if((65536&n)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let i=0,r;i<t.length;i+=2)(r=t[i+1])!=this.state&&this.p.parser.hasAction(r,e)&&n.push(t[i],r);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let i=t[e+1];n.some((e,t)=>1&t&&e==i)||n.push(t[e],i)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let i=t[e+1];if(i==this.state)continue;let r=this.split();r.pushState(i,this.pos),r.storeNode(0,r.pos,r.pos,4,!0),r.shiftContext(t[e],this.pos),r.reducePos=this.pos,r.score-=200,n.push(r)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((65536&t)==0)return!1;if(!e.validAction(this.state,t)){let n=t>>19,i=65535&t,r=this.stack.length-3*n;
vendor: 5,380 bytes, line 1
1if(r<0||0>e.getGoto(this.stack[r],i,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(i,r)=>{if(!t.includes(i))return t.push(i),e.allActions(i,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-r;if(n>1){let i=65535&t,r=this.stack.length-3*n;if(r>=0&&e.getGoto(this.stack[r],i,!1)>=0)return n<<19|65536|i}}else{let e=n(t,r+1);if(null!=e)return e}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new o(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class o{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class l{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}class a{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new a(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new a(this.stack,this.pos,this.index)}}function h(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let i=0,r=0;i<e.length;){let s=0;for(;;){let t=e.charCodeAt(i++),n=!1;if(126==t){s=65535;break}t>=92&&t--,t>=34&&t--;let r=t-32;if(r>=46&&(r-=46,n=!0),s+=r,n)break;s*=46}n?n[r++]=s:n=new t(s)}return n}class c{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let u=new c;class f{constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=u,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,i=this.rangeIndex,r=this.pos+e;for(;r<n.from;){if(!i)return null;let e=this.ranges[--i];r-=n.from-e.to,n=e}for(;t<0?r>n.to:r>=n.to;){if(i==this.ranges.length-1)return null;let e=this.ranges[++i];r+=e.from-n.to,n=e}return r}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,i;if(t>=0&&t<this.chunk.length)n=this.pos+e,i=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(null==t)return -1;if((n=t)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),i=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),i}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}
1readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=u,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let i of this.ranges){if(i.from>=t)break;i.to>e&&(n+=this.input.read(Math.max(i.from,e),Math.min(i.to,t)))}return n}}class d{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;g(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}d.prototype.contextual=d.prototype.fallback=d.prototype.extend=!1;class p{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?h(e):e}token(e,t){let n=e.pos,i=0;for(;;){let n=e.next<0,r=e.resolveOffset(1,1);if(g(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!n&&i++,null==r)break;e.reset(r,e.token)}i&&(e.reset(n,e.token),e.acceptToken(this.elseToken,i))}}p.prototype.contextual=d.prototype.fallback=d.prototype.extend=!1;class m{constructor(e,t={}){this.token=e,this.contextual=!!t.contextual,this.fallback=!!t.fallback,this.extend=!!t.extend}}function g(e,t,n,i,r,s){let o=0,l=1<<i,{dialect:a}=n.p.parser;e:for(;(l&e[o])!=0;){let n=e[o+1];for(let i=o+3;i<n;i+=2)if((e[i+1]&l)>0){let n=e[i];if(a.allows(n)&&(-1==t.token.value||t.token.value==n||function(e,t,n,i){let r=v(n,i,t);return r<0||v(n,i,e)<r}(n,t.token.value,r,s))){t.acceptToken(n);break}}let i=t.next,h=0,c=e[o+2];if(t.next<0&&c>h&&65535==e[n+3*c-3]){o=e[n+3*c-1];continue}for(;h<c;){let r=h+c>>1,s=n+r+(r<<1),l=e[s],a=e[s+1]||65536;if(i<l)c=r;else if(i>=a)h=r+1;else{o=e[s+2],t.advance();continue e}}break}}function v(e,t,n){for(let i=t,r;65535!=(r=e[i]);i++)if(r==n)return i-t;return -1}let x=void 0!==r&&r.env&&/\bparse\b/.test(r.env.LOG),k=null;function b(e,t,n){let r=e.cursor(i.Qj.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class y{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?b(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?b(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let s=n.children[r],o=this.start[t]+n.positions[r];if(o>e)return this.nextStart=o,null;if(s instanceof i.PH){if(o==e){if(o<this.safeFrom)return null;let e=o+s.length;if(e<=this.safeTo){let t=s.prop(i.uY.lookAhead);if(!t||e+t<this.fragment.to)return s}}this.index[t]++,o+s.length>=Math.max(this.safeFrom,e)&&(this.trees.push(s),this.start.push(o),this.index.push(0))}else this.index[t]++,this.nextStart=o+s.length}}}class O{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new c)}getActions(e){let t=0,n=null,{parser:i}=e.p,{tokenizers:r}=i,s=i.stateSlot(e.state,3),o=e.curContext?e.curContext.hash:0,l=0;for(let i=0;i<r.length;i++){if((1<<i&s)==0)continue;let a=r[i],h=this.tokens[i];if((!n||a.fallback)&&((a.contextual||h.start!=e.pos||h.mask!=s||h.context!=o)&&(this.updateCachedToken(h,a,e),h.mask=s,h.context=o),h.lookAhead>
1h.end+25&&(l=Math.max(h.lookAhead,l)),0!=h.value)){let i=t;if(h.extended>-1&&(t=this.addActions(e,h.extended,h.end,t)),t=this.addActions(e,h.value,h.end,t),!a.extend&&(n=h,t>i))break}}for(;this.actions.length>t;)this.actions.pop();return l&&e.setLookAhead(l),n||e.pos!=this.stream.end||((n=new c).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new c,{pos:n,p:i}=e;return t.start=n,t.end=Math.min(n+1,i.stream.end),t.value=n==i.stream.end?i.parser.eofTerm:0,t}updateCachedToken(e,t,n){let i=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(i,e),n),e.value>-1){let{parser:t}=n.p;for(let i=0;i<t.specialized.length;i++)if(t.specialized[i]==e.value){let r=t.specializers[i](this.stream.read(e.start,e.end),n);if(r>=0&&n.p.parser.dialect.allows(r>>1)){(1&r)==0?e.value=r>>1:e.extended=r>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,t,n,i){for(let t=0;t<i;t+=3)if(this.actions[t]==e)return i;return this.actions[i++]=e,this.actions[i++]=t,this.actions[i++]=n,i}addActions(e,t,n,i){let{state:r}=e,{parser:s}=e.p,{data:o}=s;for(let e=0;e<2;e++)for(let l=s.stateSlot(r,e?2:1);;l+=3){if(65535==o[l])if(1==o[l+1])l=D(o,l+2);else{0==i&&2==o[l+1]&&(i=this.putAction(D(o,l+2),t,n,i));break}o[l]==t&&(i=this.putAction(D(o,l+1),t,n,i))}return i}}class w{constructor(e,t,n,i){this.parser=e,this.input=t,this.ranges=i,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 f(t,i),this.tokens=new O(e,this.stream),this.topTerm=e.top[1];let{from:r}=i[0];this.stacks=[s.start(this,e.top[0],r)],this.fragments=n.length&&this.stream.end-r>4*e.bufferLength?new y(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,i=this.minStackPos,r=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;s<n.length;s++){let o=n[s];for(;;){if(this.tokens.mainToken=null,o.pos>i)r.push(o);else{if(this.advanceStack(o,r,n))continue;e||(e=[],t=[]),e.push(o);let i=this.tokens.getMainToken(o);t.push(i.value,i.end)}break}}if(!r.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return x&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw x&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+i);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,r);if(n)return x&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(r.length>e)for(r.sort((e,t)=>t.score-e.score);r.length>e;)r.pop();r.some(e=>e.reducePos>i)&&this.recovering--}
vendor: 6,756 bytes, line 1
1else if(r.length>1){t:for(let e=0;e<r.length-1;e++){let t=r[e];for(let n=e+1;n<r.length;n++){let i=r[n];if(t.sameState(i)||t.buffer.length>500&&i.buffer.length>500)if((t.score-i.score||t.buffer.length-i.buffer.length)>0)r.splice(n--,1);else{r.splice(e--,1);continue t}}}r.length>12&&(r.sort((e,t)=>t.score-e.score),r.splice(12,r.length-12))}this.minStackPos=r[0].pos;for(let e=1;e<r.length;e++)r[e].pos<this.minStackPos&&(this.minStackPos=r[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:s}=this,o=x?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let l=this.fragments.nodeAt(r);l;){let r=this.parser.nodeSet.types[l.type.id]==l.type?s.getGoto(e.state,l.type.id):-1;if(r>-1&&l.length&&(!t||(l.prop(i.uY.contextHash)||0)==n))return e.useNode(l,r),x&&console.log(o+this.stackID(e)+` (via reuse of ${s.getName(l.type.id)})`),!0;if(!(l instanceof i.PH)||0==l.children.length||l.positions[0]>0)break;let a=l.children[0];if(a instanceof i.PH&&0==l.positions[0])l=a;else break}}let l=s.stateSlot(e.state,4);if(l>0)return e.reduce(l),x&&console.log(o+this.stackID(e)+` (via always-reduce ${s.getName(65535&l)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let a=this.tokens.getActions(e);for(let i=0;i<a.length;){let l=a[i++],h=a[i++],c=a[i++],u=i==a.length||!n,f=u?e:e.split(),d=this.tokens.mainToken;if(f.apply(l,h,d?d.start:f.pos,c),x&&console.log(o+this.stackID(f)+` (via ${(65536&l)==0?"shift":`reduce of ${s.getName(65535&l)}`} for ${s.getName(h)} @ ${r}${f==e?"":", split"})`),u)return!0;f.pos>r?t.push(f):n.push(f)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return S(e,t),!0}}runRecovery(e,t,n){let i=null,r=!1;for(let s=0;s<e.length;s++){let o=e[s],l=t[s<<1],a=t[(s<<1)+1],h=x?this.stackID(o)+" -> ":"";if(o.deadEnd&&(r||(r=!0,o.restart(),x&&console.log(h+this.stackID(o)+" (restarted)"),this.advanceFully(o,n))))continue;let c=o.split(),u=h;for(let e=0;e<10&&c.forceReduce()&&(x&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)x&&(u=this.stackID(c)+" -> ");for(let e of o.recoverByInsert(l))x&&console.log(h+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>o.pos?(a==o.pos&&(a++,l=0),o.recoverByDelete(l,a),x&&console.log(h+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),S(o,n)):(!i||i.score<c.score)&&(i=c)}return i}stackToTree(e){return e.close(),i.PH.build({buffer:a.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(k||(k=new WeakMap)).get(e);return t||k.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function S(e,t){for(let n=0;n<t.length;n++){let i=t[n];if(i.pos==e.pos&&i.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class P{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}let A=e=>e;class C{constructor(e){this.start=e.start,this.shift=e.shift||A,this.reduce=e.reduce||A,this.reuse=e.reuse||A,this.hash=e.hash||(()=>0),this.strict=!1!==e.strict}}class R extends i.iX{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),r=[];for(let e=0;e<t.length;e++)r.push([]);function s(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=i.uY[e]);for(let n=1;n<t.length;){let i=t[n++];if(i>=0)s(i,e,t[n++]);else{let r=t[n+-i];for(let o=-i;o>0;o--)s(t[n++],e,r);n++}}}this.nodeSet=new i.fI(t.map((t,s)=>i.Z6.define({name:s>=this.minRepeatTerm?void 0:t,id:s,props:r[s],top:n.indexOf(s)>-1,error:0==s,skipped:e.skippedNodes&&e.skippedNodes.indexOf(s)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=i.cF;let o=h(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(T),this.states=h(e.states,Uint32Array),this.data=h(e.stateData),this.goto=h(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new d(o,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let i=new w(this,e,t,n);for(let r of this.wrappers)i=r(i,e,t,n);return i}getGoto(e,t,n=!1){let i=this.goto;if(t>=i[0])return -1;for(let r=i[t+1];;){let t=i[r++],s=1&t,o=i[r++];if(s&&n)return o;for(let n=r+(t>>1);r<n;r++)if(i[r]==e)return o;if(s)return -1}}hasAction(e,t){let n=this.data;for(let i=0;i<2;i++)for(let r=this.stateSlot(e,i?2:1),s;;r+=3){if(65535==(s=n[r]))if(1==n[r+1])s=n[r=D(n,r+2)];else if(2==n[r+1])return D(n,r+2);else break;if(s==t||0==s)return D(n,r+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),i=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==i;n+=3){if(65535==this.data[n])if(1==this.data[n+1])n=D(this.data,n+2);else break;i=t(D(this.data,n+1))}return i}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n])if(1==this.data[n+1])n=D(this.data,n+2);else break;if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(R.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,i)=>{let r=e.specializers.find(e=>e.from==n.external);
1if(!r)return n;let s=Object.assign(Object.assign({},n),{external:r.to});return t.specializers[i]=T(s),s})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let i of e.split(" ")){let e=t.indexOf(i);e>=0&&(n[e]=!0)}let i=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],r;65535!=(r=this.data[n++]);)(i||(i=new Uint8Array(this.maxTerm+1)))[r]=1;return new P(e,n,i)}static deserialize(e){return new R(e)}}function D(e,t){return e[t]|e[t+1]<<16}function T(e){if(e.external){let t=+!!e.extend;return(n,i)=>e.external(n,i)<<1|t}return e.get}var I=n(97823);class M{constructor(e,t,n){this.parent=e,this.depth=t,this.type=n,this.hash=(e?e.hash+e.hash<<8:0)+t+(t<<4)+n}}function E(e,t){for(let n=0,i=t-e.pos-1;;i--,n++){let t=e.peek(i);if(N(t)||-1==t)return n}}function Q(e){return 32==e||9==e}function N(e){return 10==e||13==e}function B(e){var t;return e<0||Q(t=e)||N(t)}M.top=new M(null,-1,0);let L=new C({start:M.top,reduce:(e,t)=>3==e.type&&(20==t||34==t)?e.parent:e,shift(e,t,n,i){if(3==t)return new M(e,E(i,i.pos),1);if(65==t||5==t)return new M(e,E(i,i.pos),2);if(63==t)return e.parent;if(19==t||33==t)return new M(e,0,3);if(13==t&&4==e.type)return e.parent;if(47==t){let t=/[1-9]/.exec(i.read(i.pos,n.pos));if(t)return new M(e,e.depth+ +t[0],4)}return e},hash:e=>e.hash});function F(e,t,n=0){return e.peek(n)==t&&e.peek(n+1)==t&&e.peek(n+2)==t&&B(e.peek(n+3))}let _=new m((e,t)=>{if(-1==e.next&&t.canShift(64))return e.acceptToken(64);let n=e.peek(-1);if((N(n)||n<0)&&3!=t.context.type){if(F(e,45))if(!t.canShift(63))return e.acceptToken(1,3);else e.acceptToken(63);if(F(e,46))if(!t.canShift(63))return e.acceptToken(2,3);else e.acceptToken(63);let n=0;for(;32==e.next;)n++,e.advance();!(n<t.context.depth)&&(n!=t.context.depth||1!=t.context.type||45==e.next&&B(e.peek(1)))||-1==e.next||N(e.next)||35==e.next||e.acceptToken(63,-n)}},{contextual:!0}),z=new m((e,t)=>{if(3==t.context.type){63==e.next&&(e.advance(),B(e.next)&&e.acceptToken(7));return}if(45==e.next)e.advance(),B(e.next)&&e.acceptToken(1==t.context.type&&t.context.depth==E(e,e.pos-1)?4:3);else if(63==e.next)e.advance(),B(e.next)&&e.acceptToken(2==t.context.type&&t.context.depth==E(e,e.pos-1)?6:5);else{let n=e.pos;for(;;)if(Q(e.next)){if(e.pos==n)return;e.advance()}else if(33==e.next)j(e);else if(38==e.next)W(e);else if(42==e.next){W(e);break}else if(39==e.next||34==e.next){if(q(e,!0))break;return}else if(91==e.next||123==e.next){if(!function(e){for(let t=[],n=e.pos+1024;;)if(91==e.next||123==e.next)t.push(e.next),e.advance();else if(39==e.next||34==e.next){if(!q(e,!0))return!1}else if(93==e.next||125==e.next){if(t[t.length-1]!=e.next-2)return!1;if(t.pop(),e.advance(),!t.length)return!0}else{if(e.next<0||e.pos>n||N(e.next))return!1;e.advance()}}(e))return;break}else{Z(e,!0,!1,0);break}for(;Q(e.next);)e.advance();if(58==e.next){if(e.pos==n&&t.canShift(29))return;B(e.peek(1))&&e.acceptTokenTo(2==t.context.type&&t.context.depth==E(e,n)?66:65,n)}}},{contextual:!0});function $(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function X(e,t){var n;return 37==e.next?(e.advance(),$(e.next)&&e.advance(),$(e.next)&&e.advance(),!0):(!!((n=e.next)>32)&&!!(n<127)&&34!=n&&37!=n&&44!=n&&60!=n&&62!=n&&92!=n&&94!=n&&96!=n&&123!=n&&124!=n&&125!=n||!!t&&44==e.next)&&(e.advance(),!0)}function j(e){if(e.advance(),60==e.next){for(e.advance();;)if(!X(e,!0)){62==e.next&&e.advance();break}}else for(;X(e,!1););}function W(e){for(e.advance();!B(e.next)&&"f"!=U(e.next);)e.advance()}function q(e,t){let n=e.next,i=!1,r=e.pos;for(e.advance();;){let s=e.next;if(s<0)break;if(e.advance(),s==n)if(39==s)if(39==e.next)e.advance();else break;else break;else if(92==s&&34==n)e.next>=0&&e.advance();else if(N(s)){if(t)return!1;i=!0}else if(t&&e.pos>=r+1024)return!1}return!i}function U(e){return e<33?"u":e>125?"s":"iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"[e-33]}function V(e,t){let n=U(e);return"u"!=n&&!(t&&"f"==n)}function Z(e,t,n,i){if(!("s"==U(e.next)||(63==e.next||58==e.next||45==e.next)&&V(e.peek(1),n)))return!1;e.advance();let r=e.pos;for(;;){var s;let o=e.next,l=0,a=i+1;for(;Q(s=o)||N(s);){if(N(o)){if(t)return!1;a=0}else a++;o=e.peek(++l)}if(!(o>=0&&(58==o?V(e.peek(l+1),n):35==o?32!=e.peek(l-1):V(o,n)))||!n&&a<=i||0==a&&!n&&(F(e,45,l)||F(e,46,l)))break;if(t&&"f"==U(o))return!1;for(let t=l;t>=0;t--)e.advance();if(t&&e.pos>r+1024)return!1}return!0}let G=new m((e,t)=>{if(33==e.next)j(e),e.acceptToken(12);else if(38==e.next||42==e.next){let t=38==e.next?10:11;W(e),e.acceptToken(t)}else 39==e.next||34==e.next?(q(e,!1),e.acceptToken(9)):Z(e,!1,3==t.context.type,t.context.depth)&&e.acceptToken(8)}),Y=new m((e,t)=>{let n=4==t.context.type?t.context.depth:-1,i=e.pos;e:for(;;){let r=0,s=e.next;for(;32==s;)s=e.peek(++r);if(!r&&(F(e,45,r)||F(e,46,r))||!N(s)&&(n<0&&(n=Math.max(t.context.depth+1,r)),r<n))break;for(;;){if(e.next<0)break e;let t=N(e.next);if(e.advance(),t)continue e;i=e.pos}}e.acceptTokenTo(13,i)}),H=(0,I.pn)({DirectiveName:I._A.keyword,DirectiveContent:I._A.attributeValue,"DirectiveEnd DocEnd":I._A.meta,QuotedLiteral:I._A.string,BlockLiteralHeader:I._A.special(I._A.string),BlockLiteralContent:I._A.content,Literal:I._A.content,"Key/Literal Key/QuotedLiteral":I._A.definition(I._A.propertyName),"Anchor Alias":I._A.labelName,Tag:I._A.typeName,Comment:I._A.lineComment,": , -":I._A.separator,"?":I._A.punctuation,"[ ]":I._A.squareBracket,"{ }":I._A.brace}),J=R.deserialize({version:14,states:"5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-s
1QgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<<Hh<<HhOOQP<<Hn<<HnO:zOaO<<HnOOQR1G/`1G/`OOQR1G/a1G/aOOQPAN>YAN>Y",stateData:";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O",goto:",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv",nodeNames:"â DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document",maxTerm:74,context:L,nodeProps:[["isolate",-3,8,9,14,""],["openedBy",18,"[",32,"{"],["closedBy",19,"]",33,"}"]],propSources:[H],skippedNodes:[0],repeatNodeCount:6,tokenData:"-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}
1![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P",tokenizers:[_,z,G,Y,0,1],topRules:{Stream:[0,15]},tokenPrec:0});var K=n(66666);let ee=K.bj.define({name:"yaml",parser:J.configure({props:[K.Oh.add({Stream:e=>{for(let t=e.node.resolve(e.pos,-1);t&&t.to>=e.pos;t=t.parent){if("BlockLiteralContent"==t.name&&t.from<t.to)return e.baseIndentFor(t);if("BlockLiteral"==t.name)return e.baseIndentFor(t)+e.unit;if("BlockSequence"==t.name||"BlockMapping"==t.name)return e.column(t.from,1);if("QuotedLiteral"==t.name)break;if("Literal"==t.name){let n=e.column(t.from,1);if(n==e.lineIndent(t.from,1))return n;if(t.to>e.pos)break}}return null},FlowMapping:(0,K.Ay)({closing:"}"}),FlowSequence:(0,K.Ay)({closing:"]"})}),K.b_.add({"FlowMapping FlowSequence":K.yd,"Item Pair BlockLiteral":(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*[\]\}]$/}});function et(){return new K.Yy(ee)}I._A.meta},6247:(e,t,n)=>{function i(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i];"string"==typeof r?e.setAttribute(i,r):null!=r&&(e[i]=r)}t++}for(;t<arguments.length;t++)!function e(t,n){if("string"==typeof n)t.appendChild(document.createTextNode(n));else if(null==n);else if(null!=n.nodeType)t.appendChild(n);else if(Array.isArray(n))for(var i=0;i<n.length;i++)e(t,n[i]);else throw RangeError("Unsupported child node: "+n)}(e,arguments[t]);return e}n.d(t,{A:()=>i})},7873:(e,t,n)=>{n.d(t,{bL:()=>a});var i=n(81626),r=n(72002),s=n(56658),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),l=i.forwardRef((e,t)=>(0,s.jsx)(r.sG.span,{...e,ref:t,style:{...o,...e.style}}));l.displayName="VisuallyHidden";var a=l},9142:(e,t,n)=>{n.d(t,{Bc:()=>eh,OO:()=>em,wm:()=>ei,yU:()=>ep});var i=n(77303),r=n(67456),s=n(66666);class o{constructor(e,t,n,i){this.state=e,this.pos=t,this.explicit=n,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(e){let t=(0,s.mv)(this.state).resolveInner(this.pos,-1);for(;t&&0>e.indexOf(t.name);)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),i=t.text.slice(n-t.from,this.pos-t.from),r=i.search(c(e,!1));return r<0?null:{from:n+r,to:this.pos,text:i.slice(r)}}get aborted(){return null==this.abortListeners}addEventListener(e,t,n){"abort"==e&&this.abortListeners&&(this.abortListeners.push(t),n&&n.onDocChange&&(this.abortOnDocChange=!0))}}function l(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),`[${n?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}class a{constructor(e,t,n,i){this.completion=e,this.source=t,this.match=n,this.score=i}}function h(e){return e.selection.main.from}function c(e,t){var n;let{source:i}=e,r=t&&"^"!=i[0],s="$"!=i[i.length-1];return r||s?RegExp(`${r?"^":""}(?:${i})${s?"$":""}`,null!=(n=e.flags)?n:e.ignoreCase?"i":""):e}let u=i.YH.define(),f=new WeakMap;function d(e){if(!Array.isArray(e))return e;let t=f.get(e);return t||f.set(e,t=function(e){let t=e.map(e=>"string"==typeof e?{label:e}:e),[n,i]=t.every(e=>/^\w+$/.test(e.label))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e<i.length;e++)n[i[e]]=!0}let i=l(t)+l(n)+"*$";return[RegExp("^"+i),new RegExp(i)]}(t);return e=>{let r=e.matchBefore(i);return r||e.explicit?{from:r?r.from:e.pos,options:t,validFor:n}:null}}(e)),t}let p=i.Pe.define(),m=i.Pe.define();class g{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t<e.length;){let n=(0,i.vS)(e,t),r=(0,i.Fh)(n);this.chars.push(n);let s=e.slice(t,t+r),o=s.toUpperCase();this.folded.push((0,i.vS)(o==s?s.toLowerCase():o,0)),t+=r}
1this.astral=e.length!=this.chars.length}ret(e,t){return this.score=e,this.matched=t,this}match(e){if(0==this.pattern.length)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:t,folded:n,any:r,precise:s,byWord:o}=this;if(1==t.length){let r=(0,i.vS)(e,0),s=(0,i.Fh)(r),o=s==e.length?0:-100;if(r==t[0]);else{if(r!=n[0])return null;o+=-200}return this.ret(o,[0,s])}let l=e.indexOf(this.pattern);if(0==l)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let a=t.length,h=0;if(l<0){for(let s=0,o=Math.min(e.length,200);s<o&&h<a;){let o=(0,i.vS)(e,s);(o==t[h]||o==n[h])&&(r[h++]=s),s+=(0,i.Fh)(o)}if(h<a)return null}let c=0,u=0,f=!1,d=0,p=-1,m=-1,g=/[a-z]/.test(e),v=!0;for(let r=0,h=Math.min(e.length,200),x=0;r<h&&u<a;){let h=(0,i.vS)(e,r);l<0&&(c<a&&h==t[c]&&(s[c++]=r),d<a&&(h==t[d]||h==n[d]?(0==d&&(p=r),m=r+1,d++):d=0));let k,b=h<255?h>=48&&h<=57||h>=97&&h<=122?2:+(h>=65&&h<=90):(k=(0,i.MK)(h))!=k.toLowerCase()?1:2*(k!=k.toUpperCase());(!r||1==b&&g||0==x&&0!=b)&&(t[u]==h||n[u]==h&&(f=!0)?o[u++]=r:o.length&&(v=!1)),x=b,r+=(0,i.Fh)(h)}return u==a&&0==o[0]&&v?this.result(-100+(f?-200:0),o,e):d==a&&0==p?this.ret(-200-e.length+(m==e.length?0:-100),[0,m]):l>-1?this.ret(-700-e.length,[l,l+this.pattern.length]):d==a?this.ret(-900-e.length,[p,m]):u==a?this.result(-100+(f?-200:0)+-700+(v?0:-1100),o,e):2==t.length?null:this.result((r[0]?-700:0)+-200+-1100,r,e)}result(e,t,n){let r=[],s=0;for(let e of t){let t=e+(this.astral?(0,i.Fh)((0,i.vS)(n,e)):1);s&&r[s-1]==e?r[s-1]=t:(r[s++]=e,r[s++]=t)}return this.ret(e-n.length,r)}}class v{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let t=e.slice(0,this.pattern.length),n=t==this.pattern?0:t.toLowerCase()==this.folded?-200:null;return null==n?null:(this.matched=[0,t.length],this.score=n+(e.length==this.pattern.length?0:-100),this)}}let x=i.sj.define({combine:e=>(0,i.QR)(e,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:b,filterStrict:!1,compareCompletions:(e,t)=>(e.sortText||e.label).localeCompare(t.sortText||t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>k(e(n),t(n)),optionClass:(e,t)=>n=>k(e(n),t(n)),addToOptions:(e,t)=>e.concat(t),filterStrict:(e,t)=>e||t})});function k(e,t){return e?t?e+" "+t:e:t}function b(e,t,n,i,s,o){let l=e.textDirection==r.OP.RTL,a=l,h=!1,c="top",u,f,d=t.left-s.left,p=s.right-t.right,m=i.right-i.left,g=i.bottom-i.top;if(a&&d<Math.min(m,p)?a=!1:!a&&p<Math.min(m,d)&&(a=!0),m<=(a?d:p))u=Math.max(s.top,Math.min(n.top,s.bottom-g))-t.top,f=Math.min(400,a?d:p);else{h=!0,f=Math.min(400,(l?t.right:s.right-t.left)-30);let e=s.bottom-t.bottom;e>=g||e>t.top?u=n.bottom-t.top:(c="bottom",u=t.bottom-n.top)}let v=(t.bottom-t.top)/o.offsetHeight,x=(t.right-t.left)/o.offsetWidth;return{style:`${c}: ${u/v}px; max-width: ${f/x}px`,class:"cm-completionInfo-"+(h?l?"left-narrow":"right-narrow":a?"left":"right")}}let y=i.Pe.define();function O(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let i=Math.floor((e-t)/n);return{from:e-(i+1)*n,to:e-i*n}}class w{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let i=e.state.field(t),{options:r,selected:s}=i.open,o=e.state.facet(x);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map(e=>"cm-completionIcon-"+e)),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,i){let r=document.createElement("span");
vendor: 2,982 bytes, line 1
1r.className="cm-completionLabel";let s=e.displayLabel||e.label,o=0;for(let e=0;e<i.length;){let t=i[e++],n=i[e++];t>o&&r.appendChild(document.createTextNode(s.slice(o,t)));let l=r.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(s.slice(t,n))),l.className="cm-completionMatchedText",o=n}return o<s.length&&r.appendChild(document.createTextNode(s.slice(o))),r},position:50},{render(e){if(!e.detail)return null;let t=document.createElement("span");return t.className="cm-completionDetail",t.textContent=e.detail,t},position:80}),t.sort((e,t)=>e.position-t.position).map(e=>e.render)}(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=O(r.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",n=>{let{options:i}=e.state.field(t).open;for(let t=n.target,r;t&&t!=this.dom;t=t.parentNode)if("LI"==t.nodeName&&(r=/-(\d+)$/.exec(t.id))&&+r[1]<i.length){this.applyCompletion(e,i[+r[1]]),n.preventDefault();return}if(n.target==this.list){let t=this.list.classList.contains("cm-completionListIncompleteTop")&&n.clientY<this.list.firstChild.getBoundingClientRect().top?this.range.from-1:this.list.classList.contains("cm-completionListIncompleteBottom")&&n.clientY>this.list.lastChild.getBoundingClientRect().bottom?this.range.to:null;null!=t&&(e.dispatch({effects:y.of(t)}),n.preventDefault())}}),this.dom.addEventListener("focusout",t=>{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(x).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:m.of(null)})}),this.showOptions(r,i.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var t;let n=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=i){let{options:r,selected:s,disabled:o}=n.open;i.open&&i.open.options==r||(this.range=O(r.length,s,e.state.facet(x).maxRenderedOptions),this.showOptions(r,n.id)),this.updateSel(),o!=(null==(t=i.open)?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;(t.selected>-1&&t.selected<this.range.from||t.selected>=this.range.to)&&(this.range=O(t.options.length,t.selected,this.view.state.facet(x).maxRenderedOptions),this.showOptions(t.options,e.id));let n=this.updateSelectedOption(t.selected);if(n){this.destroyInfo();
1let{completion:i}=t.options[t.selected],{info:s}=i;if(!s)return;let o="string"==typeof s?document.createTextNode(s):s(i);if(!o)return;"then"in o?o.then(t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,i)}).catch(e=>(0,r.c_)(this.view.state,e,"completion info")):(this.addInfoPane(o,i),n.setAttribute("aria-describedby",this.info.id))}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",n.id="cm-completionInfo-"+Math.floor(65535*Math.random()).toString(16),null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:i}=e;n.appendChild(t),this.infoDestroy=i||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){var t,n;let i,r,s,o=null;for(let t=this.list.firstChild,n=this.range.from;t;t=t.nextSibling,n++)"LI"==t.nodeName&&t.id?n==e?t.hasAttribute("aria-selected")||(t.setAttribute("aria-selected","true"),o=t):t.hasAttribute("aria-selected")&&(t.removeAttribute("aria-selected"),t.removeAttribute("aria-describedby")):n--;return o&&(t=this.list,n=o,i=t.getBoundingClientRect(),r=n.getBoundingClientRect(),s=i.height/t.offsetHeight,r.top<i.top?t.scrollTop-=(i.top-r.top)/s:r.bottom>i.bottom&&(t.scrollTop+=(r.bottom-i.bottom)/s)),o}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),r=this.space;if(!r){let e=this.dom.ownerDocument.documentElement;r={left:0,top:0,right:e.clientWidth,bottom:e.clientHeight}}return i.top>Math.min(r.bottom,t.bottom)-10||i.bottom<Math.max(r.top,t.top)+10?null:this.view.state.facet(x).positionInfo(this.view,t,i,n,r,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,t,n){let i=document.createElement("ul");i.id=t,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions")),i.addEventListener("mousedown",e=>{e.target==i&&e.preventDefault()});let r=null;for(let s=n.from;s<n.to;s++){let{completion:o,match:l}=e[s],{section:a}=o;if(a){let e="string"==typeof a?a:a.name;e!=r&&(s>n.from||0==n.from)&&(r=e,"string"!=typeof a&&a.header?i.appendChild(a.header(a)):i.appendChild(document.createElement("completion-section")).textContent=e)}let h=i.appendChild(document.createElement("li"));h.id=t+"-"+s,h.setAttribute("role","option");let c=this.optionClass(o);for(let e of(c&&(h.className=c),this.optionContent)){let t=e(o,this.view.state,this.view,l);t&&h.appendChild(t)}}return n.from&&i.classList.add("cm-completionListIncompleteTop"),n.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function S(e){return 100*(e.boost||0)+10*!!e.apply+5*!!e.info+ +!!e.type}class P{constructor(e,t,n,i,r,s){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=i,this.selected=r,this.disabled=s}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new P(this.options,D(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,i,r,s){if(i&&!s&&e.some(e=>e.isPending))return i.setDisabled();let o=function(e,t){let n=[],i=null,r=null,s=e=>{n.push(e);let{section:t}=e.completion;if(t){i||(i=[]);let e="string"==typeof t?t:t.name;i.some(t=>t.name==e)||i.push("string"==typeof t?{name:e}:t)}},o=t.facet(x);for(let i of e)if(i.hasResult()){let e=i.result.getMatch;if(!1===i.result.filter)for(let t of i.result.options)s(new a(t,i.source,e?e(t):[],1e9-n.length));else{let n=t.sliceDoc(i.from,i.to),l,h=o.filterStrict?new v(n):new g(n);for(let t of i.result.options)if(l=h.match(t.label)){let n=t.displayLabel?e?e(t,l.matched):[]:l.matched,o=l.score+(t.boost||0);if(s(new a(t,i.source,n,o)),"object"==typeof t.section&&"dynamic"===t.section.rank){let{name:e}=t.section;r||(r=Object.create(null)),r[e]=Math.max(o,r[e]||-1e9)}}}}if(i){let e=Object.create(null),t=0;for(let n of i.sort((e,t)=>
1("dynamic"===e.rank&&"dynamic"===t.rank?r[t.name]-r[e.name]:0)||("number"==typeof e.rank?e.rank:1e9)-("number"==typeof t.rank?t.rank:1e9)||(e.name<t.name?-1:1)))t-=1e5,e[n.name]=t;for(let t of n){let{section:n}=t.completion;n&&(t.score+=e["string"==typeof n?n:n.name])}}let l=[],h=null,c=o.compareCompletions;for(let e of n.sort((e,t)=>t.score-e.score||c(e.completion,t.completion))){let t=e.completion;h&&h.label==t.label&&h.detail==t.detail&&(null==h.type||null==t.type||h.type==t.type)&&h.apply==t.apply&&h.boost==t.boost?S(e.completion)>S(h)&&(l[l.length-1]=e):l.push(e),h=e.completion}return l}(e,t);if(!o.length)return i&&e.some(e=>e.isPending)?i.setDisabled():null;let l=t.facet(x).selectOnOpen?0:-1;if(i&&i.selected!=l&&-1!=i.selected){let e=i.options[i.selected].completion;for(let t=0;t<o.length;t++)if(o[t].completion==e){l=t;break}}return new P(o,D(n,l),{pos:e.reduce((e,t)=>t.hasResult()?Math.min(e,t.from):e,1e8),create:L,above:r.aboveCursor},i?i.timestamp:Date.now(),l,!1)}map(e){return new P(this.options,this.attrs,{...this.tooltip,pos:e.mapPos(this.tooltip.pos)},this.timestamp,this.selected,this.disabled)}setDisabled(){return new P(this.options,this.attrs,this.tooltip,this.timestamp,this.selected,!0)}}class A{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new A(T,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(x),i=(n.override||t.languageDataAt("autocomplete",h(t)).map(d)).map(t=>(this.active.find(e=>e.source==t)||new M(t,+!!this.active.some(e=>0!=e.state))).update(e,n));i.length==this.active.length&&i.every((e,t)=>e==this.active[t])&&(i=this.active);let r=this.open,s=e.effects.some(e=>e.is(Q));for(let o of(r&&e.docChanged&&(r=r.map(e.changes)),e.selection||i.some(t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to))||!function(e,t){if(e==t)return!0;for(let n=0,i=0;;){for(;n<e.length&&!e[n].hasResult();)n++;for(;i<t.length&&!t[i].hasResult();)i++;let r=n==e.length,s=i==t.length;if(r||s)return r==s;if(e[n++].result!=t[i++].result)return!1}}(i,this.active)||s?r=P.build(i,t,this.id,r,n,s):r&&r.disabled&&!i.some(e=>e.isPending)&&(r=null),!r&&i.every(e=>!e.isPending)&&i.some(e=>e.hasResult())&&(i=i.map(e=>e.hasResult()?new M(e.source,0):e)),e.effects))o.is(y)&&(r=r&&r.setSelected(o.value,this.id));return i==this.active&&r==this.open?this:new A(i,this.id,r)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?C:R}}let C={"aria-autocomplete":"list"},R={};function D(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}let T=[];function I(e,t){if(e.isUserEvent("input.complete")){let n=e.annotation(u);if(n&&t.activateOnCompletion(n))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:16*!!e.docChanged}class M{constructor(e,t,n=!1){this.source=e,this.state=t,this.explicit=n}hasResult(){return!1}get isPending(){return 1==this.state}update(e,t){let n=I(e,t),i=this;for(let t of((8&n||16&n&&this.touches(e))&&(i=new M(i.source,0)),4&n&&0==i.state&&(i=new M(this.source,1)),i=i.updateFor(e,n),e.effects))if(t.is(p))i=new M(i.source,1,t.value);else if(t.is(m))i=new M(i.source,0);else if(t.is(Q))for(let e of t.value)e.source==i.source&&(i=e);return i}updateFor(e,t){return this.map(e.changes)}map(e){return this}touches(e){return e.changes.touchesRange(h(e.state))}}class E extends M{constructor(e,t,n,i,r,s){super(e,3,t),this.limit=n,this.result=i,this.from=r,this.to=s}hasResult(){return!0}updateFor(e,t){var n;if(!(3&t))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let r=e.changes.mapPos(this.from),s=e.changes.mapPos(this.to,1),l=h(e.state);if(l>s||!i||2&t&&(h(e.startState)==this.from||l<this.limit))return new M(this.source,4&t?1:0);let a=e.changes.mapPos(this.limit);return!function(e,t,n,i){if(!e)return!1;let r=t.sliceDoc(n,i);return"function"==typeof e?e(r,n,i,t):c(e,!0).test(r)}(i.validFor,e.state,r,s)?i.update&&(i=i.update(i,r,s,new o(e.state,l,!1)))?new E(this.source,this.explicit,a,i,i.from,null!=(n=i.to)?n:h(e.state)):new M(this.source,1,this.explicit):new E(this.source,this.explicit,a,i,r,s)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new E(this.source,this.explicit,e.mapPos(this.limit),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new M(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}let Q=i.Pe.define({map:(e,t)=>e.map(e=>e.map(t))}),N=i.sU.define({create:()=>A.start(),update:(e,t)=>
1e.update(t),provide:e=>[r.DK.from(e,e=>e.tooltip),r.Lz.contentAttributes.from(e,e=>e.attrs)]});function B(e,t){let n=t.completion.apply||t.completion.label,r=e.state.field(N).active.find(e=>e.source==t.source);return r instanceof E&&("string"==typeof n?e.dispatch({...function(e,t,n,r){let{main:s}=e.selection,o=n-s.from,l=r-s.from;return{...e.changeByRange(a=>{if(a!=s&&n!=r&&e.sliceDoc(a.from+o,a.from+l)!=e.sliceDoc(n,r))return{range:a};let h=e.toText(t);return{changes:{from:a.from+o,to:r==s.from?a.to:a.from+l,insert:h},range:i.OF.cursor(a.from+o+h.length)}}),scrollIntoView:!0,userEvent:"input.complete"}}(e.state,n,r.from,r.to),annotations:u.of(t.completion)}):n(e,t.completion,r.from,r.to),!0)}let L=e=>new w(e,N,B);function F(e,t="option"){return n=>{let i=n.state.field(N,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp<n.state.facet(x).interactionDelay)return!1;let s=1,o;"page"==t&&(o=(0,r.Eg)(n,i.open.tooltip))&&(s=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:l}=i.open.options,a=i.open.selected>-1?i.open.selected+s*(e?1:-1):e?0:l-1;return a<0?a="page"==t?0:l-1:a>=l&&(a="page"==t?l-1:0),n.dispatch({effects:y.of(a)}),!0}}let _=e=>!!e.state.field(N,!1)&&(e.dispatch({effects:p.of(!0)}),!0);class z{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}let $=r.Z9.fromClass(class{constructor(e){for(let t of(this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0,e.state.field(N).active))t.isPending&&this.startQuery(t)}update(e){let t=e.state.field(N),n=e.state.facet(x);if(!e.selectionSet&&!e.docChanged&&e.startState.field(N)==t)return;let i=e.transactions.some(e=>{let t=I(e,n);return 8&t||(e.selection||e.docChanged)&&!(3&t)});for(let t=0;t<this.running.length;t++){let n=this.running[t];if(i||n.context.abortOnDocChange&&e.docChanged||n.updates.length+e.transactions.length>50&&Date.now()-n.time>1e3){for(let e of n.context.abortListeners)try{e()}catch(e){(0,r.c_)(this.view.state,e)}n.context.abortListeners=null,this.running.splice(t--,1)}else n.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(e=>e.effects.some(e=>e.is(p)))&&(this.pendingStart=!0);let s=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(e=>e.isPending&&!this.running.some(t=>t.active.source==e.source))?setTimeout(()=>this.startUpdate(),s):-1,0!=this.composing)for(let t of e.transactions)t.isUserEvent("input.type")?this.composing=2:2==this.composing&&t.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(N);for(let e of t.active)e.isPending&&!this.running.some(t=>t.active.source==e.source)&&this.startQuery(e);this.running.length&&t.open&&t.open.disabled&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(x).updateSyncTime))}startQuery(e){let{state:t}=this.view,n=h(t),i=new o(t,n,e.explicit,this.view),s=new z(e,i);this.running.push(s),Promise.resolve(e.source(i)).then(e=>{s.context.aborted||(s.done=e||null,this.scheduleAccept())},e=>{this.view.dispatch({effects:m.of(null)}),(0,r.c_)(this.view.state,e)})}scheduleAccept(){this.running.every(e=>void 0!==e.done)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(x).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(x),i=this.view.state.field(N);for(let r=0;r<this.running.length;r++){let s=this.running[r];if(void 0===s.done)continue;if(this.running.splice(r--,1),s.done){let i=h(s.updates.length?s.updates[0].startState:this.view.state),r=Math.min(i,s.done.from+ +!s.active.explicit),o=new E(s.active.source,s.active.explicit,r,s.done,s.done.from,null!=(e=s.done.to)?e:i);for(let e of s.updates)o=o.update(e,n);if(o.hasResult()){t.push(o);continue}}let o=i.active.find(e=>e.source==s.active.source);if(o&&o.isPending)if(null==s.done){let e=new M(s.active.source,0);for(let t of s.updates)e=e.update(t,n);e.isPending||t.push(e)}else this.startQuery(o)}(t.length||i.open&&i.open.disabled)&&this.view.dispatch({effects:Q.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(N,!1);if(t&&t.tooltip&&this.view.state.facet(x).closeOnBlur){let n=t.open&&(0,r.Eg)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||setTimeout(()=>this.view.dispatch({effects:m.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout(()=>this.view.dispatch({effects:p.of(!1)}),20),this.composing=0}}}),X="object"==typeof navigator&&/Win/.test(navigator.platform),j=i.Nb.highest(r.Lz.domEventHandlers({ke
1ydown(e,t){let n=t.state.field(N,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(X&&e.altKey)||e.metaKey)return!1;let i=n.open.options[n.open.selected],r=n.active.find(e=>e.source==i.source),s=i.completion.commitCharacters||r.result.commitCharacters;return s&&s.indexOf(e.key)>-1&&B(t,i),!1}})),W=r.Lz.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:'"\xb7\xb7\xb7"',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:"'\uD835\uDC65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\uD835\uDC36'"}},".cm-completionIcon-type":{"&:after":{content:"'\uD835\uDC61'"}},".cm-completionIcon-enum":{"&:after":{content:"'âª'"}},".cm-completionIcon-property":{"&:after":{content:"'â¡'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\uD83D\uDD11ï¸'"}},".cm-completionIcon-namespace":{"&:after":{content:"'â¢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),q=r.NZ.widget({widget:new class extends r.xO{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),U=r.NZ.mark({class:"cm-snippetField"});class V{constructor(e,t){this.ranges=e,this.active=t,this.deco=r.NZ.set(e.map(e=>(e.from==e.to?q:U).range(e.from,e.to)),!0)}map(e){let t=[];for(let n of this.ranges){let i=n.map(e);if(!i)return null;t.push(i)}return new V(t,this.active)}selectionInsideField(e){return e.ranges.every(e=>this.ranges.some(t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))}}let Z=i.Pe.define({map:(e,t)=>e&&e.map(t)}),G=i.Pe.define(),Y=i.sU.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Z))return n.value;if(n.is(G)&&e)return new V(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>r.Lz.decorations.from(e,e=>e?e.deco:r.NZ.none)});function H(e){return({state:t,dispatch:n})=>{var r;let s=t.field(Y,!1);if(!s||e<0&&0==s.active)return!1;let o=s.active+e,l=e>0&&!s.ranges.some(t=>t.field==o+e);return n(t.update({selection:(r=s.ranges,i.OF.create(r.filter(e=>e.field==o).map(e=>i.OF.range(e.from,e.to)))),effects:Z.of(l?null:new V(s.ranges,o)),scrollIntoView:!0})),!0}}let J=[{key:"Tab",run:H(1),shift:H(-1)},{key:"Escape",run:({state:e,dispatch:t})=>!!e.field(Y,!1)&&(t(e.update({effects:Z.of(null)})),!0)}],K={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ee=i.Pe.define({map(e,t){let n=t.mapPos(e,-1,i.iR.TrackAfter);return null==n?void 0:n}}),et=new class extends i.FB{};et.startSide=1,et.endSide=-1;let en=i.sU.define({create:()=>i.om.empty,update(e,t){if(e=e.map(t.changes),t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}for(let n of t.effects)n.is(ee)&&(e=e.update({add:[et.range(n.value,
1n.value+1)]}));return e}});function ei(){return[ea,en]}let er="()[]{}<>\xab\xbb\xbb\xab[]ï½ï½";function es(e){for(let t=0;t<er.length;t+=2)if(er.charCodeAt(t)==e)return er.charAt(t+1);return(0,i.MK)(e<128?e:e+1)}function eo(e,t){return e.languageDataAt("closeBrackets",t)[0]||K}let el="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),ea=r.Lz.inputHandler.of((e,t,n,r)=>{if((el?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(r.length>2||2==r.length&&1==(0,i.Fh)((0,i.vS)(r,0))||t!=o.from||n!=o.to)return!1;let l=function(e,t){let n=eo(e,e.selection.main.head),r=n.brackets||K.brackets;for(let o of r){let l=es((0,i.vS)(o,0));if(t==o)return l==o?function(e,t,n,r){let o=r.stringPrefixes||K.stringPrefixes,l=null,a=e.changeByRange(r=>{if(!r.empty)return{changes:[{insert:t,from:r.from},{insert:t,from:r.to}],effects:ee.of(r.to+t.length),range:i.OF.range(r.anchor+t.length,r.head+t.length)};let a=r.head,h=eu(e.doc,a),c;if(h==t){if(ef(e,a))return{changes:{insert:t+t,from:a},effects:ee.of(a+t.length),range:i.OF.cursor(a+t.length)};else if(ec(e,a)){let r=n&&e.sliceDoc(a,a+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:a,to:a+r.length,insert:r},range:i.OF.cursor(a+r.length)}}}else if(n&&e.sliceDoc(a-2*t.length,a)==t+t&&(c=ed(e,a-2*t.length,o))>-1&&ef(e,c))return{changes:{insert:t+t+t+t,from:a},effects:ee.of(a+t.length),range:i.OF.cursor(a+t.length)};else if(e.charCategorizer(a)(h)!=i.Je.Word&&ed(e,a,o)>-1&&!function(e,t,n,i){let r=(0,s.mv)(e).resolveInner(t,-1),o=i.reduce((e,t)=>Math.max(e,t.length),0);for(let s=0;s<5;s++){let s=e.sliceDoc(r.from,Math.min(r.to,r.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&i.indexOf(s.slice(0,l))>-1){let t=r.firstChild;for(;t&&t.from==r.from&&t.to-t.from>n.length+l;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let a=r.to==t&&r.parent;if(!a)break;r=a}return!1}(e,a,t,o))return{changes:{insert:t+t,from:a},effects:ee.of(a+t.length),range:i.OF.cursor(a+t.length)};return{range:l=r}});return l?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,r.indexOf(o+o+o)>-1,n):function(e,t,n,r){let s=null,o=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:n,from:o.to}],effects:ee.of(o.to+t.length),range:i.OF.range(o.anchor+t.length,o.head+t.length)};let l=eu(e.doc,o.head);return!l||/\s/.test(l)||r.indexOf(l)>-1?{changes:{insert:t+n,from:o.head},effects:ee.of(o.head+t.length),range:i.OF.cursor(o.head+t.length)}:{range:s=o}});return s?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}(e,o,l,n.before||K.before);if(t==l&&ec(e,e.selection.main.from))return function(e,t,n){let r=null,s=e.changeByRange(t=>t.empty&&eu(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:i.OF.cursor(t.head+n.length)}:r={range:t});return r?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}(e,0,l)}return null}(e.state,r);return!!l&&(e.dispatch(l),!0)}),eh=[{key:"Backspace",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=eo(e,e.selection.main.head).brackets||K.brackets,r=null,s=e.changeByRange(t=>{if(t.empty){let r=function(e,t){let n=e.sliceString(t-2,t);return(0,i.Fh)((0,i.vS)(n,0))==n.length?n:n.slice(1)}(e.doc,t.head);for(let s of n)if(s==r&&eu(e.doc,t.head)==es((0,i.vS)(s,0)))return{changes:{from:t.head-s.length,to:t.head+s.length},range:i.OF.cursor(t.head-s.length)}}return{range:r=t}});return r||t(e.update(s,{scrollIntoView:!0,userEvent:"delete.backward"})),!r}}];function ec(e,t){let n=!1;return e.field(en).between(0,e.doc.length,e=>{e==t&&(n=!0)}),n}function eu(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,i.Fh)((0,i.vS)(n,0)))}function ef(e,t){let n=(0,s.mv)(e).resolveInner(t+1);return n.parent&&n.from==t}function ed(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=i.Je.Word)return t;for(let s of n){let n=t-s.length;if(e.sliceDoc(n,t)==s&&r(e.sliceDoc(n-1,n))!=i.Je.Word)return n}return -1}function ep(e={}){return[j,N,x.of(e),$,eg,W]}let em=[{key:"Ctrl-Space",run:_},{mac:"Alt-`",run:_},{mac:"Alt-i",run:_},{key:"Escape",run:e=>{let t=e.state.field(N,!1);return!!t&&!!t.active.some(e=>0!=e.state)&&(e.dispatch({effects:m.of(null)}),!0)}},{key:"ArrowDown",run:F(!0)},{key:"ArrowUp",run:F(!1)},{key:"PageDown",run:F(!0,"page")},{key:"PageUp",run:F(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(N,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestamp<e.state.facet(x).interactionDelay)&&B(e,t.open.options[t.open.selected])}}],eg=i.Nb.highest(r.w4.computeN([x],e=>e.facet(x).defaultKeymap?[em]:[]))},21296:(e,t,n)=>{n.d(t,{BN:()=>r,E3:()=>i,xT:()=>h});for(var i={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:"'"},r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},s="undefined"!=typeof navigator&&/Mac/.test(navigator.platform),o="undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),l=0;l<10;l++)i[48+l]=i[96+l]=String(l);for(var l=1;l<=24;l++)i[l+111]="F"+l;for(var l=65;l<=90;l++)i[l]=String.fromCharCode(l+32),r[l]=String.fromCharCode(l);for(var a in i)r.hasOwnProperty(a)||(r[a]=i[a]);function h(e){var t=!(s&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||o&&e.shiftKey&&e.key&&1==e.key.length||"Unidentified"==e.key)&&e.key||(e.shiftKey?r:i)[e.keyCode]||e.key||"Unidentified";return"Esc"==t&&(t="Escape"),"Del"==t&&(t="Delete"),"Left"==t&&(t="ArrowLeft"),"Up"==t&&(t="ArrowUp"),"Right"==t&&(t="ArrowRight"),"Down"==t&&(t="ArrowDown"),t}},27668:(e,t,n)=>{n.d(t,{wE:()=>f});
vendor: 5,589 bytes, line 1
1var i=n(81626),r=Object.defineProperty,s=Object.defineProperties,o=Object.getOwnPropertyDescriptors,l=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=i.createContext({}),f=i.forwardRef((e,t)=>{var n,r,f,m,g,{value:v,onChange:x,maxLength:k,textAlign:b="left",pattern:y,placeholder:O,inputMode:w="numeric",onComplete:S,pushPasswordManagerStrategy:P="increase-width",pasteTransformer:A,containerClassName:C,noScriptCSSFallback:R=p,render:D,children:T}=e,I=((e,t)=>{var n={};for(var i in e)a.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&l)for(var i of l(e))0>t.indexOf(i)&&h.call(e,i)&&(n[i]=e[i]);return n})(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[M,E]=i.useState("string"==typeof I.defaultValue?I.defaultValue:""),Q=null!=v?v:M,N=function(e){let t=i.useRef();return i.useEffect(()=>{t.current=e}),t.current}(Q),B=i.useCallback(e=>{null==x||x(e),E(e)},[x]),L=i.useMemo(()=>y?"string"==typeof y?new RegExp(y):y:null,[y]),F=i.useRef(null),_=i.useRef(null),z=i.useRef({value:Q,onChange:B,isIOS:"undefined"!=typeof window&&(null==(r=null==(n=null==window?void 0:window.CSS)?void 0:n.supports)?void 0:r.call(n,"-webkit-touch-callout","none"))}),$=i.useRef({prev:[null==(f=F.current)?void 0:f.selectionStart,null==(m=F.current)?void 0:m.selectionEnd,null==(g=F.current)?void 0:g.selectionDirection]});i.useImperativeHandle(t,()=>F.current,[]),i.useEffect(()=>{let e=F.current,t=_.current;if(!e||!t)return;function n(){if(document.activeElement!==e){V(null),G(null);return}let t=e.selectionStart,n=e.selectionEnd,i=e.selectionDirection,r=e.maxLength,s=e.value,o=$.current.prev,l=-1,a=-1,h;if(0!==s.length&&null!==t&&null!==n){let e=t===n,i=t===s.length&&s.length<r;if(e&&!i){if(0===t)l=0,a=1,h="forward";else if(t===r)l=t-1,a=t,h="backward";else if(r>1&&s.length>1){let e=0;if(null!==o[0]&&null!==o[1]){h=t<o[1]?"backward":"forward";let n=o[0]===o[1]&&o[0]<r;"backward"!==h||n||(e=-1)}l=e+t,a=e+t+1}}-1!==l&&-1!==a&&l!==a&&F.current.setSelectionRange(l,a,h)}let c=-1!==l?l:t,u=-1!==a?a:n,f=null!=h?h:i;V(c),G(u),$.current.prev=[c,u,f]}if(z.current.value!==e.value&&z.current.onChange(e.value),$.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&q(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";d(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),d(e.sheet,`[data-input-otp]:autofill { ${t} }`),d(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),d(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),d(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let i=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};i();let r=new ResizeObserver(i);return r.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),r.disconnect()}},[]);let[X,j]=i.useState(!1),[W,q]=i.useState(!1),[U,V]=i.useState(null),[Z,G]=i.useState(null);i.useEffect(()=>{!function(e){setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)}(()=>{var e,t,n,i;null==(e=F.current)||e.dispatchEvent(new Event("input"));let r=null==(t=F.current)?void 0:t.selectionStart,s=null==(n=F.current)?void 0:n.selectionEnd,o=null==(i=F.current)?void 0:i.selectionDirection;null!==r&&null!==s&&(V(r),G(s),$.current.prev=[r,s,o])})},[Q,W]),i.useEffect(()=>{void 0!==N&&Q!==N&&N.length<k&&Q.length===k&&(null==S||S(Q))},[k,S,N,Q]);let Y=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[s,o]=i.useState(!1),[l,a]=i.useState(!1),[h,c]=i.useState(!1),u=i.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&s&&l,[s,l,n]),f=i.useCallback(()=>{let i=e.current,r=t.current;if(!i||!r||h||"none"===n)return;let s=i.getBoundingClientRect().left+i.offsetWidth,l=i.getBoundingClientRect().top+i.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;"]').length&&document.elementFromPoint(s-18,l)===i||(o(!0),c(!0))},[e,t,h,n]);return i.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function i(){a(window.innerWidth-t.getBoundingClientRect().right>=40)}i();let r=setInterval(i,1e3);return()=>{clearInterval(r)}},[e,n]),i.useEffect(()=>{let e=r||document.activeElement===t.current;if("none"===n||!e)return;let i=setTimeout(f,0),s=setTimeout(f,2e3),o=setTimeout(f,5e3),l=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(s),clearTimeout(o),clearTimeout(l)}},[t,r,n,f]),{hasPWMBadge:s,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:_,inputRef:F,pushPasswordManagerStrategy:P,isFocused:W}),H=i.useCallback(e=>{let t=e.currentTarget.value.slice(0,k);if(t.length>
10&&L&&!L.test(t))return void e.preventDefault();"string"==typeof N&&t.length<N.length&&document.dispatchEvent(new Event("selectionchange")),B(t)},[k,B,N,L]),J=i.useCallback(()=>{var e;if(F.current){let t=Math.min(F.current.value.length,k-1),n=F.current.value.length;null==(e=F.current)||e.setSelectionRange(t,n),V(t),G(n)}q(!0)},[k]),K=i.useCallback(e=>{var t,n;let i=F.current;if(!A&&(!z.current.isIOS||!e.clipboardData||!i))return;let r=e.clipboardData.getData("text/plain"),s=A?A(r):r;e.preventDefault();let o=null==(t=F.current)?void 0:t.selectionStart,l=null==(n=F.current)?void 0:n.selectionEnd,a=(o!==l?Q.slice(0,o)+s+Q.slice(l):Q.slice(0,o)+s+Q.slice(o)).slice(0,k);if(a.length>0&&L&&!L.test(a))return;i.value=a,B(a);let h=Math.min(a.length,k-1),c=a.length;i.setSelectionRange(h,c),V(h),G(c)},[k,B,L,Q]),ee=i.useMemo(()=>({position:"relative",cursor:I.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[I.disabled]),et=i.useMemo(()=>({position:"absolute",inset:0,width:Y.willPushPWMBadge?`calc(100% + ${Y.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:Y.willPushPWMBadge?`inset(0 ${Y.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:b,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[Y.PWM_BADGE_SPACE_WIDTH,Y.willPushPWMBadge,b]),en=i.useMemo(()=>i.createElement("input",s(((e,t)=>{for(var n in t||(t={}))a.call(t,n)&&c(e,n,t[n]);if(l)for(var n of l(t))h.call(t,n)&&c(e,n,t[n]);return e})({autoComplete:I.autoComplete||"one-time-code"},I),o({"data-input-otp":!0,"data-input-otp-placeholder-shown":0===Q.length||void 0,"data-input-otp-mss":U,"data-input-otp-mse":Z,inputMode:w,pattern:null==L?void 0:L.source,"aria-placeholder":O,style:et,maxLength:k,value:Q,ref:F,onPaste:e=>{var t;K(e),null==(t=I.onPaste)||t.call(I,e)},onChange:H,onMouseOver:e=>{var t;j(!0),null==(t=I.onMouseOver)||t.call(I,e)},onMouseLeave:e=>{var t;j(!1),null==(t=I.onMouseLeave)||t.call(I,e)},onFocus:e=>{var t;J(),null==(t=I.onFocus)||t.call(I,e)},onBlur:e=>{var t;q(!1),null==(t=I.onBlur)||t.call(I,e)}}))),[H,J,K,w,et,k,Z,U,I,null==L?void 0:L.source,Q]),ei=i.useMemo(()=>({slots:Array.from({length:k}).map((e,t)=>{var n;let i=W&&null!==U&&null!==Z&&(U===Z&&t===U||t>=U&&t<Z),r=void 0!==Q[t]?Q[t]:null;return{char:r,placeholderChar:void 0!==Q[0]?null:null!=(n=null==O?void 0:O[t])?n:null,isActive:i,hasFakeCaret:i&&null===r}}),isFocused:W,isHovering:!I.disabled&&X}),[W,X,k,Z,U,I.disabled,Q]),er=i.useMemo(()=>D?D(ei):i.createElement(u.Provider,{value:ei},T),[T,ei,D]);return i.createElement(i.Fragment,null,null!==R&&i.createElement("noscript",null,i.createElement("style",null,R)),i.createElement("div",{ref:_,"data-input-otp-container":!0,style:ee,className:C},er,i.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},en)))});function d(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}f.displayName="Input";var p=` 2[data-input-otp] { 3 --nojs-bg: white !important; 4 --nojs-fg: black !important; 5 6 background-color: var(--nojs-bg) !important; 7 color: var(--nojs-fg) !important; 8 caret-color: var(--nojs-fg) !important; 9 letter-spacing: .25em !important; 10 text-align: center !important; 11 border: 1px solid var(--nojs-fg) !important; 12 border-radius: 4px !important; 13 width: 100% !important; 14} 15@media (prefers-color-scheme: dark) { 16 [data-input-otp] { 17 --nojs-bg: black !important; 18 --nojs-fg: white !important; 19 } 20}`},33404:(e,t,n)=>{n.d(t,{b6:()=>x,cL:()=>M,pw:()=>eR});var i=n(77303),r=n(67456),s=n(66666),o=n(55284);function l(e,t){return({state:n,dispatch:i})=>{if(n.readOnly)return!1;let r=e(t,n);return!!r&&(i(n.update(r)),!0)}}let a=l(function(e,t,n=t.selection.ranges){let i=[],r=-1;n:for(let{from:e,to:s}of n){let n=i.length,o=1e9,l;for(let n=e;n<=s;){let a=t.doc.lineAt(n);if(void 0==l&&!(l=u(t,a.from).line))continue n;if(a.from>r&&(e==s||s>a.from)){r=a.from;let e=/^\s*/.exec(a.text)[0].length,t=e==a.length,n=a.text.slice(e,e+l.length)==l?e:-1;e<a.text.length&&e<o&&(o=e),i.push({line:a,comment:n,token:l,indent:e,empty:t,single:!1})}n=a.to+1}if(o<1e9)for(let e=n;e<i.length;e++)i[e].indent<i[e].line.text.length&&(i[e].indent=o);i.length==n+1&&(i[n].single=!0)}if(2!=e&&i.some(e=>e.comment<0&&(!e.empty||e.single))){let e=[];for(let{line:t,token:n,indent:r,empty:s,single:o}of i)(o||!s)&&e.push({from:t.from+r,insert:n+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&i.some(e=>e.comment>=0)){let e=[];for(let{line:t,comment:n,token:r}of i)if(n>=0){let i=t.from+n,s=i+r.length;" "==t.text[s-t.from]&&s++,e.push({from:i,to:s})}return{changes:e}}return null},0),h=l(f,0),c=l((e,t)=>
20f(e,t,function(e){let t=[];for(let n of e.selection.ranges){let i=e.doc.lineAt(n.from),r=n.to<=i.to?i:e.doc.lineAt(n.to);r.from>i.from&&r.from==n.to&&(r=n.to==i.to+1?i:e.doc.lineAt(n.to-1));let s=t.length-1;s>=0&&t[s].to>i.from?t[s].to=r.to:t.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:r.to})}return t}(t)),0);function u(e,t){let n=e.languageDataAt("commentTokens",t,1);return n.length?n[0]:{}}function f(e,t,n=t.selection.ranges){let i=n.map(e=>u(t,e.from).block);if(!i.every(e=>e))return null;let r=n.map((e,n)=>(function(e,{open:t,close:n},i,r){let s,o,l=e.sliceDoc(i-50,i),a=e.sliceDoc(r,r+50),h=/\s*$/.exec(l)[0].length,c=/^\s*/.exec(a)[0].length,u=l.length-h;if(l.slice(u-t.length,u)==t&&a.slice(c,c+n.length)==n)return{open:{pos:i-h,margin:h&&1},close:{pos:r+c,margin:c&&1}};r-i<=100?s=o=e.sliceDoc(i,r):(s=e.sliceDoc(i,i+50),o=e.sliceDoc(r-50,r));let f=/^\s*/.exec(s)[0].length,d=/\s*$/.exec(o)[0].length,p=o.length-d-n.length;return s.slice(f,f+t.length)==t&&o.slice(p,p+n.length)==n?{open:{pos:i+f+t.length,margin:+!!/\s/.test(s.charAt(f+t.length))},close:{pos:r-d-n.length,margin:+!!/\s/.test(o.charAt(p-1))}}:null})(t,i[n],e.from,e.to));if(2!=e&&!r.every(e=>e))return{changes:t.changes(n.map((e,t)=>r[t]?[]:[{from:e.from,insert:i[t].open+" "},{from:e.to,insert:" "+i[t].close}]))};if(1!=e&&r.some(e=>e)){let e=[];for(let t=0,n;t<r.length;t++)if(n=r[t]){let r=i[t],{open:s,close:o}=n;e.push({from:s.pos-r.open.length,to:s.pos+s.margin},{from:o.pos-o.margin,to:o.pos+r.close.length})}return{changes:e}}return null}let d=i.YH.define(),p=i.YH.define(),m=i.sj.define(),g=i.sj.define({combine:e=>(0,i.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,i)=>e(n,i)||t(n,i)})}),v=i.sU.define({create:()=>I.empty,update(e,t){let n=t.state.facet(g),r=t.annotation(d);if(r){let i=S.fromTransaction(t,r.selection),s=r.side,o=0==s?e.undone:e.done;return o=i?P(o,o.length,n.minDepth,i):R(o,t.startState.selection),new I(0==s?r.rest:o,0==s?o:r.rest)}let s=t.annotation(p);if(("full"==s||"before"==s)&&(e=e.isolate()),!1===t.annotation(i.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=S.fromTransaction(t),l=t.annotation(i.ZX.time),a=t.annotation(i.ZX.userEvent);return o?e=e.addChanges(o,l,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,l,a,n.newGroupDelay)),("full"==s||"after"==s)&&(e=e.isolate()),e},toJSON:e=>({done:e.done.map(e=>e.toJSON()),undone:e.undone.map(e=>e.toJSON())}),fromJSON:e=>new I(e.done.map(S.fromJSON),e.undone.map(S.fromJSON))});function x(e={}){return[v,g.of(e),r.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?b:"historyRedo"==e.inputType?y:null;return!!n&&(e.preventDefault(),n(t))}})]}function k(e,t){return function({state:n,dispatch:i}){if(!t&&n.readOnly)return!1;let r=n.field(v,!1);if(!r)return!1;let s=r.pop(e,n,t);return!!s&&(i(s),!0)}}let b=k(0,!1),y=k(1,!1),O=k(0,!0),w=k(1,!0);class S{constructor(e,t,n,i,r){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=i,this.selectionsAfter=r}setSelAfter(e){return new S(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null==(e=this.changes)?void 0:e.toJSON(),mapped:null==(t=this.mapped)?void 0:t.toJSON(),startSelection:null==(n=this.startSelection)?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map(e=>e.toJSON())}}static fromJSON(e){return new S(e.changes&&i.VR.fromJSON(e.changes),[],e.mapped&&i.Gu.fromJSON(e.mapped),e.startSelection&&i.OF.fromJSON(e.startSelection),e.selectionsAfter.map(i.OF.fromJSON))}static fromTransaction(e,t){let n=C;for(let t of e.startState.facet(m)){let i=t(e);i.length&&(n=n.concat(i))}return!n.length&&e.changes.empty?null:new S(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,C)}static selection(e){return new S(void 0,C,void 0,void 0,e)}}function P(e,t,n,i){let r=e.slice(t+1>n+20?t-n-1:0,t);return r.push(i),r}function A(e,t){return e.length?t.length?e.concat(t):e:t}let C=[];function R(e,t){if(!e.length)return[S.selection([t])];{let n=e[e.length-1],i=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return i.length&&i[i.length-1].eq(t)?e:(i.push(t),P(e,e.length-1,1e9,n.setSelAfter(i)))}}function D(e,t){if(!e.length)return e;let n=e.length,r=C;for(;n;){let s=function(e,t,n){let r=A(e.selectionsAfter.length?e.selectionsAfter.map(e=>e.map(t)):C,n);if(!e.changes)return S.selection(r);let s=e.changes.map(t),o=t.mapDesc(e.changes,!0),l=e.mapped?e.mapped.composeDesc(o):o;return new S(s,i.Pe.mapEffects(e.effects,t),l,e.startSelection.map(o),r)}(e[n-1],t,r);if(s.changes&&!s.changes.empty||s.effects.length){let t=e.slice(0,n);return t[n-1]=s,t}t=s.mapped,n--,r=s.selectionsAfter}return r.length?[S.selection(r)]:C}let T=/^(input\.type|delete)($|\.)/;class I{constructor(e,t,n=0,i){this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=i}isolate(){return this.prevTime?new I(this.done,this.undone):this}
20addChanges(e,t,n,r,s){var o,l;let a,h,c=this.done,u=c[c.length-1];return new I(c=u&&u.changes&&!u.changes.empty&&e.changes&&(!n||T.test(n))&&(!u.selectionsAfter.length&&t-this.prevTime<r.newGroupDelay&&r.joinToEvent(s,(o=u.changes,l=e.changes,a=[],h=!1,o.iterChangedRanges((e,t)=>a.push(e,t)),l.iterChangedRanges((e,t,n,i)=>{for(let e=0;e<a.length;){let t=a[e++],r=a[e++];i>=t&&n<=r&&(h=!0)}}),h))||"input.type.compose"==n)?P(c,c.length-1,r.minDepth,new S(e.changes.compose(u.changes),A(i.Pe.mapEffects(e.effects,u.changes),u.effects),u.mapped,u.startSelection,C)):P(c,c.length,r.minDepth,e),C,t,n)}addSelection(e,t,n,i){var r;let s=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return s.length>0&&t-this.prevTime<i&&n==this.prevUserEvent&&n&&/^select($|\.)/.test(n)&&(r=s[s.length-1],r.ranges.length==e.ranges.length&&0===r.ranges.filter((t,n)=>t.empty!=e.ranges[n].empty).length)?this:new I(R(this.done,e),this.undone,t,n)}addMapping(e){return new I(D(this.done,e),D(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let i=0==e?this.done:this.undone;if(0==i.length)return null;let r=i[i.length-1],s=r.selectionsAfter[0]||(r.startSelection?r.startSelection.map(r.changes.invertedDesc,1):t.selection);if(n&&r.selectionsAfter.length){let n,o;return t.update({selection:r.selectionsAfter[r.selectionsAfter.length-1],annotations:d.of({side:e,rest:(n=i[i.length-1],(o=i.slice())[i.length-1]=n.setSelAfter(n.selectionsAfter.slice(0,n.selectionsAfter.length-1)),o),selection:s}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0})}{if(!r.changes)return null;let n=1==i.length?C:i.slice(0,i.length-1);return r.mapped&&(n=D(n,r.mapped)),t.update({changes:r.changes,selection:r.startSelection,effects:r.effects,annotations:d.of({side:e,rest:n,selection:s}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}}}I.empty=new I(C,C);let M=[{key:"Mod-z",run:b,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:y,preventDefault:!0},{linux:"Ctrl-Shift-z",run:y,preventDefault:!0},{key:"Mod-u",run:O,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:w,preventDefault:!0}];function E(e,t){return i.OF.create(e.ranges.map(t),e.mainIndex)}function Q(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function N({state:e,dispatch:t},n){let i=E(e.selection,n);return!i.eq(e.selection,!0)&&(t(Q(e,i)),!0)}function B(e,t){return i.OF.cursor(t?e.to:e.from)}function L(e,t){return N(e,n=>n.empty?e.moveByChar(n,t):B(n,t))}function F(e){return e.textDirectionAt(e.state.selection.main.head)==r.OP.LTR}let _=e=>L(e,!F(e)),z=e=>L(e,F(e));function $(e,t){return N(e,n=>n.empty?e.moveByGroup(n,t):B(n,t))}function X(e,t,n){let r,l,a=(0,s.mv)(e).resolveInner(t.head),h=n?o.uY.closedBy:o.uY.openedBy;for(let i=t.head;;){let t=n?a.childAfter(i):a.childBefore(i);if(!t)break;!function(e,t,n){if(t.type.prop(n))return!0;let i=t.to-t.from;return i&&(i>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}(e,t,h)?i=n?t.to:t.from:a=t}return l=a.type.prop(h)&&(r=n?(0,s.jU)(e,a.from,1):(0,s.jU)(e,a.to,-1))&&r.matched?n?r.end.to:r.end.from:n?a.to:a.from,i.OF.cursor(l,n?-1:1)}function j(e,t){return N(e,n=>{if(!n.empty)return B(n,t);let i=e.moveVertically(n,t);return i.head!=n.head?i:e.moveToLineBoundary(n,t)})}"undefined"!=typeof Intl&&Intl.Segmenter;let W=e=>j(e,!1),q=e=>j(e,!0);function U(e){let t=e.scrollDOM.clientHeight<e.scrollDOM.scrollHeight-2,n=0,i=0,s;if(t){for(let t of e.state.facet(r.Lz.scrollMargins)){let r=t(e);(null==r?void 0:r.top)&&(n=Math.max(null==r?void 0:r.top,n)),(null==r?void 0:r.bottom)&&(i=Math.max(null==r?void 0:r.bottom,i))}s=e.scrollDOM.clientHeight-n-i}else s=(e.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:i,selfScroll:t,height:Math.max(e.defaultLineHeight,s-5)}}function V(e,t){let n,i=U(e),{state:s}=e,o=E(s.selection,n=>n.empty?e.moveVertically(n,t,i.height):B(n,t));if(o.eq(s.selection))return!1;if(i.selfScroll){let t=e.coordsAtPos(s.selection.main.head),l=e.scrollDOM.getBoundingClientRect(),a=l.top+i.marginTop,h=l.bottom-i.marginBottom;t&&t.top>a&&t.bottom<h&&(n=r.Lz.scrollIntoView(o.main.head,{y:"start",yMargin:t.to
20p-a}))}return e.dispatch(Q(s,o),{effects:n}),!0}let Z=e=>V(e,!1),G=e=>V(e,!0);function Y(e,t,n){let r=e.lineBlockAt(t.head),s=e.moveToLineBoundary(t,n);if(s.head==t.head&&s.head!=(n?r.to:r.from)&&(s=e.moveToLineBoundary(t,n,!1)),!n&&s.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(s=i.OF.cursor(r.from+n))}return s}function H(e,t){let n=E(e.state.selection,e=>{let n=t(e);return i.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return!n.eq(e.state.selection)&&(e.dispatch(Q(e.state,n)),!0)}function J(e,t){return H(e,n=>e.moveByChar(n,t))}let K=e=>J(e,!F(e)),ee=e=>J(e,F(e));function et(e,t){return H(e,n=>e.moveByGroup(n,t))}function en(e,t){return H(e,n=>e.moveVertically(n,t))}let ei=e=>en(e,!1),er=e=>en(e,!0);function es(e,t){return H(e,n=>e.moveVertically(n,t,U(e).height))}let eo=e=>es(e,!1),el=e=>es(e,!0),ea=({state:e,dispatch:t})=>(t(Q(e,{anchor:0})),!0),eh=({state:e,dispatch:t})=>(t(Q(e,{anchor:e.doc.length})),!0),ec=({state:e,dispatch:t})=>(t(Q(e,{anchor:e.selection.main.anchor,head:0})),!0),eu=({state:e,dispatch:t})=>(t(Q(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0);function ef(e,t){let{state:n}=e,r=n.selection,s=n.selection.ranges.slice();for(let i of n.selection.ranges){let r=n.doc.lineAt(i.head);if(t?r.to<e.state.doc.length:r.from>0)for(let n=i;;){let i=e.moveVertically(n,t);if(i.head<r.from||i.head>r.to){s.some(e=>e.head==i.head)||s.push(i);break}if(i.head==n.head)break;n=i}}return s.length!=r.ranges.length&&(e.dispatch(Q(n,i.OF.create(s,s.length-1))),!0)}function ed(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:s}=e,o=s.changeByRange(r=>{let{from:s,to:o}=r;if(s==o){let i=t(r);i<s?(n="delete.backward",i=ep(e,i,!1)):i>s&&(n="delete.forward",i=ep(e,i,!0)),s=Math.min(s,i),o=Math.max(o,i)}else s=ep(e,s,!1),o=ep(e,o,!0);return s==o?{range:r}:{changes:{from:s,to:o},range:i.OF.cursor(s,s<r.head?-1:1)}});return!o.changes.empty&&(e.dispatch(s.update(o,{scrollIntoView:!0,userEvent:n,effects:"delete.selection"==n?r.Lz.announce.of(s.phrase("Selection deleted")):void 0})),!0)}function ep(e,t,n){if(e instanceof r.Lz)for(let i of e.state.facet(r.Lz.atomicRanges).map(t=>t(e)))i.between(t,t,(e,i)=>{e<t&&i>t&&(t=n?i:e)});return t}let em=(e,t,n)=>ed(e,r=>{let o=r.from,{state:l}=e,a=l.doc.lineAt(o),h,c;if(n&&!t&&o>a.from&&o<a.from+200&&!/[^ \t]/.test(h=a.text.slice(0,o-a.from))){if(" "==h[h.length-1])return o-1;let e=(0,i.y$)(h,l.tabSize)%(0,s.tp)(l)||(0,s.tp)(l);for(let t=0;t<e&&" "==h[h.length-1-t];t++)o--;c=o}else(c=(0,i.zK)(a.text,o-a.from,t,t)+a.from)==o&&a.number!=(t?l.doc.lines:1)?c+=t?1:-1:!t&&/[\ufe00-\ufe0f]/.test(a.text.slice(c-a.from,o-a.from))&&(c=(0,i.zK)(a.text,c-a.from,!1,!1)+a.from);return c}),eg=e=>em(e,!1,!0),ev=e=>em(e,!0,!1),ex=(e,t)=>ed(e,n=>{let r=n.head,{state:s}=e,o=s.doc.lineAt(r),l=s.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?s.doc.lines:1)&&(r+=t?1:-1);break}let a=(0,i.zK)(o.text,r-o.from,t)+o.from,h=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),c=l(h);if(null!=e&&c!=e)break;(" "!=h||r!=n.head)&&(e=c),r=a}return r}),ek=e=>ex(e,!1);function eb(e){let t=[],n=-1;for(let i of e.selection.ranges){let r=e.doc.lineAt(i.from),s=e.doc.lineAt(i.to);if(i.empty||i.to!=s.from||(s=e.doc.lineAt(i.to-1)),n>=r.number){let e=t[t.length-1];e.to=s.to,e.ranges.push(i)}else t.push({from:r.from,to:s.to,ranges:[i]});n=s.number+1}return t}function ey(e,t,n){if(e.readOnly)return!1;let r=[],s=[];for(let t of eb(e)){if(n?t.to==e.doc.length:0==t.from)continue;let o=e.doc.lineAt(n?t.to+1:t.from-1),l=o.length+1;if(n)for(let n of(r.push({from:t.to,to:o.to},{from:t.from,insert:o.text+e.lineBreak}),t.ranges))s.push(i.OF.range(Math.min(e.doc.length,n.anchor+l),Math.min(e.doc.length,n.head+l)));else for(let n of(r.push({from:o.from,to:t.from},{from:t.to,insert:e.lineBreak+o.text}),t.ranges))s.push(i.OF.range(n.anchor-l,n.head-l))}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:i.OF.create(s,e.selection.mainIndex),userEvent:"move.line"})),!0)}function eO(e,t,n){if(e.readOnly)return!1;let i=[];
20for(let t of eb(e))n?i.push({from:t.from,insert:e.doc.slice(t.from,t.to)+e.lineBreak}):i.push({from:t.to,insert:e.lineBreak+e.doc.slice(t.from,t.to)});let r=e.changes(i);return t(e.update({changes:r,selection:e.selection.map(r,n?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}let ew=eP(!1),eS=eP(!0);function eP(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(n=>{let{from:r,to:l}=n,a=t.doc.lineAt(r),h=!e&&r==l&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,s.mv)(e).resolveInner(t),i=n.childBefore(t),r=n.childAfter(t),l;return i&&r&&i.to<=t&&r.from>=t&&(l=i.type.prop(o.uY.closedBy))&&l.indexOf(r.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(r.from).from&&!/\S/.test(e.sliceDoc(i.to,r.from))?{from:i.to,to:r.from}:null}(t,r);e&&(r=l=(l<=a.to?a:t.doc.lineAt(l)).to);let c=new s.KB(t,{simulateBreak:r,simulateDoubleBreak:!!h}),u=(0,s._v)(c,r);for(null==u&&(u=(0,i.y$)(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));l<a.to&&/\s/.test(a.text[l-a.from]);)l++;h?{from:r,to:l}=h:r>a.from&&r<a.from+100&&!/\S/.test(a.text.slice(0,r))&&(r=a.from);let f=["",(0,s.EI)(t,u)];return h&&f.push((0,s.EI)(t,c.lineIndent(a.from,-1))),{changes:{from:r,to:l,insert:i.EY.of(f)},range:i.OF.cursor(r+1+f[1].length)}});return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function eA(e,t){let n=-1;return e.changeByRange(r=>{let s=[];for(let i=r.from;i<=r.to;){let o=e.doc.lineAt(i);o.number>n&&(r.empty||r.to>o.from)&&(t(o,s,r),n=o.number),i=o.to+1}let o=e.changes(s);return{changes:s,range:i.OF.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}let eC=[{key:"Ctrl-b",run:_,shift:K,preventDefault:!0},{key:"Ctrl-f",run:z,shift:ee},{key:"Ctrl-p",run:W,shift:ei},{key:"Ctrl-n",run:q,shift:er},{key:"Ctrl-a",run:e=>N(e,t=>i.OF.cursor(e.lineBlockAt(t.head).from,1)),shift:e=>H(e,t=>i.OF.cursor(e.lineBlockAt(t.head).from))},{key:"Ctrl-e",run:e=>N(e,t=>i.OF.cursor(e.lineBlockAt(t.head).to,-1)),shift:e=>H(e,t=>i.OF.cursor(e.lineBlockAt(t.head).to))},{key:"Ctrl-d",run:ev},{key:"Ctrl-h",run:eg},{key:"Ctrl-k",run:e=>ed(e,t=>{let n=e.lineBlockAt(t.head).to;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)})},{key:"Ctrl-Alt-h",run:ek},{key:"Ctrl-o",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:i.EY.of(["",""])},range:i.OF.cursor(e.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(t=>{if(!t.empty||0==t.from||t.from==e.doc.length)return{range:t};let n=t.from,r=e.doc.lineAt(n),s=n==r.from?n-1:(0,i.zK)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,i.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:s,to:o,insert:e.doc.slice(n,o).append(e.doc.slice(s,n))},range:i.OF.cursor(o)}});return!n.changes.empty&&(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:G}],eR=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>N(e,t=>X(e.state,t,!F(e))),shift:e=>H(e,t=>X(e.state,t,!F(e)))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>N(e,t=>X(e.state,t,F(e))),shift:e=>H(e,t=>X(e.state,t,F(e)))},{key:"Alt-ArrowUp",run:({state:e,dispatch:t})=>ey(e,t,!1)},{key:"Shift-Alt-ArrowUp",run:({state:e,dispatch:t})=>eO(e,t,!1)},{key:"Alt-ArrowDown",run:({state:e,dispatch:t})=>ey(e,t,!0)},{key:"Shift-Alt-ArrowDown",run:({state:e,dispatch:t})=>eO(e,t,!0)},{key:"Mod-Alt-ArrowUp",run:e=>ef(e,!1)},{key:"Mod-Alt-ArrowDown",run:e=>ef(e,!0)},{key:"Escape",run:({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=i.OF.create([n.main]):n.main.empty||(r=i.OF.create([i.OF.cursor(n.main.head)])),!!r&&(t(Q(e,r)),!0)}},{key:"Mod-Enter",run:eS},{key:"Alt-l",mac:"Ctrl-l",run:({state:e,dispatch:t})=>{let n=eb(e).map(({from:t,to:n})=>i.OF.range(t,Math.min(n+1,e.doc.length)));return t(e.update({selection:i.OF.create(n),userEvent:"select"})),!0}},{key:"Mod-i",run:({state:e,dispatch:t})=>{let n=E(e.selection,t=>{let n=(0,s.mv)(e),r=n.resolveStack(t.from,1);if(t.empty){let e=n.resolveStack(t.from,-1);e.node.from>=r.node.from&&e.node.to<=r.node.to&&(r=e)}for(let e=r;e;e=e.next){let{node:n}=e;if((n.from<t.from&&n.to>=t.to||n.to>t.to&&n.from<=t.from)&&e.next)return i.OF.range(n.to,n.from)}return t});return!n.eq(e.selection)&&(t(Q(e,n)),!0)},preventDefault:!0},{key:"Mod-[",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eA(e,(t,n)=>{let r=/^\s*/.exec(t.text)[0];if(!r)return;let o=(0,i.y$)(r,e.tabSize),l=0,a=(0,s.EI)(e,Math.max(0,o-(0,s.tp)(e)));for(;
20l<r.length&&l<a.length&&r.charCodeAt(l)==a.charCodeAt(l);)l++;n.push({from:t.from+l,to:t.from+r.length,insert:a.slice(l)})}),{userEvent:"delete.dedent"})),!0)},{key:"Mod-]",run:({state:e,dispatch:t})=>!e.readOnly&&(t(e.update(eA(e,(t,n)=>{n.push({from:t.from,insert:e.facet(s.Xt)})}),{userEvent:"input.indent"})),!0)},{key:"Mod-Alt-\\",run:({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),i=new s.KB(e,{overrideIndentation:e=>{let t=n[e];return null==t?-1:t}}),r=eA(e,(t,r,o)=>{let l=(0,s._v)(i,t.from);if(null==l)return;/\S/.test(t.text)||(l=0);let a=/^\s*/.exec(t.text)[0],h=(0,s.EI)(e,l);(a!=h||o.from<t.from+a.length)&&(n[t.from]=l,r.push({from:t.from,to:t.from+a.length,insert:h}))});return r.changes.empty||t(e.update(r,{userEvent:"indent"})),!0}},{key:"Shift-Mod-k",run:e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(eb(t).map(({from:e,to:n})=>(e>0?e--:n<t.doc.length&&n++,{from:e,to:n}))),i=E(t.selection,t=>{let n;if(e.lineWrapping){let i=e.lineBlockAt(t.head),r=e.coordsAtPos(t.head,t.assoc||1);r&&(n=i.bottom+e.documentTop-r.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)}).map(n);return e.dispatch({changes:n,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:({state:e,dispatch:t})=>(function(e,t,n){let r=!1,o=E(e.selection,t=>{let o=(0,s.jU)(e,t.head,-1)||(0,s.jU)(e,t.head,1)||t.head>0&&(0,s.jU)(e,t.head-1,1)||t.head<e.doc.length&&(0,s.jU)(e,t.head+1,-1);if(!o||!o.end)return t;r=!0;let l=o.start.from==t.head?o.end.to:o.end.from;return n?i.OF.range(t.anchor,l):i.OF.cursor(l)});return!!r&&(t(Q(e,o)),!0)})(e,t,!1)},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),i=u(e.state,n.from);return i.line?a(e):!!i.block&&c(e)}},{key:"Alt-A",run:h},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat([{key:"ArrowLeft",run:_,shift:K,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>$(e,!F(e)),shift:e=>et(e,!F(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>N(e,t=>Y(e,t,!F(e))),shift:e=>H(e,t=>Y(e,t,!F(e))),preventDefault:!0},{key:"ArrowRight",run:z,shift:ee,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>$(e,F(e)),shift:e=>et(e,F(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>N(e,t=>Y(e,t,F(e))),shift:e=>H(e,t=>Y(e,t,F(e))),preventDefault:!0},{key:"ArrowUp",run:W,shift:ei,preventDefault:!0},{mac:"Cmd-ArrowUp",run:ea,shift:ec},{mac:"Ctrl-ArrowUp",run:Z,shift:eo},{key:"ArrowDown",run:q,shift:er,preventDefault:!0},{mac:"Cmd-ArrowDown",run:eh,shift:eu},{mac:"Ctrl-ArrowDown",run:G,shift:el},{key:"PageUp",run:Z,shift:eo},{key:"PageDown",run:G,shift:el},{key:"Home",run:e=>N(e,t=>Y(e,t,!1)),shift:e=>H(e,t=>Y(e,t,!1)),preventDefault:!0},{key:"Mod-Home",run:ea,shift:ec},{key:"End",run:e=>N(e,t=>Y(e,t,!0)),shift:e=>H(e,t=>Y(e,t,!0)),preventDefault:!0},{key:"Mod-End",run:eh,shift:eu},{key:"Enter",run:ew,shift:ew},{key:"Mod-a",run:({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0)},{key:"Backspace",run:eg,shift:eg,preventDefault:!0},{key:"Delete",run:ev,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ek,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>ex(e,!0),preventDefault:!0},{mac:"Mod-Backspace",run:e=>ed(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),preventDefault:!0},{mac:"Mod-Delete",run:e=>ed(e,t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head<n?n:Math.min(e.state.doc.length,t.head+1)}),preventDefault:!0}].concat(eC.map(e=>({mac:e.key,run:e.run,shift:e.shift}))))},39185:(e,t,n)=>{n.d(t,{CollapsibleContent:()=>O,CollapsibleTrigger:()=>b,Root:()=>P,UC:()=>C,l9:()=>A});var i=n(81626),r=n(75553),s=n(92086),o=n(41429),l=n(90719),a=n(2956),h=n(55039),c=n(13123),u=n(70041),f=n(56658),d="Collapsible",[p,m]=(0,s.A)(d),[g,v]=p(d),x=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:r,defaultOpen:s,disabled:l,onOpenChange:a,...c}=e,[p,m]=(0,o.i)({prop:r,defaultProp:null!=s&&s,onChange:a,caller:d});return(0,f.jsx)(g,{scope:n,disabled:l,contentId:(0,u.B)(),open:p,onOpenToggle:i.useCallback(()=>m(e=>!e),[m]),children:(0,f.jsx)(h.sG.div,{"data-state":S(p),"data-disabled":l?"":void 0,...c,ref:t})})});x.displayName=d;var k="CollapsibleTrigger",b=i.forwardRef((e,t)=>
20{let{__scopeCollapsible:n,...i}=e,s=v(k,n);return(0,f.jsx)(h.sG.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":S(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:t,onClick:(0,r.mK)(e.onClick,s.onOpenToggle)})});b.displayName=k;var y="CollapsibleContent",O=i.forwardRef((e,t)=>{let{forceMount:n,...i}=e,r=v(y,e.__scopeCollapsible);return(0,f.jsx)(c.C,{present:n||r.open,children:e=>{let{present:n}=e;return(0,f.jsx)(w,{...i,ref:t,present:n})}})});O.displayName=y;var w=i.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:r,children:s,...o}=e,c=v(y,n),[u,d]=i.useState(r),p=i.useRef(null),m=(0,a.s)(t,p),g=i.useRef(0),x=g.current,k=i.useRef(0),b=k.current,O=c.open||u,w=i.useRef(O),P=i.useRef(void 0);return i.useEffect(()=>{let e=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,l.N)(()=>{let e=p.current;if(e){P.current=P.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();g.current=t.height,k.current=t.width,w.current||(e.style.transitionDuration=P.current.transitionDuration,e.style.animationName=P.current.animationName),d(r)}},[c.open,r]),(0,f.jsx)(h.sG.div,{"data-state":S(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!O,...o,ref:m,style:{"--radix-collapsible-content-height":x?"".concat(x,"px"):void 0,"--radix-collapsible-content-width":b?"".concat(b,"px"):void 0,...e.style},children:O&&s})});function S(e){return e?"open":"closed"}var P=x,A=b,C=O},42637:(e,t,n)=>{n.d(t,{$w:()=>v});var i=n(67456),r=n(77303),s=n(6247);class o{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class l{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let s=n.facet(x).markerFilter;s&&(e=s(e,n));let o=e.slice().sort((e,t)=>e.from-t.from||e.to-t.to),h=new r.vB,c=[],u=0,f=n.doc.iter(),d=0,p=n.doc.length;for(let e=0;;){let t,n,r=e==o.length?null:o[e];if(!r&&!c.length)break;if(c.length)t=u,n=c.reduce((e,t)=>Math.min(e,t.to),r&&r.from>t?r.from:1e8);else{if((t=r.from)>p)break;n=r.to,c.push(r),e++}for(;e<o.length;){let i=o[e];if(i.from==t&&(i.to>i.from||i.to==t))c.push(i),e++,n=Math.min(i.to,n);else{n=Math.min(i.from,n);break}}n=Math.min(n,p);let s=!1;if(c.some(e=>e.from==t&&(e.to==n||n==p))&&!(s=t==n)&&n-t<10){let e=t-(d+f.value.length);e>0&&(f.next(e),d=t);for(let e=t;;){if(e>=n){s=!0;break}if(!f.lineBreak&&d+f.value.length>e)break;e=d+f.value.length,d+=f.value.length,f.next()}}let l=C(c);if(s)h.add(t,t,i.NZ.widget({widget:new O(l),diagnostics:c.slice()}));else{let e=c.reduce((e,t)=>t.markClass?e+" "+t.markClass:e,"");h.add(t,n,i.NZ.mark({class:"cm-lintRange cm-lintRange-"+l+e,diagnostics:c.slice(),inclusiveEnd:c.some(e=>e.to>n)}))}if((u=n)==p)break;for(let e=0;e<c.length;e++)c[e].to<=u&&c.splice(e--,1)}let m=h.finish();return new l(m,t,a(m))}}function a(e,t=null,n=0){let i=null;return e.between(n,1e9,(e,n,{spec:r})=>{if(!(t&&0>r.diagnostics.indexOf(t)))if(i){if(0>r.diagnostics.indexOf(i.diagnostic))return!1;i=new o(i.from,n,i.diagnostic)}else i=new o(e,n,t||r.diagnostics[0])}),i}function h(e,t){let n=t.pos,i=t.end||n,r=e.state.facet(x).hideOn(e,n,i);if(null!=r)return r;let s=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(e=>e.is(c))||e.changes.touchesRange(s.from,Math.max(s.to,i)))}let c=r.Pe.define(),u=r.Pe.define(),f=r.Pe.define(),d=r.sU.define({create:()=>new l(i.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),i=null,r=e.panel;if(e.selected){let r=t.changes.mapPos(e.selected.from,1);i=a(n,e.selected.diagnostic,r)||a(n,null,r)}!n.size&&r&&t.state.facet(x).autoPanel&&(r=null),e=new l(n,r,i)}for(let n of t.effects)if(n.is(c)){let i=t.state.facet(x).autoPanel?n.value.length?S.open:null:e.panel;e=l.init(n.value,i,t.state)}else n.is(u)?e=new l(e.diagnostics,n.value?S.open:null,e.selected):n.is(f)&&(e=new l(e.diagnostics,e.panel,n.value));return e},provide:e=>[i.S7.from(e,e=>e.panel),i.Lz.decorations.from(e,e=>e.diagnostics)]}),p=i.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function m(e,t){return(0,s.A)("ul",{class:"cm-tooltip-lint"},t.map(t=>y(e,t,!1)))}let g=e=>{let t=e.state.field(d,!1);
20return!!t&&!!t.panel&&(e.dispatch({effects:u.of(!1)}),!0)},v=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(d,!1);t&&t.panel||e.dispatch({effects:function(e,t){return e.field(d,!1)?t:t.concat(r.Pe.appendConfig.of(T))}(e.state,[u.of(!0)])});let n=(0,i.ld)(e,S.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(d,!1);if(!t)return!1;let n=e.state.selection.main,i=a(t.diagnostics,null,n.to+1);return(!!i||!!(i=a(t.diagnostics,null,0))&&(i.from!=n.from||i.to!=n.to))&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0}),!0)}}],x=r.sj.define({combine:e=>({sources:e.map(e=>e.source).filter(e=>null!=e),...(0,r.QR)(e.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{delay:Math.max,markerFilter:k,tooltipFilter:k,needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t,hideOn:(e,t)=>e?t?(n,i,r)=>e(n,i,r)||t(n,i,r):e:t,autoPanel:(e,t)=>e||t})})});function k(e,t){return e?t?(n,i)=>t(e(n,i),i):e:t}function b(e){let t=[];if(e)i:for(let{name:n}of e){for(let e=0;e<n.length;e++){let i=n[e];if(/[a-zA-Z]/.test(i)&&!t.some(e=>e.toLowerCase()==i.toLowerCase())){t.push(i);continue i}}t.push("")}return t}function y(e,t,n){var i;let r=n?b(t.actions):[];return(0,s.A)("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},(0,s.A)("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null==(i=t.actions)?void 0:i.map((n,i)=>{let o=!1,l=i=>{if(i.preventDefault(),o)return;o=!0;let r=a(e.state.field(d).diagnostics,t);r&&n.apply(e,r.from,r.to)},{name:h}=n,c=r[i]?h.indexOf(r[i]):-1,u=c<0?h:[h.slice(0,c),(0,s.A)("u",h.slice(c,c+1)),h.slice(c+1)],f=n.markClass?" "+n.markClass:"";return(0,s.A)("button",{type:"button",class:"cm-diagnosticAction"+f,onclick:l,onmousedown:l,"aria-label":` Action: ${h}${c<0?"":` (access key "${r[i]})"`}.`},u)}),t.source&&(0,s.A)("div",{class:"cm-diagnosticSource"},t.source))}class O extends i.xO{constructor(e){super(),this.sev=e}eq(e){return e.sev==this.sev}toDOM(){return(0,s.A)("span",{class:"cm-lintPoint cm-lintPoint-"+this.sev})}}class w{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(0xffffffff*Math.random()).toString(16),this.dom=y(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class S{constructor(e){this.view=e,this.items=[];let t=t=>{if(!t.ctrlKey&&!t.altKey&&!t.metaKey){if(27==t.keyCode)g(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65)||!(t.keyCode<=90)||!(this.selectedIndex>=0))return;let{diagnostic:n}=this.items[this.selectedIndex],i=b(n.actions);for(let r=0;r<i.length;r++)if(i[r].toUpperCase().charCodeAt(0)==t.keyCode){let t=a(this.view.state.field(d).diagnostics,n);t&&n.actions[r].apply(e,t.from,t.to)}}t.preventDefault()}},n=e=>{for(let t=0;t<this.items.length;t++)this.items[t].dom.contains(e.target)&&this.moveSelection(t)};this.list=(0,s.A)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t,onclick:n}),this.dom=(0,s.A)("div",{class:"cm-panel-lint"},this.list,(0,s.A)("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>g(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(d).selected;if(!e)return -1;for(let t=0;t<this.items.length;t++)if(this.items[t].diagnostic==e.diagnostic)return t;return -1}update(){let{diagnostics:e,selected:t}=this.view.state.field(d),n=0,i=!1,r=null,s=new Set;for(e.between(0,this.view.state.doc.length,(e,o,{spec:l})=>{for(let e of l.diagnostics){if(s.has(e))continue;s.add(e);let o=-1,l;for(let t=n;t<this.items.length;t++)if(this.items[t].diagnostic==e){o=t;break}o<0?(l=new w(this.view,e),this.items.splice(n,0,l),i=!0):(l=this.items[o],o>n&&(this.items.splice(n,o-n),i=!0)),t&&l.diagnostic==t.diagnostic?l.dom.hasAttribute("aria-selected")||(l.dom.setAttribute("aria-selected","true"),r=l):l.dom.hasAttribute("aria-selected")&&l.dom.removeAttribute("aria-selected"),n++}});n<this.items.length&&!(1==this.items.length&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();0==this.items.length&&(this.items.push(new w(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),r?(this.list.setAttribute("aria-activedescendant",r.id),this.view.requestMeasure({key:this,read:()=>({sel:r.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:e,panel:t})=>{let n=t.height/this.list.offsetHeight;e.top<t.top?this.list.scrollTop-=(t.top-e.top)/n:e.bottom>t.bottom&&(this.list.scrollTop+=(e.bottom-t.bottom)/n)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=a(this.view.state.field(d).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:f.of(t)})}static open(e){return new S(e)}}function P(e){return function(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${t}>${encodeURIComponent(e)}</svg>')`}(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${e}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}let A=i.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:P("#d11")},".cm-lintRange-warning":{backgroundImage:P("orange")},".cm-lintRange-info":{backgroundImage:P("#999")},".cm-lintRange-hint":{backgroundImage:P("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}},"&dark .cm-lintRange-active":{backgroundColor:"#86714a80"},"&dark .cm-panel.cm-panel-lint ul":{"& [aria-selected]":{backgroundColor:"#2e343e"}}});function C(e){let t="hint",n=1;for(let r of e){var i;let e="error"==(i=r.severity)?4:"warning"==i?3:"info"==i?2:1;e>n&&(n=e,t=r.severity)}return t}i.wJ;let R=r.Pe.define(),D=r.sU.define({create:()=>null,update:(e,t)=>
20(e&&t.docChanged&&(e=h(t,e)?null:{...e,pos:t.changes.mapPos(e.pos)}),t.effects.reduce((e,t)=>t.is(R)?t.value:e,e)),provide:e=>i.DK.from(e)}),T=[d,i.Lz.decorations.compute([d],e=>{let{selected:t,panel:n}=e.field(d);return t&&n&&t.from!=t.to?i.NZ.set([p.range(t.from,t.to)]):i.NZ.none}),(0,i.Ux)(function(e,t,n){let{diagnostics:i}=e.state.field(d),r,s=-1,o=-1;i.between(t-(n<0),t+ +(n>0),(e,i,{spec:l})=>{if(t>=e&&t<=i&&(e==i||(t>e||n>0)&&(t<i||n<0)))return r=l.diagnostics,s=e,o=i,!1});let l=e.state.facet(x).tooltipFilter;return(r&&l&&(r=l(r,e.state)),r)?{pos:s,end:o,above:e.state.doc.lineAt(s).to<o,create:()=>({dom:m(e,r)})}:null},{hideOn:h}),A],I=r.sj.define({combine:e=>(0,r.QR)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})})},55284:(e,t,n)=>{var i;n.d(t,{PH:()=>p,Qj:()=>i,Z6:()=>c,cF:()=>r,fI:()=>u,iX:()=>E,rr:()=>M,uY:()=>l});let r=1024,s=0;class o{constructor(e,t){this.from=e,this.to=t}}class l{constructor(e={}){this.id=s++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw RangeError("Can't add per-node props to node types");return"function"!=typeof e&&(e=c.match(e)),t=>{let n=e(t);return void 0===n?null:[this,n]}}}l.closedBy=new l({deserialize:e=>e.split(" ")}),l.openedBy=new l({deserialize:e=>e.split(" ")}),l.group=new l({deserialize:e=>e.split(" ")}),l.isolate=new l({deserialize:e=>{if(e&&"rtl"!=e&&"ltr"!=e&&"auto"!=e)throw RangeError("Invalid value for isolate: "+e);return e||"auto"}}),l.contextHash=new l({perNode:!0}),l.lookAhead=new l({perNode:!0}),l.mounted=new l({perNode:!0});class a{constructor(e,t,n,i=!1){this.tree=e,this.overlay=t,this.parser=n,this.bracketed=i}static get(e){return e&&e.props&&e.props[l.mounted.id]}}let h=Object.create(null);class c{constructor(e,t,n,i=0){this.name=e,this.props=t,this.id=n,this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):h,n=!!e.top|2*!!e.skipped|4*!!e.error|8*(null==e.name),i=new c(e.name||"",t,e.id,n);if(e.props){for(let n of e.props)if(Array.isArray(n)||(n=n(i)),n){if(n[0].perNode)throw RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(1&this.flags)>0}get isSkipped(){return(2&this.flags)>0}get isError(){return(4&this.flags)>0}get isAnonymous(){return(8&this.flags)>0}is(e){if("string"==typeof e){if(this.name==e)return!0;let t=this.prop(l.group);return!!t&&t.indexOf(e)>-1}return this.id==e}static match(e){let t=Object.create(null);for(let n in e)for(let i of n.split(" "))t[i]=e[n];return e=>{for(let n=e.prop(l.group),i=-1;i<(n?n.length:0);i++){let r=t[i<0?e.name:n[i]];if(r)return r}}}}c.none=new c("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t<e.length;t++)if(e[t].id!=t)throw RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let t=[];for(let n of this.types){let i=null;for(let t of e){let e=t(n);if(e){i||(i=Object.assign({},n.props));let t=e[1],r=e[0];r.combine&&r.id in i&&(t=r.combine(i[r.id],t)),i[r.id]=t}}t.push(i?new c(n.name,i,n.id,n.flags):n)}return new u(t)}}let f=new WeakMap,d=new WeakMap;!function(e){e[e.ExcludeBuffers=1]="ExcludeBuffers",e[e.IncludeAnonymous=2]="IncludeAnonymous",e[e.IgnoreMounts=4]="IgnoreMounts",e[e.IgnoreOverlays=8]="IgnoreOverlays",e[e.EnterBracketed=16]="EnterBracketed"}(i||(i={}));class p{constructor(e,t,n,i,r){if(this.type=e,this.children=t,this.positions=n,this.length=i,this.props=null,r&&r.length)for(let[e,t]of(this.props=Object.create(null),r))this.props["number"==typeof e?e:e.id]=t}toString(){let e=a.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let e of this.children){let n=e.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new C(this.topNode,e)}cursorAt(e,t=0,n=0){let i=new C(f.get(this)||this.topNode);return i.moveTo(e,t),f.set(this,i._tree),i}get topNode(){return new b(this,0,0,null)}resolve(e,t=0){let n=x(f.get(this)||this.topNode,e,t,!1);return f.set(this,n),n}resolveInner(e,t=0){let n=x(d.get(this)||this.topNode,e,t,!0);return d.set(this,n),n}resolveStack(e,t=0){return function(e,t,n){let i=e.resolveInner(t,n),r=null;for(let e=i instanceof b?i:i.context.parent;e;e=e.parent)if(e.index<0){let s=e.parent;(r||(r=[i])).push(s.resolve(t,n)),e=s}else{let s=a.get(e.tree);if(s&&s.overlay&&s.overlay[0].from<=t&&s.overlay[s.overlay.length-1].to>=t){let o=new b(s.tree,s.overlay[0].from+e.from,-1,e);(r||(r=[i])).push(x(o,t,n,!1))}}return r?P(r):i}(this,e,t)}iterate(e){let{enter:t,leave:n,from:r=0,to:s=this.length}=e,o=e.mode||0,l=(o&i.IncludeAnonymous)>0;for(let e=this.cursor(o|i.IncludeAnonymous);;){let i=!1;if(e.from<=s&&e.to>=r&&(!l&&e.type.isAnonymous||!1!==t(e))){if(e.firstChild())continue;i=!0}for(;i&&n&&(l||!e.type.isAnonymous)&&n(e),!e.nextSibling();){if(!e.parent())return;i=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];
20if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:I(c.none,this.children,this.positions,0,this.children.length,0,this.length,(e,t,n)=>new p(this.type,e,t,n,this.propValues),e.makeTree||((e,t,n)=>new p(c.none,e,t,n)))}static build(e){return function(e){var t;let{buffer:n,nodeSet:i,maxBufferLength:s=r,reused:o=[],minRepeatType:a=i.types.length}=e,h=Array.isArray(n)?new m(n,n.length):n,c=i.types,u=0,f=0;function d(e,t,n,r,s,o,l,a,h){let c=[],u=[];for(;e.length>r;)c.push(e.pop()),u.push(t.pop()+n-s);e.push(v(i.types[l],c,u,o-s,a-o,h)),t.push(s-n)}function v(e,t,n,i,r,s,o){if(s){let e=[l.contextHash,s];o=o?[e].concat(o):[e]}if(r>25){let e=[l.lookAhead,r];o=o?[e].concat(o):[e]}return new p(e,t,n,i,o)}let x=[],k=[];for(;h.pos>0;)!function e(t,n,r,m,x,k){let{id:b,start:y,end:O,size:w}=h,S=f,P=u;if(w<0){if(h.next(),-1==w){let e=o[b];r.push(e),m.push(y-t);return}if(-3==w){u=b;return}if(-4==w){f=b;return}else throw RangeError(`Unrecognized record size: ${w}`)}let A=c[b],C,R,D=y-t;if(O-y<=s&&(R=function(e,t){let n=h.fork(),i=0,r=0,o=0,l=n.end-s,c={size:0,start:0,skip:0};e:for(let s=n.pos-e;n.pos>s;){let e=n.size;if(n.id==t&&e>=0){c.size=i,c.start=r,c.skip=o,o+=4,i+=4,n.next();continue}let h=n.pos-e;if(e<0||h<s||n.start<l)break;let u=4*(n.id>=a),f=n.start;for(n.next();n.pos>h;){if(n.size<0)if(-3==n.size||-4==n.size)u+=4;else break e;else n.id>=a&&(u+=4);n.next()}r=f,i+=e,o+=u}return(t<0||i==e)&&(c.size=i,c.start=r,c.skip=o),c.size>4?c:void 0}(h.pos-n,x))){let e=new Uint16Array(R.size-R.skip),n=h.pos-R.size,r=e.length;for(;h.pos>n;)r=function e(t,n,i){let{id:r,start:s,end:o,size:l}=h;if(h.next(),l>=0&&r<a){let a=i;if(l>4){let r=h.pos-(l-4);for(;h.pos>r;)i=e(t,n,i)}n[--i]=a,n[--i]=o-t,n[--i]=s-t,n[--i]=r}else -3==l?u=r:-4==l&&(f=r);return i}(R.start,e,r);C=new g(e,O-R.start,i),D=R.start-t}else{let t=h.pos-w;h.next();let n=[],r=[],o=b>=a?b:-1,c=0,u=O;for(;h.pos>t;)o>=0&&h.id==o&&h.size>=0?(h.end<=u-s&&(d(n,r,y,c,h.end,u,o,S,P),c=n.length,u=h.end),h.next()):k>2500?function(e,t,n,r){let o=[],l=0,a=-1;for(;h.pos>t;){let{id:e,start:t,end:n,size:i}=h;if(i>4)h.next();else if(a>-1&&t<a)break;
vendor: 6,502 bytes, line 20
20else a<0&&(a=n-s),o.push(e,t,n),l++,h.next()}if(l){let t=new Uint16Array(4*l),s=o[o.length-2];for(let e=o.length-3,n=0;e>=0;e-=3)t[n++]=o[e],t[n++]=o[e+1]-s,t[n++]=o[e+2]-s,t[n++]=n;n.push(new g(t,o[2]-s,i)),r.push(s-e)}}(y,t,n,r):e(y,t,n,r,o,k+1);if(o>=0&&c>0&&c<n.length&&d(n,r,y,c,y,u,o,S,P),n.reverse(),r.reverse(),o>-1&&c>0){let e=function(e,t){return(n,i,r)=>{let s=0,o=n.length-1,a,h;if(o>=0&&(a=n[o])instanceof p){if(!o&&a.type==e&&a.length==r)return a;(h=a.prop(l.lookAhead))&&(s=i[o]+a.length+h)}return v(e,n,i,r,s,t)}}(A,P);C=I(A,n,r,0,n.length,0,O-y,e,e)}else C=v(A,n,r,O-y,S-O,P)}r.push(C),m.push(D)}(e.start||0,e.bufferStart||0,x,k,-1,0);let b=null!=(t=e.length)?t:x.length?k[0]+x[0].length:0;return new p(c[e.topID],x.reverse(),k.reverse(),b)}(e)}}p.empty=new p(c.none,[],[],0);class m{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new m(this.buffer,this.index)}}class g{constructor(e,t,n){this.buffer=e,this.length=t,this.set=n}get type(){return c.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],n=this.buffer[e+3],i=this.set.types[t],r=i.name;if(/\W/.test(r)&&!i.isError&&(r=JSON.stringify(r)),n==(e+=4))return r;let s=[];for(;e<n;)s.push(this.childString(e)),e=this.buffer[e+3];return r+"("+s.join(",")+")"}findChild(e,t,n,i,r){let{buffer:s}=this,o=-1;for(let l=e;l!=t&&(!v(r,i,s[l+1],s[l+2])||(o=l,!(n>0)));l=s[l+3]);return o}slice(e,t,n){let i=this.buffer,r=new Uint16Array(t-e),s=0;for(let o=e,l=0;o<t;){r[l++]=i[o++],r[l++]=i[o++]-n;let t=r[l++]=i[o++]-n;r[l++]=i[o++]-e,s=Math.max(s,t)}return new g(r,s,this.set)}}function v(e,t,n,i){switch(e){case -2:return n<t;case -1:return i>=t&&n<t;case 0:return n<t&&i>t;case 1:return n<=t&&i>t;case 2:return i>t;case 4:return!0}}function x(e,t,n,r){for(var s;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to<t);){let t=!r&&e instanceof b&&e.index<0?null:e.parent;if(!t)return e;e=t}let o=r?0:i.IgnoreOverlays;if(r)for(let i=e,r=i.parent;r;r=(i=r).parent)i instanceof b&&i.index<0&&(null==(s=r.enter(t,n,o))?void 0:s.from)!=i.from&&(e=r);for(;;){let i=e.enter(t,n,o);if(!i)return e;e=i}}class k{cursor(e=0){return new C(this,e)}getChild(e,t=null,n=null){let i=y(this,e,t,n);return i.length?i[0]:null}getChildren(e,t=null,n=null){return y(this,e,t,n)}resolve(e,t=0){return x(this,e,t,!1)}resolveInner(e,t=0){return x(this,e,t,!0)}matchContext(e){return O(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),n=this;for(;t;){let e=t.lastChild;if(!e||e.to!=t.to)break;e.type.isError&&e.from==e.to?(n=t,t=e.prevSibling):t=e}return n}get node(){return this}get next(){return this.parent}}class b extends k{constructor(e,t,n,i){super(),this._tree=e,this.from=t,this.index=n,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,n,r,s=0){for(let o=this;;){for(let{children:l,positions:h}=o._tree,c=t>0?l.length:-1;e!=c;e+=t){let c=l[e],u=h[e]+o.from,f;if(s&i.EnterBracketed&&c instanceof p&&(f=a.get(c))&&!f.overlay&&f.bracketed&&n>=u&&n<=u+c.length||v(r,n,u,u+c.length)){if(c instanceof g){if(s&i.ExcludeBuffers)continue;let l=c.findChild(0,c.buffer.length,t,n-u,r);if(l>-1)return new S(new w(o,c,e,u),null,l)}else if(s&i.IncludeAnonymous||!c.type.isAnonymous||R(c)){let l;if(!(s&i.IgnoreMounts)&&(l=a.get(c))&&!l.overlay)return new b(l.tree,u,e,o);let h=new b(c,u,e,o);return s&i.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(t<0?c.children.length-1:0,t,n,r,s)}}}if(s&i.IncludeAnonymous||!o.type.isAnonymous||(e=o.index>=0?o.index+t:t<0?-1:o._parent._tree.children.length,!(o=o._parent)))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,n=0){let r;if(!(n&i.IgnoreOverlays)&&(r=a.get(this._tree))&&r.overlay){let s=e-this.from,o=n&i.EnterBracketed&&r.bracketed;for(let{from:e,to:n}of r.overlay)if((t>0||o?e<=s:e<s)&&(t<0||o?n>=s:n>s))return new b(r.tree,r.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,n)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function y(e,t,n,i){let r=e.cursor(),s=[];if(!r.firstChild())return s;if(null!=n){for(let e=!1;!e;)if(e=r.type.is(n),!r.nextSibling())return s}for(;;){if(null!=i&&r.type.is(i))return s;if(r.type.is(t)&&s.push(r.node),!r.nextSibling())return null==i?s:[]}}function O(e,t,n=t.length-1){for(let i=e;n>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[n]&&t[n]!=i.name)return!1;n--}}return!0}class w{constructor(e,t,n,i){this.parent=e,this.buffer=t,this.index=n,this.start=i}}class S extends k{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,n){super(),this.context=e,this._parent=t,this.index=n,this.type=e.buffer.set.types[e.buffer.buffer[n]]}child(e,t,n){let{buffer:i}=this.context,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,n);return r<0?null:new S(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,n=0){if(n&i.ExcludeBuffers)return null;let{buffer:r}=this.context,s=r.findChild(this.index+4,r.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new S(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.
vendor: 1,258 bytes, line 20
20index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new S(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new S(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:n}=this.context,i=this.index+4,r=n.buffer[this.index+3];if(r>i){let s=n.buffer[this.index+1];e.push(n.slice(i,r,s)),t.push(0)}return new p(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function P(e){if(!e.length)return null;let t=0,n=e[0];for(let i=1;i<e.length;i++){let r=e[i];(r.from>n.from||r.to<n.to)&&(n=r,t=i)}let i=n instanceof b&&n.index<0?null:n.parent,r=e.slice();return i?r[t]=i:r.splice(t,1),new A(r,n)}class A{constructor(e,t){this.heads=e,this.node=t}get next(){return P(this.heads)}}class C{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~i.EnterBracketed,e instanceof b)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;
vendor: 4,395 bytes, line 20
20for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return!!e&&(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0)}yieldBuf(e,t){this.index=e;let{start:n,buffer:i}=this.buffer;return this.type=t||i.set.types[i.buffer[e]],this.from=n+i.buffer[e+1],this.to=n+i.buffer[e+2],!0}yield(e){return!!e&&(e instanceof b?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)))}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,n){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,n,this.mode));let{buffer:i}=this.buffer,r=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,n);return!(r<0)&&(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,n=this.mode){return this.buffer?!(n&i.ExcludeBuffers)&&this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,n))}parent(){if(!this.buffer)return this.yieldNode(this.mode&i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return!!this._tree._parent&&this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,n=this.stack.length-1;if(e<0){let e=n<0?0:this.stack[n]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(n<0?t.buffer.length:t.buffer[this.stack[n]+3]))return this.yieldBuf(e)}return n<0&&this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode))}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,n,{buffer:r}=this;if(r){if(e>0){if(this.index<r.buffer.buffer.length)return!1}else for(let e=0;e<this.index;e++)if(r.buffer.buffer[e+3]<this.index)return!1;({index:t,parent:n}=r)}else({index:t,_parent:n}=this._tree);for(;n;{index:t,_parent:n}=n)if(t>-1)for(let r=t+e,s=e<0?-1:n._tree.children.length;r!=s;r+=e){let e=n._tree.children[r];if(this.mode&i.IncludeAnonymous||e instanceof g||!e.type.isAnonymous||R(e))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,n=0;if(e&&e.context==this.buffer)e:for(let i=this.index,r=this.stack.length;r>=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;t=s,n=r+1;break e}i=this.stack[--r]}for(let e=n;e<this.stack.length;e++)t=new S(this.buffer,t,this.stack[e]);return this.bufferNode=new S(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let n=0;;){let i=!1;if(this.type.isAnonymous||!1!==e(this)){if(this.firstChild()){n++;continue}this.type.isAnonymous||(i=!0)}for(;;){if(i&&t&&t(this),i=this.type.isAnonymous,!n)return;if(this.nextSibling())break;this.parent(),n--,i=!0}}}matchContext(e){if(!this.buffer)return O(this.node.parent,e);let{buffer:t}=this.buffer,{types:n}=t.set;for(let i=e.length-1,r=this.stack.length-1;i>=0;r--){if(r<0)return O(this._tree,e,i);let s=n[t.buffer[this.stack[r]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return!1;i--}}return!0}}function R(e){return e.children.some(e=>e instanceof g||!e.type.isAnonymous||R(e))}let D=new WeakMap;function T(e,t){if(!e.isAnonymous||t instanceof g||t.type!=e)return 1;let n=D.get(t);if(null==n){for(let i of(n=1,t.children)){if(i.type!=e||!(i instanceof p)){n=1;break}n+=T(e,i)}D.set(t,n)}return n}function I(e,t,n,i,r,s,o,l,a){let h=0;for(let n=i;n<r;n++)h+=T(e,t[n]);let c=Math.ceil(1.5*h/8),u=[],f=[];return!function t(n,i,r,o,l){for(let h=r;h<o;){let r=h,d=i[h],p=T(e,n[h]);for(h++;h<o;h++){let t=T(e,n[h]);if(p+t>=c)break;p+=t}
vendor: 8,584 bytes, line 20
20if(h==r+1){if(p>c){let e=n[r];t(e.children,e.positions,0,e.children.length,i[r]+l);continue}u.push(n[r])}else{let t=i[h-1]+n[h-1].length-d;u.push(I(e,n,i,r,h,d,t,null,a))}f.push(d+l-s)}}(t,n,i,r,0),(l||a)(u,f,o)}class M{constructor(e,t,n,i,r=!1,s=!1){this.from=e,this.to=t,this.tree=n,this.offset=i,this.open=!!r|2*!!s}get openStart(){return(1&this.open)>0}get openEnd(){return(2&this.open)>0}static addTree(e,t=[],n=!1){let i=[new M(0,e.length,e,0,!1,n)];for(let n of t)n.to>e.length&&i.push(n);return i}static applyChanges(e,t,n=128){if(!t.length)return e;let i=[],r=1,s=e.length?e[0]:null;for(let o=0,l=0,a=0;;o++){let h=o<t.length?t[o]:null,c=h?h.fromA:1e9;if(c-l>=n)for(;s&&s.from<c;){let t=s;if(l>=t.from||c<=t.to||a){let e=Math.max(t.from,l)-a,n=Math.min(t.to,c)-a;t=e>=n?null:new M(e,n,t.tree,t.offset+a,o>0,!!h)}if(t&&i.push(t),s.to>c)break;s=r<e.length?e[r++]:null}if(!h)break;l=h.toA,a=h.toA-h.toB}return i}}class E{startParse(e,t,n){return"string"==typeof e&&(e=new Q(e)),n=n?n.length?n.map(e=>new o(e.from,e.to)):[new o(0,0)]:[new o(0,e.length)],this.createParse(e,t||[],n)}parse(e,t,n){let i=this.startParse(e,t,n);for(;;){let e=i.advance();if(e)return e}}}class Q{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}}new l({perNode:!0})},65998:(e,t,n)=>{n.d(t,{default:()=>r.a});var i=n(81677),r=n.n(i)},66666:(e,t,n)=>{n.d(t,{Ay:()=>N,EI:()=>R,KB:()=>T,Lv:()=>eo,Oh:()=>I,SG:()=>eS,WD:()=>L,Xt:()=>A,Yy:()=>S,Zt:()=>em,_v:()=>D,b_:()=>_,bj:()=>d,cr:()=>ea,f7:()=>H,jU:()=>eR,mv:()=>p,tp:()=>C,y9:()=>ef,yd:()=>z});var i,r=n(55284),s=n(77303),o=n(67456),l=n(97823),a=n(98007);let h=new r.uY,c=new r.uY;class u{constructor(e,t,n=[],i=""){this.data=e,this.name=i,s.$t.prototype.hasOwnProperty("tree")||Object.defineProperty(s.$t.prototype,"tree",{get(){return p(this)}}),this.parser=t,this.extension=[w.of(this),s.$t.languageData.of((e,t,n)=>{let i=f(e,t,n),r=i.type.prop(h);if(!r)return[];let s=e.facet(r),o=i.type.prop(c);if(o){let r=i.resolve(t-i.from,n);for(let t of o)if(t.test(r,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(s)}}return s})].concat(n)}isActiveAt(e,t,n=-1){return f(e,t,n).type.prop(h)==this.data}findRegions(e){let t=e.facet(w);if((null==t?void 0:t.data)==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let n=[],i=(e,t)=>{if(e.prop(h)==this.data)return void n.push({from:t,to:t+e.length});let s=e.prop(r.uY.mounted);if(s){if(s.tree.prop(h)==this.data){if(s.overlay)for(let e of s.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}else if(s.overlay){let e=n.length;if(i(s.tree,s.overlay[0].from+t),n.length>e)return}}for(let n=0;n<e.children.length;n++){let s=e.children[n];s instanceof r.PH&&i(s,e.positions[n]+t)}};return i(p(e),0),n}get allowsNesting(){return!0}}function f(e,t,n){let i=e.facet(w),s=p(e).topNode;if(!i||i.allowsNesting)for(let e=s;e;e=e.enter(t,n,r.Qj.ExcludeBuffers|r.Qj.EnterBracketed))e.type.isTop&&(s=e);return s}u.setState=s.Pe.define();class d extends u{constructor(e,t,n){super(e,t,[],n),this.parser=t}static define(e){var t;let n=(t=e.languageData,s.sj.define({combine:t?e=>e.concat(t):void 0}));return new d(n,e.parser.configure({props:[h.add(e=>e.isTop?n:void 0)]}),e.name)}configure(e,t){return new d(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(e){let t=e.field(u.state,!1);return t?t.tree:r.PH.empty}class m{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let n=this.cursorPos-this.string.length;return e<n||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let g=null;class v{constructor(e,t,n=[],i,r,s,o,l){this.parser=e,this.state=t,this.fragments=n,this.tree=i,this.treeLen=r,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new v(e,t,[],r.PH.empty,0,n,[],null)}startParse(){return this.parser.startParse(new m(this.state.doc),this.fragments)}work(e,t){return(null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=r.PH.empty&&this.isDone(null!=t?t:this.state.doc.length))?(this.takeTree(),!0):this.withContext(()=>{var n;if("number"==typeof e){let t=Date.now()+e;e=()=>Date.now()>t}for(this.parse||(this.parse=this.startParse()),null!=t&&(null==this.parse.stoppedAt||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let i=this.parse.advance();if(i){if(this.fragments=this.withoutTempSkipped(r.rr.addTree(i,this.fragments,null!=this.parse.stoppedAt)),this.treeLen=null!=(n=this.parse.stoppedAt)?n:this.state.doc.length,this.tree=i,this.parse=null,!(this.treeLen<(null!=t?t:this.state.doc.length)))return!0;this.parse=this.startParse()}if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((null==this.parse.stoppedAt||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(r.rr.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=g;g=this;try{return e()}finally{g=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=x(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:i,treeLen:s,viewport:o,skipped:l}=this;if(this.takeTree(),!e.empty){let t=[];if(e.iterChangedRanges((e,n,i,r)=>t.push({fromA:e,toA:n,fromB:i,toB:r})),n=r.rr.applyChanges(n,t),i=r.PH.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length)for(let t of(l=[],this.skipped)){let n=e.mapPos(t.from,1),i=e.mapPos(t.to,-1);n<i&&l.push({from:n,to:i})}}return new v(this.parser,t,n,i,s,o,l,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let t=0;t<this.skipped.length;t++){let{from:n,to:i}=this.skipped[t];n<e.to&&i>e.from&&(this.fragments=x(this.fragments,n,i),this.skipped.splice(t--,1))}return!(this.skipped.length>=t)&&(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends r.iX{createParse(t,n,i){let s=i[0].from,o=i[i.length-1].to;return{parsedPos:s,advance(){let t=g;if(t){for(let e of i)t.tempSkipped.push(e);e&&(t.scheduleOn=t.scheduleOn?Promise.all([t.scheduleOn,e]):e)}return this.parsedPos=o,new r.PH(r.Z6.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&0==t[0].from&&t[0].to>=e}static get(){return g}}function x(e,t,n){return r.rr.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class k{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),n=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,n)||t.takeTree(),new k(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=v.create(e.facet(w).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new k(n)}}u.state=s.sU.define({create:k.init,update(e,t){for(let e of t.effects)if(e.is(u.setState))return e.value;return t.startState.facet(w)!=t.state.facet(w)?k.init(t.state):e.apply(t)}});let b=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(b=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});let y="undefined"!=typeof navigator&&(null==(i=navigator.scheduling)?void 0:i.isInputPending)?()=>navigator.scheduling.isInputPending():null,O=o.Z9.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(u.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(u.state);
20t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=b(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:n,viewport:{to:i}}=this.view,r=n.field(u.state);if(r.tree==r.context.tree&&r.context.isDone(i+1e5))return;let s=Date.now()+Math.min(this.chunkBudget,100,e&&!y?Math.max(25,e.timeRemaining()-5):1e9),o=r.context.treeLen<i&&n.doc.length>i+1e3,l=r.context.work(()=>y&&y()||Date.now()>s,i+1e5*!o);this.chunkBudget-=Date.now()-t,(l||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:u.setState.of(new k(r.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(e=>(0,o.c_)(this.view.state,e)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),w=s.sj.define({combine:e=>e.length?e[0]:null,enables:e=>[u.state,O,o.Lz.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class S{constructor(e,t=[]){this.language=e,this.support=t,this.extension=[e,t]}}let P=s.sj.define(),A=s.sj.define({combine:e=>{if(!e.length)return" ";let t=e[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw Error("Invalid indent unit: "+JSON.stringify(e[0]));return t}});function C(e){let t=e.facet(A);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function R(e,t){let n="",i=e.tabSize,r=e.facet(A)[0];if(" "==r){for(;t>=i;)n+=" ",t-=i;r=" "}for(let e=0;e<t;e++)n+=r;return n}function D(e,t){for(let n of(e instanceof s.$t&&(e=new T(e)),e.state.facet(P))){let i=n(e,t);if(void 0!==i)return i}let n=p(e.state);return n.length>=t?function(e,t,n){let i=t.resolveStack(n),r=t.resolveInner(n,-1).resolve(n,0).enterUnfinishedNodesBefore(n);if(r!=i.node){let e=[];for(let t=r;t&&!(t.from<i.node.from||t.to>i.node.to||t.from==i.node.from&&t.type==i.node.type);t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)i={node:e[t],next:i}}return M(i,e,n)}(e,n,t):null}class T{constructor(e,t={}){this.state=e,this.options=t,this.unit=C(e)}lineAt(e,t=1){let n=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:r}=this.options;if(null!=i&&i>=n.from&&i<=n.to)if(r&&i==e)return{text:"",from:e};else if(t<0?i<e:i<=e)return{text:n.text.slice(i-n.from),from:i};else return{text:n.text.slice(0,i-n.from),from:n.from};return n}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:i}=this.lineAt(e,t);return n.slice(e-i,Math.min(n.length,e+100-i))}column(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.countColumn(n,e-i),s=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return s>-1&&(r+=s-this.countColumn(n,n.search(/\S|$/))),r}countColumn(e,t=e.length){return(0,s.y$)(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:n,from:i}=this.lineAt(e,t),r=this.options.overrideIndentation;if(r){let e=r(i);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}let I=new r.uY;function M(e,t,n){for(let i=e;i;i=i.next){let e=function(e){let t=e.type.prop(I);if(t)return t;let n=e.firstChild,i;if(n&&(i=n.type.prop(r.uY.closedBy))){let t=e.lastChild,n=t&&i.indexOf(t.name)>-1;return e=>B(e,!0,1,void 0,n&&!(e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak)?t.from:void 0)}return null==e.parent?E:null}(i.node);if(e)return e(Q.create(t,n,i))}return 0}function E(){return 0}class Q extends T{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new Q(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(function(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return M(this.context.next,this.base,this.pos)}}function N({closing:e,align:t=!0,units:n=1}){return i=>B(i,t,n,e)}function B(e,t,n,i,r){let s=e.textAfter,o=s.match(/^\s*/)[0].length,l=i&&s.slice(o,o+i.length)==i||r==e.pos+o,a=t?function(e){let t=e.node,n=t.childAfter(t.from),i=t.lastChild;if(!n)return null;let r=e.options.simulateBreak,s=e.state.doc.lineAt(n.from),o=null==r||r<=s.from?s.to:Math.min(s.to,r);for(let e=n.to;;){let r=t.childAfter(e);if(!r||r==i)return null;if(!r.type.isSkipped){if(r.from>=o)return null;let e=/^ */.exec(s.text.slice(n.to-s.from))[0].length;return{from:n.from,to:n.to+e}}e=r.to}}(e):null;return a?l?e.column(a.from):e.column(a.to):e.baseIndent+(l?0:e.unit*n)}function L(){return s.$t.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:i}=e.newSelection.main,r=n.lineAt(i);if(i>r.from+200)return e;let s=n.sliceString(r.from,i);if(!t.some(e=>e.test(s)))return e;let{state:o}=e,l=-1,a=[];for(let{head:e}
20of o.selection.ranges){let t=o.doc.lineAt(e);if(t.from==l)continue;l=t.from;let n=D(o,t.from);if(null==n)continue;let i=/^\s*/.exec(t.text)[0],r=R(o,n);i!=r&&a.push({from:t.from,to:t.from+i.length,insert:r})}return a.length?[e,{changes:a,sequential:!0}]:e})}let F=s.sj.define(),_=new r.uY;function z(e){let t=e.firstChild,n=e.lastChild;return t&&t.to<n.from?{from:t.to,to:n.type.isError?e.to:n.from}:null}function $(e,t,n){for(let i of e.facet(F)){let r=i(e,t,n);if(r)return r}return function(e,t,n){let i=p(e);if(i.length<n)return null;let r=i.resolveStack(n,1),s=null;for(let o=r;o;o=o.next){let r=o.node;if(r.to<=n||r.from>n)continue;if(s&&r.from<t)break;let l=r.type.prop(_);if(l&&(r.to<i.length-50||i.length==e.doc.length||!function(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}(r))){let i=l(r,e);i&&i.from<=n&&i.from>=t&&i.to>n&&(s=i)}}return s}(e,t,n)}function X(e,t){let n=t.mapPos(e.from,1),i=t.mapPos(e.to,-1);return n>=i?void 0:{from:n,to:i}}let j=s.Pe.define({map:X}),W=s.Pe.define({map:X});function q(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(e=>e.from<=n&&e.to>=n)||t.push(e.lineBlockAt(n));return t}let U=s.sU.define({create:()=>o.NZ.none,update(e,t){for(let n of(t.isUserEvent("delete")&&t.changes.iterChangedRanges((t,n)=>e=V(e,t,n)),e=e.map(t.changes),t.effects))if(n.is(j)&&!function(e,t,n){let i=!1;return e.between(t,t,(e,r)=>{e==t&&r==n&&(i=!0)}),i}(e,n.value.from,n.value.to)){let{preparePlaceholder:i}=t.state.facet(K),r=i?o.NZ.replace({widget:new ei(i(t.state,n.value))}):en;e=e.update({add:[r.range(n.value.from,n.value.to)]})}else n.is(W)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));return t.selection&&(e=V(e,t.selection.main.head)),e},provide:e=>o.Lz.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(e,t)=>{n.push(e,t)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n<e.length;){let i=e[n++],r=e[n++];if("number"!=typeof i||"number"!=typeof r)throw RangeError("Invalid JSON for fold state");t.push(en.range(i,r))}return o.NZ.set(t,!0)}});function V(e,t,n=t){let i=!1;return e.between(t,n,(e,r)=>{e<n&&r>t&&(i=!0)}),i?e.update({filterFrom:t,filterTo:n,filter:(e,i)=>e>=n||i<=t}):e}function Z(e,t,n){var i;let r=null;return null==(i=e.field(U,!1))||i.between(t,n,(e,t)=>{(!r||r.from>e)&&(r={from:e,to:t})}),r}function G(e,t){return e.field(U,!1)?t:t.concat(s.Pe.appendConfig.of(ee()))}function Y(e,t,n=!0){let i=e.state.doc.lineAt(t.from).number,r=e.state.doc.lineAt(t.to).number;return o.Lz.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${i} ${e.state.phrase("to")} ${r}.`)}let H=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of q(e)){let n=$(e.state,t.from,t.to);if(n)return e.dispatch({effects:G(e.state,[j.of(n),Y(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(U,!1))return!1;let t=[];for(let n of q(e)){let i=Z(e.state,n.from,n.to);i&&t.push(W.of(i),Y(e,i,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let i=0;i<t.doc.length;){let r=e.lineBlockAt(i),s=$(t,r.from,r.to);s&&n.push(j.of(s)),i=(s?e.lineBlockAt(s.to):r).to+1}return n.length&&e.dispatch({effects:G(e.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:e=>{let t=e.state.field(U,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(e,t)=>{n.push(W.of({from:e,to:t}))}),e.dispatch({effects:n}),!0}}],J={placeholderDOM:null,preparePlaceholder:null,placeholderText:"â¦"},K=s.sj.define({combine:e=>(0,s.QR)(e,J)});function ee(e){let t=[U,el];return e&&t.push(K.of(e)),t}function et(e,t){let{state:n}=e,i=n.facet(K),r=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),i=Z(e.state,n.from,n.to);i&&e.dispatch({effects:W.of(i)}),t.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(e,r,t);let s=document.createElement("span");return s.textContent=i.placeholderText,s.setAttribute("aria-label",n.phrase("folded code")),s.title=n.phrase("unfold"),s.className="cm-foldPlaceholder",s.onclick=r,s}let en=o.NZ.replace({widget:new class extends o.xO{toDOM(e){return et(e,null)}}});class ei extends o.xO{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return et(e,this.value)}}let er={openText:"â",closedText:"âº",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class es extends o.wJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function eo(e={}){let t={...er,...e},n=new es(t,!0),i=new es(t,!1),r=o.Z9.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(w)!=e.state.facet(w)||e.startState.field(U,!1)!=e.state.field(U,!1)||p(e.startState)!=p(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new s.vB;for(let r of e.viewportLineBlocks){let s=Z(e.state,r.from,r.to)?i:$(e.state,r.from,r.to)?n:null;s&&t.add(r.from,r.from,s)}return t.finish()}}),{domEventHandlers:l}=t;return[r,(0,o.cU)({class:"cm-foldGutter",markers(e){var t;return(null==(t=e.plugin(r))?void 0:t.markers)||s.om.empty},initialSpacer:()=>new es(t,!1),domEventHandlers:{...l,click:(e,t,n)=>{if(l.click&&l.click(e,t,n))return!0;let i=Z(e.state,t.from,t.to);if(i)return e.dispatch({effects:W.of(i)}),!0;let r=$(e.state,t.from,t.to);
20return!!r&&(e.dispatch({effects:j.of(r)}),!0)}}}),ee()]}let el=o.Lz.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ea{constructor(e,t){let n;function i(e){let t=a.G.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;let r="string"==typeof t.all?t.all:t.all?i(t.all):void 0,s=t.scope;this.scope=s instanceof u?e=>e.prop(h)==s.data:s?e=>e==s:void 0,this.style=(0,l.az)(e.map(e=>({tag:e.tag,class:e.class||i(Object.assign({},e,{tag:null}))})),{all:r}).style,this.module=n?new a.G(n):null,this.themeType=t.themeType}static define(e,t){return new ea(e,t||{})}}let eh=s.sj.define(),ec=s.sj.define({combine:e=>e.length?[e[0]]:null});function eu(e){let t=e.facet(eh);return t.length?t:e.facet(ec)}function ef(e,t){let n=[ep],i;return e instanceof ea&&(e.module&&n.push(o.Lz.styleModule.of(e.module)),i=e.themeType),(null==t?void 0:t.fallback)?n.push(ec.of(e)):i?n.push(eh.computeN([o.Lz.darkTheme],t=>t.facet(o.Lz.darkTheme)==("dark"==i)?[e]:[])):n.push(eh.of(e)),n}class ed{constructor(e){this.markCache=Object.create(null),this.tree=p(e.state),this.decorations=this.buildDeco(e,eu(e.state)),this.decoratedTo=e.viewport.to}update(e){let t=p(e.state),n=eu(e.state),i=n!=eu(e.startState),{viewport:r}=e.view,s=e.changes.mapPos(this.decoratedTo,1);t.length<r.to&&!i&&t.type==this.tree.type&&s>=r.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=s):(t!=this.tree||e.viewportChanged||i)&&(this.tree=t,this.decorations=this.buildDeco(e.view,n),this.decoratedTo=r.to)}buildDeco(e,t){if(!t||!this.tree.length)return o.NZ.none;let n=new s.vB;for(let{from:i,to:r}of e.visibleRanges)(0,l.DM)(this.tree,t,(e,t,i)=>{n.add(e,t,this.markCache[i]||(this.markCache[i]=o.NZ.mark({class:i})))},i,r);return n.finish()}}let ep=s.Nb.high(o.Z9.fromClass(ed,{decorations:e=>e.decorations})),em=ea.define([{tag:l._A.meta,color:"#404740"},{tag:l._A.link,textDecoration:"underline"},{tag:l._A.heading,textDecoration:"underline",fontWeight:"bold"},{tag:l._A.emphasis,fontStyle:"italic"},{tag:l._A.strong,fontWeight:"bold"},{tag:l._A.strikethrough,textDecoration:"line-through"},{tag:l._A.keyword,color:"#708"},{tag:[l._A.atom,l._A.bool,l._A.url,l._A.contentSeparator,l._A.labelName],color:"#219"},{tag:[l._A.literal,l._A.inserted],color:"#164"},{tag:[l._A.string,l._A.deleted],color:"#a11"},{tag:[l._A.regexp,l._A.escape,l._A.special(l._A.string)],color:"#e40"},{tag:l._A.definition(l._A.variableName),color:"#00f"},{tag:l._A.local(l._A.variableName),color:"#30a"},{tag:[l._A.typeName,l._A.namespace],color:"#085"},{tag:l._A.className,color:"#167"},{tag:[l._A.special(l._A.variableName),l._A.macroName],color:"#256"},{tag:l._A.definition(l._A.propertyName),color:"#00c"},{tag:l._A.comment,color:"#940"},{tag:l._A.invalid,color:"#f00"}]),eg=o.Lz.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),ev="()[]{}",ex=s.sj.define({combine:e=>(0,s.QR)(e,{afterCursor:!0,brackets:ev,maxScanDistance:1e4,renderMatch:ey})}),ek=o.NZ.mark({class:"cm-matchingBracket"}),eb=o.NZ.mark({class:"cm-nonmatchingBracket"});function ey(e){let t=[],n=e.matched?ek:eb;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}function eO(e){let t=[],n=e.facet(ex);for(let i of e.selection.ranges){if(!i.empty)continue;let r=eR(e,i.head,-1,n)||i.head>0&&eR(e,i.head-1,1,n)||n.afterCursor&&(eR(e,i.head,1,n)||i.head<e.doc.length&&eR(e,i.head+1,-1,n));r&&(t=t.concat(n.renderMatch(r,e)))}return o.NZ.set(t,!0)}let ew=[o.Z9.fromClass(class{constructor(e){this.paused=!1,this.decorations=eO(e.state)}update(e){(e.docChanged||e.selectionSet||this.paused)&&(e.view.composing?(this.decorations=this.decorations.map(e.changes),this.paused=!0):(this.decorations=eO(e.state),this.paused=!1))}},{decorations:e=>e.decorations}),eg];function eS(e={}){return[ex.of(e),ew]}let eP=new r.uY;function eA(e,t,n){let i=e.prop(t<0?r.uY.openedBy:r.uY.closedBy);if(i)return i;if(1==e.name.length){let i=n.indexOf(e.name);if(i>-1&&i%2==+(t<0))return[n[i+t]]}return null}function eC(e){let t=e.type.prop(eP);return t?t(e.node):e}function eR(e,t,n,i={}){let r=i.maxScanDistance||1e4,s=i.brackets||ev,o=p(e),l=o.resolveInner(t,n);for(let e=l;e;e=e.parent){let i=eA(e.type,n,s);if(i&&e.from<e.to){let r=eC(e);if(r&&(n>0?t>=r.from&&t<r.to:t>r.from&&t<=r.to))return function(e,t,n,i,r,s,o){let l=i.parent,a={from:r.from,to:r.to},h=0,c=null==l?void 0:l.cursor();if(c&&(n<0?c.childBefore(i.from):c.childAfter(i.to)))do if(n<0?c.to<=i.from:c.from>=i.to){if(0==h&&s.indexOf(c.type.name)>-1&&c.from<c.to){let e=eC(c);return{start:a,end:e?{from:e.from,to:e.to}:void 0,matched:!0}}else if(eA(c.type,n,o))h++;
20else if(eA(c.type,-n,o)){if(0==h){let e=eC(c);return{start:a,end:e&&e.from<e.to?{from:e.from,to:e.to}:void 0,matched:!1}}h--}}while(n<0?c.prevSibling():c.nextSibling());return{start:a,matched:!1}}(0,0,n,e,r,i,s)}}return function(e,t,n,i,r,s,o){let l=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),a=o.indexOf(l);if(a<0||a%2==0!=n>0)return null;let h={from:n<0?t-1:t,to:n>0?t+1:t},c=e.doc.iterRange(t,n>0?e.doc.length:0),u=0;for(let e=0;!c.next().done&&e<=s;){let s=c.value;n<0&&(e+=s.length);let l=t+e*n;for(let e=n>0?0:s.length-1,t=n>0?s.length:-1;e!=t;e+=n){let t=o.indexOf(s[e]);if(!(t<0)&&i.resolveInner(l+e,1).type==r)if(t%2==0==n>0)u++;else{if(1==u)return{start:h,end:{from:l+e,to:l+e+1},matched:t>>1==a>>1};u--}}n>0&&(e+=s.length)}return c.done?{start:h,matched:!1}:null}(e,t,n,o,l.type,r,s)}let eD=Object.create(null),eT=[r.Z6.none],eI=[],eM=Object.create(null),eE=Object.create(null);for(let[e,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])eE[e]=function(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let i=e[n]||l._A[n];i?"function"==typeof i?t.length?t=t.map(i):eQ(n,`Modifier ${n} used at start of tag`):t.length?eQ(n,`Tag ${n} used as modifier`):t=Array.isArray(i)?i:[i]:eQ(n,`Unknown highlighting tag ${n}`)}for(let e of t)n.push(e)}if(!n.length)return 0;let i=t.replace(/ /g,"_"),s=i+" "+n.map(e=>e.id),o=eM[s];if(o)return o.id;let a=eM[s]=r.Z6.define({id:eT.length,name:i,props:[(0,l.pn)({[i]:n})]});return eT.push(a),a.id}(eD,t);function eQ(e,t){eI.indexOf(e)>-1||(eI.push(e),console.warn(t))}o.OP.RTL,o.OP.LTR},69939:(e,t,n)=>{n.d(t,{Eo:()=>H,gN:()=>v});var i=n(67456),r=n(77303),s=n(6247);let o="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class l{constructor(e,t,n=0,i=e.length,r,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,i),this.bufferStart=n,this.normalize=r?e=>r(o(e)):o,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return -1;this.bufferPos=0,this.buffer=this.iter.value}return(0,r.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,r.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,r.Fh)(e);let i=this.normalize(t);if(i.length)for(let e=0,r=n;;e++){let s=i.charCodeAt(e),o=this.match(s,r,this.bufferPos+this.bufferStart);if(e==i.length-1){if(o)return this.value=o,this;break}r==n&&e<t.length&&t.charCodeAt(e)==s&&r++}}}match(e,t,n){let i=null;for(let t=0;t<this.matches.length;t+=2){let r=this.matches[t],s=!1;this.query.charCodeAt(r)==e&&(r==this.query.length-1?i={from:this.matches[t+1],to:n}:(this.matches[t]++,s=!0)),s||(this.matches.splice(t,2),t-=2)}return this.query.charCodeAt(0)==e&&(1==this.query.length?i={from:t,to:n}:this.matches.push(1,t)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}"undefined"!=typeof Symbol&&(l.prototype[Symbol.iterator]=function(){return this});let a={from:-1,to:-1,match:/.*/.exec("")},h="gm"+(null==/x/.unicode?"":"u");class c{constructor(e,t,n,i=0,r=e.length){if(this.text=e,this.to=r,this.curLine="",this.done=!1,this.value=a,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new d(e,t,n,i,r);this.re=new RegExp(t,h+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.iter=e.iter();let s=e.lineAt(i);this.curLineStart=s.from,this.matchPos=p(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,i=n+t[0].length;if(this.matchPos=p(this.text,i+ +(n==i)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(n<i||n>this.value.to)&&(!this.test||this.test(n,i,t)))return this.value={from:n,to:i,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length<this.to))return this.done=!0,this;this.nextLine(),e=0}}}}let u=new WeakMap;class f{constructor(e,t){this.from=e,this.text=t}get to(){return this.from+this.text.length}static get(e,t,n){let i=u.get(e);if(!i||i.from>=n||i.to<=t){let i=new f(t,e.sliceString(t,n));return u.set(e,i),i}if(i.from==t&&i.to==n)return i;let{text:r,from:s}=i;return s>t&&(r=e.sliceString(t,s)+r,s=t),i.to<n&&(r+=e.sliceString(i.to,n)),u.set(e,new f(s,r)),new f(t,r.slice(t-s,n-s))}}class d{constructor(e,t,n,i,r){this.text=e,this.to=r,this.done=!1,this.value=a,this.matchPos=p(e,i),this.re=new RegExp(t,h+((null==n?void 0:n.ignoreCase)?"i":"")),this.test=null==n?void 0:n.test,this.flat=f.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=p(this.text,n+ +(e==n)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=f.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function p(e,t){if(t>=e.length)return t;let n=e.lineAt(t),i;for(;t<n.to&&(i=n.text.charCodeAt(t-n.from))>=56320&&i<57344;)t++;return t}"undefined"!=typeof Symbol&&(c.prototype[Symbol.iterator]=d.prototype[Symbol.iterator]=function(){return this});let m={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},g=r.sj.define({combine:e=>(0,r.QR)(e,m,{highlightWordAroundCursor:(e,t)=>
20e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function v(e){let t=[O,y];return e&&t.push(g.of(e)),t}let x=i.NZ.mark({class:"cm-selectionMatch"}),k=i.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function b(e,t,n,i){return(0==n||e(t.sliceDoc(n-1,n))!=r.Je.Word)&&(i==t.doc.length||e(t.sliceDoc(i,i+1))!=r.Je.Word)}let y=i.Z9.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(g),{state:n}=e,s=n.selection;if(s.ranges.length>1)return i.NZ.none;let o=s.main,a,h=null;if(o.empty){if(!t.highlightWordAroundCursor)return i.NZ.none;let e=n.wordAt(o.head);if(!e)return i.NZ.none;h=n.charCategorizer(o.head),a=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e<t.minSelectionLength||e>200)return i.NZ.none;if(t.wholeWords){var c,u,f;if(a=n.sliceDoc(o.from,o.to),!(b(h=n.charCategorizer(o.head),n,o.from,o.to)&&(c=h,u=o.from,f=o.to,c(n.sliceDoc(u,u+1))==r.Je.Word&&c(n.sliceDoc(f-1,f))==r.Je.Word)))return i.NZ.none}else if(!(a=n.sliceDoc(o.from,o.to)))return i.NZ.none}let d=[];for(let r of e.visibleRanges){let e=new l(n.doc,a,r.from,r.to);for(;!e.next().done;){let{from:r,to:s}=e.value;if((!h||b(h,n,r,s))&&(o.empty&&r<=o.from&&s>=o.to?d.push(k.range(r,s)):(r>=o.to||s<=o.from)&&d.push(x.range(r,s)),d.length>t.maxMatches))return i.NZ.none}}return i.NZ.set(d)}},{decorations:e=>e.decorations}),O=i.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),w=r.sj.define({combine:e=>(0,r.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new J(e),scrollToMatch:e=>i.Lz.scrollIntoView(e)})});class S{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,h),!0}catch(e){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord,this.test=e.test}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord&&this.test==e.test}create(){return this.regexp?new I(this):new C(this)}getCursor(e,t=0,n){let i=e.doc?e:r.$t.create({doc:e});return null==n&&(n=i.doc.length),this.regexp?R(this,i,t,n):A(this,i,t,n)}}class P{constructor(e){this.spec=e}}function A(e,t,n,i){var s,o,a,h;let c;return e.wholeWord&&(a=t.doc,h=t.charCategorizer(t.selection.main.head),c=(e,t,n,i)=>((i>e||i+n.length<t)&&(i=Math.max(0,e-2),n=a.sliceString(i,Math.min(a.length,t+2))),(h(D(n,e-i))!=r.Je.Word||h(T(n,e-i))!=r.Je.Word)&&(h(T(n,t-i))!=r.Je.Word||h(D(n,t-i))!=r.Je.Word))),e.test&&(s=e.test,o=c,c=(e,n,i,r)=>(!o||!!o(e,n,i,r))&&s(e>=r&&n<=r+i.length?i.slice(e-r,n-r):t.doc.sliceString(e,n),t,e,n)),new l(t.doc,e.unquoted,n,i,e.caseSensitive?void 0:e=>e.toLowerCase(),c)}class C extends P{constructor(e){super(e)}nextMatch(e,t,n){let i=A(this.spec,e,n,e.doc.length).nextOverlapping();if(i.done){let n=Math.min(e.doc.length,t+this.spec.unquoted.length);i=A(this.spec,e,0,n).nextOverlapping()}return i.done||i.value.from==t&&i.value.to==n?null:i.value}prevMatchInRange(e,t,n){for(let i=n;;){let n=Math.max(t,i-1e4-this.spec.unquoted.length),r=A(this.spec,e,n,i),s=null;for(;!r.nextOverlapping().done;)s=r.value;if(s)return s;if(n==t)return null;i-=1e4}}prevMatch(e,t,n){let i=this.prevMatchInRange(e,0,t);return i||(i=this.prevMatchInRange(e,Math.max(0,n-this.spec.unquoted.length),e.doc.length)),i&&(i.from!=t||i.to!=n)?i:null}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,t){let n=A(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=A(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}function R(e,t,n,i){var s,o,l;let a;return e.wholeWord&&(l=t.charCategorizer(t.selection.main.head),a=(e,t,n)=>!n[0].length||(l(D(n.input,n.index))!=r.Je.Word||l(T(n.input,n.index))!=r.Je.Word)&&(l(T(n.input,n.index+n[0].length))!=r.Je.Word||l(D(n.input,n.index+n[0].length))!=r.Je.Word)),e.test&&(s=e.test,o=a,a=(e,n,i)=>(!o||o(e,n,i))&&s(i[0],t,e,n)),new c(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:a},n,i)}function D(e,t){return e.slice((0,r.zK)(e,t,!1),t)}function T(e,t){return e.slice(t,(0,r.zK)(e,t))}
20class I extends P{nextMatch(e,t,n){let i=R(this.spec,e,n,e.doc.length).next();return i.done&&(i=R(this.spec,e,0,t).next()),i.done?null:i.value}prevMatchInRange(e,t,n){for(let i=1;;i++){let r=Math.max(t,n-1e4*i),s=R(this.spec,e,r,n),o=null;for(;!s.next().done;)o=s.value;if(o&&(r==t||o.from>r+10))return o;if(r==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&]|\d+)/g,(t,n)=>{if("&"==n)return e.match[0];if("$"==n)return"$";for(let t=n.length;t>0;t--){let i=+n.slice(0,t);if(i>0&&i<e.match.length)return e.match[i]+n.slice(t)}return t})}matchAll(e,t){let n=R(this.spec,e,0,e.doc.length),i=[];for(;!n.next().done;){if(i.length>=t)return null;i.push(n.value)}return i}highlight(e,t,n,i){let r=R(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!r.next().done;)i(r.value.from,r.value.to)}}let M=r.Pe.define(),E=r.Pe.define(),Q=r.sU.define({create:e=>new N(U(e).create(),null),update(e,t){for(let n of t.effects)n.is(M)?e=new N(n.value.create(),e.panel):n.is(E)&&(e=new N(e.query,n.value?q:null));return e},provide:e=>i.S7.from(e,e=>e.panel)});class N{constructor(e,t){this.query=e,this.panel=t}}let B=i.NZ.mark({class:"cm-searchMatch"}),L=i.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),F=i.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Q))}update(e){let t=e.state.field(Q);(t!=e.startState.field(Q)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return i.NZ.none;let{view:n}=this,s=new r.vB;for(let t=0,i=n.visibleRanges,r=i.length;t<r;t++){let{from:o,to:l}=i[t];for(;t<r-1&&l>i[t+1].from-500;)l=i[++t].to;e.highlight(n.state,o,l,(e,t)=>{let i=n.state.selection.ranges.some(n=>n.from==e&&n.to==t);s.add(e,t,i?L:B)})}return s.finish()}},{decorations:e=>e.decorations});function _(e){return t=>{let n=t.state.field(Q,!1);return n&&n.query.spec.valid?e(t,n):G(t)}}let z=_((e,{query:t})=>{let{to:n}=e.state.selection.main,i=t.nextMatch(e.state,n,n);if(!i)return!1;let s=r.OF.single(i.from,i.to),o=e.state.facet(w);return e.dispatch({selection:s,effects:[et(e,i),o.scrollToMatch(s.main,e)],userEvent:"select.search"}),Z(e),!0}),$=_((e,{query:t})=>{let{state:n}=e,{from:i}=n.selection.main,s=t.prevMatch(n,i,i);if(!s)return!1;let o=r.OF.single(s.from,s.to),l=e.state.facet(w);return e.dispatch({selection:o,effects:[et(e,s),l.scrollToMatch(o.main,e)],userEvent:"select.search"}),Z(e),!0}),X=_((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!!n&&!!n.length&&(e.dispatch({selection:r.OF.create(n.map(e=>r.OF.range(e.from,e.to))),userEvent:"select.search.matches"}),!0)}),j=_((e,{query:t})=>{let{state:n}=e,{from:s,to:o}=n.selection.main;if(n.readOnly)return!1;let l=t.nextMatch(n,s,s);if(!l)return!1;let a=l,h=[],c,u,f=[];a.from==s&&a.to==o&&(u=n.toText(t.getReplacement(a)),h.push({from:a.from,to:a.to,insert:u}),a=t.nextMatch(n,a.from,a.to),f.push(i.Lz.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(s).number)+".")));let d=e.state.changes(h);return a&&(c=r.OF.single(a.from,a.to).map(d),f.push(et(e,a)),f.push(n.facet(w).scrollToMatch(c.main,e))),e.dispatch({changes:d,selection:c,effects:f,userEvent:"input.replace"}),!0}),W=_((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(e=>{let{from:n,to:i}=e;return{from:n,to:i,insert:t.getReplacement(e)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:i.Lz.announce.of(r),userEvent:"input.replace.all"}),!0});function q(e){return e.state.facet(w).createPanel(e)}function U(e,t){var n,i,r,s,o;let l=e.selection.main,a=l.empty||l.to>l.from+100?"":e.sliceDoc(l.from,l.to);if(t&&!a)return t;let h=e.facet(w);return new S({search:(null!=(n=null==t?void 0:t.literal)?n:h.literal)?a:a.replace(/\n/g,"\\n"),caseSensitive:null!=(i=null==t?void 0:t.caseSensitive)?i:h.caseSensitive,literal:null!=(r=null==t?void 0:t.literal)?r:h.literal,regexp:null!=(s=null==t?void 0:t.regexp)?s:h.regexp,wholeWord:null!=(o=null==t?void 0:t.wholeWord)?o:h.wholeWord})}function V(e){let t=(0,i.ld)(e,q);return t&&t.dom.querySelector("[main-field]")}function Z(e){let t=V(e);t&&t==e.root.activeElement&&t.select()}let G=e=>{let t=e.state.field(Q,!1);if(t&&t.panel){let n=V(e);if(n&&n!=e.root.activeElement){let i=U(e.state,t.query.spec);i.valid&&e.dispatch({effects:M.of(i)}),n.focus(),n.select()}}else e.dispatch({effects:[E.of(!0),t?M.of(U(e.state,t.query.spec)):r.Pe.appendConfig.of(ei)]});return!0},Y=e=>{let t=e.state.field(Q,!1);if(!t||!t.panel)return!1;let n=(0,i.ld)(e,q);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:E.of(!1)}),!0},H=[{key:"Mod-f",run:G,scope:"editor search-panel"},{key:"F3",run:z,shift:$,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:z,shift:$,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Y,scope:"editor search-panel"}
20,{key:"Mod-Shift-l",run:({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:i,to:s}=n.main,o=[],a=0;for(let t=new l(e.doc,e.sliceDoc(i,s));!t.next().done;){if(o.length>1e3)return!1;t.value.from==i&&(a=o.length),o.push(r.OF.range(t.value.from,t.value.to))}return t(e.update({selection:r.OF.create(o,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let{state:t}=e,n=String(t.doc.lineAt(e.state.selection.main.head).number),{close:s,result:o}=(0,i.ui)(e,{label:t.phrase("Go to line"),input:{type:"text",name:"line",value:n},focus:!0,submitLabel:t.phrase("go")});return o.then(n=>{let o=n&&/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.elements.line.value);if(!o)return void e.dispatch({effects:s});let l=t.doc.lineAt(t.selection.main.head),[,a,h,c,u]=o,f=c?+c.slice(1):0,d=h?+h:l.number;if(h&&u){let e=d/100;a&&(e=e*("-"==a?-1:1)+l.number/t.doc.lines),d=Math.round(t.doc.lines*e)}else h&&a&&(d=d*("-"==a?-1:1)+l.number);let p=t.doc.line(Math.max(1,Math.min(t.doc.lines,d))),m=r.OF.cursor(p.from+Math.max(0,Math.min(f,p.length)));e.dispatch({effects:[s,i.Lz.scrollIntoView(m.from,{y:"center"})],selection:m})}),!0}},{key:"Mod-d",run:({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(e=>e.from===e.to))return(({state:e,dispatch:t})=>{let{selection:n}=e,i=r.OF.create(n.ranges.map(t=>e.wordAt(t.head)||r.OF.cursor(t.head)),n.mainIndex);return!i.eq(n)&&(t(e.update({selection:i})),!0)})({state:e,dispatch:t});let s=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(t=>e.sliceDoc(t.from,t.to)!=s))return!1;let o=function(e,t){let{main:n,ranges:i}=e.selection,r=e.wordAt(n.head),s=r&&r.from==n.from&&r.to==n.to;for(let n=!1,r=new l(e.doc,t,i[i.length-1].to);;)if(r.next(),r.done){if(n)return null;r=new l(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),n=!0}else{if(n&&i.some(e=>e.from==r.value.from))continue;if(s){let t=e.wordAt(r.value.from);if(!t||t.from!=r.value.from||t.to!=r.value.to)continue}return r.value}}(e,s);return!!o&&(t(e.update({selection:e.selection.addRange(r.OF.range(o.from,o.to),!1),effects:i.Lz.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class J{constructor(e){this.view=e;let t=this.query=e.state.field(Q).query.spec;function n(e,t,n){return(0,s.A)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,s.A)("input",{value:t.search,placeholder:K(e,"Find"),"aria-label":K(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,s.A)("input",{value:t.replace,placeholder:K(e,"Replace"),"aria-label":K(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,s.A)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,s.A)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=(0,s.A)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=(0,s.A)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",()=>z(e),[K(e,"next")]),n("prev",()=>$(e),[K(e,"previous")]),n("select",()=>X(e),[K(e,"all")]),(0,s.A)("label",null,[this.caseField,K(e,"match case")]),(0,s.A)("label",null,[this.reField,K(e,"regexp")]),(0,s.A)("label",null,[this.wordField,K(e,"by word")]),...e.state.readOnly?[]:[(0,s.A)("br"),this.replaceField,n("replace",()=>j(e),[K(e,"replace")]),n("replaceAll",()=>W(e),[K(e,"replace all")])],(0,s.A)("button",{name:"close",onclick:()=>Y(e),"aria-label":K(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new S({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:M.of(e)}))}keydown(e){(0,i.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?$:z)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),j(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(M)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(w).top}}function K(e,t){return e.state.phrase(t)}let ee=/[\s\.,:;?!]/;function et(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),s=e.state.doc.lineAt(n).to,o=Math.max(r.from,t-30),l=Math.min(s,n+30),a=e.state.sliceDoc(o,l);if(o!=r.from){for(let e=0;e<30;e++)if(!ee.test(a[e+1])&&ee.test(a[e])){a=a.slice(e);break}}if(l!=s){for(let e=a.length-1;e>a.length-30;e--)if(!ee.test(a[e-1])&&ee.test(a[e])){a=a.slice(0,e);break}}return i.Lz.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${r.number}.`)}let en=i.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),ei=[Q,r.Nb.low(F),en]}
20,71838:(e,t,n)=>{n.d(t,{UC:()=>G,B8:()=>V,bL:()=>U,l9:()=>Z});var i=n(81626),r=n(75553),s=n(92086),o=n(87420),l=n(2956),a=n(70041),h=n(55039),c=n(31613),u=n(41429),f=n(10829),d=n(56658),p="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[v,x,k]=(0,o.N)(g),[b,y]=(0,s.A)(g,[k]),[O,w]=b(g),S=i.forwardRef((e,t)=>(0,d.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,d.jsx)(P,{...e,ref:t})})}));S.displayName=g;var P=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:s,loop:o=!1,dir:a,currentTabStopId:v,defaultCurrentTabStopId:k,onCurrentTabStopIdChange:b,onEntryFocus:y,preventScrollOnEntryFocus:w=!1,...S}=e,P=i.useRef(null),A=(0,l.s)(t,P),C=(0,f.jH)(a),[R,T]=(0,u.i)({prop:v,defaultProp:null!=k?k:null,onChange:b,caller:g}),[I,M]=i.useState(!1),E=(0,c.c)(y),Q=x(n),N=i.useRef(!1),[B,L]=i.useState(0);return i.useEffect(()=>{let e=P.current;if(e)return e.addEventListener(p,E),()=>e.removeEventListener(p,E)},[E]),(0,d.jsx)(O,{scope:n,orientation:s,dir:C,loop:o,currentTabStopId:R,onItemFocus:i.useCallback(e=>T(e),[T]),onItemShiftTab:i.useCallback(()=>M(!0),[]),onFocusableItemAdd:i.useCallback(()=>L(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>L(e=>e-1),[]),children:(0,d.jsx)(h.sG.div,{tabIndex:I||0===B?-1:0,"data-orientation":s,...S,ref:A,style:{outline:"none",...e.style},onMouseDown:(0,r.mK)(e.onMouseDown,()=>{N.current=!0}),onFocus:(0,r.mK)(e.onFocus,e=>{let t=!N.current;if(e.target===e.currentTarget&&t&&!I){let t=new CustomEvent(p,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=Q().filter(e=>e.focusable);D([e.find(e=>e.active),e.find(e=>e.id===R),...e].filter(Boolean).map(e=>e.ref.current),w)}}N.current=!1}),onBlur:(0,r.mK)(e.onBlur,()=>M(!1))})})}),A="RovingFocusGroupItem",C=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:s=!0,active:o=!1,tabStopId:l,children:c,...u}=e,f=(0,a.B)(),p=l||f,m=w(A,n),g=m.currentTabStopId===p,k=x(n),{onFocusableItemAdd:b,onFocusableItemRemove:y,currentTabStopId:O}=m;return i.useEffect(()=>{if(s)return b(),()=>y()},[s,b,y]),(0,d.jsx)(v.ItemSlot,{scope:n,id:p,focusable:s,active:o,children:(0,d.jsx)(h.sG.span,{tabIndex:g?0:-1,"data-orientation":m.orientation,...u,ref:t,onMouseDown:(0,r.mK)(e.onMouseDown,e=>{s?m.onItemFocus(p):e.preventDefault()}),onFocus:(0,r.mK)(e.onFocus,()=>m.onItemFocus(p)),onKeyDown:(0,r.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void m.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var i;
20let r=(i=e.key,"rtl"!==n?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(r))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)))return R[r]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=k().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let i=n.indexOf(e.currentTarget);n=m.loop?function(e,t){return e.map((n,i)=>e[(t+i)%e.length])}(n,i+1):n.slice(i+1)}setTimeout(()=>D(n))}}),children:"function"==typeof c?c({isCurrentTabStop:g,hasTabStop:null!=O}):c})})});C.displayName=A;var R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function D(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}var T=n(13123),I="Tabs",[M,E]=(0,s.A)(I,[y]),Q=y(),[N,B]=M(I),L=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,onValueChange:r,defaultValue:s,orientation:o="horizontal",dir:l,activationMode:c="automatic",...p}=e,m=(0,f.jH)(l),[g,v]=(0,u.i)({prop:i,onChange:r,defaultProp:null!=s?s:"",caller:I});return(0,d.jsx)(N,{scope:n,baseId:(0,a.B)(),value:g,onValueChange:v,orientation:o,dir:m,activationMode:c,children:(0,d.jsx)(h.sG.div,{dir:m,"data-orientation":o,...p,ref:t})})});L.displayName=I;var F="TabsList",_=i.forwardRef((e,t)=>{let{__scopeTabs:n,loop:i=!0,...r}=e,s=B(F,n),o=Q(n);return(0,d.jsx)(S,{asChild:!0,...o,orientation:s.orientation,dir:s.dir,loop:i,children:(0,d.jsx)(h.sG.div,{role:"tablist","aria-orientation":s.orientation,...r,ref:t})})});_.displayName=F;var z="TabsTrigger",$=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:i,disabled:s=!1,...o}=e,l=B(z,n),a=Q(n),c=W(l.baseId,i),u=q(l.baseId,i),f=i===l.value;return(0,d.jsx)(C,{asChild:!0,...a,focusable:!s,active:f,children:(0,d.jsx)(h.sG.button,{type:"button",role:"tab","aria-selected":f,"aria-controls":u,"data-state":f?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:c,...o,ref:t,onMouseDown:(0,r.mK)(e.onMouseDown,e=>{s||0!==e.button||!1!==e.ctrlKey?e.preventDefault():l.onValueChange(i)}),onKeyDown:(0,r.mK)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&l.onValueChange(i)}),onFocus:(0,r.mK)(e.onFocus,()=>{let e="manual"!==l.activationMode;f||s||!e||l.onValueChange(i)})})})});$.displayName=z;var X="TabsContent",j=i.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,forceMount:s,children:o,...l}=e,a=B(X,n),c=W(a.baseId,r),u=q(a.baseId,r),f=r===a.value,p=i.useRef(f);return i.useEffect(()=>{let e=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,d.jsx)(T.C,{present:s||f,children:n=>{let{present:i}=n;return(0,d.jsx)(h.sG.div,{"data-state":f?"active":"inactive","data-orientation":a.orientation,role:"tabpanel","aria-labelledby":c,hidden:!i,id:u,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:i&&o})}})});function W(e,t){return"".concat(e,"-trigger-").concat(t)}function q(e,t){return"".concat(e,"-content-").concat(t)}j.displayName=X;var U=L,V=_,Z=$,G=j},77196:(e,t,n)=>{n.d(t,{bL:()=>O,zi:()=>w});var i=n(81626),r=n(75553),s=n(2956),o=n(92086),l=n(41429),a=n(68525),h=n(9565),c=n(55039),u=n(56658),f="Switch",[d,p]=(0,o.A)(f),[m,g]=d(f),v=i.forwardRef((e,t)=>{let{__scopeSwitch:n,name:o,checked:a,defaultChecked:h,required:d,disabled:p,value:g="on",onCheckedChange:v,form:x,...k}=e,[O,w]=i.useState(null),S=(0,s.s)(t,e=>w(e)),P=i.useRef(!1),A=!O||x||!!O.closest("form"),[C,R]=(0,l.i)({prop:a,defaultProp:null!=h&&h,onChange:v,caller:f});return(0,u.jsxs)(m,{scope:n,checked:C,disabled:p,children:[(0,u.jsx)(c.sG.button,{type:"button",role:"switch","aria-checked":C,"aria-required":d,"data-state":y(C),"data-disabled":p?"":void 0,disabled:p,value:g,...k,ref:S,onClick:(0,r.mK)(e.onClick,e=>{R(e=>!e),A&&(P.current=e.isPropagationStopped(),P.current||e.stopPropagation())})}),A&&(0,u.jsx)(b,{control:O,bubbles:!P.current,name:o,value:g,checked:C,required:d,disabled:p,form:x,style:{transform:"translateX(-100%)"}})]})});v.displayName=f;var x="SwitchThumb",k=i.forwardRef((e,t)=>
20{let{__scopeSwitch:n,...i}=e,r=g(x,n);return(0,u.jsx)(c.sG.span,{"data-state":y(r.checked),"data-disabled":r.disabled?"":void 0,...i,ref:t})});k.displayName=x;var b=i.forwardRef((e,t)=>{let{__scopeSwitch:n,control:r,checked:o,bubbles:l=!0,...c}=e,f=i.useRef(null),d=(0,s.s)(f,t),p=(0,a.Z)(o),m=(0,h.X)(r);return i.useEffect(()=>{let e=f.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(p!==o&&t){let n=new Event("click",{bubbles:l});t.call(e,o),e.dispatchEvent(n)}},[p,o,l]),(0,u.jsx)("input",{type:"checkbox","aria-hidden":!0,defaultChecked:o,...c,tabIndex:-1,ref:d,style:{...c.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function y(e){return e?"checked":"unchecked"}b.displayName="SwitchBubbleInput";var O=v,w=k},77303:(e,t,n)=>{let i;n.d(t,{YH:()=>ea,Gu:()=>C,VR:()=>R,Je:()=>ev,OF:()=>B,$t:()=>ek,sj:()=>_,iR:()=>A,Nb:()=>Z,om:()=>eA,vB:()=>eC,FB:()=>ey,Pe:()=>eu,sU:()=>q,EY:()=>f,ZX:()=>ef,vS:()=>O,Fh:()=>S,QR:()=>eb,y$:()=>eF,zK:()=>y,kn:()=>e_,MK:()=>w});let r=[],s=[];function o(e){return e>=127462&&e<=127487}function l(e,t,n){if(t==e.length)return t;t&&h(e.charCodeAt(t))&&c(e.charCodeAt(t-1))&&t--;let i=a(e,t);for(t+=u(i);t<e.length;){let l=a(e,t);if(8205==i||8205==l||n&&function(e){if(e<768)return!1;for(let t=0,n=r.length;;){let i=t+n>>1;if(e<r[i])n=i;else{if(!(e>=s[i]))return!0;t=i+1}if(t==n)return!1}}(l))t+=u(l),i=l;else if(o(l)){let n=0,i=t-2;for(;i>=0&&o(a(e,i));)n++,i-=2;if(n%2==0)break;t+=2}else break}return t}function a(e,t){let n=e.charCodeAt(t);if(!c(n)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return h(i)?(n-55296<<10)+(i-56320)+65536:n}function h(e){return e>=56320&&e<57344}function c(e){return e>=55296&&e<56320}function u(e){return e<65536?1:2}(()=>{let e="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let t=0,n=0;t<e.length;t++)(t%2?s:r).push(n+=e[t])})();class f{lineAt(e){if(e<0||e>this.length)throw RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,n){[e,t]=b(this,e,t);let i=[];return this.decompose(0,e,i,2),n.length&&n.decompose(0,n.length,i,3),this.decompose(t,this.length,i,1),p.from(i,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=b(this,e,t);let n=[];return this.decompose(e,t,n,0),p.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),i=new g(this),r=new g(e);for(let e=t,s=t;;){if(i.next(e),r.next(e),e=0,i.lineBreak!=r.lineBreak||i.done!=r.done||i.value!=r.value)return!1;if(s+=i.value.length,i.done||s>=n)return!0}}iter(e=1){return new g(this,e)}iterRange(e,t=this.length){return new v(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let i=this.line(e).from;n=this.iterRange(i,Math.max(i,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new x(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new d(e):p.from(d.split(e,[])):f.empty}}class d extends f{constructor(e,t=function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.text[r],o=i+s.length;if((t?n:o)>=e)return new k(i,o,n,s);i=o+1,n++}}decompose(e,t,n,i){var r;let s=e<=0&&t>=this.length?this:new d((r=this.text,m(r,[""],e,t)),Math.min(t,this.length)-Math.max(0,e));if(1&i){let e=n.pop(),t=m(s.text,e.text.slice(),0,s.length);if(t.length<=32)n.push(new d(t,e.length+s.length));else{let e=t.length>>1;n.push(new d(t.slice(0,e)),new d(t.slice(e)))}}else n.push(s)}replace(e,t,n){var i;if(!(n instanceof d))return super.replace(e,t,n);[e,t]=b(this,e,t);let r=m(this.text,m(n.text,(i=this.text,m(i,[""],0,e))),t),s=this.length+n.length-(t-e);return r.length<=32?new d(r,s):p.from(d.split(r,[]),s)}sliceString(e,t=this.length,n="\n"){[e,t]=b(this,e,t);let i="";for(let r=0,s=0;r<=t&&s<this.text.length;s++){let o=this.text[s],l=r+o.length;r>e&&s&&(i+=n),e<l&&t>r&&(i+=o.slice(Math.max(0,e-r),t-r)),r=l+1}return i}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],i=-1;for(let r of e)n.push(r),i+=r.length+1,32==n.length&&(t.push(new d(n,i)),n=[],i=-1);return i>-1&&t.push(new d(n,i)),t}}class p extends f{constructor(e,t){for(let n of(super(),this.children=e,this.length=t,this.lines=0,e))this.lines+=n.lines}lineInner(e,t,n,i){for(let r=0;;r++){let s=this.children[r],o=i+s.length,l=n+s.lines-1;if((t?l:o)>=e)return s.lineInner(e,t,n,i);i=o+1,n=l+1}}decompose(e,t,n,i){for(let r=0,s=0;s<=t&&r<this.children.length;r++){let o=this.children[r],l=s+o.length;if(e<=l&&t>=s){let r=i&(s<=e|2*(l>=t));s>=e&&l<=t&&!r?n.push(o):o.decompose(e-s,t-s,n,r)}s=l+1}}replace(e,t,n){if([e,t]=b(this,e,t),n.lines<this.lines)for(let i=0,r=0;i<this.children.length;i++){let s=this.children[i],o=r+s.length;if(e>=r&&t<=o){let l=s.replace(e-r,t-r,n),a=this.lines-s.lines+l.lines;if(l.lines<a>>4&&l.lines>a>>6){let r=this.children.slice();return r[i]=l,new p(r,this.length-(t-e)+n.length)}return super.replace(r,o,l)}r=o+1}return super.replace(e,t,n)}sliceString(e,t=this.length,n="\n"){[e,t]=b(this,e,t);let i="";for(let r=0,s=0;r<this.children.length&&s<=t;r++){let o=this.children[r],l=s+o.length;s>e&&r&&(i+=n),e<l&&t>
vendor: 6,442 bytes, line 20
20s&&(i+=o.sliceString(e-s,t-s,n)),s=l+1}return i}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof p))return 0;let n=0,[i,r,s,o]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=t,r+=t){if(i==s||r==o)return n;let l=this.children[i],a=e.children[r];if(l!=a)return n+l.scanIdentical(a,t);n+=l.length+1}}static from(e,t=e.reduce((e,t)=>e+t.length+1,-1)){let n=0;for(let t of e)n+=t.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new d(n,t)}let i=Math.max(32,n>>5),r=i<<1,s=i>>1,o=[],l=0,a=-1,h=[];function c(){0!=l&&(o.push(1==h.length?h[0]:p.from(h,a)),a=-1,l=h.length=0)}for(let t of e)!function e(t){let n;if(t.lines>r&&t instanceof p)for(let n of t.children)e(n);else t.lines>s&&(l>s||!l)?(c(),o.push(t)):t instanceof d&&l&&(n=h[h.length-1])instanceof d&&t.lines+n.lines<=32?(l+=t.lines,a+=t.length+1,h[h.length-1]=new d(n.text.concat(t.text),n.length+1+t.length)):(l+t.lines>i&&c(),l+=t.lines,a+=t.length+1,h.push(t))}(t);return c(),1==o.length?o[0]:new p(o,t)}}function m(e,t,n=0,i=1e9){for(let r=0,s=0,o=!0;s<e.length&&r<=i;s++){let l=e[s],a=r+l.length;a>=n&&(a>i&&(l=l.slice(0,i-r)),r<n&&(l=l.slice(n-r)),o?(t[t.length-1]+=l,o=!1):t.push(l)),r=a+1}return t}f.empty=new d([""],0);class g{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof d?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,i=this.nodes[n],r=this.offsets[n],s=r>>1,o=i instanceof d?i.text.length:i.children.length;if(s==(t>0?o:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&r)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(i instanceof d){let r=i.text[s+(t<0?-1:0)];if(this.offsets[n]+=t,r.length>Math.max(0,e))return this.value=0==e?r:t>0?r.slice(e):r.slice(0,r.length-e),this;e-=r.length}else{let r=i.children[s+(t<0?-1:0)];e>r.length?(e-=r.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(r),this.offsets.push(t>0?1:(r instanceof d?r.text.length:r.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class v{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new g(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*t,this.value=i.length<=n?i:t<0?i.slice(i.length-n):i.slice(0,n),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class x{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:n,value:i}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(f.prototype[Symbol.iterator]=function(){return this.iter()},g.prototype[Symbol.iterator]=v.prototype[Symbol.iterator]=x.prototype[Symbol.iterator]=function(){return this});class k{constructor(e,t,n,i){this.from=e,this.to=t,this.number=n,this.text=i}get length(){return this.to-this.from}}function b(e,t,n){return[t=Math.max(0,Math.min(e.length,t)),Math.max(t,Math.min(e.length,n))]}function y(e,t,n=!0,i=!0){return function(e,t,n=!0,i=!0){return(n?l:function(e,t,n){for(;t>0;){let i=l(e,t-2,n);if(i<t)return i;t--}return 0})(e,t,i)}(e,t,n,i)}function O(e,t){let n=e.charCodeAt(t);if(!(n>=55296&&n<56320)||t+1==e.length)return n;let i=e.charCodeAt(t+1);return i>=56320&&i<57344?(n-55296<<10)+(i-56320)+65536:n}function w(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}function S(e){return e<65536?1:2}let P=/\r\n?|\n/;var A=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(A||(A={}));class C{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t+1];e+=n<0?this.sections[t]:n}return e}get empty(){return 0==this.sections.length||2==this.sections.length&&this.sections[1]<0}iterGaps(e){for(let t=0,n=0,i=0;t<this.sections.length;){let r=this.sections[t++],s=this.sections[t++];s<0?(e(n,i,r),i+=r):i+=s,n+=r}}iterChangedRanges(e,t=!1){I(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];i<0?e.push(n,i):e.push(i,n)}return new C(e)}composeDesc(e){return this.empty?e:e.empty?this:E(this,e)}mapDesc(e,t=!1){return e.empty?this:M(this,e,t)}mapPos(e,t=-1,n=A.Simple){let i=0,r=0;for(let s=0;s<this.sections.length;){let o=this.sections[s++],l=this.sections[s++],a=i+o;if(l<0){if(a>e)return r+(e-i);r+=o}else{if(n!=A.Simple&&a>=e&&(n==A.TrackDel&&i<e&&a>e||n==A.TrackBefore&&i<e||n==A.TrackAfter&&a>e))return null;if(a>e||a==e&&t<0&&!o)return e==i||t<0?r:r+l;r+=l}i=a}if(e>i)throw RangeError(`Position ${e} is out of range for changeset of length ${i}`);return r}touchesRange(e,t=e){for(let n=0,i=0;n<this.sections.length&&i<=t;){let r=this.sections[n++],s=this.sections[n++],o=i+r;if(s>=0&&i<=t&&o>=e)return!(i<e)||!(o>t)||"cover";i=o}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let n=this.sections[t++],i=this.sections[t++];e+=(e?" ":"")+n+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(e=>"number"!=typeof e))throw RangeError("Invalid JSON representation of ChangeDesc");return new C(e)}static create(e){return new C(e)}}class R extends C{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw RangeError("Applying change set to a document with the wrong length");return I(this,(t,n,i,r,s)=>e=e.replace(i,i+(n-t),s),!1),e}
20mapDesc(e,t=!1){return M(this,e,t,!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,r=0;i<t.length;i+=2){let s=t[i],o=t[i+1];if(o>=0){t[i]=o,t[i+1]=s;let l=i>>1;for(;n.length<l;)n.push(f.empty);n.push(s?e.slice(r,r+s):f.empty)}r+=s}return new R(t,n)}compose(e){return this.empty?e:e.empty?this:E(this,e,!0)}map(e,t=!1){return e.empty?this:M(this,e,t,!0)}iterChanges(e,t=!1){I(this,e,t)}get desc(){return C.create(this.sections)}filter(e){let t=[],n=[],i=[],r=new Q(this);r:for(let s=0,o=0;;){let l=s==e.length?1e9:e[s++];for(;o<l||o==l&&0==r.len;){if(r.done)break r;let e=Math.min(r.len,l-o);D(i,e,-1);let s=-1==r.ins?-1:0==r.off?r.ins:0;D(t,e,s),s>0&&T(n,t,r.text),r.forward(e),o+=e}let a=e[s++];for(;o<a;){if(r.done)break r;let e=Math.min(r.len,a-o);D(t,e,-1),D(i,e,-1==r.ins?-1:0==r.off?r.ins:0),r.forward(e),o+=e}}return{changes:new R(t,n),filtered:C.create(i)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let n=this.sections[t],i=this.sections[t+1];i<0?e.push(n):0==i?e.push([n]):e.push([n].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,n){let i=[],r=[],s=0,o=null;function l(e=!1){if(!e&&!i.length)return;s<t&&D(i,t-s,-1);let n=new R(i,r);o=o?o.compose(n.map(o)):n,i=[],r=[],s=0}return!function e(a){if(Array.isArray(a))for(let t of a)e(t);else if(a instanceof R){if(a.length!=t)throw RangeError(`Mismatched change set length (got ${a.length}, expected ${t})`);l(),o=o?o.compose(a.map(o)):a}else{let{from:e,to:o=e,insert:h}=a;if(e>o||e<0||o>t)throw RangeError(`Invalid change range ${e} to ${o} (in doc of length ${t})`);let c=h?"string"==typeof h?f.of(h.split(n||P)):h:f.empty,u=c.length;if(e==o&&0==u)return;e<s&&l(),e>s&&D(i,e-s,-1),D(i,o-e,u),T(r,i,c),s=o}}(e),l(!o),o}static empty(e){return new R(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;i<e.length;i++){let r=e[i];if("number"==typeof r)t.push(r,-1);else if(!Array.isArray(r)||"number"!=typeof r[0]||r.some((e,t)=>t&&"string"!=typeof e))throw RangeError("Invalid JSON representation of ChangeSet");else if(1==r.length)t.push(r[0],0);else{for(;n.length<i;)n.push(f.empty);n[i]=f.of(r.slice(1)),t.push(r[0],n[i].length)}}return new R(t,n)}static createSet(e,t){return new R(e,t)}}function D(e,t,n,i=!1){if(0==t&&n<=0)return;let r=e.length-2;r>=0&&n<=0&&n==e[r+1]?e[r]+=t:r>=0&&0==t&&0==e[r]?e[r+1]+=n:i?(e[r]+=t,e[r+1]+=n):e.push(t,n)}function T(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i<e.length)e[e.length-1]=e[e.length-1].append(n);else{for(;e.length<i;)e.push(f.empty);e.push(n)}}function I(e,t,n){let i=e.inserted;for(let r=0,s=0,o=0;o<e.sections.length;){let l=e.sections[o++],a=e.sections[o++];if(a<0)r+=l,s+=l;else{let h=r,c=s,u=f.empty;for(;h+=l,c+=a,a&&i&&(u=u.append(i[o-2>>1])),!n&&o!=e.sections.length&&!(e.sections[o+1]<0);)l=e.sections[o++],a=e.sections[o++];t(r,h,s,c,u),r=h,s=c}}}function M(e,t,n,i=!1){let r=[],s=i?[]:null,o=new Q(e),l=new Q(t);for(let e=-1;;)if(o.done&&l.len||l.done&&o.len)throw Error("Mismatched change set lengths");else if(-1==o.ins&&-1==l.ins){let e=Math.min(o.len,l.len);D(r,e,-1),o.forward(e),l.forward(e)}else if(l.ins>=0&&(o.ins<0||e==o.i||0==o.off&&(l.len<o.len||l.len==o.len&&!n))){let t=l.len;for(D(r,l.ins,-1);t;){let n=Math.min(o.len,t);o.ins>=0&&e<o.i&&o.len<=n&&(D(r,0,o.ins),s&&T(s,r,o.text),e=o.i),o.forward(n),t-=n}l.next()}else if(o.ins>=0){let t=0,n=o.len;for(;n;)if(-1==l.ins){let e=Math.min(n,l.len);t+=e,n-=e,l.forward(e)}else if(0==l.ins&&l.len<n)n-=l.len,l.next();else break;D(r,t,e<o.i?o.ins:0),s&&e<o.i&&T(s,r,o.text),e=o.i,o.forward(o.len-n)}else if(o.done&&l.done)return s?R.createSet(r,s):C.create(r);else throw Error("Mismatched change set lengths")}function E(e,t,n=!1){let i=[],r=n?[]:null,s=new Q(e),o=new Q(t);for(let e=!1;;)if(s.done&&o.done)return r?R.createSet(i,r):C.create(i);else if(0==s.ins)D(i,s.len,0,e),s.next();else if(0!=o.len||o.done)if(s.done||o.done)throw Error("Mismatched change set lengths");else{let t=Math.min(s.len2,o.len),n=i.length;if(-1==s.ins){let n=-1==o.ins?-1:o.off?0:o.ins;D(i,t,n,e),r&&n&&T(r,i,o.text)}else -1==o.ins?(D(i,s.off?0:s.len,t,e),r&&T(r,i,s.textBit(t))):(D(i,s.off?0:s.len,o.off?0:o.ins,e),r&&!o.off&&T(r,i,o.text));e=(s.ins>t||o.ins>=0&&o.len>t)&&(e||i.length>n),s.forward2(t),o.forward(t)}else D(i,0,o.ins,e),r&&T(r,i,o.text),o.next()}class Q{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return -2==this.ins}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?f.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?f.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}
20forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class N{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 0xffffff==e?void 0:e}map(e,t=-1){let n,i;return this.empty?n=i=e.mapPos(this.from,t):(n=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),n==this.from&&i==this.to?this:new N(n,i,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return B.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return B.range(this.anchor,n)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&this.goalColumn==e.goalColumn&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw RangeError("Invalid JSON representation for SelectionRange");return B.range(e.anchor,e.head)}static create(e,t,n){return new N(e,t,n)}}class B{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:B.create(this.ranges.map(n=>n.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let n=0;n<this.ranges.length;n++)if(!this.ranges[n].eq(e.ranges[n],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return 1==this.ranges.length?this:new B([this.main],0)}addRange(e,t=!0){return B.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let n=this.ranges.slice();return n[t]=e,B.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw RangeError("Invalid JSON representation for EditorSelection");return new B(e.ranges.map(e=>N.fromJSON(e)),e.main)}static single(e,t=e){return new B([B.range(e,t)],0)}static create(e,t=0){if(0==e.length)throw RangeError("A selection needs at least one range");for(let n=0,i=0;i<e.length;i++){let r=e[i];if(r.empty?r.from<=n:r.from<n)return B.normalized(e.slice(),t);n=r.to}return new B(e,t)}static cursor(e,t=0,n,i){return N.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!=i?i:0xffffff)<<6)}static range(e,t,n,i){let r=(null!=n?n:0xffffff)<<6|(null==i?7:Math.min(6,i));return t<e?N.create(t,e,48|r):N.create(e,t,8*(t>e)|r)}static normalized(e,t=0){let n=e[t];e.sort((e,t)=>e.from-t.from),t=e.indexOf(n);for(let n=1;n<e.length;n++){let i=e[n],r=e[n-1];if(i.empty?i.from<=r.to:i.from<r.to){let s=r.from,o=Math.max(i.to,r.to);n<=t&&t--,e.splice(--n,2,i.anchor>i.head?B.range(o,s):B.range(s,o))}}return new B(e,t)}}function L(e,t){for(let n of e.ranges)if(n.to>t)throw RangeError("Selection points outside of document")}let F=0;class _{constructor(e,t,n,i,r){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=i,this.id=F++,this.default=e([]),this.extensions="function"==typeof r?r(this):r}get reader(){return this}static define(e={}){return new _(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(!e.combine?z:(e,t)=>e===t),!!e.static,e.enables)}of(e){return new $([],this,0,e)}compute(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new $(e,this,1,t)}computeN(e,t){if(this.isStatic)throw Error("Can't compute a static facet");return new $(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],n=>t(n.field(e)))}}function z(e,t){return e==t||e.length==t.length&&e.every((e,n)=>e===t[n])}class ${constructor(e,t,n,i){this.dependencies=e,this.facet=t,this.type=n,this.value=i,this.id=F++}dynamicSlot(e){var t;let n=this.value,i=this.facet.compareInput,r=this.id,s=e[r]>>1,o=2==this.type,l=!1,a=!1,h=[];for(let n of this.dependencies)"doc"==n?l=!0:"selection"==n?a=!0:((null!=(t=e[n.id])?t:1)&1)==0&&h.push(e[n.id]);return{create:e=>(e.values[s]=n(e),1),update(e,t){if(l&&t.docChanged||a&&(t.docChanged||t.selection)||j(e,h)){let t=n(e);
vendor: 4,274 bytes, line 20
20if(o?!X(t,e.values[s],i):!i(t,e.values[s]))return e.values[s]=t,1}return 0},reconfigure:(e,t)=>{let l,a=t.config.address[r];if(null!=a){let r=ee(t,a);if(this.dependencies.every(n=>n instanceof _?t.facet(n)===e.facet(n):!(n instanceof q)||t.field(n,!1)==e.field(n,!1))||(o?X(l=n(e),r,i):i(l=n(e),r)))return e.values[s]=r,0}else l=n(e);return e.values[s]=l,1}}}}function X(e,t,n){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function j(e,t){let n=!1;for(let i of t)1&K(e,i)&&(n=!0);return n}let W=_.define({static:!0});class q{constructor(e,t,n,i,r){this.id=e,this.createF=t,this.updateF=n,this.compareF=i,this.spec=r,this.provides=void 0}static define(e){let t=new q(F++,e.create,e.update,e.compare||((e,t)=>e===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(W).find(e=>e.field==this);return((null==t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let i=e.values[t],r=this.updateF(i,n);return this.compareF(i,r)?0:(e.values[t]=r,1)},reconfigure:(e,n)=>{let i=e.facet(W),r=n.facet(W),s;return(s=i.find(e=>e.field==this))&&s!=r.find(e=>e.field==this)?(e.values[t]=s.create(e),1):null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}}init(e){return[this,W.of({field:this,create:e})]}get extension(){return this}}let U={lowest:4,low:3,default:2,high:1,highest:0};function V(e){return t=>new G(t,e)}let Z={highest:V(U.highest),high:V(U.high),default:V(U.default),low:V(U.low),lowest:V(U.lowest)};class G{constructor(e,t){this.inner=e,this.prec=t}}class Y{of(e){return new H(this,e)}reconfigure(e){return Y.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class H{constructor(e,t){this.compartment=e,this.inner=t}}class J{constructor(e,t,n,i,r,s){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=i,this.staticValues=r,this.facets=s,this.statusTemplate=[];this.statusTemplate.length<n.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return null==t?e.default:this.staticValues[t>>1]}static resolve(e,t,n){var i,r,s;let o,l,a=[],h=Object.create(null),c=new Map;for(let n of(i=e,r=t,s=c,o=[[],[],[],[],[]],l=new Map,!function e(t,n){let i=l.get(t);if(null!=i){if(i<=n)return;let e=o[i].indexOf(t);e>-1&&o[i].splice(e,1),t instanceof H&&s.delete(t.compartment)}if(l.set(t,n),Array.isArray(t))for(let i of t)e(i,n);else if(t instanceof H){if(s.has(t.compartment))throw RangeError("Duplicate use of compartment in extensions");let i=r.get(t.compartment)||t.inner;s.set(t.compartment,i),e(i,n)}else if(t instanceof G)e(t.inner,t.prec);else if(t instanceof q)o[n].push(t),t.provides&&e(t.provides,n);else if(t instanceof $)o[n].push(t),t.facet.extensions&&e(t.facet.extensions,U.default);else{let i=t.extension;if(!i)throw Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);e(i,n)}}(i,U.default),o.reduce((e,t)=>e.concat(t))))n instanceof q?a.push(n):(h[n.facet.id]||(h[n.facet.id]=[])).push(n);let u=Object.create(null),f=[],d=[];for(let e of a)u[e.id]=d.length<<1,d.push(t=>e.slot(t));let p=null==n?void 0:n.config.facets;for(let e in h){let t=h[e],i=t[0].facet,r=p&&p[e]||[];if(t.every(e=>0==e.type))if(u[i.id]=f.length<<1|1,z(r,t))f.push(n.facet(i));else{let e=i.combine(t.map(e=>e.value));f.push(n&&i.compare(e,n.facet(i))?n.facet(i):e)}else{for(let e of t)0==e.type?(u[e.id]=f.length<<1|1,f.push(e.value)):(u[e.id]=d.length<<1,d.push(t=>e.dynamicSlot(t)));u[i.id]=d.length<<1,d.push(e=>(function(e,t,n){let i=n.map(t=>e[t.id]),r=n.map(e=>e.type),s=i.filter(e=>!(1&e)),o=e[t.id]>>1;function l(e){let n=[];for(let t=0;t<i.length;t++){let s=ee(e,i[t]);if(2==r[t])for(let e of s)n.push(e);else n.push(s)}return t.combine(n)}return{create(e){for(let t of i)K(e,t);return e.values[o]=l(e),1},update(e,n){if(!j(e,s))return 0;let i=l(e);return t.compare(i,e.values[o])?0:(e.values[o]=i,1)},reconfigure(e,r){let s=j(e,i),a=r.config.facets[t.id],h=r.facet(t);if(a&&!s&&z(n,a))return e.values[o]=h,0;let c=l(e);return t.compare(c,h)?(e.values[o]=h,0):(e.values[o]=c,1)}}})(e,i,t))}}
20return new J(e,c,d.map(e=>e(u)),u,f,h)}}function K(e,t){if(1&t)return 2;let n=t>>1,i=e.status[n];if(4==i)throw Error("Cyclic dependency between fields and/or facets");if(2&i)return i;e.status[n]=4;let r=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|r}function ee(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}let et=_.define(),en=_.define({combine:e=>e.some(e=>e),static:!0}),ei=_.define({combine:e=>e.length?e[0]:void 0,static:!0}),er=_.define(),es=_.define(),eo=_.define(),el=_.define({combine:e=>!!e.length&&e[0]});class ea{constructor(e,t){this.type=e,this.value=t}static define(){return new eh}}class eh{of(e){return new ea(this,e)}}class ec{constructor(e){this.map=e}of(e){return new eu(this,e)}}class eu{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new eu(this.type,t)}is(e){return this.type==e}static define(e={}){return new ec(e.map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let i of e){let e=i.map(t);e&&n.push(e)}return n}}eu.reconfigure=eu.define(),eu.appendConfig=eu.define();class ef{constructor(e,t,n,i,r,s){this.startState=e,this.changes=t,this.selection=n,this.effects=i,this.annotations=r,this.scrollIntoView=s,this._doc=null,this._state=null,n&&L(n,t.newLength),r.some(e=>e.type==ef.time)||(this.annotations=r.concat(ef.time.of(Date.now())))}static create(e,t,n,i,r,s){return new ef(e,t,n,i,r,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(ef.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ed(e,t,n){var i;let r,s,o;return n?(r=t.changes,s=R.empty(t.changes.length),o=e.changes.compose(t.changes)):(r=t.changes.map(e.changes),s=e.changes.mapDesc(t.changes,!0),o=e.changes.compose(r)),{changes:o,selection:t.selection?t.selection.map(s):null==(i=e.selection)?void 0:i.map(r),effects:eu.mapEffects(e.effects,r).concat(eu.mapEffects(t.effects,s)),annotations:e.annotations.length?e.annotations.concat(t.annotations):t.annotations,scrollIntoView:e.scrollIntoView||t.scrollIntoView}}function ep(e,t,n){let i=t.selection,r=eg(t.annotations);return t.userEvent&&(r=r.concat(ef.userEvent.of(t.userEvent))),{changes:t.changes instanceof R?t.changes:R.of(t.changes||[],n,e.facet(ei)),selection:i&&(i instanceof B?i:B.single(i.anchor,i.head)),effects:eg(t.effects),annotations:r,scrollIntoView:!!t.scrollIntoView}}ef.time=ea.define(),ef.userEvent=ea.define(),ef.addToHistory=ea.define(),ef.remote=ea.define();let em=[];function eg(e){return null==e?em:Array.isArray(e)?e:[e]}var ev=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(ev||(ev={}));let ex=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;try{i=RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(e){}class ek{constructor(e,t,n,i,r,s){this.config=e,this.doc=t,this.selection=n,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=r,s&&(s._state=this);for(let e=0;e<this.config.dynamicSlots.length;e++)K(this,e<<1);this.computeSlot=null}field(e,t=!0){let n=this.config.address[e.id];if(null==n){if(t)throw RangeError("Field is not present in this state");return}return K(this,n),ee(this,n)}update(...e){return function e(t,n,i){let r=ep(t,n.length?n[0]:{},t.doc.length);n.length&&!1===n[0].filter&&(i=!1);for(let e=1;e<n.length;e++){!1===n[e].filter&&(i=!1);let s=!!n[e].sequential;r=ed(r,ep(t,n[e],s?r.changes.newLength:t.doc.length),s)}let s=ef.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return function(e){let t=e.startState,n=t.facet(eo),i=e;for(let r=n.length-1;r>=0;r--){let s=n[r](e);s&&Object.keys(s).length&&(i=ed(i,ep(t,s,e.changes.newLength),!0))}return i==e?e:ef.create(t,e.changes,e.selection,i.effects,i.annotations,i.scrollIntoView)}(i?function(t){let n=t.startState,i=!0;for(let e of n.facet(er)){let n=e(t);
vendor: 5,254 bytes, line 20
20if(!1===n){i=!1;break}Array.isArray(n)&&(i=!0===i?n:function(e,t){let n=[];for(let i=0,r=0;;){let s,o;if(i<e.length&&(r==t.length||t[r]>=e[i]))s=e[i++],o=e[i++];else{if(!(r<t.length))return n;s=t[r++],o=t[r++]}!n.length||n[n.length-1]<s?n.push(s,o):n[n.length-1]<o&&(n[n.length-1]=o)}}(i,n))}if(!0!==i){let e,r;if(!1===i)r=t.changes.invertedDesc,e=R.empty(n.doc.length);else{let n=t.changes.filter(i);e=n.changes,r=n.filtered.mapDesc(n.changes).invertedDesc}t=ef.create(n,e,t.selection&&t.selection.map(r),eu.mapEffects(t.effects,r),t.annotations,t.scrollIntoView)}let r=n.facet(es);for(let i=r.length-1;i>=0;i--){let s=r[i](t);t=s instanceof ef?s:Array.isArray(s)&&1==s.length&&s[0]instanceof ef?s[0]:e(n,eg(s),!1)}return t}(s):s)}(this,e,!0)}applyTransaction(e){let t,n=this.config,{base:i,compartments:r}=n;for(let t of e.effects)t.is(Y.reconfigure)?(n&&(r=new Map,n.compartments.forEach((e,t)=>r.set(t,e)),n=null),r.set(t.value.compartment,t.value.extension)):t.is(eu.reconfigure)?(n=null,i=t.value):t.is(eu.appendConfig)&&(n=null,i=eg(i).concat(t.value));t=n?e.startState.values.slice():new ek(n=J.resolve(i,r,this),this.doc,this.selection,n.dynamicSlots.map(()=>null),(e,t)=>t.reconfigure(e,this),null).values;let s=e.startState.facet(en)?e.newSelection:e.newSelection.asSingle();new ek(n,e.newDoc,s,t,(t,n)=>n.update(t,e),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:B.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),i=this.changes(n.changes),r=[n.range],s=eg(n.effects);for(let n=1;n<t.ranges.length;n++){let o=e(t.ranges[n]),l=this.changes(o.changes),a=l.map(i);for(let e=0;e<n;e++)r[e]=r[e].map(a);let h=i.mapDesc(l,!0);r.push(o.range.map(h)),i=i.compose(a),s=eu.mapEffects(s,a).concat(eu.mapEffects(eg(o.effects),h))}return{changes:i,selection:B.create(r,t.mainIndex),effects:s}}changes(e=[]){return e instanceof R?e:R.of(e,this.doc.length,this.facet(ek.lineSeparator))}toText(e){return f.of(e.split(this.facet(ek.lineSeparator)||P))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(K(this,t),ee(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let i=e[n];i instanceof q&&null!=this.config.address[i.id]&&(t[n]=i.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e,t={},n){if(!e||"string"!=typeof e.doc)throw RangeError("Invalid JSON representation for EditorState");let i=[];if(n){for(let t in n)if(Object.prototype.hasOwnProperty.call(e,t)){let r=n[t],s=e[t];i.push(r.init(e=>r.spec.fromJSON(s,e)))}}return ek.create({doc:e.doc,selection:B.fromJSON(e.selection),extensions:t.extensions?i.concat([t.extensions]):i})}static create(e={}){let t=J.resolve(e.extensions||[],new Map),n=e.doc instanceof f?e.doc:f.of((e.doc||"").split(t.staticFacet(ek.lineSeparator)||P)),i=e.selection?e.selection instanceof B?e.selection:B.single(e.selection.anchor,e.selection.head):B.single(0);return L(i,n.length),t.staticFacet(en)||(i=i.asSingle()),new ek(t,n,i,t.dynamicSlots.map(()=>null),(e,t)=>t.create(e),null)}get tabSize(){return this.facet(ek.tabSize)}get lineBreak(){return this.facet(ek.lineSeparator)||"\n"}get readOnly(){return this.facet(el)}phrase(e,...t){for(let t of this.facet(ek.phrases))if(Object.prototype.hasOwnProperty.call(t,e)){e=t[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(e,n)=>{if("$"==n)return"$";let i=+(n||1);return!i||i>t.length?e:t[i-1]})),e}languageDataAt(e,t,n=-1){let i=[];for(let r of this.facet(et))for(let s of r(this,t,n))Object.prototype.hasOwnProperty.call(s,e)&&i.push(s[e]);return i}charCategorizer(e){var t;let n=this.languageDataAt("wordChars",e);return t=n.length?n[0]:"",e=>{if(!/\S/.test(e))return ev.Space;if(function(e){if(i)return i.test(e);for(let t=0;t<e.length;t++){let n=e[t];if(/\w/.test(n)||n>"\x80"&&(n.toUpperCase()!=n.toLowerCase()||ex.test(n)))return!0}return!1}(e))return ev.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return ev.Word;return ev.Other}}wordAt(e){let{text:t,from:n,length:i}=this.doc.lineAt(e),r=this.charCategorizer(e),s=e-n,o=e-n;for(;s>0;){let e=y(t,s,!1);if(r(t.slice(e,s))!=ev.Word)break;s=e}for(;o<i;){let e=y(t,o);if(r(t.slice(o,e))!=ev.Word)break;o=e}return s==o?null:B.range(s+n,o+n)}}function eb(e,t,n={}){let i={};for(let t of e)for(let e of Object.keys(t)){let r=t[e],s=i[e];if(void 0===s)i[e]=r;else if(s===r||void 0===r);else if(Object.hasOwnProperty.call(n,e))i[e]=n[e](s,r);else throw Error("Config merge conflict for field "+e)}for(let e in t)void 0===i[e]&&(i[e]=t[e]);return i}ek.allowMultipleSelections=en,ek.tabSize=_.define({combine:e=>e.length?e[0]:4}),ek.lineSeparator=ei,ek.readOnly=el,ek.phrases=_.define({compare(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length==i.length&&n.every(n=>e[n]==t[n])}}),ek.languageData=et,ek.changeFilter=er,ek.transactionFilter=es,ek.transactionExtender=eo,Y.reconfigure=eu.define();class ey{eq(e){return this==e}range(e,t=e){return ew.create(e,t,this)}}function eO(e,t){return e==t||e.constructor==t.constructor&&e.eq(t)}ey.prototype.startSide=ey.prototype.endSide=0,ey.prototype.point=!1,ey.prototype.mapM
vendor: 10,084 bytes, line 20
20ode=A.TrackDel;class ew{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new ew(e,t,n)}}function eS(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class eP{constructor(e,t,n,i){this.from=e,this.to=t,this.value=n,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,t,n,i=0){let r=n?this.to:this.from;for(let s=i,o=r.length;;){if(s==o)return s;let i=s+o>>1,l=r[i]-e||(n?this.value[i].endSide:this.value[i].startSide)-t;if(i==s)return l>=0?s:o;l>=0?o=i:s=i+1}}between(e,t,n,i){for(let r=this.findIndex(t,-1e9,!0),s=this.findIndex(n,1e9,!1,r);r<s;r++)if(!1===i(this.from[r]+e,this.to[r]+e,this.value[r]))return!1}map(e,t){let n=[],i=[],r=[],s=-1,o=-1;for(let l=0;l<this.value.length;l++){let a=this.value[l],h=this.from[l]+e,c=this.to[l]+e,u,f;if(h==c){let e=t.mapPos(h,a.startSide,a.mapMode);if(null==e||(u=f=e,a.startSide!=a.endSide&&(f=t.mapPos(h,a.endSide))<u))continue}else if((u=t.mapPos(h,a.startSide))>(f=t.mapPos(c,a.endSide))||u==f&&a.startSide>0&&a.endSide<=0)continue;0>(f-u||a.endSide-a.startSide)||(s<0&&(s=u),a.point&&(o=Math.max(o,f-u)),n.push(a),i.push(u-s),r.push(f-s))}return{mapped:n.length?new eP(i,r,n,o):null,pos:s}}}class eA{constructor(e,t,n,i){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=i}static create(e,t,n,i){return new eA(e,t,n,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:i=0,filterTo:r=this.length}=e,s=e.filter;if(0==t.length&&!s)return this;if(n&&(t=t.slice().sort(eS)),this.isEmpty)return t.length?eA.of(t):this;let o=new eD(this,null,-1).goto(0),l=0,a=[],h=new eC;for(;o.value||l<t.length;)if(l<t.length&&(o.from-t[l].from||o.startSide-t[l].value.startSide)>=0){let e=t[l++];h.addInner(e.from,e.to,e.value)||a.push(e)}else 1==o.rangeIndex&&o.chunkIndex<this.chunk.length&&(l==t.length||this.chunkEnd(o.chunkIndex)<t[l].from)&&(!s||i>this.chunkEnd(o.chunkIndex)||r<this.chunkPos[o.chunkIndex])&&h.addChunk(this.chunkPos[o.chunkIndex],this.chunk[o.chunkIndex])?o.nextChunk():((!s||i>o.to||r<o.from||s(o.from,o.to,o.value))&&!h.addInner(o.from,o.to,o.value)&&a.push(ew.create(o.from,o.to,o.value)),o.next());return h.finishInner(this.nextLayer.isEmpty&&!a.length?eA.empty:this.nextLayer.update({add:a,filter:s,filterFrom:i,filterTo:r}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],n=[],i=-1;for(let r=0;r<this.chunk.length;r++){let s=this.chunkPos[r],o=this.chunk[r],l=e.touchesRange(s,s+o.length);if(!1===l)i=Math.max(i,o.maxPoint),t.push(o),n.push(e.mapPos(s));else if(!0===l){let{mapped:r,pos:l}=o.map(s,e);r&&(i=Math.max(i,r.maxPoint),t.push(r),n.push(l))}}let r=this.nextLayer.map(e);return 0==t.length?r:new eA(n,t,r||eA.empty,i)}between(e,t,n){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let r=this.chunkPos[i],s=this.chunk[i];if(t>=r&&e<=r+s.length&&!1===s.between(r,e-r,t-r,n))return}this.nextLayer.between(e,t,n)}}iter(e=0){return eT.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return eT.from(e).goto(t)}static compare(e,t,n,i,r=-1){let s=e.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),o=t.filter(e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=r),l=eR(s,o,n),a=new eM(s,l,r),h=new eM(o,l,r);n.iterGaps((e,t,n)=>eE(a,e,h,t,n,i)),n.empty&&0==n.length&&eE(a,0,h,0,0,i)}static eq(e,t,n=0,i){null==i&&(i=0x3b9ac9ff);let r=e.filter(e=>!e.isEmpty&&0>t.indexOf(e)),s=t.filter(t=>!t.isEmpty&&0>e.indexOf(t));if(r.length!=s.length)return!1;if(!r.length)return!0;let o=eR(r,s),l=new eM(r,o,0).goto(n),a=new eM(s,o,0).goto(n);for(;;){if(l.to!=a.to||!eQ(l.active,a.active)||l.point&&(!a.point||!eO(l.point,a.point)))return!1;if(l.to>i)return!0;l.next(),a.next()}}static spans(e,t,n,i,r=-1){let s=new eM(e,null,r).goto(t),o=t,l=s.openStart;for(;;){let e=Math.min(s.to,n);if(s.point){let n=s.activeForPoint(s.to),r=s.pointFrom<t?n.length+1:s.point.startSide<0?n.length:Math.min(n.length,l);i.point(o,e,s.point,n,r,s.pointRank),l=Math.min(s.openEnd(e),n.length)}else e>o&&(i.span(o,e,s.active,l),l=s.openEnd(e));if(s.to>n)return l+(s.point&&s.to>n?1:0);o=s.to,s.next()}}static of(e,t=!1){let n=new eC;for(let i of e instanceof ew?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n<e.length;n++){let i=e[n];if(eS(t,i)>0)return e.slice().sort(eS);t=i}return e}(e):e)n.add(i.from,i.to,i.value);return n.finish()}static join(e){if(!e.length)return eA.empty;let t=e[e.length-1];for(let n=e.length-2;n>=0;n--)for(let i=e[n];i!=eA.empty;i=i.nextLayer)t=new eA(i.chunkPos,i.chunk,t,Math.max(i.maxPoint,t.maxPoint));return t}}eA.empty=new eA([],[],null,-1),eA.empty.nextLayer=eA.empty;class eC{finishChunk(e){this.chunks.push(new eP(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new eC)).add(e,t,n)}addInner(e,t,n){let i=e-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&0>(e-this.lastFrom||n.startSide-this.last.startSide))throw Error("Ranges must be added sorted by `from` position and `startSide`");return!(i<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if(0>(e-this.lastTo||t.value[0].startSide-this.last.endSide))return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(eA.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=eA.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function eR(e,t,n){let i=new Map;for(let t of e)for(let e=0;e<t.chunk.length;e++)t.chunk[e].maxPoint<=0&&i.set(t.chunk[e],t.chunkPos[e]);let r=new Set;for(let e of t)for(let t=0;t<e.chunk.length;t++){let s=i.get(e.chunk[t]);null==s||(n?n.mapPos(s):s)!=e.chunkPos[t]||(null==n?void 0:n.touchesRange(s,s+e.chunk[t].length))||r.add(e.chunk[t])}return r}class eD{constructor(e,t,n,i=0){this.layer=e,this.skip=t,this.minPoint=n,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex<this.layer.chunk.length;){let t=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(t)||this.layer.chunkEnd(this.chunkIndex)<e||t.maxPoint<this.minPoint))break;this.chunkIndex++,n=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!n||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,t){0>(this.to-e||this.endSide-t)&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],n=e+t.from[this.rangeIndex];if(this.from=n,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class eT{constructor(e){this.heap=e}static from(e,t=null,n=-1){let i=[];for(let r=0;r<e.length;r++)for(let s=e[r];!s.isEmpty;s=s.nextLayer)s.maxPoint>=n&&i.push(new eD(s,t,n,r));return 1==i.length?i[0]:new eT(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let n of this.heap)n.goto(e,t);for(let e=this.heap.length>>1;e>=0;e--)eI(this.heap,e);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let e=this.heap.length>>1;e>=0;e--)eI(this.heap,e);0>(this.to-e||this.value.endSide-t)&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),eI(this.heap,0)}}}function eI(e,t){for(let n=e[t];;){let i=(t<<1)+1;if(i>=e.length)break;let r=e[i];if(i+1<e.length&&r.compare(e[i+1])>=0&&(r=e[i+1],i++),0>n.compare(r))break;e[i]=n,e[t]=r,t=i}}class eM{constructor(e,t,n){this.minPoint=n,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=eT.from(e,t,n)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&0>(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t);)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){eN(this.active,e),eN(this.activeTo,e),eN(this.activeRank,e),this.minActive=eL(this.active,this.activeTo)}
20addActive(e){let t=0,{value:n,to:i,rank:r}=this.cursor;for(;t<this.activeRank.length&&(r-this.activeRank[t]||i-this.activeTo[t])>0;)t++;eB(this.active,t,n),eB(this.activeTo,t,i),eB(this.activeRank,t,r),e&&eB(e,t,this.cursor.from),this.minActive=eL(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let n=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&0>(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),n&&eN(n,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let e=this.cursor.value;if(e.point)if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=e,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=e.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}else this.addActive(n),this.cursor.next()}else{this.to=this.endSide=1e9;break}}if(n){this.openStart=0;for(let t=n.length-1;t>=0&&n[t]<e;t--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let n=this.active.length-1;n>=0&&!(this.activeRank[n]<this.pointRank);n--)(this.activeTo[n]>e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function eE(e,t,n,i,r,s){e.goto(t),n.goto(i);let o=i+r,l=i,a=i-t,h=!!s.boundChange;for(let t=!1;;){let i=e.to+a-n.to,r=i||e.endSide-n.endSide,c=r<0?e.to+a:n.to,u=Math.min(c,o);if(e.point||n.point?(e.point&&n.point&&eO(e.point,n.point)&&eQ(e.activeForPoint(e.to),n.activeForPoint(n.to))||s.comparePoint(l,u,e.point,n.point),t=!1):(t&&s.boundChange(l),u>l&&!eQ(e.active,n.active)&&s.compareRange(l,u,e.active,n.active),h&&u<o&&(i||e.openEnd(c)!=n.openEnd(c))&&(t=!0)),c>o)break;l=c,r<=0&&e.next(),r>=0&&n.next()}}function eQ(e,t){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n]&&!eO(e[n],t[n]))return!1;return!0}function eN(e,t){for(let n=t,i=e.length-1;n<i;n++)e[n]=e[n+1];e.pop()}function eB(e,t,n){for(let n=e.length-1;n>=t;n--)e[n+1]=e[n];e[t]=n}function eL(e,t){let n=-1,i=1e9;for(let r=0;r<t.length;r++)0>(t[r]-i||e[r].endSide-e[n].endSide)&&(n=r,i=t[r]);return n}function eF(e,t,n=e.length){let i=0;for(let r=0;r<n&&r<e.length;)9==e.charCodeAt(r)?(i+=t-i%t,r++):(i++,r=y(e,r));return i}function e_(e,t,n,i){for(let i=0,r=0;;){if(r>=t)return i;if(i==e.length)break;r+=9==e.charCodeAt(i)?n-r%n:1,i=y(e,i)}return!0===i?-1:e.length}},81677:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return a},getImageProps:function(){return l}});let i=n(82005),r=n(8707),s=n(45927),o=i._(n(83609));function l(e){let{props:t}=(0,r.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let a=s.Image}
20,97823:(e,t,n)=>{n.d(t,{DM:()=>f,_A:()=>D,az:()=>u,pn:()=>a});var i=n(55284);let r=0;class s{constructor(e,t,n,i){this.name=e,this.set=t,this.base=n,this.modified=i,this.id=r++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){if(e instanceof s&&(t=e),null==t?void 0:t.base)throw Error("Can not derive from a modified tag");let n=new s("string"==typeof e?e:"?",[],null,[]);if(n.set.push(n),t)for(let e of t.set)n.set.push(e);return n}static defineModifier(e){let t=new l(e);return e=>e.modified.indexOf(t)>-1?e:l.get(e.base||e,e.modified.concat(t).sort((e,t)=>e.id-t.id))}}let o=0;class l{constructor(e){this.name=e,this.instances=[],this.id=o++}static get(e,t){if(!t.length)return e;let n=t[0].instances.find(n=>{var i,r;return n.base==e&&(i=t,r=n.modified,i.length==r.length&&i.every((e,t)=>e==r[t]))});if(n)return n;let i=[],r=new s(e.name,i,e,t);for(let e of t)e.instances.push(r);let o=function(e){let t=[[]];for(let n=0;n<e.length;n++)for(let i=0,r=t.length;i<r;i++)t.push(t[i].concat(e[n]));return t.sort((e,t)=>t.length-e.length)}(t);for(let t of e.set)if(!t.modified.length)for(let e of o)i.push(l.get(t,e));return r}}function a(e){let t=Object.create(null);for(let n in e){let i=e[n];for(let e of(Array.isArray(i)||(i=[i]),n.split(" ")))if(e){let n=[],r=2,s=e;for(let t=0;;){if("..."==s&&t>0&&t+3==e.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!i)throw RangeError("Invalid path: "+e);if(n.push("*"==i[0]?"":'"'==i[0][0]?JSON.parse(i[0]):i[0]),(t+=i[0].length)==e.length)break;let o=e[t++];if(t==e.length&&"!"==o){r=0;break}if("/"!=o)throw RangeError("Invalid path: "+e);s=e.slice(t)}let o=n.length-1,l=n[o];if(!l)throw RangeError("Invalid path: "+e);let a=new c(i,r,o>0?n.slice(0,o):null);t[l]=a.sort(t[l])}}return h.add(t)}let h=new i.uY({combine(e,t){let n,i,r;for(;e||t;){if(!e||t&&e.depth>=t.depth?(r=t,t=t.next):(r=e,e=e.next),n&&n.mode==r.mode&&!r.context&&!n.context)continue;let s=new c(r.tags,r.mode,r.context);n?n.next=s:i=s,n=s}return i}});class c{constructor(e,t,n,i){this.tags=e,this.mode=t,this.context=n,this.next=i}get opaque(){return 0==this.mode}get inherit(){return 1==this.mode}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}function u(e,t){let n=Object.create(null);for(let t of e)if(Array.isArray(t.tag))for(let e of t.tag)n[e.id]=t.class;else n[t.tag.id]=t.class;let{scope:i,all:r=null}=t||{};return{style:e=>{let t=r;for(let i of e)for(let e of i.set){let i=n[e.id];if(i){t=t?t+" "+i:i;break}}return t},scope:i}}function f(e,t,n,i=0,r=e.length){let s=new d(i,Array.isArray(t)?t:[t],n);s.highlightRange(e.cursor(),i,r,"",s.highlighters),s.flush(r)}c.empty=new c([],2,null);class d{constructor(e,t,n){this.at=e,this.highlighters=t,this.span=n,this.class=""}startSpan(e,t){t!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=t)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,t,n,r,s){let{type:o,from:l,to:a}=e;if(l>=n||a<=t)return;o.isTop&&(s=this.highlighters.filter(e=>!e.scope||e.scope(o)));let u=r,f=function(e){let t=e.type.prop(h);for(;t&&t.context&&!e.matchContext(t.context);
20)t=t.next;return t||null}(e)||c.empty,d=function(e,t){let n=null;for(let i of e){let e=i.style(t);e&&(n=n?n+" "+e:e)}return n}(s,f.tags);if(d&&(u&&(u+=" "),u+=d,1==f.mode&&(r+=(r?" ":"")+d)),this.startSpan(Math.max(t,l),u),f.opaque)return;let p=e.tree&&e.tree.prop(i.uY.mounted);if(p&&p.overlay){let i=e.node.enter(p.overlay[0].from+l,1),o=this.highlighters.filter(e=>!e.scope||e.scope(p.tree.type)),h=e.firstChild();for(let c=0,f=l;;c++){let d=c<p.overlay.length?p.overlay[c]:null,m=d?d.from+l:a,g=Math.max(t,f),v=Math.min(n,m);if(g<v&&h)for(;e.from<v&&(this.highlightRange(e,g,v,r,s),this.startSpan(Math.min(v,e.to),u),!(e.to>=m)&&e.nextSibling()););if(!d||m>n)break;(f=d.to+l)>t&&(this.highlightRange(i.cursor(),Math.max(t,d.from+l),Math.min(n,f),"",o),this.startSpan(Math.min(n,f),u))}h&&e.parent()}else if(e.firstChild()){p&&(r="");do{if(e.to<=t)continue;if(e.from>=n)break;this.highlightRange(e,t,n,r,s),this.startSpan(Math.min(n,e.to),u)}while(e.nextSibling());e.parent()}}}let p=s.define,m=p(),g=p(),v=p(g),x=p(g),k=p(),b=p(k),y=p(k),O=p(),w=p(O),S=p(),P=p(),A=p(),C=p(A),R=p(),D={comment:m,lineComment:p(m),blockComment:p(m),docComment:p(m),name:g,variableName:p(g),typeName:v,tagName:p(v),propertyName:x,attributeName:p(x),className:p(g),labelName:p(g),namespace:p(g),macroName:p(g),literal:k,string:b,docString:p(b),character:p(b),attributeValue:p(b),number:y,integer:p(y),float:p(y),bool:p(k),regexp:p(k),escape:p(k),color:p(k),url:p(k),keyword:S,self:p(S),null:p(S),atom:p(S),unit:p(S),modifier:p(S),operatorKeyword:p(S),controlKeyword:p(S),definitionKeyword:p(S),moduleKeyword:p(S),operator:P,derefOperator:p(P),arithmeticOperator:p(P),logicOperator:p(P),bitwiseOperator:p(P),compareOperator:p(P),updateOperator:p(P),definitionOperator:p(P),typeOperator:p(P),controlOperator:p(P),punctuation:A,separator:p(A),bracket:C,angleBracket:p(C),squareBracket:p(C),paren:p(C),brace:p(C),content:O,heading:w,heading1:p(w),heading2:p(w),heading3:p(w),heading4:p(w),heading5:p(w),heading6:p(w),contentSeparator:p(O),list:p(O),quote:p(O),emphasis:p(O),strong:p(O),link:p(O),monospace:p(O),strikethrough:p(O),inserted:p(),deleted:p(),changed:p(),invalid:p(),meta:R,documentMeta:p(R),annotation:p(R),processingInstruction:p(R),definition:s.defineModifier("definition"),constant:s.defineModifier("constant"),function:s.defineModifier("function"),standard:s.defineModifier("standard"),local:s.defineModifier("local"),special:s.defineModifier("special")};for(let e in D){let t=D[e];t instanceof s&&(t.name=e)}u([{tag:D.link,class:"tok-link"},{tag:D.heading,class:"tok-heading"},{tag:D.emphasis,class:"tok-emphasis"},{tag:D.strong,class:"tok-strong"},{tag:D.keyword,class:"tok-keyword"},{tag:D.atom,class:"tok-atom"},{tag:D.bool,class:"tok-bool"},{tag:D.url,class:"tok-url"},{tag:D.labelName,class:"tok-labelName"},{tag:D.inserted,class:"tok-inserted"},{tag:D.deleted,class:"tok-deleted"},{tag:D.literal,class:"tok-literal"},{tag:D.string,class:"tok-string"},{tag:D.number,class:"tok-number"},{tag:[D.regexp,D.escape,D.special(D.string)],class:"tok-string2"},{tag:D.variableName,class:"tok-variableName"},{tag:D.local(D.variableName),class:"tok-variableName tok-local"},{tag:D.definition(D.variableName),class:"tok-variableName tok-definition"},{tag:D.special(D.variableName),class:"tok-variableName2"},{tag:D.definition(D.propertyName),class:"tok-propertyName tok-definition"},{tag:D.typeName,class:"tok-typeName"},{tag:D.namespace,class:"tok-namespace"},{tag:D.className,class:"tok-className"},{tag:D.macroName,class:"tok-macroName"},{tag:D.propertyName,class:"tok-propertyName"},{tag:D.operator,class:"tok-operator"},{tag:D.comment,class:"tok-comment"},{tag:D.meta,class:"tok-meta"},{tag:D.invalid,class:"tok-invalid"},{tag:D.punctuation,class:"tok-punctuation"}])},98007:(e,t,n)=>{n.d(t,{G:()=>o});let i="undefined"==typeof Symbol?"__ͼ":Symbol.for("ͼ"),r="undefined"==typeof Symbol?"__styleSet"+Math.floor(1e8*Math.random()):Symbol("styleSet"),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:{};class o{constructor(e,t){this.rules=[];let{finish:n}=t||{};function i(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}for(let t in e)!function e(t,r,s,o){let l=[],a=/^@(\w+)\b/.exec(t[0]),h=a&&"keyframes"==a[1];if(a&&null==r)return s.push(t[0]+";");for(let n in r){let o=r[n];if(/&/.test(n))e(n.split(/,\s*/).map(e=>t.map(t=>e.replace(/&/,t))).reduce((e,t)=>
20e.concat(t)),o,s);else if(o&&"object"==typeof o){if(!a)throw RangeError("The value of a property ("+n+") should be a primitive value.");e(i(n),o,l,h)}else null!=o&&l.push(n.replace(/_.*/,"").replace(/[A-Z]/g,e=>"-"+e.toLowerCase())+": "+o+";")}(l.length||h)&&s.push((n&&!a&&!o?t.map(n):t).join(", ")+" {"+l.join(" ")+"}")}(i(t),e[t],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=s[i]||1;return s[i]=e+1,"ͼ"+e.toString(36)}static mount(e,t,n){let i=e[r],s=n&&n.nonce;i?s&&i.setNonce(s):i=new a(e,s),i.mount(Array.isArray(t)?t:[t],e)}}let l=new Map;class a{constructor(e,t){let n=e.ownerDocument||e,i=n.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let t=l.get(n);if(t)return e[r]=t;this.sheet=new i.CSSStyleSheet,l.set(n,this)}else this.styleTag=n.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[r]=this}mount(e,t){let n=this.sheet,i=0,r=0;for(let t=0;t<e.length;t++){let s=e[t],o=this.modules.indexOf(s);if(o<r&&o>-1&&(this.modules.splice(o,1),r--,o=-1),-1==o){if(this.modules.splice(r++,0,s),n)for(let e=0;e<s.rules.length;e++)n.insertRule(s.rules[e],i++)}else{for(;r<o;)i+=this.modules[r++].rules.length;i+=s.rules.length,r++}}if(n)0>t.adoptedStyleSheets.indexOf(this.sheet)&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let e="";for(let t=0;t<this.modules.length;t++)e+=this.modules[t].getRules()+"\n";this.styleTag.textContent=e;let n=t.head||t;this.styleTag.parentNode!=n&&n.insertBefore(this.styleTag,n.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}}}]); 21//# sourceMappingURL=83643-eeda508a83fe458b.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.