"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[87060],{51486:function(t,e,i){i.d(e,{AV:function(){return l}});var O=i(19856),s=i(13199);let n=(0,s.Gv)({String:s.pJ.string,Number:s.pJ.number,"True False":s.pJ.bool,PropertyName:s.pJ.propertyName,Null:s.pJ.null,",":s.pJ.separator,"[ ]":s.pJ.squareBracket,"{ }":s.pJ.brace}),r=O.WQ.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[n],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var o=i(66692);let a=o.qp.define({name:"json",parser:r.configure({props:[o.uj.add({Object:(0,o.tC)({except:/^\s*\}/}),Array:(0,o.tC)({except:/^\s*\]/})}),o.x0.add({"Object Array":o.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function l(){return new o.ri(a)}},79347:function(t,e,i){i.d(e,{Vs:function(){return tW}});var O,s=i(19856),n=i(13199);let r=new Set([25,49,50,264,65,130,56,57,238,62,63,72,73,77,60,61,151,152,155,112]);function o(t){return 10==t||13==t}function a(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}let l=new s.Jq((t,e)=>{let i;if(t.next<0)t.acceptToken(199);else if(e.context.flags&c)o(t.next)&&t.acceptToken(198,1);else if(((i=t.peek(-1))<0||o(i))&&e.canShift(197)){let e=0;for(;32==t.next||9==t.next;)t.advance(),e++;(10==t.next||13==t.next||35==t.next)&&t.acceptToken(197,-e)}else o(t.next)&&t.acceptToken(196,1)},{contextual:!0}),h=new s.Jq((t,e)=>{let i=e.context;if(i.flags)return;let O=t.peek(-1);if(10==O||13==O){let e=0,O=0;for(;;){if(32==t.next)e++;else if(9==t.next)e+=8-e%8;else break;t.advance(),O++}e!=i.indent&&10!=t.next&&13!=t.next&&35!=t.next&&(e[t,2|e])),u=new s.IK({start:p,reduce:(t,e,i,O)=>t.flags&c&&r.has(e)||(71==e||72==e)&&2&t.flags?t.parent:t,shift:(t,e,i,O)=>194==e?new d(t,function(t){let e=0;for(let i=0;it.hash}),Q=new s.Jq(t=>{for(let e=0;e<5;e++){if(t.next!="print".charCodeAt(e))return;t.advance()}if(!/\w/.test(String.fromCharCode(t.next)))for(let e=0;;e++){let i=t.peek(e);if(32!=i&&9!=i){40!=i&&46!=i&&10!=i&&13!=i&&35!=i&&t.acceptToken(1);return}}}),m=new s.Jq((t,e)=>{let{flags:i}=e.context,O=4&i?34:39,s=(8&i)>0,n=!(16&i),r=(32&i)>0,o=t.pos;for(;!(t.next<0);)if(r&&123==t.next){if(123==t.peek(1))t.advance(2);else{if(t.pos==o){t.acceptToken(3,1);return}break}}else if(n&&92==t.next){if(t.pos==o){t.advance();let e=t.next;e>=0&&(t.advance(),function(t,e){if(111==e)for(let e=0;e<2&&t.next>=48&&t.next<=55;e++)t.advance();else if(120==e)for(let e=0;e<2&&a(t.next);e++)t.advance();else if(117==e)for(let e=0;e<4&&a(t.next);e++)t.advance();else if(85==e)for(let e=0;e<8&&a(t.next);e++)t.advance();else if(78==e&&123==t.next){for(t.advance();t.next>=0&&125!=t.next&&39!=t.next&&34!=t.next&&10!=t.next;)t.advance();125==t.next&&t.advance()}}(t,e)),t.acceptToken(2);return}break}else if(t.next!=O||s&&(t.peek(1)!=O||t.peek(2)!=O)){if(10==t.next){if(s)t.advance();else if(t.pos==o){t.acceptToken(201);return}break}t.advance()}else{if(t.pos==o){t.acceptToken(201,s?3:1);return}break}t.pos>o&&t.acceptToken(200)}),g=(0,n.Gv)({'async "*" "**" FormatConversion FormatSpec':n.pJ.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":n.pJ.controlKeyword,"in not and or is del":n.pJ.operatorKeyword,"from def class global nonlocal lambda":n.pJ.definitionKeyword,import:n.pJ.moduleKeyword,"with as print":n.pJ.keyword,Boolean:n.pJ.bool,None:n.pJ.null,VariableName:n.pJ.variableName,"CallExpression/VariableName":n.pJ.function(n.pJ.variableName),"FunctionDefinition/VariableName":n.pJ.function(n.pJ.definition(n.pJ.variableName)),"ClassDefinition/VariableName":n.pJ.definition(n.pJ.className),PropertyName:n.pJ.propertyName,"CallExpression/MemberExpression/PropertyName":n.pJ.function(n.pJ.propertyName),Comment:n.pJ.lineComment,Number:n.pJ.number,String:n.pJ.string,FormatString:n.pJ.special(n.pJ.string),Escape:n.pJ.escape,UpdateOp:n.pJ.updateOperator,"ArithOp!":n.pJ.arithmeticOperator,BitOp:n.pJ.bitwiseOperator,CompareOp:n.pJ.compareOperator,AssignOp:n.pJ.definitionOperator,Ellipsis:n.pJ.punctuation,At:n.pJ.meta,"( )":n.pJ.paren,"[ ]":n.pJ.squareBracket,"{ }":n.pJ.brace,".":n.pJ.derefOperator,", ;":n.pJ.separator}),T={__proto__:null,await:44,or:54,and:56,in:60,not:62,is:64,if:70,else:72,lambda:76,yield:94,from:96,async:102,for:104,None:162,True:164,False:164,del:178,pass:182,break:186,continue:190,return:194,raise:202,import:206,as:208,global:212,nonlocal:214,assert:218,type:223,elif:236,while:240,try:246,except:248,finally:250,with:254,def:258,class:268,match:279,case:285},S=s.WQ.deserialize({version:14,states:"##pO`QeOOP$}OSOOO&WQtO'#HUOOQS'#Co'#CoOOQS'#Cp'#CpO'vQdO'#CnO*UQtO'#HTOOQS'#HU'#HUOOQS'#DU'#DUOOQS'#HT'#HTO*rQdO'#D_O+VQdO'#DfO+gQdO'#DjO+zOWO'#DuO,VOWO'#DvO.[QtO'#GuOOQS'#Gu'#GuO'vQdO'#GtO0ZQtO'#GtOOQS'#Eb'#EbO0rQdO'#EcOOQS'#Gs'#GsO0|QdO'#GrOOQV'#Gr'#GrO1XQdO'#FYOOQS'#G^'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this.pos=e,this.explicit=i,this.abortListeners=[]}tokenBefore(t){let e=(0,P.qz)(this.state).resolveInner(this.pos,-1);for(;e&&0>t.indexOf(e.name);)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),O=e.text.slice(i-e.from,this.pos-e.from),s=O.search(X(t,!1));return s<0?null:{from:i+s,to:this.pos,text:O.slice(s)}}get aborted(){return null==this.abortListeners}addEventListener(t,e){"abort"==t&&this.abortListeners&&this.abortListeners.push(e)}}function v(t){let e=Object.keys(t).join(""),i=/\w/.test(e);return i&&(e=e.replace(/\w/g,"")),`[${i?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function y(t){let e=t.map(t=>"string"==typeof t?{label:t}:t),[i,O]=e.every(t=>/^\w+$/.test(t.label))?[/\w*$/,/\w+$/]:function(t){let e=Object.create(null),i=Object.create(null);for(let{label:O}of t){e[O[0]]=!0;for(let t=1;t{let s=t.matchBefore(O);return s||t.explicit?{from:s?s.from:t.pos,options:e,validFor:i}:null}}class q{constructor(t,e,i,O){this.completion=t,this.source=e,this.match=i,this.score=O}}function R(t){return t.selection.main.from}function X(t,e){var i;let{source:O}=t,s=e&&"^"!=O[0],n="$"!=O[O.length-1];return s||n?RegExp(`${s?"^":""}(?:${O})${n?"$":""}`,null!==(i=t.flags)&&void 0!==i?i:t.ignoreCase?"i":""):t}let z=x.q6.define(),w=new WeakMap;function W(t){if(!Array.isArray(t))return t;let e=w.get(t);return e||w.set(t,e=y(t)),e}let _=x.Py.define(),U=x.Py.define();class V{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&a<=57||a>=97&&a<=122?2:a>=65&&a<=90?1:0:(g=(0,x.bg)(a))!=g.toLowerCase()?1:g!=g.toUpperCase()?2:0;(!O||1==T&&u||0==m&&0!=T)&&(e[h]==a||i[h]==a&&(c=!0)?n[h++]=O:n.length&&(Q=!1)),m=T,O+=(0,x.nZ)(a)}return h==o&&0==n[0]&&Q?this.result(-100+(c?-200:0),n,t):d==o&&0==p?this.ret(-200-t.length+(f==t.length?0:-100),[0,f]):r>-1?this.ret(-700-t.length,[r,r+this.pattern.length]):d==o?this.ret(-900-t.length,[p,f]):h==o?this.result(-100+(c?-200:0)+-700+(Q?0:-1100),n,t):2==e.length?null:this.result((O[0]?-700:0)+-200+-1100,O,t)}result(t,e,i){let O=[],s=0;for(let t of e){let e=t+(this.astral?(0,x.nZ)((0,x.gm)(i,t)):1);s&&O[s-1]==t?O[s-1]=e:(O[s++]=t,O[s++]=e)}return this.ret(t-i.length,O)}}class G{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length(0,x.BO)(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:C,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>j(t(i),e(i)),optionClass:(t,e)=>i=>j(t(i),e(i)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})});function j(t,e){return t?e?t+" "+e:t:e}function C(t,e,i,O,s,n){let r=t.textDirection==b.Nm.RTL,o=r,a=!1,l="top",h,c,d=e.left-s.left,p=s.right-e.right,f=O.right-O.left,u=O.bottom-O.top;if(o&&d=u||t>e.top?h=i.bottom-e.top:(l="bottom",h=e.bottom-i.top)}let Q=(e.bottom-e.top)/n.offsetHeight,m=(e.right-e.left)/n.offsetWidth;return{style:`${l}: ${h/Q}px; max-width: ${c/m}px`,class:"cm-completionInfo-"+(a?r?"left-narrow":"right-narrow":o?"left":"right")}}function Z(t,e,i){if(t<=i)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let t=Math.floor(e/i);return{from:t*i,to:(t+1)*i}}let O=Math.floor((t-e)/i);return{from:t-(O+1)*i,to:t-O*i}}class A{constructor(t,e,i){let O;this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this},this.space=null,this.currentClass="";let s=t.state.field(e),{options:n,selected:r}=s.open,o=t.state.facet(E);this.optionContent=(O=o.addToOptions.slice(),o.icons&&O.push({render(t){let e=document.createElement("div");return e.classList.add("cm-completionIcon"),t.type&&e.classList.add(...t.type.split(/\s+/g).map(t=>"cm-completionIcon-"+t)),e.setAttribute("aria-hidden","true"),e},position:20}),O.push({render(t,e,i,O){let s=document.createElement("span");s.className="cm-completionLabel";let n=t.displayLabel||t.label,r=0;for(let t=0;tr&&s.appendChild(document.createTextNode(n.slice(r,e)));let o=s.appendChild(document.createElement("span"));o.appendChild(document.createTextNode(n.slice(e,i))),o.className="cm-completionMatchedText",r=i}return rt.position-e.position).map(t=>t.render)),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=Z(n.length,r,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",i=>{let{options:O}=t.state.field(e).open;for(let e=i.target,s;e&&e!=this.dom;e=e.parentNode)if("LI"==e.nodeName&&(s=/-(\d+)$/.exec(e.id))&&+s[1]{let i=t.state.field(this.stateField,!1);i&&i.tooltip&&t.state.facet(E).closeOnBlur&&e.relatedTarget!=t.contentDOM&&t.dispatch({effects:U.of(null)})}),this.showOptions(n,s.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let i=t.state.field(this.stateField),O=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=O){let{options:s,selected:n,disabled:r}=i.open;O.open&&O.open.options==s||(this.range=Z(s.length,n,t.state.facet(E).maxRenderedOptions),this.showOptions(s,i.id)),this.updateSel(),r!=(null===(e=O.open)||void 0===e?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!r)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))t&&this.dom.classList.remove(t);for(let t of e.split(" "))t&&this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=Z(e.options.length,e.selected,this.view.state.facet(E).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:O}=i;if(!O)return;let s="string"==typeof O?document.createTextNode(O):O(i);if(!s)return;"then"in s?s.then(e=>{e&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(e,i)}).catch(t=>(0,b.OO)(this.view.state,t,"completion info")):this.addInfoPane(s,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",null!=t.nodeType)i.appendChild(t),this.infoDestroy=null;else{let{dom:e,destroy:O}=t;i.appendChild(e),this.infoDestroy=O||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){var e,i;let O,s,n,r=null;for(let e=this.list.firstChild,i=this.range.from;e;e=e.nextSibling,i++)"LI"==e.nodeName&&e.id?i==t?e.hasAttribute("aria-selected")||(e.setAttribute("aria-selected","true"),r=e):e.hasAttribute("aria-selected")&&e.removeAttribute("aria-selected"):i--;return r&&(e=this.list,i=r,O=e.getBoundingClientRect(),s=i.getBoundingClientRect(),n=O.height/e.offsetHeight,s.topO.bottom&&(e.scrollTop+=(s.bottom-O.bottom)/n)),r}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),O=t.getBoundingClientRect(),s=this.space;if(!s){let t=this.dom.ownerDocument.defaultView||window;s={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}return O.top>Math.min(s.bottom,e.bottom)-10||O.bottomi.from||0==i.from)&&(s=t,"string"!=typeof a&&a.header?O.appendChild(a.header(a)):O.appendChild(document.createElement("completion-section")).textContent=t)}let l=O.appendChild(document.createElement("li"));l.id=e+"-"+n,l.setAttribute("role","option");let h=this.optionClass(r);for(let t of(h&&(l.className=h),this.optionContent)){let e=t(r,this.view.state,this.view,o);e&&l.appendChild(e)}}return i.from&&O.classList.add("cm-completionListIncompleteTop"),i.to=this.options.length?this:new J(this.options,F(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,O,s){let n=function(t,e){let i=[],O=null,s=t=>{i.push(t);let{section:e}=t.completion;if(e){O||(O=[]);let t="string"==typeof e?e:e.name;O.some(e=>e.name==t)||O.push("string"==typeof e?{name:t}:e)}},n=e.facet(E);for(let O of t)if(O.hasResult()){let t=O.result.getMatch;if(!1===O.result.filter)for(let e of O.result.options)s(new q(e,O.source,t?t(e):[],1e9-i.length));else{let i=e.sliceDoc(O.from,O.to),r,o=n.filterStrict?new G(i):new V(i);for(let e of O.result.options)if(r=o.match(e.label)){let i=e.displayLabel?t?t(e,r.matched):[]:r.matched;s(new q(e,O.source,i,r.score+(e.boost||0)))}}}if(O){let t=Object.create(null),e=0;for(let i of O.sort((t,e)=>{var i,O;return(null!==(i=t.rank)&&void 0!==i?i:1e9)-(null!==(O=e.rank)&&void 0!==O?O:1e9)||(t.namee.score-t.score||a(t.completion,e.completion))){let e=t.completion;o&&o.label==e.label&&o.detail==e.detail&&(null==o.type||null==e.type||o.type==e.type)&&o.apply==e.apply&&o.boost==e.boost?I(t.completion)>I(o)&&(r[r.length-1]=t):r.push(t),o=t.completion}return r}(t,e);if(!n.length)return O&&t.some(t=>1==t.state)?new J(O.options,O.attrs,O.tooltip,O.timestamp,O.selected,!0):null;let r=e.facet(E).selectOnOpen?0:-1;if(O&&O.selected!=r&&-1!=O.selected){let t=O.options[O.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t,1e8),create:te,above:s.aboveCursor},O?O.timestamp:Date.now(),r,!1)}map(t){return new J(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class N{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new N(D,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(t){let{state:e}=t,i=e.facet(E),O=(i.override||e.languageDataAt("autocomplete",R(e)).map(W)).map(e=>(this.active.find(t=>t.source==e)||new L(e,this.active.some(t=>0!=t.state)?1:0)).update(t,i));O.length==this.active.length&&O.every((t,e)=>t==this.active[e])&&(O=this.active);let s=this.open;for(let n of(s&&t.docChanged&&(s=s.map(t.changes)),t.selection||O.some(e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to))||!function(t,e){if(t==e)return!0;for(let i=0,O=0;;){for(;i1==t.state)&&(s=null),!s&&O.every(t=>1!=t.state)&&O.some(t=>t.hasResult())&&(O=O.map(t=>t.hasResult()?new L(t.source,0):t)),t.effects))n.is(M)&&(s=s&&s.setSelected(n.value,this.id));return O==this.active&&s==this.open?this:new N(O,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:Y}}let Y={"aria-autocomplete":"list"};function F(t,e){let i={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(i["aria-activedescendant"]=t+"-"+e),i}let D=[];class L{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=function(t,e){if(t.isUserEvent("input.complete")){let i=t.annotation(z);if(i&&e.activateOnCompletion(i))return"input"}return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}(t,e),O=this;for(let s of(i?O=O.handleUserEvent(t,i,e):t.docChanged?O=O.handleChange(t):t.selection&&0!=O.state&&(O=new L(O.source,0)),t.effects))if(s.is(_))O=new L(O.source,1,s.value?R(t.state):-1);else if(s.is(U))O=new L(O.source,0);else if(s.is(H))for(let t of s.value)t.source==O.source&&(O=t);return O}handleUserEvent(t,e,i){return"delete"!=e&&i.activateOnTyping?new L(this.source,1):this.map(t.changes)}handleChange(t){return t.changes.touchesRange(R(t.startState))?new L(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new L(this.source,this.state,t.mapPos(this.explicitPos))}}class B extends L{constructor(t,e,i,O,s){super(t,2,e),this.result=i,this.from=O,this.to=s}hasResult(){return!0}handleUserEvent(t,e,i){var O;let s=this.result;s.map&&!t.changes.empty&&(s=s.map(s,t.changes));let n=t.changes.mapPos(this.from),r=t.changes.mapPos(this.to,1),o=R(t.state);if((this.explicitPos<0?o<=n:or||!s||"delete"==e&&R(t.startState)==this.from)return new L(this.source,"input"==e&&i.activateOnTyping?1:0);let a=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return!function(t,e,i,O){if(!t)return!1;let s=e.sliceDoc(i,O);return"function"==typeof t?t(s,i,O,e):X(t,!0).test(s)}(s.validFor,t.state,n,r)?s.update&&(s=s.update(s,n,r,new $(t.state,o,a>=0)))?new B(this.source,a,s,s.from,null!==(O=s.to)&&void 0!==O?O:R(t.state)):new L(this.source,1,a):new B(this.source,a,s,n,r)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new L(this.source,0):this.map(t.changes)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new B(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new L(this.source,0)}}let H=x.Py.define({map:(t,e)=>t.map(t=>t.map(e))}),M=x.Py.define(),K=x.QQ.define({create:()=>N.start(),update:(t,e)=>t.update(e),provide:t=>[b.hJ.from(t,t=>t.tooltip),b.tk.contentAttributes.from(t,t=>t.attrs)]});function tt(t,e){let i=e.completion.apply||e.completion.label,O=t.state.field(K).active.find(t=>t.source==e.source);return O instanceof B&&("string"==typeof i?t.dispatch(Object.assign(Object.assign({},function(t,e,i,O){let{main:s}=t.selection,n=i-s.from,r=O-s.from;return Object.assign(Object.assign({},t.changeByRange(o=>o!=s&&i!=O&&t.sliceDoc(o.from+n,o.from+r)!=t.sliceDoc(i,O)?{range:o}:{changes:{from:o.from+n,to:O==s.from?o.to:o.from+r,insert:e},range:x.jT.cursor(o.from+n+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}(t.state,i,O.from,O.to)),{annotations:z.of(e.completion)})):i(t,e.completion,O.from,O.to),!0)}let te=t=>new A(t,K,tt);"object"==typeof navigator&&navigator.platform;let ti=b.tk.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"},".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"}}});class tO{constructor(t,e,i,O){this.field=t,this.line=e,this.from=i,this.to=O}}class ts{constructor(t,e,i){this.field=t,this.from=e,this.to=i}map(t){let e=t.mapPos(this.from,-1,x.gc.TrackDel),i=t.mapPos(this.to,1,x.gc.TrackDel);return null==e||null==i?null:new ts(this.field,e,i)}}class tn{constructor(t,e){this.lines=t,this.fieldPositions=e}instantiate(t,e){let i=[],O=[e],s=t.doc.lineAt(e),n=/^\s*/.exec(s.text)[0];for(let s of this.lines){if(i.length){let i=n,r=/^\t*/.exec(s)[0].length;for(let e=0;enew ts(t.field,O[t.line]+t.from,O[t.line]+t.to))}}static parse(t){let e=[],i=[],O=[],s;for(let n of t.split(/\r\n?|\n/)){for(;s=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(n);){let t=s[1]?+s[1]:null,r=s[2]||s[3]||"",o=-1;for(let i=0;i=o&&s.field++}O.push(new tO(o,i.length,s.index,s.index+r.length)),n=n.slice(0,s.index)+r+n.slice(s.index+s[0].length)}for(let t;t=/\\([{}])/.exec(n);)for(let e of(n=n.slice(0,t.index)+t[1]+n.slice(t.index+t[0].length),O))e.line==i.length&&e.from>t.index&&(e.from--,e.to--);i.push(n)}return new tn(i,O)}}let tr=b.p.widget({widget:new class extends b.l9{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),to=b.p.mark({class:"cm-snippetField"});class ta{constructor(t,e){this.ranges=t,this.active=e,this.deco=b.p.set(t.map(t=>(t.from==t.to?tr:to).range(t.from,t.to)))}map(t){let e=[];for(let i of this.ranges){let O=i.map(t);if(!O)return null;e.push(O)}return new ta(e,this.active)}selectionInsideField(t){return t.ranges.every(t=>this.ranges.some(e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))}}let tl=x.Py.define({map:(t,e)=>t&&t.map(e)}),th=x.Py.define(),tc=x.QQ.define({create:()=>null,update(t,e){for(let i of e.effects){if(i.is(tl))return i.value;if(i.is(th)&&t)return new ta(t.ranges,i.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>b.tk.decorations.from(t,t=>t?t.deco:b.p.none)});function td(t,e){return x.jT.create(t.filter(t=>t.field==e).map(t=>x.jT.range(t.from,t.to)))}function tp(t){return({state:e,dispatch:i})=>{let O=e.field(tc,!1);if(!O||t<0&&0==O.active)return!1;let s=O.active+t,n=t>0&&!O.ranges.some(e=>e.field==s+t);return i(e.update({selection:td(O.ranges,s),effects:tl.of(n?null:new ta(O.ranges,s)),scrollIntoView:!0})),!0}}let tf=[{key:"Tab",run:tp(1),shift:tp(-1)},{key:"Escape",run:({state:t,dispatch:e})=>!!t.field(tc,!1)&&(e(t.update({effects:tl.of(null)})),!0)}],tu=x.r$.define({combine:t=>t.length?t[0]:tf}),tQ=x.Wl.highest(b.$f.compute([tu],t=>t.facet(tu)));function tm(t,e){let i;return Object.assign(Object.assign({},e),{apply:(i=tn.parse(t),(t,e,O,s)=>{let{text:n,ranges:r}=i.instantiate(t.state,O),o={changes:{from:O,to:s,insert:x.xv.of(n)},scrollIntoView:!0,annotations:e?[z.of(e),x.YW.userEvent.of("input.complete")]:void 0};if(r.length&&(o.selection=td(r,0)),r.some(t=>t.field>0)){let e=new ta(r,0),i=o.effects=[tl.of(e)];void 0===t.state.field(tc,!1)&&i.push(x.Py.appendConfig.of([tc,tQ,tg,ti]))}t.dispatch(t.state.update(o))})})}let tg=b.tk.domEventHandlers({mousedown(t,e){let i=e.state.field(tc,!1),O;if(!i||null==(O=e.posAtCoords({x:t.clientX,y:t.clientY})))return!1;let s=i.ranges.find(t=>t.from<=O&&t.to>=O);return!!s&&s.field!=i.active&&(e.dispatch({selection:td(i.ranges,s.field),effects:tl.of(i.ranges.some(t=>t.field>s.field)?new ta(i.ranges,s.field):null),scrollIntoView:!0}),!0)}}),tT=x.Py.define({map(t,e){let i=e.mapPos(t,-1,x.gc.TrackAfter);return null==i?void 0:i}}),tS=new class extends x.uU{};tS.startSide=1,tS.endSide=-1,"object"==typeof navigator&&navigator.userAgent;let tP=new k.hr,tk=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function tx(t){return(e,i,O)=>{if(O)return!1;let s=e.node.getChild("VariableName");return s&&i(s,t),!0}}let tb={FunctionDefinition:tx("function"),ClassDefinition:tx("class"),ForStatement(t,e,i){if(i){for(let i=t.node.firstChild;i;i=i.nextSibling)if("VariableName"==i.name)e(i,"variable");else if("in"==i.name)break}},ImportStatement(t,e){var i,O;let{node:s}=t,n=(null===(i=s.firstChild)||void 0===i?void 0:i.name)=="from";for(let t=s.getChild("import");t;t=t.nextSibling)"VariableName"==t.name&&(null===(O=t.nextSibling)||void 0===O?void 0:O.name)!="as"&&e(t,n?"variable":"namespace")},AssignStatement(t,e){for(let i=t.node.firstChild;i;i=i.nextSibling)if("VariableName"==i.name)e(i,"variable");else if(":"==i.name||"AssignOp"==i.name)break},ParamList(t,e){for(let i=null,O=t.node.firstChild;O;O=O.nextSibling)"VariableName"!=O.name||i&&/\*|AssignOp/.test(i.name)||e(O,"variable"),i=O},CapturePattern:tx("variable"),AsPattern:tx("variable"),__proto__:null},t$=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,tv=["String","FormatString","Comment","PropertyName"];function ty(t){let e=(0,P.qz)(t.state).resolveInner(t.pos,-1);if(tv.indexOf(e.name)>-1)return null;let i="VariableName"==e.name||e.to-e.from<20&&t$.test(t.state.sliceDoc(e.from,e.to));if(!i&&!t.explicit)return null;let O=[];for(let i=e;i;i=i.parent)tk.has(i.name)&&(O=O.concat(function t(e,i){let O=tP.get(i);if(O)return O;let s=[],n=!0;function r(t,i){let O=e.sliceString(t.from,t.to);s.push({label:O,type:i})}return i.cursor(k.vj.IncludeAnonymous).iterate(i=>{if(i.name){let t=tb[i.name];if(t&&t(i,r,n)||!n&&tk.has(i.name))return!1;n=!1}else if(i.to-i.from>8192){for(let O of t(e,i.node))s.push(O);return!1}}),tP.set(i,s),s}(t.state.doc,i)));return{options:O,from:i?e.from:t.pos,validFor:t$}}let tq=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map(t=>({label:t,type:"constant"})).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map(t=>({label:t,type:"type"}))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map(t=>({label:t,type:"class"}))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map(t=>({label:t,type:"function"}))),tR=[tm("def ${name}(${params}):\n ${}",{label:"def",detail:"function",type:"keyword"}),tm("for ${name} in ${collection}:\n ${}",{label:"for",detail:"loop",type:"keyword"}),tm("while ${}:\n ${}",{label:"while",detail:"loop",type:"keyword"}),tm("try:\n ${}\nexcept ${error}:\n ${}",{label:"try",detail:"/ except block",type:"keyword"}),tm("if ${}:\n \n",{label:"if",detail:"block",type:"keyword"}),tm("if ${}:\n ${}\nelse:\n ${}",{label:"if",detail:"/ else block",type:"keyword"}),tm("class ${name}:\n def __init__(self, ${params}):\n ${}",{label:"class",detail:"definition",type:"keyword"}),tm("import ${module}",{label:"import",detail:"statement",type:"keyword"}),tm("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],tX=(O=y(tq.concat(tR)),t=>{for(let e=(0,P.qz)(t.state).resolveInner(t.pos,-1);e;e=e.parent){if(tv.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return O(t)});function tz(t,e){let i=t.baseIndentFor(e),O=t.lineAt(t.pos,-1),s=O.from+O.text.length;return/^\s*($|#)/.test(O.text)&&t.node.toi?null:i+t.unit}let tw=P.qp.define({name:"python",parser:S.configure({props:[P.uj.add({Body:t=>{var e;return null!==(e=tz(t,t.node))&&void 0!==e?e:t.continue()},IfStatement:t=>/^\s*(else:|elif )/.test(t.textAfter)?t.baseIndent:t.continue(),"ForStatement WhileStatement":t=>/^\s*else:/.test(t.textAfter)?t.baseIndent:t.continue(),TryStatement:t=>/^\s*(except |finally:|else:)/.test(t.textAfter)?t.baseIndent:t.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,P.vw)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,P.vw)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,P.vw)({closing:"]"}),"String FormatString":()=>null,Script:t=>{if(t.pos+/\s*/.exec(t.textAfter)[0].length>=t.node.to){let e=null;for(let i=t.node,O=i.to;(i=i.lastChild)&&i.to==O;)"Body"==i.type.name&&(e=i);if(e){let i=tz(t,e);if(null!=i)return i}}return t.continue()}}),P.x0.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":P.Dv,Body:(t,e)=>({from:t.from+1,to:t.to-(t.to==e.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function tW(){return new P.ri(tw,[tw.data.of({autocomplete:ty}),tw.data.of({autocomplete:tX})])}},19856:function(t,e,i){i.d(e,{IK:function(){return y},Jq:function(){return u},WQ:function(){return q}});var O=i(80240),s=i(26955);class n{constructor(t,e,i,O,s,n,r,o,a,l=0,h){this.p=t,this.stack=e,this.state=i,this.reducePos=O,this.pos=s,this.score=n,this.buffer=r,this.bufferBase=o,this.curContext=a,this.lookAhead=l,this.parent=h}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let O=t.parser.context;return new n(t,[],e,i,i,0,[],0,O?new r(O,O.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var e;let i=t>>19,O=65535&t,{parser:s}=this.p,n=s.dynamicPrecedence(O);if(n&&(this.score+=n),0==i){this.pushState(s.getGoto(this.state,O,!0),this.reducePos),O=2e3&&!(null===(e=this.p.parser.nodeSet.types[O])||void 0===e?void 0:e.isAnonymous)&&(o==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=a):this.p.lastBigReductionSizer;)this.stack.pop();this.reduceContext(O,o)}storeNode(t,e,i,O=4,s=!1){if(0==t&&(!this.stack.length||this.stack[this.stack.length-1]0&&0==t.buffer[O-4]&&t.buffer[O-1]>-1){if(e==i)return;if(t.buffer[O-2]>=e){t.buffer[O-2]=i;return}}}if(s&&this.pos!=i){let s=this.buffer.length;if(s>0&&0!=this.buffer[s-4])for(;s>0&&this.buffer[s-2]>i;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,O>4&&(O-=4);this.buffer[s]=t,this.buffer[s+1]=e,this.buffer[s+2]=i,this.buffer[s+3]=O}else this.buffer.push(t,e,i,O)}shift(t,e,i,O){if(131072&t)this.pushState(65535&t,this.pos);else if((262144&t)==0){let{parser:s}=this.p;(O>this.pos||e<=s.maxNode)&&(this.pos=O,s.stateFlag(t,1)||(this.reducePos=O)),this.pushState(t,i),this.shiftContext(e,i),e<=s.maxNode&&this.buffer.push(e,i,O,4)}else this.pos=O,this.shiftContext(e,i),e<=this.p.parser.maxNode&&this.buffer.push(e,i,O,4)}apply(t,e,i,O){65536&t?this.reduce(t):this.shift(t,e,i,O)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let O=this.pos;this.reducePos=this.pos=O+t.length,this.pushState(e,O),this.buffer.push(i,O,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),O=t.bufferBase+e;for(;t&&O==t.bufferBase;)t=t.parent;return new n(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,O,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new o(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(0==i)return!1;if((65536&i)==0)return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let i=[];for(let O=0,s;O1&e&&t==O)||i.push(e[t],O)}e=i}let i=[];for(let t=0;t>19,O=65535&e,s=this.stack.length-3*i;if(s<0||0>t.getGoto(this.stack[s],O,!1)){let t=this.findForcedReduction();if(null==t)return!1;e=t}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(e),!0}findForcedReduction(){let{parser:t}=this.p,e=[],i=(O,s)=>{if(!e.includes(O))return e.push(O),t.allActions(O,e=>{if(393216&e);else if(65536&e){let i=(e>>19)-s;if(i>1){let O=65535&e,s=this.stack.length-3*i;if(s>=0&&t.getGoto(this.stack[s],O,!1)>=0)return i<<19|65536|O}}else{let t=i(e,s+1);if(null!=t)return t}})};return i(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:t}=this.p;return 65535==t.data[t.stateSlot(this.state,1)]&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class r{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}class o{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t>>19;0==e?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(e-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],65535&t,!0);this.state=i}}class a{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,0==this.index&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new a(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;null!=t&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new a(this.stack,this.pos,this.index)}}function l(t,e=Uint16Array){if("string"!=typeof t)return t;let i=null;for(let O=0,s=0;O=92&&e--,e>=34&&e--;let s=e-32;if(s>=46&&(s-=46,i=!0),n+=s,i)break;n*=46}i?i[s++]=n:i=new e(n)}return i}class h{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let c=new h;class d{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=c,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,O=this.rangeIndex,s=this.pos+t;for(;si.to:s>=i.to;){if(O==this.ranges.length-1)return null;let t=this.ranges[++O];s+=t.from-i.to,i=t}return s}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,i,O;if(e>=0&&e=this.chunk2Pos&&ie.to&&(this.chunk2=this.chunk2.slice(0,e.to-i)),O=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),O}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(null==i||i=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=c,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let O of this.ranges){if(O.from>=e)break;O.to>t&&(i+=this.input.read(Math.max(O.from,t),Math.min(O.to,e)))}return i}}class p{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;Q(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}p.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class f{constructor(t,e,i){this.precTable=e,this.elseToken=i,this.data="string"==typeof t?l(t):t}token(t,e){let i=t.pos,O=0;for(;;){let i=t.next<0,s=t.resolveOffset(1,1);if(Q(this.data,t,e,0,this.data,this.precTable),t.token.value>-1)break;if(null==this.elseToken)return;if(!i&&O++,null==s)break;t.reset(s,t.token)}O&&(t.reset(i,t.token),t.acceptToken(this.elseToken,O))}}f.prototype.contextual=p.prototype.fallback=p.prototype.extend=!1;class u{constructor(t,e={}){this.token=t,this.contextual=!!e.contextual,this.fallback=!!e.fallback,this.extend=!!e.extend}}function Q(t,e,i,O,s,n){let r=0,o=1<0){let i=t[O];if(a.allows(i)&&(-1==e.token.value||e.token.value==i||function(t,e,i,O){let s=m(i,O,e);return s<0||m(i,O,t)l&&65535==t[i+3*h-3]){r=t[i+3*h-1];continue}for(;l>1,n=i+s+(s<<1),o=t[n],a=t[n+1]||65536;if(O=a)l=s+1;else{r=t[n+2],e.advance();continue t}}break}}function m(t,e,i){for(let O=e,s;65535!=(s=t[O]);O++)if(s==i)return O-e;return -1}let g=void 0!==s&&s.env&&/\bparse\b/.test(s.env.LOG),T=null;function S(t,e,i){let s=t.cursor(O.vj.IncludeAnonymous);for(s.moveTo(e);;)if(!(i<0?s.childBefore(e):s.childAfter(e)))for(;;){if((i<0?s.toe)&&!s.type.isError)return i<0?Math.max(0,Math.min(s.to-1,e-25)):Math.min(t.length,Math.max(s.from+1,e+25));if(i<0?s.prevSibling():s.nextSibling())break;if(!s.parent())return i<0?0:t.length}}class P{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?S(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?S(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=r,null;if(n instanceof O.mp){if(r==t){if(r=Math.max(this.safeFrom,t)&&(this.trees.push(n),this.start.push(r),this.index.push(0))}else this.index[e]++,this.nextStart=r+n.length}}}class k{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(t=>new h)}getActions(t){let e=0,i=null,{parser:O}=t.p,{tokenizers:s}=O,n=O.stateSlot(t.state,3),r=t.curContext?t.curContext.hash:0,o=0;for(let O=0;Ol.end+25&&(o=Math.max(l.lookAhead,o)),0!=l.value)){let O=e;if(l.extended>-1&&(e=this.addActions(t,l.extended,l.end,e)),e=this.addActions(t,l.value,l.end,e),!a.extend&&(i=l,e>O))break}}for(;this.actions.length>e;)this.actions.pop();return o&&t.setLookAhead(o),i||t.pos!=this.stream.end||((i=new h).value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new h,{pos:i,p:O}=t;return e.start=i,e.end=Math.min(i+1,O.stream.end),e.value=i==O.stream.end?O.parser.eofTerm:0,e}updateCachedToken(t,e,i){let O=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(O,t),i),t.value>-1){let{parser:e}=i.p;for(let O=0;O=0&&i.p.parser.dialect.allows(s>>1)){(1&s)==0?t.value=s>>1:t.extended=s>>1;break}}}else t.value=0,t.end=this.stream.clipPos(O+1)}putAction(t,e,i,O){for(let e=0;e4*t.bufferLength?new P(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t,e,i=this.stacks,O=this.minStackPos,s=this.stacks=[];if(this.bigReductionCount>300&&1==i.length){let[t]=i;for(;t.forceReduce()&&t.stack.length&&t.stack[t.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let n=0;nO)s.push(r);else{if(this.advanceStack(r,s,i))continue;t||(t=[],e=[]),t.push(r);let O=this.tokens.getMainToken(r);e.push(O.value,O.end)}break}}if(!s.length){let e=t&&function(t){let e=null;for(let i of t){let t=i.p.stoppedAt;(i.pos==i.p.stream.end||null!=t&&i.pos>t)&&i.p.parser.stateFlag(i.state,2)&&(!e||e.scorethis.stoppedAt?t[0]:this.runRecovery(t,e,s);if(i)return g&&console.log("Force-finish "+this.stackID(i)),this.stackToTree(i.forceAll())}if(this.recovering){let t=1==this.recovering?1:3*this.recovering;if(s.length>t)for(s.sort((t,e)=>e.score-t.score);s.length>t;)s.pop();s.some(t=>t.reducePos>O)&&this.recovering--}else if(s.length>1){e:for(let t=0;t500&&O.buffer.length>500){if((e.score-O.score||e.buffer.length-O.buffer.length)>0)s.splice(i--,1);else{s.splice(t--,1);continue e}}}}s.length>12&&s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let t=1;t ":"";if(null!=this.stoppedAt&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,i=e?t.curContext.hash:0;for(let o=this.fragments.nodeAt(s);o;){let s=this.parser.nodeSet.types[o.type.id]==o.type?n.getGoto(t.state,o.type.id):-1;if(s>-1&&o.length&&(!e||(o.prop(O.md.contextHash)||0)==i))return t.useNode(o,s),g&&console.log(r+this.stackID(t)+` (via reuse of ${n.getName(o.type.id)})`),!0;if(!(o instanceof O.mp)||0==o.children.length||o.positions[0]>0)break;let a=o.children[0];if(a instanceof O.mp&&0==o.positions[0])o=a;else break}}let o=n.stateSlot(t.state,4);if(o>0)return t.reduce(o),g&&console.log(r+this.stackID(t)+` (via always-reduce ${n.getName(65535&o)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let a=this.tokens.getActions(t);for(let O=0;Os?e.push(d):i.push(d)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return b(t,e),!0}}runRecovery(t,e,i){let O=null,s=!1;for(let n=0;n ":"";if(r.deadEnd&&(s||(s=!0,r.restart(),g&&console.log(l+this.stackID(r)+" (restarted)"),this.advanceFully(r,i))))continue;let h=r.split(),c=l;for(let t=0;h.forceReduce()&&t<10&&(g&&console.log(c+this.stackID(h)+" (via force-reduce)"),!this.advanceFully(h,i));t++)g&&(c=this.stackID(h)+" -> ");for(let t of r.recoverByInsert(o))g&&console.log(l+this.stackID(t)+" (via recover-insert)"),this.advanceFully(t,i);this.stream.end>r.pos?(a==r.pos&&(a++,o=0),r.recoverByDelete(o,a),g&&console.log(l+this.stackID(r)+` (via recover-delete ${this.parser.getName(o)})`),b(r,i)):(!O||O.scoret;class y{constructor(t){this.start=t.start,this.shift=t.shift||v,this.reduce=t.reduce||v,this.reuse=t.reuse||v,this.hash=t.hash||(()=>0),this.strict=!1!==t.strict}}class q extends O._b{constructor(t){if(super(),this.wrappers=[],14!=t.version)throw RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let i=0;it.topRules[e][1]),s=[];for(let t=0;t=0)n(O,t,e[i++]);else{let s=e[i+-O];for(let r=-O;r>0;r--)n(e[i++],t,s);i++}}}this.nodeSet=new O.Lj(e.map((e,n)=>O.Jq.define({name:n>=this.minRepeatTerm?void 0:e,id:n,props:s[n],top:i.indexOf(n)>-1,error:0==n,skipped:t.skippedNodes&&t.skippedNodes.indexOf(n)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=O.L3;let r=l(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let t=0;t"number"==typeof t?new p(r,t):t),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let O=new x(this,t,e,i);for(let s of this.wrappers)O=s(O,t,e,i);return O}getGoto(t,e,i=!1){let O=this.goto;if(e>=O[0])return -1;for(let s=O[e+1];;){let e=O[s++],n=1&e,r=O[s++];if(n&&i)return r;for(let i=s+(e>>1);s0}validAction(t,e){return!!this.allActions(t,t=>t==e||null)}allActions(t,e){let i=this.stateSlot(t,4),O=i?e(i):void 0;for(let i=this.stateSlot(t,1);null==O;i+=3){if(65535==this.data[i]){if(1==this.data[i+1])i=R(this.data,i+2);else break}O=e(R(this.data,i+1))}return O}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(65535==this.data[i]){if(1==this.data[i+1])i=R(this.data,i+2);else break}if((1&this.data[i+2])==0){let t=this.data[i+1];e.some((e,i)=>1&i&&e==t)||e.push(this.data[i],t)}}return e}configure(t){let e=Object.assign(Object.create(q.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(e=>{let i=t.tokenizers.find(t=>t.from==e);return i?i.to:e})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,O)=>{let s=t.specializers.find(t=>t.from==i.external);if(!s)return i;let n=Object.assign(Object.assign({},i),{external:s.to});return e.specializers[O]=X(n),n})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),null!=t.strict&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),null!=t.bufferLength&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return null==e?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let O of t.split(" ")){let t=e.indexOf(O);t>=0&&(i[t]=!0)}let O=null;for(let t=0;tt.external(i,O)<<1|e}return t.get}}}]);