@matdata/yasqe 5.10.1 → 5.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,53 +1,53 @@
1
- "use strict";var Yasqe=(()=>{var uA=Object.create;var Bh=Object.defineProperty;var fA=Object.getOwnPropertyDescriptor;var cA=Object.getOwnPropertyNames;var pA=Object.getPrototypeOf,hA=Object.prototype.hasOwnProperty;var br=(i,m)=>()=>(m||i((m={exports:{}}).exports,m),m.exports),zm=(i,m)=>{for(var e in m)Bh(i,e,{get:m[e],enumerable:!0})},jm=(i,m,e,N)=>{if(m&&typeof m=="object"||typeof m=="function")for(let R of cA(m))!hA.call(i,R)&&R!==e&&Bh(i,R,{get:()=>m[R],enumerable:!(N=fA(m,R))||N.enumerable});return i};var Xt=(i,m,e)=>(e=i!=null?uA(pA(i)):{},jm(m||!i||!i.__esModule?Bh(e,"default",{value:i,enumerable:!0}):e,i)),dA=i=>jm(Bh({},"__esModule",{value:!0}),i);var si=br((YE,JE)=>{(function(i,m){typeof YE=="object"&&typeof JE<"u"?JE.exports=m():typeof define=="function"&&define.amd?define(m):(i=i||self,i.CodeMirror=m())})(YE,function(){"use strict";var i=navigator.userAgent,m=navigator.platform,e=/gecko\/\d/i.test(i),N=/MSIE \d/.test(i),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),L=/Edge\/(\d+)/.exec(i),O=N||R||L,D=O&&(N?document.documentMode||6:+(L||R)[1]),Z=!L&&/WebKit\//.test(i),H=Z&&/Qt\/\d+\.\d+/.test(i),Q=!L&&/Chrome\/(\d+)/.exec(i),W=Q&&+Q[1],$=/Opera\//.test(i),M=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),Y=/PhantomJS/.test(i),B=M&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),V=/Android/.test(i),X=B||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),q=B||/Mac/.test(m),te=/\bCrOS\b/.test(i),ie=/win/i.test(m),ae=$&&i.match(/Version\/(\d*\.\d*)/);ae&&(ae=Number(ae[1])),ae&&ae>=15&&($=!1,Z=!0);var fe=q&&(H||$&&(ae==null||ae<12.11)),ye=e||O&&D>=9;function Re(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Le=function(s,l){var g=s.className,d=Re(l).exec(g);if(d){var v=g.slice(d.index+d[0].length);s.className=g.slice(0,d.index)+(v?d[1]+v:"")}};function Ve(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Je(s,l){return Ve(s).appendChild(l)}function me(s,l,g,d){var v=document.createElement(s);if(g&&(v.className=g),d&&(v.style.cssText=d),typeof l=="string")v.appendChild(document.createTextNode(l));else if(l)for(var A=0;A<l.length;++A)v.appendChild(l[A]);return v}function xr(s,l,g,d){var v=me(s,l,g,d);return v.setAttribute("role","presentation"),v}var Cr;document.createRange?Cr=function(s,l,g,d){var v=document.createRange();return v.setEnd(d||s,g),v.setStart(s,l),v}:Cr=function(s,l,g){var d=document.body.createTextRange();try{d.moveToElementText(s.parentNode)}catch{return d}return d.collapse(!0),d.moveEnd("character",g),d.moveStart("character",l),d};function ur(s,l){if(l.nodeType==3&&(l=l.parentNode),s.contains)return s.contains(l);do if(l.nodeType==11&&(l=l.host),l==s)return!0;while(l=l.parentNode)}function $r(s){var l=s.ownerDocument||s,g;try{g=s.activeElement}catch{g=l.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function ze(s,l){var g=s.className;Re(l).test(g)||(s.className+=(g?" ":"")+l)}function St(s,l){for(var g=s.split(" "),d=0;d<g.length;d++)g[d]&&!Re(g[d]).test(l)&&(l+=" "+g[d]);return l}var Lt=function(s){s.select()};B?Lt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:O&&(Lt=function(s){try{s.select()}catch{}});function pr(s){return s.display.wrapper.ownerDocument}function wt(s){return or(s.display.wrapper)}function or(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function ut(s){return pr(s).defaultView}function je(s){var l=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,l)}}function zr(s,l,g){l||(l={});for(var d in s)s.hasOwnProperty(d)&&(g!==!1||!l.hasOwnProperty(d))&&(l[d]=s[d]);return l}function Ir(s,l,g,d,v){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var A=d||0,b=v||0;;){var y=s.indexOf(" ",A);if(y<0||y>=l)return b+(l-A);b+=y-A,b+=g-b%g,A=y+1}}var Pr=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};Pr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Pr.prototype.set=function(s,l){this.f=l;var g=+new Date+s;(!this.id||g<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=g)};function hr(s,l){for(var g=0;g<s.length;++g)if(s[g]==l)return g;return-1}var Kt=50,Fe={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},Er={origin:"*mouse"},fr={origin:"+move"};function we(s,l,g){for(var d=0,v=0;;){var A=s.indexOf(" ",d);A==-1&&(A=s.length);var b=A-d;if(A==s.length||v+b>=l)return d+Math.min(b,l-v);if(v+=A-d,v+=g-v%g,d=A+1,v>=l)return d}}var Ur=[""];function ei(s){for(;Ur.length<=s;)Ur.push(Ae(Ur)+" ");return Ur[s]}function Ae(s){return s[s.length-1]}function Ot(s,l){for(var g=[],d=0;d<s.length;d++)g[d]=l(s[d],d);return g}function ft(s,l,g){for(var d=0,v=g(l);d<s.length&&g(s[d])<=v;)d++;s.splice(d,0,l)}function Nt(){}function rs(s,l){var g;return Object.create?g=Object.create(s):(Nt.prototype=s,g=new Nt),l&&zr(l,g),g}var Me=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ct(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||Me.test(s))}function Oe(s,l){return l?l.source.indexOf("\\w")>-1&&ct(s)?!0:l.test(s):ct(s)}function rr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var at=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function pt(s){return s.charCodeAt(0)>=768&&at.test(s)}function Nr(s,l,g){for(;(g<0?l>0:l<s.length)&&pt(s.charAt(l));)l+=g;return l}function ri(s,l,g){for(var d=l>g?-1:1;;){if(l==g)return l;var v=(l+g)/2,A=d<0?Math.ceil(v):Math.floor(v);if(A==l)return s(A)?l:g;s(A)?g=A:l=A+d}}function Fi(s,l,g,d){if(!s)return d(l,g,"ltr",0);for(var v=!1,A=0;A<s.length;++A){var b=s[A];(b.from<g&&b.to>l||l==g&&b.to==l)&&(d(Math.max(b.from,l),Math.min(b.to,g),b.level==1?"rtl":"ltr",A),v=!0)}v||d(l,g,"ltr")}var ti=null;function bt(s,l,g){var d;ti=null;for(var v=0;v<s.length;++v){var A=s[v];if(A.from<l&&A.to>l)return v;A.to==l&&(A.from!=A.to&&g=="before"?d=v:ti=v),A.from==l&&(A.from!=A.to&&g!="before"?d=v:ti=v)}return d??ti}var ii=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(U){return U<=247?s.charAt(U):1424<=U&&U<=1524?"R":1536<=U&&U<=1785?l.charAt(U-1536):1774<=U&&U<=2220?"r":8192<=U&&U<=8203?"w":U==8204?"b":"L"}var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,A=/[LRr]/,b=/[Lb1n]/,y=/[1n]/;function w(U,k,J){this.level=U,this.from=k,this.to=J}return function(U,k){var J=k=="ltr"?"L":"R";if(U.length==0||k=="ltr"&&!d.test(U))return!1;for(var re=U.length,ee=[],oe=0;oe<re;++oe)ee.push(g(U.charCodeAt(oe)));for(var ce=0,de=J;ce<re;++ce){var ve=ee[ce];ve=="m"?ee[ce]=de:de=ve}for(var Ce=0,xe=J;Ce<re;++Ce){var be=ee[Ce];be=="1"&&xe=="r"?ee[Ce]="n":A.test(be)&&(xe=be,be=="r"&&(ee[Ce]="R"))}for(var Ze=1,De=ee[0];Ze<re-1;++Ze){var Ke=ee[Ze];Ke=="+"&&De=="1"&&ee[Ze+1]=="1"?ee[Ze]="1":Ke==","&&De==ee[Ze+1]&&(De=="1"||De=="n")&&(ee[Ze]=De),De=Ke}for(var vr=0;vr<re;++vr){var st=ee[vr];if(st==",")ee[vr]="N";else if(st=="%"){var Lr=void 0;for(Lr=vr+1;Lr<re&&ee[Lr]=="%";++Lr);for(var _t=vr&&ee[vr-1]=="!"||Lr<re&&ee[Lr]=="1"?"1":"N",Vt=vr;Vt<Lr;++Vt)ee[Vt]=_t;vr=Lr-1}}for(var _r=0,Dt=J;_r<re;++_r){var lt=ee[_r];Dt=="L"&&lt=="1"?ee[_r]="L":A.test(lt)&&(Dt=lt)}for(var jr=0;jr<re;++jr)if(v.test(ee[jr])){var Hr=void 0;for(Hr=jr+1;Hr<re&&v.test(ee[Hr]);++Hr);for(var Fr=(jr?ee[jr-1]:J)=="L",Mt=(Hr<re?ee[Hr]:J)=="L",Vn=Fr==Mt?Fr?"L":"R":J,vs=jr;vs<Hr;++vs)ee[vs]=Vn;jr=Hr-1}for(var Ct=[],Li,nt=0;nt<re;)if(b.test(ee[nt])){var cl=nt;for(++nt;nt<re&&b.test(ee[nt]);++nt);Ct.push(new w(0,cl,nt))}else{var Xi=nt,ks=Ct.length,Qs=k=="rtl"?1:0;for(++nt;nt<re&&ee[nt]!="L";++nt);for(var Rt=Xi;Rt<nt;)if(y.test(ee[Rt])){Xi<Rt&&(Ct.splice(ks,0,new w(1,Xi,Rt)),ks+=Qs);var Dn=Rt;for(++Rt;Rt<nt&&y.test(ee[Rt]);++Rt);Ct.splice(ks,0,new w(2,Dn,Rt)),ks+=Qs,Xi=Rt}else++Rt;Xi<nt&&Ct.splice(ks,0,new w(1,Xi,nt))}return k=="ltr"&&(Ct[0].level==1&&(Li=U.match(/^\s+/))&&(Ct[0].from=Li[0].length,Ct.unshift(new w(0,0,Li[0].length))),Ae(Ct).level==1&&(Li=U.match(/\s+$/))&&(Ae(Ct).to-=Li[0].length,Ct.push(new w(0,re-Li[0].length,re)))),k=="rtl"?Ct.reverse():Ct}}();function Tr(s,l){var g=s.order;return g==null&&(g=s.order=ii(s.text,l)),g}var Ut=[],Ge=function(s,l,g){if(s.addEventListener)s.addEventListener(l,g,!1);else if(s.attachEvent)s.attachEvent("on"+l,g);else{var d=s._handlers||(s._handlers={});d[l]=(d[l]||Ut).concat(g)}};function ni(s,l){return s._handlers&&s._handlers[l]||Ut}function kr(s,l,g){if(s.removeEventListener)s.removeEventListener(l,g,!1);else if(s.detachEvent)s.detachEvent("on"+l,g);else{var d=s._handlers,v=d&&d[l];if(v){var A=hr(v,g);A>-1&&(d[l]=v.slice(0,A).concat(v.slice(A+1)))}}}function ar(s,l){var g=ni(s,l);if(g.length)for(var d=Array.prototype.slice.call(arguments,2),v=0;v<g.length;++v)g[v].apply(null,d)}function dr(s,l,g){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),ar(s,g||l.type,s,l),mi(l)||l.codemirrorIgnore}function ts(s){var l=s._handlers&&s._handlers.cursorActivity;if(l)for(var g=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),d=0;d<l.length;++d)hr(g,l[d])==-1&&g.push(l[d])}function tr(s,l){return ni(s,l).length>0}function is(s){s.prototype.on=function(l,g){Ge(this,l,g)},s.prototype.off=function(l,g){kr(this,l,g)}}function ht(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function Dr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function mi(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function bs(s){ht(s),Dr(s)}function rn(s){return s.target||s.srcElement}function tn(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),q&&s.ctrlKey&&l==1&&(l=3),l}var Bo=function(){if(O&&D<9)return!1;var s=me("div");return"draggable"in s||"dragDrop"in s}(),sn;function ya(s){if(sn==null){var l=me("span","\u200B");Je(s,me("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(sn=l.offsetWidth<=1&&l.offsetHeight>2&&!(O&&D<8))}var g=sn?me("span","\u200B"):me("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Zt;function Gi(s){if(Zt!=null)return Zt;var l=Je(s,document.createTextNode("A\u062EA")),g=Cr(l,0,1).getBoundingClientRect(),d=Cr(l,1,2).getBoundingClientRect();return Ve(s),!g||g.left==g.right?!1:Zt=d.right-g.right<3}var nn=`
1
+ "use strict";var Yasqe=(()=>{var rA=Object.create;var Gh=Object.defineProperty;var tA=Object.getOwnPropertyDescriptor;var iA=Object.getOwnPropertyNames;var sA=Object.getPrototypeOf,nA=Object.prototype.hasOwnProperty;var br=(i,m)=>()=>(m||i((m={exports:{}}).exports,m),m.exports),_m=(i,m)=>{for(var e in m)Gh(i,e,{get:m[e],enumerable:!0})},Jm=(i,m,e,N)=>{if(m&&typeof m=="object"||typeof m=="function")for(let R of iA(m))!nA.call(i,R)&&R!==e&&Gh(i,R,{get:()=>m[R],enumerable:!(N=tA(m,R))||N.enumerable});return i};var Yt=(i,m,e)=>(e=i!=null?rA(sA(i)):{},Jm(m||!i||!i.__esModule?Gh(e,"default",{value:i,enumerable:!0}):e,i)),oA=i=>Jm(Gh({},"__esModule",{value:!0}),i);var si=br((HE,YE)=>{(function(i,m){typeof HE=="object"&&typeof YE<"u"?YE.exports=m():typeof define=="function"&&define.amd?define(m):(i=i||self,i.CodeMirror=m())})(HE,function(){"use strict";var i=navigator.userAgent,m=navigator.platform,e=/gecko\/\d/i.test(i),N=/MSIE \d/.test(i),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),L=/Edge\/(\d+)/.exec(i),G=N||R||L,W=G&&(N?document.documentMode||6:+(L||R)[1]),D=!L&&/WebKit\//.test(i),H=D&&/Qt\/\d+\.\d+/.test(i),k=!L&&/Chrome\/(\d+)/.exec(i),Z=k&&+k[1],$=/Opera\//.test(i),M=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),J=/PhantomJS/.test(i),B=M&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),V=/Android/.test(i),Y=B||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),q=B||/Mac/.test(m),te=/\bCrOS\b/.test(i),ie=/win/i.test(m),ae=$&&i.match(/Version\/(\d*\.\d*)/);ae&&(ae=Number(ae[1])),ae&&ae>=15&&($=!1,D=!0);var ge=q&&(H||$&&(ae==null||ae<12.11)),ke=e||G&&W>=9;function ve(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Te=function(s,l){var g=s.className,d=ve(l).exec(g);if(d){var v=g.slice(d.index+d[0].length);s.className=g.slice(0,d.index)+(v?d[1]+v:"")}};function Le(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Qe(s,l){return Le(s).appendChild(l)}function me(s,l,g,d){var v=document.createElement(s);if(g&&(v.className=g),d&&(v.style.cssText=d),typeof l=="string")v.appendChild(document.createTextNode(l));else if(l)for(var A=0;A<l.length;++A)v.appendChild(l[A]);return v}function ar(s,l,g,d){var v=me(s,l,g,d);return v.setAttribute("role","presentation"),v}var Ir;document.createRange?Ir=function(s,l,g,d){var v=document.createRange();return v.setEnd(d||s,g),v.setStart(s,l),v}:Ir=function(s,l,g){var d=document.body.createTextRange();try{d.moveToElementText(s.parentNode)}catch{return d}return d.collapse(!0),d.moveEnd("character",g),d.moveStart("character",l),d};function cr(s,l){if(l.nodeType==3&&(l=l.parentNode),s.contains)return s.contains(l);do if(l.nodeType==11&&(l=l.host),l==s)return!0;while(l=l.parentNode)}function $r(s){var l=s.ownerDocument||s,g;try{g=s.activeElement}catch{g=l.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function je(s,l){var g=s.className;ve(l).test(g)||(s.className+=(g?" ":"")+l)}function St(s,l){for(var g=s.split(" "),d=0;d<g.length;d++)g[d]&&!ve(g[d]).test(l)&&(l+=" "+g[d]);return l}var Lt=function(s){s.select()};B?Lt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:G&&(Lt=function(s){try{s.select()}catch{}});function dr(s){return s.display.wrapper.ownerDocument}function wt(s){return lr(s.display.wrapper)}function lr(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function ut(s){return dr(s).defaultView}function qe(s){var l=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,l)}}function zr(s,l,g){l||(l={});for(var d in s)s.hasOwnProperty(d)&&(g!==!1||!l.hasOwnProperty(d))&&(l[d]=s[d]);return l}function Ar(s,l,g,d,v){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var A=d||0,b=v||0;;){var y=s.indexOf(" ",A);if(y<0||y>=l)return b+(l-A);b+=y-A,b+=g-b%g,A=y+1}}var Qr=function(){this.id=null,this.f=null,this.time=0,this.handler=qe(this.onTimeout,this)};Qr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Qr.prototype.set=function(s,l){this.f=l;var g=+new Date+s;(!this.id||g<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=g)};function gr(s,l){for(var g=0;g<s.length;++g)if(s[g]==l)return g;return-1}var Kt=50,Ge={toString:function(){return"CodeMirror.Pass"}},ce={scroll:!1},vr={origin:"*mouse"},pr={origin:"+move"};function we(s,l,g){for(var d=0,v=0;;){var A=s.indexOf(" ",d);A==-1&&(A=s.length);var b=A-d;if(A==s.length||v+b>=l)return d+Math.min(b,l-v);if(v+=A-d,v+=g-v%g,d=A+1,v>=l)return d}}var Or=[""];function ei(s){for(;Or.length<=s;)Or.push(Ne(Or)+" ");return Or[s]}function Ne(s){return s[s.length-1]}function Ut(s,l){for(var g=[],d=0;d<s.length;d++)g[d]=l(s[d],d);return g}function ft(s,l,g){for(var d=0,v=g(l);d<s.length&&g(s[d])<=v;)d++;s.splice(d,0,l)}function Nt(){}function rs(s,l){var g;return Object.create?g=Object.create(s):(Nt.prototype=s,g=new Nt),l&&zr(l,g),g}var We=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ct(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||We.test(s))}function Ue(s,l){return l?l.source.indexOf("\\w")>-1&&ct(s)?!0:l.test(s):ct(s)}function tr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var at=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function pt(s){return s.charCodeAt(0)>=768&&at.test(s)}function Nr(s,l,g){for(;(g<0?l>0:l<s.length)&&pt(s.charAt(l));)l+=g;return l}function ri(s,l,g){for(var d=l>g?-1:1;;){if(l==g)return l;var v=(l+g)/2,A=d<0?Math.ceil(v):Math.floor(v);if(A==l)return s(A)?l:g;s(A)?g=A:l=A+d}}function Gi(s,l,g,d){if(!s)return d(l,g,"ltr",0);for(var v=!1,A=0;A<s.length;++A){var b=s[A];(b.from<g&&b.to>l||l==g&&b.to==l)&&(d(Math.max(b.from,l),Math.min(b.to,g),b.level==1?"rtl":"ltr",A),v=!0)}v||d(l,g,"ltr")}var ti=null;function bt(s,l,g){var d;ti=null;for(var v=0;v<s.length;++v){var A=s[v];if(A.from<l&&A.to>l)return v;A.to==l&&(A.from!=A.to&&g=="before"?d=v:ti=v),A.from==l&&(A.from!=A.to&&g!="before"?d=v:ti=v)}return d??ti}var ii=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(U){return U<=247?s.charAt(U):1424<=U&&U<=1524?"R":1536<=U&&U<=1785?l.charAt(U-1536):1774<=U&&U<=2220?"r":8192<=U&&U<=8203?"w":U==8204?"b":"L"}var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,A=/[LRr]/,b=/[Lb1n]/,y=/[1n]/;function w(U,P,_){this.level=U,this.from=P,this.to=_}return function(U,P){var _=P=="ltr"?"L":"R";if(U.length==0||P=="ltr"&&!d.test(U))return!1;for(var re=U.length,ee=[],oe=0;oe<re;++oe)ee.push(g(U.charCodeAt(oe)));for(var fe=0,he=_;fe<re;++fe){var xe=ee[fe];xe=="m"?ee[fe]=he:he=xe}for(var Ie=0,Ce=_;Ie<re;++Ie){var Re=ee[Ie];Re=="1"&&Ce=="r"?ee[Ie]="n":A.test(Re)&&(Ce=Re,Re=="r"&&(ee[Ie]="R"))}for(var Ze=1,Ve=ee[0];Ze<re-1;++Ze){var er=ee[Ze];er=="+"&&Ve=="1"&&ee[Ze+1]=="1"?ee[Ze]="1":er==","&&Ve==ee[Ze+1]&&(Ve=="1"||Ve=="n")&&(ee[Ze]=Ve),Ve=er}for(var Cr=0;Cr<re;++Cr){var st=ee[Cr];if(st==",")ee[Cr]="N";else if(st=="%"){var Lr=void 0;for(Lr=Cr+1;Lr<re&&ee[Lr]=="%";++Lr);for(var Xt=Cr&&ee[Cr-1]=="!"||Lr<re&&ee[Lr]=="1"?"1":"N",Vt=Cr;Vt<Lr;++Vt)ee[Vt]=Xt;Cr=Lr-1}}for(var Xr=0,Wt=_;Xr<re;++Xr){var lt=ee[Xr];Wt=="L"&&lt=="1"?ee[Xr]="L":A.test(lt)&&(Wt=lt)}for(var jr=0;jr<re;++jr)if(v.test(ee[jr])){var Hr=void 0;for(Hr=jr+1;Hr<re&&v.test(ee[Hr]);++Hr);for(var Gr=(jr?ee[jr-1]:_)=="L",Dt=(Hr<re?ee[Hr]:_)=="L",Vn=Gr==Dt?Gr?"L":"R":_,vs=jr;vs<Hr;++vs)ee[vs]=Vn;jr=Hr-1}for(var Ct=[],Li,nt=0;nt<re;)if(b.test(ee[nt])){var cl=nt;for(++nt;nt<re&&b.test(ee[nt]);++nt);Ct.push(new w(0,cl,nt))}else{var Yi=nt,Ps=Ct.length,ks=P=="rtl"?1:0;for(++nt;nt<re&&ee[nt]!="L";++nt);for(var Rt=Yi;Rt<nt;)if(y.test(ee[Rt])){Yi<Rt&&(Ct.splice(Ps,0,new w(1,Yi,Rt)),Ps+=ks);var Wn=Rt;for(++Rt;Rt<nt&&y.test(ee[Rt]);++Rt);Ct.splice(Ps,0,new w(2,Wn,Rt)),Ps+=ks,Yi=Rt}else++Rt;Yi<nt&&Ct.splice(Ps,0,new w(1,Yi,nt))}return P=="ltr"&&(Ct[0].level==1&&(Li=U.match(/^\s+/))&&(Ct[0].from=Li[0].length,Ct.unshift(new w(0,0,Li[0].length))),Ne(Ct).level==1&&(Li=U.match(/\s+$/))&&(Ne(Ct).to-=Li[0].length,Ct.push(new w(0,re-Li[0].length,re)))),P=="rtl"?Ct.reverse():Ct}}();function Tr(s,l){var g=s.order;return g==null&&(g=s.order=ii(s.text,l)),g}var Ot=[],Fe=function(s,l,g){if(s.addEventListener)s.addEventListener(l,g,!1);else if(s.attachEvent)s.attachEvent("on"+l,g);else{var d=s._handlers||(s._handlers={});d[l]=(d[l]||Ot).concat(g)}};function ni(s,l){return s._handlers&&s._handlers[l]||Ot}function Pr(s,l,g){if(s.removeEventListener)s.removeEventListener(l,g,!1);else if(s.detachEvent)s.detachEvent("on"+l,g);else{var d=s._handlers,v=d&&d[l];if(v){var A=gr(v,g);A>-1&&(d[l]=v.slice(0,A).concat(v.slice(A+1)))}}}function ur(s,l){var g=ni(s,l);if(g.length)for(var d=Array.prototype.slice.call(arguments,2),v=0;v<g.length;++v)g[v].apply(null,d)}function Er(s,l,g){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),ur(s,g||l.type,s,l),mi(l)||l.codemirrorIgnore}function ts(s){var l=s._handlers&&s._handlers.cursorActivity;if(l)for(var g=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),d=0;d<l.length;++d)gr(g,l[d])==-1&&g.push(l[d])}function ir(s,l){return ni(s,l).length>0}function is(s){s.prototype.on=function(l,g){Fe(this,l,g)},s.prototype.off=function(l,g){Pr(this,l,g)}}function ht(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function Wr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function mi(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function bs(s){ht(s),Wr(s)}function rn(s){return s.target||s.srcElement}function tn(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),q&&s.ctrlKey&&l==1&&(l=3),l}var Bo=function(){if(G&&W<9)return!1;var s=me("div");return"draggable"in s||"dragDrop"in s}(),sn;function ya(s){if(sn==null){var l=me("span","\u200B");Qe(s,me("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(sn=l.offsetWidth<=1&&l.offsetHeight>2&&!(G&&W<8))}var g=sn?me("span","\u200B"):me("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Zt;function Fi(s){if(Zt!=null)return Zt;var l=Qe(s,document.createTextNode("A\u062EA")),g=Ir(l,0,1).getBoundingClientRect(),d=Ir(l,1,2).getBoundingClientRect();return Le(s),!g||g.left==g.right?!1:Zt=d.right-g.right<3}var nn=`
2
2
 
3
3
  b`.split(/\n/).length!=3?function(s){for(var l=0,g=[],d=s.length;l<=d;){var v=s.indexOf(`
4
- `,l);v==-1&&(v=s.length);var A=s.slice(l,s.charAt(v-1)=="\r"?v-1:v),b=A.indexOf("\r");b!=-1?(g.push(A.slice(0,b)),l+=b+1):(g.push(A),l=v+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Vo=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var l;try{l=s.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=s?!1:l.compareEndPoints("StartToEnd",l)!=0},kn=function(){var s=me("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),on=null;function oi(s){if(on!=null)return on;var l=Je(s,me("span","x")),g=l.getBoundingClientRect(),d=Cr(l,0,1).getBoundingClientRect();return on=Math.abs(g.left-d.left)>1}var an={},Bi={};function Do(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),an[s]=l}function Mo(s,l){Bi[s]=l}function ln(s){if(typeof s=="string"&&Bi.hasOwnProperty(s))s=Bi[s];else if(s&&typeof s.name=="string"&&Bi.hasOwnProperty(s.name)){var l=Bi[s.name];typeof l=="string"&&(l={name:l}),s=rs(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return ln("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return ln("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function We(s,l){l=ln(l);var g=an[l.name];if(!g)return We(s,"text/plain");var d=g(s,l);if(K.hasOwnProperty(l.name)){var v=K[l.name];for(var A in v)v.hasOwnProperty(A)&&(d.hasOwnProperty(A)&&(d["_"+A]=d[A]),d[A]=v[A])}if(d.name=l.name,l.helperType&&(d.helperType=l.helperType),l.modeProps)for(var b in l.modeProps)d[b]=l.modeProps[b];return d}var K={};function Ee(s,l){var g=K.hasOwnProperty(s)?K[s]:K[s]={};zr(l,g)}function Se(s,l){if(l===!0)return l;if(s.copyState)return s.copyState(l);var g={};for(var d in l){var v=l[d];v instanceof Array&&(v=v.concat([])),g[d]=v}return g}function mr(s,l){for(var g;s.innerMode&&(g=s.innerMode(l),!(!g||g.mode==s));)l=g.state,s=g.mode;return g||{mode:s,state:l}}function et(s,l,g){return s.startState?s.startState(l,g):!0}var qe=function(s,l,g){this.pos=this.start=0,this.string=s,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=g};qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qe.prototype.eat=function(s){var l=this.string.charAt(this.pos),g;if(typeof s=="string"?g=l==s:g=l&&(s.test?s.test(l):s(l)),g)return++this.pos,l},qe.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},qe.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},qe.prototype.backUp=function(s){this.pos-=s},qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ir(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ir(this.string,this.lineStart,this.tabSize):0)},qe.prototype.indentation=function(){return Ir(this.string,null,this.tabSize)-(this.lineStart?Ir(this.string,this.lineStart,this.tabSize):0)},qe.prototype.match=function(s,l,g){if(typeof s=="string"){var d=function(b){return g?b.toLowerCase():b},v=this.string.substr(this.pos,s.length);if(d(v)==d(s))return l!==!1&&(this.pos+=s.length),!0}else{var A=this.string.slice(this.pos).match(s);return A&&A.index>0?null:(A&&l!==!1&&(this.pos+=A[0].length),A)}},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},qe.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},qe.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function Ie(s,l){if(l-=s.first,l<0||l>=s.size)throw new Error("There is no line "+(l+s.first)+" in the document.");for(var g=s;!g.lines;)for(var d=0;;++d){var v=g.children[d],A=v.chunkSize();if(l<A){g=v;break}l-=A}return g.lines[l]}function dt(s,l,g){var d=[],v=l.line;return s.iter(l.line,g.line+1,function(A){var b=A.text;v==g.line&&(b=b.slice(0,g.ch)),v==l.line&&(b=b.slice(l.ch)),d.push(b),++v}),d}function vi(s,l,g){var d=[];return s.iter(l,g,function(v){d.push(v.text)}),d}function Pt(s,l){var g=l-s.height;if(g)for(var d=s;d;d=d.parent)d.height+=g}function _e(s){if(s.parent==null)return null;for(var l=s.parent,g=hr(l.lines,s),d=l.parent;d;l=d,d=d.parent)for(var v=0;d.children[v]!=l;++v)g+=d.children[v].chunkSize();return g+l.first}function xi(s,l){var g=s.first;e:do{for(var d=0;d<s.children.length;++d){var v=s.children[d],A=v.height;if(l<A){s=v;continue e}l-=A,g+=v.chunkSize()}return g}while(!s.lines);for(var b=0;b<s.lines.length;++b){var y=s.lines[b],w=y.height;if(l<w)break;l-=w}return g+b}function ss(s,l){return l>=s.first&&l<s.first+s.size}function Sa(s,l){return String(s.lineNumberFormatter(l+s.firstLineNumber))}function he(s,l,g){if(g===void 0&&(g=null),!(this instanceof he))return new he(s,l,g);this.line=s,this.ch=l,this.sticky=g}function Xe(s,l){return s.line-l.line||s.ch-l.ch}function La(s,l){return s.sticky==l.sticky&&Xe(s,l)==0}function wa(s){return he(s.line,s.ch)}function Wo(s,l){return Xe(s,l)<0?l:s}function Zo(s,l){return Xe(s,l)<0?s:l}function eu(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function Ye(s,l){if(l.line<s.first)return he(s.first,0);var g=s.first+s.size-1;return l.line>g?he(g,Ie(s,g).text.length):jf(l,Ie(s,l.line).text.length)}function jf(s,l){var g=s.ch;return g==null||g>l?he(s.line,l):g<0?he(s.line,0):s}function ru(s,l){for(var g=[],d=0;d<l.length;d++)g[d]=Ye(s,l[d]);return g}var Po=function(s,l){this.state=s,this.lookAhead=l},Ci=function(s,l,g,d){this.state=l,this.doc=s,this.line=g,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1};Ci.prototype.lookAhead=function(s){var l=this.doc.getLine(this.line+s);return l!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),l},Ci.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Ci.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ci.fromSaved=function(s,l,g){return l instanceof Po?new Ci(s,Se(s.mode,l.state),g,l.lookAhead):new Ci(s,Se(s.mode,l),g)},Ci.prototype.save=function(s){var l=s!==!1?Se(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Po(l,this.maxLookAhead):l};function tu(s,l,g,d){var v=[s.state.modeGen],A={};lu(s,l.text,s.doc.mode,g,function(U,k){return v.push(U,k)},A,d);for(var b=g.state,y=function(U){g.baseTokens=v;var k=s.state.overlays[U],J=1,re=0;g.state=!0,lu(s,l.text,k.mode,g,function(ee,oe){for(var ce=J;re<ee;){var de=v[J];de>ee&&v.splice(J,1,ee,v[J+1],de),J+=2,re=Math.min(ee,de)}if(oe)if(k.opaque)v.splice(ce,J-ce,ee,"overlay "+oe),J=ce+2;else for(;ce<J;ce+=2){var ve=v[ce+1];v[ce+1]=(ve?ve+" ":"")+"overlay "+oe}},A),g.state=b,g.baseTokens=null,g.baseTokenPos=1},w=0;w<s.state.overlays.length;++w)y(w);return{styles:v,classes:A.bgClass||A.textClass?A:null}}function iu(s,l,g){if(!l.styles||l.styles[0]!=s.state.modeGen){var d=Qn(s,_e(l)),v=l.text.length>s.options.maxHighlightLength&&Se(s.doc.mode,d.state),A=tu(s,l,d);v&&(d.state=v),l.stateAfter=d.save(!v),l.styles=A.styles,A.classes?l.styleClasses=A.classes:l.styleClasses&&(l.styleClasses=null),g===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return l.styles}function Qn(s,l,g){var d=s.doc,v=s.display;if(!d.mode.startState)return new Ci(d,!0,l);var A=qf(s,l,g),b=A>d.first&&Ie(d,A-1).stateAfter,y=b?Ci.fromSaved(d,b,A):new Ci(d,et(d.mode),A);return d.iter(A,l,function(w){_n(s,w.text,y);var U=y.line;w.stateAfter=U==l-1||U%5==0||U>=v.viewFrom&&U<v.viewTo?y.save():null,y.nextLine()}),g&&(d.modeFrontier=y.line),y}function _n(s,l,g,d){var v=s.doc.mode,A=new qe(l,s.options.tabSize,g);for(A.start=A.pos=d||0,l==""&&su(v,g.state);!A.eol();)Oa(v,A,g.state),A.start=A.pos}function su(s,l){if(s.blankLine)return s.blankLine(l);if(s.innerMode){var g=mr(s,l);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function Oa(s,l,g,d){for(var v=0;v<10;v++){d&&(d[0]=mr(s,g).mode);var A=s.token(l,g);if(l.pos>l.start)return A}throw new Error("Mode "+s.name+" failed to advance stream.")}var nu=function(s,l,g){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=l||null,this.state=g};function ou(s,l,g,d){var v=s.doc,A=v.mode,b;l=Ye(v,l);var y=Ie(v,l.line),w=Qn(s,l.line,g),U=new qe(y.text,s.options.tabSize,w),k;for(d&&(k=[]);(d||U.pos<l.ch)&&!U.eol();)U.start=U.pos,b=Oa(A,U,w.state),d&&k.push(new nu(U,b,Se(v.mode,w.state)));return d?k:new nu(U,b,w.state)}function au(s,l){if(s)for(;;){var g=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!g)break;s=s.slice(0,g.index)+s.slice(g.index+g[0].length);var d=g[1]?"bgClass":"textClass";l[d]==null?l[d]=g[2]:new RegExp("(?:^|\\s)"+g[2]+"(?:$|\\s)").test(l[d])||(l[d]+=" "+g[2])}return s}function lu(s,l,g,d,v,A,b){var y=g.flattenSpans;y==null&&(y=s.options.flattenSpans);var w=0,U=null,k=new qe(l,s.options.tabSize,d),J,re=s.options.addModeClass&&[null];for(l==""&&au(su(g,d.state),A);!k.eol();){if(k.pos>s.options.maxHighlightLength?(y=!1,b&&_n(s,l,d,k.pos),k.pos=l.length,J=null):J=au(Oa(g,k,d.state,re),A),re){var ee=re[0].name;ee&&(J="m-"+(J?ee+" "+J:ee))}if(!y||U!=J){for(;w<k.start;)w=Math.min(k.start,w+5e3),v(w,U);U=J}k.start=k.pos}for(;w<k.pos;){var oe=Math.min(k.pos,w+5e3);v(oe,U),w=oe}}function qf(s,l,g){for(var d,v,A=s.doc,b=g?-1:l-(s.doc.mode.innerMode?1e3:100),y=l;y>b;--y){if(y<=A.first)return A.first;var w=Ie(A,y-1),U=w.stateAfter;if(U&&(!g||y+(U instanceof Po?U.lookAhead:0)<=A.modeFrontier))return y;var k=Ir(w.text,null,s.options.tabSize);(v==null||d>k)&&(v=y-1,d=k)}return v}function Kf(s,l){if(s.modeFrontier=Math.min(s.modeFrontier,l),!(s.highlightFrontier<l-10)){for(var g=s.first,d=l-1;d>g;d--){var v=Ie(s,d).stateAfter;if(v&&(!(v instanceof Po)||d+v.lookAhead<l)){g=d+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var ko=!1,Vi=!1;function ec(){ko=!0}function Yt(){Vi=!0}function un(s,l,g){this.marker=s,this.from=l,this.to=g}function Ts(s,l){if(s)for(var g=0;g<s.length;++g){var d=s[g];if(d.marker==l)return d}}function Ua(s,l){for(var g,d=0;d<s.length;++d)s[d]!=l&&(g||(g=[])).push(s[d]);return g}function Di(s,l,g){var d=g&&window.WeakSet&&(g.markedSpans||(g.markedSpans=new WeakSet));d&&s.markedSpans&&d.has(s.markedSpans)?s.markedSpans.push(l):(s.markedSpans=s.markedSpans?s.markedSpans.concat([l]):[l],d&&d.add(s.markedSpans)),l.marker.attachLine(s)}function Rs(s,l,g){var d;if(s)for(var v=0;v<s.length;++v){var A=s[v],b=A.marker,y=A.from==null||(b.inclusiveLeft?A.from<=l:A.from<l);if(y||A.from==l&&b.type=="bookmark"&&(!g||!A.marker.insertLeft)){var w=A.to==null||(b.inclusiveRight?A.to>=l:A.to>l);(d||(d=[])).push(new un(b,A.from,w?null:A.to))}}return d}function ys(s,l,g){var d;if(s)for(var v=0;v<s.length;++v){var A=s[v],b=A.marker,y=A.to==null||(b.inclusiveRight?A.to>=l:A.to>l);if(y||A.from==l&&b.type=="bookmark"&&(!g||A.marker.insertLeft)){var w=A.from==null||(b.inclusiveLeft?A.from<=l:A.from<l);(d||(d=[])).push(new un(b,w?null:A.from-l,A.to==null?null:A.to-l))}}return d}function Mi(s,l){if(l.full)return null;var g=ss(s,l.from.line)&&Ie(s,l.from.line).markedSpans,d=ss(s,l.to.line)&&Ie(s,l.to.line).markedSpans;if(!g&&!d)return null;var v=l.from.ch,A=l.to.ch,b=Xe(l.from,l.to)==0,y=Rs(g,v,b),w=ys(d,A,b),U=l.text.length==1,k=Ae(l.text).length+(U?v:0);if(y)for(var J=0;J<y.length;++J){var re=y[J];if(re.to==null){var ee=Ts(w,re.marker);ee?U&&(re.to=ee.to==null?null:ee.to+k):re.to=v}}if(w)for(var oe=0;oe<w.length;++oe){var ce=w[oe];if(ce.to!=null&&(ce.to+=k),ce.from==null){var de=Ts(y,ce.marker);de||(ce.from=k,U&&(y||(y=[])).push(ce))}else ce.from+=k,U&&(y||(y=[])).push(ce)}y&&(y=ns(y)),w&&w!=y&&(w=ns(w));var ve=[y];if(!U){var Ce=l.text.length-2,xe;if(Ce>0&&y)for(var be=0;be<y.length;++be)y[be].to==null&&(xe||(xe=[])).push(new un(y[be].marker,null,null));for(var Ze=0;Ze<Ce;++Ze)ve.push(xe);ve.push(w)}return ve}function ns(s){for(var l=0;l<s.length;++l){var g=s[l];g.from!=null&&g.from==g.to&&g.marker.clearWhenEmpty!==!1&&s.splice(l--,1)}return s.length?s:null}function Ss(s,l,g){var d=null;if(s.iter(l.line,g.line+1,function(ee){if(ee.markedSpans)for(var oe=0;oe<ee.markedSpans.length;++oe){var ce=ee.markedSpans[oe].marker;ce.readOnly&&(!d||hr(d,ce)==-1)&&(d||(d=[])).push(ce)}}),!d)return null;for(var v=[{from:l,to:g}],A=0;A<d.length;++A)for(var b=d[A],y=b.find(0),w=0;w<v.length;++w){var U=v[w];if(!(Xe(U.to,y.from)<0||Xe(U.from,y.to)>0)){var k=[w,1],J=Xe(U.from,y.from),re=Xe(U.to,y.to);(J<0||!b.inclusiveLeft&&!J)&&k.push({from:U.from,to:y.from}),(re>0||!b.inclusiveRight&&!re)&&k.push({from:y.to,to:U.to}),v.splice.apply(v,k),w+=k.length-3}}return v}function Qo(s){var l=s.markedSpans;if(l){for(var g=0;g<l.length;++g)l[g].marker.detachLine(s);s.markedSpans=null}}function fn(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function cn(s){return s.inclusiveLeft?-1:0}function pn(s){return s.inclusiveRight?1:0}function Fa(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var d=s.find(),v=l.find(),A=Xe(d.from,v.from)||cn(s)-cn(l);if(A)return-A;var b=Xe(d.to,v.to)||pn(s)-pn(l);return b||l.id-s.id}function uu(s,l){var g=Vi&&s.markedSpans,d;if(g)for(var v=void 0,A=0;A<g.length;++A)v=g[A],v.marker.collapsed&&(l?v.from:v.to)==null&&(!d||Fa(d,v.marker)<0)&&(d=v.marker);return d}function _o(s){return uu(s,!0)}function He(s){return uu(s,!1)}function Ga(s,l){var g=Vi&&s.markedSpans,d;if(g)for(var v=0;v<g.length;++v){var A=g[v];A.marker.collapsed&&(A.from==null||A.from<l)&&(A.to==null||A.to>l)&&(!d||Fa(d,A.marker)<0)&&(d=A.marker)}return d}function os(s,l,g,d,v){var A=Ie(s,l),b=Vi&&A.markedSpans;if(b)for(var y=0;y<b.length;++y){var w=b[y];if(w.marker.collapsed){var U=w.marker.find(0),k=Xe(U.from,g)||cn(w.marker)-cn(v),J=Xe(U.to,d)||pn(w.marker)-pn(v);if(!(k>=0&&J<=0||k<=0&&J>=0)&&(k<=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?Xe(U.to,g)>=0:Xe(U.to,g)>0)||k>=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?Xe(U.from,d)<=0:Xe(U.from,d)<0)))return!0}}}function ai(s){for(var l;l=_o(s);)s=l.find(-1,!0).line;return s}function rc(s){for(var l;l=He(s);)s=l.find(1,!0).line;return s}function Ba(s){for(var l,g;l=He(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function Hn(s,l){var g=Ie(s,l),d=ai(g);return g==d?l:_e(d)}function Ho(s,l){if(l>s.lastLine())return l;var g=Ie(s,l),d;if(!Ii(s,g))return l;for(;d=He(g);)g=d.find(1,!0).line;return _e(g)+1}function Ii(s,l){var g=Vi&&l.markedSpans;if(g){for(var d=void 0,v=0;v<g.length;++v)if(d=g[v],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&Va(s,l,d))return!0}}}function Va(s,l,g){if(g.to==null){var d=g.marker.find(1,!0);return Va(s,d.line,Ts(d.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==l.text.length)return!0;for(var v=void 0,A=0;A<l.markedSpans.length;++A)if(v=l.markedSpans[A],v.marker.collapsed&&!v.marker.widgetNode&&v.from==g.to&&(v.to==null||v.to!=g.from)&&(v.marker.inclusiveLeft||g.marker.inclusiveRight)&&Va(s,l,v))return!0}function Wi(s){s=ai(s);for(var l=0,g=s.parent,d=0;d<g.lines.length;++d){var v=g.lines[d];if(v==s)break;l+=v.height}for(var A=g.parent;A;g=A,A=g.parent)for(var b=0;b<A.children.length;++b){var y=A.children[b];if(y==g)break;l+=y.height}return l}function Xo(s){if(s.height==0)return 0;for(var l=s.text.length,g,d=s;g=_o(d);){var v=g.find(0,!0);d=v.from.line,l+=v.from.ch-v.to.ch}for(d=s;g=He(d);){var A=g.find(0,!0);l-=d.text.length-A.from.ch,d=A.to.line,l+=d.text.length-A.to.ch}return l}function Da(s){var l=s.display,g=s.doc;l.maxLine=Ie(g,g.first),l.maxLineLength=Xo(l.maxLine),l.maxLineChanged=!0,g.iter(function(d){var v=Xo(d);v>l.maxLineLength&&(l.maxLineLength=v,l.maxLine=d)})}var hn=function(s,l,g){this.text=s,fn(this,l),this.height=g?g(this):1};hn.prototype.lineNo=function(){return _e(this)},is(hn);function tc(s,l,g,d){s.text=l,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Qo(s),fn(s,g);var v=d?d(s):1;v!=s.height&&Pt(s,v)}function ic(s){s.parent=null,Qo(s)}var sc={},nc={};function fu(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?nc:sc;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function cu(s,l){var g=xr("span",null,null,Z?"padding-right: .1px":null),d={pre:xr("pre",[g],"CodeMirror-line"),content:g,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};l.measure={};for(var v=0;v<=(l.rest?l.rest.length:0);v++){var A=v?l.rest[v-1]:l.line,b=void 0;d.pos=0,d.addToken=ac,Gi(s.display.measure)&&(b=Tr(A,s.doc.direction))&&(d.addToken=uc(d.addToken,b)),d.map=[];var y=l!=s.display.externalMeasured&&_e(A);fc(A,d,iu(s,A,y)),A.styleClasses&&(A.styleClasses.bgClass&&(d.bgClass=St(A.styleClasses.bgClass,d.bgClass||"")),A.styleClasses.textClass&&(d.textClass=St(A.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(ya(s.display.measure))),v==0?(l.measure.map=d.map,l.measure.cache={}):((l.measure.maps||(l.measure.maps=[])).push(d.map),(l.measure.caches||(l.measure.caches=[])).push({}))}if(Z){var w=d.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return ar(s,"renderLine",s,l.line,d.pre),d.pre.className&&(d.textClass=St(d.pre.className,d.textClass||"")),d}function oc(s){var l=me("span","\u2022","cm-invalidchar");return l.title="\\u"+s.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function ac(s,l,g,d,v,A,b){if(l){var y=s.splitSpaces?lc(l,s.trailingSpace):l,w=s.cm.state.specialChars,U=!1,k;if(!w.test(l))s.col+=l.length,k=document.createTextNode(y),s.map.push(s.pos,s.pos+l.length,k),O&&D<9&&(U=!0),s.pos+=l.length;else{k=document.createDocumentFragment();for(var J=0;;){w.lastIndex=J;var re=w.exec(l),ee=re?re.index-J:l.length-J;if(ee){var oe=document.createTextNode(y.slice(J,J+ee));O&&D<9?k.appendChild(me("span",[oe])):k.appendChild(oe),s.map.push(s.pos,s.pos+ee,oe),s.col+=ee,s.pos+=ee}if(!re)break;J+=ee+1;var ce=void 0;if(re[0]==" "){var de=s.cm.options.tabSize,ve=de-s.col%de;ce=k.appendChild(me("span",ei(ve),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),s.col+=ve}else re[0]=="\r"||re[0]==`
5
- `?(ce=k.appendChild(me("span",re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ce.setAttribute("cm-text",re[0]),s.col+=1):(ce=s.cm.options.specialCharPlaceholder(re[0]),ce.setAttribute("cm-text",re[0]),O&&D<9?k.appendChild(me("span",[ce])):k.appendChild(ce),s.col+=1);s.map.push(s.pos,s.pos+1,ce),s.pos++}}if(s.trailingSpace=y.charCodeAt(l.length-1)==32,g||d||v||U||A||b){var Ce=g||"";d&&(Ce+=d),v&&(Ce+=v);var xe=me("span",[k],Ce,A);if(b)for(var be in b)b.hasOwnProperty(be)&&be!="style"&&be!="class"&&xe.setAttribute(be,b[be]);return s.content.appendChild(xe)}s.content.appendChild(k)}}function lc(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,d="",v=0;v<s.length;v++){var A=s.charAt(v);A==" "&&g&&(v==s.length-1||s.charCodeAt(v+1)==32)&&(A="\xA0"),d+=A,g=A==" "}return d}function uc(s,l){return function(g,d,v,A,b,y,w){v=v?v+" cm-force-border":"cm-force-border";for(var U=g.pos,k=U+d.length;;){for(var J=void 0,re=0;re<l.length&&(J=l[re],!(J.to>U&&J.from<=U));re++);if(J.to>=k)return s(g,d,v,A,b,y,w);s(g,d.slice(0,J.to-U),v,A,null,y,w),A=null,d=d.slice(J.to-U),U=J.to}}}function pu(s,l,g,d){var v=!d&&g.widgetNode;v&&s.map.push(s.pos,s.pos+l,v),!d&&s.cm.display.input.needsContentAttribute&&(v||(v=s.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",g.id)),v&&(s.cm.display.input.setUneditable(v),s.content.appendChild(v)),s.pos+=l,s.trailingSpace=!1}function fc(s,l,g){var d=s.markedSpans,v=s.text,A=0;if(!d){for(var b=1;b<g.length;b+=2)l.addToken(l,v.slice(A,A=g[b]),fu(g[b+1],l.cm.options));return}for(var y=v.length,w=0,U=1,k="",J,re,ee=0,oe,ce,de,ve,Ce;;){if(ee==w){oe=ce=de=re="",Ce=null,ve=null,ee=1/0;for(var xe=[],be=void 0,Ze=0;Ze<d.length;++Ze){var De=d[Ze],Ke=De.marker;if(Ke.type=="bookmark"&&De.from==w&&Ke.widgetNode)xe.push(Ke);else if(De.from<=w&&(De.to==null||De.to>w||Ke.collapsed&&De.to==w&&De.from==w)){if(De.to!=null&&De.to!=w&&ee>De.to&&(ee=De.to,ce=""),Ke.className&&(oe+=" "+Ke.className),Ke.css&&(re=(re?re+";":"")+Ke.css),Ke.startStyle&&De.from==w&&(de+=" "+Ke.startStyle),Ke.endStyle&&De.to==ee&&(be||(be=[])).push(Ke.endStyle,De.to),Ke.title&&((Ce||(Ce={})).title=Ke.title),Ke.attributes)for(var vr in Ke.attributes)(Ce||(Ce={}))[vr]=Ke.attributes[vr];Ke.collapsed&&(!ve||Fa(ve.marker,Ke)<0)&&(ve=De)}else De.from>w&&ee>De.from&&(ee=De.from)}if(be)for(var st=0;st<be.length;st+=2)be[st+1]==ee&&(ce+=" "+be[st]);if(!ve||ve.from==w)for(var Lr=0;Lr<xe.length;++Lr)pu(l,0,xe[Lr]);if(ve&&(ve.from||0)==w){if(pu(l,(ve.to==null?y+1:ve.to)-w,ve.marker,ve.from==null),ve.to==null)return;ve.to==w&&(ve=!1)}}if(w>=y)break;for(var _t=Math.min(y,ee);;){if(k){var Vt=w+k.length;if(!ve){var _r=Vt>_t?k.slice(0,_t-w):k;l.addToken(l,_r,J?J+oe:oe,de,w+_r.length==ee?ce:"",re,Ce)}if(Vt>=_t){k=k.slice(_t-w),w=_t;break}w=Vt,de=""}k=v.slice(A,A=g[U++]),J=fu(g[U++],l.cm.options)}}}function dn(s,l,g){this.line=l,this.rest=Ba(l),this.size=this.rest?_e(Ae(this.rest))-g+1:1,this.node=this.text=null,this.hidden=Ii(s,l)}function as(s,l,g){for(var d=[],v,A=l;A<g;A=v){var b=new dn(s.doc,Ie(s.doc,A),A);v=A+b.size,d.push(b)}return d}var Ai=null;function cc(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function pc(s){var l=s.delayedCallbacks,g=0;do{for(;g<l.length;g++)l[g].call(null);for(var d=0;d<s.ops.length;d++){var v=s.ops[d];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(g<l.length)}function hc(s,l){var g=s.ownsGroup;if(g)try{pc(g)}finally{Ai=null,l(g)}}var Xn=null;function rt(s,l){var g=ni(s,l);if(g.length){var d=Array.prototype.slice.call(arguments,2),v;Ai?v=Ai.delayedCallbacks:Xn?v=Xn:(v=Xn=[],setTimeout(gt,0));for(var A=function(y){v.push(function(){return g[y].apply(null,d)})},b=0;b<g.length;++b)A(b)}}function gt(){var s=Xn;Xn=null;for(var l=0;l<s.length;++l)s[l]()}function hu(s,l,g,d){for(var v=0;v<l.changes.length;v++){var A=l.changes[v];A=="text"?Qr(s,l):A=="gutter"?ls(s,l,g,d):A=="class"?Yn(s,l):A=="widget"&&Ft(s,l,d)}l.changes=null}function le(s){return s.node==s.text&&(s.node=me("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),O&&D<8&&(s.node.style.zIndex=2)),s.node}function Ls(s,l){var g=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),l.background)g?l.background.className=g:(l.background.parentNode.removeChild(l.background),l.background=null);else if(g){var d=le(l);l.background=d.insertBefore(me("div",null,g),d.firstChild),s.display.input.setUneditable(l.background)}}function ue(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):cu(s,l)}function Qr(s,l){var g=l.text.className,d=ue(s,l);l.text==l.node&&(l.node=d.pre),l.text.parentNode.replaceChild(d.pre,l.text),l.text=d.pre,d.bgClass!=l.bgClass||d.textClass!=l.textClass?(l.bgClass=d.bgClass,l.textClass=d.textClass,Yn(s,l)):g&&(l.text.className=g)}function Yn(s,l){Ls(s,l),l.line.wrapClass?le(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var g=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=g||""}function ls(s,l,g,d){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var v=le(l);l.gutterBackground=me("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px; width: "+d.gutterTotalWidth+"px"),s.display.input.setUneditable(l.gutterBackground),v.insertBefore(l.gutterBackground,l.text)}var A=l.line.gutterMarkers;if(s.options.lineNumbers||A){var b=le(l),y=l.gutter=me("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),s.display.input.setUneditable(y),b.insertBefore(y,l.text),l.line.gutterClass&&(y.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!A||!A["CodeMirror-linenumbers"])&&(l.lineNumber=y.appendChild(me("div",Sa(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),A)for(var w=0;w<s.display.gutterSpecs.length;++w){var U=s.display.gutterSpecs[w].className,k=A.hasOwnProperty(U)&&A[U];k&&y.appendChild(me("div",[k],"CodeMirror-gutter-elt","left: "+d.gutterLeft[U]+"px; width: "+d.gutterWidth[U]+"px"))}}}function Ft(s,l,g){l.alignable&&(l.alignable=null);for(var d=Re("CodeMirror-linewidget"),v=l.node.firstChild,A=void 0;v;v=A)A=v.nextSibling,d.test(v.className)&&l.node.removeChild(v);du(s,l,g)}function Gt(s,l,g,d){var v=ue(s,l);return l.text=l.node=v.pre,v.bgClass&&(l.bgClass=v.bgClass),v.textClass&&(l.textClass=v.textClass),Yn(s,l),ls(s,l,g,d),du(s,l,d),l.node}function du(s,l,g){if(gu(s,l.line,l,g,!0),l.rest)for(var d=0;d<l.rest.length;d++)gu(s,l.rest[d],l,g,!1)}function gu(s,l,g,d,v){if(l.widgets)for(var A=le(g),b=0,y=l.widgets;b<y.length;++b){var w=y[b],U=me("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||U.setAttribute("cm-ignore-events","true"),dc(w,U,g,d),s.display.input.setUneditable(U),v&&w.above?A.insertBefore(U,g.gutter||g.text):A.appendChild(U),rt(w,"redraw")}}function dc(s,l,g,d){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var v=d.wrapperWidth;l.style.left=d.fixedPos+"px",s.coverGutter||(v-=d.gutterTotalWidth,l.style.paddingLeft=d.gutterTotalWidth+"px"),l.style.width=v+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-d.gutterTotalWidth+"px"))}function Zi(s){if(s.height!=null)return s.height;var l=s.doc.cm;if(!l)return 0;if(!ur(document.body,s.node)){var g="position: relative;";s.coverGutter&&(g+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),s.noHScroll&&(g+="width: "+l.display.wrapper.clientWidth+"px;"),Je(l.display.measure,me("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Pi(s,l){for(var g=rn(l);g!=s.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==s.sizer&&g!=s.mover)return!0}function gn(s){return s.lineSpace.offsetTop}function Ma(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function Eu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Je(s.measure,me("pre","x","CodeMirror-line-like")),g=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,d={left:parseInt(g.paddingLeft),right:parseInt(g.paddingRight)};return!isNaN(d.left)&&!isNaN(d.right)&&(s.cachedPaddingH=d),d}function Ni(s){return Kt-s.display.nativeBarWidth}function ws(s){return s.display.scroller.clientWidth-Ni(s)-s.display.barWidth}function Wa(s){return s.display.scroller.clientHeight-Ni(s)-s.display.barHeight}function gc(s,l,g){var d=s.options.lineWrapping,v=d&&ws(s);if(!l.measure.heights||d&&l.measure.width!=v){var A=l.measure.heights=[];if(d){l.measure.width=v;for(var b=l.text.firstChild.getClientRects(),y=0;y<b.length-1;y++){var w=b[y],U=b[y+1];Math.abs(w.bottom-U.bottom)>2&&A.push((w.bottom+U.top)/2-g.top)}}A.push(g.bottom-g.top)}}function Yo(s,l,g){if(s.line==l)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var d=0;d<s.rest.length;d++)if(s.rest[d]==l)return{map:s.measure.maps[d],cache:s.measure.caches[d]};for(var v=0;v<s.rest.length;v++)if(_e(s.rest[v])>g)return{map:s.measure.maps[v],cache:s.measure.caches[v],before:!0}}}function Jt(s,l){l=ai(l);var g=_e(l),d=s.display.externalMeasured=new dn(s.doc,l,g);d.lineN=g;var v=d.built=cu(s,d);return d.text=v.pre,Je(s.display.lineMeasure,v.pre),d}function mu(s,l,g,d){return bi(s,En(s,l),g,d)}function Et(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[ki(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function En(s,l){var g=_e(l),d=Et(s,g);d&&!d.text?d=null:d&&d.changes&&(hu(s,d,g,Fs(s)),s.curOp.forceUpdate=!0),d||(d=Jt(s,l));var v=Yo(d,l,g);return{line:l,view:d,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function bi(s,l,g,d,v){l.before&&(g=-1);var A=g+(d||""),b;return l.cache.hasOwnProperty(A)?b=l.cache[A]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(gc(s,l.view,l.rect),l.hasHeights=!0),b=Jn(s,l,g,d),b.bogus||(l.cache[A]=b)),{left:b.left,right:b.right,top:v?b.rtop:b.top,bottom:v?b.rbottom:b.bottom}}var vu={left:0,right:0,top:0,bottom:0};function xu(s,l,g){for(var d,v,A,b,y,w,U=0;U<s.length;U+=3)if(y=s[U],w=s[U+1],l<y?(v=0,A=1,b="left"):l<w?(v=l-y,A=v+1):(U==s.length-3||l==w&&s[U+3]>l)&&(A=w-y,v=A-1,l>=w&&(b="right")),v!=null){if(d=s[U+2],y==w&&g==(d.insertLeft?"left":"right")&&(b=g),g=="left"&&v==0)for(;U&&s[U-2]==s[U-3]&&s[U-1].insertLeft;)d=s[(U-=3)+2],b="left";if(g=="right"&&v==w-y)for(;U<s.length-3&&s[U+3]==s[U+4]&&!s[U+5].insertLeft;)d=s[(U+=3)+2],b="right";break}return{node:d,start:v,end:A,collapse:b,coverStart:y,coverEnd:w}}function Ec(s,l){var g=vu;if(l=="left")for(var d=0;d<s.length&&(g=s[d]).left==g.right;d++);else for(var v=s.length-1;v>=0&&(g=s[v]).left==g.right;v--);return g}function Jn(s,l,g,d){var v=xu(l.map,g,d),A=v.node,b=v.start,y=v.end,w=v.collapse,U;if(A.nodeType==3){for(var k=0;k<4;k++){for(;b&&pt(l.line.text.charAt(v.coverStart+b));)--b;for(;v.coverStart+y<v.coverEnd&&pt(l.line.text.charAt(v.coverStart+y));)++y;if(O&&D<9&&b==0&&y==v.coverEnd-v.coverStart?U=A.parentNode.getBoundingClientRect():U=Ec(Cr(A,b,y).getClientRects(),d),U.left||U.right||b==0)break;y=b,b=b-1,w="right"}O&&D<11&&(U=mc(s.display.measure,U))}else{b>0&&(w=d="right");var J;s.options.lineWrapping&&(J=A.getClientRects()).length>1?U=J[d=="right"?J.length-1:0]:U=A.getBoundingClientRect()}if(O&&D<9&&!b&&(!U||!U.left&&!U.right)){var re=A.parentNode.getClientRects()[0];re?U={left:re.left,right:re.left+fs(s.display),top:re.top,bottom:re.bottom}:U=vu}for(var ee=U.top-l.rect.top,oe=U.bottom-l.rect.top,ce=(ee+oe)/2,de=l.view.measure.heights,ve=0;ve<de.length-1&&!(ce<de[ve]);ve++);var Ce=ve?de[ve-1]:0,xe=de[ve],be={left:(w=="right"?U.right:U.left)-l.rect.left,right:(w=="left"?U.left:U.right)-l.rect.left,top:Ce,bottom:xe};return!U.left&&!U.right&&(be.bogus=!0),s.options.singleCursorHeightPerLine||(be.rtop=ee,be.rbottom=oe),be}function mc(s,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!oi(s))return l;var g=screen.logicalXDPI/screen.deviceXDPI,d=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*g,right:l.right*g,top:l.top*d,bottom:l.bottom*d}}function Cu(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var l=0;l<s.rest.length;l++)s.measure.caches[l]={}}function Jo(s){s.display.externalMeasure=null,Ve(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)Cu(s.display.view[l])}function Os(s){Jo(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function mn(s){return Q&&V?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function Iu(s){return Q&&V?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Za(s){var l=ai(s),g=l.widgets,d=0;if(g)for(var v=0;v<g.length;++v)g[v].above&&(d+=Zi(g[v]));return d}function vn(s,l,g,d,v){if(!v){var A=Za(l);g.top+=A,g.bottom+=A}if(d=="line")return g;d||(d="local");var b=Wi(l);if(d=="local"?b+=gn(s.display):b-=s.display.viewOffset,d=="page"||d=="window"){var y=s.display.lineSpace.getBoundingClientRect();b+=y.top+(d=="window"?0:Iu(pr(s)));var w=y.left+(d=="window"?0:mn(pr(s)));g.left+=w,g.right+=w}return g.top+=b,g.bottom+=b,g}function us(s,l,g){if(g=="div")return l;var d=l.left,v=l.top;if(g=="page")d-=mn(pr(s)),v-=Iu(pr(s));else if(g=="local"||!g){var A=s.display.sizer.getBoundingClientRect();d+=A.left,v+=A.top}var b=s.display.lineSpace.getBoundingClientRect();return{left:d-b.left,top:v-b.top}}function $o(s,l,g,d,v){return d||(d=Ie(s.doc,l.line)),vn(s,d,mu(s,d,l.ch,v),g)}function $e(s,l,g,d,v,A){d=d||Ie(s.doc,l.line),v||(v=En(s,d));function b(oe,ce){var de=bi(s,v,oe,ce?"right":"left",A);return ce?de.left=de.right:de.right=de.left,vn(s,d,de,g)}var y=Tr(d,s.doc.direction),w=l.ch,U=l.sticky;if(w>=d.text.length?(w=d.text.length,U="before"):w<=0&&(w=0,U="after"),!y)return b(U=="before"?w-1:w,U=="before");function k(oe,ce,de){var ve=y[ce],Ce=ve.level==1;return b(de?oe-1:oe,Ce!=de)}var J=bt(y,w,U),re=ti,ee=k(w,J,U=="before");return re!=null&&(ee.other=k(w,re,U!="before")),ee}function Au(s,l){var g=0;l=Ye(s.doc,l),s.options.lineWrapping||(g=fs(s.display)*l.ch);var d=Ie(s.doc,l.line),v=Wi(d)+gn(s.display);return{left:g,right:g,top:v,bottom:v+d.height}}function Pa(s,l,g,d,v){var A=he(s,l,g);return A.xRel=v,d&&(A.outside=d),A}function ka(s,l,g){var d=s.doc;if(g+=s.display.viewOffset,g<0)return Pa(d.first,0,null,-1,-1);var v=xi(d,g),A=d.first+d.size-1;if(v>A)return Pa(d.first+d.size-1,Ie(d,A).text.length,null,1,1);l<0&&(l=0);for(var b=Ie(d,v);;){var y=vc(s,b,v,l,g),w=Ga(b,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var U=w.find(1);if(U.line==v)return U;b=Ie(d,v=U.line)}}function Nu(s,l,g,d){d-=Za(l);var v=l.text.length,A=ri(function(b){return bi(s,g,b-1).bottom<=d},v,0);return v=ri(function(b){return bi(s,g,b).top>d},A,v),{begin:A,end:v}}function bu(s,l,g,d){g||(g=En(s,l));var v=vn(s,l,bi(s,g,d),"line").top;return Nu(s,l,g,v)}function $n(s,l,g,d){return s.bottom<=g?!1:s.top>g?!0:(d?s.left:s.right)>l}function vc(s,l,g,d,v){v-=Wi(l);var A=En(s,l),b=Za(l),y=0,w=l.text.length,U=!0,k=Tr(l,s.doc.direction);if(k){var J=(s.options.lineWrapping?Us:ke)(s,l,g,A,k,d,v);U=J.level!=1,y=U?J.from:J.to-1,w=U?J.to:J.from-1}var re=null,ee=null,oe=ri(function(Ze){var De=bi(s,A,Ze);return De.top+=b,De.bottom+=b,$n(De,d,v,!1)?(De.top<=v&&De.left<=d&&(re=Ze,ee=De),!0):!1},y,w),ce,de,ve=!1;if(ee){var Ce=d-ee.left<ee.right-d,xe=Ce==U;oe=re+(xe?0:1),de=xe?"after":"before",ce=Ce?ee.left:ee.right}else{!U&&(oe==w||oe==y)&&oe++,de=oe==0?"after":oe==l.text.length?"before":bi(s,A,oe-(U?1:0)).bottom+b<=v==U?"after":"before";var be=$e(s,he(g,oe,de),"line",l,A);ce=be.left,ve=v<be.top?-1:v>=be.bottom?1:0}return oe=Nr(l.text,oe,1),Pa(g,oe,de,ve,d-ce)}function ke(s,l,g,d,v,A,b){var y=ri(function(J){var re=v[J],ee=re.level!=1;return $n($e(s,he(g,ee?re.to:re.from,ee?"before":"after"),"line",l,d),A,b,!0)},0,v.length-1),w=v[y];if(y>0){var U=w.level!=1,k=$e(s,he(g,U?w.from:w.to,U?"after":"before"),"line",l,d);$n(k,A,b,!0)&&k.top>b&&(w=v[y-1])}return w}function Us(s,l,g,d,v,A,b){var y=Nu(s,l,d,b),w=y.begin,U=y.end;/\s/.test(l.text.charAt(U-1))&&U--;for(var k=null,J=null,re=0;re<v.length;re++){var ee=v[re];if(!(ee.from>=U||ee.to<=w)){var oe=ee.level!=1,ce=bi(s,d,oe?Math.min(U,ee.to)-1:Math.max(w,ee.from)).right,de=ce<A?A-ce+1e9:ce-A;(!k||J>de)&&(k=ee,J=de)}}return k||(k=v[v.length-1]),k.from<w&&(k={from:w,to:k.to,level:k.level}),k.to>U&&(k={from:k.from,to:U,level:k.level}),k}var $t;function Mr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if($t==null){$t=me("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)$t.appendChild(document.createTextNode("x")),$t.appendChild(me("br"));$t.appendChild(document.createTextNode("x"))}Je(s.measure,$t);var g=$t.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Ve(s.measure),g||1}function fs(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=me("span","xxxxxxxxxx"),g=me("pre",[l],"CodeMirror-line-like");Je(s.measure,g);var d=l.getBoundingClientRect(),v=(d.right-d.left)/10;return v>2&&(s.cachedCharWidth=v),v||10}function Fs(s){for(var l=s.display,g={},d={},v=l.gutters.clientLeft,A=l.gutters.firstChild,b=0;A;A=A.nextSibling,++b){var y=s.display.gutterSpecs[b].className;g[y]=A.offsetLeft+A.clientLeft+v,d[y]=A.clientWidth}return{fixedPos:mt(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:d,wrapperWidth:l.wrapper.clientWidth}}function mt(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function xn(s){var l=Mr(s.display),g=s.options.lineWrapping,d=g&&Math.max(5,s.display.scroller.clientWidth/fs(s.display)-3);return function(v){if(Ii(s.doc,v))return 0;var A=0;if(v.widgets)for(var b=0;b<v.widgets.length;b++)v.widgets[b].height&&(A+=v.widgets[b].height);return g?A+(Math.ceil(v.text.length/d)||1)*l:A+l}}function Gs(s){var l=s.doc,g=xn(s);l.iter(function(d){var v=g(d);v!=d.height&&Pt(d,v)})}function li(s,l,g,d){var v=s.display;if(!g&&rn(l).getAttribute("cm-not-content")=="true")return null;var A,b,y=v.lineSpace.getBoundingClientRect();try{A=l.clientX-y.left,b=l.clientY-y.top}catch{return null}var w=ka(s,A,b),U;if(d&&w.xRel>0&&(U=Ie(s.doc,w.line).text).length==w.ch){var k=Ir(U,U.length,s.options.tabSize)-U.length;w=he(w.line,Math.max(0,Math.round((A-Eu(s.display).left)/fs(s.display))-k))}return w}function ki(s,l){if(l>=s.display.viewTo||(l-=s.display.viewFrom,l<0))return null;for(var g=s.display.view,d=0;d<g.length;d++)if(l-=g[d].size,l<0)return d}function vt(s,l,g,d){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),d||(d=0);var v=s.display;if(d&&g<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>l)&&(v.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=v.viewTo)Vi&&Hn(s.doc,l)<v.viewTo&&Ti(s);else if(g<=v.viewFrom)Vi&&Ho(s.doc,g+d)>v.viewFrom?Ti(s):(v.viewFrom+=d,v.viewTo+=d);else if(l<=v.viewFrom&&g>=v.viewTo)Ti(s);else if(l<=v.viewFrom){var A=cs(s,g,g+d,1);A?(v.view=v.view.slice(A.index),v.viewFrom=A.lineN,v.viewTo+=d):Ti(s)}else if(g>=v.viewTo){var b=cs(s,l,l,-1);b?(v.view=v.view.slice(0,b.index),v.viewTo=b.lineN):Ti(s)}else{var y=cs(s,l,l,-1),w=cs(s,g,g+d,1);y&&w?(v.view=v.view.slice(0,y.index).concat(as(s,y.lineN,w.lineN)).concat(v.view.slice(w.index)),v.viewTo+=d):Ti(s)}var U=v.externalMeasured;U&&(g<U.lineN?U.lineN+=d:l<U.lineN+U.size&&(v.externalMeasured=null))}function kt(s,l,g){s.curOp.viewChanged=!0;var d=s.display,v=s.display.externalMeasured;if(v&&l>=v.lineN&&l<v.lineN+v.size&&(d.externalMeasured=null),!(l<d.viewFrom||l>=d.viewTo)){var A=d.view[ki(s,l)];if(A.node!=null){var b=A.changes||(A.changes=[]);hr(b,g)==-1&&b.push(g)}}}function Ti(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function cs(s,l,g,d){var v=ki(s,l),A,b=s.display.view;if(!Vi||g==s.doc.first+s.doc.size)return{index:v,lineN:g};for(var y=s.display.viewFrom,w=0;w<v;w++)y+=b[w].size;if(y!=l){if(d>0){if(v==b.length-1)return null;A=y+b[v].size-l,v++}else A=y-l;l+=A,g+=A}for(;Hn(s.doc,g)!=g;){if(v==(d<0?0:b.length-1))return null;g+=d*b[v-(d<0?1:0)].size,v+=d}return{index:v,lineN:g}}function zn(s,l,g){var d=s.display,v=d.view;v.length==0||l>=d.viewTo||g<=d.viewFrom?(d.view=as(s,l,g),d.viewFrom=l):(d.viewFrom>l?d.view=as(s,l,d.viewFrom).concat(d.view):d.viewFrom<l&&(d.view=d.view.slice(ki(s,l))),d.viewFrom=l,d.viewTo<g?d.view=d.view.concat(as(s,d.viewTo,g)):d.viewTo>g&&(d.view=d.view.slice(0,ki(s,g)))),d.viewTo=g}function zo(s){for(var l=s.display.view,g=0,d=0;d<l.length;d++){var v=l[d];!v.hidden&&(!v.node||v.changes)&&++g}return g}function Bs(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ps(s,l){l===void 0&&(l=!0);var g=s.doc,d={},v=d.cursors=document.createDocumentFragment(),A=d.selection=document.createDocumentFragment(),b=s.options.$customCursor;b&&(l=!0);for(var y=0;y<g.sel.ranges.length;y++)if(!(!l&&y==g.sel.primIndex)){var w=g.sel.ranges[y];if(!(w.from().line>=s.display.viewTo||w.to().line<s.display.viewFrom)){var U=w.empty();if(b){var k=b(s,w);k&&Vs(s,k,v)}else(U||s.options.showCursorWhenSelecting)&&Vs(s,w.head,v);U||xc(s,w,A)}}return d}function Vs(s,l,g){var d=$e(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),v=g.appendChild(me("div","\xA0","CodeMirror-cursor"));if(v.style.left=d.left+"px",v.style.top=d.top+"px",v.style.height=Math.max(0,d.bottom-d.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var A=$o(s,l,"div",null,null),b=A.right-A.left;v.style.width=(b>0?b:s.defaultCharWidth())+"px"}if(d.other){var y=g.appendChild(me("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=d.other.left+"px",y.style.top=d.other.top+"px",y.style.height=(d.other.bottom-d.other.top)*.85+"px"}}function Wr(s,l){return s.top-l.top||s.left-l.left}function xc(s,l,g){var d=s.display,v=s.doc,A=document.createDocumentFragment(),b=Eu(s.display),y=b.left,w=Math.max(d.sizerWidth,ws(s)-d.sizer.offsetLeft)-b.right,U=v.direction=="ltr";function k(xe,be,Ze,De){be<0&&(be=0),be=Math.round(be),De=Math.round(De),A.appendChild(me("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
6
- top: `+be+"px; width: "+(Ze??w-xe)+`px;
7
- height: `+(De-be)+"px"))}function J(xe,be,Ze){var De=Ie(v,xe),Ke=De.text.length,vr,st;function Lr(_r,Dt){return $o(s,he(xe,_r),"div",De,Dt)}function _t(_r,Dt,lt){var jr=bu(s,De,null,_r),Hr=Dt=="ltr"==(lt=="after")?"left":"right",Fr=lt=="after"?jr.begin:jr.end-(/\s/.test(De.text.charAt(jr.end-1))?2:1);return Lr(Fr,Hr)[Hr]}var Vt=Tr(De,v.direction);return Fi(Vt,be||0,Ze??Ke,function(_r,Dt,lt,jr){var Hr=lt=="ltr",Fr=Lr(_r,Hr?"left":"right"),Mt=Lr(Dt-1,Hr?"right":"left"),Vn=be==null&&_r==0,vs=Ze==null&&Dt==Ke,Ct=jr==0,Li=!Vt||jr==Vt.length-1;if(Mt.top-Fr.top<=3){var nt=(U?Vn:vs)&&Ct,cl=(U?vs:Vn)&&Li,Xi=nt?y:(Hr?Fr:Mt).left,ks=cl?w:(Hr?Mt:Fr).right;k(Xi,Fr.top,ks-Xi,Fr.bottom)}else{var Qs,Rt,Dn,pl;Hr?(Qs=U&&Vn&&Ct?y:Fr.left,Rt=U?w:_t(_r,lt,"before"),Dn=U?y:_t(Dt,lt,"after"),pl=U&&vs&&Li?w:Mt.right):(Qs=U?_t(_r,lt,"before"):y,Rt=!U&&Vn&&Ct?w:Fr.right,Dn=!U&&vs&&Li?y:Mt.left,pl=U?_t(Dt,lt,"after"):w),k(Qs,Fr.top,Rt-Qs,Fr.bottom),Fr.bottom<Mt.top&&k(y,Fr.bottom,null,Mt.top),k(Dn,Mt.top,pl-Dn,Mt.bottom)}(!vr||Wr(Fr,vr)<0)&&(vr=Fr),Wr(Mt,vr)<0&&(vr=Mt),(!st||Wr(Fr,st)<0)&&(st=Fr),Wr(Mt,st)<0&&(st=Mt)}),{start:vr,end:st}}var re=l.from(),ee=l.to();if(re.line==ee.line)J(re.line,re.ch,ee.ch);else{var oe=Ie(v,re.line),ce=Ie(v,ee.line),de=ai(oe)==ai(ce),ve=J(re.line,re.ch,de?oe.text.length+1:null).end,Ce=J(ee.line,de?0:null,ee.ch).start;de&&(ve.top<Ce.top-2?(k(ve.right,ve.top,null,ve.bottom),k(y,Ce.top,Ce.left,Ce.bottom)):k(ve.right,ve.top,Ce.left-ve.right,ve.bottom)),ve.bottom<Ce.top&&k(y,ve.bottom,null,Ce.top)}g.appendChild(A)}function Qa(s){if(s.state.focused){var l=s.display;clearInterval(l.blinker);var g=!0;l.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?l.blinker=setInterval(function(){s.hasFocus()||Cn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Tu(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||Ha(s))}function _a(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&Cn(s))},100)}function Ha(s,l){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(ar(s,"focus",s,l),s.state.focused=!0,ze(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),Z&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),Qa(s))}function Cn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(ar(s,"blur",s,l),s.state.focused=!1,Le(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function jo(s){for(var l=s.display,g=l.lineDiv.offsetTop,d=Math.max(0,l.scroller.getBoundingClientRect().top),v=l.lineDiv.getBoundingClientRect().top,A=0,b=0;b<l.view.length;b++){var y=l.view[b],w=s.options.lineWrapping,U=void 0,k=0;if(!y.hidden){if(v+=y.line.height,O&&D<8){var J=y.node.offsetTop+y.node.offsetHeight;U=J-g,g=J}else{var re=y.node.getBoundingClientRect();U=re.bottom-re.top,!w&&y.text.firstChild&&(k=y.text.firstChild.getBoundingClientRect().right-re.left-1)}var ee=y.line.height-U;if((ee>.005||ee<-.005)&&(v<d&&(A-=ee),Pt(y.line,U),Ru(y.line),y.rest))for(var oe=0;oe<y.rest.length;oe++)Ru(y.rest[oe]);if(k>s.display.sizerWidth){var ce=Math.ceil(k/fs(s.display));ce>s.display.maxLineLength&&(s.display.maxLineLength=ce,s.display.maxLine=y.line,s.display.maxLineChanged=!0)}}}Math.abs(A)>2&&(l.scroller.scrollTop+=A)}function Ru(s){if(s.widgets)for(var l=0;l<s.widgets.length;++l){var g=s.widgets[l],d=g.node.parentNode;d&&(g.height=d.offsetHeight)}}function qo(s,l,g){var d=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;d=Math.floor(d-gn(s));var v=g&&g.bottom!=null?g.bottom:d+s.wrapper.clientHeight,A=xi(l,d),b=xi(l,v);if(g&&g.ensure){var y=g.ensure.from.line,w=g.ensure.to.line;y<A?(A=y,b=xi(l,Wi(Ie(l,y))+s.wrapper.clientHeight)):Math.min(w,l.lastLine())>=b&&(A=xi(l,Wi(Ie(l,w))-s.wrapper.clientHeight),b=w)}return{from:A,to:Math.max(b,A+1)}}function Cc(s,l){if(!dr(s,"scrollCursorIntoView")){var g=s.display,d=g.sizer.getBoundingClientRect(),v=null,A=g.wrapper.ownerDocument;if(l.top+d.top<0?v=!0:l.bottom+d.top>(A.defaultView.innerHeight||A.documentElement.clientHeight)&&(v=!1),v!=null&&!Y){var b=me("div","\u200B",null,`position: absolute;
4
+ `,l);v==-1&&(v=s.length);var A=s.slice(l,s.charAt(v-1)=="\r"?v-1:v),b=A.indexOf("\r");b!=-1?(g.push(A.slice(0,b)),l+=b+1):(g.push(A),l=v+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Vo=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var l;try{l=s.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=s?!1:l.compareEndPoints("StartToEnd",l)!=0},Pn=function(){var s=me("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),on=null;function oi(s){if(on!=null)return on;var l=Qe(s,me("span","x")),g=l.getBoundingClientRect(),d=Ir(l,0,1).getBoundingClientRect();return on=Math.abs(g.left-d.left)>1}var an={},Bi={};function Wo(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),an[s]=l}function Do(s,l){Bi[s]=l}function ln(s){if(typeof s=="string"&&Bi.hasOwnProperty(s))s=Bi[s];else if(s&&typeof s.name=="string"&&Bi.hasOwnProperty(s.name)){var l=Bi[s.name];typeof l=="string"&&(l={name:l}),s=rs(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return ln("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return ln("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function De(s,l){l=ln(l);var g=an[l.name];if(!g)return De(s,"text/plain");var d=g(s,l);if(K.hasOwnProperty(l.name)){var v=K[l.name];for(var A in v)v.hasOwnProperty(A)&&(d.hasOwnProperty(A)&&(d["_"+A]=d[A]),d[A]=v[A])}if(d.name=l.name,l.helperType&&(d.helperType=l.helperType),l.modeProps)for(var b in l.modeProps)d[b]=l.modeProps[b];return d}var K={};function Ee(s,l){var g=K.hasOwnProperty(s)?K[s]:K[s]={};zr(l,g)}function Se(s,l){if(l===!0)return l;if(s.copyState)return s.copyState(l);var g={};for(var d in l){var v=l[d];v instanceof Array&&(v=v.concat([])),g[d]=v}return g}function xr(s,l){for(var g;s.innerMode&&(g=s.innerMode(l),!(!g||g.mode==s));)l=g.state,s=g.mode;return g||{mode:s,state:l}}function et(s,l,g){return s.startState?s.startState(l,g):!0}var Ke=function(s,l,g){this.pos=this.start=0,this.string=s,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=g};Ke.prototype.eol=function(){return this.pos>=this.string.length},Ke.prototype.sol=function(){return this.pos==this.lineStart},Ke.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ke.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ke.prototype.eat=function(s){var l=this.string.charAt(this.pos),g;if(typeof s=="string"?g=l==s:g=l&&(s.test?s.test(l):s(l)),g)return++this.pos,l},Ke.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},Ke.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},Ke.prototype.skipToEnd=function(){this.pos=this.string.length},Ke.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},Ke.prototype.backUp=function(s){this.pos-=s},Ke.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ar(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ar(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.indentation=function(){return Ar(this.string,null,this.tabSize)-(this.lineStart?Ar(this.string,this.lineStart,this.tabSize):0)},Ke.prototype.match=function(s,l,g){if(typeof s=="string"){var d=function(b){return g?b.toLowerCase():b},v=this.string.substr(this.pos,s.length);if(d(v)==d(s))return l!==!1&&(this.pos+=s.length),!0}else{var A=this.string.slice(this.pos).match(s);return A&&A.index>0?null:(A&&l!==!1&&(this.pos+=A[0].length),A)}},Ke.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ke.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},Ke.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},Ke.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function Ae(s,l){if(l-=s.first,l<0||l>=s.size)throw new Error("There is no line "+(l+s.first)+" in the document.");for(var g=s;!g.lines;)for(var d=0;;++d){var v=g.children[d],A=v.chunkSize();if(l<A){g=v;break}l-=A}return g.lines[l]}function dt(s,l,g){var d=[],v=l.line;return s.iter(l.line,g.line+1,function(A){var b=A.text;v==g.line&&(b=b.slice(0,g.ch)),v==l.line&&(b=b.slice(l.ch)),d.push(b),++v}),d}function vi(s,l,g){var d=[];return s.iter(l,g,function(v){d.push(v.text)}),d}function Qt(s,l){var g=l-s.height;if(g)for(var d=s;d;d=d.parent)d.height+=g}function Ye(s){if(s.parent==null)return null;for(var l=s.parent,g=gr(l.lines,s),d=l.parent;d;l=d,d=d.parent)for(var v=0;d.children[v]!=l;++v)g+=d.children[v].chunkSize();return g+l.first}function xi(s,l){var g=s.first;e:do{for(var d=0;d<s.children.length;++d){var v=s.children[d],A=v.height;if(l<A){s=v;continue e}l-=A,g+=v.chunkSize()}return g}while(!s.lines);for(var b=0;b<s.lines.length;++b){var y=s.lines[b],w=y.height;if(l<w)break;l-=w}return g+b}function ss(s,l){return l>=s.first&&l<s.first+s.size}function Sa(s,l){return String(s.lineNumberFormatter(l+s.firstLineNumber))}function pe(s,l,g){if(g===void 0&&(g=null),!(this instanceof pe))return new pe(s,l,g);this.line=s,this.ch=l,this.sticky=g}function Je(s,l){return s.line-l.line||s.ch-l.ch}function La(s,l){return s.sticky==l.sticky&&Je(s,l)==0}function wa(s){return pe(s.line,s.ch)}function Mo(s,l){return Je(s,l)<0?l:s}function Zo(s,l){return Je(s,l)<0?s:l}function eu(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function $e(s,l){if(l.line<s.first)return pe(s.first,0);var g=s.first+s.size-1;return l.line>g?pe(g,Ae(s,g).text.length):qf(l,Ae(s,l.line).text.length)}function qf(s,l){var g=s.ch;return g==null||g>l?pe(s.line,l):g<0?pe(s.line,0):s}function ru(s,l){for(var g=[],d=0;d<l.length;d++)g[d]=$e(s,l[d]);return g}var Qo=function(s,l){this.state=s,this.lookAhead=l},Ci=function(s,l,g,d){this.state=l,this.doc=s,this.line=g,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1};Ci.prototype.lookAhead=function(s){var l=this.doc.getLine(this.line+s);return l!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),l},Ci.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Ci.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ci.fromSaved=function(s,l,g){return l instanceof Qo?new Ci(s,Se(s.mode,l.state),g,l.lookAhead):new Ci(s,Se(s.mode,l),g)},Ci.prototype.save=function(s){var l=s!==!1?Se(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qo(l,this.maxLookAhead):l};function tu(s,l,g,d){var v=[s.state.modeGen],A={};lu(s,l.text,s.doc.mode,g,function(U,P){return v.push(U,P)},A,d);for(var b=g.state,y=function(U){g.baseTokens=v;var P=s.state.overlays[U],_=1,re=0;g.state=!0,lu(s,l.text,P.mode,g,function(ee,oe){for(var fe=_;re<ee;){var he=v[_];he>ee&&v.splice(_,1,ee,v[_+1],he),_+=2,re=Math.min(ee,he)}if(oe)if(P.opaque)v.splice(fe,_-fe,ee,"overlay "+oe),_=fe+2;else for(;fe<_;fe+=2){var xe=v[fe+1];v[fe+1]=(xe?xe+" ":"")+"overlay "+oe}},A),g.state=b,g.baseTokens=null,g.baseTokenPos=1},w=0;w<s.state.overlays.length;++w)y(w);return{styles:v,classes:A.bgClass||A.textClass?A:null}}function iu(s,l,g){if(!l.styles||l.styles[0]!=s.state.modeGen){var d=kn(s,Ye(l)),v=l.text.length>s.options.maxHighlightLength&&Se(s.doc.mode,d.state),A=tu(s,l,d);v&&(d.state=v),l.stateAfter=d.save(!v),l.styles=A.styles,A.classes?l.styleClasses=A.classes:l.styleClasses&&(l.styleClasses=null),g===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return l.styles}function kn(s,l,g){var d=s.doc,v=s.display;if(!d.mode.startState)return new Ci(d,!0,l);var A=Kf(s,l,g),b=A>d.first&&Ae(d,A-1).stateAfter,y=b?Ci.fromSaved(d,b,A):new Ci(d,et(d.mode),A);return d.iter(A,l,function(w){Xn(s,w.text,y);var U=y.line;w.stateAfter=U==l-1||U%5==0||U>=v.viewFrom&&U<v.viewTo?y.save():null,y.nextLine()}),g&&(d.modeFrontier=y.line),y}function Xn(s,l,g,d){var v=s.doc.mode,A=new Ke(l,s.options.tabSize,g);for(A.start=A.pos=d||0,l==""&&su(v,g.state);!A.eol();)Ua(v,A,g.state),A.start=A.pos}function su(s,l){if(s.blankLine)return s.blankLine(l);if(s.innerMode){var g=xr(s,l);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function Ua(s,l,g,d){for(var v=0;v<10;v++){d&&(d[0]=xr(s,g).mode);var A=s.token(l,g);if(l.pos>l.start)return A}throw new Error("Mode "+s.name+" failed to advance stream.")}var nu=function(s,l,g){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=l||null,this.state=g};function ou(s,l,g,d){var v=s.doc,A=v.mode,b;l=$e(v,l);var y=Ae(v,l.line),w=kn(s,l.line,g),U=new Ke(y.text,s.options.tabSize,w),P;for(d&&(P=[]);(d||U.pos<l.ch)&&!U.eol();)U.start=U.pos,b=Ua(A,U,w.state),d&&P.push(new nu(U,b,Se(v.mode,w.state)));return d?P:new nu(U,b,w.state)}function au(s,l){if(s)for(;;){var g=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!g)break;s=s.slice(0,g.index)+s.slice(g.index+g[0].length);var d=g[1]?"bgClass":"textClass";l[d]==null?l[d]=g[2]:new RegExp("(?:^|\\s)"+g[2]+"(?:$|\\s)").test(l[d])||(l[d]+=" "+g[2])}return s}function lu(s,l,g,d,v,A,b){var y=g.flattenSpans;y==null&&(y=s.options.flattenSpans);var w=0,U=null,P=new Ke(l,s.options.tabSize,d),_,re=s.options.addModeClass&&[null];for(l==""&&au(su(g,d.state),A);!P.eol();){if(P.pos>s.options.maxHighlightLength?(y=!1,b&&Xn(s,l,d,P.pos),P.pos=l.length,_=null):_=au(Ua(g,P,d.state,re),A),re){var ee=re[0].name;ee&&(_="m-"+(_?ee+" "+_:ee))}if(!y||U!=_){for(;w<P.start;)w=Math.min(P.start,w+5e3),v(w,U);U=_}P.start=P.pos}for(;w<P.pos;){var oe=Math.min(P.pos,w+5e3);v(oe,U),w=oe}}function Kf(s,l,g){for(var d,v,A=s.doc,b=g?-1:l-(s.doc.mode.innerMode?1e3:100),y=l;y>b;--y){if(y<=A.first)return A.first;var w=Ae(A,y-1),U=w.stateAfter;if(U&&(!g||y+(U instanceof Qo?U.lookAhead:0)<=A.modeFrontier))return y;var P=Ar(w.text,null,s.options.tabSize);(v==null||d>P)&&(v=y-1,d=P)}return v}function ec(s,l){if(s.modeFrontier=Math.min(s.modeFrontier,l),!(s.highlightFrontier<l-10)){for(var g=s.first,d=l-1;d>g;d--){var v=Ae(s,d).stateAfter;if(v&&(!(v instanceof Qo)||d+v.lookAhead<l)){g=d+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var Po=!1,Vi=!1;function rc(){Po=!0}function _t(){Vi=!0}function un(s,l,g){this.marker=s,this.from=l,this.to=g}function Ts(s,l){if(s)for(var g=0;g<s.length;++g){var d=s[g];if(d.marker==l)return d}}function Oa(s,l){for(var g,d=0;d<s.length;++d)s[d]!=l&&(g||(g=[])).push(s[d]);return g}function Wi(s,l,g){var d=g&&window.WeakSet&&(g.markedSpans||(g.markedSpans=new WeakSet));d&&s.markedSpans&&d.has(s.markedSpans)?s.markedSpans.push(l):(s.markedSpans=s.markedSpans?s.markedSpans.concat([l]):[l],d&&d.add(s.markedSpans)),l.marker.attachLine(s)}function Rs(s,l,g){var d;if(s)for(var v=0;v<s.length;++v){var A=s[v],b=A.marker,y=A.from==null||(b.inclusiveLeft?A.from<=l:A.from<l);if(y||A.from==l&&b.type=="bookmark"&&(!g||!A.marker.insertLeft)){var w=A.to==null||(b.inclusiveRight?A.to>=l:A.to>l);(d||(d=[])).push(new un(b,A.from,w?null:A.to))}}return d}function ys(s,l,g){var d;if(s)for(var v=0;v<s.length;++v){var A=s[v],b=A.marker,y=A.to==null||(b.inclusiveRight?A.to>=l:A.to>l);if(y||A.from==l&&b.type=="bookmark"&&(!g||A.marker.insertLeft)){var w=A.from==null||(b.inclusiveLeft?A.from<=l:A.from<l);(d||(d=[])).push(new un(b,w?null:A.from-l,A.to==null?null:A.to-l))}}return d}function Di(s,l){if(l.full)return null;var g=ss(s,l.from.line)&&Ae(s,l.from.line).markedSpans,d=ss(s,l.to.line)&&Ae(s,l.to.line).markedSpans;if(!g&&!d)return null;var v=l.from.ch,A=l.to.ch,b=Je(l.from,l.to)==0,y=Rs(g,v,b),w=ys(d,A,b),U=l.text.length==1,P=Ne(l.text).length+(U?v:0);if(y)for(var _=0;_<y.length;++_){var re=y[_];if(re.to==null){var ee=Ts(w,re.marker);ee?U&&(re.to=ee.to==null?null:ee.to+P):re.to=v}}if(w)for(var oe=0;oe<w.length;++oe){var fe=w[oe];if(fe.to!=null&&(fe.to+=P),fe.from==null){var he=Ts(y,fe.marker);he||(fe.from=P,U&&(y||(y=[])).push(fe))}else fe.from+=P,U&&(y||(y=[])).push(fe)}y&&(y=ns(y)),w&&w!=y&&(w=ns(w));var xe=[y];if(!U){var Ie=l.text.length-2,Ce;if(Ie>0&&y)for(var Re=0;Re<y.length;++Re)y[Re].to==null&&(Ce||(Ce=[])).push(new un(y[Re].marker,null,null));for(var Ze=0;Ze<Ie;++Ze)xe.push(Ce);xe.push(w)}return xe}function ns(s){for(var l=0;l<s.length;++l){var g=s[l];g.from!=null&&g.from==g.to&&g.marker.clearWhenEmpty!==!1&&s.splice(l--,1)}return s.length?s:null}function Ss(s,l,g){var d=null;if(s.iter(l.line,g.line+1,function(ee){if(ee.markedSpans)for(var oe=0;oe<ee.markedSpans.length;++oe){var fe=ee.markedSpans[oe].marker;fe.readOnly&&(!d||gr(d,fe)==-1)&&(d||(d=[])).push(fe)}}),!d)return null;for(var v=[{from:l,to:g}],A=0;A<d.length;++A)for(var b=d[A],y=b.find(0),w=0;w<v.length;++w){var U=v[w];if(!(Je(U.to,y.from)<0||Je(U.from,y.to)>0)){var P=[w,1],_=Je(U.from,y.from),re=Je(U.to,y.to);(_<0||!b.inclusiveLeft&&!_)&&P.push({from:U.from,to:y.from}),(re>0||!b.inclusiveRight&&!re)&&P.push({from:y.to,to:U.to}),v.splice.apply(v,P),w+=P.length-3}}return v}function ko(s){var l=s.markedSpans;if(l){for(var g=0;g<l.length;++g)l[g].marker.detachLine(s);s.markedSpans=null}}function fn(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function cn(s){return s.inclusiveLeft?-1:0}function pn(s){return s.inclusiveRight?1:0}function Ga(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var d=s.find(),v=l.find(),A=Je(d.from,v.from)||cn(s)-cn(l);if(A)return-A;var b=Je(d.to,v.to)||pn(s)-pn(l);return b||l.id-s.id}function uu(s,l){var g=Vi&&s.markedSpans,d;if(g)for(var v=void 0,A=0;A<g.length;++A)v=g[A],v.marker.collapsed&&(l?v.from:v.to)==null&&(!d||Ga(d,v.marker)<0)&&(d=v.marker);return d}function Xo(s){return uu(s,!0)}function _e(s){return uu(s,!1)}function Fa(s,l){var g=Vi&&s.markedSpans,d;if(g)for(var v=0;v<g.length;++v){var A=g[v];A.marker.collapsed&&(A.from==null||A.from<l)&&(A.to==null||A.to>l)&&(!d||Ga(d,A.marker)<0)&&(d=A.marker)}return d}function os(s,l,g,d,v){var A=Ae(s,l),b=Vi&&A.markedSpans;if(b)for(var y=0;y<b.length;++y){var w=b[y];if(w.marker.collapsed){var U=w.marker.find(0),P=Je(U.from,g)||cn(w.marker)-cn(v),_=Je(U.to,d)||pn(w.marker)-pn(v);if(!(P>=0&&_<=0||P<=0&&_>=0)&&(P<=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?Je(U.to,g)>=0:Je(U.to,g)>0)||P>=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?Je(U.from,d)<=0:Je(U.from,d)<0)))return!0}}}function ai(s){for(var l;l=Xo(s);)s=l.find(-1,!0).line;return s}function tc(s){for(var l;l=_e(s);)s=l.find(1,!0).line;return s}function Ba(s){for(var l,g;l=_e(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function Hn(s,l){var g=Ae(s,l),d=ai(g);return g==d?l:Ye(d)}function Ho(s,l){if(l>s.lastLine())return l;var g=Ae(s,l),d;if(!Ii(s,g))return l;for(;d=_e(g);)g=d.find(1,!0).line;return Ye(g)+1}function Ii(s,l){var g=Vi&&l.markedSpans;if(g){for(var d=void 0,v=0;v<g.length;++v)if(d=g[v],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&Va(s,l,d))return!0}}}function Va(s,l,g){if(g.to==null){var d=g.marker.find(1,!0);return Va(s,d.line,Ts(d.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==l.text.length)return!0;for(var v=void 0,A=0;A<l.markedSpans.length;++A)if(v=l.markedSpans[A],v.marker.collapsed&&!v.marker.widgetNode&&v.from==g.to&&(v.to==null||v.to!=g.from)&&(v.marker.inclusiveLeft||g.marker.inclusiveRight)&&Va(s,l,v))return!0}function Mi(s){s=ai(s);for(var l=0,g=s.parent,d=0;d<g.lines.length;++d){var v=g.lines[d];if(v==s)break;l+=v.height}for(var A=g.parent;A;g=A,A=g.parent)for(var b=0;b<A.children.length;++b){var y=A.children[b];if(y==g)break;l+=y.height}return l}function Yo(s){if(s.height==0)return 0;for(var l=s.text.length,g,d=s;g=Xo(d);){var v=g.find(0,!0);d=v.from.line,l+=v.from.ch-v.to.ch}for(d=s;g=_e(d);){var A=g.find(0,!0);l-=d.text.length-A.from.ch,d=A.to.line,l+=d.text.length-A.to.ch}return l}function Wa(s){var l=s.display,g=s.doc;l.maxLine=Ae(g,g.first),l.maxLineLength=Yo(l.maxLine),l.maxLineChanged=!0,g.iter(function(d){var v=Yo(d);v>l.maxLineLength&&(l.maxLineLength=v,l.maxLine=d)})}var hn=function(s,l,g){this.text=s,fn(this,l),this.height=g?g(this):1};hn.prototype.lineNo=function(){return Ye(this)},is(hn);function ic(s,l,g,d){s.text=l,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),ko(s),fn(s,g);var v=d?d(s):1;v!=s.height&&Qt(s,v)}function sc(s){s.parent=null,ko(s)}var nc={},oc={};function fu(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?oc:nc;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function cu(s,l){var g=ar("span",null,null,D?"padding-right: .1px":null),d={pre:ar("pre",[g],"CodeMirror-line"),content:g,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};l.measure={};for(var v=0;v<=(l.rest?l.rest.length:0);v++){var A=v?l.rest[v-1]:l.line,b=void 0;d.pos=0,d.addToken=lc,Fi(s.display.measure)&&(b=Tr(A,s.doc.direction))&&(d.addToken=fc(d.addToken,b)),d.map=[];var y=l!=s.display.externalMeasured&&Ye(A);cc(A,d,iu(s,A,y)),A.styleClasses&&(A.styleClasses.bgClass&&(d.bgClass=St(A.styleClasses.bgClass,d.bgClass||"")),A.styleClasses.textClass&&(d.textClass=St(A.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(ya(s.display.measure))),v==0?(l.measure.map=d.map,l.measure.cache={}):((l.measure.maps||(l.measure.maps=[])).push(d.map),(l.measure.caches||(l.measure.caches=[])).push({}))}if(D){var w=d.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return ur(s,"renderLine",s,l.line,d.pre),d.pre.className&&(d.textClass=St(d.pre.className,d.textClass||"")),d}function ac(s){var l=me("span","\u2022","cm-invalidchar");return l.title="\\u"+s.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function lc(s,l,g,d,v,A,b){if(l){var y=s.splitSpaces?uc(l,s.trailingSpace):l,w=s.cm.state.specialChars,U=!1,P;if(!w.test(l))s.col+=l.length,P=document.createTextNode(y),s.map.push(s.pos,s.pos+l.length,P),G&&W<9&&(U=!0),s.pos+=l.length;else{P=document.createDocumentFragment();for(var _=0;;){w.lastIndex=_;var re=w.exec(l),ee=re?re.index-_:l.length-_;if(ee){var oe=document.createTextNode(y.slice(_,_+ee));G&&W<9?P.appendChild(me("span",[oe])):P.appendChild(oe),s.map.push(s.pos,s.pos+ee,oe),s.col+=ee,s.pos+=ee}if(!re)break;_+=ee+1;var fe=void 0;if(re[0]==" "){var he=s.cm.options.tabSize,xe=he-s.col%he;fe=P.appendChild(me("span",ei(xe),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),s.col+=xe}else re[0]=="\r"||re[0]==`
5
+ `?(fe=P.appendChild(me("span",re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),fe.setAttribute("cm-text",re[0]),s.col+=1):(fe=s.cm.options.specialCharPlaceholder(re[0]),fe.setAttribute("cm-text",re[0]),G&&W<9?P.appendChild(me("span",[fe])):P.appendChild(fe),s.col+=1);s.map.push(s.pos,s.pos+1,fe),s.pos++}}if(s.trailingSpace=y.charCodeAt(l.length-1)==32,g||d||v||U||A||b){var Ie=g||"";d&&(Ie+=d),v&&(Ie+=v);var Ce=me("span",[P],Ie,A);if(b)for(var Re in b)b.hasOwnProperty(Re)&&Re!="style"&&Re!="class"&&Ce.setAttribute(Re,b[Re]);return s.content.appendChild(Ce)}s.content.appendChild(P)}}function uc(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,d="",v=0;v<s.length;v++){var A=s.charAt(v);A==" "&&g&&(v==s.length-1||s.charCodeAt(v+1)==32)&&(A="\xA0"),d+=A,g=A==" "}return d}function fc(s,l){return function(g,d,v,A,b,y,w){v=v?v+" cm-force-border":"cm-force-border";for(var U=g.pos,P=U+d.length;;){for(var _=void 0,re=0;re<l.length&&(_=l[re],!(_.to>U&&_.from<=U));re++);if(_.to>=P)return s(g,d,v,A,b,y,w);s(g,d.slice(0,_.to-U),v,A,null,y,w),A=null,d=d.slice(_.to-U),U=_.to}}}function pu(s,l,g,d){var v=!d&&g.widgetNode;v&&s.map.push(s.pos,s.pos+l,v),!d&&s.cm.display.input.needsContentAttribute&&(v||(v=s.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",g.id)),v&&(s.cm.display.input.setUneditable(v),s.content.appendChild(v)),s.pos+=l,s.trailingSpace=!1}function cc(s,l,g){var d=s.markedSpans,v=s.text,A=0;if(!d){for(var b=1;b<g.length;b+=2)l.addToken(l,v.slice(A,A=g[b]),fu(g[b+1],l.cm.options));return}for(var y=v.length,w=0,U=1,P="",_,re,ee=0,oe,fe,he,xe,Ie;;){if(ee==w){oe=fe=he=re="",Ie=null,xe=null,ee=1/0;for(var Ce=[],Re=void 0,Ze=0;Ze<d.length;++Ze){var Ve=d[Ze],er=Ve.marker;if(er.type=="bookmark"&&Ve.from==w&&er.widgetNode)Ce.push(er);else if(Ve.from<=w&&(Ve.to==null||Ve.to>w||er.collapsed&&Ve.to==w&&Ve.from==w)){if(Ve.to!=null&&Ve.to!=w&&ee>Ve.to&&(ee=Ve.to,fe=""),er.className&&(oe+=" "+er.className),er.css&&(re=(re?re+";":"")+er.css),er.startStyle&&Ve.from==w&&(he+=" "+er.startStyle),er.endStyle&&Ve.to==ee&&(Re||(Re=[])).push(er.endStyle,Ve.to),er.title&&((Ie||(Ie={})).title=er.title),er.attributes)for(var Cr in er.attributes)(Ie||(Ie={}))[Cr]=er.attributes[Cr];er.collapsed&&(!xe||Ga(xe.marker,er)<0)&&(xe=Ve)}else Ve.from>w&&ee>Ve.from&&(ee=Ve.from)}if(Re)for(var st=0;st<Re.length;st+=2)Re[st+1]==ee&&(fe+=" "+Re[st]);if(!xe||xe.from==w)for(var Lr=0;Lr<Ce.length;++Lr)pu(l,0,Ce[Lr]);if(xe&&(xe.from||0)==w){if(pu(l,(xe.to==null?y+1:xe.to)-w,xe.marker,xe.from==null),xe.to==null)return;xe.to==w&&(xe=!1)}}if(w>=y)break;for(var Xt=Math.min(y,ee);;){if(P){var Vt=w+P.length;if(!xe){var Xr=Vt>Xt?P.slice(0,Xt-w):P;l.addToken(l,Xr,_?_+oe:oe,he,w+Xr.length==ee?fe:"",re,Ie)}if(Vt>=Xt){P=P.slice(Xt-w),w=Xt;break}w=Vt,he=""}P=v.slice(A,A=g[U++]),_=fu(g[U++],l.cm.options)}}}function dn(s,l,g){this.line=l,this.rest=Ba(l),this.size=this.rest?Ye(Ne(this.rest))-g+1:1,this.node=this.text=null,this.hidden=Ii(s,l)}function as(s,l,g){for(var d=[],v,A=l;A<g;A=v){var b=new dn(s.doc,Ae(s.doc,A),A);v=A+b.size,d.push(b)}return d}var Ai=null;function pc(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function hc(s){var l=s.delayedCallbacks,g=0;do{for(;g<l.length;g++)l[g].call(null);for(var d=0;d<s.ops.length;d++){var v=s.ops[d];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(g<l.length)}function dc(s,l){var g=s.ownsGroup;if(g)try{hc(g)}finally{Ai=null,l(g)}}var Yn=null;function rt(s,l){var g=ni(s,l);if(g.length){var d=Array.prototype.slice.call(arguments,2),v;Ai?v=Ai.delayedCallbacks:Yn?v=Yn:(v=Yn=[],setTimeout(gt,0));for(var A=function(y){v.push(function(){return g[y].apply(null,d)})},b=0;b<g.length;++b)A(b)}}function gt(){var s=Yn;Yn=null;for(var l=0;l<s.length;++l)s[l]()}function hu(s,l,g,d){for(var v=0;v<l.changes.length;v++){var A=l.changes[v];A=="text"?kr(s,l):A=="gutter"?ls(s,l,g,d):A=="class"?_n(s,l):A=="widget"&&Gt(s,l,d)}l.changes=null}function le(s){return s.node==s.text&&(s.node=me("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),G&&W<8&&(s.node.style.zIndex=2)),s.node}function Ls(s,l){var g=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),l.background)g?l.background.className=g:(l.background.parentNode.removeChild(l.background),l.background=null);else if(g){var d=le(l);l.background=d.insertBefore(me("div",null,g),d.firstChild),s.display.input.setUneditable(l.background)}}function ue(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):cu(s,l)}function kr(s,l){var g=l.text.className,d=ue(s,l);l.text==l.node&&(l.node=d.pre),l.text.parentNode.replaceChild(d.pre,l.text),l.text=d.pre,d.bgClass!=l.bgClass||d.textClass!=l.textClass?(l.bgClass=d.bgClass,l.textClass=d.textClass,_n(s,l)):g&&(l.text.className=g)}function _n(s,l){Ls(s,l),l.line.wrapClass?le(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var g=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=g||""}function ls(s,l,g,d){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var v=le(l);l.gutterBackground=me("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px; width: "+d.gutterTotalWidth+"px"),s.display.input.setUneditable(l.gutterBackground),v.insertBefore(l.gutterBackground,l.text)}var A=l.line.gutterMarkers;if(s.options.lineNumbers||A){var b=le(l),y=l.gutter=me("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),s.display.input.setUneditable(y),b.insertBefore(y,l.text),l.line.gutterClass&&(y.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!A||!A["CodeMirror-linenumbers"])&&(l.lineNumber=y.appendChild(me("div",Sa(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),A)for(var w=0;w<s.display.gutterSpecs.length;++w){var U=s.display.gutterSpecs[w].className,P=A.hasOwnProperty(U)&&A[U];P&&y.appendChild(me("div",[P],"CodeMirror-gutter-elt","left: "+d.gutterLeft[U]+"px; width: "+d.gutterWidth[U]+"px"))}}}function Gt(s,l,g){l.alignable&&(l.alignable=null);for(var d=ve("CodeMirror-linewidget"),v=l.node.firstChild,A=void 0;v;v=A)A=v.nextSibling,d.test(v.className)&&l.node.removeChild(v);du(s,l,g)}function Ft(s,l,g,d){var v=ue(s,l);return l.text=l.node=v.pre,v.bgClass&&(l.bgClass=v.bgClass),v.textClass&&(l.textClass=v.textClass),_n(s,l),ls(s,l,g,d),du(s,l,d),l.node}function du(s,l,g){if(gu(s,l.line,l,g,!0),l.rest)for(var d=0;d<l.rest.length;d++)gu(s,l.rest[d],l,g,!1)}function gu(s,l,g,d,v){if(l.widgets)for(var A=le(g),b=0,y=l.widgets;b<y.length;++b){var w=y[b],U=me("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||U.setAttribute("cm-ignore-events","true"),gc(w,U,g,d),s.display.input.setUneditable(U),v&&w.above?A.insertBefore(U,g.gutter||g.text):A.appendChild(U),rt(w,"redraw")}}function gc(s,l,g,d){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var v=d.wrapperWidth;l.style.left=d.fixedPos+"px",s.coverGutter||(v-=d.gutterTotalWidth,l.style.paddingLeft=d.gutterTotalWidth+"px"),l.style.width=v+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-d.gutterTotalWidth+"px"))}function Zi(s){if(s.height!=null)return s.height;var l=s.doc.cm;if(!l)return 0;if(!cr(document.body,s.node)){var g="position: relative;";s.coverGutter&&(g+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),s.noHScroll&&(g+="width: "+l.display.wrapper.clientWidth+"px;"),Qe(l.display.measure,me("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Qi(s,l){for(var g=rn(l);g!=s.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==s.sizer&&g!=s.mover)return!0}function gn(s){return s.lineSpace.offsetTop}function Da(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function Eu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Qe(s.measure,me("pre","x","CodeMirror-line-like")),g=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,d={left:parseInt(g.paddingLeft),right:parseInt(g.paddingRight)};return!isNaN(d.left)&&!isNaN(d.right)&&(s.cachedPaddingH=d),d}function Ni(s){return Kt-s.display.nativeBarWidth}function ws(s){return s.display.scroller.clientWidth-Ni(s)-s.display.barWidth}function Ma(s){return s.display.scroller.clientHeight-Ni(s)-s.display.barHeight}function Ec(s,l,g){var d=s.options.lineWrapping,v=d&&ws(s);if(!l.measure.heights||d&&l.measure.width!=v){var A=l.measure.heights=[];if(d){l.measure.width=v;for(var b=l.text.firstChild.getClientRects(),y=0;y<b.length-1;y++){var w=b[y],U=b[y+1];Math.abs(w.bottom-U.bottom)>2&&A.push((w.bottom+U.top)/2-g.top)}}A.push(g.bottom-g.top)}}function _o(s,l,g){if(s.line==l)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var d=0;d<s.rest.length;d++)if(s.rest[d]==l)return{map:s.measure.maps[d],cache:s.measure.caches[d]};for(var v=0;v<s.rest.length;v++)if(Ye(s.rest[v])>g)return{map:s.measure.maps[v],cache:s.measure.caches[v],before:!0}}}function Jt(s,l){l=ai(l);var g=Ye(l),d=s.display.externalMeasured=new dn(s.doc,l,g);d.lineN=g;var v=d.built=cu(s,d);return d.text=v.pre,Qe(s.display.lineMeasure,v.pre),d}function mu(s,l,g,d){return bi(s,En(s,l),g,d)}function Et(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[Pi(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function En(s,l){var g=Ye(l),d=Et(s,g);d&&!d.text?d=null:d&&d.changes&&(hu(s,d,g,Gs(s)),s.curOp.forceUpdate=!0),d||(d=Jt(s,l));var v=_o(d,l,g);return{line:l,view:d,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function bi(s,l,g,d,v){l.before&&(g=-1);var A=g+(d||""),b;return l.cache.hasOwnProperty(A)?b=l.cache[A]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(Ec(s,l.view,l.rect),l.hasHeights=!0),b=Jn(s,l,g,d),b.bogus||(l.cache[A]=b)),{left:b.left,right:b.right,top:v?b.rtop:b.top,bottom:v?b.rbottom:b.bottom}}var vu={left:0,right:0,top:0,bottom:0};function xu(s,l,g){for(var d,v,A,b,y,w,U=0;U<s.length;U+=3)if(y=s[U],w=s[U+1],l<y?(v=0,A=1,b="left"):l<w?(v=l-y,A=v+1):(U==s.length-3||l==w&&s[U+3]>l)&&(A=w-y,v=A-1,l>=w&&(b="right")),v!=null){if(d=s[U+2],y==w&&g==(d.insertLeft?"left":"right")&&(b=g),g=="left"&&v==0)for(;U&&s[U-2]==s[U-3]&&s[U-1].insertLeft;)d=s[(U-=3)+2],b="left";if(g=="right"&&v==w-y)for(;U<s.length-3&&s[U+3]==s[U+4]&&!s[U+5].insertLeft;)d=s[(U+=3)+2],b="right";break}return{node:d,start:v,end:A,collapse:b,coverStart:y,coverEnd:w}}function mc(s,l){var g=vu;if(l=="left")for(var d=0;d<s.length&&(g=s[d]).left==g.right;d++);else for(var v=s.length-1;v>=0&&(g=s[v]).left==g.right;v--);return g}function Jn(s,l,g,d){var v=xu(l.map,g,d),A=v.node,b=v.start,y=v.end,w=v.collapse,U;if(A.nodeType==3){for(var P=0;P<4;P++){for(;b&&pt(l.line.text.charAt(v.coverStart+b));)--b;for(;v.coverStart+y<v.coverEnd&&pt(l.line.text.charAt(v.coverStart+y));)++y;if(G&&W<9&&b==0&&y==v.coverEnd-v.coverStart?U=A.parentNode.getBoundingClientRect():U=mc(Ir(A,b,y).getClientRects(),d),U.left||U.right||b==0)break;y=b,b=b-1,w="right"}G&&W<11&&(U=vc(s.display.measure,U))}else{b>0&&(w=d="right");var _;s.options.lineWrapping&&(_=A.getClientRects()).length>1?U=_[d=="right"?_.length-1:0]:U=A.getBoundingClientRect()}if(G&&W<9&&!b&&(!U||!U.left&&!U.right)){var re=A.parentNode.getClientRects()[0];re?U={left:re.left,right:re.left+fs(s.display),top:re.top,bottom:re.bottom}:U=vu}for(var ee=U.top-l.rect.top,oe=U.bottom-l.rect.top,fe=(ee+oe)/2,he=l.view.measure.heights,xe=0;xe<he.length-1&&!(fe<he[xe]);xe++);var Ie=xe?he[xe-1]:0,Ce=he[xe],Re={left:(w=="right"?U.right:U.left)-l.rect.left,right:(w=="left"?U.left:U.right)-l.rect.left,top:Ie,bottom:Ce};return!U.left&&!U.right&&(Re.bogus=!0),s.options.singleCursorHeightPerLine||(Re.rtop=ee,Re.rbottom=oe),Re}function vc(s,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!oi(s))return l;var g=screen.logicalXDPI/screen.deviceXDPI,d=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*g,right:l.right*g,top:l.top*d,bottom:l.bottom*d}}function Cu(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var l=0;l<s.rest.length;l++)s.measure.caches[l]={}}function Jo(s){s.display.externalMeasure=null,Le(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)Cu(s.display.view[l])}function Us(s){Jo(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function mn(s){return k&&V?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function Iu(s){return k&&V?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Za(s){var l=ai(s),g=l.widgets,d=0;if(g)for(var v=0;v<g.length;++v)g[v].above&&(d+=Zi(g[v]));return d}function vn(s,l,g,d,v){if(!v){var A=Za(l);g.top+=A,g.bottom+=A}if(d=="line")return g;d||(d="local");var b=Mi(l);if(d=="local"?b+=gn(s.display):b-=s.display.viewOffset,d=="page"||d=="window"){var y=s.display.lineSpace.getBoundingClientRect();b+=y.top+(d=="window"?0:Iu(dr(s)));var w=y.left+(d=="window"?0:mn(dr(s)));g.left+=w,g.right+=w}return g.top+=b,g.bottom+=b,g}function us(s,l,g){if(g=="div")return l;var d=l.left,v=l.top;if(g=="page")d-=mn(dr(s)),v-=Iu(dr(s));else if(g=="local"||!g){var A=s.display.sizer.getBoundingClientRect();d+=A.left,v+=A.top}var b=s.display.lineSpace.getBoundingClientRect();return{left:d-b.left,top:v-b.top}}function $o(s,l,g,d,v){return d||(d=Ae(s.doc,l.line)),vn(s,d,mu(s,d,l.ch,v),g)}function ze(s,l,g,d,v,A){d=d||Ae(s.doc,l.line),v||(v=En(s,d));function b(oe,fe){var he=bi(s,v,oe,fe?"right":"left",A);return fe?he.left=he.right:he.right=he.left,vn(s,d,he,g)}var y=Tr(d,s.doc.direction),w=l.ch,U=l.sticky;if(w>=d.text.length?(w=d.text.length,U="before"):w<=0&&(w=0,U="after"),!y)return b(U=="before"?w-1:w,U=="before");function P(oe,fe,he){var xe=y[fe],Ie=xe.level==1;return b(he?oe-1:oe,Ie!=he)}var _=bt(y,w,U),re=ti,ee=P(w,_,U=="before");return re!=null&&(ee.other=P(w,re,U!="before")),ee}function Au(s,l){var g=0;l=$e(s.doc,l),s.options.lineWrapping||(g=fs(s.display)*l.ch);var d=Ae(s.doc,l.line),v=Mi(d)+gn(s.display);return{left:g,right:g,top:v,bottom:v+d.height}}function Qa(s,l,g,d,v){var A=pe(s,l,g);return A.xRel=v,d&&(A.outside=d),A}function Pa(s,l,g){var d=s.doc;if(g+=s.display.viewOffset,g<0)return Qa(d.first,0,null,-1,-1);var v=xi(d,g),A=d.first+d.size-1;if(v>A)return Qa(d.first+d.size-1,Ae(d,A).text.length,null,1,1);l<0&&(l=0);for(var b=Ae(d,v);;){var y=xc(s,b,v,l,g),w=Fa(b,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var U=w.find(1);if(U.line==v)return U;b=Ae(d,v=U.line)}}function Nu(s,l,g,d){d-=Za(l);var v=l.text.length,A=ri(function(b){return bi(s,g,b-1).bottom<=d},v,0);return v=ri(function(b){return bi(s,g,b).top>d},A,v),{begin:A,end:v}}function bu(s,l,g,d){g||(g=En(s,l));var v=vn(s,l,bi(s,g,d),"line").top;return Nu(s,l,g,v)}function $n(s,l,g,d){return s.bottom<=g?!1:s.top>g?!0:(d?s.left:s.right)>l}function xc(s,l,g,d,v){v-=Mi(l);var A=En(s,l),b=Za(l),y=0,w=l.text.length,U=!0,P=Tr(l,s.doc.direction);if(P){var _=(s.options.lineWrapping?Os:Xe)(s,l,g,A,P,d,v);U=_.level!=1,y=U?_.from:_.to-1,w=U?_.to:_.from-1}var re=null,ee=null,oe=ri(function(Ze){var Ve=bi(s,A,Ze);return Ve.top+=b,Ve.bottom+=b,$n(Ve,d,v,!1)?(Ve.top<=v&&Ve.left<=d&&(re=Ze,ee=Ve),!0):!1},y,w),fe,he,xe=!1;if(ee){var Ie=d-ee.left<ee.right-d,Ce=Ie==U;oe=re+(Ce?0:1),he=Ce?"after":"before",fe=Ie?ee.left:ee.right}else{!U&&(oe==w||oe==y)&&oe++,he=oe==0?"after":oe==l.text.length?"before":bi(s,A,oe-(U?1:0)).bottom+b<=v==U?"after":"before";var Re=ze(s,pe(g,oe,he),"line",l,A);fe=Re.left,xe=v<Re.top?-1:v>=Re.bottom?1:0}return oe=Nr(l.text,oe,1),Qa(g,oe,he,xe,d-fe)}function Xe(s,l,g,d,v,A,b){var y=ri(function(_){var re=v[_],ee=re.level!=1;return $n(ze(s,pe(g,ee?re.to:re.from,ee?"before":"after"),"line",l,d),A,b,!0)},0,v.length-1),w=v[y];if(y>0){var U=w.level!=1,P=ze(s,pe(g,U?w.from:w.to,U?"after":"before"),"line",l,d);$n(P,A,b,!0)&&P.top>b&&(w=v[y-1])}return w}function Os(s,l,g,d,v,A,b){var y=Nu(s,l,d,b),w=y.begin,U=y.end;/\s/.test(l.text.charAt(U-1))&&U--;for(var P=null,_=null,re=0;re<v.length;re++){var ee=v[re];if(!(ee.from>=U||ee.to<=w)){var oe=ee.level!=1,fe=bi(s,d,oe?Math.min(U,ee.to)-1:Math.max(w,ee.from)).right,he=fe<A?A-fe+1e9:fe-A;(!P||_>he)&&(P=ee,_=he)}}return P||(P=v[v.length-1]),P.from<w&&(P={from:w,to:P.to,level:P.level}),P.to>U&&(P={from:P.from,to:U,level:P.level}),P}var $t;function Dr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if($t==null){$t=me("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)$t.appendChild(document.createTextNode("x")),$t.appendChild(me("br"));$t.appendChild(document.createTextNode("x"))}Qe(s.measure,$t);var g=$t.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Le(s.measure),g||1}function fs(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=me("span","xxxxxxxxxx"),g=me("pre",[l],"CodeMirror-line-like");Qe(s.measure,g);var d=l.getBoundingClientRect(),v=(d.right-d.left)/10;return v>2&&(s.cachedCharWidth=v),v||10}function Gs(s){for(var l=s.display,g={},d={},v=l.gutters.clientLeft,A=l.gutters.firstChild,b=0;A;A=A.nextSibling,++b){var y=s.display.gutterSpecs[b].className;g[y]=A.offsetLeft+A.clientLeft+v,d[y]=A.clientWidth}return{fixedPos:mt(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:d,wrapperWidth:l.wrapper.clientWidth}}function mt(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function xn(s){var l=Dr(s.display),g=s.options.lineWrapping,d=g&&Math.max(5,s.display.scroller.clientWidth/fs(s.display)-3);return function(v){if(Ii(s.doc,v))return 0;var A=0;if(v.widgets)for(var b=0;b<v.widgets.length;b++)v.widgets[b].height&&(A+=v.widgets[b].height);return g?A+(Math.ceil(v.text.length/d)||1)*l:A+l}}function Fs(s){var l=s.doc,g=xn(s);l.iter(function(d){var v=g(d);v!=d.height&&Qt(d,v)})}function li(s,l,g,d){var v=s.display;if(!g&&rn(l).getAttribute("cm-not-content")=="true")return null;var A,b,y=v.lineSpace.getBoundingClientRect();try{A=l.clientX-y.left,b=l.clientY-y.top}catch{return null}var w=Pa(s,A,b),U;if(d&&w.xRel>0&&(U=Ae(s.doc,w.line).text).length==w.ch){var P=Ar(U,U.length,s.options.tabSize)-U.length;w=pe(w.line,Math.max(0,Math.round((A-Eu(s.display).left)/fs(s.display))-P))}return w}function Pi(s,l){if(l>=s.display.viewTo||(l-=s.display.viewFrom,l<0))return null;for(var g=s.display.view,d=0;d<g.length;d++)if(l-=g[d].size,l<0)return d}function vt(s,l,g,d){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),d||(d=0);var v=s.display;if(d&&g<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>l)&&(v.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=v.viewTo)Vi&&Hn(s.doc,l)<v.viewTo&&Ti(s);else if(g<=v.viewFrom)Vi&&Ho(s.doc,g+d)>v.viewFrom?Ti(s):(v.viewFrom+=d,v.viewTo+=d);else if(l<=v.viewFrom&&g>=v.viewTo)Ti(s);else if(l<=v.viewFrom){var A=cs(s,g,g+d,1);A?(v.view=v.view.slice(A.index),v.viewFrom=A.lineN,v.viewTo+=d):Ti(s)}else if(g>=v.viewTo){var b=cs(s,l,l,-1);b?(v.view=v.view.slice(0,b.index),v.viewTo=b.lineN):Ti(s)}else{var y=cs(s,l,l,-1),w=cs(s,g,g+d,1);y&&w?(v.view=v.view.slice(0,y.index).concat(as(s,y.lineN,w.lineN)).concat(v.view.slice(w.index)),v.viewTo+=d):Ti(s)}var U=v.externalMeasured;U&&(g<U.lineN?U.lineN+=d:l<U.lineN+U.size&&(v.externalMeasured=null))}function Pt(s,l,g){s.curOp.viewChanged=!0;var d=s.display,v=s.display.externalMeasured;if(v&&l>=v.lineN&&l<v.lineN+v.size&&(d.externalMeasured=null),!(l<d.viewFrom||l>=d.viewTo)){var A=d.view[Pi(s,l)];if(A.node!=null){var b=A.changes||(A.changes=[]);gr(b,g)==-1&&b.push(g)}}}function Ti(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function cs(s,l,g,d){var v=Pi(s,l),A,b=s.display.view;if(!Vi||g==s.doc.first+s.doc.size)return{index:v,lineN:g};for(var y=s.display.viewFrom,w=0;w<v;w++)y+=b[w].size;if(y!=l){if(d>0){if(v==b.length-1)return null;A=y+b[v].size-l,v++}else A=y-l;l+=A,g+=A}for(;Hn(s.doc,g)!=g;){if(v==(d<0?0:b.length-1))return null;g+=d*b[v-(d<0?1:0)].size,v+=d}return{index:v,lineN:g}}function zn(s,l,g){var d=s.display,v=d.view;v.length==0||l>=d.viewTo||g<=d.viewFrom?(d.view=as(s,l,g),d.viewFrom=l):(d.viewFrom>l?d.view=as(s,l,d.viewFrom).concat(d.view):d.viewFrom<l&&(d.view=d.view.slice(Pi(s,l))),d.viewFrom=l,d.viewTo<g?d.view=d.view.concat(as(s,d.viewTo,g)):d.viewTo>g&&(d.view=d.view.slice(0,Pi(s,g)))),d.viewTo=g}function zo(s){for(var l=s.display.view,g=0,d=0;d<l.length;d++){var v=l[d];!v.hidden&&(!v.node||v.changes)&&++g}return g}function Bs(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ps(s,l){l===void 0&&(l=!0);var g=s.doc,d={},v=d.cursors=document.createDocumentFragment(),A=d.selection=document.createDocumentFragment(),b=s.options.$customCursor;b&&(l=!0);for(var y=0;y<g.sel.ranges.length;y++)if(!(!l&&y==g.sel.primIndex)){var w=g.sel.ranges[y];if(!(w.from().line>=s.display.viewTo||w.to().line<s.display.viewFrom)){var U=w.empty();if(b){var P=b(s,w);P&&Vs(s,P,v)}else(U||s.options.showCursorWhenSelecting)&&Vs(s,w.head,v);U||Cc(s,w,A)}}return d}function Vs(s,l,g){var d=ze(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),v=g.appendChild(me("div","\xA0","CodeMirror-cursor"));if(v.style.left=d.left+"px",v.style.top=d.top+"px",v.style.height=Math.max(0,d.bottom-d.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var A=$o(s,l,"div",null,null),b=A.right-A.left;v.style.width=(b>0?b:s.defaultCharWidth())+"px"}if(d.other){var y=g.appendChild(me("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=d.other.left+"px",y.style.top=d.other.top+"px",y.style.height=(d.other.bottom-d.other.top)*.85+"px"}}function Mr(s,l){return s.top-l.top||s.left-l.left}function Cc(s,l,g){var d=s.display,v=s.doc,A=document.createDocumentFragment(),b=Eu(s.display),y=b.left,w=Math.max(d.sizerWidth,ws(s)-d.sizer.offsetLeft)-b.right,U=v.direction=="ltr";function P(Ce,Re,Ze,Ve){Re<0&&(Re=0),Re=Math.round(Re),Ve=Math.round(Ve),A.appendChild(me("div",null,"CodeMirror-selected","position: absolute; left: "+Ce+`px;
6
+ top: `+Re+"px; width: "+(Ze??w-Ce)+`px;
7
+ height: `+(Ve-Re)+"px"))}function _(Ce,Re,Ze){var Ve=Ae(v,Ce),er=Ve.text.length,Cr,st;function Lr(Xr,Wt){return $o(s,pe(Ce,Xr),"div",Ve,Wt)}function Xt(Xr,Wt,lt){var jr=bu(s,Ve,null,Xr),Hr=Wt=="ltr"==(lt=="after")?"left":"right",Gr=lt=="after"?jr.begin:jr.end-(/\s/.test(Ve.text.charAt(jr.end-1))?2:1);return Lr(Gr,Hr)[Hr]}var Vt=Tr(Ve,v.direction);return Gi(Vt,Re||0,Ze??er,function(Xr,Wt,lt,jr){var Hr=lt=="ltr",Gr=Lr(Xr,Hr?"left":"right"),Dt=Lr(Wt-1,Hr?"right":"left"),Vn=Re==null&&Xr==0,vs=Ze==null&&Wt==er,Ct=jr==0,Li=!Vt||jr==Vt.length-1;if(Dt.top-Gr.top<=3){var nt=(U?Vn:vs)&&Ct,cl=(U?vs:Vn)&&Li,Yi=nt?y:(Hr?Gr:Dt).left,Ps=cl?w:(Hr?Dt:Gr).right;P(Yi,Gr.top,Ps-Yi,Gr.bottom)}else{var ks,Rt,Wn,pl;Hr?(ks=U&&Vn&&Ct?y:Gr.left,Rt=U?w:Xt(Xr,lt,"before"),Wn=U?y:Xt(Wt,lt,"after"),pl=U&&vs&&Li?w:Dt.right):(ks=U?Xt(Xr,lt,"before"):y,Rt=!U&&Vn&&Ct?w:Gr.right,Wn=!U&&vs&&Li?y:Dt.left,pl=U?Xt(Wt,lt,"after"):w),P(ks,Gr.top,Rt-ks,Gr.bottom),Gr.bottom<Dt.top&&P(y,Gr.bottom,null,Dt.top),P(Wn,Dt.top,pl-Wn,Dt.bottom)}(!Cr||Mr(Gr,Cr)<0)&&(Cr=Gr),Mr(Dt,Cr)<0&&(Cr=Dt),(!st||Mr(Gr,st)<0)&&(st=Gr),Mr(Dt,st)<0&&(st=Dt)}),{start:Cr,end:st}}var re=l.from(),ee=l.to();if(re.line==ee.line)_(re.line,re.ch,ee.ch);else{var oe=Ae(v,re.line),fe=Ae(v,ee.line),he=ai(oe)==ai(fe),xe=_(re.line,re.ch,he?oe.text.length+1:null).end,Ie=_(ee.line,he?0:null,ee.ch).start;he&&(xe.top<Ie.top-2?(P(xe.right,xe.top,null,xe.bottom),P(y,Ie.top,Ie.left,Ie.bottom)):P(xe.right,xe.top,Ie.left-xe.right,xe.bottom)),xe.bottom<Ie.top&&P(y,xe.bottom,null,Ie.top)}g.appendChild(A)}function ka(s){if(s.state.focused){var l=s.display;clearInterval(l.blinker);var g=!0;l.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?l.blinker=setInterval(function(){s.hasFocus()||Cn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Tu(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||Ha(s))}function Xa(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&Cn(s))},100)}function Ha(s,l){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(ur(s,"focus",s,l),s.state.focused=!0,je(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),D&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),ka(s))}function Cn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(ur(s,"blur",s,l),s.state.focused=!1,Te(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function jo(s){for(var l=s.display,g=l.lineDiv.offsetTop,d=Math.max(0,l.scroller.getBoundingClientRect().top),v=l.lineDiv.getBoundingClientRect().top,A=0,b=0;b<l.view.length;b++){var y=l.view[b],w=s.options.lineWrapping,U=void 0,P=0;if(!y.hidden){if(v+=y.line.height,G&&W<8){var _=y.node.offsetTop+y.node.offsetHeight;U=_-g,g=_}else{var re=y.node.getBoundingClientRect();U=re.bottom-re.top,!w&&y.text.firstChild&&(P=y.text.firstChild.getBoundingClientRect().right-re.left-1)}var ee=y.line.height-U;if((ee>.005||ee<-.005)&&(v<d&&(A-=ee),Qt(y.line,U),Ru(y.line),y.rest))for(var oe=0;oe<y.rest.length;oe++)Ru(y.rest[oe]);if(P>s.display.sizerWidth){var fe=Math.ceil(P/fs(s.display));fe>s.display.maxLineLength&&(s.display.maxLineLength=fe,s.display.maxLine=y.line,s.display.maxLineChanged=!0)}}}Math.abs(A)>2&&(l.scroller.scrollTop+=A)}function Ru(s){if(s.widgets)for(var l=0;l<s.widgets.length;++l){var g=s.widgets[l],d=g.node.parentNode;d&&(g.height=d.offsetHeight)}}function qo(s,l,g){var d=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;d=Math.floor(d-gn(s));var v=g&&g.bottom!=null?g.bottom:d+s.wrapper.clientHeight,A=xi(l,d),b=xi(l,v);if(g&&g.ensure){var y=g.ensure.from.line,w=g.ensure.to.line;y<A?(A=y,b=xi(l,Mi(Ae(l,y))+s.wrapper.clientHeight)):Math.min(w,l.lastLine())>=b&&(A=xi(l,Mi(Ae(l,w))-s.wrapper.clientHeight),b=w)}return{from:A,to:Math.max(b,A+1)}}function Ic(s,l){if(!Er(s,"scrollCursorIntoView")){var g=s.display,d=g.sizer.getBoundingClientRect(),v=null,A=g.wrapper.ownerDocument;if(l.top+d.top<0?v=!0:l.bottom+d.top>(A.defaultView.innerHeight||A.documentElement.clientHeight)&&(v=!1),v!=null&&!J){var b=me("div","\u200B",null,`position: absolute;
8
8
  top: `+(l.top-g.viewOffset-gn(s.display))+`px;
9
9
  height: `+(l.bottom-l.top+Ni(s)+g.barHeight)+`px;
10
- left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");s.display.lineSpace.appendChild(b),b.scrollIntoView(v),s.display.lineSpace.removeChild(b)}}}function Ic(s,l,g,d){d==null&&(d=0);var v;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?he(l.line,l.ch+1,"before"):l,l=l.ch?he(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var A=0;A<5;A++){var b=!1,y=$e(s,l),w=!g||g==l?y:$e(s,g);v={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-d,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+d};var U=Xa(s,v),k=s.doc.scrollTop,J=s.doc.scrollLeft;if(U.scrollTop!=null&&(qn(s,U.scrollTop),Math.abs(s.doc.scrollTop-k)>1&&(b=!0)),U.scrollLeft!=null&&(Ds(s,U.scrollLeft),Math.abs(s.doc.scrollLeft-J)>1&&(b=!0)),!b)break}return v}function Ac(s,l){var g=Xa(s,l);g.scrollTop!=null&&qn(s,g.scrollTop),g.scrollLeft!=null&&Ds(s,g.scrollLeft)}function Xa(s,l){var g=s.display,d=Mr(s.display);l.top<0&&(l.top=0);var v=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,A=Wa(s),b={};l.bottom-l.top>A&&(l.bottom=l.top+A);var y=s.doc.height+Ma(g),w=l.top<d,U=l.bottom>y-d;if(l.top<v)b.scrollTop=w?0:l.top;else if(l.bottom>v+A){var k=Math.min(l.top,(U?y:l.bottom)-A);k!=v&&(b.scrollTop=k)}var J=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-J,ee=ws(s)-g.gutters.offsetWidth,oe=l.right-l.left>ee;return oe&&(l.right=l.left+ee),l.left<10?b.scrollLeft=0:l.left<re?b.scrollLeft=Math.max(0,l.left+J-(oe?0:10)):l.right>ee+re-3&&(b.scrollLeft=l.right+(oe?0:10)-ee),b}function Ya(s,l){l!=null&&(Ko(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function In(s){Ko(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function jn(s,l,g){(l!=null||g!=null)&&Ko(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function Nc(s,l){Ko(s),s.curOp.scrollToPos=l}function Ko(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=Au(s,l.from),d=Au(s,l.to);yu(s,g,d,l.margin)}}function yu(s,l,g,d){var v=Xa(s,{left:Math.min(l.left,g.left),top:Math.min(l.top,g.top)-d,right:Math.max(l.right,g.right),bottom:Math.max(l.bottom,g.bottom)+d});jn(s,v.scrollLeft,v.scrollTop)}function qn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||$a(s,{top:l}),Su(s,l,!0),e&&$a(s),ro(s,100))}function Su(s,l,g){l=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,l)),!(s.display.scroller.scrollTop==l&&!g)&&(s.doc.scrollTop=l,s.display.scrollbars.setScrollTop(l),s.display.scroller.scrollTop!=l&&(s.display.scroller.scrollTop=l))}function Ds(s,l,g,d){l=Math.max(0,Math.min(l,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((g?l==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-l)<2)&&!d)&&(s.doc.scrollLeft=l,Fu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function Kn(s){var l=s.display,g=l.gutters.offsetWidth,d=Math.round(s.doc.height+Ma(s.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:s.options.fixedGutter?g:0,docHeight:d,scrollHeight:d+Ni(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Ms=function(s,l,g){this.cm=g;var d=this.vert=me("div",[me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=me("div",[me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=v.tabIndex=-1,s(d),s(v),Ge(d,"scroll",function(){d.clientHeight&&l(d.scrollTop,"vertical")}),Ge(v,"scroll",function(){v.clientWidth&&l(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&D<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ms.prototype.update=function(s){var l=s.scrollWidth>s.clientWidth+1,g=s.scrollHeight>s.clientHeight+1,d=s.nativeBarWidth;if(g){this.vert.style.display="block",this.vert.style.bottom=l?d+"px":"0";var v=s.viewHeight-(l?d:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=g?d+"px":"0",this.horiz.style.left=s.barLeft+"px";var A=s.viewWidth-s.barLeft-(g?d:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+A)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:g?d:0,bottom:l?d:0}},Ms.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ms.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ms.prototype.zeroWidthHack=function(){var s=q&&!z?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pr,this.disableVert=new Pr},Ms.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function d(){var v=s.getBoundingClientRect(),A=g=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);A!=s?s.style.visibility="hidden":l.set(1e3,d)}l.set(1e3,d)},Ms.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var eo=function(){};eo.prototype.update=function(){return{bottom:0,right:0}},eo.prototype.setScrollLeft=function(){},eo.prototype.setScrollTop=function(){},eo.prototype.clear=function(){};function An(s,l){l||(l=Kn(s));var g=s.display.barWidth,d=s.display.barHeight;Lu(s,l);for(var v=0;v<4&&g!=s.display.barWidth||d!=s.display.barHeight;v++)g!=s.display.barWidth&&s.options.lineWrapping&&jo(s),Lu(s,Kn(s)),g=s.display.barWidth,d=s.display.barHeight}function Lu(s,l){var g=s.display,d=g.scrollbars.update(l);g.sizer.style.paddingRight=(g.barWidth=d.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=d.bottom)+"px",g.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=d.bottom+"px",g.scrollbarFiller.style.width=d.right+"px"):g.scrollbarFiller.style.display="",d.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=d.bottom+"px",g.gutterFiller.style.width=l.gutterWidth+"px"):g.gutterFiller.style.display=""}var wu={native:Ms,null:eo};function Ou(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Le(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new wu[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Ge(l,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,g){g=="horizontal"?Ds(s,l):qn(s,l)},s),s.display.scrollbars.addClass&&ze(s.display.wrapper,s.display.scrollbars.addClass)}var bc=0;function Ws(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bc,markArrays:null},cc(s.curOp)}function Zs(s){var l=s.curOp;l&&hc(l,function(g){for(var d=0;d<g.ops.length;d++)g.ops[d].cm.curOp=null;Tc(g)})}function Tc(s){for(var l=s.ops,g=0;g<l.length;g++)Rc(l[g]);for(var d=0;d<l.length;d++)yc(l[d]);for(var v=0;v<l.length;v++)Sc(l[v]);for(var A=0;A<l.length;A++)Lc(l[A]);for(var b=0;b<l.length;b++)wc(l[b])}function Rc(s){var l=s.cm,g=l.display;Uc(l),s.updateMaxLine&&Da(l),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<g.viewFrom||s.scrollToPos.to.line>=g.viewTo)||g.maxLineChanged&&l.options.lineWrapping,s.update=s.mustUpdate&&new ea(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function yc(s){s.updatedDisplay=s.mustUpdate&&Ja(s.cm,s.update)}function Sc(s){var l=s.cm,g=l.display;s.updatedDisplay&&jo(l),s.barMeasure=Kn(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=mu(l,g.maxLine,g.maxLine.text.length).left+3,l.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+s.adjustWidthTo+Ni(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-ws(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function Lc(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Ds(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==$r(wt(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&An(l,s.barMeasure),s.updatedDisplay&&za(l,s.barMeasure),s.selectionChanged&&Qa(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Tu(s.cm)}function wc(s){var l=s.cm,g=l.display,d=l.doc;if(s.updatedDisplay&&Uu(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&Su(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Ds(l,s.scrollLeft,!0,!0),s.scrollToPos){var v=Ic(l,Ye(d,s.scrollToPos.from),Ye(d,s.scrollToPos.to),s.scrollToPos.margin);Cc(l,v)}var A=s.maybeHiddenMarkers,b=s.maybeUnhiddenMarkers;if(A)for(var y=0;y<A.length;++y)A[y].lines.length||ar(A[y],"hide");if(b)for(var w=0;w<b.length;++w)b[w].lines.length&&ar(b[w],"unhide");g.wrapper.offsetHeight&&(d.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&ar(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function Qt(s,l){if(s.curOp)return l();Ws(s);try{return l()}finally{Zs(s)}}function tt(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Ws(s);try{return l.apply(s,arguments)}finally{Zs(s)}}}function Tt(s){return function(){if(this.curOp)return s.apply(this,arguments);Ws(this);try{return s.apply(this,arguments)}finally{Zs(this)}}}function it(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Ws(l);try{return s.apply(this,arguments)}finally{Zs(l)}}}function ro(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,je(Oc,s))}function Oc(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,d=Qn(s,l.highlightFrontier),v=[];l.iter(d.line,Math.min(l.first+l.size,s.display.viewTo+500),function(A){if(d.line>=s.display.viewFrom){var b=A.styles,y=A.text.length>s.options.maxHighlightLength?Se(l.mode,d.state):null,w=tu(s,A,d,!0);y&&(d.state=y),A.styles=w.styles;var U=A.styleClasses,k=w.classes;k?A.styleClasses=k:U&&(A.styleClasses=null);for(var J=!b||b.length!=A.styles.length||U!=k&&(!U||!k||U.bgClass!=k.bgClass||U.textClass!=k.textClass),re=0;!J&&re<b.length;++re)J=b[re]!=A.styles[re];J&&v.push(d.line),A.stateAfter=d.save(),d.nextLine()}else A.text.length<=s.options.maxHighlightLength&&_n(s,A.text,d),A.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>g)return ro(s,s.options.workDelay),!0}),l.highlightFrontier=d.line,l.modeFrontier=Math.max(l.modeFrontier,d.line),v.length&&Qt(s,function(){for(var A=0;A<v.length;A++)kt(s,v[A],"text")})}}var ea=function(s,l,g){var d=s.display;this.viewport=l,this.visible=qo(d,s.doc,l),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=ws(s),this.force=g,this.dims=Fs(s),this.events=[]};ea.prototype.signal=function(s,l){tr(s,l)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var s=0;s<this.events.length;s++)ar.apply(null,this.events[s])};function Uc(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ni(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ni(s)+"px",l.scrollbarsClipped=!0)}function Fc(s){if(s.hasFocus())return null;var l=$r(wt(s));if(!l||!ur(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var d=ut(s).getSelection();d.anchorNode&&d.extend&&ur(s.display.lineDiv,d.anchorNode)&&(g.anchorNode=d.anchorNode,g.anchorOffset=d.anchorOffset,g.focusNode=d.focusNode,g.focusOffset=d.focusOffset)}return g}function Gc(s){if(!(!s||!s.activeElt||s.activeElt==$r(or(s.activeElt)))&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&ur(document.body,s.anchorNode)&&ur(document.body,s.focusNode))){var l=s.activeElt.ownerDocument,g=l.defaultView.getSelection(),d=l.createRange();d.setEnd(s.anchorNode,s.anchorOffset),d.collapse(!1),g.removeAllRanges(),g.addRange(d),g.extend(s.focusNode,s.focusOffset)}}function Ja(s,l){var g=s.display,d=s.doc;if(l.editorIsHidden)return Ti(s),!1;if(!l.force&&l.visible.from>=g.viewFrom&&l.visible.to<=g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo)&&g.renderedView==g.view&&zo(s)==0)return!1;Gu(s)&&(Ti(s),l.dims=Fs(s));var v=d.first+d.size,A=Math.max(l.visible.from-s.options.viewportMargin,d.first),b=Math.min(v,l.visible.to+s.options.viewportMargin);g.viewFrom<A&&A-g.viewFrom<20&&(A=Math.max(d.first,g.viewFrom)),g.viewTo>b&&g.viewTo-b<20&&(b=Math.min(v,g.viewTo)),Vi&&(A=Hn(s.doc,A),b=Ho(s.doc,b));var y=A!=g.viewFrom||b!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;zn(s,A,b),g.viewOffset=Wi(Ie(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var w=zo(s);if(!y&&w==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var U=Fc(s);return w>4&&(g.lineDiv.style.display="none"),Bc(s,g.updateLineNumbers,l.dims),w>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Gc(U),Ve(g.cursorDiv),Ve(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,y&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,ro(s,400)),g.updateLineNumbers=null,!0}function Uu(s,l){for(var g=l.viewport,d=!0;;d=!1){if(!d||!s.options.lineWrapping||l.oldDisplayWidth==ws(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Ma(s.display)-Wa(s),g.top)}),l.visible=qo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else d&&(l.visible=qo(s.display,s.doc,g));if(!Ja(s,l))break;jo(s);var v=Kn(s);Bs(s),An(s,v),za(s,v),l.force=!1}l.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(l.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function $a(s,l){var g=new ea(s,l);if(Ja(s,g)){jo(s),Uu(s,g);var d=Kn(s);Bs(s),An(s,d),za(s,d),g.finish()}}function Bc(s,l,g){var d=s.display,v=s.options.lineNumbers,A=d.lineDiv,b=A.firstChild;function y(oe){var ce=oe.nextSibling;return Z&&q&&s.display.currentWheelTarget==oe?oe.style.display="none":oe.parentNode.removeChild(oe),ce}for(var w=d.view,U=d.viewFrom,k=0;k<w.length;k++){var J=w[k];if(!J.hidden)if(!J.node||J.node.parentNode!=A){var re=Gt(s,J,U,g);A.insertBefore(re,b)}else{for(;b!=J.node;)b=y(b);var ee=v&&l!=null&&l<=U&&J.lineNumber;J.changes&&(hr(J.changes,"gutter")>-1&&(ee=!1),hu(s,J,U,g)),ee&&(Ve(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(Sa(s.options,U)))),b=J.node.nextSibling}U+=J.size}for(;b;)b=y(b)}function to(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",rt(s,"gutterChanged",s)}function za(s,l){s.display.sizer.style.minHeight=l.docHeight+"px",s.display.heightForcer.style.top=l.docHeight+"px",s.display.gutters.style.height=l.docHeight+s.display.barHeight+Ni(s)+"px"}function Fu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var d=mt(l)-l.scroller.scrollLeft+s.doc.scrollLeft,v=l.gutters.offsetWidth,A=d+"px",b=0;b<g.length;b++)if(!g[b].hidden){s.options.fixedGutter&&(g[b].gutter&&(g[b].gutter.style.left=A),g[b].gutterBackground&&(g[b].gutterBackground.style.left=A));var y=g[b].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=A}s.options.fixedGutter&&(l.gutters.style.left=d+v+"px")}}function Gu(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=Sa(s.options,l.first+l.size-1),d=s.display;if(g.length!=d.lineNumChars){var v=d.measure.appendChild(me("div",[me("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),A=v.firstChild.offsetWidth,b=v.offsetWidth-A;return d.lineGutter.style.width="",d.lineNumInnerWidth=Math.max(A,d.lineGutter.offsetWidth-b)+1,d.lineNumWidth=d.lineNumInnerWidth+b,d.lineNumChars=d.lineNumInnerWidth?g.length:-1,d.lineGutter.style.width=d.lineNumWidth+"px",to(s.display),!0}return!1}function ja(s,l){for(var g=[],d=!1,v=0;v<s.length;v++){var A=s[v],b=null;if(typeof A!="string"&&(b=A.style,A=A.className),A=="CodeMirror-linenumbers")if(l)d=!0;else continue;g.push({className:A,style:b})}return l&&!d&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Bu(s){var l=s.gutters,g=s.gutterSpecs;Ve(l),s.lineGutter=null;for(var d=0;d<g.length;++d){var v=g[d],A=v.className,b=v.style,y=l.appendChild(me("div",null,"CodeMirror-gutter "+A));b&&(y.style.cssText=b),A=="CodeMirror-linenumbers"&&(s.lineGutter=y,y.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",to(s)}function io(s){Bu(s.display),vt(s),Fu(s)}function Vc(s,l,g,d){var v=this;this.input=g,v.scrollbarFiller=me("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=me("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=xr("div",null,"CodeMirror-code"),v.selectionDiv=me("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=me("div",null,"CodeMirror-cursors"),v.measure=me("div",null,"CodeMirror-measure"),v.lineMeasure=me("div",null,"CodeMirror-measure"),v.lineSpace=xr("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var A=xr("div",[v.lineSpace],"CodeMirror-lines");v.mover=me("div",[A],null,"position: relative"),v.sizer=me("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=me("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),v.gutters=me("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=me("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=me("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),Q&&W===105&&(v.wrapper.style.clipPath="inset(0px)"),v.wrapper.setAttribute("translate","no"),O&&D<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!Z&&!(e&&X)&&(v.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(v.wrapper):s(v.wrapper)),v.viewFrom=v.viewTo=l.first,v.reportedViewFrom=v.reportedViewTo=l.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=ja(d.gutters,d.lineNumbers),Bu(v),g.init(v)}var ra=0,Qi=null;O?Qi=-.53:e?Qi=15:Q?Qi=-.7:M&&(Qi=-1/3);function Vu(s){var l=s.wheelDeltaX,g=s.wheelDeltaY;return l==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(l=s.detail),g==null&&s.detail&&s.axis==s.VERTICAL_AXIS?g=s.detail:g==null&&(g=s.wheelDelta),{x:l,y:g}}function Dc(s){var l=Vu(s);return l.x*=Qi,l.y*=Qi,l}function ta(s,l){Q&&W==102&&(s.display.chromeScrollHack==null?s.display.sizer.style.pointerEvents="none":clearTimeout(s.display.chromeScrollHack),s.display.chromeScrollHack=setTimeout(function(){s.display.chromeScrollHack=null,s.display.sizer.style.pointerEvents=""},100));var g=Vu(l),d=g.x,v=g.y,A=Qi;l.deltaMode===0&&(d=l.deltaX,v=l.deltaY,A=1);var b=s.display,y=b.scroller,w=y.scrollWidth>y.clientWidth,U=y.scrollHeight>y.clientHeight;if(d&&w||v&&U){if(v&&q&&Z){e:for(var k=l.target,J=b.view;k!=y;k=k.parentNode)for(var re=0;re<J.length;re++)if(J[re].node==k){s.display.currentWheelTarget=k;break e}}if(d&&!e&&!$&&A!=null){v&&U&&qn(s,Math.max(0,y.scrollTop+v*A)),Ds(s,Math.max(0,y.scrollLeft+d*A)),(!v||v&&U)&&ht(l),b.wheelStartX=null;return}if(v&&A!=null){var ee=v*A,oe=s.doc.scrollTop,ce=oe+b.wrapper.clientHeight;ee<0?oe=Math.max(0,oe+ee-50):ce=Math.min(s.doc.height,ce+ee+50),$a(s,{top:oe,bottom:ce})}ra<20&&l.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=y.scrollLeft,b.wheelStartY=y.scrollTop,b.wheelDX=d,b.wheelDY=v,setTimeout(function(){if(b.wheelStartX!=null){var de=y.scrollLeft-b.wheelStartX,ve=y.scrollTop-b.wheelStartY,Ce=ve&&b.wheelDY&&ve/b.wheelDY||de&&b.wheelDX&&de/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(Qi=(Qi*ra+Ce)/(ra+1),++ra)}},200)):(b.wheelDX+=d,b.wheelDY+=v))}}var Rr=function(s,l){this.ranges=s,this.primIndex=l};Rr.prototype.primary=function(){return this.ranges[this.primIndex]},Rr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],d=s.ranges[l];if(!La(g.anchor,d.anchor)||!La(g.head,d.head))return!1}return!0},Rr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new lr(wa(this.ranges[l].anchor),wa(this.ranges[l].head));return new Rr(s,this.primIndex)},Rr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Rr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if(Xe(l,d.from())>=0&&Xe(s,d.to())<=0)return g}return-1};var lr=function(s,l){this.anchor=s,this.head=l};lr.prototype.from=function(){return Zo(this.anchor,this.head)},lr.prototype.to=function(){return Wo(this.anchor,this.head)},lr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Pe(s,l,g){var d=s&&s.options.selectionsMayTouch,v=l[g];l.sort(function(re,ee){return Xe(re.from(),ee.from())}),g=hr(l,v);for(var A=1;A<l.length;A++){var b=l[A],y=l[A-1],w=Xe(y.to(),b.from());if(d&&!b.empty()?w>0:w>=0){var U=Zo(y.from(),b.from()),k=Wo(y.to(),b.to()),J=y.empty()?b.from()==b.head:y.from()==y.head;A<=g&&--g,l.splice(--A,2,new lr(J?k:U,J?U:k))}}return new Rr(l,g)}function Ri(s,l){return new Rr([new lr(s,l||s)],0)}function yi(s){return s.text?he(s.from.line+s.text.length-1,Ae(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ia(s,l){if(Xe(s,l.from)<0)return s;if(Xe(s,l.to)<=0)return yi(l);var g=s.line+l.text.length-(l.to.line-l.from.line)-1,d=s.ch;return s.line==l.to.line&&(d+=yi(l).ch-l.to.ch),he(g,d)}function _i(s,l){for(var g=[],d=0;d<s.sel.ranges.length;d++){var v=s.sel.ranges[d];g.push(new lr(ia(v.anchor,l),ia(v.head,l)))}return Pe(s.cm,g,s.sel.primIndex)}function Du(s,l,g){return s.line==l.line?he(g.line,s.ch-l.ch+g.ch):he(g.line+(s.line-l.line),s.ch)}function Mc(s,l,g){for(var d=[],v=he(s.first,0),A=v,b=0;b<l.length;b++){var y=l[b],w=Du(y.from,v,A),U=Du(yi(y),v,A);if(v=y.to,A=U,g=="around"){var k=s.sel.ranges[b],J=Xe(k.head,k.anchor)<0;d[b]=new lr(J?U:w,J?w:U)}else d[b]=new lr(w,w)}return new Rr(d,s.sel.primIndex)}function ui(s){s.doc.mode=We(s.options,s.doc.modeOption),Ps(s)}function Ps(s){s.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,ro(s,100),s.state.modeGen++,s.curOp&&vt(s)}function hs(s,l){return l.from.ch==0&&l.to.ch==0&&Ae(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function so(s,l,g,d){function v(Ce){return g?g[Ce]:null}function A(Ce,xe,be){tc(Ce,xe,be,d),rt(Ce,"change",Ce,l)}function b(Ce,xe){for(var be=[],Ze=Ce;Ze<xe;++Ze)be.push(new hn(U[Ze],v(Ze),d));return be}var y=l.from,w=l.to,U=l.text,k=Ie(s,y.line),J=Ie(s,w.line),re=Ae(U),ee=v(U.length-1),oe=w.line-y.line;if(l.full)s.insert(0,b(0,U.length)),s.remove(U.length,s.size-U.length);else if(hs(s,l)){var ce=b(0,U.length-1);A(J,J.text,ee),oe&&s.remove(y.line,oe),ce.length&&s.insert(y.line,ce)}else if(k==J)if(U.length==1)A(k,k.text.slice(0,y.ch)+re+k.text.slice(w.ch),ee);else{var de=b(1,U.length-1);de.push(new hn(re+k.text.slice(w.ch),ee,d)),A(k,k.text.slice(0,y.ch)+U[0],v(0)),s.insert(y.line+1,de)}else if(U.length==1)A(k,k.text.slice(0,y.ch)+U[0]+J.text.slice(w.ch),v(0)),s.remove(y.line+1,oe);else{A(k,k.text.slice(0,y.ch)+U[0],v(0)),A(J,re+J.text.slice(w.ch),ee);var ve=b(1,U.length-1);oe>1&&s.remove(y.line+1,oe-1),s.insert(y.line+1,ve)}rt(s,"change",s,l)}function Si(s,l,g){function d(v,A,b){if(v.linked)for(var y=0;y<v.linked.length;++y){var w=v.linked[y];if(w.doc!=A){var U=b&&w.sharedHist;g&&!U||(l(w.doc,U),d(w.doc,v,U))}}}d(s,null,!0)}function sa(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Gs(s),ui(s),na(s),s.options.direction=l.direction,s.options.lineWrapping||Da(s),s.options.mode=l.modeOption,vt(s)}function na(s){(s.doc.direction=="rtl"?ze:Le)(s.display.lineDiv,"CodeMirror-rtl")}function qa(s){Qt(s,function(){na(s),vt(s)})}function Nn(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function no(s,l){var g={from:wa(l.from),to:yi(l),text:dt(s,l.from,l.to)};return Wu(s,g,l.from.line,l.to.line+1),Si(s,function(d){return Wu(d,g,l.from.line,l.to.line+1)},!0),g}function oa(s){for(;s.length;){var l=Ae(s);if(l.ranges)s.pop();else break}}function Wc(s,l){if(l)return oa(s.done),Ae(s.done);if(s.done.length&&!Ae(s.done).ranges)return Ae(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Ae(s.done)}function Mu(s,l,g,d){var v=s.history;v.undone.length=0;var A=+new Date,b,y;if((v.lastOp==d||v.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&v.lastModTime>A-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(b=Wc(v,v.lastOp==d)))y=Ae(b.changes),Xe(l.from,l.to)==0&&Xe(l.from,y.to)==0?y.to=yi(l):b.changes.push(no(s,l));else{var w=Ae(v.done);for((!w||!w.ranges)&&ds(s.sel,v.done),b={changes:[no(s,l)],generation:v.generation},v.done.push(b);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(g),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=A,v.lastOp=v.lastSelOp=d,v.lastOrigin=v.lastSelOrigin=l.origin,y||ar(s,"historyAdded")}function Zc(s,l,g,d){var v=l.charAt(0);return v=="*"||v=="+"&&g.ranges.length==d.ranges.length&&g.somethingSelected()==d.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function Pc(s,l,g,d){var v=s.history,A=d&&d.origin;g==v.lastSelOp||A&&v.lastSelOrigin==A&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==A||Zc(s,A,Ae(v.done),l))?v.done[v.done.length-1]=l:ds(l,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=A,v.lastSelOp=g,d&&d.clearRedo!==!1&&oa(v.undone)}function ds(s,l){var g=Ae(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Wu(s,l,g,d){var v=l["spans_"+s.id],A=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,d),function(b){b.markedSpans&&((v||(v=l["spans_"+s.id]={}))[A]=b.markedSpans),++A})}function kc(s){if(!s)return null;for(var l,g=0;g<s.length;++g)s[g].marker.explicitlyCleared?l||(l=s.slice(0,g)):l&&l.push(s[g]);return l?l.length?l:null:s}function Qc(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var d=[],v=0;v<l.text.length;++v)d.push(kc(g[v]));return d}function Zu(s,l){var g=Qc(s,l),d=Mi(s,l);if(!g)return d;if(!d)return g;for(var v=0;v<g.length;++v){var A=g[v],b=d[v];if(A&&b)e:for(var y=0;y<b.length;++y){for(var w=b[y],U=0;U<A.length;++U)if(A[U].marker==w.marker)continue e;A.push(w)}else b&&(g[v]=b)}return g}function bn(s,l,g){for(var d=[],v=0;v<s.length;++v){var A=s[v];if(A.ranges){d.push(g?Rr.prototype.deepCopy.call(A):A);continue}var b=A.changes,y=[];d.push({changes:y});for(var w=0;w<b.length;++w){var U=b[w],k=void 0;if(y.push({from:U.from,to:U.to,text:U.text}),l)for(var J in U)(k=J.match(/^spans_(\d+)$/))&&hr(l,Number(k[1]))>-1&&(Ae(y)[J]=U[J],delete U[J])}}return d}function Ka(s,l,g,d){if(d){var v=s.anchor;if(g){var A=Xe(l,v)<0;A!=Xe(g,v)<0?(v=l,l=g):A!=Xe(l,g)<0&&(l=g)}return new lr(v,l)}else return new lr(g||l,l)}function aa(s,l,g,d,v){v==null&&(v=s.cm&&(s.cm.display.shift||s.extend)),xt(s,new Rr([Ka(s.sel.primary(),l,g,v)],0),d)}function Pu(s,l,g){for(var d=[],v=s.cm&&(s.cm.display.shift||s.extend),A=0;A<s.sel.ranges.length;A++)d[A]=Ka(s.sel.ranges[A],l[A],null,v);var b=Pe(s.cm,d,s.sel.primIndex);xt(s,b,g)}function el(s,l,g,d){var v=s.sel.ranges.slice(0);v[l]=g,xt(s,Pe(s.cm,v,s.sel.primIndex),d)}function ku(s,l,g,d){xt(s,Ri(l,g),d)}function _c(s,l,g){var d={ranges:l.ranges,update:function(v){this.ranges=[];for(var A=0;A<v.length;A++)this.ranges[A]=new lr(Ye(s,v[A].anchor),Ye(s,v[A].head))},origin:g&&g.origin};return ar(s,"beforeSelectionChange",s,d),s.cm&&ar(s.cm,"beforeSelectionChange",s.cm,d),d.ranges!=l.ranges?Pe(s.cm,d.ranges,d.ranges.length-1):l}function Qu(s,l,g){var d=s.history.done,v=Ae(d);v&&v.ranges?(d[d.length-1]=l,Tn(s,l,g)):xt(s,l,g)}function xt(s,l,g){Tn(s,l,g),Pc(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Tn(s,l,g){(tr(s,"beforeSelectionChange")||s.cm&&tr(s.cm,"beforeSelectionChange"))&&(l=_c(s,l,g));var d=g&&g.bias||(Xe(l.primary().head,s.sel.primary().head)<0?-1:1);Rn(s,Sn(s,l,d,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&In(s.cm)}function Rn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,ts(s.cm)),rt(s,"cursorActivity",s))}function yn(s){Rn(s,Sn(s,s.sel,null,!1))}function Sn(s,l,g,d){for(var v,A=0;A<l.ranges.length;A++){var b=l.ranges[A],y=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[A],w=la(s,b.anchor,y&&y.anchor,g,d),U=b.head==b.anchor?w:la(s,b.head,y&&y.head,g,d);(v||w!=b.anchor||U!=b.head)&&(v||(v=l.ranges.slice(0,A)),v[A]=new lr(w,U))}return v?Pe(s.cm,v,l.primIndex):l}function gs(s,l,g,d,v){var A=Ie(s,l.line);if(A.markedSpans)for(var b=0;b<A.markedSpans.length;++b){var y=A.markedSpans[b],w=y.marker,U="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,k="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(U?y.from<=l.ch:y.from<l.ch))&&(y.to==null||(k?y.to>=l.ch:y.to>l.ch))){if(v&&(ar(w,"beforeCursorEnter"),w.explicitlyCleared))if(A.markedSpans){--b;continue}else break;if(!w.atomic)continue;if(g){var J=w.find(d<0?1:-1),re=void 0;if((d<0?k:U)&&(J=_u(s,J,-d,J&&J.line==l.line?A:null)),J&&J.line==l.line&&(re=Xe(J,g))&&(d<0?re<0:re>0))return gs(s,J,l,d,v)}var ee=w.find(d<0?-1:1);return(d<0?U:k)&&(ee=_u(s,ee,d,ee.line==l.line?A:null)),ee?gs(s,ee,l,d,v):null}}return l}function la(s,l,g,d,v){var A=d||1,b=gs(s,l,g,A,v)||!v&&gs(s,l,g,A,!0)||gs(s,l,g,-A,v)||!v&&gs(s,l,g,-A,!0);return b||(s.cantEdit=!0,he(s.first,0))}function _u(s,l,g,d){return g<0&&l.ch==0?l.line>s.first?Ye(s,he(l.line-1)):null:g>0&&l.ch==(d||Ie(s,l.line)).text.length?l.line<s.first+s.size-1?he(l.line+1,0):null:new he(l.line,l.ch+g)}function Hu(s){s.setSelection(he(s.firstLine(),0),he(s.lastLine()),pe)}function Xu(s,l,g){var d={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return d.canceled=!0}};return g&&(d.update=function(v,A,b,y){v&&(d.from=Ye(s,v)),A&&(d.to=Ye(s,A)),b&&(d.text=b),y!==void 0&&(d.origin=y)}),ar(s,"beforeChange",s,d),s.cm&&ar(s.cm,"beforeChange",s.cm,d),d.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:d.from,to:d.to,text:d.text,origin:d.origin}}function Ln(s,l,g){if(s.cm){if(!s.cm.curOp)return tt(s.cm,Ln)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"))&&(l=Xu(s,l,!0),!l))){var d=ko&&!g&&Ss(s,l.from,l.to);if(d)for(var v=d.length-1;v>=0;--v)Yu(s,{from:d[v].from,to:d[v].to,text:v?[""]:l.text,origin:l.origin});else Yu(s,l)}}function Yu(s,l){if(!(l.text.length==1&&l.text[0]==""&&Xe(l.from,l.to)==0)){var g=_i(s,l);Mu(s,l,g,s.cm?s.cm.curOp.id:NaN),oo(s,l,g,Mi(s,l));var d=[];Si(s,function(v,A){!A&&hr(d,v.history)==-1&&(ju(v.history,l),d.push(v.history)),oo(v,l,null,Mi(v,l))})}}function ua(s,l,g){var d=s.cm&&s.cm.state.suppressEdits;if(!(d&&!g)){for(var v=s.history,A,b=s.sel,y=l=="undo"?v.done:v.undone,w=l=="undo"?v.undone:v.done,U=0;U<y.length&&(A=y[U],!(g?A.ranges&&!A.equals(s.sel):!A.ranges));U++);if(U!=y.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(A=y.pop(),A.ranges){if(ds(A,w),g&&!A.equals(s.sel)){xt(s,A,{clearRedo:!1});return}b=A}else if(d){y.push(A);return}else break;var k=[];ds(b,w),w.push({changes:k,generation:v.generation}),v.generation=A.generation||++v.maxGeneration;for(var J=tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"),re=function(ce){var de=A.changes[ce];if(de.origin=l,J&&!Xu(s,de,!1))return y.length=0,{};k.push(no(s,de));var ve=ce?_i(s,de):Ae(y);oo(s,de,ve,Zu(s,de)),!ce&&s.cm&&s.cm.scrollIntoView({from:de.from,to:yi(de)});var Ce=[];Si(s,function(xe,be){!be&&hr(Ce,xe.history)==-1&&(ju(xe.history,de),Ce.push(xe.history)),oo(xe,de,null,Zu(xe,de))})},ee=A.changes.length-1;ee>=0;--ee){var oe=re(ee);if(oe)return oe.v}}}}function Ju(s,l){if(l!=0&&(s.first+=l,s.sel=new Rr(Ot(s.sel.ranges,function(v){return new lr(he(v.anchor.line+l,v.anchor.ch),he(v.head.line+l,v.head.ch))}),s.sel.primIndex),s.cm)){vt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,d=g.viewFrom;d<g.viewTo;d++)kt(s.cm,d,"gutter")}}function oo(s,l,g,d){if(s.cm&&!s.cm.curOp)return tt(s.cm,oo)(s,l,g,d);if(l.to.line<s.first){Ju(s,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>s.lastLine())){if(l.from.line<s.first){var v=l.text.length-1-(s.first-l.from.line);Ju(s,v),l={from:he(s.first,0),to:he(l.to.line+v,l.to.ch),text:[Ae(l.text)],origin:l.origin}}var A=s.lastLine();l.to.line>A&&(l={from:l.from,to:he(A,Ie(s,A).text.length),text:[l.text[0]],origin:l.origin}),l.removed=dt(s,l.from,l.to),g||(g=_i(s,l)),s.cm?Hc(s.cm,l,d):so(s,l,d),Tn(s,g,pe),s.cantEdit&&la(s,he(s.firstLine(),0))&&(s.cantEdit=!1)}}function Hc(s,l,g){var d=s.doc,v=s.display,A=l.from,b=l.to,y=!1,w=A.line;s.options.lineWrapping||(w=_e(ai(Ie(d,A.line))),d.iter(w,b.line+1,function(ee){if(ee==v.maxLine)return y=!0,!0})),d.sel.contains(l.from,l.to)>-1&&ts(s),so(d,l,g,xn(s)),s.options.lineWrapping||(d.iter(w,A.line+l.text.length,function(ee){var oe=Xo(ee);oe>v.maxLineLength&&(v.maxLine=ee,v.maxLineLength=oe,v.maxLineChanged=!0,y=!1)}),y&&(s.curOp.updateMaxLine=!0)),Kf(d,A.line),ro(s,400);var U=l.text.length-(b.line-A.line)-1;l.full?vt(s):A.line==b.line&&l.text.length==1&&!hs(s.doc,l)?kt(s,A.line,"text"):vt(s,A.line,b.line+1,U);var k=tr(s,"changes"),J=tr(s,"change");if(J||k){var re={from:A,to:b,text:l.text,removed:l.removed,origin:l.origin};J&&rt(s,"change",s,re),k&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(re)}s.display.selForContextMenu=null}function wn(s,l,g,d,v){var A;d||(d=g),Xe(d,g)<0&&(A=[d,g],g=A[0],d=A[1]),typeof l=="string"&&(l=s.splitLines(l)),Ln(s,{from:g,to:d,text:l,origin:v})}function $u(s,l,g,d){g<s.line?s.line+=d:l<s.line&&(s.line=l,s.ch=0)}function zu(s,l,g,d){for(var v=0;v<s.length;++v){var A=s[v],b=!0;if(A.ranges){A.copied||(A=s[v]=A.deepCopy(),A.copied=!0);for(var y=0;y<A.ranges.length;y++)$u(A.ranges[y].anchor,l,g,d),$u(A.ranges[y].head,l,g,d);continue}for(var w=0;w<A.changes.length;++w){var U=A.changes[w];if(g<U.from.line)U.from=he(U.from.line+d,U.from.ch),U.to=he(U.to.line+d,U.to.ch);else if(l<=U.to.line){b=!1;break}}b||(s.splice(0,v+1),v=0)}}function ju(s,l){var g=l.from.line,d=l.to.line,v=l.text.length-(d-g)-1;zu(s.done,g,d,v),zu(s.undone,g,d,v)}function ao(s,l,g,d){var v=l,A=l;return typeof l=="number"?A=Ie(s,eu(s,l)):v=_e(l),v==null?null:(d(A,v)&&s.cm&&kt(s.cm,v,g),A)}function lo(s){this.lines=s,this.parent=null;for(var l=0,g=0;g<s.length;++g)s[g].parent=this,l+=s[g].height;this.height=l}lo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,d=s+l;g<d;++g){var v=this.lines[g];this.height-=v.height,ic(v),rt(v,"delete")}this.lines.splice(s,l)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,l,g){this.height+=g,this.lines=this.lines.slice(0,s).concat(l).concat(this.lines.slice(s));for(var d=0;d<l.length;++d)l[d].parent=this},iterN:function(s,l,g){for(var d=s+l;s<d;++s)if(g(this.lines[s]))return!0}};function uo(s){this.children=s;for(var l=0,g=0,d=0;d<s.length;++d){var v=s[d];l+=v.chunkSize(),g+=v.height,v.parent=this}this.size=l,this.height=g,this.parent=null}uo.prototype={chunkSize:function(){return this.size},removeInner:function(s,l){this.size-=l;for(var g=0;g<this.children.length;++g){var d=this.children[g],v=d.chunkSize();if(s<v){var A=Math.min(l,v-s),b=d.height;if(d.removeInner(s,A),this.height-=b-d.height,v==A&&(this.children.splice(g--,1),d.parent=null),(l-=A)==0)break;s=0}else s-=v}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof lo))){var y=[];this.collapse(y),this.children=[new lo(y)],this.children[0].parent=this}},collapse:function(s){for(var l=0;l<this.children.length;++l)this.children[l].collapse(s)},insertInner:function(s,l,g){this.size+=l.length,this.height+=g;for(var d=0;d<this.children.length;++d){var v=this.children[d],A=v.chunkSize();if(s<=A){if(v.insertInner(s,l,g),v.lines&&v.lines.length>50){for(var b=v.lines.length%25+25,y=b;y<v.lines.length;){var w=new lo(v.lines.slice(y,y+=25));v.height-=w.height,this.children.splice(++d,0,w),w.parent=this}v.lines=v.lines.slice(0,b),this.maybeSpill()}break}s-=A}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new uo(l);if(s.parent){s.size-=g.size,s.height-=g.height;var v=hr(s.parent.children,s);s.parent.children.splice(v+1,0,g)}else{var d=new uo(s.children);d.parent=s,s.children=[d,g],s=d}g.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,l,g){for(var d=0;d<this.children.length;++d){var v=this.children[d],A=v.chunkSize();if(s<A){var b=Math.min(l,A-s);if(v.iterN(s,b,g))return!0;if((l-=b)==0)break;s=0}else s-=A}}};var fo=function(s,l,g){if(g)for(var d in g)g.hasOwnProperty(d)&&(this[d]=g[d]);this.doc=s,this.node=l};fo.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,d=_e(g);if(!(d==null||!l)){for(var v=0;v<l.length;++v)l[v]==this&&l.splice(v--,1);l.length||(g.widgets=null);var A=Zi(this);Pt(g,Math.max(0,g.height-A)),s&&(Qt(s,function(){qu(s,g,-A),kt(s,d,"widget")}),rt(s,"lineWidgetCleared",s,this,d))}},fo.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,d=this.line;this.height=null;var v=Zi(this)-l;v&&(Ii(this.doc,d)||Pt(d,d.height+v),g&&Qt(g,function(){g.curOp.forceUpdate=!0,qu(g,d,v),rt(g,"lineWidgetChanged",g,s,_e(d))}))},is(fo);function qu(s,l,g){Wi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Ya(s,g)}function Xc(s,l,g,d){var v=new fo(s,g,d),A=s.cm;return A&&v.noHScroll&&(A.display.alignWidgets=!0),ao(s,l,"widget",function(b){var y=b.widgets||(b.widgets=[]);if(v.insertAt==null?y.push(v):y.splice(Math.min(y.length,Math.max(0,v.insertAt)),0,v),v.line=b,A&&!Ii(s,b)){var w=Wi(b)<s.scrollTop;Pt(b,b.height+Zi(v)),w&&Ya(A,v.height),A.curOp.forceUpdate=!0}return!0}),A&&rt(A,"lineWidgetAdded",A,v,typeof l=="number"?l:_e(l)),v}var Ku=0,Es=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++Ku};Es.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Ws(s),tr(this,"clear")){var g=this.find();g&&rt(this,"clear",g.from,g.to)}for(var d=null,v=null,A=0;A<this.lines.length;++A){var b=this.lines[A],y=Ts(b.markedSpans,this);s&&!this.collapsed?kt(s,_e(b),"text"):s&&(y.to!=null&&(v=_e(b)),y.from!=null&&(d=_e(b))),b.markedSpans=Ua(b.markedSpans,y),y.from==null&&this.collapsed&&!Ii(this.doc,b)&&s&&Pt(b,Mr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var U=ai(this.lines[w]),k=Xo(U);k>s.display.maxLineLength&&(s.display.maxLine=U,s.display.maxLineLength=k,s.display.maxLineChanged=!0)}d!=null&&s&&this.collapsed&&vt(s,d,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&yn(s.doc)),s&&rt(s,"markerCleared",s,this,d,v),l&&Zs(s),this.parent&&this.parent.clear()}},Es.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,d,v=0;v<this.lines.length;++v){var A=this.lines[v],b=Ts(A.markedSpans,this);if(b.from!=null&&(g=he(l?A:_e(A),b.from),s==-1))return g;if(b.to!=null&&(d=he(l?A:_e(A),b.to),s==1))return d}return g&&{from:g,to:d}},Es.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,d=this.doc.cm;!l||!d||Qt(d,function(){var v=l.line,A=_e(l.line),b=Et(d,A);if(b&&(Cu(b),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ii(g.doc,v)&&g.height!=null){var y=g.height;g.height=null;var w=Zi(g)-y;w&&Pt(v,v.height+w)}rt(d,"markerChanged",d,s)})},Es.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||hr(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Es.prototype.detachLine=function(s){if(this.lines.splice(hr(this.lines,s),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},is(Es);function On(s,l,g,d,v){if(d&&d.shared)return Yc(s,l,g,d,v);if(s.cm&&!s.cm.curOp)return tt(s.cm,On)(s,l,g,d,v);var A=new Es(s,v),b=Xe(l,g);if(d&&zr(d,A,!1),b>0||b==0&&A.clearWhenEmpty!==!1)return A;if(A.replacedWith&&(A.collapsed=!0,A.widgetNode=xr("span",[A.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||A.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(A.widgetNode.insertLeft=!0)),A.collapsed){if(os(s,l.line,l,g,A)||l.line!=g.line&&os(s,g.line,l,g,A))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yt()}A.addToHistory&&Mu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,w=s.cm,U;if(s.iter(y,g.line+1,function(J){w&&A.collapsed&&!w.options.lineWrapping&&ai(J)==w.display.maxLine&&(U=!0),A.collapsed&&y!=l.line&&Pt(J,0),Di(J,new un(A,y==l.line?l.ch:null,y==g.line?g.ch:null),s.cm&&s.cm.curOp),++y}),A.collapsed&&s.iter(l.line,g.line+1,function(J){Ii(s,J)&&Pt(J,0)}),A.clearOnEnter&&Ge(A,"beforeCursorEnter",function(){return A.clear()}),A.readOnly&&(ec(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),A.collapsed&&(A.id=++Ku,A.atomic=!0),w){if(U&&(w.curOp.updateMaxLine=!0),A.collapsed)vt(w,l.line,g.line+1);else if(A.className||A.startStyle||A.endStyle||A.css||A.attributes||A.title)for(var k=l.line;k<=g.line;k++)kt(w,k,"text");A.atomic&&yn(w.doc),rt(w,"markerAdded",w,A)}return A}var co=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();rt(this,"clear")}},co.prototype.find=function(s,l){return this.primary.find(s,l)},is(co);function Yc(s,l,g,d,v){d=zr(d),d.shared=!1;var A=[On(s,l,g,d,v)],b=A[0],y=d.widgetNode;return Si(s,function(w){y&&(d.widgetNode=y.cloneNode(!0)),A.push(On(w,Ye(w,l),Ye(w,g),d,v));for(var U=0;U<w.linked.length;++U)if(w.linked[U].isParent)return;b=Ae(A)}),new co(A,b)}function ef(s){return s.findMarks(he(s.first,0),s.clipPos(he(s.lastLine())),function(l){return l.parent})}function Jc(s,l){for(var g=0;g<l.length;g++){var d=l[g],v=d.find(),A=s.clipPos(v.from),b=s.clipPos(v.to);if(Xe(A,b)){var y=On(s,A,b,d.primary,d.primary.type);d.markers.push(y),y.parent=d}}}function $c(s){for(var l=function(d){var v=s[d],A=[v.primary.doc];Si(v.primary.doc,function(w){return A.push(w)});for(var b=0;b<v.markers.length;b++){var y=v.markers[b];hr(A,y.doc)==-1&&(y.parent=null,v.markers.splice(b--,1))}},g=0;g<s.length;g++)l(g)}var zc=0,Bt=function(s,l,g,d,v){if(!(this instanceof Bt))return new Bt(s,l,g,d,v);g==null&&(g=0),uo.call(this,[new lo([new hn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var A=he(g,0);this.sel=Ri(A),this.history=new Nn(null),this.id=++zc,this.modeOption=l,this.lineSep=d,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),so(this,{from:A,to:A,text:s}),xt(this,Ri(A),pe)};Bt.prototype=rs(uo.prototype,{constructor:Bt,iter:function(s,l,g){g?this.iterN(s-this.first,l-s,g):this.iterN(this.first,this.first+this.size,s)},insert:function(s,l){for(var g=0,d=0;d<l.length;++d)g+=l[d].height;this.insertInner(s-this.first,l,g)},remove:function(s,l){this.removeInner(s-this.first,l)},getValue:function(s){var l=vi(this,this.first,this.first+this.size);return s===!1?l:l.join(s||this.lineSeparator())},setValue:it(function(s){var l=he(this.first,0),g=this.first+this.size-1;Ln(this,{from:l,to:he(g,Ie(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&jn(this.cm,0,0),xt(this,Ri(l),pe)}),replaceRange:function(s,l,g,d){l=Ye(this,l),g=g?Ye(this,g):l,wn(this,s,l,g,d)},getRange:function(s,l,g){var d=dt(this,Ye(this,s),Ye(this,l));return g===!1?d:g===""?d.join(""):d.join(g||this.lineSeparator())},getLine:function(s){var l=this.getLineHandle(s);return l&&l.text},getLineHandle:function(s){if(ss(this,s))return Ie(this,s)},getLineNumber:function(s){return _e(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=Ie(this,s)),ai(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return Ye(this,s)},getCursor:function(s){var l=this.sel.primary(),g;return s==null||s=="head"?g=l.head:s=="anchor"?g=l.anchor:s=="end"||s=="to"||s===!1?g=l.to():g=l.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:it(function(s,l,g){ku(this,Ye(this,typeof s=="number"?he(s,l||0):s),null,g)}),setSelection:it(function(s,l,g){ku(this,Ye(this,s),Ye(this,l||s),g)}),extendSelection:it(function(s,l,g){aa(this,Ye(this,s),l&&Ye(this,l),g)}),extendSelections:it(function(s,l){Pu(this,ru(this,s),l)}),extendSelectionsBy:it(function(s,l){var g=Ot(this.sel.ranges,s);Pu(this,ru(this,g),l)}),setSelections:it(function(s,l,g){if(s.length){for(var d=[],v=0;v<s.length;v++)d[v]=new lr(Ye(this,s[v].anchor),Ye(this,s[v].head||s[v].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),xt(this,Pe(this.cm,d,l),g)}}),addSelection:it(function(s,l,g){var d=this.sel.ranges.slice(0);d.push(new lr(Ye(this,s),Ye(this,l||s))),xt(this,Pe(this.cm,d,d.length-1),g)}),getSelection:function(s){for(var l=this.sel.ranges,g,d=0;d<l.length;d++){var v=dt(this,l[d].from(),l[d].to());g=g?g.concat(v):v}return s===!1?g:g.join(s||this.lineSeparator())},getSelections:function(s){for(var l=[],g=this.sel.ranges,d=0;d<g.length;d++){var v=dt(this,g[d].from(),g[d].to());s!==!1&&(v=v.join(s||this.lineSeparator())),l[d]=v}return l},replaceSelection:function(s,l,g){for(var d=[],v=0;v<this.sel.ranges.length;v++)d[v]=s;this.replaceSelections(d,l,g||"+input")},replaceSelections:it(function(s,l,g){for(var d=[],v=this.sel,A=0;A<v.ranges.length;A++){var b=v.ranges[A];d[A]={from:b.from(),to:b.to(),text:this.splitLines(s[A]),origin:g}}for(var y=l&&l!="end"&&Mc(this,d,l),w=d.length-1;w>=0;w--)Ln(this,d[w]);y?Qu(this,y):this.cm&&In(this.cm)}),undo:it(function(){ua(this,"undo")}),redo:it(function(){ua(this,"redo")}),undoSelection:it(function(){ua(this,"undo",!0)}),redoSelection:it(function(){ua(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,l=0,g=0,d=0;d<s.done.length;d++)s.done[d].ranges||++l;for(var v=0;v<s.undone.length;v++)s.undone[v].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new Nn(this.history),Si(this,function(l){return l.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:bn(this.history.done),undone:bn(this.history.undone)}},setHistory:function(s){var l=this.history=new Nn(this.history);l.done=bn(s.done.slice(0),null,!0),l.undone=bn(s.undone.slice(0),null,!0)},setGutterMarker:it(function(s,l,g){return ao(this,s,"gutter",function(d){var v=d.gutterMarkers||(d.gutterMarkers={});return v[l]=g,!g&&rr(v)&&(d.gutterMarkers=null),!0})}),clearGutter:it(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&ao(l,g,"gutter",function(){return g.gutterMarkers[s]=null,rr(g.gutterMarkers)&&(g.gutterMarkers=null),!0})})}),lineInfo:function(s){var l;if(typeof s=="number"){if(!ss(this,s)||(l=s,s=Ie(this,s),!s))return null}else if(l=_e(s),l==null)return null;return{line:l,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:it(function(s,l,g){return ao(this,s,l=="gutter"?"gutter":"class",function(d){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!d[v])d[v]=g;else{if(Re(g).test(d[v]))return!1;d[v]+=" "+g}return!0})}),removeLineClass:it(function(s,l,g){return ao(this,s,l=="gutter"?"gutter":"class",function(d){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",A=d[v];if(A)if(g==null)d[v]=null;else{var b=A.match(Re(g));if(!b)return!1;var y=b.index+b[0].length;d[v]=A.slice(0,b.index)+(!b.index||y==A.length?"":" ")+A.slice(y)||null}else return!1;return!0})}),addLineWidget:it(function(s,l,g){return Xc(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return On(this,Ye(this,s),Ye(this,l),g,g&&g.type||"range")},setBookmark:function(s,l){var g={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return s=Ye(this,s),On(this,s,s,g,"bookmark")},findMarksAt:function(s){s=Ye(this,s);var l=[],g=Ie(this,s.line).markedSpans;if(g)for(var d=0;d<g.length;++d){var v=g[d];(v.from==null||v.from<=s.ch)&&(v.to==null||v.to>=s.ch)&&l.push(v.marker.parent||v.marker)}return l},findMarks:function(s,l,g){s=Ye(this,s),l=Ye(this,l);var d=[],v=s.line;return this.iter(s.line,l.line+1,function(A){var b=A.markedSpans;if(b)for(var y=0;y<b.length;y++){var w=b[y];!(w.to!=null&&v==s.line&&s.ch>=w.to||w.from==null&&v!=s.line||w.from!=null&&v==l.line&&w.from>=l.ch)&&(!g||g(w.marker))&&d.push(w.marker.parent||w.marker)}++v}),d},getAllMarks:function(){var s=[];return this.iter(function(l){var g=l.markedSpans;if(g)for(var d=0;d<g.length;++d)g[d].from!=null&&s.push(g[d].marker)}),s},posFromIndex:function(s){var l,g=this.first,d=this.lineSeparator().length;return this.iter(function(v){var A=v.text.length+d;if(A>s)return l=s,!0;s-=A,++g}),Ye(this,he(g,l))},indexFromPos:function(s){s=Ye(this,s);var l=s.ch;if(s.line<this.first||s.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,s.line,function(d){l+=d.text.length+g}),l},copy:function(s){var l=new Bt(vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,s&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(s){s||(s={});var l=this.first,g=this.first+this.size;s.from!=null&&s.from>l&&(l=s.from),s.to!=null&&s.to<g&&(g=s.to);var d=new Bt(vi(this,l,g),s.mode||this.modeOption,l,this.lineSep,this.direction);return s.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:s.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],Jc(d,ef(this)),d},unlinkDoc:function(s){if(s instanceof yr&&(s=s.doc),this.linked)for(var l=0;l<this.linked.length;++l){var g=this.linked[l];if(g.doc==s){this.linked.splice(l,1),s.unlinkDoc(this),$c(ef(this));break}}if(s.history==this.history){var d=[s.id];Si(s,function(v){return d.push(v.id)},!0),s.history=new Nn(null),s.history.done=bn(this.history.done,d),s.history.undone=bn(this.history.undone,d)}},iterLinkedDocs:function(s){Si(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):nn(s)},lineSeparator:function(){return this.lineSep||`
11
- `},setDirection:it(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&qa(this.cm))})}),Bt.prototype.eachLine=Bt.prototype.iter;var rf=0;function jc(s){var l=this;if(tf(l),!(dr(l,s)||Pi(l.display,s))){ht(s),O&&(rf=+new Date);var g=li(l,s,!0),d=s.dataTransfer.files;if(!(!g||l.isReadOnly()))if(d&&d.length&&window.FileReader&&window.File)for(var v=d.length,A=Array(v),b=0,y=function(){++b==v&&tt(l,function(){g=Ye(l.doc,g);var ee={from:g,to:g,text:l.doc.splitLines(A.filter(function(oe){return oe!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ln(l.doc,ee),Qu(l.doc,Ri(Ye(l.doc,g),Ye(l.doc,yi(ee))))})()},w=function(ee,oe){if(l.options.allowDropFileTypes&&hr(l.options.allowDropFileTypes,ee.type)==-1){y();return}var ce=new FileReader;ce.onerror=function(){return y()},ce.onload=function(){var de=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(de)){y();return}A[oe]=de,y()},ce.readAsText(ee)},U=0;U<d.length;U++)w(d[U],U);else{if(l.state.draggingText&&l.doc.sel.contains(g)>-1){l.state.draggingText(s),setTimeout(function(){return l.display.input.focus()},20);return}try{var k=s.dataTransfer.getData("Text");if(k){var J;if(l.state.draggingText&&!l.state.draggingText.copy&&(J=l.listSelections()),Tn(l.doc,Ri(g,g)),J)for(var re=0;re<J.length;++re)wn(l.doc,"",J[re].anchor,J[re].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function qc(s,l){if(O&&(!s.state.draggingText||+new Date-rf<100)){bs(l);return}if(!(dr(s,l)||Pi(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!M)){var g=me("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),$&&g.parentNode.removeChild(g)}}function Kc(s,l){var g=li(s,l);if(g){var d=document.createDocumentFragment();Vs(s,g,d),s.display.dragCursor||(s.display.dragCursor=me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Je(s.display.dragCursor,d)}}function tf(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function sf(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],d=0;d<l.length;d++){var v=l[d].CodeMirror;v&&g.push(v)}g.length&&g[0].operation(function(){for(var A=0;A<g.length;A++)s(g[A])})}}var nf=!1;function ep(){nf||(rp(),nf=!0)}function rp(){var s;Ge(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,sf(tp)},100))}),Ge(window,"blur",function(){return sf(Cn)})}function tp(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var ms={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},po=0;po<10;po++)ms[po+48]=ms[po+96]=String(po);for(var fa=65;fa<=90;fa++)ms[fa]=String.fromCharCode(fa);for(var ho=1;ho<=12;ho++)ms[ho+111]=ms[ho+63235]="F"+ho;var Hi={};Hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Hi.default=q?Hi.macDefault:Hi.pcDefault;function ip(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,d,v,A,b=0;b<l.length-1;b++){var y=l[b];if(/^(cmd|meta|m)$/i.test(y))A=!0;else if(/^a(lt)?$/i.test(y))g=!0;else if(/^(c|ctrl|control)$/i.test(y))d=!0;else if(/^s(hift)?$/i.test(y))v=!0;else throw new Error("Unrecognized modifier name: "+y)}return g&&(s="Alt-"+s),d&&(s="Ctrl-"+s),A&&(s="Cmd-"+s),v&&(s="Shift-"+s),s}function sp(s){var l={};for(var g in s)if(s.hasOwnProperty(g)){var d=s[g];if(/^(name|fallthrough|(de|at)tach)$/.test(g))continue;if(d=="..."){delete s[g];continue}for(var v=Ot(g.split(" "),ip),A=0;A<v.length;A++){var b=void 0,y=void 0;A==v.length-1?(y=v.join(" "),b=d):(y=v.slice(0,A+1).join(" "),b="...");var w=l[y];if(!w)l[y]=b;else if(w!=b)throw new Error("Inconsistent bindings for "+y)}delete s[g]}for(var U in l)s[U]=l[U];return s}function Un(s,l,g,d){l=ca(l);var v=l.call?l.call(s,d):l[s];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&g(v))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return Un(s,l.fallthrough,g,d);for(var A=0;A<l.fallthrough.length;A++){var b=Un(s,l.fallthrough[A],g,d);if(b)return b}}}function of(s){var l=typeof s=="string"?s:ms[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function af(s,l,g){var d=s;return l.altKey&&d!="Alt"&&(s="Alt-"+s),(fe?l.metaKey:l.ctrlKey)&&d!="Ctrl"&&(s="Ctrl-"+s),(fe?l.ctrlKey:l.metaKey)&&d!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&d!="Shift"&&(s="Shift-"+s),s}function lf(s,l){if($&&s.keyCode==34&&s.char)return!1;var g=ms[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),af(g,s,l))}function ca(s){return typeof s=="string"?Hi[s]:s}function Fn(s,l){for(var g=s.doc.sel.ranges,d=[],v=0;v<g.length;v++){for(var A=l(g[v]);d.length&&Xe(A.from,Ae(d).to)<=0;){var b=d.pop();if(Xe(b.from,A.from)<0){A.from=b.from;break}}d.push(A)}Qt(s,function(){for(var y=d.length-1;y>=0;y--)wn(s.doc,"",d[y].from,d[y].to,"+delete");In(s)})}function rl(s,l,g){var d=Nr(s.text,l+g,g);return d<0||d>s.text.length?null:d}function tl(s,l,g){var d=rl(s,l.ch,g);return d==null?null:new he(l.line,d,g<0?"after":"before")}function il(s,l,g,d,v){if(s){l.doc.direction=="rtl"&&(v=-v);var A=Tr(g,l.doc.direction);if(A){var b=v<0?Ae(A):A[0],y=v<0==(b.level==1),w=y?"after":"before",U;if(b.level>0||l.doc.direction=="rtl"){var k=En(l,g);U=v<0?g.text.length-1:0;var J=bi(l,k,U).top;U=ri(function(re){return bi(l,k,re).top==J},v<0==(b.level==1)?b.from:b.to-1,U),w=="before"&&(U=rl(g,U,1))}else U=v<0?b.to:b.from;return new he(d,U,w)}}return new he(d,v<0?g.text.length:0,v<0?"before":"after")}function np(s,l,g,d){var v=Tr(l,s.doc.direction);if(!v)return tl(l,g,d);g.ch>=l.text.length?(g.ch=l.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var A=bt(v,g.ch,g.sticky),b=v[A];if(s.doc.direction=="ltr"&&b.level%2==0&&(d>0?b.to>g.ch:b.from<g.ch))return tl(l,g,d);var y=function(ve,Ce){return rl(l,ve instanceof he?ve.ch:ve,Ce)},w,U=function(ve){return s.options.lineWrapping?(w=w||En(s,l),bu(s,l,w,ve)):{begin:0,end:l.text.length}},k=U(g.sticky=="before"?y(g,-1):g.ch);if(s.doc.direction=="rtl"||b.level==1){var J=b.level==1==d<0,re=y(g,J?1:-1);if(re!=null&&(J?re<=b.to&&re<=k.end:re>=b.from&&re>=k.begin)){var ee=J?"before":"after";return new he(g.line,re,ee)}}var oe=function(ve,Ce,xe){for(var be=function(vr,st){return st?new he(g.line,y(vr,1),"before"):new he(g.line,vr,"after")};ve>=0&&ve<v.length;ve+=Ce){var Ze=v[ve],De=Ce>0==(Ze.level!=1),Ke=De?xe.begin:y(xe.end,-1);if(Ze.from<=Ke&&Ke<Ze.to||(Ke=De?Ze.from:y(Ze.to,-1),xe.begin<=Ke&&Ke<xe.end))return be(Ke,De)}},ce=oe(A+d,d,k);if(ce)return ce;var de=d>0?k.end:y(k.begin,-1);return de!=null&&!(d>0&&de==l.text.length)&&(ce=oe(d>0?0:v.length-1,d,U(de)),ce)?ce:null}var go={selectAll:Hu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),pe)},killLine:function(s){return Fn(s,function(l){if(l.empty()){var g=Ie(s.doc,l.head.line).text.length;return l.head.ch==g&&l.head.line<s.lastLine()?{from:l.head,to:he(l.head.line+1,0)}:{from:l.head,to:he(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return Fn(s,function(l){return{from:he(l.from().line,0),to:Ye(s.doc,he(l.to().line+1,0))}})},delLineLeft:function(s){return Fn(s,function(l){return{from:he(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return{from:d,to:l.from()}})},delWrappedLineRight:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div");return{from:l.from(),to:d}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(he(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(he(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return uf(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return ff(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return op(s,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div")},fr)},goLineLeft:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:0,top:g},"div")},fr)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return d.ch<s.getLine(d.line).search(/\S/)?ff(s,l.head):d},fr)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var l=[],g=s.listSelections(),d=s.options.tabSize,v=0;v<g.length;v++){var A=g[v].from(),b=Ir(s.getLine(A.line),A.ch,d);l.push(ei(d-b%d))}s.replaceSelections(l)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Qt(s,function(){for(var l=s.listSelections(),g=[],d=0;d<l.length;d++)if(l[d].empty()){var v=l[d].head,A=Ie(s.doc,v.line).text;if(A){if(v.ch==A.length&&(v=new he(v.line,v.ch-1)),v.ch>0)v=new he(v.line,v.ch+1),s.replaceRange(A.charAt(v.ch-1)+A.charAt(v.ch-2),he(v.line,v.ch-2),v,"+transpose");else if(v.line>s.doc.first){var b=Ie(s.doc,v.line-1).text;b&&(v=new he(v.line,1),s.replaceRange(A.charAt(0)+s.doc.lineSeparator()+b.charAt(b.length-1),he(v.line-1,b.length-1),v,"+transpose"))}}g.push(new lr(v,v))}s.setSelections(g)})},newlineAndIndent:function(s){return Qt(s,function(){for(var l=s.listSelections(),g=l.length-1;g>=0;g--)s.replaceRange(s.doc.lineSeparator(),l[g].anchor,l[g].head,"+input");l=s.listSelections();for(var d=0;d<l.length;d++)s.indentLine(l[d].from().line,null,!0);In(s)})},openLine:function(s){return s.replaceSelection(`
12
- `,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function uf(s,l){var g=Ie(s.doc,l),d=ai(g);return d!=g&&(l=_e(d)),il(!0,s,d,l,1)}function op(s,l){var g=Ie(s.doc,l),d=rc(g);return d!=g&&(l=_e(d)),il(!0,s,g,l,-1)}function ff(s,l){var g=uf(s,l.line),d=Ie(s.doc,g.line),v=Tr(d,s.doc.direction);if(!v||v[0].level==0){var A=Math.max(g.ch,d.text.search(/\S/)),b=l.line==g.line&&l.ch<=A&&l.ch;return he(g.line,b?0:A,g.sticky)}return g}function pa(s,l,g){if(typeof l=="string"&&(l=go[l],!l))return!1;s.display.input.ensurePolled();var d=s.display.shift,v=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),v=l(s)!=Fe}finally{s.display.shift=d,s.state.suppressEdits=!1}return v}function ap(s,l,g){for(var d=0;d<s.state.keyMaps.length;d++){var v=Un(l,s.state.keyMaps[d],g,s);if(v)return v}return s.options.extraKeys&&Un(l,s.options.extraKeys,g,s)||Un(l,s.options.keyMap,g,s)}var lp=new Pr;function Eo(s,l,g,d){var v=s.state.keySeq;if(v){if(of(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:lp.set(50,function(){s.state.keySeq==v&&(s.state.keySeq=null,s.display.input.reset())}),cf(s,v+" "+l,g,d))return!0}return cf(s,l,g,d)}function cf(s,l,g,d){var v=ap(s,l,d);return v=="multi"&&(s.state.keySeq=l),v=="handled"&&rt(s,"keyHandled",s,l,g),(v=="handled"||v=="multi")&&(ht(g),Qa(s)),!!v}function pf(s,l){var g=lf(l,!0);return g?l.shiftKey&&!s.state.keySeq?Eo(s,"Shift-"+g,l,function(d){return pa(s,d,!0)})||Eo(s,g,l,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return pa(s,d)}):Eo(s,g,l,function(d){return pa(s,d)}):!1}function up(s,l,g){return Eo(s,"'"+g+"'",l,function(d){return pa(s,d,!0)})}var sl=null;function hf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=$r(wt(l)),!dr(l,s))){O&&D<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var d=pf(l,s);$&&(sl=d?g:null,!d&&g==88&&!kn&&(q?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!q&&!d&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&fp(l)}}function fp(s){var l=s.display.lineDiv;ze(l,"CodeMirror-crosshair");function g(d){(d.keyCode==18||!d.altKey)&&(Le(l,"CodeMirror-crosshair"),kr(document,"keyup",g),kr(document,"mouseover",g))}Ge(document,"keyup",g),Ge(document,"mouseover",g)}function df(s){s.keyCode==16&&(this.doc.sel.shift=!1),dr(this,s)}function gf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&!(Pi(l.display,s)||dr(l,s)||s.ctrlKey&&!s.altKey||q&&s.metaKey)){var g=s.keyCode,d=s.charCode;if($&&g==sl){sl=null,ht(s);return}if(!($&&(!s.which||s.which<10)&&pf(l,s))){var v=String.fromCharCode(d??g);v!="\b"&&(up(l,s,v)||l.display.input.onKeyPress(s))}}}var cp=400,nl=function(s,l,g){this.time=s,this.pos=l,this.button=g};nl.prototype.compare=function(s,l,g){return this.time+cp>s&&Xe(l,this.pos)==0&&g==this.button};var mo,vo;function pp(s,l){var g=+new Date;return vo&&vo.compare(g,s,l)?(mo=vo=null,"triple"):mo&&mo.compare(g,s,l)?(vo=new nl(g,s,l),mo=null,"double"):(mo=new nl(g,s,l),vo=null,"single")}function Ef(s){var l=this,g=l.display;if(!(dr(l,s)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=s.shiftKey,Pi(g,s)){Z||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!ol(l,s)){var d=li(l,s),v=tn(s),A=d?pp(d,v):"single";ut(l).focus(),v==1&&l.state.selectingText&&l.state.selectingText(s),!(d&&hp(l,v,d,A,s))&&(v==1?d?gp(l,d,A,s):rn(s)==g.scroller&&ht(s):v==2?(d&&aa(l.doc,d),setTimeout(function(){return g.input.focus()},20)):v==3&&(ye?l.display.input.onContextMenu(s):_a(l)))}}}function hp(s,l,g,d,v){var A="Click";return d=="double"?A="Double"+A:d=="triple"&&(A="Triple"+A),A=(l==1?"Left":l==2?"Middle":"Right")+A,Eo(s,af(A,v),v,function(b){if(typeof b=="string"&&(b=go[b]),!b)return!1;var y=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y=b(s,g)!=Fe}finally{s.state.suppressEdits=!1}return y})}function dp(s,l,g){var d=s.getOption("configureMouse"),v=d?d(s,l,g):{};if(v.unit==null){var A=te?g.shiftKey&&g.metaKey:g.altKey;v.unit=A?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(v.extend==null||s.doc.extend)&&(v.extend=s.doc.extend||g.shiftKey),v.addNew==null&&(v.addNew=q?g.metaKey:g.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(q?g.altKey:g.ctrlKey)),v}function gp(s,l,g,d){O?setTimeout(je(Tu,s),0):s.curOp.focus=$r(wt(s));var v=dp(s,g,d),A=s.doc.sel,b;s.options.dragDrop&&Bo&&!s.isReadOnly()&&g=="single"&&(b=A.contains(l))>-1&&(Xe((b=A.ranges[b]).from(),l)<0||l.xRel>0)&&(Xe(b.to(),l)>0||l.xRel<0)?Ep(s,d,l,v):mp(s,d,l,v)}function Ep(s,l,g,d){var v=s.display,A=!1,b=tt(s,function(U){Z&&(v.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:_a(s)),kr(v.wrapper.ownerDocument,"mouseup",b),kr(v.wrapper.ownerDocument,"mousemove",y),kr(v.scroller,"dragstart",w),kr(v.scroller,"drop",b),A||(ht(U),d.addNew||aa(s.doc,g,null,null,d.extend),Z&&!M||O&&D==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),y=function(U){A=A||Math.abs(l.clientX-U.clientX)+Math.abs(l.clientY-U.clientY)>=10},w=function(){return A=!0};Z&&(v.scroller.draggable=!0),s.state.draggingText=b,b.copy=!d.moveOnDrag,Ge(v.wrapper.ownerDocument,"mouseup",b),Ge(v.wrapper.ownerDocument,"mousemove",y),Ge(v.scroller,"dragstart",w),Ge(v.scroller,"drop",b),s.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function mf(s,l,g){if(g=="char")return new lr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new lr(he(l.line,0),Ye(s.doc,he(l.line+1,0)));var d=g(s,l);return new lr(d.from,d.to)}function mp(s,l,g,d){O&&_a(s);var v=s.display,A=s.doc;ht(l);var b,y,w=A.sel,U=w.ranges;if(d.addNew&&!d.extend?(y=A.sel.contains(g),y>-1?b=U[y]:b=new lr(g,g)):(b=A.sel.primary(),y=A.sel.primIndex),d.unit=="rectangle")d.addNew||(b=new lr(g,g)),g=li(s,l,!0,!0),y=-1;else{var k=mf(s,g,d.unit);d.extend?b=Ka(b,k.anchor,k.head,d.extend):b=k}d.addNew?y==-1?(y=U.length,xt(A,Pe(s,U.concat([b]),y),{scroll:!1,origin:"*mouse"})):U.length>1&&U[y].empty()&&d.unit=="char"&&!d.extend?(xt(A,Pe(s,U.slice(0,y).concat(U.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=A.sel):el(A,y,b,Er):(y=0,xt(A,new Rr([b],0),Er),w=A.sel);var J=g;function re(xe){if(Xe(J,xe)!=0)if(J=xe,d.unit=="rectangle"){for(var be=[],Ze=s.options.tabSize,De=Ir(Ie(A,g.line).text,g.ch,Ze),Ke=Ir(Ie(A,xe.line).text,xe.ch,Ze),vr=Math.min(De,Ke),st=Math.max(De,Ke),Lr=Math.min(g.line,xe.line),_t=Math.min(s.lastLine(),Math.max(g.line,xe.line));Lr<=_t;Lr++){var Vt=Ie(A,Lr).text,_r=we(Vt,vr,Ze);vr==st?be.push(new lr(he(Lr,_r),he(Lr,_r))):Vt.length>_r&&be.push(new lr(he(Lr,_r),he(Lr,we(Vt,st,Ze))))}be.length||be.push(new lr(g,g)),xt(A,Pe(s,w.ranges.slice(0,y).concat(be),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(xe)}else{var Dt=b,lt=mf(s,xe,d.unit),jr=Dt.anchor,Hr;Xe(lt.anchor,jr)>0?(Hr=lt.head,jr=Zo(Dt.from(),lt.anchor)):(Hr=lt.anchor,jr=Wo(Dt.to(),lt.head));var Fr=w.ranges.slice(0);Fr[y]=vp(s,new lr(Ye(A,jr),Hr)),xt(A,Pe(s,Fr,y),Er)}}var ee=v.wrapper.getBoundingClientRect(),oe=0;function ce(xe){var be=++oe,Ze=li(s,xe,!0,d.unit=="rectangle");if(Ze)if(Xe(Ze,J)!=0){s.curOp.focus=$r(wt(s)),re(Ze);var De=qo(v,A);(Ze.line>=De.to||Ze.line<De.from)&&setTimeout(tt(s,function(){oe==be&&ce(xe)}),150)}else{var Ke=xe.clientY<ee.top?-20:xe.clientY>ee.bottom?20:0;Ke&&setTimeout(tt(s,function(){oe==be&&(v.scroller.scrollTop+=Ke,ce(xe))}),50)}}function de(xe){s.state.selectingText=!1,oe=1/0,xe&&(ht(xe),v.input.focus()),kr(v.wrapper.ownerDocument,"mousemove",ve),kr(v.wrapper.ownerDocument,"mouseup",Ce),A.history.lastSelOrigin=null}var ve=tt(s,function(xe){xe.buttons===0||!tn(xe)?de(xe):ce(xe)}),Ce=tt(s,de);s.state.selectingText=Ce,Ge(v.wrapper.ownerDocument,"mousemove",ve),Ge(v.wrapper.ownerDocument,"mouseup",Ce)}function vp(s,l){var g=l.anchor,d=l.head,v=Ie(s.doc,g.line);if(Xe(g,d)==0&&g.sticky==d.sticky)return l;var A=Tr(v);if(!A)return l;var b=bt(A,g.ch,g.sticky),y=A[b];if(y.from!=g.ch&&y.to!=g.ch)return l;var w=b+(y.from==g.ch==(y.level!=1)?0:1);if(w==0||w==A.length)return l;var U;if(d.line!=g.line)U=(d.line-g.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var k=bt(A,d.ch,d.sticky),J=k-b||(d.ch-g.ch)*(y.level==1?-1:1);k==w-1||k==w?U=J<0:U=J>0}var re=A[w+(U?-1:0)],ee=U==(re.level==1),oe=ee?re.from:re.to,ce=ee?"after":"before";return g.ch==oe&&g.sticky==ce?l:new lr(new he(g.line,oe,ce),d)}function vf(s,l,g,d){var v,A;if(l.touches)v=l.touches[0].clientX,A=l.touches[0].clientY;else try{v=l.clientX,A=l.clientY}catch{return!1}if(v>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;d&&ht(l);var b=s.display,y=b.lineDiv.getBoundingClientRect();if(A>y.bottom||!tr(s,g))return mi(l);A-=y.top-b.viewOffset;for(var w=0;w<s.display.gutterSpecs.length;++w){var U=b.gutters.childNodes[w];if(U&&U.getBoundingClientRect().right>=v){var k=xi(s.doc,A),J=s.display.gutterSpecs[w];return ar(s,g,s,k,J.className,l),mi(l)}}}function ol(s,l){return vf(s,l,"gutterClick",!0)}function xf(s,l){Pi(s.display,l)||xp(s,l)||dr(s,l,"contextmenu")||ye||s.display.input.onContextMenu(l)}function xp(s,l){return tr(s,"gutterContextMenu")?vf(s,l,"gutterContextMenu",!1):!1}function Cf(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Os(s)}var Gn={toString:function(){return"CodeMirror.Init"}},If={},ha={};function Cp(s){var l=s.optionHandlers;function g(d,v,A,b){s.defaults[d]=v,A&&(l[d]=b?function(y,w,U){U!=Gn&&A(y,w,U)}:A)}s.defineOption=g,s.Init=Gn,g("value","",function(d,v){return d.setValue(v)},!0),g("mode",null,function(d,v){d.doc.modeOption=v,ui(d)},!0),g("indentUnit",2,ui,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(d){Ps(d),Os(d),vt(d)},!0),g("lineSeparator",null,function(d,v){if(d.doc.lineSep=v,!!v){var A=[],b=d.doc.first;d.doc.iter(function(w){for(var U=0;;){var k=w.text.indexOf(v,U);if(k==-1)break;U=k+v.length,A.push(he(b,k))}b++});for(var y=A.length-1;y>=0;y--)wn(d.doc,v,A[y],he(A[y].line,A[y].ch+v.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(d,v,A){d.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),A!=Gn&&d.refresh()}),g("specialCharPlaceholder",oc,function(d){return d.refresh()},!0),g("electricChars",!0),g("inputStyle",X?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(d,v){return d.getInputField().spellcheck=v},!0),g("autocorrect",!1,function(d,v){return d.getInputField().autocorrect=v},!0),g("autocapitalize",!1,function(d,v){return d.getInputField().autocapitalize=v},!0),g("rtlMoveVisually",!ie),g("wholeLineUpdateBefore",!0),g("theme","default",function(d){Cf(d),io(d)},!0),g("keyMap","default",function(d,v,A){var b=ca(v),y=A!=Gn&&ca(A);y&&y.detach&&y.detach(d,b),b.attach&&b.attach(d,y||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,Ap,!0),g("gutters",[],function(d,v){d.display.gutterSpecs=ja(v,d.options.lineNumbers),io(d)},!0),g("fixedGutter",!0,function(d,v){d.display.gutters.style.left=v?mt(d.display)+"px":"0",d.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(d){return An(d)},!0),g("scrollbarStyle","native",function(d){Ou(d),An(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),g("lineNumbers",!1,function(d,v){d.display.gutterSpecs=ja(d.options.gutters,v),io(d)},!0),g("firstLineNumber",1,io,!0),g("lineNumberFormatter",function(d){return d},io,!0),g("showCursorWhenSelecting",!1,Bs,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(d,v){v=="nocursor"&&(Cn(d),d.display.input.blur()),d.display.input.readOnlyChanged(v)}),g("screenReaderLabel",null,function(d,v){v=v===""?null:v,d.display.input.screenReaderLabelChanged(v)}),g("disableInput",!1,function(d,v){v||d.display.input.reset()},!0),g("dragDrop",!0,Ip),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Bs,!0),g("singleCursorHeightPerLine",!0,Bs,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,Ps,!0),g("addModeClass",!1,Ps,!0),g("pollInterval",100),g("undoDepth",200,function(d,v){return d.doc.history.undoDepth=v}),g("historyEventDelay",1250),g("viewportMargin",10,function(d){return d.refresh()},!0),g("maxHighlightLength",1e4,Ps,!0),g("moveInputWithCursor",!0,function(d,v){v||d.display.input.resetPosition()}),g("tabindex",null,function(d,v){return d.display.input.getField().tabIndex=v||""}),g("autofocus",null),g("direction","ltr",function(d,v){return d.doc.setDirection(v)},!0),g("phrases",null)}function Ip(s,l,g){var d=g&&g!=Gn;if(!l!=!d){var v=s.display.dragFunctions,A=l?Ge:kr;A(s.display.scroller,"dragstart",v.start),A(s.display.scroller,"dragenter",v.enter),A(s.display.scroller,"dragover",v.over),A(s.display.scroller,"dragleave",v.leave),A(s.display.scroller,"drop",v.drop)}}function Ap(s){s.options.lineWrapping?(ze(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Le(s.display.wrapper,"CodeMirror-wrap"),Da(s)),Gs(s),vt(s),Os(s),setTimeout(function(){return An(s)},100)}function yr(s,l){var g=this;if(!(this instanceof yr))return new yr(s,l);this.options=l=l?zr(l):{},zr(If,l,!1);var d=l.value;typeof d=="string"?d=new Bt(d,l.mode,null,l.lineSeparator,l.direction):l.mode&&(d.modeOption=l.mode),this.doc=d;var v=new yr.inputStyles[l.inputStyle](this),A=this.display=new Vc(s,d,v,l);A.wrapper.CodeMirror=this,Cf(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ou(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Pr,keySeq:null,specialChars:null},l.autofocus&&!X&&A.input.focus(),O&&D<11&&setTimeout(function(){return g.display.input.reset(!0)},20),Np(this),ep(),Ws(this),this.curOp.forceUpdate=!0,sa(this,d),l.autofocus&&!X||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Ha(g)},20):Cn(this);for(var b in ha)ha.hasOwnProperty(b)&&ha[b](this,l[b],Gn);Gu(this),l.finishInit&&l.finishInit(this);for(var y=0;y<al.length;++y)al[y](this);Zs(this),Z&&l.lineWrapping&&getComputedStyle(A.lineDiv).textRendering=="optimizelegibility"&&(A.lineDiv.style.textRendering="auto")}yr.defaults=If,yr.optionHandlers=ha;function Np(s){var l=s.display;Ge(l.scroller,"mousedown",tt(s,Ef)),O&&D<11?Ge(l.scroller,"dblclick",tt(s,function(w){if(!dr(s,w)){var U=li(s,w);if(!(!U||ol(s,w)||Pi(s.display,w))){ht(w);var k=s.findWordAt(U);aa(s.doc,k.anchor,k.head)}}})):Ge(l.scroller,"dblclick",function(w){return dr(s,w)||ht(w)}),Ge(l.scroller,"contextmenu",function(w){return xf(s,w)}),Ge(l.input.getField(),"contextmenu",function(w){l.scroller.contains(w.target)||xf(s,w)});var g,d={end:0};function v(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),d=l.activeTouch,d.end=+new Date)}function A(w){if(w.touches.length!=1)return!1;var U=w.touches[0];return U.radiusX<=1&&U.radiusY<=1}function b(w,U){if(U.left==null)return!0;var k=U.left-w.left,J=U.top-w.top;return k*k+J*J>20*20}Ge(l.scroller,"touchstart",function(w){if(!dr(s,w)&&!A(w)&&!ol(s,w)){l.input.ensurePolled(),clearTimeout(g);var U=+new Date;l.activeTouch={start:U,moved:!1,prev:U-d.end<=300?d:null},w.touches.length==1&&(l.activeTouch.left=w.touches[0].pageX,l.activeTouch.top=w.touches[0].pageY)}}),Ge(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Ge(l.scroller,"touchend",function(w){var U=l.activeTouch;if(U&&!Pi(l,w)&&U.left!=null&&!U.moved&&new Date-U.start<300){var k=s.coordsChar(l.activeTouch,"page"),J;!U.prev||b(U,U.prev)?J=new lr(k,k):!U.prev.prev||b(U,U.prev.prev)?J=s.findWordAt(k):J=new lr(he(k.line,0),Ye(s.doc,he(k.line+1,0))),s.setSelection(J.anchor,J.head),s.focus(),ht(w)}v()}),Ge(l.scroller,"touchcancel",v),Ge(l.scroller,"scroll",function(){l.scroller.clientHeight&&(qn(s,l.scroller.scrollTop),Ds(s,l.scroller.scrollLeft,!0),ar(s,"scroll",s))}),Ge(l.scroller,"mousewheel",function(w){return ta(s,w)}),Ge(l.scroller,"DOMMouseScroll",function(w){return ta(s,w)}),Ge(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(w){dr(s,w)||bs(w)},over:function(w){dr(s,w)||(Kc(s,w),bs(w))},start:function(w){return qc(s,w)},drop:tt(s,jc),leave:function(w){dr(s,w)||tf(s)}};var y=l.input.getField();Ge(y,"keyup",function(w){return df.call(s,w)}),Ge(y,"keydown",tt(s,hf)),Ge(y,"keypress",tt(s,gf)),Ge(y,"focus",function(w){return Ha(s,w)}),Ge(y,"blur",function(w){return Cn(s,w)})}var al=[];yr.defineInitHook=function(s){return al.push(s)};function xo(s,l,g,d){var v=s.doc,A;g==null&&(g="add"),g=="smart"&&(v.mode.indent?A=Qn(s,l).state:g="prev");var b=s.options.tabSize,y=Ie(v,l),w=Ir(y.text,null,b);y.stateAfter&&(y.stateAfter=null);var U=y.text.match(/^\s*/)[0],k;if(!d&&!/\S/.test(y.text))k=0,g="not";else if(g=="smart"&&(k=v.mode.indent(A,y.text.slice(U.length),y.text),k==Fe||k>150)){if(!d)return;g="prev"}g=="prev"?l>v.first?k=Ir(Ie(v,l-1).text,null,b):k=0:g=="add"?k=w+s.options.indentUnit:g=="subtract"?k=w-s.options.indentUnit:typeof g=="number"&&(k=w+g),k=Math.max(0,k);var J="",re=0;if(s.options.indentWithTabs)for(var ee=Math.floor(k/b);ee;--ee)re+=b,J+=" ";if(re<k&&(J+=ei(k-re)),J!=U)return wn(v,J,he(l,0),he(l,U.length),"+input"),y.stateAfter=null,!0;for(var oe=0;oe<v.sel.ranges.length;oe++){var ce=v.sel.ranges[oe];if(ce.head.line==l&&ce.head.ch<U.length){var de=he(l,U.length);el(v,oe,new lr(de,de));break}}}var fi=null;function da(s){fi=s}function ll(s,l,g,d,v){var A=s.doc;s.display.shift=!1,d||(d=A.sel);var b=+new Date-200,y=v=="paste"||s.state.pasteIncoming>b,w=nn(l),U=null;if(y&&d.ranges.length>1)if(fi&&fi.text.join(`
13
- `)==l){if(d.ranges.length%fi.text.length==0){U=[];for(var k=0;k<fi.text.length;k++)U.push(A.splitLines(fi.text[k]))}}else w.length==d.ranges.length&&s.options.pasteLinesPerSelection&&(U=Ot(w,function(ve){return[ve]}));for(var J=s.curOp.updateInput,re=d.ranges.length-1;re>=0;re--){var ee=d.ranges[re],oe=ee.from(),ce=ee.to();ee.empty()&&(g&&g>0?oe=he(oe.line,oe.ch-g):s.state.overwrite&&!y?ce=he(ce.line,Math.min(Ie(A,ce.line).text.length,ce.ch+Ae(w).length)):y&&fi&&fi.lineWise&&fi.text.join(`
10
+ left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");s.display.lineSpace.appendChild(b),b.scrollIntoView(v),s.display.lineSpace.removeChild(b)}}}function Ac(s,l,g,d){d==null&&(d=0);var v;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?pe(l.line,l.ch+1,"before"):l,l=l.ch?pe(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var A=0;A<5;A++){var b=!1,y=ze(s,l),w=!g||g==l?y:ze(s,g);v={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-d,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+d};var U=Ya(s,v),P=s.doc.scrollTop,_=s.doc.scrollLeft;if(U.scrollTop!=null&&(qn(s,U.scrollTop),Math.abs(s.doc.scrollTop-P)>1&&(b=!0)),U.scrollLeft!=null&&(Ws(s,U.scrollLeft),Math.abs(s.doc.scrollLeft-_)>1&&(b=!0)),!b)break}return v}function Nc(s,l){var g=Ya(s,l);g.scrollTop!=null&&qn(s,g.scrollTop),g.scrollLeft!=null&&Ws(s,g.scrollLeft)}function Ya(s,l){var g=s.display,d=Dr(s.display);l.top<0&&(l.top=0);var v=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,A=Ma(s),b={};l.bottom-l.top>A&&(l.bottom=l.top+A);var y=s.doc.height+Da(g),w=l.top<d,U=l.bottom>y-d;if(l.top<v)b.scrollTop=w?0:l.top;else if(l.bottom>v+A){var P=Math.min(l.top,(U?y:l.bottom)-A);P!=v&&(b.scrollTop=P)}var _=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-_,ee=ws(s)-g.gutters.offsetWidth,oe=l.right-l.left>ee;return oe&&(l.right=l.left+ee),l.left<10?b.scrollLeft=0:l.left<re?b.scrollLeft=Math.max(0,l.left+_-(oe?0:10)):l.right>ee+re-3&&(b.scrollLeft=l.right+(oe?0:10)-ee),b}function _a(s,l){l!=null&&(Ko(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function In(s){Ko(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function jn(s,l,g){(l!=null||g!=null)&&Ko(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function bc(s,l){Ko(s),s.curOp.scrollToPos=l}function Ko(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=Au(s,l.from),d=Au(s,l.to);yu(s,g,d,l.margin)}}function yu(s,l,g,d){var v=Ya(s,{left:Math.min(l.left,g.left),top:Math.min(l.top,g.top)-d,right:Math.max(l.right,g.right),bottom:Math.max(l.bottom,g.bottom)+d});jn(s,v.scrollLeft,v.scrollTop)}function qn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||$a(s,{top:l}),Su(s,l,!0),e&&$a(s),ro(s,100))}function Su(s,l,g){l=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,l)),!(s.display.scroller.scrollTop==l&&!g)&&(s.doc.scrollTop=l,s.display.scrollbars.setScrollTop(l),s.display.scroller.scrollTop!=l&&(s.display.scroller.scrollTop=l))}function Ws(s,l,g,d){l=Math.max(0,Math.min(l,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((g?l==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-l)<2)&&!d)&&(s.doc.scrollLeft=l,Gu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function Kn(s){var l=s.display,g=l.gutters.offsetWidth,d=Math.round(s.doc.height+Da(s.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:s.options.fixedGutter?g:0,docHeight:d,scrollHeight:d+Ni(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Ds=function(s,l,g){this.cm=g;var d=this.vert=me("div",[me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=me("div",[me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=v.tabIndex=-1,s(d),s(v),Fe(d,"scroll",function(){d.clientHeight&&l(d.scrollTop,"vertical")}),Fe(v,"scroll",function(){v.clientWidth&&l(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&W<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ds.prototype.update=function(s){var l=s.scrollWidth>s.clientWidth+1,g=s.scrollHeight>s.clientHeight+1,d=s.nativeBarWidth;if(g){this.vert.style.display="block",this.vert.style.bottom=l?d+"px":"0";var v=s.viewHeight-(l?d:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=g?d+"px":"0",this.horiz.style.left=s.barLeft+"px";var A=s.viewWidth-s.barLeft-(g?d:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+A)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:g?d:0,bottom:l?d:0}},Ds.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ds.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ds.prototype.zeroWidthHack=function(){var s=q&&!z?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Qr,this.disableVert=new Qr},Ds.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function d(){var v=s.getBoundingClientRect(),A=g=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);A!=s?s.style.visibility="hidden":l.set(1e3,d)}l.set(1e3,d)},Ds.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var eo=function(){};eo.prototype.update=function(){return{bottom:0,right:0}},eo.prototype.setScrollLeft=function(){},eo.prototype.setScrollTop=function(){},eo.prototype.clear=function(){};function An(s,l){l||(l=Kn(s));var g=s.display.barWidth,d=s.display.barHeight;Lu(s,l);for(var v=0;v<4&&g!=s.display.barWidth||d!=s.display.barHeight;v++)g!=s.display.barWidth&&s.options.lineWrapping&&jo(s),Lu(s,Kn(s)),g=s.display.barWidth,d=s.display.barHeight}function Lu(s,l){var g=s.display,d=g.scrollbars.update(l);g.sizer.style.paddingRight=(g.barWidth=d.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=d.bottom)+"px",g.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=d.bottom+"px",g.scrollbarFiller.style.width=d.right+"px"):g.scrollbarFiller.style.display="",d.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=d.bottom+"px",g.gutterFiller.style.width=l.gutterWidth+"px"):g.gutterFiller.style.display=""}var wu={native:Ds,null:eo};function Uu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Te(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new wu[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Fe(l,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,g){g=="horizontal"?Ws(s,l):qn(s,l)},s),s.display.scrollbars.addClass&&je(s.display.wrapper,s.display.scrollbars.addClass)}var Tc=0;function Ms(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Tc,markArrays:null},pc(s.curOp)}function Zs(s){var l=s.curOp;l&&dc(l,function(g){for(var d=0;d<g.ops.length;d++)g.ops[d].cm.curOp=null;Rc(g)})}function Rc(s){for(var l=s.ops,g=0;g<l.length;g++)yc(l[g]);for(var d=0;d<l.length;d++)Sc(l[d]);for(var v=0;v<l.length;v++)Lc(l[v]);for(var A=0;A<l.length;A++)wc(l[A]);for(var b=0;b<l.length;b++)Uc(l[b])}function yc(s){var l=s.cm,g=l.display;Gc(l),s.updateMaxLine&&Wa(l),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<g.viewFrom||s.scrollToPos.to.line>=g.viewTo)||g.maxLineChanged&&l.options.lineWrapping,s.update=s.mustUpdate&&new ea(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Sc(s){s.updatedDisplay=s.mustUpdate&&Ja(s.cm,s.update)}function Lc(s){var l=s.cm,g=l.display;s.updatedDisplay&&jo(l),s.barMeasure=Kn(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=mu(l,g.maxLine,g.maxLine.text.length).left+3,l.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+s.adjustWidthTo+Ni(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-ws(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function wc(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Ws(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==$r(wt(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&An(l,s.barMeasure),s.updatedDisplay&&za(l,s.barMeasure),s.selectionChanged&&ka(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Tu(s.cm)}function Uc(s){var l=s.cm,g=l.display,d=l.doc;if(s.updatedDisplay&&Ou(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&Su(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Ws(l,s.scrollLeft,!0,!0),s.scrollToPos){var v=Ac(l,$e(d,s.scrollToPos.from),$e(d,s.scrollToPos.to),s.scrollToPos.margin);Ic(l,v)}var A=s.maybeHiddenMarkers,b=s.maybeUnhiddenMarkers;if(A)for(var y=0;y<A.length;++y)A[y].lines.length||ur(A[y],"hide");if(b)for(var w=0;w<b.length;++w)b[w].lines.length&&ur(b[w],"unhide");g.wrapper.offsetHeight&&(d.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&ur(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function kt(s,l){if(s.curOp)return l();Ms(s);try{return l()}finally{Zs(s)}}function tt(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Ms(s);try{return l.apply(s,arguments)}finally{Zs(s)}}}function Tt(s){return function(){if(this.curOp)return s.apply(this,arguments);Ms(this);try{return s.apply(this,arguments)}finally{Zs(this)}}}function it(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Ms(l);try{return s.apply(this,arguments)}finally{Zs(l)}}}function ro(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,qe(Oc,s))}function Oc(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,d=kn(s,l.highlightFrontier),v=[];l.iter(d.line,Math.min(l.first+l.size,s.display.viewTo+500),function(A){if(d.line>=s.display.viewFrom){var b=A.styles,y=A.text.length>s.options.maxHighlightLength?Se(l.mode,d.state):null,w=tu(s,A,d,!0);y&&(d.state=y),A.styles=w.styles;var U=A.styleClasses,P=w.classes;P?A.styleClasses=P:U&&(A.styleClasses=null);for(var _=!b||b.length!=A.styles.length||U!=P&&(!U||!P||U.bgClass!=P.bgClass||U.textClass!=P.textClass),re=0;!_&&re<b.length;++re)_=b[re]!=A.styles[re];_&&v.push(d.line),A.stateAfter=d.save(),d.nextLine()}else A.text.length<=s.options.maxHighlightLength&&Xn(s,A.text,d),A.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>g)return ro(s,s.options.workDelay),!0}),l.highlightFrontier=d.line,l.modeFrontier=Math.max(l.modeFrontier,d.line),v.length&&kt(s,function(){for(var A=0;A<v.length;A++)Pt(s,v[A],"text")})}}var ea=function(s,l,g){var d=s.display;this.viewport=l,this.visible=qo(d,s.doc,l),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=ws(s),this.force=g,this.dims=Gs(s),this.events=[]};ea.prototype.signal=function(s,l){ir(s,l)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var s=0;s<this.events.length;s++)ur.apply(null,this.events[s])};function Gc(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ni(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ni(s)+"px",l.scrollbarsClipped=!0)}function Fc(s){if(s.hasFocus())return null;var l=$r(wt(s));if(!l||!cr(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var d=ut(s).getSelection();d.anchorNode&&d.extend&&cr(s.display.lineDiv,d.anchorNode)&&(g.anchorNode=d.anchorNode,g.anchorOffset=d.anchorOffset,g.focusNode=d.focusNode,g.focusOffset=d.focusOffset)}return g}function Bc(s){if(!(!s||!s.activeElt||s.activeElt==$r(lr(s.activeElt)))&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&cr(document.body,s.anchorNode)&&cr(document.body,s.focusNode))){var l=s.activeElt.ownerDocument,g=l.defaultView.getSelection(),d=l.createRange();d.setEnd(s.anchorNode,s.anchorOffset),d.collapse(!1),g.removeAllRanges(),g.addRange(d),g.extend(s.focusNode,s.focusOffset)}}function Ja(s,l){var g=s.display,d=s.doc;if(l.editorIsHidden)return Ti(s),!1;if(!l.force&&l.visible.from>=g.viewFrom&&l.visible.to<=g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo)&&g.renderedView==g.view&&zo(s)==0)return!1;Fu(s)&&(Ti(s),l.dims=Gs(s));var v=d.first+d.size,A=Math.max(l.visible.from-s.options.viewportMargin,d.first),b=Math.min(v,l.visible.to+s.options.viewportMargin);g.viewFrom<A&&A-g.viewFrom<20&&(A=Math.max(d.first,g.viewFrom)),g.viewTo>b&&g.viewTo-b<20&&(b=Math.min(v,g.viewTo)),Vi&&(A=Hn(s.doc,A),b=Ho(s.doc,b));var y=A!=g.viewFrom||b!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;zn(s,A,b),g.viewOffset=Mi(Ae(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var w=zo(s);if(!y&&w==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var U=Fc(s);return w>4&&(g.lineDiv.style.display="none"),Vc(s,g.updateLineNumbers,l.dims),w>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Bc(U),Le(g.cursorDiv),Le(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,y&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,ro(s,400)),g.updateLineNumbers=null,!0}function Ou(s,l){for(var g=l.viewport,d=!0;;d=!1){if(!d||!s.options.lineWrapping||l.oldDisplayWidth==ws(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Da(s.display)-Ma(s),g.top)}),l.visible=qo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else d&&(l.visible=qo(s.display,s.doc,g));if(!Ja(s,l))break;jo(s);var v=Kn(s);Bs(s),An(s,v),za(s,v),l.force=!1}l.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(l.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function $a(s,l){var g=new ea(s,l);if(Ja(s,g)){jo(s),Ou(s,g);var d=Kn(s);Bs(s),An(s,d),za(s,d),g.finish()}}function Vc(s,l,g){var d=s.display,v=s.options.lineNumbers,A=d.lineDiv,b=A.firstChild;function y(oe){var fe=oe.nextSibling;return D&&q&&s.display.currentWheelTarget==oe?oe.style.display="none":oe.parentNode.removeChild(oe),fe}for(var w=d.view,U=d.viewFrom,P=0;P<w.length;P++){var _=w[P];if(!_.hidden)if(!_.node||_.node.parentNode!=A){var re=Ft(s,_,U,g);A.insertBefore(re,b)}else{for(;b!=_.node;)b=y(b);var ee=v&&l!=null&&l<=U&&_.lineNumber;_.changes&&(gr(_.changes,"gutter")>-1&&(ee=!1),hu(s,_,U,g)),ee&&(Le(_.lineNumber),_.lineNumber.appendChild(document.createTextNode(Sa(s.options,U)))),b=_.node.nextSibling}U+=_.size}for(;b;)b=y(b)}function to(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",rt(s,"gutterChanged",s)}function za(s,l){s.display.sizer.style.minHeight=l.docHeight+"px",s.display.heightForcer.style.top=l.docHeight+"px",s.display.gutters.style.height=l.docHeight+s.display.barHeight+Ni(s)+"px"}function Gu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var d=mt(l)-l.scroller.scrollLeft+s.doc.scrollLeft,v=l.gutters.offsetWidth,A=d+"px",b=0;b<g.length;b++)if(!g[b].hidden){s.options.fixedGutter&&(g[b].gutter&&(g[b].gutter.style.left=A),g[b].gutterBackground&&(g[b].gutterBackground.style.left=A));var y=g[b].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=A}s.options.fixedGutter&&(l.gutters.style.left=d+v+"px")}}function Fu(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=Sa(s.options,l.first+l.size-1),d=s.display;if(g.length!=d.lineNumChars){var v=d.measure.appendChild(me("div",[me("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),A=v.firstChild.offsetWidth,b=v.offsetWidth-A;return d.lineGutter.style.width="",d.lineNumInnerWidth=Math.max(A,d.lineGutter.offsetWidth-b)+1,d.lineNumWidth=d.lineNumInnerWidth+b,d.lineNumChars=d.lineNumInnerWidth?g.length:-1,d.lineGutter.style.width=d.lineNumWidth+"px",to(s.display),!0}return!1}function ja(s,l){for(var g=[],d=!1,v=0;v<s.length;v++){var A=s[v],b=null;if(typeof A!="string"&&(b=A.style,A=A.className),A=="CodeMirror-linenumbers")if(l)d=!0;else continue;g.push({className:A,style:b})}return l&&!d&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Bu(s){var l=s.gutters,g=s.gutterSpecs;Le(l),s.lineGutter=null;for(var d=0;d<g.length;++d){var v=g[d],A=v.className,b=v.style,y=l.appendChild(me("div",null,"CodeMirror-gutter "+A));b&&(y.style.cssText=b),A=="CodeMirror-linenumbers"&&(s.lineGutter=y,y.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",to(s)}function io(s){Bu(s.display),vt(s),Gu(s)}function Wc(s,l,g,d){var v=this;this.input=g,v.scrollbarFiller=me("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=me("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=ar("div",null,"CodeMirror-code"),v.selectionDiv=me("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=me("div",null,"CodeMirror-cursors"),v.measure=me("div",null,"CodeMirror-measure"),v.lineMeasure=me("div",null,"CodeMirror-measure"),v.lineSpace=ar("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var A=ar("div",[v.lineSpace],"CodeMirror-lines");v.mover=me("div",[A],null,"position: relative"),v.sizer=me("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=me("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),v.gutters=me("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=me("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=me("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),k&&Z===105&&(v.wrapper.style.clipPath="inset(0px)"),v.wrapper.setAttribute("translate","no"),G&&W<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!D&&!(e&&Y)&&(v.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(v.wrapper):s(v.wrapper)),v.viewFrom=v.viewTo=l.first,v.reportedViewFrom=v.reportedViewTo=l.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=ja(d.gutters,d.lineNumbers),Bu(v),g.init(v)}var ra=0,ki=null;G?ki=-.53:e?ki=15:k?ki=-.7:M&&(ki=-1/3);function Vu(s){var l=s.wheelDeltaX,g=s.wheelDeltaY;return l==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(l=s.detail),g==null&&s.detail&&s.axis==s.VERTICAL_AXIS?g=s.detail:g==null&&(g=s.wheelDelta),{x:l,y:g}}function Dc(s){var l=Vu(s);return l.x*=ki,l.y*=ki,l}function ta(s,l){k&&Z==102&&(s.display.chromeScrollHack==null?s.display.sizer.style.pointerEvents="none":clearTimeout(s.display.chromeScrollHack),s.display.chromeScrollHack=setTimeout(function(){s.display.chromeScrollHack=null,s.display.sizer.style.pointerEvents=""},100));var g=Vu(l),d=g.x,v=g.y,A=ki;l.deltaMode===0&&(d=l.deltaX,v=l.deltaY,A=1);var b=s.display,y=b.scroller,w=y.scrollWidth>y.clientWidth,U=y.scrollHeight>y.clientHeight;if(d&&w||v&&U){if(v&&q&&D){e:for(var P=l.target,_=b.view;P!=y;P=P.parentNode)for(var re=0;re<_.length;re++)if(_[re].node==P){s.display.currentWheelTarget=P;break e}}if(d&&!e&&!$&&A!=null){v&&U&&qn(s,Math.max(0,y.scrollTop+v*A)),Ws(s,Math.max(0,y.scrollLeft+d*A)),(!v||v&&U)&&ht(l),b.wheelStartX=null;return}if(v&&A!=null){var ee=v*A,oe=s.doc.scrollTop,fe=oe+b.wrapper.clientHeight;ee<0?oe=Math.max(0,oe+ee-50):fe=Math.min(s.doc.height,fe+ee+50),$a(s,{top:oe,bottom:fe})}ra<20&&l.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=y.scrollLeft,b.wheelStartY=y.scrollTop,b.wheelDX=d,b.wheelDY=v,setTimeout(function(){if(b.wheelStartX!=null){var he=y.scrollLeft-b.wheelStartX,xe=y.scrollTop-b.wheelStartY,Ie=xe&&b.wheelDY&&xe/b.wheelDY||he&&b.wheelDX&&he/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ie&&(ki=(ki*ra+Ie)/(ra+1),++ra)}},200)):(b.wheelDX+=d,b.wheelDY+=v))}}var Rr=function(s,l){this.ranges=s,this.primIndex=l};Rr.prototype.primary=function(){return this.ranges[this.primIndex]},Rr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],d=s.ranges[l];if(!La(g.anchor,d.anchor)||!La(g.head,d.head))return!1}return!0},Rr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new fr(wa(this.ranges[l].anchor),wa(this.ranges[l].head));return new Rr(s,this.primIndex)},Rr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Rr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if(Je(l,d.from())>=0&&Je(s,d.to())<=0)return g}return-1};var fr=function(s,l){this.anchor=s,this.head=l};fr.prototype.from=function(){return Zo(this.anchor,this.head)},fr.prototype.to=function(){return Mo(this.anchor,this.head)},fr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Pe(s,l,g){var d=s&&s.options.selectionsMayTouch,v=l[g];l.sort(function(re,ee){return Je(re.from(),ee.from())}),g=gr(l,v);for(var A=1;A<l.length;A++){var b=l[A],y=l[A-1],w=Je(y.to(),b.from());if(d&&!b.empty()?w>0:w>=0){var U=Zo(y.from(),b.from()),P=Mo(y.to(),b.to()),_=y.empty()?b.from()==b.head:y.from()==y.head;A<=g&&--g,l.splice(--A,2,new fr(_?P:U,_?U:P))}}return new Rr(l,g)}function Ri(s,l){return new Rr([new fr(s,l||s)],0)}function yi(s){return s.text?pe(s.from.line+s.text.length-1,Ne(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ia(s,l){if(Je(s,l.from)<0)return s;if(Je(s,l.to)<=0)return yi(l);var g=s.line+l.text.length-(l.to.line-l.from.line)-1,d=s.ch;return s.line==l.to.line&&(d+=yi(l).ch-l.to.ch),pe(g,d)}function Xi(s,l){for(var g=[],d=0;d<s.sel.ranges.length;d++){var v=s.sel.ranges[d];g.push(new fr(ia(v.anchor,l),ia(v.head,l)))}return Pe(s.cm,g,s.sel.primIndex)}function Wu(s,l,g){return s.line==l.line?pe(g.line,s.ch-l.ch+g.ch):pe(g.line+(s.line-l.line),s.ch)}function Mc(s,l,g){for(var d=[],v=pe(s.first,0),A=v,b=0;b<l.length;b++){var y=l[b],w=Wu(y.from,v,A),U=Wu(yi(y),v,A);if(v=y.to,A=U,g=="around"){var P=s.sel.ranges[b],_=Je(P.head,P.anchor)<0;d[b]=new fr(_?U:w,_?w:U)}else d[b]=new fr(w,w)}return new Rr(d,s.sel.primIndex)}function ui(s){s.doc.mode=De(s.options,s.doc.modeOption),Qs(s)}function Qs(s){s.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,ro(s,100),s.state.modeGen++,s.curOp&&vt(s)}function hs(s,l){return l.from.ch==0&&l.to.ch==0&&Ne(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function so(s,l,g,d){function v(Ie){return g?g[Ie]:null}function A(Ie,Ce,Re){ic(Ie,Ce,Re,d),rt(Ie,"change",Ie,l)}function b(Ie,Ce){for(var Re=[],Ze=Ie;Ze<Ce;++Ze)Re.push(new hn(U[Ze],v(Ze),d));return Re}var y=l.from,w=l.to,U=l.text,P=Ae(s,y.line),_=Ae(s,w.line),re=Ne(U),ee=v(U.length-1),oe=w.line-y.line;if(l.full)s.insert(0,b(0,U.length)),s.remove(U.length,s.size-U.length);else if(hs(s,l)){var fe=b(0,U.length-1);A(_,_.text,ee),oe&&s.remove(y.line,oe),fe.length&&s.insert(y.line,fe)}else if(P==_)if(U.length==1)A(P,P.text.slice(0,y.ch)+re+P.text.slice(w.ch),ee);else{var he=b(1,U.length-1);he.push(new hn(re+P.text.slice(w.ch),ee,d)),A(P,P.text.slice(0,y.ch)+U[0],v(0)),s.insert(y.line+1,he)}else if(U.length==1)A(P,P.text.slice(0,y.ch)+U[0]+_.text.slice(w.ch),v(0)),s.remove(y.line+1,oe);else{A(P,P.text.slice(0,y.ch)+U[0],v(0)),A(_,re+_.text.slice(w.ch),ee);var xe=b(1,U.length-1);oe>1&&s.remove(y.line+1,oe-1),s.insert(y.line+1,xe)}rt(s,"change",s,l)}function Si(s,l,g){function d(v,A,b){if(v.linked)for(var y=0;y<v.linked.length;++y){var w=v.linked[y];if(w.doc!=A){var U=b&&w.sharedHist;g&&!U||(l(w.doc,U),d(w.doc,v,U))}}}d(s,null,!0)}function sa(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Fs(s),ui(s),na(s),s.options.direction=l.direction,s.options.lineWrapping||Wa(s),s.options.mode=l.modeOption,vt(s)}function na(s){(s.doc.direction=="rtl"?je:Te)(s.display.lineDiv,"CodeMirror-rtl")}function qa(s){kt(s,function(){na(s),vt(s)})}function Nn(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function no(s,l){var g={from:wa(l.from),to:yi(l),text:dt(s,l.from,l.to)};return Mu(s,g,l.from.line,l.to.line+1),Si(s,function(d){return Mu(d,g,l.from.line,l.to.line+1)},!0),g}function oa(s){for(;s.length;){var l=Ne(s);if(l.ranges)s.pop();else break}}function Zc(s,l){if(l)return oa(s.done),Ne(s.done);if(s.done.length&&!Ne(s.done).ranges)return Ne(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Ne(s.done)}function Du(s,l,g,d){var v=s.history;v.undone.length=0;var A=+new Date,b,y;if((v.lastOp==d||v.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&v.lastModTime>A-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(b=Zc(v,v.lastOp==d)))y=Ne(b.changes),Je(l.from,l.to)==0&&Je(l.from,y.to)==0?y.to=yi(l):b.changes.push(no(s,l));else{var w=Ne(v.done);for((!w||!w.ranges)&&ds(s.sel,v.done),b={changes:[no(s,l)],generation:v.generation},v.done.push(b);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(g),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=A,v.lastOp=v.lastSelOp=d,v.lastOrigin=v.lastSelOrigin=l.origin,y||ur(s,"historyAdded")}function Qc(s,l,g,d){var v=l.charAt(0);return v=="*"||v=="+"&&g.ranges.length==d.ranges.length&&g.somethingSelected()==d.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function Pc(s,l,g,d){var v=s.history,A=d&&d.origin;g==v.lastSelOp||A&&v.lastSelOrigin==A&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==A||Qc(s,A,Ne(v.done),l))?v.done[v.done.length-1]=l:ds(l,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=A,v.lastSelOp=g,d&&d.clearRedo!==!1&&oa(v.undone)}function ds(s,l){var g=Ne(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Mu(s,l,g,d){var v=l["spans_"+s.id],A=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,d),function(b){b.markedSpans&&((v||(v=l["spans_"+s.id]={}))[A]=b.markedSpans),++A})}function kc(s){if(!s)return null;for(var l,g=0;g<s.length;++g)s[g].marker.explicitlyCleared?l||(l=s.slice(0,g)):l&&l.push(s[g]);return l?l.length?l:null:s}function Xc(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var d=[],v=0;v<l.text.length;++v)d.push(kc(g[v]));return d}function Zu(s,l){var g=Xc(s,l),d=Di(s,l);if(!g)return d;if(!d)return g;for(var v=0;v<g.length;++v){var A=g[v],b=d[v];if(A&&b)e:for(var y=0;y<b.length;++y){for(var w=b[y],U=0;U<A.length;++U)if(A[U].marker==w.marker)continue e;A.push(w)}else b&&(g[v]=b)}return g}function bn(s,l,g){for(var d=[],v=0;v<s.length;++v){var A=s[v];if(A.ranges){d.push(g?Rr.prototype.deepCopy.call(A):A);continue}var b=A.changes,y=[];d.push({changes:y});for(var w=0;w<b.length;++w){var U=b[w],P=void 0;if(y.push({from:U.from,to:U.to,text:U.text}),l)for(var _ in U)(P=_.match(/^spans_(\d+)$/))&&gr(l,Number(P[1]))>-1&&(Ne(y)[_]=U[_],delete U[_])}}return d}function Ka(s,l,g,d){if(d){var v=s.anchor;if(g){var A=Je(l,v)<0;A!=Je(g,v)<0?(v=l,l=g):A!=Je(l,g)<0&&(l=g)}return new fr(v,l)}else return new fr(g||l,l)}function aa(s,l,g,d,v){v==null&&(v=s.cm&&(s.cm.display.shift||s.extend)),xt(s,new Rr([Ka(s.sel.primary(),l,g,v)],0),d)}function Qu(s,l,g){for(var d=[],v=s.cm&&(s.cm.display.shift||s.extend),A=0;A<s.sel.ranges.length;A++)d[A]=Ka(s.sel.ranges[A],l[A],null,v);var b=Pe(s.cm,d,s.sel.primIndex);xt(s,b,g)}function el(s,l,g,d){var v=s.sel.ranges.slice(0);v[l]=g,xt(s,Pe(s.cm,v,s.sel.primIndex),d)}function Pu(s,l,g,d){xt(s,Ri(l,g),d)}function Hc(s,l,g){var d={ranges:l.ranges,update:function(v){this.ranges=[];for(var A=0;A<v.length;A++)this.ranges[A]=new fr($e(s,v[A].anchor),$e(s,v[A].head))},origin:g&&g.origin};return ur(s,"beforeSelectionChange",s,d),s.cm&&ur(s.cm,"beforeSelectionChange",s.cm,d),d.ranges!=l.ranges?Pe(s.cm,d.ranges,d.ranges.length-1):l}function ku(s,l,g){var d=s.history.done,v=Ne(d);v&&v.ranges?(d[d.length-1]=l,Tn(s,l,g)):xt(s,l,g)}function xt(s,l,g){Tn(s,l,g),Pc(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Tn(s,l,g){(ir(s,"beforeSelectionChange")||s.cm&&ir(s.cm,"beforeSelectionChange"))&&(l=Hc(s,l,g));var d=g&&g.bias||(Je(l.primary().head,s.sel.primary().head)<0?-1:1);Rn(s,Sn(s,l,d,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&In(s.cm)}function Rn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,ts(s.cm)),rt(s,"cursorActivity",s))}function yn(s){Rn(s,Sn(s,s.sel,null,!1))}function Sn(s,l,g,d){for(var v,A=0;A<l.ranges.length;A++){var b=l.ranges[A],y=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[A],w=la(s,b.anchor,y&&y.anchor,g,d),U=b.head==b.anchor?w:la(s,b.head,y&&y.head,g,d);(v||w!=b.anchor||U!=b.head)&&(v||(v=l.ranges.slice(0,A)),v[A]=new fr(w,U))}return v?Pe(s.cm,v,l.primIndex):l}function gs(s,l,g,d,v){var A=Ae(s,l.line);if(A.markedSpans)for(var b=0;b<A.markedSpans.length;++b){var y=A.markedSpans[b],w=y.marker,U="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,P="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(U?y.from<=l.ch:y.from<l.ch))&&(y.to==null||(P?y.to>=l.ch:y.to>l.ch))){if(v&&(ur(w,"beforeCursorEnter"),w.explicitlyCleared))if(A.markedSpans){--b;continue}else break;if(!w.atomic)continue;if(g){var _=w.find(d<0?1:-1),re=void 0;if((d<0?P:U)&&(_=Xu(s,_,-d,_&&_.line==l.line?A:null)),_&&_.line==l.line&&(re=Je(_,g))&&(d<0?re<0:re>0))return gs(s,_,l,d,v)}var ee=w.find(d<0?-1:1);return(d<0?U:P)&&(ee=Xu(s,ee,d,ee.line==l.line?A:null)),ee?gs(s,ee,l,d,v):null}}return l}function la(s,l,g,d,v){var A=d||1,b=gs(s,l,g,A,v)||!v&&gs(s,l,g,A,!0)||gs(s,l,g,-A,v)||!v&&gs(s,l,g,-A,!0);return b||(s.cantEdit=!0,pe(s.first,0))}function Xu(s,l,g,d){return g<0&&l.ch==0?l.line>s.first?$e(s,pe(l.line-1)):null:g>0&&l.ch==(d||Ae(s,l.line)).text.length?l.line<s.first+s.size-1?pe(l.line+1,0):null:new pe(l.line,l.ch+g)}function Hu(s){s.setSelection(pe(s.firstLine(),0),pe(s.lastLine()),ce)}function Yu(s,l,g){var d={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return d.canceled=!0}};return g&&(d.update=function(v,A,b,y){v&&(d.from=$e(s,v)),A&&(d.to=$e(s,A)),b&&(d.text=b),y!==void 0&&(d.origin=y)}),ur(s,"beforeChange",s,d),s.cm&&ur(s.cm,"beforeChange",s.cm,d),d.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:d.from,to:d.to,text:d.text,origin:d.origin}}function Ln(s,l,g){if(s.cm){if(!s.cm.curOp)return tt(s.cm,Ln)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((ir(s,"beforeChange")||s.cm&&ir(s.cm,"beforeChange"))&&(l=Yu(s,l,!0),!l))){var d=Po&&!g&&Ss(s,l.from,l.to);if(d)for(var v=d.length-1;v>=0;--v)_u(s,{from:d[v].from,to:d[v].to,text:v?[""]:l.text,origin:l.origin});else _u(s,l)}}function _u(s,l){if(!(l.text.length==1&&l.text[0]==""&&Je(l.from,l.to)==0)){var g=Xi(s,l);Du(s,l,g,s.cm?s.cm.curOp.id:NaN),oo(s,l,g,Di(s,l));var d=[];Si(s,function(v,A){!A&&gr(d,v.history)==-1&&(ju(v.history,l),d.push(v.history)),oo(v,l,null,Di(v,l))})}}function ua(s,l,g){var d=s.cm&&s.cm.state.suppressEdits;if(!(d&&!g)){for(var v=s.history,A,b=s.sel,y=l=="undo"?v.done:v.undone,w=l=="undo"?v.undone:v.done,U=0;U<y.length&&(A=y[U],!(g?A.ranges&&!A.equals(s.sel):!A.ranges));U++);if(U!=y.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(A=y.pop(),A.ranges){if(ds(A,w),g&&!A.equals(s.sel)){xt(s,A,{clearRedo:!1});return}b=A}else if(d){y.push(A);return}else break;var P=[];ds(b,w),w.push({changes:P,generation:v.generation}),v.generation=A.generation||++v.maxGeneration;for(var _=ir(s,"beforeChange")||s.cm&&ir(s.cm,"beforeChange"),re=function(fe){var he=A.changes[fe];if(he.origin=l,_&&!Yu(s,he,!1))return y.length=0,{};P.push(no(s,he));var xe=fe?Xi(s,he):Ne(y);oo(s,he,xe,Zu(s,he)),!fe&&s.cm&&s.cm.scrollIntoView({from:he.from,to:yi(he)});var Ie=[];Si(s,function(Ce,Re){!Re&&gr(Ie,Ce.history)==-1&&(ju(Ce.history,he),Ie.push(Ce.history)),oo(Ce,he,null,Zu(Ce,he))})},ee=A.changes.length-1;ee>=0;--ee){var oe=re(ee);if(oe)return oe.v}}}}function Ju(s,l){if(l!=0&&(s.first+=l,s.sel=new Rr(Ut(s.sel.ranges,function(v){return new fr(pe(v.anchor.line+l,v.anchor.ch),pe(v.head.line+l,v.head.ch))}),s.sel.primIndex),s.cm)){vt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,d=g.viewFrom;d<g.viewTo;d++)Pt(s.cm,d,"gutter")}}function oo(s,l,g,d){if(s.cm&&!s.cm.curOp)return tt(s.cm,oo)(s,l,g,d);if(l.to.line<s.first){Ju(s,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>s.lastLine())){if(l.from.line<s.first){var v=l.text.length-1-(s.first-l.from.line);Ju(s,v),l={from:pe(s.first,0),to:pe(l.to.line+v,l.to.ch),text:[Ne(l.text)],origin:l.origin}}var A=s.lastLine();l.to.line>A&&(l={from:l.from,to:pe(A,Ae(s,A).text.length),text:[l.text[0]],origin:l.origin}),l.removed=dt(s,l.from,l.to),g||(g=Xi(s,l)),s.cm?Yc(s.cm,l,d):so(s,l,d),Tn(s,g,ce),s.cantEdit&&la(s,pe(s.firstLine(),0))&&(s.cantEdit=!1)}}function Yc(s,l,g){var d=s.doc,v=s.display,A=l.from,b=l.to,y=!1,w=A.line;s.options.lineWrapping||(w=Ye(ai(Ae(d,A.line))),d.iter(w,b.line+1,function(ee){if(ee==v.maxLine)return y=!0,!0})),d.sel.contains(l.from,l.to)>-1&&ts(s),so(d,l,g,xn(s)),s.options.lineWrapping||(d.iter(w,A.line+l.text.length,function(ee){var oe=Yo(ee);oe>v.maxLineLength&&(v.maxLine=ee,v.maxLineLength=oe,v.maxLineChanged=!0,y=!1)}),y&&(s.curOp.updateMaxLine=!0)),ec(d,A.line),ro(s,400);var U=l.text.length-(b.line-A.line)-1;l.full?vt(s):A.line==b.line&&l.text.length==1&&!hs(s.doc,l)?Pt(s,A.line,"text"):vt(s,A.line,b.line+1,U);var P=ir(s,"changes"),_=ir(s,"change");if(_||P){var re={from:A,to:b,text:l.text,removed:l.removed,origin:l.origin};_&&rt(s,"change",s,re),P&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(re)}s.display.selForContextMenu=null}function wn(s,l,g,d,v){var A;d||(d=g),Je(d,g)<0&&(A=[d,g],g=A[0],d=A[1]),typeof l=="string"&&(l=s.splitLines(l)),Ln(s,{from:g,to:d,text:l,origin:v})}function $u(s,l,g,d){g<s.line?s.line+=d:l<s.line&&(s.line=l,s.ch=0)}function zu(s,l,g,d){for(var v=0;v<s.length;++v){var A=s[v],b=!0;if(A.ranges){A.copied||(A=s[v]=A.deepCopy(),A.copied=!0);for(var y=0;y<A.ranges.length;y++)$u(A.ranges[y].anchor,l,g,d),$u(A.ranges[y].head,l,g,d);continue}for(var w=0;w<A.changes.length;++w){var U=A.changes[w];if(g<U.from.line)U.from=pe(U.from.line+d,U.from.ch),U.to=pe(U.to.line+d,U.to.ch);else if(l<=U.to.line){b=!1;break}}b||(s.splice(0,v+1),v=0)}}function ju(s,l){var g=l.from.line,d=l.to.line,v=l.text.length-(d-g)-1;zu(s.done,g,d,v),zu(s.undone,g,d,v)}function ao(s,l,g,d){var v=l,A=l;return typeof l=="number"?A=Ae(s,eu(s,l)):v=Ye(l),v==null?null:(d(A,v)&&s.cm&&Pt(s.cm,v,g),A)}function lo(s){this.lines=s,this.parent=null;for(var l=0,g=0;g<s.length;++g)s[g].parent=this,l+=s[g].height;this.height=l}lo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,d=s+l;g<d;++g){var v=this.lines[g];this.height-=v.height,sc(v),rt(v,"delete")}this.lines.splice(s,l)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,l,g){this.height+=g,this.lines=this.lines.slice(0,s).concat(l).concat(this.lines.slice(s));for(var d=0;d<l.length;++d)l[d].parent=this},iterN:function(s,l,g){for(var d=s+l;s<d;++s)if(g(this.lines[s]))return!0}};function uo(s){this.children=s;for(var l=0,g=0,d=0;d<s.length;++d){var v=s[d];l+=v.chunkSize(),g+=v.height,v.parent=this}this.size=l,this.height=g,this.parent=null}uo.prototype={chunkSize:function(){return this.size},removeInner:function(s,l){this.size-=l;for(var g=0;g<this.children.length;++g){var d=this.children[g],v=d.chunkSize();if(s<v){var A=Math.min(l,v-s),b=d.height;if(d.removeInner(s,A),this.height-=b-d.height,v==A&&(this.children.splice(g--,1),d.parent=null),(l-=A)==0)break;s=0}else s-=v}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof lo))){var y=[];this.collapse(y),this.children=[new lo(y)],this.children[0].parent=this}},collapse:function(s){for(var l=0;l<this.children.length;++l)this.children[l].collapse(s)},insertInner:function(s,l,g){this.size+=l.length,this.height+=g;for(var d=0;d<this.children.length;++d){var v=this.children[d],A=v.chunkSize();if(s<=A){if(v.insertInner(s,l,g),v.lines&&v.lines.length>50){for(var b=v.lines.length%25+25,y=b;y<v.lines.length;){var w=new lo(v.lines.slice(y,y+=25));v.height-=w.height,this.children.splice(++d,0,w),w.parent=this}v.lines=v.lines.slice(0,b),this.maybeSpill()}break}s-=A}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new uo(l);if(s.parent){s.size-=g.size,s.height-=g.height;var v=gr(s.parent.children,s);s.parent.children.splice(v+1,0,g)}else{var d=new uo(s.children);d.parent=s,s.children=[d,g],s=d}g.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,l,g){for(var d=0;d<this.children.length;++d){var v=this.children[d],A=v.chunkSize();if(s<A){var b=Math.min(l,A-s);if(v.iterN(s,b,g))return!0;if((l-=b)==0)break;s=0}else s-=A}}};var fo=function(s,l,g){if(g)for(var d in g)g.hasOwnProperty(d)&&(this[d]=g[d]);this.doc=s,this.node=l};fo.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,d=Ye(g);if(!(d==null||!l)){for(var v=0;v<l.length;++v)l[v]==this&&l.splice(v--,1);l.length||(g.widgets=null);var A=Zi(this);Qt(g,Math.max(0,g.height-A)),s&&(kt(s,function(){qu(s,g,-A),Pt(s,d,"widget")}),rt(s,"lineWidgetCleared",s,this,d))}},fo.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,d=this.line;this.height=null;var v=Zi(this)-l;v&&(Ii(this.doc,d)||Qt(d,d.height+v),g&&kt(g,function(){g.curOp.forceUpdate=!0,qu(g,d,v),rt(g,"lineWidgetChanged",g,s,Ye(d))}))},is(fo);function qu(s,l,g){Mi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&_a(s,g)}function _c(s,l,g,d){var v=new fo(s,g,d),A=s.cm;return A&&v.noHScroll&&(A.display.alignWidgets=!0),ao(s,l,"widget",function(b){var y=b.widgets||(b.widgets=[]);if(v.insertAt==null?y.push(v):y.splice(Math.min(y.length,Math.max(0,v.insertAt)),0,v),v.line=b,A&&!Ii(s,b)){var w=Mi(b)<s.scrollTop;Qt(b,b.height+Zi(v)),w&&_a(A,v.height),A.curOp.forceUpdate=!0}return!0}),A&&rt(A,"lineWidgetAdded",A,v,typeof l=="number"?l:Ye(l)),v}var Ku=0,Es=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++Ku};Es.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Ms(s),ir(this,"clear")){var g=this.find();g&&rt(this,"clear",g.from,g.to)}for(var d=null,v=null,A=0;A<this.lines.length;++A){var b=this.lines[A],y=Ts(b.markedSpans,this);s&&!this.collapsed?Pt(s,Ye(b),"text"):s&&(y.to!=null&&(v=Ye(b)),y.from!=null&&(d=Ye(b))),b.markedSpans=Oa(b.markedSpans,y),y.from==null&&this.collapsed&&!Ii(this.doc,b)&&s&&Qt(b,Dr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var U=ai(this.lines[w]),P=Yo(U);P>s.display.maxLineLength&&(s.display.maxLine=U,s.display.maxLineLength=P,s.display.maxLineChanged=!0)}d!=null&&s&&this.collapsed&&vt(s,d,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&yn(s.doc)),s&&rt(s,"markerCleared",s,this,d,v),l&&Zs(s),this.parent&&this.parent.clear()}},Es.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,d,v=0;v<this.lines.length;++v){var A=this.lines[v],b=Ts(A.markedSpans,this);if(b.from!=null&&(g=pe(l?A:Ye(A),b.from),s==-1))return g;if(b.to!=null&&(d=pe(l?A:Ye(A),b.to),s==1))return d}return g&&{from:g,to:d}},Es.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,d=this.doc.cm;!l||!d||kt(d,function(){var v=l.line,A=Ye(l.line),b=Et(d,A);if(b&&(Cu(b),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ii(g.doc,v)&&g.height!=null){var y=g.height;g.height=null;var w=Zi(g)-y;w&&Qt(v,v.height+w)}rt(d,"markerChanged",d,s)})},Es.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||gr(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Es.prototype.detachLine=function(s){if(this.lines.splice(gr(this.lines,s),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},is(Es);function Un(s,l,g,d,v){if(d&&d.shared)return Jc(s,l,g,d,v);if(s.cm&&!s.cm.curOp)return tt(s.cm,Un)(s,l,g,d,v);var A=new Es(s,v),b=Je(l,g);if(d&&zr(d,A,!1),b>0||b==0&&A.clearWhenEmpty!==!1)return A;if(A.replacedWith&&(A.collapsed=!0,A.widgetNode=ar("span",[A.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||A.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(A.widgetNode.insertLeft=!0)),A.collapsed){if(os(s,l.line,l,g,A)||l.line!=g.line&&os(s,g.line,l,g,A))throw new Error("Inserting collapsed marker partially overlapping an existing one");_t()}A.addToHistory&&Du(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,w=s.cm,U;if(s.iter(y,g.line+1,function(_){w&&A.collapsed&&!w.options.lineWrapping&&ai(_)==w.display.maxLine&&(U=!0),A.collapsed&&y!=l.line&&Qt(_,0),Wi(_,new un(A,y==l.line?l.ch:null,y==g.line?g.ch:null),s.cm&&s.cm.curOp),++y}),A.collapsed&&s.iter(l.line,g.line+1,function(_){Ii(s,_)&&Qt(_,0)}),A.clearOnEnter&&Fe(A,"beforeCursorEnter",function(){return A.clear()}),A.readOnly&&(rc(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),A.collapsed&&(A.id=++Ku,A.atomic=!0),w){if(U&&(w.curOp.updateMaxLine=!0),A.collapsed)vt(w,l.line,g.line+1);else if(A.className||A.startStyle||A.endStyle||A.css||A.attributes||A.title)for(var P=l.line;P<=g.line;P++)Pt(w,P,"text");A.atomic&&yn(w.doc),rt(w,"markerAdded",w,A)}return A}var co=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();rt(this,"clear")}},co.prototype.find=function(s,l){return this.primary.find(s,l)},is(co);function Jc(s,l,g,d,v){d=zr(d),d.shared=!1;var A=[Un(s,l,g,d,v)],b=A[0],y=d.widgetNode;return Si(s,function(w){y&&(d.widgetNode=y.cloneNode(!0)),A.push(Un(w,$e(w,l),$e(w,g),d,v));for(var U=0;U<w.linked.length;++U)if(w.linked[U].isParent)return;b=Ne(A)}),new co(A,b)}function ef(s){return s.findMarks(pe(s.first,0),s.clipPos(pe(s.lastLine())),function(l){return l.parent})}function $c(s,l){for(var g=0;g<l.length;g++){var d=l[g],v=d.find(),A=s.clipPos(v.from),b=s.clipPos(v.to);if(Je(A,b)){var y=Un(s,A,b,d.primary,d.primary.type);d.markers.push(y),y.parent=d}}}function zc(s){for(var l=function(d){var v=s[d],A=[v.primary.doc];Si(v.primary.doc,function(w){return A.push(w)});for(var b=0;b<v.markers.length;b++){var y=v.markers[b];gr(A,y.doc)==-1&&(y.parent=null,v.markers.splice(b--,1))}},g=0;g<s.length;g++)l(g)}var jc=0,Bt=function(s,l,g,d,v){if(!(this instanceof Bt))return new Bt(s,l,g,d,v);g==null&&(g=0),uo.call(this,[new lo([new hn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var A=pe(g,0);this.sel=Ri(A),this.history=new Nn(null),this.id=++jc,this.modeOption=l,this.lineSep=d,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),so(this,{from:A,to:A,text:s}),xt(this,Ri(A),ce)};Bt.prototype=rs(uo.prototype,{constructor:Bt,iter:function(s,l,g){g?this.iterN(s-this.first,l-s,g):this.iterN(this.first,this.first+this.size,s)},insert:function(s,l){for(var g=0,d=0;d<l.length;++d)g+=l[d].height;this.insertInner(s-this.first,l,g)},remove:function(s,l){this.removeInner(s-this.first,l)},getValue:function(s){var l=vi(this,this.first,this.first+this.size);return s===!1?l:l.join(s||this.lineSeparator())},setValue:it(function(s){var l=pe(this.first,0),g=this.first+this.size-1;Ln(this,{from:l,to:pe(g,Ae(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&jn(this.cm,0,0),xt(this,Ri(l),ce)}),replaceRange:function(s,l,g,d){l=$e(this,l),g=g?$e(this,g):l,wn(this,s,l,g,d)},getRange:function(s,l,g){var d=dt(this,$e(this,s),$e(this,l));return g===!1?d:g===""?d.join(""):d.join(g||this.lineSeparator())},getLine:function(s){var l=this.getLineHandle(s);return l&&l.text},getLineHandle:function(s){if(ss(this,s))return Ae(this,s)},getLineNumber:function(s){return Ye(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=Ae(this,s)),ai(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return $e(this,s)},getCursor:function(s){var l=this.sel.primary(),g;return s==null||s=="head"?g=l.head:s=="anchor"?g=l.anchor:s=="end"||s=="to"||s===!1?g=l.to():g=l.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:it(function(s,l,g){Pu(this,$e(this,typeof s=="number"?pe(s,l||0):s),null,g)}),setSelection:it(function(s,l,g){Pu(this,$e(this,s),$e(this,l||s),g)}),extendSelection:it(function(s,l,g){aa(this,$e(this,s),l&&$e(this,l),g)}),extendSelections:it(function(s,l){Qu(this,ru(this,s),l)}),extendSelectionsBy:it(function(s,l){var g=Ut(this.sel.ranges,s);Qu(this,ru(this,g),l)}),setSelections:it(function(s,l,g){if(s.length){for(var d=[],v=0;v<s.length;v++)d[v]=new fr($e(this,s[v].anchor),$e(this,s[v].head||s[v].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),xt(this,Pe(this.cm,d,l),g)}}),addSelection:it(function(s,l,g){var d=this.sel.ranges.slice(0);d.push(new fr($e(this,s),$e(this,l||s))),xt(this,Pe(this.cm,d,d.length-1),g)}),getSelection:function(s){for(var l=this.sel.ranges,g,d=0;d<l.length;d++){var v=dt(this,l[d].from(),l[d].to());g=g?g.concat(v):v}return s===!1?g:g.join(s||this.lineSeparator())},getSelections:function(s){for(var l=[],g=this.sel.ranges,d=0;d<g.length;d++){var v=dt(this,g[d].from(),g[d].to());s!==!1&&(v=v.join(s||this.lineSeparator())),l[d]=v}return l},replaceSelection:function(s,l,g){for(var d=[],v=0;v<this.sel.ranges.length;v++)d[v]=s;this.replaceSelections(d,l,g||"+input")},replaceSelections:it(function(s,l,g){for(var d=[],v=this.sel,A=0;A<v.ranges.length;A++){var b=v.ranges[A];d[A]={from:b.from(),to:b.to(),text:this.splitLines(s[A]),origin:g}}for(var y=l&&l!="end"&&Mc(this,d,l),w=d.length-1;w>=0;w--)Ln(this,d[w]);y?ku(this,y):this.cm&&In(this.cm)}),undo:it(function(){ua(this,"undo")}),redo:it(function(){ua(this,"redo")}),undoSelection:it(function(){ua(this,"undo",!0)}),redoSelection:it(function(){ua(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,l=0,g=0,d=0;d<s.done.length;d++)s.done[d].ranges||++l;for(var v=0;v<s.undone.length;v++)s.undone[v].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new Nn(this.history),Si(this,function(l){return l.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:bn(this.history.done),undone:bn(this.history.undone)}},setHistory:function(s){var l=this.history=new Nn(this.history);l.done=bn(s.done.slice(0),null,!0),l.undone=bn(s.undone.slice(0),null,!0)},setGutterMarker:it(function(s,l,g){return ao(this,s,"gutter",function(d){var v=d.gutterMarkers||(d.gutterMarkers={});return v[l]=g,!g&&tr(v)&&(d.gutterMarkers=null),!0})}),clearGutter:it(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&ao(l,g,"gutter",function(){return g.gutterMarkers[s]=null,tr(g.gutterMarkers)&&(g.gutterMarkers=null),!0})})}),lineInfo:function(s){var l;if(typeof s=="number"){if(!ss(this,s)||(l=s,s=Ae(this,s),!s))return null}else if(l=Ye(s),l==null)return null;return{line:l,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:it(function(s,l,g){return ao(this,s,l=="gutter"?"gutter":"class",function(d){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!d[v])d[v]=g;else{if(ve(g).test(d[v]))return!1;d[v]+=" "+g}return!0})}),removeLineClass:it(function(s,l,g){return ao(this,s,l=="gutter"?"gutter":"class",function(d){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",A=d[v];if(A)if(g==null)d[v]=null;else{var b=A.match(ve(g));if(!b)return!1;var y=b.index+b[0].length;d[v]=A.slice(0,b.index)+(!b.index||y==A.length?"":" ")+A.slice(y)||null}else return!1;return!0})}),addLineWidget:it(function(s,l,g){return _c(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return Un(this,$e(this,s),$e(this,l),g,g&&g.type||"range")},setBookmark:function(s,l){var g={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return s=$e(this,s),Un(this,s,s,g,"bookmark")},findMarksAt:function(s){s=$e(this,s);var l=[],g=Ae(this,s.line).markedSpans;if(g)for(var d=0;d<g.length;++d){var v=g[d];(v.from==null||v.from<=s.ch)&&(v.to==null||v.to>=s.ch)&&l.push(v.marker.parent||v.marker)}return l},findMarks:function(s,l,g){s=$e(this,s),l=$e(this,l);var d=[],v=s.line;return this.iter(s.line,l.line+1,function(A){var b=A.markedSpans;if(b)for(var y=0;y<b.length;y++){var w=b[y];!(w.to!=null&&v==s.line&&s.ch>=w.to||w.from==null&&v!=s.line||w.from!=null&&v==l.line&&w.from>=l.ch)&&(!g||g(w.marker))&&d.push(w.marker.parent||w.marker)}++v}),d},getAllMarks:function(){var s=[];return this.iter(function(l){var g=l.markedSpans;if(g)for(var d=0;d<g.length;++d)g[d].from!=null&&s.push(g[d].marker)}),s},posFromIndex:function(s){var l,g=this.first,d=this.lineSeparator().length;return this.iter(function(v){var A=v.text.length+d;if(A>s)return l=s,!0;s-=A,++g}),$e(this,pe(g,l))},indexFromPos:function(s){s=$e(this,s);var l=s.ch;if(s.line<this.first||s.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,s.line,function(d){l+=d.text.length+g}),l},copy:function(s){var l=new Bt(vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,s&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(s){s||(s={});var l=this.first,g=this.first+this.size;s.from!=null&&s.from>l&&(l=s.from),s.to!=null&&s.to<g&&(g=s.to);var d=new Bt(vi(this,l,g),s.mode||this.modeOption,l,this.lineSep,this.direction);return s.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:s.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],$c(d,ef(this)),d},unlinkDoc:function(s){if(s instanceof yr&&(s=s.doc),this.linked)for(var l=0;l<this.linked.length;++l){var g=this.linked[l];if(g.doc==s){this.linked.splice(l,1),s.unlinkDoc(this),zc(ef(this));break}}if(s.history==this.history){var d=[s.id];Si(s,function(v){return d.push(v.id)},!0),s.history=new Nn(null),s.history.done=bn(this.history.done,d),s.history.undone=bn(this.history.undone,d)}},iterLinkedDocs:function(s){Si(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):nn(s)},lineSeparator:function(){return this.lineSep||`
11
+ `},setDirection:it(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&qa(this.cm))})}),Bt.prototype.eachLine=Bt.prototype.iter;var rf=0;function qc(s){var l=this;if(tf(l),!(Er(l,s)||Qi(l.display,s))){ht(s),G&&(rf=+new Date);var g=li(l,s,!0),d=s.dataTransfer.files;if(!(!g||l.isReadOnly()))if(d&&d.length&&window.FileReader&&window.File)for(var v=d.length,A=Array(v),b=0,y=function(){++b==v&&tt(l,function(){g=$e(l.doc,g);var ee={from:g,to:g,text:l.doc.splitLines(A.filter(function(oe){return oe!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ln(l.doc,ee),ku(l.doc,Ri($e(l.doc,g),$e(l.doc,yi(ee))))})()},w=function(ee,oe){if(l.options.allowDropFileTypes&&gr(l.options.allowDropFileTypes,ee.type)==-1){y();return}var fe=new FileReader;fe.onerror=function(){return y()},fe.onload=function(){var he=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){y();return}A[oe]=he,y()},fe.readAsText(ee)},U=0;U<d.length;U++)w(d[U],U);else{if(l.state.draggingText&&l.doc.sel.contains(g)>-1){l.state.draggingText(s),setTimeout(function(){return l.display.input.focus()},20);return}try{var P=s.dataTransfer.getData("Text");if(P){var _;if(l.state.draggingText&&!l.state.draggingText.copy&&(_=l.listSelections()),Tn(l.doc,Ri(g,g)),_)for(var re=0;re<_.length;++re)wn(l.doc,"",_[re].anchor,_[re].head,"drag");l.replaceSelection(P,"around","paste"),l.display.input.focus()}}catch{}}}}function Kc(s,l){if(G&&(!s.state.draggingText||+new Date-rf<100)){bs(l);return}if(!(Er(s,l)||Qi(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!M)){var g=me("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),$&&g.parentNode.removeChild(g)}}function ep(s,l){var g=li(s,l);if(g){var d=document.createDocumentFragment();Vs(s,g,d),s.display.dragCursor||(s.display.dragCursor=me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Qe(s.display.dragCursor,d)}}function tf(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function sf(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],d=0;d<l.length;d++){var v=l[d].CodeMirror;v&&g.push(v)}g.length&&g[0].operation(function(){for(var A=0;A<g.length;A++)s(g[A])})}}var nf=!1;function rp(){nf||(tp(),nf=!0)}function tp(){var s;Fe(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,sf(ip)},100))}),Fe(window,"blur",function(){return sf(Cn)})}function ip(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var ms={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},po=0;po<10;po++)ms[po+48]=ms[po+96]=String(po);for(var fa=65;fa<=90;fa++)ms[fa]=String.fromCharCode(fa);for(var ho=1;ho<=12;ho++)ms[ho+111]=ms[ho+63235]="F"+ho;var Hi={};Hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Hi.default=q?Hi.macDefault:Hi.pcDefault;function sp(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,d,v,A,b=0;b<l.length-1;b++){var y=l[b];if(/^(cmd|meta|m)$/i.test(y))A=!0;else if(/^a(lt)?$/i.test(y))g=!0;else if(/^(c|ctrl|control)$/i.test(y))d=!0;else if(/^s(hift)?$/i.test(y))v=!0;else throw new Error("Unrecognized modifier name: "+y)}return g&&(s="Alt-"+s),d&&(s="Ctrl-"+s),A&&(s="Cmd-"+s),v&&(s="Shift-"+s),s}function np(s){var l={};for(var g in s)if(s.hasOwnProperty(g)){var d=s[g];if(/^(name|fallthrough|(de|at)tach)$/.test(g))continue;if(d=="..."){delete s[g];continue}for(var v=Ut(g.split(" "),sp),A=0;A<v.length;A++){var b=void 0,y=void 0;A==v.length-1?(y=v.join(" "),b=d):(y=v.slice(0,A+1).join(" "),b="...");var w=l[y];if(!w)l[y]=b;else if(w!=b)throw new Error("Inconsistent bindings for "+y)}delete s[g]}for(var U in l)s[U]=l[U];return s}function On(s,l,g,d){l=ca(l);var v=l.call?l.call(s,d):l[s];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&g(v))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return On(s,l.fallthrough,g,d);for(var A=0;A<l.fallthrough.length;A++){var b=On(s,l.fallthrough[A],g,d);if(b)return b}}}function of(s){var l=typeof s=="string"?s:ms[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function af(s,l,g){var d=s;return l.altKey&&d!="Alt"&&(s="Alt-"+s),(ge?l.metaKey:l.ctrlKey)&&d!="Ctrl"&&(s="Ctrl-"+s),(ge?l.ctrlKey:l.metaKey)&&d!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&d!="Shift"&&(s="Shift-"+s),s}function lf(s,l){if($&&s.keyCode==34&&s.char)return!1;var g=ms[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),af(g,s,l))}function ca(s){return typeof s=="string"?Hi[s]:s}function Gn(s,l){for(var g=s.doc.sel.ranges,d=[],v=0;v<g.length;v++){for(var A=l(g[v]);d.length&&Je(A.from,Ne(d).to)<=0;){var b=d.pop();if(Je(b.from,A.from)<0){A.from=b.from;break}}d.push(A)}kt(s,function(){for(var y=d.length-1;y>=0;y--)wn(s.doc,"",d[y].from,d[y].to,"+delete");In(s)})}function rl(s,l,g){var d=Nr(s.text,l+g,g);return d<0||d>s.text.length?null:d}function tl(s,l,g){var d=rl(s,l.ch,g);return d==null?null:new pe(l.line,d,g<0?"after":"before")}function il(s,l,g,d,v){if(s){l.doc.direction=="rtl"&&(v=-v);var A=Tr(g,l.doc.direction);if(A){var b=v<0?Ne(A):A[0],y=v<0==(b.level==1),w=y?"after":"before",U;if(b.level>0||l.doc.direction=="rtl"){var P=En(l,g);U=v<0?g.text.length-1:0;var _=bi(l,P,U).top;U=ri(function(re){return bi(l,P,re).top==_},v<0==(b.level==1)?b.from:b.to-1,U),w=="before"&&(U=rl(g,U,1))}else U=v<0?b.to:b.from;return new pe(d,U,w)}}return new pe(d,v<0?g.text.length:0,v<0?"before":"after")}function op(s,l,g,d){var v=Tr(l,s.doc.direction);if(!v)return tl(l,g,d);g.ch>=l.text.length?(g.ch=l.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var A=bt(v,g.ch,g.sticky),b=v[A];if(s.doc.direction=="ltr"&&b.level%2==0&&(d>0?b.to>g.ch:b.from<g.ch))return tl(l,g,d);var y=function(xe,Ie){return rl(l,xe instanceof pe?xe.ch:xe,Ie)},w,U=function(xe){return s.options.lineWrapping?(w=w||En(s,l),bu(s,l,w,xe)):{begin:0,end:l.text.length}},P=U(g.sticky=="before"?y(g,-1):g.ch);if(s.doc.direction=="rtl"||b.level==1){var _=b.level==1==d<0,re=y(g,_?1:-1);if(re!=null&&(_?re<=b.to&&re<=P.end:re>=b.from&&re>=P.begin)){var ee=_?"before":"after";return new pe(g.line,re,ee)}}var oe=function(xe,Ie,Ce){for(var Re=function(Cr,st){return st?new pe(g.line,y(Cr,1),"before"):new pe(g.line,Cr,"after")};xe>=0&&xe<v.length;xe+=Ie){var Ze=v[xe],Ve=Ie>0==(Ze.level!=1),er=Ve?Ce.begin:y(Ce.end,-1);if(Ze.from<=er&&er<Ze.to||(er=Ve?Ze.from:y(Ze.to,-1),Ce.begin<=er&&er<Ce.end))return Re(er,Ve)}},fe=oe(A+d,d,P);if(fe)return fe;var he=d>0?P.end:y(P.begin,-1);return he!=null&&!(d>0&&he==l.text.length)&&(fe=oe(d>0?0:v.length-1,d,U(he)),fe)?fe:null}var go={selectAll:Hu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),ce)},killLine:function(s){return Gn(s,function(l){if(l.empty()){var g=Ae(s.doc,l.head.line).text.length;return l.head.ch==g&&l.head.line<s.lastLine()?{from:l.head,to:pe(l.head.line+1,0)}:{from:l.head,to:pe(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return Gn(s,function(l){return{from:pe(l.from().line,0),to:$e(s.doc,pe(l.to().line+1,0))}})},delLineLeft:function(s){return Gn(s,function(l){return{from:pe(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return Gn(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return{from:d,to:l.from()}})},delWrappedLineRight:function(s){return Gn(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div");return{from:l.from(),to:d}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(pe(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(pe(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return uf(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return ff(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return ap(s,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div")},pr)},goLineLeft:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:0,top:g},"div")},pr)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return d.ch<s.getLine(d.line).search(/\S/)?ff(s,l.head):d},pr)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var l=[],g=s.listSelections(),d=s.options.tabSize,v=0;v<g.length;v++){var A=g[v].from(),b=Ar(s.getLine(A.line),A.ch,d);l.push(ei(d-b%d))}s.replaceSelections(l)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return kt(s,function(){for(var l=s.listSelections(),g=[],d=0;d<l.length;d++)if(l[d].empty()){var v=l[d].head,A=Ae(s.doc,v.line).text;if(A){if(v.ch==A.length&&(v=new pe(v.line,v.ch-1)),v.ch>0)v=new pe(v.line,v.ch+1),s.replaceRange(A.charAt(v.ch-1)+A.charAt(v.ch-2),pe(v.line,v.ch-2),v,"+transpose");else if(v.line>s.doc.first){var b=Ae(s.doc,v.line-1).text;b&&(v=new pe(v.line,1),s.replaceRange(A.charAt(0)+s.doc.lineSeparator()+b.charAt(b.length-1),pe(v.line-1,b.length-1),v,"+transpose"))}}g.push(new fr(v,v))}s.setSelections(g)})},newlineAndIndent:function(s){return kt(s,function(){for(var l=s.listSelections(),g=l.length-1;g>=0;g--)s.replaceRange(s.doc.lineSeparator(),l[g].anchor,l[g].head,"+input");l=s.listSelections();for(var d=0;d<l.length;d++)s.indentLine(l[d].from().line,null,!0);In(s)})},openLine:function(s){return s.replaceSelection(`
12
+ `,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function uf(s,l){var g=Ae(s.doc,l),d=ai(g);return d!=g&&(l=Ye(d)),il(!0,s,d,l,1)}function ap(s,l){var g=Ae(s.doc,l),d=tc(g);return d!=g&&(l=Ye(d)),il(!0,s,g,l,-1)}function ff(s,l){var g=uf(s,l.line),d=Ae(s.doc,g.line),v=Tr(d,s.doc.direction);if(!v||v[0].level==0){var A=Math.max(g.ch,d.text.search(/\S/)),b=l.line==g.line&&l.ch<=A&&l.ch;return pe(g.line,b?0:A,g.sticky)}return g}function pa(s,l,g){if(typeof l=="string"&&(l=go[l],!l))return!1;s.display.input.ensurePolled();var d=s.display.shift,v=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),v=l(s)!=Ge}finally{s.display.shift=d,s.state.suppressEdits=!1}return v}function lp(s,l,g){for(var d=0;d<s.state.keyMaps.length;d++){var v=On(l,s.state.keyMaps[d],g,s);if(v)return v}return s.options.extraKeys&&On(l,s.options.extraKeys,g,s)||On(l,s.options.keyMap,g,s)}var up=new Qr;function Eo(s,l,g,d){var v=s.state.keySeq;if(v){if(of(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:up.set(50,function(){s.state.keySeq==v&&(s.state.keySeq=null,s.display.input.reset())}),cf(s,v+" "+l,g,d))return!0}return cf(s,l,g,d)}function cf(s,l,g,d){var v=lp(s,l,d);return v=="multi"&&(s.state.keySeq=l),v=="handled"&&rt(s,"keyHandled",s,l,g),(v=="handled"||v=="multi")&&(ht(g),ka(s)),!!v}function pf(s,l){var g=lf(l,!0);return g?l.shiftKey&&!s.state.keySeq?Eo(s,"Shift-"+g,l,function(d){return pa(s,d,!0)})||Eo(s,g,l,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return pa(s,d)}):Eo(s,g,l,function(d){return pa(s,d)}):!1}function fp(s,l,g){return Eo(s,"'"+g+"'",l,function(d){return pa(s,d,!0)})}var sl=null;function hf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=$r(wt(l)),!Er(l,s))){G&&W<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var d=pf(l,s);$&&(sl=d?g:null,!d&&g==88&&!Pn&&(q?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!q&&!d&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&cp(l)}}function cp(s){var l=s.display.lineDiv;je(l,"CodeMirror-crosshair");function g(d){(d.keyCode==18||!d.altKey)&&(Te(l,"CodeMirror-crosshair"),Pr(document,"keyup",g),Pr(document,"mouseover",g))}Fe(document,"keyup",g),Fe(document,"mouseover",g)}function df(s){s.keyCode==16&&(this.doc.sel.shift=!1),Er(this,s)}function gf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&!(Qi(l.display,s)||Er(l,s)||s.ctrlKey&&!s.altKey||q&&s.metaKey)){var g=s.keyCode,d=s.charCode;if($&&g==sl){sl=null,ht(s);return}if(!($&&(!s.which||s.which<10)&&pf(l,s))){var v=String.fromCharCode(d??g);v!="\b"&&(fp(l,s,v)||l.display.input.onKeyPress(s))}}}var pp=400,nl=function(s,l,g){this.time=s,this.pos=l,this.button=g};nl.prototype.compare=function(s,l,g){return this.time+pp>s&&Je(l,this.pos)==0&&g==this.button};var mo,vo;function hp(s,l){var g=+new Date;return vo&&vo.compare(g,s,l)?(mo=vo=null,"triple"):mo&&mo.compare(g,s,l)?(vo=new nl(g,s,l),mo=null,"double"):(mo=new nl(g,s,l),vo=null,"single")}function Ef(s){var l=this,g=l.display;if(!(Er(l,s)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=s.shiftKey,Qi(g,s)){D||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!ol(l,s)){var d=li(l,s),v=tn(s),A=d?hp(d,v):"single";ut(l).focus(),v==1&&l.state.selectingText&&l.state.selectingText(s),!(d&&dp(l,v,d,A,s))&&(v==1?d?Ep(l,d,A,s):rn(s)==g.scroller&&ht(s):v==2?(d&&aa(l.doc,d),setTimeout(function(){return g.input.focus()},20)):v==3&&(ke?l.display.input.onContextMenu(s):Xa(l)))}}}function dp(s,l,g,d,v){var A="Click";return d=="double"?A="Double"+A:d=="triple"&&(A="Triple"+A),A=(l==1?"Left":l==2?"Middle":"Right")+A,Eo(s,af(A,v),v,function(b){if(typeof b=="string"&&(b=go[b]),!b)return!1;var y=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y=b(s,g)!=Ge}finally{s.state.suppressEdits=!1}return y})}function gp(s,l,g){var d=s.getOption("configureMouse"),v=d?d(s,l,g):{};if(v.unit==null){var A=te?g.shiftKey&&g.metaKey:g.altKey;v.unit=A?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(v.extend==null||s.doc.extend)&&(v.extend=s.doc.extend||g.shiftKey),v.addNew==null&&(v.addNew=q?g.metaKey:g.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(q?g.altKey:g.ctrlKey)),v}function Ep(s,l,g,d){G?setTimeout(qe(Tu,s),0):s.curOp.focus=$r(wt(s));var v=gp(s,g,d),A=s.doc.sel,b;s.options.dragDrop&&Bo&&!s.isReadOnly()&&g=="single"&&(b=A.contains(l))>-1&&(Je((b=A.ranges[b]).from(),l)<0||l.xRel>0)&&(Je(b.to(),l)>0||l.xRel<0)?mp(s,d,l,v):vp(s,d,l,v)}function mp(s,l,g,d){var v=s.display,A=!1,b=tt(s,function(U){D&&(v.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:Xa(s)),Pr(v.wrapper.ownerDocument,"mouseup",b),Pr(v.wrapper.ownerDocument,"mousemove",y),Pr(v.scroller,"dragstart",w),Pr(v.scroller,"drop",b),A||(ht(U),d.addNew||aa(s.doc,g,null,null,d.extend),D&&!M||G&&W==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),y=function(U){A=A||Math.abs(l.clientX-U.clientX)+Math.abs(l.clientY-U.clientY)>=10},w=function(){return A=!0};D&&(v.scroller.draggable=!0),s.state.draggingText=b,b.copy=!d.moveOnDrag,Fe(v.wrapper.ownerDocument,"mouseup",b),Fe(v.wrapper.ownerDocument,"mousemove",y),Fe(v.scroller,"dragstart",w),Fe(v.scroller,"drop",b),s.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function mf(s,l,g){if(g=="char")return new fr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new fr(pe(l.line,0),$e(s.doc,pe(l.line+1,0)));var d=g(s,l);return new fr(d.from,d.to)}function vp(s,l,g,d){G&&Xa(s);var v=s.display,A=s.doc;ht(l);var b,y,w=A.sel,U=w.ranges;if(d.addNew&&!d.extend?(y=A.sel.contains(g),y>-1?b=U[y]:b=new fr(g,g)):(b=A.sel.primary(),y=A.sel.primIndex),d.unit=="rectangle")d.addNew||(b=new fr(g,g)),g=li(s,l,!0,!0),y=-1;else{var P=mf(s,g,d.unit);d.extend?b=Ka(b,P.anchor,P.head,d.extend):b=P}d.addNew?y==-1?(y=U.length,xt(A,Pe(s,U.concat([b]),y),{scroll:!1,origin:"*mouse"})):U.length>1&&U[y].empty()&&d.unit=="char"&&!d.extend?(xt(A,Pe(s,U.slice(0,y).concat(U.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=A.sel):el(A,y,b,vr):(y=0,xt(A,new Rr([b],0),vr),w=A.sel);var _=g;function re(Ce){if(Je(_,Ce)!=0)if(_=Ce,d.unit=="rectangle"){for(var Re=[],Ze=s.options.tabSize,Ve=Ar(Ae(A,g.line).text,g.ch,Ze),er=Ar(Ae(A,Ce.line).text,Ce.ch,Ze),Cr=Math.min(Ve,er),st=Math.max(Ve,er),Lr=Math.min(g.line,Ce.line),Xt=Math.min(s.lastLine(),Math.max(g.line,Ce.line));Lr<=Xt;Lr++){var Vt=Ae(A,Lr).text,Xr=we(Vt,Cr,Ze);Cr==st?Re.push(new fr(pe(Lr,Xr),pe(Lr,Xr))):Vt.length>Xr&&Re.push(new fr(pe(Lr,Xr),pe(Lr,we(Vt,st,Ze))))}Re.length||Re.push(new fr(g,g)),xt(A,Pe(s,w.ranges.slice(0,y).concat(Re),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(Ce)}else{var Wt=b,lt=mf(s,Ce,d.unit),jr=Wt.anchor,Hr;Je(lt.anchor,jr)>0?(Hr=lt.head,jr=Zo(Wt.from(),lt.anchor)):(Hr=lt.anchor,jr=Mo(Wt.to(),lt.head));var Gr=w.ranges.slice(0);Gr[y]=xp(s,new fr($e(A,jr),Hr)),xt(A,Pe(s,Gr,y),vr)}}var ee=v.wrapper.getBoundingClientRect(),oe=0;function fe(Ce){var Re=++oe,Ze=li(s,Ce,!0,d.unit=="rectangle");if(Ze)if(Je(Ze,_)!=0){s.curOp.focus=$r(wt(s)),re(Ze);var Ve=qo(v,A);(Ze.line>=Ve.to||Ze.line<Ve.from)&&setTimeout(tt(s,function(){oe==Re&&fe(Ce)}),150)}else{var er=Ce.clientY<ee.top?-20:Ce.clientY>ee.bottom?20:0;er&&setTimeout(tt(s,function(){oe==Re&&(v.scroller.scrollTop+=er,fe(Ce))}),50)}}function he(Ce){s.state.selectingText=!1,oe=1/0,Ce&&(ht(Ce),v.input.focus()),Pr(v.wrapper.ownerDocument,"mousemove",xe),Pr(v.wrapper.ownerDocument,"mouseup",Ie),A.history.lastSelOrigin=null}var xe=tt(s,function(Ce){Ce.buttons===0||!tn(Ce)?he(Ce):fe(Ce)}),Ie=tt(s,he);s.state.selectingText=Ie,Fe(v.wrapper.ownerDocument,"mousemove",xe),Fe(v.wrapper.ownerDocument,"mouseup",Ie)}function xp(s,l){var g=l.anchor,d=l.head,v=Ae(s.doc,g.line);if(Je(g,d)==0&&g.sticky==d.sticky)return l;var A=Tr(v);if(!A)return l;var b=bt(A,g.ch,g.sticky),y=A[b];if(y.from!=g.ch&&y.to!=g.ch)return l;var w=b+(y.from==g.ch==(y.level!=1)?0:1);if(w==0||w==A.length)return l;var U;if(d.line!=g.line)U=(d.line-g.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var P=bt(A,d.ch,d.sticky),_=P-b||(d.ch-g.ch)*(y.level==1?-1:1);P==w-1||P==w?U=_<0:U=_>0}var re=A[w+(U?-1:0)],ee=U==(re.level==1),oe=ee?re.from:re.to,fe=ee?"after":"before";return g.ch==oe&&g.sticky==fe?l:new fr(new pe(g.line,oe,fe),d)}function vf(s,l,g,d){var v,A;if(l.touches)v=l.touches[0].clientX,A=l.touches[0].clientY;else try{v=l.clientX,A=l.clientY}catch{return!1}if(v>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;d&&ht(l);var b=s.display,y=b.lineDiv.getBoundingClientRect();if(A>y.bottom||!ir(s,g))return mi(l);A-=y.top-b.viewOffset;for(var w=0;w<s.display.gutterSpecs.length;++w){var U=b.gutters.childNodes[w];if(U&&U.getBoundingClientRect().right>=v){var P=xi(s.doc,A),_=s.display.gutterSpecs[w];return ur(s,g,s,P,_.className,l),mi(l)}}}function ol(s,l){return vf(s,l,"gutterClick",!0)}function xf(s,l){Qi(s.display,l)||Cp(s,l)||Er(s,l,"contextmenu")||ke||s.display.input.onContextMenu(l)}function Cp(s,l){return ir(s,"gutterContextMenu")?vf(s,l,"gutterContextMenu",!1):!1}function Cf(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Us(s)}var Fn={toString:function(){return"CodeMirror.Init"}},If={},ha={};function Ip(s){var l=s.optionHandlers;function g(d,v,A,b){s.defaults[d]=v,A&&(l[d]=b?function(y,w,U){U!=Fn&&A(y,w,U)}:A)}s.defineOption=g,s.Init=Fn,g("value","",function(d,v){return d.setValue(v)},!0),g("mode",null,function(d,v){d.doc.modeOption=v,ui(d)},!0),g("indentUnit",2,ui,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(d){Qs(d),Us(d),vt(d)},!0),g("lineSeparator",null,function(d,v){if(d.doc.lineSep=v,!!v){var A=[],b=d.doc.first;d.doc.iter(function(w){for(var U=0;;){var P=w.text.indexOf(v,U);if(P==-1)break;U=P+v.length,A.push(pe(b,P))}b++});for(var y=A.length-1;y>=0;y--)wn(d.doc,v,A[y],pe(A[y].line,A[y].ch+v.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(d,v,A){d.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),A!=Fn&&d.refresh()}),g("specialCharPlaceholder",ac,function(d){return d.refresh()},!0),g("electricChars",!0),g("inputStyle",Y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(d,v){return d.getInputField().spellcheck=v},!0),g("autocorrect",!1,function(d,v){return d.getInputField().autocorrect=v},!0),g("autocapitalize",!1,function(d,v){return d.getInputField().autocapitalize=v},!0),g("rtlMoveVisually",!ie),g("wholeLineUpdateBefore",!0),g("theme","default",function(d){Cf(d),io(d)},!0),g("keyMap","default",function(d,v,A){var b=ca(v),y=A!=Fn&&ca(A);y&&y.detach&&y.detach(d,b),b.attach&&b.attach(d,y||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,Np,!0),g("gutters",[],function(d,v){d.display.gutterSpecs=ja(v,d.options.lineNumbers),io(d)},!0),g("fixedGutter",!0,function(d,v){d.display.gutters.style.left=v?mt(d.display)+"px":"0",d.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(d){return An(d)},!0),g("scrollbarStyle","native",function(d){Uu(d),An(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),g("lineNumbers",!1,function(d,v){d.display.gutterSpecs=ja(d.options.gutters,v),io(d)},!0),g("firstLineNumber",1,io,!0),g("lineNumberFormatter",function(d){return d},io,!0),g("showCursorWhenSelecting",!1,Bs,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(d,v){v=="nocursor"&&(Cn(d),d.display.input.blur()),d.display.input.readOnlyChanged(v)}),g("screenReaderLabel",null,function(d,v){v=v===""?null:v,d.display.input.screenReaderLabelChanged(v)}),g("disableInput",!1,function(d,v){v||d.display.input.reset()},!0),g("dragDrop",!0,Ap),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Bs,!0),g("singleCursorHeightPerLine",!0,Bs,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,Qs,!0),g("addModeClass",!1,Qs,!0),g("pollInterval",100),g("undoDepth",200,function(d,v){return d.doc.history.undoDepth=v}),g("historyEventDelay",1250),g("viewportMargin",10,function(d){return d.refresh()},!0),g("maxHighlightLength",1e4,Qs,!0),g("moveInputWithCursor",!0,function(d,v){v||d.display.input.resetPosition()}),g("tabindex",null,function(d,v){return d.display.input.getField().tabIndex=v||""}),g("autofocus",null),g("direction","ltr",function(d,v){return d.doc.setDirection(v)},!0),g("phrases",null)}function Ap(s,l,g){var d=g&&g!=Fn;if(!l!=!d){var v=s.display.dragFunctions,A=l?Fe:Pr;A(s.display.scroller,"dragstart",v.start),A(s.display.scroller,"dragenter",v.enter),A(s.display.scroller,"dragover",v.over),A(s.display.scroller,"dragleave",v.leave),A(s.display.scroller,"drop",v.drop)}}function Np(s){s.options.lineWrapping?(je(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Te(s.display.wrapper,"CodeMirror-wrap"),Wa(s)),Fs(s),vt(s),Us(s),setTimeout(function(){return An(s)},100)}function yr(s,l){var g=this;if(!(this instanceof yr))return new yr(s,l);this.options=l=l?zr(l):{},zr(If,l,!1);var d=l.value;typeof d=="string"?d=new Bt(d,l.mode,null,l.lineSeparator,l.direction):l.mode&&(d.modeOption=l.mode),this.doc=d;var v=new yr.inputStyles[l.inputStyle](this),A=this.display=new Wc(s,d,v,l);A.wrapper.CodeMirror=this,Cf(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Uu(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Qr,keySeq:null,specialChars:null},l.autofocus&&!Y&&A.input.focus(),G&&W<11&&setTimeout(function(){return g.display.input.reset(!0)},20),bp(this),rp(),Ms(this),this.curOp.forceUpdate=!0,sa(this,d),l.autofocus&&!Y||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Ha(g)},20):Cn(this);for(var b in ha)ha.hasOwnProperty(b)&&ha[b](this,l[b],Fn);Fu(this),l.finishInit&&l.finishInit(this);for(var y=0;y<al.length;++y)al[y](this);Zs(this),D&&l.lineWrapping&&getComputedStyle(A.lineDiv).textRendering=="optimizelegibility"&&(A.lineDiv.style.textRendering="auto")}yr.defaults=If,yr.optionHandlers=ha;function bp(s){var l=s.display;Fe(l.scroller,"mousedown",tt(s,Ef)),G&&W<11?Fe(l.scroller,"dblclick",tt(s,function(w){if(!Er(s,w)){var U=li(s,w);if(!(!U||ol(s,w)||Qi(s.display,w))){ht(w);var P=s.findWordAt(U);aa(s.doc,P.anchor,P.head)}}})):Fe(l.scroller,"dblclick",function(w){return Er(s,w)||ht(w)}),Fe(l.scroller,"contextmenu",function(w){return xf(s,w)}),Fe(l.input.getField(),"contextmenu",function(w){l.scroller.contains(w.target)||xf(s,w)});var g,d={end:0};function v(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),d=l.activeTouch,d.end=+new Date)}function A(w){if(w.touches.length!=1)return!1;var U=w.touches[0];return U.radiusX<=1&&U.radiusY<=1}function b(w,U){if(U.left==null)return!0;var P=U.left-w.left,_=U.top-w.top;return P*P+_*_>20*20}Fe(l.scroller,"touchstart",function(w){if(!Er(s,w)&&!A(w)&&!ol(s,w)){l.input.ensurePolled(),clearTimeout(g);var U=+new Date;l.activeTouch={start:U,moved:!1,prev:U-d.end<=300?d:null},w.touches.length==1&&(l.activeTouch.left=w.touches[0].pageX,l.activeTouch.top=w.touches[0].pageY)}}),Fe(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Fe(l.scroller,"touchend",function(w){var U=l.activeTouch;if(U&&!Qi(l,w)&&U.left!=null&&!U.moved&&new Date-U.start<300){var P=s.coordsChar(l.activeTouch,"page"),_;!U.prev||b(U,U.prev)?_=new fr(P,P):!U.prev.prev||b(U,U.prev.prev)?_=s.findWordAt(P):_=new fr(pe(P.line,0),$e(s.doc,pe(P.line+1,0))),s.setSelection(_.anchor,_.head),s.focus(),ht(w)}v()}),Fe(l.scroller,"touchcancel",v),Fe(l.scroller,"scroll",function(){l.scroller.clientHeight&&(qn(s,l.scroller.scrollTop),Ws(s,l.scroller.scrollLeft,!0),ur(s,"scroll",s))}),Fe(l.scroller,"mousewheel",function(w){return ta(s,w)}),Fe(l.scroller,"DOMMouseScroll",function(w){return ta(s,w)}),Fe(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(w){Er(s,w)||bs(w)},over:function(w){Er(s,w)||(ep(s,w),bs(w))},start:function(w){return Kc(s,w)},drop:tt(s,qc),leave:function(w){Er(s,w)||tf(s)}};var y=l.input.getField();Fe(y,"keyup",function(w){return df.call(s,w)}),Fe(y,"keydown",tt(s,hf)),Fe(y,"keypress",tt(s,gf)),Fe(y,"focus",function(w){return Ha(s,w)}),Fe(y,"blur",function(w){return Cn(s,w)})}var al=[];yr.defineInitHook=function(s){return al.push(s)};function xo(s,l,g,d){var v=s.doc,A;g==null&&(g="add"),g=="smart"&&(v.mode.indent?A=kn(s,l).state:g="prev");var b=s.options.tabSize,y=Ae(v,l),w=Ar(y.text,null,b);y.stateAfter&&(y.stateAfter=null);var U=y.text.match(/^\s*/)[0],P;if(!d&&!/\S/.test(y.text))P=0,g="not";else if(g=="smart"&&(P=v.mode.indent(A,y.text.slice(U.length),y.text),P==Ge||P>150)){if(!d)return;g="prev"}g=="prev"?l>v.first?P=Ar(Ae(v,l-1).text,null,b):P=0:g=="add"?P=w+s.options.indentUnit:g=="subtract"?P=w-s.options.indentUnit:typeof g=="number"&&(P=w+g),P=Math.max(0,P);var _="",re=0;if(s.options.indentWithTabs)for(var ee=Math.floor(P/b);ee;--ee)re+=b,_+=" ";if(re<P&&(_+=ei(P-re)),_!=U)return wn(v,_,pe(l,0),pe(l,U.length),"+input"),y.stateAfter=null,!0;for(var oe=0;oe<v.sel.ranges.length;oe++){var fe=v.sel.ranges[oe];if(fe.head.line==l&&fe.head.ch<U.length){var he=pe(l,U.length);el(v,oe,new fr(he,he));break}}}var fi=null;function da(s){fi=s}function ll(s,l,g,d,v){var A=s.doc;s.display.shift=!1,d||(d=A.sel);var b=+new Date-200,y=v=="paste"||s.state.pasteIncoming>b,w=nn(l),U=null;if(y&&d.ranges.length>1)if(fi&&fi.text.join(`
13
+ `)==l){if(d.ranges.length%fi.text.length==0){U=[];for(var P=0;P<fi.text.length;P++)U.push(A.splitLines(fi.text[P]))}}else w.length==d.ranges.length&&s.options.pasteLinesPerSelection&&(U=Ut(w,function(xe){return[xe]}));for(var _=s.curOp.updateInput,re=d.ranges.length-1;re>=0;re--){var ee=d.ranges[re],oe=ee.from(),fe=ee.to();ee.empty()&&(g&&g>0?oe=pe(oe.line,oe.ch-g):s.state.overwrite&&!y?fe=pe(fe.line,Math.min(Ae(A,fe.line).text.length,fe.ch+Ne(w).length)):y&&fi&&fi.lineWise&&fi.text.join(`
14
14
  `)==w.join(`
15
- `)&&(oe=ce=he(oe.line,0)));var de={from:oe,to:ce,text:U?U[re%U.length]:w,origin:v||(y?"paste":s.state.cutIncoming>b?"cut":"+input")};Ln(s.doc,de),rt(s,"inputRead",s,de)}l&&!y&&Nf(s,l),In(s),s.curOp.updateInput<2&&(s.curOp.updateInput=J),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function Af(s,l){var g=s.clipboardData&&s.clipboardData.getData("Text");if(g)return s.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&Qt(l,function(){return ll(l,g,0,null,"paste")}),!0}function Nf(s,l){if(!(!s.options.electricChars||!s.options.smartIndent))for(var g=s.doc.sel,d=g.ranges.length-1;d>=0;d--){var v=g.ranges[d];if(!(v.head.ch>100||d&&g.ranges[d-1].head.line==v.head.line)){var A=s.getModeAt(v.head),b=!1;if(A.electricChars){for(var y=0;y<A.electricChars.length;y++)if(l.indexOf(A.electricChars.charAt(y))>-1){b=xo(s,v.head.line,"smart");break}}else A.electricInput&&A.electricInput.test(Ie(s.doc,v.head.line).text.slice(0,v.head.ch))&&(b=xo(s,v.head.line,"smart"));b&&rt(s,"electricInput",s,v.head.line)}}}function bf(s){for(var l=[],g=[],d=0;d<s.doc.sel.ranges.length;d++){var v=s.doc.sel.ranges[d].head.line,A={anchor:he(v,0),head:he(v+1,0)};g.push(A),l.push(s.getRange(A.anchor,A.head))}return{text:l,ranges:g}}function ul(s,l,g,d){s.setAttribute("autocorrect",g?"on":"off"),s.setAttribute("autocapitalize",d?"on":"off"),s.setAttribute("spellcheck",!!l)}function Tf(){var s=me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=me("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Z?s.style.width="1000px":s.setAttribute("wrap","off"),B&&(s.style.border="1px solid black"),l}function bp(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){ut(this).focus(),this.display.input.focus()},setOption:function(d,v){var A=this.options,b=A[d];A[d]==v&&d!="mode"||(A[d]=v,l.hasOwnProperty(d)&&tt(this,l[d])(this,v,b),ar(this,"optionChange",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,v){this.state.keyMaps[v?"push":"unshift"](ca(d))},removeKeyMap:function(d){for(var v=this.state.keyMaps,A=0;A<v.length;++A)if(v[A]==d||v[A].name==d)return v.splice(A,1),!0},addOverlay:Tt(function(d,v){var A=d.token?d:s.getMode(this.options,d);if(A.startState)throw new Error("Overlays may not be stateful.");ft(this.state.overlays,{mode:A,modeSpec:d,opaque:v&&v.opaque,priority:v&&v.priority||0},function(b){return b.priority}),this.state.modeGen++,vt(this)}),removeOverlay:Tt(function(d){for(var v=this.state.overlays,A=0;A<v.length;++A){var b=v[A].modeSpec;if(b==d||typeof d=="string"&&b.name==d){v.splice(A,1),this.state.modeGen++,vt(this);return}}}),indentLine:Tt(function(d,v,A){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),ss(this.doc,d)&&xo(this,d,v,A)}),indentSelection:Tt(function(d){for(var v=this.doc.sel.ranges,A=-1,b=0;b<v.length;b++){var y=v[b];if(y.empty())y.head.line>A&&(xo(this,y.head.line,d,!0),A=y.head.line,b==this.doc.sel.primIndex&&In(this));else{var w=y.from(),U=y.to(),k=Math.max(A,w.line);A=Math.min(this.lastLine(),U.line-(U.ch?0:1))+1;for(var J=k;J<A;++J)xo(this,J,d);var re=this.doc.sel.ranges;w.ch==0&&v.length==re.length&&re[b].from().ch>0&&el(this.doc,b,new lr(w,re[b].to()),pe)}}}),getTokenAt:function(d,v){return ou(this,d,v)},getLineTokens:function(d,v){return ou(this,he(d),v,!0)},getTokenTypeAt:function(d){d=Ye(this.doc,d);var v=iu(this,Ie(this.doc,d.line)),A=0,b=(v.length-1)/2,y=d.ch,w;if(y==0)w=v[2];else for(;;){var U=A+b>>1;if((U?v[U*2-1]:0)>=y)b=U;else if(v[U*2+1]<y)A=U+1;else{w=v[U*2+2];break}}var k=w?w.indexOf("overlay "):-1;return k<0?w:k==0?null:w.slice(0,k-1)},getModeAt:function(d){var v=this.doc.mode;return v.innerMode?s.innerMode(v,this.getTokenAt(d).state).mode:v},getHelper:function(d,v){return this.getHelpers(d,v)[0]},getHelpers:function(d,v){var A=[];if(!g.hasOwnProperty(v))return A;var b=g[v],y=this.getModeAt(d);if(typeof y[v]=="string")b[y[v]]&&A.push(b[y[v]]);else if(y[v])for(var w=0;w<y[v].length;w++){var U=b[y[v][w]];U&&A.push(U)}else y.helperType&&b[y.helperType]?A.push(b[y.helperType]):b[y.name]&&A.push(b[y.name]);for(var k=0;k<b._global.length;k++){var J=b._global[k];J.pred(y,this)&&hr(A,J.val)==-1&&A.push(J.val)}return A},getStateAfter:function(d,v){var A=this.doc;return d=eu(A,d??A.first+A.size-1),Qn(this,d+1,v).state},cursorCoords:function(d,v){var A,b=this.doc.sel.primary();return d==null?A=b.head:typeof d=="object"?A=Ye(this.doc,d):A=d?b.from():b.to(),$e(this,A,v||"page")},charCoords:function(d,v){return $o(this,Ye(this.doc,d),v||"page")},coordsChar:function(d,v){return d=us(this,d,v||"page"),ka(this,d.left,d.top)},lineAtHeight:function(d,v){return d=us(this,{top:d,left:0},v||"page").top,xi(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,v,A){var b=!1,y;if(typeof d=="number"){var w=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>w&&(d=w,b=!0),y=Ie(this.doc,d)}else y=d;return vn(this,y,{top:0,left:0},v||"page",A||b).top+(b?this.doc.height-Wi(y):0)},defaultTextHeight:function(){return Mr(this.display)},defaultCharWidth:function(){return fs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,v,A,b,y){var w=this.display;d=$e(this,Ye(this.doc,d));var U=d.bottom,k=d.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),w.sizer.appendChild(v),b=="over")U=d.top;else if(b=="above"||b=="near"){var J=Math.max(w.wrapper.clientHeight,this.doc.height),re=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(b=="above"||d.bottom+v.offsetHeight>J)&&d.top>v.offsetHeight?U=d.top-v.offsetHeight:d.bottom+v.offsetHeight<=J&&(U=d.bottom),k+v.offsetWidth>re&&(k=re-v.offsetWidth)}v.style.top=U+"px",v.style.left=v.style.right="",y=="right"?(k=w.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(y=="left"?k=0:y=="middle"&&(k=(w.sizer.clientWidth-v.offsetWidth)/2),v.style.left=k+"px"),A&&Ac(this,{left:k,top:U,right:k+v.offsetWidth,bottom:U+v.offsetHeight})},triggerOnKeyDown:Tt(hf),triggerOnKeyPress:Tt(gf),triggerOnKeyUp:df,triggerOnMouseDown:Tt(Ef),execCommand:function(d){if(go.hasOwnProperty(d))return go[d].call(null,this)},triggerElectric:Tt(function(d){Nf(this,d)}),findPosH:function(d,v,A,b){var y=1;v<0&&(y=-1,v=-v);for(var w=Ye(this.doc,d),U=0;U<v&&(w=fl(this.doc,w,y,A,b),!w.hitSide);++U);return w},moveH:Tt(function(d,v){var A=this;this.extendSelectionsBy(function(b){return A.display.shift||A.doc.extend||b.empty()?fl(A.doc,b.head,d,v,A.options.rtlMoveVisually):d<0?b.from():b.to()},fr)}),deleteH:Tt(function(d,v){var A=this.doc.sel,b=this.doc;A.somethingSelected()?b.replaceSelection("",null,"+delete"):Fn(this,function(y){var w=fl(b,y.head,d,v,!1);return d<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(d,v,A,b){var y=1,w=b;v<0&&(y=-1,v=-v);for(var U=Ye(this.doc,d),k=0;k<v;++k){var J=$e(this,U,"div");if(w==null?w=J.left:J.left=w,U=Rf(this,J,y,A),U.hitSide)break}return U},moveV:Tt(function(d,v){var A=this,b=this.doc,y=[],w=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(k){if(w)return d<0?k.from():k.to();var J=$e(A,k.head,"div");k.goalColumn!=null&&(J.left=k.goalColumn),y.push(J.left);var re=Rf(A,J,d,v);return v=="page"&&k==b.sel.primary()&&Ya(A,$o(A,re,"div").top-J.top),re},fr),y.length)for(var U=0;U<b.sel.ranges.length;U++)b.sel.ranges[U].goalColumn=y[U]}),findWordAt:function(d){var v=this.doc,A=Ie(v,d.line).text,b=d.ch,y=d.ch;if(A){var w=this.getHelper(d,"wordChars");(d.sticky=="before"||y==A.length)&&b?--b:++y;for(var U=A.charAt(b),k=Oe(U,w)?function(J){return Oe(J,w)}:/\s/.test(U)?function(J){return/\s/.test(J)}:function(J){return!/\s/.test(J)&&!Oe(J)};b>0&&k(A.charAt(b-1));)--b;for(;y<A.length&&k(A.charAt(y));)++y}return new lr(he(d.line,b),he(d.line,y))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ze(this.display.cursorDiv,"CodeMirror-overwrite"):Le(this.display.cursorDiv,"CodeMirror-overwrite"),ar(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$r(wt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Tt(function(d,v){jn(this,d,v)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-Ni(this)-this.display.barHeight,width:d.scrollWidth-Ni(this)-this.display.barWidth,clientHeight:Wa(this),clientWidth:ws(this)}},scrollIntoView:Tt(function(d,v){d==null?(d={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof d=="number"?d={from:he(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=v||0,d.from.line!=null?Nc(this,d):yu(this,d.from,d.to,d.margin)}),setSize:Tt(function(d,v){var A=this,b=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};d!=null&&(this.display.wrapper.style.width=b(d)),v!=null&&(this.display.wrapper.style.height=b(v)),this.options.lineWrapping&&Jo(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var U=0;U<w.widgets.length;U++)if(w.widgets[U].noHScroll){kt(A,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ar(this,"refresh",this)}),operation:function(d){return Qt(this,d)},startOperation:function(){return Ws(this)},endOperation:function(){return Zs(this)},refresh:Tt(function(){var d=this.display.cachedTextHeight;vt(this),this.curOp.forceUpdate=!0,Os(this),jn(this,this.doc.scrollLeft,this.doc.scrollTop),to(this.display),(d==null||Math.abs(d-Mr(this.display))>.5||this.options.lineWrapping)&&Gs(this),ar(this,"refresh",this)}),swapDoc:Tt(function(d){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,d),Os(this),this.display.input.reset(),jn(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,v),v}),phrase:function(d){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,d)?v[d]:d},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},is(s),s.registerHelper=function(d,v,A){g.hasOwnProperty(d)||(g[d]=s[d]={_global:[]}),g[d][v]=A},s.registerGlobalHelper=function(d,v,A,b){s.registerHelper(d,v,b),g[d]._global.push({pred:A,val:b})}}function fl(s,l,g,d,v){var A=l,b=g,y=Ie(s,l.line),w=v&&s.direction=="rtl"?-g:g;function U(){var Ce=l.line+w;return Ce<s.first||Ce>=s.first+s.size?!1:(l=new he(Ce,l.ch,l.sticky),y=Ie(s,Ce))}function k(Ce){var xe;if(d=="codepoint"){var be=y.text.charCodeAt(l.ch+(g>0?0:-1));if(isNaN(be))xe=null;else{var Ze=g>0?be>=55296&&be<56320:be>=56320&&be<57343;xe=new he(l.line,Math.max(0,Math.min(y.text.length,l.ch+g*(Ze?2:1))),-g)}}else v?xe=np(s.cm,y,l,g):xe=tl(y,l,g);if(xe==null)if(!Ce&&U())l=il(v,s.cm,y,l.line,w);else return!1;else l=xe;return!0}if(d=="char"||d=="codepoint")k();else if(d=="column")k(!0);else if(d=="word"||d=="group")for(var J=null,re=d=="group",ee=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!k(!oe));oe=!1){var ce=y.text.charAt(l.ch)||`
16
- `,de=Oe(ce,ee)?"w":re&&ce==`
17
- `?"n":!re||/\s/.test(ce)?null:"p";if(re&&!oe&&!de&&(de="s"),J&&J!=de){g<0&&(g=1,k(),l.sticky="after");break}if(de&&(J=de),g>0&&!k(!oe))break}var ve=la(s,l,A,b,!0);return La(A,ve)&&(ve.hitSide=!0),ve}function Rf(s,l,g,d){var v=s.doc,A=l.left,b;if(d=="page"){var y=Math.min(s.display.wrapper.clientHeight,ut(s).innerHeight||v(s).documentElement.clientHeight),w=Math.max(y-.5*Mr(s.display),3);b=(g>0?l.bottom:l.top)+g*w}else d=="line"&&(b=g>0?l.bottom+3:l.top-3);for(var U;U=ka(s,A,b),!!U.outside;){if(g<0?b<=0:b>=v.height){U.hitSide=!0;break}b+=g*5}return U}var gr=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};gr.prototype.init=function(s){var l=this,g=this,d=g.cm,v=g.div=s.lineDiv;v.contentEditable=!0,ul(v,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function A(y){for(var w=y.target;w;w=w.parentNode){if(w==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Ge(v,"paste",function(y){!A(y)||dr(d,y)||Af(y,d)||D<=11&&setTimeout(tt(d,function(){return l.updateFromDOM()}),20)}),Ge(v,"compositionstart",function(y){l.composing={data:y.data,done:!1}}),Ge(v,"compositionupdate",function(y){l.composing||(l.composing={data:y.data,done:!1})}),Ge(v,"compositionend",function(y){l.composing&&(y.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Ge(v,"touchstart",function(){return g.forceCompositionEnd()}),Ge(v,"input",function(){l.composing||l.readFromDOMSoon()});function b(y){if(!(!A(y)||dr(d,y))){if(d.somethingSelected())da({lineWise:!1,text:d.getSelections()}),y.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var w=bf(d);da({lineWise:!0,text:w.text}),y.type=="cut"&&d.operation(function(){d.setSelections(w.ranges,0,pe),d.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var U=fi.text.join(`
18
- `);if(y.clipboardData.setData("Text",U),y.clipboardData.getData("Text")==U){y.preventDefault();return}}var k=Tf(),J=k.firstChild;ul(J),d.display.lineSpace.insertBefore(k,d.display.lineSpace.firstChild),J.value=fi.text.join(`
19
- `);var re=$r(or(v));Lt(J),setTimeout(function(){d.display.lineSpace.removeChild(k),re.focus(),re==v&&g.showPrimarySelection()},50)}}Ge(v,"copy",b),Ge(v,"cut",b)},gr.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},gr.prototype.prepareSelection=function(){var s=ps(this.cm,!1);return s.focus=$r(or(this.div))==this.div,s},gr.prototype.showSelection=function(s,l){!s||!this.cm.display.view.length||((s.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(s))},gr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},gr.prototype.showPrimarySelection=function(){var s=this.getSelection(),l=this.cm,g=l.doc.sel.primary(),d=g.from(),v=g.to();if(l.display.viewTo==l.display.viewFrom||d.line>=l.display.viewTo||v.line<l.display.viewFrom){s.removeAllRanges();return}var A=ga(l,s.anchorNode,s.anchorOffset),b=ga(l,s.focusNode,s.focusOffset);if(!(A&&!A.bad&&b&&!b.bad&&Xe(Zo(A,b),d)==0&&Xe(Wo(A,b),v)==0)){var y=l.display.view,w=d.line>=l.display.viewFrom&&yf(l,d)||{node:y[0].measure.map[2],offset:0},U=v.line<l.display.viewTo&&yf(l,v);if(!U){var k=y[y.length-1].measure,J=k.maps?k.maps[k.maps.length-1]:k.map;U={node:J[J.length-1],offset:J[J.length-2]-J[J.length-3]}}if(!w||!U){s.removeAllRanges();return}var re=s.rangeCount&&s.getRangeAt(0),ee;try{ee=Cr(w.node,w.offset,U.offset,U.node)}catch{}ee&&(!e&&l.state.focused?(s.collapse(w.node,w.offset),ee.collapsed||(s.removeAllRanges(),s.addRange(ee))):(s.removeAllRanges(),s.addRange(ee)),re&&s.anchorNode==null?s.addRange(re):e&&this.startGracePeriod()),this.rememberSelection()}},gr.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},gr.prototype.showMultipleSelections=function(s){Je(this.cm.display.cursorDiv,s.cursors),Je(this.cm.display.selectionDiv,s.selection)},gr.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},gr.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var l=s.getRangeAt(0).commonAncestorContainer;return ur(this.div,l)},gr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||$r(or(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},gr.prototype.blur=function(){this.div.blur()},gr.prototype.getField=function(){return this.div},gr.prototype.supportsTouch=function(){return!0},gr.prototype.receivedFocus=function(){var s=this,l=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):Qt(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function g(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},gr.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},gr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),l=this.cm;if(V&&Q&&this.cm.display.gutterSpecs.length&&Tp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ga(l,s.anchorNode,s.anchorOffset),d=ga(l,s.focusNode,s.focusOffset);g&&d&&Qt(l,function(){xt(l.doc,Ri(g,d),pe),(g.bad||d.bad)&&(l.curOp.selectionChanged=!0)})}}},gr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,l=s.display,g=s.doc.sel.primary(),d=g.from(),v=g.to();if(d.ch==0&&d.line>s.firstLine()&&(d=he(d.line-1,Ie(s.doc,d.line-1).length)),v.ch==Ie(s.doc,v.line).text.length&&v.line<s.lastLine()&&(v=he(v.line+1,0)),d.line<l.viewFrom||v.line>l.viewTo-1)return!1;var A,b,y;d.line==l.viewFrom||(A=ki(s,d.line))==0?(b=_e(l.view[0].line),y=l.view[0].node):(b=_e(l.view[A].line),y=l.view[A-1].node.nextSibling);var w=ki(s,v.line),U,k;if(w==l.view.length-1?(U=l.viewTo-1,k=l.lineDiv.lastChild):(U=_e(l.view[w+1].line)-1,k=l.view[w+1].node.previousSibling),!y)return!1;for(var J=s.doc.splitLines(Rp(s,y,k,b,U)),re=dt(s.doc,he(b,0),he(U,Ie(s.doc,U).text.length));J.length>1&&re.length>1;)if(Ae(J)==Ae(re))J.pop(),re.pop(),U--;else if(J[0]==re[0])J.shift(),re.shift(),b++;else break;for(var ee=0,oe=0,ce=J[0],de=re[0],ve=Math.min(ce.length,de.length);ee<ve&&ce.charCodeAt(ee)==de.charCodeAt(ee);)++ee;for(var Ce=Ae(J),xe=Ae(re),be=Math.min(Ce.length-(J.length==1?ee:0),xe.length-(re.length==1?ee:0));oe<be&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)++oe;if(J.length==1&&re.length==1&&b==d.line)for(;ee&&ee>d.ch&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)ee--,oe++;J[J.length-1]=Ce.slice(0,Ce.length-oe).replace(/^\u200b+/,""),J[0]=J[0].slice(ee).replace(/\u200b+$/,"");var Ze=he(b,ee),De=he(U,re.length?Ae(re).length-oe:0);if(J.length>1||J[0]||Xe(Ze,De))return wn(s.doc,J,Ze,De,"+input"),!0},gr.prototype.ensurePolled=function(){this.forceCompositionEnd()},gr.prototype.reset=function(){this.forceCompositionEnd()},gr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},gr.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},gr.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Qt(this.cm,function(){return vt(s.cm)})},gr.prototype.setUneditable=function(s){s.contentEditable="false"},gr.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||tt(this.cm,ll)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},gr.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},gr.prototype.onContextMenu=function(){},gr.prototype.resetPosition=function(){},gr.prototype.needsContentAttribute=!0;function yf(s,l){var g=Et(s,l.line);if(!g||g.hidden)return null;var d=Ie(s.doc,l.line),v=Yo(g,d,l.line),A=Tr(d,s.doc.direction),b="left";if(A){var y=bt(A,l.ch);b=y%2?"right":"left"}var w=xu(v.map,l.ch,b);return w.offset=w.collapse=="right"?w.end:w.start,w}function Tp(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function Bn(s,l){return l&&(s.bad=!0),s}function Rp(s,l,g,d,v){var A="",b=!1,y=s.doc.lineSeparator(),w=!1;function U(ee){return function(oe){return oe.id==ee}}function k(){b&&(A+=y,w&&(A+=y),b=w=!1)}function J(ee){ee&&(k(),A+=ee)}function re(ee){if(ee.nodeType==1){var oe=ee.getAttribute("cm-text");if(oe){J(oe);return}var ce=ee.getAttribute("cm-marker"),de;if(ce){var ve=s.findMarks(he(d,0),he(v+1,0),U(+ce));ve.length&&(de=ve[0].find(0))&&J(dt(s.doc,de.from,de.to).join(y));return}if(ee.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(ee.nodeName);if(!/^br$/i.test(ee.nodeName)&&ee.textContent.length==0)return;Ce&&k();for(var xe=0;xe<ee.childNodes.length;xe++)re(ee.childNodes[xe]);/^(pre|p)$/i.test(ee.nodeName)&&(w=!0),Ce&&(b=!0)}else ee.nodeType==3&&J(ee.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(l),l!=g;)l=l.nextSibling,w=!1;return A}function ga(s,l,g){var d;if(l==s.display.lineDiv){if(d=s.display.lineDiv.childNodes[g],!d)return Bn(s.clipPos(he(s.display.viewTo-1)),!0);l=null,g=0}else for(d=l;;d=d.parentNode){if(!d||d==s.display.lineDiv)return null;if(d.parentNode&&d.parentNode==s.display.lineDiv)break}for(var v=0;v<s.display.view.length;v++){var A=s.display.view[v];if(A.node==d)return yp(A,l,g)}}function yp(s,l,g){var d=s.text.firstChild,v=!1;if(!l||!ur(d,l))return Bn(he(_e(s.line),0),!0);if(l==d&&(v=!0,l=d.childNodes[g],g=0,!l)){var A=s.rest?Ae(s.rest):s.line;return Bn(he(_e(A),A.text.length),v)}var b=l.nodeType==3?l:null,y=l;for(!b&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(b=l.firstChild,g&&(g=b.nodeValue.length));y.parentNode!=d;)y=y.parentNode;var w=s.measure,U=w.maps;function k(de,ve,Ce){for(var xe=-1;xe<(U?U.length:0);xe++)for(var be=xe<0?w.map:U[xe],Ze=0;Ze<be.length;Ze+=3){var De=be[Ze+2];if(De==de||De==ve){var Ke=_e(xe<0?s.line:s.rest[xe]),vr=be[Ze]+Ce;return(Ce<0||De!=de)&&(vr=be[Ze+(Ce?1:0)]),he(Ke,vr)}}}var J=k(b,y,g);if(J)return Bn(J,v);for(var re=y.nextSibling,ee=b?b.nodeValue.length-g:0;re;re=re.nextSibling){if(J=k(re,re.firstChild,0),J)return Bn(he(J.line,J.ch-ee),v);ee+=re.textContent.length}for(var oe=y.previousSibling,ce=g;oe;oe=oe.previousSibling){if(J=k(oe,oe.firstChild,-1),J)return Bn(he(J.line,J.ch+ce),v);ce+=oe.textContent.length}}var Zr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Pr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Zr.prototype.init=function(s){var l=this,g=this,d=this.cm;this.createField(s);var v=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),B&&(v.style.width="0px"),Ge(v,"input",function(){O&&D>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Ge(v,"paste",function(b){dr(d,b)||Af(b,d)||(d.state.pasteIncoming=+new Date,g.fastPoll())});function A(b){if(!dr(d,b)){if(d.somethingSelected())da({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var y=bf(d);da({lineWise:!0,text:y.text}),b.type=="cut"?d.setSelections(y.ranges,null,pe):(g.prevInput="",v.value=y.text.join(`
20
- `),Lt(v))}else return;b.type=="cut"&&(d.state.cutIncoming=+new Date)}}Ge(v,"cut",A),Ge(v,"copy",A),Ge(s.scroller,"paste",function(b){if(!(Pi(s,b)||dr(d,b))){if(!v.dispatchEvent){d.state.pasteIncoming=+new Date,g.focus();return}var y=new Event("paste");y.clipboardData=b.clipboardData,v.dispatchEvent(y)}}),Ge(s.lineSpace,"selectstart",function(b){Pi(s,b)||ht(b)}),Ge(v,"compositionstart",function(){var b=d.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:b,range:d.markText(b,d.getCursor("to"),{className:"CodeMirror-composing"})}}),Ge(v,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Zr.prototype.createField=function(s){this.wrapper=Tf(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;ul(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Zr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,d=ps(s);if(s.options.moveInputWithCursor){var v=$e(s,g.sel.primary().head,"div"),A=l.wrapper.getBoundingClientRect(),b=l.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,v.top+b.top-A.top)),d.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,v.left+b.left-A.left))}return d},Zr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Je(g.cursorDiv,s.cursors),Je(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Zr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing&&s)){var l=this.cm;if(this.resetting=!0,l.somethingSelected()){this.prevInput="";var g=l.getSelection();this.textarea.value=g,l.state.focused&&Lt(this.textarea),O&&D>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",O&&D>=9&&(this.hasSelection=null));this.resetting=!1}},Zr.prototype.getField=function(){return this.textarea},Zr.prototype.supportsTouch=function(){return!1},Zr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!X||$r(or(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Zr.prototype.blur=function(){this.textarea.blur()},Zr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zr.prototype.receivedFocus=function(){this.slowPoll()},Zr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Zr.prototype.fastPoll=function(){var s=!1,l=this;l.pollingFast=!0;function g(){var d=l.poll();!d&&!s?(s=!0,l.polling.set(60,g)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,g)},Zr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Vo(g)&&!d&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var v=g.value;if(v==d&&!l.somethingSelected())return!1;if(O&&D>=9&&this.hasSelection===v||q&&/[\uf700-\uf7ff]/.test(v))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var A=v.charCodeAt(0);if(A==8203&&!d&&(d="\u200B"),A==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,y=Math.min(d.length,v.length);b<y&&d.charCodeAt(b)==v.charCodeAt(b);)++b;return Qt(l,function(){ll(l,v.slice(b),d.length-b,null,s.composing?"*compose":null),v.length>1e3||v.indexOf(`
21
- `)>-1?g.value=s.prevInput="":s.prevInput=v,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zr.prototype.onKeyPress=function(){O&&D>=9&&(this.hasSelection=null),this.fastPoll()},Zr.prototype.onContextMenu=function(s){var l=this,g=l.cm,d=g.display,v=l.textarea;l.contextMenuPending&&l.contextMenuPending();var A=li(g,s),b=d.scroller.scrollTop;if(!A||$)return;var y=g.options.resetSelectionOnContextMenu;y&&g.doc.sel.contains(A)==-1&&tt(g,xt)(g.doc,Ri(A),pe);var w=v.style.cssText,U=l.wrapper.style.cssText,k=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",v.style.cssText=`position: absolute; width: 30px; height: 30px;
22
- top: `+(s.clientY-k.top-5)+"px; left: "+(s.clientX-k.left-5)+`px;
23
- z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
24
- outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;Z&&(J=v.ownerDocument.defaultView.scrollY),d.input.focus(),Z&&v.ownerDocument.defaultView.scrollTo(null,J),d.input.reset(),g.somethingSelected()||(v.value=l.prevInput=" "),l.contextMenuPending=ee,d.selForContextMenu=g.doc.sel,clearTimeout(d.detectingSelectAll);function re(){if(v.selectionStart!=null){var ce=g.somethingSelected(),de="\u200B"+(ce?v.value:"");v.value="\u21DA",v.value=de,l.prevInput=ce?"":"\u200B",v.selectionStart=1,v.selectionEnd=de.length,d.selForContextMenu=g.doc.sel}}function ee(){if(l.contextMenuPending==ee&&(l.contextMenuPending=!1,l.wrapper.style.cssText=U,v.style.cssText=w,O&&D<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=b),v.selectionStart!=null)){(!O||O&&D<9)&&re();var ce=0,de=function(){d.selForContextMenu==g.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&l.prevInput=="\u200B"?tt(g,Hu)(g):ce++<10?d.detectingSelectAll=setTimeout(de,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(de,200)}}if(O&&D>=9&&re(),ye){bs(s);var oe=function(){kr(window,"mouseup",oe),setTimeout(ee,20)};Ge(window,"mouseup",oe)}else setTimeout(ee,50)},Zr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Zr.prototype.setUneditable=function(){},Zr.prototype.needsContentAttribute=!1;function Sp(s,l){if(l=l?zr(l):{},l.value=s.value,!l.tabindex&&s.tabIndex&&(l.tabindex=s.tabIndex),!l.placeholder&&s.placeholder&&(l.placeholder=s.placeholder),l.autofocus==null){var g=$r(or(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function d(){s.value=y.getValue()}var v;if(s.form&&(Ge(s.form,"submit",d),!l.leaveSubmitMethodAlone)){var A=s.form;v=A.submit;try{var b=A.submit=function(){d(),A.submit=v,A.submit(),A.submit=b}}catch{}}l.finishInit=function(w){w.save=d,w.getTextArea=function(){return s},w.toTextArea=function(){w.toTextArea=isNaN,d(),s.parentNode.removeChild(w.getWrapperElement()),s.style.display="",s.form&&(kr(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=v))}},s.style.display="none";var y=yr(function(w){return s.parentNode.insertBefore(w,s.nextSibling)},l);return y}function Lp(s){s.off=kr,s.on=Ge,s.wheelEventPixels=Dc,s.Doc=Bt,s.splitLines=nn,s.countColumn=Ir,s.findColumn=we,s.isWordChar=ct,s.Pass=Fe,s.signal=ar,s.Line=hn,s.changeEnd=yi,s.scrollbarModel=wu,s.Pos=he,s.cmpPos=Xe,s.modes=an,s.mimeModes=Bi,s.resolveMode=ln,s.getMode=We,s.modeExtensions=K,s.extendMode=Ee,s.copyState=Se,s.startState=et,s.innerMode=mr,s.commands=go,s.keyMap=Hi,s.keyName=lf,s.isModifierKey=of,s.lookupKey=Un,s.normalizeKeyMap=sp,s.StringStream=qe,s.SharedTextMarker=co,s.TextMarker=Es,s.LineWidget=fo,s.e_preventDefault=ht,s.e_stopPropagation=Dr,s.e_stop=bs,s.addClass=ze,s.contains=ur,s.rmClass=Le,s.keyNames=ms}Cp(yr),bp(yr);var wp="iter insert remove copy getEditor constructor".split(" ");for(var Ea in Bt.prototype)Bt.prototype.hasOwnProperty(Ea)&&hr(wp,Ea)<0&&(yr.prototype[Ea]=function(s){return function(){return s.apply(this.doc,arguments)}}(Bt.prototype[Ea]));return is(Bt),yr.inputStyles={textarea:Zr,contenteditable:gr},yr.defineMode=function(s){!yr.defaults.mode&&s!="null"&&(yr.defaults.mode=s),Do.apply(this,arguments)},yr.defineMIME=Mo,yr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(s,l){yr.prototype[s]=l},yr.defineDocExtension=function(s,l){Bt.prototype[s]=l},yr.fromTextArea=Sp,Lp(yr),yr.version="5.65.20",yr})});var Pl=br((EL,Av)=>{var nm=ZA(),DA=PA(),MA=kA(),WA=typeof window<"u"?window:global;Av.exports={assign:nm,create:DA,trim:MA,bind:QA,slice:om,each:Iv,map:_A,pluck:am,isList:lm,isFunction:HA,isObject:XA,Global:WA};function ZA(){return Object.assign?Object.assign:function(m,e,N,R){for(var L=1;L<arguments.length;L++)Iv(Object(arguments[L]),function(O,D){m[D]=O});return m}}function PA(){if(Object.create)return function(e,N,R,L){var O=om(arguments,1);return nm.apply(this,[Object.create(e)].concat(O))};{let m=function(){};var i=m;return function(N,R,L,O){var D=om(arguments,1);return m.prototype=N,nm.apply(this,[new m].concat(D))}}}function kA(){return String.prototype.trim?function(m){return String.prototype.trim.call(m)}:function(m){return m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function QA(i,m){return function(){return m.apply(i,Array.prototype.slice.call(arguments,0))}}function om(i,m){return Array.prototype.slice.call(i,m||0)}function Iv(i,m){am(i,function(e,N){return m(e,N),!1})}function _A(i,m){var e=lm(i)?[]:{};return am(i,function(N,R){return e[R]=m(N,R),!1}),e}function am(i,m){if(lm(i)){for(var e=0;e<i.length;e++)if(m(i[e],e))return i[e]}else for(var N in i)if(i.hasOwnProperty(N)&&m(i[N],N))return i[N]}function lm(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function HA(i){return i&&{}.toString.call(i)==="[object Function]"}function XA(i){return i&&{}.toString.call(i)==="[object Object]"}});var bv=br((mL,Nv)=>{var ma=Pl(),YA=ma.slice,JA=ma.pluck,Lf=ma.each,$A=ma.bind,zA=ma.create,um=ma.isList,fm=ma.isFunction,jA=ma.isObject;Nv.exports={createStore:cm};var qA={version:"2.0.12",enabled:!1,get:function(i,m){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,m)},set:function(i,m){return m===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(m)),m)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var m=this;this.storage.each(function(e,N){i.call(m,m._deserialize(e),(N||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return cm.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return cm(this.storage,this.plugins,i)}};function KA(){var i=typeof console>"u"?null:console;if(i){var m=i.warn?i.warn:i.log;m.apply(i,arguments)}}function cm(i,m,e){e||(e=""),i&&!um(i)&&(i=[i]),m&&!um(m)&&(m=[m]);var N=e?"__storejs_"+e+"_":"",R=e?new RegExp("^"+N):null,L=/^[a-zA-Z0-9_\-]*$/;if(!L.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var O={_namespacePrefix:N,_namespaceRegexp:R,_testStorage:function(Z){try{var H="__storejs__test__";Z.write(H,H);var Q=Z.read(H)===H;return Z.remove(H),Q}catch{return!1}},_assignPluginFnProp:function(Z,H){var Q=this[H];this[H]=function(){var $=YA(arguments,0),M=this;function z(){if(Q)return Lf(arguments,function(B,V){$[V]=B}),Q.apply(M,$)}var Y=[z].concat($);return Z.apply(M,Y)}},_serialize:function(Z){return JSON.stringify(Z)},_deserialize:function(Z,H){if(!Z)return H;var Q="";try{Q=JSON.parse(Z)}catch{Q=Z}return Q!==void 0?Q:H},_addStorage:function(Z){this.enabled||this._testStorage(Z)&&(this.storage=Z,this.enabled=!0)},_addPlugin:function(Z){var H=this;if(um(Z)){Lf(Z,function($){H._addPlugin($)});return}var Q=JA(this.plugins,function($){return Z===$});if(!Q){if(this.plugins.push(Z),!fm(Z))throw new Error("Plugins must be function values that return objects");var W=Z.call(this);if(!jA(W))throw new Error("Plugins must return an object of function properties");Lf(W,function($,M){if(!fm($))throw new Error("Bad plugin property: "+M+" from plugin "+Z.name+". Plugins should only return functions.");H._assignPluginFnProp($,M)})}},addStorage:function(Z){KA("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Z)}},D=zA(O,qA,{plugins:[]});return D.raw={},Lf(D,function(Z,H){fm(Z)&&(D.raw[H]=$A(D,Z))}),Lf(i,function(Z){D._addStorage(Z)}),Lf(m,function(Z){D._addPlugin(Z)}),D}});var yv=br((vL,Rv)=>{var eN=Pl(),rN=eN.Global;Rv.exports={name:"localStorage",read:Tv,write:tN,each:iN,remove:sN,clearAll:nN};function wf(){return rN.localStorage}function Tv(i){return wf().getItem(i)}function tN(i,m){return wf().setItem(i,m)}function iN(i){for(var m=wf().length-1;m>=0;m--){var e=wf().key(m);i(Tv(e),e)}}function sN(i){return wf().removeItem(i)}function nN(){return wf().clear()}});var wv=br((xL,Lv)=>{var oN=Pl(),aN=oN.Global;Lv.exports={name:"oldFF-globalStorage",read:lN,write:uN,each:Sv,remove:fN,clearAll:cN};var kl=aN.globalStorage;function lN(i){return kl[i]}function uN(i,m){kl[i]=m}function Sv(i){for(var m=kl.length-1;m>=0;m--){var e=kl.key(m);i(kl[e],e)}}function fN(i){return kl.removeItem(i)}function cN(){Sv(function(i,m){delete kl[i]})}});var Fv=br((CL,Uv)=>{var pN=Pl(),pm=pN.Global;Uv.exports={name:"oldIE-userDataStorage",write:hN,read:dN,each:gN,remove:EN,clearAll:mN};var Ch="storejs",xh=pm.document,Ih=xN(),Ov=(pm.navigator?pm.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function hN(i,m){if(!Ov){var e=hm(i);Ih(function(N){N.setAttribute(e,m),N.save(Ch)})}}function dN(i){if(!Ov){var m=hm(i),e=null;return Ih(function(N){e=N.getAttribute(m)}),e}}function gN(i){Ih(function(m){for(var e=m.XMLDocument.documentElement.attributes,N=e.length-1;N>=0;N--){var R=e[N];i(m.getAttribute(R.name),R.name)}})}function EN(i){var m=hm(i);Ih(function(e){e.removeAttribute(m),e.save(Ch)})}function mN(){Ih(function(i){var m=i.XMLDocument.documentElement.attributes;i.load(Ch);for(var e=m.length-1;e>=0;e--)i.removeAttribute(m[e].name);i.save(Ch)})}var vN=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function hm(i){return i.replace(/^\d/,"___$&").replace(vN,"___")}function xN(){if(!xh||!xh.documentElement||!xh.documentElement.addBehavior)return null;var i="script",m,e,N;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),m=e.w.frames[0].document,N=m.createElement("div")}catch{N=xh.createElement("div"),m=xh.body}return function(R){var L=[].slice.call(arguments,0);L.unshift(N),m.appendChild(N),N.addBehavior("#default#userData"),N.load(Ch),R.apply(this,L),m.removeChild(N)}}});var Wv=br((IL,Mv)=>{var Gv=Pl(),CN=Gv.Global,IN=Gv.trim;Mv.exports={name:"cookieStorage",read:AN,write:NN,each:Bv,remove:Vv,clearAll:bN};var Ah=CN.document;function AN(i){if(!i||!Dv(i))return null;var m="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ah.cookie.replace(new RegExp(m),"$1"))}function Bv(i){for(var m=Ah.cookie.split(/; ?/g),e=m.length-1;e>=0;e--)if(IN(m[e])){var N=m[e].split("="),R=unescape(N[0]),L=unescape(N[1]);i(L,R)}}function NN(i,m){i&&(Ah.cookie=escape(i)+"="+escape(m)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Vv(i){!i||!Dv(i)||(Ah.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function bN(){Bv(function(i,m){Vv(m)})}function Dv(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ah.cookie)}});var kv=br((AL,Pv)=>{var TN=Pl(),RN=TN.Global;Pv.exports={name:"sessionStorage",read:Zv,write:yN,each:SN,remove:LN,clearAll:wN};function Of(){return RN.sessionStorage}function Zv(i){return Of().getItem(i)}function yN(i,m){return Of().setItem(i,m)}function SN(i){for(var m=Of().length-1;m>=0;m--){var e=Of().key(m);i(Zv(e),e)}}function LN(i){return Of().removeItem(i)}function wN(){return Of().clear()}});var _v=br((NL,Qv)=>{Qv.exports={name:"memoryStorage",read:ON,write:UN,each:FN,remove:GN,clearAll:BN};var Ql={};function ON(i){return Ql[i]}function UN(i,m){Ql[i]=m}function FN(i){for(var m in Ql)Ql.hasOwnProperty(m)&&i(Ql[m],m)}function GN(i){delete Ql[i]}function BN(i){Ql={}}});var Xv=br((bL,Hv)=>{Hv.exports=[yv(),wv(),Fv(),Wv(),kv(),_v()]});var Yv=br((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(i){return i<10?"0"+i:i}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(i){return rx_escapable.lastIndex=0,rx_escapable.test(i)?'"'+i.replace(rx_escapable,function(m){var e=meta[m];return typeof e=="string"?e:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,m){var e,N,R,L,O=gap,D,Z=m[i];switch(Z&&typeof Z=="object"&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(i)),typeof rep=="function"&&(Z=rep.call(m,i,Z)),typeof Z){case"string":return quote(Z);case"number":return isFinite(Z)?String(Z):"null";case"boolean":case"null":return String(Z);case"object":if(!Z)return"null";if(gap+=indent,D=[],Object.prototype.toString.apply(Z)==="[object Array]"){for(L=Z.length,e=0;e<L;e+=1)D[e]=str(e,Z)||"null";return R=D.length===0?"[]":gap?`[
25
- `+gap+D.join(`,
15
+ `)&&(oe=fe=pe(oe.line,0)));var he={from:oe,to:fe,text:U?U[re%U.length]:w,origin:v||(y?"paste":s.state.cutIncoming>b?"cut":"+input")};Ln(s.doc,he),rt(s,"inputRead",s,he)}l&&!y&&Nf(s,l),In(s),s.curOp.updateInput<2&&(s.curOp.updateInput=_),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function Af(s,l){var g=s.clipboardData&&s.clipboardData.getData("Text");if(g)return s.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&kt(l,function(){return ll(l,g,0,null,"paste")}),!0}function Nf(s,l){if(!(!s.options.electricChars||!s.options.smartIndent))for(var g=s.doc.sel,d=g.ranges.length-1;d>=0;d--){var v=g.ranges[d];if(!(v.head.ch>100||d&&g.ranges[d-1].head.line==v.head.line)){var A=s.getModeAt(v.head),b=!1;if(A.electricChars){for(var y=0;y<A.electricChars.length;y++)if(l.indexOf(A.electricChars.charAt(y))>-1){b=xo(s,v.head.line,"smart");break}}else A.electricInput&&A.electricInput.test(Ae(s.doc,v.head.line).text.slice(0,v.head.ch))&&(b=xo(s,v.head.line,"smart"));b&&rt(s,"electricInput",s,v.head.line)}}}function bf(s){for(var l=[],g=[],d=0;d<s.doc.sel.ranges.length;d++){var v=s.doc.sel.ranges[d].head.line,A={anchor:pe(v,0),head:pe(v+1,0)};g.push(A),l.push(s.getRange(A.anchor,A.head))}return{text:l,ranges:g}}function ul(s,l,g,d){s.setAttribute("autocorrect",g?"on":"off"),s.setAttribute("autocapitalize",d?"on":"off"),s.setAttribute("spellcheck",!!l)}function Tf(){var s=me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=me("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return D?s.style.width="1000px":s.setAttribute("wrap","off"),B&&(s.style.border="1px solid black"),l}function Tp(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){ut(this).focus(),this.display.input.focus()},setOption:function(d,v){var A=this.options,b=A[d];A[d]==v&&d!="mode"||(A[d]=v,l.hasOwnProperty(d)&&tt(this,l[d])(this,v,b),ur(this,"optionChange",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,v){this.state.keyMaps[v?"push":"unshift"](ca(d))},removeKeyMap:function(d){for(var v=this.state.keyMaps,A=0;A<v.length;++A)if(v[A]==d||v[A].name==d)return v.splice(A,1),!0},addOverlay:Tt(function(d,v){var A=d.token?d:s.getMode(this.options,d);if(A.startState)throw new Error("Overlays may not be stateful.");ft(this.state.overlays,{mode:A,modeSpec:d,opaque:v&&v.opaque,priority:v&&v.priority||0},function(b){return b.priority}),this.state.modeGen++,vt(this)}),removeOverlay:Tt(function(d){for(var v=this.state.overlays,A=0;A<v.length;++A){var b=v[A].modeSpec;if(b==d||typeof d=="string"&&b.name==d){v.splice(A,1),this.state.modeGen++,vt(this);return}}}),indentLine:Tt(function(d,v,A){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),ss(this.doc,d)&&xo(this,d,v,A)}),indentSelection:Tt(function(d){for(var v=this.doc.sel.ranges,A=-1,b=0;b<v.length;b++){var y=v[b];if(y.empty())y.head.line>A&&(xo(this,y.head.line,d,!0),A=y.head.line,b==this.doc.sel.primIndex&&In(this));else{var w=y.from(),U=y.to(),P=Math.max(A,w.line);A=Math.min(this.lastLine(),U.line-(U.ch?0:1))+1;for(var _=P;_<A;++_)xo(this,_,d);var re=this.doc.sel.ranges;w.ch==0&&v.length==re.length&&re[b].from().ch>0&&el(this.doc,b,new fr(w,re[b].to()),ce)}}}),getTokenAt:function(d,v){return ou(this,d,v)},getLineTokens:function(d,v){return ou(this,pe(d),v,!0)},getTokenTypeAt:function(d){d=$e(this.doc,d);var v=iu(this,Ae(this.doc,d.line)),A=0,b=(v.length-1)/2,y=d.ch,w;if(y==0)w=v[2];else for(;;){var U=A+b>>1;if((U?v[U*2-1]:0)>=y)b=U;else if(v[U*2+1]<y)A=U+1;else{w=v[U*2+2];break}}var P=w?w.indexOf("overlay "):-1;return P<0?w:P==0?null:w.slice(0,P-1)},getModeAt:function(d){var v=this.doc.mode;return v.innerMode?s.innerMode(v,this.getTokenAt(d).state).mode:v},getHelper:function(d,v){return this.getHelpers(d,v)[0]},getHelpers:function(d,v){var A=[];if(!g.hasOwnProperty(v))return A;var b=g[v],y=this.getModeAt(d);if(typeof y[v]=="string")b[y[v]]&&A.push(b[y[v]]);else if(y[v])for(var w=0;w<y[v].length;w++){var U=b[y[v][w]];U&&A.push(U)}else y.helperType&&b[y.helperType]?A.push(b[y.helperType]):b[y.name]&&A.push(b[y.name]);for(var P=0;P<b._global.length;P++){var _=b._global[P];_.pred(y,this)&&gr(A,_.val)==-1&&A.push(_.val)}return A},getStateAfter:function(d,v){var A=this.doc;return d=eu(A,d??A.first+A.size-1),kn(this,d+1,v).state},cursorCoords:function(d,v){var A,b=this.doc.sel.primary();return d==null?A=b.head:typeof d=="object"?A=$e(this.doc,d):A=d?b.from():b.to(),ze(this,A,v||"page")},charCoords:function(d,v){return $o(this,$e(this.doc,d),v||"page")},coordsChar:function(d,v){return d=us(this,d,v||"page"),Pa(this,d.left,d.top)},lineAtHeight:function(d,v){return d=us(this,{top:d,left:0},v||"page").top,xi(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,v,A){var b=!1,y;if(typeof d=="number"){var w=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>w&&(d=w,b=!0),y=Ae(this.doc,d)}else y=d;return vn(this,y,{top:0,left:0},v||"page",A||b).top+(b?this.doc.height-Mi(y):0)},defaultTextHeight:function(){return Dr(this.display)},defaultCharWidth:function(){return fs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,v,A,b,y){var w=this.display;d=ze(this,$e(this.doc,d));var U=d.bottom,P=d.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),w.sizer.appendChild(v),b=="over")U=d.top;else if(b=="above"||b=="near"){var _=Math.max(w.wrapper.clientHeight,this.doc.height),re=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(b=="above"||d.bottom+v.offsetHeight>_)&&d.top>v.offsetHeight?U=d.top-v.offsetHeight:d.bottom+v.offsetHeight<=_&&(U=d.bottom),P+v.offsetWidth>re&&(P=re-v.offsetWidth)}v.style.top=U+"px",v.style.left=v.style.right="",y=="right"?(P=w.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(y=="left"?P=0:y=="middle"&&(P=(w.sizer.clientWidth-v.offsetWidth)/2),v.style.left=P+"px"),A&&Nc(this,{left:P,top:U,right:P+v.offsetWidth,bottom:U+v.offsetHeight})},triggerOnKeyDown:Tt(hf),triggerOnKeyPress:Tt(gf),triggerOnKeyUp:df,triggerOnMouseDown:Tt(Ef),execCommand:function(d){if(go.hasOwnProperty(d))return go[d].call(null,this)},triggerElectric:Tt(function(d){Nf(this,d)}),findPosH:function(d,v,A,b){var y=1;v<0&&(y=-1,v=-v);for(var w=$e(this.doc,d),U=0;U<v&&(w=fl(this.doc,w,y,A,b),!w.hitSide);++U);return w},moveH:Tt(function(d,v){var A=this;this.extendSelectionsBy(function(b){return A.display.shift||A.doc.extend||b.empty()?fl(A.doc,b.head,d,v,A.options.rtlMoveVisually):d<0?b.from():b.to()},pr)}),deleteH:Tt(function(d,v){var A=this.doc.sel,b=this.doc;A.somethingSelected()?b.replaceSelection("",null,"+delete"):Gn(this,function(y){var w=fl(b,y.head,d,v,!1);return d<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(d,v,A,b){var y=1,w=b;v<0&&(y=-1,v=-v);for(var U=$e(this.doc,d),P=0;P<v;++P){var _=ze(this,U,"div");if(w==null?w=_.left:_.left=w,U=Rf(this,_,y,A),U.hitSide)break}return U},moveV:Tt(function(d,v){var A=this,b=this.doc,y=[],w=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(P){if(w)return d<0?P.from():P.to();var _=ze(A,P.head,"div");P.goalColumn!=null&&(_.left=P.goalColumn),y.push(_.left);var re=Rf(A,_,d,v);return v=="page"&&P==b.sel.primary()&&_a(A,$o(A,re,"div").top-_.top),re},pr),y.length)for(var U=0;U<b.sel.ranges.length;U++)b.sel.ranges[U].goalColumn=y[U]}),findWordAt:function(d){var v=this.doc,A=Ae(v,d.line).text,b=d.ch,y=d.ch;if(A){var w=this.getHelper(d,"wordChars");(d.sticky=="before"||y==A.length)&&b?--b:++y;for(var U=A.charAt(b),P=Ue(U,w)?function(_){return Ue(_,w)}:/\s/.test(U)?function(_){return/\s/.test(_)}:function(_){return!/\s/.test(_)&&!Ue(_)};b>0&&P(A.charAt(b-1));)--b;for(;y<A.length&&P(A.charAt(y));)++y}return new fr(pe(d.line,b),pe(d.line,y))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?je(this.display.cursorDiv,"CodeMirror-overwrite"):Te(this.display.cursorDiv,"CodeMirror-overwrite"),ur(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$r(wt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Tt(function(d,v){jn(this,d,v)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-Ni(this)-this.display.barHeight,width:d.scrollWidth-Ni(this)-this.display.barWidth,clientHeight:Ma(this),clientWidth:ws(this)}},scrollIntoView:Tt(function(d,v){d==null?(d={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof d=="number"?d={from:pe(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=v||0,d.from.line!=null?bc(this,d):yu(this,d.from,d.to,d.margin)}),setSize:Tt(function(d,v){var A=this,b=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};d!=null&&(this.display.wrapper.style.width=b(d)),v!=null&&(this.display.wrapper.style.height=b(v)),this.options.lineWrapping&&Jo(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var U=0;U<w.widgets.length;U++)if(w.widgets[U].noHScroll){Pt(A,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ur(this,"refresh",this)}),operation:function(d){return kt(this,d)},startOperation:function(){return Ms(this)},endOperation:function(){return Zs(this)},refresh:Tt(function(){var d=this.display.cachedTextHeight;vt(this),this.curOp.forceUpdate=!0,Us(this),jn(this,this.doc.scrollLeft,this.doc.scrollTop),to(this.display),(d==null||Math.abs(d-Dr(this.display))>.5||this.options.lineWrapping)&&Fs(this),ur(this,"refresh",this)}),swapDoc:Tt(function(d){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,d),Us(this),this.display.input.reset(),jn(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,v),v}),phrase:function(d){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,d)?v[d]:d},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},is(s),s.registerHelper=function(d,v,A){g.hasOwnProperty(d)||(g[d]=s[d]={_global:[]}),g[d][v]=A},s.registerGlobalHelper=function(d,v,A,b){s.registerHelper(d,v,b),g[d]._global.push({pred:A,val:b})}}function fl(s,l,g,d,v){var A=l,b=g,y=Ae(s,l.line),w=v&&s.direction=="rtl"?-g:g;function U(){var Ie=l.line+w;return Ie<s.first||Ie>=s.first+s.size?!1:(l=new pe(Ie,l.ch,l.sticky),y=Ae(s,Ie))}function P(Ie){var Ce;if(d=="codepoint"){var Re=y.text.charCodeAt(l.ch+(g>0?0:-1));if(isNaN(Re))Ce=null;else{var Ze=g>0?Re>=55296&&Re<56320:Re>=56320&&Re<57343;Ce=new pe(l.line,Math.max(0,Math.min(y.text.length,l.ch+g*(Ze?2:1))),-g)}}else v?Ce=op(s.cm,y,l,g):Ce=tl(y,l,g);if(Ce==null)if(!Ie&&U())l=il(v,s.cm,y,l.line,w);else return!1;else l=Ce;return!0}if(d=="char"||d=="codepoint")P();else if(d=="column")P(!0);else if(d=="word"||d=="group")for(var _=null,re=d=="group",ee=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!P(!oe));oe=!1){var fe=y.text.charAt(l.ch)||`
16
+ `,he=Ue(fe,ee)?"w":re&&fe==`
17
+ `?"n":!re||/\s/.test(fe)?null:"p";if(re&&!oe&&!he&&(he="s"),_&&_!=he){g<0&&(g=1,P(),l.sticky="after");break}if(he&&(_=he),g>0&&!P(!oe))break}var xe=la(s,l,A,b,!0);return La(A,xe)&&(xe.hitSide=!0),xe}function Rf(s,l,g,d){var v=s.doc,A=l.left,b;if(d=="page"){var y=Math.min(s.display.wrapper.clientHeight,ut(s).innerHeight||v(s).documentElement.clientHeight),w=Math.max(y-.5*Dr(s.display),3);b=(g>0?l.bottom:l.top)+g*w}else d=="line"&&(b=g>0?l.bottom+3:l.top-3);for(var U;U=Pa(s,A,b),!!U.outside;){if(g<0?b<=0:b>=v.height){U.hitSide=!0;break}b+=g*5}return U}var mr=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Qr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};mr.prototype.init=function(s){var l=this,g=this,d=g.cm,v=g.div=s.lineDiv;v.contentEditable=!0,ul(v,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function A(y){for(var w=y.target;w;w=w.parentNode){if(w==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Fe(v,"paste",function(y){!A(y)||Er(d,y)||Af(y,d)||W<=11&&setTimeout(tt(d,function(){return l.updateFromDOM()}),20)}),Fe(v,"compositionstart",function(y){l.composing={data:y.data,done:!1}}),Fe(v,"compositionupdate",function(y){l.composing||(l.composing={data:y.data,done:!1})}),Fe(v,"compositionend",function(y){l.composing&&(y.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Fe(v,"touchstart",function(){return g.forceCompositionEnd()}),Fe(v,"input",function(){l.composing||l.readFromDOMSoon()});function b(y){if(!(!A(y)||Er(d,y))){if(d.somethingSelected())da({lineWise:!1,text:d.getSelections()}),y.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var w=bf(d);da({lineWise:!0,text:w.text}),y.type=="cut"&&d.operation(function(){d.setSelections(w.ranges,0,ce),d.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var U=fi.text.join(`
18
+ `);if(y.clipboardData.setData("Text",U),y.clipboardData.getData("Text")==U){y.preventDefault();return}}var P=Tf(),_=P.firstChild;ul(_),d.display.lineSpace.insertBefore(P,d.display.lineSpace.firstChild),_.value=fi.text.join(`
19
+ `);var re=$r(lr(v));Lt(_),setTimeout(function(){d.display.lineSpace.removeChild(P),re.focus(),re==v&&g.showPrimarySelection()},50)}}Fe(v,"copy",b),Fe(v,"cut",b)},mr.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},mr.prototype.prepareSelection=function(){var s=ps(this.cm,!1);return s.focus=$r(lr(this.div))==this.div,s},mr.prototype.showSelection=function(s,l){!s||!this.cm.display.view.length||((s.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(s))},mr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},mr.prototype.showPrimarySelection=function(){var s=this.getSelection(),l=this.cm,g=l.doc.sel.primary(),d=g.from(),v=g.to();if(l.display.viewTo==l.display.viewFrom||d.line>=l.display.viewTo||v.line<l.display.viewFrom){s.removeAllRanges();return}var A=ga(l,s.anchorNode,s.anchorOffset),b=ga(l,s.focusNode,s.focusOffset);if(!(A&&!A.bad&&b&&!b.bad&&Je(Zo(A,b),d)==0&&Je(Mo(A,b),v)==0)){var y=l.display.view,w=d.line>=l.display.viewFrom&&yf(l,d)||{node:y[0].measure.map[2],offset:0},U=v.line<l.display.viewTo&&yf(l,v);if(!U){var P=y[y.length-1].measure,_=P.maps?P.maps[P.maps.length-1]:P.map;U={node:_[_.length-1],offset:_[_.length-2]-_[_.length-3]}}if(!w||!U){s.removeAllRanges();return}var re=s.rangeCount&&s.getRangeAt(0),ee;try{ee=Ir(w.node,w.offset,U.offset,U.node)}catch{}ee&&(!e&&l.state.focused?(s.collapse(w.node,w.offset),ee.collapsed||(s.removeAllRanges(),s.addRange(ee))):(s.removeAllRanges(),s.addRange(ee)),re&&s.anchorNode==null?s.addRange(re):e&&this.startGracePeriod()),this.rememberSelection()}},mr.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},mr.prototype.showMultipleSelections=function(s){Qe(this.cm.display.cursorDiv,s.cursors),Qe(this.cm.display.selectionDiv,s.selection)},mr.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},mr.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var l=s.getRangeAt(0).commonAncestorContainer;return cr(this.div,l)},mr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||$r(lr(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},mr.prototype.blur=function(){this.div.blur()},mr.prototype.getField=function(){return this.div},mr.prototype.supportsTouch=function(){return!0},mr.prototype.receivedFocus=function(){var s=this,l=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):kt(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function g(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},mr.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},mr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),l=this.cm;if(V&&k&&this.cm.display.gutterSpecs.length&&Rp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ga(l,s.anchorNode,s.anchorOffset),d=ga(l,s.focusNode,s.focusOffset);g&&d&&kt(l,function(){xt(l.doc,Ri(g,d),ce),(g.bad||d.bad)&&(l.curOp.selectionChanged=!0)})}}},mr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,l=s.display,g=s.doc.sel.primary(),d=g.from(),v=g.to();if(d.ch==0&&d.line>s.firstLine()&&(d=pe(d.line-1,Ae(s.doc,d.line-1).length)),v.ch==Ae(s.doc,v.line).text.length&&v.line<s.lastLine()&&(v=pe(v.line+1,0)),d.line<l.viewFrom||v.line>l.viewTo-1)return!1;var A,b,y;d.line==l.viewFrom||(A=Pi(s,d.line))==0?(b=Ye(l.view[0].line),y=l.view[0].node):(b=Ye(l.view[A].line),y=l.view[A-1].node.nextSibling);var w=Pi(s,v.line),U,P;if(w==l.view.length-1?(U=l.viewTo-1,P=l.lineDiv.lastChild):(U=Ye(l.view[w+1].line)-1,P=l.view[w+1].node.previousSibling),!y)return!1;for(var _=s.doc.splitLines(yp(s,y,P,b,U)),re=dt(s.doc,pe(b,0),pe(U,Ae(s.doc,U).text.length));_.length>1&&re.length>1;)if(Ne(_)==Ne(re))_.pop(),re.pop(),U--;else if(_[0]==re[0])_.shift(),re.shift(),b++;else break;for(var ee=0,oe=0,fe=_[0],he=re[0],xe=Math.min(fe.length,he.length);ee<xe&&fe.charCodeAt(ee)==he.charCodeAt(ee);)++ee;for(var Ie=Ne(_),Ce=Ne(re),Re=Math.min(Ie.length-(_.length==1?ee:0),Ce.length-(re.length==1?ee:0));oe<Re&&Ie.charCodeAt(Ie.length-oe-1)==Ce.charCodeAt(Ce.length-oe-1);)++oe;if(_.length==1&&re.length==1&&b==d.line)for(;ee&&ee>d.ch&&Ie.charCodeAt(Ie.length-oe-1)==Ce.charCodeAt(Ce.length-oe-1);)ee--,oe++;_[_.length-1]=Ie.slice(0,Ie.length-oe).replace(/^\u200b+/,""),_[0]=_[0].slice(ee).replace(/\u200b+$/,"");var Ze=pe(b,ee),Ve=pe(U,re.length?Ne(re).length-oe:0);if(_.length>1||_[0]||Je(Ze,Ve))return wn(s.doc,_,Ze,Ve,"+input"),!0},mr.prototype.ensurePolled=function(){this.forceCompositionEnd()},mr.prototype.reset=function(){this.forceCompositionEnd()},mr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},mr.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},mr.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&kt(this.cm,function(){return vt(s.cm)})},mr.prototype.setUneditable=function(s){s.contentEditable="false"},mr.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||tt(this.cm,ll)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},mr.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},mr.prototype.onContextMenu=function(){},mr.prototype.resetPosition=function(){},mr.prototype.needsContentAttribute=!0;function yf(s,l){var g=Et(s,l.line);if(!g||g.hidden)return null;var d=Ae(s.doc,l.line),v=_o(g,d,l.line),A=Tr(d,s.doc.direction),b="left";if(A){var y=bt(A,l.ch);b=y%2?"right":"left"}var w=xu(v.map,l.ch,b);return w.offset=w.collapse=="right"?w.end:w.start,w}function Rp(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function Bn(s,l){return l&&(s.bad=!0),s}function yp(s,l,g,d,v){var A="",b=!1,y=s.doc.lineSeparator(),w=!1;function U(ee){return function(oe){return oe.id==ee}}function P(){b&&(A+=y,w&&(A+=y),b=w=!1)}function _(ee){ee&&(P(),A+=ee)}function re(ee){if(ee.nodeType==1){var oe=ee.getAttribute("cm-text");if(oe){_(oe);return}var fe=ee.getAttribute("cm-marker"),he;if(fe){var xe=s.findMarks(pe(d,0),pe(v+1,0),U(+fe));xe.length&&(he=xe[0].find(0))&&_(dt(s.doc,he.from,he.to).join(y));return}if(ee.getAttribute("contenteditable")=="false")return;var Ie=/^(pre|div|p|li|table|br)$/i.test(ee.nodeName);if(!/^br$/i.test(ee.nodeName)&&ee.textContent.length==0)return;Ie&&P();for(var Ce=0;Ce<ee.childNodes.length;Ce++)re(ee.childNodes[Ce]);/^(pre|p)$/i.test(ee.nodeName)&&(w=!0),Ie&&(b=!0)}else ee.nodeType==3&&_(ee.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(l),l!=g;)l=l.nextSibling,w=!1;return A}function ga(s,l,g){var d;if(l==s.display.lineDiv){if(d=s.display.lineDiv.childNodes[g],!d)return Bn(s.clipPos(pe(s.display.viewTo-1)),!0);l=null,g=0}else for(d=l;;d=d.parentNode){if(!d||d==s.display.lineDiv)return null;if(d.parentNode&&d.parentNode==s.display.lineDiv)break}for(var v=0;v<s.display.view.length;v++){var A=s.display.view[v];if(A.node==d)return Sp(A,l,g)}}function Sp(s,l,g){var d=s.text.firstChild,v=!1;if(!l||!cr(d,l))return Bn(pe(Ye(s.line),0),!0);if(l==d&&(v=!0,l=d.childNodes[g],g=0,!l)){var A=s.rest?Ne(s.rest):s.line;return Bn(pe(Ye(A),A.text.length),v)}var b=l.nodeType==3?l:null,y=l;for(!b&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(b=l.firstChild,g&&(g=b.nodeValue.length));y.parentNode!=d;)y=y.parentNode;var w=s.measure,U=w.maps;function P(he,xe,Ie){for(var Ce=-1;Ce<(U?U.length:0);Ce++)for(var Re=Ce<0?w.map:U[Ce],Ze=0;Ze<Re.length;Ze+=3){var Ve=Re[Ze+2];if(Ve==he||Ve==xe){var er=Ye(Ce<0?s.line:s.rest[Ce]),Cr=Re[Ze]+Ie;return(Ie<0||Ve!=he)&&(Cr=Re[Ze+(Ie?1:0)]),pe(er,Cr)}}}var _=P(b,y,g);if(_)return Bn(_,v);for(var re=y.nextSibling,ee=b?b.nodeValue.length-g:0;re;re=re.nextSibling){if(_=P(re,re.firstChild,0),_)return Bn(pe(_.line,_.ch-ee),v);ee+=re.textContent.length}for(var oe=y.previousSibling,fe=g;oe;oe=oe.previousSibling){if(_=P(oe,oe.firstChild,-1),_)return Bn(pe(_.line,_.ch+fe),v);fe+=oe.textContent.length}}var Zr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Qr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Zr.prototype.init=function(s){var l=this,g=this,d=this.cm;this.createField(s);var v=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),B&&(v.style.width="0px"),Fe(v,"input",function(){G&&W>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Fe(v,"paste",function(b){Er(d,b)||Af(b,d)||(d.state.pasteIncoming=+new Date,g.fastPoll())});function A(b){if(!Er(d,b)){if(d.somethingSelected())da({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var y=bf(d);da({lineWise:!0,text:y.text}),b.type=="cut"?d.setSelections(y.ranges,null,ce):(g.prevInput="",v.value=y.text.join(`
20
+ `),Lt(v))}else return;b.type=="cut"&&(d.state.cutIncoming=+new Date)}}Fe(v,"cut",A),Fe(v,"copy",A),Fe(s.scroller,"paste",function(b){if(!(Qi(s,b)||Er(d,b))){if(!v.dispatchEvent){d.state.pasteIncoming=+new Date,g.focus();return}var y=new Event("paste");y.clipboardData=b.clipboardData,v.dispatchEvent(y)}}),Fe(s.lineSpace,"selectstart",function(b){Qi(s,b)||ht(b)}),Fe(v,"compositionstart",function(){var b=d.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:b,range:d.markText(b,d.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(v,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Zr.prototype.createField=function(s){this.wrapper=Tf(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;ul(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Zr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,d=ps(s);if(s.options.moveInputWithCursor){var v=ze(s,g.sel.primary().head,"div"),A=l.wrapper.getBoundingClientRect(),b=l.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,v.top+b.top-A.top)),d.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,v.left+b.left-A.left))}return d},Zr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Qe(g.cursorDiv,s.cursors),Qe(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Zr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing&&s)){var l=this.cm;if(this.resetting=!0,l.somethingSelected()){this.prevInput="";var g=l.getSelection();this.textarea.value=g,l.state.focused&&Lt(this.textarea),G&&W>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",G&&W>=9&&(this.hasSelection=null));this.resetting=!1}},Zr.prototype.getField=function(){return this.textarea},Zr.prototype.supportsTouch=function(){return!1},Zr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Y||$r(lr(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Zr.prototype.blur=function(){this.textarea.blur()},Zr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zr.prototype.receivedFocus=function(){this.slowPoll()},Zr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Zr.prototype.fastPoll=function(){var s=!1,l=this;l.pollingFast=!0;function g(){var d=l.poll();!d&&!s?(s=!0,l.polling.set(60,g)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,g)},Zr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Vo(g)&&!d&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var v=g.value;if(v==d&&!l.somethingSelected())return!1;if(G&&W>=9&&this.hasSelection===v||q&&/[\uf700-\uf7ff]/.test(v))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var A=v.charCodeAt(0);if(A==8203&&!d&&(d="\u200B"),A==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,y=Math.min(d.length,v.length);b<y&&d.charCodeAt(b)==v.charCodeAt(b);)++b;return kt(l,function(){ll(l,v.slice(b),d.length-b,null,s.composing?"*compose":null),v.length>1e3||v.indexOf(`
21
+ `)>-1?g.value=s.prevInput="":s.prevInput=v,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zr.prototype.onKeyPress=function(){G&&W>=9&&(this.hasSelection=null),this.fastPoll()},Zr.prototype.onContextMenu=function(s){var l=this,g=l.cm,d=g.display,v=l.textarea;l.contextMenuPending&&l.contextMenuPending();var A=li(g,s),b=d.scroller.scrollTop;if(!A||$)return;var y=g.options.resetSelectionOnContextMenu;y&&g.doc.sel.contains(A)==-1&&tt(g,xt)(g.doc,Ri(A),ce);var w=v.style.cssText,U=l.wrapper.style.cssText,P=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",v.style.cssText=`position: absolute; width: 30px; height: 30px;
22
+ top: `+(s.clientY-P.top-5)+"px; left: "+(s.clientX-P.left-5)+`px;
23
+ z-index: 1000; background: `+(G?"rgba(255, 255, 255, .05)":"transparent")+`;
24
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var _;D&&(_=v.ownerDocument.defaultView.scrollY),d.input.focus(),D&&v.ownerDocument.defaultView.scrollTo(null,_),d.input.reset(),g.somethingSelected()||(v.value=l.prevInput=" "),l.contextMenuPending=ee,d.selForContextMenu=g.doc.sel,clearTimeout(d.detectingSelectAll);function re(){if(v.selectionStart!=null){var fe=g.somethingSelected(),he="\u200B"+(fe?v.value:"");v.value="\u21DA",v.value=he,l.prevInput=fe?"":"\u200B",v.selectionStart=1,v.selectionEnd=he.length,d.selForContextMenu=g.doc.sel}}function ee(){if(l.contextMenuPending==ee&&(l.contextMenuPending=!1,l.wrapper.style.cssText=U,v.style.cssText=w,G&&W<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=b),v.selectionStart!=null)){(!G||G&&W<9)&&re();var fe=0,he=function(){d.selForContextMenu==g.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&l.prevInput=="\u200B"?tt(g,Hu)(g):fe++<10?d.detectingSelectAll=setTimeout(he,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(he,200)}}if(G&&W>=9&&re(),ke){bs(s);var oe=function(){Pr(window,"mouseup",oe),setTimeout(ee,20)};Fe(window,"mouseup",oe)}else setTimeout(ee,50)},Zr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Zr.prototype.setUneditable=function(){},Zr.prototype.needsContentAttribute=!1;function Lp(s,l){if(l=l?zr(l):{},l.value=s.value,!l.tabindex&&s.tabIndex&&(l.tabindex=s.tabIndex),!l.placeholder&&s.placeholder&&(l.placeholder=s.placeholder),l.autofocus==null){var g=$r(lr(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function d(){s.value=y.getValue()}var v;if(s.form&&(Fe(s.form,"submit",d),!l.leaveSubmitMethodAlone)){var A=s.form;v=A.submit;try{var b=A.submit=function(){d(),A.submit=v,A.submit(),A.submit=b}}catch{}}l.finishInit=function(w){w.save=d,w.getTextArea=function(){return s},w.toTextArea=function(){w.toTextArea=isNaN,d(),s.parentNode.removeChild(w.getWrapperElement()),s.style.display="",s.form&&(Pr(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=v))}},s.style.display="none";var y=yr(function(w){return s.parentNode.insertBefore(w,s.nextSibling)},l);return y}function wp(s){s.off=Pr,s.on=Fe,s.wheelEventPixels=Dc,s.Doc=Bt,s.splitLines=nn,s.countColumn=Ar,s.findColumn=we,s.isWordChar=ct,s.Pass=Ge,s.signal=ur,s.Line=hn,s.changeEnd=yi,s.scrollbarModel=wu,s.Pos=pe,s.cmpPos=Je,s.modes=an,s.mimeModes=Bi,s.resolveMode=ln,s.getMode=De,s.modeExtensions=K,s.extendMode=Ee,s.copyState=Se,s.startState=et,s.innerMode=xr,s.commands=go,s.keyMap=Hi,s.keyName=lf,s.isModifierKey=of,s.lookupKey=On,s.normalizeKeyMap=np,s.StringStream=Ke,s.SharedTextMarker=co,s.TextMarker=Es,s.LineWidget=fo,s.e_preventDefault=ht,s.e_stopPropagation=Wr,s.e_stop=bs,s.addClass=je,s.contains=cr,s.rmClass=Te,s.keyNames=ms}Ip(yr),Tp(yr);var Up="iter insert remove copy getEditor constructor".split(" ");for(var Ea in Bt.prototype)Bt.prototype.hasOwnProperty(Ea)&&gr(Up,Ea)<0&&(yr.prototype[Ea]=function(s){return function(){return s.apply(this.doc,arguments)}}(Bt.prototype[Ea]));return is(Bt),yr.inputStyles={textarea:Zr,contenteditable:mr},yr.defineMode=function(s){!yr.defaults.mode&&s!="null"&&(yr.defaults.mode=s),Wo.apply(this,arguments)},yr.defineMIME=Do,yr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(s,l){yr.prototype[s]=l},yr.defineDocExtension=function(s,l){Bt.prototype[s]=l},yr.fromTextArea=Lp,wp(yr),yr.version="5.65.20",yr})});var Ql=br((aL,xv)=>{var im=OA(),LA=GA(),wA=FA(),UA=typeof window<"u"?window:global;xv.exports={assign:im,create:LA,trim:wA,bind:BA,slice:sm,each:vv,map:VA,pluck:nm,isList:om,isFunction:WA,isObject:DA,Global:UA};function OA(){return Object.assign?Object.assign:function(m,e,N,R){for(var L=1;L<arguments.length;L++)vv(Object(arguments[L]),function(G,W){m[W]=G});return m}}function GA(){if(Object.create)return function(e,N,R,L){var G=sm(arguments,1);return im.apply(this,[Object.create(e)].concat(G))};{let m=function(){};var i=m;return function(N,R,L,G){var W=sm(arguments,1);return m.prototype=N,im.apply(this,[new m].concat(W))}}}function FA(){return String.prototype.trim?function(m){return String.prototype.trim.call(m)}:function(m){return m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function BA(i,m){return function(){return m.apply(i,Array.prototype.slice.call(arguments,0))}}function sm(i,m){return Array.prototype.slice.call(i,m||0)}function vv(i,m){nm(i,function(e,N){return m(e,N),!1})}function VA(i,m){var e=om(i)?[]:{};return nm(i,function(N,R){return e[R]=m(N,R),!1}),e}function nm(i,m){if(om(i)){for(var e=0;e<i.length;e++)if(m(i[e],e))return i[e]}else for(var N in i)if(i.hasOwnProperty(N)&&m(i[N],N))return i[N]}function om(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function WA(i){return i&&{}.toString.call(i)==="[object Function]"}function DA(i){return i&&{}.toString.call(i)==="[object Object]"}});var Iv=br((lL,Cv)=>{var ma=Ql(),MA=ma.slice,ZA=ma.pluck,Lf=ma.each,QA=ma.bind,PA=ma.create,am=ma.isList,lm=ma.isFunction,kA=ma.isObject;Cv.exports={createStore:um};var XA={version:"2.0.12",enabled:!1,get:function(i,m){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,m)},set:function(i,m){return m===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(m)),m)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var m=this;this.storage.each(function(e,N){i.call(m,m._deserialize(e),(N||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return um.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return um(this.storage,this.plugins,i)}};function HA(){var i=typeof console>"u"?null:console;if(i){var m=i.warn?i.warn:i.log;m.apply(i,arguments)}}function um(i,m,e){e||(e=""),i&&!am(i)&&(i=[i]),m&&!am(m)&&(m=[m]);var N=e?"__storejs_"+e+"_":"",R=e?new RegExp("^"+N):null,L=/^[a-zA-Z0-9_\-]*$/;if(!L.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var G={_namespacePrefix:N,_namespaceRegexp:R,_testStorage:function(D){try{var H="__storejs__test__";D.write(H,H);var k=D.read(H)===H;return D.remove(H),k}catch{return!1}},_assignPluginFnProp:function(D,H){var k=this[H];this[H]=function(){var $=MA(arguments,0),M=this;function z(){if(k)return Lf(arguments,function(B,V){$[V]=B}),k.apply(M,$)}var J=[z].concat($);return D.apply(M,J)}},_serialize:function(D){return JSON.stringify(D)},_deserialize:function(D,H){if(!D)return H;var k="";try{k=JSON.parse(D)}catch{k=D}return k!==void 0?k:H},_addStorage:function(D){this.enabled||this._testStorage(D)&&(this.storage=D,this.enabled=!0)},_addPlugin:function(D){var H=this;if(am(D)){Lf(D,function($){H._addPlugin($)});return}var k=ZA(this.plugins,function($){return D===$});if(!k){if(this.plugins.push(D),!lm(D))throw new Error("Plugins must be function values that return objects");var Z=D.call(this);if(!kA(Z))throw new Error("Plugins must return an object of function properties");Lf(Z,function($,M){if(!lm($))throw new Error("Bad plugin property: "+M+" from plugin "+D.name+". Plugins should only return functions.");H._assignPluginFnProp($,M)})}},addStorage:function(D){HA("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(D)}},W=PA(G,XA,{plugins:[]});return W.raw={},Lf(W,function(D,H){lm(D)&&(W.raw[H]=QA(W,D))}),Lf(i,function(D){W._addStorage(D)}),Lf(m,function(D){W._addPlugin(D)}),W}});var bv=br((uL,Nv)=>{var YA=Ql(),_A=YA.Global;Nv.exports={name:"localStorage",read:Av,write:JA,each:$A,remove:zA,clearAll:jA};function wf(){return _A.localStorage}function Av(i){return wf().getItem(i)}function JA(i,m){return wf().setItem(i,m)}function $A(i){for(var m=wf().length-1;m>=0;m--){var e=wf().key(m);i(Av(e),e)}}function zA(i){return wf().removeItem(i)}function jA(){return wf().clear()}});var yv=br((fL,Rv)=>{var qA=Ql(),KA=qA.Global;Rv.exports={name:"oldFF-globalStorage",read:eN,write:rN,each:Tv,remove:tN,clearAll:iN};var Pl=KA.globalStorage;function eN(i){return Pl[i]}function rN(i,m){Pl[i]=m}function Tv(i){for(var m=Pl.length-1;m>=0;m--){var e=Pl.key(m);i(Pl[e],e)}}function tN(i){return Pl.removeItem(i)}function iN(){Tv(function(i,m){delete Pl[i]})}});var wv=br((cL,Lv)=>{var sN=Ql(),fm=sN.Global;Lv.exports={name:"oldIE-userDataStorage",write:nN,read:oN,each:aN,remove:lN,clearAll:uN};var Ih="storejs",Ch=fm.document,Ah=cN(),Sv=(fm.navigator?fm.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function nN(i,m){if(!Sv){var e=cm(i);Ah(function(N){N.setAttribute(e,m),N.save(Ih)})}}function oN(i){if(!Sv){var m=cm(i),e=null;return Ah(function(N){e=N.getAttribute(m)}),e}}function aN(i){Ah(function(m){for(var e=m.XMLDocument.documentElement.attributes,N=e.length-1;N>=0;N--){var R=e[N];i(m.getAttribute(R.name),R.name)}})}function lN(i){var m=cm(i);Ah(function(e){e.removeAttribute(m),e.save(Ih)})}function uN(){Ah(function(i){var m=i.XMLDocument.documentElement.attributes;i.load(Ih);for(var e=m.length-1;e>=0;e--)i.removeAttribute(m[e].name);i.save(Ih)})}var fN=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function cm(i){return i.replace(/^\d/,"___$&").replace(fN,"___")}function cN(){if(!Ch||!Ch.documentElement||!Ch.documentElement.addBehavior)return null;var i="script",m,e,N;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),m=e.w.frames[0].document,N=m.createElement("div")}catch{N=Ch.createElement("div"),m=Ch.body}return function(R){var L=[].slice.call(arguments,0);L.unshift(N),m.appendChild(N),N.addBehavior("#default#userData"),N.load(Ih),R.apply(this,L),m.removeChild(N)}}});var Vv=br((pL,Bv)=>{var Uv=Ql(),pN=Uv.Global,hN=Uv.trim;Bv.exports={name:"cookieStorage",read:dN,write:gN,each:Ov,remove:Gv,clearAll:EN};var Nh=pN.document;function dN(i){if(!i||!Fv(i))return null;var m="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Nh.cookie.replace(new RegExp(m),"$1"))}function Ov(i){for(var m=Nh.cookie.split(/; ?/g),e=m.length-1;e>=0;e--)if(hN(m[e])){var N=m[e].split("="),R=unescape(N[0]),L=unescape(N[1]);i(L,R)}}function gN(i,m){i&&(Nh.cookie=escape(i)+"="+escape(m)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Gv(i){!i||!Fv(i)||(Nh.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function EN(){Ov(function(i,m){Gv(m)})}function Fv(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Nh.cookie)}});var Mv=br((hL,Dv)=>{var mN=Ql(),vN=mN.Global;Dv.exports={name:"sessionStorage",read:Wv,write:xN,each:CN,remove:IN,clearAll:AN};function Uf(){return vN.sessionStorage}function Wv(i){return Uf().getItem(i)}function xN(i,m){return Uf().setItem(i,m)}function CN(i){for(var m=Uf().length-1;m>=0;m--){var e=Uf().key(m);i(Wv(e),e)}}function IN(i){return Uf().removeItem(i)}function AN(){return Uf().clear()}});var Qv=br((dL,Zv)=>{Zv.exports={name:"memoryStorage",read:NN,write:bN,each:TN,remove:RN,clearAll:yN};var kl={};function NN(i){return kl[i]}function bN(i,m){kl[i]=m}function TN(i){for(var m in kl)kl.hasOwnProperty(m)&&i(kl[m],m)}function RN(i){delete kl[i]}function yN(i){kl={}}});var kv=br((gL,Pv)=>{Pv.exports=[bv(),yv(),wv(),Vv(),Mv(),Qv()]});var Xv=br((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(i){return i<10?"0"+i:i}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(i){return rx_escapable.lastIndex=0,rx_escapable.test(i)?'"'+i.replace(rx_escapable,function(m){var e=meta[m];return typeof e=="string"?e:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,m){var e,N,R,L,G=gap,W,D=m[i];switch(D&&typeof D=="object"&&typeof D.toJSON=="function"&&(D=D.toJSON(i)),typeof rep=="function"&&(D=rep.call(m,i,D)),typeof D){case"string":return quote(D);case"number":return isFinite(D)?String(D):"null";case"boolean":case"null":return String(D);case"object":if(!D)return"null";if(gap+=indent,W=[],Object.prototype.toString.apply(D)==="[object Array]"){for(L=D.length,e=0;e<L;e+=1)W[e]=str(e,D)||"null";return R=W.length===0?"[]":gap?`[
25
+ `+gap+W.join(`,
26
26
  `+gap)+`
27
- `+O+"]":"["+D.join(",")+"]",gap=O,R}if(rep&&typeof rep=="object")for(L=rep.length,e=0;e<L;e+=1)typeof rep[e]=="string"&&(N=rep[e],R=str(N,Z),R&&D.push(quote(N)+(gap?": ":":")+R));else for(N in Z)Object.prototype.hasOwnProperty.call(Z,N)&&(R=str(N,Z),R&&D.push(quote(N)+(gap?": ":":")+R));return R=D.length===0?"{}":gap?`{
28
- `+gap+D.join(`,
27
+ `+G+"]":"["+W.join(",")+"]",gap=G,R}if(rep&&typeof rep=="object")for(L=rep.length,e=0;e<L;e+=1)typeof rep[e]=="string"&&(N=rep[e],R=str(N,D),R&&W.push(quote(N)+(gap?": ":":")+R));else for(N in D)Object.prototype.hasOwnProperty.call(D,N)&&(R=str(N,D),R&&W.push(quote(N)+(gap?": ":":")+R));return R=W.length===0?"{}":gap?`{
28
+ `+gap+W.join(`,
29
29
  `+gap)+`
30
- `+O+"}":"{"+D.join(",")+"}",gap=O,R}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,m,e){var N;if(gap="",indent="",typeof e=="number")for(N=0;N<e;N+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=m,m&&typeof m!="function"&&(typeof m!="object"||typeof m.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,m){var e,N,R=i[m];if(R&&typeof R=="object")for(e in R)Object.prototype.hasOwnProperty.call(R,e)&&(N=walk(R,e),N!==void 0?R[e]=N:delete R[e]);return reviver.call(i,m,R)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(i){return"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var $v=br((TL,Jv)=>{Jv.exports=VN;function VN(){return Yv(),{}}});var jv=br((RL,zv)=>{var DN=bv(),MN=Xv(),WN=[$v()];zv.exports=DN.createStore(MN,WN)});var e0=br((UL,Kv)=>{"use strict";Kv.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,m=>`%${m.charCodeAt(0).toString(16).toUpperCase()}`)});var n0=br((FL,s0)=>{"use strict";var i0="%[a-f0-9]{2}",r0=new RegExp("("+i0+")|([^%]+?)","gi"),t0=new RegExp("("+i0+")+","gi");function dm(i,m){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;m=m||1;var e=i.slice(0,m),N=i.slice(m);return Array.prototype.concat.call([],dm(e),dm(N))}function PN(i){try{return decodeURIComponent(i)}catch{for(var m=i.match(r0)||[],e=1;e<m.length;e++)i=dm(m,e).join(""),m=i.match(r0)||[];return i}}function kN(i){for(var m={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=t0.exec(i);e;){try{m[e[0]]=decodeURIComponent(e[0])}catch{var N=PN(e[0]);N!==e[0]&&(m[e[0]]=N)}e=t0.exec(i)}m["%C2"]="\uFFFD";for(var R=Object.keys(m),L=0;L<R.length;L++){var O=R[L];i=i.replace(new RegExp(O,"g"),m[O])}return i}s0.exports=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return kN(i)}}});var a0=br((GL,o0)=>{"use strict";o0.exports=(i,m)=>{if(!(typeof i=="string"&&typeof m=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(m==="")return[i];let e=i.indexOf(m);return e===-1?[i]:[i.slice(0,e),i.slice(e+m.length)]}});var u0=br((BL,l0)=>{"use strict";l0.exports=function(i,m){for(var e={},N=Object.keys(i),R=Array.isArray(m),L=0;L<N.length;L++){var O=N[L],D=i[O];(R?m.indexOf(O)!==-1:m(O,D,i))&&(e[O]=D)}return e}});var Zh=br(wi=>{"use strict";var QN=e0(),_N=n0(),c0=a0(),HN=u0(),XN=i=>i==null;function YN(i){switch(i.arrayFormat){case"index":return m=>(e,N)=>{let R=e.length;return N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(m,i),"[",R,"]"].join("")]:[...e,[qt(m,i),"[",qt(R,i),"]=",qt(N,i)].join("")]};case"bracket":return m=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(m,i),"[]"].join("")]:[...e,[qt(m,i),"[]=",qt(N,i)].join("")];case"comma":case"separator":return m=>(e,N)=>N==null||N.length===0?e:e.length===0?[[qt(m,i),"=",qt(N,i)].join("")]:[[e,qt(N,i)].join(i.arrayFormatSeparator)];default:return m=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,qt(m,i)]:[...e,[qt(m,i),"=",qt(N,i)].join("")]}}function JN(i){let m;switch(i.arrayFormat){case"index":return(e,N,R)=>{if(m=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!m){R[e]=N;return}R[e]===void 0&&(R[e]={}),R[e][m[1]]=N};case"bracket":return(e,N,R)=>{if(m=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!m){R[e]=N;return}if(R[e]===void 0){R[e]=[N];return}R[e]=[].concat(R[e],N)};case"comma":case"separator":return(e,N,R)=>{let L=typeof N=="string"&&N.includes(i.arrayFormatSeparator),O=typeof N=="string"&&!L&&Hl(N,i).includes(i.arrayFormatSeparator);N=O?Hl(N,i):N;let D=L||O?N.split(i.arrayFormatSeparator).map(Z=>Hl(Z,i)):N===null?N:Hl(N,i);R[e]=D};default:return(e,N,R)=>{if(R[e]===void 0){R[e]=N;return}R[e]=[].concat(R[e],N)}}}function p0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qt(i,m){return m.encode?m.strict?QN(i):encodeURIComponent(i):i}function Hl(i,m){return m.decode?_N(i):i}function h0(i){return Array.isArray(i)?i.sort():typeof i=="object"?h0(Object.keys(i)).sort((m,e)=>Number(m)-Number(e)).map(m=>i[m]):i}function d0(i){let m=i.indexOf("#");return m!==-1&&(i=i.slice(0,m)),i}function $N(i){let m="",e=i.indexOf("#");return e!==-1&&(m=i.slice(e)),m}function g0(i){i=d0(i);let m=i.indexOf("?");return m===-1?"":i.slice(m+1)}function f0(i,m){return m.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):m.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function E0(i,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),p0(m.arrayFormatSeparator);let e=JN(m),N=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return N;for(let R of i.split("&")){if(R==="")continue;let[L,O]=c0(m.decode?R.replace(/\+/g," "):R,"=");O=O===void 0?null:["comma","separator"].includes(m.arrayFormat)?O:Hl(O,m),e(Hl(L,m),O,N)}for(let R of Object.keys(N)){let L=N[R];if(typeof L=="object"&&L!==null)for(let O of Object.keys(L))L[O]=f0(L[O],m);else N[R]=f0(L,m)}return m.sort===!1?N:(m.sort===!0?Object.keys(N).sort():Object.keys(N).sort(m.sort)).reduce((R,L)=>{let O=N[L];return O&&typeof O=="object"&&!Array.isArray(O)?R[L]=h0(O):R[L]=O,R},Object.create(null))}wi.extract=g0;wi.parse=E0;wi.stringify=(i,m)=>{if(!i)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),p0(m.arrayFormatSeparator);let e=O=>m.skipNull&&XN(i[O])||m.skipEmptyString&&i[O]==="",N=YN(m),R={};for(let O of Object.keys(i))e(O)||(R[O]=i[O]);let L=Object.keys(R);return m.sort!==!1&&L.sort(m.sort),L.map(O=>{let D=i[O];return D===void 0?"":D===null?qt(O,m):Array.isArray(D)?D.reduce(N(O),[]).join("&"):qt(O,m)+"="+qt(D,m)}).filter(O=>O.length>0).join("&")};wi.parseUrl=(i,m)=>{m=Object.assign({decode:!0},m);let[e,N]=c0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:E0(g0(i),m)},m&&m.parseFragmentIdentifier&&N?{fragmentIdentifier:Hl(N,m)}:{})};wi.stringifyUrl=(i,m)=>{m=Object.assign({encode:!0,strict:!0},m);let e=d0(i.url).split("?")[0]||"",N=wi.extract(i.url),R=wi.parse(N,{sort:!1}),L=Object.assign(R,i.query),O=wi.stringify(L,m);O&&(O=`?${O}`);let D=$N(i.url);return i.fragmentIdentifier&&(D=`#${qt(i.fragmentIdentifier,m)}`),`${e}${O}${D}`};wi.pick=(i,m,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:N,query:R,fragmentIdentifier:L}=wi.parseUrl(i,e);return wi.stringifyUrl({url:N,query:HN(R,m),fragmentIdentifier:L},e)};wi.exclude=(i,m,e)=>{let N=Array.isArray(m)?R=>!m.includes(R):(R,L)=>!m(R,L);return wi.pick(i,N,e)}});var uI=br((RD,Gm)=>{"use strict";var Jf=typeof Reflect=="object"?Reflect:null,KC=Jf&&typeof Jf.apply=="function"?Jf.apply:function(m,e,N){return Function.prototype.apply.call(m,e,N)},pd;Jf&&typeof Jf.ownKeys=="function"?pd=Jf.ownKeys:Object.getOwnPropertySymbols?pd=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:pd=function(m){return Object.getOwnPropertyNames(m)};function m1(i){console&&console.warn&&console.warn(i)}var rI=Number.isNaN||function(m){return m!==m};function wr(){wr.init.call(this)}Gm.exports=wr;Gm.exports.once=I1;wr.EventEmitter=wr;wr.prototype._events=void 0;wr.prototype._eventsCount=0;wr.prototype._maxListeners=void 0;var eI=10;function hd(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(wr,"defaultMaxListeners",{enumerable:!0,get:function(){return eI},set:function(i){if(typeof i!="number"||i<0||rI(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");eI=i}});wr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};wr.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||rI(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function tI(i){return i._maxListeners===void 0?wr.defaultMaxListeners:i._maxListeners}wr.prototype.getMaxListeners=function(){return tI(this)};wr.prototype.emit=function(m){for(var e=[],N=1;N<arguments.length;N++)e.push(arguments[N]);var R=m==="error",L=this._events;if(L!==void 0)R=R&&L.error===void 0;else if(!R)return!1;if(R){var O;if(e.length>0&&(O=e[0]),O instanceof Error)throw O;var D=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw D.context=O,D}var Z=L[m];if(Z===void 0)return!1;if(typeof Z=="function")KC(Z,this,e);else for(var H=Z.length,Q=aI(Z,H),N=0;N<H;++N)KC(Q[N],this,e);return!0};function iI(i,m,e,N){var R,L,O;if(hd(e),L=i._events,L===void 0?(L=i._events=Object.create(null),i._eventsCount=0):(L.newListener!==void 0&&(i.emit("newListener",m,e.listener?e.listener:e),L=i._events),O=L[m]),O===void 0)O=L[m]=e,++i._eventsCount;else if(typeof O=="function"?O=L[m]=N?[e,O]:[O,e]:N?O.unshift(e):O.push(e),R=tI(i),R>0&&O.length>R&&!O.warned){O.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=i,D.type=m,D.count=O.length,m1(D)}return i}wr.prototype.addListener=function(m,e){return iI(this,m,e,!1)};wr.prototype.on=wr.prototype.addListener;wr.prototype.prependListener=function(m,e){return iI(this,m,e,!0)};function v1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function sI(i,m,e){var N={fired:!1,wrapFn:void 0,target:i,type:m,listener:e},R=v1.bind(N);return R.listener=e,N.wrapFn=R,R}wr.prototype.once=function(m,e){return hd(e),this.on(m,sI(this,m,e)),this};wr.prototype.prependOnceListener=function(m,e){return hd(e),this.prependListener(m,sI(this,m,e)),this};wr.prototype.removeListener=function(m,e){var N,R,L,O,D;if(hd(e),R=this._events,R===void 0)return this;if(N=R[m],N===void 0)return this;if(N===e||N.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete R[m],R.removeListener&&this.emit("removeListener",m,N.listener||e));else if(typeof N!="function"){for(L=-1,O=N.length-1;O>=0;O--)if(N[O]===e||N[O].listener===e){D=N[O].listener,L=O;break}if(L<0)return this;L===0?N.shift():x1(N,L),N.length===1&&(R[m]=N[0]),R.removeListener!==void 0&&this.emit("removeListener",m,D||e)}return this};wr.prototype.off=wr.prototype.removeListener;wr.prototype.removeAllListeners=function(m){var e,N,R;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[m]),this;if(arguments.length===0){var L=Object.keys(N),O;for(R=0;R<L.length;++R)O=L[R],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=N[m],typeof e=="function")this.removeListener(m,e);else if(e!==void 0)for(R=e.length-1;R>=0;R--)this.removeListener(m,e[R]);return this};function nI(i,m,e){var N=i._events;if(N===void 0)return[];var R=N[m];return R===void 0?[]:typeof R=="function"?e?[R.listener||R]:[R]:e?C1(R):aI(R,R.length)}wr.prototype.listeners=function(m){return nI(this,m,!0)};wr.prototype.rawListeners=function(m){return nI(this,m,!1)};wr.listenerCount=function(i,m){return typeof i.listenerCount=="function"?i.listenerCount(m):oI.call(i,m)};wr.prototype.listenerCount=oI;function oI(i){var m=this._events;if(m!==void 0){var e=m[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}wr.prototype.eventNames=function(){return this._eventsCount>0?pd(this._events):[]};function aI(i,m){for(var e=new Array(m),N=0;N<m;++N)e[N]=i[N];return e}function x1(i,m){for(;m+1<i.length;m++)i[m]=i[m+1];i.pop()}function C1(i){for(var m=new Array(i.length),e=0;e<m.length;++e)m[e]=i[e].listener||i[e];return m}function I1(i,m){return new Promise(function(e,N){function R(O){i.removeListener(m,L),N(O)}function L(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}lI(i,m,L,{once:!0}),m!=="error"&&A1(i,R,{once:!0})})}function A1(i,m,e){typeof i.on=="function"&&lI(i,"error",m,e)}function lI(i,m,e,N){if(typeof i.on=="function")N.once?i.once(m,e):i.on(m,e);else if(typeof i.addEventListener=="function")i.addEventListener(m,function R(L){N.once&&i.removeEventListener(m,R),e(L)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Mm=br((AI,NI)=>{(function(i){typeof AI=="object"&&typeof NI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(L,O,D,Z){if(D&&D.call){var H=D;D=null}else var H=R(L,D,"rangeFinder");typeof O=="number"&&(O=i.Pos(O,0));var Q=R(L,D,"minFoldSize");function W(Y){var B=H(L,O);if(!B||B.to.line-B.from.line<Q)return null;if(Z==="fold")return B;for(var V=L.findMarksAt(B.from),X=0;X<V.length;++X)if(V[X].__isFold){if(!Y)return null;B.cleared=!0,V[X].clear()}return B}var $=W(!0);if(R(L,D,"scanUp"))for(;!$&&O.line>L.firstLine();)O=i.Pos(O.line-1,0),$=W(!1);if(!(!$||$.cleared||Z==="unfold")){var M=e(L,D,$);i.on(M,"mousedown",function(Y){z.clear(),i.e_preventDefault(Y)});var z=L.markText($.from,$.to,{replacedWith:M,clearOnEnter:R(L,D,"clearOnEnter"),__isFold:!0});z.on("clear",function(Y,B){i.signal(L,"unfold",L,Y,B)}),i.signal(L,"fold",L,$.from,$.to)}}function e(L,O,D){var Z=R(L,O,"widget");if(typeof Z=="function"&&(Z=Z(D.from,D.to)),typeof Z=="string"){var H=document.createTextNode(Z);Z=document.createElement("span"),Z.appendChild(H),Z.className="CodeMirror-foldmarker"}else Z&&(Z=Z.cloneNode(!0));return Z}i.newFoldFunction=function(L,O){return function(D,Z){m(D,Z,{rangeFinder:L,widget:O})}},i.defineExtension("foldCode",function(L,O,D){m(this,L,O,D)}),i.defineExtension("isFolded",function(L){for(var O=this.findMarksAt(L),D=0;D<O.length;++D)if(O[D].__isFold)return!0}),i.commands.toggleFold=function(L){L.foldCode(L.getCursor())},i.commands.fold=function(L){L.foldCode(L.getCursor(),null,"fold")},i.commands.unfold=function(L){L.foldCode(L.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(L){L.operation(function(){for(var O=L.firstLine(),D=L.lastLine();O<=D;O++)L.foldCode(i.Pos(O,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(L){L.operation(function(){for(var O=L.firstLine(),D=L.lastLine();O<=D;O++)L.foldCode(i.Pos(O,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var L=Array.prototype.slice.call(arguments,0);return function(O,D){for(var Z=0;Z<L.length;++Z){var H=L[Z](O,D);if(H)return H}}}),i.registerHelper("fold","auto",function(L,O){for(var D=L.getHelpers(O,"fold"),Z=0;Z<D.length;Z++){var H=D[Z](L,O);if(H)return H}});var N={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function R(L,O,D){if(O&&O[D]!==void 0)return O[D];var Z=L.options.foldOptions;return Z&&Z[D]!==void 0?Z[D]:N[D]}i.defineExtension("foldOption",function(L,O){return R(this,L,O)})})});var RI=br((bI,TI)=>{(function(i){typeof bI=="object"&&typeof TI=="object"?i(si(),Mm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(z,Y,B){B&&B!=i.Init&&(z.clearGutter(z.state.foldGutter.options.gutter),z.state.foldGutter=null,z.off("gutterClick",H),z.off("changes",W),z.off("viewportChange",$),z.off("fold",M),z.off("unfold",M),z.off("swapDoc",W),z.off("optionChange",Q)),Y&&(z.state.foldGutter=new e(N(Y)),Z(z),z.on("gutterClick",H),z.on("changes",W),z.on("viewportChange",$),z.on("fold",M),z.on("unfold",M),z.on("swapDoc",W),z.on("optionChange",Q))});var m=i.Pos;function e(z){this.options=z,this.from=this.to=0}function N(z){return z===!0&&(z={}),z.gutter==null&&(z.gutter="CodeMirror-foldgutter"),z.indicatorOpen==null&&(z.indicatorOpen="CodeMirror-foldgutter-open"),z.indicatorFolded==null&&(z.indicatorFolded="CodeMirror-foldgutter-folded"),z}function R(z,Y){for(var B=z.findMarks(m(Y,0),m(Y+1,0)),V=0;V<B.length;++V)if(B[V].__isFold){var X=B[V].find(-1);if(X&&X.line===Y)return B[V]}}function L(z){if(typeof z=="string"){var Y=document.createElement("div");return Y.className=z+" CodeMirror-guttermarker-subtle",Y}else return z.cloneNode(!0)}function O(z,Y,B){var V=z.state.foldGutter.options,X=Y-1,q=z.foldOption(V,"minFoldSize"),te=z.foldOption(V,"rangeFinder"),ie=typeof V.indicatorFolded=="string"&&D(V.indicatorFolded),ae=typeof V.indicatorOpen=="string"&&D(V.indicatorOpen);z.eachLine(Y,B,function(fe){++X;var ye=null,Re=fe.gutterMarkers;if(Re&&(Re=Re[V.gutter]),R(z,X)){if(ie&&Re&&ie.test(Re.className))return;ye=L(V.indicatorFolded)}else{var Le=m(X,0),Ve=te&&te(z,Le);if(Ve&&Ve.to.line-Ve.from.line>=q){if(ae&&Re&&ae.test(Re.className))return;ye=L(V.indicatorOpen)}}!ye&&!Re||z.setGutterMarker(fe,V.gutter,ye)})}function D(z){return new RegExp("(^|\\s)"+z+"(?:$|\\s)\\s*")}function Z(z){var Y=z.getViewport(),B=z.state.foldGutter;B&&(z.operation(function(){O(z,Y.from,Y.to)}),B.from=Y.from,B.to=Y.to)}function H(z,Y,B){var V=z.state.foldGutter;if(V){var X=V.options;if(B==X.gutter){var q=R(z,Y);q?q.clear():z.foldCode(m(Y,0),X)}}}function Q(z,Y){Y=="mode"&&W(z)}function W(z){var Y=z.state.foldGutter;if(Y){var B=Y.options;Y.from=Y.to=0,clearTimeout(Y.changeUpdate),Y.changeUpdate=setTimeout(function(){Z(z)},B.foldOnChangeTimeSpan||600)}}function $(z){var Y=z.state.foldGutter;if(Y){var B=Y.options;clearTimeout(Y.changeUpdate),Y.changeUpdate=setTimeout(function(){var V=z.getViewport();Y.from==Y.to||V.from-Y.to>20||Y.from-V.to>20?Z(z):z.operation(function(){V.from<Y.from&&(O(z,V.from,Y.from),Y.from=V.from),V.to>Y.to&&(O(z,Y.to,V.to),Y.to=V.to)})},B.updateViewportTimeSpan||400)}}function M(z,Y){var B=z.state.foldGutter;if(B){var V=Y.line;V>=B.from&&V<B.to&&O(z,V,V+1)}}})});var LI=br((yI,SI)=>{(function(i){typeof yI=="object"&&typeof SI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(B,V){return B.line-V.line||B.ch-V.ch}var N="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",R=N+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("<(/?)(["+N+"]["+R+"]*)","g");function O(B,V,X,q){this.line=V,this.ch=X,this.cm=B,this.text=B.getLine(V),this.min=q?Math.max(q.from,B.firstLine()):B.firstLine(),this.max=q?Math.min(q.to-1,B.lastLine()):B.lastLine()}function D(B,V){var X=B.cm.getTokenTypeAt(m(B.line,V));return X&&/\btag\b/.test(X)}function Z(B){if(!(B.line>=B.max))return B.ch=0,B.text=B.cm.getLine(++B.line),!0}function H(B){if(!(B.line<=B.min))return B.text=B.cm.getLine(--B.line),B.ch=B.text.length,!0}function Q(B){for(;;){var V=B.text.indexOf(">",B.ch);if(V==-1){if(Z(B))continue;return}if(!D(B,V+1)){B.ch=V+1;continue}var X=B.text.lastIndexOf("/",V),q=X>-1&&!/\S/.test(B.text.slice(X+1,V));return B.ch=V+1,q?"selfClose":"regular"}}function W(B){for(;;){var V=B.ch?B.text.lastIndexOf("<",B.ch-1):-1;if(V==-1){if(H(B))continue;return}if(!D(B,V+1)){B.ch=V;continue}L.lastIndex=V,B.ch=V;var X=L.exec(B.text);if(X&&X.index==V)return X}}function $(B){for(;;){L.lastIndex=B.ch;var V=L.exec(B.text);if(!V){if(Z(B))continue;return}if(!D(B,V.index+1)){B.ch=V.index+1;continue}return B.ch=V.index+V[0].length,V}}function M(B){for(;;){var V=B.ch?B.text.lastIndexOf(">",B.ch-1):-1;if(V==-1){if(H(B))continue;return}if(!D(B,V+1)){B.ch=V;continue}var X=B.text.lastIndexOf("/",V),q=X>-1&&!/\S/.test(B.text.slice(X+1,V));return B.ch=V+1,q?"selfClose":"regular"}}function z(B,V){for(var X=[];;){var q=$(B),te,ie=B.line,ae=B.ch-(q?q[0].length:0);if(!q||!(te=Q(B)))return;if(te!="selfClose")if(q[1]){for(var fe=X.length-1;fe>=0;--fe)if(X[fe]==q[2]){X.length=fe;break}if(fe<0&&(!V||V==q[2]))return{tag:q[2],from:m(ie,ae),to:m(B.line,B.ch)}}else X.push(q[2])}}function Y(B,V){for(var X=[];;){var q=M(B);if(!q)return;if(q=="selfClose"){W(B);continue}var te=B.line,ie=B.ch,ae=W(B);if(!ae)return;if(ae[1])X.push(ae[2]);else{for(var fe=X.length-1;fe>=0;--fe)if(X[fe]==ae[2]){X.length=fe;break}if(fe<0&&(!V||V==ae[2]))return{tag:ae[2],from:m(B.line,B.ch),to:m(te,ie)}}}}i.registerHelper("fold","xml",function(B,V){for(var X=new O(B,V.line,0);;){var q=$(X);if(!q||X.line!=V.line)return;var te=Q(X);if(!te)return;if(!q[1]&&te!="selfClose"){var ie=m(X.line,X.ch),ae=z(X,q[2]);return ae&&e(ae.from,ie)>0?{from:ie,to:ae.from}:null}}}),i.findMatchingTag=function(B,V,X){var q=new O(B,V.line,V.ch,X);if(!(q.text.indexOf(">")==-1&&q.text.indexOf("<")==-1)){var te=Q(q),ie=te&&m(q.line,q.ch),ae=te&&W(q);if(!(!te||!ae||e(q,V)>0)){var fe={from:m(q.line,q.ch),to:ie,tag:ae[2]};return te=="selfClose"?{open:fe,close:null,at:"open"}:ae[1]?{open:Y(q,ae[2]),close:fe,at:"close"}:(q=new O(B,ie.line,ie.ch,X),{open:fe,close:z(q,ae[2]),at:"open"})}}},i.findEnclosingTag=function(B,V,X,q){for(var te=new O(B,V.line,V.ch,X);;){var ie=Y(te,q);if(!ie)break;var ae=new O(B,V.line,V.ch,X),fe=z(ae,ie.tag);if(fe)return{open:ie,close:fe}}},i.scanForClosingTag=function(B,V,X,q){var te=new O(B,V.line,V.ch,q?{from:0,to:q}:null);return z(te,X)}})});var UI=br((wI,OI)=>{(function(i){typeof wI=="object"&&typeof OI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(e){return function(N,R){var L=R.line,O=N.getLine(L);function D(M){for(var z,Y=R.ch,B=0;;){var V=Y<=0?-1:O.lastIndexOf(M[0],Y-1);if(V==-1){if(B==1)break;B=1,Y=O.length;continue}if(B==1&&V<R.ch)break;if(z=N.getTokenTypeAt(i.Pos(L,V+1)),!/^(comment|string)/.test(z))return{ch:V+1,tokenType:z,pair:M};Y=V-1}}function Z(M){var z=1,Y=N.lastLine(),B,V=M.ch,X;e:for(var q=L;q<=Y;++q)for(var te=N.getLine(q),ie=q==L?V:0;;){var ae=te.indexOf(M.pair[0],ie),fe=te.indexOf(M.pair[1],ie);if(ae<0&&(ae=te.length),fe<0&&(fe=te.length),ie=Math.min(ae,fe),ie==te.length)break;if(N.getTokenTypeAt(i.Pos(q,ie+1))==M.tokenType){if(ie==ae)++z;else if(!--z){B=q,X=ie;break e}}++ie}return B==null||L==B?null:{from:i.Pos(L,V),to:i.Pos(B,X)}}for(var H=[],Q=0;Q<e.length;Q++){var W=D(e[Q]);W&&H.push(W)}H.sort(function(M,z){return M.ch-z.ch});for(var Q=0;Q<H.length;Q++){var $=Z(H[Q]);if($)return $}return null}}i.registerHelper("fold","brace",m([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",m([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,N){function R(Q){if(Q<e.firstLine()||Q>e.lastLine())return null;var W=e.getTokenAt(i.Pos(Q,1));if(/\S/.test(W.string)||(W=e.getTokenAt(i.Pos(Q,W.end+1))),W.type!="keyword"||W.string!="import")return null;for(var $=Q,M=Math.min(e.lastLine(),Q+10);$<=M;++$){var z=e.getLine($),Y=z.indexOf(";");if(Y!=-1)return{startCh:W.end,end:i.Pos($,Y)}}}var L=N.line,O=R(L),D;if(!O||R(L-1)||(D=R(L-2))&&D.end.line==L-1)return null;for(var Z=O.end;;){var H=R(Z.line+1);if(H==null)break;Z=H.end}return{from:e.clipPos(i.Pos(L,O.startCh+1)),to:Z}}),i.registerHelper("fold","include",function(e,N){function R(H){if(H<e.firstLine()||H>e.lastLine())return null;var Q=e.getTokenAt(i.Pos(H,1));if(/\S/.test(Q.string)||(Q=e.getTokenAt(i.Pos(H,Q.end+1))),Q.type=="meta"&&Q.string.slice(0,8)=="#include")return Q.start+8}var L=N.line,O=R(L);if(O==null||R(L-1)!=null)return null;for(var D=L;;){var Z=R(D+1);if(Z==null)break;++D}return{from:i.Pos(L,O+1),to:e.clipPos(i.Pos(D))}})})});var BI=br((FI,GI)=>{(function(i){typeof FI=="object"&&typeof GI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(Y,B,V){if(!B)return Y.showHint(V);V&&V.async&&(B.async=!0);var X={hint:B};if(V)for(var q in V)X[q]=V[q];return Y.showHint(X)},i.defineExtension("showHint",function(Y){Y=O(this,this.getCursor("start"),Y);var B=this.listSelections();if(!(B.length>1)){if(this.somethingSelected()){if(!Y.hint.supportsSelection)return;for(var V=0;V<B.length;V++)if(B[V].head.line!=B[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var X=this.state.completionActive=new N(this,Y);X.options.hint&&(i.signal(this,"startCompletion",this),X.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function N(Y,B){if(this.cm=Y,this.options=B,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;Y.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var R=window.requestAnimationFrame||function(Y){return setTimeout(Y,1e3/60)},L=window.cancelAnimationFrame||clearTimeout;N.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(Y,B){var V=Y.list[B],X=this;this.cm.operation(function(){V.hint?V.hint(X.cm,Y,V):X.cm.replaceRange(D(V),V.from||Y.from,V.to||Y.to,"complete"),i.signal(Y,"pick",V),X.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(L(this.debounce),this.debounce=0);var Y=this.startPos;this.data&&(Y=this.data.from);var B=this.cm.getCursor(),V=this.cm.getLine(B.line);if(B.line!=this.startPos.line||V.length-B.ch!=this.startLen-this.startPos.ch||B.ch<Y.ch||this.cm.somethingSelected()||!B.ch||this.options.closeCharacters.test(V.charAt(B.ch-1)))this.close();else{var X=this;this.debounce=R(function(){X.update()}),this.widget&&this.widget.disable()}},update:function(Y){if(this.tick!=null){var B=this,V=++this.tick;$(this.options.hint,this.cm,this.options,function(X){B.tick==V&&B.finishUpdate(X,Y)})}},finishUpdate:function(Y,B){this.data&&i.signal(this.data,"update");var V=this.widget&&this.widget.picked||B&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=Y,Y&&Y.list.length&&(V&&Y.list.length==1?this.pick(Y,0):(this.widget=new Q(this,Y),i.signal(Y,"shown")))}};function O(Y,B,V){var X=Y.options.hintOptions,q={};for(var te in z)q[te]=z[te];if(X)for(var te in X)X[te]!==void 0&&(q[te]=X[te]);if(V)for(var te in V)V[te]!==void 0&&(q[te]=V[te]);return q.hint.resolve&&(q.hint=q.hint.resolve(Y,B)),q}function D(Y){return typeof Y=="string"?Y:Y.text}function Z(Y,B){var V={Up:function(){B.moveFocus(-1)},Down:function(){B.moveFocus(1)},PageUp:function(){B.moveFocus(-B.menuSize()+1,!0)},PageDown:function(){B.moveFocus(B.menuSize()-1,!0)},Home:function(){B.setFocus(0)},End:function(){B.setFocus(B.length-1)},Enter:B.pick,Tab:B.pick,Esc:B.close},X=/Mac/.test(navigator.platform);X&&(V["Ctrl-P"]=function(){B.moveFocus(-1)},V["Ctrl-N"]=function(){B.moveFocus(1)});var q=Y.options.customKeys,te=q?{}:V;function ie(ye,Re){var Le;typeof Re!="string"?Le=function(Ve){return Re(Ve,B)}:V.hasOwnProperty(Re)?Le=V[Re]:Le=Re,te[ye]=Le}if(q)for(var ae in q)q.hasOwnProperty(ae)&&ie(ae,q[ae]);var fe=Y.options.extraKeys;if(fe)for(var ae in fe)fe.hasOwnProperty(ae)&&ie(ae,fe[ae]);return te}function H(Y,B){for(;B&&B!=Y;){if(B.nodeName.toUpperCase()==="LI"&&B.parentNode==Y)return B;B=B.parentNode}}function Q(Y,B){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=Y,this.data=B,this.picked=!1;var V=this,X=Y.cm,q=X.getInputField().ownerDocument,te=q.defaultView||q.parentWindow,ie=this.hints=q.createElement("ul");ie.setAttribute("role","listbox"),ie.setAttribute("aria-expanded","true"),ie.id=this.id;var ae=Y.cm.options.theme;ie.className="CodeMirror-hints "+ae,this.selectedHint=B.selectedHint||0;for(var fe=B.list,ye=0;ye<fe.length;++ye){var Re=ie.appendChild(q.createElement("li")),Le=fe[ye],Ve=m+(ye!=this.selectedHint?"":" "+e);Le.className!=null&&(Ve=Le.className+" "+Ve),Re.className=Ve,ye==this.selectedHint&&Re.setAttribute("aria-selected","true"),Re.id=this.id+"-"+ye,Re.setAttribute("role","option"),Le.render?Le.render(Re,B,Le):Re.appendChild(q.createTextNode(Le.displayText||D(Le))),Re.hintId=ye}var Je=Y.options.container||q.body,me=X.cursorCoords(Y.options.alignWithWord?B.from:null),xr=me.left,Cr=me.bottom,ur=!0,$r=0,ze=0;if(Je!==q.body){var St=["absolute","relative","fixed"].indexOf(te.getComputedStyle(Je).position)!==-1,Lt=St?Je:Je.offsetParent,pr=Lt.getBoundingClientRect(),wt=q.body.getBoundingClientRect();$r=pr.left-wt.left-Lt.scrollLeft,ze=pr.top-wt.top-Lt.scrollTop}ie.style.left=xr-$r+"px",ie.style.top=Cr-ze+"px";var or=te.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),ut=te.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);Je.appendChild(ie),X.getInputField().setAttribute("aria-autocomplete","list"),X.getInputField().setAttribute("aria-owns",this.id),X.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var je=Y.options.moveOnOverlap?ie.getBoundingClientRect():new DOMRect,zr=Y.options.paddingForScrollbar?ie.scrollHeight>ie.clientHeight+1:!1,Ir;setTimeout(function(){Ir=X.getScrollInfo()});var Pr=je.bottom-ut;if(Pr>0){var hr=je.bottom-je.top,Kt=je.top-(me.bottom-me.top)-2;ut-je.top<Kt?(hr>Kt&&(ie.style.height=(hr=Kt)+"px"),ie.style.top=(Cr=me.top-hr)-ze+"px",ur=!1):ie.style.height=ut-je.top-2+"px"}var Fe=je.right-or;if(zr&&(Fe+=X.display.nativeBarWidth),Fe>0&&(je.right-je.left>or&&(ie.style.width=or-5+"px",Fe-=je.right-je.left-or),ie.style.left=(xr=Math.max(me.left-Fe-$r,0))+"px"),zr)for(var pe=ie.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=X.display.nativeBarWidth+"px";if(X.addKeyMap(this.keyMap=Z(Y,{moveFocus:function(we,Ur){V.changeActive(V.selectedHint+we,Ur)},setFocus:function(we){V.changeActive(we)},menuSize:function(){return V.screenAmount()},length:fe.length,close:function(){Y.close()},pick:function(){V.pick()},data:B})),Y.options.closeOnUnfocus){var Er;X.on("blur",this.onBlur=function(){Er=setTimeout(function(){Y.close()},100)}),X.on("focus",this.onFocus=function(){clearTimeout(Er)})}X.on("scroll",this.onScroll=function(){var we=X.getScrollInfo(),Ur=X.getWrapperElement().getBoundingClientRect();Ir||(Ir=X.getScrollInfo());var ei=Cr+Ir.top-we.top,Ae=ei-(te.pageYOffset||(q.documentElement||q.body).scrollTop);if(ur||(Ae+=ie.offsetHeight),Ae<=Ur.top||Ae>=Ur.bottom)return Y.close();ie.style.top=ei+"px",ie.style.left=xr+Ir.left-we.left+"px"}),i.on(ie,"dblclick",function(we){var Ur=H(ie,we.target||we.srcElement);Ur&&Ur.hintId!=null&&(V.changeActive(Ur.hintId),V.pick())}),i.on(ie,"click",function(we){var Ur=H(ie,we.target||we.srcElement);Ur&&Ur.hintId!=null&&(V.changeActive(Ur.hintId),Y.options.completeOnSingleClick&&V.pick())}),i.on(ie,"mousedown",function(){setTimeout(function(){X.focus()},20)});var fr=this.getSelectedHintRange();return(fr.from!==0||fr.to!==0)&&this.scrollToActive(),i.signal(B,"select",fe[this.selectedHint],ie.childNodes[this.selectedHint]),!0}Q.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var Y=this.completion.cm.getInputField();Y.removeAttribute("aria-activedescendant"),Y.removeAttribute("aria-owns");var B=this.completion.cm;this.completion.options.closeOnUnfocus&&(B.off("blur",this.onBlur),B.off("focus",this.onFocus)),B.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var Y=this;this.keyMap={Enter:function(){Y.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(Y,B){if(Y>=this.data.list.length?Y=B?this.data.list.length-1:0:Y<0&&(Y=B?0:this.data.list.length-1),this.selectedHint!=Y){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+e,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=Y],V.className+=" "+e,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var Y=this.getSelectedHintRange(),B=this.hints.childNodes[Y.from],V=this.hints.childNodes[Y.to],X=this.hints.firstChild;B.offsetTop<this.hints.scrollTop?this.hints.scrollTop=B.offsetTop-X.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+X.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var Y=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-Y),to:Math.min(this.data.list.length-1,this.selectedHint+Y)}}};function W(Y,B){if(!Y.somethingSelected())return B;for(var V=[],X=0;X<B.length;X++)B[X].supportsSelection&&V.push(B[X]);return V}function $(Y,B,V,X){if(Y.async)Y(B,X,V);else{var q=Y(B,V);q&&q.then?q.then(X):X(q)}}function M(Y,B){var V=Y.getHelpers(B,"hint"),X;if(V.length){var q=function(te,ie,ae){var fe=W(te,V);function ye(Re){if(Re==fe.length)return ie(null);$(fe[Re],te,ae,function(Le){Le&&Le.list.length>0?ie(Le):ye(Re+1)})}ye(0)};return q.async=!0,q.supportsSelection=!0,q}else return(X=Y.getHelper(Y.getCursor(),"hintWords"))?function(te){return i.hint.fromList(te,{words:X})}:i.hint.anyword?function(te,ie){return i.hint.anyword(te,ie)}:function(){}}i.registerHelper("hint","auto",{resolve:M}),i.registerHelper("hint","fromList",function(Y,B){var V=Y.getCursor(),X=Y.getTokenAt(V),q,te=i.Pos(V.line,X.start),ie=V;X.start<V.ch&&/\w/.test(X.string.charAt(V.ch-X.start-1))?q=X.string.substr(0,V.ch-X.start):(q="",te=V);for(var ae=[],fe=0;fe<B.words.length;fe++){var ye=B.words[fe];ye.slice(0,q.length)==q&&ae.push(ye)}if(ae.length)return{list:ae,from:te,to:ie}}),i.commands.autocomplete=i.showHint;var z={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})});var Wm=br((VI,DI)=>{(function(i){typeof VI=="object"&&typeof DI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(B){var V=B.flags;return V??(B.ignoreCase?"i":"")+(B.global?"g":"")+(B.multiline?"m":"")}function N(B,V){for(var X=e(B),q=X,te=0;te<V.length;te++)q.indexOf(V.charAt(te))==-1&&(q+=V.charAt(te));return X==q?B:new RegExp(B.source,q)}function R(B){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(B.source)}function L(B,V,X){V=N(V,"g");for(var q=X.line,te=X.ch,ie=B.lastLine();q<=ie;q++,te=0){V.lastIndex=te;var ae=B.getLine(q),fe=V.exec(ae);if(fe)return{from:m(q,fe.index),to:m(q,fe.index+fe[0].length),match:fe}}}function O(B,V,X){if(!R(V))return L(B,V,X);V=N(V,"gm");for(var q,te=1,ie=X.line,ae=B.lastLine();ie<=ae;){for(var fe=0;fe<te&&!(ie>ae);fe++){var ye=B.getLine(ie++);q=q==null?ye:q+`
31
- `+ye}te=te*2,V.lastIndex=X.ch;var Re=V.exec(q);if(Re){var Le=q.slice(0,Re.index).split(`
32
- `),Ve=Re[0].split(`
33
- `),Je=X.line+Le.length-1,me=Le[Le.length-1].length;return{from:m(Je,me),to:m(Je+Ve.length-1,Ve.length==1?me+Ve[0].length:Ve[Ve.length-1].length),match:Re}}}}function D(B,V,X){for(var q,te=0;te<=B.length;){V.lastIndex=te;var ie=V.exec(B);if(!ie)break;var ae=ie.index+ie[0].length;if(ae>B.length-X)break;(!q||ae>q.index+q[0].length)&&(q=ie),te=ie.index+1}return q}function Z(B,V,X){V=N(V,"g");for(var q=X.line,te=X.ch,ie=B.firstLine();q>=ie;q--,te=-1){var ae=B.getLine(q),fe=D(ae,V,te<0?0:ae.length-te);if(fe)return{from:m(q,fe.index),to:m(q,fe.index+fe[0].length),match:fe}}}function H(B,V,X){if(!R(V))return Z(B,V,X);V=N(V,"gm");for(var q,te=1,ie=B.getLine(X.line).length-X.ch,ae=X.line,fe=B.firstLine();ae>=fe;){for(var ye=0;ye<te&&ae>=fe;ye++){var Re=B.getLine(ae--);q=q==null?Re:Re+`
34
- `+q}te*=2;var Le=D(q,V,ie);if(Le){var Ve=q.slice(0,Le.index).split(`
35
- `),Je=Le[0].split(`
36
- `),me=ae+Ve.length,xr=Ve[Ve.length-1].length;return{from:m(me,xr),to:m(me+Je.length-1,Je.length==1?xr+Je[0].length:Je[Je.length-1].length),match:Le}}}}var Q,W;String.prototype.normalize?(Q=function(B){return B.normalize("NFD").toLowerCase()},W=function(B){return B.normalize("NFD")}):(Q=function(B){return B.toLowerCase()},W=function(B){return B});function $(B,V,X,q){if(B.length==V.length)return X;for(var te=0,ie=X+Math.max(0,B.length-V.length);;){if(te==ie)return te;var ae=te+ie>>1,fe=q(B.slice(0,ae)).length;if(fe==X)return ae;fe>X?ie=ae:te=ae+1}}function M(B,V,X,q){if(!V.length)return null;var te=q?Q:W,ie=te(V).split(/\r|\n\r?/);e:for(var ae=X.line,fe=X.ch,ye=B.lastLine()+1-ie.length;ae<=ye;ae++,fe=0){var Re=B.getLine(ae).slice(fe),Le=te(Re);if(ie.length==1){var Ve=Le.indexOf(ie[0]);if(Ve==-1)continue e;var X=$(Re,Le,Ve,te)+fe;return{from:m(ae,$(Re,Le,Ve,te)+fe),to:m(ae,$(Re,Le,Ve+ie[0].length,te)+fe)}}else{var Je=Le.length-ie[0].length;if(Le.slice(Je)!=ie[0])continue e;for(var me=1;me<ie.length-1;me++)if(te(B.getLine(ae+me))!=ie[me])continue e;var xr=B.getLine(ae+ie.length-1),Cr=te(xr),ur=ie[ie.length-1];if(Cr.slice(0,ur.length)!=ur)continue e;return{from:m(ae,$(Re,Le,Je,te)+fe),to:m(ae+ie.length-1,$(xr,Cr,ur.length,te))}}}}function z(B,V,X,q){if(!V.length)return null;var te=q?Q:W,ie=te(V).split(/\r|\n\r?/);e:for(var ae=X.line,fe=X.ch,ye=B.firstLine()-1+ie.length;ae>=ye;ae--,fe=-1){var Re=B.getLine(ae);fe>-1&&(Re=Re.slice(0,fe));var Le=te(Re);if(ie.length==1){var Ve=Le.lastIndexOf(ie[0]);if(Ve==-1)continue e;return{from:m(ae,$(Re,Le,Ve,te)),to:m(ae,$(Re,Le,Ve+ie[0].length,te))}}else{var Je=ie[ie.length-1];if(Le.slice(0,Je.length)!=Je)continue e;for(var me=1,X=ae-ie.length+1;me<ie.length-1;me++)if(te(B.getLine(X+me))!=ie[me])continue e;var xr=B.getLine(ae+1-ie.length),Cr=te(xr);if(Cr.slice(Cr.length-ie[0].length)!=ie[0])continue e;return{from:m(ae+1-ie.length,$(xr,Cr,xr.length-ie[0].length,te)),to:m(ae,$(Re,Le,Je.length,te))}}}}function Y(B,V,X,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=B,X=X?B.clipPos(X):m(0,0),this.pos={from:X,to:X};var te;typeof q=="object"?te=q.caseFold:(te=q,q=null),typeof V=="string"?(te==null&&(te=!1),this.matches=function(ie,ae){return(ie?z:M)(B,V,ae,te)}):(V=N(V,"gm"),!q||q.multiline!==!1?this.matches=function(ie,ae){return(ie?H:O)(B,V,ae)}:this.matches=function(ie,ae){return(ie?Z:L)(B,V,ae)})}Y.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(B){var V=this.doc.clipPos(B?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=m(V.line,V.ch),B?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),i.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var X=this.matches(B,V);if(this.afterEmptyMatch=X&&i.cmpPos(X.from,X.to)==0,X)return this.pos=X,this.atOccurrence=!0,this.pos.match||!0;var q=m(B?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(B,V){if(this.atOccurrence){var X=i.splitLines(B);this.doc.replaceRange(X,this.pos.from,this.pos.to,V),this.pos.to=m(this.pos.from.line+X.length-1,X[X.length-1].length+(X.length==1?this.pos.from.ch:0))}}},i.defineExtension("getSearchCursor",function(B,V,X){return new Y(this.doc,B,V,X)}),i.defineDocExtension("getSearchCursor",function(B,V,X){return new Y(this,B,V,X)}),i.defineExtension("selectMatches",function(B,V){for(var X=[],q=this.getSearchCursor(B,this.getCursor("from"),V);q.findNext()&&!(i.cmpPos(q.to(),this.getCursor("to"))>0);)X.push({anchor:q.from(),head:q.to()});X.length&&this.setSelections(X,0)})})});var ZI=br((MI,WI)=>{(function(i){typeof MI=="object"&&typeof WI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("annotateScrollbar",function(e){return typeof e=="string"&&(e={className:e}),new m(this,e)}),i.defineOption("scrollButtonHeight",0);function m(e,N){this.cm=e,this.options=N,this.buttonHeight=N.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function R(O){clearTimeout(L.doRedraw),L.doRedraw=setTimeout(function(){L.redraw()},O)}var L=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(L.doUpdate),L.doUpdate=setTimeout(function(){L.computeScale()&&R(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),N.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){R(250)})}m.prototype.computeScale=function(){var e=this.cm,N=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(N!=this.hScale)return this.hScale=N,!0},m.prototype.update=function(e){this.annotations=e,this.redraw()},m.prototype.redraw=function(e){e!==!1&&this.computeScale();var N=this.cm,R=this.hScale,L=document.createDocumentFragment(),O=this.annotations,D=N.getOption("lineWrapping"),Z=D&&N.defaultTextHeight()*1.5,H=null,Q=null;function W(te,ie){if(H!=te.line){H=te.line,Q=N.getLineHandle(te.line);var ae=N.getLineHandleVisualStart(Q);ae!=Q&&(H=N.getLineNumber(ae),Q=ae)}if(Q.widgets&&Q.widgets.length||D&&Q.height>Z)return N.charCoords(te,"local")[ie?"top":"bottom"];var fe=N.heightAtLine(Q,"local");return fe+(ie?0:Q.height)}var $=N.lastLine();if(N.display.barWidth)for(var M=0,z;M<O.length;M++){var Y=O[M];if(!(Y.to.line>$)){for(var B=z||W(Y.from,!0)*R,V=W(Y.to,!1)*R;M<O.length-1&&!(O[M+1].to.line>$||(z=W(O[M+1].from,!0)*R,z>V+.9));)Y=O[++M],V=W(Y.to,!1)*R;if(V!=B){var X=Math.max(V-B,3),q=L.appendChild(document.createElement("div"));q.style.cssText="position: absolute; right: 0px; width: "+Math.max(N.display.barWidth-1,2)+"px; top: "+(B+this.buttonHeight)+"px; height: "+X+"px",q.className=this.options.className,Y.id&&q.setAttribute("annotation-id",Y.id)}}}this.div.textContent="",this.div.appendChild(L)},m.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}})});var QI=br((PI,kI)=>{(function(i){typeof PI=="object"&&typeof kI=="object"?i(si(),Wm(),ZI()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(R,L,O){return typeof O=="string"&&(O={className:O}),O||(O={}),new m(this,R,L,O)});function m(R,L,O,D){this.cm=R,this.options=D;var Z={listenForChanges:!1};for(var H in D)Z[H]=D[H];Z.className||(Z.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(Z),this.query=L,this.caseFold=O,this.gap={from:R.firstLine(),to:R.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var Q=this;R.on("change",this.changeHandler=function(W,$){Q.onChange($)})}var e=1e3;m.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length;R++){var L=this.matches[R];if(L.from.line>=this.gap.to)break;L.to.line>=this.gap.from&&this.matches.splice(R--,1)}for(var O=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),D=this.options&&this.options.maxMatches||e;O.findNext();){var L={from:O.from(),to:O.to()};if(L.from.line>=this.gap.to||(this.matches.splice(R++,0,L),this.matches.length>D))break}this.gap=null}};function N(R,L,O){return R<=L?R:Math.max(L,R+O)}m.prototype.onChange=function(R){var L=R.from.line,O=i.changeEnd(R).line,D=O-R.to.line;if(this.gap?(this.gap.from=Math.min(N(this.gap.from,L,D),R.from.line),this.gap.to=Math.max(N(this.gap.to,L,D),R.from.line)):this.gap={from:R.from.line,to:O+1},D)for(var Z=0;Z<this.matches.length;Z++){var H=this.matches[Z],Q=N(H.from.line,L,D);Q!=H.from.line&&(H.from=i.Pos(Q,H.from.ch));var W=N(H.to.line,L,D);W!=H.to.line&&(H.to=i.Pos(W,H.to.ch))}clearTimeout(this.update);var $=this;this.update=setTimeout(function(){$.updateAfterChange()},250)},m.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},m.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var XI=br((_I,HI)=>{(function(i){typeof _I=="object"&&typeof HI=="object"?i(si(),QI()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var m={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e($){this.options={};for(var M in m)this.options[M]=($&&$.hasOwnProperty(M)?$:m)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function($,M,z){if(z&&z!=i.Init&&(D($),clearTimeout($.state.matchHighlighter.timeout),$.state.matchHighlighter=null,$.off("cursorActivity",N),$.off("focus",R)),M){var Y=$.state.matchHighlighter=new e(M);$.hasFocus()?(Y.active=!0,Z($)):$.on("focus",R),$.on("cursorActivity",N)}});function N($){var M=$.state.matchHighlighter;(M.active||$.hasFocus())&&L($,M)}function R($){var M=$.state.matchHighlighter;M.active||(M.active=!0,L($,M))}function L($,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){Z($)},M.options.delay)}function O($,M,z,Y){var B=$.state.matchHighlighter;if($.addOverlay(B.overlay=W(M,z,Y)),B.options.annotateScrollbar&&$.showMatchesOnScrollbar){var V=z?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;B.matchesonscroll=$.showMatchesOnScrollbar(V,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function D($){var M=$.state.matchHighlighter;M.overlay&&($.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function Z($){$.operation(function(){var M=$.state.matchHighlighter;if(D($),!$.somethingSelected()&&M.options.showToken){for(var z=M.options.showToken===!0?/[\w$]/:M.options.showToken,Y=$.getCursor(),B=$.getLine(Y.line),V=Y.ch,X=V;V&&z.test(B.charAt(V-1));)--V;for(;X<B.length&&z.test(B.charAt(X));)++X;V<X&&O($,B.slice(V,X),z,M.options.style);return}var q=$.getCursor("from"),te=$.getCursor("to");if(q.line==te.line&&!(M.options.wordsOnly&&!H($,q,te))){var ie=$.getRange(q,te);M.options.trim&&(ie=ie.replace(/^\s+|\s+$/g,"")),ie.length>=M.options.minChars&&O($,ie,!1,M.options.style)}})}function H($,M,z){var Y=$.getRange(M,z);if(Y.match(/^\w+$/)!==null){if(M.ch>0){var B={line:M.line,ch:M.ch-1},V=$.getRange(B,M);if(V.match(/\W/)===null)return!1}if(z.ch<$.getLine(M.line).length){var B={line:z.line,ch:z.ch+1},V=$.getRange(z,B);if(V.match(/\W/)===null)return!1}return!0}else return!1}function Q($,M){return(!$.start||!M.test($.string.charAt($.start-1)))&&($.pos==$.string.length||!M.test($.string.charAt($.pos)))}function W($,M,z){return{token:function(Y){if(Y.match($)&&(!M||Q(Y,M)))return z;Y.next(),Y.skipTo($.charAt(0))||Y.skipToEnd()}}}})});var $I=br((YI,JI)=>{(function(i){typeof YI=="object"&&typeof JI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var m=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,N={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function R(Q){return Q&&Q.bracketRegex||/[(){}[\]]/}function L(Q,W,$){var M=Q.getLineHandle(W.line),z=W.ch-1,Y=$&&$.afterCursor;Y==null&&(Y=/(^| )cm-fat-cursor($| )/.test(Q.getWrapperElement().className));var B=R($),V=!Y&&z>=0&&B.test(M.text.charAt(z))&&N[M.text.charAt(z)]||B.test(M.text.charAt(z+1))&&N[M.text.charAt(++z)];if(!V)return null;var X=V.charAt(1)==">"?1:-1;if($&&$.strict&&X>0!=(z==W.ch))return null;var q=Q.getTokenTypeAt(e(W.line,z+1)),te=O(Q,e(W.line,z+(X>0?1:0)),X,q,$);return te==null?null:{from:e(W.line,z),to:te&&te.pos,match:te&&te.ch==V.charAt(0),forward:X>0}}function O(Q,W,$,M,z){for(var Y=z&&z.maxScanLineLength||1e4,B=z&&z.maxScanLines||1e3,V=[],X=R(z),q=$>0?Math.min(W.line+B,Q.lastLine()+1):Math.max(Q.firstLine()-1,W.line-B),te=W.line;te!=q;te+=$){var ie=Q.getLine(te);if(ie){var ae=$>0?0:ie.length-1,fe=$>0?ie.length:-1;if(!(ie.length>Y))for(te==W.line&&(ae=W.ch-($<0?1:0));ae!=fe;ae+=$){var ye=ie.charAt(ae);if(X.test(ye)&&(M===void 0||(Q.getTokenTypeAt(e(te,ae+1))||"")==(M||""))){var Re=N[ye];if(Re&&Re.charAt(1)==">"==$>0)V.push(ye);else if(V.length)V.pop();else return{pos:e(te,ae),ch:ye}}}}}return te-$==($>0?Q.lastLine():Q.firstLine())?!1:null}function D(Q,W,$){for(var M=Q.state.matchBrackets.maxHighlightLineLength||1e3,z=$&&$.highlightNonMatching,Y=[],B=Q.listSelections(),V=0;V<B.length;V++){var X=B[V].empty()&&L(Q,B[V].head,$);if(X&&(X.match||z!==!1)&&Q.getLine(X.from.line).length<=M){var q=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";Y.push(Q.markText(X.from,e(X.from.line,X.from.ch+1),{className:q})),X.to&&Q.getLine(X.to.line).length<=M&&Y.push(Q.markText(X.to,e(X.to.line,X.to.ch+1),{className:q}))}}if(Y.length){m&&Q.state.focused&&Q.focus();var te=function(){Q.operation(function(){for(var ie=0;ie<Y.length;ie++)Y[ie].clear()})};if(W)setTimeout(te,800);else return te}}function Z(Q){Q.operation(function(){Q.state.matchBrackets.currentlyHighlighted&&(Q.state.matchBrackets.currentlyHighlighted(),Q.state.matchBrackets.currentlyHighlighted=null),Q.state.matchBrackets.currentlyHighlighted=D(Q,!1,Q.state.matchBrackets)})}function H(Q){Q.state.matchBrackets&&Q.state.matchBrackets.currentlyHighlighted&&(Q.state.matchBrackets.currentlyHighlighted(),Q.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(Q,W,$){$&&$!=i.Init&&(Q.off("cursorActivity",Z),Q.off("focus",Z),Q.off("blur",H),H(Q)),W&&(Q.state.matchBrackets=typeof W=="object"?W:{},Q.on("cursorActivity",Z),Q.on("focus",Z),Q.on("blur",H))}),i.defineExtension("matchBrackets",function(){D(this,!0)}),i.defineExtension("findMatchingBracket",function(Q,W,$){return($||typeof W=="boolean")&&($?($.strict=W,W=$):W=W?{strict:!0}:null),L(this,Q,W)}),i.defineExtension("scanForBracket",function(Q,W,$,M){return O(this,Q,W,$,M)})})});var qI=br((zI,jI)=>{(function(i){typeof zI=="object"&&typeof jI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(m,e,N,R){var L=i.getMode(i.defaults,e),O=R&&R.tabSize||i.defaults.tabSize;if(N.appendChild){var D=/MSIE \d/.test(navigator.userAgent),Z=D&&(document.documentMode==null||document.documentMode<9),H=N,Q=0;H.textContent="",N=function(V,X){if(V==`
37
- `){H.appendChild(document.createTextNode(Z?"\r":V)),Q=0;return}for(var q="",te=0;;){var ie=V.indexOf(" ",te);if(ie==-1){q+=V.slice(te),Q+=V.length-te;break}else{Q+=ie-te,q+=V.slice(te,ie);var ae=O-Q%O;Q+=ae;for(var fe=0;fe<ae;++fe)q+=" ";te=ie+1}}if(X){var ye=H.appendChild(document.createElement("span"));ye.className="cm-"+X.replace(/ +/g," cm-"),ye.appendChild(document.createTextNode(q))}else H.appendChild(document.createTextNode(q))}}for(var W=i.splitLines(m),$=R&&R.state||i.startState(L),M=0,z=W.length;M<z;++M){M&&N(`
38
- `);var Y=new i.StringStream(W[M],null,{lookAhead:function(V){return W[M+V]},baseToken:function(){}});for(!Y.string&&L.blankLine&&L.blankLine($);!Y.eol();){var B=L.token(Y,$);N(Y.current(),B,M,Y.start,$,L),Y.start=Y.pos}}}})});var aL={};zm(aL,{Yasqe:()=>zf,default:()=>oL});var hh=Xt(si());function qm(i,m,e){return e||(e=i.getDoc().getCursor()),m||(m=i.getTokenAt(e)),ev(i,Km(i,m,e),e)}function Km(i,m,e){var N=i.getTokenAt({line:e.line,ch:m.start});return(m.type==="punc"||m.type==="error")&&!m.state.possibleFullIri&&!m.state.inPrefixDecl?(m.state.possibleCurrent=m.state.possibleNext,m):N.type==="punc"&&!N.state.possibleFullIri&&!N.state.inPrefixDecl?m:N.type!=null&&N.type!="ws"&&m.type!=null&&m.type!="ws"?(m.start=N.start,m.string=N.string+m.string,Km(i,m,{line:e.line,ch:N.start})):(m.type!=null&&m.type=="ws"&&(m.start=m.start+1,m.string=m.string.substring(1)),m)}function ev(i,m,e){if(m.string.indexOf(" ")>=0){let R=m.string.indexOf(" ");return m.string=m.string.substr(0,R),m.end=m.start+m.string.length,m}if(!m.type)return m;var N=i.getTokenAt({line:e.line,ch:m.end+1});return N.type!=="ws"&&m.state.possibleFullIri&&m.type!==null&&m.type!=="ws"&&N.end!==m.end?(m.end=N.end,m.string=m.string+N.string,ev(i,m,{line:e.line,ch:N.end})):(m.type==="ws"&&(m.end=m.end+1,m.string=m.string.substring(m.string.length-1)),m)}function $E(i,m,e){var N=i.getTokenAt({line:m,ch:e.start});return N!=null&&N.type=="ws"&&(N=$E(i,m,N)),N}function Sf(i,m,e){e==null&&(e=1);var N=i.getTokenAt({line:m,ch:e});if(!(N==null||N==null||N.end<e))return N.type=="ws"?Sf(i,m,N.end+1):N}var Vh="PREFIX ";function rv(i){for(var m=i.getDoc().lastLine(),e=0;e<=m;++e){let N=tv(i,e);if(N!=null&&N>=0)return e}}function tv(i,m,e=0,N){if(N||(N=i.getDoc().getLine(m)),!N)return;N=N.toUpperCase();let R=N.indexOf(Vh,e);if(R>=0&&i.getTokenTypeAt(hh.default.Pos(m,R+1))==="keyword")return R}function iv(i,m){var e=m.line,N=i.getDoc().getLine(e);function R(){for(var V=!1,X=e-1;X>=0;X--)if(i.getDoc().getLine(X).toUpperCase().indexOf(Vh)>=0){V=!0;break}return V}var L=function(V,X){var q=i.getTokenAt(hh.default.Pos(V,X+1));if(!q||q.type!="keyword")return-1;var te=Sf(i,V,q.end+1);if(!te||te.type!="string-2")return-1;var ie=Sf(i,V,te.end+1);return!ie||ie.type!="variable-3"?-1:ie.end};if(!R()){var O=tv(i,e,m.ch,N);if(O!=null){for(var D="{",Z=!1,H=i.getDoc().lastLine(),Q,W=L(e,O),$=e,M=e;M<=H&&!Z;++M)for(var z=i.getDoc().getLine(M),Y=M==e?O+1:0;;){!Z&&z.indexOf(D)>=0&&(Z=!0);var B=z.toUpperCase().indexOf(Vh,Y);if(B>=0)(Q=L(M,B))>0&&(W=Q,$=M,Y=W),Y++;else break}return{from:hh.default.Pos(e,O+Vh.length),to:hh.default.Pos($,W)}}}}function nv(i,m){var e=i.getPrefixesFromQuery();if(typeof m=="string")sv(i,m);else for(var N in m)N in e||sv(i,N+": <"+m[N]+">");i.collapsePrefixes(!1)}function sv(i,m){i.getDoc().replaceRange("PREFIX "+m+`
39
- `,{line:0,ch:0}),i.collapsePrefixes(!1)}function ov(i,m){var e=function(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var N in m)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+N+":\\s*"+e("<"+m[N]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function av(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:Ev,setPrototypeOf:lv,isFrozen:EA,getPrototypeOf:mA,getOwnPropertyDescriptor:vA}=Object,{freeze:pi,seal:xs,create:tm}=Object,{apply:im,construct:sm}=typeof Reflect<"u"&&Reflect;pi||(pi=function(m){return m});xs||(xs=function(m){return m});im||(im=function(m,e){for(var N=arguments.length,R=new Array(N>2?N-2:0),L=2;L<N;L++)R[L-2]=arguments[L];return m.apply(e,R)});sm||(sm=function(m){for(var e=arguments.length,N=new Array(e>1?e-1:0),R=1;R<e;R++)N[R-1]=arguments[R];return new m(...N)});var Dh=hi(Array.prototype.forEach),xA=hi(Array.prototype.lastIndexOf),uv=hi(Array.prototype.pop),dh=hi(Array.prototype.push),CA=hi(Array.prototype.splice),Wh=hi(String.prototype.toLowerCase),zE=hi(String.prototype.toString),jE=hi(String.prototype.match),gh=hi(String.prototype.replace),IA=hi(String.prototype.indexOf),AA=hi(String.prototype.trim),js=hi(Object.prototype.hasOwnProperty),ci=hi(RegExp.prototype.test),Eh=NA(TypeError);function hi(i){return function(m){m instanceof RegExp&&(m.lastIndex=0);for(var e=arguments.length,N=new Array(e>1?e-1:0),R=1;R<e;R++)N[R-1]=arguments[R];return im(i,m,N)}}function NA(i){return function(){for(var m=arguments.length,e=new Array(m),N=0;N<m;N++)e[N]=arguments[N];return sm(i,e)}}function sr(i,m){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wh;lv&&lv(i,null);let N=m.length;for(;N--;){let R=m[N];if(typeof R=="string"){let L=e(R);L!==R&&(EA(m)||(m[N]=L),R=L)}i[R]=!0}return i}function bA(i){for(let m=0;m<i.length;m++)js(i,m)||(i[m]=null);return i}function Mn(i){let m=tm(null);for(let[e,N]of Ev(i))js(i,e)&&(Array.isArray(N)?m[e]=bA(N):N&&typeof N=="object"&&N.constructor===Object?m[e]=Mn(N):m[e]=N);return m}function mh(i,m){for(;i!==null;){let N=vA(i,m);if(N){if(N.get)return hi(N.get);if(typeof N.value=="function")return hi(N.value)}i=mA(i)}function e(){return null}return e}var fv=pi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qE=pi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),KE=pi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),TA=pi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),em=pi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),RA=pi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cv=pi(["#text"]),pv=pi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),rm=pi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hv=pi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mh=pi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yA=xs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SA=xs(/<%[\w\W]*|[\w\W]*%>/gm),LA=xs(/\$\{[\w\W]*/gm),wA=xs(/^data-[\-\w.\u00B7-\uFFFF]+$/),OA=xs(/^aria-[\-\w]+$/),mv=xs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),UA=xs(/^(?:\w+script|data):/i),FA=xs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vv=xs(/^html$/i),GA=xs(/^[a-z][.\w]*(-[.\w]+)+$/i),dv=Object.freeze({__proto__:null,ARIA_ATTR:OA,ATTR_WHITESPACE:FA,CUSTOM_ELEMENT:GA,DATA_ATTR:wA,DOCTYPE_NAME:vv,ERB_EXPR:SA,IS_ALLOWED_URI:mv,IS_SCRIPT_OR_DATA:UA,MUSTACHE_EXPR:yA,TMPLIT_EXPR:LA}),vh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},BA=function(){return typeof window>"u"?null:window},VA=function(m,e){if(typeof m!="object"||typeof m.createPolicy!="function")return null;let N=null,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(N=e.getAttribute(R));let L="dompurify"+(N?"#"+N:"");try{return m.createPolicy(L,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}},gv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xv(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BA(),m=We=>xv(We);if(m.version="3.3.1",m.removed=[],!i||!i.document||i.document.nodeType!==vh.document||!i.Element)return m.isSupported=!1,m;let{document:e}=i,N=e,R=N.currentScript,{DocumentFragment:L,HTMLTemplateElement:O,Node:D,Element:Z,NodeFilter:H,NamedNodeMap:Q=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:W,DOMParser:$,trustedTypes:M}=i,z=Z.prototype,Y=mh(z,"cloneNode"),B=mh(z,"remove"),V=mh(z,"nextSibling"),X=mh(z,"childNodes"),q=mh(z,"parentNode");if(typeof O=="function"){let We=e.createElement("template");We.content&&We.content.ownerDocument&&(e=We.content.ownerDocument)}let te,ie="",{implementation:ae,createNodeIterator:fe,createDocumentFragment:ye,getElementsByTagName:Re}=e,{importNode:Le}=N,Ve=gv();m.isSupported=typeof Ev=="function"&&typeof q=="function"&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Je,ERB_EXPR:me,TMPLIT_EXPR:xr,DATA_ATTR:Cr,ARIA_ATTR:ur,IS_SCRIPT_OR_DATA:$r,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:St}=dv,{IS_ALLOWED_URI:Lt}=dv,pr=null,wt=sr({},[...fv,...qE,...KE,...em,...cv]),or=null,ut=sr({},[...pv,...rm,...hv,...Mh]),je=Object.seal(tm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),zr=null,Ir=null,Pr=Object.seal(tm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),hr=!0,Kt=!0,Fe=!1,pe=!0,Er=!1,fr=!0,we=!1,Ur=!1,ei=!1,Ae=!1,Ot=!1,ft=!1,Nt=!0,rs=!1,Me="user-content-",ct=!0,Oe=!1,rr={},at=null,pt=sr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Nr=null,ri=sr({},["audio","video","img","source","image","track"]),Fi=null,ti=sr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",ii="http://www.w3.org/2000/svg",Tr="http://www.w3.org/1999/xhtml",Ut=Tr,Ge=!1,ni=null,kr=sr({},[bt,ii,Tr],zE),ar=sr({},["mi","mo","mn","ms","mtext"]),dr=sr({},["annotation-xml"]),ts=sr({},["title","style","font","a","script"]),tr=null,is=["application/xhtml+xml","text/html"],ht="text/html",Dr=null,mi=null,bs=e.createElement("form"),rn=function(K){return K instanceof RegExp||K instanceof Function},tn=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(mi&&mi===K)){if((!K||typeof K!="object")&&(K={}),K=Mn(K),tr=is.indexOf(K.PARSER_MEDIA_TYPE)===-1?ht:K.PARSER_MEDIA_TYPE,Dr=tr==="application/xhtml+xml"?zE:Wh,pr=js(K,"ALLOWED_TAGS")?sr({},K.ALLOWED_TAGS,Dr):wt,or=js(K,"ALLOWED_ATTR")?sr({},K.ALLOWED_ATTR,Dr):ut,ni=js(K,"ALLOWED_NAMESPACES")?sr({},K.ALLOWED_NAMESPACES,zE):kr,Fi=js(K,"ADD_URI_SAFE_ATTR")?sr(Mn(ti),K.ADD_URI_SAFE_ATTR,Dr):ti,Nr=js(K,"ADD_DATA_URI_TAGS")?sr(Mn(ri),K.ADD_DATA_URI_TAGS,Dr):ri,at=js(K,"FORBID_CONTENTS")?sr({},K.FORBID_CONTENTS,Dr):pt,zr=js(K,"FORBID_TAGS")?sr({},K.FORBID_TAGS,Dr):Mn({}),Ir=js(K,"FORBID_ATTR")?sr({},K.FORBID_ATTR,Dr):Mn({}),rr=js(K,"USE_PROFILES")?K.USE_PROFILES:!1,hr=K.ALLOW_ARIA_ATTR!==!1,Kt=K.ALLOW_DATA_ATTR!==!1,Fe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Er=K.SAFE_FOR_TEMPLATES||!1,fr=K.SAFE_FOR_XML!==!1,we=K.WHOLE_DOCUMENT||!1,Ae=K.RETURN_DOM||!1,Ot=K.RETURN_DOM_FRAGMENT||!1,ft=K.RETURN_TRUSTED_TYPE||!1,ei=K.FORCE_BODY||!1,Nt=K.SANITIZE_DOM!==!1,rs=K.SANITIZE_NAMED_PROPS||!1,ct=K.KEEP_CONTENT!==!1,Oe=K.IN_PLACE||!1,Lt=K.ALLOWED_URI_REGEXP||mv,Ut=K.NAMESPACE||Tr,ar=K.MATHML_TEXT_INTEGRATION_POINTS||ar,dr=K.HTML_INTEGRATION_POINTS||dr,je=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&rn(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&rn(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(je.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Er&&(Kt=!1),Ot&&(Ae=!0),rr&&(pr=sr({},cv),or=[],rr.html===!0&&(sr(pr,fv),sr(or,pv)),rr.svg===!0&&(sr(pr,qE),sr(or,rm),sr(or,Mh)),rr.svgFilters===!0&&(sr(pr,KE),sr(or,rm),sr(or,Mh)),rr.mathMl===!0&&(sr(pr,em),sr(or,hv),sr(or,Mh))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?Pr.tagCheck=K.ADD_TAGS:(pr===wt&&(pr=Mn(pr)),sr(pr,K.ADD_TAGS,Dr))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?Pr.attributeCheck=K.ADD_ATTR:(or===ut&&(or=Mn(or)),sr(or,K.ADD_ATTR,Dr))),K.ADD_URI_SAFE_ATTR&&sr(Fi,K.ADD_URI_SAFE_ATTR,Dr),K.FORBID_CONTENTS&&(at===pt&&(at=Mn(at)),sr(at,K.FORBID_CONTENTS,Dr)),K.ADD_FORBID_CONTENTS&&(at===pt&&(at=Mn(at)),sr(at,K.ADD_FORBID_CONTENTS,Dr)),ct&&(pr["#text"]=!0),we&&sr(pr,["html","head","body"]),pr.table&&(sr(pr,["tbody"]),delete zr.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw Eh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Eh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=K.TRUSTED_TYPES_POLICY,ie=te.createHTML("")}else te===void 0&&(te=VA(M,R)),te!==null&&typeof ie=="string"&&(ie=te.createHTML(""));pi&&pi(K),mi=K}},Bo=sr({},[...qE,...KE,...TA]),sn=sr({},[...em,...RA]),ya=function(K){let Ee=q(K);(!Ee||!Ee.tagName)&&(Ee={namespaceURI:Ut,tagName:"template"});let Se=Wh(K.tagName),mr=Wh(Ee.tagName);return ni[K.namespaceURI]?K.namespaceURI===ii?Ee.namespaceURI===Tr?Se==="svg":Ee.namespaceURI===bt?Se==="svg"&&(mr==="annotation-xml"||ar[mr]):!!Bo[Se]:K.namespaceURI===bt?Ee.namespaceURI===Tr?Se==="math":Ee.namespaceURI===ii?Se==="math"&&dr[mr]:!!sn[Se]:K.namespaceURI===Tr?Ee.namespaceURI===ii&&!dr[mr]||Ee.namespaceURI===bt&&!ar[mr]?!1:!sn[Se]&&(ts[Se]||!Bo[Se]):!!(tr==="application/xhtml+xml"&&ni[K.namespaceURI]):!1},Zt=function(K){dh(m.removed,{element:K});try{q(K).removeChild(K)}catch{B(K)}},Gi=function(K,Ee){try{dh(m.removed,{attribute:Ee.getAttributeNode(K),from:Ee})}catch{dh(m.removed,{attribute:null,from:Ee})}if(Ee.removeAttribute(K),K==="is")if(Ae||Ot)try{Zt(Ee)}catch{}else try{Ee.setAttribute(K,"")}catch{}},nn=function(K){let Ee=null,Se=null;if(ei)K="<remove></remove>"+K;else{let qe=jE(K,/^[\r\n\t ]+/);Se=qe&&qe[0]}tr==="application/xhtml+xml"&&Ut===Tr&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");let mr=te?te.createHTML(K):K;if(Ut===Tr)try{Ee=new $().parseFromString(mr,tr)}catch{}if(!Ee||!Ee.documentElement){Ee=ae.createDocument(Ut,"template",null);try{Ee.documentElement.innerHTML=Ge?ie:mr}catch{}}let et=Ee.body||Ee.documentElement;return K&&Se&&et.insertBefore(e.createTextNode(Se),et.childNodes[0]||null),Ut===Tr?Re.call(Ee,we?"html":"body")[0]:we?Ee.documentElement:et},Vo=function(K){return fe.call(K.ownerDocument||K,K,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},kn=function(K){return K instanceof W&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof Q)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},on=function(K){return typeof D=="function"&&K instanceof D};function oi(We,K,Ee){Dh(We,Se=>{Se.call(m,K,Ee,mi)})}let an=function(K){let Ee=null;if(oi(Ve.beforeSanitizeElements,K,null),kn(K))return Zt(K),!0;let Se=Dr(K.nodeName);if(oi(Ve.uponSanitizeElement,K,{tagName:Se,allowedTags:pr}),fr&&K.hasChildNodes()&&!on(K.firstElementChild)&&ci(/<[/\w!]/g,K.innerHTML)&&ci(/<[/\w!]/g,K.textContent)||K.nodeType===vh.progressingInstruction||fr&&K.nodeType===vh.comment&&ci(/<[/\w]/g,K.data))return Zt(K),!0;if(!(Pr.tagCheck instanceof Function&&Pr.tagCheck(Se))&&(!pr[Se]||zr[Se])){if(!zr[Se]&&Do(Se)&&(je.tagNameCheck instanceof RegExp&&ci(je.tagNameCheck,Se)||je.tagNameCheck instanceof Function&&je.tagNameCheck(Se)))return!1;if(ct&&!at[Se]){let mr=q(K)||K.parentNode,et=X(K)||K.childNodes;if(et&&mr){let qe=et.length;for(let Ie=qe-1;Ie>=0;--Ie){let dt=Y(et[Ie],!0);dt.__removalCount=(K.__removalCount||0)+1,mr.insertBefore(dt,V(K))}}}return Zt(K),!0}return K instanceof Z&&!ya(K)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&ci(/<\/no(script|embed|frames)/i,K.innerHTML)?(Zt(K),!0):(Er&&K.nodeType===vh.text&&(Ee=K.textContent,Dh([Je,me,xr],mr=>{Ee=gh(Ee,mr," ")}),K.textContent!==Ee&&(dh(m.removed,{element:K.cloneNode()}),K.textContent=Ee)),oi(Ve.afterSanitizeElements,K,null),!1)},Bi=function(K,Ee,Se){if(Nt&&(Ee==="id"||Ee==="name")&&(Se in e||Se in bs))return!1;if(!(Kt&&!Ir[Ee]&&ci(Cr,Ee))){if(!(hr&&ci(ur,Ee))){if(!(Pr.attributeCheck instanceof Function&&Pr.attributeCheck(Ee,K))){if(!or[Ee]||Ir[Ee]){if(!(Do(K)&&(je.tagNameCheck instanceof RegExp&&ci(je.tagNameCheck,K)||je.tagNameCheck instanceof Function&&je.tagNameCheck(K))&&(je.attributeNameCheck instanceof RegExp&&ci(je.attributeNameCheck,Ee)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(Ee,K))||Ee==="is"&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&ci(je.tagNameCheck,Se)||je.tagNameCheck instanceof Function&&je.tagNameCheck(Se))))return!1}else if(!Fi[Ee]){if(!ci(Lt,gh(Se,ze,""))){if(!((Ee==="src"||Ee==="xlink:href"||Ee==="href")&&K!=="script"&&IA(Se,"data:")===0&&Nr[K])){if(!(Fe&&!ci($r,gh(Se,ze,"")))){if(Se)return!1}}}}}}}return!0},Do=function(K){return K!=="annotation-xml"&&jE(K,St)},Mo=function(K){oi(Ve.beforeSanitizeAttributes,K,null);let{attributes:Ee}=K;if(!Ee||kn(K))return;let Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:or,forceKeepAttr:void 0},mr=Ee.length;for(;mr--;){let et=Ee[mr],{name:qe,namespaceURI:Ie,value:dt}=et,vi=Dr(qe),Pt=dt,_e=qe==="value"?Pt:AA(Pt);if(Se.attrName=vi,Se.attrValue=_e,Se.keepAttr=!0,Se.forceKeepAttr=void 0,oi(Ve.uponSanitizeAttribute,K,Se),_e=Se.attrValue,rs&&(vi==="id"||vi==="name")&&(Gi(qe,K),_e=Me+_e),fr&&ci(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){Gi(qe,K);continue}if(vi==="attributename"&&jE(_e,"href")){Gi(qe,K);continue}if(Se.forceKeepAttr)continue;if(!Se.keepAttr){Gi(qe,K);continue}if(!pe&&ci(/\/>/i,_e)){Gi(qe,K);continue}Er&&Dh([Je,me,xr],ss=>{_e=gh(_e,ss," ")});let xi=Dr(K.nodeName);if(!Bi(xi,vi,_e)){Gi(qe,K);continue}if(te&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!Ie)switch(M.getAttributeType(xi,vi)){case"TrustedHTML":{_e=te.createHTML(_e);break}case"TrustedScriptURL":{_e=te.createScriptURL(_e);break}}if(_e!==Pt)try{Ie?K.setAttributeNS(Ie,qe,_e):K.setAttribute(qe,_e),kn(K)?Zt(K):uv(m.removed)}catch{Gi(qe,K)}}oi(Ve.afterSanitizeAttributes,K,null)},ln=function We(K){let Ee=null,Se=Vo(K);for(oi(Ve.beforeSanitizeShadowDOM,K,null);Ee=Se.nextNode();)oi(Ve.uponSanitizeShadowNode,Ee,null),an(Ee),Mo(Ee),Ee.content instanceof L&&We(Ee.content);oi(Ve.afterSanitizeShadowDOM,K,null)};return m.sanitize=function(We){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=null,Se=null,mr=null,et=null;if(Ge=!We,Ge&&(We="<!-->"),typeof We!="string"&&!on(We))if(typeof We.toString=="function"){if(We=We.toString(),typeof We!="string")throw Eh("dirty is not a string, aborting")}else throw Eh("toString is not a function");if(!m.isSupported)return We;if(Ur||tn(K),m.removed=[],typeof We=="string"&&(Oe=!1),Oe){if(We.nodeName){let dt=Dr(We.nodeName);if(!pr[dt]||zr[dt])throw Eh("root node is forbidden and cannot be sanitized in-place")}}else if(We instanceof D)Ee=nn("<!---->"),Se=Ee.ownerDocument.importNode(We,!0),Se.nodeType===vh.element&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?Ee=Se:Ee.appendChild(Se);else{if(!Ae&&!Er&&!we&&We.indexOf("<")===-1)return te&&ft?te.createHTML(We):We;if(Ee=nn(We),!Ee)return Ae?null:ft?ie:""}Ee&&ei&&Zt(Ee.firstChild);let qe=Vo(Oe?We:Ee);for(;mr=qe.nextNode();)an(mr),Mo(mr),mr.content instanceof L&&ln(mr.content);if(Oe)return We;if(Ae){if(Ot)for(et=ye.call(Ee.ownerDocument);Ee.firstChild;)et.appendChild(Ee.firstChild);else et=Ee;return(or.shadowroot||or.shadowrootmode)&&(et=Le.call(N,et,!0)),et}let Ie=we?Ee.outerHTML:Ee.innerHTML;return we&&pr["!doctype"]&&Ee.ownerDocument&&Ee.ownerDocument.doctype&&Ee.ownerDocument.doctype.name&&ci(vv,Ee.ownerDocument.doctype.name)&&(Ie="<!DOCTYPE "+Ee.ownerDocument.doctype.name+`>
40
- `+Ie),Er&&Dh([Je,me,xr],dt=>{Ie=gh(Ie,dt," ")}),te&&ft?te.createHTML(Ie):Ie},m.setConfig=function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tn(We),Ur=!0},m.clearConfig=function(){mi=null,Ur=!1},m.isValidAttribute=function(We,K,Ee){mi||tn({});let Se=Dr(We),mr=Dr(K);return Bi(Se,mr,Ee)},m.addHook=function(We,K){typeof K=="function"&&dh(Ve[We],K)},m.removeHook=function(We,K){if(K!==void 0){let Ee=xA(Ve[We],K);return Ee===-1?void 0:CA(Ve[We],Ee,1)[0]}return uv(Ve[We])},m.removeHooks=function(We){Ve[We]=[]},m.removeAllHooks=function(){Ve=gv()},m}var Cv=xv();var qs=Xt(jv()),_l=class{constructor(m){this.namespace=m}set(m,e,N,R){if(qs.default.enabled&&(this.removeExpiredKeys(),m&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{qs.default.set(m,{namespace:this.namespace,val:e,exp:N,time:new Date().getTime()/1e3})}catch(L){if(L instanceof Error){let O=L;if(O.quotaExceeded=ZN(L),O.quotaExceeded&&R)R(L);else throw O}throw L}}}remove(m){qs.default.enabled&&m&&qs.default.remove(m)}removeExpiredKeys(){qs.default.enabled&&qs.default.each((m,e)=>{m&&m.exp&&new Date().getTime()/1e3-m.time>m.exp&&this.remove(e)})}removeAll(){qs.default.enabled}removeNamespace(){qs.default.each((m,e)=>{m.namespace&&m.namespace===this.namespace&&this.remove(e)})}get(m){if(qs.default.enabled&&m)if(this.removeExpiredKeys(),m){var e=qs.default.get(m);return e?e.val:void 0}else return}};function ZN(i){var m=!1;if(i)if(i.code)switch(i.code){case 22:m=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(m=!0);break}else i.number===-2147024882&&(m=!0);return m}var{sanitize:LL}=Cv;function Cs(i){if(i&&i.trim().indexOf("<svg")==0){var m=new DOMParser,e=m.parseFromString(i,"text/xml"),N=e.documentElement;N.setAttribute("aria-hidden","true");var R=document.createElement("div");return R.className="svgImg",R.appendChild(N),R}throw new Error("No svg string given. Cannot draw")}function qv(i,m){if(i)return i.classList?i.classList.contains(m):!!i.className.match(new RegExp("(\\s|^)"+m+"(\\s|$)"))}function Ar(i,...m){if(i)for(let e of m)i.classList?i.classList.add(e):qv(i,e)||(i.className+=" "+e)}function Nh(i,m){if(i){if(i.classList)i.classList.remove(m);else if(qv(i,m)){var e=new RegExp("(\\s|^)"+m+"(\\s|$)");i.className=i.className.replace(e," ")}}}var bd=Xt(Zh());function bh(i,m,e){var N;m.onmouseover=function(){N||(N=document.createElement("div"),N.className="yasqe_tooltip"),N.style.display="block",N.innerHTML=e,m.appendChild(N)},m.onmouseout=function(){N&&(N.style.display="none"),N.innerHTML=e}}var Um={};zm(Um,{base64EncodeUnicode:()=>HC,executeQuery:()=>Rm,getAcceptHeader:()=>YC,getAjaxConfig:()=>zl,getAsCurlString:()=>Lm,getAsPowerShellString:()=>wm,getAsWgetString:()=>Om,getUrlArguments:()=>XC,hasAuthenticationCredentials:()=>Sm});var zN=typeof global=="object"&&global&&global.Object===Object&&global,Ph=zN;var jN=typeof self=="object"&&self&&self.Object===Object&&self,qN=Ph||jN||Function("return this")(),yt=qN;var KN=yt.Symbol,di=KN;var m0=Object.prototype,eb=m0.hasOwnProperty,rb=m0.toString,Th=di?di.toStringTag:void 0;function tb(i){var m=eb.call(i,Th),e=i[Th];try{i[Th]=void 0;var N=!0}catch{}var R=rb.call(i);return N&&(m?i[Th]=e:delete i[Th]),R}var v0=tb;var ib=Object.prototype,sb=ib.toString;function nb(i){return sb.call(i)}var x0=nb;var ob="[object Null]",ab="[object Undefined]",C0=di?di.toStringTag:void 0;function lb(i){return i==null?i===void 0?ab:ob:C0&&C0 in Object(i)?v0(i):x0(i)}var Ki=lb;function ub(i){return i!=null&&typeof i=="object"}var gi=ub;var fb="[object Symbol]";function cb(i){return typeof i=="symbol"||gi(i)&&Ki(i)==fb}var Ks=cb;function pb(i,m){for(var e=-1,N=i==null?0:i.length,R=Array(N);++e<N;)R[e]=m(i[e],e,i);return R}var Uf=pb;var hb=Array.isArray,qr=hb;var db=1/0,I0=di?di.prototype:void 0,A0=I0?I0.toString:void 0;function N0(i){if(typeof i=="string")return i;if(qr(i))return Uf(i,N0)+"";if(Ks(i))return A0?A0.call(i):"";var m=i+"";return m=="0"&&1/i==-db?"-0":m}var b0=N0;var gb=/\s/;function Eb(i){for(var m=i.length;m--&&gb.test(i.charAt(m)););return m}var T0=Eb;var mb=/^\s+/;function vb(i){return i&&i.slice(0,T0(i)+1).replace(mb,"")}var R0=vb;function xb(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}var Wt=xb;var y0=NaN,Cb=/^[-+]0x[0-9a-f]+$/i,Ib=/^0b[01]+$/i,Ab=/^0o[0-7]+$/i,Nb=parseInt;function bb(i){if(typeof i=="number")return i;if(Ks(i))return y0;if(Wt(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=Wt(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=R0(i);var e=Ib.test(i);return e||Ab.test(i)?Nb(i.slice(2),e?2:8):Cb.test(i)?y0:+i}var S0=bb;var L0=1/0,Tb=17976931348623157e292;function Rb(i){if(!i)return i===0?i:0;if(i=S0(i),i===L0||i===-L0){var m=i<0?-1:1;return m*Tb}return i===i?i:0}var w0=Rb;function yb(i){var m=w0(i),e=m%1;return m===m?e?m-e:m:0}var O0=yb;function Sb(i){return i}var va=Sb;var Lb="[object AsyncFunction]",wb="[object Function]",Ob="[object GeneratorFunction]",Ub="[object Proxy]";function Fb(i){if(!Wt(i))return!1;var m=Ki(i);return m==wb||m==Ob||m==Lb||m==Ub}var Kr=Fb;var Gb=yt["__core-js_shared__"],kh=Gb;var U0=function(){var i=/[^.]+$/.exec(kh&&kh.keys&&kh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Bb(i){return!!U0&&U0 in i}var F0=Bb;var Vb=Function.prototype,Db=Vb.toString;function Mb(i){if(i!=null){try{return Db.call(i)}catch{}try{return i+""}catch{}}return""}var Lo=Mb;var Wb=/[\\^$.*+?()[\]{}|]/g,Zb=/^\[object .+?Constructor\]$/,Pb=Function.prototype,kb=Object.prototype,Qb=Pb.toString,_b=kb.hasOwnProperty,Hb=RegExp("^"+Qb.call(_b).replace(Wb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xb(i){if(!Wt(i)||F0(i))return!1;var m=Kr(i)?Hb:Zb;return m.test(Lo(i))}var G0=Xb;function Yb(i,m){return i?.[m]}var B0=Yb;function Jb(i,m){var e=B0(i,m);return G0(e)?e:void 0}var Oi=Jb;var $b=Oi(yt,"WeakMap"),Qh=$b;var V0=Object.create,zb=function(){function i(){}return function(m){if(!Wt(m))return{};if(V0)return V0(m);i.prototype=m;var e=new i;return i.prototype=void 0,e}}(),D0=zb;function jb(i,m,e){switch(e.length){case 0:return i.call(m);case 1:return i.call(m,e[0]);case 2:return i.call(m,e[0],e[1]);case 3:return i.call(m,e[0],e[1],e[2])}return i.apply(m,e)}var M0=jb;function qb(i,m){var e=-1,N=i.length;for(m||(m=Array(N));++e<N;)m[e]=i[e];return m}var W0=qb;var Kb=800,eT=16,rT=Date.now;function tT(i){var m=0,e=0;return function(){var N=rT(),R=eT-(N-e);if(e=N,R>0){if(++m>=Kb)return arguments[0]}else m=0;return i.apply(void 0,arguments)}}var Z0=tT;function iT(i){return function(){return i}}var P0=iT;var sT=function(){try{var i=Oi(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Ff=sT;var nT=Ff?function(i,m){return Ff(i,"toString",{configurable:!0,enumerable:!1,value:P0(m),writable:!0})}:va,k0=nT;var oT=Z0(k0),Q0=oT;var aT=9007199254740991,lT=/^(?:0|[1-9]\d*)$/;function uT(i,m){var e=typeof i;return m=m??aT,!!m&&(e=="number"||e!="symbol"&&lT.test(i))&&i>-1&&i%1==0&&i<m}var Gf=uT;function fT(i,m,e){m=="__proto__"&&Ff?Ff(i,m,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[m]=e}var Bf=fT;function cT(i,m){return i===m||i!==i&&m!==m}var Wn=cT;var pT=Object.prototype,hT=pT.hasOwnProperty;function dT(i,m,e){var N=i[m];(!(hT.call(i,m)&&Wn(N,e))||e===void 0&&!(m in i))&&Bf(i,m,e)}var _0=dT;function gT(i,m,e,N){var R=!e;e||(e={});for(var L=-1,O=m.length;++L<O;){var D=m[L],Z=N?N(e[D],i[D],D,e,i):void 0;Z===void 0&&(Z=i[D]),R?Bf(e,D,Z):_0(e,D,Z)}return e}var H0=gT;var X0=Math.max;function ET(i,m,e){return m=X0(m===void 0?i.length-1:m,0),function(){for(var N=arguments,R=-1,L=X0(N.length-m,0),O=Array(L);++R<L;)O[R]=N[m+R];R=-1;for(var D=Array(m+1);++R<m;)D[R]=N[R];return D[m]=e(O),M0(i,this,D)}}var Y0=ET;function mT(i,m){return Q0(Y0(i,m,va),i+"")}var _h=mT;var vT=9007199254740991;function xT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=vT}var Vf=xT;function CT(i){return i!=null&&Vf(i.length)&&!Kr(i)}var Is=CT;function IT(i,m,e){if(!Wt(e))return!1;var N=typeof m;return(N=="number"?Is(e)&&Gf(m,e.length):N=="string"&&m in e)?Wn(e[m],i):!1}var Rh=IT;function AT(i){return _h(function(m,e){var N=-1,R=e.length,L=R>1?e[R-1]:void 0,O=R>2?e[2]:void 0;for(L=i.length>3&&typeof L=="function"?(R--,L):void 0,O&&Rh(e[0],e[1],O)&&(L=R<3?void 0:L,R=1),m=Object(m);++N<R;){var D=e[N];D&&i(m,D,N,L)}return m})}var Hh=AT;var NT=Object.prototype;function bT(i){var m=i&&i.constructor,e=typeof m=="function"&&m.prototype||NT;return i===e}var Df=bT;function TT(i,m){for(var e=-1,N=Array(i);++e<i;)N[e]=m(e);return N}var J0=TT;var RT="[object Arguments]";function yT(i){return gi(i)&&Ki(i)==RT}var gm=yT;var $0=Object.prototype,ST=$0.hasOwnProperty,LT=$0.propertyIsEnumerable,wT=gm(function(){return arguments}())?gm:function(i){return gi(i)&&ST.call(i,"callee")&&!LT.call(i,"callee")},wo=wT;function OT(){return!1}var z0=OT;var K0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j0=K0&&typeof module=="object"&&module&&!module.nodeType&&module,UT=j0&&j0.exports===K0,q0=UT?yt.Buffer:void 0,FT=q0?q0.isBuffer:void 0,GT=FT||z0,Xl=GT;var BT="[object Arguments]",VT="[object Array]",DT="[object Boolean]",MT="[object Date]",WT="[object Error]",ZT="[object Function]",PT="[object Map]",kT="[object Number]",QT="[object Object]",_T="[object RegExp]",HT="[object Set]",XT="[object String]",YT="[object WeakMap]",JT="[object ArrayBuffer]",$T="[object DataView]",zT="[object Float32Array]",jT="[object Float64Array]",qT="[object Int8Array]",KT="[object Int16Array]",eR="[object Int32Array]",rR="[object Uint8Array]",tR="[object Uint8ClampedArray]",iR="[object Uint16Array]",sR="[object Uint32Array]",Jr={};Jr[zT]=Jr[jT]=Jr[qT]=Jr[KT]=Jr[eR]=Jr[rR]=Jr[tR]=Jr[iR]=Jr[sR]=!0;Jr[BT]=Jr[VT]=Jr[JT]=Jr[DT]=Jr[$T]=Jr[MT]=Jr[WT]=Jr[ZT]=Jr[PT]=Jr[kT]=Jr[QT]=Jr[_T]=Jr[HT]=Jr[XT]=Jr[YT]=!1;function nR(i){return gi(i)&&Vf(i.length)&&!!Jr[Ki(i)]}var ex=nR;function oR(i){return function(m){return i(m)}}var Xh=oR;var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=rx&&typeof module=="object"&&module&&!module.nodeType&&module,aR=yh&&yh.exports===rx,Em=aR&&Ph.process,lR=function(){try{var i=yh&&yh.require&&yh.require("util").types;return i||Em&&Em.binding&&Em.binding("util")}catch{}}(),mm=lR;var tx=mm&&mm.isTypedArray,uR=tx?Xh(tx):ex,Mf=uR;var fR=Object.prototype,cR=fR.hasOwnProperty;function pR(i,m){var e=qr(i),N=!e&&wo(i),R=!e&&!N&&Xl(i),L=!e&&!N&&!R&&Mf(i),O=e||N||R||L,D=O?J0(i.length,String):[],Z=D.length;for(var H in i)(m||cR.call(i,H))&&!(O&&(H=="length"||R&&(H=="offset"||H=="parent")||L&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||Gf(H,Z)))&&D.push(H);return D}var Yh=pR;function hR(i,m){return function(e){return i(m(e))}}var Jh=hR;var dR=Jh(Object.keys,Object),ix=dR;var gR=Object.prototype,ER=gR.hasOwnProperty;function mR(i){if(!Df(i))return ix(i);var m=[];for(var e in Object(i))ER.call(i,e)&&e!="constructor"&&m.push(e);return m}var sx=mR;function vR(i){return Is(i)?Yh(i):sx(i)}var Wf=vR;function xR(i){var m=[];if(i!=null)for(var e in Object(i))m.push(e);return m}var nx=xR;var CR=Object.prototype,IR=CR.hasOwnProperty;function AR(i){if(!Wt(i))return nx(i);var m=Df(i),e=[];for(var N in i)N=="constructor"&&(m||!IR.call(i,N))||e.push(N);return e}var ox=AR;function NR(i){return Is(i)?Yh(i,!0):ox(i)}var $h=NR;var bR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,TR=/^\w*$/;function RR(i,m){if(qr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||Ks(i)?!0:TR.test(i)||!bR.test(i)||m!=null&&i in Object(m)}var Zf=RR;var yR=Oi(Object,"create"),Oo=yR;function SR(){this.__data__=Oo?Oo(null):{},this.size=0}var ax=SR;function LR(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}var lx=LR;var wR="__lodash_hash_undefined__",OR=Object.prototype,UR=OR.hasOwnProperty;function FR(i){var m=this.__data__;if(Oo){var e=m[i];return e===wR?void 0:e}return UR.call(m,i)?m[i]:void 0}var ux=FR;var GR=Object.prototype,BR=GR.hasOwnProperty;function VR(i){var m=this.__data__;return Oo?m[i]!==void 0:BR.call(m,i)}var fx=VR;var DR="__lodash_hash_undefined__";function MR(i,m){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=Oo&&m===void 0?DR:m,this}var cx=MR;function Pf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}Pf.prototype.clear=ax;Pf.prototype.delete=lx;Pf.prototype.get=ux;Pf.prototype.has=fx;Pf.prototype.set=cx;var vm=Pf;function WR(){this.__data__=[],this.size=0}var px=WR;function ZR(i,m){for(var e=i.length;e--;)if(Wn(i[e][0],m))return e;return-1}var xa=ZR;var PR=Array.prototype,kR=PR.splice;function QR(i){var m=this.__data__,e=xa(m,i);if(e<0)return!1;var N=m.length-1;return e==N?m.pop():kR.call(m,e,1),--this.size,!0}var hx=QR;function _R(i){var m=this.__data__,e=xa(m,i);return e<0?void 0:m[e][1]}var dx=_R;function HR(i){return xa(this.__data__,i)>-1}var gx=HR;function XR(i,m){var e=this.__data__,N=xa(e,i);return N<0?(++this.size,e.push([i,m])):e[N][1]=m,this}var Ex=XR;function kf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}kf.prototype.clear=px;kf.prototype.delete=hx;kf.prototype.get=dx;kf.prototype.has=gx;kf.prototype.set=Ex;var Ca=kf;var YR=Oi(yt,"Map"),Ia=YR;function JR(){this.size=0,this.__data__={hash:new vm,map:new(Ia||Ca),string:new vm}}var mx=JR;function $R(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}var vx=$R;function zR(i,m){var e=i.__data__;return vx(m)?e[typeof m=="string"?"string":"hash"]:e.map}var Aa=zR;function jR(i){var m=Aa(this,i).delete(i);return this.size-=m?1:0,m}var xx=jR;function qR(i){return Aa(this,i).get(i)}var Cx=qR;function KR(i){return Aa(this,i).has(i)}var Ix=KR;function ey(i,m){var e=Aa(this,i),N=e.size;return e.set(i,m),this.size+=e.size==N?0:1,this}var Ax=ey;function Qf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}Qf.prototype.clear=mx;Qf.prototype.delete=xx;Qf.prototype.get=Cx;Qf.prototype.has=Ix;Qf.prototype.set=Ax;var Yl=Qf;var ry="Expected a function";function xm(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new TypeError(ry);var e=function(){var N=arguments,R=m?m.apply(this,N):N[0],L=e.cache;if(L.has(R))return L.get(R);var O=i.apply(this,N);return e.cache=L.set(R,O)||L,O};return e.cache=new(xm.Cache||Yl),e}xm.Cache=Yl;var Nx=xm;var ty=500;function iy(i){var m=Nx(i,function(N){return e.size===ty&&e.clear(),N}),e=m.cache;return m}var bx=iy;var sy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ny=/\\(\\)?/g,oy=bx(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(sy,function(e,N,R,L){m.push(R?L.replace(ny,"$1"):N||e)}),m}),Tx=oy;function ay(i){return i==null?"":b0(i)}var zh=ay;function ly(i,m){return qr(i)?i:Zf(i,m)?[i]:Tx(zh(i))}var jh=ly;var uy=1/0;function fy(i){if(typeof i=="string"||Ks(i))return i;var m=i+"";return m=="0"&&1/i==-uy?"-0":m}var Na=fy;function cy(i,m){m=jh(m,i);for(var e=0,N=m.length;i!=null&&e<N;)i=i[Na(m[e++])];return e&&e==N?i:void 0}var _f=cy;function py(i,m,e){var N=i==null?void 0:_f(i,m);return N===void 0?e:N}var Rx=py;function hy(i,m){for(var e=-1,N=m.length,R=i.length;++e<N;)i[R+e]=m[e];return i}var qh=hy;var yx=di?di.isConcatSpreadable:void 0;function dy(i){return qr(i)||wo(i)||!!(yx&&i&&i[yx])}var Sx=dy;function Lx(i,m,e,N,R){var L=-1,O=i.length;for(e||(e=Sx),R||(R=[]);++L<O;){var D=i[L];m>0&&e(D)?m>1?Lx(D,m-1,e,N,R):qh(R,D):N||(R[R.length]=D)}return R}var wx=Lx;var gy=Jh(Object.getPrototypeOf,Object),Kh=gy;var Ey="[object Object]",my=Function.prototype,vy=Object.prototype,Ox=my.toString,xy=vy.hasOwnProperty,Cy=Ox.call(Object);function Iy(i){if(!gi(i)||Ki(i)!=Ey)return!1;var m=Kh(i);if(m===null)return!0;var e=xy.call(m,"constructor")&&m.constructor;return typeof e=="function"&&e instanceof e&&Ox.call(e)==Cy}var Ux=Iy;function Ay(i,m,e){var N=-1,R=i.length;m<0&&(m=-m>R?0:R+m),e=e>R?R:e,e<0&&(e+=R),R=m>e?0:e-m>>>0,m>>>=0;for(var L=Array(R);++N<R;)L[N]=i[N+m];return L}var Fx=Ay;function Ny(i){return function(m){return i?.[m]}}var Gx=Ny;function by(){this.__data__=new Ca,this.size=0}var Bx=by;function Ty(i){var m=this.__data__,e=m.delete(i);return this.size=m.size,e}var Vx=Ty;function Ry(i){return this.__data__.get(i)}var Dx=Ry;function yy(i){return this.__data__.has(i)}var Mx=yy;var Sy=200;function Ly(i,m){var e=this.__data__;if(e instanceof Ca){var N=e.__data__;if(!Ia||N.length<Sy-1)return N.push([i,m]),this.size=++e.size,this;e=this.__data__=new Yl(N)}return e.set(i,m),this.size=e.size,this}var Wx=Ly;function Hf(i){var m=this.__data__=new Ca(i);this.size=m.size}Hf.prototype.clear=Bx;Hf.prototype.delete=Vx;Hf.prototype.get=Dx;Hf.prototype.has=Mx;Hf.prototype.set=Wx;var ba=Hf;var Qx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zx=Qx&&typeof module=="object"&&module&&!module.nodeType&&module,wy=Zx&&Zx.exports===Qx,Px=wy?yt.Buffer:void 0,kx=Px?Px.allocUnsafe:void 0;function Oy(i,m){if(m)return i.slice();var e=i.length,N=kx?kx(e):new i.constructor(e);return i.copy(N),N}var _x=Oy;function Uy(i,m){for(var e=-1,N=i==null?0:i.length,R=0,L=[];++e<N;){var O=i[e];m(O,e,i)&&(L[R++]=O)}return L}var Hx=Uy;function Fy(){return[]}var Xx=Fy;var Gy=Object.prototype,By=Gy.propertyIsEnumerable,Yx=Object.getOwnPropertySymbols,Vy=Yx?function(i){return i==null?[]:(i=Object(i),Hx(Yx(i),function(m){return By.call(i,m)}))}:Xx,Jx=Vy;function Dy(i,m,e){var N=m(i);return qr(i)?N:qh(N,e(i))}var $x=Dy;function My(i){return $x(i,Wf,Jx)}var Cm=My;var Wy=Oi(yt,"DataView"),ed=Wy;var Zy=Oi(yt,"Promise"),rd=Zy;var Py=Oi(yt,"Set"),td=Py;var zx="[object Map]",ky="[object Object]",jx="[object Promise]",qx="[object Set]",Kx="[object WeakMap]",eC="[object DataView]",Qy=Lo(ed),_y=Lo(Ia),Hy=Lo(rd),Xy=Lo(td),Yy=Lo(Qh),Jl=Ki;(ed&&Jl(new ed(new ArrayBuffer(1)))!=eC||Ia&&Jl(new Ia)!=zx||rd&&Jl(rd.resolve())!=jx||td&&Jl(new td)!=qx||Qh&&Jl(new Qh)!=Kx)&&(Jl=function(i){var m=Ki(i),e=m==ky?i.constructor:void 0,N=e?Lo(e):"";if(N)switch(N){case Qy:return eC;case _y:return zx;case Hy:return jx;case Xy:return qx;case Yy:return Kx}return m});var Im=Jl;var Jy=yt.Uint8Array,Xf=Jy;function $y(i){var m=new i.constructor(i.byteLength);return new Xf(m).set(new Xf(i)),m}var rC=$y;function zy(i,m){var e=m?rC(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var tC=zy;function jy(i){return typeof i.constructor=="function"&&!Df(i)?D0(Kh(i)):{}}var iC=jy;var qy="__lodash_hash_undefined__";function Ky(i){return this.__data__.set(i,qy),this}var sC=Ky;function eS(i){return this.__data__.has(i)}var nC=eS;function id(i){var m=-1,e=i==null?0:i.length;for(this.__data__=new Yl;++m<e;)this.add(i[m])}id.prototype.add=id.prototype.push=sC;id.prototype.has=nC;var oC=id;function rS(i,m){for(var e=-1,N=i==null?0:i.length;++e<N;)if(m(i[e],e,i))return!0;return!1}var aC=rS;function tS(i,m){return i.has(m)}var lC=tS;var iS=1,sS=2;function nS(i,m,e,N,R,L){var O=e&iS,D=i.length,Z=m.length;if(D!=Z&&!(O&&Z>D))return!1;var H=L.get(i),Q=L.get(m);if(H&&Q)return H==m&&Q==i;var W=-1,$=!0,M=e&sS?new oC:void 0;for(L.set(i,m),L.set(m,i);++W<D;){var z=i[W],Y=m[W];if(N)var B=O?N(Y,z,W,m,i,L):N(z,Y,W,i,m,L);if(B!==void 0){if(B)continue;$=!1;break}if(M){if(!aC(m,function(V,X){if(!lC(M,X)&&(z===V||R(z,V,e,N,L)))return M.push(X)})){$=!1;break}}else if(!(z===Y||R(z,Y,e,N,L))){$=!1;break}}return L.delete(i),L.delete(m),$}var sd=nS;function oS(i){var m=-1,e=Array(i.size);return i.forEach(function(N,R){e[++m]=[R,N]}),e}var uC=oS;function aS(i){var m=-1,e=Array(i.size);return i.forEach(function(N){e[++m]=N}),e}var fC=aS;var lS=1,uS=2,fS="[object Boolean]",cS="[object Date]",pS="[object Error]",hS="[object Map]",dS="[object Number]",gS="[object RegExp]",ES="[object Set]",mS="[object String]",vS="[object Symbol]",xS="[object ArrayBuffer]",CS="[object DataView]",cC=di?di.prototype:void 0,Am=cC?cC.valueOf:void 0;function IS(i,m,e,N,R,L,O){switch(e){case CS:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case xS:return!(i.byteLength!=m.byteLength||!L(new Xf(i),new Xf(m)));case fS:case cS:case dS:return Wn(+i,+m);case pS:return i.name==m.name&&i.message==m.message;case gS:case mS:return i==m+"";case hS:var D=uC;case ES:var Z=N&lS;if(D||(D=fC),i.size!=m.size&&!Z)return!1;var H=O.get(i);if(H)return H==m;N|=uS,O.set(i,m);var Q=sd(D(i),D(m),N,R,L,O);return O.delete(i),Q;case vS:if(Am)return Am.call(i)==Am.call(m)}return!1}var pC=IS;var AS=1,NS=Object.prototype,bS=NS.hasOwnProperty;function TS(i,m,e,N,R,L){var O=e&AS,D=Cm(i),Z=D.length,H=Cm(m),Q=H.length;if(Z!=Q&&!O)return!1;for(var W=Z;W--;){var $=D[W];if(!(O?$ in m:bS.call(m,$)))return!1}var M=L.get(i),z=L.get(m);if(M&&z)return M==m&&z==i;var Y=!0;L.set(i,m),L.set(m,i);for(var B=O;++W<Z;){$=D[W];var V=i[$],X=m[$];if(N)var q=O?N(X,V,$,m,i,L):N(V,X,$,i,m,L);if(!(q===void 0?V===X||R(V,X,e,N,L):q)){Y=!1;break}B||(B=$=="constructor")}if(Y&&!B){var te=i.constructor,ie=m.constructor;te!=ie&&"constructor"in i&&"constructor"in m&&!(typeof te=="function"&&te instanceof te&&typeof ie=="function"&&ie instanceof ie)&&(Y=!1)}return L.delete(i),L.delete(m),Y}var hC=TS;var RS=1,dC="[object Arguments]",gC="[object Array]",nd="[object Object]",yS=Object.prototype,EC=yS.hasOwnProperty;function SS(i,m,e,N,R,L){var O=qr(i),D=qr(m),Z=O?gC:Im(i),H=D?gC:Im(m);Z=Z==dC?nd:Z,H=H==dC?nd:H;var Q=Z==nd,W=H==nd,$=Z==H;if($&&Xl(i)){if(!Xl(m))return!1;O=!0,Q=!1}if($&&!Q)return L||(L=new ba),O||Mf(i)?sd(i,m,e,N,R,L):pC(i,m,Z,e,N,R,L);if(!(e&RS)){var M=Q&&EC.call(i,"__wrapped__"),z=W&&EC.call(m,"__wrapped__");if(M||z){var Y=M?i.value():i,B=z?m.value():m;return L||(L=new ba),R(Y,B,e,N,L)}}return $?(L||(L=new ba),hC(i,m,e,N,R,L)):!1}var mC=SS;function vC(i,m,e,N,R){return i===m?!0:i==null||m==null||!gi(i)&&!gi(m)?i!==i&&m!==m:mC(i,m,e,N,vC,R)}var od=vC;var LS=1,wS=2;function OS(i,m,e,N){var R=e.length,L=R,O=!N;if(i==null)return!L;for(i=Object(i);R--;){var D=e[R];if(O&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++R<L;){D=e[R];var Z=D[0],H=i[Z],Q=D[1];if(O&&D[2]){if(H===void 0&&!(Z in i))return!1}else{var W=new ba;if(N)var $=N(H,Q,Z,i,m,W);if(!($===void 0?od(Q,H,LS|wS,N,W):$))return!1}}return!0}var xC=OS;function US(i){return i===i&&!Wt(i)}var ad=US;function FS(i){for(var m=Wf(i),e=m.length;e--;){var N=m[e],R=i[N];m[e]=[N,R,ad(R)]}return m}var CC=FS;function GS(i,m){return function(e){return e==null?!1:e[i]===m&&(m!==void 0||i in Object(e))}}var ld=GS;function BS(i){var m=CC(i);return m.length==1&&m[0][2]?ld(m[0][0],m[0][1]):function(e){return e===i||xC(e,i,m)}}var IC=BS;function VS(i,m){return i!=null&&m in Object(i)}var AC=VS;function DS(i,m,e){m=jh(m,i);for(var N=-1,R=m.length,L=!1;++N<R;){var O=Na(m[N]);if(!(L=i!=null&&e(i,O)))break;i=i[O]}return L||++N!=R?L:(R=i==null?0:i.length,!!R&&Vf(R)&&Gf(O,R)&&(qr(i)||wo(i)))}var NC=DS;function MS(i,m){return i!=null&&NC(i,m,AC)}var bC=MS;var WS=1,ZS=2;function PS(i,m){return Zf(i)&&ad(m)?ld(Na(i),m):function(e){var N=Rx(e,i);return N===void 0&&N===m?bC(e,i):od(m,N,WS|ZS)}}var TC=PS;function kS(i){return function(m){return m?.[i]}}var RC=kS;function QS(i){return function(m){return _f(m,i)}}var yC=QS;function _S(i){return Zf(i)?RC(Na(i)):yC(i)}var SC=_S;function HS(i){return typeof i=="function"?i:i==null?va:typeof i=="object"?qr(i)?TC(i[0],i[1]):IC(i):SC(i)}var LC=HS;function XS(i){return function(m,e,N){for(var R=-1,L=Object(m),O=N(m),D=O.length;D--;){var Z=O[i?D:++R];if(e(L[Z],Z,L)===!1)break}return m}}var wC=XS;var YS=wC(),ud=YS;function JS(i,m){return i&&ud(i,m,Wf)}var OC=JS;function $S(i,m){return function(e,N){if(e==null)return e;if(!Is(e))return i(e,N);for(var R=e.length,L=m?R:-1,O=Object(e);(m?L--:++L<R)&&N(O[L],L,O)!==!1;);return e}}var UC=$S;var zS=UC(OC),FC=zS;function jS(i,m,e){(e!==void 0&&!Wn(i[m],e)||e===void 0&&!(m in i))&&Bf(i,m,e)}var Sh=jS;function qS(i){return gi(i)&&Is(i)}var GC=qS;function KS(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Lh=KS;function e1(i){return H0(i,$h(i))}var BC=e1;function r1(i,m,e,N,R,L,O){var D=Lh(i,e),Z=Lh(m,e),H=O.get(Z);if(H){Sh(i,e,H);return}var Q=L?L(D,Z,e+"",i,m,O):void 0,W=Q===void 0;if(W){var $=qr(Z),M=!$&&Xl(Z),z=!$&&!M&&Mf(Z);Q=Z,$||M||z?qr(D)?Q=D:GC(D)?Q=W0(D):M?(W=!1,Q=_x(Z,!0)):z?(W=!1,Q=tC(Z,!0)):Q=[]:Ux(Z)||wo(Z)?(Q=D,wo(D)?Q=BC(D):(!Wt(D)||Kr(D))&&(Q=iC(Z))):W=!1}W&&(O.set(Z,Q),R(Q,Z,N,L,O),O.delete(Z)),Sh(i,e,Q)}var VC=r1;function DC(i,m,e,N,R){i!==m&&ud(m,function(L,O){if(R||(R=new ba),Wt(L))VC(i,m,O,e,DC,N,R);else{var D=N?N(Lh(i,O),L,O+"",i,m,R):void 0;D===void 0&&(D=L),Sh(i,O,D)}},$h)}var fd=DC;var t1=Hh(function(i,m,e,N){fd(i,m,e,N)}),Nm=t1;var i1={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s1=Gx(i1),MC=s1;var WC=/[&<>"']/g,n1=RegExp(WC.source);function o1(i){return i=zh(i),i&&n1.test(i)?i.replace(WC,MC):i}var wh=o1;function a1(i,m){var e=-1,N=Is(i)?Array(i.length):[];return FC(i,function(R,L,O){N[++e]=m(R,L,O)}),N}var ZC=a1;var l1=Hh(function(i,m,e){fd(i,m,e)}),cd=l1;function u1(i,m){var e=i.length;for(i.sort(m);e--;)i[e]=i[e].value;return i}var PC=u1;function f1(i,m){if(i!==m){var e=i!==void 0,N=i===null,R=i===i,L=Ks(i),O=m!==void 0,D=m===null,Z=m===m,H=Ks(m);if(!D&&!H&&!L&&i>m||L&&O&&Z&&!D&&!H||N&&O&&Z||!e&&Z||!R)return 1;if(!N&&!L&&!H&&i<m||H&&e&&R&&!N&&!L||D&&e&&R||!O&&R||!Z)return-1}return 0}var kC=f1;function c1(i,m,e){for(var N=-1,R=i.criteria,L=m.criteria,O=R.length,D=e.length;++N<O;){var Z=kC(R[N],L[N]);if(Z){if(N>=D)return Z;var H=e[N];return Z*(H=="desc"?-1:1)}}return i.index-m.index}var QC=c1;function p1(i,m,e){m.length?m=Uf(m,function(L){return qr(L)?function(O){return _f(O,L.length===1?L[0]:L)}:L}):m=[va];var N=-1;m=Uf(m,Xh(LC));var R=ZC(i,function(L,O,D){var Z=Uf(m,function(H){return H(L)});return{criteria:Z,index:++N,value:L}});return PC(R,function(L,O){return QC(L,O,e)})}var _C=p1;var h1=_h(function(i,m){if(i==null)return[];var e=m.length;return e>1&&Rh(i,m[0],m[1])?m=[]:e>2&&Rh(m[0],m[1],m[2])&&(m=[m[0]]),_C(i,wx(m,1),[])}),bm=h1;function d1(i,m,e){return i&&i.length?(m=e||m===void 0?1:O0(m),Fx(i,0,m<0?0:m)):[]}var Tm=d1;var Uo=Xt(Zh());function $l(i,m){return Kr(m)?m(i):m??{}}function g1(i,m){let e=`${i}:${m}`;return`Basic ${HC(e)}`}function HC(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let m=new window.TextEncoder().encode(i),e="";for(let N=0;N<m.length;N++)e+=String.fromCharCode(m[N]);return btoa(e)}else if(typeof TextEncoder<"u"){let m=new TextEncoder().encode(i),e="";for(let N=0;N<m.length;N++)e+=String.fromCharCode(m[N]);return btoa(e)}else try{return btoa(i)}catch{throw new Error("Basic authentication credentials contain unsupported Unicode characters. Please use a modern browser or restrict credentials to Latin1 characters.")}}function zl(i,m={}){let e=cd({},$l(i,i.config.requestConfig),$l(i,m));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let R=Kr(e.endpoint)?e.endpoint(i):e.endpoint;var L=N=="update"?"POST":Kr(e.method)?e.method(i):e.method;let O=Kr(e.headers)?e.headers(i):e.headers,D=Kr(e.withCredentials)?e.withCredentials(i):e.withCredentials,Z={...O},H=!1;try{let Q=Kr(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,W=Q?.idToken||Q?.accessToken,$=W?W.trim():"";Q&&$.length>0&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping OAuth 2.0 Auth header to avoid overwrite."):Z.Authorization=`Bearer ${$}`);let M=Kr(e.bearerAuth)?e.bearerAuth(i):e.bearerAuth,z=M&&M.token?M.token.trim():"";M&&z.length>0&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Bearer Auth header to avoid overwrite."):Z.Authorization=`Bearer ${z}`);let Y=Kr(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,B=Y&&Y.headerName?Y.headerName.trim():"",V=Y&&Y.apiKey?Y.apiKey.trim():"";Y&&B.length>0&&V.length>0&&(H=!0,Z[B]!==void 0?console.warn(`Header "${B}" already exists in request headers; skipping API Key header to avoid overwrite.`):Z[B]=V);let X=Kr(e.basicAuth)?e.basicAuth(i):e.basicAuth;X&&X.username&&X.password&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):Z.Authorization=g1(X.username,X.password))}catch(Q){console.warn("Failed to configure authentication:",Q)}return H&&(D=!0),{reqMethod:L,url:R,args:XC(i,e),headers:Z,accept:YC(i,e),withCredentials:D??!1}}async function Rm(i,m,e){let N=Date.now();try{i.emit("queryBefore",i,m);let R=zl(i,m);if(!R)return;let L=new AbortController,O=e?.customAccept||R.accept,D={method:R.reqMethod,headers:{Accept:O,...R.headers||{}},credentials:R.withCredentials?"include":"same-origin",signal:L.signal,mode:"cors"};D?.headers&&R.reqMethod==="POST"&&(D.headers["Content-Type"]="application/x-www-form-urlencoded");let Z=new URLSearchParams,H=(z,Y=[])=>{for(let B in z)if(!Y.includes(B)){let V=z[B];Array.isArray(V)?V.forEach(X=>Z.append(B,X)):Z.append(B,V)}},Q=z=>z.query!==void 0?"query":z.update!==void 0?"update":"query";if(e?.customQuery){let z=Q(R.args);Z.append(z,e.customQuery),H(R.args,["query","update"])}else H(R.args);if(R.reqMethod==="POST")D.body=Z.toString();else{let z=new URL(R.url);Z.forEach((Y,B)=>{z.searchParams.append(B,Y)}),R.url=z.toString()}let W=new Request(R.url,D);i.emit("query",W,L);let $=await fetch(W),M={ok:$.ok,status:$.status,statusText:$.statusText,headers:$.headers,type:$.type,content:await $.text()};if(!$.ok){let z=new Error(M.content||$.statusText);throw z.status=$.status,z.statusText=$.statusText,z.response=M,z}return i.emit("queryResponse",M,Date.now()-N),i.emit("queryResults",M.content,Date.now()-N),M}catch(R){if(!(R instanceof Error&&R.message==="Aborted"))if(R instanceof Error&&!("status"in R)){let L=R;(R.message.includes("Failed to fetch")||R.message.includes("NetworkError"))&&(L.message=`${R.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),i.emit("queryResponse",L,Date.now()-N)}else i.emit("queryResponse",R,Date.now()-N);throw i.emit("error",R),R}}function XC(i,m){var e=i.getQueryMode(),N={};let R=$l(i,m);var L=Kr(R.queryArgument)?R.queryArgument(i):R.queryArgument;L||(L=i.getQueryMode()),N[L]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let O=Kr(R.namedGraphs)?R.namedGraphs(i):R.namedGraphs;if(O&&O.length>0){let H=e==="query"?"named-graph-uri":"using-named-graph-uri ";N[H]=O}let D=Kr(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(D&&D.length>0){let H=e=="query"?"default-graph-uri":"using-graph-uri ";N[H]=D}let Z=Kr(R.args)?R.args(i):R.args;return Z&&Z.length>0&&cd(N,Z.reduce((H,Q)=>(H[Q.name]?H[Q.name].push(Q.value):H[Q.name]=[Q.value],H),{})),N}function YC(i,m){let e=$l(i,m);var N=null;if(i.getQueryMode()=="update")N=Kr(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?N=Kr(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Kr(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function ym(i){if(i.indexOf("http")!==0){let m=`${window.location.protocol}//${window.location.host}`;if(i.indexOf("/")===0)m+=i;else{let e=window.location.pathname;if(!e.endsWith("/")){let N=e.lastIndexOf("/");e=N>=0?e.substring(0,N+1):"/"}m+=e+i}return m}return i}function Sm(i){if(!i)return!1;if(i.headers&&i.headers.Authorization)return!0;if(i.headers)for(let m in i.headers){let e=m.toLowerCase();if(e.startsWith("x-api-key")||e.startsWith("x-auth-")||e==="apikey"||e==="api-key"||e.endsWith("-token")&&e.startsWith("x-")||e.includes("-auth-")&&e.includes("token"))return!0}return!1}function Ei(i){return i.replace(/'/g,"'\\''")}function Lm(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=ym(e.url),R=["curl"];if(e.reqMethod==="GET")N+=`?${Uo.stringify(e.args)}`,R.push(`'${Ei(N)}'`);else if(e.reqMethod==="POST"){R.push(`'${Ei(N)}'`);let L=Uo.stringify(e.args);R.push("--data",`'${Ei(L)}'`)}else console.warn("Unexpected request-method",e.reqMethod),R.push(`'${Ei(N)}'`);R.push("-X",e.reqMethod),e.accept&&R.push("-H",`'Accept: ${Ei(e.accept)}'`);for(let L in e.headers)R.push("-H",`'${Ei(L)}: ${Ei(e.headers[L])}'`);return R.join(` \\
41
- `)}function Yf(i){return i.replace(/`/g,"``").replace(/"/g,'`"').replace(/\$/g,"`$")}function wm(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=ym(e.url),R=[],L=e.accept,O="json";L&&(L.includes("text/turtle")||L.includes("application/x-turtle")?O="ttl":L.includes("application/rdf+xml")?O="xml":L.includes("application/n-triples")?O="nt":L.includes("application/ld+json")?O="jsonld":L.includes("text/csv")?O="csv":L.includes("text/tab-separated-values")&&(O="tsv"));let D=[];L&&D.push(` "Accept" = "${Yf(L)}"`);for(let Z in e.headers)D.push(` "${Yf(Z)}" = "${Yf(e.headers[Z])}"`);if(e.reqMethod==="GET")N+=`?${Uo.stringify(e.args)}`,R.push("$params = @{"),R.push(` Uri = "${Yf(N)}"`),R.push(' Method = "Get"'),D.length>0&&(R.push(" Headers = @{"),R.push(D.join(`
42
- `)),R.push(" }")),R.push(` OutFile = "result.${O}"`),R.push("}");else if(e.reqMethod==="POST"){let Z=Uo.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${Yf(N)}"`),R.push(' Method = "Post"'),D.length>0&&(R.push(" Headers = @{"),R.push(D.join(`
43
- `)),R.push(" }")),R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${Yf(Z)}"`),R.push(` OutFile = "result.${O}"`),R.push("}")}else{console.warn("Unexpected request-method for PowerShell",e.reqMethod);let Z=Uo.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${N}"`),R.push(` Method = "${e.reqMethod}"`),D.length>0&&(R.push(" Headers = @{"),R.push(D.join(`
44
- `)),R.push(" }")),Z&&(R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${Z.replace(/"/g,'`"')}"`)),R.push(` OutFile = "result.${O}"`),R.push("}")}return R.push(""),R.push("Invoke-WebRequest @params"),R.join(`
45
- `)}function Om(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=ym(e.url),R=["wget"];if(e.reqMethod==="GET")N+=`?${Uo.stringify(e.args)}`,R.push(`'${Ei(N)}'`);else if(e.reqMethod==="POST"){R.push(`'${Ei(N)}'`);let L=Uo.stringify(e.args);R.push("--post-data",`'${Ei(L)}'`)}else{console.warn("Unexpected request-method for wget",e.reqMethod),R.push(`'${Ei(N)}'`);let L=Uo.stringify(e.args);L&&R.push("--post-data",`'${Ei(L)}'`)}e.reqMethod!=="GET"&&R.push("--method",e.reqMethod),e.accept&&R.push("--header",`'Accept: ${Ei(e.accept)}'`);for(let L in e.headers)R.push("--header",`'${Ei(L)}: ${Ei(e.headers[L])}'`);return R.push("-O -"),R.join(` \\
46
- `)}var JC='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>';var $C='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>',Oh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',zC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',jC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>',qC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3v18h18v-2H5V3H3zm14 4V5l-4 4 4 4V9h4V7h-4zM7 9v2h10V9H7zm0 4v2h10v-2H7zm0 4v2h10v-2H7z"/></svg>';var Fm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>';var Uh=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(m,e){if(m.length!=0){var N=this,R,L;if(e===void 0&&(e=0),e===m.length){N.words++;return}N.prefixes++,R=m[e],N.children[R]===void 0&&(N.children[R]=new i),L=N.children[R],L.insert(m,e+1)}}remove(m,e){if(m.length!=0){var N=this,R,L;if(e===void 0&&(e=0),N!==void 0){if(e===m.length){N.words--;return}N.prefixes--,R=m[e],L=N.children[R],L.remove(m,e+1)}}}update(m,e){m.length==0||e.length==0||(this.remove(m),this.insert(e))}countWord(m,e){if(m.length==0)return 0;var N=this,R,L,O=0;return e===void 0&&(e=0),e===m.length?N.words:(R=m[e],L=N.children[R],L!==void 0&&(O=L.countWord(m,e+1)),O)}countPrefix(m,e){if(m.length==0)return 0;var N=this,O,R,L=0;if(e===void 0&&(e=0),e===m.length)return N.prefixes;var O=m[e];return R=N.children[O],R!==void 0&&(L=R.countPrefix(m,e+1)),L}find(m){return m.length==0?!1:this.countWord(m)>0}getAllWords(m){var e=this,N,R,L=[];if(m===void 0&&(m=""),e===void 0)return[];e.words>0&&L.push(m);for(N in e.children)e.children.hasOwnProperty(N)&&(R=e.children[N],L=L.concat(R.getAllWords(m+N)));return L}autoComplete(m,e){var N=this,R,L;return m.length==0?e===void 0?N.getAllWords(m):[]:(e===void 0&&(e=0),R=m[e],L=N.children[R],L===void 0?[]:e===m.length-1?L.getAllWords(m):L.autoComplete(m,e+1))}};var dI=Xt(uI());var Vm=Xt(si());var N1={name:"variables",isValidCompletionPosition:function(i){var m=i.getTokenAt(i.getDoc().getCursor());return!!(m.type!="ws"&&(m=i.getCompleteToken(m),m&&(m.string[0]==="?"||m.string[0]==="$")))},get:function(i,m){if(!m||m.string.length==0)return[];let e={},N=[],R=i.getWrapperElement().querySelectorAll(".cm-atom");for(let O=0;O<R.length;O++){let D=R[O];var L=D.innerHTML;if(L[0]==="?"||L[0]==="$"){let Z=D.nextSibling;if(Z&&Z.className&&Z.className.indexOf("cm-atom")>=0&&(L+=Z.innerText),e[L]||L.length<=1||L.indexOf(m.string)!==0||L===m.string)continue;e[L]=!0,N.push(L)}}return N.sort()},bulk:!1,autoShow:!0},fI=N1;var b1={"string-2":"prefixed",atom:"var"},T1={postprocessHints:function(i,m){return bm(m,e=>e.text.split(":")[0])},onInitialize:function(i){i.on("change",()=>{if(!(!i.config.autocompleters||i.config.autocompleters.indexOf(this.name)==-1)){var m=i.getDoc().getCursor(),e=i.getTokenAt(m);if(e.type&&b1[e.type]=="prefixed"){var N=e.string.indexOf(":");if(N!==-1){var R=i.getPreviousNonWsToken(m.line,e).string.toUpperCase(),L=i.getTokenAt({line:m.line,ch:e.start});if(R!=="PREFIX"&&(L.type=="ws"||L.type==null||L.type==="punc"&&(L.string==="|"||L.string==="/"||L.string=="^^"||L.string=="{"||L.string==="("))){var O=e.string.substring(0,N+1),D=i.getPrefixesFromQuery();D[O.slice(0,-1)]==null&&(e.autocompletionString=O,i.autocompleters[this.name]?.getCompletions(e).then(Z=>{Z.length&&(i.addPrefixes(Z[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var m=i.getDoc().getCursor(),e=i.getTokenAt(m);if(i.getDoc().getLine(m.line).length>m.ch||(e.type!="ws"&&(e=i.getCompleteToken()),e.string.indexOf("a")!==0&&e.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var N=i.getPreviousNonWsToken(m.line,e);return!(!N||N.string.toUpperCase()!="PREFIX")},get:function(i){return fetch(i.config.prefixCcApi).then(m=>{if(!m.ok)throw new Error("Failed to fetch prefixes");return m.json()}).then(m=>{let e=[];for(let N in m){let R=`${N}: <${m[N]}>`;e.push(R)}return e.sort()})},preProcessToken:function(i,m){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,m);return e&&e.string&&e.string.slice(-1)==":"&&(m={start:e.start,end:m.end,string:e.string+" "+m.string,state:m.state,type:m.type}),m},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},cI=T1;var R1={onInitialize:function(i){},get:function(i,m){return Ed(i,"property",m)},isValidCompletionPosition:function(i){let m=i.getCompleteToken();return m.string.length==0||m.string[0]==="?"||m.string[0]==="$"?!1:m.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(i,m){return dd(i,m)},postProcessSuggestion:function(i,m,e){return gd(i,m,e)},bulk:!1,name:"property"},pI=R1;var y1={onInitialize:function(i){},get:function(i,m){return Ed(i,"class",m)},isValidCompletionPosition:function(i){let m=i.getCompleteToken();if(m.string[0]==="?"||m.string[0]==="$")return!1;let e=i.getDoc().getCursor(),N=i.getPreviousNonWsToken(e.line,m);return N.state.lastProperty==="a"||N.state.lastProperty==="rdf:type"||N.state.lastProperty==="rdfs:domain"||N.state.lastProperty==="rdfs:range"},preProcessToken:function(i,m){return dd(i,m)},postProcessSuggestion:function(i,m,e){return gd(i,m,e)},bulk:!1,name:"class"},hI=y1;var S1=100,md=class extends dI.EventEmitter{constructor(m,e){super(),this.yasqe=m,this.config=e}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(m){if(!(!m||!(m instanceof Array))){this.trie=new Uh;for(let N of m)this.trie.insert(N);var e=this.getStorageId();e&&this.yasqe.storage.set(e,m,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(m){if(!this.config.get)return Promise.resolve([]);if(!m)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(N=>N instanceof Array?N:[]);let e=m.autocompletionString||m.string;return this.trie?Promise.resolve(Tm(this.trie.autoComplete(e),S1)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(N=>N.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,m)).then(N=>N instanceof Array?N:[])}initialize(){if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var m,e=this.getStorageId();return e&&(m=this.yasqe.storage.get(e)),m&&m.length>0?(this.storeBulkCompletions(m),Promise.resolve()):this.getCompletions().then(N=>this.storeBulkCompletions(N))}return Promise.resolve()}isValidPosition(){return this.config.isValidCompletionPosition?this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1):!1}getHint(m,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,m,e));let N,R,L=this.yasqe.getDoc().getCursor();m.from&&(N={...L,...m.from});let O=this.yasqe.getDoc().getCursor().line;return m.to?R={ch:m?.to?.ch||this.yasqe.getCompleteToken().end,line:O}:m.string.length>0?R={ch:this.yasqe.getCompleteToken().end,line:O}:R=m.from,{text:e,displayText:e,from:N,to:R}}getHints(m){return this.config.preProcessToken&&(m=this.config.preProcessToken(this.yasqe,m)),m?this.getCompletions(m).then(e=>e.map(N=>this.getHint(m,N))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}autocomplete(m){if(!this.isValidPosition())return!1;let e=this.yasqe.state.completionActive,N=this.yasqe.getDoc().getCursor();if(e&&N.sticky&&N.ch!==e.startPos.ch?this.yasqe.state.completionActive.startPos=N:e&&!N.sticky&&N.ch<e.startPos.ch&&(N.sticky=e.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=N.ch,this.yasqe.state.completionActive.startLen--),m&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let R=()=>this.getHints(this.yasqe.getCompleteToken()).then(O=>{let D=this.yasqe.getDoc().getCursor(),Z=this.yasqe.getCompleteToken(),H={list:O,from:{line:D.line,ch:Z.start},to:{line:D.line,ch:Z.end}};return Vm.default.on(H,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),Vm.default.on(H,"close",()=>{this.yasqe.emit("autocompletionClose")}),H});R.async=!1;var L={closeCharacters:/[\s>"]/,completeSingle:!1,hint:R,container:this.yasqe.rootEl,extraKeys:{Home:(O,D)=>{O.getDoc().setCursor({ch:0,line:D.data.from.line})},End:(O,D)=>{O.getDoc().setCursor({ch:O.getLine(D.data.to.line).length,line:D.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(L),!0}};function dd(i,m){let e=i.getPrefixesFromQuery(),N=m.string;if(N.indexOf("<")<0&&(m.tokenPrefix=N.substring(0,N.indexOf(":")+1),e[m.tokenPrefix.slice(0,-1)]!=null&&(m.tokenPrefixUri=e[m.tokenPrefix.slice(0,-1)])),m.autocompletionString=N.trim(),N.indexOf("<")<0&&N.indexOf(":")>-1){for(var R in e)if(m.tokenPrefix===R+":"){m.autocompletionString=e[R],m.autocompletionString+=N.substring(R.length+1);break}}return m.autocompletionString.indexOf("<")==0&&(m.autocompletionString=m.autocompletionString.substring(1)),m.autocompletionString.indexOf(">",m.autocompletionString.length-1)>0&&(m.autocompletionString=m.autocompletionString.substring(0,m.autocompletionString.length-1)),m}function gd(i,m,e){return m.tokenPrefix&&m.autocompletionString&&m.tokenPrefixUri?e=m.tokenPrefix+e.substring(m.tokenPrefixUri.length):e="<"+e+">",e}var Ed=(i,m,e)=>{var N=window.location.protocol.indexOf("http")===0?"https://":"http://";let R="autocomplete_"+m;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(R,"Nothing to autocomplete yet!"),Promise.resolve([]);let L=new URLSearchParams;e.autocompletionString&&L.append("q",e.autocompletionString),L.append("page_size","50"),L.append("type",m);let O=`${N}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${L.toString()}`;return fetch(O).then(D=>{if(!D.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return D.json()}).then(D=>D.results?D.results.map(Z=>Z.uri[0]):[]).catch(D=>{i.showNotification(R,"Failed fetching suggestions")})},gI=[fI,cI,pI,hI];var EI=Xt(Zh()),vd=Xt(si());function Dm(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
30
+ `+G+"}":"{"+W.join(",")+"}",gap=G,R}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,m,e){var N;if(gap="",indent="",typeof e=="number")for(N=0;N<e;N+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=m,m&&typeof m!="function"&&(typeof m!="object"||typeof m.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,m){var e,N,R=i[m];if(R&&typeof R=="object")for(e in R)Object.prototype.hasOwnProperty.call(R,e)&&(N=walk(R,e),N!==void 0?R[e]=N:delete R[e]);return reviver.call(i,m,R)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(i){return"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Yv=br((EL,Hv)=>{Hv.exports=SN;function SN(){return Xv(),{}}});var Jv=br((mL,_v)=>{var LN=Iv(),wN=kv(),UN=[Yv()];_v.exports=LN.createStore(wN,UN)});var jv=br((NL,zv)=>{"use strict";zv.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,m=>`%${m.charCodeAt(0).toString(16).toUpperCase()}`)});var t0=br((bL,r0)=>{"use strict";var e0="%[a-f0-9]{2}",qv=new RegExp("("+e0+")|([^%]+?)","gi"),Kv=new RegExp("("+e0+")+","gi");function pm(i,m){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;m=m||1;var e=i.slice(0,m),N=i.slice(m);return Array.prototype.concat.call([],pm(e),pm(N))}function GN(i){try{return decodeURIComponent(i)}catch{for(var m=i.match(qv)||[],e=1;e<m.length;e++)i=pm(m,e).join(""),m=i.match(qv)||[];return i}}function FN(i){for(var m={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=Kv.exec(i);e;){try{m[e[0]]=decodeURIComponent(e[0])}catch{var N=GN(e[0]);N!==e[0]&&(m[e[0]]=N)}e=Kv.exec(i)}m["%C2"]="\uFFFD";for(var R=Object.keys(m),L=0;L<R.length;L++){var G=R[L];i=i.replace(new RegExp(G,"g"),m[G])}return i}r0.exports=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return FN(i)}}});var s0=br((TL,i0)=>{"use strict";i0.exports=(i,m)=>{if(!(typeof i=="string"&&typeof m=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(m==="")return[i];let e=i.indexOf(m);return e===-1?[i]:[i.slice(0,e),i.slice(e+m.length)]}});var o0=br((RL,n0)=>{"use strict";n0.exports=function(i,m){for(var e={},N=Object.keys(i),R=Array.isArray(m),L=0;L<N.length;L++){var G=N[L],W=i[G];(R?m.indexOf(G)!==-1:m(G,W,i))&&(e[G]=W)}return e}});var Dh=br(wi=>{"use strict";var BN=jv(),VN=t0(),l0=s0(),WN=o0(),DN=i=>i==null;function MN(i){switch(i.arrayFormat){case"index":return m=>(e,N)=>{let R=e.length;return N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(m,i),"[",R,"]"].join("")]:[...e,[qt(m,i),"[",qt(R,i),"]=",qt(N,i)].join("")]};case"bracket":return m=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(m,i),"[]"].join("")]:[...e,[qt(m,i),"[]=",qt(N,i)].join("")];case"comma":case"separator":return m=>(e,N)=>N==null||N.length===0?e:e.length===0?[[qt(m,i),"=",qt(N,i)].join("")]:[[e,qt(N,i)].join(i.arrayFormatSeparator)];default:return m=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,qt(m,i)]:[...e,[qt(m,i),"=",qt(N,i)].join("")]}}function ZN(i){let m;switch(i.arrayFormat){case"index":return(e,N,R)=>{if(m=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!m){R[e]=N;return}R[e]===void 0&&(R[e]={}),R[e][m[1]]=N};case"bracket":return(e,N,R)=>{if(m=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!m){R[e]=N;return}if(R[e]===void 0){R[e]=[N];return}R[e]=[].concat(R[e],N)};case"comma":case"separator":return(e,N,R)=>{let L=typeof N=="string"&&N.includes(i.arrayFormatSeparator),G=typeof N=="string"&&!L&&Hl(N,i).includes(i.arrayFormatSeparator);N=G?Hl(N,i):N;let W=L||G?N.split(i.arrayFormatSeparator).map(D=>Hl(D,i)):N===null?N:Hl(N,i);R[e]=W};default:return(e,N,R)=>{if(R[e]===void 0){R[e]=N;return}R[e]=[].concat(R[e],N)}}}function u0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qt(i,m){return m.encode?m.strict?BN(i):encodeURIComponent(i):i}function Hl(i,m){return m.decode?VN(i):i}function f0(i){return Array.isArray(i)?i.sort():typeof i=="object"?f0(Object.keys(i)).sort((m,e)=>Number(m)-Number(e)).map(m=>i[m]):i}function c0(i){let m=i.indexOf("#");return m!==-1&&(i=i.slice(0,m)),i}function QN(i){let m="",e=i.indexOf("#");return e!==-1&&(m=i.slice(e)),m}function p0(i){i=c0(i);let m=i.indexOf("?");return m===-1?"":i.slice(m+1)}function a0(i,m){return m.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):m.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function h0(i,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),u0(m.arrayFormatSeparator);let e=ZN(m),N=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return N;for(let R of i.split("&")){if(R==="")continue;let[L,G]=l0(m.decode?R.replace(/\+/g," "):R,"=");G=G===void 0?null:["comma","separator"].includes(m.arrayFormat)?G:Hl(G,m),e(Hl(L,m),G,N)}for(let R of Object.keys(N)){let L=N[R];if(typeof L=="object"&&L!==null)for(let G of Object.keys(L))L[G]=a0(L[G],m);else N[R]=a0(L,m)}return m.sort===!1?N:(m.sort===!0?Object.keys(N).sort():Object.keys(N).sort(m.sort)).reduce((R,L)=>{let G=N[L];return G&&typeof G=="object"&&!Array.isArray(G)?R[L]=f0(G):R[L]=G,R},Object.create(null))}wi.extract=p0;wi.parse=h0;wi.stringify=(i,m)=>{if(!i)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),u0(m.arrayFormatSeparator);let e=G=>m.skipNull&&DN(i[G])||m.skipEmptyString&&i[G]==="",N=MN(m),R={};for(let G of Object.keys(i))e(G)||(R[G]=i[G]);let L=Object.keys(R);return m.sort!==!1&&L.sort(m.sort),L.map(G=>{let W=i[G];return W===void 0?"":W===null?qt(G,m):Array.isArray(W)?W.reduce(N(G),[]).join("&"):qt(G,m)+"="+qt(W,m)}).filter(G=>G.length>0).join("&")};wi.parseUrl=(i,m)=>{m=Object.assign({decode:!0},m);let[e,N]=l0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:h0(p0(i),m)},m&&m.parseFragmentIdentifier&&N?{fragmentIdentifier:Hl(N,m)}:{})};wi.stringifyUrl=(i,m)=>{m=Object.assign({encode:!0,strict:!0},m);let e=c0(i.url).split("?")[0]||"",N=wi.extract(i.url),R=wi.parse(N,{sort:!1}),L=Object.assign(R,i.query),G=wi.stringify(L,m);G&&(G=`?${G}`);let W=QN(i.url);return i.fragmentIdentifier&&(W=`#${qt(i.fragmentIdentifier,m)}`),`${e}${G}${W}`};wi.pick=(i,m,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:N,query:R,fragmentIdentifier:L}=wi.parseUrl(i,e);return wi.stringifyUrl({url:N,query:WN(R,m),fragmentIdentifier:L},e)};wi.exclude=(i,m,e)=>{let N=Array.isArray(m)?R=>!m.includes(R):(R,L)=>!m(R,L);return wi.pick(i,N,e)}});var rI=br((mW,Um)=>{"use strict";var $f=typeof Reflect=="object"?Reflect:null,HC=$f&&typeof $f.apply=="function"?$f.apply:function(m,e,N){return Function.prototype.apply.call(m,e,N)},fd;$f&&typeof $f.ownKeys=="function"?fd=$f.ownKeys:Object.getOwnPropertySymbols?fd=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:fd=function(m){return Object.getOwnPropertyNames(m)};function l1(i){console&&console.warn&&console.warn(i)}var _C=Number.isNaN||function(m){return m!==m};function wr(){wr.init.call(this)}Um.exports=wr;Um.exports.once=p1;wr.EventEmitter=wr;wr.prototype._events=void 0;wr.prototype._eventsCount=0;wr.prototype._maxListeners=void 0;var YC=10;function cd(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(wr,"defaultMaxListeners",{enumerable:!0,get:function(){return YC},set:function(i){if(typeof i!="number"||i<0||_C(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");YC=i}});wr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};wr.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||_C(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function JC(i){return i._maxListeners===void 0?wr.defaultMaxListeners:i._maxListeners}wr.prototype.getMaxListeners=function(){return JC(this)};wr.prototype.emit=function(m){for(var e=[],N=1;N<arguments.length;N++)e.push(arguments[N]);var R=m==="error",L=this._events;if(L!==void 0)R=R&&L.error===void 0;else if(!R)return!1;if(R){var G;if(e.length>0&&(G=e[0]),G instanceof Error)throw G;var W=new Error("Unhandled error."+(G?" ("+G.message+")":""));throw W.context=G,W}var D=L[m];if(D===void 0)return!1;if(typeof D=="function")HC(D,this,e);else for(var H=D.length,k=KC(D,H),N=0;N<H;++N)HC(k[N],this,e);return!0};function $C(i,m,e,N){var R,L,G;if(cd(e),L=i._events,L===void 0?(L=i._events=Object.create(null),i._eventsCount=0):(L.newListener!==void 0&&(i.emit("newListener",m,e.listener?e.listener:e),L=i._events),G=L[m]),G===void 0)G=L[m]=e,++i._eventsCount;else if(typeof G=="function"?G=L[m]=N?[e,G]:[G,e]:N?G.unshift(e):G.push(e),R=JC(i),R>0&&G.length>R&&!G.warned){G.warned=!0;var W=new Error("Possible EventEmitter memory leak detected. "+G.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");W.name="MaxListenersExceededWarning",W.emitter=i,W.type=m,W.count=G.length,l1(W)}return i}wr.prototype.addListener=function(m,e){return $C(this,m,e,!1)};wr.prototype.on=wr.prototype.addListener;wr.prototype.prependListener=function(m,e){return $C(this,m,e,!0)};function u1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function zC(i,m,e){var N={fired:!1,wrapFn:void 0,target:i,type:m,listener:e},R=u1.bind(N);return R.listener=e,N.wrapFn=R,R}wr.prototype.once=function(m,e){return cd(e),this.on(m,zC(this,m,e)),this};wr.prototype.prependOnceListener=function(m,e){return cd(e),this.prependListener(m,zC(this,m,e)),this};wr.prototype.removeListener=function(m,e){var N,R,L,G,W;if(cd(e),R=this._events,R===void 0)return this;if(N=R[m],N===void 0)return this;if(N===e||N.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete R[m],R.removeListener&&this.emit("removeListener",m,N.listener||e));else if(typeof N!="function"){for(L=-1,G=N.length-1;G>=0;G--)if(N[G]===e||N[G].listener===e){W=N[G].listener,L=G;break}if(L<0)return this;L===0?N.shift():f1(N,L),N.length===1&&(R[m]=N[0]),R.removeListener!==void 0&&this.emit("removeListener",m,W||e)}return this};wr.prototype.off=wr.prototype.removeListener;wr.prototype.removeAllListeners=function(m){var e,N,R;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[m]),this;if(arguments.length===0){var L=Object.keys(N),G;for(R=0;R<L.length;++R)G=L[R],G!=="removeListener"&&this.removeAllListeners(G);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=N[m],typeof e=="function")this.removeListener(m,e);else if(e!==void 0)for(R=e.length-1;R>=0;R--)this.removeListener(m,e[R]);return this};function jC(i,m,e){var N=i._events;if(N===void 0)return[];var R=N[m];return R===void 0?[]:typeof R=="function"?e?[R.listener||R]:[R]:e?c1(R):KC(R,R.length)}wr.prototype.listeners=function(m){return jC(this,m,!0)};wr.prototype.rawListeners=function(m){return jC(this,m,!1)};wr.listenerCount=function(i,m){return typeof i.listenerCount=="function"?i.listenerCount(m):qC.call(i,m)};wr.prototype.listenerCount=qC;function qC(i){var m=this._events;if(m!==void 0){var e=m[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}wr.prototype.eventNames=function(){return this._eventsCount>0?fd(this._events):[]};function KC(i,m){for(var e=new Array(m),N=0;N<m;++N)e[N]=i[N];return e}function f1(i,m){for(;m+1<i.length;m++)i[m]=i[m+1];i.pop()}function c1(i){for(var m=new Array(i.length),e=0;e<m.length;++e)m[e]=i[e].listener||i[e];return m}function p1(i,m){return new Promise(function(e,N){function R(G){i.removeListener(m,L),N(G)}function L(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}eI(i,m,L,{once:!0}),m!=="error"&&h1(i,R,{once:!0})})}function h1(i,m,e){typeof i.on=="function"&&eI(i,"error",m,e)}function eI(i,m,e,N){if(typeof i.on=="function")N.once?i.once(m,e):i.on(m,e);else if(typeof i.addEventListener=="function")i.addEventListener(m,function R(L){N.once&&i.removeEventListener(m,R),e(L)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Bm=br((dI,gI)=>{(function(i){typeof dI=="object"&&typeof gI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(L,G,W,D){if(W&&W.call){var H=W;W=null}else var H=R(L,W,"rangeFinder");typeof G=="number"&&(G=i.Pos(G,0));var k=R(L,W,"minFoldSize");function Z(J){var B=H(L,G);if(!B||B.to.line-B.from.line<k)return null;if(D==="fold")return B;for(var V=L.findMarksAt(B.from),Y=0;Y<V.length;++Y)if(V[Y].__isFold){if(!J)return null;B.cleared=!0,V[Y].clear()}return B}var $=Z(!0);if(R(L,W,"scanUp"))for(;!$&&G.line>L.firstLine();)G=i.Pos(G.line-1,0),$=Z(!1);if(!(!$||$.cleared||D==="unfold")){var M=e(L,W,$);i.on(M,"mousedown",function(J){z.clear(),i.e_preventDefault(J)});var z=L.markText($.from,$.to,{replacedWith:M,clearOnEnter:R(L,W,"clearOnEnter"),__isFold:!0});z.on("clear",function(J,B){i.signal(L,"unfold",L,J,B)}),i.signal(L,"fold",L,$.from,$.to)}}function e(L,G,W){var D=R(L,G,"widget");if(typeof D=="function"&&(D=D(W.from,W.to)),typeof D=="string"){var H=document.createTextNode(D);D=document.createElement("span"),D.appendChild(H),D.className="CodeMirror-foldmarker"}else D&&(D=D.cloneNode(!0));return D}i.newFoldFunction=function(L,G){return function(W,D){m(W,D,{rangeFinder:L,widget:G})}},i.defineExtension("foldCode",function(L,G,W){m(this,L,G,W)}),i.defineExtension("isFolded",function(L){for(var G=this.findMarksAt(L),W=0;W<G.length;++W)if(G[W].__isFold)return!0}),i.commands.toggleFold=function(L){L.foldCode(L.getCursor())},i.commands.fold=function(L){L.foldCode(L.getCursor(),null,"fold")},i.commands.unfold=function(L){L.foldCode(L.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(L){L.operation(function(){for(var G=L.firstLine(),W=L.lastLine();G<=W;G++)L.foldCode(i.Pos(G,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(L){L.operation(function(){for(var G=L.firstLine(),W=L.lastLine();G<=W;G++)L.foldCode(i.Pos(G,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var L=Array.prototype.slice.call(arguments,0);return function(G,W){for(var D=0;D<L.length;++D){var H=L[D](G,W);if(H)return H}}}),i.registerHelper("fold","auto",function(L,G){for(var W=L.getHelpers(G,"fold"),D=0;D<W.length;D++){var H=W[D](L,G);if(H)return H}});var N={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function R(L,G,W){if(G&&G[W]!==void 0)return G[W];var D=L.options.foldOptions;return D&&D[W]!==void 0?D[W]:N[W]}i.defineExtension("foldOption",function(L,G){return R(this,L,G)})})});var vI=br((EI,mI)=>{(function(i){typeof EI=="object"&&typeof mI=="object"?i(si(),Bm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(z,J,B){B&&B!=i.Init&&(z.clearGutter(z.state.foldGutter.options.gutter),z.state.foldGutter=null,z.off("gutterClick",H),z.off("changes",Z),z.off("viewportChange",$),z.off("fold",M),z.off("unfold",M),z.off("swapDoc",Z),z.off("optionChange",k)),J&&(z.state.foldGutter=new e(N(J)),D(z),z.on("gutterClick",H),z.on("changes",Z),z.on("viewportChange",$),z.on("fold",M),z.on("unfold",M),z.on("swapDoc",Z),z.on("optionChange",k))});var m=i.Pos;function e(z){this.options=z,this.from=this.to=0}function N(z){return z===!0&&(z={}),z.gutter==null&&(z.gutter="CodeMirror-foldgutter"),z.indicatorOpen==null&&(z.indicatorOpen="CodeMirror-foldgutter-open"),z.indicatorFolded==null&&(z.indicatorFolded="CodeMirror-foldgutter-folded"),z}function R(z,J){for(var B=z.findMarks(m(J,0),m(J+1,0)),V=0;V<B.length;++V)if(B[V].__isFold){var Y=B[V].find(-1);if(Y&&Y.line===J)return B[V]}}function L(z){if(typeof z=="string"){var J=document.createElement("div");return J.className=z+" CodeMirror-guttermarker-subtle",J}else return z.cloneNode(!0)}function G(z,J,B){var V=z.state.foldGutter.options,Y=J-1,q=z.foldOption(V,"minFoldSize"),te=z.foldOption(V,"rangeFinder"),ie=typeof V.indicatorFolded=="string"&&W(V.indicatorFolded),ae=typeof V.indicatorOpen=="string"&&W(V.indicatorOpen);z.eachLine(J,B,function(ge){++Y;var ke=null,ve=ge.gutterMarkers;if(ve&&(ve=ve[V.gutter]),R(z,Y)){if(ie&&ve&&ie.test(ve.className))return;ke=L(V.indicatorFolded)}else{var Te=m(Y,0),Le=te&&te(z,Te);if(Le&&Le.to.line-Le.from.line>=q){if(ae&&ve&&ae.test(ve.className))return;ke=L(V.indicatorOpen)}}!ke&&!ve||z.setGutterMarker(ge,V.gutter,ke)})}function W(z){return new RegExp("(^|\\s)"+z+"(?:$|\\s)\\s*")}function D(z){var J=z.getViewport(),B=z.state.foldGutter;B&&(z.operation(function(){G(z,J.from,J.to)}),B.from=J.from,B.to=J.to)}function H(z,J,B){var V=z.state.foldGutter;if(V){var Y=V.options;if(B==Y.gutter){var q=R(z,J);q?q.clear():z.foldCode(m(J,0),Y)}}}function k(z,J){J=="mode"&&Z(z)}function Z(z){var J=z.state.foldGutter;if(J){var B=J.options;J.from=J.to=0,clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){D(z)},B.foldOnChangeTimeSpan||600)}}function $(z){var J=z.state.foldGutter;if(J){var B=J.options;clearTimeout(J.changeUpdate),J.changeUpdate=setTimeout(function(){var V=z.getViewport();J.from==J.to||V.from-J.to>20||J.from-V.to>20?D(z):z.operation(function(){V.from<J.from&&(G(z,V.from,J.from),J.from=V.from),V.to>J.to&&(G(z,J.to,V.to),J.to=V.to)})},B.updateViewportTimeSpan||400)}}function M(z,J){var B=z.state.foldGutter;if(B){var V=J.line;V>=B.from&&V<B.to&&G(z,V,V+1)}}})});var II=br((xI,CI)=>{(function(i){typeof xI=="object"&&typeof CI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(B,V){return B.line-V.line||B.ch-V.ch}var N="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",R=N+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("<(/?)(["+N+"]["+R+"]*)","g");function G(B,V,Y,q){this.line=V,this.ch=Y,this.cm=B,this.text=B.getLine(V),this.min=q?Math.max(q.from,B.firstLine()):B.firstLine(),this.max=q?Math.min(q.to-1,B.lastLine()):B.lastLine()}function W(B,V){var Y=B.cm.getTokenTypeAt(m(B.line,V));return Y&&/\btag\b/.test(Y)}function D(B){if(!(B.line>=B.max))return B.ch=0,B.text=B.cm.getLine(++B.line),!0}function H(B){if(!(B.line<=B.min))return B.text=B.cm.getLine(--B.line),B.ch=B.text.length,!0}function k(B){for(;;){var V=B.text.indexOf(">",B.ch);if(V==-1){if(D(B))continue;return}if(!W(B,V+1)){B.ch=V+1;continue}var Y=B.text.lastIndexOf("/",V),q=Y>-1&&!/\S/.test(B.text.slice(Y+1,V));return B.ch=V+1,q?"selfClose":"regular"}}function Z(B){for(;;){var V=B.ch?B.text.lastIndexOf("<",B.ch-1):-1;if(V==-1){if(H(B))continue;return}if(!W(B,V+1)){B.ch=V;continue}L.lastIndex=V,B.ch=V;var Y=L.exec(B.text);if(Y&&Y.index==V)return Y}}function $(B){for(;;){L.lastIndex=B.ch;var V=L.exec(B.text);if(!V){if(D(B))continue;return}if(!W(B,V.index+1)){B.ch=V.index+1;continue}return B.ch=V.index+V[0].length,V}}function M(B){for(;;){var V=B.ch?B.text.lastIndexOf(">",B.ch-1):-1;if(V==-1){if(H(B))continue;return}if(!W(B,V+1)){B.ch=V;continue}var Y=B.text.lastIndexOf("/",V),q=Y>-1&&!/\S/.test(B.text.slice(Y+1,V));return B.ch=V+1,q?"selfClose":"regular"}}function z(B,V){for(var Y=[];;){var q=$(B),te,ie=B.line,ae=B.ch-(q?q[0].length:0);if(!q||!(te=k(B)))return;if(te!="selfClose")if(q[1]){for(var ge=Y.length-1;ge>=0;--ge)if(Y[ge]==q[2]){Y.length=ge;break}if(ge<0&&(!V||V==q[2]))return{tag:q[2],from:m(ie,ae),to:m(B.line,B.ch)}}else Y.push(q[2])}}function J(B,V){for(var Y=[];;){var q=M(B);if(!q)return;if(q=="selfClose"){Z(B);continue}var te=B.line,ie=B.ch,ae=Z(B);if(!ae)return;if(ae[1])Y.push(ae[2]);else{for(var ge=Y.length-1;ge>=0;--ge)if(Y[ge]==ae[2]){Y.length=ge;break}if(ge<0&&(!V||V==ae[2]))return{tag:ae[2],from:m(B.line,B.ch),to:m(te,ie)}}}}i.registerHelper("fold","xml",function(B,V){for(var Y=new G(B,V.line,0);;){var q=$(Y);if(!q||Y.line!=V.line)return;var te=k(Y);if(!te)return;if(!q[1]&&te!="selfClose"){var ie=m(Y.line,Y.ch),ae=z(Y,q[2]);return ae&&e(ae.from,ie)>0?{from:ie,to:ae.from}:null}}}),i.findMatchingTag=function(B,V,Y){var q=new G(B,V.line,V.ch,Y);if(!(q.text.indexOf(">")==-1&&q.text.indexOf("<")==-1)){var te=k(q),ie=te&&m(q.line,q.ch),ae=te&&Z(q);if(!(!te||!ae||e(q,V)>0)){var ge={from:m(q.line,q.ch),to:ie,tag:ae[2]};return te=="selfClose"?{open:ge,close:null,at:"open"}:ae[1]?{open:J(q,ae[2]),close:ge,at:"close"}:(q=new G(B,ie.line,ie.ch,Y),{open:ge,close:z(q,ae[2]),at:"open"})}}},i.findEnclosingTag=function(B,V,Y,q){for(var te=new G(B,V.line,V.ch,Y);;){var ie=J(te,q);if(!ie)break;var ae=new G(B,V.line,V.ch,Y),ge=z(ae,ie.tag);if(ge)return{open:ie,close:ge}}},i.scanForClosingTag=function(B,V,Y,q){var te=new G(B,V.line,V.ch,q?{from:0,to:q}:null);return z(te,Y)}})});var bI=br((AI,NI)=>{(function(i){typeof AI=="object"&&typeof NI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(e){return function(N,R){var L=R.line,G=N.getLine(L);function W(M){for(var z,J=R.ch,B=0;;){var V=J<=0?-1:G.lastIndexOf(M[0],J-1);if(V==-1){if(B==1)break;B=1,J=G.length;continue}if(B==1&&V<R.ch)break;if(z=N.getTokenTypeAt(i.Pos(L,V+1)),!/^(comment|string)/.test(z))return{ch:V+1,tokenType:z,pair:M};J=V-1}}function D(M){var z=1,J=N.lastLine(),B,V=M.ch,Y;e:for(var q=L;q<=J;++q)for(var te=N.getLine(q),ie=q==L?V:0;;){var ae=te.indexOf(M.pair[0],ie),ge=te.indexOf(M.pair[1],ie);if(ae<0&&(ae=te.length),ge<0&&(ge=te.length),ie=Math.min(ae,ge),ie==te.length)break;if(N.getTokenTypeAt(i.Pos(q,ie+1))==M.tokenType){if(ie==ae)++z;else if(!--z){B=q,Y=ie;break e}}++ie}return B==null||L==B?null:{from:i.Pos(L,V),to:i.Pos(B,Y)}}for(var H=[],k=0;k<e.length;k++){var Z=W(e[k]);Z&&H.push(Z)}H.sort(function(M,z){return M.ch-z.ch});for(var k=0;k<H.length;k++){var $=D(H[k]);if($)return $}return null}}i.registerHelper("fold","brace",m([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",m([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,N){function R(k){if(k<e.firstLine()||k>e.lastLine())return null;var Z=e.getTokenAt(i.Pos(k,1));if(/\S/.test(Z.string)||(Z=e.getTokenAt(i.Pos(k,Z.end+1))),Z.type!="keyword"||Z.string!="import")return null;for(var $=k,M=Math.min(e.lastLine(),k+10);$<=M;++$){var z=e.getLine($),J=z.indexOf(";");if(J!=-1)return{startCh:Z.end,end:i.Pos($,J)}}}var L=N.line,G=R(L),W;if(!G||R(L-1)||(W=R(L-2))&&W.end.line==L-1)return null;for(var D=G.end;;){var H=R(D.line+1);if(H==null)break;D=H.end}return{from:e.clipPos(i.Pos(L,G.startCh+1)),to:D}}),i.registerHelper("fold","include",function(e,N){function R(H){if(H<e.firstLine()||H>e.lastLine())return null;var k=e.getTokenAt(i.Pos(H,1));if(/\S/.test(k.string)||(k=e.getTokenAt(i.Pos(H,k.end+1))),k.type=="meta"&&k.string.slice(0,8)=="#include")return k.start+8}var L=N.line,G=R(L);if(G==null||R(L-1)!=null)return null;for(var W=L;;){var D=R(W+1);if(D==null)break;++W}return{from:i.Pos(L,G+1),to:e.clipPos(i.Pos(W))}})})});var yI=br((TI,RI)=>{(function(i){typeof TI=="object"&&typeof RI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(J,B,V){if(!B)return J.showHint(V);V&&V.async&&(B.async=!0);var Y={hint:B};if(V)for(var q in V)Y[q]=V[q];return J.showHint(Y)},i.defineExtension("showHint",function(J){J=G(this,this.getCursor("start"),J);var B=this.listSelections();if(!(B.length>1)){if(this.somethingSelected()){if(!J.hint.supportsSelection)return;for(var V=0;V<B.length;V++)if(B[V].head.line!=B[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var Y=this.state.completionActive=new N(this,J);Y.options.hint&&(i.signal(this,"startCompletion",this),Y.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function N(J,B){if(this.cm=J,this.options=B,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;J.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var R=window.requestAnimationFrame||function(J){return setTimeout(J,1e3/60)},L=window.cancelAnimationFrame||clearTimeout;N.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(J,B){var V=J.list[B],Y=this;this.cm.operation(function(){V.hint?V.hint(Y.cm,J,V):Y.cm.replaceRange(W(V),V.from||J.from,V.to||J.to,"complete"),i.signal(J,"pick",V),Y.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(L(this.debounce),this.debounce=0);var J=this.startPos;this.data&&(J=this.data.from);var B=this.cm.getCursor(),V=this.cm.getLine(B.line);if(B.line!=this.startPos.line||V.length-B.ch!=this.startLen-this.startPos.ch||B.ch<J.ch||this.cm.somethingSelected()||!B.ch||this.options.closeCharacters.test(V.charAt(B.ch-1)))this.close();else{var Y=this;this.debounce=R(function(){Y.update()}),this.widget&&this.widget.disable()}},update:function(J){if(this.tick!=null){var B=this,V=++this.tick;$(this.options.hint,this.cm,this.options,function(Y){B.tick==V&&B.finishUpdate(Y,J)})}},finishUpdate:function(J,B){this.data&&i.signal(this.data,"update");var V=this.widget&&this.widget.picked||B&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=J,J&&J.list.length&&(V&&J.list.length==1?this.pick(J,0):(this.widget=new k(this,J),i.signal(J,"shown")))}};function G(J,B,V){var Y=J.options.hintOptions,q={};for(var te in z)q[te]=z[te];if(Y)for(var te in Y)Y[te]!==void 0&&(q[te]=Y[te]);if(V)for(var te in V)V[te]!==void 0&&(q[te]=V[te]);return q.hint.resolve&&(q.hint=q.hint.resolve(J,B)),q}function W(J){return typeof J=="string"?J:J.text}function D(J,B){var V={Up:function(){B.moveFocus(-1)},Down:function(){B.moveFocus(1)},PageUp:function(){B.moveFocus(-B.menuSize()+1,!0)},PageDown:function(){B.moveFocus(B.menuSize()-1,!0)},Home:function(){B.setFocus(0)},End:function(){B.setFocus(B.length-1)},Enter:B.pick,Tab:B.pick,Esc:B.close},Y=/Mac/.test(navigator.platform);Y&&(V["Ctrl-P"]=function(){B.moveFocus(-1)},V["Ctrl-N"]=function(){B.moveFocus(1)});var q=J.options.customKeys,te=q?{}:V;function ie(ke,ve){var Te;typeof ve!="string"?Te=function(Le){return ve(Le,B)}:V.hasOwnProperty(ve)?Te=V[ve]:Te=ve,te[ke]=Te}if(q)for(var ae in q)q.hasOwnProperty(ae)&&ie(ae,q[ae]);var ge=J.options.extraKeys;if(ge)for(var ae in ge)ge.hasOwnProperty(ae)&&ie(ae,ge[ae]);return te}function H(J,B){for(;B&&B!=J;){if(B.nodeName.toUpperCase()==="LI"&&B.parentNode==J)return B;B=B.parentNode}}function k(J,B){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=J,this.data=B,this.picked=!1;var V=this,Y=J.cm,q=Y.getInputField().ownerDocument,te=q.defaultView||q.parentWindow,ie=this.hints=q.createElement("ul");ie.setAttribute("role","listbox"),ie.setAttribute("aria-expanded","true"),ie.id=this.id;var ae=J.cm.options.theme;ie.className="CodeMirror-hints "+ae,this.selectedHint=B.selectedHint||0;for(var ge=B.list,ke=0;ke<ge.length;++ke){var ve=ie.appendChild(q.createElement("li")),Te=ge[ke],Le=m+(ke!=this.selectedHint?"":" "+e);Te.className!=null&&(Le=Te.className+" "+Le),ve.className=Le,ke==this.selectedHint&&ve.setAttribute("aria-selected","true"),ve.id=this.id+"-"+ke,ve.setAttribute("role","option"),Te.render?Te.render(ve,B,Te):ve.appendChild(q.createTextNode(Te.displayText||W(Te))),ve.hintId=ke}var Qe=J.options.container||q.body,me=Y.cursorCoords(J.options.alignWithWord?B.from:null),ar=me.left,Ir=me.bottom,cr=!0,$r=0,je=0;if(Qe!==q.body){var St=["absolute","relative","fixed"].indexOf(te.getComputedStyle(Qe).position)!==-1,Lt=St?Qe:Qe.offsetParent,dr=Lt.getBoundingClientRect(),wt=q.body.getBoundingClientRect();$r=dr.left-wt.left-Lt.scrollLeft,je=dr.top-wt.top-Lt.scrollTop}ie.style.left=ar-$r+"px",ie.style.top=Ir-je+"px";var lr=te.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),ut=te.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);Qe.appendChild(ie),Y.getInputField().setAttribute("aria-autocomplete","list"),Y.getInputField().setAttribute("aria-owns",this.id),Y.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var qe=J.options.moveOnOverlap?ie.getBoundingClientRect():new DOMRect,zr=J.options.paddingForScrollbar?ie.scrollHeight>ie.clientHeight+1:!1,Ar;setTimeout(function(){Ar=Y.getScrollInfo()});var Qr=qe.bottom-ut;if(Qr>0){var gr=qe.bottom-qe.top,Kt=qe.top-(me.bottom-me.top)-2;ut-qe.top<Kt?(gr>Kt&&(ie.style.height=(gr=Kt)+"px"),ie.style.top=(Ir=me.top-gr)-je+"px",cr=!1):ie.style.height=ut-qe.top-2+"px"}var Ge=qe.right-lr;if(zr&&(Ge+=Y.display.nativeBarWidth),Ge>0&&(qe.right-qe.left>lr&&(ie.style.width=lr-5+"px",Ge-=qe.right-qe.left-lr),ie.style.left=(ar=Math.max(me.left-Ge-$r,0))+"px"),zr)for(var ce=ie.firstChild;ce;ce=ce.nextSibling)ce.style.paddingRight=Y.display.nativeBarWidth+"px";if(Y.addKeyMap(this.keyMap=D(J,{moveFocus:function(we,Or){V.changeActive(V.selectedHint+we,Or)},setFocus:function(we){V.changeActive(we)},menuSize:function(){return V.screenAmount()},length:ge.length,close:function(){J.close()},pick:function(){V.pick()},data:B})),J.options.closeOnUnfocus){var vr;Y.on("blur",this.onBlur=function(){vr=setTimeout(function(){J.close()},100)}),Y.on("focus",this.onFocus=function(){clearTimeout(vr)})}Y.on("scroll",this.onScroll=function(){var we=Y.getScrollInfo(),Or=Y.getWrapperElement().getBoundingClientRect();Ar||(Ar=Y.getScrollInfo());var ei=Ir+Ar.top-we.top,Ne=ei-(te.pageYOffset||(q.documentElement||q.body).scrollTop);if(cr||(Ne+=ie.offsetHeight),Ne<=Or.top||Ne>=Or.bottom)return J.close();ie.style.top=ei+"px",ie.style.left=ar+Ar.left-we.left+"px"}),i.on(ie,"dblclick",function(we){var Or=H(ie,we.target||we.srcElement);Or&&Or.hintId!=null&&(V.changeActive(Or.hintId),V.pick())}),i.on(ie,"click",function(we){var Or=H(ie,we.target||we.srcElement);Or&&Or.hintId!=null&&(V.changeActive(Or.hintId),J.options.completeOnSingleClick&&V.pick())}),i.on(ie,"mousedown",function(){setTimeout(function(){Y.focus()},20)});var pr=this.getSelectedHintRange();return(pr.from!==0||pr.to!==0)&&this.scrollToActive(),i.signal(B,"select",ge[this.selectedHint],ie.childNodes[this.selectedHint]),!0}k.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var J=this.completion.cm.getInputField();J.removeAttribute("aria-activedescendant"),J.removeAttribute("aria-owns");var B=this.completion.cm;this.completion.options.closeOnUnfocus&&(B.off("blur",this.onBlur),B.off("focus",this.onFocus)),B.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var J=this;this.keyMap={Enter:function(){J.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(J,B){if(J>=this.data.list.length?J=B?this.data.list.length-1:0:J<0&&(J=B?0:this.data.list.length-1),this.selectedHint!=J){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+e,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=J],V.className+=" "+e,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var J=this.getSelectedHintRange(),B=this.hints.childNodes[J.from],V=this.hints.childNodes[J.to],Y=this.hints.firstChild;B.offsetTop<this.hints.scrollTop?this.hints.scrollTop=B.offsetTop-Y.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+Y.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var J=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-J),to:Math.min(this.data.list.length-1,this.selectedHint+J)}}};function Z(J,B){if(!J.somethingSelected())return B;for(var V=[],Y=0;Y<B.length;Y++)B[Y].supportsSelection&&V.push(B[Y]);return V}function $(J,B,V,Y){if(J.async)J(B,Y,V);else{var q=J(B,V);q&&q.then?q.then(Y):Y(q)}}function M(J,B){var V=J.getHelpers(B,"hint"),Y;if(V.length){var q=function(te,ie,ae){var ge=Z(te,V);function ke(ve){if(ve==ge.length)return ie(null);$(ge[ve],te,ae,function(Te){Te&&Te.list.length>0?ie(Te):ke(ve+1)})}ke(0)};return q.async=!0,q.supportsSelection=!0,q}else return(Y=J.getHelper(J.getCursor(),"hintWords"))?function(te){return i.hint.fromList(te,{words:Y})}:i.hint.anyword?function(te,ie){return i.hint.anyword(te,ie)}:function(){}}i.registerHelper("hint","auto",{resolve:M}),i.registerHelper("hint","fromList",function(J,B){var V=J.getCursor(),Y=J.getTokenAt(V),q,te=i.Pos(V.line,Y.start),ie=V;Y.start<V.ch&&/\w/.test(Y.string.charAt(V.ch-Y.start-1))?q=Y.string.substr(0,V.ch-Y.start):(q="",te=V);for(var ae=[],ge=0;ge<B.words.length;ge++){var ke=B.words[ge];ke.slice(0,q.length)==q&&ae.push(ke)}if(ae.length)return{list:ae,from:te,to:ie}}),i.commands.autocomplete=i.showHint;var z={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})});var Vm=br((SI,LI)=>{(function(i){typeof SI=="object"&&typeof LI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(B){var V=B.flags;return V??(B.ignoreCase?"i":"")+(B.global?"g":"")+(B.multiline?"m":"")}function N(B,V){for(var Y=e(B),q=Y,te=0;te<V.length;te++)q.indexOf(V.charAt(te))==-1&&(q+=V.charAt(te));return Y==q?B:new RegExp(B.source,q)}function R(B){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(B.source)}function L(B,V,Y){V=N(V,"g");for(var q=Y.line,te=Y.ch,ie=B.lastLine();q<=ie;q++,te=0){V.lastIndex=te;var ae=B.getLine(q),ge=V.exec(ae);if(ge)return{from:m(q,ge.index),to:m(q,ge.index+ge[0].length),match:ge}}}function G(B,V,Y){if(!R(V))return L(B,V,Y);V=N(V,"gm");for(var q,te=1,ie=Y.line,ae=B.lastLine();ie<=ae;){for(var ge=0;ge<te&&!(ie>ae);ge++){var ke=B.getLine(ie++);q=q==null?ke:q+`
31
+ `+ke}te=te*2,V.lastIndex=Y.ch;var ve=V.exec(q);if(ve){var Te=q.slice(0,ve.index).split(`
32
+ `),Le=ve[0].split(`
33
+ `),Qe=Y.line+Te.length-1,me=Te[Te.length-1].length;return{from:m(Qe,me),to:m(Qe+Le.length-1,Le.length==1?me+Le[0].length:Le[Le.length-1].length),match:ve}}}}function W(B,V,Y){for(var q,te=0;te<=B.length;){V.lastIndex=te;var ie=V.exec(B);if(!ie)break;var ae=ie.index+ie[0].length;if(ae>B.length-Y)break;(!q||ae>q.index+q[0].length)&&(q=ie),te=ie.index+1}return q}function D(B,V,Y){V=N(V,"g");for(var q=Y.line,te=Y.ch,ie=B.firstLine();q>=ie;q--,te=-1){var ae=B.getLine(q),ge=W(ae,V,te<0?0:ae.length-te);if(ge)return{from:m(q,ge.index),to:m(q,ge.index+ge[0].length),match:ge}}}function H(B,V,Y){if(!R(V))return D(B,V,Y);V=N(V,"gm");for(var q,te=1,ie=B.getLine(Y.line).length-Y.ch,ae=Y.line,ge=B.firstLine();ae>=ge;){for(var ke=0;ke<te&&ae>=ge;ke++){var ve=B.getLine(ae--);q=q==null?ve:ve+`
34
+ `+q}te*=2;var Te=W(q,V,ie);if(Te){var Le=q.slice(0,Te.index).split(`
35
+ `),Qe=Te[0].split(`
36
+ `),me=ae+Le.length,ar=Le[Le.length-1].length;return{from:m(me,ar),to:m(me+Qe.length-1,Qe.length==1?ar+Qe[0].length:Qe[Qe.length-1].length),match:Te}}}}var k,Z;String.prototype.normalize?(k=function(B){return B.normalize("NFD").toLowerCase()},Z=function(B){return B.normalize("NFD")}):(k=function(B){return B.toLowerCase()},Z=function(B){return B});function $(B,V,Y,q){if(B.length==V.length)return Y;for(var te=0,ie=Y+Math.max(0,B.length-V.length);;){if(te==ie)return te;var ae=te+ie>>1,ge=q(B.slice(0,ae)).length;if(ge==Y)return ae;ge>Y?ie=ae:te=ae+1}}function M(B,V,Y,q){if(!V.length)return null;var te=q?k:Z,ie=te(V).split(/\r|\n\r?/);e:for(var ae=Y.line,ge=Y.ch,ke=B.lastLine()+1-ie.length;ae<=ke;ae++,ge=0){var ve=B.getLine(ae).slice(ge),Te=te(ve);if(ie.length==1){var Le=Te.indexOf(ie[0]);if(Le==-1)continue e;var Y=$(ve,Te,Le,te)+ge;return{from:m(ae,$(ve,Te,Le,te)+ge),to:m(ae,$(ve,Te,Le+ie[0].length,te)+ge)}}else{var Qe=Te.length-ie[0].length;if(Te.slice(Qe)!=ie[0])continue e;for(var me=1;me<ie.length-1;me++)if(te(B.getLine(ae+me))!=ie[me])continue e;var ar=B.getLine(ae+ie.length-1),Ir=te(ar),cr=ie[ie.length-1];if(Ir.slice(0,cr.length)!=cr)continue e;return{from:m(ae,$(ve,Te,Qe,te)+ge),to:m(ae+ie.length-1,$(ar,Ir,cr.length,te))}}}}function z(B,V,Y,q){if(!V.length)return null;var te=q?k:Z,ie=te(V).split(/\r|\n\r?/);e:for(var ae=Y.line,ge=Y.ch,ke=B.firstLine()-1+ie.length;ae>=ke;ae--,ge=-1){var ve=B.getLine(ae);ge>-1&&(ve=ve.slice(0,ge));var Te=te(ve);if(ie.length==1){var Le=Te.lastIndexOf(ie[0]);if(Le==-1)continue e;return{from:m(ae,$(ve,Te,Le,te)),to:m(ae,$(ve,Te,Le+ie[0].length,te))}}else{var Qe=ie[ie.length-1];if(Te.slice(0,Qe.length)!=Qe)continue e;for(var me=1,Y=ae-ie.length+1;me<ie.length-1;me++)if(te(B.getLine(Y+me))!=ie[me])continue e;var ar=B.getLine(ae+1-ie.length),Ir=te(ar);if(Ir.slice(Ir.length-ie[0].length)!=ie[0])continue e;return{from:m(ae+1-ie.length,$(ar,Ir,ar.length-ie[0].length,te)),to:m(ae,$(ve,Te,Qe.length,te))}}}}function J(B,V,Y,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=B,Y=Y?B.clipPos(Y):m(0,0),this.pos={from:Y,to:Y};var te;typeof q=="object"?te=q.caseFold:(te=q,q=null),typeof V=="string"?(te==null&&(te=!1),this.matches=function(ie,ae){return(ie?z:M)(B,V,ae,te)}):(V=N(V,"gm"),!q||q.multiline!==!1?this.matches=function(ie,ae){return(ie?H:G)(B,V,ae)}:this.matches=function(ie,ae){return(ie?D:L)(B,V,ae)})}J.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(B){var V=this.doc.clipPos(B?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=m(V.line,V.ch),B?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),i.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var Y=this.matches(B,V);if(this.afterEmptyMatch=Y&&i.cmpPos(Y.from,Y.to)==0,Y)return this.pos=Y,this.atOccurrence=!0,this.pos.match||!0;var q=m(B?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(B,V){if(this.atOccurrence){var Y=i.splitLines(B);this.doc.replaceRange(Y,this.pos.from,this.pos.to,V),this.pos.to=m(this.pos.from.line+Y.length-1,Y[Y.length-1].length+(Y.length==1?this.pos.from.ch:0))}}},i.defineExtension("getSearchCursor",function(B,V,Y){return new J(this.doc,B,V,Y)}),i.defineDocExtension("getSearchCursor",function(B,V,Y){return new J(this,B,V,Y)}),i.defineExtension("selectMatches",function(B,V){for(var Y=[],q=this.getSearchCursor(B,this.getCursor("from"),V);q.findNext()&&!(i.cmpPos(q.to(),this.getCursor("to"))>0);)Y.push({anchor:q.from(),head:q.to()});Y.length&&this.setSelections(Y,0)})})});var OI=br((wI,UI)=>{(function(i){typeof wI=="object"&&typeof UI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("annotateScrollbar",function(e){return typeof e=="string"&&(e={className:e}),new m(this,e)}),i.defineOption("scrollButtonHeight",0);function m(e,N){this.cm=e,this.options=N,this.buttonHeight=N.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function R(G){clearTimeout(L.doRedraw),L.doRedraw=setTimeout(function(){L.redraw()},G)}var L=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(L.doUpdate),L.doUpdate=setTimeout(function(){L.computeScale()&&R(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),N.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){R(250)})}m.prototype.computeScale=function(){var e=this.cm,N=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(N!=this.hScale)return this.hScale=N,!0},m.prototype.update=function(e){this.annotations=e,this.redraw()},m.prototype.redraw=function(e){e!==!1&&this.computeScale();var N=this.cm,R=this.hScale,L=document.createDocumentFragment(),G=this.annotations,W=N.getOption("lineWrapping"),D=W&&N.defaultTextHeight()*1.5,H=null,k=null;function Z(te,ie){if(H!=te.line){H=te.line,k=N.getLineHandle(te.line);var ae=N.getLineHandleVisualStart(k);ae!=k&&(H=N.getLineNumber(ae),k=ae)}if(k.widgets&&k.widgets.length||W&&k.height>D)return N.charCoords(te,"local")[ie?"top":"bottom"];var ge=N.heightAtLine(k,"local");return ge+(ie?0:k.height)}var $=N.lastLine();if(N.display.barWidth)for(var M=0,z;M<G.length;M++){var J=G[M];if(!(J.to.line>$)){for(var B=z||Z(J.from,!0)*R,V=Z(J.to,!1)*R;M<G.length-1&&!(G[M+1].to.line>$||(z=Z(G[M+1].from,!0)*R,z>V+.9));)J=G[++M],V=Z(J.to,!1)*R;if(V!=B){var Y=Math.max(V-B,3),q=L.appendChild(document.createElement("div"));q.style.cssText="position: absolute; right: 0px; width: "+Math.max(N.display.barWidth-1,2)+"px; top: "+(B+this.buttonHeight)+"px; height: "+Y+"px",q.className=this.options.className,J.id&&q.setAttribute("annotation-id",J.id)}}}this.div.textContent="",this.div.appendChild(L)},m.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}})});var BI=br((GI,FI)=>{(function(i){typeof GI=="object"&&typeof FI=="object"?i(si(),Vm(),OI()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(R,L,G){return typeof G=="string"&&(G={className:G}),G||(G={}),new m(this,R,L,G)});function m(R,L,G,W){this.cm=R,this.options=W;var D={listenForChanges:!1};for(var H in W)D[H]=W[H];D.className||(D.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(D),this.query=L,this.caseFold=G,this.gap={from:R.firstLine(),to:R.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var k=this;R.on("change",this.changeHandler=function(Z,$){k.onChange($)})}var e=1e3;m.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length;R++){var L=this.matches[R];if(L.from.line>=this.gap.to)break;L.to.line>=this.gap.from&&this.matches.splice(R--,1)}for(var G=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),W=this.options&&this.options.maxMatches||e;G.findNext();){var L={from:G.from(),to:G.to()};if(L.from.line>=this.gap.to||(this.matches.splice(R++,0,L),this.matches.length>W))break}this.gap=null}};function N(R,L,G){return R<=L?R:Math.max(L,R+G)}m.prototype.onChange=function(R){var L=R.from.line,G=i.changeEnd(R).line,W=G-R.to.line;if(this.gap?(this.gap.from=Math.min(N(this.gap.from,L,W),R.from.line),this.gap.to=Math.max(N(this.gap.to,L,W),R.from.line)):this.gap={from:R.from.line,to:G+1},W)for(var D=0;D<this.matches.length;D++){var H=this.matches[D],k=N(H.from.line,L,W);k!=H.from.line&&(H.from=i.Pos(k,H.from.ch));var Z=N(H.to.line,L,W);Z!=H.to.line&&(H.to=i.Pos(Z,H.to.ch))}clearTimeout(this.update);var $=this;this.update=setTimeout(function(){$.updateAfterChange()},250)},m.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},m.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var DI=br((VI,WI)=>{(function(i){typeof VI=="object"&&typeof WI=="object"?i(si(),BI()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var m={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e($){this.options={};for(var M in m)this.options[M]=($&&$.hasOwnProperty(M)?$:m)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function($,M,z){if(z&&z!=i.Init&&(W($),clearTimeout($.state.matchHighlighter.timeout),$.state.matchHighlighter=null,$.off("cursorActivity",N),$.off("focus",R)),M){var J=$.state.matchHighlighter=new e(M);$.hasFocus()?(J.active=!0,D($)):$.on("focus",R),$.on("cursorActivity",N)}});function N($){var M=$.state.matchHighlighter;(M.active||$.hasFocus())&&L($,M)}function R($){var M=$.state.matchHighlighter;M.active||(M.active=!0,L($,M))}function L($,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){D($)},M.options.delay)}function G($,M,z,J){var B=$.state.matchHighlighter;if($.addOverlay(B.overlay=Z(M,z,J)),B.options.annotateScrollbar&&$.showMatchesOnScrollbar){var V=z?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;B.matchesonscroll=$.showMatchesOnScrollbar(V,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function W($){var M=$.state.matchHighlighter;M.overlay&&($.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function D($){$.operation(function(){var M=$.state.matchHighlighter;if(W($),!$.somethingSelected()&&M.options.showToken){for(var z=M.options.showToken===!0?/[\w$]/:M.options.showToken,J=$.getCursor(),B=$.getLine(J.line),V=J.ch,Y=V;V&&z.test(B.charAt(V-1));)--V;for(;Y<B.length&&z.test(B.charAt(Y));)++Y;V<Y&&G($,B.slice(V,Y),z,M.options.style);return}var q=$.getCursor("from"),te=$.getCursor("to");if(q.line==te.line&&!(M.options.wordsOnly&&!H($,q,te))){var ie=$.getRange(q,te);M.options.trim&&(ie=ie.replace(/^\s+|\s+$/g,"")),ie.length>=M.options.minChars&&G($,ie,!1,M.options.style)}})}function H($,M,z){var J=$.getRange(M,z);if(J.match(/^\w+$/)!==null){if(M.ch>0){var B={line:M.line,ch:M.ch-1},V=$.getRange(B,M);if(V.match(/\W/)===null)return!1}if(z.ch<$.getLine(M.line).length){var B={line:z.line,ch:z.ch+1},V=$.getRange(z,B);if(V.match(/\W/)===null)return!1}return!0}else return!1}function k($,M){return(!$.start||!M.test($.string.charAt($.start-1)))&&($.pos==$.string.length||!M.test($.string.charAt($.pos)))}function Z($,M,z){return{token:function(J){if(J.match($)&&(!M||k(J,M)))return z;J.next(),J.skipTo($.charAt(0))||J.skipToEnd()}}}})});var QI=br((MI,ZI)=>{(function(i){typeof MI=="object"&&typeof ZI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var m=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,N={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function R(k){return k&&k.bracketRegex||/[(){}[\]]/}function L(k,Z,$){var M=k.getLineHandle(Z.line),z=Z.ch-1,J=$&&$.afterCursor;J==null&&(J=/(^| )cm-fat-cursor($| )/.test(k.getWrapperElement().className));var B=R($),V=!J&&z>=0&&B.test(M.text.charAt(z))&&N[M.text.charAt(z)]||B.test(M.text.charAt(z+1))&&N[M.text.charAt(++z)];if(!V)return null;var Y=V.charAt(1)==">"?1:-1;if($&&$.strict&&Y>0!=(z==Z.ch))return null;var q=k.getTokenTypeAt(e(Z.line,z+1)),te=G(k,e(Z.line,z+(Y>0?1:0)),Y,q,$);return te==null?null:{from:e(Z.line,z),to:te&&te.pos,match:te&&te.ch==V.charAt(0),forward:Y>0}}function G(k,Z,$,M,z){for(var J=z&&z.maxScanLineLength||1e4,B=z&&z.maxScanLines||1e3,V=[],Y=R(z),q=$>0?Math.min(Z.line+B,k.lastLine()+1):Math.max(k.firstLine()-1,Z.line-B),te=Z.line;te!=q;te+=$){var ie=k.getLine(te);if(ie){var ae=$>0?0:ie.length-1,ge=$>0?ie.length:-1;if(!(ie.length>J))for(te==Z.line&&(ae=Z.ch-($<0?1:0));ae!=ge;ae+=$){var ke=ie.charAt(ae);if(Y.test(ke)&&(M===void 0||(k.getTokenTypeAt(e(te,ae+1))||"")==(M||""))){var ve=N[ke];if(ve&&ve.charAt(1)==">"==$>0)V.push(ke);else if(V.length)V.pop();else return{pos:e(te,ae),ch:ke}}}}}return te-$==($>0?k.lastLine():k.firstLine())?!1:null}function W(k,Z,$){for(var M=k.state.matchBrackets.maxHighlightLineLength||1e3,z=$&&$.highlightNonMatching,J=[],B=k.listSelections(),V=0;V<B.length;V++){var Y=B[V].empty()&&L(k,B[V].head,$);if(Y&&(Y.match||z!==!1)&&k.getLine(Y.from.line).length<=M){var q=Y.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";J.push(k.markText(Y.from,e(Y.from.line,Y.from.ch+1),{className:q})),Y.to&&k.getLine(Y.to.line).length<=M&&J.push(k.markText(Y.to,e(Y.to.line,Y.to.ch+1),{className:q}))}}if(J.length){m&&k.state.focused&&k.focus();var te=function(){k.operation(function(){for(var ie=0;ie<J.length;ie++)J[ie].clear()})};if(Z)setTimeout(te,800);else return te}}function D(k){k.operation(function(){k.state.matchBrackets.currentlyHighlighted&&(k.state.matchBrackets.currentlyHighlighted(),k.state.matchBrackets.currentlyHighlighted=null),k.state.matchBrackets.currentlyHighlighted=W(k,!1,k.state.matchBrackets)})}function H(k){k.state.matchBrackets&&k.state.matchBrackets.currentlyHighlighted&&(k.state.matchBrackets.currentlyHighlighted(),k.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(k,Z,$){$&&$!=i.Init&&(k.off("cursorActivity",D),k.off("focus",D),k.off("blur",H),H(k)),Z&&(k.state.matchBrackets=typeof Z=="object"?Z:{},k.on("cursorActivity",D),k.on("focus",D),k.on("blur",H))}),i.defineExtension("matchBrackets",function(){W(this,!0)}),i.defineExtension("findMatchingBracket",function(k,Z,$){return($||typeof Z=="boolean")&&($?($.strict=Z,Z=$):Z=Z?{strict:!0}:null),L(this,k,Z)}),i.defineExtension("scanForBracket",function(k,Z,$,M){return G(this,k,Z,$,M)})})});var XI=br((PI,kI)=>{(function(i){typeof PI=="object"&&typeof kI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(m,e,N,R){var L=i.getMode(i.defaults,e),G=R&&R.tabSize||i.defaults.tabSize;if(N.appendChild){var W=/MSIE \d/.test(navigator.userAgent),D=W&&(document.documentMode==null||document.documentMode<9),H=N,k=0;H.textContent="",N=function(V,Y){if(V==`
37
+ `){H.appendChild(document.createTextNode(D?"\r":V)),k=0;return}for(var q="",te=0;;){var ie=V.indexOf(" ",te);if(ie==-1){q+=V.slice(te),k+=V.length-te;break}else{k+=ie-te,q+=V.slice(te,ie);var ae=G-k%G;k+=ae;for(var ge=0;ge<ae;++ge)q+=" ";te=ie+1}}if(Y){var ke=H.appendChild(document.createElement("span"));ke.className="cm-"+Y.replace(/ +/g," cm-"),ke.appendChild(document.createTextNode(q))}else H.appendChild(document.createTextNode(q))}}for(var Z=i.splitLines(m),$=R&&R.state||i.startState(L),M=0,z=Z.length;M<z;++M){M&&N(`
38
+ `);var J=new i.StringStream(Z[M],null,{lookAhead:function(V){return Z[M+V]},baseToken:function(){}});for(!J.string&&L.blankLine&&L.blankLine($);!J.eol();){var B=L.token(J,$);N(J.current(),B,M,J.start,$,L),J.start=J.pos}}}})});var q1={};_m(q1,{Yasqe:()=>jf,default:()=>j1});var dh=Yt(si());function $m(i,m,e){return e||(e=i.getDoc().getCursor()),m||(m=i.getTokenAt(e)),jm(i,zm(i,m,e),e)}function zm(i,m,e){var N=i.getTokenAt({line:e.line,ch:m.start});return(m.type==="punc"||m.type==="error")&&!m.state.possibleFullIri&&!m.state.inPrefixDecl?(m.state.possibleCurrent=m.state.possibleNext,m):N.type==="punc"&&!N.state.possibleFullIri&&!N.state.inPrefixDecl?m:N.type!=null&&N.type!="ws"&&m.type!=null&&m.type!="ws"?(m.start=N.start,m.string=N.string+m.string,zm(i,m,{line:e.line,ch:N.start})):(m.type!=null&&m.type=="ws"&&(m.start=m.start+1,m.string=m.string.substring(1)),m)}function jm(i,m,e){if(m.string.indexOf(" ")>=0){let R=m.string.indexOf(" ");return m.string=m.string.substr(0,R),m.end=m.start+m.string.length,m}if(!m.type)return m;var N=i.getTokenAt({line:e.line,ch:m.end+1});return N.type!=="ws"&&m.state.possibleFullIri&&m.type!==null&&m.type!=="ws"&&N.end!==m.end?(m.end=N.end,m.string=m.string+N.string,jm(i,m,{line:e.line,ch:N.end})):(m.type==="ws"&&(m.end=m.end+1,m.string=m.string.substring(m.string.length-1)),m)}function _E(i,m,e){var N=i.getTokenAt({line:m,ch:e.start});return N!=null&&N.type=="ws"&&(N=_E(i,m,N)),N}function Sf(i,m,e){e==null&&(e=1);var N=i.getTokenAt({line:m,ch:e});if(!(N==null||N==null||N.end<e))return N.type=="ws"?Sf(i,m,N.end+1):N}var Fh="PREFIX ";function qm(i){for(var m=i.getDoc().lastLine(),e=0;e<=m;++e){let N=Km(i,e);if(N!=null&&N>=0)return e}}function Km(i,m,e=0,N){if(N||(N=i.getDoc().getLine(m)),!N)return;N=N.toUpperCase();let R=N.indexOf(Fh,e);if(R>=0&&i.getTokenTypeAt(dh.default.Pos(m,R+1))==="keyword")return R}function ev(i,m){var e=m.line,N=i.getDoc().getLine(e);function R(){for(var V=!1,Y=e-1;Y>=0;Y--)if(i.getDoc().getLine(Y).toUpperCase().indexOf(Fh)>=0){V=!0;break}return V}var L=function(V,Y){var q=i.getTokenAt(dh.default.Pos(V,Y+1));if(!q||q.type!="keyword")return-1;var te=Sf(i,V,q.end+1);if(!te||te.type!="string-2")return-1;var ie=Sf(i,V,te.end+1);return!ie||ie.type!="variable-3"?-1:ie.end};if(!R()){var G=Km(i,e,m.ch,N);if(G!=null){for(var W="{",D=!1,H=i.getDoc().lastLine(),k,Z=L(e,G),$=e,M=e;M<=H&&!D;++M)for(var z=i.getDoc().getLine(M),J=M==e?G+1:0;;){!D&&z.indexOf(W)>=0&&(D=!0);var B=z.toUpperCase().indexOf(Fh,J);if(B>=0)(k=L(M,B))>0&&(Z=k,$=M,J=Z),J++;else break}return{from:dh.default.Pos(e,G+Fh.length),to:dh.default.Pos($,Z)}}}}function tv(i,m){var e=i.getPrefixesFromQuery();if(typeof m=="string")rv(i,m);else for(var N in m)N in e||rv(i,N+": <"+m[N]+">");i.collapsePrefixes(!1)}function rv(i,m){i.getDoc().replaceRange("PREFIX "+m+`
39
+ `,{line:0,ch:0}),i.collapsePrefixes(!1)}function iv(i,m){var e=function(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var N in m)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+N+":\\s*"+e("<"+m[N]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function sv(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:hv,setPrototypeOf:nv,isFrozen:lA,getPrototypeOf:uA,getOwnPropertyDescriptor:fA}=Object,{freeze:pi,seal:xs,create:em}=Object,{apply:rm,construct:tm}=typeof Reflect<"u"&&Reflect;pi||(pi=function(m){return m});xs||(xs=function(m){return m});rm||(rm=function(m,e){for(var N=arguments.length,R=new Array(N>2?N-2:0),L=2;L<N;L++)R[L-2]=arguments[L];return m.apply(e,R)});tm||(tm=function(m){for(var e=arguments.length,N=new Array(e>1?e-1:0),R=1;R<e;R++)N[R-1]=arguments[R];return new m(...N)});var Bh=hi(Array.prototype.forEach),cA=hi(Array.prototype.lastIndexOf),ov=hi(Array.prototype.pop),gh=hi(Array.prototype.push),pA=hi(Array.prototype.splice),Wh=hi(String.prototype.toLowerCase),JE=hi(String.prototype.toString),$E=hi(String.prototype.match),Eh=hi(String.prototype.replace),hA=hi(String.prototype.indexOf),dA=hi(String.prototype.trim),js=hi(Object.prototype.hasOwnProperty),ci=hi(RegExp.prototype.test),mh=gA(TypeError);function hi(i){return function(m){m instanceof RegExp&&(m.lastIndex=0);for(var e=arguments.length,N=new Array(e>1?e-1:0),R=1;R<e;R++)N[R-1]=arguments[R];return rm(i,m,N)}}function gA(i){return function(){for(var m=arguments.length,e=new Array(m),N=0;N<m;N++)e[N]=arguments[N];return tm(i,e)}}function nr(i,m){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wh;nv&&nv(i,null);let N=m.length;for(;N--;){let R=m[N];if(typeof R=="string"){let L=e(R);L!==R&&(lA(m)||(m[N]=L),R=L)}i[R]=!0}return i}function EA(i){for(let m=0;m<i.length;m++)js(i,m)||(i[m]=null);return i}function Dn(i){let m=em(null);for(let[e,N]of hv(i))js(i,e)&&(Array.isArray(N)?m[e]=EA(N):N&&typeof N=="object"&&N.constructor===Object?m[e]=Dn(N):m[e]=N);return m}function vh(i,m){for(;i!==null;){let N=fA(i,m);if(N){if(N.get)return hi(N.get);if(typeof N.value=="function")return hi(N.value)}i=uA(i)}function e(){return null}return e}var av=pi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),zE=pi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jE=pi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),mA=pi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),qE=pi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),vA=pi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),lv=pi(["#text"]),uv=pi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),KE=pi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),fv=pi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Vh=pi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),xA=xs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),CA=xs(/<%[\w\W]*|[\w\W]*%>/gm),IA=xs(/\$\{[\w\W]*/gm),AA=xs(/^data-[\-\w.\u00B7-\uFFFF]+$/),NA=xs(/^aria-[\-\w]+$/),dv=xs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),bA=xs(/^(?:\w+script|data):/i),TA=xs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gv=xs(/^html$/i),RA=xs(/^[a-z][.\w]*(-[.\w]+)+$/i),cv=Object.freeze({__proto__:null,ARIA_ATTR:NA,ATTR_WHITESPACE:TA,CUSTOM_ELEMENT:RA,DATA_ATTR:AA,DOCTYPE_NAME:gv,ERB_EXPR:CA,IS_ALLOWED_URI:dv,IS_SCRIPT_OR_DATA:bA,MUSTACHE_EXPR:xA,TMPLIT_EXPR:IA}),xh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},yA=function(){return typeof window>"u"?null:window},SA=function(m,e){if(typeof m!="object"||typeof m.createPolicy!="function")return null;let N=null,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(N=e.getAttribute(R));let L="dompurify"+(N?"#"+N:"");try{return m.createPolicy(L,{createHTML(G){return G},createScriptURL(G){return G}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}},pv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ev(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:yA(),m=De=>Ev(De);if(m.version="3.3.1",m.removed=[],!i||!i.document||i.document.nodeType!==xh.document||!i.Element)return m.isSupported=!1,m;let{document:e}=i,N=e,R=N.currentScript,{DocumentFragment:L,HTMLTemplateElement:G,Node:W,Element:D,NodeFilter:H,NamedNodeMap:k=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:Z,DOMParser:$,trustedTypes:M}=i,z=D.prototype,J=vh(z,"cloneNode"),B=vh(z,"remove"),V=vh(z,"nextSibling"),Y=vh(z,"childNodes"),q=vh(z,"parentNode");if(typeof G=="function"){let De=e.createElement("template");De.content&&De.content.ownerDocument&&(e=De.content.ownerDocument)}let te,ie="",{implementation:ae,createNodeIterator:ge,createDocumentFragment:ke,getElementsByTagName:ve}=e,{importNode:Te}=N,Le=pv();m.isSupported=typeof hv=="function"&&typeof q=="function"&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Qe,ERB_EXPR:me,TMPLIT_EXPR:ar,DATA_ATTR:Ir,ARIA_ATTR:cr,IS_SCRIPT_OR_DATA:$r,ATTR_WHITESPACE:je,CUSTOM_ELEMENT:St}=cv,{IS_ALLOWED_URI:Lt}=cv,dr=null,wt=nr({},[...av,...zE,...jE,...qE,...lv]),lr=null,ut=nr({},[...uv,...KE,...fv,...Vh]),qe=Object.seal(em(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),zr=null,Ar=null,Qr=Object.seal(em(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),gr=!0,Kt=!0,Ge=!1,ce=!0,vr=!1,pr=!0,we=!1,Or=!1,ei=!1,Ne=!1,Ut=!1,ft=!1,Nt=!0,rs=!1,We="user-content-",ct=!0,Ue=!1,tr={},at=null,pt=nr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Nr=null,ri=nr({},["audio","video","img","source","image","track"]),Gi=null,ti=nr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",ii="http://www.w3.org/2000/svg",Tr="http://www.w3.org/1999/xhtml",Ot=Tr,Fe=!1,ni=null,Pr=nr({},[bt,ii,Tr],JE),ur=nr({},["mi","mo","mn","ms","mtext"]),Er=nr({},["annotation-xml"]),ts=nr({},["title","style","font","a","script"]),ir=null,is=["application/xhtml+xml","text/html"],ht="text/html",Wr=null,mi=null,bs=e.createElement("form"),rn=function(K){return K instanceof RegExp||K instanceof Function},tn=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(mi&&mi===K)){if((!K||typeof K!="object")&&(K={}),K=Dn(K),ir=is.indexOf(K.PARSER_MEDIA_TYPE)===-1?ht:K.PARSER_MEDIA_TYPE,Wr=ir==="application/xhtml+xml"?JE:Wh,dr=js(K,"ALLOWED_TAGS")?nr({},K.ALLOWED_TAGS,Wr):wt,lr=js(K,"ALLOWED_ATTR")?nr({},K.ALLOWED_ATTR,Wr):ut,ni=js(K,"ALLOWED_NAMESPACES")?nr({},K.ALLOWED_NAMESPACES,JE):Pr,Gi=js(K,"ADD_URI_SAFE_ATTR")?nr(Dn(ti),K.ADD_URI_SAFE_ATTR,Wr):ti,Nr=js(K,"ADD_DATA_URI_TAGS")?nr(Dn(ri),K.ADD_DATA_URI_TAGS,Wr):ri,at=js(K,"FORBID_CONTENTS")?nr({},K.FORBID_CONTENTS,Wr):pt,zr=js(K,"FORBID_TAGS")?nr({},K.FORBID_TAGS,Wr):Dn({}),Ar=js(K,"FORBID_ATTR")?nr({},K.FORBID_ATTR,Wr):Dn({}),tr=js(K,"USE_PROFILES")?K.USE_PROFILES:!1,gr=K.ALLOW_ARIA_ATTR!==!1,Kt=K.ALLOW_DATA_ATTR!==!1,Ge=K.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,vr=K.SAFE_FOR_TEMPLATES||!1,pr=K.SAFE_FOR_XML!==!1,we=K.WHOLE_DOCUMENT||!1,Ne=K.RETURN_DOM||!1,Ut=K.RETURN_DOM_FRAGMENT||!1,ft=K.RETURN_TRUSTED_TYPE||!1,ei=K.FORCE_BODY||!1,Nt=K.SANITIZE_DOM!==!1,rs=K.SANITIZE_NAMED_PROPS||!1,ct=K.KEEP_CONTENT!==!1,Ue=K.IN_PLACE||!1,Lt=K.ALLOWED_URI_REGEXP||dv,Ot=K.NAMESPACE||Tr,ur=K.MATHML_TEXT_INTEGRATION_POINTS||ur,Er=K.HTML_INTEGRATION_POINTS||Er,qe=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&rn(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(qe.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&rn(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(qe.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(qe.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),vr&&(Kt=!1),Ut&&(Ne=!0),tr&&(dr=nr({},lv),lr=[],tr.html===!0&&(nr(dr,av),nr(lr,uv)),tr.svg===!0&&(nr(dr,zE),nr(lr,KE),nr(lr,Vh)),tr.svgFilters===!0&&(nr(dr,jE),nr(lr,KE),nr(lr,Vh)),tr.mathMl===!0&&(nr(dr,qE),nr(lr,fv),nr(lr,Vh))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?Qr.tagCheck=K.ADD_TAGS:(dr===wt&&(dr=Dn(dr)),nr(dr,K.ADD_TAGS,Wr))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?Qr.attributeCheck=K.ADD_ATTR:(lr===ut&&(lr=Dn(lr)),nr(lr,K.ADD_ATTR,Wr))),K.ADD_URI_SAFE_ATTR&&nr(Gi,K.ADD_URI_SAFE_ATTR,Wr),K.FORBID_CONTENTS&&(at===pt&&(at=Dn(at)),nr(at,K.FORBID_CONTENTS,Wr)),K.ADD_FORBID_CONTENTS&&(at===pt&&(at=Dn(at)),nr(at,K.ADD_FORBID_CONTENTS,Wr)),ct&&(dr["#text"]=!0),we&&nr(dr,["html","head","body"]),dr.table&&(nr(dr,["tbody"]),delete zr.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw mh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw mh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=K.TRUSTED_TYPES_POLICY,ie=te.createHTML("")}else te===void 0&&(te=SA(M,R)),te!==null&&typeof ie=="string"&&(ie=te.createHTML(""));pi&&pi(K),mi=K}},Bo=nr({},[...zE,...jE,...mA]),sn=nr({},[...qE,...vA]),ya=function(K){let Ee=q(K);(!Ee||!Ee.tagName)&&(Ee={namespaceURI:Ot,tagName:"template"});let Se=Wh(K.tagName),xr=Wh(Ee.tagName);return ni[K.namespaceURI]?K.namespaceURI===ii?Ee.namespaceURI===Tr?Se==="svg":Ee.namespaceURI===bt?Se==="svg"&&(xr==="annotation-xml"||ur[xr]):!!Bo[Se]:K.namespaceURI===bt?Ee.namespaceURI===Tr?Se==="math":Ee.namespaceURI===ii?Se==="math"&&Er[xr]:!!sn[Se]:K.namespaceURI===Tr?Ee.namespaceURI===ii&&!Er[xr]||Ee.namespaceURI===bt&&!ur[xr]?!1:!sn[Se]&&(ts[Se]||!Bo[Se]):!!(ir==="application/xhtml+xml"&&ni[K.namespaceURI]):!1},Zt=function(K){gh(m.removed,{element:K});try{q(K).removeChild(K)}catch{B(K)}},Fi=function(K,Ee){try{gh(m.removed,{attribute:Ee.getAttributeNode(K),from:Ee})}catch{gh(m.removed,{attribute:null,from:Ee})}if(Ee.removeAttribute(K),K==="is")if(Ne||Ut)try{Zt(Ee)}catch{}else try{Ee.setAttribute(K,"")}catch{}},nn=function(K){let Ee=null,Se=null;if(ei)K="<remove></remove>"+K;else{let Ke=$E(K,/^[\r\n\t ]+/);Se=Ke&&Ke[0]}ir==="application/xhtml+xml"&&Ot===Tr&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");let xr=te?te.createHTML(K):K;if(Ot===Tr)try{Ee=new $().parseFromString(xr,ir)}catch{}if(!Ee||!Ee.documentElement){Ee=ae.createDocument(Ot,"template",null);try{Ee.documentElement.innerHTML=Fe?ie:xr}catch{}}let et=Ee.body||Ee.documentElement;return K&&Se&&et.insertBefore(e.createTextNode(Se),et.childNodes[0]||null),Ot===Tr?ve.call(Ee,we?"html":"body")[0]:we?Ee.documentElement:et},Vo=function(K){return ge.call(K.ownerDocument||K,K,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},Pn=function(K){return K instanceof Z&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof k)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},on=function(K){return typeof W=="function"&&K instanceof W};function oi(De,K,Ee){Bh(De,Se=>{Se.call(m,K,Ee,mi)})}let an=function(K){let Ee=null;if(oi(Le.beforeSanitizeElements,K,null),Pn(K))return Zt(K),!0;let Se=Wr(K.nodeName);if(oi(Le.uponSanitizeElement,K,{tagName:Se,allowedTags:dr}),pr&&K.hasChildNodes()&&!on(K.firstElementChild)&&ci(/<[/\w!]/g,K.innerHTML)&&ci(/<[/\w!]/g,K.textContent)||K.nodeType===xh.progressingInstruction||pr&&K.nodeType===xh.comment&&ci(/<[/\w]/g,K.data))return Zt(K),!0;if(!(Qr.tagCheck instanceof Function&&Qr.tagCheck(Se))&&(!dr[Se]||zr[Se])){if(!zr[Se]&&Wo(Se)&&(qe.tagNameCheck instanceof RegExp&&ci(qe.tagNameCheck,Se)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(Se)))return!1;if(ct&&!at[Se]){let xr=q(K)||K.parentNode,et=Y(K)||K.childNodes;if(et&&xr){let Ke=et.length;for(let Ae=Ke-1;Ae>=0;--Ae){let dt=J(et[Ae],!0);dt.__removalCount=(K.__removalCount||0)+1,xr.insertBefore(dt,V(K))}}}return Zt(K),!0}return K instanceof D&&!ya(K)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&ci(/<\/no(script|embed|frames)/i,K.innerHTML)?(Zt(K),!0):(vr&&K.nodeType===xh.text&&(Ee=K.textContent,Bh([Qe,me,ar],xr=>{Ee=Eh(Ee,xr," ")}),K.textContent!==Ee&&(gh(m.removed,{element:K.cloneNode()}),K.textContent=Ee)),oi(Le.afterSanitizeElements,K,null),!1)},Bi=function(K,Ee,Se){if(Nt&&(Ee==="id"||Ee==="name")&&(Se in e||Se in bs))return!1;if(!(Kt&&!Ar[Ee]&&ci(Ir,Ee))){if(!(gr&&ci(cr,Ee))){if(!(Qr.attributeCheck instanceof Function&&Qr.attributeCheck(Ee,K))){if(!lr[Ee]||Ar[Ee]){if(!(Wo(K)&&(qe.tagNameCheck instanceof RegExp&&ci(qe.tagNameCheck,K)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(K))&&(qe.attributeNameCheck instanceof RegExp&&ci(qe.attributeNameCheck,Ee)||qe.attributeNameCheck instanceof Function&&qe.attributeNameCheck(Ee,K))||Ee==="is"&&qe.allowCustomizedBuiltInElements&&(qe.tagNameCheck instanceof RegExp&&ci(qe.tagNameCheck,Se)||qe.tagNameCheck instanceof Function&&qe.tagNameCheck(Se))))return!1}else if(!Gi[Ee]){if(!ci(Lt,Eh(Se,je,""))){if(!((Ee==="src"||Ee==="xlink:href"||Ee==="href")&&K!=="script"&&hA(Se,"data:")===0&&Nr[K])){if(!(Ge&&!ci($r,Eh(Se,je,"")))){if(Se)return!1}}}}}}}return!0},Wo=function(K){return K!=="annotation-xml"&&$E(K,St)},Do=function(K){oi(Le.beforeSanitizeAttributes,K,null);let{attributes:Ee}=K;if(!Ee||Pn(K))return;let Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:lr,forceKeepAttr:void 0},xr=Ee.length;for(;xr--;){let et=Ee[xr],{name:Ke,namespaceURI:Ae,value:dt}=et,vi=Wr(Ke),Qt=dt,Ye=Ke==="value"?Qt:dA(Qt);if(Se.attrName=vi,Se.attrValue=Ye,Se.keepAttr=!0,Se.forceKeepAttr=void 0,oi(Le.uponSanitizeAttribute,K,Se),Ye=Se.attrValue,rs&&(vi==="id"||vi==="name")&&(Fi(Ke,K),Ye=We+Ye),pr&&ci(/((--!?|])>)|<\/(style|title|textarea)/i,Ye)){Fi(Ke,K);continue}if(vi==="attributename"&&$E(Ye,"href")){Fi(Ke,K);continue}if(Se.forceKeepAttr)continue;if(!Se.keepAttr){Fi(Ke,K);continue}if(!ce&&ci(/\/>/i,Ye)){Fi(Ke,K);continue}vr&&Bh([Qe,me,ar],ss=>{Ye=Eh(Ye,ss," ")});let xi=Wr(K.nodeName);if(!Bi(xi,vi,Ye)){Fi(Ke,K);continue}if(te&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!Ae)switch(M.getAttributeType(xi,vi)){case"TrustedHTML":{Ye=te.createHTML(Ye);break}case"TrustedScriptURL":{Ye=te.createScriptURL(Ye);break}}if(Ye!==Qt)try{Ae?K.setAttributeNS(Ae,Ke,Ye):K.setAttribute(Ke,Ye),Pn(K)?Zt(K):ov(m.removed)}catch{Fi(Ke,K)}}oi(Le.afterSanitizeAttributes,K,null)},ln=function De(K){let Ee=null,Se=Vo(K);for(oi(Le.beforeSanitizeShadowDOM,K,null);Ee=Se.nextNode();)oi(Le.uponSanitizeShadowNode,Ee,null),an(Ee),Do(Ee),Ee.content instanceof L&&De(Ee.content);oi(Le.afterSanitizeShadowDOM,K,null)};return m.sanitize=function(De){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=null,Se=null,xr=null,et=null;if(Fe=!De,Fe&&(De="<!-->"),typeof De!="string"&&!on(De))if(typeof De.toString=="function"){if(De=De.toString(),typeof De!="string")throw mh("dirty is not a string, aborting")}else throw mh("toString is not a function");if(!m.isSupported)return De;if(Or||tn(K),m.removed=[],typeof De=="string"&&(Ue=!1),Ue){if(De.nodeName){let dt=Wr(De.nodeName);if(!dr[dt]||zr[dt])throw mh("root node is forbidden and cannot be sanitized in-place")}}else if(De instanceof W)Ee=nn("<!---->"),Se=Ee.ownerDocument.importNode(De,!0),Se.nodeType===xh.element&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?Ee=Se:Ee.appendChild(Se);else{if(!Ne&&!vr&&!we&&De.indexOf("<")===-1)return te&&ft?te.createHTML(De):De;if(Ee=nn(De),!Ee)return Ne?null:ft?ie:""}Ee&&ei&&Zt(Ee.firstChild);let Ke=Vo(Ue?De:Ee);for(;xr=Ke.nextNode();)an(xr),Do(xr),xr.content instanceof L&&ln(xr.content);if(Ue)return De;if(Ne){if(Ut)for(et=ke.call(Ee.ownerDocument);Ee.firstChild;)et.appendChild(Ee.firstChild);else et=Ee;return(lr.shadowroot||lr.shadowrootmode)&&(et=Te.call(N,et,!0)),et}let Ae=we?Ee.outerHTML:Ee.innerHTML;return we&&dr["!doctype"]&&Ee.ownerDocument&&Ee.ownerDocument.doctype&&Ee.ownerDocument.doctype.name&&ci(gv,Ee.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+Ee.ownerDocument.doctype.name+`>
40
+ `+Ae),vr&&Bh([Qe,me,ar],dt=>{Ae=Eh(Ae,dt," ")}),te&&ft?te.createHTML(Ae):Ae},m.setConfig=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tn(De),Or=!0},m.clearConfig=function(){mi=null,Or=!1},m.isValidAttribute=function(De,K,Ee){mi||tn({});let Se=Wr(De),xr=Wr(K);return Bi(Se,xr,Ee)},m.addHook=function(De,K){typeof K=="function"&&gh(Le[De],K)},m.removeHook=function(De,K){if(K!==void 0){let Ee=cA(Le[De],K);return Ee===-1?void 0:pA(Le[De],Ee,1)[0]}return ov(Le[De])},m.removeHooks=function(De){Le[De]=[]},m.removeAllHooks=function(){Le=pv()},m}var mv=Ev();var qs=Yt(Jv()),Xl=class{constructor(m){this.namespace=m}set(m,e,N,R){if(qs.default.enabled&&(this.removeExpiredKeys(),m&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{qs.default.set(m,{namespace:this.namespace,val:e,exp:N,time:new Date().getTime()/1e3})}catch(L){if(L instanceof Error){let G=L;if(G.quotaExceeded=ON(L),G.quotaExceeded&&R)R(L);else throw G}throw L}}}remove(m){qs.default.enabled&&m&&qs.default.remove(m)}removeExpiredKeys(){qs.default.enabled&&qs.default.each((m,e)=>{m&&m.exp&&new Date().getTime()/1e3-m.time>m.exp&&this.remove(e)})}removeAll(){qs.default.enabled}removeNamespace(){qs.default.each((m,e)=>{m.namespace&&m.namespace===this.namespace&&this.remove(e)})}get(m){if(qs.default.enabled&&m)if(this.removeExpiredKeys(),m){var e=qs.default.get(m);return e?e.val:void 0}else return}};function ON(i){var m=!1;if(i)if(i.code)switch(i.code){case 22:m=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(m=!0);break}else i.number===-2147024882&&(m=!0);return m}var{sanitize:CL}=mv;function $v(i,m){if(i)return i.classList?i.classList.contains(m):!!i.className.match(new RegExp("(\\s|^)"+m+"(\\s|$)"))}function Me(i,...m){if(i)for(let e of m)i.classList?i.classList.add(e):$v(i,e)||(i.className+=" "+e)}function Cs(i,m){if(i){if(i.classList)i.classList.remove(m);else if($v(i,m)){var e=new RegExp("(\\s|^)"+m+"(\\s|$)");i.className=i.className.replace(e," ")}}}var Ad=Yt(Dh());function Of(i,m,e){var N;m.onmouseover=function(){N||(N=document.createElement("div"),N.className="yasqe_tooltip"),N.style.display="block",N.innerHTML=e,m.appendChild(N)},m.onmouseout=function(){N&&(N.style.display="none"),N.innerHTML=e}}var wm={};_m(wm,{base64EncodeUnicode:()=>PC,executeQuery:()=>bm,getAcceptHeader:()=>XC,getAjaxConfig:()=>zl,getAsCurlString:()=>ym,getAsPowerShellString:()=>Sm,getAsWgetString:()=>Lm,getUrlArguments:()=>kC,hasAuthenticationCredentials:()=>Rm});var PN=typeof global=="object"&&global&&global.Object===Object&&global,Mh=PN;var kN=typeof self=="object"&&self&&self.Object===Object&&self,XN=Mh||kN||Function("return this")(),yt=XN;var HN=yt.Symbol,di=HN;var d0=Object.prototype,YN=d0.hasOwnProperty,_N=d0.toString,bh=di?di.toStringTag:void 0;function JN(i){var m=YN.call(i,bh),e=i[bh];try{i[bh]=void 0;var N=!0}catch{}var R=_N.call(i);return N&&(m?i[bh]=e:delete i[bh]),R}var g0=JN;var $N=Object.prototype,zN=$N.toString;function jN(i){return zN.call(i)}var E0=jN;var qN="[object Null]",KN="[object Undefined]",m0=di?di.toStringTag:void 0;function eb(i){return i==null?i===void 0?KN:qN:m0&&m0 in Object(i)?g0(i):E0(i)}var Ki=eb;function rb(i){return i!=null&&typeof i=="object"}var gi=rb;var tb="[object Symbol]";function ib(i){return typeof i=="symbol"||gi(i)&&Ki(i)==tb}var Ks=ib;function sb(i,m){for(var e=-1,N=i==null?0:i.length,R=Array(N);++e<N;)R[e]=m(i[e],e,i);return R}var Gf=sb;var nb=Array.isArray,qr=nb;var ob=1/0,v0=di?di.prototype:void 0,x0=v0?v0.toString:void 0;function C0(i){if(typeof i=="string")return i;if(qr(i))return Gf(i,C0)+"";if(Ks(i))return x0?x0.call(i):"";var m=i+"";return m=="0"&&1/i==-ob?"-0":m}var I0=C0;var ab=/\s/;function lb(i){for(var m=i.length;m--&&ab.test(i.charAt(m)););return m}var A0=lb;var ub=/^\s+/;function fb(i){return i&&i.slice(0,A0(i)+1).replace(ub,"")}var N0=fb;function cb(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}var Mt=cb;var b0=NaN,pb=/^[-+]0x[0-9a-f]+$/i,hb=/^0b[01]+$/i,db=/^0o[0-7]+$/i,gb=parseInt;function Eb(i){if(typeof i=="number")return i;if(Ks(i))return b0;if(Mt(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=Mt(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=N0(i);var e=hb.test(i);return e||db.test(i)?gb(i.slice(2),e?2:8):pb.test(i)?b0:+i}var T0=Eb;var R0=1/0,mb=17976931348623157e292;function vb(i){if(!i)return i===0?i:0;if(i=T0(i),i===R0||i===-R0){var m=i<0?-1:1;return m*mb}return i===i?i:0}var y0=vb;function xb(i){var m=y0(i),e=m%1;return m===m?e?m-e:m:0}var S0=xb;function Cb(i){return i}var va=Cb;var Ib="[object AsyncFunction]",Ab="[object Function]",Nb="[object GeneratorFunction]",bb="[object Proxy]";function Tb(i){if(!Mt(i))return!1;var m=Ki(i);return m==Ab||m==Nb||m==Ib||m==bb}var Kr=Tb;var Rb=yt["__core-js_shared__"],Zh=Rb;var L0=function(){var i=/[^.]+$/.exec(Zh&&Zh.keys&&Zh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function yb(i){return!!L0&&L0 in i}var w0=yb;var Sb=Function.prototype,Lb=Sb.toString;function wb(i){if(i!=null){try{return Lb.call(i)}catch{}try{return i+""}catch{}}return""}var Lo=wb;var Ub=/[\\^$.*+?()[\]{}|]/g,Ob=/^\[object .+?Constructor\]$/,Gb=Function.prototype,Fb=Object.prototype,Bb=Gb.toString,Vb=Fb.hasOwnProperty,Wb=RegExp("^"+Bb.call(Vb).replace(Ub,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Db(i){if(!Mt(i)||w0(i))return!1;var m=Kr(i)?Wb:Ob;return m.test(Lo(i))}var U0=Db;function Mb(i,m){return i?.[m]}var O0=Mb;function Zb(i,m){var e=O0(i,m);return U0(e)?e:void 0}var Ui=Zb;var Qb=Ui(yt,"WeakMap"),Qh=Qb;var G0=Object.create,Pb=function(){function i(){}return function(m){if(!Mt(m))return{};if(G0)return G0(m);i.prototype=m;var e=new i;return i.prototype=void 0,e}}(),F0=Pb;function kb(i,m,e){switch(e.length){case 0:return i.call(m);case 1:return i.call(m,e[0]);case 2:return i.call(m,e[0],e[1]);case 3:return i.call(m,e[0],e[1],e[2])}return i.apply(m,e)}var B0=kb;function Xb(i,m){var e=-1,N=i.length;for(m||(m=Array(N));++e<N;)m[e]=i[e];return m}var V0=Xb;var Hb=800,Yb=16,_b=Date.now;function Jb(i){var m=0,e=0;return function(){var N=_b(),R=Yb-(N-e);if(e=N,R>0){if(++m>=Hb)return arguments[0]}else m=0;return i.apply(void 0,arguments)}}var W0=Jb;function $b(i){return function(){return i}}var D0=$b;var zb=function(){try{var i=Ui(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Ff=zb;var jb=Ff?function(i,m){return Ff(i,"toString",{configurable:!0,enumerable:!1,value:D0(m),writable:!0})}:va,M0=jb;var qb=W0(M0),Z0=qb;var Kb=9007199254740991,eT=/^(?:0|[1-9]\d*)$/;function rT(i,m){var e=typeof i;return m=m??Kb,!!m&&(e=="number"||e!="symbol"&&eT.test(i))&&i>-1&&i%1==0&&i<m}var Bf=rT;function tT(i,m,e){m=="__proto__"&&Ff?Ff(i,m,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[m]=e}var Vf=tT;function iT(i,m){return i===m||i!==i&&m!==m}var Mn=iT;var sT=Object.prototype,nT=sT.hasOwnProperty;function oT(i,m,e){var N=i[m];(!(nT.call(i,m)&&Mn(N,e))||e===void 0&&!(m in i))&&Vf(i,m,e)}var Q0=oT;function aT(i,m,e,N){var R=!e;e||(e={});for(var L=-1,G=m.length;++L<G;){var W=m[L],D=N?N(e[W],i[W],W,e,i):void 0;D===void 0&&(D=i[W]),R?Vf(e,W,D):Q0(e,W,D)}return e}var P0=aT;var k0=Math.max;function lT(i,m,e){return m=k0(m===void 0?i.length-1:m,0),function(){for(var N=arguments,R=-1,L=k0(N.length-m,0),G=Array(L);++R<L;)G[R]=N[m+R];R=-1;for(var W=Array(m+1);++R<m;)W[R]=N[R];return W[m]=e(G),B0(i,this,W)}}var X0=lT;function uT(i,m){return Z0(X0(i,m,va),i+"")}var Ph=uT;var fT=9007199254740991;function cT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=fT}var Wf=cT;function pT(i){return i!=null&&Wf(i.length)&&!Kr(i)}var Is=pT;function hT(i,m,e){if(!Mt(e))return!1;var N=typeof m;return(N=="number"?Is(e)&&Bf(m,e.length):N=="string"&&m in e)?Mn(e[m],i):!1}var Th=hT;function dT(i){return Ph(function(m,e){var N=-1,R=e.length,L=R>1?e[R-1]:void 0,G=R>2?e[2]:void 0;for(L=i.length>3&&typeof L=="function"?(R--,L):void 0,G&&Th(e[0],e[1],G)&&(L=R<3?void 0:L,R=1),m=Object(m);++N<R;){var W=e[N];W&&i(m,W,N,L)}return m})}var kh=dT;var gT=Object.prototype;function ET(i){var m=i&&i.constructor,e=typeof m=="function"&&m.prototype||gT;return i===e}var Df=ET;function mT(i,m){for(var e=-1,N=Array(i);++e<i;)N[e]=m(e);return N}var H0=mT;var vT="[object Arguments]";function xT(i){return gi(i)&&Ki(i)==vT}var hm=xT;var Y0=Object.prototype,CT=Y0.hasOwnProperty,IT=Y0.propertyIsEnumerable,AT=hm(function(){return arguments}())?hm:function(i){return gi(i)&&CT.call(i,"callee")&&!IT.call(i,"callee")},wo=AT;function NT(){return!1}var _0=NT;var z0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,J0=z0&&typeof module=="object"&&module&&!module.nodeType&&module,bT=J0&&J0.exports===z0,$0=bT?yt.Buffer:void 0,TT=$0?$0.isBuffer:void 0,RT=TT||_0,Yl=RT;var yT="[object Arguments]",ST="[object Array]",LT="[object Boolean]",wT="[object Date]",UT="[object Error]",OT="[object Function]",GT="[object Map]",FT="[object Number]",BT="[object Object]",VT="[object RegExp]",WT="[object Set]",DT="[object String]",MT="[object WeakMap]",ZT="[object ArrayBuffer]",QT="[object DataView]",PT="[object Float32Array]",kT="[object Float64Array]",XT="[object Int8Array]",HT="[object Int16Array]",YT="[object Int32Array]",_T="[object Uint8Array]",JT="[object Uint8ClampedArray]",$T="[object Uint16Array]",zT="[object Uint32Array]",Jr={};Jr[PT]=Jr[kT]=Jr[XT]=Jr[HT]=Jr[YT]=Jr[_T]=Jr[JT]=Jr[$T]=Jr[zT]=!0;Jr[yT]=Jr[ST]=Jr[ZT]=Jr[LT]=Jr[QT]=Jr[wT]=Jr[UT]=Jr[OT]=Jr[GT]=Jr[FT]=Jr[BT]=Jr[VT]=Jr[WT]=Jr[DT]=Jr[MT]=!1;function jT(i){return gi(i)&&Wf(i.length)&&!!Jr[Ki(i)]}var j0=jT;function qT(i){return function(m){return i(m)}}var Xh=qT;var q0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Rh=q0&&typeof module=="object"&&module&&!module.nodeType&&module,KT=Rh&&Rh.exports===q0,dm=KT&&Mh.process,eR=function(){try{var i=Rh&&Rh.require&&Rh.require("util").types;return i||dm&&dm.binding&&dm.binding("util")}catch{}}(),gm=eR;var K0=gm&&gm.isTypedArray,rR=K0?Xh(K0):j0,Mf=rR;var tR=Object.prototype,iR=tR.hasOwnProperty;function sR(i,m){var e=qr(i),N=!e&&wo(i),R=!e&&!N&&Yl(i),L=!e&&!N&&!R&&Mf(i),G=e||N||R||L,W=G?H0(i.length,String):[],D=W.length;for(var H in i)(m||iR.call(i,H))&&!(G&&(H=="length"||R&&(H=="offset"||H=="parent")||L&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||Bf(H,D)))&&W.push(H);return W}var Hh=sR;function nR(i,m){return function(e){return i(m(e))}}var Yh=nR;var oR=Yh(Object.keys,Object),ex=oR;var aR=Object.prototype,lR=aR.hasOwnProperty;function uR(i){if(!Df(i))return ex(i);var m=[];for(var e in Object(i))lR.call(i,e)&&e!="constructor"&&m.push(e);return m}var rx=uR;function fR(i){return Is(i)?Hh(i):rx(i)}var Zf=fR;function cR(i){var m=[];if(i!=null)for(var e in Object(i))m.push(e);return m}var tx=cR;var pR=Object.prototype,hR=pR.hasOwnProperty;function dR(i){if(!Mt(i))return tx(i);var m=Df(i),e=[];for(var N in i)N=="constructor"&&(m||!hR.call(i,N))||e.push(N);return e}var ix=dR;function gR(i){return Is(i)?Hh(i,!0):ix(i)}var _h=gR;var ER=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mR=/^\w*$/;function vR(i,m){if(qr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||Ks(i)?!0:mR.test(i)||!ER.test(i)||m!=null&&i in Object(m)}var Qf=vR;var xR=Ui(Object,"create"),Uo=xR;function CR(){this.__data__=Uo?Uo(null):{},this.size=0}var sx=CR;function IR(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}var nx=IR;var AR="__lodash_hash_undefined__",NR=Object.prototype,bR=NR.hasOwnProperty;function TR(i){var m=this.__data__;if(Uo){var e=m[i];return e===AR?void 0:e}return bR.call(m,i)?m[i]:void 0}var ox=TR;var RR=Object.prototype,yR=RR.hasOwnProperty;function SR(i){var m=this.__data__;return Uo?m[i]!==void 0:yR.call(m,i)}var ax=SR;var LR="__lodash_hash_undefined__";function wR(i,m){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=Uo&&m===void 0?LR:m,this}var lx=wR;function Pf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}Pf.prototype.clear=sx;Pf.prototype.delete=nx;Pf.prototype.get=ox;Pf.prototype.has=ax;Pf.prototype.set=lx;var Em=Pf;function UR(){this.__data__=[],this.size=0}var ux=UR;function OR(i,m){for(var e=i.length;e--;)if(Mn(i[e][0],m))return e;return-1}var xa=OR;var GR=Array.prototype,FR=GR.splice;function BR(i){var m=this.__data__,e=xa(m,i);if(e<0)return!1;var N=m.length-1;return e==N?m.pop():FR.call(m,e,1),--this.size,!0}var fx=BR;function VR(i){var m=this.__data__,e=xa(m,i);return e<0?void 0:m[e][1]}var cx=VR;function WR(i){return xa(this.__data__,i)>-1}var px=WR;function DR(i,m){var e=this.__data__,N=xa(e,i);return N<0?(++this.size,e.push([i,m])):e[N][1]=m,this}var hx=DR;function kf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}kf.prototype.clear=ux;kf.prototype.delete=fx;kf.prototype.get=cx;kf.prototype.has=px;kf.prototype.set=hx;var Ca=kf;var MR=Ui(yt,"Map"),Ia=MR;function ZR(){this.size=0,this.__data__={hash:new Em,map:new(Ia||Ca),string:new Em}}var dx=ZR;function QR(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}var gx=QR;function PR(i,m){var e=i.__data__;return gx(m)?e[typeof m=="string"?"string":"hash"]:e.map}var Aa=PR;function kR(i){var m=Aa(this,i).delete(i);return this.size-=m?1:0,m}var Ex=kR;function XR(i){return Aa(this,i).get(i)}var mx=XR;function HR(i){return Aa(this,i).has(i)}var vx=HR;function YR(i,m){var e=Aa(this,i),N=e.size;return e.set(i,m),this.size+=e.size==N?0:1,this}var xx=YR;function Xf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}Xf.prototype.clear=dx;Xf.prototype.delete=Ex;Xf.prototype.get=mx;Xf.prototype.has=vx;Xf.prototype.set=xx;var _l=Xf;var _R="Expected a function";function mm(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new TypeError(_R);var e=function(){var N=arguments,R=m?m.apply(this,N):N[0],L=e.cache;if(L.has(R))return L.get(R);var G=i.apply(this,N);return e.cache=L.set(R,G)||L,G};return e.cache=new(mm.Cache||_l),e}mm.Cache=_l;var Cx=mm;var JR=500;function $R(i){var m=Cx(i,function(N){return e.size===JR&&e.clear(),N}),e=m.cache;return m}var Ix=$R;var zR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jR=/\\(\\)?/g,qR=Ix(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(zR,function(e,N,R,L){m.push(R?L.replace(jR,"$1"):N||e)}),m}),Ax=qR;function KR(i){return i==null?"":I0(i)}var Jh=KR;function ey(i,m){return qr(i)?i:Qf(i,m)?[i]:Ax(Jh(i))}var $h=ey;var ry=1/0;function ty(i){if(typeof i=="string"||Ks(i))return i;var m=i+"";return m=="0"&&1/i==-ry?"-0":m}var Na=ty;function iy(i,m){m=$h(m,i);for(var e=0,N=m.length;i!=null&&e<N;)i=i[Na(m[e++])];return e&&e==N?i:void 0}var Hf=iy;function sy(i,m,e){var N=i==null?void 0:Hf(i,m);return N===void 0?e:N}var Nx=sy;function ny(i,m){for(var e=-1,N=m.length,R=i.length;++e<N;)i[R+e]=m[e];return i}var zh=ny;var bx=di?di.isConcatSpreadable:void 0;function oy(i){return qr(i)||wo(i)||!!(bx&&i&&i[bx])}var Tx=oy;function Rx(i,m,e,N,R){var L=-1,G=i.length;for(e||(e=Tx),R||(R=[]);++L<G;){var W=i[L];m>0&&e(W)?m>1?Rx(W,m-1,e,N,R):zh(R,W):N||(R[R.length]=W)}return R}var yx=Rx;var ay=Yh(Object.getPrototypeOf,Object),jh=ay;var ly="[object Object]",uy=Function.prototype,fy=Object.prototype,Sx=uy.toString,cy=fy.hasOwnProperty,py=Sx.call(Object);function hy(i){if(!gi(i)||Ki(i)!=ly)return!1;var m=jh(i);if(m===null)return!0;var e=cy.call(m,"constructor")&&m.constructor;return typeof e=="function"&&e instanceof e&&Sx.call(e)==py}var Lx=hy;function dy(i,m,e){var N=-1,R=i.length;m<0&&(m=-m>R?0:R+m),e=e>R?R:e,e<0&&(e+=R),R=m>e?0:e-m>>>0,m>>>=0;for(var L=Array(R);++N<R;)L[N]=i[N+m];return L}var wx=dy;function gy(i){return function(m){return i?.[m]}}var Ux=gy;function Ey(){this.__data__=new Ca,this.size=0}var Ox=Ey;function my(i){var m=this.__data__,e=m.delete(i);return this.size=m.size,e}var Gx=my;function vy(i){return this.__data__.get(i)}var Fx=vy;function xy(i){return this.__data__.has(i)}var Bx=xy;var Cy=200;function Iy(i,m){var e=this.__data__;if(e instanceof Ca){var N=e.__data__;if(!Ia||N.length<Cy-1)return N.push([i,m]),this.size=++e.size,this;e=this.__data__=new _l(N)}return e.set(i,m),this.size=e.size,this}var Vx=Iy;function Yf(i){var m=this.__data__=new Ca(i);this.size=m.size}Yf.prototype.clear=Ox;Yf.prototype.delete=Gx;Yf.prototype.get=Fx;Yf.prototype.has=Bx;Yf.prototype.set=Vx;var ba=Yf;var Zx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Wx=Zx&&typeof module=="object"&&module&&!module.nodeType&&module,Ay=Wx&&Wx.exports===Zx,Dx=Ay?yt.Buffer:void 0,Mx=Dx?Dx.allocUnsafe:void 0;function Ny(i,m){if(m)return i.slice();var e=i.length,N=Mx?Mx(e):new i.constructor(e);return i.copy(N),N}var Qx=Ny;function by(i,m){for(var e=-1,N=i==null?0:i.length,R=0,L=[];++e<N;){var G=i[e];m(G,e,i)&&(L[R++]=G)}return L}var Px=by;function Ty(){return[]}var kx=Ty;var Ry=Object.prototype,yy=Ry.propertyIsEnumerable,Xx=Object.getOwnPropertySymbols,Sy=Xx?function(i){return i==null?[]:(i=Object(i),Px(Xx(i),function(m){return yy.call(i,m)}))}:kx,Hx=Sy;function Ly(i,m,e){var N=m(i);return qr(i)?N:zh(N,e(i))}var Yx=Ly;function wy(i){return Yx(i,Zf,Hx)}var vm=wy;var Uy=Ui(yt,"DataView"),qh=Uy;var Oy=Ui(yt,"Promise"),Kh=Oy;var Gy=Ui(yt,"Set"),ed=Gy;var _x="[object Map]",Fy="[object Object]",Jx="[object Promise]",$x="[object Set]",zx="[object WeakMap]",jx="[object DataView]",By=Lo(qh),Vy=Lo(Ia),Wy=Lo(Kh),Dy=Lo(ed),My=Lo(Qh),Jl=Ki;(qh&&Jl(new qh(new ArrayBuffer(1)))!=jx||Ia&&Jl(new Ia)!=_x||Kh&&Jl(Kh.resolve())!=Jx||ed&&Jl(new ed)!=$x||Qh&&Jl(new Qh)!=zx)&&(Jl=function(i){var m=Ki(i),e=m==Fy?i.constructor:void 0,N=e?Lo(e):"";if(N)switch(N){case By:return jx;case Vy:return _x;case Wy:return Jx;case Dy:return $x;case My:return zx}return m});var xm=Jl;var Zy=yt.Uint8Array,_f=Zy;function Qy(i){var m=new i.constructor(i.byteLength);return new _f(m).set(new _f(i)),m}var qx=Qy;function Py(i,m){var e=m?qx(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var Kx=Py;function ky(i){return typeof i.constructor=="function"&&!Df(i)?F0(jh(i)):{}}var eC=ky;var Xy="__lodash_hash_undefined__";function Hy(i){return this.__data__.set(i,Xy),this}var rC=Hy;function Yy(i){return this.__data__.has(i)}var tC=Yy;function rd(i){var m=-1,e=i==null?0:i.length;for(this.__data__=new _l;++m<e;)this.add(i[m])}rd.prototype.add=rd.prototype.push=rC;rd.prototype.has=tC;var iC=rd;function _y(i,m){for(var e=-1,N=i==null?0:i.length;++e<N;)if(m(i[e],e,i))return!0;return!1}var sC=_y;function Jy(i,m){return i.has(m)}var nC=Jy;var $y=1,zy=2;function jy(i,m,e,N,R,L){var G=e&$y,W=i.length,D=m.length;if(W!=D&&!(G&&D>W))return!1;var H=L.get(i),k=L.get(m);if(H&&k)return H==m&&k==i;var Z=-1,$=!0,M=e&zy?new iC:void 0;for(L.set(i,m),L.set(m,i);++Z<W;){var z=i[Z],J=m[Z];if(N)var B=G?N(J,z,Z,m,i,L):N(z,J,Z,i,m,L);if(B!==void 0){if(B)continue;$=!1;break}if(M){if(!sC(m,function(V,Y){if(!nC(M,Y)&&(z===V||R(z,V,e,N,L)))return M.push(Y)})){$=!1;break}}else if(!(z===J||R(z,J,e,N,L))){$=!1;break}}return L.delete(i),L.delete(m),$}var td=jy;function qy(i){var m=-1,e=Array(i.size);return i.forEach(function(N,R){e[++m]=[R,N]}),e}var oC=qy;function Ky(i){var m=-1,e=Array(i.size);return i.forEach(function(N){e[++m]=N}),e}var aC=Ky;var eS=1,rS=2,tS="[object Boolean]",iS="[object Date]",sS="[object Error]",nS="[object Map]",oS="[object Number]",aS="[object RegExp]",lS="[object Set]",uS="[object String]",fS="[object Symbol]",cS="[object ArrayBuffer]",pS="[object DataView]",lC=di?di.prototype:void 0,Cm=lC?lC.valueOf:void 0;function hS(i,m,e,N,R,L,G){switch(e){case pS:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case cS:return!(i.byteLength!=m.byteLength||!L(new _f(i),new _f(m)));case tS:case iS:case oS:return Mn(+i,+m);case sS:return i.name==m.name&&i.message==m.message;case aS:case uS:return i==m+"";case nS:var W=oC;case lS:var D=N&eS;if(W||(W=aC),i.size!=m.size&&!D)return!1;var H=G.get(i);if(H)return H==m;N|=rS,G.set(i,m);var k=td(W(i),W(m),N,R,L,G);return G.delete(i),k;case fS:if(Cm)return Cm.call(i)==Cm.call(m)}return!1}var uC=hS;var dS=1,gS=Object.prototype,ES=gS.hasOwnProperty;function mS(i,m,e,N,R,L){var G=e&dS,W=vm(i),D=W.length,H=vm(m),k=H.length;if(D!=k&&!G)return!1;for(var Z=D;Z--;){var $=W[Z];if(!(G?$ in m:ES.call(m,$)))return!1}var M=L.get(i),z=L.get(m);if(M&&z)return M==m&&z==i;var J=!0;L.set(i,m),L.set(m,i);for(var B=G;++Z<D;){$=W[Z];var V=i[$],Y=m[$];if(N)var q=G?N(Y,V,$,m,i,L):N(V,Y,$,i,m,L);if(!(q===void 0?V===Y||R(V,Y,e,N,L):q)){J=!1;break}B||(B=$=="constructor")}if(J&&!B){var te=i.constructor,ie=m.constructor;te!=ie&&"constructor"in i&&"constructor"in m&&!(typeof te=="function"&&te instanceof te&&typeof ie=="function"&&ie instanceof ie)&&(J=!1)}return L.delete(i),L.delete(m),J}var fC=mS;var vS=1,cC="[object Arguments]",pC="[object Array]",id="[object Object]",xS=Object.prototype,hC=xS.hasOwnProperty;function CS(i,m,e,N,R,L){var G=qr(i),W=qr(m),D=G?pC:xm(i),H=W?pC:xm(m);D=D==cC?id:D,H=H==cC?id:H;var k=D==id,Z=H==id,$=D==H;if($&&Yl(i)){if(!Yl(m))return!1;G=!0,k=!1}if($&&!k)return L||(L=new ba),G||Mf(i)?td(i,m,e,N,R,L):uC(i,m,D,e,N,R,L);if(!(e&vS)){var M=k&&hC.call(i,"__wrapped__"),z=Z&&hC.call(m,"__wrapped__");if(M||z){var J=M?i.value():i,B=z?m.value():m;return L||(L=new ba),R(J,B,e,N,L)}}return $?(L||(L=new ba),fC(i,m,e,N,R,L)):!1}var dC=CS;function gC(i,m,e,N,R){return i===m?!0:i==null||m==null||!gi(i)&&!gi(m)?i!==i&&m!==m:dC(i,m,e,N,gC,R)}var sd=gC;var IS=1,AS=2;function NS(i,m,e,N){var R=e.length,L=R,G=!N;if(i==null)return!L;for(i=Object(i);R--;){var W=e[R];if(G&&W[2]?W[1]!==i[W[0]]:!(W[0]in i))return!1}for(;++R<L;){W=e[R];var D=W[0],H=i[D],k=W[1];if(G&&W[2]){if(H===void 0&&!(D in i))return!1}else{var Z=new ba;if(N)var $=N(H,k,D,i,m,Z);if(!($===void 0?sd(k,H,IS|AS,N,Z):$))return!1}}return!0}var EC=NS;function bS(i){return i===i&&!Mt(i)}var nd=bS;function TS(i){for(var m=Zf(i),e=m.length;e--;){var N=m[e],R=i[N];m[e]=[N,R,nd(R)]}return m}var mC=TS;function RS(i,m){return function(e){return e==null?!1:e[i]===m&&(m!==void 0||i in Object(e))}}var od=RS;function yS(i){var m=mC(i);return m.length==1&&m[0][2]?od(m[0][0],m[0][1]):function(e){return e===i||EC(e,i,m)}}var vC=yS;function SS(i,m){return i!=null&&m in Object(i)}var xC=SS;function LS(i,m,e){m=$h(m,i);for(var N=-1,R=m.length,L=!1;++N<R;){var G=Na(m[N]);if(!(L=i!=null&&e(i,G)))break;i=i[G]}return L||++N!=R?L:(R=i==null?0:i.length,!!R&&Wf(R)&&Bf(G,R)&&(qr(i)||wo(i)))}var CC=LS;function wS(i,m){return i!=null&&CC(i,m,xC)}var IC=wS;var US=1,OS=2;function GS(i,m){return Qf(i)&&nd(m)?od(Na(i),m):function(e){var N=Nx(e,i);return N===void 0&&N===m?IC(e,i):sd(m,N,US|OS)}}var AC=GS;function FS(i){return function(m){return m?.[i]}}var NC=FS;function BS(i){return function(m){return Hf(m,i)}}var bC=BS;function VS(i){return Qf(i)?NC(Na(i)):bC(i)}var TC=VS;function WS(i){return typeof i=="function"?i:i==null?va:typeof i=="object"?qr(i)?AC(i[0],i[1]):vC(i):TC(i)}var RC=WS;function DS(i){return function(m,e,N){for(var R=-1,L=Object(m),G=N(m),W=G.length;W--;){var D=G[i?W:++R];if(e(L[D],D,L)===!1)break}return m}}var yC=DS;var MS=yC(),ad=MS;function ZS(i,m){return i&&ad(i,m,Zf)}var SC=ZS;function QS(i,m){return function(e,N){if(e==null)return e;if(!Is(e))return i(e,N);for(var R=e.length,L=m?R:-1,G=Object(e);(m?L--:++L<R)&&N(G[L],L,G)!==!1;);return e}}var LC=QS;var PS=LC(SC),wC=PS;function kS(i,m,e){(e!==void 0&&!Mn(i[m],e)||e===void 0&&!(m in i))&&Vf(i,m,e)}var yh=kS;function XS(i){return gi(i)&&Is(i)}var UC=XS;function HS(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Sh=HS;function YS(i){return P0(i,_h(i))}var OC=YS;function _S(i,m,e,N,R,L,G){var W=Sh(i,e),D=Sh(m,e),H=G.get(D);if(H){yh(i,e,H);return}var k=L?L(W,D,e+"",i,m,G):void 0,Z=k===void 0;if(Z){var $=qr(D),M=!$&&Yl(D),z=!$&&!M&&Mf(D);k=D,$||M||z?qr(W)?k=W:UC(W)?k=V0(W):M?(Z=!1,k=Qx(D,!0)):z?(Z=!1,k=Kx(D,!0)):k=[]:Lx(D)||wo(D)?(k=W,wo(W)?k=OC(W):(!Mt(W)||Kr(W))&&(k=eC(D))):Z=!1}Z&&(G.set(D,k),R(k,D,N,L,G),G.delete(D)),yh(i,e,k)}var GC=_S;function FC(i,m,e,N,R){i!==m&&ad(m,function(L,G){if(R||(R=new ba),Mt(L))GC(i,m,G,e,FC,N,R);else{var W=N?N(Sh(i,G),L,G+"",i,m,R):void 0;W===void 0&&(W=L),yh(i,G,W)}},_h)}var ld=FC;var JS=kh(function(i,m,e,N){ld(i,m,e,N)}),Im=JS;var $S={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zS=Ux($S),BC=zS;var VC=/[&<>"']/g,jS=RegExp(VC.source);function qS(i){return i=Jh(i),i&&jS.test(i)?i.replace(VC,BC):i}var Lh=qS;function KS(i,m){var e=-1,N=Is(i)?Array(i.length):[];return wC(i,function(R,L,G){N[++e]=m(R,L,G)}),N}var WC=KS;var e1=kh(function(i,m,e){ld(i,m,e)}),ud=e1;function r1(i,m){var e=i.length;for(i.sort(m);e--;)i[e]=i[e].value;return i}var DC=r1;function t1(i,m){if(i!==m){var e=i!==void 0,N=i===null,R=i===i,L=Ks(i),G=m!==void 0,W=m===null,D=m===m,H=Ks(m);if(!W&&!H&&!L&&i>m||L&&G&&D&&!W&&!H||N&&G&&D||!e&&D||!R)return 1;if(!N&&!L&&!H&&i<m||H&&e&&R&&!N&&!L||W&&e&&R||!G&&R||!D)return-1}return 0}var MC=t1;function i1(i,m,e){for(var N=-1,R=i.criteria,L=m.criteria,G=R.length,W=e.length;++N<G;){var D=MC(R[N],L[N]);if(D){if(N>=W)return D;var H=e[N];return D*(H=="desc"?-1:1)}}return i.index-m.index}var ZC=i1;function s1(i,m,e){m.length?m=Gf(m,function(L){return qr(L)?function(G){return Hf(G,L.length===1?L[0]:L)}:L}):m=[va];var N=-1;m=Gf(m,Xh(RC));var R=WC(i,function(L,G,W){var D=Gf(m,function(H){return H(L)});return{criteria:D,index:++N,value:L}});return DC(R,function(L,G){return ZC(L,G,e)})}var QC=s1;var n1=Ph(function(i,m){if(i==null)return[];var e=m.length;return e>1&&Th(i,m[0],m[1])?m=[]:e>2&&Th(m[0],m[1],m[2])&&(m=[m[0]]),QC(i,yx(m,1),[])}),Am=n1;function o1(i,m,e){return i&&i.length?(m=e||m===void 0?1:S0(m),wx(i,0,m<0?0:m)):[]}var Nm=o1;var Oo=Yt(Dh());function $l(i,m){return Kr(m)?m(i):m??{}}function a1(i,m){let e=`${i}:${m}`;return`Basic ${PC(e)}`}function PC(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let m=new window.TextEncoder().encode(i),e="";for(let N=0;N<m.length;N++)e+=String.fromCharCode(m[N]);return btoa(e)}else if(typeof TextEncoder<"u"){let m=new TextEncoder().encode(i),e="";for(let N=0;N<m.length;N++)e+=String.fromCharCode(m[N]);return btoa(e)}else try{return btoa(i)}catch{throw new Error("Basic authentication credentials contain unsupported Unicode characters. Please use a modern browser or restrict credentials to Latin1 characters.")}}function zl(i,m={}){let e=ud({},$l(i,i.config.requestConfig),$l(i,m));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let R=Kr(e.endpoint)?e.endpoint(i):e.endpoint;var L=N=="update"?"POST":Kr(e.method)?e.method(i):e.method;let G=Kr(e.headers)?e.headers(i):e.headers,W=Kr(e.withCredentials)?e.withCredentials(i):e.withCredentials,D={...G},H=!1;try{let k=Kr(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,Z=k?.idToken||k?.accessToken,$=Z?Z.trim():"";k&&$.length>0&&(H=!0,D.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping OAuth 2.0 Auth header to avoid overwrite."):D.Authorization=`Bearer ${$}`);let M=Kr(e.bearerAuth)?e.bearerAuth(i):e.bearerAuth,z=M&&M.token?M.token.trim():"";M&&z.length>0&&(H=!0,D.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Bearer Auth header to avoid overwrite."):D.Authorization=`Bearer ${z}`);let J=Kr(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,B=J&&J.headerName?J.headerName.trim():"",V=J&&J.apiKey?J.apiKey.trim():"";J&&B.length>0&&V.length>0&&(H=!0,D[B]!==void 0?console.warn(`Header "${B}" already exists in request headers; skipping API Key header to avoid overwrite.`):D[B]=V);let Y=Kr(e.basicAuth)?e.basicAuth(i):e.basicAuth;Y&&Y.username&&Y.password&&(H=!0,D.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):D.Authorization=a1(Y.username,Y.password))}catch(k){console.warn("Failed to configure authentication:",k)}return H&&(W=!0),{reqMethod:L,url:R,args:kC(i,e),headers:D,accept:XC(i,e),withCredentials:W??!1}}async function bm(i,m,e){let N=Date.now();try{i.emit("queryBefore",i,m);let R=zl(i,m);if(!R)return;let L=new AbortController,G=e?.customAccept||R.accept,W={method:R.reqMethod,headers:{Accept:G,...R.headers||{}},credentials:R.withCredentials?"include":"same-origin",signal:L.signal,mode:"cors"};W?.headers&&R.reqMethod==="POST"&&(W.headers["Content-Type"]="application/x-www-form-urlencoded");let D=new URLSearchParams,H=(z,J=[])=>{for(let B in z)if(!J.includes(B)){let V=z[B];Array.isArray(V)?V.forEach(Y=>D.append(B,Y)):D.append(B,V)}},k=z=>z.query!==void 0?"query":z.update!==void 0?"update":"query";if(e?.customQuery){let z=k(R.args);D.append(z,e.customQuery),H(R.args,["query","update"])}else H(R.args);if(R.reqMethod==="POST")W.body=D.toString();else{let z=new URL(R.url);D.forEach((J,B)=>{z.searchParams.append(B,J)}),R.url=z.toString()}let Z=new Request(R.url,W);i.emit("query",Z,L);let $=await fetch(Z),M={ok:$.ok,status:$.status,statusText:$.statusText,headers:$.headers,type:$.type,content:await $.text()};if(!$.ok){let z=new Error(M.content||$.statusText);throw z.status=$.status,z.statusText=$.statusText,z.response=M,z}return i.emit("queryResponse",M,Date.now()-N),i.emit("queryResults",M.content,Date.now()-N),M}catch(R){if(!(R instanceof Error&&R.message==="Aborted"))if(R instanceof Error&&!("status"in R)){let L=R;(R.message.includes("Failed to fetch")||R.message.includes("NetworkError"))&&(L.message=`${R.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),i.emit("queryResponse",L,Date.now()-N)}else i.emit("queryResponse",R,Date.now()-N);throw i.emit("error",R),R}}function kC(i,m){var e=i.getQueryMode(),N={};let R=$l(i,m);var L=Kr(R.queryArgument)?R.queryArgument(i):R.queryArgument;L||(L=i.getQueryMode()),N[L]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let G=Kr(R.namedGraphs)?R.namedGraphs(i):R.namedGraphs;if(G&&G.length>0){let H=e==="query"?"named-graph-uri":"using-named-graph-uri ";N[H]=G}let W=Kr(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(W&&W.length>0){let H=e=="query"?"default-graph-uri":"using-graph-uri ";N[H]=W}let D=Kr(R.args)?R.args(i):R.args;return D&&D.length>0&&ud(N,D.reduce((H,k)=>(H[k.name]?H[k.name].push(k.value):H[k.name]=[k.value],H),{})),N}function XC(i,m){let e=$l(i,m);var N=null;if(i.getQueryMode()=="update")N=Kr(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?N=Kr(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Kr(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function Tm(i){if(i.indexOf("http")!==0){let m=`${window.location.protocol}//${window.location.host}`;if(i.indexOf("/")===0)m+=i;else{let e=window.location.pathname;if(!e.endsWith("/")){let N=e.lastIndexOf("/");e=N>=0?e.substring(0,N+1):"/"}m+=e+i}return m}return i}function Rm(i){if(!i)return!1;if(i.headers&&i.headers.Authorization)return!0;if(i.headers)for(let m in i.headers){let e=m.toLowerCase();if(e.startsWith("x-api-key")||e.startsWith("x-auth-")||e==="apikey"||e==="api-key"||e.endsWith("-token")&&e.startsWith("x-")||e.includes("-auth-")&&e.includes("token"))return!0}return!1}function Ei(i){return i.replace(/'/g,"'\\''")}function ym(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=Tm(e.url),R=["curl"];if(e.reqMethod==="GET")N+=`?${Oo.stringify(e.args)}`,R.push(`'${Ei(N)}'`);else if(e.reqMethod==="POST"){R.push(`'${Ei(N)}'`);let L=Oo.stringify(e.args);R.push("--data",`'${Ei(L)}'`)}else console.warn("Unexpected request-method",e.reqMethod),R.push(`'${Ei(N)}'`);R.push("-X",e.reqMethod),e.accept&&R.push("-H",`'Accept: ${Ei(e.accept)}'`);for(let L in e.headers)R.push("-H",`'${Ei(L)}: ${Ei(e.headers[L])}'`);return R.join(` \\
41
+ `)}function Jf(i){return i.replace(/`/g,"``").replace(/"/g,'`"').replace(/\$/g,"`$")}function Sm(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=Tm(e.url),R=[],L=e.accept,G="json";L&&(L.includes("text/turtle")||L.includes("application/x-turtle")?G="ttl":L.includes("application/rdf+xml")?G="xml":L.includes("application/n-triples")?G="nt":L.includes("application/ld+json")?G="jsonld":L.includes("text/csv")?G="csv":L.includes("text/tab-separated-values")&&(G="tsv"));let W=[];L&&W.push(` "Accept" = "${Jf(L)}"`);for(let D in e.headers)W.push(` "${Jf(D)}" = "${Jf(e.headers[D])}"`);if(e.reqMethod==="GET")N+=`?${Oo.stringify(e.args)}`,R.push("$params = @{"),R.push(` Uri = "${Jf(N)}"`),R.push(' Method = "Get"'),W.length>0&&(R.push(" Headers = @{"),R.push(W.join(`
42
+ `)),R.push(" }")),R.push(` OutFile = "result.${G}"`),R.push("}");else if(e.reqMethod==="POST"){let D=Oo.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${Jf(N)}"`),R.push(' Method = "Post"'),W.length>0&&(R.push(" Headers = @{"),R.push(W.join(`
43
+ `)),R.push(" }")),R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${Jf(D)}"`),R.push(` OutFile = "result.${G}"`),R.push("}")}else{console.warn("Unexpected request-method for PowerShell",e.reqMethod);let D=Oo.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${N}"`),R.push(` Method = "${e.reqMethod}"`),W.length>0&&(R.push(" Headers = @{"),R.push(W.join(`
44
+ `)),R.push(" }")),D&&(R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${D.replace(/"/g,'`"')}"`)),R.push(` OutFile = "result.${G}"`),R.push("}")}return R.push(""),R.push("Invoke-WebRequest @params"),R.join(`
45
+ `)}function Lm(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=Tm(e.url),R=["wget"];if(e.reqMethod==="GET")N+=`?${Oo.stringify(e.args)}`,R.push(`'${Ei(N)}'`);else if(e.reqMethod==="POST"){R.push(`'${Ei(N)}'`);let L=Oo.stringify(e.args);R.push("--post-data",`'${Ei(L)}'`)}else{console.warn("Unexpected request-method for wget",e.reqMethod),R.push(`'${Ei(N)}'`);let L=Oo.stringify(e.args);L&&R.push("--post-data",`'${Ei(L)}'`)}e.reqMethod!=="GET"&&R.push("--method",e.reqMethod),e.accept&&R.push("--header",`'Accept: ${Ei(e.accept)}'`);for(let L in e.headers)R.push("--header",`'${Ei(L)}: ${Ei(e.headers[L])}'`);return R.push("-O -"),R.join(` \\
46
+ `)}var wh=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(m,e){if(m.length!=0){var N=this,R,L;if(e===void 0&&(e=0),e===m.length){N.words++;return}N.prefixes++,R=m[e],N.children[R]===void 0&&(N.children[R]=new i),L=N.children[R],L.insert(m,e+1)}}remove(m,e){if(m.length!=0){var N=this,R,L;if(e===void 0&&(e=0),N!==void 0){if(e===m.length){N.words--;return}N.prefixes--,R=m[e],L=N.children[R],L.remove(m,e+1)}}}update(m,e){m.length==0||e.length==0||(this.remove(m),this.insert(e))}countWord(m,e){if(m.length==0)return 0;var N=this,R,L,G=0;return e===void 0&&(e=0),e===m.length?N.words:(R=m[e],L=N.children[R],L!==void 0&&(G=L.countWord(m,e+1)),G)}countPrefix(m,e){if(m.length==0)return 0;var N=this,G,R,L=0;if(e===void 0&&(e=0),e===m.length)return N.prefixes;var G=m[e];return R=N.children[G],R!==void 0&&(L=R.countPrefix(m,e+1)),L}find(m){return m.length==0?!1:this.countWord(m)>0}getAllWords(m){var e=this,N,R,L=[];if(m===void 0&&(m=""),e===void 0)return[];e.words>0&&L.push(m);for(N in e.children)e.children.hasOwnProperty(N)&&(R=e.children[N],L=L.concat(R.getAllWords(m+N)));return L}autoComplete(m,e){var N=this,R,L;return m.length==0?e===void 0?N.getAllWords(m):[]:(e===void 0&&(e=0),R=m[e],L=N.children[R],L===void 0?[]:e===m.length-1?L.getAllWords(m):L.autoComplete(m,e+1))}};var oI=Yt(rI());var Gm=Yt(si());var d1={name:"variables",isValidCompletionPosition:function(i){var m=i.getTokenAt(i.getDoc().getCursor());return!!(m.type!="ws"&&(m=i.getCompleteToken(m),m&&(m.string[0]==="?"||m.string[0]==="$")))},get:function(i,m){if(!m||m.string.length==0)return[];let e={},N=[],R=i.getWrapperElement().querySelectorAll(".cm-atom");for(let G=0;G<R.length;G++){let W=R[G];var L=W.innerHTML;if(L[0]==="?"||L[0]==="$"){let D=W.nextSibling;if(D&&D.className&&D.className.indexOf("cm-atom")>=0&&(L+=D.innerText),e[L]||L.length<=1||L.indexOf(m.string)!==0||L===m.string)continue;e[L]=!0,N.push(L)}}return N.sort()},bulk:!1,autoShow:!0},tI=d1;var g1={"string-2":"prefixed",atom:"var"},E1={postprocessHints:function(i,m){return Am(m,e=>e.text.split(":")[0])},onInitialize:function(i){i.on("change",()=>{if(!(!i.config.autocompleters||i.config.autocompleters.indexOf(this.name)==-1)){var m=i.getDoc().getCursor(),e=i.getTokenAt(m);if(e.type&&g1[e.type]=="prefixed"){var N=e.string.indexOf(":");if(N!==-1){var R=i.getPreviousNonWsToken(m.line,e).string.toUpperCase(),L=i.getTokenAt({line:m.line,ch:e.start});if(R!=="PREFIX"&&(L.type=="ws"||L.type==null||L.type==="punc"&&(L.string==="|"||L.string==="/"||L.string=="^^"||L.string=="{"||L.string==="("))){var G=e.string.substring(0,N+1),W=i.getPrefixesFromQuery();W[G.slice(0,-1)]==null&&(e.autocompletionString=G,i.autocompleters[this.name]?.getCompletions(e).then(D=>{D.length&&(i.addPrefixes(D[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var m=i.getDoc().getCursor(),e=i.getTokenAt(m);if(i.getDoc().getLine(m.line).length>m.ch||(e.type!="ws"&&(e=i.getCompleteToken()),e.string.indexOf("a")!==0&&e.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var N=i.getPreviousNonWsToken(m.line,e);return!(!N||N.string.toUpperCase()!="PREFIX")},get:function(i){return fetch(i.config.prefixCcApi).then(m=>{if(!m.ok)throw new Error("Failed to fetch prefixes");return m.json()}).then(m=>{let e=[];for(let N in m){let R=`${N}: <${m[N]}>`;e.push(R)}return e.sort()})},preProcessToken:function(i,m){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,m);return e&&e.string&&e.string.slice(-1)==":"&&(m={start:e.start,end:m.end,string:e.string+" "+m.string,state:m.state,type:m.type}),m},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},iI=E1;var m1={onInitialize:function(i){},get:function(i,m){return dd(i,"property",m)},isValidCompletionPosition:function(i){let m=i.getCompleteToken();return m.string.length==0||m.string[0]==="?"||m.string[0]==="$"?!1:m.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(i,m){return pd(i,m)},postProcessSuggestion:function(i,m,e){return hd(i,m,e)},bulk:!1,name:"property"},sI=m1;var v1={onInitialize:function(i){},get:function(i,m){return dd(i,"class",m)},isValidCompletionPosition:function(i){let m=i.getCompleteToken();if(m.string[0]==="?"||m.string[0]==="$")return!1;let e=i.getDoc().getCursor(),N=i.getPreviousNonWsToken(e.line,m);return N.state.lastProperty==="a"||N.state.lastProperty==="rdf:type"||N.state.lastProperty==="rdfs:domain"||N.state.lastProperty==="rdfs:range"},preProcessToken:function(i,m){return pd(i,m)},postProcessSuggestion:function(i,m,e){return hd(i,m,e)},bulk:!1,name:"class"},nI=v1;var x1=100,gd=class extends oI.EventEmitter{constructor(m,e){super(),this.yasqe=m,this.config=e}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(m){if(!(!m||!(m instanceof Array))){this.trie=new wh;for(let N of m)this.trie.insert(N);var e=this.getStorageId();e&&this.yasqe.storage.set(e,m,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(m){if(!this.config.get)return Promise.resolve([]);if(!m)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(N=>N instanceof Array?N:[]);let e=m.autocompletionString||m.string;return this.trie?Promise.resolve(Nm(this.trie.autoComplete(e),x1)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(N=>N.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,m)).then(N=>N instanceof Array?N:[])}initialize(){if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var m,e=this.getStorageId();return e&&(m=this.yasqe.storage.get(e)),m&&m.length>0?(this.storeBulkCompletions(m),Promise.resolve()):this.getCompletions().then(N=>this.storeBulkCompletions(N))}return Promise.resolve()}isValidPosition(){return this.config.isValidCompletionPosition?this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1):!1}getHint(m,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,m,e));let N,R,L=this.yasqe.getDoc().getCursor();m.from&&(N={...L,...m.from});let G=this.yasqe.getDoc().getCursor().line;return m.to?R={ch:m?.to?.ch||this.yasqe.getCompleteToken().end,line:G}:m.string.length>0?R={ch:this.yasqe.getCompleteToken().end,line:G}:R=m.from,{text:e,displayText:e,from:N,to:R}}getHints(m){return this.config.preProcessToken&&(m=this.config.preProcessToken(this.yasqe,m)),m?this.getCompletions(m).then(e=>e.map(N=>this.getHint(m,N))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}autocomplete(m){if(!this.isValidPosition())return!1;let e=this.yasqe.state.completionActive,N=this.yasqe.getDoc().getCursor();if(e&&N.sticky&&N.ch!==e.startPos.ch?this.yasqe.state.completionActive.startPos=N:e&&!N.sticky&&N.ch<e.startPos.ch&&(N.sticky=e.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=N.ch,this.yasqe.state.completionActive.startLen--),m&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let R=()=>this.getHints(this.yasqe.getCompleteToken()).then(G=>{let W=this.yasqe.getDoc().getCursor(),D=this.yasqe.getCompleteToken(),H={list:G,from:{line:W.line,ch:D.start},to:{line:W.line,ch:D.end}};return Gm.default.on(H,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),Gm.default.on(H,"close",()=>{this.yasqe.emit("autocompletionClose")}),H});R.async=!1;var L={closeCharacters:/[\s>"]/,completeSingle:!1,hint:R,container:this.yasqe.rootEl,extraKeys:{Home:(G,W)=>{G.getDoc().setCursor({ch:0,line:W.data.from.line})},End:(G,W)=>{G.getDoc().setCursor({ch:G.getLine(W.data.to.line).length,line:W.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(L),!0}};function pd(i,m){let e=i.getPrefixesFromQuery(),N=m.string;if(N.indexOf("<")<0&&(m.tokenPrefix=N.substring(0,N.indexOf(":")+1),e[m.tokenPrefix.slice(0,-1)]!=null&&(m.tokenPrefixUri=e[m.tokenPrefix.slice(0,-1)])),m.autocompletionString=N.trim(),N.indexOf("<")<0&&N.indexOf(":")>-1){for(var R in e)if(m.tokenPrefix===R+":"){m.autocompletionString=e[R],m.autocompletionString+=N.substring(R.length+1);break}}return m.autocompletionString.indexOf("<")==0&&(m.autocompletionString=m.autocompletionString.substring(1)),m.autocompletionString.indexOf(">",m.autocompletionString.length-1)>0&&(m.autocompletionString=m.autocompletionString.substring(0,m.autocompletionString.length-1)),m}function hd(i,m,e){return m.tokenPrefix&&m.autocompletionString&&m.tokenPrefixUri?e=m.tokenPrefix+e.substring(m.tokenPrefixUri.length):e="<"+e+">",e}var dd=(i,m,e)=>{var N=window.location.protocol.indexOf("http")===0?"https://":"http://";let R="autocomplete_"+m;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(R,"Nothing to autocomplete yet!"),Promise.resolve([]);let L=new URLSearchParams;e.autocompletionString&&L.append("q",e.autocompletionString),L.append("page_size","50"),L.append("type",m);let G=`${N}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${L.toString()}`;return fetch(G).then(W=>{if(!W.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return W.json()}).then(W=>W.results?W.results.map(D=>D.uri[0]):[]).catch(W=>{i.showNotification(R,"Failed fetching suggestions")})},aI=[tI,iI,sI,nI];var lI=Yt(Dh()),Ed=Yt(si());function Fm(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
47
47
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
48
48
  SELECT * WHERE {
49
49
  ?sub ?pred ?obj .
50
- } LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new vd.default.fold.combine(vd.default.fold.brace,vd.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","gutterConstructWarning","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(N){N.autocomplete()},"Shift-Ctrl-K":function(N){let R=N,L=R.getDoc().getCursor().line;return L===R.getDoc().lastLine()&&L>1?R.getDoc().replaceRange("",{ch:R.getDoc().getLine(L-1).length,line:L-1},{ch:R.getDoc().getLine(L).length,line:L}):R.getDoc().replaceRange("",{ch:0,line:L},{ch:0,line:L+1})},"Ctrl-/":function(N){N.commentLines()},"Shift-Ctrl-D":function(N){N.duplicateLine()},"Shift-Ctrl-F":function(N){N.format()},"Ctrl-S":function(N){N.saveQuery()},"Cmd-Enter":function(N){N.query().catch(()=>{})},"Ctrl-Enter":function(N){N.query().catch(()=>{})},Esc:function(N){N.getInputField().blur()}},createShareableLink:function(N){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+EI.stringify(N.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(N){N.queryParamsToConfig(N.getUrlParams())},persistenceId:function(N){let R="",L=N.rootEl;for(L.id&&(R=L.id);L&&L!==document;L=L.parentNode)if(L){L.id&&(R=L.id);break}return"yasqe_"+R+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json",showFormatButton:!0,checkConstructVariables:!0,snippets:[{label:"SELECT",code:`SELECT * WHERE {
50
+ } LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new Ed.default.fold.combine(Ed.default.fold.brace,Ed.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","gutterConstructWarning","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(N){N.autocomplete()},"Shift-Ctrl-K":function(N){let R=N,L=R.getDoc().getCursor().line;return L===R.getDoc().lastLine()&&L>1?R.getDoc().replaceRange("",{ch:R.getDoc().getLine(L-1).length,line:L-1},{ch:R.getDoc().getLine(L).length,line:L}):R.getDoc().replaceRange("",{ch:0,line:L},{ch:0,line:L+1})},"Ctrl-/":function(N){N.commentLines()},"Shift-Ctrl-D":function(N){N.duplicateLine()},"Shift-Ctrl-F":function(N){N.format()},"Ctrl-S":function(N){N.saveQuery()},"Cmd-Enter":function(N){N.query().catch(()=>{})},"Ctrl-Enter":function(N){N.query().catch(()=>{})},Esc:function(N){N.getInputField().blur()},F11:function(N){N.toggleFullscreen()}},createShareableLink:function(N){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+lI.stringify(N.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(N){N.queryParamsToConfig(N.getUrlParams())},persistenceId:function(N){let R="",L=N.rootEl;for(L.id&&(R=L.id);L&&L!==document;L=L.parentNode)if(L){L.id&&(R=L.id);break}return"yasqe_"+R+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json",showFormatButton:!0,checkConstructVariables:!0,snippets:[{label:"SELECT",code:`SELECT * WHERE {
51
51
  ?s ?p ?o .
52
52
  } LIMIT 10`,group:"Query Types"},{label:"CONSTRUCT",code:`CONSTRUCT {
53
53
  ?s ?p ?o .
@@ -57,54 +57,54 @@ SELECT * WHERE {
57
57
  ?s ?p ?o .
58
58
  }`,group:"Query Types"},{label:"FILTER",code:"FILTER (?var > 100)",group:"Patterns"},{label:"OPTIONAL",code:`OPTIONAL {
59
59
  ?s ?p ?o .
60
- }`,group:"Patterns"}],showSnippetsBar:!0},requestConfig:{queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1,basicAuth:void 0,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var Cd=Xt(si());var mI={"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},vI=/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,xI=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,xd="sparql11",CI=!0;function II(i){let m=mI,e='<[^<>"`|{}^\\\0- ]*>',N="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",R=N+"|_",L="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",O="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",D="\\?"+O,Z="\\$"+O,H="("+N+")((("+L+")|\\.)*("+L+"))?",Q="[0-9A-Fa-f]",M="("+("(%"+Q+Q+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",z="("+R+"|:|[0-9]|"+M+")(("+L+"|\\.|:|"+M+")*("+L+"|:|"+M+"))?",Y="_:("+R+"|[0-9])(("+L+"|\\.)*"+L+")?",B="("+H+")?:",V=B+z,X="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",q="[eE][\\+-]?[0-9]+",te="[0-9]+",ie="[0-9]*\\.[0-9]+",ae="(([0-9]+\\.[0-9]*"+q+")|(\\.[0-9]+"+q+")|([0-9]+"+q+"))",fe="\\+"+te,ye="\\+"+ie,Re="\\+"+ae,Le="-"+te,Ve="-"+ie,Je="-"+ae,me=`\\\\[tbnrf\\\\"']`,xr=Q+"{4}",Cr="(\\\\u"+xr+"|\\\\U00(10|0"+Q+")"+xr+")",ur="'(([^\\x27\\x5C\\x0A\\x0D])|"+me+"|"+Cr+")*'",$r='"(([^\\x22\\x5C\\x0A\\x0D])|'+me+"|"+Cr+')*"',ze={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+me+"|"+Cr+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+me+"|"+Cr+"))*"}};for(let Fe in ze)ze[Fe].COMPLETE=ze[Fe].QUOTES+ze[Fe].CONTENTS+ze[Fe].QUOTES;var St={};for(let Fe in ze)St[Fe]={complete:{name:"STRING_LITERAL_LONG_"+Fe,regex:new RegExp("^"+ze[Fe].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Fe,regex:new RegExp("^"+ze[Fe].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Fe,regex:new RegExp("^"+ze[Fe].CONTENTS+ze[Fe].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Fe,regex:new RegExp("^"+ze[Fe].QUOTES),style:"string"}};let Lt="[\\x20\\x09\\x0D\\x0A]",pr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",wt="("+Lt+"|("+pr+"))*",or="\\("+wt+"\\)",ut="\\["+wt+"\\]",je=[{name:"WS",regex:new RegExp("^"+Lt+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+pr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+D),style:"atom"},{name:"VAR2",regex:new RegExp("^"+Z),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+X),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ae),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ie),style:"number"},{name:"INTEGER",regex:new RegExp("^"+te),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+Re),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+ye),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+fe),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Je),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Ve),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Le),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+ur),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+$r),style:"string"},{name:"NIL",regex:new RegExp("^"+or),style:"punc"},{name:"ANON",regex:new RegExp("^"+ut),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+V),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+B),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+Y),style:"string-2"}];function zr(Fe){var pe=[],Er=m[Fe];if(Er!=null)for(let fr in Er)pe.push(fr.toString());else pe.push(Fe);return pe}function Ir(Fe,pe){function Er(){let Oe;if(pe.inLiteral){var rr=!1;if(Oe=Fe.match(St[pe.inLiteral].contents.regex,!0,!1),Oe&&Oe[0].length==0&&(Oe=Fe.match(St[pe.inLiteral].closing.regex,!0,!1),rr=!0),Oe&&Oe[0].length>0){let Nr={quotePos:rr?"end":"content",cat:ze[pe.inLiteral].CAT,style:St[pe.inLiteral].complete.style,string:Oe[0],start:Fe.start};return rr&&(pe.inLiteral=void 0),Nr}}for(let Nr in St)if(Oe=Fe.match(St[Nr].quotes.regex,!0,!1),Oe){var at;return pe.inLiteral?(pe.inLiteral=void 0,at="end"):(pe.inLiteral=Nr,at="start"),{cat:ze[Nr].CAT,style:St[Nr].quotes.style,string:Oe[0],quotePos:at,start:Fe.start}}for(var pt=0;pt<je.length;++pt)if(Oe=Fe.match(je[pt].regex,!0,!1),Oe)return{cat:je[pt].name,style:je[pt].style,string:Oe[0],start:Fe.start,quotePos:void 0};return Oe=Fe.match(vI,!0,!1),Oe?{cat:Fe.current().toUpperCase(),style:"keyword",string:Oe[0],start:Fe.start,quotePos:void 0}:(Oe=Fe.match(xI,!0,!1),Oe?{cat:Fe.current(),style:"punc",string:Oe[0],start:Fe.start,quotePos:void 0}:(Oe=Fe.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Oe[0],start:Fe.start,quotePos:void 0}))}function fr(){let Oe=Fe.column();pe.errorStartPos=Oe,pe.errorEndPos=Oe+Ae.string.length}function we(Oe){if(pe.queryType==null)switch(Oe){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":pe.queryType=Oe}}function Ur(Oe){switch(Oe==="prefixDecl"?pe.inPrefixDecl=!0:pe.inPrefixDecl=!1,Oe){case"disallowVars":pe.allowVars=!1;break;case"allowVars":pe.allowVars=!0;break;case"disallowBnodes":pe.allowBnodes=!1;break;case"allowBnodes":pe.allowBnodes=!0;break;case"storeProperty":pe.storeProperty=!0;break;case"constructTemplate":pe.inConstructTemplate=!0;break;case"whereClause":pe.inConstructTemplate=!1,pe.seenWhereClause=!0;break}}function ei(Oe){return(pe.allowVars||Oe!="var")&&(pe.allowBnodes||Oe!="blankNode"&&Oe!="blankNodePropertyList"&&Oe!="blankNodePropertyListPath")}Fe.pos==0&&(pe.possibleCurrent=pe.possibleNext);let Ae=Er();if(Ae.cat=="<invalid_token>")return pe.OK==!0&&(pe.OK=!1,fr()),pe.complete=!1,Ae.style;if(Ae.cat==="WS"||Ae.cat==="COMMENT"||Ae.quotePos&&Ae.quotePos!="end")return pe.possibleCurrent=pe.possibleNext,pe.possibleFullIri=!1,Ae.style;var Ot=!1,ft;let Nt=Ae.cat;if(pe.possibleFullIri&&Ae.string===">"&&(pe.possibleFullIri=!1),!pe.possibleFullIri&&Ae.string==="<"&&(pe.possibleFullIri=!0),!Ae.quotePos||Ae.quotePos=="end")for(;pe.stack.length>0&&Nt&&pe.OK&&!Ot;)if(ft=pe.stack.pop(),ft==="var"&&Ae.string&&(pe.variables[Ae.string]=Ae.string,pe.queryType==="CONSTRUCT"&&(pe.inConstructTemplate?pe.constructVariables[Ae.string]=Ae.string:pe.seenWhereClause&&(pe.whereVariables[Ae.string]=Ae.string))),m[ft]){let Oe=m[ft][Nt];if(Oe!=null&&ei(ft)){for(var ct=Oe.length-1;ct>=0;--ct)pe.stack.push(Oe[ct]);Ur(ft)}else pe.OK=!1,pe.complete=!1,fr(),pe.stack.push(ft)}else if(ft==Nt){pe.inPrefixDecl&&(ft==="PNAME_NS"&&Ae.string.length>0?pe.currentPnameNs=Ae.string.slice(0,-1):typeof pe.currentPnameNs=="string"&&Ae.string.length>1&&(pe.prefixes[pe.currentPnameNs]=Ae.string.slice(1,-1),pe.currentPnameNs=void 0)),Ot=!0,we(ft);for(var rs=!0,Me=pe.stack.length;Me>0;--Me){let Oe=m[pe.stack[Me-1]];(!Oe||!Oe.$)&&(rs=!1)}if(pe.complete=rs,pe.storeProperty&&Nt!="punc"?(pe.lastProperty=Ae.string,pe.lastPropertyIndex=Ae.start,pe.storeProperty=!1):(Nt==="."||Nt===";")&&(pe.lastProperty="",pe.lastPropertyIndex=0),!pe.inPrefixDecl&&(Nt==="PNAME_NS"||Nt==="PNAME_LN")){let Oe=Ae.string.indexOf(":");if(Oe>=0){let rr=Ae.string.slice(0,Oe);pe.prefixes[rr]===void 0&&(pe.OK=!1,fr(),pe.errorMsg="Prefix '"+rr+"' is not defined")}}}else pe.OK=!1,pe.complete=!1,fr();if(!Ot&&pe.OK&&(pe.OK=!1,pe.complete=!1,fr()),pe.possibleNext.indexOf("a")>=0){let Oe=Fe.string;for(let rr=Ae.start;rr>=0;rr--)if(Oe[rr-1]!==" "){Oe[rr-1]==="|"||Oe[rr-1]==="/"||Ae.style==="punc"||(pe.lastPredicateOffset=Ae.start);break}}return pe.possibleCurrent=pe.possibleNext,pe.possibleNext=zr(pe.stack[pe.stack.length-1]),Ae.style}let Pr={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},hr={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function Kt(Fe,pe){if(Fe.inLiteral)return 0;if(Fe.lastPredicateOffset!==void 0&&Fe.stack.length&&Fe.stack[Fe.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Fe.lastPredicateOffset;var Er=0,fr=Fe.stack.length-1;if(/^[\}\]\)]/.test(pe)){let we=pe.substr(0,1);for(;fr>=0;--fr)if(Fe.stack[fr]==we){--fr;break}}else{let we=Pr[Fe.stack[fr]];we&&(Er+=we,--fr)}for(;fr>=0;--fr){let we=hr[Fe.stack[fr]];we&&(Er+=we)}return Er*(i.indentUnit??2)}return{token:Ir,startState:function(){return{tokenize:Ir,OK:!0,complete:CI,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:zr(xd),possibleNext:zr(xd),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[xd],lastPredicateOffset:i.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1,inConstructTemplate:!1,seenWhereClause:!1,constructVariables:{},whereVariables:{}}},indent:Kt,electricChars:"}])"}}var $D=Xt(Mm()),zD=Xt(RI()),jD=Xt(LI()),qD=Xt(UI()),KD=Xt(BI()),eM=Xt(Wm()),rM=Xt(XI()),tM=Xt($I()),iM=Xt(qI());Cd.default.registerHelper("fold","prefix",iv);Cd.default.defineMode("sparql11",II);var O1=Cd.default,Ta=O1;function U1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function jl(i,m,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,jl.prototype),R.expected=m,R.found=e,R.location=N,R.name="SyntaxError",R}U1(jl,Error);function Zm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}jl.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,O=this.location.source+":"+L.line+":"+L.column;if(e){var D=this.location.end,Z=Zm("",L.line.toString().length," "),H=e[R.line-1],Q=R.line===D.line?D.column:H.length+1,W=Q-R.column||1;m+=`
61
- --> `+O+`
62
- `+Z+` |
60
+ }`,group:"Patterns"}],showSnippetsBar:!0},requestConfig:{queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1,basicAuth:void 0,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var vd=Yt(si());var uI={"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},fI=/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,cI=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,md="sparql11",pI=!0;function hI(i){let m=uI,e='<[^<>"`|{}^\\\0- ]*>',N="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",R=N+"|_",L="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",G="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",W="\\?"+G,D="\\$"+G,H="("+N+")((("+L+")|\\.)*("+L+"))?",k="[0-9A-Fa-f]",M="("+("(%"+k+k+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",z="("+R+"|:|[0-9]|"+M+")(("+L+"|\\.|:|"+M+")*("+L+"|:|"+M+"))?",J="_:("+R+"|[0-9])(("+L+"|\\.)*"+L+")?",B="("+H+")?:",V=B+z,Y="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",q="[eE][\\+-]?[0-9]+",te="[0-9]+",ie="[0-9]*\\.[0-9]+",ae="(([0-9]+\\.[0-9]*"+q+")|(\\.[0-9]+"+q+")|([0-9]+"+q+"))",ge="\\+"+te,ke="\\+"+ie,ve="\\+"+ae,Te="-"+te,Le="-"+ie,Qe="-"+ae,me=`\\\\[tbnrf\\\\"']`,ar=k+"{4}",Ir="(\\\\u"+ar+"|\\\\U00(10|0"+k+")"+ar+")",cr="'(([^\\x27\\x5C\\x0A\\x0D])|"+me+"|"+Ir+")*'",$r='"(([^\\x22\\x5C\\x0A\\x0D])|'+me+"|"+Ir+')*"',je={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+me+"|"+Ir+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+me+"|"+Ir+"))*"}};for(let Ge in je)je[Ge].COMPLETE=je[Ge].QUOTES+je[Ge].CONTENTS+je[Ge].QUOTES;var St={};for(let Ge in je)St[Ge]={complete:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Ge,regex:new RegExp("^"+je[Ge].CONTENTS+je[Ge].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Ge,regex:new RegExp("^"+je[Ge].QUOTES),style:"string"}};let Lt="[\\x20\\x09\\x0D\\x0A]",dr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",wt="("+Lt+"|("+dr+"))*",lr="\\("+wt+"\\)",ut="\\["+wt+"\\]",qe=[{name:"WS",regex:new RegExp("^"+Lt+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+dr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+W),style:"atom"},{name:"VAR2",regex:new RegExp("^"+D),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+Y),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ae),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ie),style:"number"},{name:"INTEGER",regex:new RegExp("^"+te),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+ve),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+ke),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+ge),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Qe),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Le),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Te),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+cr),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+$r),style:"string"},{name:"NIL",regex:new RegExp("^"+lr),style:"punc"},{name:"ANON",regex:new RegExp("^"+ut),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+V),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+B),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+J),style:"string-2"}];function zr(Ge){var ce=[],vr=m[Ge];if(vr!=null)for(let pr in vr)ce.push(pr.toString());else ce.push(Ge);return ce}function Ar(Ge,ce){function vr(){let Ue;if(ce.inLiteral){var tr=!1;if(Ue=Ge.match(St[ce.inLiteral].contents.regex,!0,!1),Ue&&Ue[0].length==0&&(Ue=Ge.match(St[ce.inLiteral].closing.regex,!0,!1),tr=!0),Ue&&Ue[0].length>0){let Nr={quotePos:tr?"end":"content",cat:je[ce.inLiteral].CAT,style:St[ce.inLiteral].complete.style,string:Ue[0],start:Ge.start};return tr&&(ce.inLiteral=void 0),Nr}}for(let Nr in St)if(Ue=Ge.match(St[Nr].quotes.regex,!0,!1),Ue){var at;return ce.inLiteral?(ce.inLiteral=void 0,at="end"):(ce.inLiteral=Nr,at="start"),{cat:je[Nr].CAT,style:St[Nr].quotes.style,string:Ue[0],quotePos:at,start:Ge.start}}for(var pt=0;pt<qe.length;++pt)if(Ue=Ge.match(qe[pt].regex,!0,!1),Ue)return{cat:qe[pt].name,style:qe[pt].style,string:Ue[0],start:Ge.start,quotePos:void 0};return Ue=Ge.match(fI,!0,!1),Ue?{cat:Ge.current().toUpperCase(),style:"keyword",string:Ue[0],start:Ge.start,quotePos:void 0}:(Ue=Ge.match(cI,!0,!1),Ue?{cat:Ge.current(),style:"punc",string:Ue[0],start:Ge.start,quotePos:void 0}:(Ue=Ge.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Ue[0],start:Ge.start,quotePos:void 0}))}function pr(){let Ue=Ge.column();ce.errorStartPos=Ue,ce.errorEndPos=Ue+Ne.string.length}function we(Ue){if(ce.queryType==null)switch(Ue){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":ce.queryType=Ue}}function Or(Ue){switch(Ue==="prefixDecl"?ce.inPrefixDecl=!0:ce.inPrefixDecl=!1,Ue){case"disallowVars":ce.allowVars=!1;break;case"allowVars":ce.allowVars=!0;break;case"disallowBnodes":ce.allowBnodes=!1;break;case"allowBnodes":ce.allowBnodes=!0;break;case"storeProperty":ce.storeProperty=!0;break;case"constructTemplate":ce.inConstructTemplate=!0;break;case"whereClause":ce.inConstructTemplate=!1,ce.seenWhereClause=!0;break}}function ei(Ue){return(ce.allowVars||Ue!="var")&&(ce.allowBnodes||Ue!="blankNode"&&Ue!="blankNodePropertyList"&&Ue!="blankNodePropertyListPath")}Ge.pos==0&&(ce.possibleCurrent=ce.possibleNext);let Ne=vr();if(Ne.cat=="<invalid_token>")return ce.OK==!0&&(ce.OK=!1,pr()),ce.complete=!1,Ne.style;if(Ne.cat==="WS"||Ne.cat==="COMMENT"||Ne.quotePos&&Ne.quotePos!="end")return ce.possibleCurrent=ce.possibleNext,ce.possibleFullIri=!1,Ne.style;var Ut=!1,ft;let Nt=Ne.cat;if(ce.possibleFullIri&&Ne.string===">"&&(ce.possibleFullIri=!1),!ce.possibleFullIri&&Ne.string==="<"&&(ce.possibleFullIri=!0),!Ne.quotePos||Ne.quotePos=="end")for(;ce.stack.length>0&&Nt&&ce.OK&&!Ut;)if(ft=ce.stack.pop(),ft==="var"&&Ne.string&&(ce.variables[Ne.string]=Ne.string,ce.queryType==="CONSTRUCT"&&(ce.inConstructTemplate?ce.constructVariables[Ne.string]=Ne.string:ce.seenWhereClause&&(ce.whereVariables[Ne.string]=Ne.string))),m[ft]){let Ue=m[ft][Nt];if(Ue!=null&&ei(ft)){for(var ct=Ue.length-1;ct>=0;--ct)ce.stack.push(Ue[ct]);Or(ft)}else ce.OK=!1,ce.complete=!1,pr(),ce.stack.push(ft)}else if(ft==Nt){ce.inPrefixDecl&&(ft==="PNAME_NS"&&Ne.string.length>0?ce.currentPnameNs=Ne.string.slice(0,-1):typeof ce.currentPnameNs=="string"&&Ne.string.length>1&&(ce.prefixes[ce.currentPnameNs]=Ne.string.slice(1,-1),ce.currentPnameNs=void 0)),Ut=!0,we(ft);for(var rs=!0,We=ce.stack.length;We>0;--We){let Ue=m[ce.stack[We-1]];(!Ue||!Ue.$)&&(rs=!1)}if(ce.complete=rs,ce.storeProperty&&Nt!="punc"?(ce.lastProperty=Ne.string,ce.lastPropertyIndex=Ne.start,ce.storeProperty=!1):(Nt==="."||Nt===";")&&(ce.lastProperty="",ce.lastPropertyIndex=0),!ce.inPrefixDecl&&(Nt==="PNAME_NS"||Nt==="PNAME_LN")){let Ue=Ne.string.indexOf(":");if(Ue>=0){let tr=Ne.string.slice(0,Ue);ce.prefixes[tr]===void 0&&(ce.OK=!1,pr(),ce.errorMsg="Prefix '"+tr+"' is not defined")}}}else ce.OK=!1,ce.complete=!1,pr();if(!Ut&&ce.OK&&(ce.OK=!1,ce.complete=!1,pr()),ce.possibleNext.indexOf("a")>=0){let Ue=Ge.string;for(let tr=Ne.start;tr>=0;tr--)if(Ue[tr-1]!==" "){Ue[tr-1]==="|"||Ue[tr-1]==="/"||Ne.style==="punc"||(ce.lastPredicateOffset=Ne.start);break}}return ce.possibleCurrent=ce.possibleNext,ce.possibleNext=zr(ce.stack[ce.stack.length-1]),Ne.style}let Qr={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},gr={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function Kt(Ge,ce){if(Ge.inLiteral)return 0;if(Ge.lastPredicateOffset!==void 0&&Ge.stack.length&&Ge.stack[Ge.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Ge.lastPredicateOffset;var vr=0,pr=Ge.stack.length-1;if(/^[\}\]\)]/.test(ce)){let we=ce.substr(0,1);for(;pr>=0;--pr)if(Ge.stack[pr]==we){--pr;break}}else{let we=Qr[Ge.stack[pr]];we&&(vr+=we,--pr)}for(;pr>=0;--pr){let we=gr[Ge.stack[pr]];we&&(vr+=we)}return vr*(i.indentUnit??2)}return{token:Ar,startState:function(){return{tokenize:Ar,OK:!0,complete:pI,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:zr(md),possibleNext:zr(md),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[md],lastPredicateOffset:i.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1,inConstructTemplate:!1,seenWhereClause:!1,constructVariables:{},whereVariables:{}}},indent:Kt,electricChars:"}])"}}var ZW=Yt(Bm()),QW=Yt(vI()),PW=Yt(II()),kW=Yt(bI()),XW=Yt(yI()),HW=Yt(Vm()),YW=Yt(DI()),_W=Yt(QI()),JW=Yt(XI());vd.default.registerHelper("fold","prefix",ev);vd.default.defineMode("sparql11",hI);var A1=vd.default,Ta=A1;function N1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function jl(i,m,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,jl.prototype),R.expected=m,R.found=e,R.location=N,R.name="SyntaxError",R}N1(jl,Error);function Wm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}jl.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,G=this.location.source+":"+L.line+":"+L.column;if(e){var W=this.location.end,D=Wm("",L.line.toString().length," "),H=e[R.line-1],k=R.line===W.line?W.column:H.length+1,Z=k-R.column||1;m+=`
61
+ --> `+G+`
62
+ `+D+` |
63
63
  `+L.line+" | "+H+`
64
- `+Z+" | "+Zm("",R.column-1," ")+Zm("",W,"^")}else m+=`
65
- at `+O}return m};jl.buildMessage=function(i,m){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var Q=H.parts.map(function(W){return Array.isArray(W)?L(W[0])+"-"+L(W[1]):L(W)});return"["+(H.inverted?"^":"")+Q.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};function N(H){return H.charCodeAt(0).toString(16).toUpperCase()}function R(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function L(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function O(H){return e[H.type](H)}function D(H){var Q=H.map(O),W,$;if(Q.sort(),Q.length>0){for(W=1,$=1;W<Q.length;W++)Q[W-1]!==Q[W]&&(Q[$]=Q[W],$++);Q.length=$}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function Z(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+D(i)+" but "+Z(m)+" found."};function Fh(i,m){m=m!==void 0?m:{};var e={},N=m.grammarSource,R={DOCUMENT:Fp},L=Fp,O="base",D="prefix",Z="select",H="distinct",Q="reduced",W="(",$="as",M=")",z="*",Y="construct",B="where",V="{",X="}",q="describe",te="ask",ie="from",ae="named",fe="group",ye="by",Re="having",Le="order",Ve="asc",Je="desc",me="limit",xr="offset",Cr="values",ur=";",$r="load",ze="silent",St="into",Lt="clear",pr="drop",wt="create",or="add",ut="to",je="move",zr="copy",Ir="insert",Pr="data",hr="delete",Kt="with",Fe="using",pe="default",Er="graph",fr="all",we=".",Ur="optional",ei="service",Ae="bind",Ot="UNDEF",ft="minus",Nt="union",rs="filter",Me=",",ct="a",Oe="|",rr="/",at="^",pt="?",Nr="+",ri="!",Fi="[",ti="]",bt="||",ii="&&",Tr="=",Ut="!=",Ge="<",ni=">",kr="<=",ar=">=",dr="in",ts="not",tr="-",is="str",ht="lang",Dr="langmatches",mi="datatype",bs="bound",rn="iri",tn="uri",Bo="bnode",sn="rand",ya="abs",Zt="ceil",Gi="floor",nn="round",Vo="concat",kn="strlen",on="ucase",oi="lcase",an="encode_for_uri",Bi="contains",Do="strbefore",Mo="strstarts",ln="strends",We="strafter",K="year",Ee="month",Se="day",mr="hours",et="minutes",qe="seconds",Ie="timezone",dt="tz",vi="now",Pt="uuid",_e="struuid",xi="md5",ss="sha1",Sa="sha256",he="sha384",Xe="sha512",La="coalesce",wa="if",Wo="strlang",Zo="strdt",eu="sameterm",Ye="isuri",jf="isiri",ru="isblank",Po="isliteral",Ci="isnumeric",tu="regex",iu="substr",Qn="replace",_n="exists",su="count",Oa="sum",nu="min",ou="max",au="avg",lu="sample",qf="group_concat",Kf="separator",ko="^^",Vi="true",ec="false",Yt=":",un="_:",Ts="$",Ua="@",Di="'",Rs='"',ys="'''",Mi="''",ns='"""',Ss='""',Qo="\\",fn="#",cn="_",pn="%",Fa="~",uu="&",_o=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ga=/^[a-zA-Z]/,os=/^[a-zA-Z0-9]/,ai=/^[eE]/,rc=/^[+\-]/,Ba=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Ho=/^[^'\\]/,Ii=/^[^"\\]/,Va=/^[tbnrf\\"']/,Wi=/^[ \t]/,Xo=/^[\r\n]/,Da=/^[^\r\n]/,hn=/^[A-Z]/,tc=/^[a-z]/,ic=/^[\xC0-\xD6]/,sc=/^[\xD8-\xF6]/,nc=/^[\xF8-\u02FF]/,fu=/^[\u0370-\u037D]/,cu=/^[\u037F-\u1FFF]/,oc=/^[\u200C-\u200D]/,ac=/^[\u2070-\u218F]/,lc=/^[\u2C00-\u2FEF]/,uc=/^[\u3001-\uD7FF]/,pu=/^[\uF900-\uFDCF]/,fc=/^[\uFDF0-\uFFFD]/,dn=/^[\xB7]/,as=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,cc=/^[A-F]/,pc=/^[a-f]/,hc=P("BASE",!0),Xn=P("PREFIX",!0),rt=P("SELECT",!0),gt=P("DISTINCT",!0),hu=P("REDUCED",!0),le=P("(",!1),Ls=P("AS",!0),ue=P(")",!1),Qr=P("*",!1),Yn=P("CONSTRUCT",!0),ls=P("WHERE",!0),Ft=P("{",!1),Gt=P("}",!1),du=P("DESCRIBE",!0),gu=P("ASK",!0),dc=P("FROM",!0),Zi=P("NAMED",!0),Pi=P("GROUP",!0),gn=P("BY",!0),Ma=P("HAVING",!0),Eu=P("ORDER",!0),Ni=P("ASC",!0),ws=P("DESC",!0),Wa=P("LIMIT",!0),gc=P("OFFSET",!0),Yo=P("VALUES",!0),Jt=P(";",!1),mu=P("LOAD",!0),Et=P("SILENT",!0),En=P("INTO",!0),bi=P("CLEAR",!0),vu=P("DROP",!0),xu=P("CREATE",!0),Ec=P("ADD",!0),Jn=P("TO",!0),mc=P("MOVE",!0),Cu=P("COPY",!0),Jo=P("INSERT",!0),Os=P("DATA",!0),mn=P("DELETE",!0),Iu=P("WITH",!0),Za=P("USING",!0),vn=P("DEFAULT",!0),us=P("GRAPH",!0),$o=P("ALL",!0),$e=P(".",!1),Au=P("OPTIONAL",!0),Pa=P("SERVICE",!0),ka=P("BIND",!0),Nu=P("UNDEF",!1),bu=P("MINUS",!0),$n=P("UNION",!0),vc=P("FILTER",!0),ke=P(",",!1),Us=P("a",!1),$t=P("|",!1),Mr=P("/",!1),fs=P("^",!1),Fs=P("?",!1),mt=P("+",!1),xn=P("!",!1),Gs=P("[",!1),li=P("]",!1),ki=P("||",!1),vt=P("&&",!1),kt=P("=",!1),Ti=P("!=",!1),cs=P("<",!1),zn=P(">",!1),zo=P("<=",!1),Bs=P(">=",!1),ps=P("IN",!0),Vs=P("NOT",!0),Wr=P("-",!1),xc=P("STR",!0),Qa=P("LANG",!0),Tu=P("LANGMATCHES",!0),_a=P("DATATYPE",!0),Ha=P("BOUND",!0),Cn=P("IRI",!0),jo=P("URI",!0),Ru=P("BNODE",!0),qo=P("RAND",!0),Cc=P("ABS",!0),Ic=P("CEIL",!0),Ac=P("FLOOR",!0),Xa=P("ROUND",!0),Ya=P("CONCAT",!0),In=P("STRLEN",!0),jn=P("UCASE",!0),Nc=P("LCASE",!0),Ko=P("ENCODE_FOR_URI",!0),yu=P("CONTAINS",!0),qn=P("STRBEFORE",!0),Su=P("STRSTARTS",!0),Ds=P("STRENDS",!0),Kn=P("STRAFTER",!0),Ms=P("YEAR",!0),eo=P("MONTH",!0),An=P("DAY",!0),Lu=P("HOURS",!0),wu=P("MINUTES",!0),Ou=P("SECONDS",!0),bc=P("TIMEZONE",!0),Ws=P("TZ",!0),Zs=P("NOW",!0),Tc=P("UUID",!0),Rc=P("STRUUID",!0),yc=P("MD5",!0),Sc=P("SHA1",!0),Lc=P("SHA256",!0),wc=P("SHA384",!0),Qt=P("SHA512",!0),tt=P("COALESCE",!0),Tt=P("IF",!0),it=P("STRLANG",!0),ro=P("STRDT",!0),Oc=P("sameTerm",!0),ea=P("isURI",!0),Uc=P("isIRI",!0),Fc=P("isBLANK",!0),Gc=P("isLITERAL",!0),Ja=P("isNUMERIC",!0),Uu=P("REGEX",!0),$a=P("SUBSTR",!0),Bc=P("REPLACE",!0),to=P("EXISTS",!0),za=P("COUNT",!0),Fu=P("SUM",!0),Gu=P("MIN",!0),ja=P("MAX",!0),Bu=P("AVG",!0),io=P("SAMPLE",!0),Vc=P("GROUP_CONCAT",!0),ra=P("SEPARATOR",!0),Qi=P("^^",!1),Vu=P("true",!0),Dc=P("false",!0),ta=Be(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Rr=P(":",!1),lr=P("_:",!1),Pe=Be([["0","9"]],!1,!1),Ri=P("$",!1),yi=P("@",!1),ia=Be([["a","z"],["A","Z"]],!1,!1),_i=Be([["a","z"],["A","Z"],["0","9"]],!1,!1),Du=Be(["e","E"],!1,!1),Mc=Be(["+","-"],!1,!1),ui=P("'",!1),Ps=Be(["'","\\",`
66
- `,"\r"],!0,!1),hs=P('"',!1),so=Be(['"',"\\",`
67
- `,"\r"],!0,!1),Si=P("'''",!1),sa=P("''",!1),na=Be(["'","\\"],!0,!1),qa=P('"""',!1),Nn=P('""',!1),no=Be(['"',"\\"],!0,!1),oa=P("\\",!1),Wc=Be(["t","b","n","r","f","\\",'"',"'"],!1,!1),Mu=Be([" "," "],!1,!1),Zc=Be(["\r",`
64
+ `+D+" | "+Wm("",R.column-1," ")+Wm("",Z,"^")}else m+=`
65
+ at `+G}return m};jl.buildMessage=function(i,m){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var k=H.parts.map(function(Z){return Array.isArray(Z)?L(Z[0])+"-"+L(Z[1]):L(Z)});return"["+(H.inverted?"^":"")+k.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};function N(H){return H.charCodeAt(0).toString(16).toUpperCase()}function R(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+N(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+N(k)})}function L(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+N(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+N(k)})}function G(H){return e[H.type](H)}function W(H){var k=H.map(G),Z,$;if(k.sort(),k.length>0){for(Z=1,$=1;Z<k.length;Z++)k[Z-1]!==k[Z]&&(k[$]=k[Z],$++);k.length=$}switch(k.length){case 1:return k[0];case 2:return k[0]+" or "+k[1];default:return k.slice(0,-1).join(", ")+", or "+k[k.length-1]}}function D(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+W(i)+" but "+D(m)+" found."};function Uh(i,m){m=m!==void 0?m:{};var e={},N=m.grammarSource,R={DOCUMENT:Fp},L=Fp,G="base",W="prefix",D="select",H="distinct",k="reduced",Z="(",$="as",M=")",z="*",J="construct",B="where",V="{",Y="}",q="describe",te="ask",ie="from",ae="named",ge="group",ke="by",ve="having",Te="order",Le="asc",Qe="desc",me="limit",ar="offset",Ir="values",cr=";",$r="load",je="silent",St="into",Lt="clear",dr="drop",wt="create",lr="add",ut="to",qe="move",zr="copy",Ar="insert",Qr="data",gr="delete",Kt="with",Ge="using",ce="default",vr="graph",pr="all",we=".",Or="optional",ei="service",Ne="bind",Ut="UNDEF",ft="minus",Nt="union",rs="filter",We=",",ct="a",Ue="|",tr="/",at="^",pt="?",Nr="+",ri="!",Gi="[",ti="]",bt="||",ii="&&",Tr="=",Ot="!=",Fe="<",ni=">",Pr="<=",ur=">=",Er="in",ts="not",ir="-",is="str",ht="lang",Wr="langmatches",mi="datatype",bs="bound",rn="iri",tn="uri",Bo="bnode",sn="rand",ya="abs",Zt="ceil",Fi="floor",nn="round",Vo="concat",Pn="strlen",on="ucase",oi="lcase",an="encode_for_uri",Bi="contains",Wo="strbefore",Do="strstarts",ln="strends",De="strafter",K="year",Ee="month",Se="day",xr="hours",et="minutes",Ke="seconds",Ae="timezone",dt="tz",vi="now",Qt="uuid",Ye="struuid",xi="md5",ss="sha1",Sa="sha256",pe="sha384",Je="sha512",La="coalesce",wa="if",Mo="strlang",Zo="strdt",eu="sameterm",$e="isuri",qf="isiri",ru="isblank",Qo="isliteral",Ci="isnumeric",tu="regex",iu="substr",kn="replace",Xn="exists",su="count",Ua="sum",nu="min",ou="max",au="avg",lu="sample",Kf="group_concat",ec="separator",Po="^^",Vi="true",rc="false",_t=":",un="_:",Ts="$",Oa="@",Wi="'",Rs='"',ys="'''",Di="''",ns='"""',Ss='""',ko="\\",fn="#",cn="_",pn="%",Ga="~",uu="&",Xo=/^[^<>"{}|\^`\\\0- ]/,_e=/^[0-9]/,Fa=/^[a-zA-Z]/,os=/^[a-zA-Z0-9]/,ai=/^[eE]/,tc=/^[+\-]/,Ba=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Ho=/^[^'\\]/,Ii=/^[^"\\]/,Va=/^[tbnrf\\"']/,Mi=/^[ \t]/,Yo=/^[\r\n]/,Wa=/^[^\r\n]/,hn=/^[A-Z]/,ic=/^[a-z]/,sc=/^[\xC0-\xD6]/,nc=/^[\xD8-\xF6]/,oc=/^[\xF8-\u02FF]/,fu=/^[\u0370-\u037D]/,cu=/^[\u037F-\u1FFF]/,ac=/^[\u200C-\u200D]/,lc=/^[\u2070-\u218F]/,uc=/^[\u2C00-\u2FEF]/,fc=/^[\u3001-\uD7FF]/,pu=/^[\uF900-\uFDCF]/,cc=/^[\uFDF0-\uFFFD]/,dn=/^[\xB7]/,as=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,pc=/^[A-F]/,hc=/^[a-f]/,dc=Q("BASE",!0),Yn=Q("PREFIX",!0),rt=Q("SELECT",!0),gt=Q("DISTINCT",!0),hu=Q("REDUCED",!0),le=Q("(",!1),Ls=Q("AS",!0),ue=Q(")",!1),kr=Q("*",!1),_n=Q("CONSTRUCT",!0),ls=Q("WHERE",!0),Gt=Q("{",!1),Ft=Q("}",!1),du=Q("DESCRIBE",!0),gu=Q("ASK",!0),gc=Q("FROM",!0),Zi=Q("NAMED",!0),Qi=Q("GROUP",!0),gn=Q("BY",!0),Da=Q("HAVING",!0),Eu=Q("ORDER",!0),Ni=Q("ASC",!0),ws=Q("DESC",!0),Ma=Q("LIMIT",!0),Ec=Q("OFFSET",!0),_o=Q("VALUES",!0),Jt=Q(";",!1),mu=Q("LOAD",!0),Et=Q("SILENT",!0),En=Q("INTO",!0),bi=Q("CLEAR",!0),vu=Q("DROP",!0),xu=Q("CREATE",!0),mc=Q("ADD",!0),Jn=Q("TO",!0),vc=Q("MOVE",!0),Cu=Q("COPY",!0),Jo=Q("INSERT",!0),Us=Q("DATA",!0),mn=Q("DELETE",!0),Iu=Q("WITH",!0),Za=Q("USING",!0),vn=Q("DEFAULT",!0),us=Q("GRAPH",!0),$o=Q("ALL",!0),ze=Q(".",!1),Au=Q("OPTIONAL",!0),Qa=Q("SERVICE",!0),Pa=Q("BIND",!0),Nu=Q("UNDEF",!1),bu=Q("MINUS",!0),$n=Q("UNION",!0),xc=Q("FILTER",!0),Xe=Q(",",!1),Os=Q("a",!1),$t=Q("|",!1),Dr=Q("/",!1),fs=Q("^",!1),Gs=Q("?",!1),mt=Q("+",!1),xn=Q("!",!1),Fs=Q("[",!1),li=Q("]",!1),Pi=Q("||",!1),vt=Q("&&",!1),Pt=Q("=",!1),Ti=Q("!=",!1),cs=Q("<",!1),zn=Q(">",!1),zo=Q("<=",!1),Bs=Q(">=",!1),ps=Q("IN",!0),Vs=Q("NOT",!0),Mr=Q("-",!1),Cc=Q("STR",!0),ka=Q("LANG",!0),Tu=Q("LANGMATCHES",!0),Xa=Q("DATATYPE",!0),Ha=Q("BOUND",!0),Cn=Q("IRI",!0),jo=Q("URI",!0),Ru=Q("BNODE",!0),qo=Q("RAND",!0),Ic=Q("ABS",!0),Ac=Q("CEIL",!0),Nc=Q("FLOOR",!0),Ya=Q("ROUND",!0),_a=Q("CONCAT",!0),In=Q("STRLEN",!0),jn=Q("UCASE",!0),bc=Q("LCASE",!0),Ko=Q("ENCODE_FOR_URI",!0),yu=Q("CONTAINS",!0),qn=Q("STRBEFORE",!0),Su=Q("STRSTARTS",!0),Ws=Q("STRENDS",!0),Kn=Q("STRAFTER",!0),Ds=Q("YEAR",!0),eo=Q("MONTH",!0),An=Q("DAY",!0),Lu=Q("HOURS",!0),wu=Q("MINUTES",!0),Uu=Q("SECONDS",!0),Tc=Q("TIMEZONE",!0),Ms=Q("TZ",!0),Zs=Q("NOW",!0),Rc=Q("UUID",!0),yc=Q("STRUUID",!0),Sc=Q("MD5",!0),Lc=Q("SHA1",!0),wc=Q("SHA256",!0),Uc=Q("SHA384",!0),kt=Q("SHA512",!0),tt=Q("COALESCE",!0),Tt=Q("IF",!0),it=Q("STRLANG",!0),ro=Q("STRDT",!0),Oc=Q("sameTerm",!0),ea=Q("isURI",!0),Gc=Q("isIRI",!0),Fc=Q("isBLANK",!0),Bc=Q("isLITERAL",!0),Ja=Q("isNUMERIC",!0),Ou=Q("REGEX",!0),$a=Q("SUBSTR",!0),Vc=Q("REPLACE",!0),to=Q("EXISTS",!0),za=Q("COUNT",!0),Gu=Q("SUM",!0),Fu=Q("MIN",!0),ja=Q("MAX",!0),Bu=Q("AVG",!0),io=Q("SAMPLE",!0),Wc=Q("GROUP_CONCAT",!0),ra=Q("SEPARATOR",!0),ki=Q("^^",!1),Vu=Q("true",!0),Dc=Q("false",!0),ta=Be(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Rr=Q(":",!1),fr=Q("_:",!1),Pe=Be([["0","9"]],!1,!1),Ri=Q("$",!1),yi=Q("@",!1),ia=Be([["a","z"],["A","Z"]],!1,!1),Xi=Be([["a","z"],["A","Z"],["0","9"]],!1,!1),Wu=Be(["e","E"],!1,!1),Mc=Be(["+","-"],!1,!1),ui=Q("'",!1),Qs=Be(["'","\\",`
66
+ `,"\r"],!0,!1),hs=Q('"',!1),so=Be(['"',"\\",`
67
+ `,"\r"],!0,!1),Si=Q("'''",!1),sa=Q("''",!1),na=Be(["'","\\"],!0,!1),qa=Q('"""',!1),Nn=Q('""',!1),no=Be(['"',"\\"],!0,!1),oa=Q("\\",!1),Zc=Be(["t","b","n","r","f","\\",'"',"'"],!1,!1),Du=Be([" "," "],!1,!1),Qc=Be(["\r",`
68
68
  `],!1,!1),Pc=Be(["\r",`
69
- `],!0,!1),ds=P("#",!1),Wu=Be([["A","Z"]],!1,!1),kc=Be([["a","z"]],!1,!1),Qc=Be([["\xC0","\xD6"]],!1,!1),Zu=Be([["\xD8","\xF6"]],!1,!1),bn=Be([["\xF8","\u02FF"]],!1,!1),Ka=Be([["\u0370","\u037D"]],!1,!1),aa=Be([["\u037F","\u1FFF"]],!1,!1),Pu=Be([["\u200C","\u200D"]],!1,!1),el=Be([["\u2070","\u218F"]],!1,!1),ku=Be([["\u2C00","\u2FEF"]],!1,!1),_c=Be([["\u3001","\uD7FF"]],!1,!1),Qu=Be([["\uF900","\uFDCF"]],!1,!1),xt=Be([["\uFDF0","\uFFFD"]],!1,!1),Tn=P("_",!1),Rn=Be(["\xB7"],!1,!1),yn=Be([["\u0300","\u036F"]],!1,!1),Sn=Be([["\u203F","\u2040"]],!1,!1),gs=P("%",!1),la=Be([["A","F"]],!1,!1),_u=Be([["a","f"]],!1,!1),Hu=P("~",!1),Xu=P("&",!1),Ln=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(ph).map(([a,p])=>({pos:parseInt(a),text:p}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},Yu=function(n,t,u){let o={type:"Query"};return n&&(o.prologue=n),t.type==="SelectQuery"?o.selectQuery=t:t.type==="ConstructQuery"?o.constructQuery=t:t.type==="DescribeQuery"?o.describeQuery=t:t.type==="AskQuery"&&(o.askQuery=t),u&&(o.values=u),o},ua=function(n){if(n.length)return{type:"Prologue",decl:n}},Ju=function(n){return{type:"BaseDecl",iriref:n}},oo=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Hc=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},wn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:Te()};return o&&(a.values=o),a},$u=function(n,t){let u;t==="*"?u=["*"]:u=t.map(a=>a.length===2?a[1]:{expression:a[3],as:a[7]});let o={var:u};if(n){let a=n.toUpperCase();a==="DISTINCT"?o.distinct=!0:a==="REDUCED"&&(o.reduced=!0)}return o.location=Te(),o},zu=function(n,t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,template:n,where:u,...o,location:Te()},a},ju=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:Te()},o},ao=function(n,t,u,o){let a={type:"DescribeQuery"};return t.length&&(a.from=t),a.describe=n,u&&(a.where=u),a={...a,...o,location:Te()},a},lo=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:Te()},o},uo=function(n){return n},fo=function(n){return{graph:n,location:Te()}},qu=function(n){return{namedGraph:n,location:Te()}},Xc=function(n){return n.graphPattern||n},Ku=function(n,t,u,o){let a={};return n&&(a.group=n),t&&(a.having=t),u&&(a.orderBy=u),o&&(a.limitOffset=o),a},Es=function(n){return n},On=function(n){return n},co=function(n){return n},Yc=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:Te()}:{bracketted:!0,...n}},ef=function(n){return n},Jc=function(n){return n},$c=function(n){return n},zc=function(n){return n},Bt=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},rf=function(n){return n},jc=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},qc=function(n){return{limit:parseInt(n.literal)}},Kc=function(n){return{offset:parseInt(n.literal)}},tf=function(n){return n?n[1]:null},sf=function(n,t){let u={type:"Update"};n&&(u.prologue=n);let o=[];return t&&(o=[t[1]],t[2]&&(o=o.concat(t[2][3].update))),u.update=o,u},nf=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},ep=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},rp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},tp=function(n,t){return{type:"create",silent:n,destinyGraph:t}},ms=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},po=function(n,t,u){return{type:"move",silent:n,graphs:[t,u]}},fa=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},ho=function(n){return{type:"insertdata",insert:n}},Hi=function(n){return{type:"deletedata",delete:n}},ip=function(n){return{type:"deletewhere",delete:n}},sp=function(n,t,u,o){let a={type:"modify"};return n&&(a.with=n[2]),t.length===3?(a.delete=t[0],t[2]&&(a.insert=t[2])):a.insert=t,u.length&&(a.using=u),a.where=o.graphPattern,a},Un=function(n){return n},of=function(n){return n},af=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},lf=function(){return"default"},ca=function(n){return n},Fn=function(n){return n},rl=function(n){return n},tl=function(){return"default"},il=function(){return"named"},np=function(){return"all"},go=function(n){return n},uf=function(n){return n},op=function(n,t){let u=[];return n&&(u=u.concat(n)),t.forEach(o=>{u=u.concat(o[0]),o[2]&&(u=u.concat(o[2]))}),u},ff=function(n,t){return{graph:n,...t}},pa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},ap=function(n){return n},lp=function(n,t){let u=[];return n&&u.push(n),t.forEach(o=>{u.push(o[0]),o[4]&&u.push(o[4])}),{graphPattern:u,location:Te()}},Eo=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:Te()}},cf=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:Te()}},pf=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},up=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=Te(),o},sl=function(n,t){return{type:"Bind",bind:n,as:t,location:Te()}},hf=function(n){return n},fp=function(n,t){return{oneVar:n,data:t,location:Te()}},df=function(n,t){return{variables:n,data:t,location:Te()}},gf=function(n){return n},cp=function(n){return n},nl=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:Te()}},mo=function(n,t){return t.length?{union:[n,...t],location:Te()}:n},vo=function(n){return{type:"Filter",filter:n,location:Te()}},pp=function(n,t){return{functionRef:n,args:t.list,location:Te()}},Ef=function(){return{list:[]}},hp=function(n,t,u){return{distinct:!!n,list:[t,...u]}},dp=function(){return[]},gp=function(n,t){return[n,...t]},Ep=function(n){return n},mf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},mp=function(n,t){return{subject:n,properties:t}},vp=function(n,t){return{subject:n,properties:t}},vf=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},ol=function(){return{a:!0,location:Te()}},xf=function(n,t){return[n,...t]},xp=function(n,t){return{subject:n,properties:t}},Cf=function(n,t){return{subject:n,properties:t}},Gn=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},If=function(n,t){return[n,...t]},ha=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{alternative:u,location:Te()}}else return n},Cp=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{sequence:u,location:Te()}}else return n},Ip=function(n,t){return t&&(n.modifier=t),n},Ap=function(n){return n.inverse=!0,n},yr=function(){return{a:!0,location:Te()}},Np=function(n){return{bracketted:!0,...n}},al=function(n){return{collection:n,location:Te()}},xo=function(n){return{blankNodeProperties:n,location:Te()}},fi=function(n){return{collection:n,location:Te()}},da=function(n){return{blankNodeProperties:n,location:Te()}},ll=function(n){return n},Af=function(n){return n},Nf=function(n){return n},bf=function(n){return n},ul=function(n){return{...n,location:Te()}},Tf=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},bp=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},fl=function(n,t){if(t.length){let u=n,o=t[0][1].toUpperCase(),a=t[0][3];return o==="NOT"&&(o+=" "+t[0][3].toUpperCase(),a=t[0][5]),{expressionType:"relationalexpression",operator:o,op1:u,op2:a}}else return n},Rf=function(n,t){if(t.length===0)return n;let u=[];return t.forEach(o=>{o.length==4&&u.push({operator:o[1],expression:o[3]})}),{expressionType:"additiveexpression",op1:n,ops:u}},gr=function(n,t){return t.length?{expressionType:"multiplicativeexpression",first:n,rest:t.map(u=>({operator:u[1],expression:u[3]}))}:n},yf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Tp=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},Bn=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},Rp=function(n){return{expressionType:"atomic",value:n}},ga=function(n){return{expressionType:"atomic",value:n}},yp=function(n){return{expressionType:"atomic",value:n}},Zr=function(n){return{expressionType:"atomic",value:n}},Sp=function(n){return{bracketted:!0,...n}},Lp=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},wp=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},Ea=function(n,t){return{expressionType:"builtincall",builtincall:"langMatches",args:[n,t]}},s=function(n){return{expressionType:"builtincall",builtincall:"datatype",args:[n]}},l=function(n){return{expressionType:"builtincall",builtincall:"bound",args:[n]}},g=function(n){return{expressionType:"builtincall",builtincall:"IRI",args:[n]}},d=function(n){return{expressionType:"builtincall",builtincall:"URI",args:[n]}},v=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},A=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(n){return{expressionType:"builtincall",builtincall:"abs",args:[n]}},y=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},w=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},U=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},k=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},J=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},re=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},ee=function(n){return{expressionType:"builtincall",builtincall:"LCASE",args:[n]}},oe=function(n){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[n]}},ce=function(n,t){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[n,t]}},de=function(n,t){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[n,t]}},ve=function(n,t){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[n,t]}},Ce=function(n,t){return{expressionType:"builtincall",builtincall:"STRENDS",args:[n,t]}},xe=function(n,t){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[n,t]}},be=function(n){return{expressionType:"builtincall",builtincall:"year",args:[n]}},Ze=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},De=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},Ke=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},vr=function(n){return{expressionType:"builtincall",builtincall:"minutes",args:[n]}},st=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},Lr=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},_t=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Vt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},lt=function(n){return{expressionType:"builtincall",builtincall:"MD5",args:[n]}},jr=function(n){return{expressionType:"builtincall",builtincall:"SHA1",args:[n]}},Hr=function(n){return{expressionType:"builtincall",builtincall:"SHA256",args:[n]}},Fr=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Mt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Vn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},vs=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},Ct=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},Li=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},nt=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},cl=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Xi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},ks=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},Qs=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Rt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Dn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},pl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Td=function(n){return{exists:n.graphPattern||n}},Rd=function(n){return{notexists:n.graphPattern||n}},yd=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},Sd=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},Ld=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},wd=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Od=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},Ud=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Fd=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},Gd=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Bd=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=Te(),n},Vd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Dd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Md=function(n){return{type:"IRIref",iriref:n,location:Te()}},Wd=function(n){return n},Zd=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:Te()}},Pd=function(n){return{type:"PrefixedName",pn_prefix:n,location:Te()}},kd=function(n){return{blankNode:n,location:Te()}},Qd=function(){return{blankNode:"[]",location:Te()}},_d=function(n){return n.join("")},Hd=function(n){return n||""},Xd=function(n,t){return{pn_prefix:n,pn_local:t}},Yd=function(){return Xr()},Jd=function(n){return{type:"Var",varType:"VAR1",varname:n}},$d=function(n){return{type:"Var",varType:"VAR2",varname:n}},zd=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Xr()}},qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Xr()}},Kd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},eg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},rg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},tg=function(n){return n.literal="+"+n.literal,n},ig=function(n){return n.literal="+"+n.literal,n},sg=function(n){return n.literal="+"+n.literal,n},ng=function(n){return n.literal="-"+n.literal,n},og=function(n){return n.literal="-"+n.literal,n},ag=function(n){return n.literal="-"+n.literal,n},lg=function(n){return{quote:"'",literal:n.join("")}},ug=function(n){return{quote:'"',literal:n.join("")}},fg=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},cg=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},pg=function(){return Xr()},hg=function(){return Xr()},dg=function(){return ph[Te().start.offset]=Xr(),""},gg=function(){return Xr()},Eg=function(){return Xr()},mg=function(){return Xr()},r=0,F=0,Co=[{line:1,column:1}],It=0,hl=[],I=0,Io;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function Xr(){return i.substring(F,r)}function sA(){return F}function nA(){return{source:N,start:F,end:r}}function Te(){return _s(F,r)}function oA(n,t){throw t=t!==void 0?t:_s(F,r),Up([xg(n)],i.substring(F,r),t)}function aA(n,t){throw t=t!==void 0?t:_s(F,r),Cg(n,t)}function P(n,t){return{type:"literal",text:n,ignoreCase:t}}function Be(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function lA(){return{type:"any"}}function vg(){return{type:"end"}}function xg(n){return{type:"other",description:n}}function Op(n){var t=Co[n],u;if(t)return t;for(u=n-1;!Co[u];)u--;for(t=Co[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return Co[n]=t,t}function _s(n,t,u){var o=Op(n),a=Op(t),p={source:N,start:{offset:n,line:o.line,column:o.column},end:{offset:t,line:a.line,column:a.column}};return u&&N&&typeof N.offset=="function"&&(p.start=N.offset(p.start),p.end=N.offset(p.end)),p}function C(n){r<It||(r>It&&(It=r,hl=[]),hl.push(n))}function Cg(n,t){return new jl(n,null,null,t)}function Up(n,t,u){return new jl(jl.buildMessage(n,t),n,t,u)}function Fp(){var n,t,u,o,a,p;for(n=r,t=[],u=lh();u!==e;)t.push(u),u=lh();for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ig(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=Ln(t,o)}else r=n,n=e;return n}function Ig(){var n;return n=Ag(),n===e&&(n=_p()),n}function Ag(){var n,t,u,o,a;for(n=r,t=Gp(),u=[],o=c();o!==e;)u.push(o),o=c();return o=Ng(),o===e&&(o=Tg(),o===e&&(o=Rg(),o===e&&(o=yg()))),o!==e?(a=Qp(),F=n,n=Yu(t,o,a)):(r=n,n=e),n}function Gp(){var n,t,u;for(n=r,t=[],u=Bp(),u===e&&(u=Vp());u!==e;)t.push(u),u=Bp(),u===e&&(u=Vp());return F=n,t=ua(t),n=t,n}function Bp(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===O?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(hc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Fl(),a!==e?(F=n,n=Ju(a)):(r=n,n=e)}else r=n,n=e;return n}function Vp(){var n,t,u,o,a,p,h;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===D?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Gl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Fl(),h!==e?(F=n,n=oo(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,p,h,E;if(n=r,t=Dp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=At();a!==e;)o.push(a),a=At();for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Hs(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Yi(),F=n,n=Hc(t,o,p,E)}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u,o,a,p,h;if(n=r,t=Dp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Hs(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Yi(),h=Qp(),F=n,n=wn(t,o,p,h)}else r=n,n=e}else r=n,n=e;return n}function Dp(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue;if(n=r,i.substr(r,6).toLowerCase()===Z?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(rt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(gt)),o===e&&(i.substr(r,7).toLowerCase()===Q?(o=i.substr(r,7),r+=7):(o=e,I===0&&C(hu))),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(x=nr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===40?(x=W,r++):(x=e,I===0&&C(le)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.substr(r,2).toLowerCase()===$?(_=i.substr(r,2),r+=2):(_=e,I===0&&C(Ls)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=nr(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();i.charCodeAt(r)===41?(Ue=M,r++):(Ue=e,I===0&&C(ue)),Ue!==e?(E=[E,x,T,S,G,_,ne,ge,Ne,Ue],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}if(h!==e)for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(x=nr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===40?(x=W,r++):(x=e,I===0&&C(le)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.substr(r,2).toLowerCase()===$?(_=i.substr(r,2),r+=2):(_=e,I===0&&C(Ls)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=nr(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();i.charCodeAt(r)===41?(Ue=M,r++):(Ue=e,I===0&&C(ue)),Ue!==e?(E=[E,x,T,S,G,_,ne,ge,Ne,Ue],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}}else p=e;p===e&&(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(Qr))),p!==e?(F=n,n=$u(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Tg(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne;if(n=r,i.substr(r,9).toLowerCase()===Y?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Yn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=sE(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=Hs(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Yi(),F=n,n=zu(o,p,E,T)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,9).toLowerCase()===Y?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Yn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=At();a!==e;)o.push(a),a=At();for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===B?(p=i.substr(r,5),r+=5):(p=e,I===0&&C(ls)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=$i(),T===e&&(T=null),S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===125?(G=X,r++):(G=e,I===0&&C(Gt)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=Yi(),F=n,n=ju(o,T,ne)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Rg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,8).toLowerCase()===q?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(du)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=ji(),a!==e)for(;a!==e;)o.push(a),a=ji();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,I===0&&C(Qr))),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();for(E=Hs(),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Yi(),F=n,n=ao(o,p,E,T)}else r=n,n=e}else r=n,n=e;return n}function yg(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,3).toLowerCase()===te?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=Hs(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Yi(),F=n,n=lo(a,h,x)}else r=n,n=e}else r=n,n=e;return n}function At(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===ie?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(dc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Sg(),o===e&&(o=Lg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=uo(o)}else r=n,n=e}else r=n,n=e;return n}function Sg(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=cr(),u!==e?(F=n,n=fo(u)):(r=n,n=e),n}function Lg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ae?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Zi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=cr(),o!==e?(F=n,n=qu(o)):(r=n,n=e)}else r=n,n=e;return n}function Hs(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===B?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ls)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();return o=ot(),o!==e?(F=n,n=Xc(o)):(r=n,n=e),n}function Yi(){var n,t,u,o,a;return n=r,t=wg(),t===e&&(t=null),u=Og(),u===e&&(u=null),o=Ug(),o===e&&(o=null),a=Fg(),a===e&&(a=null),F=n,n=Ku(t,u,o,a),n}function wg(){var n,t,u,o,a,p,h;if(n=r,i.substr(r,5).toLowerCase()===fe?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Pi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===ye?(o=i.substr(r,2),r+=2):(o=e,I===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Mp(),h!==e)for(;h!==e;)p.push(h),h=Mp();else p=e;p!==e?(F=n,n=Es(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Mp(){var n,t,u,o,a,p,h,E,x,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=yl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=On(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=eh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=co(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=r,i.substr(r,2).toLowerCase()===$?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Ls)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=nr(),T!==e?(E=[E,x,T],h=E):(r=h,h=e)}else r=h,h=e;for(h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();F=n,n=Yc(a,h)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=nr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=ef(u)}else r=n,n=e}}}return n}function Og(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===Re?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Ma)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=Wp(),a!==e)for(;a!==e;)o.push(a),a=Wp();else o=e;o!==e?(F=n,n=Jc(o)):(r=n,n=e)}else r=n,n=e;return n}function Wp(){var n,t,u,o;if(n=r,t=El(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();F=n,n=$c(t)}else r=n,n=e;return n}function Ug(){var n,t,u,o,a,p,h,E;if(n=r,i.substr(r,5).toLowerCase()===Le?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Eu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===ye?(o=i.substr(r,2),r+=2):(o=e,I===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Zp(),h!==e)for(;h!==e;)p.push(h),h=Zp();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();F=n,n=zc(p)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zp(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===Ve?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Ni)),t===e&&(i.substr(r,4).toLowerCase()===Je?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(ws))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=Bt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=El(),t===e&&(t=nr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();F=n,n=rf(t)}else r=n,n=e;return n}function Fg(){var n,t,u,o;return n=r,t=r,u=Pp(),u!==e?(o=kp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=kp(),u!==e?(o=Pp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(F=n,t=jc(t)),n=t,n}function Pp(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===me?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Wa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=$s(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=qc(o)}else r=n,n=e}else r=n,n=e;return n}function kp(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===xr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=$s(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=Kc(o)}else r=n,n=e}else r=n,n=e;return n}function Qp(){var n,t,u,o;return n=r,t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Yo)),u!==e?(o=qp(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),F=n,t=tf(t),n=t,n}function _p(){var n,t,u,o,a,p,h,E,x,T;for(n=r,t=Gp(),u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(a=Gg(),a!==e){for(p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=_p(),h=[h,E,x,T],p=h}else r=p,p=e;p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return F=n,n=sf(t,u),n}function Gg(){var n;return n=Bg(),n===e&&(n=Vg(),n===e&&(n=Dg(),n===e&&(n=Wg(),n===e&&(n=Zg(),n===e&&(n=Pg(),n===e&&(n=Mg(),n===e&&(n=kg(),n===e&&(n=Qg(),n===e&&(n=_g(),n===e&&(n=Hg())))))))))),n}function Bg(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,i.substr(r,4).toLowerCase()===$r?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(mu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=cr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=r,i.substr(r,4).toLowerCase()===St?(x=i.substr(r,4),r+=4):(x=e,I===0&&C(En)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=dl(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),F=n,n=nf(o,p,E)}else r=n,n=e}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===Lt?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=Yp(),p!==e?(F=n,n=ep(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Dg(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===pr?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=Yp(),p!==e?(F=n,n=rp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Mg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===wt?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(xu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=dl(),p!==e?(F=n,n=tp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,3).toLowerCase()===or?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Ec)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(F=n,n=ms(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===je?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(mc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(F=n,n=po(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Pg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===zr?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Cu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(F=n,n=fa(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function kg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Ir?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Jo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Pr?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Os)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Jp(),p!==e?(F=n,n=ho(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Qg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.substr(r,4).toLowerCase()===Pr?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Os)),o!==e?(a=Jp(),a!==e?(F=n,n=Hi(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function _g(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===B?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(ls)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=gl(),p!==e?(F=n,n=ip(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Hg(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,t=r,i.substr(r,4).toLowerCase()===Kt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Iu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=cr(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();u=[u,o,a,p],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=Xg(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Hp(),p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;if(u===e&&(u=Hp()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=Xp();p!==e;)a.push(p),p=Xp();for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(ls)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=ot(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();F=n,n=sp(t,u,a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e?(u=gl(),u!==e?(F=n,n=Un(u)):(r=n,n=e)):(r=n,n=e),n}function Hp(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Ir?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Jo)),t!==e?(u=gl(),u!==e?(F=n,n=of(u)):(r=n,n=e)):(r=n,n=e),n}function Xp(){var n,t,u,o,a,p,h,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Fe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=cr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ae?(p=i.substr(r,5),r+=5):(p=e,I===0&&C(Zi)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=cr(),E!==e?(p=[p,h,E],a=p):(r=a,a=e)}else r=a,a=e;a!==e?(F=n,n=af(a)):(r=n,n=e)}else r=n,n=e;return n}function Ji(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(vn)),t!==e&&(F=n,t=lf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(us)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();o=cr(),o!==e?(F=n,n=ca(o)):(r=n,n=e)}return n}function dl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(us)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=cr(),o!==e?(F=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;return n}function Yp(){var n,t;return n=r,t=dl(),t!==e&&(F=n,t=rl(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(vn)),t!==e&&(F=n,t=tl()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ae?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Zi)),t!==e&&(F=n,t=il()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===fr?(t=i.substr(r,3),r+=3):(t=e,I===0&&C($o)),t!==e&&(F=n,t=np()),n=t))),n}function gl(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=$p(),p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=go(a)}else r=n,n=e}else r=n,n=e;return n}function Jp(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=$p(),p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=uf(a)}else r=n,n=e}else r=n,n=e;return n}function $p(){var n,t,u,o,a,p,h;for(n=r,t=$i(),t===e&&(t=null),u=[],o=r,a=zp(),a!==e?(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p===e&&(p=null),h=$i(),h===e&&(h=null),a=[a,p,h],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=zp(),a!==e?(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p===e&&(p=null),h=$i(),h===e&&(h=null),a=[a,p,h],o=a):(r=o,o=e);return F=n,n=op(t,u),n}function zp(){var n,t,u,o,a,p,h,E,x,T,S,G,_;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ji(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===123?(h=V,r++):(h=e,I===0&&C(Ft)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(x=$i(),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===125?(S=X,r++):(S=e,I===0&&C(Gt)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=n,n=ff(a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function $i(){var n,t,u,o,a,p,h;if(n=r,t=ih(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=$i(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),F=n,n=pa(t,u)}else r=n,n=e;return n}function ot(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,I===0&&C(Ft)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=bg(),o===e&&(o=Yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=X,r++):(p=e,I===0&&C(Gt)),p!==e?(F=n,n=ap(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Yg(){var n,t,u,o,a,p,h,E,x,T;for(n=r,t=Ao(),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=r,p=jp(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(i.charCodeAt(r)===46?(E=we,r++):(E=e,I===0&&C($e)),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,h,E,x,T],a=p}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,p=jp(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(i.charCodeAt(r)===46?(E=we,r++):(E=e,I===0&&C($e)),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,h,E,x,T],a=p}else r=a,a=e;return F=n,n=lp(t,o),n}function Ao(){var n,t,u,o,a,p,h;if(n=r,t=oE(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Ao(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),F=n,n=Eo(t,u)}else r=n,n=e;return n}function jp(){var n;return n=tE(),n===e&&(n=Jg(),n===e&&(n=rE(),n===e&&(n=$g(),n===e&&(n=zg(),n===e&&(n=iE(),n===e&&(n=jg(),n===e&&(n=qg()))))))),n}function Jg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,8).toLowerCase()===Ur?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Au)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(F=n,n=cf(a)):(r=n,n=e)}else r=n,n=e;return n}function $g(){var n,t,u,o,a,p,h;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ji(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ot(),h!==e?(F=n,n=pf(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zg(){var n,t,u,o,a,p,h,E;if(n=r,i.substr(r,7).toLowerCase()===ei?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Pa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?(F=n,n=up(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function jg(){var n,t,u,o,a,p,h,E,x,T,S,G,_;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===Ae?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(ka)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===$?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ls)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=nr(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=n,n=sl(h,S)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function qg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Yo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=qp(),a!==e?(F=n,n=hf(a)):(r=n,n=e)}else r=n,n=e;return n}function qp(){var n;return n=Kg(),n===e&&(n=eE()),n}function Kg(){var n,t,u,o,a,p,h,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=nr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===123?(a=V,r++):(a=e,I===0&&C(Ft)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=No();E!==e;)h.push(E),E=No();i.charCodeAt(r)===125?(E=X,r++):(E=e,I===0&&C(Gt)),E!==e?(F=n,n=fp(u,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function eE(){var n,t,u,o,a,p,h,E,x,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=nr();p!==e;)a.push(p),p=nr();if(i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=[],S=Kp();S!==e;)T.push(S),S=Kp();i.charCodeAt(r)===125?(S=X,r++):(S=e,I===0&&C(Gt)),S!==e?(F=n,n=df(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Kp(){var n,t,u,o,a,p,h;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=No();a!==e;)o.push(a),a=No();if(i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=n,n=gf(o)}else r=n,n=e}else r=n,n=e;return n}function No(){var n,t,u,o;if(n=r,t=cr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(i.substr(r,5)===Ot?(t=Ot,r+=5):(t=e,I===0&&C(Nu)))))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();F=n,n=cp(t)}else r=n,n=e;return n}function rE(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ft?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ot(),o!==e?(F=n,n=nl(o)):(r=n,n=e)}else r=n,n=e;return n}function tE(){var n,t,u,o,a,p,h,E;if(n=r,t=ot(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Nt?(p=i.substr(r,5),r+=5):(p=e,I===0&&C($n)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Nt?(p=i.substr(r,5),r+=5):(p=e,I===0&&C($n)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=mo(t,u)}else r=n,n=e;return n}function iE(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===rs?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=El(),a!==e?(F=n,n=vo(a)):(r=n,n=e)}else r=n,n=e;return n}function El(){var n;return n=Rl(),n===e&&(n=yl(),n===e&&(n=eh())),n}function eh(){var n,t,u,o;if(n=r,t=cr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=rh(),o!==e?(F=n,n=pp(t,o)):(r=n,n=e)}else r=n,n=e;return n}function rh(){var n,t,u,o,a,p,h,E,x,T,S,G;if(n=r,t=jt(),t!==e&&(F=n,t=Ef()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(gt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=[],x=r,i.charCodeAt(r)===44?(T=Me,r++):(T=e,I===0&&C(ke)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=se(),G!==e?x=G:(r=x,x=e)}else r=x,x=e;for(;x!==e;)if(E.push(x),x=r,i.charCodeAt(r)===44?(T=Me,r++):(T=e,I===0&&C(ke)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=se(),G!==e?x=G:(r=x,x=e)}else r=x,x=e;i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=n,n=hp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zi(){var n,t,u,o,a,p,h,E,x,T,S,G;if(n=r,t=jt(),t!==e&&(F=n,t=dp()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=r,i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();h=T}else r=h,h=e}else r=h,h=e;for(;h!==e;)if(p.push(h),h=r,i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();h=T}else r=h,h=e}else r=h,h=e;i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e?(F=n,n=gp(o,p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function sE(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,I===0&&C(Ft)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=th(),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=X,r++):(p=e,I===0&&C(Gt)),p!==e?(F=n,n=Ep(o)):(r=n,n=e)}else r=n,n=e;return n}function th(){var n,t,u,o,a,p,h;if(n=r,t=ih(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=th(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),F=n,n=mf(t,u)}else r=n,n=e;return n}function ih(){var n,t,u,o,a;if(n=r,t=Ro(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ml(),o!==e?(F=n,n=mp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=nh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=nE(),F=n,n=vp(u,a)}else r=n,n=e}return n}function nE(){var n;return n=ml(),n===e&&(n=null),n}function ml(){var n,t,u,o,a,p,h,E,x,T,S,G,_;if(n=r,t=vl(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=xl(),o!==e){for(a=[],p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=vl(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=xl(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=vl(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=xl(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e}F=n,n=vf(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function vl(){var n,t;return n=ji(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Us)),t!==e&&(F=n,t=ol()),n=t),n}function xl(){var n,t,u,o,a,p,h,E;if(n=r,t=Xs(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Xs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Xs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=xf(t,u)}else r=n,n=e;return n}function oE(){var n,t,u,o,a;if(n=r,t=Ro(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=Cl(),o!==e?(F=n,n=xp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=oh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=aE(),F=n,n=Cf(u,a)}else r=n,n=e}return n}function aE(){var n;return n=Cl(),n===e&&(n=null),n}function Cl(){var n,t,u,o,a,p,h,E,x,T,S,G,_;if(n=r,t=bo(),t===e&&(t=nr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Il(),o!==e){for(a=[],p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=bo(),S===e&&(S=nr()),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=Il(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=bo(),S===e&&(S=nr()),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=Il(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e}F=n,n=Gn(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function Il(){var n,t,u,o,a,p,h,E;if(n=r,t=Ys(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ys(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ys(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=If(t,u)}else r=n,n=e;return n}function bo(){var n,t,u,o,a,p,h,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Oe,r++):(p=e,I===0&&C($t)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Al(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Oe,r++):(p=e,I===0&&C($t)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Al(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}F=n,n=ha(t,u)}else r=n,n=e;return n}function Al(){var n,t,u,o,a,p,h,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Nl(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Nl(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}F=n,n=Cp(t,u)}else r=n,n=e;return n}function sh(){var n,t,u;return n=r,t=uE(),t!==e?(u=lE(),u===e&&(u=null),F=n,n=Ip(t,u)):(r=n,n=e),n}function Nl(){var n,t,u;return n=sh(),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,I===0&&C(fs)),t!==e?(u=sh(),u!==e?(F=n,n=Ap(u)):(r=n,n=e)):(r=n,n=e)),n}function lE(){var n;return i.charCodeAt(r)===63?(n=pt,r++):(n=e,I===0&&C(Fs)),n===e&&(i.charCodeAt(r)===42?(n=z,r++):(n=e,I===0&&C(Qr)),n===e&&(i.charCodeAt(r)===43?(n=Nr,r++):(n=e,I===0&&C(mt)))),n}function uE(){var n,t,u,o;return n=cr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Us)),t!==e&&(F=n,t=yr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,I===0&&C(xn)),t!==e?(u=fE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e?(u=bo(),u!==e?(i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(F=n,n=Np(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function fE(){var n,t,u,o,a,p,h,E;if(n=To(),n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){if(u=r,o=To(),o!==e){for(a=[],p=r,i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e?(E=To(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e);p!==e;)a.push(p),p=r,i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e?(E=To(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function To(){var n,t,u;return n=cr(),n===e&&(i.charCodeAt(r)===97?(n=ct,r++):(n=e,I===0&&C(Us)),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,I===0&&C(fs)),t!==e?(u=cr(),u===e&&(i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Us))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function nh(){var n,t;return n=r,t=hE(),t!==e&&(F=n,t=al(t)),n=t,n===e&&(n=cE()),n}function cE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=Fi,r++):(u=e,I===0&&C(Gs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ml(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,I===0&&C(li)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=xo(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function oh(){var n,t;return n=r,t=dE(),t!==e&&(F=n,t=fi(t)),n=t,n===e&&(n=pE()),n}function pE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=Fi,r++):(u=e,I===0&&C(Gs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Cl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,I===0&&C(li)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=da(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function hE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Xs(),p!==e)for(;p!==e;)a.push(p),p=Xs();else a=e;if(a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=ll(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function dE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Ys(),p!==e)for(;p!==e;)a.push(p),p=Ys();else a=e;if(a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=Af(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Xs(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=Ro(),u===e&&(u=nh()),u!==e?(F=n,n=Nf(u)):(r=n,n=e),n}function Ys(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=Ro(),u===e&&(u=oh()),u!==e?(F=n,n=bf(u)):(r=n,n=e),n}function Ro(){var n;return n=nr(),n===e&&(n=gE()),n}function ji(){var n;return n=nr(),n===e&&(n=cr()),n}function nr(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=SE(),u===e&&(u=LE()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=ul(u)}else r=n,n=e;return n}function gE(){var n;return n=cr(),n===e&&(n=Sl(),n===e&&(n=Ll(),n===e&&(n=Ul(),n===e&&(n=TE(),n===e&&(n=jt()))))),n}function se(){var n,t,u,o,a,p,h,E;if(n=r,t=bl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===bt?(p=bt,r+=2):(p=e,I===0&&C(ki)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=bl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===bt?(p=bt,r+=2):(p=e,I===0&&C(ki)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=bl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=Tf(t,u)}else r=n,n=e;return n}function bl(){var n,t,u,o,a,p,h,E;if(n=r,t=Tl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ii?(p=ii,r+=2):(p=e,I===0&&C(vt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ii?(p=ii,r+=2):(p=e,I===0&&C(vt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=bp(t,u)}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,p,h,E,x,T;if(n=r,t=Gr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Tr,r++):(p=e,I===0&&C(kt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ut?(p=Ut,r+=2):(p=e,I===0&&C(Ti)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Ge,r++):(p=e,I===0&&C(cs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=ni,r++):(p=e,I===0&&C(zn)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===kr?(p=kr,r+=2):(p=e,I===0&&C(zo)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ar?(p=ar,r+=2):(p=e,I===0&&C(Bs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===dr?(p=i.substr(r,2),r+=2):(p=e,I===0&&C(ps)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=zi(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===ts?(p=i.substr(r,3),r+=3):(p=e,I===0&&C(Vs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(ps)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=zi(),T!==e?(a=[a,p,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Tr,r++):(p=e,I===0&&C(kt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ut?(p=Ut,r+=2):(p=e,I===0&&C(Ti)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Ge,r++):(p=e,I===0&&C(cs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=ni,r++):(p=e,I===0&&C(zn)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===kr?(p=kr,r+=2):(p=e,I===0&&C(zo)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ar?(p=ar,r+=2):(p=e,I===0&&C(Bs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===dr?(p=i.substr(r,2),r+=2):(p=e,I===0&&C(ps)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=zi(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===ts?(p=i.substr(r,3),r+=3):(p=e,I===0&&C(Vs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(ps)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=zi(),T!==e?(a=[a,p,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}F=n,n=fl(t,u)}else r=n,n=e;return n}function Gr(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,t=Js(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=Nr,r++):(p=e,I===0&&C(mt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Ol()),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,p],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=Nr,r++):(p=e,I===0&&C(mt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Ol()),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,p],o=a}else r=o,o=e}}F=n,n=Rf(t,u)}else r=n,n=e;return n}function Js(){var n,t,u,o,a,p,h,E;if(n=r,t=Br(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(Qr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(Qr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}}F=n,n=gr(t,u)}else r=n,n=e;return n}function Br(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,I===0&&C(xn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(F=n,n=yf(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(F=n,n=Tp(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(F=n,n=Bn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=yo())}}return n}function yo(){var n,t;return n=Rl(),n===e&&(n=yl(),n===e&&(n=AE(),n===e&&(n=r,t=Sl(),t!==e&&(F=n,t=Rp(t)),n=t,n===e&&(n=r,t=Ll(),t!==e&&(F=n,t=ga(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(F=n,t=yp(t)),n=t,n===e&&(n=r,t=nr(),t!==e&&(F=n,t=Zr(t)),n=t)))))),n}function Rl(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e?(F=n,n=Sp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function yl(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne;if(n=IE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===is?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(xc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Lp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ht?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Qa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=wp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,11).toLowerCase()===Dr?(t=i.substr(r,11),r+=11):(t=e,I===0&&C(Tu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Ea(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===mi?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(_a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=s(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===bs?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ha)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=nr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=l(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===rn?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Cn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=g(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===tn?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(jo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=d(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Bo?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ru)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=r,i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(a=[a,p,h,E,x],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e;o===e&&(o=jt()),o!==e?(F=n,n=v(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===sn?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(qo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=A()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ya?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Cc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=b(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Zt?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Ic)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=y(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Gi?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ac)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=w(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===nn?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Xa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=U(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Vo?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Ya)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(F=n,n=k(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=mE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===kn?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(In)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=J(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=vE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===on?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(jn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=re(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===oi?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Nc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=ee(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,14).toLowerCase()===an?(t=i.substr(r,14),r+=14):(t=e,I===0&&C(Ko)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=oe(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Bi?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(yu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Do?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(qn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=de(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Mo?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Su)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=ve(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ln?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Ds)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===We?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Kn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=xe(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===K?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Ms)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=be(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(eo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Ze(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Se?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(An)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=De(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===mr?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Lu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Ke(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===et?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(wu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=vr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===qe?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Ou)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=st(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Ie?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Lr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===dt?(t=i.substr(r,2),r+=2):(t=e,I===0&&C(Ws)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=_t(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===vi?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Zs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=Vt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Pt?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Tc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=_r()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===_e?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Rc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=Dt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===xi?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(yc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=lt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ss?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Sc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=jr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Sa?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Lc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Hr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===he?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Fr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Xe?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Qt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Mt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===La?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(tt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(F=n,n=Vn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===wa?(t=i.substr(r,2),r+=2):(t=e,I===0&&C(Tt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===44?(G=Me,r++):(G=e,I===0&&C(ke)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(ne=se(),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();i.charCodeAt(r)===41?(Ne=M,r++):(Ne=e,I===0&&C(ue)),Ne!==e?(F=n,n=vs(p,T,ne)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Wo?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(it)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Ct(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Zo?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ro)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Li(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===eu?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Oc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=nt(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ye?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ea)),t===e&&(i.substr(r,5).toLowerCase()===jf?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Uc))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=cl(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ru?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Fc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Xi(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Po?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=ks(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Ci?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Qs(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=EE(),n===e&&(n=xE(),n===e&&(n=CE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function EE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge;if(n=r,i.substr(r,5).toLowerCase()===tu?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Uu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=r,i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();ge=se(),ge!==e?(_=[_,ne,ge],G=_):(r=G,G=e)}else r=G,G=e;for(G===e&&(G=null),_=[],ne=c();ne!==e;)_.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(F=n,n=Rt(p,T,G)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function mE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge;if(n=r,i.substr(r,6).toLowerCase()===iu?(t=i.substr(r,6),r+=6):(t=e,I===0&&C($a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=r,i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();ge=se(),ge!==e?(_=[_,ne,ge],G=_):(r=G,G=e)}else r=G,G=e;for(G===e&&(G=null),_=[],ne=c();ne!==e;)_.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(F=n,n=Dn(p,T,G)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function vE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er,Ht;if(n=r,i.substr(r,7).toLowerCase()===Qn?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===44?(G=Me,r++):(G=e,I===0&&C(ke)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(ne=se(),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(Ne=r,i.charCodeAt(r)===44?(Ue=Me,r++):(Ue=e,I===0&&C(ke)),Ue!==e){for(er=[],Ht=c();Ht!==e;)er.push(Ht),Ht=c();Ht=se(),Ht!==e?(Ue=[Ue,er,Ht],Ne=Ue):(r=Ne,Ne=e)}else r=Ne,Ne=e;for(Ne===e&&(Ne=null),Ue=[],er=c();er!==e;)Ue.push(er),er=c();i.charCodeAt(r)===41?(er=M,r++):(er=e,I===0&&C(ue)),er!==e?(F=n,n=pl(p,T,ne,Ne)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function xE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===_n?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(to)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ot(),o!==e?(F=n,n=Td(o)):(r=n,n=e)}else r=n,n=e;return n}function CE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===ts?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Vs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===_n?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(to)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ot(),p!==e?(F=n,n=Rd(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function IE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue;if(n=r,i.substr(r,5).toLowerCase()===su?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===42?(E=z,r++):(E=e,I===0&&C(Qr)),E===e&&(E=se()),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=yd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Oa?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Fu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Sd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===nu?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Ld(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ou?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=wd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===au?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Od(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===lu?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(io)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Ud(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,12).toLowerCase()===qf?(t=i.substr(r,12),r+=12):(t=e,I===0&&C(Vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=r,T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===59?(S=ur,r++):(S=e,I===0&&C(Jt)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.substr(r,9).toLowerCase()===Kf?(_=i.substr(r,9),r+=9):(_=e,I===0&&C(ra)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(i.charCodeAt(r)===61?(ge=Tr,r++):(ge=e,I===0&&C(kt)),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();Ue=ah(),Ue!==e?(T=[T,S,G,_,ne,ge,Ne,Ue],x=T):(r=x,x=e)}else r=x,x=e}else r=x,x=e}else r=x,x=e;for(x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=n,n=Fd(p,E,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}}}}}return n}function AE(){var n,t,u,o;if(n=r,t=cr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=rh(),o===e&&(o=null),F=n,n=Gd(t,o)}else r=n,n=e;return n}function Sl(){var n,t,u,o,a;return n=r,t=ah(),t!==e?(u=wE(),u===e&&(u=r,i.substr(r,2)===ko?(o=ko,r+=2):(o=e,I===0&&C(Qi)),o!==e?(a=cr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),F=n,n=Bd(t,u)):(r=n,n=e),n}function Ll(){var n;return n=NE(),n===e&&(n=wl(),n===e&&(n=Ol())),n}function NE(){var n;return n=Vl(),n===e&&(n=Bl(),n===e&&(n=$s())),n}function wl(){var n;return n=FE(),n===e&&(n=UE(),n===e&&(n=OE())),n}function Ol(){var n;return n=VE(),n===e&&(n=BE(),n===e&&(n=GE())),n}function Ul(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Vi?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Vu)),t!==e&&(F=n,t=Vd()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ec?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Dc)),t!==e&&(F=n,t=Dd()),n=t),n}function ah(){var n;return n=WE(),n===e&&(n=ZE(),n===e&&(n=DE(),n===e&&(n=ME()))),n}function cr(){var n,t;return n=r,t=Fl(),t!==e&&(F=n,t=Md(t)),n=t,n===e&&(n=r,t=bE(),t!==e&&(F=n,t=Wd(t)),n=t),n}function bE(){var n,t;return n=r,t=RE(),t!==e&&(F=n,t=Zd(t)),n=t,n===e&&(n=r,t=Gl(),t!==e&&(F=n,t=Pd(t)),n=t),n}function TE(){var n,t;return n=r,t=yE(),t!==e&&(F=n,t=kd(t)),n=t,n===e&&(n=r,t=kE(),t!==e&&(F=n,t=Qd()),n=t),n}function Fl(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Ge,r++):(t=e,I===0&&C(cs)),t!==e){for(u=[],_o.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ta));o!==e;)u.push(o),_o.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ta));i.charCodeAt(r)===62?(o=ni,r++):(o=e,I===0&&C(zn)),o!==e?(F=n,n=_d(u)):(r=n,n=e)}else r=n,n=e;return n}function Gl(){var n,t,u;return n=r,t=QE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=Yt,r++):(u=e,I===0&&C(Rr)),u!==e?(F=n,n=Hd(t)):(r=n,n=e),n}function RE(){var n,t,u;return n=r,t=Gl(),t!==e?(u=_E(),u!==e?(F=n,n=Xd(t,u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u,o,a,p,h;if(n=r,i.substr(r,2)===un?(t=un,r+=2):(t=e,I===0&&C(lr)),t!==e)if(u=qi(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe))),u!==e){for(o=[],a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));F=n,n=Yd()}else r=n,n=e;else r=n,n=e;return n}function SE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=pt,r++):(t=e,I===0&&C(Fs)),t!==e?(u=fh(),u!==e?(F=n,n=Jd(u)):(r=n,n=e)):(r=n,n=e),n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ts,r++):(t=e,I===0&&C(Ri)),t!==e?(u=fh(),u!==e?(F=n,n=$d(u)):(r=n,n=e)):(r=n,n=e),n}function wE(){var n,t,u,o,a,p,h,E;if(n=r,i.charCodeAt(r)===64?(t=Ua,r++):(t=e,I===0&&C(yi)),t!==e){if(u=[],Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ia)),o!==e)for(;o!==e;)u.push(o),Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ia));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){if(h=[],os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i)),E!==e)for(;E!==e;)h.push(E),os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i));else h=e;h!==e?(p=[p,h],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){if(h=[],os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i)),E!==e)for(;E!==e;)h.push(E),os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i));else h=e;h!==e?(p=[p,h],a=p):(r=a,a=e)}else r=a,a=e;F=n,n=zd(u,o)}else r=n,n=e}else r=n,n=e;return n}function $s(){var n,t,u;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;return t!==e&&(F=n,t=jd()),n=t,n}function Bl(){var n,t,u,o,a;for(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));if(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(F=n,n=qd()):(r=n,n=e)}else r=n,n=e;return n}function Vl(){var n,t,u,o,a;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u!==e){for(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));a=Dl(),a!==e?(F=n,n=Kd()):(r=n,n=e)}else r=n,n=e;else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===46?(t=we,r++):(t=e,I===0&&C($e)),t!==e){if(u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;u!==e?(o=Dl(),o!==e?(F=n,n=eg()):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;t!==e?(u=Dl(),u!==e?(F=n,n=rg()):(r=n,n=e)):(r=n,n=e)}}return n}function OE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=$s(),u!==e?(F=n,n=tg(u)):(r=n,n=e)):(r=n,n=e),n}function UE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=Bl(),u!==e?(F=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function FE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=Vl(),u!==e?(F=n,n=sg(u)):(r=n,n=e)):(r=n,n=e),n}function GE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e?(u=$s(),u!==e?(F=n,n=ng(u)):(r=n,n=e)):(r=n,n=e),n}function BE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e?(u=Bl(),u!==e?(F=n,n=og(u)):(r=n,n=e)):(r=n,n=e),n}function VE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e?(u=Vl(),u!==e?(F=n,n=ag(u)):(r=n,n=e)):(r=n,n=e),n}function Dl(){var n,t,u,o,a;if(n=r,ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Du)),t!==e){if(rc.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Mc)),u===e&&(u=null),o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function DE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Di,r++):(t=e,I===0&&C(ui)),t!==e){for(u=[],Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Ps)),o===e&&(o=zt());o!==e;)u.push(o),Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Ps)),o===e&&(o=zt());i.charCodeAt(r)===39?(o=Di,r++):(o=e,I===0&&C(ui)),o!==e?(F=n,n=lg(u)):(r=n,n=e)}else r=n,n=e;return n}function ME(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=Rs,r++):(t=e,I===0&&C(hs)),t!==e){for(u=[],Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(so)),o===e&&(o=zt());o!==e;)u.push(o),Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(so)),o===e&&(o=zt());i.charCodeAt(r)===34?(o=Rs,r++):(o=e,I===0&&C(hs)),o!==e?(F=n,n=ug(u)):(r=n,n=e)}else r=n,n=e;return n}function WE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ys?(t=ys,r+=3):(t=e,I===0&&C(Si)),t!==e){for(u=[],o=r,i.substr(r,2)===Mi?(a=Mi,r+=2):(a=e,I===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,I===0&&C(ui))),a===e&&(a=null),Ho.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(na)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Mi?(a=Mi,r+=2):(a=e,I===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,I===0&&C(ui))),a===e&&(a=null),Ho.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(na)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ys?(o=ys,r+=3):(o=e,I===0&&C(Si)),o!==e?(F=n,n=fg(u)):(r=n,n=e)}else r=n,n=e;return n}function ZE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ns?(t=ns,r+=3):(t=e,I===0&&C(qa)),t!==e){for(u=[],o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,I===0&&C(Nn)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs))),a===e&&(a=null),Ii.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(no)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,I===0&&C(Nn)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs))),a===e&&(a=null),Ii.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(no)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ns?(o=ns,r+=3):(o=e,I===0&&C(qa)),o!==e?(F=n,n=cg(u)):(r=n,n=e)}else r=n,n=e;return n}function zt(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Qo,r++):(t=e,I===0&&C(oa)),t!==e?(Va.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Wc)),u!==e?(F=n,n=pg()):(r=n,n=e)):(r=n,n=e),n}function jt(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function c(){var n;return n=PE(),n===e&&(n=Ml(),n===e&&(n=Wl())),n}function Ml(){var n;return Wi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Mu)),n}function Wl(){var n;return Xo.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Zc)),n}function So(){var n;return Da.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pc)),n}function lh(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=fn,r++):(t=e,I===0&&C(ds)),t!==e){for(u=[],o=So();o!==e;)u.push(o),o=So();o=Wl(),o!==e?(F=n,n=hg()):(r=n,n=e)}else r=n,n=e;return n}function PE(){var n,t,u,o,a,p;for(n=r,t=Wl(),t===e&&(t=null),u=[],o=Ml();o!==e;)u.push(o),o=Ml();if(i.charCodeAt(r)===35?(o=fn,r++):(o=e,I===0&&C(ds)),o!==e){for(a=[],p=So();p!==e;)a.push(p),p=So();F=n,n=dg()}else r=n,n=e;return n}function kE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=Fi,r++):(t=e,I===0&&C(Gs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===93?(o=ti,r++):(o=e,I===0&&C(li)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function uh(){var n;return hn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Wu)),n===e&&(tc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(kc)),n===e&&(ic.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Qc)),n===e&&(sc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Zu)),n===e&&(nc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(bn)),n===e&&(fu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Ka)),n===e&&(cu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(aa)),n===e&&(oc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pu)),n===e&&(ac.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(el)),n===e&&(lc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(ku)),n===e&&(uc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(_c)),n===e&&(pu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Qu)),n===e&&(fc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(xt)))))))))))))),n}function qi(){var n;return n=uh(),n===e&&(i.charCodeAt(r)===95?(n=cn,r++):(n=e,I===0&&C(Tn))),n}function fh(){var n,t,u,o;if(n=r,t=qi(),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe))),t!==e){for(u=[],o=qi(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o===e&&(dn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Rn)),o===e&&(as.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Sn))))));o!==e;)u.push(o),o=qi(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o===e&&(dn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Rn)),o===e&&(as.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Sn))))));F=n,n=gg()}else r=n,n=e;return n}function Yr(){var n;return n=qi(),n===e&&(i.charCodeAt(r)===45?(n=tr,r++):(n=e,I===0&&C(Wr)),n===e&&(He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pe)),n===e&&(dn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Rn)),n===e&&(as.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(yn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Sn))))))),n}function QE(){var n,t,u,o,a,p;if(n=r,t=uh(),t!==e){for(u=[],o=Yr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Yr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));F=n,n=Eg()}else r=n,n=e;return n}function _E(){var n,t,u,o,a,p;if(n=r,t=qi(),t===e&&(i.charCodeAt(r)===58?(t=Yt,r++):(t=e,I===0&&C(Rr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(t=zs()))),t!==e){for(u=[],o=Yr(),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p===e&&(i.charCodeAt(r)===58?(p=Yt,r++):(p=e,I===0&&C(Rr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Yr(),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p===e&&(i.charCodeAt(r)===58?(p=Yt,r++):(p=e,I===0&&C(Rr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));F=n,n=mg()}else r=n,n=e;return n}function zs(){var n;return n=HE(),n===e&&(n=XE()),n}function HE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=pn,r++):(t=e,I===0&&C(gs)),t!==e?(u=ch(),u!==e?(o=ch(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function ch(){var n;return He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pe)),n===e&&(cc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(la)),n===e&&(pc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(_u)))),n}function XE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Qo,r++):(t=e,I===0&&C(oa)),t!==e?(i.charCodeAt(r)===95?(u=cn,r++):(u=e,I===0&&C(Tn)),u===e&&(i.charCodeAt(r)===126?(u=Fa,r++):(u=e,I===0&&C(Hu)),u===e&&(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u===e&&(i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u===e&&(i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u===e&&(i.charCodeAt(r)===36?(u=Ts,r++):(u=e,I===0&&C(Ri)),u===e&&(i.charCodeAt(r)===38?(u=uu,r++):(u=e,I===0&&C(Xu)),u===e&&(i.charCodeAt(r)===39?(u=Di,r++):(u=e,I===0&&C(ui)),u===e&&(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u===e&&(i.charCodeAt(r)===41?(u=M,r++):(u=e,I===0&&C(ue)),u===e&&(i.charCodeAt(r)===42?(u=z,r++):(u=e,I===0&&C(Qr)),u===e&&(i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u===e&&(i.charCodeAt(r)===44?(u=Me,r++):(u=e,I===0&&C(ke)),u===e&&(i.charCodeAt(r)===59?(u=ur,r++):(u=e,I===0&&C(Jt)),u===e&&(i.charCodeAt(r)===58?(u=Yt,r++):(u=e,I===0&&C(Rr)),u===e&&(i.charCodeAt(r)===61?(u=Tr,r++):(u=e,I===0&&C(kt)),u===e&&(i.charCodeAt(r)===47?(u=rr,r++):(u=e,I===0&&C(Mr)),u===e&&(i.charCodeAt(r)===63?(u=pt,r++):(u=e,I===0&&C(Fs)),u===e&&(i.charCodeAt(r)===35?(u=fn,r++):(u=e,I===0&&C(ds)),u===e&&(i.charCodeAt(r)===64?(u=Ua,r++):(u=e,I===0&&C(yi)),u===e&&(i.charCodeAt(r)===37?(u=pn,r++):(u=e,I===0&&C(gs)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let ph={};if(Io=L(),Io!==e&&r===i.length)return Io;throw Io!==e&&r<i.length&&C(vg()),Up(hl,It<i.length?i.charAt(It):null,It<i.length?_s(It,It+1):_s(It,It))}function F1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function ql(i,m,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,ql.prototype),R.expected=m,R.found=e,R.location=N,R.name="SyntaxError",R}F1(ql,Error);function Pm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}ql.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,O=this.location.source+":"+L.line+":"+L.column;if(e){var D=this.location.end,Z=Pm("",L.line.toString().length," "),H=e[R.line-1],Q=R.line===D.line?D.column:H.length+1,W=Q-R.column||1;m+=`
70
- --> `+O+`
71
- `+Z+` |
69
+ `],!0,!1),ds=Q("#",!1),Mu=Be([["A","Z"]],!1,!1),kc=Be([["a","z"]],!1,!1),Xc=Be([["\xC0","\xD6"]],!1,!1),Zu=Be([["\xD8","\xF6"]],!1,!1),bn=Be([["\xF8","\u02FF"]],!1,!1),Ka=Be([["\u0370","\u037D"]],!1,!1),aa=Be([["\u037F","\u1FFF"]],!1,!1),Qu=Be([["\u200C","\u200D"]],!1,!1),el=Be([["\u2070","\u218F"]],!1,!1),Pu=Be([["\u2C00","\u2FEF"]],!1,!1),Hc=Be([["\u3001","\uD7FF"]],!1,!1),ku=Be([["\uF900","\uFDCF"]],!1,!1),xt=Be([["\uFDF0","\uFFFD"]],!1,!1),Tn=Q("_",!1),Rn=Be(["\xB7"],!1,!1),yn=Be([["\u0300","\u036F"]],!1,!1),Sn=Be([["\u203F","\u2040"]],!1,!1),gs=Q("%",!1),la=Be([["A","F"]],!1,!1),Xu=Be([["a","f"]],!1,!1),Hu=Q("~",!1),Yu=Q("&",!1),Ln=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(hh).map(([a,p])=>({pos:parseInt(a),text:p}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},_u=function(n,t,u){let o={type:"Query"};return n&&(o.prologue=n),t.type==="SelectQuery"?o.selectQuery=t:t.type==="ConstructQuery"?o.constructQuery=t:t.type==="DescribeQuery"?o.describeQuery=t:t.type==="AskQuery"&&(o.askQuery=t),u&&(o.values=u),o},ua=function(n){if(n.length)return{type:"Prologue",decl:n}},Ju=function(n){return{type:"BaseDecl",iriref:n}},oo=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Yc=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},wn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:ye()};return o&&(a.values=o),a},$u=function(n,t){let u;t==="*"?u=["*"]:u=t.map(a=>a.length===2?a[1]:{expression:a[3],as:a[7]});let o={var:u};if(n){let a=n.toUpperCase();a==="DISTINCT"?o.distinct=!0:a==="REDUCED"&&(o.reduced=!0)}return o.location=ye(),o},zu=function(n,t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,template:n,where:u,...o,location:ye()},a},ju=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:ye()},o},ao=function(n,t,u,o){let a={type:"DescribeQuery"};return t.length&&(a.from=t),a.describe=n,u&&(a.where=u),a={...a,...o,location:ye()},a},lo=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:ye()},o},uo=function(n){return n},fo=function(n){return{graph:n,location:ye()}},qu=function(n){return{namedGraph:n,location:ye()}},_c=function(n){return n.graphPattern||n},Ku=function(n,t,u,o){let a={};return n&&(a.group=n),t&&(a.having=t),u&&(a.orderBy=u),o&&(a.limitOffset=o),a},Es=function(n){return n},Un=function(n){return n},co=function(n){return n},Jc=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:ye()}:{bracketted:!0,...n}},ef=function(n){return n},$c=function(n){return n},zc=function(n){return n},jc=function(n){return n},Bt=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},rf=function(n){return n},qc=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Kc=function(n){return{limit:parseInt(n.literal)}},ep=function(n){return{offset:parseInt(n.literal)}},tf=function(n){return n?n[1]:null},sf=function(n,t){let u={type:"Update"};n&&(u.prologue=n);let o=[];return t&&(o=[t[1]],t[2]&&(o=o.concat(t[2][3].update))),u.update=o,u},nf=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},rp=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},tp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},ip=function(n,t){return{type:"create",silent:n,destinyGraph:t}},ms=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},po=function(n,t,u){return{type:"move",silent:n,graphs:[t,u]}},fa=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},ho=function(n){return{type:"insertdata",insert:n}},Hi=function(n){return{type:"deletedata",delete:n}},sp=function(n){return{type:"deletewhere",delete:n}},np=function(n,t,u,o){let a={type:"modify"};return n&&(a.with=n[2]),t.length===3?(a.delete=t[0],t[2]&&(a.insert=t[2])):a.insert=t,u.length&&(a.using=u),a.where=o.graphPattern,a},On=function(n){return n},of=function(n){return n},af=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},lf=function(){return"default"},ca=function(n){return n},Gn=function(n){return n},rl=function(n){return n},tl=function(){return"default"},il=function(){return"named"},op=function(){return"all"},go=function(n){return n},uf=function(n){return n},ap=function(n,t){let u=[];return n&&(u=u.concat(n)),t.forEach(o=>{u=u.concat(o[0]),o[2]&&(u=u.concat(o[2]))}),u},ff=function(n,t){return{graph:n,...t}},pa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:ye()}},lp=function(n){return n},up=function(n,t){let u=[];return n&&u.push(n),t.forEach(o=>{u.push(o[0]),o[4]&&u.push(o[4])}),{graphPattern:u,location:ye()}},Eo=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:ye()}},cf=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:ye()}},pf=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},fp=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=ye(),o},sl=function(n,t){return{type:"Bind",bind:n,as:t,location:ye()}},hf=function(n){return n},cp=function(n,t){return{oneVar:n,data:t,location:ye()}},df=function(n,t){return{variables:n,data:t,location:ye()}},gf=function(n){return n},pp=function(n){return n},nl=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:ye()}},mo=function(n,t){return t.length?{union:[n,...t],location:ye()}:n},vo=function(n){return{type:"Filter",filter:n,location:ye()}},hp=function(n,t){return{functionRef:n,args:t.list,location:ye()}},Ef=function(){return{list:[]}},dp=function(n,t,u){return{distinct:!!n,list:[t,...u]}},gp=function(){return[]},Ep=function(n,t){return[n,...t]},mp=function(n){return n},mf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:ye()}},vp=function(n,t){return{subject:n,properties:t}},xp=function(n,t){return{subject:n,properties:t}},vf=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},ol=function(){return{a:!0,location:ye()}},xf=function(n,t){return[n,...t]},Cp=function(n,t){return{subject:n,properties:t}},Cf=function(n,t){return{subject:n,properties:t}},Fn=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},If=function(n,t){return[n,...t]},ha=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{alternative:u,location:ye()}}else return n},Ip=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{sequence:u,location:ye()}}else return n},Ap=function(n,t){return t&&(n.modifier=t),n},Np=function(n){return n.inverse=!0,n},yr=function(){return{a:!0,location:ye()}},bp=function(n){return{bracketted:!0,...n}},al=function(n){return{collection:n,location:ye()}},xo=function(n){return{blankNodeProperties:n,location:ye()}},fi=function(n){return{collection:n,location:ye()}},da=function(n){return{blankNodeProperties:n,location:ye()}},ll=function(n){return n},Af=function(n){return n},Nf=function(n){return n},bf=function(n){return n},ul=function(n){return{...n,location:ye()}},Tf=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},Tp=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},fl=function(n,t){if(t.length){let u=n,o=t[0][1].toUpperCase(),a=t[0][3];return o==="NOT"&&(o+=" "+t[0][3].toUpperCase(),a=t[0][5]),{expressionType:"relationalexpression",operator:o,op1:u,op2:a}}else return n},Rf=function(n,t){if(t.length===0)return n;let u=[];return t.forEach(o=>{o.length==4&&u.push({operator:o[1],expression:o[3]})}),{expressionType:"additiveexpression",op1:n,ops:u}},mr=function(n,t){return t.length?{expressionType:"multiplicativeexpression",first:n,rest:t.map(u=>({operator:u[1],expression:u[3]}))}:n},yf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Rp=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},Bn=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},yp=function(n){return{expressionType:"atomic",value:n}},ga=function(n){return{expressionType:"atomic",value:n}},Sp=function(n){return{expressionType:"atomic",value:n}},Zr=function(n){return{expressionType:"atomic",value:n}},Lp=function(n){return{bracketted:!0,...n}},wp=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},Up=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},Ea=function(n,t){return{expressionType:"builtincall",builtincall:"langMatches",args:[n,t]}},s=function(n){return{expressionType:"builtincall",builtincall:"datatype",args:[n]}},l=function(n){return{expressionType:"builtincall",builtincall:"bound",args:[n]}},g=function(n){return{expressionType:"builtincall",builtincall:"IRI",args:[n]}},d=function(n){return{expressionType:"builtincall",builtincall:"URI",args:[n]}},v=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},A=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(n){return{expressionType:"builtincall",builtincall:"abs",args:[n]}},y=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},w=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},U=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},P=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},_=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},re=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},ee=function(n){return{expressionType:"builtincall",builtincall:"LCASE",args:[n]}},oe=function(n){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[n]}},fe=function(n,t){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[n,t]}},he=function(n,t){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[n,t]}},xe=function(n,t){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[n,t]}},Ie=function(n,t){return{expressionType:"builtincall",builtincall:"STRENDS",args:[n,t]}},Ce=function(n,t){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[n,t]}},Re=function(n){return{expressionType:"builtincall",builtincall:"year",args:[n]}},Ze=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},Ve=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},er=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},Cr=function(n){return{expressionType:"builtincall",builtincall:"minutes",args:[n]}},st=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},Lr=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},Xt=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Vt=function(){return{expressionType:"builtincall",builtincall:"now"}},Xr=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Wt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},lt=function(n){return{expressionType:"builtincall",builtincall:"MD5",args:[n]}},jr=function(n){return{expressionType:"builtincall",builtincall:"SHA1",args:[n]}},Hr=function(n){return{expressionType:"builtincall",builtincall:"SHA256",args:[n]}},Gr=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Dt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Vn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},vs=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},Ct=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},Li=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},nt=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},cl=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Yi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},Ps=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},ks=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Rt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Wn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},pl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Nd=function(n){return{exists:n.graphPattern||n}},bd=function(n){return{notexists:n.graphPattern||n}},Td=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},Rd=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},yd=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},Sd=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Ld=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},wd=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Ud=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},Od=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Gd=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=ye(),n},Fd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Bd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Vd=function(n){return{type:"IRIref",iriref:n,location:ye()}},Wd=function(n){return n},Dd=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:ye()}},Md=function(n){return{type:"PrefixedName",pn_prefix:n,location:ye()}},Zd=function(n){return{blankNode:n,location:ye()}},Qd=function(){return{blankNode:"[]",location:ye()}},Pd=function(n){return n.join("")},kd=function(n){return n||""},Xd=function(n,t){return{pn_prefix:n,pn_local:t}},Hd=function(){return Yr()},Yd=function(n){return{type:"Var",varType:"VAR1",varname:n}},_d=function(n){return{type:"Var",varType:"VAR2",varname:n}},Jd=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},$d=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Yr()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Yr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},Kd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},eg=function(n){return n.literal="+"+n.literal,n},rg=function(n){return n.literal="+"+n.literal,n},tg=function(n){return n.literal="+"+n.literal,n},ig=function(n){return n.literal="-"+n.literal,n},sg=function(n){return n.literal="-"+n.literal,n},ng=function(n){return n.literal="-"+n.literal,n},og=function(n){return{quote:"'",literal:n.join("")}},ag=function(n){return{quote:'"',literal:n.join("")}},lg=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},ug=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},fg=function(){return Yr()},cg=function(){return Yr()},pg=function(){return hh[ye().start.offset]=Yr(),""},hg=function(){return Yr()},dg=function(){return Yr()},gg=function(){return Yr()},r=0,O=0,Co=[{line:1,column:1}],It=0,hl=[],I=0,Io;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function Yr(){return i.substring(O,r)}function zI(){return O}function jI(){return{source:N,start:O,end:r}}function ye(){return Xs(O,r)}function qI(n,t){throw t=t!==void 0?t:Xs(O,r),Gp([mg(n)],i.substring(O,r),t)}function KI(n,t){throw t=t!==void 0?t:Xs(O,r),vg(n,t)}function Q(n,t){return{type:"literal",text:n,ignoreCase:t}}function Be(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function eA(){return{type:"any"}}function Eg(){return{type:"end"}}function mg(n){return{type:"other",description:n}}function Op(n){var t=Co[n],u;if(t)return t;for(u=n-1;!Co[u];)u--;for(t=Co[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return Co[n]=t,t}function Xs(n,t,u){var o=Op(n),a=Op(t),p={source:N,start:{offset:n,line:o.line,column:o.column},end:{offset:t,line:a.line,column:a.column}};return u&&N&&typeof N.offset=="function"&&(p.start=N.offset(p.start),p.end=N.offset(p.end)),p}function C(n){r<It||(r>It&&(It=r,hl=[]),hl.push(n))}function vg(n,t){return new jl(n,null,null,t)}function Gp(n,t,u){return new jl(jl.buildMessage(n,t),n,t,u)}function Fp(){var n,t,u,o,a,p;for(n=r,t=[],u=uh();u!==e;)t.push(u),u=uh();for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=xg(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=n,n=Ln(t,o)}else r=n,n=e;return n}function xg(){var n;return n=Cg(),n===e&&(n=Hp()),n}function Cg(){var n,t,u,o,a;for(n=r,t=Bp(),u=[],o=c();o!==e;)u.push(o),o=c();return o=Ig(),o===e&&(o=Ng(),o===e&&(o=bg(),o===e&&(o=Tg()))),o!==e?(a=Xp(),O=n,n=_u(t,o,a)):(r=n,n=e),n}function Bp(){var n,t,u;for(n=r,t=[],u=Vp(),u===e&&(u=Wp());u!==e;)t.push(u),u=Vp(),u===e&&(u=Wp());return O=n,t=ua(t),n=t,n}function Vp(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===G?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(dc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Gl(),a!==e?(O=n,n=Ju(a)):(r=n,n=e)}else r=n,n=e;return n}function Wp(){var n,t,u,o,a,p,h;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===W?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Yn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Fl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Gl(),h!==e?(O=n,n=oo(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Ig(){var n,t,u,o,a,p,h,E;if(n=r,t=Dp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=At();a!==e;)o.push(a),a=At();for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Hs(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=_i(),O=n,n=Yc(t,o,p,E)}else r=n,n=e}else r=n,n=e;return n}function Ag(){var n,t,u,o,a,p,h;if(n=r,t=Dp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Hs(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=_i(),h=Xp(),O=n,n=wn(t,o,p,h)}else r=n,n=e}else r=n,n=e;return n}function Dp(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe;if(n=r,i.substr(r,6).toLowerCase()===D?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(rt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(gt)),o===e&&(i.substr(r,7).toLowerCase()===k?(o=i.substr(r,7),r+=7):(o=e,I===0&&C(hu))),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(x=or(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===40?(x=Z,r++):(x=e,I===0&&C(le)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(i.substr(r,2).toLowerCase()===$?(X=i.substr(r,2),r+=2):(X=e,I===0&&C(Ls)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();if(de=or(),de!==e){for(be=[],Oe=c();Oe!==e;)be.push(Oe),Oe=c();i.charCodeAt(r)===41?(Oe=M,r++):(Oe=e,I===0&&C(ue)),Oe!==e?(E=[E,x,T,S,F,X,ne,de,be,Oe],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}if(h!==e)for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(x=or(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===40?(x=Z,r++):(x=e,I===0&&C(le)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(i.substr(r,2).toLowerCase()===$?(X=i.substr(r,2),r+=2):(X=e,I===0&&C(Ls)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();if(de=or(),de!==e){for(be=[],Oe=c();Oe!==e;)be.push(Oe),Oe=c();i.charCodeAt(r)===41?(Oe=M,r++):(Oe=e,I===0&&C(ue)),Oe!==e?(E=[E,x,T,S,F,X,ne,de,be,Oe],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}}else p=e;p===e&&(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(kr))),p!==e?(O=n,n=$u(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne;if(n=r,i.substr(r,9).toLowerCase()===J?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(_n)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=tE(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=Hs(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=_i(),O=n,n=zu(o,p,E,T)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,9).toLowerCase()===J?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(_n)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=At();a!==e;)o.push(a),a=At();for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===B?(p=i.substr(r,5),r+=5):(p=e,I===0&&C(ls)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=$i(),T===e&&(T=null),S=[],F=c();F!==e;)S.push(F),F=c();if(i.charCodeAt(r)===125?(F=Y,r++):(F=e,I===0&&C(Ft)),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();ne=_i(),O=n,n=ju(o,T,ne)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,8).toLowerCase()===q?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(du)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=ji(),a!==e)for(;a!==e;)o.push(a),a=ji();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,I===0&&C(kr))),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();for(E=Hs(),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=_i(),O=n,n=ao(o,p,E,T)}else r=n,n=e}else r=n,n=e;return n}function Tg(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,3).toLowerCase()===te?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=Hs(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=_i(),O=n,n=lo(a,h,x)}else r=n,n=e}else r=n,n=e;return n}function At(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===ie?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rg(),o===e&&(o=yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=n,n=uo(o)}else r=n,n=e}else r=n,n=e;return n}function Rg(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=hr(),u!==e?(O=n,n=fo(u)):(r=n,n=e),n}function yg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ae?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Zi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=hr(),o!==e?(O=n,n=qu(o)):(r=n,n=e)}else r=n,n=e;return n}function Hs(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===B?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ls)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();return o=ot(),o!==e?(O=n,n=_c(o)):(r=n,n=e),n}function _i(){var n,t,u,o,a;return n=r,t=Sg(),t===e&&(t=null),u=Lg(),u===e&&(u=null),o=wg(),o===e&&(o=null),a=Ug(),a===e&&(a=null),O=n,n=Ku(t,u,o,a),n}function Sg(){var n,t,u,o,a,p,h;if(n=r,i.substr(r,5).toLowerCase()===ge?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Qi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===ke?(o=i.substr(r,2),r+=2):(o=e,I===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Mp(),h!==e)for(;h!==e;)p.push(h),h=Mp();else p=e;p!==e?(O=n,n=Es(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Mp(){var n,t,u,o,a,p,h,E,x,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=yl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=n,n=Un(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=rh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=n,n=co(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=r,i.substr(r,2).toLowerCase()===$?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Ls)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=or(),T!==e?(E=[E,x,T],h=E):(r=h,h=e)}else r=h,h=e;for(h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();O=n,n=Jc(a,h)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=or(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=n,n=ef(u)}else r=n,n=e}}}return n}function Lg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===ve?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Da)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=Zp(),a!==e)for(;a!==e;)o.push(a),a=Zp();else o=e;o!==e?(O=n,n=$c(o)):(r=n,n=e)}else r=n,n=e;return n}function Zp(){var n,t,u,o;if(n=r,t=El(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();O=n,n=zc(t)}else r=n,n=e;return n}function wg(){var n,t,u,o,a,p,h,E;if(n=r,i.substr(r,5).toLowerCase()===Te?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Eu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===ke?(o=i.substr(r,2),r+=2):(o=e,I===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Qp(),h!==e)for(;h!==e;)p.push(h),h=Qp();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();O=n,n=jc(p)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Qp(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===Le?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Ni)),t===e&&(i.substr(r,4).toLowerCase()===Qe?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(ws))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=n,n=Bt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=El(),t===e&&(t=or()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();O=n,n=rf(t)}else r=n,n=e;return n}function Ug(){var n,t,u,o;return n=r,t=r,u=Pp(),u!==e?(o=kp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=kp(),u!==e?(o=Pp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(O=n,t=qc(t)),n=t,n}function Pp(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===me?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ma)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=$s(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=n,n=Kc(o)}else r=n,n=e}else r=n,n=e;return n}function kp(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===ar?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Ec)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=$s(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=n,n=ep(o)}else r=n,n=e}else r=n,n=e;return n}function Xp(){var n,t,u,o;return n=r,t=r,i.substr(r,6).toLowerCase()===Ir?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(_o)),u!==e?(o=Kp(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),O=n,t=tf(t),n=t,n}function Hp(){var n,t,u,o,a,p,h,E,x,T;for(n=r,t=Bp(),u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(a=Og(),a!==e){for(p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=cr,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Hp(),h=[h,E,x,T],p=h}else r=p,p=e;p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return O=n,n=sf(t,u),n}function Og(){var n;return n=Gg(),n===e&&(n=Fg(),n===e&&(n=Bg(),n===e&&(n=Wg(),n===e&&(n=Dg(),n===e&&(n=Mg(),n===e&&(n=Vg(),n===e&&(n=Zg(),n===e&&(n=Qg(),n===e&&(n=Pg(),n===e&&(n=kg())))))))))),n}function Gg(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,i.substr(r,4).toLowerCase()===$r?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(mu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=hr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=r,i.substr(r,4).toLowerCase()===St?(x=i.substr(r,4),r+=4):(x=e,I===0&&C(En)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=dl(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),O=n,n=nf(o,p,E)}else r=n,n=e}else r=n,n=e;return n}function Fg(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===Lt?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=Jp(),p!==e?(O=n,n=rp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Bg(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===dr?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=Jp(),p!==e?(O=n,n=tp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===wt?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(xu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=dl(),p!==e?(O=n,n=ip(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,3).toLowerCase()===lr?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(mc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(O=n,n=ms(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Dg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===qe?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(O=n,n=po(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Mg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===zr?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Cu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(O=n,n=fa(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Jo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Qr?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=$p(),p!==e?(O=n,n=ho(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Qg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===gr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.substr(r,4).toLowerCase()===Qr?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Us)),o!==e?(a=$p(),a!==e?(O=n,n=Hi(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function Pg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===gr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===B?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(ls)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=gl(),p!==e?(O=n,n=sp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function kg(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,t=r,i.substr(r,4).toLowerCase()===Kt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Iu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=hr(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();u=[u,o,a,p],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=Xg(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Yp(),p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;if(u===e&&(u=Yp()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=_p();p!==e;)a.push(p),p=_p();for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(ls)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=ot(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();O=n,n=np(t,u,a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===gr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e?(u=gl(),u!==e?(O=n,n=On(u)):(r=n,n=e)):(r=n,n=e),n}function Yp(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Jo)),t!==e?(u=gl(),u!==e?(O=n,n=of(u)):(r=n,n=e)):(r=n,n=e),n}function _p(){var n,t,u,o,a,p,h,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Ge?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=hr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ae?(p=i.substr(r,5),r+=5):(p=e,I===0&&C(Zi)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=hr(),E!==e?(p=[p,h,E],a=p):(r=a,a=e)}else r=a,a=e;a!==e?(O=n,n=af(a)):(r=n,n=e)}else r=n,n=e;return n}function Ji(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===ce?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(vn)),t!==e&&(O=n,t=lf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===vr?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(us)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();o=hr(),o!==e?(O=n,n=ca(o)):(r=n,n=e)}return n}function dl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===vr?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(us)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=hr(),o!==e?(O=n,n=Gn(o)):(r=n,n=e)}else r=n,n=e;return n}function Jp(){var n,t;return n=r,t=dl(),t!==e&&(O=n,t=rl(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===ce?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(vn)),t!==e&&(O=n,t=tl()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ae?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Zi)),t!==e&&(O=n,t=il()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===pr?(t=i.substr(r,3),r+=3):(t=e,I===0&&C($o)),t!==e&&(O=n,t=op()),n=t))),n}function gl(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Gt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=zp(),p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===125?(h=Y,r++):(h=e,I===0&&C(Ft)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=n,n=go(a)}else r=n,n=e}else r=n,n=e;return n}function $p(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Gt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=zp(),p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===125?(h=Y,r++):(h=e,I===0&&C(Ft)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=n,n=uf(a)}else r=n,n=e}else r=n,n=e;return n}function zp(){var n,t,u,o,a,p,h;for(n=r,t=$i(),t===e&&(t=null),u=[],o=r,a=jp(),a!==e?(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p===e&&(p=null),h=$i(),h===e&&(h=null),a=[a,p,h],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=jp(),a!==e?(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p===e&&(p=null),h=$i(),h===e&&(h=null),a=[a,p,h],o=a):(r=o,o=e);return O=n,n=ap(t,u),n}function jp(){var n,t,u,o,a,p,h,E,x,T,S,F,X;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===vr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ji(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===123?(h=V,r++):(h=e,I===0&&C(Gt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(x=$i(),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===125?(S=Y,r++):(S=e,I===0&&C(Ft)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=n,n=ff(a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function $i(){var n,t,u,o,a,p,h;if(n=r,t=sh(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=$i(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),O=n,n=pa(t,u)}else r=n,n=e;return n}function ot(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,I===0&&C(Gt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ag(),o===e&&(o=Hg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=Y,r++):(p=e,I===0&&C(Ft)),p!==e?(O=n,n=lp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Hg(){var n,t,u,o,a,p,h,E,x,T;for(n=r,t=Ao(),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=r,p=qp(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(i.charCodeAt(r)===46?(E=we,r++):(E=e,I===0&&C(ze)),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,h,E,x,T],a=p}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,p=qp(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(i.charCodeAt(r)===46?(E=we,r++):(E=e,I===0&&C(ze)),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,h,E,x,T],a=p}else r=a,a=e;return O=n,n=up(t,o),n}function Ao(){var n,t,u,o,a,p,h;if(n=r,t=sE(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Ao(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),O=n,n=Eo(t,u)}else r=n,n=e;return n}function qp(){var n;return n=eE(),n===e&&(n=Yg(),n===e&&(n=Kg(),n===e&&(n=_g(),n===e&&(n=Jg(),n===e&&(n=rE(),n===e&&(n=$g(),n===e&&(n=zg()))))))),n}function Yg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,8).toLowerCase()===Or?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Au)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(O=n,n=cf(a)):(r=n,n=e)}else r=n,n=e;return n}function _g(){var n,t,u,o,a,p,h;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===vr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ji(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ot(),h!==e?(O=n,n=pf(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Jg(){var n,t,u,o,a,p,h,E;if(n=r,i.substr(r,7).toLowerCase()===ei?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Qa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===je?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?(O=n,n=fp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function $g(){var n,t,u,o,a,p,h,E,x,T,S,F,X;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===Ne?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Pa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===$?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ls)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=or(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=n,n=sl(h,S)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function zg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===Ir?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(_o)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Kp(),a!==e?(O=n,n=hf(a)):(r=n,n=e)}else r=n,n=e;return n}function Kp(){var n;return n=jg(),n===e&&(n=qg()),n}function jg(){var n,t,u,o,a,p,h,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=or(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===123?(a=V,r++):(a=e,I===0&&C(Gt)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=No();E!==e;)h.push(E),E=No();i.charCodeAt(r)===125?(E=Y,r++):(E=e,I===0&&C(Ft)),E!==e?(O=n,n=cp(u,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function qg(){var n,t,u,o,a,p,h,E,x,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=or();p!==e;)a.push(p),p=or();if(i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=[],S=eh();S!==e;)T.push(S),S=eh();i.charCodeAt(r)===125?(S=Y,r++):(S=e,I===0&&C(Ft)),S!==e?(O=n,n=df(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function eh(){var n,t,u,o,a,p,h;if(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=No();a!==e;)o.push(a),a=No();if(i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();O=n,n=gf(o)}else r=n,n=e}else r=n,n=e;return n}function No(){var n,t,u,o;if(n=r,t=hr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ol(),t===e&&(i.substr(r,5)===Ut?(t=Ut,r+=5):(t=e,I===0&&C(Nu)))))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();O=n,n=pp(t)}else r=n,n=e;return n}function Kg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ft?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ot(),o!==e?(O=n,n=nl(o)):(r=n,n=e)}else r=n,n=e;return n}function eE(){var n,t,u,o,a,p,h,E;if(n=r,t=ot(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Nt?(p=i.substr(r,5),r+=5):(p=e,I===0&&C($n)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Nt?(p=i.substr(r,5),r+=5):(p=e,I===0&&C($n)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}O=n,n=mo(t,u)}else r=n,n=e;return n}function rE(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===rs?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(xc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=El(),a!==e?(O=n,n=vo(a)):(r=n,n=e)}else r=n,n=e;return n}function El(){var n;return n=Rl(),n===e&&(n=yl(),n===e&&(n=rh())),n}function rh(){var n,t,u,o;if(n=r,t=hr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=th(),o!==e?(O=n,n=hp(t,o)):(r=n,n=e)}else r=n,n=e;return n}function th(){var n,t,u,o,a,p,h,E,x,T,S,F;if(n=r,t=jt(),t!==e&&(O=n,t=Ef()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(gt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=[],x=r,i.charCodeAt(r)===44?(T=We,r++):(T=e,I===0&&C(Xe)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=se(),F!==e?x=F:(r=x,x=e)}else r=x,x=e;for(;x!==e;)if(E.push(x),x=r,i.charCodeAt(r)===44?(T=We,r++):(T=e,I===0&&C(Xe)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=se(),F!==e?x=F:(r=x,x=e)}else r=x,x=e;i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=n,n=dp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zi(){var n,t,u,o,a,p,h,E,x,T,S,F;if(n=r,t=jt(),t!==e&&(O=n,t=gp()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=r,i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();h=T}else r=h,h=e}else r=h,h=e;for(;h!==e;)if(p.push(h),h=r,i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();h=T}else r=h,h=e}else r=h,h=e;i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e?(O=n,n=Ep(o,p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function tE(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,I===0&&C(Gt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=ih(),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=Y,r++):(p=e,I===0&&C(Ft)),p!==e?(O=n,n=mp(o)):(r=n,n=e)}else r=n,n=e;return n}function ih(){var n,t,u,o,a,p,h;if(n=r,t=sh(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ih(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),O=n,n=mf(t,u)}else r=n,n=e;return n}function sh(){var n,t,u,o,a;if(n=r,t=Ro(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ml(),o!==e?(O=n,n=vp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=oh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=iE(),O=n,n=xp(u,a)}else r=n,n=e}return n}function iE(){var n;return n=ml(),n===e&&(n=null),n}function ml(){var n,t,u,o,a,p,h,E,x,T,S,F,X;if(n=r,t=vl(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=xl(),o!==e){for(a=[],p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=cr,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=vl(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();X=xl(),X!==e?(S=[S,F,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=cr,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=vl(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();X=xl(),X!==e?(S=[S,F,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e}O=n,n=vf(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function vl(){var n,t;return n=ji(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Os)),t!==e&&(O=n,t=ol()),n=t),n}function xl(){var n,t,u,o,a,p,h,E;if(n=r,t=Ys(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=We,r++):(p=e,I===0&&C(Xe)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ys(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=We,r++):(p=e,I===0&&C(Xe)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ys(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}O=n,n=xf(t,u)}else r=n,n=e;return n}function sE(){var n,t,u,o,a;if(n=r,t=Ro(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=Cl(),o!==e?(O=n,n=Cp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=ah(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=nE(),O=n,n=Cf(u,a)}else r=n,n=e}return n}function nE(){var n;return n=Cl(),n===e&&(n=null),n}function Cl(){var n,t,u,o,a,p,h,E,x,T,S,F,X;if(n=r,t=bo(),t===e&&(t=or()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Il(),o!==e){for(a=[],p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=cr,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=bo(),S===e&&(S=or()),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();X=Il(),X!==e?(S=[S,F,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=cr,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=bo(),S===e&&(S=or()),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();X=Il(),X!==e?(S=[S,F,X],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e}O=n,n=Fn(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function Il(){var n,t,u,o,a,p,h,E;if(n=r,t=_s(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=We,r++):(p=e,I===0&&C(Xe)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=_s(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=We,r++):(p=e,I===0&&C(Xe)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=_s(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}O=n,n=If(t,u)}else r=n,n=e;return n}function bo(){var n,t,u,o,a,p,h,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Ue,r++):(p=e,I===0&&C($t)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Al(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Ue,r++):(p=e,I===0&&C($t)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Al(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}O=n,n=ha(t,u)}else r=n,n=e;return n}function Al(){var n,t,u,o,a,p,h,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=tr,r++):(p=e,I===0&&C(Dr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Nl(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=tr,r++):(p=e,I===0&&C(Dr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Nl(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}O=n,n=Ip(t,u)}else r=n,n=e;return n}function nh(){var n,t,u;return n=r,t=aE(),t!==e?(u=oE(),u===e&&(u=null),O=n,n=Ap(t,u)):(r=n,n=e),n}function Nl(){var n,t,u;return n=nh(),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,I===0&&C(fs)),t!==e?(u=nh(),u!==e?(O=n,n=Np(u)):(r=n,n=e)):(r=n,n=e)),n}function oE(){var n;return i.charCodeAt(r)===63?(n=pt,r++):(n=e,I===0&&C(Gs)),n===e&&(i.charCodeAt(r)===42?(n=z,r++):(n=e,I===0&&C(kr)),n===e&&(i.charCodeAt(r)===43?(n=Nr,r++):(n=e,I===0&&C(mt)))),n}function aE(){var n,t,u,o;return n=hr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Os)),t!==e&&(O=n,t=yr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,I===0&&C(xn)),t!==e?(u=lE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e?(u=bo(),u!==e?(i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(O=n,n=bp(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function lE(){var n,t,u,o,a,p,h,E;if(n=To(),n===e)if(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e){if(u=r,o=To(),o!==e){for(a=[],p=r,i.charCodeAt(r)===124?(h=Ue,r++):(h=e,I===0&&C($t)),h!==e?(E=To(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e);p!==e;)a.push(p),p=r,i.charCodeAt(r)===124?(h=Ue,r++):(h=e,I===0&&C($t)),h!==e?(E=To(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function To(){var n,t,u;return n=hr(),n===e&&(i.charCodeAt(r)===97?(n=ct,r++):(n=e,I===0&&C(Os)),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,I===0&&C(fs)),t!==e?(u=hr(),u===e&&(i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Os))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function oh(){var n,t;return n=r,t=cE(),t!==e&&(O=n,t=al(t)),n=t,n===e&&(n=uE()),n}function uE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=Gi,r++):(u=e,I===0&&C(Fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ml(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,I===0&&C(li)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=n,n=xo(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function ah(){var n,t;return n=r,t=pE(),t!==e&&(O=n,t=fi(t)),n=t,n===e&&(n=fE()),n}function fE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=Gi,r++):(u=e,I===0&&C(Fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Cl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,I===0&&C(li)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=n,n=da(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function cE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Ys(),p!==e)for(;p!==e;)a.push(p),p=Ys();else a=e;if(a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=n,n=ll(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function pE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=_s(),p!==e)for(;p!==e;)a.push(p),p=_s();else a=e;if(a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=n,n=Af(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Ys(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=Ro(),u===e&&(u=oh()),u!==e?(O=n,n=Nf(u)):(r=n,n=e),n}function _s(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=Ro(),u===e&&(u=ah()),u!==e?(O=n,n=bf(u)):(r=n,n=e),n}function Ro(){var n;return n=or(),n===e&&(n=hE()),n}function ji(){var n;return n=or(),n===e&&(n=hr()),n}function or(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=RE(),u===e&&(u=yE()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=n,n=ul(u)}else r=n,n=e;return n}function hE(){var n;return n=hr(),n===e&&(n=Sl(),n===e&&(n=Ll(),n===e&&(n=Ol(),n===e&&(n=NE(),n===e&&(n=jt()))))),n}function se(){var n,t,u,o,a,p,h,E;if(n=r,t=bl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===bt?(p=bt,r+=2):(p=e,I===0&&C(Pi)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=bl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===bt?(p=bt,r+=2):(p=e,I===0&&C(Pi)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=bl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}O=n,n=Tf(t,u)}else r=n,n=e;return n}function bl(){var n,t,u,o,a,p,h,E;if(n=r,t=Tl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ii?(p=ii,r+=2):(p=e,I===0&&C(vt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ii?(p=ii,r+=2):(p=e,I===0&&C(vt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}O=n,n=Tp(t,u)}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,p,h,E,x,T;if(n=r,t=Fr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Tr,r++):(p=e,I===0&&C(Pt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ot?(p=Ot,r+=2):(p=e,I===0&&C(Ti)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Fe,r++):(p=e,I===0&&C(cs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=ni,r++):(p=e,I===0&&C(zn)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Pr?(p=Pr,r+=2):(p=e,I===0&&C(zo)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ur?(p=ur,r+=2):(p=e,I===0&&C(Bs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===Er?(p=i.substr(r,2),r+=2):(p=e,I===0&&C(ps)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=zi(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===ts?(p=i.substr(r,3),r+=3):(p=e,I===0&&C(Vs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===Er?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(ps)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=zi(),T!==e?(a=[a,p,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Tr,r++):(p=e,I===0&&C(Pt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ot?(p=Ot,r+=2):(p=e,I===0&&C(Ti)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Fe,r++):(p=e,I===0&&C(cs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=ni,r++):(p=e,I===0&&C(zn)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Pr?(p=Pr,r+=2):(p=e,I===0&&C(zo)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ur?(p=ur,r+=2):(p=e,I===0&&C(Bs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===Er?(p=i.substr(r,2),r+=2):(p=e,I===0&&C(ps)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=zi(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===ts?(p=i.substr(r,3),r+=3):(p=e,I===0&&C(Vs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===Er?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(ps)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=zi(),T!==e?(a=[a,p,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}O=n,n=fl(t,u)}else r=n,n=e;return n}function Fr(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,t=Js(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=Nr,r++):(p=e,I===0&&C(mt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=ir,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Ul()),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(kr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=tr,r++):(x=e,I===0&&C(Dr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(kr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=tr,r++):(x=e,I===0&&C(Dr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,p],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=Nr,r++):(p=e,I===0&&C(mt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=ir,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Ul()),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(kr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=tr,r++):(x=e,I===0&&C(Dr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(kr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=tr,r++):(x=e,I===0&&C(Dr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,p],o=a}else r=o,o=e}}O=n,n=Rf(t,u)}else r=n,n=e;return n}function Js(){var n,t,u,o,a,p,h,E;if(n=r,t=Br(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(kr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=tr,r++):(p=e,I===0&&C(Dr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(kr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=tr,r++):(p=e,I===0&&C(Dr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}}O=n,n=mr(t,u)}else r=n,n=e;return n}function Br(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,I===0&&C(xn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(O=n,n=yf(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(O=n,n=Rp(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===45?(t=ir,r++):(t=e,I===0&&C(Mr)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(O=n,n=Bn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=yo())}}return n}function yo(){var n,t;return n=Rl(),n===e&&(n=yl(),n===e&&(n=CE(),n===e&&(n=r,t=Sl(),t!==e&&(O=n,t=yp(t)),n=t,n===e&&(n=r,t=Ll(),t!==e&&(O=n,t=ga(t)),n=t,n===e&&(n=r,t=Ol(),t!==e&&(O=n,t=Sp(t)),n=t,n===e&&(n=r,t=or(),t!==e&&(O=n,t=Zr(t)),n=t)))))),n}function Rl(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e?(O=n,n=Lp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function yl(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be;if(n=xE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===is?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Cc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=wp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ht?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(ka)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Up(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,11).toLowerCase()===Wr?(t=i.substr(r,11),r+=11):(t=e,I===0&&C(Tu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=Ea(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===mi?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Xa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=s(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===bs?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ha)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=or(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=l(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===rn?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Cn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=g(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===tn?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(jo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=d(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Bo?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ru)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=r,i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(a=[a,p,h,E,x],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e;o===e&&(o=jt()),o!==e?(O=n,n=v(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===sn?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(qo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(O=n,n=A()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ya?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Ic)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=b(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Zt?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Ac)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=y(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Fi?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Nc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=w(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===nn?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ya)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=U(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Vo?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(_a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(O=n,n=P(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=gE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===Pn?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(In)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=_(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=EE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===on?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(jn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=re(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===oi?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=ee(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,14).toLowerCase()===an?(t=i.substr(r,14),r+=14):(t=e,I===0&&C(Ko)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=oe(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Bi?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(yu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=fe(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Wo?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(qn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=he(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Do?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Su)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=xe(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ln?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Ws)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=Ie(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===De?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Kn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=Ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===K?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Ds)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Re(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(eo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Ze(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Se?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(An)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Ve(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===xr?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Lu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=er(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===et?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(wu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Cr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Ke?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Uu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=st(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Ae?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Tc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Lr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===dt?(t=i.substr(r,2),r+=2):(t=e,I===0&&C(Ms)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Xt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===vi?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Zs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(O=n,n=Vt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Qt?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Rc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(O=n,n=Xr()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Ye?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(yc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(O=n,n=Wt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===xi?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Sc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=lt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ss?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Lc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=jr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Sa?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Hr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===pe?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Uc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Gr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Je?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(kt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Dt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===La?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(tt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(O=n,n=Vn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===wa?(t=i.substr(r,2),r+=2):(t=e,I===0&&C(Tt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(i.charCodeAt(r)===44?(F=We,r++):(F=e,I===0&&C(Xe)),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();if(ne=se(),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();i.charCodeAt(r)===41?(be=M,r++):(be=e,I===0&&C(ue)),be!==e?(O=n,n=vs(p,T,ne)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Mo?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(it)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=Ct(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Zo?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ro)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=Li(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===eu?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Oc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e?(O=n,n=nt(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===$e?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ea)),t===e&&(i.substr(r,5).toLowerCase()===qf?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Gc))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=cl(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ru?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Fc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Yi(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Qo?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=Ps(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Ci?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=n,n=ks(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=dE(),n===e&&(n=mE(),n===e&&(n=vE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function dE(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne,de;if(n=r,i.substr(r,5).toLowerCase()===tu?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ou)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(F=r,i.charCodeAt(r)===44?(X=We,r++):(X=e,I===0&&C(Xe)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();de=se(),de!==e?(X=[X,ne,de],F=X):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),X=[],ne=c();ne!==e;)X.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(O=n,n=Rt(p,T,F)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function gE(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne,de;if(n=r,i.substr(r,6).toLowerCase()===iu?(t=i.substr(r,6),r+=6):(t=e,I===0&&C($a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(F=r,i.charCodeAt(r)===44?(X=We,r++):(X=e,I===0&&C(Xe)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();de=se(),de!==e?(X=[X,ne,de],F=X):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),X=[],ne=c();ne!==e;)X.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(O=n,n=Wn(p,T,F)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function EE(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe,rr,Ht;if(n=r,i.substr(r,7).toLowerCase()===kn?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=We,r++):(E=e,I===0&&C(Xe)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(i.charCodeAt(r)===44?(F=We,r++):(F=e,I===0&&C(Xe)),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();if(ne=se(),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();if(be=r,i.charCodeAt(r)===44?(Oe=We,r++):(Oe=e,I===0&&C(Xe)),Oe!==e){for(rr=[],Ht=c();Ht!==e;)rr.push(Ht),Ht=c();Ht=se(),Ht!==e?(Oe=[Oe,rr,Ht],be=Oe):(r=be,be=e)}else r=be,be=e;for(be===e&&(be=null),Oe=[],rr=c();rr!==e;)Oe.push(rr),rr=c();i.charCodeAt(r)===41?(rr=M,r++):(rr=e,I===0&&C(ue)),rr!==e?(O=n,n=pl(p,T,ne,be)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function mE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===Xn?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(to)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ot(),o!==e?(O=n,n=Nd(o)):(r=n,n=e)}else r=n,n=e;return n}function vE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===ts?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Vs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Xn?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(to)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ot(),p!==e?(O=n,n=bd(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function xE(){var n,t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe;if(n=r,i.substr(r,5).toLowerCase()===su?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===42?(E=z,r++):(E=e,I===0&&C(kr)),E===e&&(E=se()),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=n,n=Td(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ua?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=n,n=Rd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===nu?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Fu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=n,n=yd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ou?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=n,n=Sd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===au?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=n,n=Ld(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===lu?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(io)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=n,n=wd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,12).toLowerCase()===Kf?(t=i.substr(r,12),r+=12):(t=e,I===0&&C(Wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=r,T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===59?(S=cr,r++):(S=e,I===0&&C(Jt)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(i.substr(r,9).toLowerCase()===ec?(X=i.substr(r,9),r+=9):(X=e,I===0&&C(ra)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();if(i.charCodeAt(r)===61?(de=Tr,r++):(de=e,I===0&&C(Pt)),de!==e){for(be=[],Oe=c();Oe!==e;)be.push(Oe),Oe=c();Oe=lh(),Oe!==e?(T=[T,S,F,X,ne,de,be,Oe],x=T):(r=x,x=e)}else r=x,x=e}else r=x,x=e}else r=x,x=e;for(x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=n,n=Ud(p,E,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}}}}}return n}function CE(){var n,t,u,o;if(n=r,t=hr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=th(),o===e&&(o=null),O=n,n=Od(t,o)}else r=n,n=e;return n}function Sl(){var n,t,u,o,a;return n=r,t=lh(),t!==e?(u=SE(),u===e&&(u=r,i.substr(r,2)===Po?(o=Po,r+=2):(o=e,I===0&&C(ki)),o!==e?(a=hr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),O=n,n=Gd(t,u)):(r=n,n=e),n}function Ll(){var n;return n=IE(),n===e&&(n=wl(),n===e&&(n=Ul())),n}function IE(){var n;return n=Vl(),n===e&&(n=Bl(),n===e&&(n=$s())),n}function wl(){var n;return n=UE(),n===e&&(n=wE(),n===e&&(n=LE())),n}function Ul(){var n;return n=FE(),n===e&&(n=GE(),n===e&&(n=OE())),n}function Ol(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Vi?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Vu)),t!==e&&(O=n,t=Fd()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===rc?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Dc)),t!==e&&(O=n,t=Bd()),n=t),n}function lh(){var n;return n=WE(),n===e&&(n=DE(),n===e&&(n=BE(),n===e&&(n=VE()))),n}function hr(){var n,t;return n=r,t=Gl(),t!==e&&(O=n,t=Vd(t)),n=t,n===e&&(n=r,t=AE(),t!==e&&(O=n,t=Wd(t)),n=t),n}function AE(){var n,t;return n=r,t=bE(),t!==e&&(O=n,t=Dd(t)),n=t,n===e&&(n=r,t=Fl(),t!==e&&(O=n,t=Md(t)),n=t),n}function NE(){var n,t;return n=r,t=TE(),t!==e&&(O=n,t=Zd(t)),n=t,n===e&&(n=r,t=ZE(),t!==e&&(O=n,t=Qd()),n=t),n}function Gl(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Fe,r++):(t=e,I===0&&C(cs)),t!==e){for(u=[],Xo.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ta));o!==e;)u.push(o),Xo.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ta));i.charCodeAt(r)===62?(o=ni,r++):(o=e,I===0&&C(zn)),o!==e?(O=n,n=Pd(u)):(r=n,n=e)}else r=n,n=e;return n}function Fl(){var n,t,u;return n=r,t=QE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=_t,r++):(u=e,I===0&&C(Rr)),u!==e?(O=n,n=kd(t)):(r=n,n=e),n}function bE(){var n,t,u;return n=r,t=Fl(),t!==e?(u=PE(),u!==e?(O=n,n=Xd(t,u)):(r=n,n=e)):(r=n,n=e),n}function TE(){var n,t,u,o,a,p,h;if(n=r,i.substr(r,2)===un?(t=un,r+=2):(t=e,I===0&&C(fr)),t!==e)if(u=qi(),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe))),u!==e){for(o=[],a=_r(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e?(h=_r(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=_r(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e?(h=_r(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));O=n,n=Hd()}else r=n,n=e;else r=n,n=e;return n}function RE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=pt,r++):(t=e,I===0&&C(Gs)),t!==e?(u=ch(),u!==e?(O=n,n=Yd(u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ts,r++):(t=e,I===0&&C(Ri)),t!==e?(u=ch(),u!==e?(O=n,n=_d(u)):(r=n,n=e)):(r=n,n=e),n}function SE(){var n,t,u,o,a,p,h,E;if(n=r,i.charCodeAt(r)===64?(t=Oa,r++):(t=e,I===0&&C(yi)),t!==e){if(u=[],Fa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ia)),o!==e)for(;o!==e;)u.push(o),Fa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ia));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(p=ir,r++):(p=e,I===0&&C(Mr)),p!==e){if(h=[],os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(Xi)),E!==e)for(;E!==e;)h.push(E),os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(Xi));else h=e;h!==e?(p=[p,h],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(p=ir,r++):(p=e,I===0&&C(Mr)),p!==e){if(h=[],os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(Xi)),E!==e)for(;E!==e;)h.push(E),os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(Xi));else h=e;h!==e?(p=[p,h],a=p):(r=a,a=e)}else r=a,a=e;O=n,n=Jd(u,o)}else r=n,n=e}else r=n,n=e;return n}function $s(){var n,t,u;if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;return t!==e&&(O=n,t=$d()),n=t,n}function Bl(){var n,t,u,o,a;for(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));if(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C(ze)),u!==e){if(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(O=n,n=zd()):(r=n,n=e)}else r=n,n=e;return n}function Vl(){var n,t,u,o,a;if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C(ze)),u!==e){for(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));a=Wl(),a!==e?(O=n,n=jd()):(r=n,n=e)}else r=n,n=e;else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===46?(t=we,r++):(t=e,I===0&&C(ze)),t!==e){if(u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;u!==e?(o=Wl(),o!==e?(O=n,n=qd()):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,t=[],_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;t!==e?(u=Wl(),u!==e?(O=n,n=Kd()):(r=n,n=e)):(r=n,n=e)}}return n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=$s(),u!==e?(O=n,n=eg(u)):(r=n,n=e)):(r=n,n=e),n}function wE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=Bl(),u!==e?(O=n,n=rg(u)):(r=n,n=e)):(r=n,n=e),n}function UE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=Vl(),u!==e?(O=n,n=tg(u)):(r=n,n=e)):(r=n,n=e),n}function OE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ir,r++):(t=e,I===0&&C(Mr)),t!==e?(u=$s(),u!==e?(O=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function GE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ir,r++):(t=e,I===0&&C(Mr)),t!==e?(u=Bl(),u!==e?(O=n,n=sg(u)):(r=n,n=e)):(r=n,n=e),n}function FE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=ir,r++):(t=e,I===0&&C(Mr)),t!==e?(u=Vl(),u!==e?(O=n,n=ng(u)):(r=n,n=e)):(r=n,n=e),n}function Wl(){var n,t,u,o,a;if(n=r,ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Wu)),t!==e){if(tc.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Mc)),u===e&&(u=null),o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function BE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Wi,r++):(t=e,I===0&&C(ui)),t!==e){for(u=[],Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Qs)),o===e&&(o=zt());o!==e;)u.push(o),Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Qs)),o===e&&(o=zt());i.charCodeAt(r)===39?(o=Wi,r++):(o=e,I===0&&C(ui)),o!==e?(O=n,n=og(u)):(r=n,n=e)}else r=n,n=e;return n}function VE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=Rs,r++):(t=e,I===0&&C(hs)),t!==e){for(u=[],Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(so)),o===e&&(o=zt());o!==e;)u.push(o),Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(so)),o===e&&(o=zt());i.charCodeAt(r)===34?(o=Rs,r++):(o=e,I===0&&C(hs)),o!==e?(O=n,n=ag(u)):(r=n,n=e)}else r=n,n=e;return n}function WE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ys?(t=ys,r+=3):(t=e,I===0&&C(Si)),t!==e){for(u=[],o=r,i.substr(r,2)===Di?(a=Di,r+=2):(a=e,I===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Wi,r++):(a=e,I===0&&C(ui))),a===e&&(a=null),Ho.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(na)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Di?(a=Di,r+=2):(a=e,I===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Wi,r++):(a=e,I===0&&C(ui))),a===e&&(a=null),Ho.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(na)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ys?(o=ys,r+=3):(o=e,I===0&&C(Si)),o!==e?(O=n,n=lg(u)):(r=n,n=e)}else r=n,n=e;return n}function DE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ns?(t=ns,r+=3):(t=e,I===0&&C(qa)),t!==e){for(u=[],o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,I===0&&C(Nn)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs))),a===e&&(a=null),Ii.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(no)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,I===0&&C(Nn)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs))),a===e&&(a=null),Ii.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(no)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ns?(o=ns,r+=3):(o=e,I===0&&C(qa)),o!==e?(O=n,n=ug(u)):(r=n,n=e)}else r=n,n=e;return n}function zt(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=ko,r++):(t=e,I===0&&C(oa)),t!==e?(Va.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Zc)),u!==e?(O=n,n=fg()):(r=n,n=e)):(r=n,n=e),n}function jt(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=Z,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function c(){var n;return n=ME(),n===e&&(n=Dl(),n===e&&(n=Ml())),n}function Dl(){var n;return Mi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Du)),n}function Ml(){var n;return Yo.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Qc)),n}function So(){var n;return Wa.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pc)),n}function uh(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=fn,r++):(t=e,I===0&&C(ds)),t!==e){for(u=[],o=So();o!==e;)u.push(o),o=So();o=Ml(),o!==e?(O=n,n=cg()):(r=n,n=e)}else r=n,n=e;return n}function ME(){var n,t,u,o,a,p;for(n=r,t=Ml(),t===e&&(t=null),u=[],o=Dl();o!==e;)u.push(o),o=Dl();if(i.charCodeAt(r)===35?(o=fn,r++):(o=e,I===0&&C(ds)),o!==e){for(a=[],p=So();p!==e;)a.push(p),p=So();O=n,n=pg()}else r=n,n=e;return n}function ZE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=Gi,r++):(t=e,I===0&&C(Fs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===93?(o=ti,r++):(o=e,I===0&&C(li)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function fh(){var n;return hn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Mu)),n===e&&(ic.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(kc)),n===e&&(sc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Xc)),n===e&&(nc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Zu)),n===e&&(oc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(bn)),n===e&&(fu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Ka)),n===e&&(cu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(aa)),n===e&&(ac.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Qu)),n===e&&(lc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(el)),n===e&&(uc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pu)),n===e&&(fc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Hc)),n===e&&(pu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(ku)),n===e&&(cc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(xt)))))))))))))),n}function qi(){var n;return n=fh(),n===e&&(i.charCodeAt(r)===95?(n=cn,r++):(n=e,I===0&&C(Tn))),n}function ch(){var n,t,u,o;if(n=r,t=qi(),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe))),t!==e){for(u=[],o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o===e&&(dn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Rn)),o===e&&(as.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Sn))))));o!==e;)u.push(o),o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o===e&&(dn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Rn)),o===e&&(as.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Sn))))));O=n,n=hg()}else r=n,n=e;return n}function _r(){var n;return n=qi(),n===e&&(i.charCodeAt(r)===45?(n=ir,r++):(n=e,I===0&&C(Mr)),n===e&&(_e.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pe)),n===e&&(dn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Rn)),n===e&&(as.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(yn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Sn))))))),n}function QE(){var n,t,u,o,a,p;if(n=r,t=fh(),t!==e){for(u=[],o=_r(),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e?(p=_r(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=_r(),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e?(p=_r(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));O=n,n=dg()}else r=n,n=e;return n}function PE(){var n,t,u,o,a,p;if(n=r,t=qi(),t===e&&(i.charCodeAt(r)===58?(t=_t,r++):(t=e,I===0&&C(Rr)),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(t=zs()))),t!==e){for(u=[],o=_r(),o===e&&(i.charCodeAt(r)===58?(o=_t,r++):(o=e,I===0&&C(Rr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e?(p=_r(),p===e&&(i.charCodeAt(r)===58?(p=_t,r++):(p=e,I===0&&C(Rr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=_r(),o===e&&(i.charCodeAt(r)===58?(o=_t,r++):(o=e,I===0&&C(Rr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C(ze)),a!==e?(p=_r(),p===e&&(i.charCodeAt(r)===58?(p=_t,r++):(p=e,I===0&&C(Rr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));O=n,n=gg()}else r=n,n=e;return n}function zs(){var n;return n=kE(),n===e&&(n=XE()),n}function kE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=pn,r++):(t=e,I===0&&C(gs)),t!==e?(u=ph(),u!==e?(o=ph(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function ph(){var n;return _e.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pe)),n===e&&(pc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(la)),n===e&&(hc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Xu)))),n}function XE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=ko,r++):(t=e,I===0&&C(oa)),t!==e?(i.charCodeAt(r)===95?(u=cn,r++):(u=e,I===0&&C(Tn)),u===e&&(i.charCodeAt(r)===126?(u=Ga,r++):(u=e,I===0&&C(Hu)),u===e&&(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C(ze)),u===e&&(i.charCodeAt(r)===45?(u=ir,r++):(u=e,I===0&&C(Mr)),u===e&&(i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u===e&&(i.charCodeAt(r)===36?(u=Ts,r++):(u=e,I===0&&C(Ri)),u===e&&(i.charCodeAt(r)===38?(u=uu,r++):(u=e,I===0&&C(Yu)),u===e&&(i.charCodeAt(r)===39?(u=Wi,r++):(u=e,I===0&&C(ui)),u===e&&(i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u===e&&(i.charCodeAt(r)===41?(u=M,r++):(u=e,I===0&&C(ue)),u===e&&(i.charCodeAt(r)===42?(u=z,r++):(u=e,I===0&&C(kr)),u===e&&(i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u===e&&(i.charCodeAt(r)===44?(u=We,r++):(u=e,I===0&&C(Xe)),u===e&&(i.charCodeAt(r)===59?(u=cr,r++):(u=e,I===0&&C(Jt)),u===e&&(i.charCodeAt(r)===58?(u=_t,r++):(u=e,I===0&&C(Rr)),u===e&&(i.charCodeAt(r)===61?(u=Tr,r++):(u=e,I===0&&C(Pt)),u===e&&(i.charCodeAt(r)===47?(u=tr,r++):(u=e,I===0&&C(Dr)),u===e&&(i.charCodeAt(r)===63?(u=pt,r++):(u=e,I===0&&C(Gs)),u===e&&(i.charCodeAt(r)===35?(u=fn,r++):(u=e,I===0&&C(ds)),u===e&&(i.charCodeAt(r)===64?(u=Oa,r++):(u=e,I===0&&C(yi)),u===e&&(i.charCodeAt(r)===37?(u=pn,r++):(u=e,I===0&&C(gs)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let hh={};if(Io=L(),Io!==e&&r===i.length)return Io;throw Io!==e&&r<i.length&&C(Eg()),Gp(hl,It<i.length?i.charAt(It):null,It<i.length?Xs(It,It+1):Xs(It,It))}function b1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function ql(i,m,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,ql.prototype),R.expected=m,R.found=e,R.location=N,R.name="SyntaxError",R}b1(ql,Error);function Dm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}ql.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,G=this.location.source+":"+L.line+":"+L.column;if(e){var W=this.location.end,D=Dm("",L.line.toString().length," "),H=e[R.line-1],k=R.line===W.line?W.column:H.length+1,Z=k-R.column||1;m+=`
70
+ --> `+G+`
71
+ `+D+` |
72
72
  `+L.line+" | "+H+`
73
- `+Z+" | "+Pm("",R.column-1," ")+Pm("",W,"^")}else m+=`
74
- at `+O}return m};ql.buildMessage=function(i,m){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var Q=H.parts.map(function(W){return Array.isArray(W)?L(W[0])+"-"+L(W[1]):L(W)});return"["+(H.inverted?"^":"")+Q.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};function N(H){return H.charCodeAt(0).toString(16).toUpperCase()}function R(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function L(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function O(H){return e[H.type](H)}function D(H){var Q=H.map(O),W,$;if(Q.sort(),Q.length>0){for(W=1,$=1;W<Q.length;W++)Q[W-1]!==Q[W]&&(Q[$]=Q[W],$++);Q.length=$}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function Z(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+D(i)+" but "+Z(m)+" found."};function km(i,m){m=m!==void 0?m:{};var e={},N=m.grammarSource,R={DOCUMENT:Fp},L=Fp,O="base",D="prefix",Z="select",H="distinct",Q="reduced",W="(",$="as",M=")",z="*",Y="construct",B="where",V="{",X="}",q="describe",te="ask",ie="from",ae="named",fe="group",ye="by",Re="having",Le="order",Ve="asc",Je="desc",me="limit",xr="offset",Cr="values",ur=";",$r="load",ze="silent",St="into",Lt="clear",pr="drop",wt="create",or="add",ut="to",je="move",zr="copy",Ir="insert",Pr="data",hr="delete",Kt="with",Fe="using",pe="default",Er="graph",fr="all",we=".",Ur="optional",ei="service",Ae="bind",Ot="UNDEF",ft="minus",Nt="union",rs="filter",Me=",",ct="a",Oe="|",rr="/",at="^",pt="?",Nr="+",ri="!",Fi="[",ti="]",bt="||",ii="&&",Tr="=",Ut="!=",Ge="<",ni=">",kr="<=",ar=">=",dr="in",ts="not",tr="-",is="str",ht="lang",Dr="langmatches",mi="datatype",bs="bound",rn="iri",tn="uri",Bo="bnode",sn="rand",ya="abs",Zt="ceil",Gi="floor",nn="round",Vo="concat",kn="strlen",on="ucase",oi="lcase",an="encode_for_uri",Bi="contains",Do="strbefore",Mo="strstarts",ln="strends",We="strafter",K="year",Ee="month",Se="day",mr="hours",et="minutes",qe="seconds",Ie="timezone",dt="tz",vi="now",Pt="uuid",_e="struuid",xi="md5",ss="sha1",Sa="sha256",he="sha384",Xe="sha512",La="coalesce",wa="if",Wo="strlang",Zo="strdt",eu="sameterm",Ye="isuri",jf="isiri",ru="isblank",Po="isliteral",Ci="isnumeric",tu="regex",iu="substr",Qn="replace",_n="exists",su="count",Oa="sum",nu="min",ou="max",au="avg",lu="sample",qf="group_concat",Kf="separator",ko="^^",Vi="true",ec="false",Yt=":",un="_:",Ts="$",Ua="@",Di="'",Rs='"',ys="'''",Mi="''",ns='"""',Ss='""',Qo="\\",fn="#",cn="_",pn="%",Fa="~",uu="&",_o=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ga=/^[a-zA-Z]/,os=/^[a-zA-Z0-9]/,ai=/^[eE]/,rc=/^[+\-]/,Ba=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Ho=/^[^'\\]/,Ii=/^[^"\\]/,Va=/^[tbnrf\\"']/,Wi=/^[ \t]/,Xo=/^[\r\n]/,Da=/^[^\r\n]/,hn=/^[A-Z]/,tc=/^[a-z]/,ic=/^[\xC0-\xD6]/,sc=/^[\xD8-\xF6]/,nc=/^[\xF8-\u02FF]/,fu=/^[\u0370-\u037D]/,cu=/^[\u037F-\u1FFF]/,oc=/^[\u200C-\u200D]/,ac=/^[\u2070-\u218F]/,lc=/^[\u2C00-\u2FEF]/,uc=/^[\u3001-\uD7FF]/,pu=/^[\uF900-\uFDCF]/,fc=/^[\uFDF0-\uFFFD]/,dn=/^[\xB7]/,as=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,cc=/^[A-F]/,pc=/^[a-f]/,hc=P("BASE",!0),Xn=P("PREFIX",!0),rt=P("SELECT",!0),gt=P("DISTINCT",!0),hu=P("REDUCED",!0),le=P("(",!1),Ls=P("AS",!0),ue=P(")",!1),Qr=P("*",!1),Yn=P("CONSTRUCT",!0),ls=P("WHERE",!0),Ft=P("{",!1),Gt=P("}",!1),du=P("DESCRIBE",!0),gu=P("ASK",!0),dc=P("FROM",!0),Zi=P("NAMED",!0),Pi=P("GROUP",!0),gn=P("BY",!0),Ma=P("HAVING",!0),Eu=P("ORDER",!0),Ni=P("ASC",!0),ws=P("DESC",!0),Wa=P("LIMIT",!0),gc=P("OFFSET",!0),Yo=P("VALUES",!0),Jt=P(";",!1),mu=P("LOAD",!0),Et=P("SILENT",!0),En=P("INTO",!0),bi=P("CLEAR",!0),vu=P("DROP",!0),xu=P("CREATE",!0),Ec=P("ADD",!0),Jn=P("TO",!0),mc=P("MOVE",!0),Cu=P("COPY",!0),Jo=P("INSERT",!0),Os=P("DATA",!0),mn=P("DELETE",!0),Iu=P("WITH",!0),Za=P("USING",!0),vn=P("DEFAULT",!0),us=P("GRAPH",!0),$o=P("ALL",!0),$e=P(".",!1),Au=P("OPTIONAL",!0),Pa=P("SERVICE",!0),ka=P("BIND",!0),Nu=P("UNDEF",!1),bu=P("MINUS",!0),$n=P("UNION",!0),vc=P("FILTER",!0),ke=P(",",!1),Us=P("a",!1),$t=P("|",!1),Mr=P("/",!1),fs=P("^",!1),Fs=P("?",!1),mt=P("+",!1),xn=P("!",!1),Gs=P("[",!1),li=P("]",!1),ki=P("||",!1),vt=P("&&",!1),kt=P("=",!1),Ti=P("!=",!1),cs=P("<",!1),zn=P(">",!1),zo=P("<=",!1),Bs=P(">=",!1),ps=P("IN",!0),Vs=P("NOT",!0),Wr=P("-",!1),xc=P("STR",!0),Qa=P("LANG",!0),Tu=P("LANGMATCHES",!0),_a=P("DATATYPE",!0),Ha=P("BOUND",!0),Cn=P("IRI",!0),jo=P("URI",!0),Ru=P("BNODE",!0),qo=P("RAND",!0),Cc=P("ABS",!0),Ic=P("CEIL",!0),Ac=P("FLOOR",!0),Xa=P("ROUND",!0),Ya=P("CONCAT",!0),In=P("STRLEN",!0),jn=P("UCASE",!0),Nc=P("LCASE",!0),Ko=P("ENCODE_FOR_URI",!0),yu=P("CONTAINS",!0),qn=P("STRBEFORE",!0),Su=P("STRSTARTS",!0),Ds=P("STRENDS",!0),Kn=P("STRAFTER",!0),Ms=P("YEAR",!0),eo=P("MONTH",!0),An=P("DAY",!0),Lu=P("HOURS",!0),wu=P("MINUTES",!0),Ou=P("SECONDS",!0),bc=P("TIMEZONE",!0),Ws=P("TZ",!0),Zs=P("NOW",!0),Tc=P("UUID",!0),Rc=P("STRUUID",!0),yc=P("MD5",!0),Sc=P("SHA1",!0),Lc=P("SHA256",!0),wc=P("SHA384",!0),Qt=P("SHA512",!0),tt=P("COALESCE",!0),Tt=P("IF",!0),it=P("STRLANG",!0),ro=P("STRDT",!0),Oc=P("sameTerm",!0),ea=P("isURI",!0),Uc=P("isIRI",!0),Fc=P("isBLANK",!0),Gc=P("isLITERAL",!0),Ja=P("isNUMERIC",!0),Uu=P("REGEX",!0),$a=P("SUBSTR",!0),Bc=P("REPLACE",!0),to=P("EXISTS",!0),za=P("COUNT",!0),Fu=P("SUM",!0),Gu=P("MIN",!0),ja=P("MAX",!0),Bu=P("AVG",!0),io=P("SAMPLE",!0),Vc=P("GROUP_CONCAT",!0),ra=P("SEPARATOR",!0),Qi=P("^^",!1),Vu=P("true",!0),Dc=P("false",!0),ta=Be(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Rr=P(":",!1),lr=P("_:",!1),Pe=Be([["0","9"]],!1,!1),Ri=P("$",!1),yi=P("@",!1),ia=Be([["a","z"],["A","Z"]],!1,!1),_i=Be([["a","z"],["A","Z"],["0","9"]],!1,!1),Du=Be(["e","E"],!1,!1),Mc=Be(["+","-"],!1,!1),ui=P("'",!1),Ps=Be(["'","\\",`
75
- `,"\r"],!0,!1),hs=P('"',!1),so=Be(['"',"\\",`
76
- `,"\r"],!0,!1),Si=P("'''",!1),sa=P("''",!1),na=Be(["'","\\"],!0,!1),qa=P('"""',!1),Nn=P('""',!1),no=Be(['"',"\\"],!0,!1),oa=P("\\",!1),Wc=Be(["t","b","n","r","f","\\",'"',"'"],!1,!1),Mu=Be([" "," "],!1,!1),Zc=Be(["\r",`
73
+ `+D+" | "+Dm("",R.column-1," ")+Dm("",Z,"^")}else m+=`
74
+ at `+G}return m};ql.buildMessage=function(i,m){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var k=H.parts.map(function(Z){return Array.isArray(Z)?L(Z[0])+"-"+L(Z[1]):L(Z)});return"["+(H.inverted?"^":"")+k.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};function N(H){return H.charCodeAt(0).toString(16).toUpperCase()}function R(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+N(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+N(k)})}function L(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(k){return"\\x0"+N(k)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(k){return"\\x"+N(k)})}function G(H){return e[H.type](H)}function W(H){var k=H.map(G),Z,$;if(k.sort(),k.length>0){for(Z=1,$=1;Z<k.length;Z++)k[Z-1]!==k[Z]&&(k[$]=k[Z],$++);k.length=$}switch(k.length){case 1:return k[0];case 2:return k[0]+" or "+k[1];default:return k.slice(0,-1).join(", ")+", or "+k[k.length-1]}}function D(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+W(i)+" but "+D(m)+" found."};function Mm(i,m){m=m!==void 0?m:{};var e={},N=m.grammarSource,R={DOCUMENT:Fp},L=Fp,G="base",W="prefix",D="select",H="distinct",k="reduced",Z="(",$="as",M=")",z="*",J="construct",B="where",V="{",Y="}",q="describe",te="ask",ie="from",ae="named",ge="group",ke="by",ve="having",Te="order",Le="asc",Qe="desc",me="limit",ar="offset",Ir="values",cr=";",$r="load",je="silent",St="into",Lt="clear",dr="drop",wt="create",lr="add",ut="to",qe="move",zr="copy",Ar="insert",Qr="data",gr="delete",Kt="with",Ge="using",ce="default",vr="graph",pr="all",we=".",Or="optional",ei="service",Ne="bind",Ut="UNDEF",ft="minus",Nt="union",rs="filter",We=",",ct="a",Ue="|",tr="/",at="^",pt="?",Nr="+",ri="!",Gi="[",ti="]",bt="||",ii="&&",Tr="=",Ot="!=",Fe="<",ni=">",Pr="<=",ur=">=",Er="in",ts="not",ir="-",is="str",ht="lang",Wr="langmatches",mi="datatype",bs="bound",rn="iri",tn="uri",Bo="bnode",sn="rand",ya="abs",Zt="ceil",Fi="floor",nn="round",Vo="concat",Pn="strlen",on="ucase",oi="lcase",an="encode_for_uri",Bi="contains",Wo="strbefore",Do="strstarts",ln="strends",De="strafter",K="year",Ee="month",Se="day",xr="hours",et="minutes",Ke="seconds",Ae="timezone",dt="tz",vi="now",Qt="uuid",Ye="struuid",xi="md5",ss="sha1",Sa="sha256",pe="sha384",Je="sha512",La="coalesce",wa="if",Mo="strlang",Zo="strdt",eu="sameterm",$e="isuri",qf="isiri",ru="isblank",Qo="isliteral",Ci="isnumeric",tu="regex",iu="substr",kn="replace",Xn="exists",su="count",Ua="sum",nu="min",ou="max",au="avg",lu="sample",Kf="group_concat",ec="separator",Po="^^",Vi="true",rc="false",_t=":",un="_:",Ts="$",Oa="@",Wi="'",Rs='"',ys="'''",Di="''",ns='"""',Ss='""',ko="\\",fn="#",cn="_",pn="%",Ga="~",uu="&",Xo=/^[^<>"{}|\^`\\\0- ]/,_e=/^[0-9]/,Fa=/^[a-zA-Z]/,os=/^[a-zA-Z0-9]/,ai=/^[eE]/,tc=/^[+\-]/,Ba=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Ho=/^[^'\\]/,Ii=/^[^"\\]/,Va=/^[tbnrf\\"']/,Mi=/^[ \t]/,Yo=/^[\r\n]/,Wa=/^[^\r\n]/,hn=/^[A-Z]/,ic=/^[a-z]/,sc=/^[\xC0-\xD6]/,nc=/^[\xD8-\xF6]/,oc=/^[\xF8-\u02FF]/,fu=/^[\u0370-\u037D]/,cu=/^[\u037F-\u1FFF]/,ac=/^[\u200C-\u200D]/,lc=/^[\u2070-\u218F]/,uc=/^[\u2C00-\u2FEF]/,fc=/^[\u3001-\uD7FF]/,pu=/^[\uF900-\uFDCF]/,cc=/^[\uFDF0-\uFFFD]/,dn=/^[\xB7]/,as=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,pc=/^[A-F]/,hc=/^[a-f]/,dc=Q("BASE",!0),Yn=Q("PREFIX",!0),rt=Q("SELECT",!0),gt=Q("DISTINCT",!0),hu=Q("REDUCED",!0),le=Q("(",!1),Ls=Q("AS",!0),ue=Q(")",!1),kr=Q("*",!1),_n=Q("CONSTRUCT",!0),ls=Q("WHERE",!0),Gt=Q("{",!1),Ft=Q("}",!1),du=Q("DESCRIBE",!0),gu=Q("ASK",!0),gc=Q("FROM",!0),Zi=Q("NAMED",!0),Qi=Q("GROUP",!0),gn=Q("BY",!0),Da=Q("HAVING",!0),Eu=Q("ORDER",!0),Ni=Q("ASC",!0),ws=Q("DESC",!0),Ma=Q("LIMIT",!0),Ec=Q("OFFSET",!0),_o=Q("VALUES",!0),Jt=Q(";",!1),mu=Q("LOAD",!0),Et=Q("SILENT",!0),En=Q("INTO",!0),bi=Q("CLEAR",!0),vu=Q("DROP",!0),xu=Q("CREATE",!0),mc=Q("ADD",!0),Jn=Q("TO",!0),vc=Q("MOVE",!0),Cu=Q("COPY",!0),Jo=Q("INSERT",!0),Us=Q("DATA",!0),mn=Q("DELETE",!0),Iu=Q("WITH",!0),Za=Q("USING",!0),vn=Q("DEFAULT",!0),us=Q("GRAPH",!0),$o=Q("ALL",!0),ze=Q(".",!1),Au=Q("OPTIONAL",!0),Qa=Q("SERVICE",!0),Pa=Q("BIND",!0),Nu=Q("UNDEF",!1),bu=Q("MINUS",!0),$n=Q("UNION",!0),xc=Q("FILTER",!0),Xe=Q(",",!1),Os=Q("a",!1),$t=Q("|",!1),Dr=Q("/",!1),fs=Q("^",!1),Gs=Q("?",!1),mt=Q("+",!1),xn=Q("!",!1),Fs=Q("[",!1),li=Q("]",!1),Pi=Q("||",!1),vt=Q("&&",!1),Pt=Q("=",!1),Ti=Q("!=",!1),cs=Q("<",!1),zn=Q(">",!1),zo=Q("<=",!1),Bs=Q(">=",!1),ps=Q("IN",!0),Vs=Q("NOT",!0),Mr=Q("-",!1),Cc=Q("STR",!0),ka=Q("LANG",!0),Tu=Q("LANGMATCHES",!0),Xa=Q("DATATYPE",!0),Ha=Q("BOUND",!0),Cn=Q("IRI",!0),jo=Q("URI",!0),Ru=Q("BNODE",!0),qo=Q("RAND",!0),Ic=Q("ABS",!0),Ac=Q("CEIL",!0),Nc=Q("FLOOR",!0),Ya=Q("ROUND",!0),_a=Q("CONCAT",!0),In=Q("STRLEN",!0),jn=Q("UCASE",!0),bc=Q("LCASE",!0),Ko=Q("ENCODE_FOR_URI",!0),yu=Q("CONTAINS",!0),qn=Q("STRBEFORE",!0),Su=Q("STRSTARTS",!0),Ws=Q("STRENDS",!0),Kn=Q("STRAFTER",!0),Ds=Q("YEAR",!0),eo=Q("MONTH",!0),An=Q("DAY",!0),Lu=Q("HOURS",!0),wu=Q("MINUTES",!0),Uu=Q("SECONDS",!0),Tc=Q("TIMEZONE",!0),Ms=Q("TZ",!0),Zs=Q("NOW",!0),Rc=Q("UUID",!0),yc=Q("STRUUID",!0),Sc=Q("MD5",!0),Lc=Q("SHA1",!0),wc=Q("SHA256",!0),Uc=Q("SHA384",!0),kt=Q("SHA512",!0),tt=Q("COALESCE",!0),Tt=Q("IF",!0),it=Q("STRLANG",!0),ro=Q("STRDT",!0),Oc=Q("sameTerm",!0),ea=Q("isURI",!0),Gc=Q("isIRI",!0),Fc=Q("isBLANK",!0),Bc=Q("isLITERAL",!0),Ja=Q("isNUMERIC",!0),Ou=Q("REGEX",!0),$a=Q("SUBSTR",!0),Vc=Q("REPLACE",!0),to=Q("EXISTS",!0),za=Q("COUNT",!0),Gu=Q("SUM",!0),Fu=Q("MIN",!0),ja=Q("MAX",!0),Bu=Q("AVG",!0),io=Q("SAMPLE",!0),Wc=Q("GROUP_CONCAT",!0),ra=Q("SEPARATOR",!0),ki=Q("^^",!1),Vu=Q("true",!0),Dc=Q("false",!0),ta=Be(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Rr=Q(":",!1),fr=Q("_:",!1),Pe=Be([["0","9"]],!1,!1),Ri=Q("$",!1),yi=Q("@",!1),ia=Be([["a","z"],["A","Z"]],!1,!1),Xi=Be([["a","z"],["A","Z"],["0","9"]],!1,!1),Wu=Be(["e","E"],!1,!1),Mc=Be(["+","-"],!1,!1),ui=Q("'",!1),Qs=Be(["'","\\",`
75
+ `,"\r"],!0,!1),hs=Q('"',!1),so=Be(['"',"\\",`
76
+ `,"\r"],!0,!1),Si=Q("'''",!1),sa=Q("''",!1),na=Be(["'","\\"],!0,!1),qa=Q('"""',!1),Nn=Q('""',!1),no=Be(['"',"\\"],!0,!1),oa=Q("\\",!1),Zc=Be(["t","b","n","r","f","\\",'"',"'"],!1,!1),Du=Be([" "," "],!1,!1),Qc=Be(["\r",`
77
77
  `],!1,!1),Pc=Be(["\r",`
78
- `],!0,!1),ds=P("#",!1),Wu=Be([["A","Z"]],!1,!1),kc=Be([["a","z"]],!1,!1),Qc=Be([["\xC0","\xD6"]],!1,!1),Zu=Be([["\xD8","\xF6"]],!1,!1),bn=Be([["\xF8","\u02FF"]],!1,!1),Ka=Be([["\u0370","\u037D"]],!1,!1),aa=Be([["\u037F","\u1FFF"]],!1,!1),Pu=Be([["\u200C","\u200D"]],!1,!1),el=Be([["\u2070","\u218F"]],!1,!1),ku=Be([["\u2C00","\u2FEF"]],!1,!1),_c=Be([["\u3001","\uD7FF"]],!1,!1),Qu=Be([["\uF900","\uFDCF"]],!1,!1),xt=Be([["\uFDF0","\uFFFD"]],!1,!1),Tn=P("_",!1),Rn=Be(["\xB7"],!1,!1),yn=Be([["\u0300","\u036F"]],!1,!1),Sn=Be([["\u203F","\u2040"]],!1,!1),gs=P("%",!1),la=Be([["A","F"]],!1,!1),_u=Be([["a","f"]],!1,!1),Hu=P("~",!1),Xu=P("&",!1),Ln=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(ph).map(([p,h])=>({pos:parseInt(p),text:h}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},Yu=function(t,u,o){let a={type:"Query"};return t&&(a.prologue=t),u.type==="SelectQuery"?a.selectQuery=u:u.type==="ConstructQuery"?a.constructQuery=u:u.type==="DescribeQuery"?a.describeQuery=u:u.type==="AskQuery"&&(a.askQuery=u),o&&(a.values=o),a},ua=function(t){if(t.length)return{type:"Prologue",decl:t}},Ju=function(t){return{type:"BaseDecl",iriref:t}},oo=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Hc=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},wn=function(t,u,o,a){let p={type:"SubSelect",selectClause:t,whereClause:u,...o,location:Te()};return a&&(p.values=a),p},$u=function(t,u){let o;u==="*"?o=["*"]:o=u.map(p=>p.length===2?p[1]:{expression:p[3],as:p[7]});let a={var:o};if(t){let p=t.toUpperCase();p==="DISTINCT"?a.distinct=!0:p==="REDUCED"&&(a.reduced=!0)}return a.location=Te(),a},zu=function(t,u,o,a){let p={type:"ConstructQuery"};return u.length&&(p.from=u),p={...p,template:t,where:o,...a,location:Te()},p},ju=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:Te()},a},ao=function(t,u,o,a){let p={type:"DescribeQuery"};return u.length&&(p.from=u),p.describe=t,o&&(p.where=o),p={...p,...a,location:Te()},p},lo=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:Te()},a},uo=function(t){return t},fo=function(t){return{graph:t,location:Te()}},qu=function(t){return{namedGraph:t,location:Te()}},Xc=function(t){return t.graphPattern||t},Ku=function(t,u,o,a){let p={};return t&&(p.group=t),u&&(p.having=u),o&&(p.orderBy=o),a&&(p.limitOffset=a),p},Es=function(t){return t},On=function(t){return t},co=function(t){return t},Yc=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:Te()}:{bracketted:!0,...t}},ef=function(t){return t},Jc=function(t){return t},$c=function(t){return t},zc=function(t){return t},Bt=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},rf=function(t){return t},jc=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},qc=function(t){return{limit:parseInt(t.literal)}},Kc=function(t){return{offset:parseInt(t.literal)}},tf=function(t){return t?t[1]:null},sf=function(t,u){let o={type:"Update"};t&&(o.prologue=t);let a=[];return u&&(a=[u[1]],u[2]&&(a=a.concat(u[2][3].update))),o.update=a,o},nf=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},ep=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},rp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},tp=function(t,u){return{type:"create",silent:t,destinyGraph:u}},ms=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},po=function(t,u,o){return{type:"move",silent:t,graphs:[u,o]}},fa=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},ho=function(t){return{type:"insertdata",insert:t}},Hi=function(t){return{type:"deletedata",delete:t}},ip=function(t){return{type:"deletewhere",delete:t}},sp=function(t,u,o,a){let p={type:"modify"};return t&&(p.with=t[2]),u.length===3?(p.delete=u[0],u[2]&&(p.insert=u[2])):p.insert=u,o.length&&(p.using=o),p.where=a.graphPattern,p},Un=function(t){return t},of=function(t){return t},af=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},lf=function(){return"default"},ca=function(t){return t},Fn=function(t){return t},rl=function(t){return t},tl=function(){return"default"},il=function(){return"named"},np=function(){return"all"},go=function(t){return t},uf=function(t){return t},op=function(t,u){let o=[];return t&&(o=o.concat(t)),u.forEach(a=>{o=o.concat(a[0]),a[2]&&(o=o.concat(a[2]))}),o},ff=function(t,u){return{graph:t,...u}},pa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},ap=function(t){return t},lp=function(t,u){let o=[];return t&&o.push(t),u.forEach(a=>{o.push(a[0]),a[4]&&o.push(a[4])}),{graphPattern:o,location:Te()}},Eo=function(t,u){let o=[];if(u&&u[3])if(n(t.subject,u[3].triplePattern[0].subject)){o=JSON.parse(JSON.stringify(u[3].triplePattern));let a=t.properties.length-1;if(n(t.properties[a].predicate,u[3].triplePattern[0].properties[0].predicate)){o[0].properties=t.properties;let p=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(h=>{n(t.properties[a].objects[p],h)||o[0].properties[a].objects.push(h)}),o[0].properties.push(...u[3].triplePattern[0].properties.slice(1))}else o[0].properties=t.properties.concat(u[3].triplePattern[0].properties)}else o=[t].concat(u[3].triplePattern);else o=[t];return{type:"TriplesBlock",triplePattern:o,location:Te()}},cf=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:Te()}},pf=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},up=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=Te(),a},sl=function(t,u){return{type:"Bind",bind:t,as:u,location:Te()}},hf=function(t){return t},fp=function(t,u){return{oneVar:t,data:u,location:Te()}},df=function(t,u){return{variables:t,data:u,location:Te()}},gf=function(t){return t},cp=function(t){return t},nl=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:Te()}},mo=function(t,u){return u.length?{union:[t,...u],location:Te()}:t},vo=function(t){return{type:"Filter",filter:t,location:Te()}},pp=function(t,u){return{functionRef:t,args:u.list,location:Te()}},Ef=function(){return{list:[]}},hp=function(t,u,o){return{distinct:!!t,list:[u,...o]}},dp=function(){return[]},gp=function(t,u){return[t,...u]},Ep=function(t){return t},mf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},mp=function(t,u){return{subject:t,properties:u}},vp=function(t,u){return{subject:t,properties:u}},vf=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{p[3]&&a.push({predicate:p[3][0],objects:p[3][2]})}),a},ol=function(){return{a:!0,location:Te()}},xf=function(t,u){return[t,...u]},xp=function(t,u){return{subject:t,properties:u}},Cf=function(t,u){return{subject:t,properties:u}},Gn=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{if(p[3]){let h=a.length-1,E=a[h].objects.length-1;n(a[h].predicate,p[3][0])?p[3][2].forEach(x=>{n(a[h].objects[E],x)||a[h].objects.push(x)}):a.push({predicate:p[3][0],objects:p[3][2]})}}),a},If=function(t,u){return[t,...u]},ha=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{alternative:o,location:Te()}}else return t},Cp=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{sequence:o,location:Te()}}else return t},Ip=function(t,u){return u&&(t.modifier=u),t},Ap=function(t){return t.inverse=!0,t},yr=function(){return{a:!0,location:Te()}},Np=function(t){return{bracketted:!0,...t}},al=function(t){return{collection:t,location:Te()}},xo=function(t){return{blankNodeProperties:t,location:Te()}},fi=function(t){return{collection:t,location:Te()}},da=function(t){return{blankNodeProperties:t,location:Te()}},ll=function(t){return t},Af=function(t){return t},Nf=function(t){return t},bf=function(t){return t},ul=function(t){return{...t,location:Te()}},Tf=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},bp=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},fl=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),p=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),p=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:p}}else return t},Rf=function(t,u){if(u.length===0)return t;let o=[];return u.forEach(a=>{a.length==4&&o.push({operator:a[1],expression:a[3]})}),{expressionType:"additiveexpression",op1:t,ops:o}},gr=function(t,u){return u.length?{expressionType:"multiplicativeexpression",first:t,rest:u.map(o=>({operator:o[1],expression:o[3]}))}:t},yf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Tp=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},Bn=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},Rp=function(t){return{expressionType:"atomic",value:t}},ga=function(t){return{expressionType:"atomic",value:t}},yp=function(t){return{expressionType:"atomic",value:t}},Zr=function(t){return{expressionType:"atomic",value:t}},Sp=function(t){return{bracketted:!0,...t}},Lp=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},wp=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},Ea=function(t,u){return{expressionType:"builtincall",builtincall:"langMatches",args:[t,u]}},s=function(t){return{expressionType:"builtincall",builtincall:"datatype",args:[t]}},l=function(t){return{expressionType:"builtincall",builtincall:"bound",args:[t]}},g=function(t){return{expressionType:"builtincall",builtincall:"IRI",args:[t]}},d=function(t){return{expressionType:"builtincall",builtincall:"URI",args:[t]}},v=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},A=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(t){return{expressionType:"builtincall",builtincall:"abs",args:[t]}},y=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},w=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},U=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},k=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},J=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},re=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},ee=function(t){return{expressionType:"builtincall",builtincall:"LCASE",args:[t]}},oe=function(t){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[t]}},ce=function(t,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[t,u]}},de=function(t,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[t,u]}},ve=function(t,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[t,u]}},Ce=function(t,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[t,u]}},xe=function(t,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[t,u]}},be=function(t){return{expressionType:"builtincall",builtincall:"year",args:[t]}},Ze=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},De=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},Ke=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},vr=function(t){return{expressionType:"builtincall",builtincall:"minutes",args:[t]}},st=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},Lr=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},_t=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Vt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},lt=function(t){return{expressionType:"builtincall",builtincall:"MD5",args:[t]}},jr=function(t){return{expressionType:"builtincall",builtincall:"SHA1",args:[t]}},Hr=function(t){return{expressionType:"builtincall",builtincall:"SHA256",args:[t]}},Fr=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Mt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Vn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},vs=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},Ct=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},Li=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},nt=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},cl=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Xi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},ks=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},Qs=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Rt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Dn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},pl=function(t,u,o,a){let p=[t,u,o];return a&&p.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:p}},Td=function(t){return{exists:t.graphPattern||t}},Rd=function(t){return{notexists:t.graphPattern||t}},yd=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},Sd=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},Ld=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},wd=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Od=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},Ud=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Fd=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},Gd=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Bd=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=Te(),t},Vd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Dd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Md=function(t){return{type:"IRIref",iriref:t,location:Te()}},Wd=function(t){return t},Zd=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:Te()}},Pd=function(t){return{type:"PrefixedName",pn_prefix:t,location:Te()}},kd=function(t){return{blankNode:t,location:Te()}},Qd=function(){return{blankNode:"[]",location:Te()}},_d=function(t){return t.join("")},Hd=function(t){return t||""},Xd=function(t,u){return{pn_prefix:t,pn_local:u}},Yd=function(){return Xr()},Jd=function(t){return{type:"Var",varType:"VAR1",varname:t}},$d=function(t){return{type:"Var",varType:"VAR2",varname:t}},zd=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Xr()}},qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Xr()}},Kd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},eg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},rg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},tg=function(t){return t.literal="+"+t.literal,t},ig=function(t){return t.literal="+"+t.literal,t},sg=function(t){return t.literal="+"+t.literal,t},ng=function(t){return t.literal="-"+t.literal,t},og=function(t){return t.literal="-"+t.literal,t},ag=function(t){return t.literal="-"+t.literal,t},lg=function(t){return{quote:"'",literal:t.join("")}},ug=function(t){return{quote:'"',literal:t.join("")}},fg=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},cg=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},pg=function(){return Xr()},hg=function(){return Xr()},dg=function(){return ph[Te().start.offset]=Xr(),""},gg=function(){return Xr()},Eg=function(){return Xr()},mg=function(){return Xr()},r=0,F=0,Co=[{line:1,column:1}],It=0,hl=[],I=0,Io;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function Xr(){return i.substring(F,r)}function sA(){return F}function nA(){return{source:N,start:F,end:r}}function Te(){return _s(F,r)}function oA(t,u){throw u=u!==void 0?u:_s(F,r),Up([xg(t)],i.substring(F,r),u)}function aA(t,u){throw u=u!==void 0?u:_s(F,r),Cg(t,u)}function P(t,u){return{type:"literal",text:t,ignoreCase:u}}function Be(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function lA(){return{type:"any"}}function vg(){return{type:"end"}}function xg(t){return{type:"other",description:t}}function Op(t){var u=Co[t],o;if(u)return u;for(o=t-1;!Co[o];)o--;for(u=Co[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return Co[t]=u,u}function _s(t,u,o){var a=Op(t),p=Op(u),h={source:N,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:p.line,column:p.column}};return o&&N&&typeof N.offset=="function"&&(h.start=N.offset(h.start),h.end=N.offset(h.end)),h}function C(t){r<It||(r>It&&(It=r,hl=[]),hl.push(t))}function Cg(t,u){return new ql(t,null,null,u)}function Up(t,u,o){return new ql(ql.buildMessage(t,u),t,u,o)}function Fp(){var t,u,o,a,p,h;for(t=r,u=[],o=lh();o!==e;)u.push(o),o=lh();for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ig(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=Ln(u,a)}else r=t,t=e;return t}function Ig(){var t;return t=Ag(),t===e&&(t=_p()),t}function Ag(){var t,u,o,a,p;for(t=r,u=Gp(),o=[],a=c();a!==e;)o.push(a),a=c();return a=Ng(),a===e&&(a=Tg(),a===e&&(a=Rg(),a===e&&(a=yg()))),a!==e?(p=Qp(),F=t,t=Yu(u,a,p)):(r=t,t=e),t}function Gp(){var t,u,o;for(t=r,u=[],o=Bp(),o===e&&(o=Vp());o!==e;)u.push(o),o=Bp(),o===e&&(o=Vp());return F=t,u=ua(u),t=u,t}function Bp(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===O?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(hc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Fl(),p!==e?(F=t,t=Ju(p)):(r=t,t=e)}else r=t,t=e;return t}function Vp(){var t,u,o,a,p,h,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===D?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Xn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Gl(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fl(),E!==e?(F=t,t=oo(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Ng(){var t,u,o,a,p,h,E,x;if(t=r,u=Dp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=Hs(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Yi(),F=t,t=Hc(u,a,h,x)}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o,a,p,h,E;if(t=r,u=Dp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Hs(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Yi(),E=Qp(),F=t,t=wn(u,a,h,E)}else r=t,t=e}else r=t,t=e;return t}function Dp(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er;if(t=r,i.substr(r,6).toLowerCase()===Z?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(rt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,I===0&&C(gt)),a===e&&(i.substr(r,7).toLowerCase()===Q?(a=i.substr(r,7),r+=7):(a=e,I===0&&C(hu))),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(T=nr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===40?(T=W,r++):(T=e,I===0&&C(le)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=se(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(i.substr(r,2).toLowerCase()===$?(ne=i.substr(r,2),r+=2):(ne=e,I===0&&C(Ls)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(Ne=nr(),Ne!==e){for(Ue=[],er=c();er!==e;)Ue.push(er),er=c();i.charCodeAt(r)===41?(er=M,r++):(er=e,I===0&&C(ue)),er!==e?(x=[x,T,S,G,_,ne,ge,Ne,Ue,er],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}if(E!==e)for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(T=nr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===40?(T=W,r++):(T=e,I===0&&C(le)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=se(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(i.substr(r,2).toLowerCase()===$?(ne=i.substr(r,2),r+=2):(ne=e,I===0&&C(Ls)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(Ne=nr(),Ne!==e){for(Ue=[],er=c();er!==e;)Ue.push(er),er=c();i.charCodeAt(r)===41?(er=M,r++):(er=e,I===0&&C(ue)),er!==e?(x=[x,T,S,G,_,ne,ge,Ne,Ue,er],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}}else h=e;h===e&&(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(Qr))),h!==e?(F=t,t=$u(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Tg(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge;if(t=r,i.substr(r,9).toLowerCase()===Y?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Yn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=sE(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=At();E!==e;)h.push(E),E=At();for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=Hs(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Yi(),F=t,t=zu(a,h,x,S)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,9).toLowerCase()===Y?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Yn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(ls)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===123?(x=V,r++):(x=e,I===0&&C(Ft)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=$i(),S===e&&(S=null),G=[],_=c();_!==e;)G.push(_),_=c();if(i.charCodeAt(r)===125?(_=X,r++):(_=e,I===0&&C(Gt)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();ge=Yi(),F=t,t=ju(a,S,ge)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Rg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,8).toLowerCase()===q?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(du)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=ji(),p!==e)for(;p!==e;)a.push(p),p=ji();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=z,r++):(a=e,I===0&&C(Qr))),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=At();E!==e;)h.push(E),E=At();for(E=[],x=c();x!==e;)E.push(x),x=c();for(x=Hs(),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Yi(),F=t,t=ao(a,h,x,S)}else r=t,t=e}else r=t,t=e;return t}function yg(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,3).toLowerCase()===te?(o=i.substr(r,3),r+=3):(o=e,I===0&&C(gu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=Hs(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Yi(),F=t,t=lo(p,E,T)}else r=t,t=e}else r=t,t=e;return t}function At(){var t,u,o,a,p,h;if(t=r,i.substr(r,4).toLowerCase()===ie?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(dc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Sg(),a===e&&(a=Lg()),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=uo(a)}else r=t,t=e}else r=t,t=e;return t}function Sg(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=cr(),o!==e?(F=t,t=fo(o)):(r=t,t=e),t}function Lg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Zi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=cr(),a!==e?(F=t,t=qu(a)):(r=t,t=e)}else r=t,t=e;return t}function Hs(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===B?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ls)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return a=ot(),a!==e?(F=t,t=Xc(a)):(r=t,t=e),t}function Yi(){var t,u,o,a,p;return t=r,u=wg(),u===e&&(u=null),o=Og(),o===e&&(o=null),a=Ug(),a===e&&(a=null),p=Fg(),p===e&&(p=null),F=t,t=Ku(u,o,a,p),t}function wg(){var t,u,o,a,p,h,E;if(t=r,i.substr(r,5).toLowerCase()===fe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Pi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===ye?(a=i.substr(r,2),r+=2):(a=e,I===0&&C(gn)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=Mp(),E!==e)for(;E!==e;)h.push(E),E=Mp();else h=e;h!==e?(F=t,t=Es(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Mp(){var t,u,o,a,p,h,E,x,T,S,G;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=yl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=On(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=eh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=co(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=r,i.substr(r,2).toLowerCase()===$?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ls)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=nr(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=t,t=Yc(p,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=nr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=ef(o)}else r=t,t=e}}}return t}function Og(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===Re?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Ma)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Wp(),p!==e)for(;p!==e;)a.push(p),p=Wp();else a=e;a!==e?(F=t,t=Jc(a)):(r=t,t=e)}else r=t,t=e;return t}function Wp(){var t,u,o,a;if(t=r,u=El(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=t,t=$c(u)}else r=t,t=e;return t}function Ug(){var t,u,o,a,p,h,E,x;if(t=r,i.substr(r,5).toLowerCase()===Le?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Eu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===ye?(a=i.substr(r,2),r+=2):(a=e,I===0&&C(gn)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=Zp(),E!==e)for(;E!==e;)h.push(E),E=Zp();else h=e;if(h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=t,t=zc(h)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zp(){var t,u,o,a,p,h;if(t=r,i.substr(r,3).toLowerCase()===Ve?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ni)),u===e&&(i.substr(r,4).toLowerCase()===Je?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(ws))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=Bt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=El(),u===e&&(u=nr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=t,t=rf(u)}else r=t,t=e;return t}function Fg(){var t,u,o,a;return t=r,u=r,o=Pp(),o!==e?(a=kp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=kp(),o!==e?(a=Pp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(F=t,u=jc(u)),t=u,t}function Pp(){var t,u,o,a,p,h;if(t=r,i.substr(r,5).toLowerCase()===me?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Wa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$s(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=qc(a)}else r=t,t=e}else r=t,t=e;return t}function kp(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===xr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$s(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=Kc(a)}else r=t,t=e}else r=t,t=e;return t}function Qp(){var t,u,o,a;return t=r,u=r,i.substr(r,6).toLowerCase()===Cr?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Yo)),o!==e?(a=qp(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),F=t,u=tf(u),t=u,t}function _p(){var t,u,o,a,p,h,E,x,T,S;for(t=r,u=Gp(),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(p=Gg(),p!==e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_p(),E=[E,x,T,S],h=E}else r=h,h=e;h===e&&(h=null),a=[a,p,h],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();return F=t,t=sf(u,o),t}function Gg(){var t;return t=Bg(),t===e&&(t=Vg(),t===e&&(t=Dg(),t===e&&(t=Wg(),t===e&&(t=Zg(),t===e&&(t=Pg(),t===e&&(t=Mg(),t===e&&(t=kg(),t===e&&(t=Qg(),t===e&&(t=_g(),t===e&&(t=Hg())))))))))),t}function Bg(){var t,u,o,a,p,h,E,x,T,S,G;if(t=r,i.substr(r,4).toLowerCase()===$r?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(mu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=cr(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=r,i.substr(r,4).toLowerCase()===St?(T=i.substr(r,4),r+=4):(T=e,I===0&&C(En)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=dl(),G!==e?(T=[T,S,G],x=T):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),F=t,t=nf(a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Vg(){var t,u,o,a,p,h;if(t=r,i.substr(r,5).toLowerCase()===Lt?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=Yp(),h!==e?(F=t,t=ep(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Dg(){var t,u,o,a,p,h;if(t=r,i.substr(r,4).toLowerCase()===pr?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=Yp(),h!==e?(F=t,t=rp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Mg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===wt?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(xu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=dl(),h!==e?(F=t,t=tp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Wg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,3).toLowerCase()===or?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ec)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(F=t,t=ms(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===je?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(mc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(F=t,t=po(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Pg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===zr?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Cu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(F=t,t=fa(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function kg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===Ir?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,4).toLowerCase()===Pr?(a=i.substr(r,4),r+=4):(a=e,I===0&&C(Os)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Jp(),h!==e?(F=t,t=ho(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Qg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.substr(r,4).toLowerCase()===Pr?(a=i.substr(r,4),r+=4):(a=e,I===0&&C(Os)),a!==e?(p=Jp(),p!==e?(F=t,t=Hi(p)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function _g(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,5).toLowerCase()===B?(a=i.substr(r,5),r+=5):(a=e,I===0&&C(ls)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=gl(),h!==e?(F=t,t=ip(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Hg(){var t,u,o,a,p,h,E,x,T,S,G;if(t=r,u=r,i.substr(r,4).toLowerCase()===Kt?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Iu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=cr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();o=[o,a,p,h],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=Xg(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Hp(),h===e&&(h=null),a=[a,p,h],o=a}else r=o,o=e;if(o===e&&(o=Hp()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=Xp();h!==e;)p.push(h),h=Xp();for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,5).toLowerCase()===B?(E=i.substr(r,5),r+=5):(E=e,I===0&&C(ls)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=ot(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=t,t=sp(u,o,p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e?(o=gl(),o!==e?(F=t,t=Un(o)):(r=t,t=e)):(r=t,t=e),t}function Hp(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Ir?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Jo)),u!==e?(o=gl(),o!==e?(F=t,t=of(o)):(r=t,t=e)):(r=t,t=e),t}function Xp(){var t,u,o,a,p,h,E,x;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Fe?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(Za)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=cr(),p===e)if(p=r,i.substr(r,5).toLowerCase()===ae?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(Zi)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=cr(),x!==e?(h=[h,E,x],p=h):(r=p,p=e)}else r=p,p=e;p!==e?(F=t,t=af(p)):(r=t,t=e)}else r=t,t=e;return t}function Ji(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(vn)),u!==e&&(F=t,u=lf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();a=cr(),a!==e?(F=t,t=ca(a)):(r=t,t=e)}return t}function dl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=cr(),a!==e?(F=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;return t}function Yp(){var t,u;return t=r,u=dl(),u!==e&&(F=t,u=rl(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(vn)),u!==e&&(F=t,u=tl()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Zi)),u!==e&&(F=t,u=il()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===fr?(u=i.substr(r,3),r+=3):(u=e,I===0&&C($o)),u!==e&&(F=t,u=np()),t=u))),t}function gl(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,I===0&&C(Ft)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=$p(),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===125?(E=X,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=go(p)}else r=t,t=e}else r=t,t=e;return t}function Jp(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,I===0&&C(Ft)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=$p(),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===125?(E=X,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=uf(p)}else r=t,t=e}else r=t,t=e;return t}function $p(){var t,u,o,a,p,h,E;for(t=r,u=$i(),u===e&&(u=null),o=[],a=r,p=zp(),p!==e?(i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h===e&&(h=null),E=$i(),E===e&&(E=null),p=[p,h,E],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,p=zp(),p!==e?(i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h===e&&(h=null),E=$i(),E===e&&(E=null),p=[p,h,E],a=p):(r=a,a=e);return F=t,t=op(u,o),t}function zp(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=$i(),T===e&&(T=null),S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===125?(G=X,r++):(G=e,I===0&&C(Gt)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();F=t,t=ff(p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function $i(){var t,u,o,a,p,h,E;if(t=r,u=ih(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=$i(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),F=t,t=pa(u,o)}else r=t,t=e;return t}function ot(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=bg(),a===e&&(a=Yg()),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e?(F=t,t=ap(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Yg(){var t,u,o,a,p,h,E,x,T,S;for(t=r,u=Ao(),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=r,h=jp(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(i.charCodeAt(r)===46?(x=we,r++):(x=e,I===0&&C($e)),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],p=h}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,h=jp(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(i.charCodeAt(r)===46?(x=we,r++):(x=e,I===0&&C($e)),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],p=h}else r=p,p=e;return F=t,t=lp(u,a),t}function Ao(){var t,u,o,a,p,h,E;if(t=r,u=oE(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ao(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),F=t,t=Eo(u,o)}else r=t,t=e;return t}function jp(){var t;return t=tE(),t===e&&(t=Jg(),t===e&&(t=rE(),t===e&&(t=$g(),t===e&&(t=zg(),t===e&&(t=iE(),t===e&&(t=jg(),t===e&&(t=qg()))))))),t}function Jg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,8).toLowerCase()===Ur?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(Au)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ot(),p!==e?(F=t,t=cf(p)):(r=t,t=e)}else r=t,t=e;return t}function $g(){var t,u,o,a,p,h,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?(F=t,t=pf(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,p,h,E,x;if(t=r,i.substr(r,7).toLowerCase()===ei?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Pa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?(F=t,t=up(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function jg(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Ae?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(ka)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===40?(p=W,r++):(p=e,I===0&&C(le)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.substr(r,2).toLowerCase()===$?(T=i.substr(r,2),r+=2):(T=e,I===0&&C(Ls)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=nr(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(F=t,t=sl(E,G)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function qg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Cr?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Yo)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=qp(),p!==e?(F=t,t=hf(p)):(r=t,t=e)}else r=t,t=e;return t}function qp(){var t;return t=Kg(),t===e&&(t=eE()),t}function Kg(){var t,u,o,a,p,h,E,x;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=nr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===123?(p=V,r++):(p=e,I===0&&C(Ft)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(E=[],x=No();x!==e;)E.push(x),x=No();i.charCodeAt(r)===125?(x=X,r++):(x=e,I===0&&C(Gt)),x!==e?(F=t,t=fp(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function eE(){var t,u,o,a,p,h,E,x,T,S,G;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=nr();h!==e;)p.push(h),h=nr();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===123?(x=V,r++):(x=e,I===0&&C(Ft)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=[],G=Kp();G!==e;)S.push(G),G=Kp();i.charCodeAt(r)===125?(G=X,r++):(G=e,I===0&&C(Gt)),G!==e?(F=t,t=df(p,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Kp(){var t,u,o,a,p,h,E;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=No();p!==e;)a.push(p),p=No();if(i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();F=t,t=gf(a)}else r=t,t=e}else r=t,t=e;return t}function No(){var t,u,o,a;if(t=r,u=cr(),u===e&&(u=Sl(),u===e&&(u=Ll(),u===e&&(u=Ul(),u===e&&(i.substr(r,5)===Ot?(u=Ot,r+=5):(u=e,I===0&&C(Nu)))))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=t,t=cp(u)}else r=t,t=e;return t}function rE(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ft?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(F=t,t=nl(a)):(r=t,t=e)}else r=t,t=e;return t}function tE(){var t,u,o,a,p,h,E,x;if(t=r,u=ot(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,I===0&&C($n)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,I===0&&C($n)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=mo(u,o)}else r=t,t=e;return t}function iE(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===rs?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(vc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=El(),p!==e?(F=t,t=vo(p)):(r=t,t=e)}else r=t,t=e;return t}function El(){var t;return t=Rl(),t===e&&(t=yl(),t===e&&(t=eh())),t}function eh(){var t,u,o,a;if(t=r,u=cr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=rh(),a!==e?(F=t,t=pp(u,a)):(r=t,t=e)}else r=t,t=e;return t}function rh(){var t,u,o,a,p,h,E,x,T,S,G,_;if(t=r,u=jt(),u!==e&&(F=t,u=Ef()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,I===0&&C(gt)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=[],T=r,i.charCodeAt(r)===44?(S=Me,r++):(S=e,I===0&&C(ke)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=se(),_!==e?T=_:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(x.push(T),T=r,i.charCodeAt(r)===44?(S=Me,r++):(S=e,I===0&&C(ke)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=se(),_!==e?T=_:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e?(F=t,t=hp(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zi(){var t,u,o,a,p,h,E,x,T,S,G,_;if(t=r,u=jt(),u!==e&&(F=t,u=dp()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=r,i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();E=S}else r=E,E=e}else r=E,E=e;for(;E!==e;)if(h.push(E),E=r,i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=t,t=gp(a,h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function sE(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=th(),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e?(F=t,t=Ep(a)):(r=t,t=e)}else r=t,t=e;return t}function th(){var t,u,o,a,p,h,E;if(t=r,u=ih(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=th(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),F=t,t=mf(u,o)}else r=t,t=e;return t}function ih(){var t,u,o,a,p;if(t=r,u=Ro(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ml(),a!==e?(F=t,t=mp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=nh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=nE(),F=t,t=vp(o,p)}else r=t,t=e}return t}function nE(){var t;return t=ml(),t===e&&(t=null),t}function ml(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;if(t=r,u=vl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=xl(),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=vl(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=xl(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=vl(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=xl(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e}F=t,t=vf(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function vl(){var t,u;return t=ji(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Us)),u!==e&&(F=t,u=ol()),t=u),t}function xl(){var t,u,o,a,p,h,E,x;if(t=r,u=Xs(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Xs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Xs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=xf(u,o)}else r=t,t=e;return t}function oE(){var t,u,o,a,p;if(t=r,u=Ro(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Cl(),a!==e?(F=t,t=xp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=oh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=aE(),F=t,t=Cf(o,p)}else r=t,t=e}return t}function aE(){var t;return t=Cl(),t===e&&(t=null),t}function Cl(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;if(t=r,u=bo(),u===e&&(u=nr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Il(),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=bo(),G===e&&(G=nr()),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=Il(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=bo(),G===e&&(G=nr()),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=Il(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e}F=t,t=Gn(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function Il(){var t,u,o,a,p,h,E,x;if(t=r,u=Ys(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Ys(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Ys(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=If(u,o)}else r=t,t=e;return t}function bo(){var t,u,o,a,p,h,E,x;if(t=r,u=Al(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Al(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Al(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}F=t,t=ha(u,o)}else r=t,t=e;return t}function Al(){var t,u,o,a,p,h,E,x;if(t=r,u=Nl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Nl(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Nl(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}F=t,t=Cp(u,o)}else r=t,t=e;return t}function sh(){var t,u,o;return t=r,u=uE(),u!==e?(o=lE(),o===e&&(o=null),F=t,t=Ip(u,o)):(r=t,t=e),t}function Nl(){var t,u,o;return t=sh(),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,I===0&&C(fs)),u!==e?(o=sh(),o!==e?(F=t,t=Ap(o)):(r=t,t=e)):(r=t,t=e)),t}function lE(){var t;return i.charCodeAt(r)===63?(t=pt,r++):(t=e,I===0&&C(Fs)),t===e&&(i.charCodeAt(r)===42?(t=z,r++):(t=e,I===0&&C(Qr)),t===e&&(i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)))),t}function uE(){var t,u,o,a;return t=cr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Us)),u!==e&&(F=t,u=yr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u!==e?(o=fE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e?(o=bo(),o!==e?(i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(F=t,t=Np(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function fE(){var t,u,o,a,p,h,E,x;if(t=To(),t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){if(o=r,a=To(),a!==e){for(p=[],h=r,i.charCodeAt(r)===124?(E=Oe,r++):(E=e,I===0&&C($t)),E!==e?(x=To(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);h!==e;)p.push(h),h=r,i.charCodeAt(r)===124?(E=Oe,r++):(E=e,I===0&&C($t)),E!==e?(x=To(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);a=[a,p],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function To(){var t,u,o;return t=cr(),t===e&&(i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Us)),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,I===0&&C(fs)),u!==e?(o=cr(),o===e&&(i.charCodeAt(r)===97?(o=ct,r++):(o=e,I===0&&C(Us))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function nh(){var t,u;return t=r,u=hE(),u!==e&&(F=t,u=al(u)),t=u,t===e&&(t=cE()),t}function cE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=Fi,r++):(o=e,I===0&&C(Gs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ml(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,I===0&&C(li)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=xo(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function oh(){var t,u;return t=r,u=dE(),u!==e&&(F=t,u=fi(u)),t=u,t===e&&(t=pE()),t}function pE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=Fi,r++):(o=e,I===0&&C(Gs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Cl(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,I===0&&C(li)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=da(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function hE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Xs(),h!==e)for(;h!==e;)p.push(h),h=Xs();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=ll(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function dE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Ys(),h!==e)for(;h!==e;)p.push(h),h=Ys();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=Af(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Xs(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=Ro(),o===e&&(o=nh()),o!==e?(F=t,t=Nf(o)):(r=t,t=e),t}function Ys(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=Ro(),o===e&&(o=oh()),o!==e?(F=t,t=bf(o)):(r=t,t=e),t}function Ro(){var t;return t=nr(),t===e&&(t=gE()),t}function ji(){var t;return t=nr(),t===e&&(t=cr()),t}function nr(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=SE(),o===e&&(o=LE()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=ul(o)}else r=t,t=e;return t}function gE(){var t;return t=cr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(t=TE(),t===e&&(t=jt()))))),t}function se(){var t,u,o,a,p,h,E,x;if(t=r,u=bl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,I===0&&C(ki)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=bl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,I===0&&C(ki)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=bl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=Tf(u,o)}else r=t,t=e;return t}function bl(){var t,u,o,a,p,h,E,x;if(t=r,u=Tl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,I===0&&C(vt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Tl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,I===0&&C(vt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Tl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=bp(u,o)}else r=t,t=e;return t}function Tl(){var t,u,o,a,p,h,E,x,T,S;if(t=r,u=Gr(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,I===0&&C(kt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Ut?(h=Ut,r+=2):(h=e,I===0&&C(Ti)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===60?(h=Ge,r++):(h=e,I===0&&C(cs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,I===0&&C(zn)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===kr?(h=kr,r+=2):(h=e,I===0&&C(zo)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,I===0&&C(Bs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(ps)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=zi(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,3).toLowerCase()===ts?(h=i.substr(r,3),r+=3):(h=e,I===0&&C(Vs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(ps)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,h,E,x,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,I===0&&C(kt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Ut?(h=Ut,r+=2):(h=e,I===0&&C(Ti)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===60?(h=Ge,r++):(h=e,I===0&&C(cs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,I===0&&C(zn)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===kr?(h=kr,r+=2):(h=e,I===0&&C(zo)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,I===0&&C(Bs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(ps)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=zi(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,3).toLowerCase()===ts?(h=i.substr(r,3),r+=3):(h=e,I===0&&C(Vs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(ps)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,h,E,x,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}F=t,t=fl(u,o)}else r=t,t=e;return t}function Gr(){var t,u,o,a,p,h,E,x,T,S,G;if(t=r,u=Js(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,I===0&&C(mt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Ol()),p!==e){for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}}p=[p,h],a=p}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,I===0&&C(mt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Ol()),p!==e){for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}}p=[p,h],a=p}else r=a,a=e}}F=t,t=Rf(u,o)}else r=t,t=e;return t}function Js(){var t,u,o,a,p,h,E,x;if(t=r,u=Br(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(Qr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(Qr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}}F=t,t=gr(u,o)}else r=t,t=e;return t}function Br(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(F=t,t=yf(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(F=t,t=Tp(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(F=t,t=Bn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=yo())}}return t}function yo(){var t,u;return t=Rl(),t===e&&(t=yl(),t===e&&(t=AE(),t===e&&(t=r,u=Sl(),u!==e&&(F=t,u=Rp(u)),t=u,t===e&&(t=r,u=Ll(),u!==e&&(F=t,u=ga(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(F=t,u=yp(u)),t=u,t===e&&(t=r,u=nr(),u!==e&&(F=t,u=Zr(u)),t=u)))))),t}function Rl(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e?(F=t,t=Sp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function yl(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue;if(t=IE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===is?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(xc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Lp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ht?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Qa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=wp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,11).toLowerCase()===Dr?(u=i.substr(r,11),r+=11):(u=e,I===0&&C(Tu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Ea(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===mi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(_a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=s(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===bs?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ha)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=nr(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=l(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===rn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Cn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=g(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===tn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=d(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Bo?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ru)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=r,i.charCodeAt(r)===40?(p=W,r++):(p=e,I===0&&C(le)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e?(p=[p,h,E,x,T],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=jt()),a!==e?(F=t,t=v(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===sn?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(qo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=A()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ya?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Cc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=b(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Zt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Ic)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=y(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Gi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ac)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=w(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===nn?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Xa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=U(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Vo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Ya)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(F=t,t=k(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=mE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===kn?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(In)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=J(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=vE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===on?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(jn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=re(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===oi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Nc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=ee(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,14).toLowerCase()===an?(u=i.substr(r,14),r+=14):(u=e,I===0&&C(Ko)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=oe(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Bi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(yu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=ce(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Do?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(qn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=de(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Mo?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Su)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=ve(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ln?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Ds)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Ce(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===We?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Kn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=xe(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===K?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Ms)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=be(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(eo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Ze(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Se?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(An)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=De(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===mr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Lu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Ke(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===et?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(wu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=vr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===qe?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Ou)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=st(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Ie?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Lr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===dt?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Ws)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=_t(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===vi?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Zs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=Vt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Pt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Tc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=_r()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===_e?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Rc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=Dt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===xi?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(yc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=lt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ss?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Sc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=jr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Sa?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Lc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Hr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===he?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Fr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Xe?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Qt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Mt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===La?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(tt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(F=t,t=Vn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===wa?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Tt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=se(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();i.charCodeAt(r)===41?(Ue=M,r++):(Ue=e,I===0&&C(ue)),Ue!==e?(F=t,t=vs(h,S,ge)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Wo?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(it)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Ct(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Zo?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ro)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Li(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===eu?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Oc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=nt(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ye?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ea)),u===e&&(i.substr(r,5).toLowerCase()===jf?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Uc))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=cl(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ru?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Fc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Xi(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Po?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=ks(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Ci?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Qs(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=EE(),t===e&&(t=xE(),t===e&&(t=CE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function EE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne;if(t=r,i.substr(r,5).toLowerCase()===tu?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Uu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(_=r,i.charCodeAt(r)===44?(ne=Me,r++):(ne=e,I===0&&C(ke)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();Ne=se(),Ne!==e?(ne=[ne,ge,Ne],_=ne):(r=_,_=e)}else r=_,_=e;for(_===e&&(_=null),ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();i.charCodeAt(r)===41?(ge=M,r++):(ge=e,I===0&&C(ue)),ge!==e?(F=t,t=Rt(h,S,_)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function mE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne;if(t=r,i.substr(r,6).toLowerCase()===iu?(u=i.substr(r,6),r+=6):(u=e,I===0&&C($a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(_=r,i.charCodeAt(r)===44?(ne=Me,r++):(ne=e,I===0&&C(ke)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();Ne=se(),Ne!==e?(ne=[ne,ge,Ne],_=ne):(r=_,_=e)}else r=_,_=e;for(_===e&&(_=null),ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();i.charCodeAt(r)===41?(ge=M,r++):(ge=e,I===0&&C(ue)),ge!==e?(F=t,t=Dn(h,S,_)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function vE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er,Ht,Zl;if(t=r,i.substr(r,7).toLowerCase()===Qn?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=se(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();if(Ue=r,i.charCodeAt(r)===44?(er=Me,r++):(er=e,I===0&&C(ke)),er!==e){for(Ht=[],Zl=c();Zl!==e;)Ht.push(Zl),Zl=c();Zl=se(),Zl!==e?(er=[er,Ht,Zl],Ue=er):(r=Ue,Ue=e)}else r=Ue,Ue=e;for(Ue===e&&(Ue=null),er=[],Ht=c();Ht!==e;)er.push(Ht),Ht=c();i.charCodeAt(r)===41?(Ht=M,r++):(Ht=e,I===0&&C(ue)),Ht!==e?(F=t,t=pl(h,S,ge,Ue)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function xE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===_n?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(to)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(F=t,t=Td(a)):(r=t,t=e)}else r=t,t=e;return t}function CE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3).toLowerCase()===ts?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Vs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,6).toLowerCase()===_n?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(to)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ot(),h!==e?(F=t,t=Rd(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function IE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er;if(t=r,i.substr(r,5).toLowerCase()===su?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x===e&&(x=se()),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=yd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Oa?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Fu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Sd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===nu?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Ld(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ou?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=wd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===au?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Od(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===lu?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(io)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Ud(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,12).toLowerCase()===qf?(u=i.substr(r,12),r+=12):(u=e,I===0&&C(Vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=r,S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===59?(G=ur,r++):(G=e,I===0&&C(Jt)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(i.substr(r,9).toLowerCase()===Kf?(ne=i.substr(r,9),r+=9):(ne=e,I===0&&C(ra)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(i.charCodeAt(r)===61?(Ne=Tr,r++):(Ne=e,I===0&&C(kt)),Ne!==e){for(Ue=[],er=c();er!==e;)Ue.push(er),er=c();er=ah(),er!==e?(S=[S,G,_,ne,ge,Ne,Ue,er],T=S):(r=T,T=e)}else r=T,T=e}else r=T,T=e}else r=T,T=e;for(T===e&&(T=null),S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();F=t,t=Fd(h,x,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}}}}}return t}function AE(){var t,u,o,a;if(t=r,u=cr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=rh(),a===e&&(a=null),F=t,t=Gd(u,a)}else r=t,t=e;return t}function Sl(){var t,u,o,a,p;return t=r,u=ah(),u!==e?(o=wE(),o===e&&(o=r,i.substr(r,2)===ko?(a=ko,r+=2):(a=e,I===0&&C(Qi)),a!==e?(p=cr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),F=t,t=Bd(u,o)):(r=t,t=e),t}function Ll(){var t;return t=NE(),t===e&&(t=wl(),t===e&&(t=Ol())),t}function NE(){var t;return t=Vl(),t===e&&(t=Bl(),t===e&&(t=$s())),t}function wl(){var t;return t=FE(),t===e&&(t=UE(),t===e&&(t=OE())),t}function Ol(){var t;return t=VE(),t===e&&(t=BE(),t===e&&(t=GE())),t}function Ul(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Vi?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Vu)),u!==e&&(F=t,u=Vd()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ec?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Dc)),u!==e&&(F=t,u=Dd()),t=u),t}function ah(){var t;return t=WE(),t===e&&(t=ZE(),t===e&&(t=DE(),t===e&&(t=ME()))),t}function cr(){var t,u;return t=r,u=Fl(),u!==e&&(F=t,u=Md(u)),t=u,t===e&&(t=r,u=bE(),u!==e&&(F=t,u=Wd(u)),t=u),t}function bE(){var t,u;return t=r,u=RE(),u!==e&&(F=t,u=Zd(u)),t=u,t===e&&(t=r,u=Gl(),u!==e&&(F=t,u=Pd(u)),t=u),t}function TE(){var t,u;return t=r,u=yE(),u!==e&&(F=t,u=kd(u)),t=u,t===e&&(t=r,u=kE(),u!==e&&(F=t,u=Qd()),t=u),t}function Fl(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Ge,r++):(u=e,I===0&&C(cs)),u!==e){for(o=[],_o.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ta));a!==e;)o.push(a),_o.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ta));i.charCodeAt(r)===62?(a=ni,r++):(a=e,I===0&&C(zn)),a!==e?(F=t,t=_d(o)):(r=t,t=e)}else r=t,t=e;return t}function Gl(){var t,u,o;return t=r,u=QE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o!==e?(F=t,t=Hd(u)):(r=t,t=e),t}function RE(){var t,u,o;return t=r,u=Gl(),u!==e?(o=_E(),o!==e?(F=t,t=Xd(u,o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o,a,p,h,E;if(t=r,i.substr(r,2)===un?(u=un,r+=2):(u=e,I===0&&C(lr)),u!==e)if(o=qi(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe))),o!==e){for(a=[],p=Yr(),p===e&&(p=r,i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h!==e?(E=Yr(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e));p!==e;)a.push(p),p=Yr(),p===e&&(p=r,i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h!==e?(E=Yr(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e));F=t,t=Yd()}else r=t,t=e;else r=t,t=e;return t}function SE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=pt,r++):(u=e,I===0&&C(Fs)),u!==e?(o=fh(),o!==e?(F=t,t=Jd(o)):(r=t,t=e)):(r=t,t=e),t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ts,r++):(u=e,I===0&&C(Ri)),u!==e?(o=fh(),o!==e?(F=t,t=$d(o)):(r=t,t=e)):(r=t,t=e),t}function wE(){var t,u,o,a,p,h,E,x;if(t=r,i.charCodeAt(r)===64?(u=Ua,r++):(u=e,I===0&&C(yi)),u!==e){if(o=[],Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ia)),a!==e)for(;a!==e;)o.push(a),Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ia));else o=e;if(o!==e){if(a=[],p=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){if(E=[],os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i)),x!==e)for(;x!==e;)E.push(x),os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i));else E=e;E!==e?(h=[h,E],p=h):(r=p,p=e)}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){if(E=[],os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i)),x!==e)for(;x!==e;)E.push(x),os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i));else E=e;E!==e?(h=[h,E],p=h):(r=p,p=e)}else r=p,p=e;F=t,t=zd(o,a)}else r=t,t=e}else r=t,t=e;return t}function $s(){var t,u,o;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;return u!==e&&(F=t,u=jd()),t=u,t}function Bl(){var t,u,o,a,p;for(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));if(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C($e)),o!==e){if(a=[],He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe)),p!==e)for(;p!==e;)a.push(p),He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));else a=e;a!==e?(F=t,t=qd()):(r=t,t=e)}else r=t,t=e;return t}function Vl(){var t,u,o,a,p;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C($e)),o!==e){for(a=[],He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));p!==e;)a.push(p),He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));p=Dl(),p!==e?(F=t,t=Kd()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(a=Dl(),a!==e?(F=t,t=eg()):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;u!==e?(o=Dl(),o!==e?(F=t,t=rg()):(r=t,t=e)):(r=t,t=e)}}return t}function OE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=$s(),o!==e?(F=t,t=tg(o)):(r=t,t=e)):(r=t,t=e),t}function UE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=Bl(),o!==e?(F=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function FE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=Vl(),o!==e?(F=t,t=sg(o)):(r=t,t=e)):(r=t,t=e),t}function GE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e?(o=$s(),o!==e?(F=t,t=ng(o)):(r=t,t=e)):(r=t,t=e),t}function BE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e?(o=Bl(),o!==e?(F=t,t=og(o)):(r=t,t=e)):(r=t,t=e),t}function VE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e?(o=Vl(),o!==e?(F=t,t=ag(o)):(r=t,t=e)):(r=t,t=e),t}function Dl(){var t,u,o,a,p;if(t=r,ai.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Du)),u!==e){if(rc.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Mc)),o===e&&(o=null),a=[],He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe)),p!==e)for(;p!==e;)a.push(p),He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function DE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Di,r++):(u=e,I===0&&C(ui)),u!==e){for(o=[],Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ps)),a===e&&(a=zt());a!==e;)o.push(a),Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ps)),a===e&&(a=zt());i.charCodeAt(r)===39?(a=Di,r++):(a=e,I===0&&C(ui)),a!==e?(F=t,t=lg(o)):(r=t,t=e)}else r=t,t=e;return t}function ME(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=Rs,r++):(u=e,I===0&&C(hs)),u!==e){for(o=[],Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(so)),a===e&&(a=zt());a!==e;)o.push(a),Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(so)),a===e&&(a=zt());i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs)),a!==e?(F=t,t=ug(o)):(r=t,t=e)}else r=t,t=e;return t}function WE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3)===ys?(u=ys,r+=3):(u=e,I===0&&C(Si)),u!==e){for(o=[],a=r,i.substr(r,2)===Mi?(p=Mi,r+=2):(p=e,I===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Di,r++):(p=e,I===0&&C(ui))),p===e&&(p=null),Ho.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(na)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Mi?(p=Mi,r+=2):(p=e,I===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Di,r++):(p=e,I===0&&C(ui))),p===e&&(p=null),Ho.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(na)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);i.substr(r,3)===ys?(a=ys,r+=3):(a=e,I===0&&C(Si)),a!==e?(F=t,t=fg(o)):(r=t,t=e)}else r=t,t=e;return t}function ZE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3)===ns?(u=ns,r+=3):(u=e,I===0&&C(qa)),u!==e){for(o=[],a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,I===0&&C(Nn)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,I===0&&C(hs))),p===e&&(p=null),Ii.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(no)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,I===0&&C(Nn)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,I===0&&C(hs))),p===e&&(p=null),Ii.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(no)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);i.substr(r,3)===ns?(a=ns,r+=3):(a=e,I===0&&C(qa)),a!==e?(F=t,t=cg(o)):(r=t,t=e)}else r=t,t=e;return t}function zt(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Qo,r++):(u=e,I===0&&C(oa)),u!==e?(Va.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Wc)),o!==e?(F=t,t=pg()):(r=t,t=e)):(r=t,t=e),t}function jt(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function c(){var t;return t=PE(),t===e&&(t=Ml(),t===e&&(t=Wl())),t}function Ml(){var t;return Wi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Mu)),t}function Wl(){var t;return Xo.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Zc)),t}function So(){var t;return Da.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pc)),t}function lh(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=fn,r++):(u=e,I===0&&C(ds)),u!==e){for(o=[],a=So();a!==e;)o.push(a),a=So();a=Wl(),a!==e?(F=t,t=hg()):(r=t,t=e)}else r=t,t=e;return t}function PE(){var t,u,o,a,p,h;for(t=r,u=Wl(),u===e&&(u=null),o=[],a=Ml();a!==e;)o.push(a),a=Ml();if(i.charCodeAt(r)===35?(a=fn,r++):(a=e,I===0&&C(ds)),a!==e){for(p=[],h=So();h!==e;)p.push(h),h=So();F=t,t=dg()}else r=t,t=e;return t}function kE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=Fi,r++):(u=e,I===0&&C(Gs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===93?(a=ti,r++):(a=e,I===0&&C(li)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function uh(){var t;return hn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Wu)),t===e&&(tc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(kc)),t===e&&(ic.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Qc)),t===e&&(sc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Zu)),t===e&&(nc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(bn)),t===e&&(fu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Ka)),t===e&&(cu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(aa)),t===e&&(oc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pu)),t===e&&(ac.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(el)),t===e&&(lc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(ku)),t===e&&(uc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(_c)),t===e&&(pu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Qu)),t===e&&(fc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(xt)))))))))))))),t}function qi(){var t;return t=uh(),t===e&&(i.charCodeAt(r)===95?(t=cn,r++):(t=e,I===0&&C(Tn))),t}function fh(){var t,u,o,a;if(t=r,u=qi(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe))),u!==e){for(o=[],a=qi(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a===e&&(dn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Rn)),a===e&&(as.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Sn))))));a!==e;)o.push(a),a=qi(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a===e&&(dn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Rn)),a===e&&(as.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Sn))))));F=t,t=gg()}else r=t,t=e;return t}function Yr(){var t;return t=qi(),t===e&&(i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(dn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Rn)),t===e&&(as.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(yn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Sn))))))),t}function QE(){var t,u,o,a,p,h;if(t=r,u=uh(),u!==e){for(o=[],a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));F=t,t=Eg()}else r=t,t=e;return t}function _E(){var t,u,o,a,p,h;if(t=r,u=qi(),u===e&&(i.charCodeAt(r)===58?(u=Yt,r++):(u=e,I===0&&C(Rr)),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u===e&&(u=zs()))),u!==e){for(o=[],a=Yr(),a===e&&(i.charCodeAt(r)===58?(a=Yt,r++):(a=e,I===0&&C(Rr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h===e&&(i.charCodeAt(r)===58?(h=Yt,r++):(h=e,I===0&&C(Rr)),h===e&&(h=zs())),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(i.charCodeAt(r)===58?(a=Yt,r++):(a=e,I===0&&C(Rr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h===e&&(i.charCodeAt(r)===58?(h=Yt,r++):(h=e,I===0&&C(Rr)),h===e&&(h=zs())),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));F=t,t=mg()}else r=t,t=e;return t}function zs(){var t;return t=HE(),t===e&&(t=XE()),t}function HE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=pn,r++):(u=e,I===0&&C(gs)),u!==e?(o=ch(),o!==e?(a=ch(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ch(){var t;return He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(cc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(la)),t===e&&(pc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(_u)))),t}function XE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Qo,r++):(u=e,I===0&&C(oa)),u!==e?(i.charCodeAt(r)===95?(o=cn,r++):(o=e,I===0&&C(Tn)),o===e&&(i.charCodeAt(r)===126?(o=Fa,r++):(o=e,I===0&&C(Hu)),o===e&&(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C($e)),o===e&&(i.charCodeAt(r)===45?(o=tr,r++):(o=e,I===0&&C(Wr)),o===e&&(i.charCodeAt(r)===33?(o=ri,r++):(o=e,I===0&&C(xn)),o===e&&(i.charCodeAt(r)===36?(o=Ts,r++):(o=e,I===0&&C(Ri)),o===e&&(i.charCodeAt(r)===38?(o=uu,r++):(o=e,I===0&&C(Xu)),o===e&&(i.charCodeAt(r)===39?(o=Di,r++):(o=e,I===0&&C(ui)),o===e&&(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o===e&&(i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,I===0&&C(Qr)),o===e&&(i.charCodeAt(r)===43?(o=Nr,r++):(o=e,I===0&&C(mt)),o===e&&(i.charCodeAt(r)===44?(o=Me,r++):(o=e,I===0&&C(ke)),o===e&&(i.charCodeAt(r)===59?(o=ur,r++):(o=e,I===0&&C(Jt)),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o===e&&(i.charCodeAt(r)===61?(o=Tr,r++):(o=e,I===0&&C(kt)),o===e&&(i.charCodeAt(r)===47?(o=rr,r++):(o=e,I===0&&C(Mr)),o===e&&(i.charCodeAt(r)===63?(o=pt,r++):(o=e,I===0&&C(Fs)),o===e&&(i.charCodeAt(r)===35?(o=fn,r++):(o=e,I===0&&C(ds)),o===e&&(i.charCodeAt(r)===64?(o=Ua,r++):(o=e,I===0&&C(yi)),o===e&&(i.charCodeAt(r)===37?(o=pn,r++):(o=e,I===0&&C(gs)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let ph={};function n(t,u){return!!(t.type==="Var"&&t.varType===u.varType&&t.varname===u.varname||t.iriref&&t.iriref===u.iriref||t.type==="PrefixedName"&&t.pn_prefix===u.pn_prefix&&t.pn_local===u.pn_local)}if(Io=L(),Io!==e&&r===i.length)return Io;throw Io!==e&&r<i.length&&C(vg()),Up(hl,It<i.length?i.charAt(It):null,It<i.length?_s(It,It+1):_s(It,It))}var Fo,Ra,Pn,_m=" ",Id=0;function Nd(i,m=2){if(_m=" ".repeat(m),Fo=[],Ra=i.comments,Pn="",i.headers&&Qe(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?Qe(`BASE <${e.iriref}>`):Qe(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),Qe("")),i.selectQuery)M1(i.selectQuery);else if(i.constructQuery)W1(i.constructQuery);else if(i.askQuery)G1(i.askQuery);else if(i.describeQuery)B1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Fo[Fo.length-1]+=` ;
79
- `),V1(i.update[e]);for(i.values&&Xm(i.values);Ra&&Ra.length;)Fo[Fo.length-1]+=Ra.shift().text;return Fo.join(`
80
- `)}var As=(i=1)=>{Pn+=_m.repeat(i)},Ns=(i=1)=>{Pn=Pn.substr(0,Pn.length-_m.length*i)},Qe=i=>{Fo.push(Pn+i)},Or=(i,m)=>{for(;Ra&&Ra.length&&Ra[0].pos<m;)Fo[Fo.length-1]+=Ra.shift().text;Qe(i)},G1=i=>{Qe("ASK {");let m=Ui(i.where);Or("}",m+1),Gh(i)},B1=i=>{let m=i.describe.map(ir).join(" ");if(Qe(`DESCRIBE ${m}`),Hm(i.from),i.where){Qe("WHERE {");let e=Ui(i.where);Or("}",e+1)}Gh(i)},V1=i=>{if(i.type==="insertdata")Qe("INSERT DATA {"),As(),Go(i.insert),Ns(),Qe("}");else if(i.type==="deletedata")Qe("DELETE DATA {"),As(),Go(i.delete),Ns(),Qe("}");else if(i.type==="deletewhere")Qe("DELETE WHERE {"),As(),Go(i.delete),Ns(),Qe("}");else if(i.type==="modify"){i.with&&Qe(`WITH ${ir(i.with)}`),i.delete&&(Qe("DELETE {"),As(),Go(i.delete),Ns(),Qe("}")),i.insert&&(Qe("INSERT {"),As(),Go(i.insert),Ns(),Qe("}")),i.using&&i.using.forEach(e=>{Qe(`USING ${D1(e)}`)}),Qe("WHERE {");let m=Ui(i.where);Or("}",m+1)}else if(i.type==="add"){let m=$f(i.graphs[0]),e=$f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`ADD${N}${m} TO ${e}`)}else if(i.type==="move"){let m=$f(i.graphs[0]),e=$f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`MOVE${N}${m} TO ${e}`)}else if(i.type==="copy"){let m=$f(i.graphs[0]),e=$f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`COPY${N}${m} TO ${e}`)}else if(i.type==="load"){let m=" ";i.silent&&(m=" SILENT "),Qe(`LOAD${m}${es(i.sourceGraph)}`)}else if(i.type==="clear"){let m=" ";i.silent&&(m=" SILENT "),Qe(`CLEAR${m}${KI(i.destinyGraph)}`)}else if(i.type==="drop"){let m=" ";i.silent&&(m=" SILENT "),Qe(`DROP${m}${KI(i.destinyGraph)}`)}else if(i.type==="create"){let m=" ";i.silent&&(m=" SILENT "),Qe(`CREATE${m}GRAPH ${es(i.destinyGraph)}`)}},D1=i=>i.named?`NAMED ${es(i.iri)}`:es(i.iri),$f=i=>i==="default"?"DEFAULT":es(i),KI=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${es(i)}`,Ui=(i,m=0)=>(As(),i.type==="SubSelect"?(Qm(i),m=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{eA(e),m=e.location.end.offset}):i.forEach(e=>{eA(e),m=e.location.end.offset}),Ns(),m),M1=i=>{let m=i.selectClause.location.start.offset;Or(rA(i.selectClause),m);let e=i.selectClause.location.end.offset,N=Hm(i.selectClause.from);N>e&&(e=N),Or("WHERE {",e+1),e=Ui(i.whereClause,e),Or("}",e+1),Gh(i)},Qm=i=>{let m=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;Or(rA(i.selectClause),m),Or("WHERE {",e+1),e=Ui(i.whereClause,e),Or("}",e+1),i.values&&Xm(i.values),Gh(i)},Hm=i=>{if(i){let m;return i.forEach(e=>{e.graph?m=Z1(e.graph):e.namedGraph&&(m=P1(e.namedGraph))}),m}},Gh=i=>{i.group&&Qe(k1(i.group)),i.having&&Qe(`HAVING ${Sr(i.having[0])}`),i.orderBy&&Qe("ORDER BY "+Q1(i.orderBy)),i.limitOffset?.forEach(m=>{m.limit?Qe(`LIMIT ${m.limit}`):m.offset&&Qe(`OFFSET ${m.offset}`)})},W1=i=>{i.template?(Or("CONSTRUCT {",i.location.start.offset),As(),Go(i.template.triplePattern),Ns(),Qe("}")):Qe("CONSTRUCT"),Hm(i.from),Qe("WHERE {");let m=Ui(i.where);Or("}",m+1),Gh(i)},Z1=i=>{let m=es(i);if(m!=null){let e=i.location.start.offset,N=i.location.end.offset;return Or("FROM "+m,e),N}},P1=i=>{let m=es(i);if(m!=null){let e=i.location.start.offset,N=i.location.end.offset;return Or("FROM NAMED "+m,e),N}},eA=i=>{if(Id=i.location.start.offset,i.type==="SubSelect"){Qe("{"),As(),Qm(i),Ns(),Qe("}");return}if(i.graphPattern&&i.graph){Or(`GRAPH ${ir(i.graph)} {`,Id);let m=Ui(i);Or("}",m+1);return}if(i.graphPattern){Qe("{");let m=Ui(i);Or("}",m+1);return}if(i.data){Xm(i);return}if(i.triplePattern){Go(i.triplePattern);return}if(i.union){for(let m=0;m<i.union.length;m++)m>0&&Qe("UNION"),Qe("{"),Ui(i.union[m]),Or("}",i.union[m].location.end.offset+2);return}if(i.optional){Or("OPTIONAL {",Id);let m=Ui(i.optional);Or("}",m+1);return}if(i.minus){Or("MINUS {",Id);let m=Ui(i.minus);Or("}",m+1);return}if(i.filter){H1(i);return}if(i.bind){Qe(`BIND (${Sr(i.bind)} AS ${Kl(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let m=" ";i.silent&&(m=" SILENT "),Qe(`SERVICE${m}${ir(i.service)} {`),i.pattern.type==="SubSelect"?(As(),Qm(i.pattern),Ns()):Ui(i.pattern),Qe("}");return}if(i.functionRef){let m=i.args.map(Sr).join(", ");Qe(es(i.functionRef)+`(${m})`)}},k1=i=>{let m=["GROUP BY"],e=0;return i.forEach(N=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=ir(N)}),m.join(`
81
- `)},Q1=i=>{let m=[];return i.forEach(e=>{let N;e.type==="Var"?N=Kl(e):N=Sr(e),e.asc?m.push(`ASC${N}`):e.desc?m.push(`DESC${N}`):m.push(N)}),m.join(" ")},rA=i=>{let m=[];m[0]="SELECT",i.distinct&&(m[0]+=" DISTINCT"),i.reduced&&(m[0]+=" REDUCED");let e=0;return i.var.forEach(N=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=_1(N)}),m.join(`
82
- `)},_1=i=>{if(i.varname)return Kl(i);if(i.as)return`(${Sr(i.expression)} AS ${Kl(i.as)})`;if(i==="*")return"*"},H1=i=>{if(i.filter.notexists){Qe("FILTER NOT EXISTS {");let m=Ui(i.filter.notexists);Or("}",m+1)}else if(i.filter.exists){Qe("FILTER EXISTS {");let m=Ui(i.filter.exists);Or("}",m+1)}else Or(`FILTER ${Sr(i.filter)}`,i.location.start.offset)},Go=i=>{i.forEach(m=>{m.graph?(Or(`GRAPH ${ir(m.graph)} {`,m.graph.location.start.offset),As(),Go(m.triplePattern),Ns(),Qe("}")):m.triplePattern?Go(m.triplePattern):m.properties?X1(m):Or(`[${$1(m.subject.blankNodeProperties)}] .`,m.subject.location.start.offset)})},X1=i=>{let m=ir(i.subject),e,N;i.properties.forEach(R=>{e?(Or(`${e} ;`,N),e=" ".repeat(m.length)+` ${ir(R.predicate)} ${ir(R.objects)}`,R.predicate.location?N=R.predicate.location.start.offset:N=R.predicate.value.location.start.offset):(e=`${m} ${ir(R.predicate)} ${ir(R.objects)}`,N=i.subject.location.start.offset)}),Or(`${e} .`,N)},Ad=i=>{let m="";return i.forEach(e=>{m&&(m+=" "),e.graph?(m+=`GRAPH ${ir(e.graph)} { `,m+=Ad(e.triplePattern),m+=" }"):e.triplePattern?m+=Ad(e.triplePattern):(m+=Y1(e),(i.length>1||e.properties.length>1)&&(m+=" ."))}),m},Y1=i=>{let m=ir(i.subject),e;return i.properties.forEach(N=>{e?e+=` ; ${ir(N.predicate)} ${ir(N.objects)}`:e=`${m} ${ir(N.predicate)} ${ir(N.objects)}`}),e},J1=(i,m)=>{if(i.length===1&&!m){let R=i[0];return` ${ir(R.predicate)} ${ir(R.objects)}`}As();let e="",N=Pn+" ".repeat(2);return i.forEach(R=>{e?(e+=` ;
83
- `,e+=`${N} ${ir(R.predicate)} ${ir(R.objects,!0)}`):(e+=`
84
- ${N}`,e+=` ${ir(R.predicate)} ${ir(R.objects,!0)}`)}),e+=`
85
- ${Pn}`,Ns(),e},$1=i=>{if(i.length===1){let N=i[0];return` ${ir(N.predicate)} ${ir(N.objects)} `}let m="",e=Pn+" ".repeat(2);return i.forEach(N=>{m?(m+=` ;
86
- `,m+=`${e}${ir(N.predicate)} ${ir(N.objects,!0)}`):(m+=`
87
- ${e}`,m+=`${ir(N.predicate)} ${ir(N.objects,!0)}`)}),m+=`
88
- ${Pn}`,m},z1=i=>{let m=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=Sr(i.expression),`COUNT(${m}${e})`}else{if(i.aggregateType==="sum")return`sum(${m}${Sr(i.expression)})`;if(i.aggregateType==="min")return`MIN(${m}${Sr(i.expression)})`;if(i.aggregateType==="max")return`MAX(${m}${Sr(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${m}${Sr(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${m}${Sr(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${tA(i.separator)}`),`GROUP_CONCAT(${m}${Sr(i.expression)}${e})`}}},Sr=i=>{if(i.functionRef)return es(i.functionRef)+"("+i.args.map(Sr).join(", ")+")";if(i.exists)return`EXISTS { ${Ad(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${Ad(i.notexists)} }`;switch(i.expressionType){case"atomic":return Zn(ir(i.value),i.bracketted);case"irireforfunction":let m=es(i.iriref);return i.args&&(m+="("+i.args.map(Sr).join(", ")+")"),Zn(m,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(ir).join(", ")),Zn(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let N=i.unaryexpression+Sr(i.expression);return Zn(N,i.bracketted);case"aggregate":return z1(i);case"multiplicativeexpression":let R=Sr(i.first);return i.rest.forEach(H=>{R+=" "+H.operator+" "+Sr(H.expression)}),Zn(R,i.bracketted);case"additiveexpression":let L=Sr(i.op1);return i.ops.forEach(H=>{L+=" "+H.operator+" "+Sr(H.expression)}),Zn(L,i.bracketted);case"relationalexpression":let O=Sr(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?O+="("+i.op2.map(ir).join(", ")+")":O+=Sr(i.op2),Zn(O,i.bracketted);case"aliasedexpression":let D=Sr(i.expression);return i.as&&(D+=` AS ${Kl(i.as)}`),Zn(D,i.bracketted);case"conditionaland":return Zn(i.operands.map(Sr).join(" && "),i.bracketted);case"conditionalor":return Zn(i.operands.map(Sr).join(" || "),i.bracketted);case"regex":let Z=Sr(i.text);return Z+=", "+Sr(i.pattern),i.flags&&(Z+=", "+Sr(i.flags)),`regex(${Z})`}},Zn=(i,m)=>m?`(${i})`:i,Xm=i=>{if(i.oneVar){let m=ir(i.oneVar),e=i.data.map(ir).join(" ");Qe(`VALUES ${m} { ${e} }`)}else if(i.variables){let m=i.variables.map(Kl).join(" ");if(i.variables.length===1){let e=i.data.map(N=>"("+N.map(ir).join(" ")+")").join(" ");Qe(`VALUES (${m}) { ${e} }`)}else Qe(`VALUES (${m}) {`),As(),i.data.map(e=>{Qe("("+e.map(ir).join(" ")+")")}),Ns(),Qe("}")}},ir=(i,m=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(N=>ir(N,m)).join(", ");if(i.varname)return Kl(i);if(i.collection)return`( ${i.collection.map(R=>ir(R)).join(" ")} )`;if(i.hasOwnProperty("literal"))return tA(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return Sr(i);if(i.blankNodeProperties)return`[${J1(i.blankNodeProperties,m)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=es(i)),i.alternative?e+=i.alternative.map(N=>ir(N)).join("|"):i.sequence&&(e+=i.sequence.map(N=>ir(N)).join("/")),i.bracketted&&(e=`(${e})`),i.modifier&&(e+=i.modifier),e},tA=i=>{if(i.dataType==="http://www.w3.org/2001/XMLSchema#decimal")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#double")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#integer")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#boolean")return i.literal;let m=i.quote+i.literal+i.quote;return i.dataType?m+=`^^${es(i.dataType)}`:i.lang&&(m+="@"+i.lang),m},es=i=>{if(i.iriref)return`<${i.iriref}>`;if(i.pn_prefix&&i.pn_local)return`${i.pn_prefix}:${i.pn_local}`;if(i.pn_prefix)return`${i.pn_prefix}:`;if(i.pn_local)return`:${i.pn_local}`;if(i.a)return"a"},Kl=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var en="",Jm;function iA(i,m=4){Jm=" ".repeat(m);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
78
+ `],!0,!1),ds=Q("#",!1),Mu=Be([["A","Z"]],!1,!1),kc=Be([["a","z"]],!1,!1),Xc=Be([["\xC0","\xD6"]],!1,!1),Zu=Be([["\xD8","\xF6"]],!1,!1),bn=Be([["\xF8","\u02FF"]],!1,!1),Ka=Be([["\u0370","\u037D"]],!1,!1),aa=Be([["\u037F","\u1FFF"]],!1,!1),Qu=Be([["\u200C","\u200D"]],!1,!1),el=Be([["\u2070","\u218F"]],!1,!1),Pu=Be([["\u2C00","\u2FEF"]],!1,!1),Hc=Be([["\u3001","\uD7FF"]],!1,!1),ku=Be([["\uF900","\uFDCF"]],!1,!1),xt=Be([["\uFDF0","\uFFFD"]],!1,!1),Tn=Q("_",!1),Rn=Be(["\xB7"],!1,!1),yn=Be([["\u0300","\u036F"]],!1,!1),Sn=Be([["\u203F","\u2040"]],!1,!1),gs=Q("%",!1),la=Be([["A","F"]],!1,!1),Xu=Be([["a","f"]],!1,!1),Hu=Q("~",!1),Yu=Q("&",!1),Ln=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(hh).map(([p,h])=>({pos:parseInt(p),text:h}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},_u=function(t,u,o){let a={type:"Query"};return t&&(a.prologue=t),u.type==="SelectQuery"?a.selectQuery=u:u.type==="ConstructQuery"?a.constructQuery=u:u.type==="DescribeQuery"?a.describeQuery=u:u.type==="AskQuery"&&(a.askQuery=u),o&&(a.values=o),a},ua=function(t){if(t.length)return{type:"Prologue",decl:t}},Ju=function(t){return{type:"BaseDecl",iriref:t}},oo=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Yc=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},wn=function(t,u,o,a){let p={type:"SubSelect",selectClause:t,whereClause:u,...o,location:ye()};return a&&(p.values=a),p},$u=function(t,u){let o;u==="*"?o=["*"]:o=u.map(p=>p.length===2?p[1]:{expression:p[3],as:p[7]});let a={var:o};if(t){let p=t.toUpperCase();p==="DISTINCT"?a.distinct=!0:p==="REDUCED"&&(a.reduced=!0)}return a.location=ye(),a},zu=function(t,u,o,a){let p={type:"ConstructQuery"};return u.length&&(p.from=u),p={...p,template:t,where:o,...a,location:ye()},p},ju=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:ye()},a},ao=function(t,u,o,a){let p={type:"DescribeQuery"};return u.length&&(p.from=u),p.describe=t,o&&(p.where=o),p={...p,...a,location:ye()},p},lo=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:ye()},a},uo=function(t){return t},fo=function(t){return{graph:t,location:ye()}},qu=function(t){return{namedGraph:t,location:ye()}},_c=function(t){return t.graphPattern||t},Ku=function(t,u,o,a){let p={};return t&&(p.group=t),u&&(p.having=u),o&&(p.orderBy=o),a&&(p.limitOffset=a),p},Es=function(t){return t},Un=function(t){return t},co=function(t){return t},Jc=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:ye()}:{bracketted:!0,...t}},ef=function(t){return t},$c=function(t){return t},zc=function(t){return t},jc=function(t){return t},Bt=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},rf=function(t){return t},qc=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Kc=function(t){return{limit:parseInt(t.literal)}},ep=function(t){return{offset:parseInt(t.literal)}},tf=function(t){return t?t[1]:null},sf=function(t,u){let o={type:"Update"};t&&(o.prologue=t);let a=[];return u&&(a=[u[1]],u[2]&&(a=a.concat(u[2][3].update))),o.update=a,o},nf=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},rp=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},tp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},ip=function(t,u){return{type:"create",silent:t,destinyGraph:u}},ms=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},po=function(t,u,o){return{type:"move",silent:t,graphs:[u,o]}},fa=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},ho=function(t){return{type:"insertdata",insert:t}},Hi=function(t){return{type:"deletedata",delete:t}},sp=function(t){return{type:"deletewhere",delete:t}},np=function(t,u,o,a){let p={type:"modify"};return t&&(p.with=t[2]),u.length===3?(p.delete=u[0],u[2]&&(p.insert=u[2])):p.insert=u,o.length&&(p.using=o),p.where=a.graphPattern,p},On=function(t){return t},of=function(t){return t},af=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},lf=function(){return"default"},ca=function(t){return t},Gn=function(t){return t},rl=function(t){return t},tl=function(){return"default"},il=function(){return"named"},op=function(){return"all"},go=function(t){return t},uf=function(t){return t},ap=function(t,u){let o=[];return t&&(o=o.concat(t)),u.forEach(a=>{o=o.concat(a[0]),a[2]&&(o=o.concat(a[2]))}),o},ff=function(t,u){return{graph:t,...u}},pa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:ye()}},lp=function(t){return t},up=function(t,u){let o=[];return t&&o.push(t),u.forEach(a=>{o.push(a[0]),a[4]&&o.push(a[4])}),{graphPattern:o,location:ye()}},Eo=function(t,u){let o=[];if(u&&u[3])if(n(t.subject,u[3].triplePattern[0].subject)){o=JSON.parse(JSON.stringify(u[3].triplePattern));let a=t.properties.length-1;if(n(t.properties[a].predicate,u[3].triplePattern[0].properties[0].predicate)){o[0].properties=t.properties;let p=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(h=>{n(t.properties[a].objects[p],h)||o[0].properties[a].objects.push(h)}),o[0].properties.push(...u[3].triplePattern[0].properties.slice(1))}else o[0].properties=t.properties.concat(u[3].triplePattern[0].properties)}else o=[t].concat(u[3].triplePattern);else o=[t];return{type:"TriplesBlock",triplePattern:o,location:ye()}},cf=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:ye()}},pf=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},fp=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=ye(),a},sl=function(t,u){return{type:"Bind",bind:t,as:u,location:ye()}},hf=function(t){return t},cp=function(t,u){return{oneVar:t,data:u,location:ye()}},df=function(t,u){return{variables:t,data:u,location:ye()}},gf=function(t){return t},pp=function(t){return t},nl=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:ye()}},mo=function(t,u){return u.length?{union:[t,...u],location:ye()}:t},vo=function(t){return{type:"Filter",filter:t,location:ye()}},hp=function(t,u){return{functionRef:t,args:u.list,location:ye()}},Ef=function(){return{list:[]}},dp=function(t,u,o){return{distinct:!!t,list:[u,...o]}},gp=function(){return[]},Ep=function(t,u){return[t,...u]},mp=function(t){return t},mf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:ye()}},vp=function(t,u){return{subject:t,properties:u}},xp=function(t,u){return{subject:t,properties:u}},vf=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{p[3]&&a.push({predicate:p[3][0],objects:p[3][2]})}),a},ol=function(){return{a:!0,location:ye()}},xf=function(t,u){return[t,...u]},Cp=function(t,u){return{subject:t,properties:u}},Cf=function(t,u){return{subject:t,properties:u}},Fn=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{if(p[3]){let h=a.length-1,E=a[h].objects.length-1;n(a[h].predicate,p[3][0])?p[3][2].forEach(x=>{n(a[h].objects[E],x)||a[h].objects.push(x)}):a.push({predicate:p[3][0],objects:p[3][2]})}}),a},If=function(t,u){return[t,...u]},ha=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{alternative:o,location:ye()}}else return t},Ip=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{sequence:o,location:ye()}}else return t},Ap=function(t,u){return u&&(t.modifier=u),t},Np=function(t){return t.inverse=!0,t},yr=function(){return{a:!0,location:ye()}},bp=function(t){return{bracketted:!0,...t}},al=function(t){return{collection:t,location:ye()}},xo=function(t){return{blankNodeProperties:t,location:ye()}},fi=function(t){return{collection:t,location:ye()}},da=function(t){return{blankNodeProperties:t,location:ye()}},ll=function(t){return t},Af=function(t){return t},Nf=function(t){return t},bf=function(t){return t},ul=function(t){return{...t,location:ye()}},Tf=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},Tp=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},fl=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),p=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),p=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:p}}else return t},Rf=function(t,u){if(u.length===0)return t;let o=[];return u.forEach(a=>{a.length==4&&o.push({operator:a[1],expression:a[3]})}),{expressionType:"additiveexpression",op1:t,ops:o}},mr=function(t,u){return u.length?{expressionType:"multiplicativeexpression",first:t,rest:u.map(o=>({operator:o[1],expression:o[3]}))}:t},yf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Rp=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},Bn=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},yp=function(t){return{expressionType:"atomic",value:t}},ga=function(t){return{expressionType:"atomic",value:t}},Sp=function(t){return{expressionType:"atomic",value:t}},Zr=function(t){return{expressionType:"atomic",value:t}},Lp=function(t){return{bracketted:!0,...t}},wp=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},Up=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},Ea=function(t,u){return{expressionType:"builtincall",builtincall:"langMatches",args:[t,u]}},s=function(t){return{expressionType:"builtincall",builtincall:"datatype",args:[t]}},l=function(t){return{expressionType:"builtincall",builtincall:"bound",args:[t]}},g=function(t){return{expressionType:"builtincall",builtincall:"IRI",args:[t]}},d=function(t){return{expressionType:"builtincall",builtincall:"URI",args:[t]}},v=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},A=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(t){return{expressionType:"builtincall",builtincall:"abs",args:[t]}},y=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},w=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},U=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},P=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},_=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},re=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},ee=function(t){return{expressionType:"builtincall",builtincall:"LCASE",args:[t]}},oe=function(t){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[t]}},fe=function(t,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[t,u]}},he=function(t,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[t,u]}},xe=function(t,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[t,u]}},Ie=function(t,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[t,u]}},Ce=function(t,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[t,u]}},Re=function(t){return{expressionType:"builtincall",builtincall:"year",args:[t]}},Ze=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},Ve=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},er=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},Cr=function(t){return{expressionType:"builtincall",builtincall:"minutes",args:[t]}},st=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},Lr=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},Xt=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Vt=function(){return{expressionType:"builtincall",builtincall:"now"}},Xr=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Wt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},lt=function(t){return{expressionType:"builtincall",builtincall:"MD5",args:[t]}},jr=function(t){return{expressionType:"builtincall",builtincall:"SHA1",args:[t]}},Hr=function(t){return{expressionType:"builtincall",builtincall:"SHA256",args:[t]}},Gr=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Dt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Vn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},vs=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},Ct=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},Li=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},nt=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},cl=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Yi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},Ps=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},ks=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Rt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Wn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},pl=function(t,u,o,a){let p=[t,u,o];return a&&p.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:p}},Nd=function(t){return{exists:t.graphPattern||t}},bd=function(t){return{notexists:t.graphPattern||t}},Td=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},Rd=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},yd=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},Sd=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Ld=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},wd=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Ud=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},Od=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Gd=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=ye(),t},Fd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Bd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Vd=function(t){return{type:"IRIref",iriref:t,location:ye()}},Wd=function(t){return t},Dd=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:ye()}},Md=function(t){return{type:"PrefixedName",pn_prefix:t,location:ye()}},Zd=function(t){return{blankNode:t,location:ye()}},Qd=function(){return{blankNode:"[]",location:ye()}},Pd=function(t){return t.join("")},kd=function(t){return t||""},Xd=function(t,u){return{pn_prefix:t,pn_local:u}},Hd=function(){return Yr()},Yd=function(t){return{type:"Var",varType:"VAR1",varname:t}},_d=function(t){return{type:"Var",varType:"VAR2",varname:t}},Jd=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},$d=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Yr()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Yr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},Kd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},eg=function(t){return t.literal="+"+t.literal,t},rg=function(t){return t.literal="+"+t.literal,t},tg=function(t){return t.literal="+"+t.literal,t},ig=function(t){return t.literal="-"+t.literal,t},sg=function(t){return t.literal="-"+t.literal,t},ng=function(t){return t.literal="-"+t.literal,t},og=function(t){return{quote:"'",literal:t.join("")}},ag=function(t){return{quote:'"',literal:t.join("")}},lg=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},ug=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},fg=function(){return Yr()},cg=function(){return Yr()},pg=function(){return hh[ye().start.offset]=Yr(),""},hg=function(){return Yr()},dg=function(){return Yr()},gg=function(){return Yr()},r=0,O=0,Co=[{line:1,column:1}],It=0,hl=[],I=0,Io;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function Yr(){return i.substring(O,r)}function zI(){return O}function jI(){return{source:N,start:O,end:r}}function ye(){return Xs(O,r)}function qI(t,u){throw u=u!==void 0?u:Xs(O,r),Gp([mg(t)],i.substring(O,r),u)}function KI(t,u){throw u=u!==void 0?u:Xs(O,r),vg(t,u)}function Q(t,u){return{type:"literal",text:t,ignoreCase:u}}function Be(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function eA(){return{type:"any"}}function Eg(){return{type:"end"}}function mg(t){return{type:"other",description:t}}function Op(t){var u=Co[t],o;if(u)return u;for(o=t-1;!Co[o];)o--;for(u=Co[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return Co[t]=u,u}function Xs(t,u,o){var a=Op(t),p=Op(u),h={source:N,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:p.line,column:p.column}};return o&&N&&typeof N.offset=="function"&&(h.start=N.offset(h.start),h.end=N.offset(h.end)),h}function C(t){r<It||(r>It&&(It=r,hl=[]),hl.push(t))}function vg(t,u){return new ql(t,null,null,u)}function Gp(t,u,o){return new ql(ql.buildMessage(t,u),t,u,o)}function Fp(){var t,u,o,a,p,h;for(t=r,u=[],o=uh();o!==e;)u.push(o),o=uh();for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=xg(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();O=t,t=Ln(u,a)}else r=t,t=e;return t}function xg(){var t;return t=Cg(),t===e&&(t=Hp()),t}function Cg(){var t,u,o,a,p;for(t=r,u=Bp(),o=[],a=c();a!==e;)o.push(a),a=c();return a=Ig(),a===e&&(a=Ng(),a===e&&(a=bg(),a===e&&(a=Tg()))),a!==e?(p=Xp(),O=t,t=_u(u,a,p)):(r=t,t=e),t}function Bp(){var t,u,o;for(t=r,u=[],o=Vp(),o===e&&(o=Wp());o!==e;)u.push(o),o=Vp(),o===e&&(o=Wp());return O=t,u=ua(u),t=u,t}function Vp(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===G?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(dc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Gl(),p!==e?(O=t,t=Ju(p)):(r=t,t=e)}else r=t,t=e;return t}function Wp(){var t,u,o,a,p,h,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===W?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Yn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Fl(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gl(),E!==e?(O=t,t=oo(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Ig(){var t,u,o,a,p,h,E,x;if(t=r,u=Dp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=Hs(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=_i(),O=t,t=Yc(u,a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Ag(){var t,u,o,a,p,h,E;if(t=r,u=Dp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Hs(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=_i(),E=Xp(),O=t,t=wn(u,a,h,E)}else r=t,t=e}else r=t,t=e;return t}function Dp(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe,rr;if(t=r,i.substr(r,6).toLowerCase()===D?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(rt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,I===0&&C(gt)),a===e&&(i.substr(r,7).toLowerCase()===k?(a=i.substr(r,7),r+=7):(a=e,I===0&&C(hu))),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(T=or(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===40?(T=Z,r++):(T=e,I===0&&C(le)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(F=se(),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();if(i.substr(r,2).toLowerCase()===$?(ne=i.substr(r,2),r+=2):(ne=e,I===0&&C(Ls)),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();if(be=or(),be!==e){for(Oe=[],rr=c();rr!==e;)Oe.push(rr),rr=c();i.charCodeAt(r)===41?(rr=M,r++):(rr=e,I===0&&C(ue)),rr!==e?(x=[x,T,S,F,X,ne,de,be,Oe,rr],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}if(E!==e)for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(T=or(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===40?(T=Z,r++):(T=e,I===0&&C(le)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(F=se(),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();if(i.substr(r,2).toLowerCase()===$?(ne=i.substr(r,2),r+=2):(ne=e,I===0&&C(Ls)),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();if(be=or(),be!==e){for(Oe=[],rr=c();rr!==e;)Oe.push(rr),rr=c();i.charCodeAt(r)===41?(rr=M,r++):(rr=e,I===0&&C(ue)),rr!==e?(x=[x,T,S,F,X,ne,de,be,Oe,rr],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}}else h=e;h===e&&(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(kr))),h!==e?(O=t,t=$u(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Ng(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de;if(t=r,i.substr(r,9).toLowerCase()===J?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(_n)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=tE(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=At();E!==e;)h.push(E),E=At();for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=Hs(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),O=t,t=zu(a,h,x,S)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,9).toLowerCase()===J?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(_n)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(ls)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===123?(x=V,r++):(x=e,I===0&&C(Gt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=$i(),S===e&&(S=null),F=[],X=c();X!==e;)F.push(X),X=c();if(i.charCodeAt(r)===125?(X=Y,r++):(X=e,I===0&&C(Ft)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();de=_i(),O=t,t=ju(a,S,de)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,8).toLowerCase()===q?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(du)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=ji(),p!==e)for(;p!==e;)a.push(p),p=ji();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=z,r++):(a=e,I===0&&C(kr))),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=At();E!==e;)h.push(E),E=At();for(E=[],x=c();x!==e;)E.push(x),x=c();for(x=Hs(),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=_i(),O=t,t=ao(a,h,x,S)}else r=t,t=e}else r=t,t=e;return t}function Tg(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,3).toLowerCase()===te?(o=i.substr(r,3),r+=3):(o=e,I===0&&C(gu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=Hs(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=_i(),O=t,t=lo(p,E,T)}else r=t,t=e}else r=t,t=e;return t}function At(){var t,u,o,a,p,h;if(t=r,i.substr(r,4).toLowerCase()===ie?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rg(),a===e&&(a=yg()),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();O=t,t=uo(a)}else r=t,t=e}else r=t,t=e;return t}function Rg(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=hr(),o!==e?(O=t,t=fo(o)):(r=t,t=e),t}function yg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Zi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=hr(),a!==e?(O=t,t=qu(a)):(r=t,t=e)}else r=t,t=e;return t}function Hs(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===B?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ls)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return a=ot(),a!==e?(O=t,t=_c(a)):(r=t,t=e),t}function _i(){var t,u,o,a,p;return t=r,u=Sg(),u===e&&(u=null),o=Lg(),o===e&&(o=null),a=wg(),a===e&&(a=null),p=Ug(),p===e&&(p=null),O=t,t=Ku(u,o,a,p),t}function Sg(){var t,u,o,a,p,h,E;if(t=r,i.substr(r,5).toLowerCase()===ge?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Qi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===ke?(a=i.substr(r,2),r+=2):(a=e,I===0&&C(gn)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=Mp(),E!==e)for(;E!==e;)h.push(E),E=Mp();else h=e;h!==e?(O=t,t=Es(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Mp(){var t,u,o,a,p,h,E,x,T,S,F;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=yl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=t,t=Un(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=rh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=t,t=co(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=r,i.substr(r,2).toLowerCase()===$?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ls)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=or(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=t,t=Jc(p,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=or(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=t,t=ef(o)}else r=t,t=e}}}return t}function Lg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===ve?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Da)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Zp(),p!==e)for(;p!==e;)a.push(p),p=Zp();else a=e;a!==e?(O=t,t=$c(a)):(r=t,t=e)}else r=t,t=e;return t}function Zp(){var t,u,o,a;if(t=r,u=El(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=t,t=zc(u)}else r=t,t=e;return t}function wg(){var t,u,o,a,p,h,E,x;if(t=r,i.substr(r,5).toLowerCase()===Te?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Eu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===ke?(a=i.substr(r,2),r+=2):(a=e,I===0&&C(gn)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=Qp(),E!==e)for(;E!==e;)h.push(E),E=Qp();else h=e;if(h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();O=t,t=jc(h)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Qp(){var t,u,o,a,p,h;if(t=r,i.substr(r,3).toLowerCase()===Le?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ni)),u===e&&(i.substr(r,4).toLowerCase()===Qe?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(ws))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();O=t,t=Bt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=El(),u===e&&(u=or()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=t,t=rf(u)}else r=t,t=e;return t}function Ug(){var t,u,o,a;return t=r,u=r,o=Pp(),o!==e?(a=kp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=kp(),o!==e?(a=Pp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(O=t,u=qc(u)),t=u,t}function Pp(){var t,u,o,a,p,h;if(t=r,i.substr(r,5).toLowerCase()===me?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ma)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$s(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();O=t,t=Kc(a)}else r=t,t=e}else r=t,t=e;return t}function kp(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===ar?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Ec)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$s(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();O=t,t=ep(a)}else r=t,t=e}else r=t,t=e;return t}function Xp(){var t,u,o,a;return t=r,u=r,i.substr(r,6).toLowerCase()===Ir?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(_o)),o!==e?(a=Kp(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),O=t,u=tf(u),t=u,t}function Hp(){var t,u,o,a,p,h,E,x,T,S;for(t=r,u=Bp(),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(p=Og(),p!==e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=cr,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Hp(),E=[E,x,T,S],h=E}else r=h,h=e;h===e&&(h=null),a=[a,p,h],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();return O=t,t=sf(u,o),t}function Og(){var t;return t=Gg(),t===e&&(t=Fg(),t===e&&(t=Bg(),t===e&&(t=Wg(),t===e&&(t=Dg(),t===e&&(t=Mg(),t===e&&(t=Vg(),t===e&&(t=Zg(),t===e&&(t=Qg(),t===e&&(t=Pg(),t===e&&(t=kg())))))))))),t}function Gg(){var t,u,o,a,p,h,E,x,T,S,F;if(t=r,i.substr(r,4).toLowerCase()===$r?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(mu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=hr(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=r,i.substr(r,4).toLowerCase()===St?(T=i.substr(r,4),r+=4):(T=e,I===0&&C(En)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=dl(),F!==e?(T=[T,S,F],x=T):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),O=t,t=nf(a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Fg(){var t,u,o,a,p,h;if(t=r,i.substr(r,5).toLowerCase()===Lt?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=Jp(),h!==e?(O=t,t=rp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Bg(){var t,u,o,a,p,h;if(t=r,i.substr(r,4).toLowerCase()===dr?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=Jp(),h!==e?(O=t,t=tp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Vg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===wt?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(xu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=dl(),h!==e?(O=t,t=ip(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Wg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,3).toLowerCase()===lr?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(mc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(O=t,t=ms(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Dg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===qe?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(O=t,t=po(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Mg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===zr?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Cu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(O=t,t=fa(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,4).toLowerCase()===Qr?(a=i.substr(r,4),r+=4):(a=e,I===0&&C(Us)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=$p(),h!==e?(O=t,t=ho(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Qg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===gr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.substr(r,4).toLowerCase()===Qr?(a=i.substr(r,4),r+=4):(a=e,I===0&&C(Us)),a!==e?(p=$p(),p!==e?(O=t,t=Hi(p)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function Pg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===gr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,5).toLowerCase()===B?(a=i.substr(r,5),r+=5):(a=e,I===0&&C(ls)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=gl(),h!==e?(O=t,t=sp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function kg(){var t,u,o,a,p,h,E,x,T,S,F;if(t=r,u=r,i.substr(r,4).toLowerCase()===Kt?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Iu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=hr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();o=[o,a,p,h],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=Xg(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Yp(),h===e&&(h=null),a=[a,p,h],o=a}else r=o,o=e;if(o===e&&(o=Yp()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=_p();h!==e;)p.push(h),h=_p();for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,5).toLowerCase()===B?(E=i.substr(r,5),r+=5):(E=e,I===0&&C(ls)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=ot(),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();O=t,t=np(u,o,p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===gr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e?(o=gl(),o!==e?(O=t,t=On(o)):(r=t,t=e)):(r=t,t=e),t}function Yp(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Jo)),u!==e?(o=gl(),o!==e?(O=t,t=of(o)):(r=t,t=e)):(r=t,t=e),t}function _p(){var t,u,o,a,p,h,E,x;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Ge?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(Za)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=hr(),p===e)if(p=r,i.substr(r,5).toLowerCase()===ae?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(Zi)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=hr(),x!==e?(h=[h,E,x],p=h):(r=p,p=e)}else r=p,p=e;p!==e?(O=t,t=af(p)):(r=t,t=e)}else r=t,t=e;return t}function Ji(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===ce?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(vn)),u!==e&&(O=t,u=lf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===vr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();a=hr(),a!==e?(O=t,t=ca(a)):(r=t,t=e)}return t}function dl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===vr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=hr(),a!==e?(O=t,t=Gn(a)):(r=t,t=e)}else r=t,t=e;return t}function Jp(){var t,u;return t=r,u=dl(),u!==e&&(O=t,u=rl(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===ce?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(vn)),u!==e&&(O=t,u=tl()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Zi)),u!==e&&(O=t,u=il()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===pr?(u=i.substr(r,3),r+=3):(u=e,I===0&&C($o)),u!==e&&(O=t,u=op()),t=u))),t}function gl(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,I===0&&C(Gt)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=zp(),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===125?(E=Y,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();O=t,t=go(p)}else r=t,t=e}else r=t,t=e;return t}function $p(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,I===0&&C(Gt)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=zp(),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===125?(E=Y,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();O=t,t=uf(p)}else r=t,t=e}else r=t,t=e;return t}function zp(){var t,u,o,a,p,h,E;for(t=r,u=$i(),u===e&&(u=null),o=[],a=r,p=jp(),p!==e?(i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C(ze)),h===e&&(h=null),E=$i(),E===e&&(E=null),p=[p,h,E],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,p=jp(),p!==e?(i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C(ze)),h===e&&(h=null),E=$i(),E===e&&(E=null),p=[p,h,E],a=p):(r=a,a=e);return O=t,t=ap(u,o),t}function jp(){var t,u,o,a,p,h,E,x,T,S,F,X,ne;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===vr?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=$i(),T===e&&(T=null),S=[],F=c();F!==e;)S.push(F),F=c();if(i.charCodeAt(r)===125?(F=Y,r++):(F=e,I===0&&C(Ft)),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();O=t,t=ff(p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function $i(){var t,u,o,a,p,h,E;if(t=r,u=sh(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=$i(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),O=t,t=pa(u,o)}else r=t,t=e;return t}function ot(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Gt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ag(),a===e&&(a=Hg()),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===125?(h=Y,r++):(h=e,I===0&&C(Ft)),h!==e?(O=t,t=lp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Hg(){var t,u,o,a,p,h,E,x,T,S;for(t=r,u=Ao(),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=r,h=qp(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(i.charCodeAt(r)===46?(x=we,r++):(x=e,I===0&&C(ze)),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],p=h}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,h=qp(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(i.charCodeAt(r)===46?(x=we,r++):(x=e,I===0&&C(ze)),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],p=h}else r=p,p=e;return O=t,t=up(u,a),t}function Ao(){var t,u,o,a,p,h,E;if(t=r,u=sE(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ao(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),O=t,t=Eo(u,o)}else r=t,t=e;return t}function qp(){var t;return t=eE(),t===e&&(t=Yg(),t===e&&(t=Kg(),t===e&&(t=_g(),t===e&&(t=Jg(),t===e&&(t=rE(),t===e&&(t=$g(),t===e&&(t=zg()))))))),t}function Yg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,8).toLowerCase()===Or?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(Au)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ot(),p!==e?(O=t,t=cf(p)):(r=t,t=e)}else r=t,t=e;return t}function _g(){var t,u,o,a,p,h,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===vr?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?(O=t,t=pf(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Jg(){var t,u,o,a,p,h,E,x;if(t=r,i.substr(r,7).toLowerCase()===ei?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Qa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===je?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?(O=t,t=fp(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function $g(){var t,u,o,a,p,h,E,x,T,S,F,X,ne;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Ne?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Pa)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===40?(p=Z,r++):(p=e,I===0&&C(le)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.substr(r,2).toLowerCase()===$?(T=i.substr(r,2),r+=2):(T=e,I===0&&C(Ls)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();if(F=or(),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(O=t,t=sl(E,F)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Ir?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(_o)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Kp(),p!==e?(O=t,t=hf(p)):(r=t,t=e)}else r=t,t=e;return t}function Kp(){var t;return t=jg(),t===e&&(t=qg()),t}function jg(){var t,u,o,a,p,h,E,x;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=or(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===123?(p=V,r++):(p=e,I===0&&C(Gt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(E=[],x=No();x!==e;)E.push(x),x=No();i.charCodeAt(r)===125?(x=Y,r++):(x=e,I===0&&C(Ft)),x!==e?(O=t,t=cp(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function qg(){var t,u,o,a,p,h,E,x,T,S,F;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=or();h!==e;)p.push(h),h=or();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===123?(x=V,r++):(x=e,I===0&&C(Gt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=[],F=eh();F!==e;)S.push(F),F=eh();i.charCodeAt(r)===125?(F=Y,r++):(F=e,I===0&&C(Ft)),F!==e?(O=t,t=df(p,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function eh(){var t,u,o,a,p,h,E;if(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=No();p!==e;)a.push(p),p=No();if(i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();O=t,t=gf(a)}else r=t,t=e}else r=t,t=e;return t}function No(){var t,u,o,a;if(t=r,u=hr(),u===e&&(u=Sl(),u===e&&(u=Ll(),u===e&&(u=Ol(),u===e&&(i.substr(r,5)===Ut?(u=Ut,r+=5):(u=e,I===0&&C(Nu)))))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();O=t,t=pp(u)}else r=t,t=e;return t}function Kg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ft?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(O=t,t=nl(a)):(r=t,t=e)}else r=t,t=e;return t}function eE(){var t,u,o,a,p,h,E,x;if(t=r,u=ot(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,I===0&&C($n)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,I===0&&C($n)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}O=t,t=mo(u,o)}else r=t,t=e;return t}function rE(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===rs?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(xc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=El(),p!==e?(O=t,t=vo(p)):(r=t,t=e)}else r=t,t=e;return t}function El(){var t;return t=Rl(),t===e&&(t=yl(),t===e&&(t=rh())),t}function rh(){var t,u,o,a;if(t=r,u=hr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=th(),a!==e?(O=t,t=hp(u,a)):(r=t,t=e)}else r=t,t=e;return t}function th(){var t,u,o,a,p,h,E,x,T,S,F,X;if(t=r,u=jt(),u!==e&&(O=t,u=Ef()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,I===0&&C(gt)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=[],T=r,i.charCodeAt(r)===44?(S=We,r++):(S=e,I===0&&C(Xe)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();X=se(),X!==e?T=X:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(x.push(T),T=r,i.charCodeAt(r)===44?(S=We,r++):(S=e,I===0&&C(Xe)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();X=se(),X!==e?T=X:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e?(O=t,t=dp(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zi(){var t,u,o,a,p,h,E,x,T,S,F,X;if(t=r,u=jt(),u!==e&&(O=t,u=gp()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=r,i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();E=S}else r=E,E=e}else r=E,E=e;for(;E!==e;)if(h.push(E),E=r,i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(O=t,t=Ep(a,h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function tE(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Gt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=ih(),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===125?(h=Y,r++):(h=e,I===0&&C(Ft)),h!==e?(O=t,t=mp(a)):(r=t,t=e)}else r=t,t=e;return t}function ih(){var t,u,o,a,p,h,E;if(t=r,u=sh(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ih(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),O=t,t=mf(u,o)}else r=t,t=e;return t}function sh(){var t,u,o,a,p;if(t=r,u=Ro(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ml(),a!==e?(O=t,t=vp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=oh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=iE(),O=t,t=xp(o,p)}else r=t,t=e}return t}function iE(){var t;return t=ml(),t===e&&(t=null),t}function ml(){var t,u,o,a,p,h,E,x,T,S,F,X,ne;if(t=r,u=vl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=xl(),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=cr,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,F=vl(),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();ne=xl(),ne!==e?(F=[F,X,ne],S=F):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=cr,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,F=vl(),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();ne=xl(),ne!==e?(F=[F,X,ne],S=F):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e}O=t,t=vf(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function vl(){var t,u;return t=ji(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Os)),u!==e&&(O=t,u=ol()),t=u),t}function xl(){var t,u,o,a,p,h,E,x;if(t=r,u=Ys(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=We,r++):(h=e,I===0&&C(Xe)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Ys(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=We,r++):(h=e,I===0&&C(Xe)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Ys(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}O=t,t=xf(u,o)}else r=t,t=e;return t}function sE(){var t,u,o,a,p;if(t=r,u=Ro(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Cl(),a!==e?(O=t,t=Cp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=ah(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=nE(),O=t,t=Cf(o,p)}else r=t,t=e}return t}function nE(){var t;return t=Cl(),t===e&&(t=null),t}function Cl(){var t,u,o,a,p,h,E,x,T,S,F,X,ne;if(t=r,u=bo(),u===e&&(u=or()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Il(),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=cr,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,F=bo(),F===e&&(F=or()),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();ne=Il(),ne!==e?(F=[F,X,ne],S=F):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=cr,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,F=bo(),F===e&&(F=or()),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();ne=Il(),ne!==e?(F=[F,X,ne],S=F):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e}O=t,t=Fn(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function Il(){var t,u,o,a,p,h,E,x;if(t=r,u=_s(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=We,r++):(h=e,I===0&&C(Xe)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=_s(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=We,r++):(h=e,I===0&&C(Xe)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=_s(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}O=t,t=If(u,o)}else r=t,t=e;return t}function bo(){var t,u,o,a,p,h,E,x;if(t=r,u=Al(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===124?(h=Ue,r++):(h=e,I===0&&C($t)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Al(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===124?(h=Ue,r++):(h=e,I===0&&C($t)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Al(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}O=t,t=ha(u,o)}else r=t,t=e;return t}function Al(){var t,u,o,a,p,h,E,x;if(t=r,u=Nl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=tr,r++):(h=e,I===0&&C(Dr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Nl(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=tr,r++):(h=e,I===0&&C(Dr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Nl(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}O=t,t=Ip(u,o)}else r=t,t=e;return t}function nh(){var t,u,o;return t=r,u=aE(),u!==e?(o=oE(),o===e&&(o=null),O=t,t=Ap(u,o)):(r=t,t=e),t}function Nl(){var t,u,o;return t=nh(),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,I===0&&C(fs)),u!==e?(o=nh(),o!==e?(O=t,t=Np(o)):(r=t,t=e)):(r=t,t=e)),t}function oE(){var t;return i.charCodeAt(r)===63?(t=pt,r++):(t=e,I===0&&C(Gs)),t===e&&(i.charCodeAt(r)===42?(t=z,r++):(t=e,I===0&&C(kr)),t===e&&(i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)))),t}function aE(){var t,u,o,a;return t=hr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Os)),u!==e&&(O=t,u=yr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u!==e?(o=lE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e?(o=bo(),o!==e?(i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(O=t,t=bp(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function lE(){var t,u,o,a,p,h,E,x;if(t=To(),t===e)if(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){if(o=r,a=To(),a!==e){for(p=[],h=r,i.charCodeAt(r)===124?(E=Ue,r++):(E=e,I===0&&C($t)),E!==e?(x=To(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);h!==e;)p.push(h),h=r,i.charCodeAt(r)===124?(E=Ue,r++):(E=e,I===0&&C($t)),E!==e?(x=To(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);a=[a,p],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function To(){var t,u,o;return t=hr(),t===e&&(i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Os)),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,I===0&&C(fs)),u!==e?(o=hr(),o===e&&(i.charCodeAt(r)===97?(o=ct,r++):(o=e,I===0&&C(Os))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function oh(){var t,u;return t=r,u=cE(),u!==e&&(O=t,u=al(u)),t=u,t===e&&(t=uE()),t}function uE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=Gi,r++):(o=e,I===0&&C(Fs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ml(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,I===0&&C(li)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();O=t,t=xo(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function ah(){var t,u;return t=r,u=pE(),u!==e&&(O=t,u=fi(u)),t=u,t===e&&(t=fE()),t}function fE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=Gi,r++):(o=e,I===0&&C(Fs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Cl(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,I===0&&C(li)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();O=t,t=da(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function cE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Ys(),h!==e)for(;h!==e;)p.push(h),h=Ys();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();O=t,t=ll(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function pE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=_s(),h!==e)for(;h!==e;)p.push(h),h=_s();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();O=t,t=Af(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Ys(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=Ro(),o===e&&(o=oh()),o!==e?(O=t,t=Nf(o)):(r=t,t=e),t}function _s(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=Ro(),o===e&&(o=ah()),o!==e?(O=t,t=bf(o)):(r=t,t=e),t}function Ro(){var t;return t=or(),t===e&&(t=hE()),t}function ji(){var t;return t=or(),t===e&&(t=hr()),t}function or(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=RE(),o===e&&(o=yE()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();O=t,t=ul(o)}else r=t,t=e;return t}function hE(){var t;return t=hr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ol(),t===e&&(t=NE(),t===e&&(t=jt()))))),t}function se(){var t,u,o,a,p,h,E,x;if(t=r,u=bl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,I===0&&C(Pi)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=bl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,I===0&&C(Pi)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=bl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}O=t,t=Tf(u,o)}else r=t,t=e;return t}function bl(){var t,u,o,a,p,h,E,x;if(t=r,u=Tl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,I===0&&C(vt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Tl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,I===0&&C(vt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Tl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}O=t,t=Tp(u,o)}else r=t,t=e;return t}function Tl(){var t,u,o,a,p,h,E,x,T,S;if(t=r,u=Fr(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,I===0&&C(Pt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Ot?(h=Ot,r+=2):(h=e,I===0&&C(Ti)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===60?(h=Fe,r++):(h=e,I===0&&C(cs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,I===0&&C(zn)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Pr?(h=Pr,r+=2):(h=e,I===0&&C(zo)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ur?(h=ur,r+=2):(h=e,I===0&&C(Bs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2).toLowerCase()===Er?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(ps)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=zi(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,3).toLowerCase()===ts?(h=i.substr(r,3),r+=3):(h=e,I===0&&C(Vs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===Er?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(ps)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,h,E,x,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,I===0&&C(Pt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Ot?(h=Ot,r+=2):(h=e,I===0&&C(Ti)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===60?(h=Fe,r++):(h=e,I===0&&C(cs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,I===0&&C(zn)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Pr?(h=Pr,r+=2):(h=e,I===0&&C(zo)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ur?(h=ur,r+=2):(h=e,I===0&&C(Bs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Fr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2).toLowerCase()===Er?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(ps)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=zi(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,3).toLowerCase()===ts?(h=i.substr(r,3),r+=3):(h=e,I===0&&C(Vs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===Er?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(ps)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,h,E,x,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}O=t,t=fl(u,o)}else r=t,t=e;return t}function Fr(){var t,u,o,a,p,h,E,x,T,S,F;if(t=r,u=Js(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,I===0&&C(mt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===45?(h=ir,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Ul()),p!==e){for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(kr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=tr,r++):(T=e,I===0&&C(Dr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(kr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=tr,r++):(T=e,I===0&&C(Dr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}p=[p,h],a=p}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,I===0&&C(mt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===45?(h=ir,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Ul()),p!==e){for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(kr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=tr,r++):(T=e,I===0&&C(Dr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(kr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=tr,r++):(T=e,I===0&&C(Dr)),T!==e){for(S=[],F=c();F!==e;)S.push(F),F=c();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}p=[p,h],a=p}else r=a,a=e}}O=t,t=Rf(u,o)}else r=t,t=e;return t}function Js(){var t,u,o,a,p,h,E,x;if(t=r,u=Br(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(kr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=tr,r++):(h=e,I===0&&C(Dr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(kr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=tr,r++):(h=e,I===0&&C(Dr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}}O=t,t=mr(u,o)}else r=t,t=e;return t}function Br(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(O=t,t=yf(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(O=t,t=Rp(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===45?(u=ir,r++):(u=e,I===0&&C(Mr)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(O=t,t=Bn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=yo())}}return t}function yo(){var t,u;return t=Rl(),t===e&&(t=yl(),t===e&&(t=CE(),t===e&&(t=r,u=Sl(),u!==e&&(O=t,u=yp(u)),t=u,t===e&&(t=r,u=Ll(),u!==e&&(O=t,u=ga(u)),t=u,t===e&&(t=r,u=Ol(),u!==e&&(O=t,u=Sp(u)),t=u,t===e&&(t=r,u=or(),u!==e&&(O=t,u=Zr(u)),t=u)))))),t}function Rl(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e?(O=t,t=Lp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function yl(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe;if(t=xE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===is?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Cc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=wp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ht?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(ka)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Up(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,11).toLowerCase()===Wr?(u=i.substr(r,11),r+=11):(u=e,I===0&&C(Tu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=Ea(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===mi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Xa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=s(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===bs?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ha)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=or(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=l(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===rn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Cn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=g(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===tn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=d(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Bo?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ru)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=r,i.charCodeAt(r)===40?(p=Z,r++):(p=e,I===0&&C(le)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e?(p=[p,h,E,x,T],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=jt()),a!==e?(O=t,t=v(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===sn?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(qo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(O=t,t=A()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ya?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ic)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=b(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Zt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Ac)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=y(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Fi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Nc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=w(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===nn?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ya)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=U(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Vo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(_a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(O=t,t=P(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=gE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===Pn?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(In)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=_(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=EE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===on?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(jn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=re(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===oi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=ee(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,14).toLowerCase()===an?(u=i.substr(r,14),r+=14):(u=e,I===0&&C(Ko)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=oe(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Bi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(yu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=fe(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Wo?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(qn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=he(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Do?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Su)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=xe(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ln?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Ws)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=Ie(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===De?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Kn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=Ce(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===K?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Ds)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Re(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(eo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Ze(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Se?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(An)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Ve(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===xr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Lu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=er(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===et?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(wu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Cr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Ke?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Uu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=st(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Ae?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Tc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Lr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===dt?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Ms)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Xt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===vi?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Zs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(O=t,t=Vt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Qt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Rc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(O=t,t=Xr()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Ye?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(yc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(O=t,t=Wt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===xi?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Sc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=lt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ss?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Lc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=jr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Sa?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Hr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===pe?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Uc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Gr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Je?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(kt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Dt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===La?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(tt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(O=t,t=Vn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===wa?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Tt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(i.charCodeAt(r)===44?(X=We,r++):(X=e,I===0&&C(Xe)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();if(de=se(),de!==e){for(be=[],Oe=c();Oe!==e;)be.push(Oe),Oe=c();i.charCodeAt(r)===41?(Oe=M,r++):(Oe=e,I===0&&C(ue)),Oe!==e?(O=t,t=vs(h,S,de)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Mo?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(it)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=Ct(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Zo?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ro)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=Li(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===eu?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Oc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();i.charCodeAt(r)===41?(X=M,r++):(X=e,I===0&&C(ue)),X!==e?(O=t,t=nt(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===$e?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ea)),u===e&&(i.substr(r,5).toLowerCase()===qf?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Gc))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=cl(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ru?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Fc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Yi(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Qo?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=Ps(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Ci?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(O=t,t=ks(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=dE(),t===e&&(t=mE(),t===e&&(t=vE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function dE(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be;if(t=r,i.substr(r,5).toLowerCase()===tu?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ou)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(X=r,i.charCodeAt(r)===44?(ne=We,r++):(ne=e,I===0&&C(Xe)),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();be=se(),be!==e?(ne=[ne,de,be],X=ne):(r=X,X=e)}else r=X,X=e;for(X===e&&(X=null),ne=[],de=c();de!==e;)ne.push(de),de=c();i.charCodeAt(r)===41?(de=M,r++):(de=e,I===0&&C(ue)),de!==e?(O=t,t=Rt(h,S,X)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function gE(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be;if(t=r,i.substr(r,6).toLowerCase()===iu?(u=i.substr(r,6),r+=6):(u=e,I===0&&C($a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(X=r,i.charCodeAt(r)===44?(ne=We,r++):(ne=e,I===0&&C(Xe)),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();be=se(),be!==e?(ne=[ne,de,be],X=ne):(r=X,X=e)}else r=X,X=e;for(X===e&&(X=null),ne=[],de=c();de!==e;)ne.push(de),de=c();i.charCodeAt(r)===41?(de=M,r++):(de=e,I===0&&C(ue)),de!==e?(O=t,t=Wn(h,S,X)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function EE(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe,rr,Ht,Zl;if(t=r,i.substr(r,7).toLowerCase()===kn?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=We,r++):(x=e,I===0&&C(Xe)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();if(i.charCodeAt(r)===44?(X=We,r++):(X=e,I===0&&C(Xe)),X!==e){for(ne=[],de=c();de!==e;)ne.push(de),de=c();if(de=se(),de!==e){for(be=[],Oe=c();Oe!==e;)be.push(Oe),Oe=c();if(Oe=r,i.charCodeAt(r)===44?(rr=We,r++):(rr=e,I===0&&C(Xe)),rr!==e){for(Ht=[],Zl=c();Zl!==e;)Ht.push(Zl),Zl=c();Zl=se(),Zl!==e?(rr=[rr,Ht,Zl],Oe=rr):(r=Oe,Oe=e)}else r=Oe,Oe=e;for(Oe===e&&(Oe=null),rr=[],Ht=c();Ht!==e;)rr.push(Ht),Ht=c();i.charCodeAt(r)===41?(Ht=M,r++):(Ht=e,I===0&&C(ue)),Ht!==e?(O=t,t=pl(h,S,de,Oe)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function mE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===Xn?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(to)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(O=t,t=Nd(a)):(r=t,t=e)}else r=t,t=e;return t}function vE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3).toLowerCase()===ts?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Vs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,6).toLowerCase()===Xn?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(to)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ot(),h!==e?(O=t,t=bd(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function xE(){var t,u,o,a,p,h,E,x,T,S,F,X,ne,de,be,Oe,rr;if(t=r,i.substr(r,5).toLowerCase()===su?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(kr)),x===e&&(x=se()),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=t,t=Td(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ua?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=t,t=Rd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===nu?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Fu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=t,t=yd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ou?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=t,t=Sd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===au?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=t,t=Ld(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===lu?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(io)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(F=[],X=c();X!==e;)F.push(X),X=c();O=t,t=wd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,12).toLowerCase()===Kf?(u=i.substr(r,12),r+=12):(u=e,I===0&&C(Wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=Z,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=r,S=[],F=c();F!==e;)S.push(F),F=c();if(i.charCodeAt(r)===59?(F=cr,r++):(F=e,I===0&&C(Jt)),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();if(i.substr(r,9).toLowerCase()===ec?(ne=i.substr(r,9),r+=9):(ne=e,I===0&&C(ra)),ne!==e){for(de=[],be=c();be!==e;)de.push(be),be=c();if(i.charCodeAt(r)===61?(be=Tr,r++):(be=e,I===0&&C(Pt)),be!==e){for(Oe=[],rr=c();rr!==e;)Oe.push(rr),rr=c();rr=lh(),rr!==e?(S=[S,F,X,ne,de,be,Oe,rr],T=S):(r=T,T=e)}else r=T,T=e}else r=T,T=e}else r=T,T=e;for(T===e&&(T=null),S=[],F=c();F!==e;)S.push(F),F=c();if(i.charCodeAt(r)===41?(F=M,r++):(F=e,I===0&&C(ue)),F!==e){for(X=[],ne=c();ne!==e;)X.push(ne),ne=c();O=t,t=Ud(h,x,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}}}}}return t}function CE(){var t,u,o,a;if(t=r,u=hr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=th(),a===e&&(a=null),O=t,t=Od(u,a)}else r=t,t=e;return t}function Sl(){var t,u,o,a,p;return t=r,u=lh(),u!==e?(o=SE(),o===e&&(o=r,i.substr(r,2)===Po?(a=Po,r+=2):(a=e,I===0&&C(ki)),a!==e?(p=hr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),O=t,t=Gd(u,o)):(r=t,t=e),t}function Ll(){var t;return t=IE(),t===e&&(t=wl(),t===e&&(t=Ul())),t}function IE(){var t;return t=Vl(),t===e&&(t=Bl(),t===e&&(t=$s())),t}function wl(){var t;return t=UE(),t===e&&(t=wE(),t===e&&(t=LE())),t}function Ul(){var t;return t=FE(),t===e&&(t=GE(),t===e&&(t=OE())),t}function Ol(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Vi?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Vu)),u!==e&&(O=t,u=Fd()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===rc?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Dc)),u!==e&&(O=t,u=Bd()),t=u),t}function lh(){var t;return t=WE(),t===e&&(t=DE(),t===e&&(t=BE(),t===e&&(t=VE()))),t}function hr(){var t,u;return t=r,u=Gl(),u!==e&&(O=t,u=Vd(u)),t=u,t===e&&(t=r,u=AE(),u!==e&&(O=t,u=Wd(u)),t=u),t}function AE(){var t,u;return t=r,u=bE(),u!==e&&(O=t,u=Dd(u)),t=u,t===e&&(t=r,u=Fl(),u!==e&&(O=t,u=Md(u)),t=u),t}function NE(){var t,u;return t=r,u=TE(),u!==e&&(O=t,u=Zd(u)),t=u,t===e&&(t=r,u=ZE(),u!==e&&(O=t,u=Qd()),t=u),t}function Gl(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Fe,r++):(u=e,I===0&&C(cs)),u!==e){for(o=[],Xo.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ta));a!==e;)o.push(a),Xo.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ta));i.charCodeAt(r)===62?(a=ni,r++):(a=e,I===0&&C(zn)),a!==e?(O=t,t=Pd(o)):(r=t,t=e)}else r=t,t=e;return t}function Fl(){var t,u,o;return t=r,u=QE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=_t,r++):(o=e,I===0&&C(Rr)),o!==e?(O=t,t=kd(u)):(r=t,t=e),t}function bE(){var t,u,o;return t=r,u=Fl(),u!==e?(o=PE(),o!==e?(O=t,t=Xd(u,o)):(r=t,t=e)):(r=t,t=e),t}function TE(){var t,u,o,a,p,h,E;if(t=r,i.substr(r,2)===un?(u=un,r+=2):(u=e,I===0&&C(fr)),u!==e)if(o=qi(),o===e&&(_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe))),o!==e){for(a=[],p=_r(),p===e&&(p=r,i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C(ze)),h!==e?(E=_r(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e));p!==e;)a.push(p),p=_r(),p===e&&(p=r,i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C(ze)),h!==e?(E=_r(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e));O=t,t=Hd()}else r=t,t=e;else r=t,t=e;return t}function RE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=pt,r++):(u=e,I===0&&C(Gs)),u!==e?(o=ch(),o!==e?(O=t,t=Yd(o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ts,r++):(u=e,I===0&&C(Ri)),u!==e?(o=ch(),o!==e?(O=t,t=_d(o)):(r=t,t=e)):(r=t,t=e),t}function SE(){var t,u,o,a,p,h,E,x;if(t=r,i.charCodeAt(r)===64?(u=Oa,r++):(u=e,I===0&&C(yi)),u!==e){if(o=[],Fa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ia)),a!==e)for(;a!==e;)o.push(a),Fa.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ia));else o=e;if(o!==e){if(a=[],p=r,i.charCodeAt(r)===45?(h=ir,r++):(h=e,I===0&&C(Mr)),h!==e){if(E=[],os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(Xi)),x!==e)for(;x!==e;)E.push(x),os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(Xi));else E=e;E!==e?(h=[h,E],p=h):(r=p,p=e)}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,i.charCodeAt(r)===45?(h=ir,r++):(h=e,I===0&&C(Mr)),h!==e){if(E=[],os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(Xi)),x!==e)for(;x!==e;)E.push(x),os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(Xi));else E=e;E!==e?(h=[h,E],p=h):(r=p,p=e)}else r=p,p=e;O=t,t=Jd(o,a)}else r=t,t=e}else r=t,t=e;return t}function $s(){var t,u,o;if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;return u!==e&&(O=t,u=$d()),t=u,t}function Bl(){var t,u,o,a,p;for(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));if(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C(ze)),o!==e){if(a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe)),p!==e)for(;p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));else a=e;a!==e?(O=t,t=zd()):(r=t,t=e)}else r=t,t=e;return t}function Vl(){var t,u,o,a,p;if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C(ze)),o!==e){for(a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));p=Wl(),p!==e?(O=t,t=jd()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C(ze)),u!==e){if(o=[],_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(a=Wl(),a!==e?(O=t,t=qd()):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,u=[],_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),_e.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;u!==e?(o=Wl(),o!==e?(O=t,t=Kd()):(r=t,t=e)):(r=t,t=e)}}return t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=$s(),o!==e?(O=t,t=eg(o)):(r=t,t=e)):(r=t,t=e),t}function wE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=Bl(),o!==e?(O=t,t=rg(o)):(r=t,t=e)):(r=t,t=e),t}function UE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=Vl(),o!==e?(O=t,t=tg(o)):(r=t,t=e)):(r=t,t=e),t}function OE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ir,r++):(u=e,I===0&&C(Mr)),u!==e?(o=$s(),o!==e?(O=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function GE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ir,r++):(u=e,I===0&&C(Mr)),u!==e?(o=Bl(),o!==e?(O=t,t=sg(o)):(r=t,t=e)):(r=t,t=e),t}function FE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=ir,r++):(u=e,I===0&&C(Mr)),u!==e?(o=Vl(),o!==e?(O=t,t=ng(o)):(r=t,t=e)):(r=t,t=e),t}function Wl(){var t,u,o,a,p;if(t=r,ai.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Wu)),u!==e){if(tc.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Mc)),o===e&&(o=null),a=[],_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe)),p!==e)for(;p!==e;)a.push(p),_e.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function BE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Wi,r++):(u=e,I===0&&C(ui)),u!==e){for(o=[],Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Qs)),a===e&&(a=zt());a!==e;)o.push(a),Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Qs)),a===e&&(a=zt());i.charCodeAt(r)===39?(a=Wi,r++):(a=e,I===0&&C(ui)),a!==e?(O=t,t=og(o)):(r=t,t=e)}else r=t,t=e;return t}function VE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=Rs,r++):(u=e,I===0&&C(hs)),u!==e){for(o=[],Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(so)),a===e&&(a=zt());a!==e;)o.push(a),Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(so)),a===e&&(a=zt());i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs)),a!==e?(O=t,t=ag(o)):(r=t,t=e)}else r=t,t=e;return t}function WE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3)===ys?(u=ys,r+=3):(u=e,I===0&&C(Si)),u!==e){for(o=[],a=r,i.substr(r,2)===Di?(p=Di,r+=2):(p=e,I===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Wi,r++):(p=e,I===0&&C(ui))),p===e&&(p=null),Ho.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(na)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Di?(p=Di,r+=2):(p=e,I===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Wi,r++):(p=e,I===0&&C(ui))),p===e&&(p=null),Ho.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(na)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);i.substr(r,3)===ys?(a=ys,r+=3):(a=e,I===0&&C(Si)),a!==e?(O=t,t=lg(o)):(r=t,t=e)}else r=t,t=e;return t}function DE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3)===ns?(u=ns,r+=3):(u=e,I===0&&C(qa)),u!==e){for(o=[],a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,I===0&&C(Nn)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,I===0&&C(hs))),p===e&&(p=null),Ii.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(no)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,I===0&&C(Nn)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,I===0&&C(hs))),p===e&&(p=null),Ii.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(no)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);i.substr(r,3)===ns?(a=ns,r+=3):(a=e,I===0&&C(qa)),a!==e?(O=t,t=ug(o)):(r=t,t=e)}else r=t,t=e;return t}function zt(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=ko,r++):(u=e,I===0&&C(oa)),u!==e?(Va.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Zc)),o!==e?(O=t,t=fg()):(r=t,t=e)):(r=t,t=e),t}function jt(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=Z,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function c(){var t;return t=ME(),t===e&&(t=Dl(),t===e&&(t=Ml())),t}function Dl(){var t;return Mi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Du)),t}function Ml(){var t;return Yo.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Qc)),t}function So(){var t;return Wa.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pc)),t}function uh(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=fn,r++):(u=e,I===0&&C(ds)),u!==e){for(o=[],a=So();a!==e;)o.push(a),a=So();a=Ml(),a!==e?(O=t,t=cg()):(r=t,t=e)}else r=t,t=e;return t}function ME(){var t,u,o,a,p,h;for(t=r,u=Ml(),u===e&&(u=null),o=[],a=Dl();a!==e;)o.push(a),a=Dl();if(i.charCodeAt(r)===35?(a=fn,r++):(a=e,I===0&&C(ds)),a!==e){for(p=[],h=So();h!==e;)p.push(h),h=So();O=t,t=pg()}else r=t,t=e;return t}function ZE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=Gi,r++):(u=e,I===0&&C(Fs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===93?(a=ti,r++):(a=e,I===0&&C(li)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function fh(){var t;return hn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Mu)),t===e&&(ic.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(kc)),t===e&&(sc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Xc)),t===e&&(nc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Zu)),t===e&&(oc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(bn)),t===e&&(fu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Ka)),t===e&&(cu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(aa)),t===e&&(ac.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Qu)),t===e&&(lc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(el)),t===e&&(uc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pu)),t===e&&(fc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Hc)),t===e&&(pu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(ku)),t===e&&(cc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(xt)))))))))))))),t}function qi(){var t;return t=fh(),t===e&&(i.charCodeAt(r)===95?(t=cn,r++):(t=e,I===0&&C(Tn))),t}function ch(){var t,u,o,a;if(t=r,u=qi(),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe))),u!==e){for(o=[],a=qi(),a===e&&(_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a===e&&(dn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Rn)),a===e&&(as.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Sn))))));a!==e;)o.push(a),a=qi(),a===e&&(_e.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a===e&&(dn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Rn)),a===e&&(as.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Sn))))));O=t,t=hg()}else r=t,t=e;return t}function _r(){var t;return t=qi(),t===e&&(i.charCodeAt(r)===45?(t=ir,r++):(t=e,I===0&&C(Mr)),t===e&&(_e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(dn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Rn)),t===e&&(as.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(yn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Sn))))))),t}function QE(){var t,u,o,a,p,h;if(t=r,u=fh(),u!==e){for(o=[],a=_r(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e?(h=_r(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=_r(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e?(h=_r(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));O=t,t=dg()}else r=t,t=e;return t}function PE(){var t,u,o,a,p,h;if(t=r,u=qi(),u===e&&(i.charCodeAt(r)===58?(u=_t,r++):(u=e,I===0&&C(Rr)),u===e&&(_e.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u===e&&(u=zs()))),u!==e){for(o=[],a=_r(),a===e&&(i.charCodeAt(r)===58?(a=_t,r++):(a=e,I===0&&C(Rr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e?(h=_r(),h===e&&(i.charCodeAt(r)===58?(h=_t,r++):(h=e,I===0&&C(Rr)),h===e&&(h=zs())),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=_r(),a===e&&(i.charCodeAt(r)===58?(a=_t,r++):(a=e,I===0&&C(Rr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C(ze)),p!==e?(h=_r(),h===e&&(i.charCodeAt(r)===58?(h=_t,r++):(h=e,I===0&&C(Rr)),h===e&&(h=zs())),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));O=t,t=gg()}else r=t,t=e;return t}function zs(){var t;return t=kE(),t===e&&(t=XE()),t}function kE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=pn,r++):(u=e,I===0&&C(gs)),u!==e?(o=ph(),o!==e?(a=ph(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ph(){var t;return _e.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(pc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(la)),t===e&&(hc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Xu)))),t}function XE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=ko,r++):(u=e,I===0&&C(oa)),u!==e?(i.charCodeAt(r)===95?(o=cn,r++):(o=e,I===0&&C(Tn)),o===e&&(i.charCodeAt(r)===126?(o=Ga,r++):(o=e,I===0&&C(Hu)),o===e&&(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C(ze)),o===e&&(i.charCodeAt(r)===45?(o=ir,r++):(o=e,I===0&&C(Mr)),o===e&&(i.charCodeAt(r)===33?(o=ri,r++):(o=e,I===0&&C(xn)),o===e&&(i.charCodeAt(r)===36?(o=Ts,r++):(o=e,I===0&&C(Ri)),o===e&&(i.charCodeAt(r)===38?(o=uu,r++):(o=e,I===0&&C(Yu)),o===e&&(i.charCodeAt(r)===39?(o=Wi,r++):(o=e,I===0&&C(ui)),o===e&&(i.charCodeAt(r)===40?(o=Z,r++):(o=e,I===0&&C(le)),o===e&&(i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,I===0&&C(kr)),o===e&&(i.charCodeAt(r)===43?(o=Nr,r++):(o=e,I===0&&C(mt)),o===e&&(i.charCodeAt(r)===44?(o=We,r++):(o=e,I===0&&C(Xe)),o===e&&(i.charCodeAt(r)===59?(o=cr,r++):(o=e,I===0&&C(Jt)),o===e&&(i.charCodeAt(r)===58?(o=_t,r++):(o=e,I===0&&C(Rr)),o===e&&(i.charCodeAt(r)===61?(o=Tr,r++):(o=e,I===0&&C(Pt)),o===e&&(i.charCodeAt(r)===47?(o=tr,r++):(o=e,I===0&&C(Dr)),o===e&&(i.charCodeAt(r)===63?(o=pt,r++):(o=e,I===0&&C(Gs)),o===e&&(i.charCodeAt(r)===35?(o=fn,r++):(o=e,I===0&&C(ds)),o===e&&(i.charCodeAt(r)===64?(o=Oa,r++):(o=e,I===0&&C(yi)),o===e&&(i.charCodeAt(r)===37?(o=pn,r++):(o=e,I===0&&C(gs)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let hh={};function n(t,u){return!!(t.type==="Var"&&t.varType===u.varType&&t.varname===u.varname||t.iriref&&t.iriref===u.iriref||t.type==="PrefixedName"&&t.pn_prefix===u.pn_prefix&&t.pn_local===u.pn_local)}if(Io=L(),Io!==e&&r===i.length)return Io;throw Io!==e&&r<i.length&&C(Eg()),Gp(hl,It<i.length?i.charAt(It):null,It<i.length?Xs(It,It+1):Xs(It,It))}var Go,Ra,Qn,Qm=" ",xd=0;function Id(i,m=2){if(Qm=" ".repeat(m),Go=[],Ra=i.comments,Qn="",i.headers&&He(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?He(`BASE <${e.iriref}>`):He(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),He("")),i.selectQuery)L1(i.selectQuery);else if(i.constructQuery)w1(i.constructQuery);else if(i.askQuery)T1(i.askQuery);else if(i.describeQuery)R1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Go[Go.length-1]+=` ;
79
+ `),y1(i.update[e]);for(i.values&&km(i.values);Ra&&Ra.length;)Go[Go.length-1]+=Ra.shift().text;return Go.join(`
80
+ `)}var As=(i=1)=>{Qn+=Qm.repeat(i)},Ns=(i=1)=>{Qn=Qn.substr(0,Qn.length-Qm.length*i)},He=i=>{Go.push(Qn+i)},Ur=(i,m)=>{for(;Ra&&Ra.length&&Ra[0].pos<m;)Go[Go.length-1]+=Ra.shift().text;He(i)},T1=i=>{He("ASK {");let m=Oi(i.where);Ur("}",m+1),Oh(i)},R1=i=>{let m=i.describe.map(sr).join(" ");if(He(`DESCRIBE ${m}`),Pm(i.from),i.where){He("WHERE {");let e=Oi(i.where);Ur("}",e+1)}Oh(i)},y1=i=>{if(i.type==="insertdata")He("INSERT DATA {"),As(),Fo(i.insert),Ns(),He("}");else if(i.type==="deletedata")He("DELETE DATA {"),As(),Fo(i.delete),Ns(),He("}");else if(i.type==="deletewhere")He("DELETE WHERE {"),As(),Fo(i.delete),Ns(),He("}");else if(i.type==="modify"){i.with&&He(`WITH ${sr(i.with)}`),i.delete&&(He("DELETE {"),As(),Fo(i.delete),Ns(),He("}")),i.insert&&(He("INSERT {"),As(),Fo(i.insert),Ns(),He("}")),i.using&&i.using.forEach(e=>{He(`USING ${S1(e)}`)}),He("WHERE {");let m=Oi(i.where);Ur("}",m+1)}else if(i.type==="add"){let m=zf(i.graphs[0]),e=zf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),He(`ADD${N}${m} TO ${e}`)}else if(i.type==="move"){let m=zf(i.graphs[0]),e=zf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),He(`MOVE${N}${m} TO ${e}`)}else if(i.type==="copy"){let m=zf(i.graphs[0]),e=zf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),He(`COPY${N}${m} TO ${e}`)}else if(i.type==="load"){let m=" ";i.silent&&(m=" SILENT "),He(`LOAD${m}${es(i.sourceGraph)}`)}else if(i.type==="clear"){let m=" ";i.silent&&(m=" SILENT "),He(`CLEAR${m}${HI(i.destinyGraph)}`)}else if(i.type==="drop"){let m=" ";i.silent&&(m=" SILENT "),He(`DROP${m}${HI(i.destinyGraph)}`)}else if(i.type==="create"){let m=" ";i.silent&&(m=" SILENT "),He(`CREATE${m}GRAPH ${es(i.destinyGraph)}`)}},S1=i=>i.named?`NAMED ${es(i.iri)}`:es(i.iri),zf=i=>i==="default"?"DEFAULT":es(i),HI=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${es(i)}`,Oi=(i,m=0)=>(As(),i.type==="SubSelect"?(Zm(i),m=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{YI(e),m=e.location.end.offset}):i.forEach(e=>{YI(e),m=e.location.end.offset}),Ns(),m),L1=i=>{let m=i.selectClause.location.start.offset;Ur(_I(i.selectClause),m);let e=i.selectClause.location.end.offset,N=Pm(i.selectClause.from);N>e&&(e=N),Ur("WHERE {",e+1),e=Oi(i.whereClause,e),Ur("}",e+1),Oh(i)},Zm=i=>{let m=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;Ur(_I(i.selectClause),m),Ur("WHERE {",e+1),e=Oi(i.whereClause,e),Ur("}",e+1),i.values&&km(i.values),Oh(i)},Pm=i=>{if(i){let m;return i.forEach(e=>{e.graph?m=U1(e.graph):e.namedGraph&&(m=O1(e.namedGraph))}),m}},Oh=i=>{i.group&&He(G1(i.group)),i.having&&He(`HAVING ${Sr(i.having[0])}`),i.orderBy&&He("ORDER BY "+F1(i.orderBy)),i.limitOffset?.forEach(m=>{m.limit?He(`LIMIT ${m.limit}`):m.offset&&He(`OFFSET ${m.offset}`)})},w1=i=>{i.template?(Ur("CONSTRUCT {",i.location.start.offset),As(),Fo(i.template.triplePattern),Ns(),He("}")):He("CONSTRUCT"),Pm(i.from),He("WHERE {");let m=Oi(i.where);Ur("}",m+1),Oh(i)},U1=i=>{let m=es(i);if(m!=null){let e=i.location.start.offset,N=i.location.end.offset;return Ur("FROM "+m,e),N}},O1=i=>{let m=es(i);if(m!=null){let e=i.location.start.offset,N=i.location.end.offset;return Ur("FROM NAMED "+m,e),N}},YI=i=>{if(xd=i.location.start.offset,i.type==="SubSelect"){He("{"),As(),Zm(i),Ns(),He("}");return}if(i.graphPattern&&i.graph){Ur(`GRAPH ${sr(i.graph)} {`,xd);let m=Oi(i);Ur("}",m+1);return}if(i.graphPattern){He("{");let m=Oi(i);Ur("}",m+1);return}if(i.data){km(i);return}if(i.triplePattern){Fo(i.triplePattern);return}if(i.union){for(let m=0;m<i.union.length;m++)m>0&&He("UNION"),He("{"),Oi(i.union[m]),Ur("}",i.union[m].location.end.offset+2);return}if(i.optional){Ur("OPTIONAL {",xd);let m=Oi(i.optional);Ur("}",m+1);return}if(i.minus){Ur("MINUS {",xd);let m=Oi(i.minus);Ur("}",m+1);return}if(i.filter){V1(i);return}if(i.bind){He(`BIND (${Sr(i.bind)} AS ${Kl(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let m=" ";i.silent&&(m=" SILENT "),He(`SERVICE${m}${sr(i.service)} {`),i.pattern.type==="SubSelect"?(As(),Zm(i.pattern),Ns()):Oi(i.pattern),He("}");return}if(i.functionRef){let m=i.args.map(Sr).join(", ");He(es(i.functionRef)+`(${m})`)}},G1=i=>{let m=["GROUP BY"],e=0;return i.forEach(N=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=sr(N)}),m.join(`
81
+ `)},F1=i=>{let m=[];return i.forEach(e=>{let N;e.type==="Var"?N=Kl(e):N=Sr(e),e.asc?m.push(`ASC${N}`):e.desc?m.push(`DESC${N}`):m.push(N)}),m.join(" ")},_I=i=>{let m=[];m[0]="SELECT",i.distinct&&(m[0]+=" DISTINCT"),i.reduced&&(m[0]+=" REDUCED");let e=0;return i.var.forEach(N=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=B1(N)}),m.join(`
82
+ `)},B1=i=>{if(i.varname)return Kl(i);if(i.as)return`(${Sr(i.expression)} AS ${Kl(i.as)})`;if(i==="*")return"*"},V1=i=>{if(i.filter.notexists){He("FILTER NOT EXISTS {");let m=Oi(i.filter.notexists);Ur("}",m+1)}else if(i.filter.exists){He("FILTER EXISTS {");let m=Oi(i.filter.exists);Ur("}",m+1)}else Ur(`FILTER ${Sr(i.filter)}`,i.location.start.offset)},Fo=i=>{i.forEach(m=>{m.graph?(Ur(`GRAPH ${sr(m.graph)} {`,m.graph.location.start.offset),As(),Fo(m.triplePattern),Ns(),He("}")):m.triplePattern?Fo(m.triplePattern):m.properties?W1(m):Ur(`[${Z1(m.subject.blankNodeProperties)}] .`,m.subject.location.start.offset)})},W1=i=>{let m=sr(i.subject),e,N;i.properties.forEach(R=>{e?(Ur(`${e} ;`,N),e=" ".repeat(m.length)+` ${sr(R.predicate)} ${sr(R.objects)}`,R.predicate.location?N=R.predicate.location.start.offset:N=R.predicate.value.location.start.offset):(e=`${m} ${sr(R.predicate)} ${sr(R.objects)}`,N=i.subject.location.start.offset)}),Ur(`${e} .`,N)},Cd=i=>{let m="";return i.forEach(e=>{m&&(m+=" "),e.graph?(m+=`GRAPH ${sr(e.graph)} { `,m+=Cd(e.triplePattern),m+=" }"):e.triplePattern?m+=Cd(e.triplePattern):(m+=D1(e),(i.length>1||e.properties.length>1)&&(m+=" ."))}),m},D1=i=>{let m=sr(i.subject),e;return i.properties.forEach(N=>{e?e+=` ; ${sr(N.predicate)} ${sr(N.objects)}`:e=`${m} ${sr(N.predicate)} ${sr(N.objects)}`}),e},M1=(i,m)=>{if(i.length===1&&!m){let R=i[0];return` ${sr(R.predicate)} ${sr(R.objects)}`}As();let e="",N=Qn+" ".repeat(2);return i.forEach(R=>{e?(e+=` ;
83
+ `,e+=`${N} ${sr(R.predicate)} ${sr(R.objects,!0)}`):(e+=`
84
+ ${N}`,e+=` ${sr(R.predicate)} ${sr(R.objects,!0)}`)}),e+=`
85
+ ${Qn}`,Ns(),e},Z1=i=>{if(i.length===1){let N=i[0];return` ${sr(N.predicate)} ${sr(N.objects)} `}let m="",e=Qn+" ".repeat(2);return i.forEach(N=>{m?(m+=` ;
86
+ `,m+=`${e}${sr(N.predicate)} ${sr(N.objects,!0)}`):(m+=`
87
+ ${e}`,m+=`${sr(N.predicate)} ${sr(N.objects,!0)}`)}),m+=`
88
+ ${Qn}`,m},Q1=i=>{let m=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=Sr(i.expression),`COUNT(${m}${e})`}else{if(i.aggregateType==="sum")return`sum(${m}${Sr(i.expression)})`;if(i.aggregateType==="min")return`MIN(${m}${Sr(i.expression)})`;if(i.aggregateType==="max")return`MAX(${m}${Sr(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${m}${Sr(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${m}${Sr(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${JI(i.separator)}`),`GROUP_CONCAT(${m}${Sr(i.expression)}${e})`}}},Sr=i=>{if(i.functionRef)return es(i.functionRef)+"("+i.args.map(Sr).join(", ")+")";if(i.exists)return`EXISTS { ${Cd(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${Cd(i.notexists)} }`;switch(i.expressionType){case"atomic":return Zn(sr(i.value),i.bracketted);case"irireforfunction":let m=es(i.iriref);return i.args&&(m+="("+i.args.map(Sr).join(", ")+")"),Zn(m,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(sr).join(", ")),Zn(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let N=i.unaryexpression+Sr(i.expression);return Zn(N,i.bracketted);case"aggregate":return Q1(i);case"multiplicativeexpression":let R=Sr(i.first);return i.rest.forEach(H=>{R+=" "+H.operator+" "+Sr(H.expression)}),Zn(R,i.bracketted);case"additiveexpression":let L=Sr(i.op1);return i.ops.forEach(H=>{L+=" "+H.operator+" "+Sr(H.expression)}),Zn(L,i.bracketted);case"relationalexpression":let G=Sr(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?G+="("+i.op2.map(sr).join(", ")+")":G+=Sr(i.op2),Zn(G,i.bracketted);case"aliasedexpression":let W=Sr(i.expression);return i.as&&(W+=` AS ${Kl(i.as)}`),Zn(W,i.bracketted);case"conditionaland":return Zn(i.operands.map(Sr).join(" && "),i.bracketted);case"conditionalor":return Zn(i.operands.map(Sr).join(" || "),i.bracketted);case"regex":let D=Sr(i.text);return D+=", "+Sr(i.pattern),i.flags&&(D+=", "+Sr(i.flags)),`regex(${D})`}},Zn=(i,m)=>m?`(${i})`:i,km=i=>{if(i.oneVar){let m=sr(i.oneVar),e=i.data.map(sr).join(" ");He(`VALUES ${m} { ${e} }`)}else if(i.variables){let m=i.variables.map(Kl).join(" ");if(i.variables.length===1){let e=i.data.map(N=>"("+N.map(sr).join(" ")+")").join(" ");He(`VALUES (${m}) { ${e} }`)}else He(`VALUES (${m}) {`),As(),i.data.map(e=>{He("("+e.map(sr).join(" ")+")")}),Ns(),He("}")}},sr=(i,m=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(N=>sr(N,m)).join(", ");if(i.varname)return Kl(i);if(i.collection)return`( ${i.collection.map(R=>sr(R)).join(" ")} )`;if(i.hasOwnProperty("literal"))return JI(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return Sr(i);if(i.blankNodeProperties)return`[${M1(i.blankNodeProperties,m)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=es(i)),i.alternative?e+=i.alternative.map(N=>sr(N)).join("|"):i.sequence&&(e+=i.sequence.map(N=>sr(N)).join("/")),i.bracketted&&(e=`(${e})`),i.modifier&&(e+=i.modifier),e},JI=i=>{if(i.dataType==="http://www.w3.org/2001/XMLSchema#decimal")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#double")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#integer")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#boolean")return i.literal;let m=i.quote+i.literal+i.quote;return i.dataType?m+=`^^${es(i.dataType)}`:i.lang&&(m+="@"+i.lang),m},es=i=>{if(i.iriref)return`<${i.iriref}>`;if(i.pn_prefix&&i.pn_local)return`${i.pn_prefix}:${i.pn_local}`;if(i.pn_prefix)return`${i.pn_prefix}:`;if(i.pn_local)return`:${i.pn_local}`;if(i.a)return"a"},Kl=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var en="",Hm;function $I(i,m=4){Hm=" ".repeat(m);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
89
89
 
90
90
  `,e+=`[]
91
- `+Ym(i)+` .
92
- `,e}function Ym(i){let m=[];return q1(),Object.keys(i).forEach(e=>{if(e==="type")m.push(en+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")m.push(j1(e,i[e]));else{let N=i[e];typeof N=="string"&&(N=JSON.stringify(N)),m.push(en+`:${e} ${N}`)}}}),K1(),m.join(` ;
93
- `)}function j1(i,m){if(Array.isArray(m)){let e=m.map(N=>Ym(N)+`
91
+ `+Xm(i)+` .
92
+ `,e}function Xm(i){let m=[];return k1(),Object.keys(i).forEach(e=>{if(e==="type")m.push(en+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")m.push(P1(e,i[e]));else{let N=i[e];typeof N=="string"&&(N=JSON.stringify(N)),m.push(en+`:${e} ${N}`)}}}),X1(),m.join(` ;
93
+ `)}function P1(i,m){if(Array.isArray(m)){let e=m.map(N=>Xm(N)+`
94
94
  `);return en+`:${i} [
95
95
  `+e.join(en+`], [
96
96
  `)+en+"]"}else return en+`:${i} [
97
- `+Ym(m)+`
98
- `+en+"]"}var q1=(i=1)=>{en+=Jm.repeat(i)},K1=(i=1)=>{en=en.substr(0,en.length-Jm.length*i)};var eL=(i,m="default",e=2)=>{switch(m){case"default":return Nd(Fh(i),e);case"compact":return Nd(km(i),e);case"turtle":return iA(Fh(i),e);case"jsonld":return JSON.stringify(Fh(i),rL,e);default:throw new Error(`Unsupported formatting mode: ${m}`)}};function rL(i,m){if(i!=="location")return m}var $m={parseSparql:Fh,parseSparqlAsCompact:km,formatAst:Nd,format:eL};typeof window<"u"&&(window.spfmt=$m);var tL=3e3,iL=4e3,sL=500,nL=300,Vr=class Vr extends Ta{constructor(e,N={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",e.appendChild(this.rootEl),this.config=Nm({},Vr.defaults,N,(O,D)=>{if(Array.isArray(D))return D});let R=Ta(this.rootEl,this.config);for(let O of Object.getOwnPropertyNames(Vr.prototype))R[O]=Vr.prototype[O].bind(this);Object.assign(this,Ta.prototype,R),this.storage=new _l(Vr.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let L=this.getStorageId();if(L){let O=this.storage.get(L);O&&typeof O=="string"?this.persistentConfig={query:O,editorHeight:this.config.editorHeight}:this.persistentConfig=O,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}else this.persistentConfig?typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0):this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,autoformatOnQuery:!0};this.config.autocompleters.forEach(O=>this.enableCompleter(O).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.checkConstructVariables(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let e=this.getDoc().getCursor(),N=this.getTokenAt(e);N&&N.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(e,N,R){this.req=N,this.abortController=R,this.updateQueryButton()}handleQueryResponse(e,N,R){this.lastQueryDuration=R,this.req=void 0,this.updateQueryButton()}handleQueryAbort(e,N){this.req=void 0,this.updateQueryButton()}registerEventListeners(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}unregisterEventListeners(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}emit(e,...N){Ta.signal(this,e,this,...N)}getStorageId(e){let N=e||this.config.persistenceId;if(N)return typeof N=="string"?N:N(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let O=this.config.pluginButtons();if(!O)return;if(Array.isArray(O))for(let D of O)e.append(D);else e.appendChild(O)}if(this.config.createShareableLink){var N=Cs($C);let O=document.createElement("button");O.className="yasqe_share",O.title="Share query",O.setAttribute("aria-label","Share query"),O.appendChild(N),e.appendChild(O),O.addEventListener("click",Z=>D(Z)),O.addEventListener("keydown",Z=>{Z.code==="Enter"&&D(Z)});let D=Z=>{Z.stopPropagation();let H=document.createElement("div");H.className="yasqe_sharePopup",e.appendChild(H);let Q,W,$=(fe,ye=tL,Re="info")=>{if(Q&&Q.remove(),W!==void 0&&clearTimeout(W),Q=document.createElement("div"),Q.className=Re==="warning"?"yasqe_toast yasqe_toast-warning":"yasqe_toast",Re==="warning"){let Ve=document.createElement("span");Ve.className="yasqe_toast-icon";let Je=Cs(Oh);Ve.appendChild(Je),Q.appendChild(Ve)}let Le=document.createElement("span");Le.className="yasqe_toast-message",Le.textContent=fe,Q.appendChild(Le),document.body.appendChild(Q),W=window.setTimeout(()=>{Q&&(Q.classList.add("yasqe_toast-fadeout"),setTimeout(()=>{Q?.remove(),Q=void 0},nL))},ye)},M=fe=>{H&&fe.target!==H&&!H.contains(fe.target)&&(H.remove(),H=void 0,Q&&(Q.remove(),Q=void 0),W!==void 0&&clearTimeout(W),document.body.removeEventListener("click",M,!0))};document.body.addEventListener("click",M,!0),H.innerHTML="";let z=async(fe,ye,Re=!1)=>{try{if(!navigator.clipboard||!navigator.clipboard.writeText){let Le=document.createElement("textarea");Le.value=fe,Le.style.position="fixed",Le.style.left="-999999px",document.body.appendChild(Le),Le.select();try{document.execCommand("copy"),document.body.removeChild(Le),$(`${ye} copied to clipboard!`)}catch{throw document.body.removeChild(Le),new Error("Copy command not supported")}}else await navigator.clipboard.writeText(fe),$(`${ye} copied to clipboard!`);Re&&setTimeout(()=>{$("Warning: Authentication credentials included in copied content",iL,"warning")},sL)}catch(Le){console.error("Failed to copy to clipboard:",Le),$("Failed to copy to clipboard. Please copy manually.",2e3)}},Y=document.createElement("div");Y.className="yasqe_sharePopup_title",Y.textContent="Share Query",H.appendChild(Y);let B=document.createElement("div");B.className="yasqe_sharePopup_buttons",H.appendChild(B);let V=document.createElement("button");V.innerText="Copy URL",V.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(V),V.onclick=async()=>{let fe=this.config.createShareableLink(this);await z(fe,"URL")};let X=this.config.createShortLink;if(X){let fe=document.createElement("button");fe.innerText="Shorten URL",fe.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(fe),fe.onclick=async()=>{fe.disabled=!0,fe.innerText="Shortening...";try{let ye=this.config.createShareableLink(this),Re=await X(this,ye);await z(Re,"Shortened URL"),fe.innerText="Shorten URL",fe.disabled=!1}catch(ye){fe.innerText="Shorten URL",fe.disabled=!1;let Re="Failed to shorten URL";typeof ye=="string"&&ye.length!==0?Re=ye:ye.message&&ye.message.length!==0&&(Re=ye.message),$(Re,3e3)}}}let q=document.createElement("button");q.innerText="Copy cURL",q.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(q),q.onclick=async()=>{let fe=this.getAsCurlString(),ye=this.hasAuthenticationCredentials();await z(fe,"cURL command",ye)};let te=document.createElement("button");te.innerText="Copy PowerShell",te.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(te),te.onclick=async()=>{let fe=this.getAsPowerShellString(),ye=this.hasAuthenticationCredentials();await z(fe,"PowerShell command",ye)};let ie=document.createElement("button");ie.innerText="Copy wget",ie.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(ie),ie.onclick=async()=>{let fe=this.getAsWgetString(),ye=this.hasAuthenticationCredentials();await z(fe,"wget command",ye)};let ae=()=>{if(!H)return;let fe=N.getBoundingClientRect();H.style.top=N.offsetTop+fe.height+"px",H.style.left=N.offsetLeft+N.clientWidth-H.clientWidth+"px"};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(ae):setTimeout(ae,0)}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Ar(this.queryBtn,"yasqe_queryButton");let O=Cs(JC);Ar(O,"queryIcon"),this.queryBtn.appendChild(O);let D=Cs(Oh);Ar(D,"warningIcon"),this.queryBtn.appendChild(D),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.showFormatButton){let O=document.createElement("button");Ar(O,"yasqe_formatButton");let D=Cs(qC);Ar(D,"formatIcon"),O.appendChild(D),O.onclick=()=>{this.format()},O.title="Format query (Shift+Ctrl+F)",O.setAttribute("aria-label","Format query"),e.appendChild(O)}this.fullscreenBtn=document.createElement("button"),Ar(this.fullscreenBtn,"yasqe_fullscreenButton");let R=Cs(zC);Ar(R,"fullscreenIcon"),this.fullscreenBtn.appendChild(R);let L=Cs(jC);Ar(L,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(L),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Ar(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(Nh(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let N=this.getDoc(),R=N.getCursor();N.replaceRange(e,R);let L=e.split(`
99
- `),O=L[L.length-1];N.setCursor({line:R.line+L.length-1,ch:L.length===1?R.ch+O.length:O.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),Ar(this.snippetsBar,"yasqe_snippetsBar");let M=this.getWrapperElement();M.parentElement?.insertBefore(this.snippetsBar,M)}this.snippetsBar.innerHTML="";let N=this.config.snippets,R=document.createElement("div");Ar(R,"yasqe_snippetsVisible");let L=[],O={},D=[];N.forEach(M=>{M.group?(O[M.group]||(O[M.group]=[]),O[M.group].push(M)):D.push(M)}),Object.keys(O).forEach(M=>{let z=document.createElement("div");Ar(z,"yasqe_snippetDropdown");let Y=document.createElement("button");Ar(Y,"yasqe_snippetDropdownButton"),Y.textContent=M+" ";let B=Cs(Fm);Ar(B,"chevronIcon"),Y.appendChild(B),Y.setAttribute("aria-label",`${M} snippets`),Y.setAttribute("aria-expanded","false");let V=document.createElement("div");Ar(V,"yasqe_snippetDropdownContent"),V.setAttribute("role","menu"),O[M].forEach(X=>{let q=document.createElement("button");Ar(q,"yasqe_snippetDropdownItem"),q.textContent=X.label,q.title=X.code,q.setAttribute("role","menuitem"),q.onclick=()=>{this.insertSnippet(X.code),V.style.display="none",Y.setAttribute("aria-expanded","false")},V.appendChild(q)}),Y.onclick=X=>{X.stopPropagation();let q=V.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(ae=>{ae.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(ae=>ae.setAttribute("aria-expanded","false")),q||(V.style.display="block",Y.setAttribute("aria-expanded","true"))},z.appendChild(Y),z.appendChild(V),L.push(z)}),D.forEach(M=>{let z=document.createElement("button");Ar(z,"yasqe_snippetButton"),z.textContent=M.label,z.title=M.code,z.setAttribute("aria-label",`Insert ${M.label} snippet`),z.onclick=()=>this.insertSnippet(M.code),L.push(z)}),L.forEach(M=>R.appendChild(M)),this.snippetsBar.appendChild(R);let Z=document.createElement("div");Ar(Z,"yasqe_snippetDropdown","yasqe_showMore"),Z.style.display="none";let H=document.createElement("button");Ar(H,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),H.textContent="More ";let Q=Cs(Fm);Ar(Q,"chevronIcon"),H.appendChild(Q),H.setAttribute("aria-label","Show more snippets"),H.setAttribute("aria-expanded","false");let W=document.createElement("div");Ar(W,"yasqe_snippetDropdownContent","yasqe_showMoreContent"),W.setAttribute("role","menu"),H.onclick=M=>{M.stopPropagation();let z=W.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(V=>{V!==W&&(V.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(V=>{V!==H&&V.setAttribute("aria-expanded","false")}),z?(W.style.display="none",H.setAttribute("aria-expanded","false")):(W.style.display="block",H.setAttribute("aria-expanded","true"))},Z.appendChild(H),Z.appendChild(W),this.snippetsBar.appendChild(Z);let $=()=>{if(!this.snippetsBar)return;let Y=this.snippetsBar.offsetWidth-80-20,B=0,V=[];L.forEach((X,q)=>{let te=X.offsetWidth+5;if(B+te>Y&&q>0)if(X.style.display="none",X.classList.contains("yasqe_snippetDropdown")){let ae=X.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";V.push({element:X,groupName:ae})}else{let ie=D.find(ae=>ae.label===X.textContent);V.push({element:X,snippet:ie})}else B+=te}),V.length>0&&(Z.style.display="inline-block",V.forEach(({element:X,snippet:q,groupName:te})=>{if(te){let ie=document.createElement("div");Ar(ie,"yasqe_snippetGroupHeader"),ie.textContent=te,W.appendChild(ie),X.querySelectorAll(".yasqe_snippetDropdownItem").forEach(fe=>{let ye=fe.cloneNode(!0);ye.onclick=fe.onclick,W.appendChild(ye)})}else if(q){let ie=document.createElement("button");Ar(ie,"yasqe_snippetDropdownItem"),ie.textContent=q.label,ie.title=q.code,ie.setAttribute("role","menuitem"),ie.onclick=()=>{this.insertSnippet(q.code),W.style.display="none",H.setAttribute("aria-expanded","false")},W.appendChild(ie)}}))};requestAnimationFrame($),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(L.forEach(M=>M.style.display=""),Z.style.display="none",W.innerHTML="",requestAnimationFrame($))},window.addEventListener("resize",this.snippetsResizeHandler),this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=M=>{this.snippetsBar&&!this.snippetsBar.contains(M.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(B=>{B.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(B=>B.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.horizontalResizeWrapper)return;this.horizontalResizeWrapper=document.createElement("div"),Ar(this.horizontalResizeWrapper,"horizontalResizeWrapper");let e=document.createElement("div");Ar(e,"horizontalResizeChip"),this.horizontalResizeWrapper.appendChild(e),this.horizontalResizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.horizontalResizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,N){let R=0;N.offsetParent&&(R=N.offsetParent.offsetTop);let L=0,O=N.parentElement;for(;O;)L+=O.scrollTop,O=O.parentElement;return e.clientY-R-this.rootEl.offsetTop+L}doDrag(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let N=this.getDoc().getLine(e.line);this.getDoc().replaceRange(N+`
100
- `+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){this.queryBtn&&(this.config.queryingDisabled?(Ar(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Nh(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&(Nh(this.queryBtn,"query_"+this.queryStatus),Ar(this.queryBtn,"query_"+e),this.queryStatus=e),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),Vr.clearStorage()}saveQuery(){let e=this.getStorageId();!e||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}getVariablesFromQuery(){let e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),N=[];for(var R in e.state.variables)N.push(R);return N.sort()}autoformatSelection(e,N){var R=this.getValue();return R=R.substring(e,N),Vr.autoformatString(R)}static autoformatString(e){var N=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],R=["}"],L=function(H){if(H==="{"||H===".")return 1;if(H===";")return Z.length>2&&Z[Z.length-2]==="punc"?0:1;for(var Q=0;Q<N.length;Q++)if(Z.valueOf().toString()===N[Q].valueOf().toString())return 1;for(var Q=0;Q<R.length;Q++)if(D.trim()!==""&&H==R[Q])return-1;return 0},O="",D="",Z=[];return Vr.runMode(e,"sparql11",function(H,Q){Z.push(Q);var W=L(H);W!=0?(W==1?(O+=H+`
101
- `,D=""):(O+=`
102
- `+H,D=H),Z=[]):(D+=H,O+=H),Z.length==1&&Z[0]=="sp-ws"&&(Z=[])}),O.replace(/\n\s*\n/g,`
103
- `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,R=Math.min(e,N),L=Math.max(e,N),O=!0,D=R;D<=L;D++){var Z=this.getDoc().getLine(D),H=Z.trimStart();if(Z.length>0&&(H.length===0||H.substring(0,1)!=="#")){O=!1;break}}for(var D=R;D<=L;D++){var Z=this.getDoc().getLine(D),H=Z.trimStart(),Q=Z.length-H.length;if(O&&H.length>0){var W=Z.indexOf("#");if(W>=0){var $=1;W+1<Z.length&&Z.charAt(W+1)===" "&&($=2),this.getDoc().replaceRange("",{line:D,ch:W},{line:D,ch:W+$})}}else!O&&Z.length>0&&this.getDoc().replaceRange("# ",{line:D,ch:Q})}}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start");var N={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},R=this.getDoc().indexFromPos(e),L=this.getDoc().indexFromPos(N);let O=this.autoformatSelection(R,L);this.operation(()=>{this.getDoc().replaceRange(O,e,N);for(var D=this.getDoc().posFromIndex(R).line,Z=this.getDoc().posFromIndex(R+O.length).line,H=D;H<=Z;H++)this.indentLine(H,"smart")})}formatQuery(){try{let e=this.getValue(),N=$m.format(e);this.setValue(N),this.collapsePrefixes(!0)}catch(e){console.warn("Failed to format SPARQL query using sparql-formatter. This may be due to syntax errors in the query. Falling back to legacy formatter.",e),this.autoformat()}}format(){(this.persistentConfig?.formatterType||"sparql-formatter")==="legacy"?this.autoformat():this.formatQuery()}getQueryWithValues(e){if(!e)return this.getValue();var N;if(typeof e=="string")N=e;else{e instanceof Array||(e=[e]);var R=e.reduce(function(Q,W){for(var $ in W)Q[$]=$;return Q},{}),L=[];for(var O in R)L.push(O);if(!L.length)return this.getValue();N="VALUES ("+L.join(" ")+`) {
104
- `,e.forEach(function(Q){N+="( ",L.forEach(function(W){N+=Q[W]||"UNDEF"}),N+=` )
97
+ `+Xm(m)+`
98
+ `+en+"]"}var k1=(i=1)=>{en+=Hm.repeat(i)},X1=(i=1)=>{en=en.substr(0,en.length-Hm.length*i)};var H1=(i,m="default",e=2)=>{switch(m){case"default":return Id(Uh(i),e);case"compact":return Id(Mm(i),e);case"turtle":return $I(Uh(i),e);case"jsonld":return JSON.stringify(Uh(i),Y1,e);default:throw new Error(`Unsupported formatting mode: ${m}`)}};function Y1(i,m){if(i!=="location")return m}var Ym={parseSparql:Uh,parseSparqlAsCompact:Mm,formatAst:Id,format:H1};typeof window<"u"&&(window.spfmt=Ym);var _1=3e3,J1=4e3,$1=500,z1=300,Vr=class Vr extends Ta{constructor(e,N={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",e.appendChild(this.rootEl),this.config=Im({},Vr.defaults,N,(G,W)=>{if(Array.isArray(W))return W});let R=Ta(this.rootEl,this.config);for(let G of Object.getOwnPropertyNames(Vr.prototype))R[G]=Vr.prototype[G].bind(this);Object.assign(this,Ta.prototype,R),this.storage=new Xl(Vr.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let L=this.getStorageId();if(L){let G=this.storage.get(L);G&&typeof G=="string"?this.persistentConfig={query:G,editorHeight:this.config.editorHeight}:this.persistentConfig=G,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}else this.persistentConfig?typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0):this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,autoformatOnQuery:!0};this.config.autocompleters.forEach(G=>this.enableCompleter(G).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.checkConstructVariables(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let e=this.getDoc().getCursor(),N=this.getTokenAt(e);N&&N.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(e,N,R){this.req=N,this.abortController=R,this.updateQueryButton()}handleQueryResponse(e,N,R){this.lastQueryDuration=R,this.req=void 0,this.updateQueryButton()}handleQueryAbort(e,N){this.req=void 0,this.updateQueryButton()}registerEventListeners(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}unregisterEventListeners(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}emit(e,...N){Ta.signal(this,e,this,...N)}getStorageId(e){let N=e||this.config.persistenceId;if(N)return typeof N=="string"?N:N(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let W=this.config.pluginButtons();if(!W)return;if(Array.isArray(W))for(let D of W)e.append(D);else e.appendChild(W)}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Me(this.queryBtn,"yasqe_queryButton");let W=document.createElement("i");Me(W,"fas"),Me(W,"fa-play"),Me(W,"queryIcon"),Me(W,"queryIcon--play"),W.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(W);let D=document.createElement("i");Me(D,"fas"),Me(D,"fa-exclamation-triangle"),Me(D,"queryIcon"),Me(D,"queryIcon--warning"),D.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(D);let H=document.createElement("i");Me(H,"fas"),Me(H,"fa-spinner"),Me(H,"fa-pulse"),Me(H,"queryIcon"),Me(H,"queryIcon--loading"),H.setAttribute("aria-hidden","true"),this.queryBtn.appendChild(H);let k=document.createElement("span");k.className="yasqe_queryButton_text",k.textContent="Run",this.queryBtn.appendChild(k),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.createShareableLink){let W=document.createElement("i");Me(W,"fas"),Me(W,"fa-share-nodes"),W.setAttribute("aria-hidden","true");let D=document.createElement("button");D.className="yasqe_share",D.title="Share query",D.setAttribute("aria-label","Share query"),D.appendChild(W),e.appendChild(D),D.addEventListener("click",k=>H(k)),D.addEventListener("keydown",k=>{k.code==="Enter"&&H(k)});let H=k=>{k.stopPropagation();let Z=document.createElement("div");Z.className="yasqe_sharePopup",e.appendChild(Z);let $,M,z=(ve,Te=_1,Le="info")=>{if($&&$.remove(),M!==void 0&&clearTimeout(M),$=document.createElement("div"),$.className=Le==="warning"?"yasqe_toast yasqe_toast-warning":"yasqe_toast",Le==="warning"){let me=document.createElement("span");me.className="yasqe_toast-icon";let ar=document.createElement("i");Me(ar,"fas"),Me(ar,"fa-exclamation-triangle"),ar.setAttribute("aria-hidden","true"),me.appendChild(ar),$.appendChild(me)}let Qe=document.createElement("span");Qe.className="yasqe_toast-message",Qe.textContent=ve,$.appendChild(Qe),document.body.appendChild($),M=window.setTimeout(()=>{$&&($.classList.add("yasqe_toast-fadeout"),setTimeout(()=>{$?.remove(),$=void 0},z1))},Te)},J=ve=>{Z&&ve.target!==Z&&!Z.contains(ve.target)&&(Z.remove(),Z=void 0,$&&($.remove(),$=void 0),M!==void 0&&clearTimeout(M),document.body.removeEventListener("click",J,!0))};document.body.addEventListener("click",J,!0),Z.innerHTML="";let B=async(ve,Te,Le=!1)=>{try{if(!navigator.clipboard||!navigator.clipboard.writeText){let Qe=document.createElement("textarea");Qe.value=ve,Qe.style.position="fixed",Qe.style.left="-999999px",document.body.appendChild(Qe),Qe.select();try{document.execCommand("copy"),document.body.removeChild(Qe),z(`${Te} copied to clipboard!`)}catch{throw document.body.removeChild(Qe),new Error("Copy command not supported")}}else await navigator.clipboard.writeText(ve),z(`${Te} copied to clipboard!`);Le&&setTimeout(()=>{z("Warning: Authentication credentials included in copied content",J1,"warning")},$1)}catch(Qe){console.error("Failed to copy to clipboard:",Qe),z("Failed to copy to clipboard. Please copy manually.",2e3)}},V=document.createElement("div");V.className="yasqe_sharePopup_title",V.textContent="Share Query",Z.appendChild(V);let Y=document.createElement("div");Y.className="yasqe_sharePopup_buttons",Z.appendChild(Y);let q=document.createElement("button");q.innerText="Copy URL",q.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",Y.appendChild(q),q.onclick=async()=>{let ve=this.config.createShareableLink(this);await B(ve,"URL")};let te=this.config.createShortLink;if(te){let ve=document.createElement("button");ve.innerText="Shorten URL",ve.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",Y.appendChild(ve),ve.onclick=async()=>{ve.disabled=!0,ve.innerText="Shortening...";try{let Te=this.config.createShareableLink(this),Le=await te(this,Te);await B(Le,"Shortened URL"),ve.innerText="Shorten URL",ve.disabled=!1}catch(Te){ve.innerText="Shorten URL",ve.disabled=!1;let Le="Failed to shorten URL";typeof Te=="string"&&Te.length!==0?Le=Te:Te.message&&Te.message.length!==0&&(Le=Te.message),z(Le,3e3)}}}let ie=document.createElement("button");ie.innerText="Copy cURL",ie.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",Y.appendChild(ie),ie.onclick=async()=>{let ve=this.getAsCurlString(),Te=this.hasAuthenticationCredentials();await B(ve,"cURL command",Te)};let ae=document.createElement("button");ae.innerText="Copy PowerShell",ae.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",Y.appendChild(ae),ae.onclick=async()=>{let ve=this.getAsPowerShellString(),Te=this.hasAuthenticationCredentials();await B(ve,"PowerShell command",Te)};let ge=document.createElement("button");ge.innerText="Copy wget",ge.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",Y.appendChild(ge),ge.onclick=async()=>{let ve=this.getAsWgetString(),Te=this.hasAuthenticationCredentials();await B(ve,"wget command",Te)};let ke=()=>{if(!Z)return;let ve=D.getBoundingClientRect();Z.style.top=D.offsetTop+ve.height+"px",Z.style.left=D.offsetLeft+D.clientWidth-Z.clientWidth+"px"};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(ke):setTimeout(ke,0)}}let N=document.createElement("button");Me(N,"yasqe_saveButton");let R=document.createElement("i");if(Me(R,"fas"),Me(R,"fa-save"),R.setAttribute("aria-hidden","true"),N.appendChild(R),N.onclick=()=>{this.emit("saveManagedQuery")},N.title="Save managed query (Ctrl+S)",N.setAttribute("aria-label","Save managed query"),N.style.display="none",this.saveBtn=N,e.appendChild(N),this.config.showFormatButton){let W=document.createElement("button");Me(W,"yasqe_formatButton");let D=document.createElement("i");Me(D,"fas"),Me(D,"fa-align-left"),D.setAttribute("aria-hidden","true"),W.appendChild(D),W.onclick=()=>{this.format()},W.title="Format query (Shift+Ctrl+F)",W.setAttribute("aria-label","Format query"),e.appendChild(W)}this.fullscreenBtn=document.createElement("button"),Me(this.fullscreenBtn,"yasqe_fullscreenButton");let L=document.createElement("i");Me(L,"fas"),Me(L,"fa-expand"),Me(L,"fullscreenIcon"),L.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(L);let G=document.createElement("i");Me(G,"fas"),Me(G,"fa-compress"),Me(G,"fullscreenExitIcon"),G.setAttribute("aria-hidden","true"),this.fullscreenBtn.appendChild(G),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Me(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(Cs(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let N=this.getDoc(),R=N.getCursor();N.replaceRange(e,R);let L=e.split(`
99
+ `),G=L[L.length-1];N.setCursor({line:R.line+L.length-1,ch:L.length===1?R.ch+G.length:G.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),Me(this.snippetsBar,"yasqe_snippetsBar");let M=this.getWrapperElement();M.parentElement?.insertBefore(this.snippetsBar,M)}this.snippetsBar.innerHTML="";let N=this.config.snippets,R=document.createElement("div");Me(R,"yasqe_snippetsVisible");let L=[],G={},W=[];N.forEach(M=>{M.group?(G[M.group]||(G[M.group]=[]),G[M.group].push(M)):W.push(M)}),Object.keys(G).forEach(M=>{let z=document.createElement("div");Me(z,"yasqe_snippetDropdown");let J=document.createElement("button");Me(J,"yasqe_snippetDropdownButton"),J.textContent=M+" ";let B=document.createElement("i");Me(B,"fas"),Me(B,"fa-chevron-down"),Me(B,"chevronIcon"),B.setAttribute("aria-hidden","true"),J.appendChild(B),J.setAttribute("aria-label",`${M} snippets`),J.setAttribute("aria-expanded","false");let V=document.createElement("div");Me(V,"yasqe_snippetDropdownContent"),V.setAttribute("role","menu"),G[M].forEach(Y=>{let q=document.createElement("button");Me(q,"yasqe_snippetDropdownItem"),q.textContent=Y.label,q.title=Y.code,q.setAttribute("role","menuitem"),q.onclick=()=>{this.insertSnippet(Y.code),V.style.display="none",J.setAttribute("aria-expanded","false")},V.appendChild(q)}),J.onclick=Y=>{Y.stopPropagation();let q=V.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(ae=>{ae.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(ae=>ae.setAttribute("aria-expanded","false")),q||(V.style.display="block",J.setAttribute("aria-expanded","true"))},z.appendChild(J),z.appendChild(V),L.push(z)}),W.forEach(M=>{let z=document.createElement("button");Me(z,"yasqe_snippetButton"),z.textContent=M.label,z.title=M.code,z.setAttribute("aria-label",`Insert ${M.label} snippet`),z.onclick=()=>this.insertSnippet(M.code),L.push(z)}),L.forEach(M=>R.appendChild(M)),this.snippetsBar.appendChild(R);let D=document.createElement("div");Me(D,"yasqe_snippetDropdown","yasqe_showMore"),D.style.display="none";let H=document.createElement("button");Me(H,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),H.textContent="More ";let k=document.createElement("i");Me(k,"fas"),Me(k,"fa-chevron-down"),Me(k,"chevronIcon"),k.setAttribute("aria-hidden","true"),H.appendChild(k),H.setAttribute("aria-label","Show more snippets"),H.setAttribute("aria-expanded","false");let Z=document.createElement("div");Me(Z,"yasqe_snippetDropdownContent","yasqe_showMoreContent"),Z.setAttribute("role","menu"),H.onclick=M=>{M.stopPropagation();let z=Z.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(V=>{V!==Z&&(V.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(V=>{V!==H&&V.setAttribute("aria-expanded","false")}),z?(Z.style.display="none",H.setAttribute("aria-expanded","false")):(Z.style.display="block",H.setAttribute("aria-expanded","true"))},D.appendChild(H),D.appendChild(Z),this.snippetsBar.appendChild(D);let $=()=>{if(!this.snippetsBar)return;let J=this.snippetsBar.offsetWidth-80-20,B=0,V=[];L.forEach((Y,q)=>{let te=Y.offsetWidth+5;if(B+te>J&&q>0)if(Y.style.display="none",Y.classList.contains("yasqe_snippetDropdown")){let ae=Y.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";V.push({element:Y,groupName:ae})}else{let ie=W.find(ae=>ae.label===Y.textContent);V.push({element:Y,snippet:ie})}else B+=te}),V.length>0&&(D.style.display="inline-block",V.forEach(({element:Y,snippet:q,groupName:te})=>{if(te){let ie=document.createElement("div");Me(ie,"yasqe_snippetGroupHeader"),ie.textContent=te,Z.appendChild(ie),Y.querySelectorAll(".yasqe_snippetDropdownItem").forEach(ge=>{let ke=ge.cloneNode(!0);ke.onclick=ge.onclick,Z.appendChild(ke)})}else if(q){let ie=document.createElement("button");Me(ie,"yasqe_snippetDropdownItem"),ie.textContent=q.label,ie.title=q.code,ie.setAttribute("role","menuitem"),ie.onclick=()=>{this.insertSnippet(q.code),Z.style.display="none",H.setAttribute("aria-expanded","false")},Z.appendChild(ie)}}))};requestAnimationFrame($),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(L.forEach(M=>M.style.display=""),D.style.display="none",Z.innerHTML="",requestAnimationFrame($))},window.addEventListener("resize",this.snippetsResizeHandler),this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=M=>{this.snippetsBar&&!this.snippetsBar.contains(M.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(B=>{B.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(B=>B.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.horizontalResizeWrapper)return;this.horizontalResizeWrapper=document.createElement("div"),Me(this.horizontalResizeWrapper,"horizontalResizeWrapper");let e=document.createElement("div");Me(e,"horizontalResizeChip"),this.horizontalResizeWrapper.appendChild(e),this.horizontalResizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.horizontalResizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,N){let R=0;N.offsetParent&&(R=N.offsetParent.offsetTop);let L=0,G=N.parentElement;for(;G;)L+=G.scrollTop,G=G.parentElement;return e.clientY-R-this.rootEl.offsetTop+L}doDrag(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let N=this.getDoc().getLine(e.line);this.getDoc().replaceRange(N+`
100
+ `+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){if(!this.queryBtn)return;this.config.queryingDisabled?(Me(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Cs(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query (Ctrl+Enter)",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&(Cs(this.queryBtn,"query_"+this.queryStatus),Me(this.queryBtn,"query_"+e),this.queryStatus=e);let N=!!this.req,R=e==="error";N&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!N&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")),N?(Me(this.queryBtn,"state-loading"),Cs(this.queryBtn,"state-error"),Cs(this.queryBtn,"state-normal")):R?(Cs(this.queryBtn,"state-loading"),Me(this.queryBtn,"state-error"),Cs(this.queryBtn,"state-normal")):(Cs(this.queryBtn,"state-loading"),Cs(this.queryBtn,"state-error"),Me(this.queryBtn,"state-normal"))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),Vr.clearStorage()}saveQuery(){let e=this.getStorageId();!e||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}getVariablesFromQuery(){let e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),N=[];for(var R in e.state.variables)N.push(R);return N.sort()}autoformatSelection(e,N){var R=this.getValue();return R=R.substring(e,N),Vr.autoformatString(R)}static autoformatString(e){var N=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],R=["}"],L=function(H){if(H==="{"||H===".")return 1;if(H===";")return D.length>2&&D[D.length-2]==="punc"?0:1;for(var k=0;k<N.length;k++)if(D.valueOf().toString()===N[k].valueOf().toString())return 1;for(var k=0;k<R.length;k++)if(W.trim()!==""&&H==R[k])return-1;return 0},G="",W="",D=[];return Vr.runMode(e,"sparql11",function(H,k){D.push(k);var Z=L(H);Z!=0?(Z==1?(G+=H+`
101
+ `,W=""):(G+=`
102
+ `+H,W=H),D=[]):(W+=H,G+=H),D.length==1&&D[0]=="sp-ws"&&(D=[])}),G.replace(/\n\s*\n/g,`
103
+ `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,R=Math.min(e,N),L=Math.max(e,N),G=!0,W=R;W<=L;W++){var D=this.getDoc().getLine(W),H=D.trimStart();if(D.length>0&&(H.length===0||H.substring(0,1)!=="#")){G=!1;break}}for(var W=R;W<=L;W++){var D=this.getDoc().getLine(W),H=D.trimStart(),k=D.length-H.length;if(G&&H.length>0){var Z=D.indexOf("#");if(Z>=0){var $=1;Z+1<D.length&&D.charAt(Z+1)===" "&&($=2),this.getDoc().replaceRange("",{line:W,ch:Z},{line:W,ch:Z+$})}}else!G&&D.length>0&&this.getDoc().replaceRange("# ",{line:W,ch:k})}}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start");var N={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},R=this.getDoc().indexFromPos(e),L=this.getDoc().indexFromPos(N);let G=this.autoformatSelection(R,L);this.operation(()=>{this.getDoc().replaceRange(G,e,N);for(var W=this.getDoc().posFromIndex(R).line,D=this.getDoc().posFromIndex(R+G.length).line,H=W;H<=D;H++)this.indentLine(H,"smart")})}formatQuery(){try{let e=this.getValue(),N=Ym.format(e);this.setValue(N),this.collapsePrefixes(!0)}catch(e){console.warn("Failed to format SPARQL query using sparql-formatter. This may be due to syntax errors in the query. Falling back to legacy formatter.",e),this.autoformat()}}format(){(this.persistentConfig?.formatterType||"sparql-formatter")==="legacy"?this.autoformat():this.formatQuery()}getQueryWithValues(e){if(!e)return this.getValue();var N;if(typeof e=="string")N=e;else{e instanceof Array||(e=[e]);var R=e.reduce(function(k,Z){for(var $ in Z)k[$]=$;return k},{}),L=[];for(var G in R)L.push(G);if(!L.length)return this.getValue();N="VALUES ("+L.join(" ")+`) {
104
+ `,e.forEach(function(k){N+="( ",L.forEach(function(Z){N+=k[Z]||"UNDEF"}),N+=` )
105
105
  `}),N+=`}
106
- `}if(!N)return this.getValue();var D="",Z=!1,H=!1;return Vr.runMode(this.getValue(),"sparql11",function(Q,W,$,M,z){W==="keyword"&&Q.toLowerCase()==="select"&&(H=!0),D+=Q,H&&!Z&&W==="punc"&&Q==="{"&&(Z=!0,D+=`
107
- `+N)}),D}getValueWithoutComments(){var e="";return Vr.runMode(this.getValue(),"sparql11",function(N,R){R!="comment"&&(e+=N)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e,N=0;N<this.getDoc().lineCount();++N){var R=!1;this.prevQueryValid||(R=!0);var L=this.getTokenAt({line:N,ch:this.getDoc().getLine(N).length},R),e=L.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let Q=this.getWrapperElement().querySelectorAll(".sp-error");for(let W=0;W<Q.length;W++){var O=Q[W];O.style&&(O.style.color="black")}return}let H=Cs(Oh);if(e.errorMsg)bh(this,H,wh(L.state.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){var D=[];e.possibleCurrent.forEach(function(Q){D.push("<strong style='text-decoration:underline'>"+wh(Q)+"</strong>")}),bh(this,H,"This line is invalid. Expected: "+D.join(", "))}H.className="parseErrorIcon",this.setGutterMarker(N,"gutterErrorBar",H),this.queryValid=!1;break}}}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),R=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,L=[];for(let O in R.constructVariables)R.whereVariables[O]||L.push(O);if(L.length!==0)for(let O=0;O<this.getDoc().lineCount();++O){let Z=this.getTokenAt({line:O,ch:this.getDoc().getLine(O).length},!0).state;if(Z.queryType==="CONSTRUCT"&&Z.inConstructTemplate){let H=this.getDoc().getLine(O);for(let Q of L){let W=Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${W}(?![a-zA-Z0-9_])`).test(H)){let M=Cs(Oh);M.className="constructVariableWarning",bh(this,M,wh(`Variable ${Q} is used in CONSTRUCT but not defined in WHERE clause`)),this.setGutterMarker(O,"gutterConstructWarning",M);break}}}}}getCompleteToken(e,N){return qm(this,e,N)}getPreviousNonWsToken(e,N){return $E(this,e,N)}getNextNonWsToken(e,N){return Sf(this,e,N)}showNotification(e,N){if(!this.notificationEls[e]){let L=document.createElement("div");Ar(L,"notificationContainer"),this.getWrapperElement().appendChild(L),this.notificationEls[e]=document.createElement("div"),Ar(this.notificationEls[e],"notification","notif_"+e),L.appendChild(this.notificationEls[e])}for(let L in this.notificationEls)L!==e&&this.hideNotification(L);let R=this.notificationEls[e];Ar(R,"active"),R.innerText=N}hideNotification(e){this.notificationEls[e]&&Nh(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.config.showSnippetsBar=e,this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&this.config.snippets.length>0}refreshSnippetsBar(){this.drawSnippetsBar(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}enableCompleter(e){return Vr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new md(this,Vr.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(N=>N!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(!this.getDoc().somethingSelected())for(let N in this.config.autocompleters){let R=this.autocompleters[this.config.autocompleters[N]];!R||R.autocomplete(e)}}collapsePrefixes(e=!0){let N=rv(this);N!==void 0&&this.foldCode(N,Ta.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return av(this)}addPrefixes(e){return nv(this,e)}removePrefixes(e){return ov(this,e)}updateWidget(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){let e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}query(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.persistentConfig?.autoformatOnQuery&&this.format(),this.abortQuery(),Rm(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=bd.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=bd.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=bd.parse(window.location.hash)),e.query=this.getValue(),e}queryParamsToConfig(e){e&&e.query&&typeof e.query=="string"&&this.setValue(e.query)}getAsCurlString(e){return Lm(this,e)}getAsPowerShellString(e){return wm(this,e)}getAsWgetString(e){return Om(this,e)}hasAuthenticationCredentials(e){let N=zl(this,e);return N?Sm(N):!1}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.horizontalResizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper?.removeEventListener("dblclick",this.expandEditor),this.snippetsClickHandler&&(document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=void 0);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new _l(Vr.storageNamespace).removeNamespace()}static registerAutocompleter(e,N=!0){let R=e.name;Vr.Autocompleters[R]=e,N&&Vr.defaults.autocompleters.indexOf(R)<0&&Vr.defaults.autocompleters.push(R)}static forkAutocompleter(e,N,R=!0){if(!Vr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!N?.name)throw new Error("Expected a name for newly registered autocompleter");let L=N.name;Vr.Autocompleters[L]={...Vr.Autocompleters[e],...N},R&&Vr.defaults.autocompleters.indexOf(L)<0&&Vr.defaults.autocompleters.push(L)}};Vr.storageNamespace="triply",Vr.Sparql=Um,Vr.runMode=Ta.runMode,Vr.Autocompleters={},Vr.defaults=Dm();var zf=Vr;Object.assign(Ta.prototype,zf.prototype);gI.forEach(i=>{zf.registerAutocompleter(i)});var oL=zf;return dA(aL);})();
106
+ `}if(!N)return this.getValue();var W="",D=!1,H=!1;return Vr.runMode(this.getValue(),"sparql11",function(k,Z,$,M,z){Z==="keyword"&&k.toLowerCase()==="select"&&(H=!0),W+=k,H&&!D&&Z==="punc"&&k==="{"&&(D=!0,W+=`
107
+ `+N)}),W}getValueWithoutComments(){var e="";return Vr.runMode(this.getValue(),"sparql11",function(N,R){R!="comment"&&(e+=N)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e,N=0;N<this.getDoc().lineCount();++N){var R=!1;this.prevQueryValid||(R=!0);var L=this.getTokenAt({line:N,ch:this.getDoc().getLine(N).length},R),e=L.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let H=this.getWrapperElement().querySelectorAll(".sp-error");for(let k=0;k<H.length;k++){var G=H[k];G.style&&(G.style.color="black")}return}let D=document.createElement("i");if(D.className="fas fa-exclamation-circle parseErrorIcon",e.errorMsg)Of(this,D,Lh(e.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){let H=[];e.possibleCurrent.forEach(function(k){H.push("<strong style='text-decoration:underline'>"+Lh(k)+"</strong>")}),Of(this,D,"This line is invalid. Expected: "+H.join(", "))}else Of(this,D,"Syntax error");this.setGutterMarker(N,"gutterErrorBar",D),this.queryBtn&&(Me(this.queryBtn,"query_error"),this.queryBtn.title="Query has syntax errors"),this.queryValid=!1;break}}this.queryValid&&this.queryBtn&&(Cs(this.queryBtn,"query_error"),this.queryBtn.title="Run query (Ctrl+Enter)")}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}setSaveButtonVisible(e){this.saveBtn&&(this.saveBtn.style.display=e?"inline-flex":"none")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),R=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,L=[];for(let G in R.constructVariables)R.whereVariables[G]||L.push(G);if(L.length!==0)for(let G=0;G<this.getDoc().lineCount();++G){let D=this.getTokenAt({line:G,ch:this.getDoc().getLine(G).length},!0).state;if(D.queryType==="CONSTRUCT"&&D.inConstructTemplate){let H=this.getDoc().getLine(G);for(let k of L){let Z=k.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${Z}(?![a-zA-Z0-9_])`).test(H)){let M=document.createElement("i");M.className="fas fa-exclamation-triangle constructVariableWarning",Of(this,M,"Variable <strong>"+Lh(k)+"</strong> is used in CONSTRUCT but not defined in WHERE clause"),this.setGutterMarker(G,"gutterConstructWarning",M);break}}}}}getCompleteToken(e,N){return $m(this,e,N)}getPreviousNonWsToken(e,N){return _E(this,e,N)}getNextNonWsToken(e,N){return Sf(this,e,N)}showNotification(e,N){if(!this.notificationEls[e]){let L=document.createElement("div");Me(L,"notificationContainer"),this.getWrapperElement().appendChild(L),this.notificationEls[e]=document.createElement("div"),Me(this.notificationEls[e],"notification","notif_"+e),L.appendChild(this.notificationEls[e])}for(let L in this.notificationEls)L!==e&&this.hideNotification(L);let R=this.notificationEls[e];Me(R,"active"),R.innerText=N}hideNotification(e){this.notificationEls[e]&&Cs(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.config.showSnippetsBar=e,this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&this.config.snippets.length>0}refreshSnippetsBar(){this.drawSnippetsBar(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}enableCompleter(e){return Vr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new gd(this,Vr.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(N=>N!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(!this.getDoc().somethingSelected())for(let N in this.config.autocompleters){let R=this.autocompleters[this.config.autocompleters[N]];!R||R.autocomplete(e)}}collapsePrefixes(e=!0){let N=qm(this);N!==void 0&&this.foldCode(N,Ta.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return sv(this)}addPrefixes(e){return tv(this,e)}removePrefixes(e){return iv(this,e)}updateWidget(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){let e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}query(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.persistentConfig?.autoformatOnQuery&&this.format(),this.abortQuery(),bm(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=Ad.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=Ad.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=Ad.parse(window.location.hash)),e.query=this.getValue(),e}queryParamsToConfig(e){e&&e.query&&typeof e.query=="string"&&this.setValue(e.query)}getAsCurlString(e){return ym(this,e)}getAsPowerShellString(e){return Sm(this,e)}getAsWgetString(e){return Lm(this,e)}hasAuthenticationCredentials(e){let N=zl(this,e);return N?Rm(N):!1}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.horizontalResizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper?.removeEventListener("dblclick",this.expandEditor),this.snippetsClickHandler&&(document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=void 0);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new Xl(Vr.storageNamespace).removeNamespace()}static registerAutocompleter(e,N=!0){let R=e.name;Vr.Autocompleters[R]=e,N&&Vr.defaults.autocompleters.indexOf(R)<0&&Vr.defaults.autocompleters.push(R)}static forkAutocompleter(e,N,R=!0){if(!Vr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!N?.name)throw new Error("Expected a name for newly registered autocompleter");let L=N.name;Vr.Autocompleters[L]={...Vr.Autocompleters[e],...N},R&&Vr.defaults.autocompleters.indexOf(L)<0&&Vr.defaults.autocompleters.push(L)}};Vr.storageNamespace="triply",Vr.Sparql=wm,Vr.runMode=Ta.runMode,Vr.Autocompleters={},Vr.defaults=Fm();var jf=Vr;Object.assign(Ta.prototype,jf.prototype);aI.forEach(i=>{jf.registerAutocompleter(i)});var j1=jf;return oA(q1);})();
108
108
  /*! Bundled license information:
109
109
 
110
110
  dompurify/dist/purify.es.mjs: