@matdata/yasqe 5.5.0 → 5.7.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,47 +1,47 @@
1
- "use strict";var Yasqe=(()=>{var tI=Object.create;var wh=Object.defineProperty;var iI=Object.getOwnPropertyDescriptor;var sI=Object.getOwnPropertyNames;var nI=Object.getPrototypeOf,oI=Object.prototype.hasOwnProperty;var Nr=(i,v)=>()=>(v||i((v={exports:{}}).exports,v),v.exports),_v=(i,v)=>{for(var e in v)wh(i,e,{get:v[e],enumerable:!0})},Qv=(i,v,e,N)=>{if(v&&typeof v=="object"||typeof v=="function")for(let R of sI(v))!oI.call(i,R)&&R!==e&&wh(i,R,{get:()=>v[R],enumerable:!(N=iI(v,R))||N.enumerable});return i};var $t=(i,v,e)=>(e=i!=null?tI(nI(i)):{},Qv(v||!i||!i.__esModule?wh(e,"default",{value:i,enumerable:!0}):e,i)),aI=i=>Qv(wh({},"__esModule",{value:!0}),i);var si=Nr((_E,QE)=>{(function(i,v){typeof _E=="object"&&typeof QE<"u"?QE.exports=v():typeof define=="function"&&define.amd?define(v):(i=i||self,i.CodeMirror=v())})(_E,function(){"use strict";var i=navigator.userAgent,v=navigator.platform,e=/gecko\/\d/i.test(i),N=/MSIE \d/.test(i),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),w=/Edge\/(\d+)/.exec(i),O=N||R||w,V=O&&(N?document.documentMode||6:+(w||R)[1]),W=!w&&/WebKit\//.test(i),H=W&&/Qt\/\d+\.\d+/.test(i),Z=!w&&/Chrome\/(\d+)/.exec(i),P=Z&&+Z[1],J=/Opera\//.test(i),Q=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),Y=/PhantomJS/.test(i),B=Q&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),X=B||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),z=B||/Mac/.test(v),te=/\bCrOS\b/.test(i),ie=/win/i.test(v),ue=J&&i.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(J=!1,W=!0);var Ee=z&&(H||J&&(ue==null||ue<12.11)),_e=e||O&&V>=9;function we(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var We=function(s,l){var g=s.className,d=we(l).exec(g);if(d){var m=g.slice(d.index+d[0].length);s.className=g.slice(0,d.index)+(m?d[1]+m:"")}};function Me(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Ke(s,l){return Me(s).appendChild(l)}function ve(s,l,g,d){var m=document.createElement(s);if(g&&(m.className=g),d&&(m.style.cssText=d),typeof l=="string")m.appendChild(document.createTextNode(l));else if(l)for(var I=0;I<l.length;++I)m.appendChild(l[I]);return m}function xr(s,l,g,d){var m=ve(s,l,g,d);return m.setAttribute("role","presentation"),m}var Cr;document.createRange?Cr=function(s,l,g,d){var m=document.createRange();return m.setEnd(d||s,g),m.setStart(s,l),m}: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 Jr(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;we(l).test(g)||(s.className+=(g?" ":"")+l)}function yt(s,l){for(var g=s.split(" "),d=0;d<g.length;d++)g[d]&&!we(g[d]).test(l)&&(l+=" "+g[d]);return l}var St=function(s){s.select()};B?St=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:O&&(St=function(s){try{s.select()}catch{}});function cr(s){return s.display.wrapper.ownerDocument}function Lt(s){return or(s.display.wrapper)}function or(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function at(s){return cr(s).defaultView}function ze(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,m){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var I=d||0,b=m||0;;){var y=s.indexOf(" ",I);if(y<0||y>=l)return b+(l-I);b+=y-I,b+=g-b%g,I=y+1}}var Pr=function(){this.id=null,this.f=null,this.time=0,this.handler=ze(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,Oe={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},Er={origin:"*mouse"},fr={origin:"+move"};function ye(s,l,g){for(var d=0,m=0;;){var I=s.indexOf(" ",d);I==-1&&(I=s.length);var b=I-d;if(I==s.length||m+b>=l)return d+Math.min(b,l-m);if(m+=I-d,m+=g-m%g,d=I+1,m>=l)return d}}var Or=[""];function ei(s){for(;Or.length<=s;)Or.push(Ie(Or)+" ");return Or[s]}function Ie(s){return s[s.length-1]}function wt(s,l){for(var g=[],d=0;d<s.length;d++)g[d]=l(s[d],d);return g}function lt(s,l,g){for(var d=0,m=g(l);d<s.length&&g(s[d])<=m;)d++;s.splice(d,0,l)}function At(){}function es(s,l){var g;return Object.create?g=Object.create(s):(At.prototype=s,g=new At),l&&zr(l,g),g}var Be=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ut(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||Be.test(s))}function Se(s,l){return l?l.source.indexOf("\\w")>-1&&ut(s)?!0:l.test(s):ut(s)}function rr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var Pt=/[\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 It(s){return s.charCodeAt(0)>=768&&Pt.test(s)}function Ir(s,l,g){for(;(g<0?l>0:l<s.length)&&It(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 m=(l+g)/2,I=d<0?Math.ceil(m):Math.floor(m);if(I==l)return s(I)?l:g;s(I)?g=I:l=I+d}}function Ui(s,l,g,d){if(!s)return d(l,g,"ltr",0);for(var m=!1,I=0;I<s.length;++I){var b=s[I];(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",I),m=!0)}m||d(l,g,"ltr")}var ti=null;function Nt(s,l,g){var d;ti=null;for(var m=0;m<s.length;++m){var I=s[m];if(I.from<l&&I.to>l)return m;I.to==l&&(I.from!=I.to&&g=="before"?d=m:ti=m),I.from==l&&(I.from!=I.to&&g!="before"?d=m:ti=m)}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]/,m=/[stwN]/,I=/[LRr]/,b=/[Lb1n]/,y=/[1n]/;function L(U,k,$){this.level=U,this.from=k,this.to=$}return function(U,k){var $=k=="ltr"?"L":"R";if(U.length==0||k=="ltr"&&!d.test(U))return!1;for(var re=U.length,K=[],oe=0;oe<re;++oe)K.push(g(U.charCodeAt(oe)));for(var fe=0,he=$;fe<re;++fe){var me=K[fe];me=="m"?K[fe]=he:he=me}for(var Ce=0,xe=$;Ce<re;++Ce){var be=K[Ce];be=="1"&&xe=="r"?K[Ce]="n":I.test(be)&&(xe=be,be=="r"&&(K[Ce]="R"))}for(var Ve=1,Fe=K[0];Ve<re-1;++Ve){var qe=K[Ve];qe=="+"&&Fe=="1"&&K[Ve+1]=="1"?K[Ve]="1":qe==","&&Fe==K[Ve+1]&&(Fe=="1"||Fe=="n")&&(K[Ve]=Fe),Fe=qe}for(var mr=0;mr<re;++mr){var it=K[mr];if(it==",")K[mr]="N";else if(it=="%"){var Sr=void 0;for(Sr=mr+1;Sr<re&&K[Sr]=="%";++Sr);for(var Qt=mr&&K[mr-1]=="!"||Sr<re&&K[Sr]=="1"?"1":"N",Bt=mr;Bt<Sr;++Bt)K[Bt]=Qt;mr=Sr-1}}for(var _r=0,Dt=$;_r<re;++_r){var ot=K[_r];Dt=="L"&&ot=="1"?K[_r]="L":I.test(ot)&&(Dt=ot)}for(var jr=0;jr<re;++jr)if(m.test(K[jr])){var Qr=void 0;for(Qr=jr+1;Qr<re&&m.test(K[Qr]);++Qr);for(var Ur=(jr?K[jr-1]:$)=="L",Vt=(Qr<re?K[Qr]:$)=="L",Fn=Ur==Vt?Ur?"L":"R":$,vs=jr;vs<Qr;++vs)K[vs]=Fn;jr=Qr-1}for(var vt=[],Si,st=0;st<re;)if(b.test(K[st])){var ul=st;for(++st;st<re&&b.test(K[st]);++st);vt.push(new L(0,ul,st))}else{var Hi=st,Ws=vt.length,ks=k=="rtl"?1:0;for(++st;st<re&&K[st]!="L";++st);for(var Tt=Hi;Tt<st;)if(y.test(K[Tt])){Hi<Tt&&(vt.splice(Ws,0,new L(1,Hi,Tt)),Ws+=ks);var Bn=Tt;for(++Tt;Tt<st&&y.test(K[Tt]);++Tt);vt.splice(Ws,0,new L(2,Bn,Tt)),Ws+=ks,Hi=Tt}else++Tt;Hi<st&&vt.splice(Ws,0,new L(1,Hi,st))}return k=="ltr"&&(vt[0].level==1&&(Si=U.match(/^\s+/))&&(vt[0].from=Si[0].length,vt.unshift(new L(0,0,Si[0].length))),Ie(vt).level==1&&(Si=U.match(/\s+$/))&&(Ie(vt).to-=Si[0].length,vt.push(new L(0,re-Si[0].length,re)))),k=="rtl"?vt.reverse():vt}}();function br(s,l){var g=s.order;return g==null&&(g=s.order=ii(s.text,l)),g}var Ot=[],Ue=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 Wr(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,m=d&&d[l];if(m){var I=hr(m,g);I>-1&&(d[l]=m.slice(0,I).concat(m.slice(I+1)))}}}function ar(s,l){var g=ni(s,l);if(g.length)for(var d=Array.prototype.slice.call(arguments,2),m=0;m<g.length;++m)g[m].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),Ei(l)||l.codemirrorIgnore}function rs(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 ts(s){s.prototype.on=function(l,g){Ue(this,l,g)},s.prototype.off=function(l,g){Wr(this,l,g)}}function ft(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function kr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Ei(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Is(s){ft(s),kr(s)}function Ks(s){return s.target||s.srcElement}function en(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),z&&s.ctrlKey&&l==1&&(l=3),l}var Go=function(){if(O&&V<9)return!1;var s=ve("div");return"draggable"in s||"dragDrop"in s}(),rn;function Ta(s){if(rn==null){var l=ve("span","\u200B");Ke(s,ve("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(rn=l.offsetWidth<=1&&l.offsetHeight>2&&!(O&&V<8))}var g=rn?ve("span","\u200B"):ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Wt;function Gi(s){if(Wt!=null)return Wt;var l=Ke(s,document.createTextNode("A\u062EA")),g=Cr(l,0,1).getBoundingClientRect(),d=Cr(l,1,2).getBoundingClientRect();return Me(s),!g||g.left==g.right?!1:Wt=d.right-g.right<3}var tn=`
1
+ "use strict";var Yasqe=(()=>{var iI=Object.create;var wh=Object.defineProperty;var sI=Object.getOwnPropertyDescriptor;var nI=Object.getOwnPropertyNames;var oI=Object.getPrototypeOf,aI=Object.prototype.hasOwnProperty;var br=(i,v)=>()=>(v||i((v={exports:{}}).exports,v),v.exports),_v=(i,v)=>{for(var e in v)wh(i,e,{get:v[e],enumerable:!0})},Hv=(i,v,e,N)=>{if(v&&typeof v=="object"||typeof v=="function")for(let y of nI(v))!aI.call(i,y)&&y!==e&&wh(i,y,{get:()=>v[y],enumerable:!(N=sI(v,y))||N.enumerable});return i};var Yt=(i,v,e)=>(e=i!=null?iI(oI(i)):{},Hv(v||!i||!i.__esModule?wh(e,"default",{value:i,enumerable:!0}):e,i)),lI=i=>Hv(wh({},"__esModule",{value:!0}),i);var si=br((QE,_E)=>{(function(i,v){typeof QE=="object"&&typeof _E<"u"?_E.exports=v():typeof define=="function"&&define.amd?define(v):(i=i||self,i.CodeMirror=v())})(QE,function(){"use strict";var i=navigator.userAgent,v=navigator.platform,e=/gecko\/\d/i.test(i),N=/MSIE \d/.test(i),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),w=/Edge\/(\d+)/.exec(i),G=N||y||w,V=G&&(N?document.documentMode||6:+(w||y)[1]),Z=!w&&/WebKit\//.test(i),H=Z&&/Qt\/\d+\.\d+/.test(i),_=!w&&/Chrome\/(\d+)/.exec(i),W=_&&+_[1],J=/Opera\//.test(i),M=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),$=/PhantomJS/.test(i),B=M&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),D=/Android/.test(i),Y=B||D||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),q=B||/Mac/.test(v),te=/\bCrOS\b/.test(i),ie=/win/i.test(v),le=J&&i.match(/Version\/(\d*\.\d*)/);le&&(le=Number(le[1])),le&&le>=15&&(J=!1,Z=!0);var Ee=q&&(H||J&&(le==null||le<12.11)),ke=e||G&&V>=9;function we(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Pe=function(s,l){var g=s.className,d=we(l).exec(g);if(d){var m=g.slice(d.index+d[0].length);s.className=g.slice(0,d.index)+(m?d[1]+m:"")}};function Me(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Ke(s,l){return Me(s).appendChild(l)}function ve(s,l,g,d){var m=document.createElement(s);if(g&&(m.className=g),d&&(m.style.cssText=d),typeof l=="string")m.appendChild(document.createTextNode(l));else if(l)for(var I=0;I<l.length;++I)m.appendChild(l[I]);return m}function xr(s,l,g,d){var m=ve(s,l,g,d);return m.setAttribute("role","presentation"),m}var Cr;document.createRange?Cr=function(s,l,g,d){var m=document.createRange();return m.setEnd(d||s,g),m.setStart(s,l),m}: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 Jr(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;we(l).test(g)||(s.className+=(g?" ":"")+l)}function St(s,l){for(var g=s.split(" "),d=0;d<g.length;d++)g[d]&&!we(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 cr(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 cr(s).defaultView}function ze(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,m){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var I=d||0,b=m||0;;){var R=s.indexOf(" ",I);if(R<0||R>=l)return b+(l-I);b+=R-I,b+=g-b%g,I=R+1}}var Zr=function(){this.id=null,this.f=null,this.time=0,this.handler=ze(this.onTimeout,this)};Zr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Zr.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,Oe={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},Er={origin:"*mouse"},fr={origin:"+move"};function Re(s,l,g){for(var d=0,m=0;;){var I=s.indexOf(" ",d);I==-1&&(I=s.length);var b=I-d;if(I==s.length||m+b>=l)return d+Math.min(b,l-m);if(m+=I-d,m+=g-m%g,d=I+1,m>=l)return d}}var Ur=[""];function ei(s){for(;Ur.length<=s;)Ur.push(Ie(Ur)+" ");return Ur[s]}function Ie(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,m=g(l);d<s.length&&g(s[d])<=m;)d++;s.splice(d,0,l)}function Nt(){}function es(s,l){var g;return Object.create?g=Object.create(s):(Nt.prototype=s,g=new Nt),l&&zr(l,g),g}var Be=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pt(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||Be.test(s))}function Se(s,l){return l?l.source.indexOf("\\w")>-1&&pt(s)?!0:l.test(s):pt(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 ct(s){return s.charCodeAt(0)>=768&&at.test(s)}function Nr(s,l,g){for(;(g<0?l>0:l<s.length)&&ct(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 m=(l+g)/2,I=d<0?Math.ceil(m):Math.floor(m);if(I==l)return s(I)?l:g;s(I)?g=I:l=I+d}}function Ui(s,l,g,d){if(!s)return d(l,g,"ltr",0);for(var m=!1,I=0;I<s.length;++I){var b=s[I];(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",I),m=!0)}m||d(l,g,"ltr")}var ti=null;function bt(s,l,g){var d;ti=null;for(var m=0;m<s.length;++m){var I=s[m];if(I.from<l&&I.to>l)return m;I.to==l&&(I.from!=I.to&&g=="before"?d=m:ti=m),I.from==l&&(I.from!=I.to&&g!="before"?d=m:ti=m)}return d??ti}var ii=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(O){return O<=247?s.charAt(O):1424<=O&&O<=1524?"R":1536<=O&&O<=1785?l.charAt(O-1536):1774<=O&&O<=2220?"r":8192<=O&&O<=8203?"w":O==8204?"b":"L"}var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,m=/[stwN]/,I=/[LRr]/,b=/[Lb1n]/,R=/[1n]/;function L(O,k,X){this.level=O,this.from=k,this.to=X}return function(O,k){var X=k=="ltr"?"L":"R";if(O.length==0||k=="ltr"&&!d.test(O))return!1;for(var re=O.length,ee=[],oe=0;oe<re;++oe)ee.push(g(O.charCodeAt(oe)));for(var fe=0,he=X;fe<re;++fe){var me=ee[fe];me=="m"?ee[fe]=he:he=me}for(var Ce=0,xe=X;Ce<re;++Ce){var be=ee[Ce];be=="1"&&xe=="r"?ee[Ce]="n":I.test(be)&&(xe=be,be=="r"&&(ee[Ce]="R"))}for(var Ve=1,Fe=ee[0];Ve<re-1;++Ve){var qe=ee[Ve];qe=="+"&&Fe=="1"&&ee[Ve+1]=="1"?ee[Ve]="1":qe==","&&Fe==ee[Ve+1]&&(Fe=="1"||Fe=="n")&&(ee[Ve]=Fe),Fe=qe}for(var mr=0;mr<re;++mr){var st=ee[mr];if(st==",")ee[mr]="N";else if(st=="%"){var Lr=void 0;for(Lr=mr+1;Lr<re&&ee[Lr]=="%";++Lr);for(var _t=mr&&ee[mr-1]=="!"||Lr<re&&ee[Lr]=="1"?"1":"N",Dt=mr;Dt<Lr;++Dt)ee[Dt]=_t;mr=Lr-1}}for(var _r=0,Vt=X;_r<re;++_r){var lt=ee[_r];Vt=="L"&&lt=="1"?ee[_r]="L":I.test(lt)&&(Vt=lt)}for(var jr=0;jr<re;++jr)if(m.test(ee[jr])){var Hr=void 0;for(Hr=jr+1;Hr<re&&m.test(ee[Hr]);++Hr);for(var Gr=(jr?ee[jr-1]:X)=="L",Mt=(Hr<re?ee[Hr]:X)=="L",Bn=Gr==Mt?Gr?"L":"R":X,vs=jr;vs<Hr;++vs)ee[vs]=Bn;jr=Hr-1}for(var Ct=[],Si,nt=0;nt<re;)if(b.test(ee[nt])){var ul=nt;for(++nt;nt<re&&b.test(ee[nt]);++nt);Ct.push(new L(0,ul,nt))}else{var Hi=nt,Ps=Ct.length,Zs=k=="rtl"?1:0;for(++nt;nt<re&&ee[nt]!="L";++nt);for(var yt=Hi;yt<nt;)if(R.test(ee[yt])){Hi<yt&&(Ct.splice(Ps,0,new L(1,Hi,yt)),Ps+=Zs);var Dn=yt;for(++yt;yt<nt&&R.test(ee[yt]);++yt);Ct.splice(Ps,0,new L(2,Dn,yt)),Ps+=Zs,Hi=yt}else++yt;Hi<nt&&Ct.splice(Ps,0,new L(1,Hi,nt))}return k=="ltr"&&(Ct[0].level==1&&(Si=O.match(/^\s+/))&&(Ct[0].from=Si[0].length,Ct.unshift(new L(0,0,Si[0].length))),Ie(Ct).level==1&&(Si=O.match(/\s+$/))&&(Ie(Ct).to-=Si[0].length,Ct.push(new L(0,re-Si[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=[],Ue=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,m=d&&d[l];if(m){var I=hr(m,g);I>-1&&(d[l]=m.slice(0,I).concat(m.slice(I+1)))}}}function ar(s,l){var g=ni(s,l);if(g.length)for(var d=Array.prototype.slice.call(arguments,2),m=0;m<g.length;++m)g[m].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),Ei(l)||l.codemirrorIgnore}function rs(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 ts(s){s.prototype.on=function(l,g){Ue(this,l,g)},s.prototype.off=function(l,g){kr(this,l,g)}}function ht(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function Vr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Ei(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Is(s){ht(s),Vr(s)}function en(s){return s.target||s.srcElement}function rn(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 Go=function(){if(G&&V<9)return!1;var s=ve("div");return"draggable"in s||"dragDrop"in s}(),tn;function Ta(s){if(tn==null){var l=ve("span","\u200B");Ke(s,ve("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(tn=l.offsetWidth<=1&&l.offsetHeight>2&&!(G&&V<8))}var g=tn?ve("span","\u200B"):ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Pt;function Gi(s){if(Pt!=null)return Pt;var l=Ke(s,document.createTextNode("A\u062EA")),g=Cr(l,0,1).getBoundingClientRect(),d=Cr(l,1,2).getBoundingClientRect();return Me(s),!g||g.left==g.right?!1:Pt=d.right-g.right<3}var sn=`
2
2
 
3
3
  b`.split(/\n/).length!=3?function(s){for(var l=0,g=[],d=s.length;l<=d;){var m=s.indexOf(`
4
- `,l);m==-1&&(m=s.length);var I=s.slice(l,s.charAt(m-1)=="\r"?m-1:m),b=I.indexOf("\r");b!=-1?(g.push(I.slice(0,b)),l+=b+1):(g.push(I),l=m+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Fo=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},Wn=function(){var s=ve("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),sn=null;function oi(s){if(sn!=null)return sn;var l=Ke(s,ve("span","x")),g=l.getBoundingClientRect(),d=Cr(l,0,1).getBoundingClientRect();return sn=Math.abs(g.left-d.left)>1}var nn={},Fi={};function Bo(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),nn[s]=l}function Do(s,l){Fi[s]=l}function on(s){if(typeof s=="string"&&Fi.hasOwnProperty(s))s=Fi[s];else if(s&&typeof s.name=="string"&&Fi.hasOwnProperty(s.name)){var l=Fi[s.name];typeof l=="string"&&(l={name:l}),s=es(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return on("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return on("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function De(s,l){l=on(l);var g=nn[l.name];if(!g)return De(s,"text/plain");var d=g(s,l);if(q.hasOwnProperty(l.name)){var m=q[l.name];for(var I in m)m.hasOwnProperty(I)&&(d.hasOwnProperty(I)&&(d["_"+I]=d[I]),d[I]=m[I])}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 q={};function ge(s,l){var g=q.hasOwnProperty(s)?q[s]:q[s]={};zr(l,g)}function Re(s,l){if(l===!0)return l;if(s.copyState)return s.copyState(l);var g={};for(var d in l){var m=l[d];m instanceof Array&&(m=m.concat([])),g[d]=m}return g}function vr(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 Kr(s,l,g){return s.startState?s.startState(l,g):!0}var je=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};je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},je.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},je.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},je.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},je.prototype.backUp=function(s){this.pos-=s},je.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)},je.prototype.indentation=function(){return Ar(this.string,null,this.tabSize)-(this.lineStart?Ar(this.string,this.lineStart,this.tabSize):0)},je.prototype.match=function(s,l,g){if(typeof s=="string"){var d=function(b){return g?b.toLowerCase():b},m=this.string.substr(this.pos,s.length);if(d(m)==d(s))return l!==!1&&(this.pos+=s.length),!0}else{var I=this.string.slice(this.pos).match(s);return I&&I.index>0?null:(I&&l!==!1&&(this.pos+=I[0].length),I)}},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},je.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},je.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 m=g.children[d],I=m.chunkSize();if(l<I){g=m;break}l-=I}return g.lines[l]}function pt(s,l,g){var d=[],m=l.line;return s.iter(l.line,g.line+1,function(I){var b=I.text;m==g.line&&(b=b.slice(0,g.ch)),m==l.line&&(b=b.slice(l.ch)),d.push(b),++m}),d}function vi(s,l,g){var d=[];return s.iter(l,g,function(m){d.push(m.text)}),d}function kt(s,l){var g=l-s.height;if(g)for(var d=s;d;d=d.parent)d.height+=g}function Qe(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 m=0;d.children[m]!=l;++m)g+=d.children[m].chunkSize();return g+l.first}function mi(s,l){var g=s.first;e:do{for(var d=0;d<s.children.length;++d){var m=s.children[d],I=m.height;if(l<I){s=m;continue e}l-=I,g+=m.chunkSize()}return g}while(!s.lines);for(var b=0;b<s.lines.length;++b){var y=s.lines[b],L=y.height;if(l<L)break;l-=L}return g+b}function is(s,l){return l>=s.first&&l<s.first+s.size}function Ra(s,l){return String(s.lineNumberFormatter(l+s.firstLineNumber))}function ce(s,l,g){if(g===void 0&&(g=null),!(this instanceof ce))return new ce(s,l,g);this.line=s,this.ch=l,this.sticky=g}function $e(s,l){return s.line-l.line||s.ch-l.ch}function ya(s,l){return s.sticky==l.sticky&&$e(s,l)==0}function Sa(s){return ce(s.line,s.ch)}function Vo(s,l){return $e(s,l)<0?l:s}function Mo(s,l){return $e(s,l)<0?s:l}function zl(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function Xe(s,l){if(l.line<s.first)return ce(s.first,0);var g=s.first+s.size-1;return l.line>g?ce(g,Ae(s,g).text.length):$f(l,Ae(s,l.line).text.length)}function $f(s,l){var g=s.ch;return g==null||g>l?ce(s.line,l):g<0?ce(s.line,0):s}function jl(s,l){for(var g=[],d=0;d<l.length;d++)g[d]=Xe(s,l[d]);return g}var Po=function(s,l){this.state=s,this.lookAhead=l},xi=function(s,l,g,d){this.state=l,this.doc=s,this.line=g,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1};xi.prototype.lookAhead=function(s){var l=this.doc.getLine(this.line+s);return l!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),l},xi.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}},xi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xi.fromSaved=function(s,l,g){return l instanceof Po?new xi(s,Re(s.mode,l.state),g,l.lookAhead):new xi(s,Re(s.mode,l),g)},xi.prototype.save=function(s){var l=s!==!1?Re(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Po(l,this.maxLookAhead):l};function ql(s,l,g,d){var m=[s.state.modeGen],I={};su(s,l.text,s.doc.mode,g,function(U,k){return m.push(U,k)},I,d);for(var b=g.state,y=function(U){g.baseTokens=m;var k=s.state.overlays[U],$=1,re=0;g.state=!0,su(s,l.text,k.mode,g,function(K,oe){for(var fe=$;re<K;){var he=m[$];he>K&&m.splice($,1,K,m[$+1],he),$+=2,re=Math.min(K,he)}if(oe)if(k.opaque)m.splice(fe,$-fe,K,"overlay "+oe),$=fe+2;else for(;fe<$;fe+=2){var me=m[fe+1];m[fe+1]=(me?me+" ":"")+"overlay "+oe}},I),g.state=b,g.baseTokens=null,g.baseTokenPos=1},L=0;L<s.state.overlays.length;++L)y(L);return{styles:m,classes:I.bgClass||I.textClass?I:null}}function Kl(s,l,g){if(!l.styles||l.styles[0]!=s.state.modeGen){var d=kn(s,Qe(l)),m=l.text.length>s.options.maxHighlightLength&&Re(s.doc.mode,d.state),I=ql(s,l,d);m&&(d.state=m),l.stateAfter=d.save(!m),l.styles=I.styles,I.classes?l.styleClasses=I.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,m=s.display;if(!d.mode.startState)return new xi(d,!0,l);var I=Xf(s,l,g),b=I>d.first&&Ae(d,I-1).stateAfter,y=b?xi.fromSaved(d,b,I):new xi(d,Kr(d.mode),I);return d.iter(I,l,function(L){Zn(s,L.text,y);var U=y.line;L.stateAfter=U==l-1||U%5==0||U>=m.viewFrom&&U<m.viewTo?y.save():null,y.nextLine()}),g&&(d.modeFrontier=y.line),y}function Zn(s,l,g,d){var m=s.doc.mode,I=new je(l,s.options.tabSize,g);for(I.start=I.pos=d||0,l==""&&eu(m,g.state);!I.eol();)La(m,I,g.state),I.start=I.pos}function eu(s,l){if(s.blankLine)return s.blankLine(l);if(s.innerMode){var g=vr(s,l);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function La(s,l,g,d){for(var m=0;m<10;m++){d&&(d[0]=vr(s,g).mode);var I=s.token(l,g);if(l.pos>l.start)return I}throw new Error("Mode "+s.name+" failed to advance stream.")}var ru=function(s,l,g){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=l||null,this.state=g};function tu(s,l,g,d){var m=s.doc,I=m.mode,b;l=Xe(m,l);var y=Ae(m,l.line),L=kn(s,l.line,g),U=new je(y.text,s.options.tabSize,L),k;for(d&&(k=[]);(d||U.pos<l.ch)&&!U.eol();)U.start=U.pos,b=La(I,U,L.state),d&&k.push(new ru(U,b,Re(m.mode,L.state)));return d?k:new ru(U,b,L.state)}function iu(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 su(s,l,g,d,m,I,b){var y=g.flattenSpans;y==null&&(y=s.options.flattenSpans);var L=0,U=null,k=new je(l,s.options.tabSize,d),$,re=s.options.addModeClass&&[null];for(l==""&&iu(eu(g,d.state),I);!k.eol();){if(k.pos>s.options.maxHighlightLength?(y=!1,b&&Zn(s,l,d,k.pos),k.pos=l.length,$=null):$=iu(La(g,k,d.state,re),I),re){var K=re[0].name;K&&($="m-"+($?K+" "+$:K))}if(!y||U!=$){for(;L<k.start;)L=Math.min(k.start,L+5e3),m(L,U);U=$}k.start=k.pos}for(;L<k.pos;){var oe=Math.min(k.pos,L+5e3);m(oe,U),L=oe}}function Xf(s,l,g){for(var d,m,I=s.doc,b=g?-1:l-(s.doc.mode.innerMode?1e3:100),y=l;y>b;--y){if(y<=I.first)return I.first;var L=Ae(I,y-1),U=L.stateAfter;if(U&&(!g||y+(U instanceof Po?U.lookAhead:0)<=I.modeFrontier))return y;var k=Ar(L.text,null,s.options.tabSize);(m==null||d>k)&&(m=y-1,d=k)}return m}function Yf(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 m=Ae(s,d).stateAfter;if(m&&(!(m instanceof Po)||d+m.lookAhead<l)){g=d+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var Wo=!1,Bi=!1;function Jf(){Wo=!0}function Xt(){Bi=!0}function an(s,l,g){this.marker=s,this.from=l,this.to=g}function Ns(s,l){if(s)for(var g=0;g<s.length;++g){var d=s[g];if(d.marker==l)return d}}function wa(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 bs(s,l,g){var d;if(s)for(var m=0;m<s.length;++m){var I=s[m],b=I.marker,y=I.from==null||(b.inclusiveLeft?I.from<=l:I.from<l);if(y||I.from==l&&b.type=="bookmark"&&(!g||!I.marker.insertLeft)){var L=I.to==null||(b.inclusiveRight?I.to>=l:I.to>l);(d||(d=[])).push(new an(b,I.from,L?null:I.to))}}return d}function Ts(s,l,g){var d;if(s)for(var m=0;m<s.length;++m){var I=s[m],b=I.marker,y=I.to==null||(b.inclusiveRight?I.to>=l:I.to>l);if(y||I.from==l&&b.type=="bookmark"&&(!g||I.marker.insertLeft)){var L=I.from==null||(b.inclusiveLeft?I.from<=l:I.from<l);(d||(d=[])).push(new an(b,L?null:I.from-l,I.to==null?null:I.to-l))}}return d}function Vi(s,l){if(l.full)return null;var g=is(s,l.from.line)&&Ae(s,l.from.line).markedSpans,d=is(s,l.to.line)&&Ae(s,l.to.line).markedSpans;if(!g&&!d)return null;var m=l.from.ch,I=l.to.ch,b=$e(l.from,l.to)==0,y=bs(g,m,b),L=Ts(d,I,b),U=l.text.length==1,k=Ie(l.text).length+(U?m:0);if(y)for(var $=0;$<y.length;++$){var re=y[$];if(re.to==null){var K=Ns(L,re.marker);K?U&&(re.to=K.to==null?null:K.to+k):re.to=m}}if(L)for(var oe=0;oe<L.length;++oe){var fe=L[oe];if(fe.to!=null&&(fe.to+=k),fe.from==null){var he=Ns(y,fe.marker);he||(fe.from=k,U&&(y||(y=[])).push(fe))}else fe.from+=k,U&&(y||(y=[])).push(fe)}y&&(y=ss(y)),L&&L!=y&&(L=ss(L));var me=[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 an(y[be].marker,null,null));for(var Ve=0;Ve<Ce;++Ve)me.push(xe);me.push(L)}return me}function ss(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 Rs(s,l,g){var d=null;if(s.iter(l.line,g.line+1,function(K){if(K.markedSpans)for(var oe=0;oe<K.markedSpans.length;++oe){var fe=K.markedSpans[oe].marker;fe.readOnly&&(!d||hr(d,fe)==-1)&&(d||(d=[])).push(fe)}}),!d)return null;for(var m=[{from:l,to:g}],I=0;I<d.length;++I)for(var b=d[I],y=b.find(0),L=0;L<m.length;++L){var U=m[L];if(!($e(U.to,y.from)<0||$e(U.from,y.to)>0)){var k=[L,1],$=$e(U.from,y.from),re=$e(U.to,y.to);($<0||!b.inclusiveLeft&&!$)&&k.push({from:U.from,to:y.from}),(re>0||!b.inclusiveRight&&!re)&&k.push({from:y.to,to:U.to}),m.splice.apply(m,k),L+=k.length-3}}return m}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 ln(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function un(s){return s.inclusiveLeft?-1:0}function fn(s){return s.inclusiveRight?1:0}function Oa(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var d=s.find(),m=l.find(),I=$e(d.from,m.from)||un(s)-un(l);if(I)return-I;var b=$e(d.to,m.to)||fn(s)-fn(l);return b||l.id-s.id}function nu(s,l){var g=Bi&&s.markedSpans,d;if(g)for(var m=void 0,I=0;I<g.length;++I)m=g[I],m.marker.collapsed&&(l?m.from:m.to)==null&&(!d||Oa(d,m.marker)<0)&&(d=m.marker);return d}function Zo(s){return nu(s,!0)}function He(s){return nu(s,!1)}function Ua(s,l){var g=Bi&&s.markedSpans,d;if(g)for(var m=0;m<g.length;++m){var I=g[m];I.marker.collapsed&&(I.from==null||I.from<l)&&(I.to==null||I.to>l)&&(!d||Oa(d,I.marker)<0)&&(d=I.marker)}return d}function ns(s,l,g,d,m){var I=Ae(s,l),b=Bi&&I.markedSpans;if(b)for(var y=0;y<b.length;++y){var L=b[y];if(L.marker.collapsed){var U=L.marker.find(0),k=$e(U.from,g)||un(L.marker)-un(m),$=$e(U.to,d)||fn(L.marker)-fn(m);if(!(k>=0&&$<=0||k<=0&&$>=0)&&(k<=0&&(L.marker.inclusiveRight&&m.inclusiveLeft?$e(U.to,g)>=0:$e(U.to,g)>0)||k>=0&&(L.marker.inclusiveRight&&m.inclusiveLeft?$e(U.from,d)<=0:$e(U.from,d)<0)))return!0}}}function ai(s){for(var l;l=Zo(s);)s=l.find(-1,!0).line;return s}function zf(s){for(var l;l=He(s);)s=l.find(1,!0).line;return s}function Ga(s){for(var l,g;l=He(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function _n(s,l){var g=Ae(s,l),d=ai(g);return g==d?l:Qe(d)}function _o(s,l){if(l>s.lastLine())return l;var g=Ae(s,l),d;if(!Ci(s,g))return l;for(;d=He(g);)g=d.find(1,!0).line;return Qe(g)+1}function Ci(s,l){var g=Bi&&l.markedSpans;if(g){for(var d=void 0,m=0;m<g.length;++m)if(d=g[m],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&Fa(s,l,d))return!0}}}function Fa(s,l,g){if(g.to==null){var d=g.marker.find(1,!0);return Fa(s,d.line,Ns(d.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==l.text.length)return!0;for(var m=void 0,I=0;I<l.markedSpans.length;++I)if(m=l.markedSpans[I],m.marker.collapsed&&!m.marker.widgetNode&&m.from==g.to&&(m.to==null||m.to!=g.from)&&(m.marker.inclusiveLeft||g.marker.inclusiveRight)&&Fa(s,l,m))return!0}function Mi(s){s=ai(s);for(var l=0,g=s.parent,d=0;d<g.lines.length;++d){var m=g.lines[d];if(m==s)break;l+=m.height}for(var I=g.parent;I;g=I,I=g.parent)for(var b=0;b<I.children.length;++b){var y=I.children[b];if(y==g)break;l+=y.height}return l}function Qo(s){if(s.height==0)return 0;for(var l=s.text.length,g,d=s;g=Zo(d);){var m=g.find(0,!0);d=m.from.line,l+=m.from.ch-m.to.ch}for(d=s;g=He(d);){var I=g.find(0,!0);l-=d.text.length-I.from.ch,d=I.to.line,l+=d.text.length-I.to.ch}return l}function Ba(s){var l=s.display,g=s.doc;l.maxLine=Ae(g,g.first),l.maxLineLength=Qo(l.maxLine),l.maxLineChanged=!0,g.iter(function(d){var m=Qo(d);m>l.maxLineLength&&(l.maxLineLength=m,l.maxLine=d)})}var pn=function(s,l,g){this.text=s,ln(this,l),this.height=g?g(this):1};pn.prototype.lineNo=function(){return Qe(this)},ts(pn);function jf(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),ln(s,g);var m=d?d(s):1;m!=s.height&&kt(s,m)}function qf(s){s.parent=null,ko(s)}var Kf={},ep={};function ou(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?ep:Kf;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function au(s,l){var g=xr("span",null,null,W?"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 m=0;m<=(l.rest?l.rest.length:0);m++){var I=m?l.rest[m-1]:l.line,b=void 0;d.pos=0,d.addToken=tp,Gi(s.display.measure)&&(b=br(I,s.doc.direction))&&(d.addToken=sp(d.addToken,b)),d.map=[];var y=l!=s.display.externalMeasured&&Qe(I);np(I,d,Kl(s,I,y)),I.styleClasses&&(I.styleClasses.bgClass&&(d.bgClass=yt(I.styleClasses.bgClass,d.bgClass||"")),I.styleClasses.textClass&&(d.textClass=yt(I.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(Ta(s.display.measure))),m==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(W){var L=d.content.lastChild;(/\bcm-tab\b/.test(L.className)||L.querySelector&&L.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return ar(s,"renderLine",s,l.line,d.pre),d.pre.className&&(d.textClass=yt(d.pre.className,d.textClass||"")),d}function rp(s){var l=ve("span","\u2022","cm-invalidchar");return l.title="\\u"+s.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function tp(s,l,g,d,m,I,b){if(l){var y=s.splitSpaces?ip(l,s.trailingSpace):l,L=s.cm.state.specialChars,U=!1,k;if(!L.test(l))s.col+=l.length,k=document.createTextNode(y),s.map.push(s.pos,s.pos+l.length,k),O&&V<9&&(U=!0),s.pos+=l.length;else{k=document.createDocumentFragment();for(var $=0;;){L.lastIndex=$;var re=L.exec(l),K=re?re.index-$:l.length-$;if(K){var oe=document.createTextNode(y.slice($,$+K));O&&V<9?k.appendChild(ve("span",[oe])):k.appendChild(oe),s.map.push(s.pos,s.pos+K,oe),s.col+=K,s.pos+=K}if(!re)break;$+=K+1;var fe=void 0;if(re[0]==" "){var he=s.cm.options.tabSize,me=he-s.col%he;fe=k.appendChild(ve("span",ei(me),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),s.col+=me}else re[0]=="\r"||re[0]==`
5
- `?(fe=k.appendChild(ve("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]),O&&V<9?k.appendChild(ve("span",[fe])):k.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||m||U||I||b){var Ce=g||"";d&&(Ce+=d),m&&(Ce+=m);var xe=ve("span",[k],Ce,I);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 ip(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,d="",m=0;m<s.length;m++){var I=s.charAt(m);I==" "&&g&&(m==s.length-1||s.charCodeAt(m+1)==32)&&(I="\xA0"),d+=I,g=I==" "}return d}function sp(s,l){return function(g,d,m,I,b,y,L){m=m?m+" cm-force-border":"cm-force-border";for(var U=g.pos,k=U+d.length;;){for(var $=void 0,re=0;re<l.length&&($=l[re],!($.to>U&&$.from<=U));re++);if($.to>=k)return s(g,d,m,I,b,y,L);s(g,d.slice(0,$.to-U),m,I,null,y,L),I=null,d=d.slice($.to-U),U=$.to}}}function lu(s,l,g,d){var m=!d&&g.widgetNode;m&&s.map.push(s.pos,s.pos+l,m),!d&&s.cm.display.input.needsContentAttribute&&(m||(m=s.content.appendChild(document.createElement("span"))),m.setAttribute("cm-marker",g.id)),m&&(s.cm.display.input.setUneditable(m),s.content.appendChild(m)),s.pos+=l,s.trailingSpace=!1}function np(s,l,g){var d=s.markedSpans,m=s.text,I=0;if(!d){for(var b=1;b<g.length;b+=2)l.addToken(l,m.slice(I,I=g[b]),ou(g[b+1],l.cm.options));return}for(var y=m.length,L=0,U=1,k="",$,re,K=0,oe,fe,he,me,Ce;;){if(K==L){oe=fe=he=re="",Ce=null,me=null,K=1/0;for(var xe=[],be=void 0,Ve=0;Ve<d.length;++Ve){var Fe=d[Ve],qe=Fe.marker;if(qe.type=="bookmark"&&Fe.from==L&&qe.widgetNode)xe.push(qe);else if(Fe.from<=L&&(Fe.to==null||Fe.to>L||qe.collapsed&&Fe.to==L&&Fe.from==L)){if(Fe.to!=null&&Fe.to!=L&&K>Fe.to&&(K=Fe.to,fe=""),qe.className&&(oe+=" "+qe.className),qe.css&&(re=(re?re+";":"")+qe.css),qe.startStyle&&Fe.from==L&&(he+=" "+qe.startStyle),qe.endStyle&&Fe.to==K&&(be||(be=[])).push(qe.endStyle,Fe.to),qe.title&&((Ce||(Ce={})).title=qe.title),qe.attributes)for(var mr in qe.attributes)(Ce||(Ce={}))[mr]=qe.attributes[mr];qe.collapsed&&(!me||Oa(me.marker,qe)<0)&&(me=Fe)}else Fe.from>L&&K>Fe.from&&(K=Fe.from)}if(be)for(var it=0;it<be.length;it+=2)be[it+1]==K&&(fe+=" "+be[it]);if(!me||me.from==L)for(var Sr=0;Sr<xe.length;++Sr)lu(l,0,xe[Sr]);if(me&&(me.from||0)==L){if(lu(l,(me.to==null?y+1:me.to)-L,me.marker,me.from==null),me.to==null)return;me.to==L&&(me=!1)}}if(L>=y)break;for(var Qt=Math.min(y,K);;){if(k){var Bt=L+k.length;if(!me){var _r=Bt>Qt?k.slice(0,Qt-L):k;l.addToken(l,_r,$?$+oe:oe,he,L+_r.length==K?fe:"",re,Ce)}if(Bt>=Qt){k=k.slice(Qt-L),L=Qt;break}L=Bt,he=""}k=m.slice(I,I=g[U++]),$=ou(g[U++],l.cm.options)}}}function cn(s,l,g){this.line=l,this.rest=Ga(l),this.size=this.rest?Qe(Ie(this.rest))-g+1:1,this.node=this.text=null,this.hidden=Ci(s,l)}function os(s,l,g){for(var d=[],m,I=l;I<g;I=m){var b=new cn(s.doc,Ae(s.doc,I),I);m=I+b.size,d.push(b)}return d}var Ai=null;function op(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function ap(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 m=s.ops[d];if(m.cursorActivityHandlers)for(;m.cursorActivityCalled<m.cursorActivityHandlers.length;)m.cursorActivityHandlers[m.cursorActivityCalled++].call(null,m.cm)}}while(g<l.length)}function lp(s,l){var g=s.ownsGroup;if(g)try{ap(g)}finally{Ai=null,l(g)}}var Qn=null;function et(s,l){var g=ni(s,l);if(g.length){var d=Array.prototype.slice.call(arguments,2),m;Ai?m=Ai.delayedCallbacks:Qn?m=Qn:(m=Qn=[],setTimeout(ct,0));for(var I=function(y){m.push(function(){return g[y].apply(null,d)})},b=0;b<g.length;++b)I(b)}}function ct(){var s=Qn;Qn=null;for(var l=0;l<s.length;++l)s[l]()}function uu(s,l,g,d){for(var m=0;m<l.changes.length;m++){var I=l.changes[m];I=="text"?Zr(s,l):I=="gutter"?as(s,l,g,d):I=="class"?Hn(s,l):I=="widget"&&Ut(s,l,d)}l.changes=null}function ae(s){return s.node==s.text&&(s.node=ve("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),O&&V<8&&(s.node.style.zIndex=2)),s.node}function ys(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=ae(l);l.background=d.insertBefore(ve("div",null,g),d.firstChild),s.display.input.setUneditable(l.background)}}function le(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):au(s,l)}function Zr(s,l){var g=l.text.className,d=le(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,Hn(s,l)):g&&(l.text.className=g)}function Hn(s,l){ys(s,l),l.line.wrapClass?ae(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 as(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 m=ae(l);l.gutterBackground=ve("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),m.insertBefore(l.gutterBackground,l.text)}var I=l.line.gutterMarkers;if(s.options.lineNumbers||I){var b=ae(l),y=l.gutter=ve("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&&(!I||!I["CodeMirror-linenumbers"])&&(l.lineNumber=y.appendChild(ve("div",Ra(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),I)for(var L=0;L<s.display.gutterSpecs.length;++L){var U=s.display.gutterSpecs[L].className,k=I.hasOwnProperty(U)&&I[U];k&&y.appendChild(ve("div",[k],"CodeMirror-gutter-elt","left: "+d.gutterLeft[U]+"px; width: "+d.gutterWidth[U]+"px"))}}}function Ut(s,l,g){l.alignable&&(l.alignable=null);for(var d=we("CodeMirror-linewidget"),m=l.node.firstChild,I=void 0;m;m=I)I=m.nextSibling,d.test(m.className)&&l.node.removeChild(m);fu(s,l,g)}function Gt(s,l,g,d){var m=le(s,l);return l.text=l.node=m.pre,m.bgClass&&(l.bgClass=m.bgClass),m.textClass&&(l.textClass=m.textClass),Hn(s,l),as(s,l,g,d),fu(s,l,d),l.node}function fu(s,l,g){if(pu(s,l.line,l,g,!0),l.rest)for(var d=0;d<l.rest.length;d++)pu(s,l.rest[d],l,g,!1)}function pu(s,l,g,d,m){if(l.widgets)for(var I=ae(g),b=0,y=l.widgets;b<y.length;++b){var L=y[b],U=ve("div",[L.node],"CodeMirror-linewidget"+(L.className?" "+L.className:""));L.handleMouseEvents||U.setAttribute("cm-ignore-events","true"),up(L,U,g,d),s.display.input.setUneditable(U),m&&L.above?I.insertBefore(U,g.gutter||g.text):I.appendChild(U),et(L,"redraw")}}function up(s,l,g,d){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var m=d.wrapperWidth;l.style.left=d.fixedPos+"px",s.coverGutter||(m-=d.gutterTotalWidth,l.style.paddingLeft=d.gutterTotalWidth+"px"),l.style.width=m+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-d.gutterTotalWidth+"px"))}function Pi(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;"),Ke(l.display.measure,ve("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Wi(s,l){for(var g=Ks(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 hn(s){return s.lineSpace.offsetTop}function Da(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function cu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Ke(s.measure,ve("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 Ii(s){return Kt-s.display.nativeBarWidth}function Ss(s){return s.display.scroller.clientWidth-Ii(s)-s.display.barWidth}function Va(s){return s.display.scroller.clientHeight-Ii(s)-s.display.barHeight}function fp(s,l,g){var d=s.options.lineWrapping,m=d&&Ss(s);if(!l.measure.heights||d&&l.measure.width!=m){var I=l.measure.heights=[];if(d){l.measure.width=m;for(var b=l.text.firstChild.getClientRects(),y=0;y<b.length-1;y++){var L=b[y],U=b[y+1];Math.abs(L.bottom-U.bottom)>2&&I.push((L.bottom+U.top)/2-g.top)}}I.push(g.bottom-g.top)}}function Ho(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 m=0;m<s.rest.length;m++)if(Qe(s.rest[m])>g)return{map:s.measure.maps[m],cache:s.measure.caches[m],before:!0}}}function Yt(s,l){l=ai(l);var g=Qe(l),d=s.display.externalMeasured=new cn(s.doc,l,g);d.lineN=g;var m=d.built=au(s,d);return d.text=m.pre,Ke(s.display.lineMeasure,m.pre),d}function hu(s,l,g,d){return Ni(s,dn(s,l),g,d)}function ht(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 dn(s,l){var g=Qe(l),d=ht(s,g);d&&!d.text?d=null:d&&d.changes&&(uu(s,d,g,Os(s)),s.curOp.forceUpdate=!0),d||(d=Yt(s,l));var m=Ho(d,l,g);return{line:l,view:d,rect:null,map:m.map,cache:m.cache,before:m.before,hasHeights:!1}}function Ni(s,l,g,d,m){l.before&&(g=-1);var I=g+(d||""),b;return l.cache.hasOwnProperty(I)?b=l.cache[I]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(fp(s,l.view,l.rect),l.hasHeights=!0),b=$n(s,l,g,d),b.bogus||(l.cache[I]=b)),{left:b.left,right:b.right,top:m?b.rtop:b.top,bottom:m?b.rbottom:b.bottom}}var du={left:0,right:0,top:0,bottom:0};function gu(s,l,g){for(var d,m,I,b,y,L,U=0;U<s.length;U+=3)if(y=s[U],L=s[U+1],l<y?(m=0,I=1,b="left"):l<L?(m=l-y,I=m+1):(U==s.length-3||l==L&&s[U+3]>l)&&(I=L-y,m=I-1,l>=L&&(b="right")),m!=null){if(d=s[U+2],y==L&&g==(d.insertLeft?"left":"right")&&(b=g),g=="left"&&m==0)for(;U&&s[U-2]==s[U-3]&&s[U-1].insertLeft;)d=s[(U-=3)+2],b="left";if(g=="right"&&m==L-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:m,end:I,collapse:b,coverStart:y,coverEnd:L}}function pp(s,l){var g=du;if(l=="left")for(var d=0;d<s.length&&(g=s[d]).left==g.right;d++);else for(var m=s.length-1;m>=0&&(g=s[m]).left==g.right;m--);return g}function $n(s,l,g,d){var m=gu(l.map,g,d),I=m.node,b=m.start,y=m.end,L=m.collapse,U;if(I.nodeType==3){for(var k=0;k<4;k++){for(;b&&It(l.line.text.charAt(m.coverStart+b));)--b;for(;m.coverStart+y<m.coverEnd&&It(l.line.text.charAt(m.coverStart+y));)++y;if(O&&V<9&&b==0&&y==m.coverEnd-m.coverStart?U=I.parentNode.getBoundingClientRect():U=pp(Cr(I,b,y).getClientRects(),d),U.left||U.right||b==0)break;y=b,b=b-1,L="right"}O&&V<11&&(U=cp(s.display.measure,U))}else{b>0&&(L=d="right");var $;s.options.lineWrapping&&($=I.getClientRects()).length>1?U=$[d=="right"?$.length-1:0]:U=I.getBoundingClientRect()}if(O&&V<9&&!b&&(!U||!U.left&&!U.right)){var re=I.parentNode.getClientRects()[0];re?U={left:re.left,right:re.left+us(s.display),top:re.top,bottom:re.bottom}:U=du}for(var K=U.top-l.rect.top,oe=U.bottom-l.rect.top,fe=(K+oe)/2,he=l.view.measure.heights,me=0;me<he.length-1&&!(fe<he[me]);me++);var Ce=me?he[me-1]:0,xe=he[me],be={left:(L=="right"?U.right:U.left)-l.rect.left,right:(L=="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=K,be.rbottom=oe),be}function cp(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 Eu(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 $o(s){s.display.externalMeasure=null,Me(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)Eu(s.display.view[l])}function Ls(s){$o(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function gn(s){return Z&&D?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function vu(s){return Z&&D?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Ma(s){var l=ai(s),g=l.widgets,d=0;if(g)for(var m=0;m<g.length;++m)g[m].above&&(d+=Pi(g[m]));return d}function En(s,l,g,d,m){if(!m){var I=Ma(l);g.top+=I,g.bottom+=I}if(d=="line")return g;d||(d="local");var b=Mi(l);if(d=="local"?b+=hn(s.display):b-=s.display.viewOffset,d=="page"||d=="window"){var y=s.display.lineSpace.getBoundingClientRect();b+=y.top+(d=="window"?0:vu(cr(s)));var L=y.left+(d=="window"?0:gn(cr(s)));g.left+=L,g.right+=L}return g.top+=b,g.bottom+=b,g}function ls(s,l,g){if(g=="div")return l;var d=l.left,m=l.top;if(g=="page")d-=gn(cr(s)),m-=vu(cr(s));else if(g=="local"||!g){var I=s.display.sizer.getBoundingClientRect();d+=I.left,m+=I.top}var b=s.display.lineSpace.getBoundingClientRect();return{left:d-b.left,top:m-b.top}}function Xo(s,l,g,d,m){return d||(d=Ae(s.doc,l.line)),En(s,d,hu(s,d,l.ch,m),g)}function Ye(s,l,g,d,m,I){d=d||Ae(s.doc,l.line),m||(m=dn(s,d));function b(oe,fe){var he=Ni(s,m,oe,fe?"right":"left",I);return fe?he.left=he.right:he.right=he.left,En(s,d,he,g)}var y=br(d,s.doc.direction),L=l.ch,U=l.sticky;if(L>=d.text.length?(L=d.text.length,U="before"):L<=0&&(L=0,U="after"),!y)return b(U=="before"?L-1:L,U=="before");function k(oe,fe,he){var me=y[fe],Ce=me.level==1;return b(he?oe-1:oe,Ce!=he)}var $=Nt(y,L,U),re=ti,K=k(L,$,U=="before");return re!=null&&(K.other=k(L,re,U!="before")),K}function mu(s,l){var g=0;l=Xe(s.doc,l),s.options.lineWrapping||(g=us(s.display)*l.ch);var d=Ae(s.doc,l.line),m=Mi(d)+hn(s.display);return{left:g,right:g,top:m,bottom:m+d.height}}function Pa(s,l,g,d,m){var I=ce(s,l,g);return I.xRel=m,d&&(I.outside=d),I}function Wa(s,l,g){var d=s.doc;if(g+=s.display.viewOffset,g<0)return Pa(d.first,0,null,-1,-1);var m=mi(d,g),I=d.first+d.size-1;if(m>I)return Pa(d.first+d.size-1,Ae(d,I).text.length,null,1,1);l<0&&(l=0);for(var b=Ae(d,m);;){var y=hp(s,b,m,l,g),L=Ua(b,y.ch+(y.xRel>0||y.outside>0?1:0));if(!L)return y;var U=L.find(1);if(U.line==m)return U;b=Ae(d,m=U.line)}}function xu(s,l,g,d){d-=Ma(l);var m=l.text.length,I=ri(function(b){return Ni(s,g,b-1).bottom<=d},m,0);return m=ri(function(b){return Ni(s,g,b).top>d},I,m),{begin:I,end:m}}function Cu(s,l,g,d){g||(g=dn(s,l));var m=En(s,l,Ni(s,g,d),"line").top;return xu(s,l,g,m)}function Xn(s,l,g,d){return s.bottom<=g?!1:s.top>g?!0:(d?s.left:s.right)>l}function hp(s,l,g,d,m){m-=Mi(l);var I=dn(s,l),b=Ma(l),y=0,L=l.text.length,U=!0,k=br(l,s.doc.direction);if(k){var $=(s.options.lineWrapping?ws:ke)(s,l,g,I,k,d,m);U=$.level!=1,y=U?$.from:$.to-1,L=U?$.to:$.from-1}var re=null,K=null,oe=ri(function(Ve){var Fe=Ni(s,I,Ve);return Fe.top+=b,Fe.bottom+=b,Xn(Fe,d,m,!1)?(Fe.top<=m&&Fe.left<=d&&(re=Ve,K=Fe),!0):!1},y,L),fe,he,me=!1;if(K){var Ce=d-K.left<K.right-d,xe=Ce==U;oe=re+(xe?0:1),he=xe?"after":"before",fe=Ce?K.left:K.right}else{!U&&(oe==L||oe==y)&&oe++,he=oe==0?"after":oe==l.text.length?"before":Ni(s,I,oe-(U?1:0)).bottom+b<=m==U?"after":"before";var be=Ye(s,ce(g,oe,he),"line",l,I);fe=be.left,me=m<be.top?-1:m>=be.bottom?1:0}return oe=Ir(l.text,oe,1),Pa(g,oe,he,me,d-fe)}function ke(s,l,g,d,m,I,b){var y=ri(function($){var re=m[$],K=re.level!=1;return Xn(Ye(s,ce(g,K?re.to:re.from,K?"before":"after"),"line",l,d),I,b,!0)},0,m.length-1),L=m[y];if(y>0){var U=L.level!=1,k=Ye(s,ce(g,U?L.from:L.to,U?"after":"before"),"line",l,d);Xn(k,I,b,!0)&&k.top>b&&(L=m[y-1])}return L}function ws(s,l,g,d,m,I,b){var y=xu(s,l,d,b),L=y.begin,U=y.end;/\s/.test(l.text.charAt(U-1))&&U--;for(var k=null,$=null,re=0;re<m.length;re++){var K=m[re];if(!(K.from>=U||K.to<=L)){var oe=K.level!=1,fe=Ni(s,d,oe?Math.min(U,K.to)-1:Math.max(L,K.from)).right,he=fe<I?I-fe+1e9:fe-I;(!k||$>he)&&(k=K,$=he)}}return k||(k=m[m.length-1]),k.from<L&&(k={from:L,to:k.to,level:k.level}),k.to>U&&(k={from:k.from,to:U,level:k.level}),k}var Jt;function Dr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(Jt==null){Jt=ve("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)Jt.appendChild(document.createTextNode("x")),Jt.appendChild(ve("br"));Jt.appendChild(document.createTextNode("x"))}Ke(s.measure,Jt);var g=Jt.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Me(s.measure),g||1}function us(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=ve("span","xxxxxxxxxx"),g=ve("pre",[l],"CodeMirror-line-like");Ke(s.measure,g);var d=l.getBoundingClientRect(),m=(d.right-d.left)/10;return m>2&&(s.cachedCharWidth=m),m||10}function Os(s){for(var l=s.display,g={},d={},m=l.gutters.clientLeft,I=l.gutters.firstChild,b=0;I;I=I.nextSibling,++b){var y=s.display.gutterSpecs[b].className;g[y]=I.offsetLeft+I.clientLeft+m,d[y]=I.clientWidth}return{fixedPos:dt(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:d,wrapperWidth:l.wrapper.clientWidth}}function dt(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function vn(s){var l=Dr(s.display),g=s.options.lineWrapping,d=g&&Math.max(5,s.display.scroller.clientWidth/us(s.display)-3);return function(m){if(Ci(s.doc,m))return 0;var I=0;if(m.widgets)for(var b=0;b<m.widgets.length;b++)m.widgets[b].height&&(I+=m.widgets[b].height);return g?I+(Math.ceil(m.text.length/d)||1)*l:I+l}}function Us(s){var l=s.doc,g=vn(s);l.iter(function(d){var m=g(d);m!=d.height&&kt(d,m)})}function li(s,l,g,d){var m=s.display;if(!g&&Ks(l).getAttribute("cm-not-content")=="true")return null;var I,b,y=m.lineSpace.getBoundingClientRect();try{I=l.clientX-y.left,b=l.clientY-y.top}catch{return null}var L=Wa(s,I,b),U;if(d&&L.xRel>0&&(U=Ae(s.doc,L.line).text).length==L.ch){var k=Ar(U,U.length,s.options.tabSize)-U.length;L=ce(L.line,Math.max(0,Math.round((I-cu(s.display).left)/us(s.display))-k))}return L}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 gt(s,l,g,d){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),d||(d=0);var m=s.display;if(d&&g<m.viewTo&&(m.updateLineNumbers==null||m.updateLineNumbers>l)&&(m.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=m.viewTo)Bi&&_n(s.doc,l)<m.viewTo&&bi(s);else if(g<=m.viewFrom)Bi&&_o(s.doc,g+d)>m.viewFrom?bi(s):(m.viewFrom+=d,m.viewTo+=d);else if(l<=m.viewFrom&&g>=m.viewTo)bi(s);else if(l<=m.viewFrom){var I=fs(s,g,g+d,1);I?(m.view=m.view.slice(I.index),m.viewFrom=I.lineN,m.viewTo+=d):bi(s)}else if(g>=m.viewTo){var b=fs(s,l,l,-1);b?(m.view=m.view.slice(0,b.index),m.viewTo=b.lineN):bi(s)}else{var y=fs(s,l,l,-1),L=fs(s,g,g+d,1);y&&L?(m.view=m.view.slice(0,y.index).concat(os(s,y.lineN,L.lineN)).concat(m.view.slice(L.index)),m.viewTo+=d):bi(s)}var U=m.externalMeasured;U&&(g<U.lineN?U.lineN+=d:l<U.lineN+U.size&&(m.externalMeasured=null))}function Zt(s,l,g){s.curOp.viewChanged=!0;var d=s.display,m=s.display.externalMeasured;if(m&&l>=m.lineN&&l<m.lineN+m.size&&(d.externalMeasured=null),!(l<d.viewFrom||l>=d.viewTo)){var I=d.view[ki(s,l)];if(I.node!=null){var b=I.changes||(I.changes=[]);hr(b,g)==-1&&b.push(g)}}}function bi(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function fs(s,l,g,d){var m=ki(s,l),I,b=s.display.view;if(!Bi||g==s.doc.first+s.doc.size)return{index:m,lineN:g};for(var y=s.display.viewFrom,L=0;L<m;L++)y+=b[L].size;if(y!=l){if(d>0){if(m==b.length-1)return null;I=y+b[m].size-l,m++}else I=y-l;l+=I,g+=I}for(;_n(s.doc,g)!=g;){if(m==(d<0?0:b.length-1))return null;g+=d*b[m-(d<0?1:0)].size,m+=d}return{index:m,lineN:g}}function Yn(s,l,g){var d=s.display,m=d.view;m.length==0||l>=d.viewTo||g<=d.viewFrom?(d.view=os(s,l,g),d.viewFrom=l):(d.viewFrom>l?d.view=os(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(os(s,d.viewTo,g)):d.viewTo>g&&(d.view=d.view.slice(0,ki(s,g)))),d.viewTo=g}function Yo(s){for(var l=s.display.view,g=0,d=0;d<l.length;d++){var m=l[d];!m.hidden&&(!m.node||m.changes)&&++g}return g}function Gs(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ps(s,l){l===void 0&&(l=!0);var g=s.doc,d={},m=d.cursors=document.createDocumentFragment(),I=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 L=g.sel.ranges[y];if(!(L.from().line>=s.display.viewTo||L.to().line<s.display.viewFrom)){var U=L.empty();if(b){var k=b(s,L);k&&Fs(s,k,m)}else(U||s.options.showCursorWhenSelecting)&&Fs(s,L.head,m);U||dp(s,L,I)}}return d}function Fs(s,l,g){var d=Ye(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),m=g.appendChild(ve("div","\xA0","CodeMirror-cursor"));if(m.style.left=d.left+"px",m.style.top=d.top+"px",m.style.height=Math.max(0,d.bottom-d.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var I=Xo(s,l,"div",null,null),b=I.right-I.left;m.style.width=(b>0?b:s.defaultCharWidth())+"px"}if(d.other){var y=g.appendChild(ve("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 Vr(s,l){return s.top-l.top||s.left-l.left}function dp(s,l,g){var d=s.display,m=s.doc,I=document.createDocumentFragment(),b=cu(s.display),y=b.left,L=Math.max(d.sizerWidth,Ss(s)-d.sizer.offsetLeft)-b.right,U=m.direction=="ltr";function k(xe,be,Ve,Fe){be<0&&(be=0),be=Math.round(be),Fe=Math.round(Fe),I.appendChild(ve("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
4
+ `,l);m==-1&&(m=s.length);var I=s.slice(l,s.charAt(m-1)=="\r"?m-1:m),b=I.indexOf("\r");b!=-1?(g.push(I.slice(0,b)),l+=b+1):(g.push(I),l=m+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Fo=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},Zn=function(){var s=ve("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),nn=null;function oi(s){if(nn!=null)return nn;var l=Ke(s,ve("span","x")),g=l.getBoundingClientRect(),d=Cr(l,0,1).getBoundingClientRect();return nn=Math.abs(g.left-d.left)>1}var on={},Fi={};function Bo(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),on[s]=l}function Do(s,l){Fi[s]=l}function an(s){if(typeof s=="string"&&Fi.hasOwnProperty(s))s=Fi[s];else if(s&&typeof s.name=="string"&&Fi.hasOwnProperty(s.name)){var l=Fi[s.name];typeof l=="string"&&(l={name:l}),s=es(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return an("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return an("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function De(s,l){l=an(l);var g=on[l.name];if(!g)return De(s,"text/plain");var d=g(s,l);if(K.hasOwnProperty(l.name)){var m=K[l.name];for(var I in m)m.hasOwnProperty(I)&&(d.hasOwnProperty(I)&&(d["_"+I]=d[I]),d[I]=m[I])}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 ge(s,l){var g=K.hasOwnProperty(s)?K[s]:K[s]={};zr(l,g)}function ye(s,l){if(l===!0)return l;if(s.copyState)return s.copyState(l);var g={};for(var d in l){var m=l[d];m instanceof Array&&(m=m.concat([])),g[d]=m}return g}function vr(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 je=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};je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},je.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},je.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},je.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},je.prototype.backUp=function(s){this.pos-=s},je.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)},je.prototype.indentation=function(){return Ar(this.string,null,this.tabSize)-(this.lineStart?Ar(this.string,this.lineStart,this.tabSize):0)},je.prototype.match=function(s,l,g){if(typeof s=="string"){var d=function(b){return g?b.toLowerCase():b},m=this.string.substr(this.pos,s.length);if(d(m)==d(s))return l!==!1&&(this.pos+=s.length),!0}else{var I=this.string.slice(this.pos).match(s);return I&&I.index>0?null:(I&&l!==!1&&(this.pos+=I[0].length),I)}},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},je.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},je.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 m=g.children[d],I=m.chunkSize();if(l<I){g=m;break}l-=I}return g.lines[l]}function dt(s,l,g){var d=[],m=l.line;return s.iter(l.line,g.line+1,function(I){var b=I.text;m==g.line&&(b=b.slice(0,g.ch)),m==l.line&&(b=b.slice(l.ch)),d.push(b),++m}),d}function vi(s,l,g){var d=[];return s.iter(l,g,function(m){d.push(m.text)}),d}function Zt(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 m=0;d.children[m]!=l;++m)g+=d.children[m].chunkSize();return g+l.first}function mi(s,l){var g=s.first;e:do{for(var d=0;d<s.children.length;++d){var m=s.children[d],I=m.height;if(l<I){s=m;continue e}l-=I,g+=m.chunkSize()}return g}while(!s.lines);for(var b=0;b<s.lines.length;++b){var R=s.lines[b],L=R.height;if(l<L)break;l-=L}return g+b}function is(s,l){return l>=s.first&&l<s.first+s.size}function ya(s,l){return String(s.lineNumberFormatter(l+s.firstLineNumber))}function ce(s,l,g){if(g===void 0&&(g=null),!(this instanceof ce))return new ce(s,l,g);this.line=s,this.ch=l,this.sticky=g}function Ye(s,l){return s.line-l.line||s.ch-l.ch}function Ra(s,l){return s.sticky==l.sticky&&Ye(s,l)==0}function Sa(s){return ce(s.line,s.ch)}function Vo(s,l){return Ye(s,l)<0?l:s}function Mo(s,l){return Ye(s,l)<0?s:l}function zl(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function Xe(s,l){if(l.line<s.first)return ce(s.first,0);var g=s.first+s.size-1;return l.line>g?ce(g,Ae(s,g).text.length):Yf(l,Ae(s,l.line).text.length)}function Yf(s,l){var g=s.ch;return g==null||g>l?ce(s.line,l):g<0?ce(s.line,0):s}function jl(s,l){for(var g=[],d=0;d<l.length;d++)g[d]=Xe(s,l[d]);return g}var Wo=function(s,l){this.state=s,this.lookAhead=l},xi=function(s,l,g,d){this.state=l,this.doc=s,this.line=g,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1};xi.prototype.lookAhead=function(s){var l=this.doc.getLine(this.line+s);return l!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),l},xi.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}},xi.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},xi.fromSaved=function(s,l,g){return l instanceof Wo?new xi(s,ye(s.mode,l.state),g,l.lookAhead):new xi(s,ye(s.mode,l),g)},xi.prototype.save=function(s){var l=s!==!1?ye(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Wo(l,this.maxLookAhead):l};function ql(s,l,g,d){var m=[s.state.modeGen],I={};su(s,l.text,s.doc.mode,g,function(O,k){return m.push(O,k)},I,d);for(var b=g.state,R=function(O){g.baseTokens=m;var k=s.state.overlays[O],X=1,re=0;g.state=!0,su(s,l.text,k.mode,g,function(ee,oe){for(var fe=X;re<ee;){var he=m[X];he>ee&&m.splice(X,1,ee,m[X+1],he),X+=2,re=Math.min(ee,he)}if(oe)if(k.opaque)m.splice(fe,X-fe,ee,"overlay "+oe),X=fe+2;else for(;fe<X;fe+=2){var me=m[fe+1];m[fe+1]=(me?me+" ":"")+"overlay "+oe}},I),g.state=b,g.baseTokens=null,g.baseTokenPos=1},L=0;L<s.state.overlays.length;++L)R(L);return{styles:m,classes:I.bgClass||I.textClass?I:null}}function Kl(s,l,g){if(!l.styles||l.styles[0]!=s.state.modeGen){var d=kn(s,_e(l)),m=l.text.length>s.options.maxHighlightLength&&ye(s.doc.mode,d.state),I=ql(s,l,d);m&&(d.state=m),l.stateAfter=d.save(!m),l.styles=I.styles,I.classes?l.styleClasses=I.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,m=s.display;if(!d.mode.startState)return new xi(d,!0,l);var I=Xf(s,l,g),b=I>d.first&&Ae(d,I-1).stateAfter,R=b?xi.fromSaved(d,b,I):new xi(d,et(d.mode),I);return d.iter(I,l,function(L){Qn(s,L.text,R);var O=R.line;L.stateAfter=O==l-1||O%5==0||O>=m.viewFrom&&O<m.viewTo?R.save():null,R.nextLine()}),g&&(d.modeFrontier=R.line),R}function Qn(s,l,g,d){var m=s.doc.mode,I=new je(l,s.options.tabSize,g);for(I.start=I.pos=d||0,l==""&&eu(m,g.state);!I.eol();)La(m,I,g.state),I.start=I.pos}function eu(s,l){if(s.blankLine)return s.blankLine(l);if(s.innerMode){var g=vr(s,l);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function La(s,l,g,d){for(var m=0;m<10;m++){d&&(d[0]=vr(s,g).mode);var I=s.token(l,g);if(l.pos>l.start)return I}throw new Error("Mode "+s.name+" failed to advance stream.")}var ru=function(s,l,g){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=l||null,this.state=g};function tu(s,l,g,d){var m=s.doc,I=m.mode,b;l=Xe(m,l);var R=Ae(m,l.line),L=kn(s,l.line,g),O=new je(R.text,s.options.tabSize,L),k;for(d&&(k=[]);(d||O.pos<l.ch)&&!O.eol();)O.start=O.pos,b=La(I,O,L.state),d&&k.push(new ru(O,b,ye(m.mode,L.state)));return d?k:new ru(O,b,L.state)}function iu(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 su(s,l,g,d,m,I,b){var R=g.flattenSpans;R==null&&(R=s.options.flattenSpans);var L=0,O=null,k=new je(l,s.options.tabSize,d),X,re=s.options.addModeClass&&[null];for(l==""&&iu(eu(g,d.state),I);!k.eol();){if(k.pos>s.options.maxHighlightLength?(R=!1,b&&Qn(s,l,d,k.pos),k.pos=l.length,X=null):X=iu(La(g,k,d.state,re),I),re){var ee=re[0].name;ee&&(X="m-"+(X?ee+" "+X:ee))}if(!R||O!=X){for(;L<k.start;)L=Math.min(k.start,L+5e3),m(L,O);O=X}k.start=k.pos}for(;L<k.pos;){var oe=Math.min(k.pos,L+5e3);m(oe,O),L=oe}}function Xf(s,l,g){for(var d,m,I=s.doc,b=g?-1:l-(s.doc.mode.innerMode?1e3:100),R=l;R>b;--R){if(R<=I.first)return I.first;var L=Ae(I,R-1),O=L.stateAfter;if(O&&(!g||R+(O instanceof Wo?O.lookAhead:0)<=I.modeFrontier))return R;var k=Ar(L.text,null,s.options.tabSize);(m==null||d>k)&&(m=R-1,d=k)}return m}function $f(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 m=Ae(s,d).stateAfter;if(m&&(!(m instanceof Wo)||d+m.lookAhead<l)){g=d+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var Po=!1,Bi=!1;function Jf(){Po=!0}function Xt(){Bi=!0}function ln(s,l,g){this.marker=s,this.from=l,this.to=g}function Ns(s,l){if(s)for(var g=0;g<s.length;++g){var d=s[g];if(d.marker==l)return d}}function wa(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 bs(s,l,g){var d;if(s)for(var m=0;m<s.length;++m){var I=s[m],b=I.marker,R=I.from==null||(b.inclusiveLeft?I.from<=l:I.from<l);if(R||I.from==l&&b.type=="bookmark"&&(!g||!I.marker.insertLeft)){var L=I.to==null||(b.inclusiveRight?I.to>=l:I.to>l);(d||(d=[])).push(new ln(b,I.from,L?null:I.to))}}return d}function Ts(s,l,g){var d;if(s)for(var m=0;m<s.length;++m){var I=s[m],b=I.marker,R=I.to==null||(b.inclusiveRight?I.to>=l:I.to>l);if(R||I.from==l&&b.type=="bookmark"&&(!g||I.marker.insertLeft)){var L=I.from==null||(b.inclusiveLeft?I.from<=l:I.from<l);(d||(d=[])).push(new ln(b,L?null:I.from-l,I.to==null?null:I.to-l))}}return d}function Vi(s,l){if(l.full)return null;var g=is(s,l.from.line)&&Ae(s,l.from.line).markedSpans,d=is(s,l.to.line)&&Ae(s,l.to.line).markedSpans;if(!g&&!d)return null;var m=l.from.ch,I=l.to.ch,b=Ye(l.from,l.to)==0,R=bs(g,m,b),L=Ts(d,I,b),O=l.text.length==1,k=Ie(l.text).length+(O?m:0);if(R)for(var X=0;X<R.length;++X){var re=R[X];if(re.to==null){var ee=Ns(L,re.marker);ee?O&&(re.to=ee.to==null?null:ee.to+k):re.to=m}}if(L)for(var oe=0;oe<L.length;++oe){var fe=L[oe];if(fe.to!=null&&(fe.to+=k),fe.from==null){var he=Ns(R,fe.marker);he||(fe.from=k,O&&(R||(R=[])).push(fe))}else fe.from+=k,O&&(R||(R=[])).push(fe)}R&&(R=ss(R)),L&&L!=R&&(L=ss(L));var me=[R];if(!O){var Ce=l.text.length-2,xe;if(Ce>0&&R)for(var be=0;be<R.length;++be)R[be].to==null&&(xe||(xe=[])).push(new ln(R[be].marker,null,null));for(var Ve=0;Ve<Ce;++Ve)me.push(xe);me.push(L)}return me}function ss(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 ys(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||hr(d,fe)==-1)&&(d||(d=[])).push(fe)}}),!d)return null;for(var m=[{from:l,to:g}],I=0;I<d.length;++I)for(var b=d[I],R=b.find(0),L=0;L<m.length;++L){var O=m[L];if(!(Ye(O.to,R.from)<0||Ye(O.from,R.to)>0)){var k=[L,1],X=Ye(O.from,R.from),re=Ye(O.to,R.to);(X<0||!b.inclusiveLeft&&!X)&&k.push({from:O.from,to:R.from}),(re>0||!b.inclusiveRight&&!re)&&k.push({from:R.to,to:O.to}),m.splice.apply(m,k),L+=k.length-3}}return m}function Zo(s){var l=s.markedSpans;if(l){for(var g=0;g<l.length;++g)l[g].marker.detachLine(s);s.markedSpans=null}}function un(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function fn(s){return s.inclusiveLeft?-1:0}function pn(s){return s.inclusiveRight?1:0}function Oa(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var d=s.find(),m=l.find(),I=Ye(d.from,m.from)||fn(s)-fn(l);if(I)return-I;var b=Ye(d.to,m.to)||pn(s)-pn(l);return b||l.id-s.id}function nu(s,l){var g=Bi&&s.markedSpans,d;if(g)for(var m=void 0,I=0;I<g.length;++I)m=g[I],m.marker.collapsed&&(l?m.from:m.to)==null&&(!d||Oa(d,m.marker)<0)&&(d=m.marker);return d}function ko(s){return nu(s,!0)}function He(s){return nu(s,!1)}function Ua(s,l){var g=Bi&&s.markedSpans,d;if(g)for(var m=0;m<g.length;++m){var I=g[m];I.marker.collapsed&&(I.from==null||I.from<l)&&(I.to==null||I.to>l)&&(!d||Oa(d,I.marker)<0)&&(d=I.marker)}return d}function ns(s,l,g,d,m){var I=Ae(s,l),b=Bi&&I.markedSpans;if(b)for(var R=0;R<b.length;++R){var L=b[R];if(L.marker.collapsed){var O=L.marker.find(0),k=Ye(O.from,g)||fn(L.marker)-fn(m),X=Ye(O.to,d)||pn(L.marker)-pn(m);if(!(k>=0&&X<=0||k<=0&&X>=0)&&(k<=0&&(L.marker.inclusiveRight&&m.inclusiveLeft?Ye(O.to,g)>=0:Ye(O.to,g)>0)||k>=0&&(L.marker.inclusiveRight&&m.inclusiveLeft?Ye(O.from,d)<=0:Ye(O.from,d)<0)))return!0}}}function ai(s){for(var l;l=ko(s);)s=l.find(-1,!0).line;return s}function zf(s){for(var l;l=He(s);)s=l.find(1,!0).line;return s}function Ga(s){for(var l,g;l=He(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function _n(s,l){var g=Ae(s,l),d=ai(g);return g==d?l:_e(d)}function Qo(s,l){if(l>s.lastLine())return l;var g=Ae(s,l),d;if(!Ci(s,g))return l;for(;d=He(g);)g=d.find(1,!0).line;return _e(g)+1}function Ci(s,l){var g=Bi&&l.markedSpans;if(g){for(var d=void 0,m=0;m<g.length;++m)if(d=g[m],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&Fa(s,l,d))return!0}}}function Fa(s,l,g){if(g.to==null){var d=g.marker.find(1,!0);return Fa(s,d.line,Ns(d.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==l.text.length)return!0;for(var m=void 0,I=0;I<l.markedSpans.length;++I)if(m=l.markedSpans[I],m.marker.collapsed&&!m.marker.widgetNode&&m.from==g.to&&(m.to==null||m.to!=g.from)&&(m.marker.inclusiveLeft||g.marker.inclusiveRight)&&Fa(s,l,m))return!0}function Mi(s){s=ai(s);for(var l=0,g=s.parent,d=0;d<g.lines.length;++d){var m=g.lines[d];if(m==s)break;l+=m.height}for(var I=g.parent;I;g=I,I=g.parent)for(var b=0;b<I.children.length;++b){var R=I.children[b];if(R==g)break;l+=R.height}return l}function _o(s){if(s.height==0)return 0;for(var l=s.text.length,g,d=s;g=ko(d);){var m=g.find(0,!0);d=m.from.line,l+=m.from.ch-m.to.ch}for(d=s;g=He(d);){var I=g.find(0,!0);l-=d.text.length-I.from.ch,d=I.to.line,l+=d.text.length-I.to.ch}return l}function Ba(s){var l=s.display,g=s.doc;l.maxLine=Ae(g,g.first),l.maxLineLength=_o(l.maxLine),l.maxLineChanged=!0,g.iter(function(d){var m=_o(d);m>l.maxLineLength&&(l.maxLineLength=m,l.maxLine=d)})}var cn=function(s,l,g){this.text=s,un(this,l),this.height=g?g(this):1};cn.prototype.lineNo=function(){return _e(this)},ts(cn);function jf(s,l,g,d){s.text=l,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Zo(s),un(s,g);var m=d?d(s):1;m!=s.height&&Zt(s,m)}function qf(s){s.parent=null,Zo(s)}var Kf={},ep={};function ou(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?ep:Kf;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function au(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 m=0;m<=(l.rest?l.rest.length:0);m++){var I=m?l.rest[m-1]:l.line,b=void 0;d.pos=0,d.addToken=tp,Gi(s.display.measure)&&(b=Tr(I,s.doc.direction))&&(d.addToken=sp(d.addToken,b)),d.map=[];var R=l!=s.display.externalMeasured&&_e(I);np(I,d,Kl(s,I,R)),I.styleClasses&&(I.styleClasses.bgClass&&(d.bgClass=St(I.styleClasses.bgClass,d.bgClass||"")),I.styleClasses.textClass&&(d.textClass=St(I.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(Ta(s.display.measure))),m==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 L=d.content.lastChild;(/\bcm-tab\b/.test(L.className)||L.querySelector&&L.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 rp(s){var l=ve("span","\u2022","cm-invalidchar");return l.title="\\u"+s.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function tp(s,l,g,d,m,I,b){if(l){var R=s.splitSpaces?ip(l,s.trailingSpace):l,L=s.cm.state.specialChars,O=!1,k;if(!L.test(l))s.col+=l.length,k=document.createTextNode(R),s.map.push(s.pos,s.pos+l.length,k),G&&V<9&&(O=!0),s.pos+=l.length;else{k=document.createDocumentFragment();for(var X=0;;){L.lastIndex=X;var re=L.exec(l),ee=re?re.index-X:l.length-X;if(ee){var oe=document.createTextNode(R.slice(X,X+ee));G&&V<9?k.appendChild(ve("span",[oe])):k.appendChild(oe),s.map.push(s.pos,s.pos+ee,oe),s.col+=ee,s.pos+=ee}if(!re)break;X+=ee+1;var fe=void 0;if(re[0]==" "){var he=s.cm.options.tabSize,me=he-s.col%he;fe=k.appendChild(ve("span",ei(me),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),s.col+=me}else re[0]=="\r"||re[0]==`
5
+ `?(fe=k.appendChild(ve("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&&V<9?k.appendChild(ve("span",[fe])):k.appendChild(fe),s.col+=1);s.map.push(s.pos,s.pos+1,fe),s.pos++}}if(s.trailingSpace=R.charCodeAt(l.length-1)==32,g||d||m||O||I||b){var Ce=g||"";d&&(Ce+=d),m&&(Ce+=m);var xe=ve("span",[k],Ce,I);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 ip(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,d="",m=0;m<s.length;m++){var I=s.charAt(m);I==" "&&g&&(m==s.length-1||s.charCodeAt(m+1)==32)&&(I="\xA0"),d+=I,g=I==" "}return d}function sp(s,l){return function(g,d,m,I,b,R,L){m=m?m+" cm-force-border":"cm-force-border";for(var O=g.pos,k=O+d.length;;){for(var X=void 0,re=0;re<l.length&&(X=l[re],!(X.to>O&&X.from<=O));re++);if(X.to>=k)return s(g,d,m,I,b,R,L);s(g,d.slice(0,X.to-O),m,I,null,R,L),I=null,d=d.slice(X.to-O),O=X.to}}}function lu(s,l,g,d){var m=!d&&g.widgetNode;m&&s.map.push(s.pos,s.pos+l,m),!d&&s.cm.display.input.needsContentAttribute&&(m||(m=s.content.appendChild(document.createElement("span"))),m.setAttribute("cm-marker",g.id)),m&&(s.cm.display.input.setUneditable(m),s.content.appendChild(m)),s.pos+=l,s.trailingSpace=!1}function np(s,l,g){var d=s.markedSpans,m=s.text,I=0;if(!d){for(var b=1;b<g.length;b+=2)l.addToken(l,m.slice(I,I=g[b]),ou(g[b+1],l.cm.options));return}for(var R=m.length,L=0,O=1,k="",X,re,ee=0,oe,fe,he,me,Ce;;){if(ee==L){oe=fe=he=re="",Ce=null,me=null,ee=1/0;for(var xe=[],be=void 0,Ve=0;Ve<d.length;++Ve){var Fe=d[Ve],qe=Fe.marker;if(qe.type=="bookmark"&&Fe.from==L&&qe.widgetNode)xe.push(qe);else if(Fe.from<=L&&(Fe.to==null||Fe.to>L||qe.collapsed&&Fe.to==L&&Fe.from==L)){if(Fe.to!=null&&Fe.to!=L&&ee>Fe.to&&(ee=Fe.to,fe=""),qe.className&&(oe+=" "+qe.className),qe.css&&(re=(re?re+";":"")+qe.css),qe.startStyle&&Fe.from==L&&(he+=" "+qe.startStyle),qe.endStyle&&Fe.to==ee&&(be||(be=[])).push(qe.endStyle,Fe.to),qe.title&&((Ce||(Ce={})).title=qe.title),qe.attributes)for(var mr in qe.attributes)(Ce||(Ce={}))[mr]=qe.attributes[mr];qe.collapsed&&(!me||Oa(me.marker,qe)<0)&&(me=Fe)}else Fe.from>L&&ee>Fe.from&&(ee=Fe.from)}if(be)for(var st=0;st<be.length;st+=2)be[st+1]==ee&&(fe+=" "+be[st]);if(!me||me.from==L)for(var Lr=0;Lr<xe.length;++Lr)lu(l,0,xe[Lr]);if(me&&(me.from||0)==L){if(lu(l,(me.to==null?R+1:me.to)-L,me.marker,me.from==null),me.to==null)return;me.to==L&&(me=!1)}}if(L>=R)break;for(var _t=Math.min(R,ee);;){if(k){var Dt=L+k.length;if(!me){var _r=Dt>_t?k.slice(0,_t-L):k;l.addToken(l,_r,X?X+oe:oe,he,L+_r.length==ee?fe:"",re,Ce)}if(Dt>=_t){k=k.slice(_t-L),L=_t;break}L=Dt,he=""}k=m.slice(I,I=g[O++]),X=ou(g[O++],l.cm.options)}}}function hn(s,l,g){this.line=l,this.rest=Ga(l),this.size=this.rest?_e(Ie(this.rest))-g+1:1,this.node=this.text=null,this.hidden=Ci(s,l)}function os(s,l,g){for(var d=[],m,I=l;I<g;I=m){var b=new hn(s.doc,Ae(s.doc,I),I);m=I+b.size,d.push(b)}return d}var Ai=null;function op(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function ap(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 m=s.ops[d];if(m.cursorActivityHandlers)for(;m.cursorActivityCalled<m.cursorActivityHandlers.length;)m.cursorActivityHandlers[m.cursorActivityCalled++].call(null,m.cm)}}while(g<l.length)}function lp(s,l){var g=s.ownsGroup;if(g)try{ap(g)}finally{Ai=null,l(g)}}var Hn=null;function rt(s,l){var g=ni(s,l);if(g.length){var d=Array.prototype.slice.call(arguments,2),m;Ai?m=Ai.delayedCallbacks:Hn?m=Hn:(m=Hn=[],setTimeout(gt,0));for(var I=function(R){m.push(function(){return g[R].apply(null,d)})},b=0;b<g.length;++b)I(b)}}function gt(){var s=Hn;Hn=null;for(var l=0;l<s.length;++l)s[l]()}function uu(s,l,g,d){for(var m=0;m<l.changes.length;m++){var I=l.changes[m];I=="text"?Qr(s,l):I=="gutter"?as(s,l,g,d):I=="class"?Yn(s,l):I=="widget"&&Gt(s,l,d)}l.changes=null}function ae(s){return s.node==s.text&&(s.node=ve("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),G&&V<8&&(s.node.style.zIndex=2)),s.node}function Rs(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=ae(l);l.background=d.insertBefore(ve("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):au(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){Rs(s,l),l.line.wrapClass?ae(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 as(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 m=ae(l);l.gutterBackground=ve("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),m.insertBefore(l.gutterBackground,l.text)}var I=l.line.gutterMarkers;if(s.options.lineNumbers||I){var b=ae(l),R=l.gutter=ve("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");if(R.setAttribute("aria-hidden","true"),s.display.input.setUneditable(R),b.insertBefore(R,l.text),l.line.gutterClass&&(R.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!I||!I["CodeMirror-linenumbers"])&&(l.lineNumber=R.appendChild(ve("div",ya(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),I)for(var L=0;L<s.display.gutterSpecs.length;++L){var O=s.display.gutterSpecs[L].className,k=I.hasOwnProperty(O)&&I[O];k&&R.appendChild(ve("div",[k],"CodeMirror-gutter-elt","left: "+d.gutterLeft[O]+"px; width: "+d.gutterWidth[O]+"px"))}}}function Gt(s,l,g){l.alignable&&(l.alignable=null);for(var d=we("CodeMirror-linewidget"),m=l.node.firstChild,I=void 0;m;m=I)I=m.nextSibling,d.test(m.className)&&l.node.removeChild(m);fu(s,l,g)}function Ft(s,l,g,d){var m=ue(s,l);return l.text=l.node=m.pre,m.bgClass&&(l.bgClass=m.bgClass),m.textClass&&(l.textClass=m.textClass),Yn(s,l),as(s,l,g,d),fu(s,l,d),l.node}function fu(s,l,g){if(pu(s,l.line,l,g,!0),l.rest)for(var d=0;d<l.rest.length;d++)pu(s,l.rest[d],l,g,!1)}function pu(s,l,g,d,m){if(l.widgets)for(var I=ae(g),b=0,R=l.widgets;b<R.length;++b){var L=R[b],O=ve("div",[L.node],"CodeMirror-linewidget"+(L.className?" "+L.className:""));L.handleMouseEvents||O.setAttribute("cm-ignore-events","true"),up(L,O,g,d),s.display.input.setUneditable(O),m&&L.above?I.insertBefore(O,g.gutter||g.text):I.appendChild(O),rt(L,"redraw")}}function up(s,l,g,d){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var m=d.wrapperWidth;l.style.left=d.fixedPos+"px",s.coverGutter||(m-=d.gutterTotalWidth,l.style.paddingLeft=d.gutterTotalWidth+"px"),l.style.width=m+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-d.gutterTotalWidth+"px"))}function Wi(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;"),Ke(l.display.measure,ve("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Pi(s,l){for(var g=en(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 dn(s){return s.lineSpace.offsetTop}function Da(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function cu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Ke(s.measure,ve("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 Ii(s){return Kt-s.display.nativeBarWidth}function Ss(s){return s.display.scroller.clientWidth-Ii(s)-s.display.barWidth}function Va(s){return s.display.scroller.clientHeight-Ii(s)-s.display.barHeight}function fp(s,l,g){var d=s.options.lineWrapping,m=d&&Ss(s);if(!l.measure.heights||d&&l.measure.width!=m){var I=l.measure.heights=[];if(d){l.measure.width=m;for(var b=l.text.firstChild.getClientRects(),R=0;R<b.length-1;R++){var L=b[R],O=b[R+1];Math.abs(L.bottom-O.bottom)>2&&I.push((L.bottom+O.top)/2-g.top)}}I.push(g.bottom-g.top)}}function Ho(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 m=0;m<s.rest.length;m++)if(_e(s.rest[m])>g)return{map:s.measure.maps[m],cache:s.measure.caches[m],before:!0}}}function $t(s,l){l=ai(l);var g=_e(l),d=s.display.externalMeasured=new hn(s.doc,l,g);d.lineN=g;var m=d.built=au(s,d);return d.text=m.pre,Ke(s.display.lineMeasure,m.pre),d}function hu(s,l,g,d){return Ni(s,gn(s,l),g,d)}function Et(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[Zi(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function gn(s,l){var g=_e(l),d=Et(s,g);d&&!d.text?d=null:d&&d.changes&&(uu(s,d,g,Os(s)),s.curOp.forceUpdate=!0),d||(d=$t(s,l));var m=Ho(d,l,g);return{line:l,view:d,rect:null,map:m.map,cache:m.cache,before:m.before,hasHeights:!1}}function Ni(s,l,g,d,m){l.before&&(g=-1);var I=g+(d||""),b;return l.cache.hasOwnProperty(I)?b=l.cache[I]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(fp(s,l.view,l.rect),l.hasHeights=!0),b=Xn(s,l,g,d),b.bogus||(l.cache[I]=b)),{left:b.left,right:b.right,top:m?b.rtop:b.top,bottom:m?b.rbottom:b.bottom}}var du={left:0,right:0,top:0,bottom:0};function gu(s,l,g){for(var d,m,I,b,R,L,O=0;O<s.length;O+=3)if(R=s[O],L=s[O+1],l<R?(m=0,I=1,b="left"):l<L?(m=l-R,I=m+1):(O==s.length-3||l==L&&s[O+3]>l)&&(I=L-R,m=I-1,l>=L&&(b="right")),m!=null){if(d=s[O+2],R==L&&g==(d.insertLeft?"left":"right")&&(b=g),g=="left"&&m==0)for(;O&&s[O-2]==s[O-3]&&s[O-1].insertLeft;)d=s[(O-=3)+2],b="left";if(g=="right"&&m==L-R)for(;O<s.length-3&&s[O+3]==s[O+4]&&!s[O+5].insertLeft;)d=s[(O+=3)+2],b="right";break}return{node:d,start:m,end:I,collapse:b,coverStart:R,coverEnd:L}}function pp(s,l){var g=du;if(l=="left")for(var d=0;d<s.length&&(g=s[d]).left==g.right;d++);else for(var m=s.length-1;m>=0&&(g=s[m]).left==g.right;m--);return g}function Xn(s,l,g,d){var m=gu(l.map,g,d),I=m.node,b=m.start,R=m.end,L=m.collapse,O;if(I.nodeType==3){for(var k=0;k<4;k++){for(;b&&ct(l.line.text.charAt(m.coverStart+b));)--b;for(;m.coverStart+R<m.coverEnd&&ct(l.line.text.charAt(m.coverStart+R));)++R;if(G&&V<9&&b==0&&R==m.coverEnd-m.coverStart?O=I.parentNode.getBoundingClientRect():O=pp(Cr(I,b,R).getClientRects(),d),O.left||O.right||b==0)break;R=b,b=b-1,L="right"}G&&V<11&&(O=cp(s.display.measure,O))}else{b>0&&(L=d="right");var X;s.options.lineWrapping&&(X=I.getClientRects()).length>1?O=X[d=="right"?X.length-1:0]:O=I.getBoundingClientRect()}if(G&&V<9&&!b&&(!O||!O.left&&!O.right)){var re=I.parentNode.getClientRects()[0];re?O={left:re.left,right:re.left+us(s.display),top:re.top,bottom:re.bottom}:O=du}for(var ee=O.top-l.rect.top,oe=O.bottom-l.rect.top,fe=(ee+oe)/2,he=l.view.measure.heights,me=0;me<he.length-1&&!(fe<he[me]);me++);var Ce=me?he[me-1]:0,xe=he[me],be={left:(L=="right"?O.right:O.left)-l.rect.left,right:(L=="left"?O.left:O.right)-l.rect.left,top:Ce,bottom:xe};return!O.left&&!O.right&&(be.bogus=!0),s.options.singleCursorHeightPerLine||(be.rtop=ee,be.rbottom=oe),be}function cp(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 Eu(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 Yo(s){s.display.externalMeasure=null,Me(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)Eu(s.display.view[l])}function Ls(s){Yo(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function En(s){return _&&D?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function vu(s){return _&&D?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Ma(s){var l=ai(s),g=l.widgets,d=0;if(g)for(var m=0;m<g.length;++m)g[m].above&&(d+=Wi(g[m]));return d}function vn(s,l,g,d,m){if(!m){var I=Ma(l);g.top+=I,g.bottom+=I}if(d=="line")return g;d||(d="local");var b=Mi(l);if(d=="local"?b+=dn(s.display):b-=s.display.viewOffset,d=="page"||d=="window"){var R=s.display.lineSpace.getBoundingClientRect();b+=R.top+(d=="window"?0:vu(cr(s)));var L=R.left+(d=="window"?0:En(cr(s)));g.left+=L,g.right+=L}return g.top+=b,g.bottom+=b,g}function ls(s,l,g){if(g=="div")return l;var d=l.left,m=l.top;if(g=="page")d-=En(cr(s)),m-=vu(cr(s));else if(g=="local"||!g){var I=s.display.sizer.getBoundingClientRect();d+=I.left,m+=I.top}var b=s.display.lineSpace.getBoundingClientRect();return{left:d-b.left,top:m-b.top}}function Xo(s,l,g,d,m){return d||(d=Ae(s.doc,l.line)),vn(s,d,hu(s,d,l.ch,m),g)}function $e(s,l,g,d,m,I){d=d||Ae(s.doc,l.line),m||(m=gn(s,d));function b(oe,fe){var he=Ni(s,m,oe,fe?"right":"left",I);return fe?he.left=he.right:he.right=he.left,vn(s,d,he,g)}var R=Tr(d,s.doc.direction),L=l.ch,O=l.sticky;if(L>=d.text.length?(L=d.text.length,O="before"):L<=0&&(L=0,O="after"),!R)return b(O=="before"?L-1:L,O=="before");function k(oe,fe,he){var me=R[fe],Ce=me.level==1;return b(he?oe-1:oe,Ce!=he)}var X=bt(R,L,O),re=ti,ee=k(L,X,O=="before");return re!=null&&(ee.other=k(L,re,O!="before")),ee}function mu(s,l){var g=0;l=Xe(s.doc,l),s.options.lineWrapping||(g=us(s.display)*l.ch);var d=Ae(s.doc,l.line),m=Mi(d)+dn(s.display);return{left:g,right:g,top:m,bottom:m+d.height}}function Wa(s,l,g,d,m){var I=ce(s,l,g);return I.xRel=m,d&&(I.outside=d),I}function Pa(s,l,g){var d=s.doc;if(g+=s.display.viewOffset,g<0)return Wa(d.first,0,null,-1,-1);var m=mi(d,g),I=d.first+d.size-1;if(m>I)return Wa(d.first+d.size-1,Ae(d,I).text.length,null,1,1);l<0&&(l=0);for(var b=Ae(d,m);;){var R=hp(s,b,m,l,g),L=Ua(b,R.ch+(R.xRel>0||R.outside>0?1:0));if(!L)return R;var O=L.find(1);if(O.line==m)return O;b=Ae(d,m=O.line)}}function xu(s,l,g,d){d-=Ma(l);var m=l.text.length,I=ri(function(b){return Ni(s,g,b-1).bottom<=d},m,0);return m=ri(function(b){return Ni(s,g,b).top>d},I,m),{begin:I,end:m}}function Cu(s,l,g,d){g||(g=gn(s,l));var m=vn(s,l,Ni(s,g,d),"line").top;return xu(s,l,g,m)}function $n(s,l,g,d){return s.bottom<=g?!1:s.top>g?!0:(d?s.left:s.right)>l}function hp(s,l,g,d,m){m-=Mi(l);var I=gn(s,l),b=Ma(l),R=0,L=l.text.length,O=!0,k=Tr(l,s.doc.direction);if(k){var X=(s.options.lineWrapping?ws:Ze)(s,l,g,I,k,d,m);O=X.level!=1,R=O?X.from:X.to-1,L=O?X.to:X.from-1}var re=null,ee=null,oe=ri(function(Ve){var Fe=Ni(s,I,Ve);return Fe.top+=b,Fe.bottom+=b,$n(Fe,d,m,!1)?(Fe.top<=m&&Fe.left<=d&&(re=Ve,ee=Fe),!0):!1},R,L),fe,he,me=!1;if(ee){var Ce=d-ee.left<ee.right-d,xe=Ce==O;oe=re+(xe?0:1),he=xe?"after":"before",fe=Ce?ee.left:ee.right}else{!O&&(oe==L||oe==R)&&oe++,he=oe==0?"after":oe==l.text.length?"before":Ni(s,I,oe-(O?1:0)).bottom+b<=m==O?"after":"before";var be=$e(s,ce(g,oe,he),"line",l,I);fe=be.left,me=m<be.top?-1:m>=be.bottom?1:0}return oe=Nr(l.text,oe,1),Wa(g,oe,he,me,d-fe)}function Ze(s,l,g,d,m,I,b){var R=ri(function(X){var re=m[X],ee=re.level!=1;return $n($e(s,ce(g,ee?re.to:re.from,ee?"before":"after"),"line",l,d),I,b,!0)},0,m.length-1),L=m[R];if(R>0){var O=L.level!=1,k=$e(s,ce(g,O?L.from:L.to,O?"after":"before"),"line",l,d);$n(k,I,b,!0)&&k.top>b&&(L=m[R-1])}return L}function ws(s,l,g,d,m,I,b){var R=xu(s,l,d,b),L=R.begin,O=R.end;/\s/.test(l.text.charAt(O-1))&&O--;for(var k=null,X=null,re=0;re<m.length;re++){var ee=m[re];if(!(ee.from>=O||ee.to<=L)){var oe=ee.level!=1,fe=Ni(s,d,oe?Math.min(O,ee.to)-1:Math.max(L,ee.from)).right,he=fe<I?I-fe+1e9:fe-I;(!k||X>he)&&(k=ee,X=he)}}return k||(k=m[m.length-1]),k.from<L&&(k={from:L,to:k.to,level:k.level}),k.to>O&&(k={from:k.from,to:O,level:k.level}),k}var Jt;function Mr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(Jt==null){Jt=ve("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)Jt.appendChild(document.createTextNode("x")),Jt.appendChild(ve("br"));Jt.appendChild(document.createTextNode("x"))}Ke(s.measure,Jt);var g=Jt.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Me(s.measure),g||1}function us(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=ve("span","xxxxxxxxxx"),g=ve("pre",[l],"CodeMirror-line-like");Ke(s.measure,g);var d=l.getBoundingClientRect(),m=(d.right-d.left)/10;return m>2&&(s.cachedCharWidth=m),m||10}function Os(s){for(var l=s.display,g={},d={},m=l.gutters.clientLeft,I=l.gutters.firstChild,b=0;I;I=I.nextSibling,++b){var R=s.display.gutterSpecs[b].className;g[R]=I.offsetLeft+I.clientLeft+m,d[R]=I.clientWidth}return{fixedPos:vt(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:d,wrapperWidth:l.wrapper.clientWidth}}function vt(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function mn(s){var l=Mr(s.display),g=s.options.lineWrapping,d=g&&Math.max(5,s.display.scroller.clientWidth/us(s.display)-3);return function(m){if(Ci(s.doc,m))return 0;var I=0;if(m.widgets)for(var b=0;b<m.widgets.length;b++)m.widgets[b].height&&(I+=m.widgets[b].height);return g?I+(Math.ceil(m.text.length/d)||1)*l:I+l}}function Us(s){var l=s.doc,g=mn(s);l.iter(function(d){var m=g(d);m!=d.height&&Zt(d,m)})}function li(s,l,g,d){var m=s.display;if(!g&&en(l).getAttribute("cm-not-content")=="true")return null;var I,b,R=m.lineSpace.getBoundingClientRect();try{I=l.clientX-R.left,b=l.clientY-R.top}catch{return null}var L=Pa(s,I,b),O;if(d&&L.xRel>0&&(O=Ae(s.doc,L.line).text).length==L.ch){var k=Ar(O,O.length,s.options.tabSize)-O.length;L=ce(L.line,Math.max(0,Math.round((I-cu(s.display).left)/us(s.display))-k))}return L}function Zi(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 mt(s,l,g,d){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),d||(d=0);var m=s.display;if(d&&g<m.viewTo&&(m.updateLineNumbers==null||m.updateLineNumbers>l)&&(m.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=m.viewTo)Bi&&_n(s.doc,l)<m.viewTo&&bi(s);else if(g<=m.viewFrom)Bi&&Qo(s.doc,g+d)>m.viewFrom?bi(s):(m.viewFrom+=d,m.viewTo+=d);else if(l<=m.viewFrom&&g>=m.viewTo)bi(s);else if(l<=m.viewFrom){var I=fs(s,g,g+d,1);I?(m.view=m.view.slice(I.index),m.viewFrom=I.lineN,m.viewTo+=d):bi(s)}else if(g>=m.viewTo){var b=fs(s,l,l,-1);b?(m.view=m.view.slice(0,b.index),m.viewTo=b.lineN):bi(s)}else{var R=fs(s,l,l,-1),L=fs(s,g,g+d,1);R&&L?(m.view=m.view.slice(0,R.index).concat(os(s,R.lineN,L.lineN)).concat(m.view.slice(L.index)),m.viewTo+=d):bi(s)}var O=m.externalMeasured;O&&(g<O.lineN?O.lineN+=d:l<O.lineN+O.size&&(m.externalMeasured=null))}function kt(s,l,g){s.curOp.viewChanged=!0;var d=s.display,m=s.display.externalMeasured;if(m&&l>=m.lineN&&l<m.lineN+m.size&&(d.externalMeasured=null),!(l<d.viewFrom||l>=d.viewTo)){var I=d.view[Zi(s,l)];if(I.node!=null){var b=I.changes||(I.changes=[]);hr(b,g)==-1&&b.push(g)}}}function bi(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function fs(s,l,g,d){var m=Zi(s,l),I,b=s.display.view;if(!Bi||g==s.doc.first+s.doc.size)return{index:m,lineN:g};for(var R=s.display.viewFrom,L=0;L<m;L++)R+=b[L].size;if(R!=l){if(d>0){if(m==b.length-1)return null;I=R+b[m].size-l,m++}else I=R-l;l+=I,g+=I}for(;_n(s.doc,g)!=g;){if(m==(d<0?0:b.length-1))return null;g+=d*b[m-(d<0?1:0)].size,m+=d}return{index:m,lineN:g}}function Jn(s,l,g){var d=s.display,m=d.view;m.length==0||l>=d.viewTo||g<=d.viewFrom?(d.view=os(s,l,g),d.viewFrom=l):(d.viewFrom>l?d.view=os(s,l,d.viewFrom).concat(d.view):d.viewFrom<l&&(d.view=d.view.slice(Zi(s,l))),d.viewFrom=l,d.viewTo<g?d.view=d.view.concat(os(s,d.viewTo,g)):d.viewTo>g&&(d.view=d.view.slice(0,Zi(s,g)))),d.viewTo=g}function $o(s){for(var l=s.display.view,g=0,d=0;d<l.length;d++){var m=l[d];!m.hidden&&(!m.node||m.changes)&&++g}return g}function Gs(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ps(s,l){l===void 0&&(l=!0);var g=s.doc,d={},m=d.cursors=document.createDocumentFragment(),I=d.selection=document.createDocumentFragment(),b=s.options.$customCursor;b&&(l=!0);for(var R=0;R<g.sel.ranges.length;R++)if(!(!l&&R==g.sel.primIndex)){var L=g.sel.ranges[R];if(!(L.from().line>=s.display.viewTo||L.to().line<s.display.viewFrom)){var O=L.empty();if(b){var k=b(s,L);k&&Fs(s,k,m)}else(O||s.options.showCursorWhenSelecting)&&Fs(s,L.head,m);O||dp(s,L,I)}}return d}function Fs(s,l,g){var d=$e(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),m=g.appendChild(ve("div","\xA0","CodeMirror-cursor"));if(m.style.left=d.left+"px",m.style.top=d.top+"px",m.style.height=Math.max(0,d.bottom-d.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var I=Xo(s,l,"div",null,null),b=I.right-I.left;m.style.width=(b>0?b:s.defaultCharWidth())+"px"}if(d.other){var R=g.appendChild(ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));R.style.display="",R.style.left=d.other.left+"px",R.style.top=d.other.top+"px",R.style.height=(d.other.bottom-d.other.top)*.85+"px"}}function Wr(s,l){return s.top-l.top||s.left-l.left}function dp(s,l,g){var d=s.display,m=s.doc,I=document.createDocumentFragment(),b=cu(s.display),R=b.left,L=Math.max(d.sizerWidth,Ss(s)-d.sizer.offsetLeft)-b.right,O=m.direction=="ltr";function k(xe,be,Ve,Fe){be<0&&(be=0),be=Math.round(be),Fe=Math.round(Fe),I.appendChild(ve("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
6
6
  top: `+be+"px; width: "+(Ve??L-xe)+`px;
7
- height: `+(Fe-be)+"px"))}function $(xe,be,Ve){var Fe=Ae(m,xe),qe=Fe.text.length,mr,it;function Sr(_r,Dt){return Xo(s,ce(xe,_r),"div",Fe,Dt)}function Qt(_r,Dt,ot){var jr=Cu(s,Fe,null,_r),Qr=Dt=="ltr"==(ot=="after")?"left":"right",Ur=ot=="after"?jr.begin:jr.end-(/\s/.test(Fe.text.charAt(jr.end-1))?2:1);return Sr(Ur,Qr)[Qr]}var Bt=br(Fe,m.direction);return Ui(Bt,be||0,Ve??qe,function(_r,Dt,ot,jr){var Qr=ot=="ltr",Ur=Sr(_r,Qr?"left":"right"),Vt=Sr(Dt-1,Qr?"right":"left"),Fn=be==null&&_r==0,vs=Ve==null&&Dt==qe,vt=jr==0,Si=!Bt||jr==Bt.length-1;if(Vt.top-Ur.top<=3){var st=(U?Fn:vs)&&vt,ul=(U?vs:Fn)&&Si,Hi=st?y:(Qr?Ur:Vt).left,Ws=ul?L:(Qr?Vt:Ur).right;k(Hi,Ur.top,Ws-Hi,Ur.bottom)}else{var ks,Tt,Bn,fl;Qr?(ks=U&&Fn&&vt?y:Ur.left,Tt=U?L:Qt(_r,ot,"before"),Bn=U?y:Qt(Dt,ot,"after"),fl=U&&vs&&Si?L:Vt.right):(ks=U?Qt(_r,ot,"before"):y,Tt=!U&&Fn&&vt?L:Ur.right,Bn=!U&&vs&&Si?y:Vt.left,fl=U?Qt(Dt,ot,"after"):L),k(ks,Ur.top,Tt-ks,Ur.bottom),Ur.bottom<Vt.top&&k(y,Ur.bottom,null,Vt.top),k(Bn,Vt.top,fl-Bn,Vt.bottom)}(!mr||Vr(Ur,mr)<0)&&(mr=Ur),Vr(Vt,mr)<0&&(mr=Vt),(!it||Vr(Ur,it)<0)&&(it=Ur),Vr(Vt,it)<0&&(it=Vt)}),{start:mr,end:it}}var re=l.from(),K=l.to();if(re.line==K.line)$(re.line,re.ch,K.ch);else{var oe=Ae(m,re.line),fe=Ae(m,K.line),he=ai(oe)==ai(fe),me=$(re.line,re.ch,he?oe.text.length+1:null).end,Ce=$(K.line,he?0:null,K.ch).start;he&&(me.top<Ce.top-2?(k(me.right,me.top,null,me.bottom),k(y,Ce.top,Ce.left,Ce.bottom)):k(me.right,me.top,Ce.left-me.right,me.bottom)),me.bottom<Ce.top&&k(y,me.bottom,null,Ce.top)}g.appendChild(I)}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()||mn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Au(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||_a(s))}function Za(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&mn(s))},100)}function _a(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,Je(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),W&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),ka(s))}function mn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(ar(s,"blur",s,l),s.state.focused=!1,We(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),m=l.lineDiv.getBoundingClientRect().top,I=0,b=0;b<l.view.length;b++){var y=l.view[b],L=s.options.lineWrapping,U=void 0,k=0;if(!y.hidden){if(m+=y.line.height,O&&V<8){var $=y.node.offsetTop+y.node.offsetHeight;U=$-g,g=$}else{var re=y.node.getBoundingClientRect();U=re.bottom-re.top,!L&&y.text.firstChild&&(k=y.text.firstChild.getBoundingClientRect().right-re.left-1)}var K=y.line.height-U;if((K>.005||K<-.005)&&(m<d&&(I-=K),kt(y.line,U),Iu(y.line),y.rest))for(var oe=0;oe<y.rest.length;oe++)Iu(y.rest[oe]);if(k>s.display.sizerWidth){var fe=Math.ceil(k/us(s.display));fe>s.display.maxLineLength&&(s.display.maxLineLength=fe,s.display.maxLine=y.line,s.display.maxLineChanged=!0)}}}Math.abs(I)>2&&(l.scroller.scrollTop+=I)}function Iu(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 zo(s,l,g){var d=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;d=Math.floor(d-hn(s));var m=g&&g.bottom!=null?g.bottom:d+s.wrapper.clientHeight,I=mi(l,d),b=mi(l,m);if(g&&g.ensure){var y=g.ensure.from.line,L=g.ensure.to.line;y<I?(I=y,b=mi(l,Mi(Ae(l,y))+s.wrapper.clientHeight)):Math.min(L,l.lastLine())>=b&&(I=mi(l,Mi(Ae(l,L))-s.wrapper.clientHeight),b=L)}return{from:I,to:Math.max(b,I+1)}}function gp(s,l){if(!dr(s,"scrollCursorIntoView")){var g=s.display,d=g.sizer.getBoundingClientRect(),m=null,I=g.wrapper.ownerDocument;if(l.top+d.top<0?m=!0:l.bottom+d.top>(I.defaultView.innerHeight||I.documentElement.clientHeight)&&(m=!1),m!=null&&!Y){var b=ve("div","\u200B",null,`position: absolute;
8
- top: `+(l.top-g.viewOffset-hn(s.display))+`px;
7
+ height: `+(Fe-be)+"px"))}function X(xe,be,Ve){var Fe=Ae(m,xe),qe=Fe.text.length,mr,st;function Lr(_r,Vt){return Xo(s,ce(xe,_r),"div",Fe,Vt)}function _t(_r,Vt,lt){var jr=Cu(s,Fe,null,_r),Hr=Vt=="ltr"==(lt=="after")?"left":"right",Gr=lt=="after"?jr.begin:jr.end-(/\s/.test(Fe.text.charAt(jr.end-1))?2:1);return Lr(Gr,Hr)[Hr]}var Dt=Tr(Fe,m.direction);return Ui(Dt,be||0,Ve??qe,function(_r,Vt,lt,jr){var Hr=lt=="ltr",Gr=Lr(_r,Hr?"left":"right"),Mt=Lr(Vt-1,Hr?"right":"left"),Bn=be==null&&_r==0,vs=Ve==null&&Vt==qe,Ct=jr==0,Si=!Dt||jr==Dt.length-1;if(Mt.top-Gr.top<=3){var nt=(O?Bn:vs)&&Ct,ul=(O?vs:Bn)&&Si,Hi=nt?R:(Hr?Gr:Mt).left,Ps=ul?L:(Hr?Mt:Gr).right;k(Hi,Gr.top,Ps-Hi,Gr.bottom)}else{var Zs,yt,Dn,fl;Hr?(Zs=O&&Bn&&Ct?R:Gr.left,yt=O?L:_t(_r,lt,"before"),Dn=O?R:_t(Vt,lt,"after"),fl=O&&vs&&Si?L:Mt.right):(Zs=O?_t(_r,lt,"before"):R,yt=!O&&Bn&&Ct?L:Gr.right,Dn=!O&&vs&&Si?R:Mt.left,fl=O?_t(Vt,lt,"after"):L),k(Zs,Gr.top,yt-Zs,Gr.bottom),Gr.bottom<Mt.top&&k(R,Gr.bottom,null,Mt.top),k(Dn,Mt.top,fl-Dn,Mt.bottom)}(!mr||Wr(Gr,mr)<0)&&(mr=Gr),Wr(Mt,mr)<0&&(mr=Mt),(!st||Wr(Gr,st)<0)&&(st=Gr),Wr(Mt,st)<0&&(st=Mt)}),{start:mr,end:st}}var re=l.from(),ee=l.to();if(re.line==ee.line)X(re.line,re.ch,ee.ch);else{var oe=Ae(m,re.line),fe=Ae(m,ee.line),he=ai(oe)==ai(fe),me=X(re.line,re.ch,he?oe.text.length+1:null).end,Ce=X(ee.line,he?0:null,ee.ch).start;he&&(me.top<Ce.top-2?(k(me.right,me.top,null,me.bottom),k(R,Ce.top,Ce.left,Ce.bottom)):k(me.right,me.top,Ce.left-me.right,me.bottom)),me.bottom<Ce.top&&k(R,me.bottom,null,Ce.top)}g.appendChild(I)}function Za(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()||xn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Au(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||Qa(s))}function ka(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&xn(s))},100)}function Qa(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,Je(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()),Za(s))}function xn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(ar(s,"blur",s,l),s.state.focused=!1,Pe(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),m=l.lineDiv.getBoundingClientRect().top,I=0,b=0;b<l.view.length;b++){var R=l.view[b],L=s.options.lineWrapping,O=void 0,k=0;if(!R.hidden){if(m+=R.line.height,G&&V<8){var X=R.node.offsetTop+R.node.offsetHeight;O=X-g,g=X}else{var re=R.node.getBoundingClientRect();O=re.bottom-re.top,!L&&R.text.firstChild&&(k=R.text.firstChild.getBoundingClientRect().right-re.left-1)}var ee=R.line.height-O;if((ee>.005||ee<-.005)&&(m<d&&(I-=ee),Zt(R.line,O),Iu(R.line),R.rest))for(var oe=0;oe<R.rest.length;oe++)Iu(R.rest[oe]);if(k>s.display.sizerWidth){var fe=Math.ceil(k/us(s.display));fe>s.display.maxLineLength&&(s.display.maxLineLength=fe,s.display.maxLine=R.line,s.display.maxLineChanged=!0)}}}Math.abs(I)>2&&(l.scroller.scrollTop+=I)}function Iu(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 zo(s,l,g){var d=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;d=Math.floor(d-dn(s));var m=g&&g.bottom!=null?g.bottom:d+s.wrapper.clientHeight,I=mi(l,d),b=mi(l,m);if(g&&g.ensure){var R=g.ensure.from.line,L=g.ensure.to.line;R<I?(I=R,b=mi(l,Mi(Ae(l,R))+s.wrapper.clientHeight)):Math.min(L,l.lastLine())>=b&&(I=mi(l,Mi(Ae(l,L))-s.wrapper.clientHeight),b=L)}return{from:I,to:Math.max(b,I+1)}}function gp(s,l){if(!dr(s,"scrollCursorIntoView")){var g=s.display,d=g.sizer.getBoundingClientRect(),m=null,I=g.wrapper.ownerDocument;if(l.top+d.top<0?m=!0:l.bottom+d.top>(I.defaultView.innerHeight||I.documentElement.clientHeight)&&(m=!1),m!=null&&!$){var b=ve("div","\u200B",null,`position: absolute;
8
+ top: `+(l.top-g.viewOffset-dn(s.display))+`px;
9
9
  height: `+(l.bottom-l.top+Ii(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(m),s.display.lineSpace.removeChild(b)}}}function Ep(s,l,g,d){d==null&&(d=0);var m;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?ce(l.line,l.ch+1,"before"):l,l=l.ch?ce(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var I=0;I<5;I++){var b=!1,y=Ye(s,l),L=!g||g==l?y:Ye(s,g);m={left:Math.min(y.left,L.left),top:Math.min(y.top,L.top)-d,right:Math.max(y.left,L.left),bottom:Math.max(y.bottom,L.bottom)+d};var U=Qa(s,m),k=s.doc.scrollTop,$=s.doc.scrollLeft;if(U.scrollTop!=null&&(zn(s,U.scrollTop),Math.abs(s.doc.scrollTop-k)>1&&(b=!0)),U.scrollLeft!=null&&(Bs(s,U.scrollLeft),Math.abs(s.doc.scrollLeft-$)>1&&(b=!0)),!b)break}return m}function vp(s,l){var g=Qa(s,l);g.scrollTop!=null&&zn(s,g.scrollTop),g.scrollLeft!=null&&Bs(s,g.scrollLeft)}function Qa(s,l){var g=s.display,d=Dr(s.display);l.top<0&&(l.top=0);var m=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,I=Va(s),b={};l.bottom-l.top>I&&(l.bottom=l.top+I);var y=s.doc.height+Da(g),L=l.top<d,U=l.bottom>y-d;if(l.top<m)b.scrollTop=L?0:l.top;else if(l.bottom>m+I){var k=Math.min(l.top,(U?y:l.bottom)-I);k!=m&&(b.scrollTop=k)}var $=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-$,K=Ss(s)-g.gutters.offsetWidth,oe=l.right-l.left>K;return oe&&(l.right=l.left+K),l.left<10?b.scrollLeft=0:l.left<re?b.scrollLeft=Math.max(0,l.left+$-(oe?0:10)):l.right>K+re-3&&(b.scrollLeft=l.right+(oe?0:10)-K),b}function Ha(s,l){l!=null&&(jo(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function xn(s){jo(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)&&jo(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function mp(s,l){jo(s),s.curOp.scrollToPos=l}function jo(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=mu(s,l.from),d=mu(s,l.to);Nu(s,g,d,l.margin)}}function Nu(s,l,g,d){var m=Qa(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,m.scrollLeft,m.scrollTop)}function zn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||Xa(s,{top:l}),bu(s,l,!0),e&&Xa(s),Kn(s,100))}function bu(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 Bs(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,Lu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function jn(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+Ii(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Ds=function(s,l,g){this.cm=g;var d=this.vert=ve("div",[ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),m=this.horiz=ve("div",[ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=m.tabIndex=-1,s(d),s(m),Ue(d,"scroll",function(){d.clientHeight&&l(d.scrollTop,"vertical")}),Ue(m,"scroll",function(){m.clientWidth&&l(m.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&V<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 m=s.viewHeight-(l?d:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+m)+"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 I=s.viewWidth-s.barLeft-(g?d:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+I)+"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=z&&!ee?"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},Ds.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function d(){var m=s.getBoundingClientRect(),I=g=="vert"?document.elementFromPoint(m.right-1,(m.top+m.bottom)/2):document.elementFromPoint((m.right+m.left)/2,m.bottom-1);I!=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 qn=function(){};qn.prototype.update=function(){return{bottom:0,right:0}},qn.prototype.setScrollLeft=function(){},qn.prototype.setScrollTop=function(){},qn.prototype.clear=function(){};function Cn(s,l){l||(l=jn(s));var g=s.display.barWidth,d=s.display.barHeight;Tu(s,l);for(var m=0;m<4&&g!=s.display.barWidth||d!=s.display.barHeight;m++)g!=s.display.barWidth&&s.options.lineWrapping&&Jo(s),Tu(s,jn(s)),g=s.display.barWidth,d=s.display.barHeight}function Tu(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 Ru={native:Ds,null:qn};function yu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&We(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new Ru[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Ue(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"?Bs(s,l):zn(s,l)},s),s.display.scrollbars.addClass&&Je(s.display.wrapper,s.display.scrollbars.addClass)}var xp=0;function Vs(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:++xp,markArrays:null},op(s.curOp)}function Ms(s){var l=s.curOp;l&&lp(l,function(g){for(var d=0;d<g.ops.length;d++)g.ops[d].cm.curOp=null;Cp(g)})}function Cp(s){for(var l=s.ops,g=0;g<l.length;g++)Ap(l[g]);for(var d=0;d<l.length;d++)Ip(l[d]);for(var m=0;m<l.length;m++)Np(l[m]);for(var I=0;I<l.length;I++)bp(l[I]);for(var b=0;b<l.length;b++)Tp(l[b])}function Ap(s){var l=s.cm,g=l.display;yp(l),s.updateMaxLine&&Ba(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 qo(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Ip(s){s.updatedDisplay=s.mustUpdate&&$a(s.cm,s.update)}function Np(s){var l=s.cm,g=l.display;s.updatedDisplay&&Jo(l),s.barMeasure=jn(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=hu(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+Ii(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-Ss(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function bp(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Bs(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==Jr(Lt(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&Cn(l,s.barMeasure),s.updatedDisplay&&Ya(l,s.barMeasure),s.selectionChanged&&ka(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Au(s.cm)}function Tp(s){var l=s.cm,g=l.display,d=l.doc;if(s.updatedDisplay&&Su(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&bu(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Bs(l,s.scrollLeft,!0,!0),s.scrollToPos){var m=Ep(l,Xe(d,s.scrollToPos.from),Xe(d,s.scrollToPos.to),s.scrollToPos.margin);gp(l,m)}var I=s.maybeHiddenMarkers,b=s.maybeUnhiddenMarkers;if(I)for(var y=0;y<I.length;++y)I[y].lines.length||ar(I[y],"hide");if(b)for(var L=0;L<b.length;++L)b[L].lines.length&&ar(b[L],"unhide");g.wrapper.offsetHeight&&(d.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&ar(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function _t(s,l){if(s.curOp)return l();Vs(s);try{return l()}finally{Ms(s)}}function rt(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Vs(s);try{return l.apply(s,arguments)}finally{Ms(s)}}}function bt(s){return function(){if(this.curOp)return s.apply(this,arguments);Vs(this);try{return s.apply(this,arguments)}finally{Ms(this)}}}function tt(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Vs(l);try{return s.apply(this,arguments)}finally{Ms(l)}}}function Kn(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,ze(Rp,s))}function Rp(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,d=kn(s,l.highlightFrontier),m=[];l.iter(d.line,Math.min(l.first+l.size,s.display.viewTo+500),function(I){if(d.line>=s.display.viewFrom){var b=I.styles,y=I.text.length>s.options.maxHighlightLength?Re(l.mode,d.state):null,L=ql(s,I,d,!0);y&&(d.state=y),I.styles=L.styles;var U=I.styleClasses,k=L.classes;k?I.styleClasses=k:U&&(I.styleClasses=null);for(var $=!b||b.length!=I.styles.length||U!=k&&(!U||!k||U.bgClass!=k.bgClass||U.textClass!=k.textClass),re=0;!$&&re<b.length;++re)$=b[re]!=I.styles[re];$&&m.push(d.line),I.stateAfter=d.save(),d.nextLine()}else I.text.length<=s.options.maxHighlightLength&&Zn(s,I.text,d),I.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>g)return Kn(s,s.options.workDelay),!0}),l.highlightFrontier=d.line,l.modeFrontier=Math.max(l.modeFrontier,d.line),m.length&&_t(s,function(){for(var I=0;I<m.length;I++)Zt(s,m[I],"text")})}}var qo=function(s,l,g){var d=s.display;this.viewport=l,this.visible=zo(d,s.doc,l),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=Ss(s),this.force=g,this.dims=Os(s),this.events=[]};qo.prototype.signal=function(s,l){tr(s,l)&&this.events.push(arguments)},qo.prototype.finish=function(){for(var s=0;s<this.events.length;s++)ar.apply(null,this.events[s])};function yp(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ii(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ii(s)+"px",l.scrollbarsClipped=!0)}function Sp(s){if(s.hasFocus())return null;var l=Jr(Lt(s));if(!l||!ur(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var d=at(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 Lp(s){if(!(!s||!s.activeElt||s.activeElt==Jr(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 $a(s,l){var g=s.display,d=s.doc;if(l.editorIsHidden)return bi(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&&Yo(s)==0)return!1;wu(s)&&(bi(s),l.dims=Os(s));var m=d.first+d.size,I=Math.max(l.visible.from-s.options.viewportMargin,d.first),b=Math.min(m,l.visible.to+s.options.viewportMargin);g.viewFrom<I&&I-g.viewFrom<20&&(I=Math.max(d.first,g.viewFrom)),g.viewTo>b&&g.viewTo-b<20&&(b=Math.min(m,g.viewTo)),Bi&&(I=_n(s.doc,I),b=_o(s.doc,b));var y=I!=g.viewFrom||b!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;Yn(s,I,b),g.viewOffset=Mi(Ae(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var L=Yo(s);if(!y&&L==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var U=Sp(s);return L>4&&(g.lineDiv.style.display="none"),wp(s,g.updateLineNumbers,l.dims),L>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Lp(U),Me(g.cursorDiv),Me(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,y&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,Kn(s,400)),g.updateLineNumbers=null,!0}function Su(s,l){for(var g=l.viewport,d=!0;;d=!1){if(!d||!s.options.lineWrapping||l.oldDisplayWidth==Ss(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Da(s.display)-Va(s),g.top)}),l.visible=zo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else d&&(l.visible=zo(s.display,s.doc,g));if(!$a(s,l))break;Jo(s);var m=jn(s);Gs(s),Cn(s,m),Ya(s,m),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 Xa(s,l){var g=new qo(s,l);if($a(s,g)){Jo(s),Su(s,g);var d=jn(s);Gs(s),Cn(s,d),Ya(s,d),g.finish()}}function wp(s,l,g){var d=s.display,m=s.options.lineNumbers,I=d.lineDiv,b=I.firstChild;function y(oe){var fe=oe.nextSibling;return W&&z&&s.display.currentWheelTarget==oe?oe.style.display="none":oe.parentNode.removeChild(oe),fe}for(var L=d.view,U=d.viewFrom,k=0;k<L.length;k++){var $=L[k];if(!$.hidden)if(!$.node||$.node.parentNode!=I){var re=Gt(s,$,U,g);I.insertBefore(re,b)}else{for(;b!=$.node;)b=y(b);var K=m&&l!=null&&l<=U&&$.lineNumber;$.changes&&(hr($.changes,"gutter")>-1&&(K=!1),uu(s,$,U,g)),K&&(Me($.lineNumber),$.lineNumber.appendChild(document.createTextNode(Ra(s.options,U)))),b=$.node.nextSibling}U+=$.size}for(;b;)b=y(b)}function eo(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",et(s,"gutterChanged",s)}function Ya(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+Ii(s)+"px"}function Lu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var d=dt(l)-l.scroller.scrollLeft+s.doc.scrollLeft,m=l.gutters.offsetWidth,I=d+"px",b=0;b<g.length;b++)if(!g[b].hidden){s.options.fixedGutter&&(g[b].gutter&&(g[b].gutter.style.left=I),g[b].gutterBackground&&(g[b].gutterBackground.style.left=I));var y=g[b].alignable;if(y)for(var L=0;L<y.length;L++)y[L].style.left=I}s.options.fixedGutter&&(l.gutters.style.left=d+m+"px")}}function wu(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=Ra(s.options,l.first+l.size-1),d=s.display;if(g.length!=d.lineNumChars){var m=d.measure.appendChild(ve("div",[ve("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),I=m.firstChild.offsetWidth,b=m.offsetWidth-I;return d.lineGutter.style.width="",d.lineNumInnerWidth=Math.max(I,d.lineGutter.offsetWidth-b)+1,d.lineNumWidth=d.lineNumInnerWidth+b,d.lineNumChars=d.lineNumInnerWidth?g.length:-1,d.lineGutter.style.width=d.lineNumWidth+"px",eo(s.display),!0}return!1}function Ja(s,l){for(var g=[],d=!1,m=0;m<s.length;m++){var I=s[m],b=null;if(typeof I!="string"&&(b=I.style,I=I.className),I=="CodeMirror-linenumbers")if(l)d=!0;else continue;g.push({className:I,style:b})}return l&&!d&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Ou(s){var l=s.gutters,g=s.gutterSpecs;Me(l),s.lineGutter=null;for(var d=0;d<g.length;++d){var m=g[d],I=m.className,b=m.style,y=l.appendChild(ve("div",null,"CodeMirror-gutter "+I));b&&(y.style.cssText=b),I=="CodeMirror-linenumbers"&&(s.lineGutter=y,y.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",eo(s)}function ro(s){Ou(s.display),gt(s),Lu(s)}function Op(s,l,g,d){var m=this;this.input=g,m.scrollbarFiller=ve("div",null,"CodeMirror-scrollbar-filler"),m.scrollbarFiller.setAttribute("cm-not-content","true"),m.gutterFiller=ve("div",null,"CodeMirror-gutter-filler"),m.gutterFiller.setAttribute("cm-not-content","true"),m.lineDiv=xr("div",null,"CodeMirror-code"),m.selectionDiv=ve("div",null,null,"position: relative; z-index: 1"),m.cursorDiv=ve("div",null,"CodeMirror-cursors"),m.measure=ve("div",null,"CodeMirror-measure"),m.lineMeasure=ve("div",null,"CodeMirror-measure"),m.lineSpace=xr("div",[m.measure,m.lineMeasure,m.selectionDiv,m.cursorDiv,m.lineDiv],null,"position: relative; outline: none");var I=xr("div",[m.lineSpace],"CodeMirror-lines");m.mover=ve("div",[I],null,"position: relative"),m.sizer=ve("div",[m.mover],"CodeMirror-sizer"),m.sizerWidth=null,m.heightForcer=ve("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),m.gutters=ve("div",null,"CodeMirror-gutters"),m.lineGutter=null,m.scroller=ve("div",[m.sizer,m.heightForcer,m.gutters],"CodeMirror-scroll"),m.scroller.setAttribute("tabIndex","-1"),m.wrapper=ve("div",[m.scrollbarFiller,m.gutterFiller,m.scroller],"CodeMirror"),Z&&P===105&&(m.wrapper.style.clipPath="inset(0px)"),m.wrapper.setAttribute("translate","no"),O&&V<8&&(m.gutters.style.zIndex=-1,m.scroller.style.paddingRight=0),!W&&!(e&&X)&&(m.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(m.wrapper):s(m.wrapper)),m.viewFrom=m.viewTo=l.first,m.reportedViewFrom=m.reportedViewTo=l.first,m.view=[],m.renderedView=null,m.externalMeasured=null,m.viewOffset=0,m.lastWrapHeight=m.lastWrapWidth=0,m.updateLineNumbers=null,m.nativeBarWidth=m.barHeight=m.barWidth=0,m.scrollbarsClipped=!1,m.lineNumWidth=m.lineNumInnerWidth=m.lineNumChars=null,m.alignWidgets=!1,m.cachedCharWidth=m.cachedTextHeight=m.cachedPaddingH=null,m.maxLine=null,m.maxLineLength=0,m.maxLineChanged=!1,m.wheelDX=m.wheelDY=m.wheelStartX=m.wheelStartY=null,m.shift=!1,m.selForContextMenu=null,m.activeTouch=null,m.gutterSpecs=Ja(d.gutters,d.lineNumbers),Ou(m),g.init(m)}var Ko=0,Zi=null;O?Zi=-.53:e?Zi=15:Z?Zi=-.7:Q&&(Zi=-1/3);function Uu(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 Up(s){var l=Uu(s);return l.x*=Zi,l.y*=Zi,l}function ea(s,l){Z&&P==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=Uu(l),d=g.x,m=g.y,I=Zi;l.deltaMode===0&&(d=l.deltaX,m=l.deltaY,I=1);var b=s.display,y=b.scroller,L=y.scrollWidth>y.clientWidth,U=y.scrollHeight>y.clientHeight;if(d&&L||m&&U){if(m&&z&&W){e:for(var k=l.target,$=b.view;k!=y;k=k.parentNode)for(var re=0;re<$.length;re++)if($[re].node==k){s.display.currentWheelTarget=k;break e}}if(d&&!e&&!J&&I!=null){m&&U&&zn(s,Math.max(0,y.scrollTop+m*I)),Bs(s,Math.max(0,y.scrollLeft+d*I)),(!m||m&&U)&&ft(l),b.wheelStartX=null;return}if(m&&I!=null){var K=m*I,oe=s.doc.scrollTop,fe=oe+b.wrapper.clientHeight;K<0?oe=Math.max(0,oe+K-50):fe=Math.min(s.doc.height,fe+K+50),Xa(s,{top:oe,bottom:fe})}Ko<20&&l.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=y.scrollLeft,b.wheelStartY=y.scrollTop,b.wheelDX=d,b.wheelDY=m,setTimeout(function(){if(b.wheelStartX!=null){var he=y.scrollLeft-b.wheelStartX,me=y.scrollTop-b.wheelStartY,Ce=me&&b.wheelDY&&me/b.wheelDY||he&&b.wheelDX&&he/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(Zi=(Zi*Ko+Ce)/(Ko+1),++Ko)}},200)):(b.wheelDX+=d,b.wheelDY+=m))}}var Tr=function(s,l){this.ranges=s,this.primIndex=l};Tr.prototype.primary=function(){return this.ranges[this.primIndex]},Tr.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(!ya(g.anchor,d.anchor)||!ya(g.head,d.head))return!1}return!0},Tr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new lr(Sa(this.ranges[l].anchor),Sa(this.ranges[l].head));return new Tr(s,this.primIndex)},Tr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Tr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if($e(l,d.from())>=0&&$e(s,d.to())<=0)return g}return-1};var lr=function(s,l){this.anchor=s,this.head=l};lr.prototype.from=function(){return Mo(this.anchor,this.head)},lr.prototype.to=function(){return Vo(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,m=l[g];l.sort(function(re,K){return $e(re.from(),K.from())}),g=hr(l,m);for(var I=1;I<l.length;I++){var b=l[I],y=l[I-1],L=$e(y.to(),b.from());if(d&&!b.empty()?L>0:L>=0){var U=Mo(y.from(),b.from()),k=Vo(y.to(),b.to()),$=y.empty()?b.from()==b.head:y.from()==y.head;I<=g&&--g,l.splice(--I,2,new lr($?k:U,$?U:k))}}return new Tr(l,g)}function Ti(s,l){return new Tr([new lr(s,l||s)],0)}function Ri(s){return s.text?ce(s.from.line+s.text.length-1,Ie(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ra(s,l){if($e(s,l.from)<0)return s;if($e(s,l.to)<=0)return Ri(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+=Ri(l).ch-l.to.ch),ce(g,d)}function _i(s,l){for(var g=[],d=0;d<s.sel.ranges.length;d++){var m=s.sel.ranges[d];g.push(new lr(ra(m.anchor,l),ra(m.head,l)))}return Pe(s.cm,g,s.sel.primIndex)}function Gu(s,l,g){return s.line==l.line?ce(g.line,s.ch-l.ch+g.ch):ce(g.line+(s.line-l.line),s.ch)}function Gp(s,l,g){for(var d=[],m=ce(s.first,0),I=m,b=0;b<l.length;b++){var y=l[b],L=Gu(y.from,m,I),U=Gu(Ri(y),m,I);if(m=y.to,I=U,g=="around"){var k=s.sel.ranges[b],$=$e(k.head,k.anchor)<0;d[b]=new lr($?U:L,$?L:U)}else d[b]=new lr(L,L)}return new Tr(d,s.sel.primIndex)}function ui(s){s.doc.mode=De(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,Kn(s,100),s.state.modeGen++,s.curOp&&gt(s)}function cs(s,l){return l.from.ch==0&&l.to.ch==0&&Ie(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function to(s,l,g,d){function m(Ce){return g?g[Ce]:null}function I(Ce,xe,be){jf(Ce,xe,be,d),et(Ce,"change",Ce,l)}function b(Ce,xe){for(var be=[],Ve=Ce;Ve<xe;++Ve)be.push(new pn(U[Ve],m(Ve),d));return be}var y=l.from,L=l.to,U=l.text,k=Ae(s,y.line),$=Ae(s,L.line),re=Ie(U),K=m(U.length-1),oe=L.line-y.line;if(l.full)s.insert(0,b(0,U.length)),s.remove(U.length,s.size-U.length);else if(cs(s,l)){var fe=b(0,U.length-1);I($,$.text,K),oe&&s.remove(y.line,oe),fe.length&&s.insert(y.line,fe)}else if(k==$)if(U.length==1)I(k,k.text.slice(0,y.ch)+re+k.text.slice(L.ch),K);else{var he=b(1,U.length-1);he.push(new pn(re+k.text.slice(L.ch),K,d)),I(k,k.text.slice(0,y.ch)+U[0],m(0)),s.insert(y.line+1,he)}else if(U.length==1)I(k,k.text.slice(0,y.ch)+U[0]+$.text.slice(L.ch),m(0)),s.remove(y.line+1,oe);else{I(k,k.text.slice(0,y.ch)+U[0],m(0)),I($,re+$.text.slice(L.ch),K);var me=b(1,U.length-1);oe>1&&s.remove(y.line+1,oe-1),s.insert(y.line+1,me)}et(s,"change",s,l)}function yi(s,l,g){function d(m,I,b){if(m.linked)for(var y=0;y<m.linked.length;++y){var L=m.linked[y];if(L.doc!=I){var U=b&&L.sharedHist;g&&!U||(l(L.doc,U),d(L.doc,m,U))}}}d(s,null,!0)}function ta(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Us(s),ui(s),ia(s),s.options.direction=l.direction,s.options.lineWrapping||Ba(s),s.options.mode=l.modeOption,gt(s)}function ia(s){(s.doc.direction=="rtl"?Je:We)(s.display.lineDiv,"CodeMirror-rtl")}function za(s){_t(s,function(){ia(s),gt(s)})}function An(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 io(s,l){var g={from:Sa(l.from),to:Ri(l),text:pt(s,l.from,l.to)};return Bu(s,g,l.from.line,l.to.line+1),yi(s,function(d){return Bu(d,g,l.from.line,l.to.line+1)},!0),g}function sa(s){for(;s.length;){var l=Ie(s);if(l.ranges)s.pop();else break}}function Fp(s,l){if(l)return sa(s.done),Ie(s.done);if(s.done.length&&!Ie(s.done).ranges)return Ie(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Ie(s.done)}function Fu(s,l,g,d){var m=s.history;m.undone.length=0;var I=+new Date,b,y;if((m.lastOp==d||m.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&m.lastModTime>I-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(b=Fp(m,m.lastOp==d)))y=Ie(b.changes),$e(l.from,l.to)==0&&$e(l.from,y.to)==0?y.to=Ri(l):b.changes.push(io(s,l));else{var L=Ie(m.done);for((!L||!L.ranges)&&hs(s.sel,m.done),b={changes:[io(s,l)],generation:m.generation},m.done.push(b);m.done.length>m.undoDepth;)m.done.shift(),m.done[0].ranges||m.done.shift()}m.done.push(g),m.generation=++m.maxGeneration,m.lastModTime=m.lastSelTime=I,m.lastOp=m.lastSelOp=d,m.lastOrigin=m.lastSelOrigin=l.origin,y||ar(s,"historyAdded")}function Bp(s,l,g,d){var m=l.charAt(0);return m=="*"||m=="+"&&g.ranges.length==d.ranges.length&&g.somethingSelected()==d.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function Dp(s,l,g,d){var m=s.history,I=d&&d.origin;g==m.lastSelOp||I&&m.lastSelOrigin==I&&(m.lastModTime==m.lastSelTime&&m.lastOrigin==I||Bp(s,I,Ie(m.done),l))?m.done[m.done.length-1]=l:hs(l,m.done),m.lastSelTime=+new Date,m.lastSelOrigin=I,m.lastSelOp=g,d&&d.clearRedo!==!1&&sa(m.undone)}function hs(s,l){var g=Ie(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Bu(s,l,g,d){var m=l["spans_"+s.id],I=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,d),function(b){b.markedSpans&&((m||(m=l["spans_"+s.id]={}))[I]=b.markedSpans),++I})}function Vp(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 Mp(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var d=[],m=0;m<l.text.length;++m)d.push(Vp(g[m]));return d}function Du(s,l){var g=Mp(s,l),d=Vi(s,l);if(!g)return d;if(!d)return g;for(var m=0;m<g.length;++m){var I=g[m],b=d[m];if(I&&b)e:for(var y=0;y<b.length;++y){for(var L=b[y],U=0;U<I.length;++U)if(I[U].marker==L.marker)continue e;I.push(L)}else b&&(g[m]=b)}return g}function In(s,l,g){for(var d=[],m=0;m<s.length;++m){var I=s[m];if(I.ranges){d.push(g?Tr.prototype.deepCopy.call(I):I);continue}var b=I.changes,y=[];d.push({changes:y});for(var L=0;L<b.length;++L){var U=b[L],k=void 0;if(y.push({from:U.from,to:U.to,text:U.text}),l)for(var $ in U)(k=$.match(/^spans_(\d+)$/))&&hr(l,Number(k[1]))>-1&&(Ie(y)[$]=U[$],delete U[$])}}return d}function ja(s,l,g,d){if(d){var m=s.anchor;if(g){var I=$e(l,m)<0;I!=$e(g,m)<0?(m=l,l=g):I!=$e(l,g)<0&&(l=g)}return new lr(m,l)}else return new lr(g||l,l)}function na(s,l,g,d,m){m==null&&(m=s.cm&&(s.cm.display.shift||s.extend)),Et(s,new Tr([ja(s.sel.primary(),l,g,m)],0),d)}function Vu(s,l,g){for(var d=[],m=s.cm&&(s.cm.display.shift||s.extend),I=0;I<s.sel.ranges.length;I++)d[I]=ja(s.sel.ranges[I],l[I],null,m);var b=Pe(s.cm,d,s.sel.primIndex);Et(s,b,g)}function qa(s,l,g,d){var m=s.sel.ranges.slice(0);m[l]=g,Et(s,Pe(s.cm,m,s.sel.primIndex),d)}function Mu(s,l,g,d){Et(s,Ti(l,g),d)}function Pp(s,l,g){var d={ranges:l.ranges,update:function(m){this.ranges=[];for(var I=0;I<m.length;I++)this.ranges[I]=new lr(Xe(s,m[I].anchor),Xe(s,m[I].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 Pu(s,l,g){var d=s.history.done,m=Ie(d);m&&m.ranges?(d[d.length-1]=l,Nn(s,l,g)):Et(s,l,g)}function Et(s,l,g){Nn(s,l,g),Dp(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Nn(s,l,g){(tr(s,"beforeSelectionChange")||s.cm&&tr(s.cm,"beforeSelectionChange"))&&(l=Pp(s,l,g));var d=g&&g.bias||($e(l.primary().head,s.sel.primary().head)<0?-1:1);bn(s,Rn(s,l,d,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&xn(s.cm)}function bn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,rs(s.cm)),et(s,"cursorActivity",s))}function Tn(s){bn(s,Rn(s,s.sel,null,!1))}function Rn(s,l,g,d){for(var m,I=0;I<l.ranges.length;I++){var b=l.ranges[I],y=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[I],L=oa(s,b.anchor,y&&y.anchor,g,d),U=b.head==b.anchor?L:oa(s,b.head,y&&y.head,g,d);(m||L!=b.anchor||U!=b.head)&&(m||(m=l.ranges.slice(0,I)),m[I]=new lr(L,U))}return m?Pe(s.cm,m,l.primIndex):l}function ds(s,l,g,d,m){var I=Ae(s,l.line);if(I.markedSpans)for(var b=0;b<I.markedSpans.length;++b){var y=I.markedSpans[b],L=y.marker,U="selectLeft"in L?!L.selectLeft:L.inclusiveLeft,k="selectRight"in L?!L.selectRight:L.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(m&&(ar(L,"beforeCursorEnter"),L.explicitlyCleared))if(I.markedSpans){--b;continue}else break;if(!L.atomic)continue;if(g){var $=L.find(d<0?1:-1),re=void 0;if((d<0?k:U)&&($=Wu(s,$,-d,$&&$.line==l.line?I:null)),$&&$.line==l.line&&(re=$e($,g))&&(d<0?re<0:re>0))return ds(s,$,l,d,m)}var K=L.find(d<0?-1:1);return(d<0?U:k)&&(K=Wu(s,K,d,K.line==l.line?I:null)),K?ds(s,K,l,d,m):null}}return l}function oa(s,l,g,d,m){var I=d||1,b=ds(s,l,g,I,m)||!m&&ds(s,l,g,I,!0)||ds(s,l,g,-I,m)||!m&&ds(s,l,g,-I,!0);return b||(s.cantEdit=!0,ce(s.first,0))}function Wu(s,l,g,d){return g<0&&l.ch==0?l.line>s.first?Xe(s,ce(l.line-1)):null:g>0&&l.ch==(d||Ae(s,l.line)).text.length?l.line<s.first+s.size-1?ce(l.line+1,0):null:new ce(l.line,l.ch+g)}function ku(s){s.setSelection(ce(s.firstLine(),0),ce(s.lastLine()),pe)}function Zu(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(m,I,b,y){m&&(d.from=Xe(s,m)),I&&(d.to=Xe(s,I)),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 yn(s,l,g){if(s.cm){if(!s.cm.curOp)return rt(s.cm,yn)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"))&&(l=Zu(s,l,!0),!l))){var d=Wo&&!g&&Rs(s,l.from,l.to);if(d)for(var m=d.length-1;m>=0;--m)_u(s,{from:d[m].from,to:d[m].to,text:m?[""]:l.text,origin:l.origin});else _u(s,l)}}function _u(s,l){if(!(l.text.length==1&&l.text[0]==""&&$e(l.from,l.to)==0)){var g=_i(s,l);Fu(s,l,g,s.cm?s.cm.curOp.id:NaN),so(s,l,g,Vi(s,l));var d=[];yi(s,function(m,I){!I&&hr(d,m.history)==-1&&(Xu(m.history,l),d.push(m.history)),so(m,l,null,Vi(m,l))})}}function aa(s,l,g){var d=s.cm&&s.cm.state.suppressEdits;if(!(d&&!g)){for(var m=s.history,I,b=s.sel,y=l=="undo"?m.done:m.undone,L=l=="undo"?m.undone:m.done,U=0;U<y.length&&(I=y[U],!(g?I.ranges&&!I.equals(s.sel):!I.ranges));U++);if(U!=y.length){for(m.lastOrigin=m.lastSelOrigin=null;;)if(I=y.pop(),I.ranges){if(hs(I,L),g&&!I.equals(s.sel)){Et(s,I,{clearRedo:!1});return}b=I}else if(d){y.push(I);return}else break;var k=[];hs(b,L),L.push({changes:k,generation:m.generation}),m.generation=I.generation||++m.maxGeneration;for(var $=tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"),re=function(fe){var he=I.changes[fe];if(he.origin=l,$&&!Zu(s,he,!1))return y.length=0,{};k.push(io(s,he));var me=fe?_i(s,he):Ie(y);so(s,he,me,Du(s,he)),!fe&&s.cm&&s.cm.scrollIntoView({from:he.from,to:Ri(he)});var Ce=[];yi(s,function(xe,be){!be&&hr(Ce,xe.history)==-1&&(Xu(xe.history,he),Ce.push(xe.history)),so(xe,he,null,Du(xe,he))})},K=I.changes.length-1;K>=0;--K){var oe=re(K);if(oe)return oe.v}}}}function Qu(s,l){if(l!=0&&(s.first+=l,s.sel=new Tr(wt(s.sel.ranges,function(m){return new lr(ce(m.anchor.line+l,m.anchor.ch),ce(m.head.line+l,m.head.ch))}),s.sel.primIndex),s.cm)){gt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,d=g.viewFrom;d<g.viewTo;d++)Zt(s.cm,d,"gutter")}}function so(s,l,g,d){if(s.cm&&!s.cm.curOp)return rt(s.cm,so)(s,l,g,d);if(l.to.line<s.first){Qu(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 m=l.text.length-1-(s.first-l.from.line);Qu(s,m),l={from:ce(s.first,0),to:ce(l.to.line+m,l.to.ch),text:[Ie(l.text)],origin:l.origin}}var I=s.lastLine();l.to.line>I&&(l={from:l.from,to:ce(I,Ae(s,I).text.length),text:[l.text[0]],origin:l.origin}),l.removed=pt(s,l.from,l.to),g||(g=_i(s,l)),s.cm?Wp(s.cm,l,d):to(s,l,d),Nn(s,g,pe),s.cantEdit&&oa(s,ce(s.firstLine(),0))&&(s.cantEdit=!1)}}function Wp(s,l,g){var d=s.doc,m=s.display,I=l.from,b=l.to,y=!1,L=I.line;s.options.lineWrapping||(L=Qe(ai(Ae(d,I.line))),d.iter(L,b.line+1,function(K){if(K==m.maxLine)return y=!0,!0})),d.sel.contains(l.from,l.to)>-1&&rs(s),to(d,l,g,vn(s)),s.options.lineWrapping||(d.iter(L,I.line+l.text.length,function(K){var oe=Qo(K);oe>m.maxLineLength&&(m.maxLine=K,m.maxLineLength=oe,m.maxLineChanged=!0,y=!1)}),y&&(s.curOp.updateMaxLine=!0)),Yf(d,I.line),Kn(s,400);var U=l.text.length-(b.line-I.line)-1;l.full?gt(s):I.line==b.line&&l.text.length==1&&!cs(s.doc,l)?Zt(s,I.line,"text"):gt(s,I.line,b.line+1,U);var k=tr(s,"changes"),$=tr(s,"change");if($||k){var re={from:I,to:b,text:l.text,removed:l.removed,origin:l.origin};$&&et(s,"change",s,re),k&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(re)}s.display.selForContextMenu=null}function Sn(s,l,g,d,m){var I;d||(d=g),$e(d,g)<0&&(I=[d,g],g=I[0],d=I[1]),typeof l=="string"&&(l=s.splitLines(l)),yn(s,{from:g,to:d,text:l,origin:m})}function Hu(s,l,g,d){g<s.line?s.line+=d:l<s.line&&(s.line=l,s.ch=0)}function $u(s,l,g,d){for(var m=0;m<s.length;++m){var I=s[m],b=!0;if(I.ranges){I.copied||(I=s[m]=I.deepCopy(),I.copied=!0);for(var y=0;y<I.ranges.length;y++)Hu(I.ranges[y].anchor,l,g,d),Hu(I.ranges[y].head,l,g,d);continue}for(var L=0;L<I.changes.length;++L){var U=I.changes[L];if(g<U.from.line)U.from=ce(U.from.line+d,U.from.ch),U.to=ce(U.to.line+d,U.to.ch);else if(l<=U.to.line){b=!1;break}}b||(s.splice(0,m+1),m=0)}}function Xu(s,l){var g=l.from.line,d=l.to.line,m=l.text.length-(d-g)-1;$u(s.done,g,d,m),$u(s.undone,g,d,m)}function no(s,l,g,d){var m=l,I=l;return typeof l=="number"?I=Ae(s,zl(s,l)):m=Qe(l),m==null?null:(d(I,m)&&s.cm&&Zt(s.cm,m,g),I)}function oo(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}oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,d=s+l;g<d;++g){var m=this.lines[g];this.height-=m.height,qf(m),et(m,"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 ao(s){this.children=s;for(var l=0,g=0,d=0;d<s.length;++d){var m=s[d];l+=m.chunkSize(),g+=m.height,m.parent=this}this.size=l,this.height=g,this.parent=null}ao.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],m=d.chunkSize();if(s<m){var I=Math.min(l,m-s),b=d.height;if(d.removeInner(s,I),this.height-=b-d.height,m==I&&(this.children.splice(g--,1),d.parent=null),(l-=I)==0)break;s=0}else s-=m}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof oo))){var y=[];this.collapse(y),this.children=[new oo(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 m=this.children[d],I=m.chunkSize();if(s<=I){if(m.insertInner(s,l,g),m.lines&&m.lines.length>50){for(var b=m.lines.length%25+25,y=b;y<m.lines.length;){var L=new oo(m.lines.slice(y,y+=25));m.height-=L.height,this.children.splice(++d,0,L),L.parent=this}m.lines=m.lines.slice(0,b),this.maybeSpill()}break}s-=I}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new ao(l);if(s.parent){s.size-=g.size,s.height-=g.height;var m=hr(s.parent.children,s);s.parent.children.splice(m+1,0,g)}else{var d=new ao(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 m=this.children[d],I=m.chunkSize();if(s<I){var b=Math.min(l,I-s);if(m.iterN(s,b,g))return!0;if((l-=b)==0)break;s=0}else s-=I}}};var lo=function(s,l,g){if(g)for(var d in g)g.hasOwnProperty(d)&&(this[d]=g[d]);this.doc=s,this.node=l};lo.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,d=Qe(g);if(!(d==null||!l)){for(var m=0;m<l.length;++m)l[m]==this&&l.splice(m--,1);l.length||(g.widgets=null);var I=Pi(this);kt(g,Math.max(0,g.height-I)),s&&(_t(s,function(){Yu(s,g,-I),Zt(s,d,"widget")}),et(s,"lineWidgetCleared",s,this,d))}},lo.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,d=this.line;this.height=null;var m=Pi(this)-l;m&&(Ci(this.doc,d)||kt(d,d.height+m),g&&_t(g,function(){g.curOp.forceUpdate=!0,Yu(g,d,m),et(g,"lineWidgetChanged",g,s,Qe(d))}))},ts(lo);function Yu(s,l,g){Mi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Ha(s,g)}function kp(s,l,g,d){var m=new lo(s,g,d),I=s.cm;return I&&m.noHScroll&&(I.display.alignWidgets=!0),no(s,l,"widget",function(b){var y=b.widgets||(b.widgets=[]);if(m.insertAt==null?y.push(m):y.splice(Math.min(y.length,Math.max(0,m.insertAt)),0,m),m.line=b,I&&!Ci(s,b)){var L=Mi(b)<s.scrollTop;kt(b,b.height+Pi(m)),L&&Ha(I,m.height),I.curOp.forceUpdate=!0}return!0}),I&&et(I,"lineWidgetAdded",I,m,typeof l=="number"?l:Qe(l)),m}var Ju=0,gs=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++Ju};gs.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Vs(s),tr(this,"clear")){var g=this.find();g&&et(this,"clear",g.from,g.to)}for(var d=null,m=null,I=0;I<this.lines.length;++I){var b=this.lines[I],y=Ns(b.markedSpans,this);s&&!this.collapsed?Zt(s,Qe(b),"text"):s&&(y.to!=null&&(m=Qe(b)),y.from!=null&&(d=Qe(b))),b.markedSpans=wa(b.markedSpans,y),y.from==null&&this.collapsed&&!Ci(this.doc,b)&&s&&kt(b,Dr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var L=0;L<this.lines.length;++L){var U=ai(this.lines[L]),k=Qo(U);k>s.display.maxLineLength&&(s.display.maxLine=U,s.display.maxLineLength=k,s.display.maxLineChanged=!0)}d!=null&&s&&this.collapsed&&gt(s,d,m+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&Tn(s.doc)),s&&et(s,"markerCleared",s,this,d,m),l&&Ms(s),this.parent&&this.parent.clear()}},gs.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,d,m=0;m<this.lines.length;++m){var I=this.lines[m],b=Ns(I.markedSpans,this);if(b.from!=null&&(g=ce(l?I:Qe(I),b.from),s==-1))return g;if(b.to!=null&&(d=ce(l?I:Qe(I),b.to),s==1))return d}return g&&{from:g,to:d}},gs.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,d=this.doc.cm;!l||!d||_t(d,function(){var m=l.line,I=Qe(l.line),b=ht(d,I);if(b&&(Eu(b),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ci(g.doc,m)&&g.height!=null){var y=g.height;g.height=null;var L=Pi(g)-y;L&&kt(m,m.height+L)}et(d,"markerChanged",d,s)})},gs.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)},gs.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)}},ts(gs);function Ln(s,l,g,d,m){if(d&&d.shared)return Zp(s,l,g,d,m);if(s.cm&&!s.cm.curOp)return rt(s.cm,Ln)(s,l,g,d,m);var I=new gs(s,m),b=$e(l,g);if(d&&zr(d,I,!1),b>0||b==0&&I.clearWhenEmpty!==!1)return I;if(I.replacedWith&&(I.collapsed=!0,I.widgetNode=xr("span",[I.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||I.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(I.widgetNode.insertLeft=!0)),I.collapsed){if(ns(s,l.line,l,g,I)||l.line!=g.line&&ns(s,g.line,l,g,I))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xt()}I.addToHistory&&Fu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,L=s.cm,U;if(s.iter(y,g.line+1,function($){L&&I.collapsed&&!L.options.lineWrapping&&ai($)==L.display.maxLine&&(U=!0),I.collapsed&&y!=l.line&&kt($,0),Di($,new an(I,y==l.line?l.ch:null,y==g.line?g.ch:null),s.cm&&s.cm.curOp),++y}),I.collapsed&&s.iter(l.line,g.line+1,function($){Ci(s,$)&&kt($,0)}),I.clearOnEnter&&Ue(I,"beforeCursorEnter",function(){return I.clear()}),I.readOnly&&(Jf(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),I.collapsed&&(I.id=++Ju,I.atomic=!0),L){if(U&&(L.curOp.updateMaxLine=!0),I.collapsed)gt(L,l.line,g.line+1);else if(I.className||I.startStyle||I.endStyle||I.css||I.attributes||I.title)for(var k=l.line;k<=g.line;k++)Zt(L,k,"text");I.atomic&&Tn(L.doc),et(L,"markerAdded",L,I)}return I}var uo=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};uo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();et(this,"clear")}},uo.prototype.find=function(s,l){return this.primary.find(s,l)},ts(uo);function Zp(s,l,g,d,m){d=zr(d),d.shared=!1;var I=[Ln(s,l,g,d,m)],b=I[0],y=d.widgetNode;return yi(s,function(L){y&&(d.widgetNode=y.cloneNode(!0)),I.push(Ln(L,Xe(L,l),Xe(L,g),d,m));for(var U=0;U<L.linked.length;++U)if(L.linked[U].isParent)return;b=Ie(I)}),new uo(I,b)}function zu(s){return s.findMarks(ce(s.first,0),s.clipPos(ce(s.lastLine())),function(l){return l.parent})}function _p(s,l){for(var g=0;g<l.length;g++){var d=l[g],m=d.find(),I=s.clipPos(m.from),b=s.clipPos(m.to);if($e(I,b)){var y=Ln(s,I,b,d.primary,d.primary.type);d.markers.push(y),y.parent=d}}}function Qp(s){for(var l=function(d){var m=s[d],I=[m.primary.doc];yi(m.primary.doc,function(L){return I.push(L)});for(var b=0;b<m.markers.length;b++){var y=m.markers[b];hr(I,y.doc)==-1&&(y.parent=null,m.markers.splice(b--,1))}},g=0;g<s.length;g++)l(g)}var Hp=0,Ft=function(s,l,g,d,m){if(!(this instanceof Ft))return new Ft(s,l,g,d,m);g==null&&(g=0),ao.call(this,[new oo([new pn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var I=ce(g,0);this.sel=Ti(I),this.history=new An(null),this.id=++Hp,this.modeOption=l,this.lineSep=d,this.direction=m=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),to(this,{from:I,to:I,text:s}),Et(this,Ti(I),pe)};Ft.prototype=es(ao.prototype,{constructor:Ft,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:tt(function(s){var l=ce(this.first,0),g=this.first+this.size-1;yn(this,{from:l,to:ce(g,Ae(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&Jn(this.cm,0,0),Et(this,Ti(l),pe)}),replaceRange:function(s,l,g,d){l=Xe(this,l),g=g?Xe(this,g):l,Sn(this,s,l,g,d)},getRange:function(s,l,g){var d=pt(this,Xe(this,s),Xe(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(is(this,s))return Ae(this,s)},getLineNumber:function(s){return Qe(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 Xe(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:tt(function(s,l,g){Mu(this,Xe(this,typeof s=="number"?ce(s,l||0):s),null,g)}),setSelection:tt(function(s,l,g){Mu(this,Xe(this,s),Xe(this,l||s),g)}),extendSelection:tt(function(s,l,g){na(this,Xe(this,s),l&&Xe(this,l),g)}),extendSelections:tt(function(s,l){Vu(this,jl(this,s),l)}),extendSelectionsBy:tt(function(s,l){var g=wt(this.sel.ranges,s);Vu(this,jl(this,g),l)}),setSelections:tt(function(s,l,g){if(s.length){for(var d=[],m=0;m<s.length;m++)d[m]=new lr(Xe(this,s[m].anchor),Xe(this,s[m].head||s[m].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),Et(this,Pe(this.cm,d,l),g)}}),addSelection:tt(function(s,l,g){var d=this.sel.ranges.slice(0);d.push(new lr(Xe(this,s),Xe(this,l||s))),Et(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 m=pt(this,l[d].from(),l[d].to());g=g?g.concat(m):m}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 m=pt(this,g[d].from(),g[d].to());s!==!1&&(m=m.join(s||this.lineSeparator())),l[d]=m}return l},replaceSelection:function(s,l,g){for(var d=[],m=0;m<this.sel.ranges.length;m++)d[m]=s;this.replaceSelections(d,l,g||"+input")},replaceSelections:tt(function(s,l,g){for(var d=[],m=this.sel,I=0;I<m.ranges.length;I++){var b=m.ranges[I];d[I]={from:b.from(),to:b.to(),text:this.splitLines(s[I]),origin:g}}for(var y=l&&l!="end"&&Gp(this,d,l),L=d.length-1;L>=0;L--)yn(this,d[L]);y?Pu(this,y):this.cm&&xn(this.cm)}),undo:tt(function(){aa(this,"undo")}),redo:tt(function(){aa(this,"redo")}),undoSelection:tt(function(){aa(this,"undo",!0)}),redoSelection:tt(function(){aa(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 m=0;m<s.undone.length;m++)s.undone[m].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new An(this.history),yi(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:In(this.history.done),undone:In(this.history.undone)}},setHistory:function(s){var l=this.history=new An(this.history);l.done=In(s.done.slice(0),null,!0),l.undone=In(s.undone.slice(0),null,!0)},setGutterMarker:tt(function(s,l,g){return no(this,s,"gutter",function(d){var m=d.gutterMarkers||(d.gutterMarkers={});return m[l]=g,!g&&rr(m)&&(d.gutterMarkers=null),!0})}),clearGutter:tt(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&no(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(!is(this,s)||(l=s,s=Ae(this,s),!s))return null}else if(l=Qe(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:tt(function(s,l,g){return no(this,s,l=="gutter"?"gutter":"class",function(d){var m=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!d[m])d[m]=g;else{if(we(g).test(d[m]))return!1;d[m]+=" "+g}return!0})}),removeLineClass:tt(function(s,l,g){return no(this,s,l=="gutter"?"gutter":"class",function(d){var m=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",I=d[m];if(I)if(g==null)d[m]=null;else{var b=I.match(we(g));if(!b)return!1;var y=b.index+b[0].length;d[m]=I.slice(0,b.index)+(!b.index||y==I.length?"":" ")+I.slice(y)||null}else return!1;return!0})}),addLineWidget:tt(function(s,l,g){return kp(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return Ln(this,Xe(this,s),Xe(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=Xe(this,s),Ln(this,s,s,g,"bookmark")},findMarksAt:function(s){s=Xe(this,s);var l=[],g=Ae(this,s.line).markedSpans;if(g)for(var d=0;d<g.length;++d){var m=g[d];(m.from==null||m.from<=s.ch)&&(m.to==null||m.to>=s.ch)&&l.push(m.marker.parent||m.marker)}return l},findMarks:function(s,l,g){s=Xe(this,s),l=Xe(this,l);var d=[],m=s.line;return this.iter(s.line,l.line+1,function(I){var b=I.markedSpans;if(b)for(var y=0;y<b.length;y++){var L=b[y];!(L.to!=null&&m==s.line&&s.ch>=L.to||L.from==null&&m!=s.line||L.from!=null&&m==l.line&&L.from>=l.ch)&&(!g||g(L.marker))&&d.push(L.marker.parent||L.marker)}++m}),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(m){var I=m.text.length+d;if(I>s)return l=s,!0;s-=I,++g}),Xe(this,ce(g,l))},indexFromPos:function(s){s=Xe(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 Ft(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 Ft(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}],_p(d,zu(this)),d},unlinkDoc:function(s){if(s instanceof Rr&&(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),Qp(zu(this));break}}if(s.history==this.history){var d=[s.id];yi(s,function(m){return d.push(m.id)},!0),s.history=new An(null),s.history.done=In(this.history.done,d),s.history.undone=In(this.history.undone,d)}},iterLinkedDocs:function(s){yi(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):tn(s)},lineSeparator:function(){return this.lineSep||`
11
- `},setDirection:tt(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&za(this.cm))})}),Ft.prototype.eachLine=Ft.prototype.iter;var ju=0;function $p(s){var l=this;if(qu(l),!(dr(l,s)||Wi(l.display,s))){ft(s),O&&(ju=+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 m=d.length,I=Array(m),b=0,y=function(){++b==m&&rt(l,function(){g=Xe(l.doc,g);var K={from:g,to:g,text:l.doc.splitLines(I.filter(function(oe){return oe!=null}).join(l.doc.lineSeparator())),origin:"paste"};yn(l.doc,K),Pu(l.doc,Ti(Xe(l.doc,g),Xe(l.doc,Ri(K))))})()},L=function(K,oe){if(l.options.allowDropFileTypes&&hr(l.options.allowDropFileTypes,K.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}I[oe]=he,y()},fe.readAsText(K)},U=0;U<d.length;U++)L(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 $;if(l.state.draggingText&&!l.state.draggingText.copy&&($=l.listSelections()),Nn(l.doc,Ti(g,g)),$)for(var re=0;re<$.length;++re)Sn(l.doc,"",$[re].anchor,$[re].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function Xp(s,l){if(O&&(!s.state.draggingText||+new Date-ju<100)){Is(l);return}if(!(dr(s,l)||Wi(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!Q)){var g=ve("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",J&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),J&&g.parentNode.removeChild(g)}}function Yp(s,l){var g=li(s,l);if(g){var d=document.createDocumentFragment();Fs(s,g,d),s.display.dragCursor||(s.display.dragCursor=ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Ke(s.display.dragCursor,d)}}function qu(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function Ku(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],d=0;d<l.length;d++){var m=l[d].CodeMirror;m&&g.push(m)}g.length&&g[0].operation(function(){for(var I=0;I<g.length;I++)s(g[I])})}}var ef=!1;function Jp(){ef||(zp(),ef=!0)}function zp(){var s;Ue(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,Ku(jp)},100))}),Ue(window,"blur",function(){return Ku(mn)})}function jp(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var Es={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"},fo=0;fo<10;fo++)Es[fo+48]=Es[fo+96]=String(fo);for(var la=65;la<=90;la++)Es[la]=String.fromCharCode(la);for(var po=1;po<=12;po++)Es[po+111]=Es[po+63235]="F"+po;var Qi={};Qi.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"},Qi.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"},Qi.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"},Qi.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"]},Qi.default=z?Qi.macDefault:Qi.pcDefault;function qp(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,d,m,I,b=0;b<l.length-1;b++){var y=l[b];if(/^(cmd|meta|m)$/i.test(y))I=!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))m=!0;else throw new Error("Unrecognized modifier name: "+y)}return g&&(s="Alt-"+s),d&&(s="Ctrl-"+s),I&&(s="Cmd-"+s),m&&(s="Shift-"+s),s}function Kp(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 m=wt(g.split(" "),qp),I=0;I<m.length;I++){var b=void 0,y=void 0;I==m.length-1?(y=m.join(" "),b=d):(y=m.slice(0,I+1).join(" "),b="...");var L=l[y];if(!L)l[y]=b;else if(L!=b)throw new Error("Inconsistent bindings for "+y)}delete s[g]}for(var U in l)s[U]=l[U];return s}function wn(s,l,g,d){l=ua(l);var m=l.call?l.call(s,d):l[s];if(m===!1)return"nothing";if(m==="...")return"multi";if(m!=null&&g(m))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return wn(s,l.fallthrough,g,d);for(var I=0;I<l.fallthrough.length;I++){var b=wn(s,l.fallthrough[I],g,d);if(b)return b}}}function rf(s){var l=typeof s=="string"?s:Es[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function tf(s,l,g){var d=s;return l.altKey&&d!="Alt"&&(s="Alt-"+s),(Ee?l.metaKey:l.ctrlKey)&&d!="Ctrl"&&(s="Ctrl-"+s),(Ee?l.ctrlKey:l.metaKey)&&d!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&d!="Shift"&&(s="Shift-"+s),s}function sf(s,l){if(J&&s.keyCode==34&&s.char)return!1;var g=Es[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),tf(g,s,l))}function ua(s){return typeof s=="string"?Qi[s]:s}function On(s,l){for(var g=s.doc.sel.ranges,d=[],m=0;m<g.length;m++){for(var I=l(g[m]);d.length&&$e(I.from,Ie(d).to)<=0;){var b=d.pop();if($e(b.from,I.from)<0){I.from=b.from;break}}d.push(I)}_t(s,function(){for(var y=d.length-1;y>=0;y--)Sn(s.doc,"",d[y].from,d[y].to,"+delete");xn(s)})}function Ka(s,l,g){var d=Ir(s.text,l+g,g);return d<0||d>s.text.length?null:d}function el(s,l,g){var d=Ka(s,l.ch,g);return d==null?null:new ce(l.line,d,g<0?"after":"before")}function rl(s,l,g,d,m){if(s){l.doc.direction=="rtl"&&(m=-m);var I=br(g,l.doc.direction);if(I){var b=m<0?Ie(I):I[0],y=m<0==(b.level==1),L=y?"after":"before",U;if(b.level>0||l.doc.direction=="rtl"){var k=dn(l,g);U=m<0?g.text.length-1:0;var $=Ni(l,k,U).top;U=ri(function(re){return Ni(l,k,re).top==$},m<0==(b.level==1)?b.from:b.to-1,U),L=="before"&&(U=Ka(g,U,1))}else U=m<0?b.to:b.from;return new ce(d,U,L)}}return new ce(d,m<0?g.text.length:0,m<0?"before":"after")}function ec(s,l,g,d){var m=br(l,s.doc.direction);if(!m)return el(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 I=Nt(m,g.ch,g.sticky),b=m[I];if(s.doc.direction=="ltr"&&b.level%2==0&&(d>0?b.to>g.ch:b.from<g.ch))return el(l,g,d);var y=function(me,Ce){return Ka(l,me instanceof ce?me.ch:me,Ce)},L,U=function(me){return s.options.lineWrapping?(L=L||dn(s,l),Cu(s,l,L,me)):{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 $=b.level==1==d<0,re=y(g,$?1:-1);if(re!=null&&($?re<=b.to&&re<=k.end:re>=b.from&&re>=k.begin)){var K=$?"before":"after";return new ce(g.line,re,K)}}var oe=function(me,Ce,xe){for(var be=function(mr,it){return it?new ce(g.line,y(mr,1),"before"):new ce(g.line,mr,"after")};me>=0&&me<m.length;me+=Ce){var Ve=m[me],Fe=Ce>0==(Ve.level!=1),qe=Fe?xe.begin:y(xe.end,-1);if(Ve.from<=qe&&qe<Ve.to||(qe=Fe?Ve.from:y(Ve.to,-1),xe.begin<=qe&&qe<xe.end))return be(qe,Fe)}},fe=oe(I+d,d,k);if(fe)return fe;var he=d>0?k.end:y(k.begin,-1);return he!=null&&!(d>0&&he==l.text.length)&&(fe=oe(d>0?0:m.length-1,d,U(he)),fe)?fe:null}var co={selectAll:ku,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),pe)},killLine:function(s){return On(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:ce(l.head.line+1,0)}:{from:l.head,to:ce(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return On(s,function(l){return{from:ce(l.from().line,0),to:Xe(s.doc,ce(l.to().line+1,0))}})},delLineLeft:function(s){return On(s,function(l){return{from:ce(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return On(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 On(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(ce(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(ce(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return nf(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return of(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return rc(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/)?of(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,m=0;m<g.length;m++){var I=g[m].from(),b=Ar(s.getLine(I.line),I.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 _t(s,function(){for(var l=s.listSelections(),g=[],d=0;d<l.length;d++)if(l[d].empty()){var m=l[d].head,I=Ae(s.doc,m.line).text;if(I){if(m.ch==I.length&&(m=new ce(m.line,m.ch-1)),m.ch>0)m=new ce(m.line,m.ch+1),s.replaceRange(I.charAt(m.ch-1)+I.charAt(m.ch-2),ce(m.line,m.ch-2),m,"+transpose");else if(m.line>s.doc.first){var b=Ae(s.doc,m.line-1).text;b&&(m=new ce(m.line,1),s.replaceRange(I.charAt(0)+s.doc.lineSeparator()+b.charAt(b.length-1),ce(m.line-1,b.length-1),m,"+transpose"))}}g.push(new lr(m,m))}s.setSelections(g)})},newlineAndIndent:function(s){return _t(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);xn(s)})},openLine:function(s){return s.replaceSelection(`
12
- `,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function nf(s,l){var g=Ae(s.doc,l),d=ai(g);return d!=g&&(l=Qe(d)),rl(!0,s,d,l,1)}function rc(s,l){var g=Ae(s.doc,l),d=zf(g);return d!=g&&(l=Qe(d)),rl(!0,s,g,l,-1)}function of(s,l){var g=nf(s,l.line),d=Ae(s.doc,g.line),m=br(d,s.doc.direction);if(!m||m[0].level==0){var I=Math.max(g.ch,d.text.search(/\S/)),b=l.line==g.line&&l.ch<=I&&l.ch;return ce(g.line,b?0:I,g.sticky)}return g}function fa(s,l,g){if(typeof l=="string"&&(l=co[l],!l))return!1;s.display.input.ensurePolled();var d=s.display.shift,m=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),m=l(s)!=Oe}finally{s.display.shift=d,s.state.suppressEdits=!1}return m}function tc(s,l,g){for(var d=0;d<s.state.keyMaps.length;d++){var m=wn(l,s.state.keyMaps[d],g,s);if(m)return m}return s.options.extraKeys&&wn(l,s.options.extraKeys,g,s)||wn(l,s.options.keyMap,g,s)}var ic=new Pr;function ho(s,l,g,d){var m=s.state.keySeq;if(m){if(rf(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:ic.set(50,function(){s.state.keySeq==m&&(s.state.keySeq=null,s.display.input.reset())}),af(s,m+" "+l,g,d))return!0}return af(s,l,g,d)}function af(s,l,g,d){var m=tc(s,l,d);return m=="multi"&&(s.state.keySeq=l),m=="handled"&&et(s,"keyHandled",s,l,g),(m=="handled"||m=="multi")&&(ft(g),ka(s)),!!m}function lf(s,l){var g=sf(l,!0);return g?l.shiftKey&&!s.state.keySeq?ho(s,"Shift-"+g,l,function(d){return fa(s,d,!0)})||ho(s,g,l,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return fa(s,d)}):ho(s,g,l,function(d){return fa(s,d)}):!1}function sc(s,l,g){return ho(s,"'"+g+"'",l,function(d){return fa(s,d,!0)})}var tl=null;function uf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=Jr(Lt(l)),!dr(l,s))){O&&V<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var d=lf(l,s);J&&(tl=d?g:null,!d&&g==88&&!Wn&&(z?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!z&&!d&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&nc(l)}}function nc(s){var l=s.display.lineDiv;Je(l,"CodeMirror-crosshair");function g(d){(d.keyCode==18||!d.altKey)&&(We(l,"CodeMirror-crosshair"),Wr(document,"keyup",g),Wr(document,"mouseover",g))}Ue(document,"keyup",g),Ue(document,"mouseover",g)}function ff(s){s.keyCode==16&&(this.doc.sel.shift=!1),dr(this,s)}function pf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&!(Wi(l.display,s)||dr(l,s)||s.ctrlKey&&!s.altKey||z&&s.metaKey)){var g=s.keyCode,d=s.charCode;if(J&&g==tl){tl=null,ft(s);return}if(!(J&&(!s.which||s.which<10)&&lf(l,s))){var m=String.fromCharCode(d??g);m!="\b"&&(sc(l,s,m)||l.display.input.onKeyPress(s))}}}var oc=400,il=function(s,l,g){this.time=s,this.pos=l,this.button=g};il.prototype.compare=function(s,l,g){return this.time+oc>s&&$e(l,this.pos)==0&&g==this.button};var go,Eo;function ac(s,l){var g=+new Date;return Eo&&Eo.compare(g,s,l)?(go=Eo=null,"triple"):go&&go.compare(g,s,l)?(Eo=new il(g,s,l),go=null,"double"):(go=new il(g,s,l),Eo=null,"single")}function cf(s){var l=this,g=l.display;if(!(dr(l,s)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=s.shiftKey,Wi(g,s)){W||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!sl(l,s)){var d=li(l,s),m=en(s),I=d?ac(d,m):"single";at(l).focus(),m==1&&l.state.selectingText&&l.state.selectingText(s),!(d&&lc(l,m,d,I,s))&&(m==1?d?fc(l,d,I,s):Ks(s)==g.scroller&&ft(s):m==2?(d&&na(l.doc,d),setTimeout(function(){return g.input.focus()},20)):m==3&&(_e?l.display.input.onContextMenu(s):Za(l)))}}}function lc(s,l,g,d,m){var I="Click";return d=="double"?I="Double"+I:d=="triple"&&(I="Triple"+I),I=(l==1?"Left":l==2?"Middle":"Right")+I,ho(s,tf(I,m),m,function(b){if(typeof b=="string"&&(b=co[b]),!b)return!1;var y=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y=b(s,g)!=Oe}finally{s.state.suppressEdits=!1}return y})}function uc(s,l,g){var d=s.getOption("configureMouse"),m=d?d(s,l,g):{};if(m.unit==null){var I=te?g.shiftKey&&g.metaKey:g.altKey;m.unit=I?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(m.extend==null||s.doc.extend)&&(m.extend=s.doc.extend||g.shiftKey),m.addNew==null&&(m.addNew=z?g.metaKey:g.ctrlKey),m.moveOnDrag==null&&(m.moveOnDrag=!(z?g.altKey:g.ctrlKey)),m}function fc(s,l,g,d){O?setTimeout(ze(Au,s),0):s.curOp.focus=Jr(Lt(s));var m=uc(s,g,d),I=s.doc.sel,b;s.options.dragDrop&&Go&&!s.isReadOnly()&&g=="single"&&(b=I.contains(l))>-1&&($e((b=I.ranges[b]).from(),l)<0||l.xRel>0)&&($e(b.to(),l)>0||l.xRel<0)?pc(s,d,l,m):cc(s,d,l,m)}function pc(s,l,g,d){var m=s.display,I=!1,b=rt(s,function(U){W&&(m.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:Za(s)),Wr(m.wrapper.ownerDocument,"mouseup",b),Wr(m.wrapper.ownerDocument,"mousemove",y),Wr(m.scroller,"dragstart",L),Wr(m.scroller,"drop",b),I||(ft(U),d.addNew||na(s.doc,g,null,null,d.extend),W&&!Q||O&&V==9?setTimeout(function(){m.wrapper.ownerDocument.body.focus({preventScroll:!0}),m.input.focus()},20):m.input.focus())}),y=function(U){I=I||Math.abs(l.clientX-U.clientX)+Math.abs(l.clientY-U.clientY)>=10},L=function(){return I=!0};W&&(m.scroller.draggable=!0),s.state.draggingText=b,b.copy=!d.moveOnDrag,Ue(m.wrapper.ownerDocument,"mouseup",b),Ue(m.wrapper.ownerDocument,"mousemove",y),Ue(m.scroller,"dragstart",L),Ue(m.scroller,"drop",b),s.state.delayingBlurEvent=!0,setTimeout(function(){return m.input.focus()},20),m.scroller.dragDrop&&m.scroller.dragDrop()}function hf(s,l,g){if(g=="char")return new lr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new lr(ce(l.line,0),Xe(s.doc,ce(l.line+1,0)));var d=g(s,l);return new lr(d.from,d.to)}function cc(s,l,g,d){O&&Za(s);var m=s.display,I=s.doc;ft(l);var b,y,L=I.sel,U=L.ranges;if(d.addNew&&!d.extend?(y=I.sel.contains(g),y>-1?b=U[y]:b=new lr(g,g)):(b=I.sel.primary(),y=I.sel.primIndex),d.unit=="rectangle")d.addNew||(b=new lr(g,g)),g=li(s,l,!0,!0),y=-1;else{var k=hf(s,g,d.unit);d.extend?b=ja(b,k.anchor,k.head,d.extend):b=k}d.addNew?y==-1?(y=U.length,Et(I,Pe(s,U.concat([b]),y),{scroll:!1,origin:"*mouse"})):U.length>1&&U[y].empty()&&d.unit=="char"&&!d.extend?(Et(I,Pe(s,U.slice(0,y).concat(U.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),L=I.sel):qa(I,y,b,Er):(y=0,Et(I,new Tr([b],0),Er),L=I.sel);var $=g;function re(xe){if($e($,xe)!=0)if($=xe,d.unit=="rectangle"){for(var be=[],Ve=s.options.tabSize,Fe=Ar(Ae(I,g.line).text,g.ch,Ve),qe=Ar(Ae(I,xe.line).text,xe.ch,Ve),mr=Math.min(Fe,qe),it=Math.max(Fe,qe),Sr=Math.min(g.line,xe.line),Qt=Math.min(s.lastLine(),Math.max(g.line,xe.line));Sr<=Qt;Sr++){var Bt=Ae(I,Sr).text,_r=ye(Bt,mr,Ve);mr==it?be.push(new lr(ce(Sr,_r),ce(Sr,_r))):Bt.length>_r&&be.push(new lr(ce(Sr,_r),ce(Sr,ye(Bt,it,Ve))))}be.length||be.push(new lr(g,g)),Et(I,Pe(s,L.ranges.slice(0,y).concat(be),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(xe)}else{var Dt=b,ot=hf(s,xe,d.unit),jr=Dt.anchor,Qr;$e(ot.anchor,jr)>0?(Qr=ot.head,jr=Mo(Dt.from(),ot.anchor)):(Qr=ot.anchor,jr=Vo(Dt.to(),ot.head));var Ur=L.ranges.slice(0);Ur[y]=hc(s,new lr(Xe(I,jr),Qr)),Et(I,Pe(s,Ur,y),Er)}}var K=m.wrapper.getBoundingClientRect(),oe=0;function fe(xe){var be=++oe,Ve=li(s,xe,!0,d.unit=="rectangle");if(Ve)if($e(Ve,$)!=0){s.curOp.focus=Jr(Lt(s)),re(Ve);var Fe=zo(m,I);(Ve.line>=Fe.to||Ve.line<Fe.from)&&setTimeout(rt(s,function(){oe==be&&fe(xe)}),150)}else{var qe=xe.clientY<K.top?-20:xe.clientY>K.bottom?20:0;qe&&setTimeout(rt(s,function(){oe==be&&(m.scroller.scrollTop+=qe,fe(xe))}),50)}}function he(xe){s.state.selectingText=!1,oe=1/0,xe&&(ft(xe),m.input.focus()),Wr(m.wrapper.ownerDocument,"mousemove",me),Wr(m.wrapper.ownerDocument,"mouseup",Ce),I.history.lastSelOrigin=null}var me=rt(s,function(xe){xe.buttons===0||!en(xe)?he(xe):fe(xe)}),Ce=rt(s,he);s.state.selectingText=Ce,Ue(m.wrapper.ownerDocument,"mousemove",me),Ue(m.wrapper.ownerDocument,"mouseup",Ce)}function hc(s,l){var g=l.anchor,d=l.head,m=Ae(s.doc,g.line);if($e(g,d)==0&&g.sticky==d.sticky)return l;var I=br(m);if(!I)return l;var b=Nt(I,g.ch,g.sticky),y=I[b];if(y.from!=g.ch&&y.to!=g.ch)return l;var L=b+(y.from==g.ch==(y.level!=1)?0:1);if(L==0||L==I.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=Nt(I,d.ch,d.sticky),$=k-b||(d.ch-g.ch)*(y.level==1?-1:1);k==L-1||k==L?U=$<0:U=$>0}var re=I[L+(U?-1:0)],K=U==(re.level==1),oe=K?re.from:re.to,fe=K?"after":"before";return g.ch==oe&&g.sticky==fe?l:new lr(new ce(g.line,oe,fe),d)}function df(s,l,g,d){var m,I;if(l.touches)m=l.touches[0].clientX,I=l.touches[0].clientY;else try{m=l.clientX,I=l.clientY}catch{return!1}if(m>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;d&&ft(l);var b=s.display,y=b.lineDiv.getBoundingClientRect();if(I>y.bottom||!tr(s,g))return Ei(l);I-=y.top-b.viewOffset;for(var L=0;L<s.display.gutterSpecs.length;++L){var U=b.gutters.childNodes[L];if(U&&U.getBoundingClientRect().right>=m){var k=mi(s.doc,I),$=s.display.gutterSpecs[L];return ar(s,g,s,k,$.className,l),Ei(l)}}}function sl(s,l){return df(s,l,"gutterClick",!0)}function gf(s,l){Wi(s.display,l)||dc(s,l)||dr(s,l,"contextmenu")||_e||s.display.input.onContextMenu(l)}function dc(s,l){return tr(s,"gutterContextMenu")?df(s,l,"gutterContextMenu",!1):!1}function Ef(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ls(s)}var Un={toString:function(){return"CodeMirror.Init"}},vf={},pa={};function gc(s){var l=s.optionHandlers;function g(d,m,I,b){s.defaults[d]=m,I&&(l[d]=b?function(y,L,U){U!=Un&&I(y,L,U)}:I)}s.defineOption=g,s.Init=Un,g("value","",function(d,m){return d.setValue(m)},!0),g("mode",null,function(d,m){d.doc.modeOption=m,ui(d)},!0),g("indentUnit",2,ui,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(d){Ps(d),Ls(d),gt(d)},!0),g("lineSeparator",null,function(d,m){if(d.doc.lineSep=m,!!m){var I=[],b=d.doc.first;d.doc.iter(function(L){for(var U=0;;){var k=L.text.indexOf(m,U);if(k==-1)break;U=k+m.length,I.push(ce(b,k))}b++});for(var y=I.length-1;y>=0;y--)Sn(d.doc,m,I[y],ce(I[y].line,I[y].ch+m.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,m,I){d.state.specialChars=new RegExp(m.source+(m.test(" ")?"":"| "),"g"),I!=Un&&d.refresh()}),g("specialCharPlaceholder",rp,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,m){return d.getInputField().spellcheck=m},!0),g("autocorrect",!1,function(d,m){return d.getInputField().autocorrect=m},!0),g("autocapitalize",!1,function(d,m){return d.getInputField().autocapitalize=m},!0),g("rtlMoveVisually",!ie),g("wholeLineUpdateBefore",!0),g("theme","default",function(d){Ef(d),ro(d)},!0),g("keyMap","default",function(d,m,I){var b=ua(m),y=I!=Un&&ua(I);y&&y.detach&&y.detach(d,b),b.attach&&b.attach(d,y||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,vc,!0),g("gutters",[],function(d,m){d.display.gutterSpecs=Ja(m,d.options.lineNumbers),ro(d)},!0),g("fixedGutter",!0,function(d,m){d.display.gutters.style.left=m?dt(d.display)+"px":"0",d.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(d){return Cn(d)},!0),g("scrollbarStyle","native",function(d){yu(d),Cn(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),g("lineNumbers",!1,function(d,m){d.display.gutterSpecs=Ja(d.options.gutters,m),ro(d)},!0),g("firstLineNumber",1,ro,!0),g("lineNumberFormatter",function(d){return d},ro,!0),g("showCursorWhenSelecting",!1,Gs,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(d,m){m=="nocursor"&&(mn(d),d.display.input.blur()),d.display.input.readOnlyChanged(m)}),g("screenReaderLabel",null,function(d,m){m=m===""?null:m,d.display.input.screenReaderLabelChanged(m)}),g("disableInput",!1,function(d,m){m||d.display.input.reset()},!0),g("dragDrop",!0,Ec),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Gs,!0),g("singleCursorHeightPerLine",!0,Gs,!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,m){return d.doc.history.undoDepth=m}),g("historyEventDelay",1250),g("viewportMargin",10,function(d){return d.refresh()},!0),g("maxHighlightLength",1e4,Ps,!0),g("moveInputWithCursor",!0,function(d,m){m||d.display.input.resetPosition()}),g("tabindex",null,function(d,m){return d.display.input.getField().tabIndex=m||""}),g("autofocus",null),g("direction","ltr",function(d,m){return d.doc.setDirection(m)},!0),g("phrases",null)}function Ec(s,l,g){var d=g&&g!=Un;if(!l!=!d){var m=s.display.dragFunctions,I=l?Ue:Wr;I(s.display.scroller,"dragstart",m.start),I(s.display.scroller,"dragenter",m.enter),I(s.display.scroller,"dragover",m.over),I(s.display.scroller,"dragleave",m.leave),I(s.display.scroller,"drop",m.drop)}}function vc(s){s.options.lineWrapping?(Je(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(We(s.display.wrapper,"CodeMirror-wrap"),Ba(s)),Us(s),gt(s),Ls(s),setTimeout(function(){return Cn(s)},100)}function Rr(s,l){var g=this;if(!(this instanceof Rr))return new Rr(s,l);this.options=l=l?zr(l):{},zr(vf,l,!1);var d=l.value;typeof d=="string"?d=new Ft(d,l.mode,null,l.lineSeparator,l.direction):l.mode&&(d.modeOption=l.mode),this.doc=d;var m=new Rr.inputStyles[l.inputStyle](this),I=this.display=new Op(s,d,m,l);I.wrapper.CodeMirror=this,Ef(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yu(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&&I.input.focus(),O&&V<11&&setTimeout(function(){return g.display.input.reset(!0)},20),mc(this),Jp(),Vs(this),this.curOp.forceUpdate=!0,ta(this,d),l.autofocus&&!X||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&_a(g)},20):mn(this);for(var b in pa)pa.hasOwnProperty(b)&&pa[b](this,l[b],Un);wu(this),l.finishInit&&l.finishInit(this);for(var y=0;y<nl.length;++y)nl[y](this);Ms(this),W&&l.lineWrapping&&getComputedStyle(I.lineDiv).textRendering=="optimizelegibility"&&(I.lineDiv.style.textRendering="auto")}Rr.defaults=vf,Rr.optionHandlers=pa;function mc(s){var l=s.display;Ue(l.scroller,"mousedown",rt(s,cf)),O&&V<11?Ue(l.scroller,"dblclick",rt(s,function(L){if(!dr(s,L)){var U=li(s,L);if(!(!U||sl(s,L)||Wi(s.display,L))){ft(L);var k=s.findWordAt(U);na(s.doc,k.anchor,k.head)}}})):Ue(l.scroller,"dblclick",function(L){return dr(s,L)||ft(L)}),Ue(l.scroller,"contextmenu",function(L){return gf(s,L)}),Ue(l.input.getField(),"contextmenu",function(L){l.scroller.contains(L.target)||gf(s,L)});var g,d={end:0};function m(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),d=l.activeTouch,d.end=+new Date)}function I(L){if(L.touches.length!=1)return!1;var U=L.touches[0];return U.radiusX<=1&&U.radiusY<=1}function b(L,U){if(U.left==null)return!0;var k=U.left-L.left,$=U.top-L.top;return k*k+$*$>20*20}Ue(l.scroller,"touchstart",function(L){if(!dr(s,L)&&!I(L)&&!sl(s,L)){l.input.ensurePolled(),clearTimeout(g);var U=+new Date;l.activeTouch={start:U,moved:!1,prev:U-d.end<=300?d:null},L.touches.length==1&&(l.activeTouch.left=L.touches[0].pageX,l.activeTouch.top=L.touches[0].pageY)}}),Ue(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Ue(l.scroller,"touchend",function(L){var U=l.activeTouch;if(U&&!Wi(l,L)&&U.left!=null&&!U.moved&&new Date-U.start<300){var k=s.coordsChar(l.activeTouch,"page"),$;!U.prev||b(U,U.prev)?$=new lr(k,k):!U.prev.prev||b(U,U.prev.prev)?$=s.findWordAt(k):$=new lr(ce(k.line,0),Xe(s.doc,ce(k.line+1,0))),s.setSelection($.anchor,$.head),s.focus(),ft(L)}m()}),Ue(l.scroller,"touchcancel",m),Ue(l.scroller,"scroll",function(){l.scroller.clientHeight&&(zn(s,l.scroller.scrollTop),Bs(s,l.scroller.scrollLeft,!0),ar(s,"scroll",s))}),Ue(l.scroller,"mousewheel",function(L){return ea(s,L)}),Ue(l.scroller,"DOMMouseScroll",function(L){return ea(s,L)}),Ue(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(L){dr(s,L)||Is(L)},over:function(L){dr(s,L)||(Yp(s,L),Is(L))},start:function(L){return Xp(s,L)},drop:rt(s,$p),leave:function(L){dr(s,L)||qu(s)}};var y=l.input.getField();Ue(y,"keyup",function(L){return ff.call(s,L)}),Ue(y,"keydown",rt(s,uf)),Ue(y,"keypress",rt(s,pf)),Ue(y,"focus",function(L){return _a(s,L)}),Ue(y,"blur",function(L){return mn(s,L)})}var nl=[];Rr.defineInitHook=function(s){return nl.push(s)};function vo(s,l,g,d){var m=s.doc,I;g==null&&(g="add"),g=="smart"&&(m.mode.indent?I=kn(s,l).state:g="prev");var b=s.options.tabSize,y=Ae(m,l),L=Ar(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=m.mode.indent(I,y.text.slice(U.length),y.text),k==Oe||k>150)){if(!d)return;g="prev"}g=="prev"?l>m.first?k=Ar(Ae(m,l-1).text,null,b):k=0:g=="add"?k=L+s.options.indentUnit:g=="subtract"?k=L-s.options.indentUnit:typeof g=="number"&&(k=L+g),k=Math.max(0,k);var $="",re=0;if(s.options.indentWithTabs)for(var K=Math.floor(k/b);K;--K)re+=b,$+=" ";if(re<k&&($+=ei(k-re)),$!=U)return Sn(m,$,ce(l,0),ce(l,U.length),"+input"),y.stateAfter=null,!0;for(var oe=0;oe<m.sel.ranges.length;oe++){var fe=m.sel.ranges[oe];if(fe.head.line==l&&fe.head.ch<U.length){var he=ce(l,U.length);qa(m,oe,new lr(he,he));break}}}var fi=null;function ca(s){fi=s}function ol(s,l,g,d,m){var I=s.doc;s.display.shift=!1,d||(d=I.sel);var b=+new Date-200,y=m=="paste"||s.state.pasteIncoming>b,L=tn(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(I.splitLines(fi.text[k]))}}else L.length==d.ranges.length&&s.options.pasteLinesPerSelection&&(U=wt(L,function(me){return[me]}));for(var $=s.curOp.updateInput,re=d.ranges.length-1;re>=0;re--){var K=d.ranges[re],oe=K.from(),fe=K.to();K.empty()&&(g&&g>0?oe=ce(oe.line,oe.ch-g):s.state.overwrite&&!y?fe=ce(fe.line,Math.min(Ae(I,fe.line).text.length,fe.ch+Ie(L).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(m),s.display.lineSpace.removeChild(b)}}}function Ep(s,l,g,d){d==null&&(d=0);var m;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?ce(l.line,l.ch+1,"before"):l,l=l.ch?ce(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var I=0;I<5;I++){var b=!1,R=$e(s,l),L=!g||g==l?R:$e(s,g);m={left:Math.min(R.left,L.left),top:Math.min(R.top,L.top)-d,right:Math.max(R.left,L.left),bottom:Math.max(R.bottom,L.bottom)+d};var O=_a(s,m),k=s.doc.scrollTop,X=s.doc.scrollLeft;if(O.scrollTop!=null&&(jn(s,O.scrollTop),Math.abs(s.doc.scrollTop-k)>1&&(b=!0)),O.scrollLeft!=null&&(Bs(s,O.scrollLeft),Math.abs(s.doc.scrollLeft-X)>1&&(b=!0)),!b)break}return m}function vp(s,l){var g=_a(s,l);g.scrollTop!=null&&jn(s,g.scrollTop),g.scrollLeft!=null&&Bs(s,g.scrollLeft)}function _a(s,l){var g=s.display,d=Mr(s.display);l.top<0&&(l.top=0);var m=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,I=Va(s),b={};l.bottom-l.top>I&&(l.bottom=l.top+I);var R=s.doc.height+Da(g),L=l.top<d,O=l.bottom>R-d;if(l.top<m)b.scrollTop=L?0:l.top;else if(l.bottom>m+I){var k=Math.min(l.top,(O?R:l.bottom)-I);k!=m&&(b.scrollTop=k)}var X=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-X,ee=Ss(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+X-(oe?0:10)):l.right>ee+re-3&&(b.scrollLeft=l.right+(oe?0:10)-ee),b}function Ha(s,l){l!=null&&(jo(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function Cn(s){jo(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function zn(s,l,g){(l!=null||g!=null)&&jo(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function mp(s,l){jo(s),s.curOp.scrollToPos=l}function jo(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=mu(s,l.from),d=mu(s,l.to);Nu(s,g,d,l.margin)}}function Nu(s,l,g,d){var m=_a(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});zn(s,m.scrollLeft,m.scrollTop)}function jn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||Xa(s,{top:l}),bu(s,l,!0),e&&Xa(s),eo(s,100))}function bu(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 Bs(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,Lu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function qn(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+Ii(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Ds=function(s,l,g){this.cm=g;var d=this.vert=ve("div",[ve("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),m=this.horiz=ve("div",[ve("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=m.tabIndex=-1,s(d),s(m),Ue(d,"scroll",function(){d.clientHeight&&l(d.scrollTop,"vertical")}),Ue(m,"scroll",function(){m.clientWidth&&l(m.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,G&&V<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 m=s.viewHeight-(l?d:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+m)+"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 I=s.viewWidth-s.barLeft-(g?d:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+I)+"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 Zr,this.disableVert=new Zr},Ds.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function d(){var m=s.getBoundingClientRect(),I=g=="vert"?document.elementFromPoint(m.right-1,(m.top+m.bottom)/2):document.elementFromPoint((m.right+m.left)/2,m.bottom-1);I!=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 Kn=function(){};Kn.prototype.update=function(){return{bottom:0,right:0}},Kn.prototype.setScrollLeft=function(){},Kn.prototype.setScrollTop=function(){},Kn.prototype.clear=function(){};function An(s,l){l||(l=qn(s));var g=s.display.barWidth,d=s.display.barHeight;Tu(s,l);for(var m=0;m<4&&g!=s.display.barWidth||d!=s.display.barHeight;m++)g!=s.display.barWidth&&s.options.lineWrapping&&Jo(s),Tu(s,qn(s)),g=s.display.barWidth,d=s.display.barHeight}function Tu(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 yu={native:Ds,null:Kn};function Ru(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Pe(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new yu[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Ue(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"?Bs(s,l):jn(s,l)},s),s.display.scrollbars.addClass&&Je(s.display.wrapper,s.display.scrollbars.addClass)}var xp=0;function Vs(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:++xp,markArrays:null},op(s.curOp)}function Ms(s){var l=s.curOp;l&&lp(l,function(g){for(var d=0;d<g.ops.length;d++)g.ops[d].cm.curOp=null;Cp(g)})}function Cp(s){for(var l=s.ops,g=0;g<l.length;g++)Ap(l[g]);for(var d=0;d<l.length;d++)Ip(l[d]);for(var m=0;m<l.length;m++)Np(l[m]);for(var I=0;I<l.length;I++)bp(l[I]);for(var b=0;b<l.length;b++)Tp(l[b])}function Ap(s){var l=s.cm,g=l.display;Rp(l),s.updateMaxLine&&Ba(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 qo(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Ip(s){s.updatedDisplay=s.mustUpdate&&Ya(s.cm,s.update)}function Np(s){var l=s.cm,g=l.display;s.updatedDisplay&&Jo(l),s.barMeasure=qn(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=hu(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+Ii(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-Ss(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function bp(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Bs(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==Jr(wt(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&An(l,s.barMeasure),s.updatedDisplay&&$a(l,s.barMeasure),s.selectionChanged&&Za(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Au(s.cm)}function Tp(s){var l=s.cm,g=l.display,d=l.doc;if(s.updatedDisplay&&Su(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&bu(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Bs(l,s.scrollLeft,!0,!0),s.scrollToPos){var m=Ep(l,Xe(d,s.scrollToPos.from),Xe(d,s.scrollToPos.to),s.scrollToPos.margin);gp(l,m)}var I=s.maybeHiddenMarkers,b=s.maybeUnhiddenMarkers;if(I)for(var R=0;R<I.length;++R)I[R].lines.length||ar(I[R],"hide");if(b)for(var L=0;L<b.length;++L)b[L].lines.length&&ar(b[L],"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();Vs(s);try{return l()}finally{Ms(s)}}function tt(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Vs(s);try{return l.apply(s,arguments)}finally{Ms(s)}}}function Tt(s){return function(){if(this.curOp)return s.apply(this,arguments);Vs(this);try{return s.apply(this,arguments)}finally{Ms(this)}}}function it(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Vs(l);try{return s.apply(this,arguments)}finally{Ms(l)}}}function eo(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,ze(yp,s))}function yp(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,d=kn(s,l.highlightFrontier),m=[];l.iter(d.line,Math.min(l.first+l.size,s.display.viewTo+500),function(I){if(d.line>=s.display.viewFrom){var b=I.styles,R=I.text.length>s.options.maxHighlightLength?ye(l.mode,d.state):null,L=ql(s,I,d,!0);R&&(d.state=R),I.styles=L.styles;var O=I.styleClasses,k=L.classes;k?I.styleClasses=k:O&&(I.styleClasses=null);for(var X=!b||b.length!=I.styles.length||O!=k&&(!O||!k||O.bgClass!=k.bgClass||O.textClass!=k.textClass),re=0;!X&&re<b.length;++re)X=b[re]!=I.styles[re];X&&m.push(d.line),I.stateAfter=d.save(),d.nextLine()}else I.text.length<=s.options.maxHighlightLength&&Qn(s,I.text,d),I.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>g)return eo(s,s.options.workDelay),!0}),l.highlightFrontier=d.line,l.modeFrontier=Math.max(l.modeFrontier,d.line),m.length&&Qt(s,function(){for(var I=0;I<m.length;I++)kt(s,m[I],"text")})}}var qo=function(s,l,g){var d=s.display;this.viewport=l,this.visible=zo(d,s.doc,l),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=Ss(s),this.force=g,this.dims=Os(s),this.events=[]};qo.prototype.signal=function(s,l){tr(s,l)&&this.events.push(arguments)},qo.prototype.finish=function(){for(var s=0;s<this.events.length;s++)ar.apply(null,this.events[s])};function Rp(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ii(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ii(s)+"px",l.scrollbarsClipped=!0)}function Sp(s){if(s.hasFocus())return null;var l=Jr(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 Lp(s){if(!(!s||!s.activeElt||s.activeElt==Jr(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 Ya(s,l){var g=s.display,d=s.doc;if(l.editorIsHidden)return bi(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&&$o(s)==0)return!1;wu(s)&&(bi(s),l.dims=Os(s));var m=d.first+d.size,I=Math.max(l.visible.from-s.options.viewportMargin,d.first),b=Math.min(m,l.visible.to+s.options.viewportMargin);g.viewFrom<I&&I-g.viewFrom<20&&(I=Math.max(d.first,g.viewFrom)),g.viewTo>b&&g.viewTo-b<20&&(b=Math.min(m,g.viewTo)),Bi&&(I=_n(s.doc,I),b=Qo(s.doc,b));var R=I!=g.viewFrom||b!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;Jn(s,I,b),g.viewOffset=Mi(Ae(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var L=$o(s);if(!R&&L==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var O=Sp(s);return L>4&&(g.lineDiv.style.display="none"),wp(s,g.updateLineNumbers,l.dims),L>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Lp(O),Me(g.cursorDiv),Me(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,R&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,eo(s,400)),g.updateLineNumbers=null,!0}function Su(s,l){for(var g=l.viewport,d=!0;;d=!1){if(!d||!s.options.lineWrapping||l.oldDisplayWidth==Ss(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Da(s.display)-Va(s),g.top)}),l.visible=zo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else d&&(l.visible=zo(s.display,s.doc,g));if(!Ya(s,l))break;Jo(s);var m=qn(s);Gs(s),An(s,m),$a(s,m),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 Xa(s,l){var g=new qo(s,l);if(Ya(s,g)){Jo(s),Su(s,g);var d=qn(s);Gs(s),An(s,d),$a(s,d),g.finish()}}function wp(s,l,g){var d=s.display,m=s.options.lineNumbers,I=d.lineDiv,b=I.firstChild;function R(oe){var fe=oe.nextSibling;return Z&&q&&s.display.currentWheelTarget==oe?oe.style.display="none":oe.parentNode.removeChild(oe),fe}for(var L=d.view,O=d.viewFrom,k=0;k<L.length;k++){var X=L[k];if(!X.hidden)if(!X.node||X.node.parentNode!=I){var re=Ft(s,X,O,g);I.insertBefore(re,b)}else{for(;b!=X.node;)b=R(b);var ee=m&&l!=null&&l<=O&&X.lineNumber;X.changes&&(hr(X.changes,"gutter")>-1&&(ee=!1),uu(s,X,O,g)),ee&&(Me(X.lineNumber),X.lineNumber.appendChild(document.createTextNode(ya(s.options,O)))),b=X.node.nextSibling}O+=X.size}for(;b;)b=R(b)}function ro(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",rt(s,"gutterChanged",s)}function $a(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+Ii(s)+"px"}function Lu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var d=vt(l)-l.scroller.scrollLeft+s.doc.scrollLeft,m=l.gutters.offsetWidth,I=d+"px",b=0;b<g.length;b++)if(!g[b].hidden){s.options.fixedGutter&&(g[b].gutter&&(g[b].gutter.style.left=I),g[b].gutterBackground&&(g[b].gutterBackground.style.left=I));var R=g[b].alignable;if(R)for(var L=0;L<R.length;L++)R[L].style.left=I}s.options.fixedGutter&&(l.gutters.style.left=d+m+"px")}}function wu(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=ya(s.options,l.first+l.size-1),d=s.display;if(g.length!=d.lineNumChars){var m=d.measure.appendChild(ve("div",[ve("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),I=m.firstChild.offsetWidth,b=m.offsetWidth-I;return d.lineGutter.style.width="",d.lineNumInnerWidth=Math.max(I,d.lineGutter.offsetWidth-b)+1,d.lineNumWidth=d.lineNumInnerWidth+b,d.lineNumChars=d.lineNumInnerWidth?g.length:-1,d.lineGutter.style.width=d.lineNumWidth+"px",ro(s.display),!0}return!1}function Ja(s,l){for(var g=[],d=!1,m=0;m<s.length;m++){var I=s[m],b=null;if(typeof I!="string"&&(b=I.style,I=I.className),I=="CodeMirror-linenumbers")if(l)d=!0;else continue;g.push({className:I,style:b})}return l&&!d&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Ou(s){var l=s.gutters,g=s.gutterSpecs;Me(l),s.lineGutter=null;for(var d=0;d<g.length;++d){var m=g[d],I=m.className,b=m.style,R=l.appendChild(ve("div",null,"CodeMirror-gutter "+I));b&&(R.style.cssText=b),I=="CodeMirror-linenumbers"&&(s.lineGutter=R,R.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",ro(s)}function to(s){Ou(s.display),mt(s),Lu(s)}function Op(s,l,g,d){var m=this;this.input=g,m.scrollbarFiller=ve("div",null,"CodeMirror-scrollbar-filler"),m.scrollbarFiller.setAttribute("cm-not-content","true"),m.gutterFiller=ve("div",null,"CodeMirror-gutter-filler"),m.gutterFiller.setAttribute("cm-not-content","true"),m.lineDiv=xr("div",null,"CodeMirror-code"),m.selectionDiv=ve("div",null,null,"position: relative; z-index: 1"),m.cursorDiv=ve("div",null,"CodeMirror-cursors"),m.measure=ve("div",null,"CodeMirror-measure"),m.lineMeasure=ve("div",null,"CodeMirror-measure"),m.lineSpace=xr("div",[m.measure,m.lineMeasure,m.selectionDiv,m.cursorDiv,m.lineDiv],null,"position: relative; outline: none");var I=xr("div",[m.lineSpace],"CodeMirror-lines");m.mover=ve("div",[I],null,"position: relative"),m.sizer=ve("div",[m.mover],"CodeMirror-sizer"),m.sizerWidth=null,m.heightForcer=ve("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),m.gutters=ve("div",null,"CodeMirror-gutters"),m.lineGutter=null,m.scroller=ve("div",[m.sizer,m.heightForcer,m.gutters],"CodeMirror-scroll"),m.scroller.setAttribute("tabIndex","-1"),m.wrapper=ve("div",[m.scrollbarFiller,m.gutterFiller,m.scroller],"CodeMirror"),_&&W===105&&(m.wrapper.style.clipPath="inset(0px)"),m.wrapper.setAttribute("translate","no"),G&&V<8&&(m.gutters.style.zIndex=-1,m.scroller.style.paddingRight=0),!Z&&!(e&&Y)&&(m.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(m.wrapper):s(m.wrapper)),m.viewFrom=m.viewTo=l.first,m.reportedViewFrom=m.reportedViewTo=l.first,m.view=[],m.renderedView=null,m.externalMeasured=null,m.viewOffset=0,m.lastWrapHeight=m.lastWrapWidth=0,m.updateLineNumbers=null,m.nativeBarWidth=m.barHeight=m.barWidth=0,m.scrollbarsClipped=!1,m.lineNumWidth=m.lineNumInnerWidth=m.lineNumChars=null,m.alignWidgets=!1,m.cachedCharWidth=m.cachedTextHeight=m.cachedPaddingH=null,m.maxLine=null,m.maxLineLength=0,m.maxLineChanged=!1,m.wheelDX=m.wheelDY=m.wheelStartX=m.wheelStartY=null,m.shift=!1,m.selForContextMenu=null,m.activeTouch=null,m.gutterSpecs=Ja(d.gutters,d.lineNumbers),Ou(m),g.init(m)}var Ko=0,ki=null;G?ki=-.53:e?ki=15:_?ki=-.7:M&&(ki=-1/3);function Uu(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 Up(s){var l=Uu(s);return l.x*=ki,l.y*=ki,l}function ea(s,l){_&&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=Uu(l),d=g.x,m=g.y,I=ki;l.deltaMode===0&&(d=l.deltaX,m=l.deltaY,I=1);var b=s.display,R=b.scroller,L=R.scrollWidth>R.clientWidth,O=R.scrollHeight>R.clientHeight;if(d&&L||m&&O){if(m&&q&&Z){e:for(var k=l.target,X=b.view;k!=R;k=k.parentNode)for(var re=0;re<X.length;re++)if(X[re].node==k){s.display.currentWheelTarget=k;break e}}if(d&&!e&&!J&&I!=null){m&&O&&jn(s,Math.max(0,R.scrollTop+m*I)),Bs(s,Math.max(0,R.scrollLeft+d*I)),(!m||m&&O)&&ht(l),b.wheelStartX=null;return}if(m&&I!=null){var ee=m*I,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),Xa(s,{top:oe,bottom:fe})}Ko<20&&l.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=R.scrollLeft,b.wheelStartY=R.scrollTop,b.wheelDX=d,b.wheelDY=m,setTimeout(function(){if(b.wheelStartX!=null){var he=R.scrollLeft-b.wheelStartX,me=R.scrollTop-b.wheelStartY,Ce=me&&b.wheelDY&&me/b.wheelDY||he&&b.wheelDX&&he/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(ki=(ki*Ko+Ce)/(Ko+1),++Ko)}},200)):(b.wheelDX+=d,b.wheelDY+=m))}}var yr=function(s,l){this.ranges=s,this.primIndex=l};yr.prototype.primary=function(){return this.ranges[this.primIndex]},yr.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(!Ra(g.anchor,d.anchor)||!Ra(g.head,d.head))return!1}return!0},yr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new lr(Sa(this.ranges[l].anchor),Sa(this.ranges[l].head));return new yr(s,this.primIndex)},yr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},yr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if(Ye(l,d.from())>=0&&Ye(s,d.to())<=0)return g}return-1};var lr=function(s,l){this.anchor=s,this.head=l};lr.prototype.from=function(){return Mo(this.anchor,this.head)},lr.prototype.to=function(){return Vo(this.anchor,this.head)},lr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function We(s,l,g){var d=s&&s.options.selectionsMayTouch,m=l[g];l.sort(function(re,ee){return Ye(re.from(),ee.from())}),g=hr(l,m);for(var I=1;I<l.length;I++){var b=l[I],R=l[I-1],L=Ye(R.to(),b.from());if(d&&!b.empty()?L>0:L>=0){var O=Mo(R.from(),b.from()),k=Vo(R.to(),b.to()),X=R.empty()?b.from()==b.head:R.from()==R.head;I<=g&&--g,l.splice(--I,2,new lr(X?k:O,X?O:k))}}return new yr(l,g)}function Ti(s,l){return new yr([new lr(s,l||s)],0)}function yi(s){return s.text?ce(s.from.line+s.text.length-1,Ie(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ra(s,l){if(Ye(s,l.from)<0)return s;if(Ye(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),ce(g,d)}function Qi(s,l){for(var g=[],d=0;d<s.sel.ranges.length;d++){var m=s.sel.ranges[d];g.push(new lr(ra(m.anchor,l),ra(m.head,l)))}return We(s.cm,g,s.sel.primIndex)}function Gu(s,l,g){return s.line==l.line?ce(g.line,s.ch-l.ch+g.ch):ce(g.line+(s.line-l.line),s.ch)}function Gp(s,l,g){for(var d=[],m=ce(s.first,0),I=m,b=0;b<l.length;b++){var R=l[b],L=Gu(R.from,m,I),O=Gu(yi(R),m,I);if(m=R.to,I=O,g=="around"){var k=s.sel.ranges[b],X=Ye(k.head,k.anchor)<0;d[b]=new lr(X?O:L,X?L:O)}else d[b]=new lr(L,L)}return new yr(d,s.sel.primIndex)}function ui(s){s.doc.mode=De(s.options,s.doc.modeOption),Ws(s)}function Ws(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,eo(s,100),s.state.modeGen++,s.curOp&&mt(s)}function cs(s,l){return l.from.ch==0&&l.to.ch==0&&Ie(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function io(s,l,g,d){function m(Ce){return g?g[Ce]:null}function I(Ce,xe,be){jf(Ce,xe,be,d),rt(Ce,"change",Ce,l)}function b(Ce,xe){for(var be=[],Ve=Ce;Ve<xe;++Ve)be.push(new cn(O[Ve],m(Ve),d));return be}var R=l.from,L=l.to,O=l.text,k=Ae(s,R.line),X=Ae(s,L.line),re=Ie(O),ee=m(O.length-1),oe=L.line-R.line;if(l.full)s.insert(0,b(0,O.length)),s.remove(O.length,s.size-O.length);else if(cs(s,l)){var fe=b(0,O.length-1);I(X,X.text,ee),oe&&s.remove(R.line,oe),fe.length&&s.insert(R.line,fe)}else if(k==X)if(O.length==1)I(k,k.text.slice(0,R.ch)+re+k.text.slice(L.ch),ee);else{var he=b(1,O.length-1);he.push(new cn(re+k.text.slice(L.ch),ee,d)),I(k,k.text.slice(0,R.ch)+O[0],m(0)),s.insert(R.line+1,he)}else if(O.length==1)I(k,k.text.slice(0,R.ch)+O[0]+X.text.slice(L.ch),m(0)),s.remove(R.line+1,oe);else{I(k,k.text.slice(0,R.ch)+O[0],m(0)),I(X,re+X.text.slice(L.ch),ee);var me=b(1,O.length-1);oe>1&&s.remove(R.line+1,oe-1),s.insert(R.line+1,me)}rt(s,"change",s,l)}function Ri(s,l,g){function d(m,I,b){if(m.linked)for(var R=0;R<m.linked.length;++R){var L=m.linked[R];if(L.doc!=I){var O=b&&L.sharedHist;g&&!O||(l(L.doc,O),d(L.doc,m,O))}}}d(s,null,!0)}function ta(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Us(s),ui(s),ia(s),s.options.direction=l.direction,s.options.lineWrapping||Ba(s),s.options.mode=l.modeOption,mt(s)}function ia(s){(s.doc.direction=="rtl"?Je:Pe)(s.display.lineDiv,"CodeMirror-rtl")}function za(s){Qt(s,function(){ia(s),mt(s)})}function In(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 so(s,l){var g={from:Sa(l.from),to:yi(l),text:dt(s,l.from,l.to)};return Bu(s,g,l.from.line,l.to.line+1),Ri(s,function(d){return Bu(d,g,l.from.line,l.to.line+1)},!0),g}function sa(s){for(;s.length;){var l=Ie(s);if(l.ranges)s.pop();else break}}function Fp(s,l){if(l)return sa(s.done),Ie(s.done);if(s.done.length&&!Ie(s.done).ranges)return Ie(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Ie(s.done)}function Fu(s,l,g,d){var m=s.history;m.undone.length=0;var I=+new Date,b,R;if((m.lastOp==d||m.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&m.lastModTime>I-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(b=Fp(m,m.lastOp==d)))R=Ie(b.changes),Ye(l.from,l.to)==0&&Ye(l.from,R.to)==0?R.to=yi(l):b.changes.push(so(s,l));else{var L=Ie(m.done);for((!L||!L.ranges)&&hs(s.sel,m.done),b={changes:[so(s,l)],generation:m.generation},m.done.push(b);m.done.length>m.undoDepth;)m.done.shift(),m.done[0].ranges||m.done.shift()}m.done.push(g),m.generation=++m.maxGeneration,m.lastModTime=m.lastSelTime=I,m.lastOp=m.lastSelOp=d,m.lastOrigin=m.lastSelOrigin=l.origin,R||ar(s,"historyAdded")}function Bp(s,l,g,d){var m=l.charAt(0);return m=="*"||m=="+"&&g.ranges.length==d.ranges.length&&g.somethingSelected()==d.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function Dp(s,l,g,d){var m=s.history,I=d&&d.origin;g==m.lastSelOp||I&&m.lastSelOrigin==I&&(m.lastModTime==m.lastSelTime&&m.lastOrigin==I||Bp(s,I,Ie(m.done),l))?m.done[m.done.length-1]=l:hs(l,m.done),m.lastSelTime=+new Date,m.lastSelOrigin=I,m.lastSelOp=g,d&&d.clearRedo!==!1&&sa(m.undone)}function hs(s,l){var g=Ie(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Bu(s,l,g,d){var m=l["spans_"+s.id],I=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,d),function(b){b.markedSpans&&((m||(m=l["spans_"+s.id]={}))[I]=b.markedSpans),++I})}function Vp(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 Mp(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var d=[],m=0;m<l.text.length;++m)d.push(Vp(g[m]));return d}function Du(s,l){var g=Mp(s,l),d=Vi(s,l);if(!g)return d;if(!d)return g;for(var m=0;m<g.length;++m){var I=g[m],b=d[m];if(I&&b)e:for(var R=0;R<b.length;++R){for(var L=b[R],O=0;O<I.length;++O)if(I[O].marker==L.marker)continue e;I.push(L)}else b&&(g[m]=b)}return g}function Nn(s,l,g){for(var d=[],m=0;m<s.length;++m){var I=s[m];if(I.ranges){d.push(g?yr.prototype.deepCopy.call(I):I);continue}var b=I.changes,R=[];d.push({changes:R});for(var L=0;L<b.length;++L){var O=b[L],k=void 0;if(R.push({from:O.from,to:O.to,text:O.text}),l)for(var X in O)(k=X.match(/^spans_(\d+)$/))&&hr(l,Number(k[1]))>-1&&(Ie(R)[X]=O[X],delete O[X])}}return d}function ja(s,l,g,d){if(d){var m=s.anchor;if(g){var I=Ye(l,m)<0;I!=Ye(g,m)<0?(m=l,l=g):I!=Ye(l,g)<0&&(l=g)}return new lr(m,l)}else return new lr(g||l,l)}function na(s,l,g,d,m){m==null&&(m=s.cm&&(s.cm.display.shift||s.extend)),xt(s,new yr([ja(s.sel.primary(),l,g,m)],0),d)}function Vu(s,l,g){for(var d=[],m=s.cm&&(s.cm.display.shift||s.extend),I=0;I<s.sel.ranges.length;I++)d[I]=ja(s.sel.ranges[I],l[I],null,m);var b=We(s.cm,d,s.sel.primIndex);xt(s,b,g)}function qa(s,l,g,d){var m=s.sel.ranges.slice(0);m[l]=g,xt(s,We(s.cm,m,s.sel.primIndex),d)}function Mu(s,l,g,d){xt(s,Ti(l,g),d)}function Wp(s,l,g){var d={ranges:l.ranges,update:function(m){this.ranges=[];for(var I=0;I<m.length;I++)this.ranges[I]=new lr(Xe(s,m[I].anchor),Xe(s,m[I].head))},origin:g&&g.origin};return ar(s,"beforeSelectionChange",s,d),s.cm&&ar(s.cm,"beforeSelectionChange",s.cm,d),d.ranges!=l.ranges?We(s.cm,d.ranges,d.ranges.length-1):l}function Wu(s,l,g){var d=s.history.done,m=Ie(d);m&&m.ranges?(d[d.length-1]=l,bn(s,l,g)):xt(s,l,g)}function xt(s,l,g){bn(s,l,g),Dp(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function bn(s,l,g){(tr(s,"beforeSelectionChange")||s.cm&&tr(s.cm,"beforeSelectionChange"))&&(l=Wp(s,l,g));var d=g&&g.bias||(Ye(l.primary().head,s.sel.primary().head)<0?-1:1);Tn(s,Rn(s,l,d,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&Cn(s.cm)}function Tn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,rs(s.cm)),rt(s,"cursorActivity",s))}function yn(s){Tn(s,Rn(s,s.sel,null,!1))}function Rn(s,l,g,d){for(var m,I=0;I<l.ranges.length;I++){var b=l.ranges[I],R=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[I],L=oa(s,b.anchor,R&&R.anchor,g,d),O=b.head==b.anchor?L:oa(s,b.head,R&&R.head,g,d);(m||L!=b.anchor||O!=b.head)&&(m||(m=l.ranges.slice(0,I)),m[I]=new lr(L,O))}return m?We(s.cm,m,l.primIndex):l}function ds(s,l,g,d,m){var I=Ae(s,l.line);if(I.markedSpans)for(var b=0;b<I.markedSpans.length;++b){var R=I.markedSpans[b],L=R.marker,O="selectLeft"in L?!L.selectLeft:L.inclusiveLeft,k="selectRight"in L?!L.selectRight:L.inclusiveRight;if((R.from==null||(O?R.from<=l.ch:R.from<l.ch))&&(R.to==null||(k?R.to>=l.ch:R.to>l.ch))){if(m&&(ar(L,"beforeCursorEnter"),L.explicitlyCleared))if(I.markedSpans){--b;continue}else break;if(!L.atomic)continue;if(g){var X=L.find(d<0?1:-1),re=void 0;if((d<0?k:O)&&(X=Pu(s,X,-d,X&&X.line==l.line?I:null)),X&&X.line==l.line&&(re=Ye(X,g))&&(d<0?re<0:re>0))return ds(s,X,l,d,m)}var ee=L.find(d<0?-1:1);return(d<0?O:k)&&(ee=Pu(s,ee,d,ee.line==l.line?I:null)),ee?ds(s,ee,l,d,m):null}}return l}function oa(s,l,g,d,m){var I=d||1,b=ds(s,l,g,I,m)||!m&&ds(s,l,g,I,!0)||ds(s,l,g,-I,m)||!m&&ds(s,l,g,-I,!0);return b||(s.cantEdit=!0,ce(s.first,0))}function Pu(s,l,g,d){return g<0&&l.ch==0?l.line>s.first?Xe(s,ce(l.line-1)):null:g>0&&l.ch==(d||Ae(s,l.line)).text.length?l.line<s.first+s.size-1?ce(l.line+1,0):null:new ce(l.line,l.ch+g)}function Zu(s){s.setSelection(ce(s.firstLine(),0),ce(s.lastLine()),pe)}function ku(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(m,I,b,R){m&&(d.from=Xe(s,m)),I&&(d.to=Xe(s,I)),b&&(d.text=b),R!==void 0&&(d.origin=R)}),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 Sn(s,l,g){if(s.cm){if(!s.cm.curOp)return tt(s.cm,Sn)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"))&&(l=ku(s,l,!0),!l))){var d=Po&&!g&&ys(s,l.from,l.to);if(d)for(var m=d.length-1;m>=0;--m)Qu(s,{from:d[m].from,to:d[m].to,text:m?[""]:l.text,origin:l.origin});else Qu(s,l)}}function Qu(s,l){if(!(l.text.length==1&&l.text[0]==""&&Ye(l.from,l.to)==0)){var g=Qi(s,l);Fu(s,l,g,s.cm?s.cm.curOp.id:NaN),no(s,l,g,Vi(s,l));var d=[];Ri(s,function(m,I){!I&&hr(d,m.history)==-1&&(Xu(m.history,l),d.push(m.history)),no(m,l,null,Vi(m,l))})}}function aa(s,l,g){var d=s.cm&&s.cm.state.suppressEdits;if(!(d&&!g)){for(var m=s.history,I,b=s.sel,R=l=="undo"?m.done:m.undone,L=l=="undo"?m.undone:m.done,O=0;O<R.length&&(I=R[O],!(g?I.ranges&&!I.equals(s.sel):!I.ranges));O++);if(O!=R.length){for(m.lastOrigin=m.lastSelOrigin=null;;)if(I=R.pop(),I.ranges){if(hs(I,L),g&&!I.equals(s.sel)){xt(s,I,{clearRedo:!1});return}b=I}else if(d){R.push(I);return}else break;var k=[];hs(b,L),L.push({changes:k,generation:m.generation}),m.generation=I.generation||++m.maxGeneration;for(var X=tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"),re=function(fe){var he=I.changes[fe];if(he.origin=l,X&&!ku(s,he,!1))return R.length=0,{};k.push(so(s,he));var me=fe?Qi(s,he):Ie(R);no(s,he,me,Du(s,he)),!fe&&s.cm&&s.cm.scrollIntoView({from:he.from,to:yi(he)});var Ce=[];Ri(s,function(xe,be){!be&&hr(Ce,xe.history)==-1&&(Xu(xe.history,he),Ce.push(xe.history)),no(xe,he,null,Du(xe,he))})},ee=I.changes.length-1;ee>=0;--ee){var oe=re(ee);if(oe)return oe.v}}}}function _u(s,l){if(l!=0&&(s.first+=l,s.sel=new yr(Ot(s.sel.ranges,function(m){return new lr(ce(m.anchor.line+l,m.anchor.ch),ce(m.head.line+l,m.head.ch))}),s.sel.primIndex),s.cm)){mt(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 no(s,l,g,d){if(s.cm&&!s.cm.curOp)return tt(s.cm,no)(s,l,g,d);if(l.to.line<s.first){_u(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 m=l.text.length-1-(s.first-l.from.line);_u(s,m),l={from:ce(s.first,0),to:ce(l.to.line+m,l.to.ch),text:[Ie(l.text)],origin:l.origin}}var I=s.lastLine();l.to.line>I&&(l={from:l.from,to:ce(I,Ae(s,I).text.length),text:[l.text[0]],origin:l.origin}),l.removed=dt(s,l.from,l.to),g||(g=Qi(s,l)),s.cm?Pp(s.cm,l,d):io(s,l,d),bn(s,g,pe),s.cantEdit&&oa(s,ce(s.firstLine(),0))&&(s.cantEdit=!1)}}function Pp(s,l,g){var d=s.doc,m=s.display,I=l.from,b=l.to,R=!1,L=I.line;s.options.lineWrapping||(L=_e(ai(Ae(d,I.line))),d.iter(L,b.line+1,function(ee){if(ee==m.maxLine)return R=!0,!0})),d.sel.contains(l.from,l.to)>-1&&rs(s),io(d,l,g,mn(s)),s.options.lineWrapping||(d.iter(L,I.line+l.text.length,function(ee){var oe=_o(ee);oe>m.maxLineLength&&(m.maxLine=ee,m.maxLineLength=oe,m.maxLineChanged=!0,R=!1)}),R&&(s.curOp.updateMaxLine=!0)),$f(d,I.line),eo(s,400);var O=l.text.length-(b.line-I.line)-1;l.full?mt(s):I.line==b.line&&l.text.length==1&&!cs(s.doc,l)?kt(s,I.line,"text"):mt(s,I.line,b.line+1,O);var k=tr(s,"changes"),X=tr(s,"change");if(X||k){var re={from:I,to:b,text:l.text,removed:l.removed,origin:l.origin};X&&rt(s,"change",s,re),k&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(re)}s.display.selForContextMenu=null}function Ln(s,l,g,d,m){var I;d||(d=g),Ye(d,g)<0&&(I=[d,g],g=I[0],d=I[1]),typeof l=="string"&&(l=s.splitLines(l)),Sn(s,{from:g,to:d,text:l,origin:m})}function Hu(s,l,g,d){g<s.line?s.line+=d:l<s.line&&(s.line=l,s.ch=0)}function Yu(s,l,g,d){for(var m=0;m<s.length;++m){var I=s[m],b=!0;if(I.ranges){I.copied||(I=s[m]=I.deepCopy(),I.copied=!0);for(var R=0;R<I.ranges.length;R++)Hu(I.ranges[R].anchor,l,g,d),Hu(I.ranges[R].head,l,g,d);continue}for(var L=0;L<I.changes.length;++L){var O=I.changes[L];if(g<O.from.line)O.from=ce(O.from.line+d,O.from.ch),O.to=ce(O.to.line+d,O.to.ch);else if(l<=O.to.line){b=!1;break}}b||(s.splice(0,m+1),m=0)}}function Xu(s,l){var g=l.from.line,d=l.to.line,m=l.text.length-(d-g)-1;Yu(s.done,g,d,m),Yu(s.undone,g,d,m)}function oo(s,l,g,d){var m=l,I=l;return typeof l=="number"?I=Ae(s,zl(s,l)):m=_e(l),m==null?null:(d(I,m)&&s.cm&&kt(s.cm,m,g),I)}function ao(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}ao.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,d=s+l;g<d;++g){var m=this.lines[g];this.height-=m.height,qf(m),rt(m,"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 lo(s){this.children=s;for(var l=0,g=0,d=0;d<s.length;++d){var m=s[d];l+=m.chunkSize(),g+=m.height,m.parent=this}this.size=l,this.height=g,this.parent=null}lo.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],m=d.chunkSize();if(s<m){var I=Math.min(l,m-s),b=d.height;if(d.removeInner(s,I),this.height-=b-d.height,m==I&&(this.children.splice(g--,1),d.parent=null),(l-=I)==0)break;s=0}else s-=m}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof ao))){var R=[];this.collapse(R),this.children=[new ao(R)],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 m=this.children[d],I=m.chunkSize();if(s<=I){if(m.insertInner(s,l,g),m.lines&&m.lines.length>50){for(var b=m.lines.length%25+25,R=b;R<m.lines.length;){var L=new ao(m.lines.slice(R,R+=25));m.height-=L.height,this.children.splice(++d,0,L),L.parent=this}m.lines=m.lines.slice(0,b),this.maybeSpill()}break}s-=I}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new lo(l);if(s.parent){s.size-=g.size,s.height-=g.height;var m=hr(s.parent.children,s);s.parent.children.splice(m+1,0,g)}else{var d=new lo(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 m=this.children[d],I=m.chunkSize();if(s<I){var b=Math.min(l,I-s);if(m.iterN(s,b,g))return!0;if((l-=b)==0)break;s=0}else s-=I}}};var uo=function(s,l,g){if(g)for(var d in g)g.hasOwnProperty(d)&&(this[d]=g[d]);this.doc=s,this.node=l};uo.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,d=_e(g);if(!(d==null||!l)){for(var m=0;m<l.length;++m)l[m]==this&&l.splice(m--,1);l.length||(g.widgets=null);var I=Wi(this);Zt(g,Math.max(0,g.height-I)),s&&(Qt(s,function(){$u(s,g,-I),kt(s,d,"widget")}),rt(s,"lineWidgetCleared",s,this,d))}},uo.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,d=this.line;this.height=null;var m=Wi(this)-l;m&&(Ci(this.doc,d)||Zt(d,d.height+m),g&&Qt(g,function(){g.curOp.forceUpdate=!0,$u(g,d,m),rt(g,"lineWidgetChanged",g,s,_e(d))}))},ts(uo);function $u(s,l,g){Mi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Ha(s,g)}function Zp(s,l,g,d){var m=new uo(s,g,d),I=s.cm;return I&&m.noHScroll&&(I.display.alignWidgets=!0),oo(s,l,"widget",function(b){var R=b.widgets||(b.widgets=[]);if(m.insertAt==null?R.push(m):R.splice(Math.min(R.length,Math.max(0,m.insertAt)),0,m),m.line=b,I&&!Ci(s,b)){var L=Mi(b)<s.scrollTop;Zt(b,b.height+Wi(m)),L&&Ha(I,m.height),I.curOp.forceUpdate=!0}return!0}),I&&rt(I,"lineWidgetAdded",I,m,typeof l=="number"?l:_e(l)),m}var Ju=0,gs=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++Ju};gs.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Vs(s),tr(this,"clear")){var g=this.find();g&&rt(this,"clear",g.from,g.to)}for(var d=null,m=null,I=0;I<this.lines.length;++I){var b=this.lines[I],R=Ns(b.markedSpans,this);s&&!this.collapsed?kt(s,_e(b),"text"):s&&(R.to!=null&&(m=_e(b)),R.from!=null&&(d=_e(b))),b.markedSpans=wa(b.markedSpans,R),R.from==null&&this.collapsed&&!Ci(this.doc,b)&&s&&Zt(b,Mr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var L=0;L<this.lines.length;++L){var O=ai(this.lines[L]),k=_o(O);k>s.display.maxLineLength&&(s.display.maxLine=O,s.display.maxLineLength=k,s.display.maxLineChanged=!0)}d!=null&&s&&this.collapsed&&mt(s,d,m+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,m),l&&Ms(s),this.parent&&this.parent.clear()}},gs.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,d,m=0;m<this.lines.length;++m){var I=this.lines[m],b=Ns(I.markedSpans,this);if(b.from!=null&&(g=ce(l?I:_e(I),b.from),s==-1))return g;if(b.to!=null&&(d=ce(l?I:_e(I),b.to),s==1))return d}return g&&{from:g,to:d}},gs.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,d=this.doc.cm;!l||!d||Qt(d,function(){var m=l.line,I=_e(l.line),b=Et(d,I);if(b&&(Eu(b),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ci(g.doc,m)&&g.height!=null){var R=g.height;g.height=null;var L=Wi(g)-R;L&&Zt(m,m.height+L)}rt(d,"markerChanged",d,s)})},gs.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)},gs.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)}},ts(gs);function wn(s,l,g,d,m){if(d&&d.shared)return kp(s,l,g,d,m);if(s.cm&&!s.cm.curOp)return tt(s.cm,wn)(s,l,g,d,m);var I=new gs(s,m),b=Ye(l,g);if(d&&zr(d,I,!1),b>0||b==0&&I.clearWhenEmpty!==!1)return I;if(I.replacedWith&&(I.collapsed=!0,I.widgetNode=xr("span",[I.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||I.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(I.widgetNode.insertLeft=!0)),I.collapsed){if(ns(s,l.line,l,g,I)||l.line!=g.line&&ns(s,g.line,l,g,I))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xt()}I.addToHistory&&Fu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var R=l.line,L=s.cm,O;if(s.iter(R,g.line+1,function(X){L&&I.collapsed&&!L.options.lineWrapping&&ai(X)==L.display.maxLine&&(O=!0),I.collapsed&&R!=l.line&&Zt(X,0),Di(X,new ln(I,R==l.line?l.ch:null,R==g.line?g.ch:null),s.cm&&s.cm.curOp),++R}),I.collapsed&&s.iter(l.line,g.line+1,function(X){Ci(s,X)&&Zt(X,0)}),I.clearOnEnter&&Ue(I,"beforeCursorEnter",function(){return I.clear()}),I.readOnly&&(Jf(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),I.collapsed&&(I.id=++Ju,I.atomic=!0),L){if(O&&(L.curOp.updateMaxLine=!0),I.collapsed)mt(L,l.line,g.line+1);else if(I.className||I.startStyle||I.endStyle||I.css||I.attributes||I.title)for(var k=l.line;k<=g.line;k++)kt(L,k,"text");I.atomic&&yn(L.doc),rt(L,"markerAdded",L,I)}return I}var fo=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};fo.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")}},fo.prototype.find=function(s,l){return this.primary.find(s,l)},ts(fo);function kp(s,l,g,d,m){d=zr(d),d.shared=!1;var I=[wn(s,l,g,d,m)],b=I[0],R=d.widgetNode;return Ri(s,function(L){R&&(d.widgetNode=R.cloneNode(!0)),I.push(wn(L,Xe(L,l),Xe(L,g),d,m));for(var O=0;O<L.linked.length;++O)if(L.linked[O].isParent)return;b=Ie(I)}),new fo(I,b)}function zu(s){return s.findMarks(ce(s.first,0),s.clipPos(ce(s.lastLine())),function(l){return l.parent})}function Qp(s,l){for(var g=0;g<l.length;g++){var d=l[g],m=d.find(),I=s.clipPos(m.from),b=s.clipPos(m.to);if(Ye(I,b)){var R=wn(s,I,b,d.primary,d.primary.type);d.markers.push(R),R.parent=d}}}function _p(s){for(var l=function(d){var m=s[d],I=[m.primary.doc];Ri(m.primary.doc,function(L){return I.push(L)});for(var b=0;b<m.markers.length;b++){var R=m.markers[b];hr(I,R.doc)==-1&&(R.parent=null,m.markers.splice(b--,1))}},g=0;g<s.length;g++)l(g)}var Hp=0,Bt=function(s,l,g,d,m){if(!(this instanceof Bt))return new Bt(s,l,g,d,m);g==null&&(g=0),lo.call(this,[new ao([new cn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var I=ce(g,0);this.sel=Ti(I),this.history=new In(null),this.id=++Hp,this.modeOption=l,this.lineSep=d,this.direction=m=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),io(this,{from:I,to:I,text:s}),xt(this,Ti(I),pe)};Bt.prototype=es(lo.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=ce(this.first,0),g=this.first+this.size-1;Sn(this,{from:l,to:ce(g,Ae(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&zn(this.cm,0,0),xt(this,Ti(l),pe)}),replaceRange:function(s,l,g,d){l=Xe(this,l),g=g?Xe(this,g):l,Ln(this,s,l,g,d)},getRange:function(s,l,g){var d=dt(this,Xe(this,s),Xe(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(is(this,s))return Ae(this,s)},getLineNumber:function(s){return _e(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 Xe(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){Mu(this,Xe(this,typeof s=="number"?ce(s,l||0):s),null,g)}),setSelection:it(function(s,l,g){Mu(this,Xe(this,s),Xe(this,l||s),g)}),extendSelection:it(function(s,l,g){na(this,Xe(this,s),l&&Xe(this,l),g)}),extendSelections:it(function(s,l){Vu(this,jl(this,s),l)}),extendSelectionsBy:it(function(s,l){var g=Ot(this.sel.ranges,s);Vu(this,jl(this,g),l)}),setSelections:it(function(s,l,g){if(s.length){for(var d=[],m=0;m<s.length;m++)d[m]=new lr(Xe(this,s[m].anchor),Xe(this,s[m].head||s[m].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),xt(this,We(this.cm,d,l),g)}}),addSelection:it(function(s,l,g){var d=this.sel.ranges.slice(0);d.push(new lr(Xe(this,s),Xe(this,l||s))),xt(this,We(this.cm,d,d.length-1),g)}),getSelection:function(s){for(var l=this.sel.ranges,g,d=0;d<l.length;d++){var m=dt(this,l[d].from(),l[d].to());g=g?g.concat(m):m}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 m=dt(this,g[d].from(),g[d].to());s!==!1&&(m=m.join(s||this.lineSeparator())),l[d]=m}return l},replaceSelection:function(s,l,g){for(var d=[],m=0;m<this.sel.ranges.length;m++)d[m]=s;this.replaceSelections(d,l,g||"+input")},replaceSelections:it(function(s,l,g){for(var d=[],m=this.sel,I=0;I<m.ranges.length;I++){var b=m.ranges[I];d[I]={from:b.from(),to:b.to(),text:this.splitLines(s[I]),origin:g}}for(var R=l&&l!="end"&&Gp(this,d,l),L=d.length-1;L>=0;L--)Sn(this,d[L]);R?Wu(this,R):this.cm&&Cn(this.cm)}),undo:it(function(){aa(this,"undo")}),redo:it(function(){aa(this,"redo")}),undoSelection:it(function(){aa(this,"undo",!0)}),redoSelection:it(function(){aa(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 m=0;m<s.undone.length;m++)s.undone[m].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new In(this.history),Ri(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:Nn(this.history.done),undone:Nn(this.history.undone)}},setHistory:function(s){var l=this.history=new In(this.history);l.done=Nn(s.done.slice(0),null,!0),l.undone=Nn(s.undone.slice(0),null,!0)},setGutterMarker:it(function(s,l,g){return oo(this,s,"gutter",function(d){var m=d.gutterMarkers||(d.gutterMarkers={});return m[l]=g,!g&&rr(m)&&(d.gutterMarkers=null),!0})}),clearGutter:it(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&oo(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(!is(this,s)||(l=s,s=Ae(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 oo(this,s,l=="gutter"?"gutter":"class",function(d){var m=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!d[m])d[m]=g;else{if(we(g).test(d[m]))return!1;d[m]+=" "+g}return!0})}),removeLineClass:it(function(s,l,g){return oo(this,s,l=="gutter"?"gutter":"class",function(d){var m=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",I=d[m];if(I)if(g==null)d[m]=null;else{var b=I.match(we(g));if(!b)return!1;var R=b.index+b[0].length;d[m]=I.slice(0,b.index)+(!b.index||R==I.length?"":" ")+I.slice(R)||null}else return!1;return!0})}),addLineWidget:it(function(s,l,g){return Zp(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return wn(this,Xe(this,s),Xe(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=Xe(this,s),wn(this,s,s,g,"bookmark")},findMarksAt:function(s){s=Xe(this,s);var l=[],g=Ae(this,s.line).markedSpans;if(g)for(var d=0;d<g.length;++d){var m=g[d];(m.from==null||m.from<=s.ch)&&(m.to==null||m.to>=s.ch)&&l.push(m.marker.parent||m.marker)}return l},findMarks:function(s,l,g){s=Xe(this,s),l=Xe(this,l);var d=[],m=s.line;return this.iter(s.line,l.line+1,function(I){var b=I.markedSpans;if(b)for(var R=0;R<b.length;R++){var L=b[R];!(L.to!=null&&m==s.line&&s.ch>=L.to||L.from==null&&m!=s.line||L.from!=null&&m==l.line&&L.from>=l.ch)&&(!g||g(L.marker))&&d.push(L.marker.parent||L.marker)}++m}),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(m){var I=m.text.length+d;if(I>s)return l=s,!0;s-=I,++g}),Xe(this,ce(g,l))},indexFromPos:function(s){s=Xe(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}],Qp(d,zu(this)),d},unlinkDoc:function(s){if(s instanceof Rr&&(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),_p(zu(this));break}}if(s.history==this.history){var d=[s.id];Ri(s,function(m){return d.push(m.id)},!0),s.history=new In(null),s.history.done=Nn(this.history.done,d),s.history.undone=Nn(this.history.undone,d)}},iterLinkedDocs:function(s){Ri(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):sn(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&&za(this.cm))})}),Bt.prototype.eachLine=Bt.prototype.iter;var ju=0;function Yp(s){var l=this;if(qu(l),!(dr(l,s)||Pi(l.display,s))){ht(s),G&&(ju=+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 m=d.length,I=Array(m),b=0,R=function(){++b==m&&tt(l,function(){g=Xe(l.doc,g);var ee={from:g,to:g,text:l.doc.splitLines(I.filter(function(oe){return oe!=null}).join(l.doc.lineSeparator())),origin:"paste"};Sn(l.doc,ee),Wu(l.doc,Ti(Xe(l.doc,g),Xe(l.doc,yi(ee))))})()},L=function(ee,oe){if(l.options.allowDropFileTypes&&hr(l.options.allowDropFileTypes,ee.type)==-1){R();return}var fe=new FileReader;fe.onerror=function(){return R()},fe.onload=function(){var he=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){R();return}I[oe]=he,R()},fe.readAsText(ee)},O=0;O<d.length;O++)L(d[O],O);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 X;if(l.state.draggingText&&!l.state.draggingText.copy&&(X=l.listSelections()),bn(l.doc,Ti(g,g)),X)for(var re=0;re<X.length;++re)Ln(l.doc,"",X[re].anchor,X[re].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function Xp(s,l){if(G&&(!s.state.draggingText||+new Date-ju<100)){Is(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=ve("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",J&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),J&&g.parentNode.removeChild(g)}}function $p(s,l){var g=li(s,l);if(g){var d=document.createDocumentFragment();Fs(s,g,d),s.display.dragCursor||(s.display.dragCursor=ve("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Ke(s.display.dragCursor,d)}}function qu(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function Ku(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],d=0;d<l.length;d++){var m=l[d].CodeMirror;m&&g.push(m)}g.length&&g[0].operation(function(){for(var I=0;I<g.length;I++)s(g[I])})}}var ef=!1;function Jp(){ef||(zp(),ef=!0)}function zp(){var s;Ue(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,Ku(jp)},100))}),Ue(window,"blur",function(){return Ku(xn)})}function jp(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var Es={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++)Es[po+48]=Es[po+96]=String(po);for(var la=65;la<=90;la++)Es[la]=String.fromCharCode(la);for(var co=1;co<=12;co++)Es[co+111]=Es[co+63235]="F"+co;var _i={};_i.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"},_i.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"},_i.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"},_i.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"]},_i.default=q?_i.macDefault:_i.pcDefault;function qp(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,d,m,I,b=0;b<l.length-1;b++){var R=l[b];if(/^(cmd|meta|m)$/i.test(R))I=!0;else if(/^a(lt)?$/i.test(R))g=!0;else if(/^(c|ctrl|control)$/i.test(R))d=!0;else if(/^s(hift)?$/i.test(R))m=!0;else throw new Error("Unrecognized modifier name: "+R)}return g&&(s="Alt-"+s),d&&(s="Ctrl-"+s),I&&(s="Cmd-"+s),m&&(s="Shift-"+s),s}function Kp(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 m=Ot(g.split(" "),qp),I=0;I<m.length;I++){var b=void 0,R=void 0;I==m.length-1?(R=m.join(" "),b=d):(R=m.slice(0,I+1).join(" "),b="...");var L=l[R];if(!L)l[R]=b;else if(L!=b)throw new Error("Inconsistent bindings for "+R)}delete s[g]}for(var O in l)s[O]=l[O];return s}function On(s,l,g,d){l=ua(l);var m=l.call?l.call(s,d):l[s];if(m===!1)return"nothing";if(m==="...")return"multi";if(m!=null&&g(m))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return On(s,l.fallthrough,g,d);for(var I=0;I<l.fallthrough.length;I++){var b=On(s,l.fallthrough[I],g,d);if(b)return b}}}function rf(s){var l=typeof s=="string"?s:Es[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function tf(s,l,g){var d=s;return l.altKey&&d!="Alt"&&(s="Alt-"+s),(Ee?l.metaKey:l.ctrlKey)&&d!="Ctrl"&&(s="Ctrl-"+s),(Ee?l.ctrlKey:l.metaKey)&&d!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&d!="Shift"&&(s="Shift-"+s),s}function sf(s,l){if(J&&s.keyCode==34&&s.char)return!1;var g=Es[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),tf(g,s,l))}function ua(s){return typeof s=="string"?_i[s]:s}function Un(s,l){for(var g=s.doc.sel.ranges,d=[],m=0;m<g.length;m++){for(var I=l(g[m]);d.length&&Ye(I.from,Ie(d).to)<=0;){var b=d.pop();if(Ye(b.from,I.from)<0){I.from=b.from;break}}d.push(I)}Qt(s,function(){for(var R=d.length-1;R>=0;R--)Ln(s.doc,"",d[R].from,d[R].to,"+delete");Cn(s)})}function Ka(s,l,g){var d=Nr(s.text,l+g,g);return d<0||d>s.text.length?null:d}function el(s,l,g){var d=Ka(s,l.ch,g);return d==null?null:new ce(l.line,d,g<0?"after":"before")}function rl(s,l,g,d,m){if(s){l.doc.direction=="rtl"&&(m=-m);var I=Tr(g,l.doc.direction);if(I){var b=m<0?Ie(I):I[0],R=m<0==(b.level==1),L=R?"after":"before",O;if(b.level>0||l.doc.direction=="rtl"){var k=gn(l,g);O=m<0?g.text.length-1:0;var X=Ni(l,k,O).top;O=ri(function(re){return Ni(l,k,re).top==X},m<0==(b.level==1)?b.from:b.to-1,O),L=="before"&&(O=Ka(g,O,1))}else O=m<0?b.to:b.from;return new ce(d,O,L)}}return new ce(d,m<0?g.text.length:0,m<0?"before":"after")}function ec(s,l,g,d){var m=Tr(l,s.doc.direction);if(!m)return el(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 I=bt(m,g.ch,g.sticky),b=m[I];if(s.doc.direction=="ltr"&&b.level%2==0&&(d>0?b.to>g.ch:b.from<g.ch))return el(l,g,d);var R=function(me,Ce){return Ka(l,me instanceof ce?me.ch:me,Ce)},L,O=function(me){return s.options.lineWrapping?(L=L||gn(s,l),Cu(s,l,L,me)):{begin:0,end:l.text.length}},k=O(g.sticky=="before"?R(g,-1):g.ch);if(s.doc.direction=="rtl"||b.level==1){var X=b.level==1==d<0,re=R(g,X?1:-1);if(re!=null&&(X?re<=b.to&&re<=k.end:re>=b.from&&re>=k.begin)){var ee=X?"before":"after";return new ce(g.line,re,ee)}}var oe=function(me,Ce,xe){for(var be=function(mr,st){return st?new ce(g.line,R(mr,1),"before"):new ce(g.line,mr,"after")};me>=0&&me<m.length;me+=Ce){var Ve=m[me],Fe=Ce>0==(Ve.level!=1),qe=Fe?xe.begin:R(xe.end,-1);if(Ve.from<=qe&&qe<Ve.to||(qe=Fe?Ve.from:R(Ve.to,-1),xe.begin<=qe&&qe<xe.end))return be(qe,Fe)}},fe=oe(I+d,d,k);if(fe)return fe;var he=d>0?k.end:R(k.begin,-1);return he!=null&&!(d>0&&he==l.text.length)&&(fe=oe(d>0?0:m.length-1,d,O(he)),fe)?fe:null}var ho={selectAll:Zu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),pe)},killLine:function(s){return Un(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:ce(l.head.line+1,0)}:{from:l.head,to:ce(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return Un(s,function(l){return{from:ce(l.from().line,0),to:Xe(s.doc,ce(l.to().line+1,0))}})},delLineLeft:function(s){return Un(s,function(l){return{from:ce(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return Un(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 Un(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(ce(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(ce(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return nf(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return of(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return rc(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/)?of(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,m=0;m<g.length;m++){var I=g[m].from(),b=Ar(s.getLine(I.line),I.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 m=l[d].head,I=Ae(s.doc,m.line).text;if(I){if(m.ch==I.length&&(m=new ce(m.line,m.ch-1)),m.ch>0)m=new ce(m.line,m.ch+1),s.replaceRange(I.charAt(m.ch-1)+I.charAt(m.ch-2),ce(m.line,m.ch-2),m,"+transpose");else if(m.line>s.doc.first){var b=Ae(s.doc,m.line-1).text;b&&(m=new ce(m.line,1),s.replaceRange(I.charAt(0)+s.doc.lineSeparator()+b.charAt(b.length-1),ce(m.line-1,b.length-1),m,"+transpose"))}}g.push(new lr(m,m))}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);Cn(s)})},openLine:function(s){return s.replaceSelection(`
12
+ `,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function nf(s,l){var g=Ae(s.doc,l),d=ai(g);return d!=g&&(l=_e(d)),rl(!0,s,d,l,1)}function rc(s,l){var g=Ae(s.doc,l),d=zf(g);return d!=g&&(l=_e(d)),rl(!0,s,g,l,-1)}function of(s,l){var g=nf(s,l.line),d=Ae(s.doc,g.line),m=Tr(d,s.doc.direction);if(!m||m[0].level==0){var I=Math.max(g.ch,d.text.search(/\S/)),b=l.line==g.line&&l.ch<=I&&l.ch;return ce(g.line,b?0:I,g.sticky)}return g}function fa(s,l,g){if(typeof l=="string"&&(l=ho[l],!l))return!1;s.display.input.ensurePolled();var d=s.display.shift,m=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),m=l(s)!=Oe}finally{s.display.shift=d,s.state.suppressEdits=!1}return m}function tc(s,l,g){for(var d=0;d<s.state.keyMaps.length;d++){var m=On(l,s.state.keyMaps[d],g,s);if(m)return m}return s.options.extraKeys&&On(l,s.options.extraKeys,g,s)||On(l,s.options.keyMap,g,s)}var ic=new Zr;function go(s,l,g,d){var m=s.state.keySeq;if(m){if(rf(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:ic.set(50,function(){s.state.keySeq==m&&(s.state.keySeq=null,s.display.input.reset())}),af(s,m+" "+l,g,d))return!0}return af(s,l,g,d)}function af(s,l,g,d){var m=tc(s,l,d);return m=="multi"&&(s.state.keySeq=l),m=="handled"&&rt(s,"keyHandled",s,l,g),(m=="handled"||m=="multi")&&(ht(g),Za(s)),!!m}function lf(s,l){var g=sf(l,!0);return g?l.shiftKey&&!s.state.keySeq?go(s,"Shift-"+g,l,function(d){return fa(s,d,!0)})||go(s,g,l,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return fa(s,d)}):go(s,g,l,function(d){return fa(s,d)}):!1}function sc(s,l,g){return go(s,"'"+g+"'",l,function(d){return fa(s,d,!0)})}var tl=null;function uf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=Jr(wt(l)),!dr(l,s))){G&&V<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var d=lf(l,s);J&&(tl=d?g:null,!d&&g==88&&!Zn&&(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)&&nc(l)}}function nc(s){var l=s.display.lineDiv;Je(l,"CodeMirror-crosshair");function g(d){(d.keyCode==18||!d.altKey)&&(Pe(l,"CodeMirror-crosshair"),kr(document,"keyup",g),kr(document,"mouseover",g))}Ue(document,"keyup",g),Ue(document,"mouseover",g)}function ff(s){s.keyCode==16&&(this.doc.sel.shift=!1),dr(this,s)}function pf(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(J&&g==tl){tl=null,ht(s);return}if(!(J&&(!s.which||s.which<10)&&lf(l,s))){var m=String.fromCharCode(d??g);m!="\b"&&(sc(l,s,m)||l.display.input.onKeyPress(s))}}}var oc=400,il=function(s,l,g){this.time=s,this.pos=l,this.button=g};il.prototype.compare=function(s,l,g){return this.time+oc>s&&Ye(l,this.pos)==0&&g==this.button};var Eo,vo;function ac(s,l){var g=+new Date;return vo&&vo.compare(g,s,l)?(Eo=vo=null,"triple"):Eo&&Eo.compare(g,s,l)?(vo=new il(g,s,l),Eo=null,"double"):(Eo=new il(g,s,l),vo=null,"single")}function cf(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(!sl(l,s)){var d=li(l,s),m=rn(s),I=d?ac(d,m):"single";ut(l).focus(),m==1&&l.state.selectingText&&l.state.selectingText(s),!(d&&lc(l,m,d,I,s))&&(m==1?d?fc(l,d,I,s):en(s)==g.scroller&&ht(s):m==2?(d&&na(l.doc,d),setTimeout(function(){return g.input.focus()},20)):m==3&&(ke?l.display.input.onContextMenu(s):ka(l)))}}}function lc(s,l,g,d,m){var I="Click";return d=="double"?I="Double"+I:d=="triple"&&(I="Triple"+I),I=(l==1?"Left":l==2?"Middle":"Right")+I,go(s,tf(I,m),m,function(b){if(typeof b=="string"&&(b=ho[b]),!b)return!1;var R=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),R=b(s,g)!=Oe}finally{s.state.suppressEdits=!1}return R})}function uc(s,l,g){var d=s.getOption("configureMouse"),m=d?d(s,l,g):{};if(m.unit==null){var I=te?g.shiftKey&&g.metaKey:g.altKey;m.unit=I?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(m.extend==null||s.doc.extend)&&(m.extend=s.doc.extend||g.shiftKey),m.addNew==null&&(m.addNew=q?g.metaKey:g.ctrlKey),m.moveOnDrag==null&&(m.moveOnDrag=!(q?g.altKey:g.ctrlKey)),m}function fc(s,l,g,d){G?setTimeout(ze(Au,s),0):s.curOp.focus=Jr(wt(s));var m=uc(s,g,d),I=s.doc.sel,b;s.options.dragDrop&&Go&&!s.isReadOnly()&&g=="single"&&(b=I.contains(l))>-1&&(Ye((b=I.ranges[b]).from(),l)<0||l.xRel>0)&&(Ye(b.to(),l)>0||l.xRel<0)?pc(s,d,l,m):cc(s,d,l,m)}function pc(s,l,g,d){var m=s.display,I=!1,b=tt(s,function(O){Z&&(m.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:ka(s)),kr(m.wrapper.ownerDocument,"mouseup",b),kr(m.wrapper.ownerDocument,"mousemove",R),kr(m.scroller,"dragstart",L),kr(m.scroller,"drop",b),I||(ht(O),d.addNew||na(s.doc,g,null,null,d.extend),Z&&!M||G&&V==9?setTimeout(function(){m.wrapper.ownerDocument.body.focus({preventScroll:!0}),m.input.focus()},20):m.input.focus())}),R=function(O){I=I||Math.abs(l.clientX-O.clientX)+Math.abs(l.clientY-O.clientY)>=10},L=function(){return I=!0};Z&&(m.scroller.draggable=!0),s.state.draggingText=b,b.copy=!d.moveOnDrag,Ue(m.wrapper.ownerDocument,"mouseup",b),Ue(m.wrapper.ownerDocument,"mousemove",R),Ue(m.scroller,"dragstart",L),Ue(m.scroller,"drop",b),s.state.delayingBlurEvent=!0,setTimeout(function(){return m.input.focus()},20),m.scroller.dragDrop&&m.scroller.dragDrop()}function hf(s,l,g){if(g=="char")return new lr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new lr(ce(l.line,0),Xe(s.doc,ce(l.line+1,0)));var d=g(s,l);return new lr(d.from,d.to)}function cc(s,l,g,d){G&&ka(s);var m=s.display,I=s.doc;ht(l);var b,R,L=I.sel,O=L.ranges;if(d.addNew&&!d.extend?(R=I.sel.contains(g),R>-1?b=O[R]:b=new lr(g,g)):(b=I.sel.primary(),R=I.sel.primIndex),d.unit=="rectangle")d.addNew||(b=new lr(g,g)),g=li(s,l,!0,!0),R=-1;else{var k=hf(s,g,d.unit);d.extend?b=ja(b,k.anchor,k.head,d.extend):b=k}d.addNew?R==-1?(R=O.length,xt(I,We(s,O.concat([b]),R),{scroll:!1,origin:"*mouse"})):O.length>1&&O[R].empty()&&d.unit=="char"&&!d.extend?(xt(I,We(s,O.slice(0,R).concat(O.slice(R+1)),0),{scroll:!1,origin:"*mouse"}),L=I.sel):qa(I,R,b,Er):(R=0,xt(I,new yr([b],0),Er),L=I.sel);var X=g;function re(xe){if(Ye(X,xe)!=0)if(X=xe,d.unit=="rectangle"){for(var be=[],Ve=s.options.tabSize,Fe=Ar(Ae(I,g.line).text,g.ch,Ve),qe=Ar(Ae(I,xe.line).text,xe.ch,Ve),mr=Math.min(Fe,qe),st=Math.max(Fe,qe),Lr=Math.min(g.line,xe.line),_t=Math.min(s.lastLine(),Math.max(g.line,xe.line));Lr<=_t;Lr++){var Dt=Ae(I,Lr).text,_r=Re(Dt,mr,Ve);mr==st?be.push(new lr(ce(Lr,_r),ce(Lr,_r))):Dt.length>_r&&be.push(new lr(ce(Lr,_r),ce(Lr,Re(Dt,st,Ve))))}be.length||be.push(new lr(g,g)),xt(I,We(s,L.ranges.slice(0,R).concat(be),R),{origin:"*mouse",scroll:!1}),s.scrollIntoView(xe)}else{var Vt=b,lt=hf(s,xe,d.unit),jr=Vt.anchor,Hr;Ye(lt.anchor,jr)>0?(Hr=lt.head,jr=Mo(Vt.from(),lt.anchor)):(Hr=lt.anchor,jr=Vo(Vt.to(),lt.head));var Gr=L.ranges.slice(0);Gr[R]=hc(s,new lr(Xe(I,jr),Hr)),xt(I,We(s,Gr,R),Er)}}var ee=m.wrapper.getBoundingClientRect(),oe=0;function fe(xe){var be=++oe,Ve=li(s,xe,!0,d.unit=="rectangle");if(Ve)if(Ye(Ve,X)!=0){s.curOp.focus=Jr(wt(s)),re(Ve);var Fe=zo(m,I);(Ve.line>=Fe.to||Ve.line<Fe.from)&&setTimeout(tt(s,function(){oe==be&&fe(xe)}),150)}else{var qe=xe.clientY<ee.top?-20:xe.clientY>ee.bottom?20:0;qe&&setTimeout(tt(s,function(){oe==be&&(m.scroller.scrollTop+=qe,fe(xe))}),50)}}function he(xe){s.state.selectingText=!1,oe=1/0,xe&&(ht(xe),m.input.focus()),kr(m.wrapper.ownerDocument,"mousemove",me),kr(m.wrapper.ownerDocument,"mouseup",Ce),I.history.lastSelOrigin=null}var me=tt(s,function(xe){xe.buttons===0||!rn(xe)?he(xe):fe(xe)}),Ce=tt(s,he);s.state.selectingText=Ce,Ue(m.wrapper.ownerDocument,"mousemove",me),Ue(m.wrapper.ownerDocument,"mouseup",Ce)}function hc(s,l){var g=l.anchor,d=l.head,m=Ae(s.doc,g.line);if(Ye(g,d)==0&&g.sticky==d.sticky)return l;var I=Tr(m);if(!I)return l;var b=bt(I,g.ch,g.sticky),R=I[b];if(R.from!=g.ch&&R.to!=g.ch)return l;var L=b+(R.from==g.ch==(R.level!=1)?0:1);if(L==0||L==I.length)return l;var O;if(d.line!=g.line)O=(d.line-g.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var k=bt(I,d.ch,d.sticky),X=k-b||(d.ch-g.ch)*(R.level==1?-1:1);k==L-1||k==L?O=X<0:O=X>0}var re=I[L+(O?-1:0)],ee=O==(re.level==1),oe=ee?re.from:re.to,fe=ee?"after":"before";return g.ch==oe&&g.sticky==fe?l:new lr(new ce(g.line,oe,fe),d)}function df(s,l,g,d){var m,I;if(l.touches)m=l.touches[0].clientX,I=l.touches[0].clientY;else try{m=l.clientX,I=l.clientY}catch{return!1}if(m>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;d&&ht(l);var b=s.display,R=b.lineDiv.getBoundingClientRect();if(I>R.bottom||!tr(s,g))return Ei(l);I-=R.top-b.viewOffset;for(var L=0;L<s.display.gutterSpecs.length;++L){var O=b.gutters.childNodes[L];if(O&&O.getBoundingClientRect().right>=m){var k=mi(s.doc,I),X=s.display.gutterSpecs[L];return ar(s,g,s,k,X.className,l),Ei(l)}}}function sl(s,l){return df(s,l,"gutterClick",!0)}function gf(s,l){Pi(s.display,l)||dc(s,l)||dr(s,l,"contextmenu")||ke||s.display.input.onContextMenu(l)}function dc(s,l){return tr(s,"gutterContextMenu")?df(s,l,"gutterContextMenu",!1):!1}function Ef(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ls(s)}var Gn={toString:function(){return"CodeMirror.Init"}},vf={},pa={};function gc(s){var l=s.optionHandlers;function g(d,m,I,b){s.defaults[d]=m,I&&(l[d]=b?function(R,L,O){O!=Gn&&I(R,L,O)}:I)}s.defineOption=g,s.Init=Gn,g("value","",function(d,m){return d.setValue(m)},!0),g("mode",null,function(d,m){d.doc.modeOption=m,ui(d)},!0),g("indentUnit",2,ui,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(d){Ws(d),Ls(d),mt(d)},!0),g("lineSeparator",null,function(d,m){if(d.doc.lineSep=m,!!m){var I=[],b=d.doc.first;d.doc.iter(function(L){for(var O=0;;){var k=L.text.indexOf(m,O);if(k==-1)break;O=k+m.length,I.push(ce(b,k))}b++});for(var R=I.length-1;R>=0;R--)Ln(d.doc,m,I[R],ce(I[R].line,I[R].ch+m.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,m,I){d.state.specialChars=new RegExp(m.source+(m.test(" ")?"":"| "),"g"),I!=Gn&&d.refresh()}),g("specialCharPlaceholder",rp,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,m){return d.getInputField().spellcheck=m},!0),g("autocorrect",!1,function(d,m){return d.getInputField().autocorrect=m},!0),g("autocapitalize",!1,function(d,m){return d.getInputField().autocapitalize=m},!0),g("rtlMoveVisually",!ie),g("wholeLineUpdateBefore",!0),g("theme","default",function(d){Ef(d),to(d)},!0),g("keyMap","default",function(d,m,I){var b=ua(m),R=I!=Gn&&ua(I);R&&R.detach&&R.detach(d,b),b.attach&&b.attach(d,R||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,vc,!0),g("gutters",[],function(d,m){d.display.gutterSpecs=Ja(m,d.options.lineNumbers),to(d)},!0),g("fixedGutter",!0,function(d,m){d.display.gutters.style.left=m?vt(d.display)+"px":"0",d.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(d){return An(d)},!0),g("scrollbarStyle","native",function(d){Ru(d),An(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),g("lineNumbers",!1,function(d,m){d.display.gutterSpecs=Ja(d.options.gutters,m),to(d)},!0),g("firstLineNumber",1,to,!0),g("lineNumberFormatter",function(d){return d},to,!0),g("showCursorWhenSelecting",!1,Gs,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(d,m){m=="nocursor"&&(xn(d),d.display.input.blur()),d.display.input.readOnlyChanged(m)}),g("screenReaderLabel",null,function(d,m){m=m===""?null:m,d.display.input.screenReaderLabelChanged(m)}),g("disableInput",!1,function(d,m){m||d.display.input.reset()},!0),g("dragDrop",!0,Ec),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Gs,!0),g("singleCursorHeightPerLine",!0,Gs,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,Ws,!0),g("addModeClass",!1,Ws,!0),g("pollInterval",100),g("undoDepth",200,function(d,m){return d.doc.history.undoDepth=m}),g("historyEventDelay",1250),g("viewportMargin",10,function(d){return d.refresh()},!0),g("maxHighlightLength",1e4,Ws,!0),g("moveInputWithCursor",!0,function(d,m){m||d.display.input.resetPosition()}),g("tabindex",null,function(d,m){return d.display.input.getField().tabIndex=m||""}),g("autofocus",null),g("direction","ltr",function(d,m){return d.doc.setDirection(m)},!0),g("phrases",null)}function Ec(s,l,g){var d=g&&g!=Gn;if(!l!=!d){var m=s.display.dragFunctions,I=l?Ue:kr;I(s.display.scroller,"dragstart",m.start),I(s.display.scroller,"dragenter",m.enter),I(s.display.scroller,"dragover",m.over),I(s.display.scroller,"dragleave",m.leave),I(s.display.scroller,"drop",m.drop)}}function vc(s){s.options.lineWrapping?(Je(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Pe(s.display.wrapper,"CodeMirror-wrap"),Ba(s)),Us(s),mt(s),Ls(s),setTimeout(function(){return An(s)},100)}function Rr(s,l){var g=this;if(!(this instanceof Rr))return new Rr(s,l);this.options=l=l?zr(l):{},zr(vf,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 m=new Rr.inputStyles[l.inputStyle](this),I=this.display=new Op(s,d,m,l);I.wrapper.CodeMirror=this,Ef(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ru(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 Zr,keySeq:null,specialChars:null},l.autofocus&&!Y&&I.input.focus(),G&&V<11&&setTimeout(function(){return g.display.input.reset(!0)},20),mc(this),Jp(),Vs(this),this.curOp.forceUpdate=!0,ta(this,d),l.autofocus&&!Y||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Qa(g)},20):xn(this);for(var b in pa)pa.hasOwnProperty(b)&&pa[b](this,l[b],Gn);wu(this),l.finishInit&&l.finishInit(this);for(var R=0;R<nl.length;++R)nl[R](this);Ms(this),Z&&l.lineWrapping&&getComputedStyle(I.lineDiv).textRendering=="optimizelegibility"&&(I.lineDiv.style.textRendering="auto")}Rr.defaults=vf,Rr.optionHandlers=pa;function mc(s){var l=s.display;Ue(l.scroller,"mousedown",tt(s,cf)),G&&V<11?Ue(l.scroller,"dblclick",tt(s,function(L){if(!dr(s,L)){var O=li(s,L);if(!(!O||sl(s,L)||Pi(s.display,L))){ht(L);var k=s.findWordAt(O);na(s.doc,k.anchor,k.head)}}})):Ue(l.scroller,"dblclick",function(L){return dr(s,L)||ht(L)}),Ue(l.scroller,"contextmenu",function(L){return gf(s,L)}),Ue(l.input.getField(),"contextmenu",function(L){l.scroller.contains(L.target)||gf(s,L)});var g,d={end:0};function m(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),d=l.activeTouch,d.end=+new Date)}function I(L){if(L.touches.length!=1)return!1;var O=L.touches[0];return O.radiusX<=1&&O.radiusY<=1}function b(L,O){if(O.left==null)return!0;var k=O.left-L.left,X=O.top-L.top;return k*k+X*X>20*20}Ue(l.scroller,"touchstart",function(L){if(!dr(s,L)&&!I(L)&&!sl(s,L)){l.input.ensurePolled(),clearTimeout(g);var O=+new Date;l.activeTouch={start:O,moved:!1,prev:O-d.end<=300?d:null},L.touches.length==1&&(l.activeTouch.left=L.touches[0].pageX,l.activeTouch.top=L.touches[0].pageY)}}),Ue(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Ue(l.scroller,"touchend",function(L){var O=l.activeTouch;if(O&&!Pi(l,L)&&O.left!=null&&!O.moved&&new Date-O.start<300){var k=s.coordsChar(l.activeTouch,"page"),X;!O.prev||b(O,O.prev)?X=new lr(k,k):!O.prev.prev||b(O,O.prev.prev)?X=s.findWordAt(k):X=new lr(ce(k.line,0),Xe(s.doc,ce(k.line+1,0))),s.setSelection(X.anchor,X.head),s.focus(),ht(L)}m()}),Ue(l.scroller,"touchcancel",m),Ue(l.scroller,"scroll",function(){l.scroller.clientHeight&&(jn(s,l.scroller.scrollTop),Bs(s,l.scroller.scrollLeft,!0),ar(s,"scroll",s))}),Ue(l.scroller,"mousewheel",function(L){return ea(s,L)}),Ue(l.scroller,"DOMMouseScroll",function(L){return ea(s,L)}),Ue(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(L){dr(s,L)||Is(L)},over:function(L){dr(s,L)||($p(s,L),Is(L))},start:function(L){return Xp(s,L)},drop:tt(s,Yp),leave:function(L){dr(s,L)||qu(s)}};var R=l.input.getField();Ue(R,"keyup",function(L){return ff.call(s,L)}),Ue(R,"keydown",tt(s,uf)),Ue(R,"keypress",tt(s,pf)),Ue(R,"focus",function(L){return Qa(s,L)}),Ue(R,"blur",function(L){return xn(s,L)})}var nl=[];Rr.defineInitHook=function(s){return nl.push(s)};function mo(s,l,g,d){var m=s.doc,I;g==null&&(g="add"),g=="smart"&&(m.mode.indent?I=kn(s,l).state:g="prev");var b=s.options.tabSize,R=Ae(m,l),L=Ar(R.text,null,b);R.stateAfter&&(R.stateAfter=null);var O=R.text.match(/^\s*/)[0],k;if(!d&&!/\S/.test(R.text))k=0,g="not";else if(g=="smart"&&(k=m.mode.indent(I,R.text.slice(O.length),R.text),k==Oe||k>150)){if(!d)return;g="prev"}g=="prev"?l>m.first?k=Ar(Ae(m,l-1).text,null,b):k=0:g=="add"?k=L+s.options.indentUnit:g=="subtract"?k=L-s.options.indentUnit:typeof g=="number"&&(k=L+g),k=Math.max(0,k);var X="",re=0;if(s.options.indentWithTabs)for(var ee=Math.floor(k/b);ee;--ee)re+=b,X+=" ";if(re<k&&(X+=ei(k-re)),X!=O)return Ln(m,X,ce(l,0),ce(l,O.length),"+input"),R.stateAfter=null,!0;for(var oe=0;oe<m.sel.ranges.length;oe++){var fe=m.sel.ranges[oe];if(fe.head.line==l&&fe.head.ch<O.length){var he=ce(l,O.length);qa(m,oe,new lr(he,he));break}}}var fi=null;function ca(s){fi=s}function ol(s,l,g,d,m){var I=s.doc;s.display.shift=!1,d||(d=I.sel);var b=+new Date-200,R=m=="paste"||s.state.pasteIncoming>b,L=sn(l),O=null;if(R&&d.ranges.length>1)if(fi&&fi.text.join(`
13
+ `)==l){if(d.ranges.length%fi.text.length==0){O=[];for(var k=0;k<fi.text.length;k++)O.push(I.splitLines(fi.text[k]))}}else L.length==d.ranges.length&&s.options.pasteLinesPerSelection&&(O=Ot(L,function(me){return[me]}));for(var X=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=ce(oe.line,oe.ch-g):s.state.overwrite&&!R?fe=ce(fe.line,Math.min(Ae(I,fe.line).text.length,fe.ch+Ie(L).length)):R&&fi&&fi.lineWise&&fi.text.join(`
14
14
  `)==L.join(`
15
- `)&&(oe=fe=ce(oe.line,0)));var he={from:oe,to:fe,text:U?U[re%U.length]:L,origin:m||(y?"paste":s.state.cutIncoming>b?"cut":"+input")};yn(s.doc,he),et(s,"inputRead",s,he)}l&&!y&&xf(s,l),xn(s),s.curOp.updateInput<2&&(s.curOp.updateInput=$),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function mf(s,l){var g=s.clipboardData&&s.clipboardData.getData("Text");if(g)return s.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&_t(l,function(){return ol(l,g,0,null,"paste")}),!0}function xf(s,l){if(!(!s.options.electricChars||!s.options.smartIndent))for(var g=s.doc.sel,d=g.ranges.length-1;d>=0;d--){var m=g.ranges[d];if(!(m.head.ch>100||d&&g.ranges[d-1].head.line==m.head.line)){var I=s.getModeAt(m.head),b=!1;if(I.electricChars){for(var y=0;y<I.electricChars.length;y++)if(l.indexOf(I.electricChars.charAt(y))>-1){b=vo(s,m.head.line,"smart");break}}else I.electricInput&&I.electricInput.test(Ae(s.doc,m.head.line).text.slice(0,m.head.ch))&&(b=vo(s,m.head.line,"smart"));b&&et(s,"electricInput",s,m.head.line)}}}function Cf(s){for(var l=[],g=[],d=0;d<s.doc.sel.ranges.length;d++){var m=s.doc.sel.ranges[d].head.line,I={anchor:ce(m,0),head:ce(m+1,0)};g.push(I),l.push(s.getRange(I.anchor,I.head))}return{text:l,ranges:g}}function al(s,l,g,d){s.setAttribute("autocorrect",g?"on":"off"),s.setAttribute("autocapitalize",d?"on":"off"),s.setAttribute("spellcheck",!!l)}function Af(){var s=ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=ve("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return W?s.style.width="1000px":s.setAttribute("wrap","off"),B&&(s.style.border="1px solid black"),l}function xc(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){at(this).focus(),this.display.input.focus()},setOption:function(d,m){var I=this.options,b=I[d];I[d]==m&&d!="mode"||(I[d]=m,l.hasOwnProperty(d)&&rt(this,l[d])(this,m,b),ar(this,"optionChange",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,m){this.state.keyMaps[m?"push":"unshift"](ua(d))},removeKeyMap:function(d){for(var m=this.state.keyMaps,I=0;I<m.length;++I)if(m[I]==d||m[I].name==d)return m.splice(I,1),!0},addOverlay:bt(function(d,m){var I=d.token?d:s.getMode(this.options,d);if(I.startState)throw new Error("Overlays may not be stateful.");lt(this.state.overlays,{mode:I,modeSpec:d,opaque:m&&m.opaque,priority:m&&m.priority||0},function(b){return b.priority}),this.state.modeGen++,gt(this)}),removeOverlay:bt(function(d){for(var m=this.state.overlays,I=0;I<m.length;++I){var b=m[I].modeSpec;if(b==d||typeof d=="string"&&b.name==d){m.splice(I,1),this.state.modeGen++,gt(this);return}}}),indentLine:bt(function(d,m,I){typeof m!="string"&&typeof m!="number"&&(m==null?m=this.options.smartIndent?"smart":"prev":m=m?"add":"subtract"),is(this.doc,d)&&vo(this,d,m,I)}),indentSelection:bt(function(d){for(var m=this.doc.sel.ranges,I=-1,b=0;b<m.length;b++){var y=m[b];if(y.empty())y.head.line>I&&(vo(this,y.head.line,d,!0),I=y.head.line,b==this.doc.sel.primIndex&&xn(this));else{var L=y.from(),U=y.to(),k=Math.max(I,L.line);I=Math.min(this.lastLine(),U.line-(U.ch?0:1))+1;for(var $=k;$<I;++$)vo(this,$,d);var re=this.doc.sel.ranges;L.ch==0&&m.length==re.length&&re[b].from().ch>0&&qa(this.doc,b,new lr(L,re[b].to()),pe)}}}),getTokenAt:function(d,m){return tu(this,d,m)},getLineTokens:function(d,m){return tu(this,ce(d),m,!0)},getTokenTypeAt:function(d){d=Xe(this.doc,d);var m=Kl(this,Ae(this.doc,d.line)),I=0,b=(m.length-1)/2,y=d.ch,L;if(y==0)L=m[2];else for(;;){var U=I+b>>1;if((U?m[U*2-1]:0)>=y)b=U;else if(m[U*2+1]<y)I=U+1;else{L=m[U*2+2];break}}var k=L?L.indexOf("overlay "):-1;return k<0?L:k==0?null:L.slice(0,k-1)},getModeAt:function(d){var m=this.doc.mode;return m.innerMode?s.innerMode(m,this.getTokenAt(d).state).mode:m},getHelper:function(d,m){return this.getHelpers(d,m)[0]},getHelpers:function(d,m){var I=[];if(!g.hasOwnProperty(m))return I;var b=g[m],y=this.getModeAt(d);if(typeof y[m]=="string")b[y[m]]&&I.push(b[y[m]]);else if(y[m])for(var L=0;L<y[m].length;L++){var U=b[y[m][L]];U&&I.push(U)}else y.helperType&&b[y.helperType]?I.push(b[y.helperType]):b[y.name]&&I.push(b[y.name]);for(var k=0;k<b._global.length;k++){var $=b._global[k];$.pred(y,this)&&hr(I,$.val)==-1&&I.push($.val)}return I},getStateAfter:function(d,m){var I=this.doc;return d=zl(I,d??I.first+I.size-1),kn(this,d+1,m).state},cursorCoords:function(d,m){var I,b=this.doc.sel.primary();return d==null?I=b.head:typeof d=="object"?I=Xe(this.doc,d):I=d?b.from():b.to(),Ye(this,I,m||"page")},charCoords:function(d,m){return Xo(this,Xe(this.doc,d),m||"page")},coordsChar:function(d,m){return d=ls(this,d,m||"page"),Wa(this,d.left,d.top)},lineAtHeight:function(d,m){return d=ls(this,{top:d,left:0},m||"page").top,mi(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,m,I){var b=!1,y;if(typeof d=="number"){var L=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>L&&(d=L,b=!0),y=Ae(this.doc,d)}else y=d;return En(this,y,{top:0,left:0},m||"page",I||b).top+(b?this.doc.height-Mi(y):0)},defaultTextHeight:function(){return Dr(this.display)},defaultCharWidth:function(){return us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,m,I,b,y){var L=this.display;d=Ye(this,Xe(this.doc,d));var U=d.bottom,k=d.left;if(m.style.position="absolute",m.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(m),L.sizer.appendChild(m),b=="over")U=d.top;else if(b=="above"||b=="near"){var $=Math.max(L.wrapper.clientHeight,this.doc.height),re=Math.max(L.sizer.clientWidth,L.lineSpace.clientWidth);(b=="above"||d.bottom+m.offsetHeight>$)&&d.top>m.offsetHeight?U=d.top-m.offsetHeight:d.bottom+m.offsetHeight<=$&&(U=d.bottom),k+m.offsetWidth>re&&(k=re-m.offsetWidth)}m.style.top=U+"px",m.style.left=m.style.right="",y=="right"?(k=L.sizer.clientWidth-m.offsetWidth,m.style.right="0px"):(y=="left"?k=0:y=="middle"&&(k=(L.sizer.clientWidth-m.offsetWidth)/2),m.style.left=k+"px"),I&&vp(this,{left:k,top:U,right:k+m.offsetWidth,bottom:U+m.offsetHeight})},triggerOnKeyDown:bt(uf),triggerOnKeyPress:bt(pf),triggerOnKeyUp:ff,triggerOnMouseDown:bt(cf),execCommand:function(d){if(co.hasOwnProperty(d))return co[d].call(null,this)},triggerElectric:bt(function(d){xf(this,d)}),findPosH:function(d,m,I,b){var y=1;m<0&&(y=-1,m=-m);for(var L=Xe(this.doc,d),U=0;U<m&&(L=ll(this.doc,L,y,I,b),!L.hitSide);++U);return L},moveH:bt(function(d,m){var I=this;this.extendSelectionsBy(function(b){return I.display.shift||I.doc.extend||b.empty()?ll(I.doc,b.head,d,m,I.options.rtlMoveVisually):d<0?b.from():b.to()},fr)}),deleteH:bt(function(d,m){var I=this.doc.sel,b=this.doc;I.somethingSelected()?b.replaceSelection("",null,"+delete"):On(this,function(y){var L=ll(b,y.head,d,m,!1);return d<0?{from:L,to:y.head}:{from:y.head,to:L}})}),findPosV:function(d,m,I,b){var y=1,L=b;m<0&&(y=-1,m=-m);for(var U=Xe(this.doc,d),k=0;k<m;++k){var $=Ye(this,U,"div");if(L==null?L=$.left:$.left=L,U=If(this,$,y,I),U.hitSide)break}return U},moveV:bt(function(d,m){var I=this,b=this.doc,y=[],L=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(k){if(L)return d<0?k.from():k.to();var $=Ye(I,k.head,"div");k.goalColumn!=null&&($.left=k.goalColumn),y.push($.left);var re=If(I,$,d,m);return m=="page"&&k==b.sel.primary()&&Ha(I,Xo(I,re,"div").top-$.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 m=this.doc,I=Ae(m,d.line).text,b=d.ch,y=d.ch;if(I){var L=this.getHelper(d,"wordChars");(d.sticky=="before"||y==I.length)&&b?--b:++y;for(var U=I.charAt(b),k=Se(U,L)?function($){return Se($,L)}:/\s/.test(U)?function($){return/\s/.test($)}:function($){return!/\s/.test($)&&!Se($)};b>0&&k(I.charAt(b-1));)--b;for(;y<I.length&&k(I.charAt(y));)++y}return new lr(ce(d.line,b),ce(d.line,y))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Je(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),ar(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Jr(Lt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:bt(function(d,m){Jn(this,d,m)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-Ii(this)-this.display.barHeight,width:d.scrollWidth-Ii(this)-this.display.barWidth,clientHeight:Va(this),clientWidth:Ss(this)}},scrollIntoView:bt(function(d,m){d==null?(d={from:this.doc.sel.primary().head,to:null},m==null&&(m=this.options.cursorScrollMargin)):typeof d=="number"?d={from:ce(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=m||0,d.from.line!=null?mp(this,d):Nu(this,d.from,d.to,d.margin)}),setSize:bt(function(d,m){var I=this,b=function(L){return typeof L=="number"||/^\d+$/.test(String(L))?L+"px":L};d!=null&&(this.display.wrapper.style.width=b(d)),m!=null&&(this.display.wrapper.style.height=b(m)),this.options.lineWrapping&&$o(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(L){if(L.widgets){for(var U=0;U<L.widgets.length;U++)if(L.widgets[U].noHScroll){Zt(I,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ar(this,"refresh",this)}),operation:function(d){return _t(this,d)},startOperation:function(){return Vs(this)},endOperation:function(){return Ms(this)},refresh:bt(function(){var d=this.display.cachedTextHeight;gt(this),this.curOp.forceUpdate=!0,Ls(this),Jn(this,this.doc.scrollLeft,this.doc.scrollTop),eo(this.display),(d==null||Math.abs(d-Dr(this.display))>.5||this.options.lineWrapping)&&Us(this),ar(this,"refresh",this)}),swapDoc:bt(function(d){var m=this.doc;return m.cm=null,this.state.selectingText&&this.state.selectingText(),ta(this,d),Ls(this),this.display.input.reset(),Jn(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,et(this,"swapDoc",this,m),m}),phrase:function(d){var m=this.options.phrases;return m&&Object.prototype.hasOwnProperty.call(m,d)?m[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}},ts(s),s.registerHelper=function(d,m,I){g.hasOwnProperty(d)||(g[d]=s[d]={_global:[]}),g[d][m]=I},s.registerGlobalHelper=function(d,m,I,b){s.registerHelper(d,m,b),g[d]._global.push({pred:I,val:b})}}function ll(s,l,g,d,m){var I=l,b=g,y=Ae(s,l.line),L=m&&s.direction=="rtl"?-g:g;function U(){var Ce=l.line+L;return Ce<s.first||Ce>=s.first+s.size?!1:(l=new ce(Ce,l.ch,l.sticky),y=Ae(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 Ve=g>0?be>=55296&&be<56320:be>=56320&&be<57343;xe=new ce(l.line,Math.max(0,Math.min(y.text.length,l.ch+g*(Ve?2:1))),-g)}}else m?xe=ec(s.cm,y,l,g):xe=el(y,l,g);if(xe==null)if(!Ce&&U())l=rl(m,s.cm,y,l.line,L);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 $=null,re=d=="group",K=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!k(!oe));oe=!1){var fe=y.text.charAt(l.ch)||`
16
- `,he=Se(fe,K)?"w":re&&fe==`
17
- `?"n":!re||/\s/.test(fe)?null:"p";if(re&&!oe&&!he&&(he="s"),$&&$!=he){g<0&&(g=1,k(),l.sticky="after");break}if(he&&($=he),g>0&&!k(!oe))break}var me=oa(s,l,I,b,!0);return ya(I,me)&&(me.hitSide=!0),me}function If(s,l,g,d){var m=s.doc,I=l.left,b;if(d=="page"){var y=Math.min(s.display.wrapper.clientHeight,at(s).innerHeight||m(s).documentElement.clientHeight),L=Math.max(y-.5*Dr(s.display),3);b=(g>0?l.bottom:l.top)+g*L}else d=="line"&&(b=g>0?l.bottom+3:l.top-3);for(var U;U=Wa(s,I,b),!!U.outside;){if(g<0?b<=0:b>=m.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,m=g.div=s.lineDiv;m.contentEditable=!0,al(m,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function I(y){for(var L=y.target;L;L=L.parentNode){if(L==m)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(L.className))break}return!1}Ue(m,"paste",function(y){!I(y)||dr(d,y)||mf(y,d)||V<=11&&setTimeout(rt(d,function(){return l.updateFromDOM()}),20)}),Ue(m,"compositionstart",function(y){l.composing={data:y.data,done:!1}}),Ue(m,"compositionupdate",function(y){l.composing||(l.composing={data:y.data,done:!1})}),Ue(m,"compositionend",function(y){l.composing&&(y.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Ue(m,"touchstart",function(){return g.forceCompositionEnd()}),Ue(m,"input",function(){l.composing||l.readFromDOMSoon()});function b(y){if(!(!I(y)||dr(d,y))){if(d.somethingSelected())ca({lineWise:!1,text:d.getSelections()}),y.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var L=Cf(d);ca({lineWise:!0,text:L.text}),y.type=="cut"&&d.operation(function(){d.setSelections(L.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=Af(),$=k.firstChild;al($),d.display.lineSpace.insertBefore(k,d.display.lineSpace.firstChild),$.value=fi.text.join(`
19
- `);var re=Jr(or(m));St($),setTimeout(function(){d.display.lineSpace.removeChild(k),re.focus(),re==m&&g.showPrimarySelection()},50)}}Ue(m,"copy",b),Ue(m,"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=Jr(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(),m=g.to();if(l.display.viewTo==l.display.viewFrom||d.line>=l.display.viewTo||m.line<l.display.viewFrom){s.removeAllRanges();return}var I=ha(l,s.anchorNode,s.anchorOffset),b=ha(l,s.focusNode,s.focusOffset);if(!(I&&!I.bad&&b&&!b.bad&&$e(Mo(I,b),d)==0&&$e(Vo(I,b),m)==0)){var y=l.display.view,L=d.line>=l.display.viewFrom&&Nf(l,d)||{node:y[0].measure.map[2],offset:0},U=m.line<l.display.viewTo&&Nf(l,m);if(!U){var k=y[y.length-1].measure,$=k.maps?k.maps[k.maps.length-1]:k.map;U={node:$[$.length-1],offset:$[$.length-2]-$[$.length-3]}}if(!L||!U){s.removeAllRanges();return}var re=s.rangeCount&&s.getRangeAt(0),K;try{K=Cr(L.node,L.offset,U.offset,U.node)}catch{}K&&(!e&&l.state.focused?(s.collapse(L.node,L.offset),K.collapsed||(s.removeAllRanges(),s.addRange(K))):(s.removeAllRanges(),s.addRange(K)),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){Ke(this.cm.display.cursorDiv,s.cursors),Ke(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()||Jr(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):_t(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(D&&Z&&this.cm.display.gutterSpecs.length&&Cc(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ha(l,s.anchorNode,s.anchorOffset),d=ha(l,s.focusNode,s.focusOffset);g&&d&&_t(l,function(){Et(l.doc,Ti(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(),m=g.to();if(d.ch==0&&d.line>s.firstLine()&&(d=ce(d.line-1,Ae(s.doc,d.line-1).length)),m.ch==Ae(s.doc,m.line).text.length&&m.line<s.lastLine()&&(m=ce(m.line+1,0)),d.line<l.viewFrom||m.line>l.viewTo-1)return!1;var I,b,y;d.line==l.viewFrom||(I=ki(s,d.line))==0?(b=Qe(l.view[0].line),y=l.view[0].node):(b=Qe(l.view[I].line),y=l.view[I-1].node.nextSibling);var L=ki(s,m.line),U,k;if(L==l.view.length-1?(U=l.viewTo-1,k=l.lineDiv.lastChild):(U=Qe(l.view[L+1].line)-1,k=l.view[L+1].node.previousSibling),!y)return!1;for(var $=s.doc.splitLines(Ac(s,y,k,b,U)),re=pt(s.doc,ce(b,0),ce(U,Ae(s.doc,U).text.length));$.length>1&&re.length>1;)if(Ie($)==Ie(re))$.pop(),re.pop(),U--;else if($[0]==re[0])$.shift(),re.shift(),b++;else break;for(var K=0,oe=0,fe=$[0],he=re[0],me=Math.min(fe.length,he.length);K<me&&fe.charCodeAt(K)==he.charCodeAt(K);)++K;for(var Ce=Ie($),xe=Ie(re),be=Math.min(Ce.length-($.length==1?K:0),xe.length-(re.length==1?K:0));oe<be&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)++oe;if($.length==1&&re.length==1&&b==d.line)for(;K&&K>d.ch&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)K--,oe++;$[$.length-1]=Ce.slice(0,Ce.length-oe).replace(/^\u200b+/,""),$[0]=$[0].slice(K).replace(/\u200b+$/,"");var Ve=ce(b,K),Fe=ce(U,re.length?Ie(re).length-oe:0);if($.length>1||$[0]||$e(Ve,Fe))return Sn(s.doc,$,Ve,Fe,"+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())&&_t(this.cm,function(){return gt(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()||rt(this.cm,ol)(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 Nf(s,l){var g=ht(s,l.line);if(!g||g.hidden)return null;var d=Ae(s.doc,l.line),m=Ho(g,d,l.line),I=br(d,s.doc.direction),b="left";if(I){var y=Nt(I,l.ch);b=y%2?"right":"left"}var L=gu(m.map,l.ch,b);return L.offset=L.collapse=="right"?L.end:L.start,L}function Cc(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function Gn(s,l){return l&&(s.bad=!0),s}function Ac(s,l,g,d,m){var I="",b=!1,y=s.doc.lineSeparator(),L=!1;function U(K){return function(oe){return oe.id==K}}function k(){b&&(I+=y,L&&(I+=y),b=L=!1)}function $(K){K&&(k(),I+=K)}function re(K){if(K.nodeType==1){var oe=K.getAttribute("cm-text");if(oe){$(oe);return}var fe=K.getAttribute("cm-marker"),he;if(fe){var me=s.findMarks(ce(d,0),ce(m+1,0),U(+fe));me.length&&(he=me[0].find(0))&&$(pt(s.doc,he.from,he.to).join(y));return}if(K.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;Ce&&k();for(var xe=0;xe<K.childNodes.length;xe++)re(K.childNodes[xe]);/^(pre|p)$/i.test(K.nodeName)&&(L=!0),Ce&&(b=!0)}else K.nodeType==3&&$(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(l),l!=g;)l=l.nextSibling,L=!1;return I}function ha(s,l,g){var d;if(l==s.display.lineDiv){if(d=s.display.lineDiv.childNodes[g],!d)return Gn(s.clipPos(ce(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 m=0;m<s.display.view.length;m++){var I=s.display.view[m];if(I.node==d)return Ic(I,l,g)}}function Ic(s,l,g){var d=s.text.firstChild,m=!1;if(!l||!ur(d,l))return Gn(ce(Qe(s.line),0),!0);if(l==d&&(m=!0,l=d.childNodes[g],g=0,!l)){var I=s.rest?Ie(s.rest):s.line;return Gn(ce(Qe(I),I.text.length),m)}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 L=s.measure,U=L.maps;function k(he,me,Ce){for(var xe=-1;xe<(U?U.length:0);xe++)for(var be=xe<0?L.map:U[xe],Ve=0;Ve<be.length;Ve+=3){var Fe=be[Ve+2];if(Fe==he||Fe==me){var qe=Qe(xe<0?s.line:s.rest[xe]),mr=be[Ve]+Ce;return(Ce<0||Fe!=he)&&(mr=be[Ve+(Ce?1:0)]),ce(qe,mr)}}}var $=k(b,y,g);if($)return Gn($,m);for(var re=y.nextSibling,K=b?b.nodeValue.length-g:0;re;re=re.nextSibling){if($=k(re,re.firstChild,0),$)return Gn(ce($.line,$.ch-K),m);K+=re.textContent.length}for(var oe=y.previousSibling,fe=g;oe;oe=oe.previousSibling){if($=k(oe,oe.firstChild,-1),$)return Gn(ce($.line,$.ch+fe),m);fe+=oe.textContent.length}}var Mr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Pr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Mr.prototype.init=function(s){var l=this,g=this,d=this.cm;this.createField(s);var m=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),B&&(m.style.width="0px"),Ue(m,"input",function(){O&&V>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Ue(m,"paste",function(b){dr(d,b)||mf(b,d)||(d.state.pasteIncoming=+new Date,g.fastPoll())});function I(b){if(!dr(d,b)){if(d.somethingSelected())ca({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var y=Cf(d);ca({lineWise:!0,text:y.text}),b.type=="cut"?d.setSelections(y.ranges,null,pe):(g.prevInput="",m.value=y.text.join(`
20
- `),St(m))}else return;b.type=="cut"&&(d.state.cutIncoming=+new Date)}}Ue(m,"cut",I),Ue(m,"copy",I),Ue(s.scroller,"paste",function(b){if(!(Wi(s,b)||dr(d,b))){if(!m.dispatchEvent){d.state.pasteIncoming=+new Date,g.focus();return}var y=new Event("paste");y.clipboardData=b.clipboardData,m.dispatchEvent(y)}}),Ue(s.lineSpace,"selectstart",function(b){Wi(s,b)||ft(b)}),Ue(m,"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"})}}),Ue(m,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Mr.prototype.createField=function(s){this.wrapper=Af(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;al(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Mr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Mr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,d=ps(s);if(s.options.moveInputWithCursor){var m=Ye(s,g.sel.primary().head,"div"),I=l.wrapper.getBoundingClientRect(),b=l.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,m.top+b.top-I.top)),d.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,m.left+b.left-I.left))}return d},Mr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Ke(g.cursorDiv,s.cursors),Ke(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Mr.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&&St(this.textarea),O&&V>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",O&&V>=9&&(this.hasSelection=null));this.resetting=!1}},Mr.prototype.getField=function(){return this.textarea},Mr.prototype.supportsTouch=function(){return!1},Mr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!X||Jr(or(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Mr.prototype.blur=function(){this.textarea.blur()},Mr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Mr.prototype.receivedFocus=function(){this.slowPoll()},Mr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Mr.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)},Mr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Fo(g)&&!d&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var m=g.value;if(m==d&&!l.somethingSelected())return!1;if(O&&V>=9&&this.hasSelection===m||z&&/[\uf700-\uf7ff]/.test(m))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var I=m.charCodeAt(0);if(I==8203&&!d&&(d="\u200B"),I==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,y=Math.min(d.length,m.length);b<y&&d.charCodeAt(b)==m.charCodeAt(b);)++b;return _t(l,function(){ol(l,m.slice(b),d.length-b,null,s.composing?"*compose":null),m.length>1e3||m.indexOf(`
21
- `)>-1?g.value=s.prevInput="":s.prevInput=m,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Mr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Mr.prototype.onKeyPress=function(){O&&V>=9&&(this.hasSelection=null),this.fastPoll()},Mr.prototype.onContextMenu=function(s){var l=this,g=l.cm,d=g.display,m=l.textarea;l.contextMenuPending&&l.contextMenuPending();var I=li(g,s),b=d.scroller.scrollTop;if(!I||J)return;var y=g.options.resetSelectionOnContextMenu;y&&g.doc.sel.contains(I)==-1&&rt(g,Et)(g.doc,Ti(I),pe);var L=m.style.cssText,U=l.wrapper.style.cssText,k=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",m.style.cssText=`position: absolute; width: 30px; height: 30px;
15
+ `)&&(oe=fe=ce(oe.line,0)));var he={from:oe,to:fe,text:O?O[re%O.length]:L,origin:m||(R?"paste":s.state.cutIncoming>b?"cut":"+input")};Sn(s.doc,he),rt(s,"inputRead",s,he)}l&&!R&&xf(s,l),Cn(s),s.curOp.updateInput<2&&(s.curOp.updateInput=X),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function mf(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 ol(l,g,0,null,"paste")}),!0}function xf(s,l){if(!(!s.options.electricChars||!s.options.smartIndent))for(var g=s.doc.sel,d=g.ranges.length-1;d>=0;d--){var m=g.ranges[d];if(!(m.head.ch>100||d&&g.ranges[d-1].head.line==m.head.line)){var I=s.getModeAt(m.head),b=!1;if(I.electricChars){for(var R=0;R<I.electricChars.length;R++)if(l.indexOf(I.electricChars.charAt(R))>-1){b=mo(s,m.head.line,"smart");break}}else I.electricInput&&I.electricInput.test(Ae(s.doc,m.head.line).text.slice(0,m.head.ch))&&(b=mo(s,m.head.line,"smart"));b&&rt(s,"electricInput",s,m.head.line)}}}function Cf(s){for(var l=[],g=[],d=0;d<s.doc.sel.ranges.length;d++){var m=s.doc.sel.ranges[d].head.line,I={anchor:ce(m,0),head:ce(m+1,0)};g.push(I),l.push(s.getRange(I.anchor,I.head))}return{text:l,ranges:g}}function al(s,l,g,d){s.setAttribute("autocorrect",g?"on":"off"),s.setAttribute("autocapitalize",d?"on":"off"),s.setAttribute("spellcheck",!!l)}function Af(){var s=ve("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=ve("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 xc(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){ut(this).focus(),this.display.input.focus()},setOption:function(d,m){var I=this.options,b=I[d];I[d]==m&&d!="mode"||(I[d]=m,l.hasOwnProperty(d)&&tt(this,l[d])(this,m,b),ar(this,"optionChange",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,m){this.state.keyMaps[m?"push":"unshift"](ua(d))},removeKeyMap:function(d){for(var m=this.state.keyMaps,I=0;I<m.length;++I)if(m[I]==d||m[I].name==d)return m.splice(I,1),!0},addOverlay:Tt(function(d,m){var I=d.token?d:s.getMode(this.options,d);if(I.startState)throw new Error("Overlays may not be stateful.");ft(this.state.overlays,{mode:I,modeSpec:d,opaque:m&&m.opaque,priority:m&&m.priority||0},function(b){return b.priority}),this.state.modeGen++,mt(this)}),removeOverlay:Tt(function(d){for(var m=this.state.overlays,I=0;I<m.length;++I){var b=m[I].modeSpec;if(b==d||typeof d=="string"&&b.name==d){m.splice(I,1),this.state.modeGen++,mt(this);return}}}),indentLine:Tt(function(d,m,I){typeof m!="string"&&typeof m!="number"&&(m==null?m=this.options.smartIndent?"smart":"prev":m=m?"add":"subtract"),is(this.doc,d)&&mo(this,d,m,I)}),indentSelection:Tt(function(d){for(var m=this.doc.sel.ranges,I=-1,b=0;b<m.length;b++){var R=m[b];if(R.empty())R.head.line>I&&(mo(this,R.head.line,d,!0),I=R.head.line,b==this.doc.sel.primIndex&&Cn(this));else{var L=R.from(),O=R.to(),k=Math.max(I,L.line);I=Math.min(this.lastLine(),O.line-(O.ch?0:1))+1;for(var X=k;X<I;++X)mo(this,X,d);var re=this.doc.sel.ranges;L.ch==0&&m.length==re.length&&re[b].from().ch>0&&qa(this.doc,b,new lr(L,re[b].to()),pe)}}}),getTokenAt:function(d,m){return tu(this,d,m)},getLineTokens:function(d,m){return tu(this,ce(d),m,!0)},getTokenTypeAt:function(d){d=Xe(this.doc,d);var m=Kl(this,Ae(this.doc,d.line)),I=0,b=(m.length-1)/2,R=d.ch,L;if(R==0)L=m[2];else for(;;){var O=I+b>>1;if((O?m[O*2-1]:0)>=R)b=O;else if(m[O*2+1]<R)I=O+1;else{L=m[O*2+2];break}}var k=L?L.indexOf("overlay "):-1;return k<0?L:k==0?null:L.slice(0,k-1)},getModeAt:function(d){var m=this.doc.mode;return m.innerMode?s.innerMode(m,this.getTokenAt(d).state).mode:m},getHelper:function(d,m){return this.getHelpers(d,m)[0]},getHelpers:function(d,m){var I=[];if(!g.hasOwnProperty(m))return I;var b=g[m],R=this.getModeAt(d);if(typeof R[m]=="string")b[R[m]]&&I.push(b[R[m]]);else if(R[m])for(var L=0;L<R[m].length;L++){var O=b[R[m][L]];O&&I.push(O)}else R.helperType&&b[R.helperType]?I.push(b[R.helperType]):b[R.name]&&I.push(b[R.name]);for(var k=0;k<b._global.length;k++){var X=b._global[k];X.pred(R,this)&&hr(I,X.val)==-1&&I.push(X.val)}return I},getStateAfter:function(d,m){var I=this.doc;return d=zl(I,d??I.first+I.size-1),kn(this,d+1,m).state},cursorCoords:function(d,m){var I,b=this.doc.sel.primary();return d==null?I=b.head:typeof d=="object"?I=Xe(this.doc,d):I=d?b.from():b.to(),$e(this,I,m||"page")},charCoords:function(d,m){return Xo(this,Xe(this.doc,d),m||"page")},coordsChar:function(d,m){return d=ls(this,d,m||"page"),Pa(this,d.left,d.top)},lineAtHeight:function(d,m){return d=ls(this,{top:d,left:0},m||"page").top,mi(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,m,I){var b=!1,R;if(typeof d=="number"){var L=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>L&&(d=L,b=!0),R=Ae(this.doc,d)}else R=d;return vn(this,R,{top:0,left:0},m||"page",I||b).top+(b?this.doc.height-Mi(R):0)},defaultTextHeight:function(){return Mr(this.display)},defaultCharWidth:function(){return us(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,m,I,b,R){var L=this.display;d=$e(this,Xe(this.doc,d));var O=d.bottom,k=d.left;if(m.style.position="absolute",m.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(m),L.sizer.appendChild(m),b=="over")O=d.top;else if(b=="above"||b=="near"){var X=Math.max(L.wrapper.clientHeight,this.doc.height),re=Math.max(L.sizer.clientWidth,L.lineSpace.clientWidth);(b=="above"||d.bottom+m.offsetHeight>X)&&d.top>m.offsetHeight?O=d.top-m.offsetHeight:d.bottom+m.offsetHeight<=X&&(O=d.bottom),k+m.offsetWidth>re&&(k=re-m.offsetWidth)}m.style.top=O+"px",m.style.left=m.style.right="",R=="right"?(k=L.sizer.clientWidth-m.offsetWidth,m.style.right="0px"):(R=="left"?k=0:R=="middle"&&(k=(L.sizer.clientWidth-m.offsetWidth)/2),m.style.left=k+"px"),I&&vp(this,{left:k,top:O,right:k+m.offsetWidth,bottom:O+m.offsetHeight})},triggerOnKeyDown:Tt(uf),triggerOnKeyPress:Tt(pf),triggerOnKeyUp:ff,triggerOnMouseDown:Tt(cf),execCommand:function(d){if(ho.hasOwnProperty(d))return ho[d].call(null,this)},triggerElectric:Tt(function(d){xf(this,d)}),findPosH:function(d,m,I,b){var R=1;m<0&&(R=-1,m=-m);for(var L=Xe(this.doc,d),O=0;O<m&&(L=ll(this.doc,L,R,I,b),!L.hitSide);++O);return L},moveH:Tt(function(d,m){var I=this;this.extendSelectionsBy(function(b){return I.display.shift||I.doc.extend||b.empty()?ll(I.doc,b.head,d,m,I.options.rtlMoveVisually):d<0?b.from():b.to()},fr)}),deleteH:Tt(function(d,m){var I=this.doc.sel,b=this.doc;I.somethingSelected()?b.replaceSelection("",null,"+delete"):Un(this,function(R){var L=ll(b,R.head,d,m,!1);return d<0?{from:L,to:R.head}:{from:R.head,to:L}})}),findPosV:function(d,m,I,b){var R=1,L=b;m<0&&(R=-1,m=-m);for(var O=Xe(this.doc,d),k=0;k<m;++k){var X=$e(this,O,"div");if(L==null?L=X.left:X.left=L,O=If(this,X,R,I),O.hitSide)break}return O},moveV:Tt(function(d,m){var I=this,b=this.doc,R=[],L=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(k){if(L)return d<0?k.from():k.to();var X=$e(I,k.head,"div");k.goalColumn!=null&&(X.left=k.goalColumn),R.push(X.left);var re=If(I,X,d,m);return m=="page"&&k==b.sel.primary()&&Ha(I,Xo(I,re,"div").top-X.top),re},fr),R.length)for(var O=0;O<b.sel.ranges.length;O++)b.sel.ranges[O].goalColumn=R[O]}),findWordAt:function(d){var m=this.doc,I=Ae(m,d.line).text,b=d.ch,R=d.ch;if(I){var L=this.getHelper(d,"wordChars");(d.sticky=="before"||R==I.length)&&b?--b:++R;for(var O=I.charAt(b),k=Se(O,L)?function(X){return Se(X,L)}:/\s/.test(O)?function(X){return/\s/.test(X)}:function(X){return!/\s/.test(X)&&!Se(X)};b>0&&k(I.charAt(b-1));)--b;for(;R<I.length&&k(I.charAt(R));)++R}return new lr(ce(d.line,b),ce(d.line,R))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Je(this.display.cursorDiv,"CodeMirror-overwrite"):Pe(this.display.cursorDiv,"CodeMirror-overwrite"),ar(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Jr(wt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Tt(function(d,m){zn(this,d,m)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-Ii(this)-this.display.barHeight,width:d.scrollWidth-Ii(this)-this.display.barWidth,clientHeight:Va(this),clientWidth:Ss(this)}},scrollIntoView:Tt(function(d,m){d==null?(d={from:this.doc.sel.primary().head,to:null},m==null&&(m=this.options.cursorScrollMargin)):typeof d=="number"?d={from:ce(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=m||0,d.from.line!=null?mp(this,d):Nu(this,d.from,d.to,d.margin)}),setSize:Tt(function(d,m){var I=this,b=function(L){return typeof L=="number"||/^\d+$/.test(String(L))?L+"px":L};d!=null&&(this.display.wrapper.style.width=b(d)),m!=null&&(this.display.wrapper.style.height=b(m)),this.options.lineWrapping&&Yo(this);var R=this.display.viewFrom;this.doc.iter(R,this.display.viewTo,function(L){if(L.widgets){for(var O=0;O<L.widgets.length;O++)if(L.widgets[O].noHScroll){kt(I,R,"widget");break}}++R}),this.curOp.forceUpdate=!0,ar(this,"refresh",this)}),operation:function(d){return Qt(this,d)},startOperation:function(){return Vs(this)},endOperation:function(){return Ms(this)},refresh:Tt(function(){var d=this.display.cachedTextHeight;mt(this),this.curOp.forceUpdate=!0,Ls(this),zn(this,this.doc.scrollLeft,this.doc.scrollTop),ro(this.display),(d==null||Math.abs(d-Mr(this.display))>.5||this.options.lineWrapping)&&Us(this),ar(this,"refresh",this)}),swapDoc:Tt(function(d){var m=this.doc;return m.cm=null,this.state.selectingText&&this.state.selectingText(),ta(this,d),Ls(this),this.display.input.reset(),zn(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,m),m}),phrase:function(d){var m=this.options.phrases;return m&&Object.prototype.hasOwnProperty.call(m,d)?m[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}},ts(s),s.registerHelper=function(d,m,I){g.hasOwnProperty(d)||(g[d]=s[d]={_global:[]}),g[d][m]=I},s.registerGlobalHelper=function(d,m,I,b){s.registerHelper(d,m,b),g[d]._global.push({pred:I,val:b})}}function ll(s,l,g,d,m){var I=l,b=g,R=Ae(s,l.line),L=m&&s.direction=="rtl"?-g:g;function O(){var Ce=l.line+L;return Ce<s.first||Ce>=s.first+s.size?!1:(l=new ce(Ce,l.ch,l.sticky),R=Ae(s,Ce))}function k(Ce){var xe;if(d=="codepoint"){var be=R.text.charCodeAt(l.ch+(g>0?0:-1));if(isNaN(be))xe=null;else{var Ve=g>0?be>=55296&&be<56320:be>=56320&&be<57343;xe=new ce(l.line,Math.max(0,Math.min(R.text.length,l.ch+g*(Ve?2:1))),-g)}}else m?xe=ec(s.cm,R,l,g):xe=el(R,l,g);if(xe==null)if(!Ce&&O())l=rl(m,s.cm,R,l.line,L);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 X=null,re=d=="group",ee=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!k(!oe));oe=!1){var fe=R.text.charAt(l.ch)||`
16
+ `,he=Se(fe,ee)?"w":re&&fe==`
17
+ `?"n":!re||/\s/.test(fe)?null:"p";if(re&&!oe&&!he&&(he="s"),X&&X!=he){g<0&&(g=1,k(),l.sticky="after");break}if(he&&(X=he),g>0&&!k(!oe))break}var me=oa(s,l,I,b,!0);return Ra(I,me)&&(me.hitSide=!0),me}function If(s,l,g,d){var m=s.doc,I=l.left,b;if(d=="page"){var R=Math.min(s.display.wrapper.clientHeight,ut(s).innerHeight||m(s).documentElement.clientHeight),L=Math.max(R-.5*Mr(s.display),3);b=(g>0?l.bottom:l.top)+g*L}else d=="line"&&(b=g>0?l.bottom+3:l.top-3);for(var O;O=Pa(s,I,b),!!O.outside;){if(g<0?b<=0:b>=m.height){O.hitSide=!0;break}b+=g*5}return O}var gr=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Zr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};gr.prototype.init=function(s){var l=this,g=this,d=g.cm,m=g.div=s.lineDiv;m.contentEditable=!0,al(m,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function I(R){for(var L=R.target;L;L=L.parentNode){if(L==m)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(L.className))break}return!1}Ue(m,"paste",function(R){!I(R)||dr(d,R)||mf(R,d)||V<=11&&setTimeout(tt(d,function(){return l.updateFromDOM()}),20)}),Ue(m,"compositionstart",function(R){l.composing={data:R.data,done:!1}}),Ue(m,"compositionupdate",function(R){l.composing||(l.composing={data:R.data,done:!1})}),Ue(m,"compositionend",function(R){l.composing&&(R.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Ue(m,"touchstart",function(){return g.forceCompositionEnd()}),Ue(m,"input",function(){l.composing||l.readFromDOMSoon()});function b(R){if(!(!I(R)||dr(d,R))){if(d.somethingSelected())ca({lineWise:!1,text:d.getSelections()}),R.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var L=Cf(d);ca({lineWise:!0,text:L.text}),R.type=="cut"&&d.operation(function(){d.setSelections(L.ranges,0,pe),d.replaceSelection("",null,"cut")})}else return;if(R.clipboardData){R.clipboardData.clearData();var O=fi.text.join(`
18
+ `);if(R.clipboardData.setData("Text",O),R.clipboardData.getData("Text")==O){R.preventDefault();return}}var k=Af(),X=k.firstChild;al(X),d.display.lineSpace.insertBefore(k,d.display.lineSpace.firstChild),X.value=fi.text.join(`
19
+ `);var re=Jr(or(m));Lt(X),setTimeout(function(){d.display.lineSpace.removeChild(k),re.focus(),re==m&&g.showPrimarySelection()},50)}}Ue(m,"copy",b),Ue(m,"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=Jr(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(),m=g.to();if(l.display.viewTo==l.display.viewFrom||d.line>=l.display.viewTo||m.line<l.display.viewFrom){s.removeAllRanges();return}var I=ha(l,s.anchorNode,s.anchorOffset),b=ha(l,s.focusNode,s.focusOffset);if(!(I&&!I.bad&&b&&!b.bad&&Ye(Mo(I,b),d)==0&&Ye(Vo(I,b),m)==0)){var R=l.display.view,L=d.line>=l.display.viewFrom&&Nf(l,d)||{node:R[0].measure.map[2],offset:0},O=m.line<l.display.viewTo&&Nf(l,m);if(!O){var k=R[R.length-1].measure,X=k.maps?k.maps[k.maps.length-1]:k.map;O={node:X[X.length-1],offset:X[X.length-2]-X[X.length-3]}}if(!L||!O){s.removeAllRanges();return}var re=s.rangeCount&&s.getRangeAt(0),ee;try{ee=Cr(L.node,L.offset,O.offset,O.node)}catch{}ee&&(!e&&l.state.focused?(s.collapse(L.node,L.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){Ke(this.cm.display.cursorDiv,s.cursors),Ke(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()||Jr(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(D&&_&&this.cm.display.gutterSpecs.length&&Cc(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ha(l,s.anchorNode,s.anchorOffset),d=ha(l,s.focusNode,s.focusOffset);g&&d&&Qt(l,function(){xt(l.doc,Ti(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(),m=g.to();if(d.ch==0&&d.line>s.firstLine()&&(d=ce(d.line-1,Ae(s.doc,d.line-1).length)),m.ch==Ae(s.doc,m.line).text.length&&m.line<s.lastLine()&&(m=ce(m.line+1,0)),d.line<l.viewFrom||m.line>l.viewTo-1)return!1;var I,b,R;d.line==l.viewFrom||(I=Zi(s,d.line))==0?(b=_e(l.view[0].line),R=l.view[0].node):(b=_e(l.view[I].line),R=l.view[I-1].node.nextSibling);var L=Zi(s,m.line),O,k;if(L==l.view.length-1?(O=l.viewTo-1,k=l.lineDiv.lastChild):(O=_e(l.view[L+1].line)-1,k=l.view[L+1].node.previousSibling),!R)return!1;for(var X=s.doc.splitLines(Ac(s,R,k,b,O)),re=dt(s.doc,ce(b,0),ce(O,Ae(s.doc,O).text.length));X.length>1&&re.length>1;)if(Ie(X)==Ie(re))X.pop(),re.pop(),O--;else if(X[0]==re[0])X.shift(),re.shift(),b++;else break;for(var ee=0,oe=0,fe=X[0],he=re[0],me=Math.min(fe.length,he.length);ee<me&&fe.charCodeAt(ee)==he.charCodeAt(ee);)++ee;for(var Ce=Ie(X),xe=Ie(re),be=Math.min(Ce.length-(X.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(X.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++;X[X.length-1]=Ce.slice(0,Ce.length-oe).replace(/^\u200b+/,""),X[0]=X[0].slice(ee).replace(/\u200b+$/,"");var Ve=ce(b,ee),Fe=ce(O,re.length?Ie(re).length-oe:0);if(X.length>1||X[0]||Ye(Ve,Fe))return Ln(s.doc,X,Ve,Fe,"+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 mt(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,ol)(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 Nf(s,l){var g=Et(s,l.line);if(!g||g.hidden)return null;var d=Ae(s.doc,l.line),m=Ho(g,d,l.line),I=Tr(d,s.doc.direction),b="left";if(I){var R=bt(I,l.ch);b=R%2?"right":"left"}var L=gu(m.map,l.ch,b);return L.offset=L.collapse=="right"?L.end:L.start,L}function Cc(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function Fn(s,l){return l&&(s.bad=!0),s}function Ac(s,l,g,d,m){var I="",b=!1,R=s.doc.lineSeparator(),L=!1;function O(ee){return function(oe){return oe.id==ee}}function k(){b&&(I+=R,L&&(I+=R),b=L=!1)}function X(ee){ee&&(k(),I+=ee)}function re(ee){if(ee.nodeType==1){var oe=ee.getAttribute("cm-text");if(oe){X(oe);return}var fe=ee.getAttribute("cm-marker"),he;if(fe){var me=s.findMarks(ce(d,0),ce(m+1,0),O(+fe));me.length&&(he=me[0].find(0))&&X(dt(s.doc,he.from,he.to).join(R));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)&&(L=!0),Ce&&(b=!0)}else ee.nodeType==3&&X(ee.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(l),l!=g;)l=l.nextSibling,L=!1;return I}function ha(s,l,g){var d;if(l==s.display.lineDiv){if(d=s.display.lineDiv.childNodes[g],!d)return Fn(s.clipPos(ce(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 m=0;m<s.display.view.length;m++){var I=s.display.view[m];if(I.node==d)return Ic(I,l,g)}}function Ic(s,l,g){var d=s.text.firstChild,m=!1;if(!l||!ur(d,l))return Fn(ce(_e(s.line),0),!0);if(l==d&&(m=!0,l=d.childNodes[g],g=0,!l)){var I=s.rest?Ie(s.rest):s.line;return Fn(ce(_e(I),I.text.length),m)}var b=l.nodeType==3?l:null,R=l;for(!b&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(b=l.firstChild,g&&(g=b.nodeValue.length));R.parentNode!=d;)R=R.parentNode;var L=s.measure,O=L.maps;function k(he,me,Ce){for(var xe=-1;xe<(O?O.length:0);xe++)for(var be=xe<0?L.map:O[xe],Ve=0;Ve<be.length;Ve+=3){var Fe=be[Ve+2];if(Fe==he||Fe==me){var qe=_e(xe<0?s.line:s.rest[xe]),mr=be[Ve]+Ce;return(Ce<0||Fe!=he)&&(mr=be[Ve+(Ce?1:0)]),ce(qe,mr)}}}var X=k(b,R,g);if(X)return Fn(X,m);for(var re=R.nextSibling,ee=b?b.nodeValue.length-g:0;re;re=re.nextSibling){if(X=k(re,re.firstChild,0),X)return Fn(ce(X.line,X.ch-ee),m);ee+=re.textContent.length}for(var oe=R.previousSibling,fe=g;oe;oe=oe.previousSibling){if(X=k(oe,oe.firstChild,-1),X)return Fn(ce(X.line,X.ch+fe),m);fe+=oe.textContent.length}}var Pr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Zr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Pr.prototype.init=function(s){var l=this,g=this,d=this.cm;this.createField(s);var m=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),B&&(m.style.width="0px"),Ue(m,"input",function(){G&&V>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Ue(m,"paste",function(b){dr(d,b)||mf(b,d)||(d.state.pasteIncoming=+new Date,g.fastPoll())});function I(b){if(!dr(d,b)){if(d.somethingSelected())ca({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var R=Cf(d);ca({lineWise:!0,text:R.text}),b.type=="cut"?d.setSelections(R.ranges,null,pe):(g.prevInput="",m.value=R.text.join(`
20
+ `),Lt(m))}else return;b.type=="cut"&&(d.state.cutIncoming=+new Date)}}Ue(m,"cut",I),Ue(m,"copy",I),Ue(s.scroller,"paste",function(b){if(!(Pi(s,b)||dr(d,b))){if(!m.dispatchEvent){d.state.pasteIncoming=+new Date,g.focus();return}var R=new Event("paste");R.clipboardData=b.clipboardData,m.dispatchEvent(R)}}),Ue(s.lineSpace,"selectstart",function(b){Pi(s,b)||ht(b)}),Ue(m,"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"})}}),Ue(m,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Pr.prototype.createField=function(s){this.wrapper=Af(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;al(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Pr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Pr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,d=ps(s);if(s.options.moveInputWithCursor){var m=$e(s,g.sel.primary().head,"div"),I=l.wrapper.getBoundingClientRect(),b=l.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,m.top+b.top-I.top)),d.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,m.left+b.left-I.left))}return d},Pr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Ke(g.cursorDiv,s.cursors),Ke(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Pr.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&&V>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",G&&V>=9&&(this.hasSelection=null));this.resetting=!1}},Pr.prototype.getField=function(){return this.textarea},Pr.prototype.supportsTouch=function(){return!1},Pr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Y||Jr(or(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Pr.prototype.blur=function(){this.textarea.blur()},Pr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Pr.prototype.receivedFocus=function(){this.slowPoll()},Pr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Pr.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)},Pr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Fo(g)&&!d&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var m=g.value;if(m==d&&!l.somethingSelected())return!1;if(G&&V>=9&&this.hasSelection===m||q&&/[\uf700-\uf7ff]/.test(m))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var I=m.charCodeAt(0);if(I==8203&&!d&&(d="\u200B"),I==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,R=Math.min(d.length,m.length);b<R&&d.charCodeAt(b)==m.charCodeAt(b);)++b;return Qt(l,function(){ol(l,m.slice(b),d.length-b,null,s.composing?"*compose":null),m.length>1e3||m.indexOf(`
21
+ `)>-1?g.value=s.prevInput="":s.prevInput=m,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Pr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Pr.prototype.onKeyPress=function(){G&&V>=9&&(this.hasSelection=null),this.fastPoll()},Pr.prototype.onContextMenu=function(s){var l=this,g=l.cm,d=g.display,m=l.textarea;l.contextMenuPending&&l.contextMenuPending();var I=li(g,s),b=d.scroller.scrollTop;if(!I||J)return;var R=g.options.resetSelectionOnContextMenu;R&&g.doc.sel.contains(I)==-1&&tt(g,xt)(g.doc,Ti(I),pe);var L=m.style.cssText,O=l.wrapper.style.cssText,k=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",m.style.cssText=`position: absolute; width: 30px; height: 30px;
22
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 $;W&&($=m.ownerDocument.defaultView.scrollY),d.input.focus(),W&&m.ownerDocument.defaultView.scrollTo(null,$),d.input.reset(),g.somethingSelected()||(m.value=l.prevInput=" "),l.contextMenuPending=K,d.selForContextMenu=g.doc.sel,clearTimeout(d.detectingSelectAll);function re(){if(m.selectionStart!=null){var fe=g.somethingSelected(),he="\u200B"+(fe?m.value:"");m.value="\u21DA",m.value=he,l.prevInput=fe?"":"\u200B",m.selectionStart=1,m.selectionEnd=he.length,d.selForContextMenu=g.doc.sel}}function K(){if(l.contextMenuPending==K&&(l.contextMenuPending=!1,l.wrapper.style.cssText=U,m.style.cssText=L,O&&V<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=b),m.selectionStart!=null)){(!O||O&&V<9)&&re();var fe=0,he=function(){d.selForContextMenu==g.doc.sel&&m.selectionStart==0&&m.selectionEnd>0&&l.prevInput=="\u200B"?rt(g,ku)(g):fe++<10?d.detectingSelectAll=setTimeout(he,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(he,200)}}if(O&&V>=9&&re(),_e){Is(s);var oe=function(){Wr(window,"mouseup",oe),setTimeout(K,20)};Ue(window,"mouseup",oe)}else setTimeout(K,50)},Mr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Mr.prototype.setUneditable=function(){},Mr.prototype.needsContentAttribute=!1;function Nc(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=Jr(or(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function d(){s.value=y.getValue()}var m;if(s.form&&(Ue(s.form,"submit",d),!l.leaveSubmitMethodAlone)){var I=s.form;m=I.submit;try{var b=I.submit=function(){d(),I.submit=m,I.submit(),I.submit=b}}catch{}}l.finishInit=function(L){L.save=d,L.getTextArea=function(){return s},L.toTextArea=function(){L.toTextArea=isNaN,d(),s.parentNode.removeChild(L.getWrapperElement()),s.style.display="",s.form&&(Wr(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=m))}},s.style.display="none";var y=Rr(function(L){return s.parentNode.insertBefore(L,s.nextSibling)},l);return y}function bc(s){s.off=Wr,s.on=Ue,s.wheelEventPixels=Up,s.Doc=Ft,s.splitLines=tn,s.countColumn=Ar,s.findColumn=ye,s.isWordChar=ut,s.Pass=Oe,s.signal=ar,s.Line=pn,s.changeEnd=Ri,s.scrollbarModel=Ru,s.Pos=ce,s.cmpPos=$e,s.modes=nn,s.mimeModes=Fi,s.resolveMode=on,s.getMode=De,s.modeExtensions=q,s.extendMode=ge,s.copyState=Re,s.startState=Kr,s.innerMode=vr,s.commands=co,s.keyMap=Qi,s.keyName=sf,s.isModifierKey=rf,s.lookupKey=wn,s.normalizeKeyMap=Kp,s.StringStream=je,s.SharedTextMarker=uo,s.TextMarker=gs,s.LineWidget=lo,s.e_preventDefault=ft,s.e_stopPropagation=kr,s.e_stop=Is,s.addClass=Je,s.contains=ur,s.rmClass=We,s.keyNames=Es}gc(Rr),xc(Rr);var Tc="iter insert remove copy getEditor constructor".split(" ");for(var da in Ft.prototype)Ft.prototype.hasOwnProperty(da)&&hr(Tc,da)<0&&(Rr.prototype[da]=function(s){return function(){return s.apply(this.doc,arguments)}}(Ft.prototype[da]));return ts(Ft),Rr.inputStyles={textarea:Mr,contenteditable:gr},Rr.defineMode=function(s){!Rr.defaults.mode&&s!="null"&&(Rr.defaults.mode=s),Bo.apply(this,arguments)},Rr.defineMIME=Do,Rr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Rr.defineMIME("text/plain","null"),Rr.defineExtension=function(s,l){Rr.prototype[s]=l},Rr.defineDocExtension=function(s,l){Ft.prototype[s]=l},Rr.fromTextArea=Nc,bc(Rr),Rr.version="5.65.20",Rr})});var Pl=Nr((oL,gm)=>{var rv=GI(),wI=FI(),OI=BI(),UI=typeof window<"u"?window:global;gm.exports={assign:rv,create:wI,trim:OI,bind:DI,slice:tv,each:dm,map:VI,pluck:iv,isList:sv,isFunction:MI,isObject:PI,Global:UI};function GI(){return Object.assign?Object.assign:function(v,e,N,R){for(var w=1;w<arguments.length;w++)dm(Object(arguments[w]),function(O,V){v[V]=O});return v}}function FI(){if(Object.create)return function(e,N,R,w){var O=tv(arguments,1);return rv.apply(this,[Object.create(e)].concat(O))};{let v=function(){};var i=v;return function(N,R,w,O){var V=tv(arguments,1);return v.prototype=N,rv.apply(this,[new v].concat(V))}}}function BI(){return String.prototype.trim?function(v){return String.prototype.trim.call(v)}:function(v){return v.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function DI(i,v){return function(){return v.apply(i,Array.prototype.slice.call(arguments,0))}}function tv(i,v){return Array.prototype.slice.call(i,v||0)}function dm(i,v){iv(i,function(e,N){return v(e,N),!1})}function VI(i,v){var e=sv(i)?[]:{};return iv(i,function(N,R){return e[R]=v(N,R),!1}),e}function iv(i,v){if(sv(i)){for(var e=0;e<i.length;e++)if(v(i[e],e))return i[e]}else for(var N in i)if(i.hasOwnProperty(N)&&v(i[N],N))return i[N]}function sv(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function MI(i){return i&&{}.toString.call(i)==="[object Function]"}function PI(i){return i&&{}.toString.call(i)==="[object Object]"}});var vm=Nr((aL,Em)=>{var ga=Pl(),WI=ga.slice,kI=ga.pluck,Tf=ga.each,ZI=ga.bind,_I=ga.create,nv=ga.isList,ov=ga.isFunction,QI=ga.isObject;Em.exports={createStore:av};var HI={version:"2.0.12",enabled:!1,get:function(i,v){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,v)},set:function(i,v){return v===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(v)),v)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var v=this;this.storage.each(function(e,N){i.call(v,v._deserialize(e),(N||"").replace(v._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return av.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return av(this.storage,this.plugins,i)}};function $I(){var i=typeof console>"u"?null:console;if(i){var v=i.warn?i.warn:i.log;v.apply(i,arguments)}}function av(i,v,e){e||(e=""),i&&!nv(i)&&(i=[i]),v&&!nv(v)&&(v=[v]);var N=e?"__storejs_"+e+"_":"",R=e?new RegExp("^"+N):null,w=/^[a-zA-Z0-9_\-]*$/;if(!w.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var O={_namespacePrefix:N,_namespaceRegexp:R,_testStorage:function(W){try{var H="__storejs__test__";W.write(H,H);var Z=W.read(H)===H;return W.remove(H),Z}catch{return!1}},_assignPluginFnProp:function(W,H){var Z=this[H];this[H]=function(){var J=WI(arguments,0),Q=this;function ee(){if(Z)return Tf(arguments,function(B,D){J[D]=B}),Z.apply(Q,J)}var Y=[ee].concat(J);return W.apply(Q,Y)}},_serialize:function(W){return JSON.stringify(W)},_deserialize:function(W,H){if(!W)return H;var Z="";try{Z=JSON.parse(W)}catch{Z=W}return Z!==void 0?Z:H},_addStorage:function(W){this.enabled||this._testStorage(W)&&(this.storage=W,this.enabled=!0)},_addPlugin:function(W){var H=this;if(nv(W)){Tf(W,function(J){H._addPlugin(J)});return}var Z=kI(this.plugins,function(J){return W===J});if(!Z){if(this.plugins.push(W),!ov(W))throw new Error("Plugins must be function values that return objects");var P=W.call(this);if(!QI(P))throw new Error("Plugins must return an object of function properties");Tf(P,function(J,Q){if(!ov(J))throw new Error("Bad plugin property: "+Q+" from plugin "+W.name+". Plugins should only return functions.");H._assignPluginFnProp(J,Q)})}},addStorage:function(W){$I("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(W)}},V=_I(O,HI,{plugins:[]});return V.raw={},Tf(V,function(W,H){ov(W)&&(V.raw[H]=ZI(V,W))}),Tf(i,function(W){V._addStorage(W)}),Tf(v,function(W){V._addPlugin(W)}),V}});var Cm=Nr((lL,xm)=>{var XI=Pl(),YI=XI.Global;xm.exports={name:"localStorage",read:mm,write:JI,each:zI,remove:jI,clearAll:qI};function Rf(){return YI.localStorage}function mm(i){return Rf().getItem(i)}function JI(i,v){return Rf().setItem(i,v)}function zI(i){for(var v=Rf().length-1;v>=0;v--){var e=Rf().key(v);i(mm(e),e)}}function jI(i){return Rf().removeItem(i)}function qI(){return Rf().clear()}});var Nm=Nr((uL,Im)=>{var KI=Pl(),eN=KI.Global;Im.exports={name:"oldFF-globalStorage",read:rN,write:tN,each:Am,remove:iN,clearAll:sN};var Wl=eN.globalStorage;function rN(i){return Wl[i]}function tN(i,v){Wl[i]=v}function Am(i){for(var v=Wl.length-1;v>=0;v--){var e=Wl.key(v);i(Wl[e],e)}}function iN(i){return Wl.removeItem(i)}function sN(){Am(function(i,v){delete Wl[i]})}});var Rm=Nr((fL,Tm)=>{var nN=Pl(),lv=nN.Global;Tm.exports={name:"oldIE-userDataStorage",write:oN,read:aN,each:lN,remove:uN,clearAll:fN};var gh="storejs",dh=lv.document,Eh=cN(),bm=(lv.navigator?lv.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function oN(i,v){if(!bm){var e=uv(i);Eh(function(N){N.setAttribute(e,v),N.save(gh)})}}function aN(i){if(!bm){var v=uv(i),e=null;return Eh(function(N){e=N.getAttribute(v)}),e}}function lN(i){Eh(function(v){for(var e=v.XMLDocument.documentElement.attributes,N=e.length-1;N>=0;N--){var R=e[N];i(v.getAttribute(R.name),R.name)}})}function uN(i){var v=uv(i);Eh(function(e){e.removeAttribute(v),e.save(gh)})}function fN(){Eh(function(i){var v=i.XMLDocument.documentElement.attributes;i.load(gh);for(var e=v.length-1;e>=0;e--)i.removeAttribute(v[e].name);i.save(gh)})}var pN=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function uv(i){return i.replace(/^\d/,"___$&").replace(pN,"___")}function cN(){if(!dh||!dh.documentElement||!dh.documentElement.addBehavior)return null;var i="script",v,e,N;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),v=e.w.frames[0].document,N=v.createElement("div")}catch{N=dh.createElement("div"),v=dh.body}return function(R){var w=[].slice.call(arguments,0);w.unshift(N),v.appendChild(N),N.addBehavior("#default#userData"),N.load(gh),R.apply(this,w),v.removeChild(N)}}});var Um=Nr((pL,Om)=>{var ym=Pl(),hN=ym.Global,dN=ym.trim;Om.exports={name:"cookieStorage",read:gN,write:EN,each:Sm,remove:Lm,clearAll:vN};var vh=hN.document;function gN(i){if(!i||!wm(i))return null;var v="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(vh.cookie.replace(new RegExp(v),"$1"))}function Sm(i){for(var v=vh.cookie.split(/; ?/g),e=v.length-1;e>=0;e--)if(dN(v[e])){var N=v[e].split("="),R=unescape(N[0]),w=unescape(N[1]);i(w,R)}}function EN(i,v){i&&(vh.cookie=escape(i)+"="+escape(v)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Lm(i){!i||!wm(i)||(vh.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function vN(){Sm(function(i,v){Lm(v)})}function wm(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(vh.cookie)}});var Bm=Nr((cL,Fm)=>{var mN=Pl(),xN=mN.Global;Fm.exports={name:"sessionStorage",read:Gm,write:CN,each:AN,remove:IN,clearAll:NN};function yf(){return xN.sessionStorage}function Gm(i){return yf().getItem(i)}function CN(i,v){return yf().setItem(i,v)}function AN(i){for(var v=yf().length-1;v>=0;v--){var e=yf().key(v);i(Gm(e),e)}}function IN(i){return yf().removeItem(i)}function NN(){return yf().clear()}});var Vm=Nr((hL,Dm)=>{Dm.exports={name:"memoryStorage",read:bN,write:TN,each:RN,remove:yN,clearAll:SN};var kl={};function bN(i){return kl[i]}function TN(i,v){kl[i]=v}function RN(i){for(var v in kl)kl.hasOwnProperty(v)&&i(kl[v],v)}function yN(i){delete kl[i]}function SN(i){kl={}}});var Pm=Nr((dL,Mm)=>{Mm.exports=[Cm(),Nm(),Rm(),Um(),Bm(),Vm()]});var Wm=Nr((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(v){var e=meta[v];return typeof e=="string"?e:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,v){var e,N,R,w,O=gap,V,W=v[i];switch(W&&typeof W=="object"&&typeof W.toJSON=="function"&&(W=W.toJSON(i)),typeof rep=="function"&&(W=rep.call(v,i,W)),typeof W){case"string":return quote(W);case"number":return isFinite(W)?String(W):"null";case"boolean":case"null":return String(W);case"object":if(!W)return"null";if(gap+=indent,V=[],Object.prototype.toString.apply(W)==="[object Array]"){for(w=W.length,e=0;e<w;e+=1)V[e]=str(e,W)||"null";return R=V.length===0?"[]":gap?`[
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 X;Z&&(X=m.ownerDocument.defaultView.scrollY),d.input.focus(),Z&&m.ownerDocument.defaultView.scrollTo(null,X),d.input.reset(),g.somethingSelected()||(m.value=l.prevInput=" "),l.contextMenuPending=ee,d.selForContextMenu=g.doc.sel,clearTimeout(d.detectingSelectAll);function re(){if(m.selectionStart!=null){var fe=g.somethingSelected(),he="\u200B"+(fe?m.value:"");m.value="\u21DA",m.value=he,l.prevInput=fe?"":"\u200B",m.selectionStart=1,m.selectionEnd=he.length,d.selForContextMenu=g.doc.sel}}function ee(){if(l.contextMenuPending==ee&&(l.contextMenuPending=!1,l.wrapper.style.cssText=O,m.style.cssText=L,G&&V<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=b),m.selectionStart!=null)){(!G||G&&V<9)&&re();var fe=0,he=function(){d.selForContextMenu==g.doc.sel&&m.selectionStart==0&&m.selectionEnd>0&&l.prevInput=="\u200B"?tt(g,Zu)(g):fe++<10?d.detectingSelectAll=setTimeout(he,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(he,200)}}if(G&&V>=9&&re(),ke){Is(s);var oe=function(){kr(window,"mouseup",oe),setTimeout(ee,20)};Ue(window,"mouseup",oe)}else setTimeout(ee,50)},Pr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Pr.prototype.setUneditable=function(){},Pr.prototype.needsContentAttribute=!1;function Nc(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=Jr(or(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function d(){s.value=R.getValue()}var m;if(s.form&&(Ue(s.form,"submit",d),!l.leaveSubmitMethodAlone)){var I=s.form;m=I.submit;try{var b=I.submit=function(){d(),I.submit=m,I.submit(),I.submit=b}}catch{}}l.finishInit=function(L){L.save=d,L.getTextArea=function(){return s},L.toTextArea=function(){L.toTextArea=isNaN,d(),s.parentNode.removeChild(L.getWrapperElement()),s.style.display="",s.form&&(kr(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=m))}},s.style.display="none";var R=Rr(function(L){return s.parentNode.insertBefore(L,s.nextSibling)},l);return R}function bc(s){s.off=kr,s.on=Ue,s.wheelEventPixels=Up,s.Doc=Bt,s.splitLines=sn,s.countColumn=Ar,s.findColumn=Re,s.isWordChar=pt,s.Pass=Oe,s.signal=ar,s.Line=cn,s.changeEnd=yi,s.scrollbarModel=yu,s.Pos=ce,s.cmpPos=Ye,s.modes=on,s.mimeModes=Fi,s.resolveMode=an,s.getMode=De,s.modeExtensions=K,s.extendMode=ge,s.copyState=ye,s.startState=et,s.innerMode=vr,s.commands=ho,s.keyMap=_i,s.keyName=sf,s.isModifierKey=rf,s.lookupKey=On,s.normalizeKeyMap=Kp,s.StringStream=je,s.SharedTextMarker=fo,s.TextMarker=gs,s.LineWidget=uo,s.e_preventDefault=ht,s.e_stopPropagation=Vr,s.e_stop=Is,s.addClass=Je,s.contains=ur,s.rmClass=Pe,s.keyNames=Es}gc(Rr),xc(Rr);var Tc="iter insert remove copy getEditor constructor".split(" ");for(var da in Bt.prototype)Bt.prototype.hasOwnProperty(da)&&hr(Tc,da)<0&&(Rr.prototype[da]=function(s){return function(){return s.apply(this.doc,arguments)}}(Bt.prototype[da]));return ts(Bt),Rr.inputStyles={textarea:Pr,contenteditable:gr},Rr.defineMode=function(s){!Rr.defaults.mode&&s!="null"&&(Rr.defaults.mode=s),Bo.apply(this,arguments)},Rr.defineMIME=Do,Rr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Rr.defineMIME("text/plain","null"),Rr.defineExtension=function(s,l){Rr.prototype[s]=l},Rr.defineDocExtension=function(s,l){Bt.prototype[s]=l},Rr.fromTextArea=Nc,bc(Rr),Rr.version="5.65.20",Rr})});var Wl=br((oL,Em)=>{var rv=FI(),OI=BI(),UI=DI(),GI=typeof window<"u"?window:global;Em.exports={assign:rv,create:OI,trim:UI,bind:VI,slice:tv,each:gm,map:MI,pluck:iv,isList:sv,isFunction:WI,isObject:PI,Global:GI};function FI(){return Object.assign?Object.assign:function(v,e,N,y){for(var w=1;w<arguments.length;w++)gm(Object(arguments[w]),function(G,V){v[V]=G});return v}}function BI(){if(Object.create)return function(e,N,y,w){var G=tv(arguments,1);return rv.apply(this,[Object.create(e)].concat(G))};{let v=function(){};var i=v;return function(N,y,w,G){var V=tv(arguments,1);return v.prototype=N,rv.apply(this,[new v].concat(V))}}}function DI(){return String.prototype.trim?function(v){return String.prototype.trim.call(v)}:function(v){return v.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function VI(i,v){return function(){return v.apply(i,Array.prototype.slice.call(arguments,0))}}function tv(i,v){return Array.prototype.slice.call(i,v||0)}function gm(i,v){iv(i,function(e,N){return v(e,N),!1})}function MI(i,v){var e=sv(i)?[]:{};return iv(i,function(N,y){return e[y]=v(N,y),!1}),e}function iv(i,v){if(sv(i)){for(var e=0;e<i.length;e++)if(v(i[e],e))return i[e]}else for(var N in i)if(i.hasOwnProperty(N)&&v(i[N],N))return i[N]}function sv(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function WI(i){return i&&{}.toString.call(i)==="[object Function]"}function PI(i){return i&&{}.toString.call(i)==="[object Object]"}});var mm=br((aL,vm)=>{var ga=Wl(),ZI=ga.slice,kI=ga.pluck,Tf=ga.each,QI=ga.bind,_I=ga.create,nv=ga.isList,ov=ga.isFunction,HI=ga.isObject;vm.exports={createStore:av};var YI={version:"2.0.12",enabled:!1,get:function(i,v){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,v)},set:function(i,v){return v===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(v)),v)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var v=this;this.storage.each(function(e,N){i.call(v,v._deserialize(e),(N||"").replace(v._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return av.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return av(this.storage,this.plugins,i)}};function XI(){var i=typeof console>"u"?null:console;if(i){var v=i.warn?i.warn:i.log;v.apply(i,arguments)}}function av(i,v,e){e||(e=""),i&&!nv(i)&&(i=[i]),v&&!nv(v)&&(v=[v]);var N=e?"__storejs_"+e+"_":"",y=e?new RegExp("^"+N):null,w=/^[a-zA-Z0-9_\-]*$/;if(!w.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var G={_namespacePrefix:N,_namespaceRegexp:y,_testStorage:function(Z){try{var H="__storejs__test__";Z.write(H,H);var _=Z.read(H)===H;return Z.remove(H),_}catch{return!1}},_assignPluginFnProp:function(Z,H){var _=this[H];this[H]=function(){var J=ZI(arguments,0),M=this;function z(){if(_)return Tf(arguments,function(B,D){J[D]=B}),_.apply(M,J)}var $=[z].concat(J);return Z.apply(M,$)}},_serialize:function(Z){return JSON.stringify(Z)},_deserialize:function(Z,H){if(!Z)return H;var _="";try{_=JSON.parse(Z)}catch{_=Z}return _!==void 0?_:H},_addStorage:function(Z){this.enabled||this._testStorage(Z)&&(this.storage=Z,this.enabled=!0)},_addPlugin:function(Z){var H=this;if(nv(Z)){Tf(Z,function(J){H._addPlugin(J)});return}var _=kI(this.plugins,function(J){return Z===J});if(!_){if(this.plugins.push(Z),!ov(Z))throw new Error("Plugins must be function values that return objects");var W=Z.call(this);if(!HI(W))throw new Error("Plugins must return an object of function properties");Tf(W,function(J,M){if(!ov(J))throw new Error("Bad plugin property: "+M+" from plugin "+Z.name+". Plugins should only return functions.");H._assignPluginFnProp(J,M)})}},addStorage:function(Z){XI("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Z)}},V=_I(G,YI,{plugins:[]});return V.raw={},Tf(V,function(Z,H){ov(Z)&&(V.raw[H]=QI(V,Z))}),Tf(i,function(Z){V._addStorage(Z)}),Tf(v,function(Z){V._addPlugin(Z)}),V}});var Am=br((lL,Cm)=>{var $I=Wl(),JI=$I.Global;Cm.exports={name:"localStorage",read:xm,write:zI,each:jI,remove:qI,clearAll:KI};function yf(){return JI.localStorage}function xm(i){return yf().getItem(i)}function zI(i,v){return yf().setItem(i,v)}function jI(i){for(var v=yf().length-1;v>=0;v--){var e=yf().key(v);i(xm(e),e)}}function qI(i){return yf().removeItem(i)}function KI(){return yf().clear()}});var bm=br((uL,Nm)=>{var eN=Wl(),rN=eN.Global;Nm.exports={name:"oldFF-globalStorage",read:tN,write:iN,each:Im,remove:sN,clearAll:nN};var Pl=rN.globalStorage;function tN(i){return Pl[i]}function iN(i,v){Pl[i]=v}function Im(i){for(var v=Pl.length-1;v>=0;v--){var e=Pl.key(v);i(Pl[e],e)}}function sN(i){return Pl.removeItem(i)}function nN(){Im(function(i,v){delete Pl[i]})}});var Rm=br((fL,ym)=>{var oN=Wl(),lv=oN.Global;ym.exports={name:"oldIE-userDataStorage",write:aN,read:lN,each:uN,remove:fN,clearAll:pN};var gh="storejs",dh=lv.document,Eh=hN(),Tm=(lv.navigator?lv.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function aN(i,v){if(!Tm){var e=uv(i);Eh(function(N){N.setAttribute(e,v),N.save(gh)})}}function lN(i){if(!Tm){var v=uv(i),e=null;return Eh(function(N){e=N.getAttribute(v)}),e}}function uN(i){Eh(function(v){for(var e=v.XMLDocument.documentElement.attributes,N=e.length-1;N>=0;N--){var y=e[N];i(v.getAttribute(y.name),y.name)}})}function fN(i){var v=uv(i);Eh(function(e){e.removeAttribute(v),e.save(gh)})}function pN(){Eh(function(i){var v=i.XMLDocument.documentElement.attributes;i.load(gh);for(var e=v.length-1;e>=0;e--)i.removeAttribute(v[e].name);i.save(gh)})}var cN=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function uv(i){return i.replace(/^\d/,"___$&").replace(cN,"___")}function hN(){if(!dh||!dh.documentElement||!dh.documentElement.addBehavior)return null;var i="script",v,e,N;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),v=e.w.frames[0].document,N=v.createElement("div")}catch{N=dh.createElement("div"),v=dh.body}return function(y){var w=[].slice.call(arguments,0);w.unshift(N),v.appendChild(N),N.addBehavior("#default#userData"),N.load(gh),y.apply(this,w),v.removeChild(N)}}});var Gm=br((pL,Um)=>{var Sm=Wl(),dN=Sm.Global,gN=Sm.trim;Um.exports={name:"cookieStorage",read:EN,write:vN,each:Lm,remove:wm,clearAll:mN};var vh=dN.document;function EN(i){if(!i||!Om(i))return null;var v="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(vh.cookie.replace(new RegExp(v),"$1"))}function Lm(i){for(var v=vh.cookie.split(/; ?/g),e=v.length-1;e>=0;e--)if(gN(v[e])){var N=v[e].split("="),y=unescape(N[0]),w=unescape(N[1]);i(w,y)}}function vN(i,v){i&&(vh.cookie=escape(i)+"="+escape(v)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function wm(i){!i||!Om(i)||(vh.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function mN(){Lm(function(i,v){wm(v)})}function Om(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(vh.cookie)}});var Dm=br((cL,Bm)=>{var xN=Wl(),CN=xN.Global;Bm.exports={name:"sessionStorage",read:Fm,write:AN,each:IN,remove:NN,clearAll:bN};function Rf(){return CN.sessionStorage}function Fm(i){return Rf().getItem(i)}function AN(i,v){return Rf().setItem(i,v)}function IN(i){for(var v=Rf().length-1;v>=0;v--){var e=Rf().key(v);i(Fm(e),e)}}function NN(i){return Rf().removeItem(i)}function bN(){return Rf().clear()}});var Mm=br((hL,Vm)=>{Vm.exports={name:"memoryStorage",read:TN,write:yN,each:RN,remove:SN,clearAll:LN};var Zl={};function TN(i){return Zl[i]}function yN(i,v){Zl[i]=v}function RN(i){for(var v in Zl)Zl.hasOwnProperty(v)&&i(Zl[v],v)}function SN(i){delete Zl[i]}function LN(i){Zl={}}});var Pm=br((dL,Wm)=>{Wm.exports=[Am(),bm(),Rm(),Gm(),Dm(),Mm()]});var Zm=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(v){var e=meta[v];return typeof e=="string"?e:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,v){var e,N,y,w,G=gap,V,Z=v[i];switch(Z&&typeof Z=="object"&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(i)),typeof rep=="function"&&(Z=rep.call(v,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,V=[],Object.prototype.toString.apply(Z)==="[object Array]"){for(w=Z.length,e=0;e<w;e+=1)V[e]=str(e,Z)||"null";return y=V.length===0?"[]":gap?`[
25
25
  `+gap+V.join(`,
26
26
  `+gap)+`
27
- `+O+"]":"["+V.join(",")+"]",gap=O,R}if(rep&&typeof rep=="object")for(w=rep.length,e=0;e<w;e+=1)typeof rep[e]=="string"&&(N=rep[e],R=str(N,W),R&&V.push(quote(N)+(gap?": ":":")+R));else for(N in W)Object.prototype.hasOwnProperty.call(W,N)&&(R=str(N,W),R&&V.push(quote(N)+(gap?": ":":")+R));return R=V.length===0?"{}":gap?`{
27
+ `+G+"]":"["+V.join(",")+"]",gap=G,y}if(rep&&typeof rep=="object")for(w=rep.length,e=0;e<w;e+=1)typeof rep[e]=="string"&&(N=rep[e],y=str(N,Z),y&&V.push(quote(N)+(gap?": ":":")+y));else for(N in Z)Object.prototype.hasOwnProperty.call(Z,N)&&(y=str(N,Z),y&&V.push(quote(N)+(gap?": ":":")+y));return y=V.length===0?"{}":gap?`{
28
28
  `+gap+V.join(`,
29
29
  `+gap)+`
30
- `+O+"}":"{"+V.join(",")+"}",gap=O,R}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,v,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=v,v&&typeof v!="function"&&(typeof v!="object"||typeof v.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,v){var e,N,R=i[v];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,v,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 Zm=Nr((gL,km)=>{km.exports=LN;function LN(){return Wm(),{}}});var Qm=Nr((EL,_m)=>{var wN=vm(),ON=Pm(),UN=[Zm()];_m.exports=wN.createStore(ON,UN)});var Xm=Nr((IL,$m)=>{"use strict";$m.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,v=>`%${v.charCodeAt(0).toString(16).toUpperCase()}`)});var qm=Nr((NL,jm)=>{"use strict";var zm="%[a-f0-9]{2}",Ym=new RegExp("("+zm+")|([^%]+?)","gi"),Jm=new RegExp("("+zm+")+","gi");function fv(i,v){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;v=v||1;var e=i.slice(0,v),N=i.slice(v);return Array.prototype.concat.call([],fv(e),fv(N))}function FN(i){try{return decodeURIComponent(i)}catch{for(var v=i.match(Ym)||[],e=1;e<v.length;e++)i=fv(v,e).join(""),v=i.match(Ym)||[];return i}}function BN(i){for(var v={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=Jm.exec(i);e;){try{v[e[0]]=decodeURIComponent(e[0])}catch{var N=FN(e[0]);N!==e[0]&&(v[e[0]]=N)}e=Jm.exec(i)}v["%C2"]="\uFFFD";for(var R=Object.keys(v),w=0;w<R.length;w++){var O=R[w];i=i.replace(new RegExp(O,"g"),v[O])}return i}jm.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 BN(i)}}});var e0=Nr((bL,Km)=>{"use strict";Km.exports=(i,v)=>{if(!(typeof i=="string"&&typeof v=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(v==="")return[i];let e=i.indexOf(v);return e===-1?[i]:[i.slice(0,e),i.slice(e+v.length)]}});var t0=Nr((TL,r0)=>{"use strict";r0.exports=function(i,v){for(var e={},N=Object.keys(i),R=Array.isArray(v),w=0;w<N.length;w++){var O=N[w],V=i[O];(R?v.indexOf(O)!==-1:v(O,V,i))&&(e[O]=V)}return e}});var Bh=Nr(Li=>{"use strict";var DN=Xm(),VN=qm(),s0=e0(),MN=t0(),PN=i=>i==null;function WN(i){switch(i.arrayFormat){case"index":return v=>(e,N)=>{let R=e.length;return N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(v,i),"[",R,"]"].join("")]:[...e,[qt(v,i),"[",qt(R,i),"]=",qt(N,i)].join("")]};case"bracket":return v=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(v,i),"[]"].join("")]:[...e,[qt(v,i),"[]=",qt(N,i)].join("")];case"comma":case"separator":return v=>(e,N)=>N==null||N.length===0?e:e.length===0?[[qt(v,i),"=",qt(N,i)].join("")]:[[e,qt(N,i)].join(i.arrayFormatSeparator)];default:return v=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,qt(v,i)]:[...e,[qt(v,i),"=",qt(N,i)].join("")]}}function kN(i){let v;switch(i.arrayFormat){case"index":return(e,N,R)=>{if(v=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!v){R[e]=N;return}R[e]===void 0&&(R[e]={}),R[e][v[1]]=N};case"bracket":return(e,N,R)=>{if(v=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!v){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 w=typeof N=="string"&&N.includes(i.arrayFormatSeparator),O=typeof N=="string"&&!w&&_l(N,i).includes(i.arrayFormatSeparator);N=O?_l(N,i):N;let V=w||O?N.split(i.arrayFormatSeparator).map(W=>_l(W,i)):N===null?N:_l(N,i);R[e]=V};default:return(e,N,R)=>{if(R[e]===void 0){R[e]=N;return}R[e]=[].concat(R[e],N)}}}function n0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qt(i,v){return v.encode?v.strict?DN(i):encodeURIComponent(i):i}function _l(i,v){return v.decode?VN(i):i}function o0(i){return Array.isArray(i)?i.sort():typeof i=="object"?o0(Object.keys(i)).sort((v,e)=>Number(v)-Number(e)).map(v=>i[v]):i}function a0(i){let v=i.indexOf("#");return v!==-1&&(i=i.slice(0,v)),i}function ZN(i){let v="",e=i.indexOf("#");return e!==-1&&(v=i.slice(e)),v}function l0(i){i=a0(i);let v=i.indexOf("?");return v===-1?"":i.slice(v+1)}function i0(i,v){return v.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):v.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function u0(i,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),n0(v.arrayFormatSeparator);let e=kN(v),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[w,O]=s0(v.decode?R.replace(/\+/g," "):R,"=");O=O===void 0?null:["comma","separator"].includes(v.arrayFormat)?O:_l(O,v),e(_l(w,v),O,N)}for(let R of Object.keys(N)){let w=N[R];if(typeof w=="object"&&w!==null)for(let O of Object.keys(w))w[O]=i0(w[O],v);else N[R]=i0(w,v)}return v.sort===!1?N:(v.sort===!0?Object.keys(N).sort():Object.keys(N).sort(v.sort)).reduce((R,w)=>{let O=N[w];return O&&typeof O=="object"&&!Array.isArray(O)?R[w]=o0(O):R[w]=O,R},Object.create(null))}Li.extract=l0;Li.parse=u0;Li.stringify=(i,v)=>{if(!i)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),n0(v.arrayFormatSeparator);let e=O=>v.skipNull&&PN(i[O])||v.skipEmptyString&&i[O]==="",N=WN(v),R={};for(let O of Object.keys(i))e(O)||(R[O]=i[O]);let w=Object.keys(R);return v.sort!==!1&&w.sort(v.sort),w.map(O=>{let V=i[O];return V===void 0?"":V===null?qt(O,v):Array.isArray(V)?V.reduce(N(O),[]).join("&"):qt(O,v)+"="+qt(V,v)}).filter(O=>O.length>0).join("&")};Li.parseUrl=(i,v)=>{v=Object.assign({decode:!0},v);let[e,N]=s0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:u0(l0(i),v)},v&&v.parseFragmentIdentifier&&N?{fragmentIdentifier:_l(N,v)}:{})};Li.stringifyUrl=(i,v)=>{v=Object.assign({encode:!0,strict:!0},v);let e=a0(i.url).split("?")[0]||"",N=Li.extract(i.url),R=Li.parse(N,{sort:!1}),w=Object.assign(R,i.query),O=Li.stringify(w,v);O&&(O=`?${O}`);let V=ZN(i.url);return i.fragmentIdentifier&&(V=`#${qt(i.fragmentIdentifier,v)}`),`${e}${O}${V}`};Li.pick=(i,v,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:N,query:R,fragmentIdentifier:w}=Li.parseUrl(i,e);return Li.stringifyUrl({url:N,query:MN(R,v),fragmentIdentifier:w},e)};Li.exclude=(i,v,e)=>{let N=Array.isArray(v)?R=>!v.includes(R):(R,w)=>!v(R,w);return Li.pick(i,N,e)}});var tA=Nr((EV,yv)=>{"use strict";var _f=typeof Reflect=="object"?Reflect:null,$C=_f&&typeof _f.apply=="function"?_f.apply:function(v,e,N){return Function.prototype.apply.call(v,e,N)},ld;_f&&typeof _f.ownKeys=="function"?ld=_f.ownKeys:Object.getOwnPropertySymbols?ld=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:ld=function(v){return Object.getOwnPropertyNames(v)};function p1(i){console&&console.warn&&console.warn(i)}var YC=Number.isNaN||function(v){return v!==v};function Lr(){Lr.init.call(this)}yv.exports=Lr;yv.exports.once=g1;Lr.EventEmitter=Lr;Lr.prototype._events=void 0;Lr.prototype._eventsCount=0;Lr.prototype._maxListeners=void 0;var XC=10;function ud(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(Lr,"defaultMaxListeners",{enumerable:!0,get:function(){return XC},set:function(i){if(typeof i!="number"||i<0||YC(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");XC=i}});Lr.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};Lr.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||YC(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function JC(i){return i._maxListeners===void 0?Lr.defaultMaxListeners:i._maxListeners}Lr.prototype.getMaxListeners=function(){return JC(this)};Lr.prototype.emit=function(v){for(var e=[],N=1;N<arguments.length;N++)e.push(arguments[N]);var R=v==="error",w=this._events;if(w!==void 0)R=R&&w.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 V=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw V.context=O,V}var W=w[v];if(W===void 0)return!1;if(typeof W=="function")$C(W,this,e);else for(var H=W.length,Z=eA(W,H),N=0;N<H;++N)$C(Z[N],this,e);return!0};function zC(i,v,e,N){var R,w,O;if(ud(e),w=i._events,w===void 0?(w=i._events=Object.create(null),i._eventsCount=0):(w.newListener!==void 0&&(i.emit("newListener",v,e.listener?e.listener:e),w=i._events),O=w[v]),O===void 0)O=w[v]=e,++i._eventsCount;else if(typeof O=="function"?O=w[v]=N?[e,O]:[O,e]:N?O.unshift(e):O.push(e),R=JC(i),R>0&&O.length>R&&!O.warned){O.warned=!0;var V=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");V.name="MaxListenersExceededWarning",V.emitter=i,V.type=v,V.count=O.length,p1(V)}return i}Lr.prototype.addListener=function(v,e){return zC(this,v,e,!1)};Lr.prototype.on=Lr.prototype.addListener;Lr.prototype.prependListener=function(v,e){return zC(this,v,e,!0)};function c1(){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 jC(i,v,e){var N={fired:!1,wrapFn:void 0,target:i,type:v,listener:e},R=c1.bind(N);return R.listener=e,N.wrapFn=R,R}Lr.prototype.once=function(v,e){return ud(e),this.on(v,jC(this,v,e)),this};Lr.prototype.prependOnceListener=function(v,e){return ud(e),this.prependListener(v,jC(this,v,e)),this};Lr.prototype.removeListener=function(v,e){var N,R,w,O,V;if(ud(e),R=this._events,R===void 0)return this;if(N=R[v],N===void 0)return this;if(N===e||N.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete R[v],R.removeListener&&this.emit("removeListener",v,N.listener||e));else if(typeof N!="function"){for(w=-1,O=N.length-1;O>=0;O--)if(N[O]===e||N[O].listener===e){V=N[O].listener,w=O;break}if(w<0)return this;w===0?N.shift():h1(N,w),N.length===1&&(R[v]=N[0]),R.removeListener!==void 0&&this.emit("removeListener",v,V||e)}return this};Lr.prototype.off=Lr.prototype.removeListener;Lr.prototype.removeAllListeners=function(v){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[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[v]),this;if(arguments.length===0){var w=Object.keys(N),O;for(R=0;R<w.length;++R)O=w[R],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=N[v],typeof e=="function")this.removeListener(v,e);else if(e!==void 0)for(R=e.length-1;R>=0;R--)this.removeListener(v,e[R]);return this};function qC(i,v,e){var N=i._events;if(N===void 0)return[];var R=N[v];return R===void 0?[]:typeof R=="function"?e?[R.listener||R]:[R]:e?d1(R):eA(R,R.length)}Lr.prototype.listeners=function(v){return qC(this,v,!0)};Lr.prototype.rawListeners=function(v){return qC(this,v,!1)};Lr.listenerCount=function(i,v){return typeof i.listenerCount=="function"?i.listenerCount(v):KC.call(i,v)};Lr.prototype.listenerCount=KC;function KC(i){var v=this._events;if(v!==void 0){var e=v[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}Lr.prototype.eventNames=function(){return this._eventsCount>0?ld(this._events):[]};function eA(i,v){for(var e=new Array(v),N=0;N<v;++N)e[N]=i[N];return e}function h1(i,v){for(;v+1<i.length;v++)i[v]=i[v+1];i.pop()}function d1(i){for(var v=new Array(i.length),e=0;e<v.length;++e)v[e]=i[e].listener||i[e];return v}function g1(i,v){return new Promise(function(e,N){function R(O){i.removeListener(v,w),N(O)}function w(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}rA(i,v,w,{once:!0}),v!=="error"&&E1(i,R,{once:!0})})}function E1(i,v,e){typeof i.on=="function"&&rA(i,"error",v,e)}function rA(i,v,e,N){if(typeof i.on=="function")N.once?i.once(v,e):i.on(v,e);else if(typeof i.addEventListener=="function")i.addEventListener(v,function R(w){N.once&&i.removeEventListener(v,R),e(w)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Ov=Nr((gA,EA)=>{(function(i){typeof gA=="object"&&typeof EA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function v(w,O,V,W){if(V&&V.call){var H=V;V=null}else var H=R(w,V,"rangeFinder");typeof O=="number"&&(O=i.Pos(O,0));var Z=R(w,V,"minFoldSize");function P(Y){var B=H(w,O);if(!B||B.to.line-B.from.line<Z)return null;if(W==="fold")return B;for(var D=w.findMarksAt(B.from),X=0;X<D.length;++X)if(D[X].__isFold){if(!Y)return null;B.cleared=!0,D[X].clear()}return B}var J=P(!0);if(R(w,V,"scanUp"))for(;!J&&O.line>w.firstLine();)O=i.Pos(O.line-1,0),J=P(!1);if(!(!J||J.cleared||W==="unfold")){var Q=e(w,V,J);i.on(Q,"mousedown",function(Y){ee.clear(),i.e_preventDefault(Y)});var ee=w.markText(J.from,J.to,{replacedWith:Q,clearOnEnter:R(w,V,"clearOnEnter"),__isFold:!0});ee.on("clear",function(Y,B){i.signal(w,"unfold",w,Y,B)}),i.signal(w,"fold",w,J.from,J.to)}}function e(w,O,V){var W=R(w,O,"widget");if(typeof W=="function"&&(W=W(V.from,V.to)),typeof W=="string"){var H=document.createTextNode(W);W=document.createElement("span"),W.appendChild(H),W.className="CodeMirror-foldmarker"}else W&&(W=W.cloneNode(!0));return W}i.newFoldFunction=function(w,O){return function(V,W){v(V,W,{rangeFinder:w,widget:O})}},i.defineExtension("foldCode",function(w,O,V){v(this,w,O,V)}),i.defineExtension("isFolded",function(w){for(var O=this.findMarksAt(w),V=0;V<O.length;++V)if(O[V].__isFold)return!0}),i.commands.toggleFold=function(w){w.foldCode(w.getCursor())},i.commands.fold=function(w){w.foldCode(w.getCursor(),null,"fold")},i.commands.unfold=function(w){w.foldCode(w.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(w){w.operation(function(){for(var O=w.firstLine(),V=w.lastLine();O<=V;O++)w.foldCode(i.Pos(O,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(w){w.operation(function(){for(var O=w.firstLine(),V=w.lastLine();O<=V;O++)w.foldCode(i.Pos(O,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var w=Array.prototype.slice.call(arguments,0);return function(O,V){for(var W=0;W<w.length;++W){var H=w[W](O,V);if(H)return H}}}),i.registerHelper("fold","auto",function(w,O){for(var V=w.getHelpers(O,"fold"),W=0;W<V.length;W++){var H=V[W](w,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(w,O,V){if(O&&O[V]!==void 0)return O[V];var W=w.options.foldOptions;return W&&W[V]!==void 0?W[V]:N[V]}i.defineExtension("foldOption",function(w,O){return R(this,w,O)})})});var xA=Nr((vA,mA)=>{(function(i){typeof vA=="object"&&typeof mA=="object"?i(si(),Ov()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(ee,Y,B){B&&B!=i.Init&&(ee.clearGutter(ee.state.foldGutter.options.gutter),ee.state.foldGutter=null,ee.off("gutterClick",H),ee.off("changes",P),ee.off("viewportChange",J),ee.off("fold",Q),ee.off("unfold",Q),ee.off("swapDoc",P),ee.off("optionChange",Z)),Y&&(ee.state.foldGutter=new e(N(Y)),W(ee),ee.on("gutterClick",H),ee.on("changes",P),ee.on("viewportChange",J),ee.on("fold",Q),ee.on("unfold",Q),ee.on("swapDoc",P),ee.on("optionChange",Z))});var v=i.Pos;function e(ee){this.options=ee,this.from=this.to=0}function N(ee){return ee===!0&&(ee={}),ee.gutter==null&&(ee.gutter="CodeMirror-foldgutter"),ee.indicatorOpen==null&&(ee.indicatorOpen="CodeMirror-foldgutter-open"),ee.indicatorFolded==null&&(ee.indicatorFolded="CodeMirror-foldgutter-folded"),ee}function R(ee,Y){for(var B=ee.findMarks(v(Y,0),v(Y+1,0)),D=0;D<B.length;++D)if(B[D].__isFold){var X=B[D].find(-1);if(X&&X.line===Y)return B[D]}}function w(ee){if(typeof ee=="string"){var Y=document.createElement("div");return Y.className=ee+" CodeMirror-guttermarker-subtle",Y}else return ee.cloneNode(!0)}function O(ee,Y,B){var D=ee.state.foldGutter.options,X=Y-1,z=ee.foldOption(D,"minFoldSize"),te=ee.foldOption(D,"rangeFinder"),ie=typeof D.indicatorFolded=="string"&&V(D.indicatorFolded),ue=typeof D.indicatorOpen=="string"&&V(D.indicatorOpen);ee.eachLine(Y,B,function(Ee){++X;var _e=null,we=Ee.gutterMarkers;if(we&&(we=we[D.gutter]),R(ee,X)){if(ie&&we&&ie.test(we.className))return;_e=w(D.indicatorFolded)}else{var We=v(X,0),Me=te&&te(ee,We);if(Me&&Me.to.line-Me.from.line>=z){if(ue&&we&&ue.test(we.className))return;_e=w(D.indicatorOpen)}}!_e&&!we||ee.setGutterMarker(Ee,D.gutter,_e)})}function V(ee){return new RegExp("(^|\\s)"+ee+"(?:$|\\s)\\s*")}function W(ee){var Y=ee.getViewport(),B=ee.state.foldGutter;B&&(ee.operation(function(){O(ee,Y.from,Y.to)}),B.from=Y.from,B.to=Y.to)}function H(ee,Y,B){var D=ee.state.foldGutter;if(D){var X=D.options;if(B==X.gutter){var z=R(ee,Y);z?z.clear():ee.foldCode(v(Y,0),X)}}}function Z(ee,Y){Y=="mode"&&P(ee)}function P(ee){var Y=ee.state.foldGutter;if(Y){var B=Y.options;Y.from=Y.to=0,clearTimeout(Y.changeUpdate),Y.changeUpdate=setTimeout(function(){W(ee)},B.foldOnChangeTimeSpan||600)}}function J(ee){var Y=ee.state.foldGutter;if(Y){var B=Y.options;clearTimeout(Y.changeUpdate),Y.changeUpdate=setTimeout(function(){var D=ee.getViewport();Y.from==Y.to||D.from-Y.to>20||Y.from-D.to>20?W(ee):ee.operation(function(){D.from<Y.from&&(O(ee,D.from,Y.from),Y.from=D.from),D.to>Y.to&&(O(ee,Y.to,D.to),Y.to=D.to)})},B.updateViewportTimeSpan||400)}}function Q(ee,Y){var B=ee.state.foldGutter;if(B){var D=Y.line;D>=B.from&&D<B.to&&O(ee,D,D+1)}}})});var IA=Nr((CA,AA)=>{(function(i){typeof CA=="object"&&typeof AA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v=i.Pos;function e(B,D){return B.line-D.line||B.ch-D.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",w=new RegExp("<(/?)(["+N+"]["+R+"]*)","g");function O(B,D,X,z){this.line=D,this.ch=X,this.cm=B,this.text=B.getLine(D),this.min=z?Math.max(z.from,B.firstLine()):B.firstLine(),this.max=z?Math.min(z.to-1,B.lastLine()):B.lastLine()}function V(B,D){var X=B.cm.getTokenTypeAt(v(B.line,D));return X&&/\btag\b/.test(X)}function W(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 Z(B){for(;;){var D=B.text.indexOf(">",B.ch);if(D==-1){if(W(B))continue;return}if(!V(B,D+1)){B.ch=D+1;continue}var X=B.text.lastIndexOf("/",D),z=X>-1&&!/\S/.test(B.text.slice(X+1,D));return B.ch=D+1,z?"selfClose":"regular"}}function P(B){for(;;){var D=B.ch?B.text.lastIndexOf("<",B.ch-1):-1;if(D==-1){if(H(B))continue;return}if(!V(B,D+1)){B.ch=D;continue}w.lastIndex=D,B.ch=D;var X=w.exec(B.text);if(X&&X.index==D)return X}}function J(B){for(;;){w.lastIndex=B.ch;var D=w.exec(B.text);if(!D){if(W(B))continue;return}if(!V(B,D.index+1)){B.ch=D.index+1;continue}return B.ch=D.index+D[0].length,D}}function Q(B){for(;;){var D=B.ch?B.text.lastIndexOf(">",B.ch-1):-1;if(D==-1){if(H(B))continue;return}if(!V(B,D+1)){B.ch=D;continue}var X=B.text.lastIndexOf("/",D),z=X>-1&&!/\S/.test(B.text.slice(X+1,D));return B.ch=D+1,z?"selfClose":"regular"}}function ee(B,D){for(var X=[];;){var z=J(B),te,ie=B.line,ue=B.ch-(z?z[0].length:0);if(!z||!(te=Z(B)))return;if(te!="selfClose")if(z[1]){for(var Ee=X.length-1;Ee>=0;--Ee)if(X[Ee]==z[2]){X.length=Ee;break}if(Ee<0&&(!D||D==z[2]))return{tag:z[2],from:v(ie,ue),to:v(B.line,B.ch)}}else X.push(z[2])}}function Y(B,D){for(var X=[];;){var z=Q(B);if(!z)return;if(z=="selfClose"){P(B);continue}var te=B.line,ie=B.ch,ue=P(B);if(!ue)return;if(ue[1])X.push(ue[2]);else{for(var Ee=X.length-1;Ee>=0;--Ee)if(X[Ee]==ue[2]){X.length=Ee;break}if(Ee<0&&(!D||D==ue[2]))return{tag:ue[2],from:v(B.line,B.ch),to:v(te,ie)}}}}i.registerHelper("fold","xml",function(B,D){for(var X=new O(B,D.line,0);;){var z=J(X);if(!z||X.line!=D.line)return;var te=Z(X);if(!te)return;if(!z[1]&&te!="selfClose"){var ie=v(X.line,X.ch),ue=ee(X,z[2]);return ue&&e(ue.from,ie)>0?{from:ie,to:ue.from}:null}}}),i.findMatchingTag=function(B,D,X){var z=new O(B,D.line,D.ch,X);if(!(z.text.indexOf(">")==-1&&z.text.indexOf("<")==-1)){var te=Z(z),ie=te&&v(z.line,z.ch),ue=te&&P(z);if(!(!te||!ue||e(z,D)>0)){var Ee={from:v(z.line,z.ch),to:ie,tag:ue[2]};return te=="selfClose"?{open:Ee,close:null,at:"open"}:ue[1]?{open:Y(z,ue[2]),close:Ee,at:"close"}:(z=new O(B,ie.line,ie.ch,X),{open:Ee,close:ee(z,ue[2]),at:"open"})}}},i.findEnclosingTag=function(B,D,X,z){for(var te=new O(B,D.line,D.ch,X);;){var ie=Y(te,z);if(!ie)break;var ue=new O(B,D.line,D.ch,X),Ee=ee(ue,ie.tag);if(Ee)return{open:ie,close:Ee}}},i.scanForClosingTag=function(B,D,X,z){var te=new O(B,D.line,D.ch,z?{from:0,to:z}:null);return ee(te,X)}})});var TA=Nr((NA,bA)=>{(function(i){typeof NA=="object"&&typeof bA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function v(e){return function(N,R){var w=R.line,O=N.getLine(w);function V(Q){for(var ee,Y=R.ch,B=0;;){var D=Y<=0?-1:O.lastIndexOf(Q[0],Y-1);if(D==-1){if(B==1)break;B=1,Y=O.length;continue}if(B==1&&D<R.ch)break;if(ee=N.getTokenTypeAt(i.Pos(w,D+1)),!/^(comment|string)/.test(ee))return{ch:D+1,tokenType:ee,pair:Q};Y=D-1}}function W(Q){var ee=1,Y=N.lastLine(),B,D=Q.ch,X;e:for(var z=w;z<=Y;++z)for(var te=N.getLine(z),ie=z==w?D:0;;){var ue=te.indexOf(Q.pair[0],ie),Ee=te.indexOf(Q.pair[1],ie);if(ue<0&&(ue=te.length),Ee<0&&(Ee=te.length),ie=Math.min(ue,Ee),ie==te.length)break;if(N.getTokenTypeAt(i.Pos(z,ie+1))==Q.tokenType){if(ie==ue)++ee;else if(!--ee){B=z,X=ie;break e}}++ie}return B==null||w==B?null:{from:i.Pos(w,D),to:i.Pos(B,X)}}for(var H=[],Z=0;Z<e.length;Z++){var P=V(e[Z]);P&&H.push(P)}H.sort(function(Q,ee){return Q.ch-ee.ch});for(var Z=0;Z<H.length;Z++){var J=W(H[Z]);if(J)return J}return null}}i.registerHelper("fold","brace",v([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",v([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,N){function R(Z){if(Z<e.firstLine()||Z>e.lastLine())return null;var P=e.getTokenAt(i.Pos(Z,1));if(/\S/.test(P.string)||(P=e.getTokenAt(i.Pos(Z,P.end+1))),P.type!="keyword"||P.string!="import")return null;for(var J=Z,Q=Math.min(e.lastLine(),Z+10);J<=Q;++J){var ee=e.getLine(J),Y=ee.indexOf(";");if(Y!=-1)return{startCh:P.end,end:i.Pos(J,Y)}}}var w=N.line,O=R(w),V;if(!O||R(w-1)||(V=R(w-2))&&V.end.line==w-1)return null;for(var W=O.end;;){var H=R(W.line+1);if(H==null)break;W=H.end}return{from:e.clipPos(i.Pos(w,O.startCh+1)),to:W}}),i.registerHelper("fold","include",function(e,N){function R(H){if(H<e.firstLine()||H>e.lastLine())return null;var Z=e.getTokenAt(i.Pos(H,1));if(/\S/.test(Z.string)||(Z=e.getTokenAt(i.Pos(H,Z.end+1))),Z.type=="meta"&&Z.string.slice(0,8)=="#include")return Z.start+8}var w=N.line,O=R(w);if(O==null||R(w-1)!=null)return null;for(var V=w;;){var W=R(V+1);if(W==null)break;++V}return{from:i.Pos(w,O+1),to:e.clipPos(i.Pos(V))}})})});var SA=Nr((RA,yA)=>{(function(i){typeof RA=="object"&&typeof yA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(Y,B,D){if(!B)return Y.showHint(D);D&&D.async&&(B.async=!0);var X={hint:B};if(D)for(var z in D)X[z]=D[z];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 D=0;D<B.length;D++)if(B[D].head.line!=B[D].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 D=this;Y.on("cursorActivity",this.activityFunc=function(){D.cursorActivity()})}}var R=window.requestAnimationFrame||function(Y){return setTimeout(Y,1e3/60)},w=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 D=Y.list[B],X=this;this.cm.operation(function(){D.hint?D.hint(X.cm,Y,D):X.cm.replaceRange(V(D),D.from||Y.from,D.to||Y.to,"complete"),i.signal(Y,"pick",D),X.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(w(this.debounce),this.debounce=0);var Y=this.startPos;this.data&&(Y=this.data.from);var B=this.cm.getCursor(),D=this.cm.getLine(B.line);if(B.line!=this.startPos.line||D.length-B.ch!=this.startLen-this.startPos.ch||B.ch<Y.ch||this.cm.somethingSelected()||!B.ch||this.options.closeCharacters.test(D.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,D=++this.tick;J(this.options.hint,this.cm,this.options,function(X){B.tick==D&&B.finishUpdate(X,Y)})}},finishUpdate:function(Y,B){this.data&&i.signal(this.data,"update");var D=this.widget&&this.widget.picked||B&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=Y,Y&&Y.list.length&&(D&&Y.list.length==1?this.pick(Y,0):(this.widget=new Z(this,Y),i.signal(Y,"shown")))}};function O(Y,B,D){var X=Y.options.hintOptions,z={};for(var te in ee)z[te]=ee[te];if(X)for(var te in X)X[te]!==void 0&&(z[te]=X[te]);if(D)for(var te in D)D[te]!==void 0&&(z[te]=D[te]);return z.hint.resolve&&(z.hint=z.hint.resolve(Y,B)),z}function V(Y){return typeof Y=="string"?Y:Y.text}function W(Y,B){var D={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&&(D["Ctrl-P"]=function(){B.moveFocus(-1)},D["Ctrl-N"]=function(){B.moveFocus(1)});var z=Y.options.customKeys,te=z?{}:D;function ie(_e,we){var We;typeof we!="string"?We=function(Me){return we(Me,B)}:D.hasOwnProperty(we)?We=D[we]:We=we,te[_e]=We}if(z)for(var ue in z)z.hasOwnProperty(ue)&&ie(ue,z[ue]);var Ee=Y.options.extraKeys;if(Ee)for(var ue in Ee)Ee.hasOwnProperty(ue)&&ie(ue,Ee[ue]);return te}function H(Y,B){for(;B&&B!=Y;){if(B.nodeName.toUpperCase()==="LI"&&B.parentNode==Y)return B;B=B.parentNode}}function Z(Y,B){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=Y,this.data=B,this.picked=!1;var D=this,X=Y.cm,z=X.getInputField().ownerDocument,te=z.defaultView||z.parentWindow,ie=this.hints=z.createElement("ul");ie.setAttribute("role","listbox"),ie.setAttribute("aria-expanded","true"),ie.id=this.id;var ue=Y.cm.options.theme;ie.className="CodeMirror-hints "+ue,this.selectedHint=B.selectedHint||0;for(var Ee=B.list,_e=0;_e<Ee.length;++_e){var we=ie.appendChild(z.createElement("li")),We=Ee[_e],Me=v+(_e!=this.selectedHint?"":" "+e);We.className!=null&&(Me=We.className+" "+Me),we.className=Me,_e==this.selectedHint&&we.setAttribute("aria-selected","true"),we.id=this.id+"-"+_e,we.setAttribute("role","option"),We.render?We.render(we,B,We):we.appendChild(z.createTextNode(We.displayText||V(We))),we.hintId=_e}var Ke=Y.options.container||z.body,ve=X.cursorCoords(Y.options.alignWithWord?B.from:null),xr=ve.left,Cr=ve.bottom,ur=!0,Jr=0,Je=0;if(Ke!==z.body){var yt=["absolute","relative","fixed"].indexOf(te.getComputedStyle(Ke).position)!==-1,St=yt?Ke:Ke.offsetParent,cr=St.getBoundingClientRect(),Lt=z.body.getBoundingClientRect();Jr=cr.left-Lt.left-St.scrollLeft,Je=cr.top-Lt.top-St.scrollTop}ie.style.left=xr-Jr+"px",ie.style.top=Cr-Je+"px";var or=te.innerWidth||Math.max(z.body.offsetWidth,z.documentElement.offsetWidth),at=te.innerHeight||Math.max(z.body.offsetHeight,z.documentElement.offsetHeight);Ke.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 ze=Y.options.moveOnOverlap?ie.getBoundingClientRect():new DOMRect,zr=Y.options.paddingForScrollbar?ie.scrollHeight>ie.clientHeight+1:!1,Ar;setTimeout(function(){Ar=X.getScrollInfo()});var Pr=ze.bottom-at;if(Pr>0){var hr=ze.bottom-ze.top,Kt=ze.top-(ve.bottom-ve.top)-2;at-ze.top<Kt?(hr>Kt&&(ie.style.height=(hr=Kt)+"px"),ie.style.top=(Cr=ve.top-hr)-Je+"px",ur=!1):ie.style.height=at-ze.top-2+"px"}var Oe=ze.right-or;if(zr&&(Oe+=X.display.nativeBarWidth),Oe>0&&(ze.right-ze.left>or&&(ie.style.width=or-5+"px",Oe-=ze.right-ze.left-or),ie.style.left=(xr=Math.max(ve.left-Oe-Jr,0))+"px"),zr)for(var pe=ie.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=X.display.nativeBarWidth+"px";if(X.addKeyMap(this.keyMap=W(Y,{moveFocus:function(ye,Or){D.changeActive(D.selectedHint+ye,Or)},setFocus:function(ye){D.changeActive(ye)},menuSize:function(){return D.screenAmount()},length:Ee.length,close:function(){Y.close()},pick:function(){D.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 ye=X.getScrollInfo(),Or=X.getWrapperElement().getBoundingClientRect();Ar||(Ar=X.getScrollInfo());var ei=Cr+Ar.top-ye.top,Ie=ei-(te.pageYOffset||(z.documentElement||z.body).scrollTop);if(ur||(Ie+=ie.offsetHeight),Ie<=Or.top||Ie>=Or.bottom)return Y.close();ie.style.top=ei+"px",ie.style.left=xr+Ar.left-ye.left+"px"}),i.on(ie,"dblclick",function(ye){var Or=H(ie,ye.target||ye.srcElement);Or&&Or.hintId!=null&&(D.changeActive(Or.hintId),D.pick())}),i.on(ie,"click",function(ye){var Or=H(ie,ye.target||ye.srcElement);Or&&Or.hintId!=null&&(D.changeActive(Or.hintId),Y.options.completeOnSingleClick&&D.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",Ee[this.selectedHint],ie.childNodes[this.selectedHint]),!0}Z.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 D=this.hints.childNodes[this.selectedHint];D&&(D.className=D.className.replace(" "+e,""),D.removeAttribute("aria-selected")),D=this.hints.childNodes[this.selectedHint=Y],D.className+=" "+e,D.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",D.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],D)}},scrollToActive:function(){var Y=this.getSelectedHintRange(),B=this.hints.childNodes[Y.from],D=this.hints.childNodes[Y.to],X=this.hints.firstChild;B.offsetTop<this.hints.scrollTop?this.hints.scrollTop=B.offsetTop-X.offsetTop:D.offsetTop+D.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=D.offsetTop+D.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 P(Y,B){if(!Y.somethingSelected())return B;for(var D=[],X=0;X<B.length;X++)B[X].supportsSelection&&D.push(B[X]);return D}function J(Y,B,D,X){if(Y.async)Y(B,X,D);else{var z=Y(B,D);z&&z.then?z.then(X):X(z)}}function Q(Y,B){var D=Y.getHelpers(B,"hint"),X;if(D.length){var z=function(te,ie,ue){var Ee=P(te,D);function _e(we){if(we==Ee.length)return ie(null);J(Ee[we],te,ue,function(We){We&&We.list.length>0?ie(We):_e(we+1)})}_e(0)};return z.async=!0,z.supportsSelection=!0,z}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:Q}),i.registerHelper("hint","fromList",function(Y,B){var D=Y.getCursor(),X=Y.getTokenAt(D),z,te=i.Pos(D.line,X.start),ie=D;X.start<D.ch&&/\w/.test(X.string.charAt(D.ch-X.start-1))?z=X.string.substr(0,D.ch-X.start):(z="",te=D);for(var ue=[],Ee=0;Ee<B.words.length;Ee++){var _e=B.words[Ee];_e.slice(0,z.length)==z&&ue.push(_e)}if(ue.length)return{list:ue,from:te,to:ie}}),i.commands.autocomplete=i.showHint;var ee={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 Uv=Nr((LA,wA)=>{(function(i){typeof LA=="object"&&typeof wA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v=i.Pos;function e(B){var D=B.flags;return D??(B.ignoreCase?"i":"")+(B.global?"g":"")+(B.multiline?"m":"")}function N(B,D){for(var X=e(B),z=X,te=0;te<D.length;te++)z.indexOf(D.charAt(te))==-1&&(z+=D.charAt(te));return X==z?B:new RegExp(B.source,z)}function R(B){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(B.source)}function w(B,D,X){D=N(D,"g");for(var z=X.line,te=X.ch,ie=B.lastLine();z<=ie;z++,te=0){D.lastIndex=te;var ue=B.getLine(z),Ee=D.exec(ue);if(Ee)return{from:v(z,Ee.index),to:v(z,Ee.index+Ee[0].length),match:Ee}}}function O(B,D,X){if(!R(D))return w(B,D,X);D=N(D,"gm");for(var z,te=1,ie=X.line,ue=B.lastLine();ie<=ue;){for(var Ee=0;Ee<te&&!(ie>ue);Ee++){var _e=B.getLine(ie++);z=z==null?_e:z+`
31
- `+_e}te=te*2,D.lastIndex=X.ch;var we=D.exec(z);if(we){var We=z.slice(0,we.index).split(`
30
+ `+G+"}":"{"+V.join(",")+"}",gap=G,y}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,v,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=v,v&&typeof v!="function"&&(typeof v!="object"||typeof v.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,v){var e,N,y=i[v];if(y&&typeof y=="object")for(e in y)Object.prototype.hasOwnProperty.call(y,e)&&(N=walk(y,e),N!==void 0?y[e]=N:delete y[e]);return reviver.call(i,v,y)}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 Qm=br((gL,km)=>{km.exports=wN;function wN(){return Zm(),{}}});var Hm=br((EL,_m)=>{var ON=mm(),UN=Pm(),GN=[Qm()];_m.exports=ON.createStore(UN,GN)});var $m=br((IL,Xm)=>{"use strict";Xm.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,v=>`%${v.charCodeAt(0).toString(16).toUpperCase()}`)});var Km=br((NL,qm)=>{"use strict";var jm="%[a-f0-9]{2}",Jm=new RegExp("("+jm+")|([^%]+?)","gi"),zm=new RegExp("("+jm+")+","gi");function fv(i,v){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;v=v||1;var e=i.slice(0,v),N=i.slice(v);return Array.prototype.concat.call([],fv(e),fv(N))}function BN(i){try{return decodeURIComponent(i)}catch{for(var v=i.match(Jm)||[],e=1;e<v.length;e++)i=fv(v,e).join(""),v=i.match(Jm)||[];return i}}function DN(i){for(var v={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=zm.exec(i);e;){try{v[e[0]]=decodeURIComponent(e[0])}catch{var N=BN(e[0]);N!==e[0]&&(v[e[0]]=N)}e=zm.exec(i)}v["%C2"]="\uFFFD";for(var y=Object.keys(v),w=0;w<y.length;w++){var G=y[w];i=i.replace(new RegExp(G,"g"),v[G])}return i}qm.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 DN(i)}}});var r0=br((bL,e0)=>{"use strict";e0.exports=(i,v)=>{if(!(typeof i=="string"&&typeof v=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(v==="")return[i];let e=i.indexOf(v);return e===-1?[i]:[i.slice(0,e),i.slice(e+v.length)]}});var i0=br((TL,t0)=>{"use strict";t0.exports=function(i,v){for(var e={},N=Object.keys(i),y=Array.isArray(v),w=0;w<N.length;w++){var G=N[w],V=i[G];(y?v.indexOf(G)!==-1:v(G,V,i))&&(e[G]=V)}return e}});var Bh=br(Li=>{"use strict";var VN=$m(),MN=Km(),n0=r0(),WN=i0(),PN=i=>i==null;function ZN(i){switch(i.arrayFormat){case"index":return v=>(e,N)=>{let y=e.length;return N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(v,i),"[",y,"]"].join("")]:[...e,[qt(v,i),"[",qt(y,i),"]=",qt(N,i)].join("")]};case"bracket":return v=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(v,i),"[]"].join("")]:[...e,[qt(v,i),"[]=",qt(N,i)].join("")];case"comma":case"separator":return v=>(e,N)=>N==null||N.length===0?e:e.length===0?[[qt(v,i),"=",qt(N,i)].join("")]:[[e,qt(N,i)].join(i.arrayFormatSeparator)];default:return v=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,qt(v,i)]:[...e,[qt(v,i),"=",qt(N,i)].join("")]}}function kN(i){let v;switch(i.arrayFormat){case"index":return(e,N,y)=>{if(v=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!v){y[e]=N;return}y[e]===void 0&&(y[e]={}),y[e][v[1]]=N};case"bracket":return(e,N,y)=>{if(v=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!v){y[e]=N;return}if(y[e]===void 0){y[e]=[N];return}y[e]=[].concat(y[e],N)};case"comma":case"separator":return(e,N,y)=>{let w=typeof N=="string"&&N.includes(i.arrayFormatSeparator),G=typeof N=="string"&&!w&&Ql(N,i).includes(i.arrayFormatSeparator);N=G?Ql(N,i):N;let V=w||G?N.split(i.arrayFormatSeparator).map(Z=>Ql(Z,i)):N===null?N:Ql(N,i);y[e]=V};default:return(e,N,y)=>{if(y[e]===void 0){y[e]=N;return}y[e]=[].concat(y[e],N)}}}function o0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qt(i,v){return v.encode?v.strict?VN(i):encodeURIComponent(i):i}function Ql(i,v){return v.decode?MN(i):i}function a0(i){return Array.isArray(i)?i.sort():typeof i=="object"?a0(Object.keys(i)).sort((v,e)=>Number(v)-Number(e)).map(v=>i[v]):i}function l0(i){let v=i.indexOf("#");return v!==-1&&(i=i.slice(0,v)),i}function QN(i){let v="",e=i.indexOf("#");return e!==-1&&(v=i.slice(e)),v}function u0(i){i=l0(i);let v=i.indexOf("?");return v===-1?"":i.slice(v+1)}function s0(i,v){return v.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):v.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function f0(i,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),o0(v.arrayFormatSeparator);let e=kN(v),N=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return N;for(let y of i.split("&")){if(y==="")continue;let[w,G]=n0(v.decode?y.replace(/\+/g," "):y,"=");G=G===void 0?null:["comma","separator"].includes(v.arrayFormat)?G:Ql(G,v),e(Ql(w,v),G,N)}for(let y of Object.keys(N)){let w=N[y];if(typeof w=="object"&&w!==null)for(let G of Object.keys(w))w[G]=s0(w[G],v);else N[y]=s0(w,v)}return v.sort===!1?N:(v.sort===!0?Object.keys(N).sort():Object.keys(N).sort(v.sort)).reduce((y,w)=>{let G=N[w];return G&&typeof G=="object"&&!Array.isArray(G)?y[w]=a0(G):y[w]=G,y},Object.create(null))}Li.extract=u0;Li.parse=f0;Li.stringify=(i,v)=>{if(!i)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),o0(v.arrayFormatSeparator);let e=G=>v.skipNull&&PN(i[G])||v.skipEmptyString&&i[G]==="",N=ZN(v),y={};for(let G of Object.keys(i))e(G)||(y[G]=i[G]);let w=Object.keys(y);return v.sort!==!1&&w.sort(v.sort),w.map(G=>{let V=i[G];return V===void 0?"":V===null?qt(G,v):Array.isArray(V)?V.reduce(N(G),[]).join("&"):qt(G,v)+"="+qt(V,v)}).filter(G=>G.length>0).join("&")};Li.parseUrl=(i,v)=>{v=Object.assign({decode:!0},v);let[e,N]=n0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:f0(u0(i),v)},v&&v.parseFragmentIdentifier&&N?{fragmentIdentifier:Ql(N,v)}:{})};Li.stringifyUrl=(i,v)=>{v=Object.assign({encode:!0,strict:!0},v);let e=l0(i.url).split("?")[0]||"",N=Li.extract(i.url),y=Li.parse(N,{sort:!1}),w=Object.assign(y,i.query),G=Li.stringify(w,v);G&&(G=`?${G}`);let V=QN(i.url);return i.fragmentIdentifier&&(V=`#${qt(i.fragmentIdentifier,v)}`),`${e}${G}${V}`};Li.pick=(i,v,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:N,query:y,fragmentIdentifier:w}=Li.parseUrl(i,e);return Li.stringifyUrl({url:N,query:WN(y,v),fragmentIdentifier:w},e)};Li.exclude=(i,v,e)=>{let N=Array.isArray(v)?y=>!v.includes(y):(y,w)=>!v(y,w);return Li.pick(i,N,e)}});var iA=br((EV,Sv)=>{"use strict";var Qf=typeof Reflect=="object"?Reflect:null,XC=Qf&&typeof Qf.apply=="function"?Qf.apply:function(v,e,N){return Function.prototype.apply.call(v,e,N)},ld;Qf&&typeof Qf.ownKeys=="function"?ld=Qf.ownKeys:Object.getOwnPropertySymbols?ld=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:ld=function(v){return Object.getOwnPropertyNames(v)};function p1(i){console&&console.warn&&console.warn(i)}var JC=Number.isNaN||function(v){return v!==v};function wr(){wr.init.call(this)}Sv.exports=wr;Sv.exports.once=g1;wr.EventEmitter=wr;wr.prototype._events=void 0;wr.prototype._eventsCount=0;wr.prototype._maxListeners=void 0;var $C=10;function ud(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 $C},set:function(i){if(typeof i!="number"||i<0||JC(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");$C=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(v){if(typeof v!="number"||v<0||JC(v))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+v+".");return this._maxListeners=v,this};function zC(i){return i._maxListeners===void 0?wr.defaultMaxListeners:i._maxListeners}wr.prototype.getMaxListeners=function(){return zC(this)};wr.prototype.emit=function(v){for(var e=[],N=1;N<arguments.length;N++)e.push(arguments[N]);var y=v==="error",w=this._events;if(w!==void 0)y=y&&w.error===void 0;else if(!y)return!1;if(y){var G;if(e.length>0&&(G=e[0]),G instanceof Error)throw G;var V=new Error("Unhandled error."+(G?" ("+G.message+")":""));throw V.context=G,V}var Z=w[v];if(Z===void 0)return!1;if(typeof Z=="function")XC(Z,this,e);else for(var H=Z.length,_=rA(Z,H),N=0;N<H;++N)XC(_[N],this,e);return!0};function jC(i,v,e,N){var y,w,G;if(ud(e),w=i._events,w===void 0?(w=i._events=Object.create(null),i._eventsCount=0):(w.newListener!==void 0&&(i.emit("newListener",v,e.listener?e.listener:e),w=i._events),G=w[v]),G===void 0)G=w[v]=e,++i._eventsCount;else if(typeof G=="function"?G=w[v]=N?[e,G]:[G,e]:N?G.unshift(e):G.push(e),y=zC(i),y>0&&G.length>y&&!G.warned){G.warned=!0;var V=new Error("Possible EventEmitter memory leak detected. "+G.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");V.name="MaxListenersExceededWarning",V.emitter=i,V.type=v,V.count=G.length,p1(V)}return i}wr.prototype.addListener=function(v,e){return jC(this,v,e,!1)};wr.prototype.on=wr.prototype.addListener;wr.prototype.prependListener=function(v,e){return jC(this,v,e,!0)};function c1(){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 qC(i,v,e){var N={fired:!1,wrapFn:void 0,target:i,type:v,listener:e},y=c1.bind(N);return y.listener=e,N.wrapFn=y,y}wr.prototype.once=function(v,e){return ud(e),this.on(v,qC(this,v,e)),this};wr.prototype.prependOnceListener=function(v,e){return ud(e),this.prependListener(v,qC(this,v,e)),this};wr.prototype.removeListener=function(v,e){var N,y,w,G,V;if(ud(e),y=this._events,y===void 0)return this;if(N=y[v],N===void 0)return this;if(N===e||N.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete y[v],y.removeListener&&this.emit("removeListener",v,N.listener||e));else if(typeof N!="function"){for(w=-1,G=N.length-1;G>=0;G--)if(N[G]===e||N[G].listener===e){V=N[G].listener,w=G;break}if(w<0)return this;w===0?N.shift():h1(N,w),N.length===1&&(y[v]=N[0]),y.removeListener!==void 0&&this.emit("removeListener",v,V||e)}return this};wr.prototype.off=wr.prototype.removeListener;wr.prototype.removeAllListeners=function(v){var e,N,y;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[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[v]),this;if(arguments.length===0){var w=Object.keys(N),G;for(y=0;y<w.length;++y)G=w[y],G!=="removeListener"&&this.removeAllListeners(G);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=N[v],typeof e=="function")this.removeListener(v,e);else if(e!==void 0)for(y=e.length-1;y>=0;y--)this.removeListener(v,e[y]);return this};function KC(i,v,e){var N=i._events;if(N===void 0)return[];var y=N[v];return y===void 0?[]:typeof y=="function"?e?[y.listener||y]:[y]:e?d1(y):rA(y,y.length)}wr.prototype.listeners=function(v){return KC(this,v,!0)};wr.prototype.rawListeners=function(v){return KC(this,v,!1)};wr.listenerCount=function(i,v){return typeof i.listenerCount=="function"?i.listenerCount(v):eA.call(i,v)};wr.prototype.listenerCount=eA;function eA(i){var v=this._events;if(v!==void 0){var e=v[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}wr.prototype.eventNames=function(){return this._eventsCount>0?ld(this._events):[]};function rA(i,v){for(var e=new Array(v),N=0;N<v;++N)e[N]=i[N];return e}function h1(i,v){for(;v+1<i.length;v++)i[v]=i[v+1];i.pop()}function d1(i){for(var v=new Array(i.length),e=0;e<v.length;++e)v[e]=i[e].listener||i[e];return v}function g1(i,v){return new Promise(function(e,N){function y(G){i.removeListener(v,w),N(G)}function w(){typeof i.removeListener=="function"&&i.removeListener("error",y),e([].slice.call(arguments))}tA(i,v,w,{once:!0}),v!=="error"&&E1(i,y,{once:!0})})}function E1(i,v,e){typeof i.on=="function"&&tA(i,"error",v,e)}function tA(i,v,e,N){if(typeof i.on=="function")N.once?i.once(v,e):i.on(v,e);else if(typeof i.addEventListener=="function")i.addEventListener(v,function y(w){N.once&&i.removeEventListener(v,y),e(w)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Uv=br((EA,vA)=>{(function(i){typeof EA=="object"&&typeof vA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function v(w,G,V,Z){if(V&&V.call){var H=V;V=null}else var H=y(w,V,"rangeFinder");typeof G=="number"&&(G=i.Pos(G,0));var _=y(w,V,"minFoldSize");function W($){var B=H(w,G);if(!B||B.to.line-B.from.line<_)return null;if(Z==="fold")return B;for(var D=w.findMarksAt(B.from),Y=0;Y<D.length;++Y)if(D[Y].__isFold){if(!$)return null;B.cleared=!0,D[Y].clear()}return B}var J=W(!0);if(y(w,V,"scanUp"))for(;!J&&G.line>w.firstLine();)G=i.Pos(G.line-1,0),J=W(!1);if(!(!J||J.cleared||Z==="unfold")){var M=e(w,V,J);i.on(M,"mousedown",function($){z.clear(),i.e_preventDefault($)});var z=w.markText(J.from,J.to,{replacedWith:M,clearOnEnter:y(w,V,"clearOnEnter"),__isFold:!0});z.on("clear",function($,B){i.signal(w,"unfold",w,$,B)}),i.signal(w,"fold",w,J.from,J.to)}}function e(w,G,V){var Z=y(w,G,"widget");if(typeof Z=="function"&&(Z=Z(V.from,V.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(w,G){return function(V,Z){v(V,Z,{rangeFinder:w,widget:G})}},i.defineExtension("foldCode",function(w,G,V){v(this,w,G,V)}),i.defineExtension("isFolded",function(w){for(var G=this.findMarksAt(w),V=0;V<G.length;++V)if(G[V].__isFold)return!0}),i.commands.toggleFold=function(w){w.foldCode(w.getCursor())},i.commands.fold=function(w){w.foldCode(w.getCursor(),null,"fold")},i.commands.unfold=function(w){w.foldCode(w.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(w){w.operation(function(){for(var G=w.firstLine(),V=w.lastLine();G<=V;G++)w.foldCode(i.Pos(G,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(w){w.operation(function(){for(var G=w.firstLine(),V=w.lastLine();G<=V;G++)w.foldCode(i.Pos(G,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var w=Array.prototype.slice.call(arguments,0);return function(G,V){for(var Z=0;Z<w.length;++Z){var H=w[Z](G,V);if(H)return H}}}),i.registerHelper("fold","auto",function(w,G){for(var V=w.getHelpers(G,"fold"),Z=0;Z<V.length;Z++){var H=V[Z](w,G);if(H)return H}});var N={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function y(w,G,V){if(G&&G[V]!==void 0)return G[V];var Z=w.options.foldOptions;return Z&&Z[V]!==void 0?Z[V]:N[V]}i.defineExtension("foldOption",function(w,G){return y(this,w,G)})})});var CA=br((mA,xA)=>{(function(i){typeof mA=="object"&&typeof xA=="object"?i(si(),Uv()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(z,$,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",J),z.off("fold",M),z.off("unfold",M),z.off("swapDoc",W),z.off("optionChange",_)),$&&(z.state.foldGutter=new e(N($)),Z(z),z.on("gutterClick",H),z.on("changes",W),z.on("viewportChange",J),z.on("fold",M),z.on("unfold",M),z.on("swapDoc",W),z.on("optionChange",_))});var v=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 y(z,$){for(var B=z.findMarks(v($,0),v($+1,0)),D=0;D<B.length;++D)if(B[D].__isFold){var Y=B[D].find(-1);if(Y&&Y.line===$)return B[D]}}function w(z){if(typeof z=="string"){var $=document.createElement("div");return $.className=z+" CodeMirror-guttermarker-subtle",$}else return z.cloneNode(!0)}function G(z,$,B){var D=z.state.foldGutter.options,Y=$-1,q=z.foldOption(D,"minFoldSize"),te=z.foldOption(D,"rangeFinder"),ie=typeof D.indicatorFolded=="string"&&V(D.indicatorFolded),le=typeof D.indicatorOpen=="string"&&V(D.indicatorOpen);z.eachLine($,B,function(Ee){++Y;var ke=null,we=Ee.gutterMarkers;if(we&&(we=we[D.gutter]),y(z,Y)){if(ie&&we&&ie.test(we.className))return;ke=w(D.indicatorFolded)}else{var Pe=v(Y,0),Me=te&&te(z,Pe);if(Me&&Me.to.line-Me.from.line>=q){if(le&&we&&le.test(we.className))return;ke=w(D.indicatorOpen)}}!ke&&!we||z.setGutterMarker(Ee,D.gutter,ke)})}function V(z){return new RegExp("(^|\\s)"+z+"(?:$|\\s)\\s*")}function Z(z){var $=z.getViewport(),B=z.state.foldGutter;B&&(z.operation(function(){G(z,$.from,$.to)}),B.from=$.from,B.to=$.to)}function H(z,$,B){var D=z.state.foldGutter;if(D){var Y=D.options;if(B==Y.gutter){var q=y(z,$);q?q.clear():z.foldCode(v($,0),Y)}}}function _(z,$){$=="mode"&&W(z)}function W(z){var $=z.state.foldGutter;if($){var B=$.options;$.from=$.to=0,clearTimeout($.changeUpdate),$.changeUpdate=setTimeout(function(){Z(z)},B.foldOnChangeTimeSpan||600)}}function J(z){var $=z.state.foldGutter;if($){var B=$.options;clearTimeout($.changeUpdate),$.changeUpdate=setTimeout(function(){var D=z.getViewport();$.from==$.to||D.from-$.to>20||$.from-D.to>20?Z(z):z.operation(function(){D.from<$.from&&(G(z,D.from,$.from),$.from=D.from),D.to>$.to&&(G(z,$.to,D.to),$.to=D.to)})},B.updateViewportTimeSpan||400)}}function M(z,$){var B=z.state.foldGutter;if(B){var D=$.line;D>=B.from&&D<B.to&&G(z,D,D+1)}}})});var NA=br((AA,IA)=>{(function(i){typeof AA=="object"&&typeof IA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v=i.Pos;function e(B,D){return B.line-D.line||B.ch-D.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",y=N+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+N+"]["+y+"]*)","g");function G(B,D,Y,q){this.line=D,this.ch=Y,this.cm=B,this.text=B.getLine(D),this.min=q?Math.max(q.from,B.firstLine()):B.firstLine(),this.max=q?Math.min(q.to-1,B.lastLine()):B.lastLine()}function V(B,D){var Y=B.cm.getTokenTypeAt(v(B.line,D));return Y&&/\btag\b/.test(Y)}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 _(B){for(;;){var D=B.text.indexOf(">",B.ch);if(D==-1){if(Z(B))continue;return}if(!V(B,D+1)){B.ch=D+1;continue}var Y=B.text.lastIndexOf("/",D),q=Y>-1&&!/\S/.test(B.text.slice(Y+1,D));return B.ch=D+1,q?"selfClose":"regular"}}function W(B){for(;;){var D=B.ch?B.text.lastIndexOf("<",B.ch-1):-1;if(D==-1){if(H(B))continue;return}if(!V(B,D+1)){B.ch=D;continue}w.lastIndex=D,B.ch=D;var Y=w.exec(B.text);if(Y&&Y.index==D)return Y}}function J(B){for(;;){w.lastIndex=B.ch;var D=w.exec(B.text);if(!D){if(Z(B))continue;return}if(!V(B,D.index+1)){B.ch=D.index+1;continue}return B.ch=D.index+D[0].length,D}}function M(B){for(;;){var D=B.ch?B.text.lastIndexOf(">",B.ch-1):-1;if(D==-1){if(H(B))continue;return}if(!V(B,D+1)){B.ch=D;continue}var Y=B.text.lastIndexOf("/",D),q=Y>-1&&!/\S/.test(B.text.slice(Y+1,D));return B.ch=D+1,q?"selfClose":"regular"}}function z(B,D){for(var Y=[];;){var q=J(B),te,ie=B.line,le=B.ch-(q?q[0].length:0);if(!q||!(te=_(B)))return;if(te!="selfClose")if(q[1]){for(var Ee=Y.length-1;Ee>=0;--Ee)if(Y[Ee]==q[2]){Y.length=Ee;break}if(Ee<0&&(!D||D==q[2]))return{tag:q[2],from:v(ie,le),to:v(B.line,B.ch)}}else Y.push(q[2])}}function $(B,D){for(var Y=[];;){var q=M(B);if(!q)return;if(q=="selfClose"){W(B);continue}var te=B.line,ie=B.ch,le=W(B);if(!le)return;if(le[1])Y.push(le[2]);else{for(var Ee=Y.length-1;Ee>=0;--Ee)if(Y[Ee]==le[2]){Y.length=Ee;break}if(Ee<0&&(!D||D==le[2]))return{tag:le[2],from:v(B.line,B.ch),to:v(te,ie)}}}}i.registerHelper("fold","xml",function(B,D){for(var Y=new G(B,D.line,0);;){var q=J(Y);if(!q||Y.line!=D.line)return;var te=_(Y);if(!te)return;if(!q[1]&&te!="selfClose"){var ie=v(Y.line,Y.ch),le=z(Y,q[2]);return le&&e(le.from,ie)>0?{from:ie,to:le.from}:null}}}),i.findMatchingTag=function(B,D,Y){var q=new G(B,D.line,D.ch,Y);if(!(q.text.indexOf(">")==-1&&q.text.indexOf("<")==-1)){var te=_(q),ie=te&&v(q.line,q.ch),le=te&&W(q);if(!(!te||!le||e(q,D)>0)){var Ee={from:v(q.line,q.ch),to:ie,tag:le[2]};return te=="selfClose"?{open:Ee,close:null,at:"open"}:le[1]?{open:$(q,le[2]),close:Ee,at:"close"}:(q=new G(B,ie.line,ie.ch,Y),{open:Ee,close:z(q,le[2]),at:"open"})}}},i.findEnclosingTag=function(B,D,Y,q){for(var te=new G(B,D.line,D.ch,Y);;){var ie=$(te,q);if(!ie)break;var le=new G(B,D.line,D.ch,Y),Ee=z(le,ie.tag);if(Ee)return{open:ie,close:Ee}}},i.scanForClosingTag=function(B,D,Y,q){var te=new G(B,D.line,D.ch,q?{from:0,to:q}:null);return z(te,Y)}})});var yA=br((bA,TA)=>{(function(i){typeof bA=="object"&&typeof TA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function v(e){return function(N,y){var w=y.line,G=N.getLine(w);function V(M){for(var z,$=y.ch,B=0;;){var D=$<=0?-1:G.lastIndexOf(M[0],$-1);if(D==-1){if(B==1)break;B=1,$=G.length;continue}if(B==1&&D<y.ch)break;if(z=N.getTokenTypeAt(i.Pos(w,D+1)),!/^(comment|string)/.test(z))return{ch:D+1,tokenType:z,pair:M};$=D-1}}function Z(M){var z=1,$=N.lastLine(),B,D=M.ch,Y;e:for(var q=w;q<=$;++q)for(var te=N.getLine(q),ie=q==w?D:0;;){var le=te.indexOf(M.pair[0],ie),Ee=te.indexOf(M.pair[1],ie);if(le<0&&(le=te.length),Ee<0&&(Ee=te.length),ie=Math.min(le,Ee),ie==te.length)break;if(N.getTokenTypeAt(i.Pos(q,ie+1))==M.tokenType){if(ie==le)++z;else if(!--z){B=q,Y=ie;break e}}++ie}return B==null||w==B?null:{from:i.Pos(w,D),to:i.Pos(B,Y)}}for(var H=[],_=0;_<e.length;_++){var W=V(e[_]);W&&H.push(W)}H.sort(function(M,z){return M.ch-z.ch});for(var _=0;_<H.length;_++){var J=Z(H[_]);if(J)return J}return null}}i.registerHelper("fold","brace",v([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",v([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,N){function y(_){if(_<e.firstLine()||_>e.lastLine())return null;var W=e.getTokenAt(i.Pos(_,1));if(/\S/.test(W.string)||(W=e.getTokenAt(i.Pos(_,W.end+1))),W.type!="keyword"||W.string!="import")return null;for(var J=_,M=Math.min(e.lastLine(),_+10);J<=M;++J){var z=e.getLine(J),$=z.indexOf(";");if($!=-1)return{startCh:W.end,end:i.Pos(J,$)}}}var w=N.line,G=y(w),V;if(!G||y(w-1)||(V=y(w-2))&&V.end.line==w-1)return null;for(var Z=G.end;;){var H=y(Z.line+1);if(H==null)break;Z=H.end}return{from:e.clipPos(i.Pos(w,G.startCh+1)),to:Z}}),i.registerHelper("fold","include",function(e,N){function y(H){if(H<e.firstLine()||H>e.lastLine())return null;var _=e.getTokenAt(i.Pos(H,1));if(/\S/.test(_.string)||(_=e.getTokenAt(i.Pos(H,_.end+1))),_.type=="meta"&&_.string.slice(0,8)=="#include")return _.start+8}var w=N.line,G=y(w);if(G==null||y(w-1)!=null)return null;for(var V=w;;){var Z=y(V+1);if(Z==null)break;++V}return{from:i.Pos(w,G+1),to:e.clipPos(i.Pos(V))}})})});var LA=br((RA,SA)=>{(function(i){typeof RA=="object"&&typeof SA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function($,B,D){if(!B)return $.showHint(D);D&&D.async&&(B.async=!0);var Y={hint:B};if(D)for(var q in D)Y[q]=D[q];return $.showHint(Y)},i.defineExtension("showHint",function($){$=G(this,this.getCursor("start"),$);var B=this.listSelections();if(!(B.length>1)){if(this.somethingSelected()){if(!$.hint.supportsSelection)return;for(var D=0;D<B.length;D++)if(B[D].head.line!=B[D].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var Y=this.state.completionActive=new N(this,$);Y.options.hint&&(i.signal(this,"startCompletion",this),Y.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function N($,B){if(this.cm=$,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 D=this;$.on("cursorActivity",this.activityFunc=function(){D.cursorActivity()})}}var y=window.requestAnimationFrame||function($){return setTimeout($,1e3/60)},w=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($,B){var D=$.list[B],Y=this;this.cm.operation(function(){D.hint?D.hint(Y.cm,$,D):Y.cm.replaceRange(V(D),D.from||$.from,D.to||$.to,"complete"),i.signal($,"pick",D),Y.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(w(this.debounce),this.debounce=0);var $=this.startPos;this.data&&($=this.data.from);var B=this.cm.getCursor(),D=this.cm.getLine(B.line);if(B.line!=this.startPos.line||D.length-B.ch!=this.startLen-this.startPos.ch||B.ch<$.ch||this.cm.somethingSelected()||!B.ch||this.options.closeCharacters.test(D.charAt(B.ch-1)))this.close();else{var Y=this;this.debounce=y(function(){Y.update()}),this.widget&&this.widget.disable()}},update:function($){if(this.tick!=null){var B=this,D=++this.tick;J(this.options.hint,this.cm,this.options,function(Y){B.tick==D&&B.finishUpdate(Y,$)})}},finishUpdate:function($,B){this.data&&i.signal(this.data,"update");var D=this.widget&&this.widget.picked||B&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=$,$&&$.list.length&&(D&&$.list.length==1?this.pick($,0):(this.widget=new _(this,$),i.signal($,"shown")))}};function G($,B,D){var Y=$.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(D)for(var te in D)D[te]!==void 0&&(q[te]=D[te]);return q.hint.resolve&&(q.hint=q.hint.resolve($,B)),q}function V($){return typeof $=="string"?$:$.text}function Z($,B){var D={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&&(D["Ctrl-P"]=function(){B.moveFocus(-1)},D["Ctrl-N"]=function(){B.moveFocus(1)});var q=$.options.customKeys,te=q?{}:D;function ie(ke,we){var Pe;typeof we!="string"?Pe=function(Me){return we(Me,B)}:D.hasOwnProperty(we)?Pe=D[we]:Pe=we,te[ke]=Pe}if(q)for(var le in q)q.hasOwnProperty(le)&&ie(le,q[le]);var Ee=$.options.extraKeys;if(Ee)for(var le in Ee)Ee.hasOwnProperty(le)&&ie(le,Ee[le]);return te}function H($,B){for(;B&&B!=$;){if(B.nodeName.toUpperCase()==="LI"&&B.parentNode==$)return B;B=B.parentNode}}function _($,B){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=$,this.data=B,this.picked=!1;var D=this,Y=$.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 le=$.cm.options.theme;ie.className="CodeMirror-hints "+le,this.selectedHint=B.selectedHint||0;for(var Ee=B.list,ke=0;ke<Ee.length;++ke){var we=ie.appendChild(q.createElement("li")),Pe=Ee[ke],Me=v+(ke!=this.selectedHint?"":" "+e);Pe.className!=null&&(Me=Pe.className+" "+Me),we.className=Me,ke==this.selectedHint&&we.setAttribute("aria-selected","true"),we.id=this.id+"-"+ke,we.setAttribute("role","option"),Pe.render?Pe.render(we,B,Pe):we.appendChild(q.createTextNode(Pe.displayText||V(Pe))),we.hintId=ke}var Ke=$.options.container||q.body,ve=Y.cursorCoords($.options.alignWithWord?B.from:null),xr=ve.left,Cr=ve.bottom,ur=!0,Jr=0,Je=0;if(Ke!==q.body){var St=["absolute","relative","fixed"].indexOf(te.getComputedStyle(Ke).position)!==-1,Lt=St?Ke:Ke.offsetParent,cr=Lt.getBoundingClientRect(),wt=q.body.getBoundingClientRect();Jr=cr.left-wt.left-Lt.scrollLeft,Je=cr.top-wt.top-Lt.scrollTop}ie.style.left=xr-Jr+"px",ie.style.top=Cr-Je+"px";var or=te.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),ut=te.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);Ke.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 ze=$.options.moveOnOverlap?ie.getBoundingClientRect():new DOMRect,zr=$.options.paddingForScrollbar?ie.scrollHeight>ie.clientHeight+1:!1,Ar;setTimeout(function(){Ar=Y.getScrollInfo()});var Zr=ze.bottom-ut;if(Zr>0){var hr=ze.bottom-ze.top,Kt=ze.top-(ve.bottom-ve.top)-2;ut-ze.top<Kt?(hr>Kt&&(ie.style.height=(hr=Kt)+"px"),ie.style.top=(Cr=ve.top-hr)-Je+"px",ur=!1):ie.style.height=ut-ze.top-2+"px"}var Oe=ze.right-or;if(zr&&(Oe+=Y.display.nativeBarWidth),Oe>0&&(ze.right-ze.left>or&&(ie.style.width=or-5+"px",Oe-=ze.right-ze.left-or),ie.style.left=(xr=Math.max(ve.left-Oe-Jr,0))+"px"),zr)for(var pe=ie.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=Y.display.nativeBarWidth+"px";if(Y.addKeyMap(this.keyMap=Z($,{moveFocus:function(Re,Ur){D.changeActive(D.selectedHint+Re,Ur)},setFocus:function(Re){D.changeActive(Re)},menuSize:function(){return D.screenAmount()},length:Ee.length,close:function(){$.close()},pick:function(){D.pick()},data:B})),$.options.closeOnUnfocus){var Er;Y.on("blur",this.onBlur=function(){Er=setTimeout(function(){$.close()},100)}),Y.on("focus",this.onFocus=function(){clearTimeout(Er)})}Y.on("scroll",this.onScroll=function(){var Re=Y.getScrollInfo(),Ur=Y.getWrapperElement().getBoundingClientRect();Ar||(Ar=Y.getScrollInfo());var ei=Cr+Ar.top-Re.top,Ie=ei-(te.pageYOffset||(q.documentElement||q.body).scrollTop);if(ur||(Ie+=ie.offsetHeight),Ie<=Ur.top||Ie>=Ur.bottom)return $.close();ie.style.top=ei+"px",ie.style.left=xr+Ar.left-Re.left+"px"}),i.on(ie,"dblclick",function(Re){var Ur=H(ie,Re.target||Re.srcElement);Ur&&Ur.hintId!=null&&(D.changeActive(Ur.hintId),D.pick())}),i.on(ie,"click",function(Re){var Ur=H(ie,Re.target||Re.srcElement);Ur&&Ur.hintId!=null&&(D.changeActive(Ur.hintId),$.options.completeOnSingleClick&&D.pick())}),i.on(ie,"mousedown",function(){setTimeout(function(){Y.focus()},20)});var fr=this.getSelectedHintRange();return(fr.from!==0||fr.to!==0)&&this.scrollToActive(),i.signal(B,"select",Ee[this.selectedHint],ie.childNodes[this.selectedHint]),!0}_.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 $=this.completion.cm.getInputField();$.removeAttribute("aria-activedescendant"),$.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 $=this;this.keyMap={Enter:function(){$.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function($,B){if($>=this.data.list.length?$=B?this.data.list.length-1:0:$<0&&($=B?0:this.data.list.length-1),this.selectedHint!=$){var D=this.hints.childNodes[this.selectedHint];D&&(D.className=D.className.replace(" "+e,""),D.removeAttribute("aria-selected")),D=this.hints.childNodes[this.selectedHint=$],D.className+=" "+e,D.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",D.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],D)}},scrollToActive:function(){var $=this.getSelectedHintRange(),B=this.hints.childNodes[$.from],D=this.hints.childNodes[$.to],Y=this.hints.firstChild;B.offsetTop<this.hints.scrollTop?this.hints.scrollTop=B.offsetTop-Y.offsetTop:D.offsetTop+D.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=D.offsetTop+D.offsetHeight-this.hints.clientHeight+Y.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var $=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-$),to:Math.min(this.data.list.length-1,this.selectedHint+$)}}};function W($,B){if(!$.somethingSelected())return B;for(var D=[],Y=0;Y<B.length;Y++)B[Y].supportsSelection&&D.push(B[Y]);return D}function J($,B,D,Y){if($.async)$(B,Y,D);else{var q=$(B,D);q&&q.then?q.then(Y):Y(q)}}function M($,B){var D=$.getHelpers(B,"hint"),Y;if(D.length){var q=function(te,ie,le){var Ee=W(te,D);function ke(we){if(we==Ee.length)return ie(null);J(Ee[we],te,le,function(Pe){Pe&&Pe.list.length>0?ie(Pe):ke(we+1)})}ke(0)};return q.async=!0,q.supportsSelection=!0,q}else return(Y=$.getHelper($.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($,B){var D=$.getCursor(),Y=$.getTokenAt(D),q,te=i.Pos(D.line,Y.start),ie=D;Y.start<D.ch&&/\w/.test(Y.string.charAt(D.ch-Y.start-1))?q=Y.string.substr(0,D.ch-Y.start):(q="",te=D);for(var le=[],Ee=0;Ee<B.words.length;Ee++){var ke=B.words[Ee];ke.slice(0,q.length)==q&&le.push(ke)}if(le.length)return{list:le,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 Gv=br((wA,OA)=>{(function(i){typeof wA=="object"&&typeof OA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v=i.Pos;function e(B){var D=B.flags;return D??(B.ignoreCase?"i":"")+(B.global?"g":"")+(B.multiline?"m":"")}function N(B,D){for(var Y=e(B),q=Y,te=0;te<D.length;te++)q.indexOf(D.charAt(te))==-1&&(q+=D.charAt(te));return Y==q?B:new RegExp(B.source,q)}function y(B){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(B.source)}function w(B,D,Y){D=N(D,"g");for(var q=Y.line,te=Y.ch,ie=B.lastLine();q<=ie;q++,te=0){D.lastIndex=te;var le=B.getLine(q),Ee=D.exec(le);if(Ee)return{from:v(q,Ee.index),to:v(q,Ee.index+Ee[0].length),match:Ee}}}function G(B,D,Y){if(!y(D))return w(B,D,Y);D=N(D,"gm");for(var q,te=1,ie=Y.line,le=B.lastLine();ie<=le;){for(var Ee=0;Ee<te&&!(ie>le);Ee++){var ke=B.getLine(ie++);q=q==null?ke:q+`
31
+ `+ke}te=te*2,D.lastIndex=Y.ch;var we=D.exec(q);if(we){var Pe=q.slice(0,we.index).split(`
32
32
  `),Me=we[0].split(`
33
- `),Ke=X.line+We.length-1,ve=We[We.length-1].length;return{from:v(Ke,ve),to:v(Ke+Me.length-1,Me.length==1?ve+Me[0].length:Me[Me.length-1].length),match:we}}}}function V(B,D,X){for(var z,te=0;te<=B.length;){D.lastIndex=te;var ie=D.exec(B);if(!ie)break;var ue=ie.index+ie[0].length;if(ue>B.length-X)break;(!z||ue>z.index+z[0].length)&&(z=ie),te=ie.index+1}return z}function W(B,D,X){D=N(D,"g");for(var z=X.line,te=X.ch,ie=B.firstLine();z>=ie;z--,te=-1){var ue=B.getLine(z),Ee=V(ue,D,te<0?0:ue.length-te);if(Ee)return{from:v(z,Ee.index),to:v(z,Ee.index+Ee[0].length),match:Ee}}}function H(B,D,X){if(!R(D))return W(B,D,X);D=N(D,"gm");for(var z,te=1,ie=B.getLine(X.line).length-X.ch,ue=X.line,Ee=B.firstLine();ue>=Ee;){for(var _e=0;_e<te&&ue>=Ee;_e++){var we=B.getLine(ue--);z=z==null?we:we+`
34
- `+z}te*=2;var We=V(z,D,ie);if(We){var Me=z.slice(0,We.index).split(`
35
- `),Ke=We[0].split(`
36
- `),ve=ue+Me.length,xr=Me[Me.length-1].length;return{from:v(ve,xr),to:v(ve+Ke.length-1,Ke.length==1?xr+Ke[0].length:Ke[Ke.length-1].length),match:We}}}}var Z,P;String.prototype.normalize?(Z=function(B){return B.normalize("NFD").toLowerCase()},P=function(B){return B.normalize("NFD")}):(Z=function(B){return B.toLowerCase()},P=function(B){return B});function J(B,D,X,z){if(B.length==D.length)return X;for(var te=0,ie=X+Math.max(0,B.length-D.length);;){if(te==ie)return te;var ue=te+ie>>1,Ee=z(B.slice(0,ue)).length;if(Ee==X)return ue;Ee>X?ie=ue:te=ue+1}}function Q(B,D,X,z){if(!D.length)return null;var te=z?Z:P,ie=te(D).split(/\r|\n\r?/);e:for(var ue=X.line,Ee=X.ch,_e=B.lastLine()+1-ie.length;ue<=_e;ue++,Ee=0){var we=B.getLine(ue).slice(Ee),We=te(we);if(ie.length==1){var Me=We.indexOf(ie[0]);if(Me==-1)continue e;var X=J(we,We,Me,te)+Ee;return{from:v(ue,J(we,We,Me,te)+Ee),to:v(ue,J(we,We,Me+ie[0].length,te)+Ee)}}else{var Ke=We.length-ie[0].length;if(We.slice(Ke)!=ie[0])continue e;for(var ve=1;ve<ie.length-1;ve++)if(te(B.getLine(ue+ve))!=ie[ve])continue e;var xr=B.getLine(ue+ie.length-1),Cr=te(xr),ur=ie[ie.length-1];if(Cr.slice(0,ur.length)!=ur)continue e;return{from:v(ue,J(we,We,Ke,te)+Ee),to:v(ue+ie.length-1,J(xr,Cr,ur.length,te))}}}}function ee(B,D,X,z){if(!D.length)return null;var te=z?Z:P,ie=te(D).split(/\r|\n\r?/);e:for(var ue=X.line,Ee=X.ch,_e=B.firstLine()-1+ie.length;ue>=_e;ue--,Ee=-1){var we=B.getLine(ue);Ee>-1&&(we=we.slice(0,Ee));var We=te(we);if(ie.length==1){var Me=We.lastIndexOf(ie[0]);if(Me==-1)continue e;return{from:v(ue,J(we,We,Me,te)),to:v(ue,J(we,We,Me+ie[0].length,te))}}else{var Ke=ie[ie.length-1];if(We.slice(0,Ke.length)!=Ke)continue e;for(var ve=1,X=ue-ie.length+1;ve<ie.length-1;ve++)if(te(B.getLine(X+ve))!=ie[ve])continue e;var xr=B.getLine(ue+1-ie.length),Cr=te(xr);if(Cr.slice(Cr.length-ie[0].length)!=ie[0])continue e;return{from:v(ue+1-ie.length,J(xr,Cr,xr.length-ie[0].length,te)),to:v(ue,J(we,We,Ke.length,te))}}}}function Y(B,D,X,z){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=B,X=X?B.clipPos(X):v(0,0),this.pos={from:X,to:X};var te;typeof z=="object"?te=z.caseFold:(te=z,z=null),typeof D=="string"?(te==null&&(te=!1),this.matches=function(ie,ue){return(ie?ee:Q)(B,D,ue,te)}):(D=N(D,"gm"),!z||z.multiline!==!1?this.matches=function(ie,ue){return(ie?H:O)(B,D,ue)}:this.matches=function(ie,ue){return(ie?W:w)(B,D,ue)})}Y.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(B){var D=this.doc.clipPos(B?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(D=v(D.line,D.ch),B?(D.ch--,D.ch<0&&(D.line--,D.ch=(this.doc.getLine(D.line)||"").length)):(D.ch++,D.ch>(this.doc.getLine(D.line)||"").length&&(D.ch=0,D.line++)),i.cmpPos(D,this.doc.clipPos(D))!=0))return this.atOccurrence=!1;var X=this.matches(B,D);if(this.afterEmptyMatch=X&&i.cmpPos(X.from,X.to)==0,X)return this.pos=X,this.atOccurrence=!0,this.pos.match||!0;var z=v(B?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:z,to:z},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(B,D){if(this.atOccurrence){var X=i.splitLines(B);this.doc.replaceRange(X,this.pos.from,this.pos.to,D),this.pos.to=v(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,D,X){return new Y(this.doc,B,D,X)}),i.defineDocExtension("getSearchCursor",function(B,D,X){return new Y(this,B,D,X)}),i.defineExtension("selectMatches",function(B,D){for(var X=[],z=this.getSearchCursor(B,this.getCursor("from"),D);z.findNext()&&!(i.cmpPos(z.to(),this.getCursor("to"))>0);)X.push({anchor:z.from(),head:z.to()});X.length&&this.setSelections(X,0)})})});var GA=Nr((OA,UA)=>{(function(i){typeof OA=="object"&&typeof UA=="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 v(this,e)}),i.defineOption("scrollButtonHeight",0);function v(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(w.doRedraw),w.doRedraw=setTimeout(function(){w.redraw()},O)}var w=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(w.doUpdate),w.doUpdate=setTimeout(function(){w.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)})}v.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},v.prototype.update=function(e){this.annotations=e,this.redraw()},v.prototype.redraw=function(e){e!==!1&&this.computeScale();var N=this.cm,R=this.hScale,w=document.createDocumentFragment(),O=this.annotations,V=N.getOption("lineWrapping"),W=V&&N.defaultTextHeight()*1.5,H=null,Z=null;function P(te,ie){if(H!=te.line){H=te.line,Z=N.getLineHandle(te.line);var ue=N.getLineHandleVisualStart(Z);ue!=Z&&(H=N.getLineNumber(ue),Z=ue)}if(Z.widgets&&Z.widgets.length||V&&Z.height>W)return N.charCoords(te,"local")[ie?"top":"bottom"];var Ee=N.heightAtLine(Z,"local");return Ee+(ie?0:Z.height)}var J=N.lastLine();if(N.display.barWidth)for(var Q=0,ee;Q<O.length;Q++){var Y=O[Q];if(!(Y.to.line>J)){for(var B=ee||P(Y.from,!0)*R,D=P(Y.to,!1)*R;Q<O.length-1&&!(O[Q+1].to.line>J||(ee=P(O[Q+1].from,!0)*R,ee>D+.9));)Y=O[++Q],D=P(Y.to,!1)*R;if(D!=B){var X=Math.max(D-B,3),z=w.appendChild(document.createElement("div"));z.style.cssText="position: absolute; right: 0px; width: "+Math.max(N.display.barWidth-1,2)+"px; top: "+(B+this.buttonHeight)+"px; height: "+X+"px",z.className=this.options.className,Y.id&&z.setAttribute("annotation-id",Y.id)}}}this.div.textContent="",this.div.appendChild(w)},v.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 DA=Nr((FA,BA)=>{(function(i){typeof FA=="object"&&typeof BA=="object"?i(si(),Uv(),GA()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(R,w,O){return typeof O=="string"&&(O={className:O}),O||(O={}),new v(this,R,w,O)});function v(R,w,O,V){this.cm=R,this.options=V;var W={listenForChanges:!1};for(var H in V)W[H]=V[H];W.className||(W.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(W),this.query=w,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 Z=this;R.on("change",this.changeHandler=function(P,J){Z.onChange(J)})}var e=1e3;v.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length;R++){var w=this.matches[R];if(w.from.line>=this.gap.to)break;w.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}),V=this.options&&this.options.maxMatches||e;O.findNext();){var w={from:O.from(),to:O.to()};if(w.from.line>=this.gap.to||(this.matches.splice(R++,0,w),this.matches.length>V))break}this.gap=null}};function N(R,w,O){return R<=w?R:Math.max(w,R+O)}v.prototype.onChange=function(R){var w=R.from.line,O=i.changeEnd(R).line,V=O-R.to.line;if(this.gap?(this.gap.from=Math.min(N(this.gap.from,w,V),R.from.line),this.gap.to=Math.max(N(this.gap.to,w,V),R.from.line)):this.gap={from:R.from.line,to:O+1},V)for(var W=0;W<this.matches.length;W++){var H=this.matches[W],Z=N(H.from.line,w,V);Z!=H.from.line&&(H.from=i.Pos(Z,H.from.ch));var P=N(H.to.line,w,V);P!=H.to.line&&(H.to=i.Pos(P,H.to.ch))}clearTimeout(this.update);var J=this;this.update=setTimeout(function(){J.updateAfterChange()},250)},v.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},v.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var PA=Nr((VA,MA)=>{(function(i){typeof VA=="object"&&typeof MA=="object"?i(si(),DA()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var v={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e(J){this.options={};for(var Q in v)this.options[Q]=(J&&J.hasOwnProperty(Q)?J:v)[Q];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function(J,Q,ee){if(ee&&ee!=i.Init&&(V(J),clearTimeout(J.state.matchHighlighter.timeout),J.state.matchHighlighter=null,J.off("cursorActivity",N),J.off("focus",R)),Q){var Y=J.state.matchHighlighter=new e(Q);J.hasFocus()?(Y.active=!0,W(J)):J.on("focus",R),J.on("cursorActivity",N)}});function N(J){var Q=J.state.matchHighlighter;(Q.active||J.hasFocus())&&w(J,Q)}function R(J){var Q=J.state.matchHighlighter;Q.active||(Q.active=!0,w(J,Q))}function w(J,Q){clearTimeout(Q.timeout),Q.timeout=setTimeout(function(){W(J)},Q.options.delay)}function O(J,Q,ee,Y){var B=J.state.matchHighlighter;if(J.addOverlay(B.overlay=P(Q,ee,Y)),B.options.annotateScrollbar&&J.showMatchesOnScrollbar){var D=ee?new RegExp((/\w/.test(Q.charAt(0))?"\\b":"")+Q.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(Q.charAt(Q.length-1))?"\\b":"")):Q;B.matchesonscroll=J.showMatchesOnScrollbar(D,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function V(J){var Q=J.state.matchHighlighter;Q.overlay&&(J.removeOverlay(Q.overlay),Q.overlay=null,Q.matchesonscroll&&(Q.matchesonscroll.clear(),Q.matchesonscroll=null))}function W(J){J.operation(function(){var Q=J.state.matchHighlighter;if(V(J),!J.somethingSelected()&&Q.options.showToken){for(var ee=Q.options.showToken===!0?/[\w$]/:Q.options.showToken,Y=J.getCursor(),B=J.getLine(Y.line),D=Y.ch,X=D;D&&ee.test(B.charAt(D-1));)--D;for(;X<B.length&&ee.test(B.charAt(X));)++X;D<X&&O(J,B.slice(D,X),ee,Q.options.style);return}var z=J.getCursor("from"),te=J.getCursor("to");if(z.line==te.line&&!(Q.options.wordsOnly&&!H(J,z,te))){var ie=J.getRange(z,te);Q.options.trim&&(ie=ie.replace(/^\s+|\s+$/g,"")),ie.length>=Q.options.minChars&&O(J,ie,!1,Q.options.style)}})}function H(J,Q,ee){var Y=J.getRange(Q,ee);if(Y.match(/^\w+$/)!==null){if(Q.ch>0){var B={line:Q.line,ch:Q.ch-1},D=J.getRange(B,Q);if(D.match(/\W/)===null)return!1}if(ee.ch<J.getLine(Q.line).length){var B={line:ee.line,ch:ee.ch+1},D=J.getRange(ee,B);if(D.match(/\W/)===null)return!1}return!0}else return!1}function Z(J,Q){return(!J.start||!Q.test(J.string.charAt(J.start-1)))&&(J.pos==J.string.length||!Q.test(J.string.charAt(J.pos)))}function P(J,Q,ee){return{token:function(Y){if(Y.match(J)&&(!Q||Z(Y,Q)))return ee;Y.next(),Y.skipTo(J.charAt(0))||Y.skipToEnd()}}}})});var ZA=Nr((WA,kA)=>{(function(i){typeof WA=="object"&&typeof kA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,N={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function R(Z){return Z&&Z.bracketRegex||/[(){}[\]]/}function w(Z,P,J){var Q=Z.getLineHandle(P.line),ee=P.ch-1,Y=J&&J.afterCursor;Y==null&&(Y=/(^| )cm-fat-cursor($| )/.test(Z.getWrapperElement().className));var B=R(J),D=!Y&&ee>=0&&B.test(Q.text.charAt(ee))&&N[Q.text.charAt(ee)]||B.test(Q.text.charAt(ee+1))&&N[Q.text.charAt(++ee)];if(!D)return null;var X=D.charAt(1)==">"?1:-1;if(J&&J.strict&&X>0!=(ee==P.ch))return null;var z=Z.getTokenTypeAt(e(P.line,ee+1)),te=O(Z,e(P.line,ee+(X>0?1:0)),X,z,J);return te==null?null:{from:e(P.line,ee),to:te&&te.pos,match:te&&te.ch==D.charAt(0),forward:X>0}}function O(Z,P,J,Q,ee){for(var Y=ee&&ee.maxScanLineLength||1e4,B=ee&&ee.maxScanLines||1e3,D=[],X=R(ee),z=J>0?Math.min(P.line+B,Z.lastLine()+1):Math.max(Z.firstLine()-1,P.line-B),te=P.line;te!=z;te+=J){var ie=Z.getLine(te);if(ie){var ue=J>0?0:ie.length-1,Ee=J>0?ie.length:-1;if(!(ie.length>Y))for(te==P.line&&(ue=P.ch-(J<0?1:0));ue!=Ee;ue+=J){var _e=ie.charAt(ue);if(X.test(_e)&&(Q===void 0||(Z.getTokenTypeAt(e(te,ue+1))||"")==(Q||""))){var we=N[_e];if(we&&we.charAt(1)==">"==J>0)D.push(_e);else if(D.length)D.pop();else return{pos:e(te,ue),ch:_e}}}}}return te-J==(J>0?Z.lastLine():Z.firstLine())?!1:null}function V(Z,P,J){for(var Q=Z.state.matchBrackets.maxHighlightLineLength||1e3,ee=J&&J.highlightNonMatching,Y=[],B=Z.listSelections(),D=0;D<B.length;D++){var X=B[D].empty()&&w(Z,B[D].head,J);if(X&&(X.match||ee!==!1)&&Z.getLine(X.from.line).length<=Q){var z=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";Y.push(Z.markText(X.from,e(X.from.line,X.from.ch+1),{className:z})),X.to&&Z.getLine(X.to.line).length<=Q&&Y.push(Z.markText(X.to,e(X.to.line,X.to.ch+1),{className:z}))}}if(Y.length){v&&Z.state.focused&&Z.focus();var te=function(){Z.operation(function(){for(var ie=0;ie<Y.length;ie++)Y[ie].clear()})};if(P)setTimeout(te,800);else return te}}function W(Z){Z.operation(function(){Z.state.matchBrackets.currentlyHighlighted&&(Z.state.matchBrackets.currentlyHighlighted(),Z.state.matchBrackets.currentlyHighlighted=null),Z.state.matchBrackets.currentlyHighlighted=V(Z,!1,Z.state.matchBrackets)})}function H(Z){Z.state.matchBrackets&&Z.state.matchBrackets.currentlyHighlighted&&(Z.state.matchBrackets.currentlyHighlighted(),Z.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(Z,P,J){J&&J!=i.Init&&(Z.off("cursorActivity",W),Z.off("focus",W),Z.off("blur",H),H(Z)),P&&(Z.state.matchBrackets=typeof P=="object"?P:{},Z.on("cursorActivity",W),Z.on("focus",W),Z.on("blur",H))}),i.defineExtension("matchBrackets",function(){V(this,!0)}),i.defineExtension("findMatchingBracket",function(Z,P,J){return(J||typeof P=="boolean")&&(J?(J.strict=P,P=J):P=P?{strict:!0}:null),w(this,Z,P)}),i.defineExtension("scanForBracket",function(Z,P,J,Q){return O(this,Z,P,J,Q)})})});var HA=Nr((_A,QA)=>{(function(i){typeof _A=="object"&&typeof QA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(v,e,N,R){var w=i.getMode(i.defaults,e),O=R&&R.tabSize||i.defaults.tabSize;if(N.appendChild){var V=/MSIE \d/.test(navigator.userAgent),W=V&&(document.documentMode==null||document.documentMode<9),H=N,Z=0;H.textContent="",N=function(D,X){if(D==`
37
- `){H.appendChild(document.createTextNode(W?"\r":D)),Z=0;return}for(var z="",te=0;;){var ie=D.indexOf(" ",te);if(ie==-1){z+=D.slice(te),Z+=D.length-te;break}else{Z+=ie-te,z+=D.slice(te,ie);var ue=O-Z%O;Z+=ue;for(var Ee=0;Ee<ue;++Ee)z+=" ";te=ie+1}}if(X){var _e=H.appendChild(document.createElement("span"));_e.className="cm-"+X.replace(/ +/g," cm-"),_e.appendChild(document.createTextNode(z))}else H.appendChild(document.createTextNode(z))}}for(var P=i.splitLines(v),J=R&&R.state||i.startState(w),Q=0,ee=P.length;Q<ee;++Q){Q&&N(`
38
- `);var Y=new i.StringStream(P[Q],null,{lookAhead:function(D){return P[Q+D]},baseToken:function(){}});for(!Y.string&&w.blankLine&&w.blankLine(J);!Y.eol();){var B=w.token(Y,J);N(Y.current(),B,Q,Y.start,J,w),Y.start=Y.pos}}}})});var j1={};_v(j1,{Yasqe:()=>Hf,default:()=>z1});var lh=$t(si());function Hv(i,v,e){return e||(e=i.getDoc().getCursor()),v||(v=i.getTokenAt(e)),Xv(i,$v(i,v,e),e)}function $v(i,v,e){var N=i.getTokenAt({line:e.line,ch:v.start});return(v.type==="punc"||v.type==="error")&&!v.state.possibleFullIri&&!v.state.inPrefixDecl?(v.state.possibleCurrent=v.state.possibleNext,v):N.type==="punc"&&!N.state.possibleFullIri&&!N.state.inPrefixDecl?v:N.type!=null&&N.type!="ws"&&v.type!=null&&v.type!="ws"?(v.start=N.start,v.string=N.string+v.string,$v(i,v,{line:e.line,ch:N.start})):(v.type!=null&&v.type=="ws"&&(v.start=v.start+1,v.string=v.string.substring(1)),v)}function Xv(i,v,e){if(v.string.indexOf(" ")>=0){let R=v.string.indexOf(" ");return v.string=v.string.substr(0,R),v.end=v.start+v.string.length,v}if(!v.type)return v;var N=i.getTokenAt({line:e.line,ch:v.end+1});return N.type!=="ws"&&v.state.possibleFullIri&&v.type!==null&&v.type!=="ws"&&N.end!==v.end?(v.end=N.end,v.string=v.string+N.string,Xv(i,v,{line:e.line,ch:N.end})):(v.type==="ws"&&(v.end=v.end+1,v.string=v.string.substring(v.string.length-1)),v)}function HE(i,v,e){var N=i.getTokenAt({line:v,ch:e.start});return N!=null&&N.type=="ws"&&(N=HE(i,v,N)),N}function bf(i,v,e){e==null&&(e=1);var N=i.getTokenAt({line:v,ch:e});if(!(N==null||N==null||N.end<e))return N.type=="ws"?bf(i,v,N.end+1):N}var Oh="PREFIX ";function Yv(i){for(var v=i.getDoc().lastLine(),e=0;e<=v;++e){let N=Jv(i,e);if(N!=null&&N>=0)return e}}function Jv(i,v,e=0,N){if(N||(N=i.getDoc().getLine(v)),!N)return;N=N.toUpperCase();let R=N.indexOf(Oh,e);if(R>=0&&i.getTokenTypeAt(lh.default.Pos(v,R+1))==="keyword")return R}function zv(i,v){var e=v.line,N=i.getDoc().getLine(e);function R(){for(var D=!1,X=e-1;X>=0;X--)if(i.getDoc().getLine(X).toUpperCase().indexOf(Oh)>=0){D=!0;break}return D}var w=function(D,X){var z=i.getTokenAt(lh.default.Pos(D,X+1));if(!z||z.type!="keyword")return-1;var te=bf(i,D,z.end+1);if(!te||te.type!="string-2")return-1;var ie=bf(i,D,te.end+1);return!ie||ie.type!="variable-3"?-1:ie.end};if(!R()){var O=Jv(i,e,v.ch,N);if(O!=null){for(var V="{",W=!1,H=i.getDoc().lastLine(),Z,P=w(e,O),J=e,Q=e;Q<=H&&!W;++Q)for(var ee=i.getDoc().getLine(Q),Y=Q==e?O+1:0;;){!W&&ee.indexOf(V)>=0&&(W=!0);var B=ee.toUpperCase().indexOf(Oh,Y);if(B>=0)(Z=w(Q,B))>0&&(P=Z,J=Q,Y=P),Y++;else break}return{from:lh.default.Pos(e,O+Oh.length),to:lh.default.Pos(J,P)}}}}function qv(i,v){var e=i.getPrefixesFromQuery();if(typeof v=="string")jv(i,v);else for(var N in v)N in e||jv(i,N+": <"+v[N]+">");i.collapsePrefixes(!1)}function jv(i,v){i.getDoc().replaceRange("PREFIX "+v+`
39
- `,{line:0,ch:0}),i.collapsePrefixes(!1)}function Kv(i,v){var e=function(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var N in v)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+N+":\\s*"+e("<"+v[N]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function em(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:um,setPrototypeOf:rm,isFrozen:uI,getPrototypeOf:fI,getOwnPropertyDescriptor:pI}=Object,{freeze:ci,seal:ms,create:qE}=Object,{apply:KE,construct:ev}=typeof Reflect<"u"&&Reflect;ci||(ci=function(v){return v});ms||(ms=function(v){return v});KE||(KE=function(v,e){for(var N=arguments.length,R=new Array(N>2?N-2:0),w=2;w<N;w++)R[w-2]=arguments[w];return v.apply(e,R)});ev||(ev=function(v){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 v(...N)});var Uh=hi(Array.prototype.forEach),cI=hi(Array.prototype.lastIndexOf),tm=hi(Array.prototype.pop),uh=hi(Array.prototype.push),hI=hi(Array.prototype.splice),Fh=hi(String.prototype.toLowerCase),$E=hi(String.prototype.toString),XE=hi(String.prototype.match),fh=hi(String.prototype.replace),dI=hi(String.prototype.indexOf),gI=hi(String.prototype.trim),Js=hi(Object.prototype.hasOwnProperty),pi=hi(RegExp.prototype.test),ph=EI(TypeError);function hi(i){return function(v){v instanceof RegExp&&(v.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 KE(i,v,N)}}function EI(i){return function(){for(var v=arguments.length,e=new Array(v),N=0;N<v;N++)e[N]=arguments[N];return ev(i,e)}}function nr(i,v){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fh;rm&&rm(i,null);let N=v.length;for(;N--;){let R=v[N];if(typeof R=="string"){let w=e(R);w!==R&&(uI(v)||(v[N]=w),R=w)}i[R]=!0}return i}function vI(i){for(let v=0;v<i.length;v++)Js(i,v)||(i[v]=null);return i}function yo(i){let v=qE(null);for(let[e,N]of um(i))Js(i,e)&&(Array.isArray(N)?v[e]=vI(N):N&&typeof N=="object"&&N.constructor===Object?v[e]=yo(N):v[e]=N);return v}function ch(i,v){for(;i!==null;){let N=pI(i,v);if(N){if(N.get)return hi(N.get);if(typeof N.value=="function")return hi(N.value)}i=fI(i)}function e(){return null}return e}var im=ci(["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"]),YE=ci(["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=ci(["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"]),mI=ci(["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"]),zE=ci(["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"]),xI=ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sm=ci(["#text"]),nm=ci(["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"]),jE=ci(["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"]),om=ci(["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"]),Gh=ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),CI=ms(/\{\{[\w\W]*|[\w\W]*\}\}/gm),AI=ms(/<%[\w\W]*|[\w\W]*%>/gm),II=ms(/\$\{[\w\W]*/gm),NI=ms(/^data-[\-\w.\u00B7-\uFFFF]+$/),bI=ms(/^aria-[\-\w]+$/),fm=ms(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),TI=ms(/^(?:\w+script|data):/i),RI=ms(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),pm=ms(/^html$/i),yI=ms(/^[a-z][.\w]*(-[.\w]+)+$/i),am=Object.freeze({__proto__:null,ARIA_ATTR:bI,ATTR_WHITESPACE:RI,CUSTOM_ELEMENT:yI,DATA_ATTR:NI,DOCTYPE_NAME:pm,ERB_EXPR:AI,IS_ALLOWED_URI:fm,IS_SCRIPT_OR_DATA:TI,MUSTACHE_EXPR:CI,TMPLIT_EXPR:II}),hh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},SI=function(){return typeof window>"u"?null:window},LI=function(v,e){if(typeof v!="object"||typeof v.createPolicy!="function")return null;let N=null,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(N=e.getAttribute(R));let w="dompurify"+(N?"#"+N:"");try{return v.createPolicy(w,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+w+" could not be created."),null}},lm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function cm(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:SI(),v=De=>cm(De);if(v.version="3.3.0",v.removed=[],!i||!i.document||i.document.nodeType!==hh.document||!i.Element)return v.isSupported=!1,v;let{document:e}=i,N=e,R=N.currentScript,{DocumentFragment:w,HTMLTemplateElement:O,Node:V,Element:W,NodeFilter:H,NamedNodeMap:Z=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:P,DOMParser:J,trustedTypes:Q}=i,ee=W.prototype,Y=ch(ee,"cloneNode"),B=ch(ee,"remove"),D=ch(ee,"nextSibling"),X=ch(ee,"childNodes"),z=ch(ee,"parentNode");if(typeof O=="function"){let De=e.createElement("template");De.content&&De.content.ownerDocument&&(e=De.content.ownerDocument)}let te,ie="",{implementation:ue,createNodeIterator:Ee,createDocumentFragment:_e,getElementsByTagName:we}=e,{importNode:We}=N,Me=lm();v.isSupported=typeof um=="function"&&typeof z=="function"&&ue&&ue.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ke,ERB_EXPR:ve,TMPLIT_EXPR:xr,DATA_ATTR:Cr,ARIA_ATTR:ur,IS_SCRIPT_OR_DATA:Jr,ATTR_WHITESPACE:Je,CUSTOM_ELEMENT:yt}=am,{IS_ALLOWED_URI:St}=am,cr=null,Lt=nr({},[...im,...YE,...JE,...zE,...sm]),or=null,at=nr({},[...nm,...jE,...om,...Gh]),ze=Object.seal(qE(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,Pr=Object.seal(qE(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),hr=!0,Kt=!0,Oe=!1,pe=!0,Er=!1,fr=!0,ye=!1,Or=!1,ei=!1,Ie=!1,wt=!1,lt=!1,At=!0,es=!1,Be="user-content-",ut=!0,Se=!1,rr={},Pt=null,It=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"]),Ir=null,ri=nr({},["audio","video","img","source","image","track"]),Ui=null,ti=nr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nt="http://www.w3.org/1998/Math/MathML",ii="http://www.w3.org/2000/svg",br="http://www.w3.org/1999/xhtml",Ot=br,Ue=!1,ni=null,Wr=nr({},[Nt,ii,br],$E),ar=nr({},["mi","mo","mn","ms","mtext"]),dr=nr({},["annotation-xml"]),rs=nr({},["title","style","font","a","script"]),tr=null,ts=["application/xhtml+xml","text/html"],ft="text/html",kr=null,Ei=null,Is=e.createElement("form"),Ks=function(q){return q instanceof RegExp||q instanceof Function},en=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ei&&Ei===q)){if((!q||typeof q!="object")&&(q={}),q=yo(q),tr=ts.indexOf(q.PARSER_MEDIA_TYPE)===-1?ft:q.PARSER_MEDIA_TYPE,kr=tr==="application/xhtml+xml"?$E:Fh,cr=Js(q,"ALLOWED_TAGS")?nr({},q.ALLOWED_TAGS,kr):Lt,or=Js(q,"ALLOWED_ATTR")?nr({},q.ALLOWED_ATTR,kr):at,ni=Js(q,"ALLOWED_NAMESPACES")?nr({},q.ALLOWED_NAMESPACES,$E):Wr,Ui=Js(q,"ADD_URI_SAFE_ATTR")?nr(yo(ti),q.ADD_URI_SAFE_ATTR,kr):ti,Ir=Js(q,"ADD_DATA_URI_TAGS")?nr(yo(ri),q.ADD_DATA_URI_TAGS,kr):ri,Pt=Js(q,"FORBID_CONTENTS")?nr({},q.FORBID_CONTENTS,kr):It,zr=Js(q,"FORBID_TAGS")?nr({},q.FORBID_TAGS,kr):yo({}),Ar=Js(q,"FORBID_ATTR")?nr({},q.FORBID_ATTR,kr):yo({}),rr=Js(q,"USE_PROFILES")?q.USE_PROFILES:!1,hr=q.ALLOW_ARIA_ATTR!==!1,Kt=q.ALLOW_DATA_ATTR!==!1,Oe=q.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Er=q.SAFE_FOR_TEMPLATES||!1,fr=q.SAFE_FOR_XML!==!1,ye=q.WHOLE_DOCUMENT||!1,Ie=q.RETURN_DOM||!1,wt=q.RETURN_DOM_FRAGMENT||!1,lt=q.RETURN_TRUSTED_TYPE||!1,ei=q.FORCE_BODY||!1,At=q.SANITIZE_DOM!==!1,es=q.SANITIZE_NAMED_PROPS||!1,ut=q.KEEP_CONTENT!==!1,Se=q.IN_PLACE||!1,St=q.ALLOWED_URI_REGEXP||fm,Ot=q.NAMESPACE||br,ar=q.MATHML_TEXT_INTEGRATION_POINTS||ar,dr=q.HTML_INTEGRATION_POINTS||dr,ze=q.CUSTOM_ELEMENT_HANDLING||{},q.CUSTOM_ELEMENT_HANDLING&&Ks(q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),q.CUSTOM_ELEMENT_HANDLING&&Ks(q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),q.CUSTOM_ELEMENT_HANDLING&&typeof q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Er&&(Kt=!1),wt&&(Ie=!0),rr&&(cr=nr({},sm),or=[],rr.html===!0&&(nr(cr,im),nr(or,nm)),rr.svg===!0&&(nr(cr,YE),nr(or,jE),nr(or,Gh)),rr.svgFilters===!0&&(nr(cr,JE),nr(or,jE),nr(or,Gh)),rr.mathMl===!0&&(nr(cr,zE),nr(or,om),nr(or,Gh))),q.ADD_TAGS&&(typeof q.ADD_TAGS=="function"?Pr.tagCheck=q.ADD_TAGS:(cr===Lt&&(cr=yo(cr)),nr(cr,q.ADD_TAGS,kr))),q.ADD_ATTR&&(typeof q.ADD_ATTR=="function"?Pr.attributeCheck=q.ADD_ATTR:(or===at&&(or=yo(or)),nr(or,q.ADD_ATTR,kr))),q.ADD_URI_SAFE_ATTR&&nr(Ui,q.ADD_URI_SAFE_ATTR,kr),q.FORBID_CONTENTS&&(Pt===It&&(Pt=yo(Pt)),nr(Pt,q.FORBID_CONTENTS,kr)),ut&&(cr["#text"]=!0),ye&&nr(cr,["html","head","body"]),cr.table&&(nr(cr,["tbody"]),delete zr.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw ph('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ph('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=q.TRUSTED_TYPES_POLICY,ie=te.createHTML("")}else te===void 0&&(te=LI(Q,R)),te!==null&&typeof ie=="string"&&(ie=te.createHTML(""));ci&&ci(q),Ei=q}},Go=nr({},[...YE,...JE,...mI]),rn=nr({},[...zE,...xI]),Ta=function(q){let ge=z(q);(!ge||!ge.tagName)&&(ge={namespaceURI:Ot,tagName:"template"});let Re=Fh(q.tagName),vr=Fh(ge.tagName);return ni[q.namespaceURI]?q.namespaceURI===ii?ge.namespaceURI===br?Re==="svg":ge.namespaceURI===Nt?Re==="svg"&&(vr==="annotation-xml"||ar[vr]):!!Go[Re]:q.namespaceURI===Nt?ge.namespaceURI===br?Re==="math":ge.namespaceURI===ii?Re==="math"&&dr[vr]:!!rn[Re]:q.namespaceURI===br?ge.namespaceURI===ii&&!dr[vr]||ge.namespaceURI===Nt&&!ar[vr]?!1:!rn[Re]&&(rs[Re]||!Go[Re]):!!(tr==="application/xhtml+xml"&&ni[q.namespaceURI]):!1},Wt=function(q){uh(v.removed,{element:q});try{z(q).removeChild(q)}catch{B(q)}},Gi=function(q,ge){try{uh(v.removed,{attribute:ge.getAttributeNode(q),from:ge})}catch{uh(v.removed,{attribute:null,from:ge})}if(ge.removeAttribute(q),q==="is")if(Ie||wt)try{Wt(ge)}catch{}else try{ge.setAttribute(q,"")}catch{}},tn=function(q){let ge=null,Re=null;if(ei)q="<remove></remove>"+q;else{let je=XE(q,/^[\r\n\t ]+/);Re=je&&je[0]}tr==="application/xhtml+xml"&&Ot===br&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");let vr=te?te.createHTML(q):q;if(Ot===br)try{ge=new J().parseFromString(vr,tr)}catch{}if(!ge||!ge.documentElement){ge=ue.createDocument(Ot,"template",null);try{ge.documentElement.innerHTML=Ue?ie:vr}catch{}}let Kr=ge.body||ge.documentElement;return q&&Re&&Kr.insertBefore(e.createTextNode(Re),Kr.childNodes[0]||null),Ot===br?we.call(ge,ye?"html":"body")[0]:ye?ge.documentElement:Kr},Fo=function(q){return Ee.call(q.ownerDocument||q,q,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},Wn=function(q){return q instanceof P&&(typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||!(q.attributes instanceof Z)||typeof q.removeAttribute!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function")},sn=function(q){return typeof V=="function"&&q instanceof V};function oi(De,q,ge){Uh(De,Re=>{Re.call(v,q,ge,Ei)})}let nn=function(q){let ge=null;if(oi(Me.beforeSanitizeElements,q,null),Wn(q))return Wt(q),!0;let Re=kr(q.nodeName);if(oi(Me.uponSanitizeElement,q,{tagName:Re,allowedTags:cr}),fr&&q.hasChildNodes()&&!sn(q.firstElementChild)&&pi(/<[/\w!]/g,q.innerHTML)&&pi(/<[/\w!]/g,q.textContent)||q.nodeType===hh.progressingInstruction||fr&&q.nodeType===hh.comment&&pi(/<[/\w]/g,q.data))return Wt(q),!0;if(!(Pr.tagCheck instanceof Function&&Pr.tagCheck(Re))&&(!cr[Re]||zr[Re])){if(!zr[Re]&&Bo(Re)&&(ze.tagNameCheck instanceof RegExp&&pi(ze.tagNameCheck,Re)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(Re)))return!1;if(ut&&!Pt[Re]){let vr=z(q)||q.parentNode,Kr=X(q)||q.childNodes;if(Kr&&vr){let je=Kr.length;for(let Ae=je-1;Ae>=0;--Ae){let pt=Y(Kr[Ae],!0);pt.__removalCount=(q.__removalCount||0)+1,vr.insertBefore(pt,D(q))}}}return Wt(q),!0}return q instanceof W&&!Ta(q)||(Re==="noscript"||Re==="noembed"||Re==="noframes")&&pi(/<\/no(script|embed|frames)/i,q.innerHTML)?(Wt(q),!0):(Er&&q.nodeType===hh.text&&(ge=q.textContent,Uh([Ke,ve,xr],vr=>{ge=fh(ge,vr," ")}),q.textContent!==ge&&(uh(v.removed,{element:q.cloneNode()}),q.textContent=ge)),oi(Me.afterSanitizeElements,q,null),!1)},Fi=function(q,ge,Re){if(At&&(ge==="id"||ge==="name")&&(Re in e||Re in Is))return!1;if(!(Kt&&!Ar[ge]&&pi(Cr,ge))){if(!(hr&&pi(ur,ge))){if(!(Pr.attributeCheck instanceof Function&&Pr.attributeCheck(ge,q))){if(!or[ge]||Ar[ge]){if(!(Bo(q)&&(ze.tagNameCheck instanceof RegExp&&pi(ze.tagNameCheck,q)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(q))&&(ze.attributeNameCheck instanceof RegExp&&pi(ze.attributeNameCheck,ge)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(ge,q))||ge==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&pi(ze.tagNameCheck,Re)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(Re))))return!1}else if(!Ui[ge]){if(!pi(St,fh(Re,Je,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&q!=="script"&&dI(Re,"data:")===0&&Ir[q])){if(!(Oe&&!pi(Jr,fh(Re,Je,"")))){if(Re)return!1}}}}}}}return!0},Bo=function(q){return q!=="annotation-xml"&&XE(q,yt)},Do=function(q){oi(Me.beforeSanitizeAttributes,q,null);let{attributes:ge}=q;if(!ge||Wn(q))return;let Re={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:or,forceKeepAttr:void 0},vr=ge.length;for(;vr--;){let Kr=ge[vr],{name:je,namespaceURI:Ae,value:pt}=Kr,vi=kr(je),kt=pt,Qe=je==="value"?kt:gI(kt);if(Re.attrName=vi,Re.attrValue=Qe,Re.keepAttr=!0,Re.forceKeepAttr=void 0,oi(Me.uponSanitizeAttribute,q,Re),Qe=Re.attrValue,es&&(vi==="id"||vi==="name")&&(Gi(je,q),Qe=Be+Qe),fr&&pi(/((--!?|])>)|<\/(style|title|textarea)/i,Qe)){Gi(je,q);continue}if(vi==="attributename"&&XE(Qe,"href")){Gi(je,q);continue}if(Re.forceKeepAttr)continue;if(!Re.keepAttr){Gi(je,q);continue}if(!pe&&pi(/\/>/i,Qe)){Gi(je,q);continue}Er&&Uh([Ke,ve,xr],is=>{Qe=fh(Qe,is," ")});let mi=kr(q.nodeName);if(!Fi(mi,vi,Qe)){Gi(je,q);continue}if(te&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!Ae)switch(Q.getAttributeType(mi,vi)){case"TrustedHTML":{Qe=te.createHTML(Qe);break}case"TrustedScriptURL":{Qe=te.createScriptURL(Qe);break}}if(Qe!==kt)try{Ae?q.setAttributeNS(Ae,je,Qe):q.setAttribute(je,Qe),Wn(q)?Wt(q):tm(v.removed)}catch{Gi(je,q)}}oi(Me.afterSanitizeAttributes,q,null)},on=function De(q){let ge=null,Re=Fo(q);for(oi(Me.beforeSanitizeShadowDOM,q,null);ge=Re.nextNode();)oi(Me.uponSanitizeShadowNode,ge,null),nn(ge),Do(ge),ge.content instanceof w&&De(ge.content);oi(Me.afterSanitizeShadowDOM,q,null)};return v.sanitize=function(De){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,Re=null,vr=null,Kr=null;if(Ue=!De,Ue&&(De="<!-->"),typeof De!="string"&&!sn(De))if(typeof De.toString=="function"){if(De=De.toString(),typeof De!="string")throw ph("dirty is not a string, aborting")}else throw ph("toString is not a function");if(!v.isSupported)return De;if(Or||en(q),v.removed=[],typeof De=="string"&&(Se=!1),Se){if(De.nodeName){let pt=kr(De.nodeName);if(!cr[pt]||zr[pt])throw ph("root node is forbidden and cannot be sanitized in-place")}}else if(De instanceof V)ge=tn("<!---->"),Re=ge.ownerDocument.importNode(De,!0),Re.nodeType===hh.element&&Re.nodeName==="BODY"||Re.nodeName==="HTML"?ge=Re:ge.appendChild(Re);else{if(!Ie&&!Er&&!ye&&De.indexOf("<")===-1)return te&&lt?te.createHTML(De):De;if(ge=tn(De),!ge)return Ie?null:lt?ie:""}ge&&ei&&Wt(ge.firstChild);let je=Fo(Se?De:ge);for(;vr=je.nextNode();)nn(vr),Do(vr),vr.content instanceof w&&on(vr.content);if(Se)return De;if(Ie){if(wt)for(Kr=_e.call(ge.ownerDocument);ge.firstChild;)Kr.appendChild(ge.firstChild);else Kr=ge;return(or.shadowroot||or.shadowrootmode)&&(Kr=We.call(N,Kr,!0)),Kr}let Ae=ye?ge.outerHTML:ge.innerHTML;return ye&&cr["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&pi(pm,ge.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+ge.ownerDocument.doctype.name+`>
40
- `+Ae),Er&&Uh([Ke,ve,xr],pt=>{Ae=fh(Ae,pt," ")}),te&&lt?te.createHTML(Ae):Ae},v.setConfig=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(De),Or=!0},v.clearConfig=function(){Ei=null,Or=!1},v.isValidAttribute=function(De,q,ge){Ei||en({});let Re=kr(De),vr=kr(q);return Fi(Re,vr,ge)},v.addHook=function(De,q){typeof q=="function"&&uh(Me[De],q)},v.removeHook=function(De,q){if(q!==void 0){let ge=cI(Me[De],q);return ge===-1?void 0:hI(Me[De],ge,1)[0]}return tm(Me[De])},v.removeHooks=function(De){Me[De]=[]},v.removeAllHooks=function(){Me=lm()},v}var hm=cm();var zs=$t(Qm()),Zl=class{constructor(v){this.namespace=v}set(v,e,N,R){if(zs.default.enabled&&(this.removeExpiredKeys(),v&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{zs.default.set(v,{namespace:this.namespace,val:e,exp:N,time:new Date().getTime()/1e3})}catch(w){if(w instanceof Error){let O=w;if(O.quotaExceeded=GN(w),O.quotaExceeded&&R)R(w);else throw O}throw w}}}remove(v){zs.default.enabled&&v&&zs.default.remove(v)}removeExpiredKeys(){zs.default.enabled&&zs.default.each((v,e)=>{v&&v.exp&&new Date().getTime()/1e3-v.time>v.exp&&this.remove(e)})}removeAll(){zs.default.enabled}removeNamespace(){zs.default.each((v,e)=>{v.namespace&&v.namespace===this.namespace&&this.remove(e)})}get(v){if(zs.default.enabled&&v)if(this.removeExpiredKeys(),v){var e=zs.default.get(v);return e?e.val:void 0}else return}};function GN(i){var v=!1;if(i)if(i.code)switch(i.code){case 22:v=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(v=!0);break}else i.number===-2147024882&&(v=!0);return v}var{sanitize:xL}=hm;function Dn(i){if(i&&i.trim().indexOf("<svg")==0){var v=new DOMParser,e=v.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 Hm(i,v){if(i)return i.classList?i.classList.contains(v):!!i.className.match(new RegExp("(\\s|^)"+v+"(\\s|$)"))}function Xr(i,...v){if(i)for(let e of v)i.classList?i.classList.add(e):Hm(i,e)||(i.className+=" "+e)}function mh(i,v){if(i){if(i.classList)i.classList.remove(v);else if(Hm(i,v)){var e=new RegExp("(\\s|^)"+v+"(\\s|$)");i.className=i.className.replace(e," ")}}}var Cd=$t(Bh());function xh(i,v,e){var N;v.onmouseover=function(){N||(N=document.createElement("div"),N.className="yasqe_tooltip"),N.style.display="block",N.innerHTML=e,v.appendChild(N)},v.onmouseout=function(){N&&(N.style.display="none"),N.innerHTML=e}}var Rv={};_v(Rv,{executeQuery:()=>bv,getAcceptHeader:()=>PC,getAjaxConfig:()=>Nv,getAsCurlString:()=>Tv,getUrlArguments:()=>MC});var _N=typeof global=="object"&&global&&global.Object===Object&&global,Dh=_N;var QN=typeof self=="object"&&self&&self.Object===Object&&self,HN=Dh||QN||Function("return this")(),Rt=HN;var $N=Rt.Symbol,di=$N;var f0=Object.prototype,XN=f0.hasOwnProperty,YN=f0.toString,Ch=di?di.toStringTag:void 0;function JN(i){var v=XN.call(i,Ch),e=i[Ch];try{i[Ch]=void 0;var N=!0}catch{}var R=YN.call(i);return N&&(v?i[Ch]=e:delete i[Ch]),R}var p0=JN;var zN=Object.prototype,jN=zN.toString;function qN(i){return jN.call(i)}var c0=qN;var KN="[object Null]",eb="[object Undefined]",h0=di?di.toStringTag:void 0;function rb(i){return i==null?i===void 0?eb:KN:h0&&h0 in Object(i)?p0(i):c0(i)}var qi=rb;function tb(i){return i!=null&&typeof i=="object"}var gi=tb;var ib="[object Symbol]";function sb(i){return typeof i=="symbol"||gi(i)&&qi(i)==ib}var js=sb;function nb(i,v){for(var e=-1,N=i==null?0:i.length,R=Array(N);++e<N;)R[e]=v(i[e],e,i);return R}var Sf=nb;var ob=Array.isArray,qr=ob;var ab=1/0,d0=di?di.prototype:void 0,g0=d0?d0.toString:void 0;function E0(i){if(typeof i=="string")return i;if(qr(i))return Sf(i,E0)+"";if(js(i))return g0?g0.call(i):"";var v=i+"";return v=="0"&&1/i==-ab?"-0":v}var v0=E0;var lb=/\s/;function ub(i){for(var v=i.length;v--&&lb.test(i.charAt(v)););return v}var m0=ub;var fb=/^\s+/;function pb(i){return i&&i.slice(0,m0(i)+1).replace(fb,"")}var x0=pb;function cb(i){var v=typeof i;return i!=null&&(v=="object"||v=="function")}var Mt=cb;var C0=NaN,hb=/^[-+]0x[0-9a-f]+$/i,db=/^0b[01]+$/i,gb=/^0o[0-7]+$/i,Eb=parseInt;function vb(i){if(typeof i=="number")return i;if(js(i))return C0;if(Mt(i)){var v=typeof i.valueOf=="function"?i.valueOf():i;i=Mt(v)?v+"":v}if(typeof i!="string")return i===0?i:+i;i=x0(i);var e=db.test(i);return e||gb.test(i)?Eb(i.slice(2),e?2:8):hb.test(i)?C0:+i}var A0=vb;var I0=1/0,mb=17976931348623157e292;function xb(i){if(!i)return i===0?i:0;if(i=A0(i),i===I0||i===-I0){var v=i<0?-1:1;return v*mb}return i===i?i:0}var N0=xb;function Cb(i){var v=N0(i),e=v%1;return v===v?e?v-e:v:0}var b0=Cb;function Ab(i){return i}var Ea=Ab;var Ib="[object AsyncFunction]",Nb="[object Function]",bb="[object GeneratorFunction]",Tb="[object Proxy]";function Rb(i){if(!Mt(i))return!1;var v=qi(i);return v==Nb||v==bb||v==Ib||v==Tb}var Ct=Rb;var yb=Rt["__core-js_shared__"],Vh=yb;var T0=function(){var i=/[^.]+$/.exec(Vh&&Vh.keys&&Vh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Sb(i){return!!T0&&T0 in i}var R0=Sb;var Lb=Function.prototype,wb=Lb.toString;function Ob(i){if(i!=null){try{return wb.call(i)}catch{}try{return i+""}catch{}}return""}var So=Ob;var Ub=/[\\^$.*+?()[\]{}|]/g,Gb=/^\[object .+?Constructor\]$/,Fb=Function.prototype,Bb=Object.prototype,Db=Fb.toString,Vb=Bb.hasOwnProperty,Mb=RegExp("^"+Db.call(Vb).replace(Ub,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pb(i){if(!Mt(i)||R0(i))return!1;var v=Ct(i)?Mb:Gb;return v.test(So(i))}var y0=Pb;function Wb(i,v){return i?.[v]}var S0=Wb;function kb(i,v){var e=S0(i,v);return y0(e)?e:void 0}var wi=kb;var Zb=wi(Rt,"WeakMap"),Mh=Zb;var L0=Object.create,_b=function(){function i(){}return function(v){if(!Mt(v))return{};if(L0)return L0(v);i.prototype=v;var e=new i;return i.prototype=void 0,e}}(),w0=_b;function Qb(i,v,e){switch(e.length){case 0:return i.call(v);case 1:return i.call(v,e[0]);case 2:return i.call(v,e[0],e[1]);case 3:return i.call(v,e[0],e[1],e[2])}return i.apply(v,e)}var O0=Qb;function Hb(i,v){var e=-1,N=i.length;for(v||(v=Array(N));++e<N;)v[e]=i[e];return v}var U0=Hb;var $b=800,Xb=16,Yb=Date.now;function Jb(i){var v=0,e=0;return function(){var N=Yb(),R=Xb-(N-e);if(e=N,R>0){if(++v>=$b)return arguments[0]}else v=0;return i.apply(void 0,arguments)}}var G0=Jb;function zb(i){return function(){return i}}var F0=zb;var jb=function(){try{var i=wi(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Lf=jb;var qb=Lf?function(i,v){return Lf(i,"toString",{configurable:!0,enumerable:!1,value:F0(v),writable:!0})}:Ea,B0=qb;var Kb=G0(B0),D0=Kb;var eT=9007199254740991,rT=/^(?:0|[1-9]\d*)$/;function tT(i,v){var e=typeof i;return v=v??eT,!!v&&(e=="number"||e!="symbol"&&rT.test(i))&&i>-1&&i%1==0&&i<v}var wf=tT;function iT(i,v,e){v=="__proto__"&&Lf?Lf(i,v,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[v]=e}var Of=iT;function sT(i,v){return i===v||i!==i&&v!==v}var Vn=sT;var nT=Object.prototype,oT=nT.hasOwnProperty;function aT(i,v,e){var N=i[v];(!(oT.call(i,v)&&Vn(N,e))||e===void 0&&!(v in i))&&Of(i,v,e)}var V0=aT;function lT(i,v,e,N){var R=!e;e||(e={});for(var w=-1,O=v.length;++w<O;){var V=v[w],W=N?N(e[V],i[V],V,e,i):void 0;W===void 0&&(W=i[V]),R?Of(e,V,W):V0(e,V,W)}return e}var M0=lT;var P0=Math.max;function uT(i,v,e){return v=P0(v===void 0?i.length-1:v,0),function(){for(var N=arguments,R=-1,w=P0(N.length-v,0),O=Array(w);++R<w;)O[R]=N[v+R];R=-1;for(var V=Array(v+1);++R<v;)V[R]=N[R];return V[v]=e(O),O0(i,this,V)}}var W0=uT;function fT(i,v){return D0(W0(i,v,Ea),i+"")}var Ph=fT;var pT=9007199254740991;function cT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=pT}var Uf=cT;function hT(i){return i!=null&&Uf(i.length)&&!Ct(i)}var xs=hT;function dT(i,v,e){if(!Mt(e))return!1;var N=typeof v;return(N=="number"?xs(e)&&wf(v,e.length):N=="string"&&v in e)?Vn(e[v],i):!1}var Ah=dT;function gT(i){return Ph(function(v,e){var N=-1,R=e.length,w=R>1?e[R-1]:void 0,O=R>2?e[2]:void 0;for(w=i.length>3&&typeof w=="function"?(R--,w):void 0,O&&Ah(e[0],e[1],O)&&(w=R<3?void 0:w,R=1),v=Object(v);++N<R;){var V=e[N];V&&i(v,V,N,w)}return v})}var Wh=gT;var ET=Object.prototype;function vT(i){var v=i&&i.constructor,e=typeof v=="function"&&v.prototype||ET;return i===e}var Gf=vT;function mT(i,v){for(var e=-1,N=Array(i);++e<i;)N[e]=v(e);return N}var k0=mT;var xT="[object Arguments]";function CT(i){return gi(i)&&qi(i)==xT}var pv=CT;var Z0=Object.prototype,AT=Z0.hasOwnProperty,IT=Z0.propertyIsEnumerable,NT=pv(function(){return arguments}())?pv:function(i){return gi(i)&&AT.call(i,"callee")&&!IT.call(i,"callee")},Lo=NT;function bT(){return!1}var _0=bT;var $0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Q0=$0&&typeof module=="object"&&module&&!module.nodeType&&module,TT=Q0&&Q0.exports===$0,H0=TT?Rt.Buffer:void 0,RT=H0?H0.isBuffer:void 0,yT=RT||_0,Ql=yT;var ST="[object Arguments]",LT="[object Array]",wT="[object Boolean]",OT="[object Date]",UT="[object Error]",GT="[object Function]",FT="[object Map]",BT="[object Number]",DT="[object Object]",VT="[object RegExp]",MT="[object Set]",PT="[object String]",WT="[object WeakMap]",kT="[object ArrayBuffer]",ZT="[object DataView]",_T="[object Float32Array]",QT="[object Float64Array]",HT="[object Int8Array]",$T="[object Int16Array]",XT="[object Int32Array]",YT="[object Uint8Array]",JT="[object Uint8ClampedArray]",zT="[object Uint16Array]",jT="[object Uint32Array]",Yr={};Yr[_T]=Yr[QT]=Yr[HT]=Yr[$T]=Yr[XT]=Yr[YT]=Yr[JT]=Yr[zT]=Yr[jT]=!0;Yr[ST]=Yr[LT]=Yr[kT]=Yr[wT]=Yr[ZT]=Yr[OT]=Yr[UT]=Yr[GT]=Yr[FT]=Yr[BT]=Yr[DT]=Yr[VT]=Yr[MT]=Yr[PT]=Yr[WT]=!1;function qT(i){return gi(i)&&Uf(i.length)&&!!Yr[qi(i)]}var X0=qT;function KT(i){return function(v){return i(v)}}var kh=KT;var Y0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ih=Y0&&typeof module=="object"&&module&&!module.nodeType&&module,eR=Ih&&Ih.exports===Y0,cv=eR&&Dh.process,rR=function(){try{var i=Ih&&Ih.require&&Ih.require("util").types;return i||cv&&cv.binding&&cv.binding("util")}catch{}}(),hv=rR;var J0=hv&&hv.isTypedArray,tR=J0?kh(J0):X0,Ff=tR;var iR=Object.prototype,sR=iR.hasOwnProperty;function nR(i,v){var e=qr(i),N=!e&&Lo(i),R=!e&&!N&&Ql(i),w=!e&&!N&&!R&&Ff(i),O=e||N||R||w,V=O?k0(i.length,String):[],W=V.length;for(var H in i)(v||sR.call(i,H))&&!(O&&(H=="length"||R&&(H=="offset"||H=="parent")||w&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||wf(H,W)))&&V.push(H);return V}var Zh=nR;function oR(i,v){return function(e){return i(v(e))}}var _h=oR;var aR=_h(Object.keys,Object),z0=aR;var lR=Object.prototype,uR=lR.hasOwnProperty;function fR(i){if(!Gf(i))return z0(i);var v=[];for(var e in Object(i))uR.call(i,e)&&e!="constructor"&&v.push(e);return v}var j0=fR;function pR(i){return xs(i)?Zh(i):j0(i)}var Bf=pR;function cR(i){var v=[];if(i!=null)for(var e in Object(i))v.push(e);return v}var q0=cR;var hR=Object.prototype,dR=hR.hasOwnProperty;function gR(i){if(!Mt(i))return q0(i);var v=Gf(i),e=[];for(var N in i)N=="constructor"&&(v||!dR.call(i,N))||e.push(N);return e}var K0=gR;function ER(i){return xs(i)?Zh(i,!0):K0(i)}var Qh=ER;var vR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mR=/^\w*$/;function xR(i,v){if(qr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||js(i)?!0:mR.test(i)||!vR.test(i)||v!=null&&i in Object(v)}var Df=xR;var CR=wi(Object,"create"),wo=CR;function AR(){this.__data__=wo?wo(null):{},this.size=0}var ex=AR;function IR(i){var v=this.has(i)&&delete this.__data__[i];return this.size-=v?1:0,v}var rx=IR;var NR="__lodash_hash_undefined__",bR=Object.prototype,TR=bR.hasOwnProperty;function RR(i){var v=this.__data__;if(wo){var e=v[i];return e===NR?void 0:e}return TR.call(v,i)?v[i]:void 0}var tx=RR;var yR=Object.prototype,SR=yR.hasOwnProperty;function LR(i){var v=this.__data__;return wo?v[i]!==void 0:SR.call(v,i)}var ix=LR;var wR="__lodash_hash_undefined__";function OR(i,v){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=wo&&v===void 0?wR:v,this}var sx=OR;function Vf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Vf.prototype.clear=ex;Vf.prototype.delete=rx;Vf.prototype.get=tx;Vf.prototype.has=ix;Vf.prototype.set=sx;var dv=Vf;function UR(){this.__data__=[],this.size=0}var nx=UR;function GR(i,v){for(var e=i.length;e--;)if(Vn(i[e][0],v))return e;return-1}var va=GR;var FR=Array.prototype,BR=FR.splice;function DR(i){var v=this.__data__,e=va(v,i);if(e<0)return!1;var N=v.length-1;return e==N?v.pop():BR.call(v,e,1),--this.size,!0}var ox=DR;function VR(i){var v=this.__data__,e=va(v,i);return e<0?void 0:v[e][1]}var ax=VR;function MR(i){return va(this.__data__,i)>-1}var lx=MR;function PR(i,v){var e=this.__data__,N=va(e,i);return N<0?(++this.size,e.push([i,v])):e[N][1]=v,this}var ux=PR;function Mf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Mf.prototype.clear=nx;Mf.prototype.delete=ox;Mf.prototype.get=ax;Mf.prototype.has=lx;Mf.prototype.set=ux;var ma=Mf;var WR=wi(Rt,"Map"),xa=WR;function kR(){this.size=0,this.__data__={hash:new dv,map:new(xa||ma),string:new dv}}var fx=kR;function ZR(i){var v=typeof i;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?i!=="__proto__":i===null}var px=ZR;function _R(i,v){var e=i.__data__;return px(v)?e[typeof v=="string"?"string":"hash"]:e.map}var Ca=_R;function QR(i){var v=Ca(this,i).delete(i);return this.size-=v?1:0,v}var cx=QR;function HR(i){return Ca(this,i).get(i)}var hx=HR;function $R(i){return Ca(this,i).has(i)}var dx=$R;function XR(i,v){var e=Ca(this,i),N=e.size;return e.set(i,v),this.size+=e.size==N?0:1,this}var gx=XR;function Pf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Pf.prototype.clear=fx;Pf.prototype.delete=cx;Pf.prototype.get=hx;Pf.prototype.has=dx;Pf.prototype.set=gx;var Hl=Pf;var YR="Expected a function";function gv(i,v){if(typeof i!="function"||v!=null&&typeof v!="function")throw new TypeError(YR);var e=function(){var N=arguments,R=v?v.apply(this,N):N[0],w=e.cache;if(w.has(R))return w.get(R);var O=i.apply(this,N);return e.cache=w.set(R,O)||w,O};return e.cache=new(gv.Cache||Hl),e}gv.Cache=Hl;var Ex=gv;var JR=500;function zR(i){var v=Ex(i,function(N){return e.size===JR&&e.clear(),N}),e=v.cache;return v}var vx=zR;var jR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qR=/\\(\\)?/g,KR=vx(function(i){var v=[];return i.charCodeAt(0)===46&&v.push(""),i.replace(jR,function(e,N,R,w){v.push(R?w.replace(qR,"$1"):N||e)}),v}),mx=KR;function ey(i){return i==null?"":v0(i)}var Hh=ey;function ry(i,v){return qr(i)?i:Df(i,v)?[i]:mx(Hh(i))}var $h=ry;var ty=1/0;function iy(i){if(typeof i=="string"||js(i))return i;var v=i+"";return v=="0"&&1/i==-ty?"-0":v}var Aa=iy;function sy(i,v){v=$h(v,i);for(var e=0,N=v.length;i!=null&&e<N;)i=i[Aa(v[e++])];return e&&e==N?i:void 0}var Wf=sy;function ny(i,v,e){var N=i==null?void 0:Wf(i,v);return N===void 0?e:N}var xx=ny;function oy(i,v){for(var e=-1,N=v.length,R=i.length;++e<N;)i[R+e]=v[e];return i}var Xh=oy;var Cx=di?di.isConcatSpreadable:void 0;function ay(i){return qr(i)||Lo(i)||!!(Cx&&i&&i[Cx])}var Ax=ay;function Ix(i,v,e,N,R){var w=-1,O=i.length;for(e||(e=Ax),R||(R=[]);++w<O;){var V=i[w];v>0&&e(V)?v>1?Ix(V,v-1,e,N,R):Xh(R,V):N||(R[R.length]=V)}return R}var Nx=Ix;var ly=_h(Object.getPrototypeOf,Object),Yh=ly;var uy="[object Object]",fy=Function.prototype,py=Object.prototype,bx=fy.toString,cy=py.hasOwnProperty,hy=bx.call(Object);function dy(i){if(!gi(i)||qi(i)!=uy)return!1;var v=Yh(i);if(v===null)return!0;var e=cy.call(v,"constructor")&&v.constructor;return typeof e=="function"&&e instanceof e&&bx.call(e)==hy}var Tx=dy;function gy(i,v,e){var N=-1,R=i.length;v<0&&(v=-v>R?0:R+v),e=e>R?R:e,e<0&&(e+=R),R=v>e?0:e-v>>>0,v>>>=0;for(var w=Array(R);++N<R;)w[N]=i[N+v];return w}var Rx=gy;function Ey(i){return function(v){return i?.[v]}}var yx=Ey;function vy(){this.__data__=new ma,this.size=0}var Sx=vy;function my(i){var v=this.__data__,e=v.delete(i);return this.size=v.size,e}var Lx=my;function xy(i){return this.__data__.get(i)}var wx=xy;function Cy(i){return this.__data__.has(i)}var Ox=Cy;var Ay=200;function Iy(i,v){var e=this.__data__;if(e instanceof ma){var N=e.__data__;if(!xa||N.length<Ay-1)return N.push([i,v]),this.size=++e.size,this;e=this.__data__=new Hl(N)}return e.set(i,v),this.size=e.size,this}var Ux=Iy;function kf(i){var v=this.__data__=new ma(i);this.size=v.size}kf.prototype.clear=Sx;kf.prototype.delete=Lx;kf.prototype.get=wx;kf.prototype.has=Ox;kf.prototype.set=Ux;var Ia=kf;var Dx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Gx=Dx&&typeof module=="object"&&module&&!module.nodeType&&module,Ny=Gx&&Gx.exports===Dx,Fx=Ny?Rt.Buffer:void 0,Bx=Fx?Fx.allocUnsafe:void 0;function by(i,v){if(v)return i.slice();var e=i.length,N=Bx?Bx(e):new i.constructor(e);return i.copy(N),N}var Vx=by;function Ty(i,v){for(var e=-1,N=i==null?0:i.length,R=0,w=[];++e<N;){var O=i[e];v(O,e,i)&&(w[R++]=O)}return w}var Mx=Ty;function Ry(){return[]}var Px=Ry;var yy=Object.prototype,Sy=yy.propertyIsEnumerable,Wx=Object.getOwnPropertySymbols,Ly=Wx?function(i){return i==null?[]:(i=Object(i),Mx(Wx(i),function(v){return Sy.call(i,v)}))}:Px,kx=Ly;function wy(i,v,e){var N=v(i);return qr(i)?N:Xh(N,e(i))}var Zx=wy;function Oy(i){return Zx(i,Bf,kx)}var Ev=Oy;var Uy=wi(Rt,"DataView"),Jh=Uy;var Gy=wi(Rt,"Promise"),zh=Gy;var Fy=wi(Rt,"Set"),jh=Fy;var _x="[object Map]",By="[object Object]",Qx="[object Promise]",Hx="[object Set]",$x="[object WeakMap]",Xx="[object DataView]",Dy=So(Jh),Vy=So(xa),My=So(zh),Py=So(jh),Wy=So(Mh),$l=qi;(Jh&&$l(new Jh(new ArrayBuffer(1)))!=Xx||xa&&$l(new xa)!=_x||zh&&$l(zh.resolve())!=Qx||jh&&$l(new jh)!=Hx||Mh&&$l(new Mh)!=$x)&&($l=function(i){var v=qi(i),e=v==By?i.constructor:void 0,N=e?So(e):"";if(N)switch(N){case Dy:return Xx;case Vy:return _x;case My:return Qx;case Py:return Hx;case Wy:return $x}return v});var vv=$l;var ky=Rt.Uint8Array,Zf=ky;function Zy(i){var v=new i.constructor(i.byteLength);return new Zf(v).set(new Zf(i)),v}var Yx=Zy;function _y(i,v){var e=v?Yx(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var Jx=_y;function Qy(i){return typeof i.constructor=="function"&&!Gf(i)?w0(Yh(i)):{}}var zx=Qy;var Hy="__lodash_hash_undefined__";function $y(i){return this.__data__.set(i,Hy),this}var jx=$y;function Xy(i){return this.__data__.has(i)}var qx=Xy;function qh(i){var v=-1,e=i==null?0:i.length;for(this.__data__=new Hl;++v<e;)this.add(i[v])}qh.prototype.add=qh.prototype.push=jx;qh.prototype.has=qx;var Kx=qh;function Yy(i,v){for(var e=-1,N=i==null?0:i.length;++e<N;)if(v(i[e],e,i))return!0;return!1}var eC=Yy;function Jy(i,v){return i.has(v)}var rC=Jy;var zy=1,jy=2;function qy(i,v,e,N,R,w){var O=e&zy,V=i.length,W=v.length;if(V!=W&&!(O&&W>V))return!1;var H=w.get(i),Z=w.get(v);if(H&&Z)return H==v&&Z==i;var P=-1,J=!0,Q=e&jy?new Kx:void 0;for(w.set(i,v),w.set(v,i);++P<V;){var ee=i[P],Y=v[P];if(N)var B=O?N(Y,ee,P,v,i,w):N(ee,Y,P,i,v,w);if(B!==void 0){if(B)continue;J=!1;break}if(Q){if(!eC(v,function(D,X){if(!rC(Q,X)&&(ee===D||R(ee,D,e,N,w)))return Q.push(X)})){J=!1;break}}else if(!(ee===Y||R(ee,Y,e,N,w))){J=!1;break}}return w.delete(i),w.delete(v),J}var Kh=qy;function Ky(i){var v=-1,e=Array(i.size);return i.forEach(function(N,R){e[++v]=[R,N]}),e}var tC=Ky;function eS(i){var v=-1,e=Array(i.size);return i.forEach(function(N){e[++v]=N}),e}var iC=eS;var rS=1,tS=2,iS="[object Boolean]",sS="[object Date]",nS="[object Error]",oS="[object Map]",aS="[object Number]",lS="[object RegExp]",uS="[object Set]",fS="[object String]",pS="[object Symbol]",cS="[object ArrayBuffer]",hS="[object DataView]",sC=di?di.prototype:void 0,mv=sC?sC.valueOf:void 0;function dS(i,v,e,N,R,w,O){switch(e){case hS:if(i.byteLength!=v.byteLength||i.byteOffset!=v.byteOffset)return!1;i=i.buffer,v=v.buffer;case cS:return!(i.byteLength!=v.byteLength||!w(new Zf(i),new Zf(v)));case iS:case sS:case aS:return Vn(+i,+v);case nS:return i.name==v.name&&i.message==v.message;case lS:case fS:return i==v+"";case oS:var V=tC;case uS:var W=N&rS;if(V||(V=iC),i.size!=v.size&&!W)return!1;var H=O.get(i);if(H)return H==v;N|=tS,O.set(i,v);var Z=Kh(V(i),V(v),N,R,w,O);return O.delete(i),Z;case pS:if(mv)return mv.call(i)==mv.call(v)}return!1}var nC=dS;var gS=1,ES=Object.prototype,vS=ES.hasOwnProperty;function mS(i,v,e,N,R,w){var O=e&gS,V=Ev(i),W=V.length,H=Ev(v),Z=H.length;if(W!=Z&&!O)return!1;for(var P=W;P--;){var J=V[P];if(!(O?J in v:vS.call(v,J)))return!1}var Q=w.get(i),ee=w.get(v);if(Q&&ee)return Q==v&&ee==i;var Y=!0;w.set(i,v),w.set(v,i);for(var B=O;++P<W;){J=V[P];var D=i[J],X=v[J];if(N)var z=O?N(X,D,J,v,i,w):N(D,X,J,i,v,w);if(!(z===void 0?D===X||R(D,X,e,N,w):z)){Y=!1;break}B||(B=J=="constructor")}if(Y&&!B){var te=i.constructor,ie=v.constructor;te!=ie&&"constructor"in i&&"constructor"in v&&!(typeof te=="function"&&te instanceof te&&typeof ie=="function"&&ie instanceof ie)&&(Y=!1)}return w.delete(i),w.delete(v),Y}var oC=mS;var xS=1,aC="[object Arguments]",lC="[object Array]",ed="[object Object]",CS=Object.prototype,uC=CS.hasOwnProperty;function AS(i,v,e,N,R,w){var O=qr(i),V=qr(v),W=O?lC:vv(i),H=V?lC:vv(v);W=W==aC?ed:W,H=H==aC?ed:H;var Z=W==ed,P=H==ed,J=W==H;if(J&&Ql(i)){if(!Ql(v))return!1;O=!0,Z=!1}if(J&&!Z)return w||(w=new Ia),O||Ff(i)?Kh(i,v,e,N,R,w):nC(i,v,W,e,N,R,w);if(!(e&xS)){var Q=Z&&uC.call(i,"__wrapped__"),ee=P&&uC.call(v,"__wrapped__");if(Q||ee){var Y=Q?i.value():i,B=ee?v.value():v;return w||(w=new Ia),R(Y,B,e,N,w)}}return J?(w||(w=new Ia),oC(i,v,e,N,R,w)):!1}var fC=AS;function pC(i,v,e,N,R){return i===v?!0:i==null||v==null||!gi(i)&&!gi(v)?i!==i&&v!==v:fC(i,v,e,N,pC,R)}var rd=pC;var IS=1,NS=2;function bS(i,v,e,N){var R=e.length,w=R,O=!N;if(i==null)return!w;for(i=Object(i);R--;){var V=e[R];if(O&&V[2]?V[1]!==i[V[0]]:!(V[0]in i))return!1}for(;++R<w;){V=e[R];var W=V[0],H=i[W],Z=V[1];if(O&&V[2]){if(H===void 0&&!(W in i))return!1}else{var P=new Ia;if(N)var J=N(H,Z,W,i,v,P);if(!(J===void 0?rd(Z,H,IS|NS,N,P):J))return!1}}return!0}var cC=bS;function TS(i){return i===i&&!Mt(i)}var td=TS;function RS(i){for(var v=Bf(i),e=v.length;e--;){var N=v[e],R=i[N];v[e]=[N,R,td(R)]}return v}var hC=RS;function yS(i,v){return function(e){return e==null?!1:e[i]===v&&(v!==void 0||i in Object(e))}}var id=yS;function SS(i){var v=hC(i);return v.length==1&&v[0][2]?id(v[0][0],v[0][1]):function(e){return e===i||cC(e,i,v)}}var dC=SS;function LS(i,v){return i!=null&&v in Object(i)}var gC=LS;function wS(i,v,e){v=$h(v,i);for(var N=-1,R=v.length,w=!1;++N<R;){var O=Aa(v[N]);if(!(w=i!=null&&e(i,O)))break;i=i[O]}return w||++N!=R?w:(R=i==null?0:i.length,!!R&&Uf(R)&&wf(O,R)&&(qr(i)||Lo(i)))}var EC=wS;function OS(i,v){return i!=null&&EC(i,v,gC)}var vC=OS;var US=1,GS=2;function FS(i,v){return Df(i)&&td(v)?id(Aa(i),v):function(e){var N=xx(e,i);return N===void 0&&N===v?vC(e,i):rd(v,N,US|GS)}}var mC=FS;function BS(i){return function(v){return v?.[i]}}var xC=BS;function DS(i){return function(v){return Wf(v,i)}}var CC=DS;function VS(i){return Df(i)?xC(Aa(i)):CC(i)}var AC=VS;function MS(i){return typeof i=="function"?i:i==null?Ea:typeof i=="object"?qr(i)?mC(i[0],i[1]):dC(i):AC(i)}var IC=MS;function PS(i){return function(v,e,N){for(var R=-1,w=Object(v),O=N(v),V=O.length;V--;){var W=O[i?V:++R];if(e(w[W],W,w)===!1)break}return v}}var NC=PS;var WS=NC(),sd=WS;function kS(i,v){return i&&sd(i,v,Bf)}var bC=kS;function ZS(i,v){return function(e,N){if(e==null)return e;if(!xs(e))return i(e,N);for(var R=e.length,w=v?R:-1,O=Object(e);(v?w--:++w<R)&&N(O[w],w,O)!==!1;);return e}}var TC=ZS;var _S=TC(bC),RC=_S;function QS(i,v,e){(e!==void 0&&!Vn(i[v],e)||e===void 0&&!(v in i))&&Of(i,v,e)}var Nh=QS;function HS(i){return gi(i)&&xs(i)}var yC=HS;function $S(i,v){if(!(v==="constructor"&&typeof i[v]=="function")&&v!="__proto__")return i[v]}var bh=$S;function XS(i){return M0(i,Qh(i))}var SC=XS;function YS(i,v,e,N,R,w,O){var V=bh(i,e),W=bh(v,e),H=O.get(W);if(H){Nh(i,e,H);return}var Z=w?w(V,W,e+"",i,v,O):void 0,P=Z===void 0;if(P){var J=qr(W),Q=!J&&Ql(W),ee=!J&&!Q&&Ff(W);Z=W,J||Q||ee?qr(V)?Z=V:yC(V)?Z=U0(V):Q?(P=!1,Z=Vx(W,!0)):ee?(P=!1,Z=Jx(W,!0)):Z=[]:Tx(W)||Lo(W)?(Z=V,Lo(V)?Z=SC(V):(!Mt(V)||Ct(V))&&(Z=zx(W))):P=!1}P&&(O.set(W,Z),R(Z,W,N,w,O),O.delete(W)),Nh(i,e,Z)}var LC=YS;function wC(i,v,e,N,R){i!==v&&sd(v,function(w,O){if(R||(R=new Ia),Mt(w))LC(i,v,O,e,wC,N,R);else{var V=N?N(bh(i,O),w,O+"",i,v,R):void 0;V===void 0&&(V=w),Nh(i,O,V)}},Qh)}var nd=wC;var JS=Wh(function(i,v,e,N){nd(i,v,e,N)}),xv=JS;var zS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jS=yx(zS),OC=jS;var UC=/[&<>"']/g,qS=RegExp(UC.source);function KS(i){return i=Hh(i),i&&qS.test(i)?i.replace(UC,OC):i}var Th=KS;function e1(i,v){var e=-1,N=xs(i)?Array(i.length):[];return RC(i,function(R,w,O){N[++e]=v(R,w,O)}),N}var GC=e1;var r1=Wh(function(i,v,e){nd(i,v,e)}),od=r1;function t1(i,v){var e=i.length;for(i.sort(v);e--;)i[e]=i[e].value;return i}var FC=t1;function i1(i,v){if(i!==v){var e=i!==void 0,N=i===null,R=i===i,w=js(i),O=v!==void 0,V=v===null,W=v===v,H=js(v);if(!V&&!H&&!w&&i>v||w&&O&&W&&!V&&!H||N&&O&&W||!e&&W||!R)return 1;if(!N&&!w&&!H&&i<v||H&&e&&R&&!N&&!w||V&&e&&R||!O&&R||!W)return-1}return 0}var BC=i1;function s1(i,v,e){for(var N=-1,R=i.criteria,w=v.criteria,O=R.length,V=e.length;++N<O;){var W=BC(R[N],w[N]);if(W){if(N>=V)return W;var H=e[N];return W*(H=="desc"?-1:1)}}return i.index-v.index}var DC=s1;function n1(i,v,e){v.length?v=Sf(v,function(w){return qr(w)?function(O){return Wf(O,w.length===1?w[0]:w)}:w}):v=[Ea];var N=-1;v=Sf(v,kh(IC));var R=GC(i,function(w,O,V){var W=Sf(v,function(H){return H(w)});return{criteria:W,index:++N,value:w}});return FC(R,function(w,O){return DC(w,O,e)})}var VC=n1;var o1=Ph(function(i,v){if(i==null)return[];var e=v.length;return e>1&&Ah(i,v[0],v[1])?v=[]:e>2&&Ah(v[0],v[1],v[2])&&(v=[v[0]]),VC(i,Nx(v,1),[])}),Cv=o1;function a1(i,v,e){return i&&i.length?(v=e||v===void 0?1:b0(v),Rx(i,0,v<0?0:v)):[]}var Av=a1;var Iv=$t(Bh());function Rh(i,v){return Ct(v)?v(i):v??{}}function l1(i,v){let e=`${i}:${v}`;return`Basic ${u1(e)}`}function u1(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let v=new window.TextEncoder().encode(i),e="";for(let N=0;N<v.length;N++)e+=String.fromCharCode(v[N]);return btoa(e)}else if(typeof TextEncoder<"u"){let v=new TextEncoder().encode(i),e="";for(let N=0;N<v.length;N++)e+=String.fromCharCode(v[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 Nv(i,v={}){let e=od({},Rh(i,i.config.requestConfig),Rh(i,v));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let R=Ct(e.endpoint)?e.endpoint(i):e.endpoint;var w=N=="update"?"POST":Ct(e.method)?e.method(i):e.method;let O=Ct(e.headers)?e.headers(i):e.headers,V=Ct(e.withCredentials)?e.withCredentials(i):e.withCredentials,W={...O};try{let H=Ct(e.basicAuth)?e.basicAuth(i):e.basicAuth;H&&H.username&&H.password&&(W.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):W.Authorization=l1(H.username,H.password))}catch(H){console.warn("Failed to configure basic authentication:",H)}return{reqMethod:w,url:R,args:MC(i,e),headers:W,accept:PC(i,e),withCredentials:V}}async function bv(i,v){let e=Date.now();try{i.emit("queryBefore",i,v);let N=Nv(i,v);if(!N)return;let R=new AbortController,w={method:N.reqMethod,headers:{Accept:N.accept,...N.headers||{}},credentials:N.withCredentials?"include":"same-origin",signal:R.signal};w?.headers&&N.reqMethod==="POST"&&(w.headers["Content-Type"]="application/x-www-form-urlencoded");let O=new URLSearchParams;for(let Z in N.args){let P=N.args[Z];Array.isArray(P)?P.forEach(J=>O.append(Z,J)):O.append(Z,P)}if(N.reqMethod==="POST")w.body=O.toString();else{let Z=new URL(N.url);O.forEach((P,J)=>{Z.searchParams.append(J,P)}),N.url=Z.toString()}let V=new Request(N.url,w);i.emit("query",V,R);let W=await fetch(V);if(!W.ok)throw new Error(await W.text()||W.statusText);let H={ok:W.ok,status:W.status,statusText:W.statusText,headers:W.headers,type:W.type,content:await W.text()};return i.emit("queryResponse",H,Date.now()-e),i.emit("queryResults",H.content,Date.now()-e),H}catch(N){throw N instanceof Error&&N.message==="Aborted"||i.emit("queryResponse",N,Date.now()-e),i.emit("error",N),N}}function MC(i,v){var e=i.getQueryMode(),N={};let R=Rh(i,v);var w=Ct(R.queryArgument)?R.queryArgument(i):R.queryArgument;w||(w=i.getQueryMode()),N[w]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let O=Ct(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 V=Ct(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(V&&V.length>0){let H=e=="query"?"default-graph-uri":"using-graph-uri ";N[H]=O}let W=Ct(R.args)?R.args(i):R.args;return W&&W.length>0&&od(N,W.reduce((H,Z)=>(H[Z.name]?H[Z.name].push(Z.value):H[Z.name]=[Z.value],H),{})),N}function PC(i,v){let e=Rh(i,v);var N=null;if(i.getQueryMode()=="update")N=Ct(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?N=Ct(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Ct(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function Tv(i,v){let e=Nv(i,Rh(i,v));if(!e)return"";let N=e.url;e.url.indexOf("http")!==0&&(N=`${window.location.protocol}//${window.location.host}`,e.url.indexOf("/")===0?N+=e.url:N+=window.location.pathname+e.url);let R=["curl"];e.reqMethod==="GET"?(N+=`?${Iv.stringify(e.args)}`,R.push(N)):e.reqMethod==="POST"?(R.push(N),R.push("--data",Iv.stringify(e.args))):(console.warn("Unexpected request-method",e.reqMethod),R.push(N)),R.push("-X",e.reqMethod);for(let w in e.headers)R.push(`-H '${w}: ${e.headers[w]}'`);return R.join(" ")}var WC='<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 kC='<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>',ad='<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>',_C='<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 HC='<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 yh=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(v,e){if(v.length!=0){var N=this,R,w;if(e===void 0&&(e=0),e===v.length){N.words++;return}N.prefixes++,R=v[e],N.children[R]===void 0&&(N.children[R]=new i),w=N.children[R],w.insert(v,e+1)}}remove(v,e){if(v.length!=0){var N=this,R,w;if(e===void 0&&(e=0),N!==void 0){if(e===v.length){N.words--;return}N.prefixes--,R=v[e],w=N.children[R],w.remove(v,e+1)}}}update(v,e){v.length==0||e.length==0||(this.remove(v),this.insert(e))}countWord(v,e){if(v.length==0)return 0;var N=this,R,w,O=0;return e===void 0&&(e=0),e===v.length?N.words:(R=v[e],w=N.children[R],w!==void 0&&(O=w.countWord(v,e+1)),O)}countPrefix(v,e){if(v.length==0)return 0;var N=this,O,R,w=0;if(e===void 0&&(e=0),e===v.length)return N.prefixes;var O=v[e];return R=N.children[O],R!==void 0&&(w=R.countPrefix(v,e+1)),w}find(v){return v.length==0?!1:this.countWord(v)>0}getAllWords(v){var e=this,N,R,w=[];if(v===void 0&&(v=""),e===void 0)return[];e.words>0&&w.push(v);for(N in e.children)e.children.hasOwnProperty(N)&&(R=e.children[N],w=w.concat(R.getAllWords(v+N)));return w}autoComplete(v,e){var N=this,R,w;return v.length==0?e===void 0?N.getAllWords(v):[]:(e===void 0&&(e=0),R=v[e],w=N.children[R],w===void 0?[]:e===v.length-1?w.getAllWords(v):w.autoComplete(v,e+1))}};var aA=$t(tA());var Lv=$t(si());var v1={name:"variables",isValidCompletionPosition:function(i){var v=i.getTokenAt(i.getDoc().getCursor());return!!(v.type!="ws"&&(v=i.getCompleteToken(v),v&&(v.string[0]==="?"||v.string[0]==="$")))},get:function(i,v){if(!v||v.string.length==0)return[];let e={},N=[],R=i.getWrapperElement().querySelectorAll(".cm-atom");for(let O=0;O<R.length;O++){let V=R[O];var w=V.innerHTML;if(w[0]==="?"||w[0]==="$"){let W=V.nextSibling;if(W&&W.className&&W.className.indexOf("cm-atom")>=0&&(w+=W.innerText),e[w]||w.length<=1||w.indexOf(v.string)!==0||w===v.string)continue;e[w]=!0,N.push(w)}}return N.sort()},bulk:!1,autoShow:!0},iA=v1;var m1={"string-2":"prefixed",atom:"var"},x1={postprocessHints:function(i,v){return Cv(v,e=>e.text.split(":")[0])},onInitialize:function(i){i.on("change",()=>{if(!(!i.config.autocompleters||i.config.autocompleters.indexOf(this.name)==-1)){var v=i.getDoc().getCursor(),e=i.getTokenAt(v);if(e.type&&m1[e.type]=="prefixed"){var N=e.string.indexOf(":");if(N!==-1){var R=i.getPreviousNonWsToken(v.line,e).string.toUpperCase(),w=i.getTokenAt({line:v.line,ch:e.start});if(R!=="PREFIX"&&(w.type=="ws"||w.type==null||w.type==="punc"&&(w.string==="|"||w.string==="/"||w.string=="^^"||w.string=="{"||w.string==="("))){var O=e.string.substring(0,N+1),V=i.getPrefixesFromQuery();V[O.slice(0,-1)]==null&&(e.autocompletionString=O,i.autocompleters[this.name]?.getCompletions(e).then(W=>{W.length&&(i.addPrefixes(W[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var v=i.getDoc().getCursor(),e=i.getTokenAt(v);if(i.getDoc().getLine(v.line).length>v.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(v.line,e);return!(!N||N.string.toUpperCase()!="PREFIX")},get:function(i){return fetch(i.config.prefixCcApi).then(v=>{if(!v.ok)throw new Error("Failed to fetch prefixes");return v.json()}).then(v=>{let e=[];for(let N in v){let R=`${N}: <${v[N]}>`;e.push(R)}return e.sort()})},preProcessToken:function(i,v){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,v);return e&&e.string&&e.string.slice(-1)==":"&&(v={start:e.start,end:v.end,string:e.string+" "+v.string,state:v.state,type:v.type}),v},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},sA=x1;var C1={onInitialize:function(i){},get:function(i,v){return cd(i,"property",v)},isValidCompletionPosition:function(i){let v=i.getCompleteToken();return v.string.length==0||v.string[0]==="?"||v.string[0]==="$"?!1:v.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(i,v){return fd(i,v)},postProcessSuggestion:function(i,v,e){return pd(i,v,e)},bulk:!1,name:"property"},nA=C1;var A1={onInitialize:function(i){},get:function(i,v){return cd(i,"class",v)},isValidCompletionPosition:function(i){let v=i.getCompleteToken();if(v.string[0]==="?"||v.string[0]==="$")return!1;let e=i.getDoc().getCursor(),N=i.getPreviousNonWsToken(e.line,v);return N.state.lastProperty==="a"||N.state.lastProperty==="rdf:type"||N.state.lastProperty==="rdfs:domain"||N.state.lastProperty==="rdfs:range"},preProcessToken:function(i,v){return fd(i,v)},postProcessSuggestion:function(i,v,e){return pd(i,v,e)},bulk:!1,name:"class"},oA=A1;var I1=100,hd=class extends aA.EventEmitter{constructor(v,e){super(),this.yasqe=v,this.config=e}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(v){if(!(!v||!(v instanceof Array))){this.trie=new yh;for(let N of v)this.trie.insert(N);var e=this.getStorageId();e&&this.yasqe.storage.set(e,v,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(v){if(!this.config.get)return Promise.resolve([]);if(!v)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=v.autocompletionString||v.string;return this.trie?Promise.resolve(Av(this.trie.autoComplete(e),I1)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(N=>N.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,v)).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 v,e=this.getStorageId();return e&&(v=this.yasqe.storage.get(e)),v&&v.length>0?(this.storeBulkCompletions(v),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(v,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,v,e));let N,R,w=this.yasqe.getDoc().getCursor();v.from&&(N={...w,...v.from});let O=this.yasqe.getDoc().getCursor().line;return v.to?R={ch:v?.to?.ch||this.yasqe.getCompleteToken().end,line:O}:v.string.length>0?R={ch:this.yasqe.getCompleteToken().end,line:O}:R=v.from,{text:e,displayText:e,from:N,to:R}}getHints(v){return this.config.preProcessToken&&(v=this.config.preProcessToken(this.yasqe,v)),v?this.getCompletions(v).then(e=>e.map(N=>this.getHint(v,N))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}autocomplete(v){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--),v&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let R=()=>this.getHints(this.yasqe.getCompleteToken()).then(O=>{let V=this.yasqe.getDoc().getCursor(),W=this.yasqe.getCompleteToken(),H={list:O,from:{line:V.line,ch:W.start},to:{line:V.line,ch:W.end}};return Lv.default.on(H,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),Lv.default.on(H,"close",()=>{this.yasqe.emit("autocompletionClose")}),H});R.async=!1;var w={closeCharacters:/[\s>"]/,completeSingle:!1,hint:R,container:this.yasqe.rootEl,extraKeys:{Home:(O,V)=>{O.getDoc().setCursor({ch:0,line:V.data.from.line})},End:(O,V)=>{O.getDoc().setCursor({ch:O.getLine(V.data.to.line).length,line:V.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(w),!0}};function fd(i,v){let e=i.getPrefixesFromQuery(),N=v.string;if(N.indexOf("<")<0&&(v.tokenPrefix=N.substring(0,N.indexOf(":")+1),e[v.tokenPrefix.slice(0,-1)]!=null&&(v.tokenPrefixUri=e[v.tokenPrefix.slice(0,-1)])),v.autocompletionString=N.trim(),N.indexOf("<")<0&&N.indexOf(":")>-1){for(var R in e)if(v.tokenPrefix===R+":"){v.autocompletionString=e[R],v.autocompletionString+=N.substring(R.length+1);break}}return v.autocompletionString.indexOf("<")==0&&(v.autocompletionString=v.autocompletionString.substring(1)),v.autocompletionString.indexOf(">",v.autocompletionString.length-1)>0&&(v.autocompletionString=v.autocompletionString.substring(0,v.autocompletionString.length-1)),v}function pd(i,v,e){return v.tokenPrefix&&v.autocompletionString&&v.tokenPrefixUri?e=v.tokenPrefix+e.substring(v.tokenPrefixUri.length):e="<"+e+">",e}var cd=(i,v,e)=>{var N=window.location.protocol.indexOf("http")===0?"https://":"http://";let R="autocomplete_"+v;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(R,"Nothing to autocomplete yet!"),Promise.resolve([]);let w=new URLSearchParams;e.autocompletionString&&w.append("q",e.autocompletionString),w.append("page_size","50"),w.append("type",v);let O=`${N}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${w.toString()}`;return fetch(O).then(V=>{if(!V.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return V.json()}).then(V=>V.results?V.results.map(W=>W.uri[0]):[]).catch(V=>{i.showNotification(R,"Failed fetching suggestions")})},lA=[iA,sA,nA,oA];var uA=$t(Bh()),dd=$t(si());function wv(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
33
+ `),Ke=Y.line+Pe.length-1,ve=Pe[Pe.length-1].length;return{from:v(Ke,ve),to:v(Ke+Me.length-1,Me.length==1?ve+Me[0].length:Me[Me.length-1].length),match:we}}}}function V(B,D,Y){for(var q,te=0;te<=B.length;){D.lastIndex=te;var ie=D.exec(B);if(!ie)break;var le=ie.index+ie[0].length;if(le>B.length-Y)break;(!q||le>q.index+q[0].length)&&(q=ie),te=ie.index+1}return q}function Z(B,D,Y){D=N(D,"g");for(var q=Y.line,te=Y.ch,ie=B.firstLine();q>=ie;q--,te=-1){var le=B.getLine(q),Ee=V(le,D,te<0?0:le.length-te);if(Ee)return{from:v(q,Ee.index),to:v(q,Ee.index+Ee[0].length),match:Ee}}}function H(B,D,Y){if(!y(D))return Z(B,D,Y);D=N(D,"gm");for(var q,te=1,ie=B.getLine(Y.line).length-Y.ch,le=Y.line,Ee=B.firstLine();le>=Ee;){for(var ke=0;ke<te&&le>=Ee;ke++){var we=B.getLine(le--);q=q==null?we:we+`
34
+ `+q}te*=2;var Pe=V(q,D,ie);if(Pe){var Me=q.slice(0,Pe.index).split(`
35
+ `),Ke=Pe[0].split(`
36
+ `),ve=le+Me.length,xr=Me[Me.length-1].length;return{from:v(ve,xr),to:v(ve+Ke.length-1,Ke.length==1?xr+Ke[0].length:Ke[Ke.length-1].length),match:Pe}}}}var _,W;String.prototype.normalize?(_=function(B){return B.normalize("NFD").toLowerCase()},W=function(B){return B.normalize("NFD")}):(_=function(B){return B.toLowerCase()},W=function(B){return B});function J(B,D,Y,q){if(B.length==D.length)return Y;for(var te=0,ie=Y+Math.max(0,B.length-D.length);;){if(te==ie)return te;var le=te+ie>>1,Ee=q(B.slice(0,le)).length;if(Ee==Y)return le;Ee>Y?ie=le:te=le+1}}function M(B,D,Y,q){if(!D.length)return null;var te=q?_:W,ie=te(D).split(/\r|\n\r?/);e:for(var le=Y.line,Ee=Y.ch,ke=B.lastLine()+1-ie.length;le<=ke;le++,Ee=0){var we=B.getLine(le).slice(Ee),Pe=te(we);if(ie.length==1){var Me=Pe.indexOf(ie[0]);if(Me==-1)continue e;var Y=J(we,Pe,Me,te)+Ee;return{from:v(le,J(we,Pe,Me,te)+Ee),to:v(le,J(we,Pe,Me+ie[0].length,te)+Ee)}}else{var Ke=Pe.length-ie[0].length;if(Pe.slice(Ke)!=ie[0])continue e;for(var ve=1;ve<ie.length-1;ve++)if(te(B.getLine(le+ve))!=ie[ve])continue e;var xr=B.getLine(le+ie.length-1),Cr=te(xr),ur=ie[ie.length-1];if(Cr.slice(0,ur.length)!=ur)continue e;return{from:v(le,J(we,Pe,Ke,te)+Ee),to:v(le+ie.length-1,J(xr,Cr,ur.length,te))}}}}function z(B,D,Y,q){if(!D.length)return null;var te=q?_:W,ie=te(D).split(/\r|\n\r?/);e:for(var le=Y.line,Ee=Y.ch,ke=B.firstLine()-1+ie.length;le>=ke;le--,Ee=-1){var we=B.getLine(le);Ee>-1&&(we=we.slice(0,Ee));var Pe=te(we);if(ie.length==1){var Me=Pe.lastIndexOf(ie[0]);if(Me==-1)continue e;return{from:v(le,J(we,Pe,Me,te)),to:v(le,J(we,Pe,Me+ie[0].length,te))}}else{var Ke=ie[ie.length-1];if(Pe.slice(0,Ke.length)!=Ke)continue e;for(var ve=1,Y=le-ie.length+1;ve<ie.length-1;ve++)if(te(B.getLine(Y+ve))!=ie[ve])continue e;var xr=B.getLine(le+1-ie.length),Cr=te(xr);if(Cr.slice(Cr.length-ie[0].length)!=ie[0])continue e;return{from:v(le+1-ie.length,J(xr,Cr,xr.length-ie[0].length,te)),to:v(le,J(we,Pe,Ke.length,te))}}}}function $(B,D,Y,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=B,Y=Y?B.clipPos(Y):v(0,0),this.pos={from:Y,to:Y};var te;typeof q=="object"?te=q.caseFold:(te=q,q=null),typeof D=="string"?(te==null&&(te=!1),this.matches=function(ie,le){return(ie?z:M)(B,D,le,te)}):(D=N(D,"gm"),!q||q.multiline!==!1?this.matches=function(ie,le){return(ie?H:G)(B,D,le)}:this.matches=function(ie,le){return(ie?Z:w)(B,D,le)})}$.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(B){var D=this.doc.clipPos(B?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(D=v(D.line,D.ch),B?(D.ch--,D.ch<0&&(D.line--,D.ch=(this.doc.getLine(D.line)||"").length)):(D.ch++,D.ch>(this.doc.getLine(D.line)||"").length&&(D.ch=0,D.line++)),i.cmpPos(D,this.doc.clipPos(D))!=0))return this.atOccurrence=!1;var Y=this.matches(B,D);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=v(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,D){if(this.atOccurrence){var Y=i.splitLines(B);this.doc.replaceRange(Y,this.pos.from,this.pos.to,D),this.pos.to=v(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,D,Y){return new $(this.doc,B,D,Y)}),i.defineDocExtension("getSearchCursor",function(B,D,Y){return new $(this,B,D,Y)}),i.defineExtension("selectMatches",function(B,D){for(var Y=[],q=this.getSearchCursor(B,this.getCursor("from"),D);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 FA=br((UA,GA)=>{(function(i){typeof UA=="object"&&typeof GA=="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 v(this,e)}),i.defineOption("scrollButtonHeight",0);function v(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 y(G){clearTimeout(w.doRedraw),w.doRedraw=setTimeout(function(){w.redraw()},G)}var w=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(w.doUpdate),w.doUpdate=setTimeout(function(){w.computeScale()&&y(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),N.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){y(250)})}v.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},v.prototype.update=function(e){this.annotations=e,this.redraw()},v.prototype.redraw=function(e){e!==!1&&this.computeScale();var N=this.cm,y=this.hScale,w=document.createDocumentFragment(),G=this.annotations,V=N.getOption("lineWrapping"),Z=V&&N.defaultTextHeight()*1.5,H=null,_=null;function W(te,ie){if(H!=te.line){H=te.line,_=N.getLineHandle(te.line);var le=N.getLineHandleVisualStart(_);le!=_&&(H=N.getLineNumber(le),_=le)}if(_.widgets&&_.widgets.length||V&&_.height>Z)return N.charCoords(te,"local")[ie?"top":"bottom"];var Ee=N.heightAtLine(_,"local");return Ee+(ie?0:_.height)}var J=N.lastLine();if(N.display.barWidth)for(var M=0,z;M<G.length;M++){var $=G[M];if(!($.to.line>J)){for(var B=z||W($.from,!0)*y,D=W($.to,!1)*y;M<G.length-1&&!(G[M+1].to.line>J||(z=W(G[M+1].from,!0)*y,z>D+.9));)$=G[++M],D=W($.to,!1)*y;if(D!=B){var Y=Math.max(D-B,3),q=w.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,$.id&&q.setAttribute("annotation-id",$.id)}}}this.div.textContent="",this.div.appendChild(w)},v.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 VA=br((BA,DA)=>{(function(i){typeof BA=="object"&&typeof DA=="object"?i(si(),Gv(),FA()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(y,w,G){return typeof G=="string"&&(G={className:G}),G||(G={}),new v(this,y,w,G)});function v(y,w,G,V){this.cm=y,this.options=V;var Z={listenForChanges:!1};for(var H in V)Z[H]=V[H];Z.className||(Z.className="CodeMirror-search-match"),this.annotation=y.annotateScrollbar(Z),this.query=w,this.caseFold=G,this.gap={from:y.firstLine(),to:y.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var _=this;y.on("change",this.changeHandler=function(W,J){_.onChange(J)})}var e=1e3;v.prototype.findMatches=function(){if(this.gap){for(var y=0;y<this.matches.length;y++){var w=this.matches[y];if(w.from.line>=this.gap.to)break;w.to.line>=this.gap.from&&this.matches.splice(y--,1)}for(var G=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),V=this.options&&this.options.maxMatches||e;G.findNext();){var w={from:G.from(),to:G.to()};if(w.from.line>=this.gap.to||(this.matches.splice(y++,0,w),this.matches.length>V))break}this.gap=null}};function N(y,w,G){return y<=w?y:Math.max(w,y+G)}v.prototype.onChange=function(y){var w=y.from.line,G=i.changeEnd(y).line,V=G-y.to.line;if(this.gap?(this.gap.from=Math.min(N(this.gap.from,w,V),y.from.line),this.gap.to=Math.max(N(this.gap.to,w,V),y.from.line)):this.gap={from:y.from.line,to:G+1},V)for(var Z=0;Z<this.matches.length;Z++){var H=this.matches[Z],_=N(H.from.line,w,V);_!=H.from.line&&(H.from=i.Pos(_,H.from.ch));var W=N(H.to.line,w,V);W!=H.to.line&&(H.to=i.Pos(W,H.to.ch))}clearTimeout(this.update);var J=this;this.update=setTimeout(function(){J.updateAfterChange()},250)},v.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},v.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var PA=br((MA,WA)=>{(function(i){typeof MA=="object"&&typeof WA=="object"?i(si(),VA()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var v={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e(J){this.options={};for(var M in v)this.options[M]=(J&&J.hasOwnProperty(M)?J:v)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function(J,M,z){if(z&&z!=i.Init&&(V(J),clearTimeout(J.state.matchHighlighter.timeout),J.state.matchHighlighter=null,J.off("cursorActivity",N),J.off("focus",y)),M){var $=J.state.matchHighlighter=new e(M);J.hasFocus()?($.active=!0,Z(J)):J.on("focus",y),J.on("cursorActivity",N)}});function N(J){var M=J.state.matchHighlighter;(M.active||J.hasFocus())&&w(J,M)}function y(J){var M=J.state.matchHighlighter;M.active||(M.active=!0,w(J,M))}function w(J,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){Z(J)},M.options.delay)}function G(J,M,z,$){var B=J.state.matchHighlighter;if(J.addOverlay(B.overlay=W(M,z,$)),B.options.annotateScrollbar&&J.showMatchesOnScrollbar){var D=z?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;B.matchesonscroll=J.showMatchesOnScrollbar(D,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function V(J){var M=J.state.matchHighlighter;M.overlay&&(J.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function Z(J){J.operation(function(){var M=J.state.matchHighlighter;if(V(J),!J.somethingSelected()&&M.options.showToken){for(var z=M.options.showToken===!0?/[\w$]/:M.options.showToken,$=J.getCursor(),B=J.getLine($.line),D=$.ch,Y=D;D&&z.test(B.charAt(D-1));)--D;for(;Y<B.length&&z.test(B.charAt(Y));)++Y;D<Y&&G(J,B.slice(D,Y),z,M.options.style);return}var q=J.getCursor("from"),te=J.getCursor("to");if(q.line==te.line&&!(M.options.wordsOnly&&!H(J,q,te))){var ie=J.getRange(q,te);M.options.trim&&(ie=ie.replace(/^\s+|\s+$/g,"")),ie.length>=M.options.minChars&&G(J,ie,!1,M.options.style)}})}function H(J,M,z){var $=J.getRange(M,z);if($.match(/^\w+$/)!==null){if(M.ch>0){var B={line:M.line,ch:M.ch-1},D=J.getRange(B,M);if(D.match(/\W/)===null)return!1}if(z.ch<J.getLine(M.line).length){var B={line:z.line,ch:z.ch+1},D=J.getRange(z,B);if(D.match(/\W/)===null)return!1}return!0}else return!1}function _(J,M){return(!J.start||!M.test(J.string.charAt(J.start-1)))&&(J.pos==J.string.length||!M.test(J.string.charAt(J.pos)))}function W(J,M,z){return{token:function($){if($.match(J)&&(!M||_($,M)))return z;$.next(),$.skipTo(J.charAt(0))||$.skipToEnd()}}}})});var QA=br((ZA,kA)=>{(function(i){typeof ZA=="object"&&typeof kA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,N={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function y(_){return _&&_.bracketRegex||/[(){}[\]]/}function w(_,W,J){var M=_.getLineHandle(W.line),z=W.ch-1,$=J&&J.afterCursor;$==null&&($=/(^| )cm-fat-cursor($| )/.test(_.getWrapperElement().className));var B=y(J),D=!$&&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(!D)return null;var Y=D.charAt(1)==">"?1:-1;if(J&&J.strict&&Y>0!=(z==W.ch))return null;var q=_.getTokenTypeAt(e(W.line,z+1)),te=G(_,e(W.line,z+(Y>0?1:0)),Y,q,J);return te==null?null:{from:e(W.line,z),to:te&&te.pos,match:te&&te.ch==D.charAt(0),forward:Y>0}}function G(_,W,J,M,z){for(var $=z&&z.maxScanLineLength||1e4,B=z&&z.maxScanLines||1e3,D=[],Y=y(z),q=J>0?Math.min(W.line+B,_.lastLine()+1):Math.max(_.firstLine()-1,W.line-B),te=W.line;te!=q;te+=J){var ie=_.getLine(te);if(ie){var le=J>0?0:ie.length-1,Ee=J>0?ie.length:-1;if(!(ie.length>$))for(te==W.line&&(le=W.ch-(J<0?1:0));le!=Ee;le+=J){var ke=ie.charAt(le);if(Y.test(ke)&&(M===void 0||(_.getTokenTypeAt(e(te,le+1))||"")==(M||""))){var we=N[ke];if(we&&we.charAt(1)==">"==J>0)D.push(ke);else if(D.length)D.pop();else return{pos:e(te,le),ch:ke}}}}}return te-J==(J>0?_.lastLine():_.firstLine())?!1:null}function V(_,W,J){for(var M=_.state.matchBrackets.maxHighlightLineLength||1e3,z=J&&J.highlightNonMatching,$=[],B=_.listSelections(),D=0;D<B.length;D++){var Y=B[D].empty()&&w(_,B[D].head,J);if(Y&&(Y.match||z!==!1)&&_.getLine(Y.from.line).length<=M){var q=Y.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";$.push(_.markText(Y.from,e(Y.from.line,Y.from.ch+1),{className:q})),Y.to&&_.getLine(Y.to.line).length<=M&&$.push(_.markText(Y.to,e(Y.to.line,Y.to.ch+1),{className:q}))}}if($.length){v&&_.state.focused&&_.focus();var te=function(){_.operation(function(){for(var ie=0;ie<$.length;ie++)$[ie].clear()})};if(W)setTimeout(te,800);else return te}}function Z(_){_.operation(function(){_.state.matchBrackets.currentlyHighlighted&&(_.state.matchBrackets.currentlyHighlighted(),_.state.matchBrackets.currentlyHighlighted=null),_.state.matchBrackets.currentlyHighlighted=V(_,!1,_.state.matchBrackets)})}function H(_){_.state.matchBrackets&&_.state.matchBrackets.currentlyHighlighted&&(_.state.matchBrackets.currentlyHighlighted(),_.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(_,W,J){J&&J!=i.Init&&(_.off("cursorActivity",Z),_.off("focus",Z),_.off("blur",H),H(_)),W&&(_.state.matchBrackets=typeof W=="object"?W:{},_.on("cursorActivity",Z),_.on("focus",Z),_.on("blur",H))}),i.defineExtension("matchBrackets",function(){V(this,!0)}),i.defineExtension("findMatchingBracket",function(_,W,J){return(J||typeof W=="boolean")&&(J?(J.strict=W,W=J):W=W?{strict:!0}:null),w(this,_,W)}),i.defineExtension("scanForBracket",function(_,W,J,M){return G(this,_,W,J,M)})})});var YA=br((_A,HA)=>{(function(i){typeof _A=="object"&&typeof HA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(v,e,N,y){var w=i.getMode(i.defaults,e),G=y&&y.tabSize||i.defaults.tabSize;if(N.appendChild){var V=/MSIE \d/.test(navigator.userAgent),Z=V&&(document.documentMode==null||document.documentMode<9),H=N,_=0;H.textContent="",N=function(D,Y){if(D==`
37
+ `){H.appendChild(document.createTextNode(Z?"\r":D)),_=0;return}for(var q="",te=0;;){var ie=D.indexOf(" ",te);if(ie==-1){q+=D.slice(te),_+=D.length-te;break}else{_+=ie-te,q+=D.slice(te,ie);var le=G-_%G;_+=le;for(var Ee=0;Ee<le;++Ee)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 W=i.splitLines(v),J=y&&y.state||i.startState(w),M=0,z=W.length;M<z;++M){M&&N(`
38
+ `);var $=new i.StringStream(W[M],null,{lookAhead:function(D){return W[M+D]},baseToken:function(){}});for(!$.string&&w.blankLine&&w.blankLine(J);!$.eol();){var B=w.token($,J);N($.current(),B,M,$.start,J,w),$.start=$.pos}}}})});var j1={};_v(j1,{Yasqe:()=>Hf,default:()=>z1});var lh=Yt(si());function Yv(i,v,e){return e||(e=i.getDoc().getCursor()),v||(v=i.getTokenAt(e)),$v(i,Xv(i,v,e),e)}function Xv(i,v,e){var N=i.getTokenAt({line:e.line,ch:v.start});return(v.type==="punc"||v.type==="error")&&!v.state.possibleFullIri&&!v.state.inPrefixDecl?(v.state.possibleCurrent=v.state.possibleNext,v):N.type==="punc"&&!N.state.possibleFullIri&&!N.state.inPrefixDecl?v:N.type!=null&&N.type!="ws"&&v.type!=null&&v.type!="ws"?(v.start=N.start,v.string=N.string+v.string,Xv(i,v,{line:e.line,ch:N.start})):(v.type!=null&&v.type=="ws"&&(v.start=v.start+1,v.string=v.string.substring(1)),v)}function $v(i,v,e){if(v.string.indexOf(" ")>=0){let y=v.string.indexOf(" ");return v.string=v.string.substr(0,y),v.end=v.start+v.string.length,v}if(!v.type)return v;var N=i.getTokenAt({line:e.line,ch:v.end+1});return N.type!=="ws"&&v.state.possibleFullIri&&v.type!==null&&v.type!=="ws"&&N.end!==v.end?(v.end=N.end,v.string=v.string+N.string,$v(i,v,{line:e.line,ch:N.end})):(v.type==="ws"&&(v.end=v.end+1,v.string=v.string.substring(v.string.length-1)),v)}function HE(i,v,e){var N=i.getTokenAt({line:v,ch:e.start});return N!=null&&N.type=="ws"&&(N=HE(i,v,N)),N}function bf(i,v,e){e==null&&(e=1);var N=i.getTokenAt({line:v,ch:e});if(!(N==null||N==null||N.end<e))return N.type=="ws"?bf(i,v,N.end+1):N}var Oh="PREFIX ";function Jv(i){for(var v=i.getDoc().lastLine(),e=0;e<=v;++e){let N=zv(i,e);if(N!=null&&N>=0)return e}}function zv(i,v,e=0,N){if(N||(N=i.getDoc().getLine(v)),!N)return;N=N.toUpperCase();let y=N.indexOf(Oh,e);if(y>=0&&i.getTokenTypeAt(lh.default.Pos(v,y+1))==="keyword")return y}function jv(i,v){var e=v.line,N=i.getDoc().getLine(e);function y(){for(var D=!1,Y=e-1;Y>=0;Y--)if(i.getDoc().getLine(Y).toUpperCase().indexOf(Oh)>=0){D=!0;break}return D}var w=function(D,Y){var q=i.getTokenAt(lh.default.Pos(D,Y+1));if(!q||q.type!="keyword")return-1;var te=bf(i,D,q.end+1);if(!te||te.type!="string-2")return-1;var ie=bf(i,D,te.end+1);return!ie||ie.type!="variable-3"?-1:ie.end};if(!y()){var G=zv(i,e,v.ch,N);if(G!=null){for(var V="{",Z=!1,H=i.getDoc().lastLine(),_,W=w(e,G),J=e,M=e;M<=H&&!Z;++M)for(var z=i.getDoc().getLine(M),$=M==e?G+1:0;;){!Z&&z.indexOf(V)>=0&&(Z=!0);var B=z.toUpperCase().indexOf(Oh,$);if(B>=0)(_=w(M,B))>0&&(W=_,J=M,$=W),$++;else break}return{from:lh.default.Pos(e,G+Oh.length),to:lh.default.Pos(J,W)}}}}function Kv(i,v){var e=i.getPrefixesFromQuery();if(typeof v=="string")qv(i,v);else for(var N in v)N in e||qv(i,N+": <"+v[N]+">");i.collapsePrefixes(!1)}function qv(i,v){i.getDoc().replaceRange("PREFIX "+v+`
39
+ `,{line:0,ch:0}),i.collapsePrefixes(!1)}function em(i,v){var e=function(y){return y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var N in v)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+N+":\\s*"+e("<"+v[N]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function rm(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:fm,setPrototypeOf:tm,isFrozen:fI,getPrototypeOf:pI,getOwnPropertyDescriptor:cI}=Object,{freeze:ci,seal:ms,create:qE}=Object,{apply:KE,construct:ev}=typeof Reflect<"u"&&Reflect;ci||(ci=function(v){return v});ms||(ms=function(v){return v});KE||(KE=function(v,e){for(var N=arguments.length,y=new Array(N>2?N-2:0),w=2;w<N;w++)y[w-2]=arguments[w];return v.apply(e,y)});ev||(ev=function(v){for(var e=arguments.length,N=new Array(e>1?e-1:0),y=1;y<e;y++)N[y-1]=arguments[y];return new v(...N)});var Uh=hi(Array.prototype.forEach),hI=hi(Array.prototype.lastIndexOf),im=hi(Array.prototype.pop),uh=hi(Array.prototype.push),dI=hi(Array.prototype.splice),Fh=hi(String.prototype.toLowerCase),YE=hi(String.prototype.toString),XE=hi(String.prototype.match),fh=hi(String.prototype.replace),gI=hi(String.prototype.indexOf),EI=hi(String.prototype.trim),Js=hi(Object.prototype.hasOwnProperty),pi=hi(RegExp.prototype.test),ph=vI(TypeError);function hi(i){return function(v){v instanceof RegExp&&(v.lastIndex=0);for(var e=arguments.length,N=new Array(e>1?e-1:0),y=1;y<e;y++)N[y-1]=arguments[y];return KE(i,v,N)}}function vI(i){return function(){for(var v=arguments.length,e=new Array(v),N=0;N<v;N++)e[N]=arguments[N];return ev(i,e)}}function sr(i,v){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Fh;tm&&tm(i,null);let N=v.length;for(;N--;){let y=v[N];if(typeof y=="string"){let w=e(y);w!==y&&(fI(v)||(v[N]=w),y=w)}i[y]=!0}return i}function mI(i){for(let v=0;v<i.length;v++)Js(i,v)||(i[v]=null);return i}function Vn(i){let v=qE(null);for(let[e,N]of fm(i))Js(i,e)&&(Array.isArray(N)?v[e]=mI(N):N&&typeof N=="object"&&N.constructor===Object?v[e]=Vn(N):v[e]=N);return v}function ch(i,v){for(;i!==null;){let N=cI(i,v);if(N){if(N.get)return hi(N.get);if(typeof N.value=="function")return hi(N.value)}i=pI(i)}function e(){return null}return e}var sm=ci(["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"]),$E=ci(["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=ci(["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"]),xI=ci(["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"]),zE=ci(["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"]),CI=ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),nm=ci(["#text"]),om=ci(["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"]),jE=ci(["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"]),am=ci(["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"]),Gh=ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),AI=ms(/\{\{[\w\W]*|[\w\W]*\}\}/gm),II=ms(/<%[\w\W]*|[\w\W]*%>/gm),NI=ms(/\$\{[\w\W]*/gm),bI=ms(/^data-[\-\w.\u00B7-\uFFFF]+$/),TI=ms(/^aria-[\-\w]+$/),pm=ms(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),yI=ms(/^(?:\w+script|data):/i),RI=ms(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),cm=ms(/^html$/i),SI=ms(/^[a-z][.\w]*(-[.\w]+)+$/i),lm=Object.freeze({__proto__:null,ARIA_ATTR:TI,ATTR_WHITESPACE:RI,CUSTOM_ELEMENT:SI,DATA_ATTR:bI,DOCTYPE_NAME:cm,ERB_EXPR:II,IS_ALLOWED_URI:pm,IS_SCRIPT_OR_DATA:yI,MUSTACHE_EXPR:AI,TMPLIT_EXPR:NI}),hh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},LI=function(){return typeof window>"u"?null:window},wI=function(v,e){if(typeof v!="object"||typeof v.createPolicy!="function")return null;let N=null,y="data-tt-policy-suffix";e&&e.hasAttribute(y)&&(N=e.getAttribute(y));let w="dompurify"+(N?"#"+N:"");try{return v.createPolicy(w,{createHTML(G){return G},createScriptURL(G){return G}})}catch{return console.warn("TrustedTypes policy "+w+" could not be created."),null}},um=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function hm(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LI(),v=De=>hm(De);if(v.version="3.3.1",v.removed=[],!i||!i.document||i.document.nodeType!==hh.document||!i.Element)return v.isSupported=!1,v;let{document:e}=i,N=e,y=N.currentScript,{DocumentFragment:w,HTMLTemplateElement:G,Node:V,Element:Z,NodeFilter:H,NamedNodeMap:_=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:W,DOMParser:J,trustedTypes:M}=i,z=Z.prototype,$=ch(z,"cloneNode"),B=ch(z,"remove"),D=ch(z,"nextSibling"),Y=ch(z,"childNodes"),q=ch(z,"parentNode");if(typeof G=="function"){let De=e.createElement("template");De.content&&De.content.ownerDocument&&(e=De.content.ownerDocument)}let te,ie="",{implementation:le,createNodeIterator:Ee,createDocumentFragment:ke,getElementsByTagName:we}=e,{importNode:Pe}=N,Me=um();v.isSupported=typeof fm=="function"&&typeof q=="function"&&le&&le.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ke,ERB_EXPR:ve,TMPLIT_EXPR:xr,DATA_ATTR:Cr,ARIA_ATTR:ur,IS_SCRIPT_OR_DATA:Jr,ATTR_WHITESPACE:Je,CUSTOM_ELEMENT:St}=lm,{IS_ALLOWED_URI:Lt}=lm,cr=null,wt=sr({},[...sm,...$E,...JE,...zE,...nm]),or=null,ut=sr({},[...om,...jE,...am,...Gh]),ze=Object.seal(qE(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,Zr=Object.seal(qE(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),hr=!0,Kt=!0,Oe=!1,pe=!0,Er=!1,fr=!0,Re=!1,Ur=!1,ei=!1,Ie=!1,Ot=!1,ft=!1,Nt=!0,es=!1,Be="user-content-",pt=!0,Se=!1,rr={},at=null,ct=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"]),Ui=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,Ue=!1,ni=null,kr=sr({},[bt,ii,Tr],YE),ar=sr({},["mi","mo","mn","ms","mtext"]),dr=sr({},["annotation-xml"]),rs=sr({},["title","style","font","a","script"]),tr=null,ts=["application/xhtml+xml","text/html"],ht="text/html",Vr=null,Ei=null,Is=e.createElement("form"),en=function(K){return K instanceof RegExp||K instanceof Function},rn=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ei&&Ei===K)){if((!K||typeof K!="object")&&(K={}),K=Vn(K),tr=ts.indexOf(K.PARSER_MEDIA_TYPE)===-1?ht:K.PARSER_MEDIA_TYPE,Vr=tr==="application/xhtml+xml"?YE:Fh,cr=Js(K,"ALLOWED_TAGS")?sr({},K.ALLOWED_TAGS,Vr):wt,or=Js(K,"ALLOWED_ATTR")?sr({},K.ALLOWED_ATTR,Vr):ut,ni=Js(K,"ALLOWED_NAMESPACES")?sr({},K.ALLOWED_NAMESPACES,YE):kr,Ui=Js(K,"ADD_URI_SAFE_ATTR")?sr(Vn(ti),K.ADD_URI_SAFE_ATTR,Vr):ti,Nr=Js(K,"ADD_DATA_URI_TAGS")?sr(Vn(ri),K.ADD_DATA_URI_TAGS,Vr):ri,at=Js(K,"FORBID_CONTENTS")?sr({},K.FORBID_CONTENTS,Vr):ct,zr=Js(K,"FORBID_TAGS")?sr({},K.FORBID_TAGS,Vr):Vn({}),Ar=Js(K,"FORBID_ATTR")?sr({},K.FORBID_ATTR,Vr):Vn({}),rr=Js(K,"USE_PROFILES")?K.USE_PROFILES:!1,hr=K.ALLOW_ARIA_ATTR!==!1,Kt=K.ALLOW_DATA_ATTR!==!1,Oe=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,Re=K.WHOLE_DOCUMENT||!1,Ie=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,es=K.SANITIZE_NAMED_PROPS||!1,pt=K.KEEP_CONTENT!==!1,Se=K.IN_PLACE||!1,Lt=K.ALLOWED_URI_REGEXP||pm,Ut=K.NAMESPACE||Tr,ar=K.MATHML_TEXT_INTEGRATION_POINTS||ar,dr=K.HTML_INTEGRATION_POINTS||dr,ze=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&en(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ze.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&en(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ze.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ze.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Er&&(Kt=!1),Ot&&(Ie=!0),rr&&(cr=sr({},nm),or=[],rr.html===!0&&(sr(cr,sm),sr(or,om)),rr.svg===!0&&(sr(cr,$E),sr(or,jE),sr(or,Gh)),rr.svgFilters===!0&&(sr(cr,JE),sr(or,jE),sr(or,Gh)),rr.mathMl===!0&&(sr(cr,zE),sr(or,am),sr(or,Gh))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?Zr.tagCheck=K.ADD_TAGS:(cr===wt&&(cr=Vn(cr)),sr(cr,K.ADD_TAGS,Vr))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?Zr.attributeCheck=K.ADD_ATTR:(or===ut&&(or=Vn(or)),sr(or,K.ADD_ATTR,Vr))),K.ADD_URI_SAFE_ATTR&&sr(Ui,K.ADD_URI_SAFE_ATTR,Vr),K.FORBID_CONTENTS&&(at===ct&&(at=Vn(at)),sr(at,K.FORBID_CONTENTS,Vr)),K.ADD_FORBID_CONTENTS&&(at===ct&&(at=Vn(at)),sr(at,K.ADD_FORBID_CONTENTS,Vr)),pt&&(cr["#text"]=!0),Re&&sr(cr,["html","head","body"]),cr.table&&(sr(cr,["tbody"]),delete zr.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw ph('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ph('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=K.TRUSTED_TYPES_POLICY,ie=te.createHTML("")}else te===void 0&&(te=wI(M,y)),te!==null&&typeof ie=="string"&&(ie=te.createHTML(""));ci&&ci(K),Ei=K}},Go=sr({},[...$E,...JE,...xI]),tn=sr({},[...zE,...CI]),Ta=function(K){let ge=q(K);(!ge||!ge.tagName)&&(ge={namespaceURI:Ut,tagName:"template"});let ye=Fh(K.tagName),vr=Fh(ge.tagName);return ni[K.namespaceURI]?K.namespaceURI===ii?ge.namespaceURI===Tr?ye==="svg":ge.namespaceURI===bt?ye==="svg"&&(vr==="annotation-xml"||ar[vr]):!!Go[ye]:K.namespaceURI===bt?ge.namespaceURI===Tr?ye==="math":ge.namespaceURI===ii?ye==="math"&&dr[vr]:!!tn[ye]:K.namespaceURI===Tr?ge.namespaceURI===ii&&!dr[vr]||ge.namespaceURI===bt&&!ar[vr]?!1:!tn[ye]&&(rs[ye]||!Go[ye]):!!(tr==="application/xhtml+xml"&&ni[K.namespaceURI]):!1},Pt=function(K){uh(v.removed,{element:K});try{q(K).removeChild(K)}catch{B(K)}},Gi=function(K,ge){try{uh(v.removed,{attribute:ge.getAttributeNode(K),from:ge})}catch{uh(v.removed,{attribute:null,from:ge})}if(ge.removeAttribute(K),K==="is")if(Ie||Ot)try{Pt(ge)}catch{}else try{ge.setAttribute(K,"")}catch{}},sn=function(K){let ge=null,ye=null;if(ei)K="<remove></remove>"+K;else{let je=XE(K,/^[\r\n\t ]+/);ye=je&&je[0]}tr==="application/xhtml+xml"&&Ut===Tr&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");let vr=te?te.createHTML(K):K;if(Ut===Tr)try{ge=new J().parseFromString(vr,tr)}catch{}if(!ge||!ge.documentElement){ge=le.createDocument(Ut,"template",null);try{ge.documentElement.innerHTML=Ue?ie:vr}catch{}}let et=ge.body||ge.documentElement;return K&&ye&&et.insertBefore(e.createTextNode(ye),et.childNodes[0]||null),Ut===Tr?we.call(ge,Re?"html":"body")[0]:Re?ge.documentElement:et},Fo=function(K){return Ee.call(K.ownerDocument||K,K,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},Zn=function(K){return K instanceof W&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof _)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},nn=function(K){return typeof V=="function"&&K instanceof V};function oi(De,K,ge){Uh(De,ye=>{ye.call(v,K,ge,Ei)})}let on=function(K){let ge=null;if(oi(Me.beforeSanitizeElements,K,null),Zn(K))return Pt(K),!0;let ye=Vr(K.nodeName);if(oi(Me.uponSanitizeElement,K,{tagName:ye,allowedTags:cr}),fr&&K.hasChildNodes()&&!nn(K.firstElementChild)&&pi(/<[/\w!]/g,K.innerHTML)&&pi(/<[/\w!]/g,K.textContent)||K.nodeType===hh.progressingInstruction||fr&&K.nodeType===hh.comment&&pi(/<[/\w]/g,K.data))return Pt(K),!0;if(!(Zr.tagCheck instanceof Function&&Zr.tagCheck(ye))&&(!cr[ye]||zr[ye])){if(!zr[ye]&&Bo(ye)&&(ze.tagNameCheck instanceof RegExp&&pi(ze.tagNameCheck,ye)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(ye)))return!1;if(pt&&!at[ye]){let vr=q(K)||K.parentNode,et=Y(K)||K.childNodes;if(et&&vr){let je=et.length;for(let Ae=je-1;Ae>=0;--Ae){let dt=$(et[Ae],!0);dt.__removalCount=(K.__removalCount||0)+1,vr.insertBefore(dt,D(K))}}}return Pt(K),!0}return K instanceof Z&&!Ta(K)||(ye==="noscript"||ye==="noembed"||ye==="noframes")&&pi(/<\/no(script|embed|frames)/i,K.innerHTML)?(Pt(K),!0):(Er&&K.nodeType===hh.text&&(ge=K.textContent,Uh([Ke,ve,xr],vr=>{ge=fh(ge,vr," ")}),K.textContent!==ge&&(uh(v.removed,{element:K.cloneNode()}),K.textContent=ge)),oi(Me.afterSanitizeElements,K,null),!1)},Fi=function(K,ge,ye){if(Nt&&(ge==="id"||ge==="name")&&(ye in e||ye in Is))return!1;if(!(Kt&&!Ar[ge]&&pi(Cr,ge))){if(!(hr&&pi(ur,ge))){if(!(Zr.attributeCheck instanceof Function&&Zr.attributeCheck(ge,K))){if(!or[ge]||Ar[ge]){if(!(Bo(K)&&(ze.tagNameCheck instanceof RegExp&&pi(ze.tagNameCheck,K)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(K))&&(ze.attributeNameCheck instanceof RegExp&&pi(ze.attributeNameCheck,ge)||ze.attributeNameCheck instanceof Function&&ze.attributeNameCheck(ge,K))||ge==="is"&&ze.allowCustomizedBuiltInElements&&(ze.tagNameCheck instanceof RegExp&&pi(ze.tagNameCheck,ye)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(ye))))return!1}else if(!Ui[ge]){if(!pi(Lt,fh(ye,Je,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&K!=="script"&&gI(ye,"data:")===0&&Nr[K])){if(!(Oe&&!pi(Jr,fh(ye,Je,"")))){if(ye)return!1}}}}}}}return!0},Bo=function(K){return K!=="annotation-xml"&&XE(K,St)},Do=function(K){oi(Me.beforeSanitizeAttributes,K,null);let{attributes:ge}=K;if(!ge||Zn(K))return;let ye={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:or,forceKeepAttr:void 0},vr=ge.length;for(;vr--;){let et=ge[vr],{name:je,namespaceURI:Ae,value:dt}=et,vi=Vr(je),Zt=dt,_e=je==="value"?Zt:EI(Zt);if(ye.attrName=vi,ye.attrValue=_e,ye.keepAttr=!0,ye.forceKeepAttr=void 0,oi(Me.uponSanitizeAttribute,K,ye),_e=ye.attrValue,es&&(vi==="id"||vi==="name")&&(Gi(je,K),_e=Be+_e),fr&&pi(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){Gi(je,K);continue}if(vi==="attributename"&&XE(_e,"href")){Gi(je,K);continue}if(ye.forceKeepAttr)continue;if(!ye.keepAttr){Gi(je,K);continue}if(!pe&&pi(/\/>/i,_e)){Gi(je,K);continue}Er&&Uh([Ke,ve,xr],is=>{_e=fh(_e,is," ")});let mi=Vr(K.nodeName);if(!Fi(mi,vi,_e)){Gi(je,K);continue}if(te&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!Ae)switch(M.getAttributeType(mi,vi)){case"TrustedHTML":{_e=te.createHTML(_e);break}case"TrustedScriptURL":{_e=te.createScriptURL(_e);break}}if(_e!==Zt)try{Ae?K.setAttributeNS(Ae,je,_e):K.setAttribute(je,_e),Zn(K)?Pt(K):im(v.removed)}catch{Gi(je,K)}}oi(Me.afterSanitizeAttributes,K,null)},an=function De(K){let ge=null,ye=Fo(K);for(oi(Me.beforeSanitizeShadowDOM,K,null);ge=ye.nextNode();)oi(Me.uponSanitizeShadowNode,ge,null),on(ge),Do(ge),ge.content instanceof w&&De(ge.content);oi(Me.afterSanitizeShadowDOM,K,null)};return v.sanitize=function(De){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,ye=null,vr=null,et=null;if(Ue=!De,Ue&&(De="<!-->"),typeof De!="string"&&!nn(De))if(typeof De.toString=="function"){if(De=De.toString(),typeof De!="string")throw ph("dirty is not a string, aborting")}else throw ph("toString is not a function");if(!v.isSupported)return De;if(Ur||rn(K),v.removed=[],typeof De=="string"&&(Se=!1),Se){if(De.nodeName){let dt=Vr(De.nodeName);if(!cr[dt]||zr[dt])throw ph("root node is forbidden and cannot be sanitized in-place")}}else if(De instanceof V)ge=sn("<!---->"),ye=ge.ownerDocument.importNode(De,!0),ye.nodeType===hh.element&&ye.nodeName==="BODY"||ye.nodeName==="HTML"?ge=ye:ge.appendChild(ye);else{if(!Ie&&!Er&&!Re&&De.indexOf("<")===-1)return te&&ft?te.createHTML(De):De;if(ge=sn(De),!ge)return Ie?null:ft?ie:""}ge&&ei&&Pt(ge.firstChild);let je=Fo(Se?De:ge);for(;vr=je.nextNode();)on(vr),Do(vr),vr.content instanceof w&&an(vr.content);if(Se)return De;if(Ie){if(Ot)for(et=ke.call(ge.ownerDocument);ge.firstChild;)et.appendChild(ge.firstChild);else et=ge;return(or.shadowroot||or.shadowrootmode)&&(et=Pe.call(N,et,!0)),et}let Ae=Re?ge.outerHTML:ge.innerHTML;return Re&&cr["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&pi(cm,ge.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+ge.ownerDocument.doctype.name+`>
40
+ `+Ae),Er&&Uh([Ke,ve,xr],dt=>{Ae=fh(Ae,dt," ")}),te&&ft?te.createHTML(Ae):Ae},v.setConfig=function(){let De=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rn(De),Ur=!0},v.clearConfig=function(){Ei=null,Ur=!1},v.isValidAttribute=function(De,K,ge){Ei||rn({});let ye=Vr(De),vr=Vr(K);return Fi(ye,vr,ge)},v.addHook=function(De,K){typeof K=="function"&&uh(Me[De],K)},v.removeHook=function(De,K){if(K!==void 0){let ge=hI(Me[De],K);return ge===-1?void 0:dI(Me[De],ge,1)[0]}return im(Me[De])},v.removeHooks=function(De){Me[De]=[]},v.removeAllHooks=function(){Me=um()},v}var dm=hm();var zs=Yt(Hm()),kl=class{constructor(v){this.namespace=v}set(v,e,N,y){if(zs.default.enabled&&(this.removeExpiredKeys(),v&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{zs.default.set(v,{namespace:this.namespace,val:e,exp:N,time:new Date().getTime()/1e3})}catch(w){if(w instanceof Error){let G=w;if(G.quotaExceeded=FN(w),G.quotaExceeded&&y)y(w);else throw G}throw w}}}remove(v){zs.default.enabled&&v&&zs.default.remove(v)}removeExpiredKeys(){zs.default.enabled&&zs.default.each((v,e)=>{v&&v.exp&&new Date().getTime()/1e3-v.time>v.exp&&this.remove(e)})}removeAll(){zs.default.enabled}removeNamespace(){zs.default.each((v,e)=>{v.namespace&&v.namespace===this.namespace&&this.remove(e)})}get(v){if(zs.default.enabled&&v)if(this.removeExpiredKeys(),v){var e=zs.default.get(v);return e?e.val:void 0}else return}};function FN(i){var v=!1;if(i)if(i.code)switch(i.code){case 22:v=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(v=!0);break}else i.number===-2147024882&&(v=!0);return v}var{sanitize:xL}=dm;function js(i){if(i&&i.trim().indexOf("<svg")==0){var v=new DOMParser,e=v.parseFromString(i,"text/xml"),N=e.documentElement;N.setAttribute("aria-hidden","true");var y=document.createElement("div");return y.className="svgImg",y.appendChild(N),y}throw new Error("No svg string given. Cannot draw")}function Ym(i,v){if(i)return i.classList?i.classList.contains(v):!!i.className.match(new RegExp("(\\s|^)"+v+"(\\s|$)"))}function Ir(i,...v){if(i)for(let e of v)i.classList?i.classList.add(e):Ym(i,e)||(i.className+=" "+e)}function mh(i,v){if(i){if(i.classList)i.classList.remove(v);else if(Ym(i,v)){var e=new RegExp("(\\s|^)"+v+"(\\s|$)");i.className=i.className.replace(e," ")}}}var Cd=Yt(Bh());function xh(i,v,e){var N;v.onmouseover=function(){N||(N=document.createElement("div"),N.className="yasqe_tooltip"),N.style.display="block",N.innerHTML=e,v.appendChild(N)},v.onmouseout=function(){N&&(N.style.display="none"),N.innerHTML=e}}var yv={};_v(yv,{base64EncodeUnicode:()=>WC,executeQuery:()=>bv,getAcceptHeader:()=>ZC,getAjaxConfig:()=>Nv,getAsCurlString:()=>Tv,getUrlArguments:()=>PC});var _N=typeof global=="object"&&global&&global.Object===Object&&global,Dh=_N;var HN=typeof self=="object"&&self&&self.Object===Object&&self,YN=Dh||HN||Function("return this")(),Rt=YN;var XN=Rt.Symbol,di=XN;var p0=Object.prototype,$N=p0.hasOwnProperty,JN=p0.toString,Ch=di?di.toStringTag:void 0;function zN(i){var v=$N.call(i,Ch),e=i[Ch];try{i[Ch]=void 0;var N=!0}catch{}var y=JN.call(i);return N&&(v?i[Ch]=e:delete i[Ch]),y}var c0=zN;var jN=Object.prototype,qN=jN.toString;function KN(i){return qN.call(i)}var h0=KN;var eb="[object Null]",rb="[object Undefined]",d0=di?di.toStringTag:void 0;function tb(i){return i==null?i===void 0?rb:eb:d0&&d0 in Object(i)?c0(i):h0(i)}var qi=tb;function ib(i){return i!=null&&typeof i=="object"}var gi=ib;var sb="[object Symbol]";function nb(i){return typeof i=="symbol"||gi(i)&&qi(i)==sb}var qs=nb;function ob(i,v){for(var e=-1,N=i==null?0:i.length,y=Array(N);++e<N;)y[e]=v(i[e],e,i);return y}var Sf=ob;var ab=Array.isArray,qr=ab;var lb=1/0,g0=di?di.prototype:void 0,E0=g0?g0.toString:void 0;function v0(i){if(typeof i=="string")return i;if(qr(i))return Sf(i,v0)+"";if(qs(i))return E0?E0.call(i):"";var v=i+"";return v=="0"&&1/i==-lb?"-0":v}var m0=v0;var ub=/\s/;function fb(i){for(var v=i.length;v--&&ub.test(i.charAt(v)););return v}var x0=fb;var pb=/^\s+/;function cb(i){return i&&i.slice(0,x0(i)+1).replace(pb,"")}var C0=cb;function hb(i){var v=typeof i;return i!=null&&(v=="object"||v=="function")}var Wt=hb;var A0=NaN,db=/^[-+]0x[0-9a-f]+$/i,gb=/^0b[01]+$/i,Eb=/^0o[0-7]+$/i,vb=parseInt;function mb(i){if(typeof i=="number")return i;if(qs(i))return A0;if(Wt(i)){var v=typeof i.valueOf=="function"?i.valueOf():i;i=Wt(v)?v+"":v}if(typeof i!="string")return i===0?i:+i;i=C0(i);var e=gb.test(i);return e||Eb.test(i)?vb(i.slice(2),e?2:8):db.test(i)?A0:+i}var I0=mb;var N0=1/0,xb=17976931348623157e292;function Cb(i){if(!i)return i===0?i:0;if(i=I0(i),i===N0||i===-N0){var v=i<0?-1:1;return v*xb}return i===i?i:0}var b0=Cb;function Ab(i){var v=b0(i),e=v%1;return v===v?e?v-e:v:0}var T0=Ab;function Ib(i){return i}var Ea=Ib;var Nb="[object AsyncFunction]",bb="[object Function]",Tb="[object GeneratorFunction]",yb="[object Proxy]";function Rb(i){if(!Wt(i))return!1;var v=qi(i);return v==bb||v==Tb||v==Nb||v==yb}var Kr=Rb;var Sb=Rt["__core-js_shared__"],Vh=Sb;var y0=function(){var i=/[^.]+$/.exec(Vh&&Vh.keys&&Vh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Lb(i){return!!y0&&y0 in i}var R0=Lb;var wb=Function.prototype,Ob=wb.toString;function Ub(i){if(i!=null){try{return Ob.call(i)}catch{}try{return i+""}catch{}}return""}var So=Ub;var Gb=/[\\^$.*+?()[\]{}|]/g,Fb=/^\[object .+?Constructor\]$/,Bb=Function.prototype,Db=Object.prototype,Vb=Bb.toString,Mb=Db.hasOwnProperty,Wb=RegExp("^"+Vb.call(Mb).replace(Gb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pb(i){if(!Wt(i)||R0(i))return!1;var v=Kr(i)?Wb:Fb;return v.test(So(i))}var S0=Pb;function Zb(i,v){return i?.[v]}var L0=Zb;function kb(i,v){var e=L0(i,v);return S0(e)?e:void 0}var wi=kb;var Qb=wi(Rt,"WeakMap"),Mh=Qb;var w0=Object.create,_b=function(){function i(){}return function(v){if(!Wt(v))return{};if(w0)return w0(v);i.prototype=v;var e=new i;return i.prototype=void 0,e}}(),O0=_b;function Hb(i,v,e){switch(e.length){case 0:return i.call(v);case 1:return i.call(v,e[0]);case 2:return i.call(v,e[0],e[1]);case 3:return i.call(v,e[0],e[1],e[2])}return i.apply(v,e)}var U0=Hb;function Yb(i,v){var e=-1,N=i.length;for(v||(v=Array(N));++e<N;)v[e]=i[e];return v}var G0=Yb;var Xb=800,$b=16,Jb=Date.now;function zb(i){var v=0,e=0;return function(){var N=Jb(),y=$b-(N-e);if(e=N,y>0){if(++v>=Xb)return arguments[0]}else v=0;return i.apply(void 0,arguments)}}var F0=zb;function jb(i){return function(){return i}}var B0=jb;var qb=function(){try{var i=wi(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Lf=qb;var Kb=Lf?function(i,v){return Lf(i,"toString",{configurable:!0,enumerable:!1,value:B0(v),writable:!0})}:Ea,D0=Kb;var eT=F0(D0),V0=eT;var rT=9007199254740991,tT=/^(?:0|[1-9]\d*)$/;function iT(i,v){var e=typeof i;return v=v??rT,!!v&&(e=="number"||e!="symbol"&&tT.test(i))&&i>-1&&i%1==0&&i<v}var wf=iT;function sT(i,v,e){v=="__proto__"&&Lf?Lf(i,v,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[v]=e}var Of=sT;function nT(i,v){return i===v||i!==i&&v!==v}var Mn=nT;var oT=Object.prototype,aT=oT.hasOwnProperty;function lT(i,v,e){var N=i[v];(!(aT.call(i,v)&&Mn(N,e))||e===void 0&&!(v in i))&&Of(i,v,e)}var M0=lT;function uT(i,v,e,N){var y=!e;e||(e={});for(var w=-1,G=v.length;++w<G;){var V=v[w],Z=N?N(e[V],i[V],V,e,i):void 0;Z===void 0&&(Z=i[V]),y?Of(e,V,Z):M0(e,V,Z)}return e}var W0=uT;var P0=Math.max;function fT(i,v,e){return v=P0(v===void 0?i.length-1:v,0),function(){for(var N=arguments,y=-1,w=P0(N.length-v,0),G=Array(w);++y<w;)G[y]=N[v+y];y=-1;for(var V=Array(v+1);++y<v;)V[y]=N[y];return V[v]=e(G),U0(i,this,V)}}var Z0=fT;function pT(i,v){return V0(Z0(i,v,Ea),i+"")}var Wh=pT;var cT=9007199254740991;function hT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=cT}var Uf=hT;function dT(i){return i!=null&&Uf(i.length)&&!Kr(i)}var xs=dT;function gT(i,v,e){if(!Wt(e))return!1;var N=typeof v;return(N=="number"?xs(e)&&wf(v,e.length):N=="string"&&v in e)?Mn(e[v],i):!1}var Ah=gT;function ET(i){return Wh(function(v,e){var N=-1,y=e.length,w=y>1?e[y-1]:void 0,G=y>2?e[2]:void 0;for(w=i.length>3&&typeof w=="function"?(y--,w):void 0,G&&Ah(e[0],e[1],G)&&(w=y<3?void 0:w,y=1),v=Object(v);++N<y;){var V=e[N];V&&i(v,V,N,w)}return v})}var Ph=ET;var vT=Object.prototype;function mT(i){var v=i&&i.constructor,e=typeof v=="function"&&v.prototype||vT;return i===e}var Gf=mT;function xT(i,v){for(var e=-1,N=Array(i);++e<i;)N[e]=v(e);return N}var k0=xT;var CT="[object Arguments]";function AT(i){return gi(i)&&qi(i)==CT}var pv=AT;var Q0=Object.prototype,IT=Q0.hasOwnProperty,NT=Q0.propertyIsEnumerable,bT=pv(function(){return arguments}())?pv:function(i){return gi(i)&&IT.call(i,"callee")&&!NT.call(i,"callee")},Lo=bT;function TT(){return!1}var _0=TT;var X0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H0=X0&&typeof module=="object"&&module&&!module.nodeType&&module,yT=H0&&H0.exports===X0,Y0=yT?Rt.Buffer:void 0,RT=Y0?Y0.isBuffer:void 0,ST=RT||_0,_l=ST;var LT="[object Arguments]",wT="[object Array]",OT="[object Boolean]",UT="[object Date]",GT="[object Error]",FT="[object Function]",BT="[object Map]",DT="[object Number]",VT="[object Object]",MT="[object RegExp]",WT="[object Set]",PT="[object String]",ZT="[object WeakMap]",kT="[object ArrayBuffer]",QT="[object DataView]",_T="[object Float32Array]",HT="[object Float64Array]",YT="[object Int8Array]",XT="[object Int16Array]",$T="[object Int32Array]",JT="[object Uint8Array]",zT="[object Uint8ClampedArray]",jT="[object Uint16Array]",qT="[object Uint32Array]",$r={};$r[_T]=$r[HT]=$r[YT]=$r[XT]=$r[$T]=$r[JT]=$r[zT]=$r[jT]=$r[qT]=!0;$r[LT]=$r[wT]=$r[kT]=$r[OT]=$r[QT]=$r[UT]=$r[GT]=$r[FT]=$r[BT]=$r[DT]=$r[VT]=$r[MT]=$r[WT]=$r[PT]=$r[ZT]=!1;function KT(i){return gi(i)&&Uf(i.length)&&!!$r[qi(i)]}var $0=KT;function ey(i){return function(v){return i(v)}}var Zh=ey;var J0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ih=J0&&typeof module=="object"&&module&&!module.nodeType&&module,ry=Ih&&Ih.exports===J0,cv=ry&&Dh.process,ty=function(){try{var i=Ih&&Ih.require&&Ih.require("util").types;return i||cv&&cv.binding&&cv.binding("util")}catch{}}(),hv=ty;var z0=hv&&hv.isTypedArray,iy=z0?Zh(z0):$0,Ff=iy;var sy=Object.prototype,ny=sy.hasOwnProperty;function oy(i,v){var e=qr(i),N=!e&&Lo(i),y=!e&&!N&&_l(i),w=!e&&!N&&!y&&Ff(i),G=e||N||y||w,V=G?k0(i.length,String):[],Z=V.length;for(var H in i)(v||ny.call(i,H))&&!(G&&(H=="length"||y&&(H=="offset"||H=="parent")||w&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||wf(H,Z)))&&V.push(H);return V}var kh=oy;function ay(i,v){return function(e){return i(v(e))}}var Qh=ay;var ly=Qh(Object.keys,Object),j0=ly;var uy=Object.prototype,fy=uy.hasOwnProperty;function py(i){if(!Gf(i))return j0(i);var v=[];for(var e in Object(i))fy.call(i,e)&&e!="constructor"&&v.push(e);return v}var q0=py;function cy(i){return xs(i)?kh(i):q0(i)}var Bf=cy;function hy(i){var v=[];if(i!=null)for(var e in Object(i))v.push(e);return v}var K0=hy;var dy=Object.prototype,gy=dy.hasOwnProperty;function Ey(i){if(!Wt(i))return K0(i);var v=Gf(i),e=[];for(var N in i)N=="constructor"&&(v||!gy.call(i,N))||e.push(N);return e}var ex=Ey;function vy(i){return xs(i)?kh(i,!0):ex(i)}var _h=vy;var my=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xy=/^\w*$/;function Cy(i,v){if(qr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||qs(i)?!0:xy.test(i)||!my.test(i)||v!=null&&i in Object(v)}var Df=Cy;var Ay=wi(Object,"create"),wo=Ay;function Iy(){this.__data__=wo?wo(null):{},this.size=0}var rx=Iy;function Ny(i){var v=this.has(i)&&delete this.__data__[i];return this.size-=v?1:0,v}var tx=Ny;var by="__lodash_hash_undefined__",Ty=Object.prototype,yy=Ty.hasOwnProperty;function Ry(i){var v=this.__data__;if(wo){var e=v[i];return e===by?void 0:e}return yy.call(v,i)?v[i]:void 0}var ix=Ry;var Sy=Object.prototype,Ly=Sy.hasOwnProperty;function wy(i){var v=this.__data__;return wo?v[i]!==void 0:Ly.call(v,i)}var sx=wy;var Oy="__lodash_hash_undefined__";function Uy(i,v){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=wo&&v===void 0?Oy:v,this}var nx=Uy;function Vf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Vf.prototype.clear=rx;Vf.prototype.delete=tx;Vf.prototype.get=ix;Vf.prototype.has=sx;Vf.prototype.set=nx;var dv=Vf;function Gy(){this.__data__=[],this.size=0}var ox=Gy;function Fy(i,v){for(var e=i.length;e--;)if(Mn(i[e][0],v))return e;return-1}var va=Fy;var By=Array.prototype,Dy=By.splice;function Vy(i){var v=this.__data__,e=va(v,i);if(e<0)return!1;var N=v.length-1;return e==N?v.pop():Dy.call(v,e,1),--this.size,!0}var ax=Vy;function My(i){var v=this.__data__,e=va(v,i);return e<0?void 0:v[e][1]}var lx=My;function Wy(i){return va(this.__data__,i)>-1}var ux=Wy;function Py(i,v){var e=this.__data__,N=va(e,i);return N<0?(++this.size,e.push([i,v])):e[N][1]=v,this}var fx=Py;function Mf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Mf.prototype.clear=ox;Mf.prototype.delete=ax;Mf.prototype.get=lx;Mf.prototype.has=ux;Mf.prototype.set=fx;var ma=Mf;var Zy=wi(Rt,"Map"),xa=Zy;function ky(){this.size=0,this.__data__={hash:new dv,map:new(xa||ma),string:new dv}}var px=ky;function Qy(i){var v=typeof i;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?i!=="__proto__":i===null}var cx=Qy;function _y(i,v){var e=i.__data__;return cx(v)?e[typeof v=="string"?"string":"hash"]:e.map}var Ca=_y;function Hy(i){var v=Ca(this,i).delete(i);return this.size-=v?1:0,v}var hx=Hy;function Yy(i){return Ca(this,i).get(i)}var dx=Yy;function Xy(i){return Ca(this,i).has(i)}var gx=Xy;function $y(i,v){var e=Ca(this,i),N=e.size;return e.set(i,v),this.size+=e.size==N?0:1,this}var Ex=$y;function Wf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Wf.prototype.clear=px;Wf.prototype.delete=hx;Wf.prototype.get=dx;Wf.prototype.has=gx;Wf.prototype.set=Ex;var Hl=Wf;var Jy="Expected a function";function gv(i,v){if(typeof i!="function"||v!=null&&typeof v!="function")throw new TypeError(Jy);var e=function(){var N=arguments,y=v?v.apply(this,N):N[0],w=e.cache;if(w.has(y))return w.get(y);var G=i.apply(this,N);return e.cache=w.set(y,G)||w,G};return e.cache=new(gv.Cache||Hl),e}gv.Cache=Hl;var vx=gv;var zy=500;function jy(i){var v=vx(i,function(N){return e.size===zy&&e.clear(),N}),e=v.cache;return v}var mx=jy;var qy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ky=/\\(\\)?/g,eR=mx(function(i){var v=[];return i.charCodeAt(0)===46&&v.push(""),i.replace(qy,function(e,N,y,w){v.push(y?w.replace(Ky,"$1"):N||e)}),v}),xx=eR;function rR(i){return i==null?"":m0(i)}var Hh=rR;function tR(i,v){return qr(i)?i:Df(i,v)?[i]:xx(Hh(i))}var Yh=tR;var iR=1/0;function sR(i){if(typeof i=="string"||qs(i))return i;var v=i+"";return v=="0"&&1/i==-iR?"-0":v}var Aa=sR;function nR(i,v){v=Yh(v,i);for(var e=0,N=v.length;i!=null&&e<N;)i=i[Aa(v[e++])];return e&&e==N?i:void 0}var Pf=nR;function oR(i,v,e){var N=i==null?void 0:Pf(i,v);return N===void 0?e:N}var Cx=oR;function aR(i,v){for(var e=-1,N=v.length,y=i.length;++e<N;)i[y+e]=v[e];return i}var Xh=aR;var Ax=di?di.isConcatSpreadable:void 0;function lR(i){return qr(i)||Lo(i)||!!(Ax&&i&&i[Ax])}var Ix=lR;function Nx(i,v,e,N,y){var w=-1,G=i.length;for(e||(e=Ix),y||(y=[]);++w<G;){var V=i[w];v>0&&e(V)?v>1?Nx(V,v-1,e,N,y):Xh(y,V):N||(y[y.length]=V)}return y}var bx=Nx;var uR=Qh(Object.getPrototypeOf,Object),$h=uR;var fR="[object Object]",pR=Function.prototype,cR=Object.prototype,Tx=pR.toString,hR=cR.hasOwnProperty,dR=Tx.call(Object);function gR(i){if(!gi(i)||qi(i)!=fR)return!1;var v=$h(i);if(v===null)return!0;var e=hR.call(v,"constructor")&&v.constructor;return typeof e=="function"&&e instanceof e&&Tx.call(e)==dR}var yx=gR;function ER(i,v,e){var N=-1,y=i.length;v<0&&(v=-v>y?0:y+v),e=e>y?y:e,e<0&&(e+=y),y=v>e?0:e-v>>>0,v>>>=0;for(var w=Array(y);++N<y;)w[N]=i[N+v];return w}var Rx=ER;function vR(i){return function(v){return i?.[v]}}var Sx=vR;function mR(){this.__data__=new ma,this.size=0}var Lx=mR;function xR(i){var v=this.__data__,e=v.delete(i);return this.size=v.size,e}var wx=xR;function CR(i){return this.__data__.get(i)}var Ox=CR;function AR(i){return this.__data__.has(i)}var Ux=AR;var IR=200;function NR(i,v){var e=this.__data__;if(e instanceof ma){var N=e.__data__;if(!xa||N.length<IR-1)return N.push([i,v]),this.size=++e.size,this;e=this.__data__=new Hl(N)}return e.set(i,v),this.size=e.size,this}var Gx=NR;function Zf(i){var v=this.__data__=new ma(i);this.size=v.size}Zf.prototype.clear=Lx;Zf.prototype.delete=wx;Zf.prototype.get=Ox;Zf.prototype.has=Ux;Zf.prototype.set=Gx;var Ia=Zf;var Vx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fx=Vx&&typeof module=="object"&&module&&!module.nodeType&&module,bR=Fx&&Fx.exports===Vx,Bx=bR?Rt.Buffer:void 0,Dx=Bx?Bx.allocUnsafe:void 0;function TR(i,v){if(v)return i.slice();var e=i.length,N=Dx?Dx(e):new i.constructor(e);return i.copy(N),N}var Mx=TR;function yR(i,v){for(var e=-1,N=i==null?0:i.length,y=0,w=[];++e<N;){var G=i[e];v(G,e,i)&&(w[y++]=G)}return w}var Wx=yR;function RR(){return[]}var Px=RR;var SR=Object.prototype,LR=SR.propertyIsEnumerable,Zx=Object.getOwnPropertySymbols,wR=Zx?function(i){return i==null?[]:(i=Object(i),Wx(Zx(i),function(v){return LR.call(i,v)}))}:Px,kx=wR;function OR(i,v,e){var N=v(i);return qr(i)?N:Xh(N,e(i))}var Qx=OR;function UR(i){return Qx(i,Bf,kx)}var Ev=UR;var GR=wi(Rt,"DataView"),Jh=GR;var FR=wi(Rt,"Promise"),zh=FR;var BR=wi(Rt,"Set"),jh=BR;var _x="[object Map]",DR="[object Object]",Hx="[object Promise]",Yx="[object Set]",Xx="[object WeakMap]",$x="[object DataView]",VR=So(Jh),MR=So(xa),WR=So(zh),PR=So(jh),ZR=So(Mh),Yl=qi;(Jh&&Yl(new Jh(new ArrayBuffer(1)))!=$x||xa&&Yl(new xa)!=_x||zh&&Yl(zh.resolve())!=Hx||jh&&Yl(new jh)!=Yx||Mh&&Yl(new Mh)!=Xx)&&(Yl=function(i){var v=qi(i),e=v==DR?i.constructor:void 0,N=e?So(e):"";if(N)switch(N){case VR:return $x;case MR:return _x;case WR:return Hx;case PR:return Yx;case ZR:return Xx}return v});var vv=Yl;var kR=Rt.Uint8Array,kf=kR;function QR(i){var v=new i.constructor(i.byteLength);return new kf(v).set(new kf(i)),v}var Jx=QR;function _R(i,v){var e=v?Jx(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var zx=_R;function HR(i){return typeof i.constructor=="function"&&!Gf(i)?O0($h(i)):{}}var jx=HR;var YR="__lodash_hash_undefined__";function XR(i){return this.__data__.set(i,YR),this}var qx=XR;function $R(i){return this.__data__.has(i)}var Kx=$R;function qh(i){var v=-1,e=i==null?0:i.length;for(this.__data__=new Hl;++v<e;)this.add(i[v])}qh.prototype.add=qh.prototype.push=qx;qh.prototype.has=Kx;var eC=qh;function JR(i,v){for(var e=-1,N=i==null?0:i.length;++e<N;)if(v(i[e],e,i))return!0;return!1}var rC=JR;function zR(i,v){return i.has(v)}var tC=zR;var jR=1,qR=2;function KR(i,v,e,N,y,w){var G=e&jR,V=i.length,Z=v.length;if(V!=Z&&!(G&&Z>V))return!1;var H=w.get(i),_=w.get(v);if(H&&_)return H==v&&_==i;var W=-1,J=!0,M=e&qR?new eC:void 0;for(w.set(i,v),w.set(v,i);++W<V;){var z=i[W],$=v[W];if(N)var B=G?N($,z,W,v,i,w):N(z,$,W,i,v,w);if(B!==void 0){if(B)continue;J=!1;break}if(M){if(!rC(v,function(D,Y){if(!tC(M,Y)&&(z===D||y(z,D,e,N,w)))return M.push(Y)})){J=!1;break}}else if(!(z===$||y(z,$,e,N,w))){J=!1;break}}return w.delete(i),w.delete(v),J}var Kh=KR;function eS(i){var v=-1,e=Array(i.size);return i.forEach(function(N,y){e[++v]=[y,N]}),e}var iC=eS;function rS(i){var v=-1,e=Array(i.size);return i.forEach(function(N){e[++v]=N}),e}var sC=rS;var tS=1,iS=2,sS="[object Boolean]",nS="[object Date]",oS="[object Error]",aS="[object Map]",lS="[object Number]",uS="[object RegExp]",fS="[object Set]",pS="[object String]",cS="[object Symbol]",hS="[object ArrayBuffer]",dS="[object DataView]",nC=di?di.prototype:void 0,mv=nC?nC.valueOf:void 0;function gS(i,v,e,N,y,w,G){switch(e){case dS:if(i.byteLength!=v.byteLength||i.byteOffset!=v.byteOffset)return!1;i=i.buffer,v=v.buffer;case hS:return!(i.byteLength!=v.byteLength||!w(new kf(i),new kf(v)));case sS:case nS:case lS:return Mn(+i,+v);case oS:return i.name==v.name&&i.message==v.message;case uS:case pS:return i==v+"";case aS:var V=iC;case fS:var Z=N&tS;if(V||(V=sC),i.size!=v.size&&!Z)return!1;var H=G.get(i);if(H)return H==v;N|=iS,G.set(i,v);var _=Kh(V(i),V(v),N,y,w,G);return G.delete(i),_;case cS:if(mv)return mv.call(i)==mv.call(v)}return!1}var oC=gS;var ES=1,vS=Object.prototype,mS=vS.hasOwnProperty;function xS(i,v,e,N,y,w){var G=e&ES,V=Ev(i),Z=V.length,H=Ev(v),_=H.length;if(Z!=_&&!G)return!1;for(var W=Z;W--;){var J=V[W];if(!(G?J in v:mS.call(v,J)))return!1}var M=w.get(i),z=w.get(v);if(M&&z)return M==v&&z==i;var $=!0;w.set(i,v),w.set(v,i);for(var B=G;++W<Z;){J=V[W];var D=i[J],Y=v[J];if(N)var q=G?N(Y,D,J,v,i,w):N(D,Y,J,i,v,w);if(!(q===void 0?D===Y||y(D,Y,e,N,w):q)){$=!1;break}B||(B=J=="constructor")}if($&&!B){var te=i.constructor,ie=v.constructor;te!=ie&&"constructor"in i&&"constructor"in v&&!(typeof te=="function"&&te instanceof te&&typeof ie=="function"&&ie instanceof ie)&&($=!1)}return w.delete(i),w.delete(v),$}var aC=xS;var CS=1,lC="[object Arguments]",uC="[object Array]",ed="[object Object]",AS=Object.prototype,fC=AS.hasOwnProperty;function IS(i,v,e,N,y,w){var G=qr(i),V=qr(v),Z=G?uC:vv(i),H=V?uC:vv(v);Z=Z==lC?ed:Z,H=H==lC?ed:H;var _=Z==ed,W=H==ed,J=Z==H;if(J&&_l(i)){if(!_l(v))return!1;G=!0,_=!1}if(J&&!_)return w||(w=new Ia),G||Ff(i)?Kh(i,v,e,N,y,w):oC(i,v,Z,e,N,y,w);if(!(e&CS)){var M=_&&fC.call(i,"__wrapped__"),z=W&&fC.call(v,"__wrapped__");if(M||z){var $=M?i.value():i,B=z?v.value():v;return w||(w=new Ia),y($,B,e,N,w)}}return J?(w||(w=new Ia),aC(i,v,e,N,y,w)):!1}var pC=IS;function cC(i,v,e,N,y){return i===v?!0:i==null||v==null||!gi(i)&&!gi(v)?i!==i&&v!==v:pC(i,v,e,N,cC,y)}var rd=cC;var NS=1,bS=2;function TS(i,v,e,N){var y=e.length,w=y,G=!N;if(i==null)return!w;for(i=Object(i);y--;){var V=e[y];if(G&&V[2]?V[1]!==i[V[0]]:!(V[0]in i))return!1}for(;++y<w;){V=e[y];var Z=V[0],H=i[Z],_=V[1];if(G&&V[2]){if(H===void 0&&!(Z in i))return!1}else{var W=new Ia;if(N)var J=N(H,_,Z,i,v,W);if(!(J===void 0?rd(_,H,NS|bS,N,W):J))return!1}}return!0}var hC=TS;function yS(i){return i===i&&!Wt(i)}var td=yS;function RS(i){for(var v=Bf(i),e=v.length;e--;){var N=v[e],y=i[N];v[e]=[N,y,td(y)]}return v}var dC=RS;function SS(i,v){return function(e){return e==null?!1:e[i]===v&&(v!==void 0||i in Object(e))}}var id=SS;function LS(i){var v=dC(i);return v.length==1&&v[0][2]?id(v[0][0],v[0][1]):function(e){return e===i||hC(e,i,v)}}var gC=LS;function wS(i,v){return i!=null&&v in Object(i)}var EC=wS;function OS(i,v,e){v=Yh(v,i);for(var N=-1,y=v.length,w=!1;++N<y;){var G=Aa(v[N]);if(!(w=i!=null&&e(i,G)))break;i=i[G]}return w||++N!=y?w:(y=i==null?0:i.length,!!y&&Uf(y)&&wf(G,y)&&(qr(i)||Lo(i)))}var vC=OS;function US(i,v){return i!=null&&vC(i,v,EC)}var mC=US;var GS=1,FS=2;function BS(i,v){return Df(i)&&td(v)?id(Aa(i),v):function(e){var N=Cx(e,i);return N===void 0&&N===v?mC(e,i):rd(v,N,GS|FS)}}var xC=BS;function DS(i){return function(v){return v?.[i]}}var CC=DS;function VS(i){return function(v){return Pf(v,i)}}var AC=VS;function MS(i){return Df(i)?CC(Aa(i)):AC(i)}var IC=MS;function WS(i){return typeof i=="function"?i:i==null?Ea:typeof i=="object"?qr(i)?xC(i[0],i[1]):gC(i):IC(i)}var NC=WS;function PS(i){return function(v,e,N){for(var y=-1,w=Object(v),G=N(v),V=G.length;V--;){var Z=G[i?V:++y];if(e(w[Z],Z,w)===!1)break}return v}}var bC=PS;var ZS=bC(),sd=ZS;function kS(i,v){return i&&sd(i,v,Bf)}var TC=kS;function QS(i,v){return function(e,N){if(e==null)return e;if(!xs(e))return i(e,N);for(var y=e.length,w=v?y:-1,G=Object(e);(v?w--:++w<y)&&N(G[w],w,G)!==!1;);return e}}var yC=QS;var _S=yC(TC),RC=_S;function HS(i,v,e){(e!==void 0&&!Mn(i[v],e)||e===void 0&&!(v in i))&&Of(i,v,e)}var Nh=HS;function YS(i){return gi(i)&&xs(i)}var SC=YS;function XS(i,v){if(!(v==="constructor"&&typeof i[v]=="function")&&v!="__proto__")return i[v]}var bh=XS;function $S(i){return W0(i,_h(i))}var LC=$S;function JS(i,v,e,N,y,w,G){var V=bh(i,e),Z=bh(v,e),H=G.get(Z);if(H){Nh(i,e,H);return}var _=w?w(V,Z,e+"",i,v,G):void 0,W=_===void 0;if(W){var J=qr(Z),M=!J&&_l(Z),z=!J&&!M&&Ff(Z);_=Z,J||M||z?qr(V)?_=V:SC(V)?_=G0(V):M?(W=!1,_=Mx(Z,!0)):z?(W=!1,_=zx(Z,!0)):_=[]:yx(Z)||Lo(Z)?(_=V,Lo(V)?_=LC(V):(!Wt(V)||Kr(V))&&(_=jx(Z))):W=!1}W&&(G.set(Z,_),y(_,Z,N,w,G),G.delete(Z)),Nh(i,e,_)}var wC=JS;function OC(i,v,e,N,y){i!==v&&sd(v,function(w,G){if(y||(y=new Ia),Wt(w))wC(i,v,G,e,OC,N,y);else{var V=N?N(bh(i,G),w,G+"",i,v,y):void 0;V===void 0&&(V=w),Nh(i,G,V)}},_h)}var nd=OC;var zS=Ph(function(i,v,e,N){nd(i,v,e,N)}),xv=zS;var jS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},qS=Sx(jS),UC=qS;var GC=/[&<>"']/g,KS=RegExp(GC.source);function e1(i){return i=Hh(i),i&&KS.test(i)?i.replace(GC,UC):i}var Th=e1;function r1(i,v){var e=-1,N=xs(i)?Array(i.length):[];return RC(i,function(y,w,G){N[++e]=v(y,w,G)}),N}var FC=r1;var t1=Ph(function(i,v,e){nd(i,v,e)}),od=t1;function i1(i,v){var e=i.length;for(i.sort(v);e--;)i[e]=i[e].value;return i}var BC=i1;function s1(i,v){if(i!==v){var e=i!==void 0,N=i===null,y=i===i,w=qs(i),G=v!==void 0,V=v===null,Z=v===v,H=qs(v);if(!V&&!H&&!w&&i>v||w&&G&&Z&&!V&&!H||N&&G&&Z||!e&&Z||!y)return 1;if(!N&&!w&&!H&&i<v||H&&e&&y&&!N&&!w||V&&e&&y||!G&&y||!Z)return-1}return 0}var DC=s1;function n1(i,v,e){for(var N=-1,y=i.criteria,w=v.criteria,G=y.length,V=e.length;++N<G;){var Z=DC(y[N],w[N]);if(Z){if(N>=V)return Z;var H=e[N];return Z*(H=="desc"?-1:1)}}return i.index-v.index}var VC=n1;function o1(i,v,e){v.length?v=Sf(v,function(w){return qr(w)?function(G){return Pf(G,w.length===1?w[0]:w)}:w}):v=[Ea];var N=-1;v=Sf(v,Zh(NC));var y=FC(i,function(w,G,V){var Z=Sf(v,function(H){return H(w)});return{criteria:Z,index:++N,value:w}});return BC(y,function(w,G){return VC(w,G,e)})}var MC=o1;var a1=Wh(function(i,v){if(i==null)return[];var e=v.length;return e>1&&Ah(i,v[0],v[1])?v=[]:e>2&&Ah(v[0],v[1],v[2])&&(v=[v[0]]),MC(i,bx(v,1),[])}),Cv=a1;function l1(i,v,e){return i&&i.length?(v=e||v===void 0?1:T0(v),Rx(i,0,v<0?0:v)):[]}var Av=l1;var Iv=Yt(Bh());function yh(i,v){return Kr(v)?v(i):v??{}}function u1(i,v){let e=`${i}:${v}`;return`Basic ${WC(e)}`}function WC(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let v=new window.TextEncoder().encode(i),e="";for(let N=0;N<v.length;N++)e+=String.fromCharCode(v[N]);return btoa(e)}else if(typeof TextEncoder<"u"){let v=new TextEncoder().encode(i),e="";for(let N=0;N<v.length;N++)e+=String.fromCharCode(v[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 Nv(i,v={}){let e=od({},yh(i,i.config.requestConfig),yh(i,v));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let y=Kr(e.endpoint)?e.endpoint(i):e.endpoint;var w=N=="update"?"POST":Kr(e.method)?e.method(i):e.method;let G=Kr(e.headers)?e.headers(i):e.headers,V=Kr(e.withCredentials)?e.withCredentials(i):e.withCredentials,Z={...G},H=!1;try{let _=Kr(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,W=_?.idToken||_?.accessToken,J=W?W.trim():"";_&&J.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 ${J}`);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 $=Kr(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,B=$&&$.headerName?$.headerName.trim():"",D=$&&$.apiKey?$.apiKey.trim():"";$&&B.length>0&&D.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]=D);let Y=Kr(e.basicAuth)?e.basicAuth(i):e.basicAuth;Y&&Y.username&&Y.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=u1(Y.username,Y.password))}catch(_){console.warn("Failed to configure authentication:",_)}return H&&(V=!0),{reqMethod:w,url:y,args:PC(i,e),headers:Z,accept:ZC(i,e),withCredentials:V??!1}}async function bv(i,v,e){let N=Date.now();try{i.emit("queryBefore",i,v);let y=Nv(i,v);if(!y)return;let w=new AbortController,G=e?.customAccept||y.accept,V={method:y.reqMethod,headers:{Accept:G,...y.headers||{}},credentials:y.withCredentials?"include":"same-origin",signal:w.signal,mode:"cors"};V?.headers&&y.reqMethod==="POST"&&(V.headers["Content-Type"]="application/x-www-form-urlencoded");let Z=new URLSearchParams,H=(z,$=[])=>{for(let B in z)if(!$.includes(B)){let D=z[B];Array.isArray(D)?D.forEach(Y=>Z.append(B,Y)):Z.append(B,D)}},_=z=>z.query!==void 0?"query":z.update!==void 0?"update":"query";if(e?.customQuery){let z=_(y.args);Z.append(z,e.customQuery),H(y.args,["query","update"])}else H(y.args);if(y.reqMethod==="POST")V.body=Z.toString();else{let z=new URL(y.url);Z.forEach(($,B)=>{z.searchParams.append(B,$)}),y.url=z.toString()}let W=new Request(y.url,V);i.emit("query",W,w);let J=await fetch(W),M={ok:J.ok,status:J.status,statusText:J.statusText,headers:J.headers,type:J.type,content:await J.text()};if(!J.ok){let z=new Error(M.content||J.statusText);throw z.status=J.status,z.statusText=J.statusText,z.response=M,z}return i.emit("queryResponse",M,Date.now()-N),i.emit("queryResults",M.content,Date.now()-N),M}catch(y){if(!(y instanceof Error&&y.message==="Aborted"))if(y instanceof Error&&!("status"in y)){let w=y;(y.message.includes("Failed to fetch")||y.message.includes("NetworkError"))&&(w.message=`${y.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",w,Date.now()-N)}else i.emit("queryResponse",y,Date.now()-N);throw i.emit("error",y),y}}function PC(i,v){var e=i.getQueryMode(),N={};let y=yh(i,v);var w=Kr(y.queryArgument)?y.queryArgument(i):y.queryArgument;w||(w=i.getQueryMode()),N[w]=y.adjustQueryBeforeRequest?y.adjustQueryBeforeRequest(i):i.getValue();let G=Kr(y.namedGraphs)?y.namedGraphs(i):y.namedGraphs;if(G&&G.length>0){let H=e==="query"?"named-graph-uri":"using-named-graph-uri ";N[H]=G}let V=Kr(y.defaultGraphs)?y.defaultGraphs(i):y.defaultGraphs;if(V&&V.length>0){let H=e=="query"?"default-graph-uri":"using-graph-uri ";N[H]=V}let Z=Kr(y.args)?y.args(i):y.args;return Z&&Z.length>0&&od(N,Z.reduce((H,_)=>(H[_.name]?H[_.name].push(_.value):H[_.name]=[_.value],H),{})),N}function ZC(i,v){let e=yh(i,v);var N=null;if(i.getQueryMode()=="update")N=Kr(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var y=i.getQueryType();y=="DESCRIBE"||y=="CONSTRUCT"?N=Kr(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Kr(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function Tv(i,v){let e=Nv(i,yh(i,v));if(!e)return"";let N=e.url;e.url.indexOf("http")!==0&&(N=`${window.location.protocol}//${window.location.host}`,e.url.indexOf("/")===0?N+=e.url:N+=window.location.pathname+e.url);let y=["curl"];e.reqMethod==="GET"?(N+=`?${Iv.stringify(e.args)}`,y.push(N)):e.reqMethod==="POST"?(y.push(N),y.push("--data",Iv.stringify(e.args))):(console.warn("Unexpected request-method",e.reqMethod),y.push(N)),y.push("-X",e.reqMethod);for(let w in e.headers)y.push(`-H '${w}: ${e.headers[w]}'`);return y.join(" ")}var kC='<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 QC='<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>',ad='<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>',_C='<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>',HC='<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>',YC='<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 Rv='<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 Rh=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(v,e){if(v.length!=0){var N=this,y,w;if(e===void 0&&(e=0),e===v.length){N.words++;return}N.prefixes++,y=v[e],N.children[y]===void 0&&(N.children[y]=new i),w=N.children[y],w.insert(v,e+1)}}remove(v,e){if(v.length!=0){var N=this,y,w;if(e===void 0&&(e=0),N!==void 0){if(e===v.length){N.words--;return}N.prefixes--,y=v[e],w=N.children[y],w.remove(v,e+1)}}}update(v,e){v.length==0||e.length==0||(this.remove(v),this.insert(e))}countWord(v,e){if(v.length==0)return 0;var N=this,y,w,G=0;return e===void 0&&(e=0),e===v.length?N.words:(y=v[e],w=N.children[y],w!==void 0&&(G=w.countWord(v,e+1)),G)}countPrefix(v,e){if(v.length==0)return 0;var N=this,G,y,w=0;if(e===void 0&&(e=0),e===v.length)return N.prefixes;var G=v[e];return y=N.children[G],y!==void 0&&(w=y.countPrefix(v,e+1)),w}find(v){return v.length==0?!1:this.countWord(v)>0}getAllWords(v){var e=this,N,y,w=[];if(v===void 0&&(v=""),e===void 0)return[];e.words>0&&w.push(v);for(N in e.children)e.children.hasOwnProperty(N)&&(y=e.children[N],w=w.concat(y.getAllWords(v+N)));return w}autoComplete(v,e){var N=this,y,w;return v.length==0?e===void 0?N.getAllWords(v):[]:(e===void 0&&(e=0),y=v[e],w=N.children[y],w===void 0?[]:e===v.length-1?w.getAllWords(v):w.autoComplete(v,e+1))}};var lA=Yt(iA());var wv=Yt(si());var v1={name:"variables",isValidCompletionPosition:function(i){var v=i.getTokenAt(i.getDoc().getCursor());return!!(v.type!="ws"&&(v=i.getCompleteToken(v),v&&(v.string[0]==="?"||v.string[0]==="$")))},get:function(i,v){if(!v||v.string.length==0)return[];let e={},N=[],y=i.getWrapperElement().querySelectorAll(".cm-atom");for(let G=0;G<y.length;G++){let V=y[G];var w=V.innerHTML;if(w[0]==="?"||w[0]==="$"){let Z=V.nextSibling;if(Z&&Z.className&&Z.className.indexOf("cm-atom")>=0&&(w+=Z.innerText),e[w]||w.length<=1||w.indexOf(v.string)!==0||w===v.string)continue;e[w]=!0,N.push(w)}}return N.sort()},bulk:!1,autoShow:!0},sA=v1;var m1={"string-2":"prefixed",atom:"var"},x1={postprocessHints:function(i,v){return Cv(v,e=>e.text.split(":")[0])},onInitialize:function(i){i.on("change",()=>{if(!(!i.config.autocompleters||i.config.autocompleters.indexOf(this.name)==-1)){var v=i.getDoc().getCursor(),e=i.getTokenAt(v);if(e.type&&m1[e.type]=="prefixed"){var N=e.string.indexOf(":");if(N!==-1){var y=i.getPreviousNonWsToken(v.line,e).string.toUpperCase(),w=i.getTokenAt({line:v.line,ch:e.start});if(y!=="PREFIX"&&(w.type=="ws"||w.type==null||w.type==="punc"&&(w.string==="|"||w.string==="/"||w.string=="^^"||w.string=="{"||w.string==="("))){var G=e.string.substring(0,N+1),V=i.getPrefixesFromQuery();V[G.slice(0,-1)]==null&&(e.autocompletionString=G,i.autocompleters[this.name]?.getCompletions(e).then(Z=>{Z.length&&(i.addPrefixes(Z[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var v=i.getDoc().getCursor(),e=i.getTokenAt(v);if(i.getDoc().getLine(v.line).length>v.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(v.line,e);return!(!N||N.string.toUpperCase()!="PREFIX")},get:function(i){return fetch(i.config.prefixCcApi).then(v=>{if(!v.ok)throw new Error("Failed to fetch prefixes");return v.json()}).then(v=>{let e=[];for(let N in v){let y=`${N}: <${v[N]}>`;e.push(y)}return e.sort()})},preProcessToken:function(i,v){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,v);return e&&e.string&&e.string.slice(-1)==":"&&(v={start:e.start,end:v.end,string:e.string+" "+v.string,state:v.state,type:v.type}),v},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},nA=x1;var C1={onInitialize:function(i){},get:function(i,v){return cd(i,"property",v)},isValidCompletionPosition:function(i){let v=i.getCompleteToken();return v.string.length==0||v.string[0]==="?"||v.string[0]==="$"?!1:v.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(i,v){return fd(i,v)},postProcessSuggestion:function(i,v,e){return pd(i,v,e)},bulk:!1,name:"property"},oA=C1;var A1={onInitialize:function(i){},get:function(i,v){return cd(i,"class",v)},isValidCompletionPosition:function(i){let v=i.getCompleteToken();if(v.string[0]==="?"||v.string[0]==="$")return!1;let e=i.getDoc().getCursor(),N=i.getPreviousNonWsToken(e.line,v);return N.state.lastProperty==="a"||N.state.lastProperty==="rdf:type"||N.state.lastProperty==="rdfs:domain"||N.state.lastProperty==="rdfs:range"},preProcessToken:function(i,v){return fd(i,v)},postProcessSuggestion:function(i,v,e){return pd(i,v,e)},bulk:!1,name:"class"},aA=A1;var I1=100,hd=class extends lA.EventEmitter{constructor(v,e){super(),this.yasqe=v,this.config=e}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(v){if(!(!v||!(v instanceof Array))){this.trie=new Rh;for(let N of v)this.trie.insert(N);var e=this.getStorageId();e&&this.yasqe.storage.set(e,v,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(v){if(!this.config.get)return Promise.resolve([]);if(!v)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=v.autocompletionString||v.string;return this.trie?Promise.resolve(Av(this.trie.autoComplete(e),I1)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(N=>N.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,v)).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 v,e=this.getStorageId();return e&&(v=this.yasqe.storage.get(e)),v&&v.length>0?(this.storeBulkCompletions(v),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(v,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,v,e));let N,y,w=this.yasqe.getDoc().getCursor();v.from&&(N={...w,...v.from});let G=this.yasqe.getDoc().getCursor().line;return v.to?y={ch:v?.to?.ch||this.yasqe.getCompleteToken().end,line:G}:v.string.length>0?y={ch:this.yasqe.getCompleteToken().end,line:G}:y=v.from,{text:e,displayText:e,from:N,to:y}}getHints(v){return this.config.preProcessToken&&(v=this.config.preProcessToken(this.yasqe,v)),v?this.getCompletions(v).then(e=>e.map(N=>this.getHint(v,N))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}autocomplete(v){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--),v&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let y=()=>this.getHints(this.yasqe.getCompleteToken()).then(G=>{let V=this.yasqe.getDoc().getCursor(),Z=this.yasqe.getCompleteToken(),H={list:G,from:{line:V.line,ch:Z.start},to:{line:V.line,ch:Z.end}};return wv.default.on(H,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),wv.default.on(H,"close",()=>{this.yasqe.emit("autocompletionClose")}),H});y.async=!1;var w={closeCharacters:/[\s>"]/,completeSingle:!1,hint:y,container:this.yasqe.rootEl,extraKeys:{Home:(G,V)=>{G.getDoc().setCursor({ch:0,line:V.data.from.line})},End:(G,V)=>{G.getDoc().setCursor({ch:G.getLine(V.data.to.line).length,line:V.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(w),!0}};function fd(i,v){let e=i.getPrefixesFromQuery(),N=v.string;if(N.indexOf("<")<0&&(v.tokenPrefix=N.substring(0,N.indexOf(":")+1),e[v.tokenPrefix.slice(0,-1)]!=null&&(v.tokenPrefixUri=e[v.tokenPrefix.slice(0,-1)])),v.autocompletionString=N.trim(),N.indexOf("<")<0&&N.indexOf(":")>-1){for(var y in e)if(v.tokenPrefix===y+":"){v.autocompletionString=e[y],v.autocompletionString+=N.substring(y.length+1);break}}return v.autocompletionString.indexOf("<")==0&&(v.autocompletionString=v.autocompletionString.substring(1)),v.autocompletionString.indexOf(">",v.autocompletionString.length-1)>0&&(v.autocompletionString=v.autocompletionString.substring(0,v.autocompletionString.length-1)),v}function pd(i,v,e){return v.tokenPrefix&&v.autocompletionString&&v.tokenPrefixUri?e=v.tokenPrefix+e.substring(v.tokenPrefixUri.length):e="<"+e+">",e}var cd=(i,v,e)=>{var N=window.location.protocol.indexOf("http")===0?"https://":"http://";let y="autocomplete_"+v;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(y,"Nothing to autocomplete yet!"),Promise.resolve([]);let w=new URLSearchParams;e.autocompletionString&&w.append("q",e.autocompletionString),w.append("page_size","50"),w.append("type",v);let G=`${N}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${w.toString()}`;return fetch(G).then(V=>{if(!V.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return V.json()}).then(V=>V.results?V.results.map(Z=>Z.uri[0]):[]).catch(V=>{i.showNotification(y,"Failed fetching suggestions")})},uA=[sA,nA,oA,aA];var fA=Yt(Bh()),dd=Yt(si());function Ov(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
41
41
  PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
42
42
  SELECT * WHERE {
43
43
  ?sub ?pred ?obj .
44
- } LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new dd.default.fold.combine(dd.default.fold.brace,dd.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,w=R.getDoc().getCursor().line;return w===R.getDoc().lastLine()&&w>1?R.getDoc().replaceRange("",{ch:R.getDoc().getLine(w-1).length,line:w-1},{ch:R.getDoc().getLine(w).length,line:w}):R.getDoc().replaceRange("",{ch:0,line:w},{ch:0,line:w+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+"#"+uA.stringify(N.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(N){N.queryParamsToConfig(N.getUrlParams())},persistenceId:function(N){let R="",w=N.rootEl;for(w.id&&(R=w.id);w&&w!==document;w=w.parentNode)if(w){w.id&&(R=w.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 {
44
+ } LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new dd.default.fold.combine(dd.default.fold.brace,dd.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 y=N,w=y.getDoc().getCursor().line;return w===y.getDoc().lastLine()&&w>1?y.getDoc().replaceRange("",{ch:y.getDoc().getLine(w-1).length,line:w-1},{ch:y.getDoc().getLine(w).length,line:w}):y.getDoc().replaceRange("",{ch:0,line:w},{ch:0,line:w+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+"#"+fA.stringify(N.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(N){N.queryParamsToConfig(N.getUrlParams())},persistenceId:function(N){let y="",w=N.rootEl;for(w.id&&(y=w.id);w&&w!==document;w=w.parentNode)if(w){w.id&&(y=w.id);break}return"yasqe_"+y+"_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 {
45
45
  ?s ?p ?o .
46
46
  } LIMIT 10`,group:"Query Types"},{label:"CONSTRUCT",code:`CONSTRUCT {
47
47
  ?s ?p ?o .
@@ -51,58 +51,58 @@ SELECT * WHERE {
51
51
  ?s ?p ?o .
52
52
  }`,group:"Query Types"},{label:"FILTER",code:"FILTER (?var > 100)",group:"Patterns"},{label:"OPTIONAL",code:`OPTIONAL {
53
53
  ?s ?p ?o .
54
- }`,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}}}var Ed=$t(si());var fA={"*[&&,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"]}},pA=/^(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,cA=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,gd="sparql11",hA=!0;function dA(i){let v=fA,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+"|_",w="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",O="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",V="\\?"+O,W="\\$"+O,H="("+N+")((("+w+")|\\.)*("+w+"))?",Z="[0-9A-Fa-f]",Q="("+("(%"+Z+Z+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",ee="("+R+"|:|[0-9]|"+Q+")(("+w+"|\\.|:|"+Q+")*("+w+"|:|"+Q+"))?",Y="_:("+R+"|[0-9])(("+w+"|\\.)*"+w+")?",B="("+H+")?:",D=B+ee,X="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",z="[eE][\\+-]?[0-9]+",te="[0-9]+",ie="[0-9]*\\.[0-9]+",ue="(([0-9]+\\.[0-9]*"+z+")|(\\.[0-9]+"+z+")|([0-9]+"+z+"))",Ee="\\+"+te,_e="\\+"+ie,we="\\+"+ue,We="-"+te,Me="-"+ie,Ke="-"+ue,ve=`\\\\[tbnrf\\\\"']`,xr=Z+"{4}",Cr="(\\\\u"+xr+"|\\\\U00(10|0"+Z+")"+xr+")",ur="'(([^\\x27\\x5C\\x0A\\x0D])|"+ve+"|"+Cr+")*'",Jr='"(([^\\x22\\x5C\\x0A\\x0D])|'+ve+"|"+Cr+')*"',Je={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+ve+"|"+Cr+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+ve+"|"+Cr+"))*"}};for(let Oe in Je)Je[Oe].COMPLETE=Je[Oe].QUOTES+Je[Oe].CONTENTS+Je[Oe].QUOTES;var yt={};for(let Oe in Je)yt[Oe]={complete:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].CONTENTS+Je[Oe].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Oe,regex:new RegExp("^"+Je[Oe].QUOTES),style:"string"}};let St="[\\x20\\x09\\x0D\\x0A]",cr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",Lt="("+St+"|("+cr+"))*",or="\\("+Lt+"\\)",at="\\["+Lt+"\\]",ze=[{name:"WS",regex:new RegExp("^"+St+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+cr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+V),style:"atom"},{name:"VAR2",regex:new RegExp("^"+W),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+X),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ue),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ie),style:"number"},{name:"INTEGER",regex:new RegExp("^"+te),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+we),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+_e),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+Ee),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Ke),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Me),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+We),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+ur),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+Jr),style:"string"},{name:"NIL",regex:new RegExp("^"+or),style:"punc"},{name:"ANON",regex:new RegExp("^"+at),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+D),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(Oe){var pe=[],Er=v[Oe];if(Er!=null)for(let fr in Er)pe.push(fr.toString());else pe.push(Oe);return pe}function Ar(Oe,pe){function Er(){let Se;if(pe.inLiteral){var rr=!1;if(Se=Oe.match(yt[pe.inLiteral].contents.regex,!0,!1),Se&&Se[0].length==0&&(Se=Oe.match(yt[pe.inLiteral].closing.regex,!0,!1),rr=!0),Se&&Se[0].length>0){let Ir={quotePos:rr?"end":"content",cat:Je[pe.inLiteral].CAT,style:yt[pe.inLiteral].complete.style,string:Se[0],start:Oe.start};return rr&&(pe.inLiteral=void 0),Ir}}for(let Ir in yt)if(Se=Oe.match(yt[Ir].quotes.regex,!0,!1),Se){var Pt;return pe.inLiteral?(pe.inLiteral=void 0,Pt="end"):(pe.inLiteral=Ir,Pt="start"),{cat:Je[Ir].CAT,style:yt[Ir].quotes.style,string:Se[0],quotePos:Pt,start:Oe.start}}for(var It=0;It<ze.length;++It)if(Se=Oe.match(ze[It].regex,!0,!1),Se)return{cat:ze[It].name,style:ze[It].style,string:Se[0],start:Oe.start,quotePos:void 0};return Se=Oe.match(pA,!0,!1),Se?{cat:Oe.current().toUpperCase(),style:"keyword",string:Se[0],start:Oe.start,quotePos:void 0}:(Se=Oe.match(cA,!0,!1),Se?{cat:Oe.current(),style:"punc",string:Se[0],start:Oe.start,quotePos:void 0}:(Se=Oe.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Se[0],start:Oe.start,quotePos:void 0}))}function fr(){let Se=Oe.column();pe.errorStartPos=Se,pe.errorEndPos=Se+Ie.string.length}function ye(Se){if(pe.queryType==null)switch(Se){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=Se}}function Or(Se){switch(Se==="prefixDecl"?pe.inPrefixDecl=!0:pe.inPrefixDecl=!1,Se){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(Se){return(pe.allowVars||Se!="var")&&(pe.allowBnodes||Se!="blankNode"&&Se!="blankNodePropertyList"&&Se!="blankNodePropertyListPath")}Oe.pos==0&&(pe.possibleCurrent=pe.possibleNext);let Ie=Er();if(Ie.cat=="<invalid_token>")return pe.OK==!0&&(pe.OK=!1,fr()),pe.complete=!1,Ie.style;if(Ie.cat==="WS"||Ie.cat==="COMMENT"||Ie.quotePos&&Ie.quotePos!="end")return pe.possibleCurrent=pe.possibleNext,pe.possibleFullIri=!1,Ie.style;var wt=!1,lt;let At=Ie.cat;if(pe.possibleFullIri&&Ie.string===">"&&(pe.possibleFullIri=!1),!pe.possibleFullIri&&Ie.string==="<"&&(pe.possibleFullIri=!0),!Ie.quotePos||Ie.quotePos=="end")for(;pe.stack.length>0&&At&&pe.OK&&!wt;)if(lt=pe.stack.pop(),lt==="var"&&Ie.string&&(pe.variables[Ie.string]=Ie.string,pe.queryType==="CONSTRUCT"&&(pe.inConstructTemplate?pe.constructVariables[Ie.string]=Ie.string:pe.seenWhereClause&&(pe.whereVariables[Ie.string]=Ie.string))),v[lt]){let Se=v[lt][At];if(Se!=null&&ei(lt)){for(var ut=Se.length-1;ut>=0;--ut)pe.stack.push(Se[ut]);Or(lt)}else pe.OK=!1,pe.complete=!1,fr(),pe.stack.push(lt)}else if(lt==At){pe.inPrefixDecl&&(lt==="PNAME_NS"&&Ie.string.length>0?pe.currentPnameNs=Ie.string.slice(0,-1):typeof pe.currentPnameNs=="string"&&Ie.string.length>1&&(pe.prefixes[pe.currentPnameNs]=Ie.string.slice(1,-1),pe.currentPnameNs=void 0)),wt=!0,ye(lt);for(var es=!0,Be=pe.stack.length;Be>0;--Be){let Se=v[pe.stack[Be-1]];(!Se||!Se.$)&&(es=!1)}if(pe.complete=es,pe.storeProperty&&At!="punc"?(pe.lastProperty=Ie.string,pe.lastPropertyIndex=Ie.start,pe.storeProperty=!1):(At==="."||At===";")&&(pe.lastProperty="",pe.lastPropertyIndex=0),!pe.inPrefixDecl&&(At==="PNAME_NS"||At==="PNAME_LN")){let Se=Ie.string.indexOf(":");if(Se>=0){let rr=Ie.string.slice(0,Se);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(!wt&&pe.OK&&(pe.OK=!1,pe.complete=!1,fr()),pe.possibleNext.indexOf("a")>=0){let Se=Oe.string;for(let rr=Ie.start;rr>=0;rr--)if(Se[rr-1]!==" "){Se[rr-1]==="|"||Se[rr-1]==="/"||Ie.style==="punc"||(pe.lastPredicateOffset=Ie.start);break}}return pe.possibleCurrent=pe.possibleNext,pe.possibleNext=zr(pe.stack[pe.stack.length-1]),Ie.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(Oe,pe){if(Oe.inLiteral)return 0;if(Oe.lastPredicateOffset!==void 0&&Oe.stack.length&&Oe.stack[Oe.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Oe.lastPredicateOffset;var Er=0,fr=Oe.stack.length-1;if(/^[\}\]\)]/.test(pe)){let ye=pe.substr(0,1);for(;fr>=0;--fr)if(Oe.stack[fr]==ye){--fr;break}}else{let ye=Pr[Oe.stack[fr]];ye&&(Er+=ye,--fr)}for(;fr>=0;--fr){let ye=hr[Oe.stack[fr]];ye&&(Er+=ye)}return Er*(i.indentUnit??2)}return{token:Ar,startState:function(){return{tokenize:Ar,OK:!0,complete:hA,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:zr(gd),possibleNext:zr(gd),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[gd],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 PV=$t(Ov()),WV=$t(xA()),kV=$t(IA()),ZV=$t(TA()),_V=$t(SA()),QV=$t(Uv()),HV=$t(PA()),$V=$t(ZA()),XV=$t(HA());Ed.default.registerHelper("fold","prefix",zv);Ed.default.defineMode("sparql11",dA);var T1=Ed.default,Na=T1;function R1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function Xl(i,v,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,Xl.prototype),R.expected=v,R.found=e,R.location=N,R.name="SyntaxError",R}R1(Xl,Error);function Gv(i,v,e){return e=e||" ",i.length>v?i:(v-=i.length,e+=e.repeat(v),i+e.slice(0,v))}Xl.prototype.format=function(i){var v="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,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,O=this.location.source+":"+w.line+":"+w.column;if(e){var V=this.location.end,W=Gv("",w.line.toString().length," "),H=e[R.line-1],Z=R.line===V.line?V.column:H.length+1,P=Z-R.column||1;v+=`
55
- --> `+O+`
56
- `+W+` |
54
+ }`,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 Ed=Yt(si());var pA={"*[&&,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"]}},cA=/^(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,hA=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,gd="sparql11",dA=!0;function gA(i){let v=pA,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]",y=N+"|_",w="("+y+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",G="("+y+"|[0-9])("+y+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",V="\\?"+G,Z="\\$"+G,H="("+N+")((("+w+")|\\.)*("+w+"))?",_="[0-9A-Fa-f]",M="("+("(%"+_+_+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",z="("+y+"|:|[0-9]|"+M+")(("+w+"|\\.|:|"+M+")*("+w+"|:|"+M+"))?",$="_:("+y+"|[0-9])(("+w+"|\\.)*"+w+")?",B="("+H+")?:",D=B+z,Y="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",q="[eE][\\+-]?[0-9]+",te="[0-9]+",ie="[0-9]*\\.[0-9]+",le="(([0-9]+\\.[0-9]*"+q+")|(\\.[0-9]+"+q+")|([0-9]+"+q+"))",Ee="\\+"+te,ke="\\+"+ie,we="\\+"+le,Pe="-"+te,Me="-"+ie,Ke="-"+le,ve=`\\\\[tbnrf\\\\"']`,xr=_+"{4}",Cr="(\\\\u"+xr+"|\\\\U00(10|0"+_+")"+xr+")",ur="'(([^\\x27\\x5C\\x0A\\x0D])|"+ve+"|"+Cr+")*'",Jr='"(([^\\x22\\x5C\\x0A\\x0D])|'+ve+"|"+Cr+')*"',Je={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+ve+"|"+Cr+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+ve+"|"+Cr+"))*"}};for(let Oe in Je)Je[Oe].COMPLETE=Je[Oe].QUOTES+Je[Oe].CONTENTS+Je[Oe].QUOTES;var St={};for(let Oe in Je)St[Oe]={complete:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].CONTENTS+Je[Oe].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Oe,regex:new RegExp("^"+Je[Oe].QUOTES),style:"string"}};let Lt="[\\x20\\x09\\x0D\\x0A]",cr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",wt="("+Lt+"|("+cr+"))*",or="\\("+wt+"\\)",ut="\\["+wt+"\\]",ze=[{name:"WS",regex:new RegExp("^"+Lt+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+cr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+V),style:"atom"},{name:"VAR2",regex:new RegExp("^"+Z),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+Y),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+le),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ie),style:"number"},{name:"INTEGER",regex:new RegExp("^"+te),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+we),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+ke),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+Ee),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Ke),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Me),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Pe),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+ur),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+Jr),style:"string"},{name:"NIL",regex:new RegExp("^"+or),style:"punc"},{name:"ANON",regex:new RegExp("^"+ut),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+D),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+B),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+$),style:"string-2"}];function zr(Oe){var pe=[],Er=v[Oe];if(Er!=null)for(let fr in Er)pe.push(fr.toString());else pe.push(Oe);return pe}function Ar(Oe,pe){function Er(){let Se;if(pe.inLiteral){var rr=!1;if(Se=Oe.match(St[pe.inLiteral].contents.regex,!0,!1),Se&&Se[0].length==0&&(Se=Oe.match(St[pe.inLiteral].closing.regex,!0,!1),rr=!0),Se&&Se[0].length>0){let Nr={quotePos:rr?"end":"content",cat:Je[pe.inLiteral].CAT,style:St[pe.inLiteral].complete.style,string:Se[0],start:Oe.start};return rr&&(pe.inLiteral=void 0),Nr}}for(let Nr in St)if(Se=Oe.match(St[Nr].quotes.regex,!0,!1),Se){var at;return pe.inLiteral?(pe.inLiteral=void 0,at="end"):(pe.inLiteral=Nr,at="start"),{cat:Je[Nr].CAT,style:St[Nr].quotes.style,string:Se[0],quotePos:at,start:Oe.start}}for(var ct=0;ct<ze.length;++ct)if(Se=Oe.match(ze[ct].regex,!0,!1),Se)return{cat:ze[ct].name,style:ze[ct].style,string:Se[0],start:Oe.start,quotePos:void 0};return Se=Oe.match(cA,!0,!1),Se?{cat:Oe.current().toUpperCase(),style:"keyword",string:Se[0],start:Oe.start,quotePos:void 0}:(Se=Oe.match(hA,!0,!1),Se?{cat:Oe.current(),style:"punc",string:Se[0],start:Oe.start,quotePos:void 0}:(Se=Oe.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Se[0],start:Oe.start,quotePos:void 0}))}function fr(){let Se=Oe.column();pe.errorStartPos=Se,pe.errorEndPos=Se+Ie.string.length}function Re(Se){if(pe.queryType==null)switch(Se){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=Se}}function Ur(Se){switch(Se==="prefixDecl"?pe.inPrefixDecl=!0:pe.inPrefixDecl=!1,Se){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(Se){return(pe.allowVars||Se!="var")&&(pe.allowBnodes||Se!="blankNode"&&Se!="blankNodePropertyList"&&Se!="blankNodePropertyListPath")}Oe.pos==0&&(pe.possibleCurrent=pe.possibleNext);let Ie=Er();if(Ie.cat=="<invalid_token>")return pe.OK==!0&&(pe.OK=!1,fr()),pe.complete=!1,Ie.style;if(Ie.cat==="WS"||Ie.cat==="COMMENT"||Ie.quotePos&&Ie.quotePos!="end")return pe.possibleCurrent=pe.possibleNext,pe.possibleFullIri=!1,Ie.style;var Ot=!1,ft;let Nt=Ie.cat;if(pe.possibleFullIri&&Ie.string===">"&&(pe.possibleFullIri=!1),!pe.possibleFullIri&&Ie.string==="<"&&(pe.possibleFullIri=!0),!Ie.quotePos||Ie.quotePos=="end")for(;pe.stack.length>0&&Nt&&pe.OK&&!Ot;)if(ft=pe.stack.pop(),ft==="var"&&Ie.string&&(pe.variables[Ie.string]=Ie.string,pe.queryType==="CONSTRUCT"&&(pe.inConstructTemplate?pe.constructVariables[Ie.string]=Ie.string:pe.seenWhereClause&&(pe.whereVariables[Ie.string]=Ie.string))),v[ft]){let Se=v[ft][Nt];if(Se!=null&&ei(ft)){for(var pt=Se.length-1;pt>=0;--pt)pe.stack.push(Se[pt]);Ur(ft)}else pe.OK=!1,pe.complete=!1,fr(),pe.stack.push(ft)}else if(ft==Nt){pe.inPrefixDecl&&(ft==="PNAME_NS"&&Ie.string.length>0?pe.currentPnameNs=Ie.string.slice(0,-1):typeof pe.currentPnameNs=="string"&&Ie.string.length>1&&(pe.prefixes[pe.currentPnameNs]=Ie.string.slice(1,-1),pe.currentPnameNs=void 0)),Ot=!0,Re(ft);for(var es=!0,Be=pe.stack.length;Be>0;--Be){let Se=v[pe.stack[Be-1]];(!Se||!Se.$)&&(es=!1)}if(pe.complete=es,pe.storeProperty&&Nt!="punc"?(pe.lastProperty=Ie.string,pe.lastPropertyIndex=Ie.start,pe.storeProperty=!1):(Nt==="."||Nt===";")&&(pe.lastProperty="",pe.lastPropertyIndex=0),!pe.inPrefixDecl&&(Nt==="PNAME_NS"||Nt==="PNAME_LN")){let Se=Ie.string.indexOf(":");if(Se>=0){let rr=Ie.string.slice(0,Se);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 Se=Oe.string;for(let rr=Ie.start;rr>=0;rr--)if(Se[rr-1]!==" "){Se[rr-1]==="|"||Se[rr-1]==="/"||Ie.style==="punc"||(pe.lastPredicateOffset=Ie.start);break}}return pe.possibleCurrent=pe.possibleNext,pe.possibleNext=zr(pe.stack[pe.stack.length-1]),Ie.style}let Zr={"*[,, 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(Oe,pe){if(Oe.inLiteral)return 0;if(Oe.lastPredicateOffset!==void 0&&Oe.stack.length&&Oe.stack[Oe.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Oe.lastPredicateOffset;var Er=0,fr=Oe.stack.length-1;if(/^[\}\]\)]/.test(pe)){let Re=pe.substr(0,1);for(;fr>=0;--fr)if(Oe.stack[fr]==Re){--fr;break}}else{let Re=Zr[Oe.stack[fr]];Re&&(Er+=Re,--fr)}for(;fr>=0;--fr){let Re=hr[Oe.stack[fr]];Re&&(Er+=Re)}return Er*(i.indentUnit??2)}return{token:Ar,startState:function(){return{tokenize:Ar,OK:!0,complete:dA,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:zr(gd),possibleNext:zr(gd),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[gd],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 WV=Yt(Uv()),PV=Yt(CA()),ZV=Yt(NA()),kV=Yt(yA()),QV=Yt(LA()),_V=Yt(Gv()),HV=Yt(PA()),YV=Yt(QA()),XV=Yt(YA());Ed.default.registerHelper("fold","prefix",jv);Ed.default.defineMode("sparql11",gA);var T1=Ed.default,Na=T1;function y1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function Xl(i,v,e,N){var y=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(y,Xl.prototype),y.expected=v,y.found=e,y.location=N,y.name="SyntaxError",y}y1(Xl,Error);function Fv(i,v,e){return e=e||" ",i.length>v?i:(v-=i.length,e+=e.repeat(v),i+e.slice(0,v))}Xl.prototype.format=function(i){var v="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 y=this.location.start,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,G=this.location.source+":"+w.line+":"+w.column;if(e){var V=this.location.end,Z=Fv("",w.line.toString().length," "),H=e[y.line-1],_=y.line===V.line?V.column:H.length+1,W=_-y.column||1;v+=`
55
+ --> `+G+`
56
+ `+Z+` |
57
57
  `+w.line+" | "+H+`
58
- `+W+" | "+Gv("",R.column-1," ")+Gv("",P,"^")}else v+=`
59
- at `+O}return v};Xl.buildMessage=function(i,v){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var Z=H.parts.map(function(P){return Array.isArray(P)?w(P[0])+"-"+w(P[1]):w(P)});return"["+(H.inverted?"^":"")+Z.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(Z){return"\\x0"+N(Z)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Z){return"\\x"+N(Z)})}function w(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(Z){return"\\x0"+N(Z)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Z){return"\\x"+N(Z)})}function O(H){return e[H.type](H)}function V(H){var Z=H.map(O),P,J;if(Z.sort(),Z.length>0){for(P=1,J=1;P<Z.length;P++)Z[P-1]!==Z[P]&&(Z[J]=Z[P],J++);Z.length=J}switch(Z.length){case 1:return Z[0];case 2:return Z[0]+" or "+Z[1];default:return Z.slice(0,-1).join(", ")+", or "+Z[Z.length-1]}}function W(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+V(i)+" but "+W(v)+" found."};function Sh(i,v){v=v!==void 0?v:{};var e={},N=v.grammarSource,R={DOCUMENT:Sc},w=Sc,O="base",V="prefix",W="select",H="distinct",Z="reduced",P="(",J="as",Q=")",ee="*",Y="construct",B="where",D="{",X="}",z="describe",te="ask",ie="from",ue="named",Ee="group",_e="by",we="having",We="order",Me="asc",Ke="desc",ve="limit",xr="offset",Cr="values",ur=";",Jr="load",Je="silent",yt="into",St="clear",cr="drop",Lt="create",or="add",at="to",ze="move",zr="copy",Ar="insert",Pr="data",hr="delete",Kt="with",Oe="using",pe="default",Er="graph",fr="all",ye=".",Or="optional",ei="service",Ie="bind",wt="UNDEF",lt="minus",At="union",es="filter",Be=",",ut="a",Se="|",rr="/",Pt="^",It="?",Ir="+",ri="!",Ui="[",ti="]",Nt="||",ii="&&",br="=",Ot="!=",Ue="<",ni=">",Wr="<=",ar=">=",dr="in",rs="not",tr="-",ts="str",ft="lang",kr="langmatches",Ei="datatype",Is="bound",Ks="iri",en="uri",Go="bnode",rn="rand",Ta="abs",Wt="ceil",Gi="floor",tn="round",Fo="concat",Wn="strlen",sn="ucase",oi="lcase",nn="encode_for_uri",Fi="contains",Bo="strbefore",Do="strstarts",on="strends",De="strafter",q="year",ge="month",Re="day",vr="hours",Kr="minutes",je="seconds",Ae="timezone",pt="tz",vi="now",kt="uuid",Qe="struuid",mi="md5",is="sha1",Ra="sha256",ce="sha384",$e="sha512",ya="coalesce",Sa="if",Vo="strlang",Mo="strdt",zl="sameterm",Xe="isuri",$f="isiri",jl="isblank",Po="isliteral",xi="isnumeric",ql="regex",Kl="substr",kn="replace",Zn="exists",eu="count",La="sum",ru="min",tu="max",iu="avg",su="sample",Xf="group_concat",Yf="separator",Wo="^^",Bi="true",Jf="false",Xt=":",an="_:",Ns="$",wa="@",Di="'",bs='"',Ts="'''",Vi="''",ss='"""',Rs='""',ko="\\",ln="#",un="_",fn="%",Oa="~",nu="&",Zo=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ua=/^[a-zA-Z]/,ns=/^[a-zA-Z0-9]/,ai=/^[eE]/,zf=/^[+\-]/,Ga=/^[^'\\\n\r]/,_n=/^[^"\\\n\r]/,_o=/^[^'\\]/,Ci=/^[^"\\]/,Fa=/^[tbnrf\\"']/,Mi=/^[ \t]/,Qo=/^[\r\n]/,Ba=/^[^\r\n]/,pn=/^[A-Z]/,jf=/^[a-z]/,qf=/^[\xC0-\xD6]/,Kf=/^[\xD8-\xF6]/,ep=/^[\xF8-\u02FF]/,ou=/^[\u0370-\u037D]/,au=/^[\u037F-\u1FFF]/,rp=/^[\u200C-\u200D]/,tp=/^[\u2070-\u218F]/,ip=/^[\u2C00-\u2FEF]/,sp=/^[\u3001-\uD7FF]/,lu=/^[\uF900-\uFDCF]/,np=/^[\uFDF0-\uFFFD]/,cn=/^[\xB7]/,os=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,op=/^[A-F]/,ap=/^[a-f]/,lp=M("BASE",!0),Qn=M("PREFIX",!0),et=M("SELECT",!0),ct=M("DISTINCT",!0),uu=M("REDUCED",!0),ae=M("(",!1),ys=M("AS",!0),le=M(")",!1),Zr=M("*",!1),Hn=M("CONSTRUCT",!0),as=M("WHERE",!0),Ut=M("{",!1),Gt=M("}",!1),fu=M("DESCRIBE",!0),pu=M("ASK",!0),up=M("FROM",!0),Pi=M("NAMED",!0),Wi=M("GROUP",!0),hn=M("BY",!0),Da=M("HAVING",!0),cu=M("ORDER",!0),Ii=M("ASC",!0),Ss=M("DESC",!0),Va=M("LIMIT",!0),fp=M("OFFSET",!0),Ho=M("VALUES",!0),Yt=M(";",!1),hu=M("LOAD",!0),ht=M("SILENT",!0),dn=M("INTO",!0),Ni=M("CLEAR",!0),du=M("DROP",!0),gu=M("CREATE",!0),pp=M("ADD",!0),$n=M("TO",!0),cp=M("MOVE",!0),Eu=M("COPY",!0),$o=M("INSERT",!0),Ls=M("DATA",!0),gn=M("DELETE",!0),vu=M("WITH",!0),Ma=M("USING",!0),En=M("DEFAULT",!0),ls=M("GRAPH",!0),Xo=M("ALL",!0),Ye=M(".",!1),mu=M("OPTIONAL",!0),Pa=M("SERVICE",!0),Wa=M("BIND",!0),xu=M("UNDEF",!1),Cu=M("MINUS",!0),Xn=M("UNION",!0),hp=M("FILTER",!0),ke=M(",",!1),ws=M("a",!1),Jt=M("|",!1),Dr=M("/",!1),us=M("^",!1),Os=M("?",!1),dt=M("+",!1),vn=M("!",!1),Us=M("[",!1),li=M("]",!1),ki=M("||",!1),gt=M("&&",!1),Zt=M("=",!1),bi=M("!=",!1),fs=M("<",!1),Yn=M(">",!1),Yo=M("<=",!1),Gs=M(">=",!1),ps=M("IN",!0),Fs=M("NOT",!0),Vr=M("-",!1),dp=M("STR",!0),ka=M("LANG",!0),Au=M("LANGMATCHES",!0),Za=M("DATATYPE",!0),_a=M("BOUND",!0),mn=M("IRI",!0),Jo=M("URI",!0),Iu=M("BNODE",!0),zo=M("RAND",!0),gp=M("ABS",!0),Ep=M("CEIL",!0),vp=M("FLOOR",!0),Qa=M("ROUND",!0),Ha=M("CONCAT",!0),xn=M("STRLEN",!0),Jn=M("UCASE",!0),mp=M("LCASE",!0),jo=M("ENCODE_FOR_URI",!0),Nu=M("CONTAINS",!0),zn=M("STRBEFORE",!0),bu=M("STRSTARTS",!0),Bs=M("STRENDS",!0),jn=M("STRAFTER",!0),Ds=M("YEAR",!0),qn=M("MONTH",!0),Cn=M("DAY",!0),Tu=M("HOURS",!0),Ru=M("MINUTES",!0),yu=M("SECONDS",!0),xp=M("TIMEZONE",!0),Vs=M("TZ",!0),Ms=M("NOW",!0),Cp=M("UUID",!0),Ap=M("STRUUID",!0),Ip=M("MD5",!0),Np=M("SHA1",!0),bp=M("SHA256",!0),Tp=M("SHA384",!0),_t=M("SHA512",!0),rt=M("COALESCE",!0),bt=M("IF",!0),tt=M("STRLANG",!0),Kn=M("STRDT",!0),Rp=M("sameTerm",!0),qo=M("isURI",!0),yp=M("isIRI",!0),Sp=M("isBLANK",!0),Lp=M("isLITERAL",!0),$a=M("isNUMERIC",!0),Su=M("REGEX",!0),Xa=M("SUBSTR",!0),wp=M("REPLACE",!0),eo=M("EXISTS",!0),Ya=M("COUNT",!0),Lu=M("SUM",!0),wu=M("MIN",!0),Ja=M("MAX",!0),Ou=M("AVG",!0),ro=M("SAMPLE",!0),Op=M("GROUP_CONCAT",!0),Ko=M("SEPARATOR",!0),Zi=M("^^",!1),Uu=M("true",!0),Up=M("false",!0),ea=Ge(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Tr=M(":",!1),lr=M("_:",!1),Pe=Ge([["0","9"]],!1,!1),Ti=M("$",!1),Ri=M("@",!1),ra=Ge([["a","z"],["A","Z"]],!1,!1),_i=Ge([["a","z"],["A","Z"],["0","9"]],!1,!1),Gu=Ge(["e","E"],!1,!1),Gp=Ge(["+","-"],!1,!1),ui=M("'",!1),Ps=Ge(["'","\\",`
60
- `,"\r"],!0,!1),cs=M('"',!1),to=Ge(['"',"\\",`
61
- `,"\r"],!0,!1),yi=M("'''",!1),ta=M("''",!1),ia=Ge(["'","\\"],!0,!1),za=M('"""',!1),An=M('""',!1),io=Ge(['"',"\\"],!0,!1),sa=M("\\",!1),Fp=Ge(["t","b","n","r","f","\\",'"',"'"],!1,!1),Fu=Ge([" "," "],!1,!1),Bp=Ge(["\r",`
58
+ `+Z+" | "+Fv("",y.column-1," ")+Fv("",W,"^")}else v+=`
59
+ at `+G}return v};Xl.buildMessage=function(i,v){var e={literal:function(H){return'"'+y(H.text)+'"'},class:function(H){var _=H.parts.map(function(W){return Array.isArray(W)?w(W[0])+"-"+w(W[1]):w(W)});return"["+(H.inverted?"^":"")+_.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 y(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(_){return"\\x0"+N(_)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(_){return"\\x"+N(_)})}function w(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(_){return"\\x0"+N(_)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(_){return"\\x"+N(_)})}function G(H){return e[H.type](H)}function V(H){var _=H.map(G),W,J;if(_.sort(),_.length>0){for(W=1,J=1;W<_.length;W++)_[W-1]!==_[W]&&(_[J]=_[W],J++);_.length=J}switch(_.length){case 1:return _[0];case 2:return _[0]+" or "+_[1];default:return _.slice(0,-1).join(", ")+", or "+_[_.length-1]}}function Z(H){return H?'"'+y(H)+'"':"end of input"}return"Expected "+V(i)+" but "+Z(v)+" found."};function Sh(i,v){v=v!==void 0?v:{};var e={},N=v.grammarSource,y={DOCUMENT:Sc},w=Sc,G="base",V="prefix",Z="select",H="distinct",_="reduced",W="(",J="as",M=")",z="*",$="construct",B="where",D="{",Y="}",q="describe",te="ask",ie="from",le="named",Ee="group",ke="by",we="having",Pe="order",Me="asc",Ke="desc",ve="limit",xr="offset",Cr="values",ur=";",Jr="load",Je="silent",St="into",Lt="clear",cr="drop",wt="create",or="add",ut="to",ze="move",zr="copy",Ar="insert",Zr="data",hr="delete",Kt="with",Oe="using",pe="default",Er="graph",fr="all",Re=".",Ur="optional",ei="service",Ie="bind",Ot="UNDEF",ft="minus",Nt="union",es="filter",Be=",",pt="a",Se="|",rr="/",at="^",ct="?",Nr="+",ri="!",Ui="[",ti="]",bt="||",ii="&&",Tr="=",Ut="!=",Ue="<",ni=">",kr="<=",ar=">=",dr="in",rs="not",tr="-",ts="str",ht="lang",Vr="langmatches",Ei="datatype",Is="bound",en="iri",rn="uri",Go="bnode",tn="rand",Ta="abs",Pt="ceil",Gi="floor",sn="round",Fo="concat",Zn="strlen",nn="ucase",oi="lcase",on="encode_for_uri",Fi="contains",Bo="strbefore",Do="strstarts",an="strends",De="strafter",K="year",ge="month",ye="day",vr="hours",et="minutes",je="seconds",Ae="timezone",dt="tz",vi="now",Zt="uuid",_e="struuid",mi="md5",is="sha1",ya="sha256",ce="sha384",Ye="sha512",Ra="coalesce",Sa="if",Vo="strlang",Mo="strdt",zl="sameterm",Xe="isuri",Yf="isiri",jl="isblank",Wo="isliteral",xi="isnumeric",ql="regex",Kl="substr",kn="replace",Qn="exists",eu="count",La="sum",ru="min",tu="max",iu="avg",su="sample",Xf="group_concat",$f="separator",Po="^^",Bi="true",Jf="false",Xt=":",ln="_:",Ns="$",wa="@",Di="'",bs='"',Ts="'''",Vi="''",ss='"""',ys='""',Zo="\\",un="#",fn="_",pn="%",Oa="~",nu="&",ko=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ua=/^[a-zA-Z]/,ns=/^[a-zA-Z0-9]/,ai=/^[eE]/,zf=/^[+\-]/,Ga=/^[^'\\\n\r]/,_n=/^[^"\\\n\r]/,Qo=/^[^'\\]/,Ci=/^[^"\\]/,Fa=/^[tbnrf\\"']/,Mi=/^[ \t]/,_o=/^[\r\n]/,Ba=/^[^\r\n]/,cn=/^[A-Z]/,jf=/^[a-z]/,qf=/^[\xC0-\xD6]/,Kf=/^[\xD8-\xF6]/,ep=/^[\xF8-\u02FF]/,ou=/^[\u0370-\u037D]/,au=/^[\u037F-\u1FFF]/,rp=/^[\u200C-\u200D]/,tp=/^[\u2070-\u218F]/,ip=/^[\u2C00-\u2FEF]/,sp=/^[\u3001-\uD7FF]/,lu=/^[\uF900-\uFDCF]/,np=/^[\uFDF0-\uFFFD]/,hn=/^[\xB7]/,os=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,op=/^[A-F]/,ap=/^[a-f]/,lp=P("BASE",!0),Hn=P("PREFIX",!0),rt=P("SELECT",!0),gt=P("DISTINCT",!0),uu=P("REDUCED",!0),ae=P("(",!1),Rs=P("AS",!0),ue=P(")",!1),Qr=P("*",!1),Yn=P("CONSTRUCT",!0),as=P("WHERE",!0),Gt=P("{",!1),Ft=P("}",!1),fu=P("DESCRIBE",!0),pu=P("ASK",!0),up=P("FROM",!0),Wi=P("NAMED",!0),Pi=P("GROUP",!0),dn=P("BY",!0),Da=P("HAVING",!0),cu=P("ORDER",!0),Ii=P("ASC",!0),Ss=P("DESC",!0),Va=P("LIMIT",!0),fp=P("OFFSET",!0),Ho=P("VALUES",!0),$t=P(";",!1),hu=P("LOAD",!0),Et=P("SILENT",!0),gn=P("INTO",!0),Ni=P("CLEAR",!0),du=P("DROP",!0),gu=P("CREATE",!0),pp=P("ADD",!0),Xn=P("TO",!0),cp=P("MOVE",!0),Eu=P("COPY",!0),Yo=P("INSERT",!0),Ls=P("DATA",!0),En=P("DELETE",!0),vu=P("WITH",!0),Ma=P("USING",!0),vn=P("DEFAULT",!0),ls=P("GRAPH",!0),Xo=P("ALL",!0),$e=P(".",!1),mu=P("OPTIONAL",!0),Wa=P("SERVICE",!0),Pa=P("BIND",!0),xu=P("UNDEF",!1),Cu=P("MINUS",!0),$n=P("UNION",!0),hp=P("FILTER",!0),Ze=P(",",!1),ws=P("a",!1),Jt=P("|",!1),Mr=P("/",!1),us=P("^",!1),Os=P("?",!1),vt=P("+",!1),mn=P("!",!1),Us=P("[",!1),li=P("]",!1),Zi=P("||",!1),mt=P("&&",!1),kt=P("=",!1),bi=P("!=",!1),fs=P("<",!1),Jn=P(">",!1),$o=P("<=",!1),Gs=P(">=",!1),ps=P("IN",!0),Fs=P("NOT",!0),Wr=P("-",!1),dp=P("STR",!0),Za=P("LANG",!0),Au=P("LANGMATCHES",!0),ka=P("DATATYPE",!0),Qa=P("BOUND",!0),xn=P("IRI",!0),Jo=P("URI",!0),Iu=P("BNODE",!0),zo=P("RAND",!0),gp=P("ABS",!0),Ep=P("CEIL",!0),vp=P("FLOOR",!0),_a=P("ROUND",!0),Ha=P("CONCAT",!0),Cn=P("STRLEN",!0),zn=P("UCASE",!0),mp=P("LCASE",!0),jo=P("ENCODE_FOR_URI",!0),Nu=P("CONTAINS",!0),jn=P("STRBEFORE",!0),bu=P("STRSTARTS",!0),Bs=P("STRENDS",!0),qn=P("STRAFTER",!0),Ds=P("YEAR",!0),Kn=P("MONTH",!0),An=P("DAY",!0),Tu=P("HOURS",!0),yu=P("MINUTES",!0),Ru=P("SECONDS",!0),xp=P("TIMEZONE",!0),Vs=P("TZ",!0),Ms=P("NOW",!0),Cp=P("UUID",!0),Ap=P("STRUUID",!0),Ip=P("MD5",!0),Np=P("SHA1",!0),bp=P("SHA256",!0),Tp=P("SHA384",!0),Qt=P("SHA512",!0),tt=P("COALESCE",!0),Tt=P("IF",!0),it=P("STRLANG",!0),eo=P("STRDT",!0),yp=P("sameTerm",!0),qo=P("isURI",!0),Rp=P("isIRI",!0),Sp=P("isBLANK",!0),Lp=P("isLITERAL",!0),Ya=P("isNUMERIC",!0),Su=P("REGEX",!0),Xa=P("SUBSTR",!0),wp=P("REPLACE",!0),ro=P("EXISTS",!0),$a=P("COUNT",!0),Lu=P("SUM",!0),wu=P("MIN",!0),Ja=P("MAX",!0),Ou=P("AVG",!0),to=P("SAMPLE",!0),Op=P("GROUP_CONCAT",!0),Ko=P("SEPARATOR",!0),ki=P("^^",!1),Uu=P("true",!0),Up=P("false",!0),ea=Ge(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),yr=P(":",!1),lr=P("_:",!1),We=Ge([["0","9"]],!1,!1),Ti=P("$",!1),yi=P("@",!1),ra=Ge([["a","z"],["A","Z"]],!1,!1),Qi=Ge([["a","z"],["A","Z"],["0","9"]],!1,!1),Gu=Ge(["e","E"],!1,!1),Gp=Ge(["+","-"],!1,!1),ui=P("'",!1),Ws=Ge(["'","\\",`
60
+ `,"\r"],!0,!1),cs=P('"',!1),io=Ge(['"',"\\",`
61
+ `,"\r"],!0,!1),Ri=P("'''",!1),ta=P("''",!1),ia=Ge(["'","\\"],!0,!1),za=P('"""',!1),In=P('""',!1),so=Ge(['"',"\\"],!0,!1),sa=P("\\",!1),Fp=Ge(["t","b","n","r","f","\\",'"',"'"],!1,!1),Fu=Ge([" "," "],!1,!1),Bp=Ge(["\r",`
62
62
  `],!1,!1),Dp=Ge(["\r",`
63
- `],!0,!1),hs=M("#",!1),Bu=Ge([["A","Z"]],!1,!1),Vp=Ge([["a","z"]],!1,!1),Mp=Ge([["\xC0","\xD6"]],!1,!1),Du=Ge([["\xD8","\xF6"]],!1,!1),In=Ge([["\xF8","\u02FF"]],!1,!1),ja=Ge([["\u0370","\u037D"]],!1,!1),na=Ge([["\u037F","\u1FFF"]],!1,!1),Vu=Ge([["\u200C","\u200D"]],!1,!1),qa=Ge([["\u2070","\u218F"]],!1,!1),Mu=Ge([["\u2C00","\u2FEF"]],!1,!1),Pp=Ge([["\u3001","\uD7FF"]],!1,!1),Pu=Ge([["\uF900","\uFDCF"]],!1,!1),Et=Ge([["\uFDF0","\uFFFD"]],!1,!1),Nn=M("_",!1),bn=Ge(["\xB7"],!1,!1),Tn=Ge([["\u0300","\u036F"]],!1,!1),Rn=Ge([["\u203F","\u2040"]],!1,!1),ds=M("%",!1),oa=Ge([["A","F"]],!1,!1),Wu=Ge([["a","f"]],!1,!1),ku=M("~",!1),Zu=M("&",!1),yn=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(ah).map(([a,c])=>({pos:parseInt(a),text:c}));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},aa=function(n){if(n.length)return{type:"Prologue",decl:n}},Qu=function(n){return{type:"BaseDecl",iriref:n}},so=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Wp=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},Sn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:Te()};return o&&(a.values=o),a},Hu=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},$u=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},Xu=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:Te()},o},no=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},oo=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:Te()},o},ao=function(n){return n},lo=function(n){return{graph:n,location:Te()}},Yu=function(n){return{namedGraph:n,location:Te()}},kp=function(n){return n.graphPattern||n},Ju=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},gs=function(n){return n},Ln=function(n){return n},uo=function(n){return n},Zp=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:Te()}:{bracketted:!0,...n}},zu=function(n){return n},_p=function(n){return n},Qp=function(n){return n},Hp=function(n){return n},Ft=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},ju=function(n){return n},$p=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Xp=function(n){return{limit:parseInt(n.literal)}},Yp=function(n){return{offset:parseInt(n.literal)}},qu=function(n){return n?n[1]:null},Ku=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},ef=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},Jp=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},zp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},jp=function(n,t){return{type:"create",silent:n,destinyGraph:t}},Es=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},fo=function(n,t,u){return{type:"move",silent:n,graphs:[t,u]}},la=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},po=function(n){return{type:"insertdata",insert:n}},Qi=function(n){return{type:"deletedata",delete:n}},qp=function(n){return{type:"deletewhere",delete:n}},Kp=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},wn=function(n){return n},rf=function(n){return n},tf=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},sf=function(){return"default"},ua=function(n){return n},On=function(n){return n},Ka=function(n){return n},el=function(){return"default"},rl=function(){return"named"},ec=function(){return"all"},co=function(n){return n},nf=function(n){return n},rc=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},of=function(n,t){return{graph:n,...t}},fa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},tc=function(n){return n},ic=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()}},ho=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:Te()}},af=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:Te()}},lf=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},sc=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=Te(),o},tl=function(n,t){return{type:"Bind",bind:n,as:t,location:Te()}},uf=function(n){return n},nc=function(n,t){return{oneVar:n,data:t,location:Te()}},ff=function(n,t){return{variables:n,data:t,location:Te()}},pf=function(n){return n},oc=function(n){return n},il=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:Te()}},go=function(n,t){return t.length?{union:[n,...t],location:Te()}:n},Eo=function(n){return{type:"Filter",filter:n,location:Te()}},ac=function(n,t){return{functionRef:n,args:t.list,location:Te()}},cf=function(){return{list:[]}},lc=function(n,t,u){return{distinct:!!n,list:[t,...u]}},uc=function(){return[]},fc=function(n,t){return[n,...t]},pc=function(n){return n},hf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},cc=function(n,t){return{subject:n,properties:t}},hc=function(n,t){return{subject:n,properties:t}},df=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},sl=function(){return{a:!0,location:Te()}},gf=function(n,t){return[n,...t]},dc=function(n,t){return{subject:n,properties:t}},Ef=function(n,t){return{subject:n,properties:t}},Un=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},vf=function(n,t){return[n,...t]},pa=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},gc=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},Ec=function(n,t){return t&&(n.modifier=t),n},vc=function(n){return n.inverse=!0,n},Rr=function(){return{a:!0,location:Te()}},mc=function(n){return{bracketted:!0,...n}},nl=function(n){return{collection:n,location:Te()}},vo=function(n){return{blankNodeProperties:n,location:Te()}},fi=function(n){return{collection:n,location:Te()}},ca=function(n){return{blankNodeProperties:n,location:Te()}},ol=function(n){return n},mf=function(n){return n},xf=function(n){return n},Cf=function(n){return n},al=function(n){return{...n,location:Te()}},Af=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},xc=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},ll=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},If=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},Nf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Cc=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},Gn=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},Ac=function(n){return{expressionType:"atomic",value:n}},ha=function(n){return{expressionType:"atomic",value:n}},Ic=function(n){return{expressionType:"atomic",value:n}},Mr=function(n){return{expressionType:"atomic",value:n}},Nc=function(n){return{bracketted:!0,...n}},bc=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},Tc=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},da=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]}},m=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},I=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]}},L=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}},$=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},re=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},K=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]}},me=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]}},Ve=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},Fe=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},qe=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},mr=function(n){return{expressionType:"builtincall",builtincall:"minutes",args:[n]}},it=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},Sr=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},Qt=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Bt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ot=function(n){return{expressionType:"builtincall",builtincall:"MD5",args:[n]}},jr=function(n){return{expressionType:"builtincall",builtincall:"SHA1",args:[n]}},Qr=function(n){return{expressionType:"builtincall",builtincall:"SHA256",args:[n]}},Ur=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Vt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Fn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},vs=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},vt=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},Si=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},st=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},ul=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Hi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},Ws=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},ks=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Tt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Bn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},fl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Ad=function(n){return{exists:n.graphPattern||n}},Id=function(n){return{notexists:n.graphPattern||n}},Nd=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},bd=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},Td=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},Rd=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},yd=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},Sd=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Ld=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},wd=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Od=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=Te(),n},Ud=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Gd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Fd=function(n){return{type:"IRIref",iriref:n,location:Te()}},Bd=function(n){return n},Dd=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:Te()}},Vd=function(n){return{type:"PrefixedName",pn_prefix:n,location:Te()}},Md=function(n){return{blankNode:n,location:Te()}},Pd=function(){return{blankNode:"[]",location:Te()}},Wd=function(n){return n.join("")},kd=function(n){return n||""},Zd=function(n,t){return{pn_prefix:n,pn_local:t}},_d=function(){return Hr()},Qd=function(n){return{type:"Var",varType:"VAR1",varname:n}},Hd=function(n){return{type:"Var",varType:"VAR2",varname:n}},$d=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},Xd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Hr()}},Yd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Hr()}},Jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Hr()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Hr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Hr()}},qd=function(n){return n.literal="+"+n.literal,n},Kd=function(n){return n.literal="+"+n.literal,n},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{quote:"'",literal:n.join("")}},ng=function(n){return{quote:'"',literal:n.join("")}},og=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},ag=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},lg=function(){return Hr()},ug=function(){return Hr()},fg=function(){return ah[Te().start.offset]=Hr(),""},pg=function(){return Hr()},cg=function(){return Hr()},hg=function(){return Hr()},r=0,G=0,mo=[{line:1,column:1}],mt=0,pl=[],A=0,xo;if("startRule"in v){if(!(v.startRule in R))throw new Error(`Can't start parsing from rule "`+v.startRule+'".');w=R[v.startRule]}function Hr(){return i.substring(G,r)}function jA(){return G}function qA(){return{source:N,start:G,end:r}}function Te(){return Zs(G,r)}function KA(n,t){throw t=t!==void 0?t:Zs(G,r),yc([gg(n)],i.substring(G,r),t)}function eI(n,t){throw t=t!==void 0?t:Zs(G,r),Eg(n,t)}function M(n,t){return{type:"literal",text:n,ignoreCase:t}}function Ge(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function rI(){return{type:"any"}}function dg(){return{type:"end"}}function gg(n){return{type:"other",description:n}}function Rc(n){var t=mo[n],u;if(t)return t;for(u=n-1;!mo[u];)u--;for(t=mo[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return mo[n]=t,t}function Zs(n,t,u){var o=Rc(n),a=Rc(t),c={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"&&(c.start=N.offset(c.start),c.end=N.offset(c.end)),c}function C(n){r<mt||(r>mt&&(mt=r,pl=[]),pl.push(n))}function Eg(n,t){return new Xl(n,null,null,t)}function yc(n,t,u){return new Xl(Xl.buildMessage(n,t),n,t,u)}function Sc(){var n,t,u,o,a,c;for(n=r,t=[],u=ih();u!==e;)t.push(u),u=ih();for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=vg(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=n,n=yn(t,o)}else r=n,n=e;return n}function vg(){var n;return n=mg(),n===e&&(n=Pc()),n}function mg(){var n,t,u,o,a;for(n=r,t=Lc(),u=[],o=p();o!==e;)u.push(o),o=p();return o=xg(),o===e&&(o=Ag(),o===e&&(o=Ig(),o===e&&(o=Ng()))),o!==e?(a=Mc(),G=n,n=_u(t,o,a)):(r=n,n=e),n}function Lc(){var n,t,u;for(n=r,t=[],u=wc(),u===e&&(u=Oc());u!==e;)t.push(u),u=wc(),u===e&&(u=Oc());return G=n,t=aa(t),n=t,n}function wc(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,4).toLowerCase()===O?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(lp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ol(),a!==e?(G=n,n=Qu(a)):(r=n,n=e)}else r=n,n=e;return n}function Oc(){var n,t,u,o,a,c,h;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,6).toLowerCase()===V?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Qn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Ul(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Ol(),h!==e?(G=n,n=so(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function xg(){var n,t,u,o,a,c,h,E;if(n=r,t=Uc(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=xt();a!==e;)o.push(a),a=xt();for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=_s(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=$i(),G=n,n=Wp(t,o,c,E)}else r=n,n=e}else r=n,n=e;return n}function Cg(){var n,t,u,o,a,c,h;if(n=r,t=Uc(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=_s(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=$i(),h=Mc(),G=n,n=Sn(t,o,c,h)}else r=n,n=e}else r=n,n=e;return n}function Uc(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le;if(n=r,i.substr(r,6).toLowerCase()===W?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(et)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(ct)),o===e&&(i.substr(r,7).toLowerCase()===Z?(o=i.substr(r,7),r+=7):(o=e,A===0&&C(uu))),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(x=sr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===40?(x=P,r++):(x=e,A===0&&C(ae)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(i.substr(r,2).toLowerCase()===J?(_=i.substr(r,2),r+=2):(_=e,A===0&&C(ys)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=sr(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();i.charCodeAt(r)===41?(Le=Q,r++):(Le=e,A===0&&C(le)),Le!==e?(E=[E,x,T,S,F,_,ne,de,Ne,Le],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(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(x=sr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===40?(x=P,r++):(x=e,A===0&&C(ae)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(i.substr(r,2).toLowerCase()===J?(_=i.substr(r,2),r+=2):(_=e,A===0&&C(ys)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=sr(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();i.charCodeAt(r)===41?(Le=Q,r++):(Le=e,A===0&&C(le)),Le!==e?(E=[E,x,T,S,F,_,ne,de,Ne,Le],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 c=e;c===e&&(i.charCodeAt(r)===42?(c=ee,r++):(c=e,A===0&&C(Zr))),c!==e?(G=n,n=Hu(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Ag(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne;if(n=r,i.substr(r,9).toLowerCase()===Y?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(Hn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=eE(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=xt();h!==e;)c.push(h),h=xt();for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=_s(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=$i(),G=n,n=$u(o,c,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,A===0&&C(Hn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=xt();a!==e;)o.push(a),a=xt();for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===B?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(as)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=D,r++):(E=e,A===0&&C(Ut)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=Yi(),T===e&&(T=null),S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===125?(F=X,r++):(F=e,A===0&&C(Gt)),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();ne=$i(),G=n,n=Xu(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 Ig(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,8).toLowerCase()===z?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(fu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=zi(),a!==e)for(;a!==e;)o.push(a),a=zi();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=ee,r++):(o=e,A===0&&C(Zr))),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=xt();h!==e;)c.push(h),h=xt();for(h=[],E=p();E!==e;)h.push(E),E=p();for(E=_s(),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=$i(),G=n,n=no(o,c,E,T)}else r=n,n=e}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,3).toLowerCase()===te?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(pu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=xt();c!==e;)a.push(c),c=xt();for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=_s(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=$i(),G=n,n=oo(a,h,x)}else r=n,n=e}else r=n,n=e;return n}function xt(){var n,t,u,o,a,c;if(n=r,i.substr(r,4).toLowerCase()===ie?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(up)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=bg(),o===e&&(o=Tg()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=n,n=ao(o)}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=pr(),u!==e?(G=n,n=lo(u)):(r=n,n=e),n}function Tg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ue?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Pi)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(G=n,n=Yu(o)):(r=n,n=e)}else r=n,n=e;return n}function _s(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===B?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(as)),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();return o=nt(),o!==e?(G=n,n=kp(o)):(r=n,n=e),n}function $i(){var n,t,u,o,a;return n=r,t=Rg(),t===e&&(t=null),u=yg(),u===e&&(u=null),o=Sg(),o===e&&(o=null),a=Lg(),a===e&&(a=null),G=n,n=Ju(t,u,o,a),n}function Rg(){var n,t,u,o,a,c,h;if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Wi)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,2).toLowerCase()===_e?(o=i.substr(r,2),r+=2):(o=e,A===0&&C(hn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Gc(),h!==e)for(;h!==e;)c.push(h),h=Gc();else c=e;c!==e?(G=n,n=gs(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Gc(){var n,t,u,o,a,c,h,E,x,T,S;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=Tl(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=n,n=Ln(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=Jc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=n,n=uo(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=se(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=r,i.substr(r,2).toLowerCase()===J?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ys)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=sr(),T!==e?(E=[E,x,T],h=E):(r=h,h=e)}else r=h,h=e;for(h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();G=n,n=Zp(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=p();u!==e;)t.push(u),u=p();if(u=sr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=n,n=zu(u)}else r=n,n=e}}}return n}function yg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===we?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Da)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=Fc(),a!==e)for(;a!==e;)o.push(a),a=Fc();else o=e;o!==e?(G=n,n=_p(o)):(r=n,n=e)}else r=n,n=e;return n}function Fc(){var n,t,u,o;if(n=r,t=dl(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();G=n,n=Qp(t)}else r=n,n=e;return n}function Sg(){var n,t,u,o,a,c,h,E;if(n=r,i.substr(r,5).toLowerCase()===We?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(cu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,2).toLowerCase()===_e?(o=i.substr(r,2),r+=2):(o=e,A===0&&C(hn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Bc(),h!==e)for(;h!==e;)c.push(h),h=Bc();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();G=n,n=Hp(c)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Bc(){var n,t,u,o,a,c;if(n=r,i.substr(r,3).toLowerCase()===Me?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ii)),t===e&&(i.substr(r,4).toLowerCase()===Ke?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Ss))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=bl(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=n,n=Ft(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=dl(),t===e&&(t=sr()),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();G=n,n=ju(t)}else r=n,n=e;return n}function Lg(){var n,t,u,o;return n=r,t=r,u=Dc(),u!==e?(o=Vc(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=Vc(),u!==e?(o=Dc(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(G=n,t=$p(t)),n=t,n}function Dc(){var n,t,u,o,a,c;if(n=r,i.substr(r,5).toLowerCase()===ve?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Va)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Xs(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=n,n=Xp(o)}else r=n,n=e}else r=n,n=e;return n}function Vc(){var n,t,u,o,a,c;if(n=r,i.substr(r,6).toLowerCase()===xr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(fp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Xs(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=n,n=Yp(o)}else r=n,n=e}else r=n,n=e;return n}function Mc(){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,A===0&&C(Ho)),u!==e?(o=Xc(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),G=n,t=qu(t),n=t,n}function Pc(){var n,t,u,o,a,c,h,E,x,T;for(n=r,t=Lc(),u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(a=wg(),a!==e){for(c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Pc(),h=[h,E,x,T],c=h}else r=c,c=e;c===e&&(c=null),o=[o,a,c],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();return G=n,n=Ku(t,u),n}function wg(){var n;return n=Og(),n===e&&(n=Ug(),n===e&&(n=Gg(),n===e&&(n=Bg(),n===e&&(n=Dg(),n===e&&(n=Vg(),n===e&&(n=Fg(),n===e&&(n=Mg(),n===e&&(n=Pg(),n===e&&(n=Wg(),n===e&&(n=kg())))))))))),n}function Og(){var n,t,u,o,a,c,h,E,x,T,S;if(n=r,i.substr(r,4).toLowerCase()===Jr?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(hu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=r,i.substr(r,4).toLowerCase()===yt?(x=i.substr(r,4),r+=4):(x=e,A===0&&C(dn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=cl(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),G=n,n=ef(o,c,E)}else r=n,n=e}else r=n,n=e;return n}function Ug(){var n,t,u,o,a,c;if(n=r,i.substr(r,5).toLowerCase()===St?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Ni)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=Zc(),c!==e?(G=n,n=Jp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Gg(){var n,t,u,o,a,c;if(n=r,i.substr(r,4).toLowerCase()===cr?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(du)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=Zc(),c!==e?(G=n,n=zp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Fg(){var n,t,u,o,a,c;if(n=r,i.substr(r,6).toLowerCase()===Lt?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=cl(),c!==e?(G=n,n=jp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Bg(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,3).toLowerCase()===or?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(pp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=Xi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===at?(E=i.substr(r,2),r+=2):(E=e,A===0&&C($n)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Xi(),T!==e?(G=n,n=Es(o,c,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,c,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===ze?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(cp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=Xi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===at?(E=i.substr(r,2),r+=2):(E=e,A===0&&C($n)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Xi(),T!==e?(G=n,n=fo(o,c,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===zr?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Eu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=Xi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===at?(E=i.substr(r,2),r+=2):(E=e,A===0&&C($n)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Xi(),T!==e?(G=n,n=la(o,c,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,c;if(n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,A===0&&C($o)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===Pr?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Ls)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=_c(),c!==e?(G=n,n=po(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Pg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.substr(r,4).toLowerCase()===Pr?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Ls)),o!==e?(a=_c(),a!==e?(G=n,n=Qi(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,c;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===B?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(as)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=hl(),c!==e?(G=n,n=qp(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function kg(){var n,t,u,o,a,c,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,A===0&&C(vu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=pr(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();u=[u,o,a,c],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=Zg(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Wc(),c===e&&(c=null),o=[o,a,c],u=o}else r=u,u=e;if(u===e&&(u=Wc()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=kc();c!==e;)a.push(c),c=kc();for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(as)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=nt(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();G=n,n=Kp(t,u,a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gn)),t!==e?(u=hl(),u!==e?(G=n,n=wn(u)):(r=n,n=e)):(r=n,n=e),n}function Wc(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,A===0&&C($o)),t!==e?(u=hl(),u!==e?(G=n,n=rf(u)):(r=n,n=e)):(r=n,n=e),n}function kc(){var n,t,u,o,a,c,h,E;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Oe?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ma)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=pr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ue?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Pi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=pr(),E!==e?(c=[c,h,E],a=c):(r=a,a=e)}else r=a,a=e;a!==e?(G=n,n=tf(a)):(r=n,n=e)}else r=n,n=e;return n}function Xi(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(En)),t!==e&&(G=n,t=sf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(ls)),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(G=n,n=ua(o)):(r=n,n=e)}return n}function cl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(ls)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(G=n,n=On(o)):(r=n,n=e)}else r=n,n=e;return n}function Zc(){var n,t;return n=r,t=cl(),t!==e&&(G=n,t=Ka(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(En)),t!==e&&(G=n,t=el()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ue?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Pi)),t!==e&&(G=n,t=rl()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===fr?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Xo)),t!==e&&(G=n,t=ec()),n=t))),n}function hl(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Ut)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=Qc(),c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===125?(h=X,r++):(h=e,A===0&&C(Gt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=n,n=co(a)}else r=n,n=e}else r=n,n=e;return n}function _c(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Ut)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=Qc(),c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===125?(h=X,r++):(h=e,A===0&&C(Gt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=n,n=nf(a)}else r=n,n=e}else r=n,n=e;return n}function Qc(){var n,t,u,o,a,c,h;for(n=r,t=Yi(),t===e&&(t=null),u=[],o=r,a=Hc(),a!==e?(i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c===e&&(c=null),h=Yi(),h===e&&(h=null),a=[a,c,h],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=Hc(),a!==e?(i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c===e&&(c=null),h=Yi(),h===e&&(h=null),a=[a,c,h],o=a):(r=o,o=e);return G=n,n=rc(t,u),n}function Hc(){var n,t,u,o,a,c,h,E,x,T,S,F,_;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=zi(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===123?(h=D,r++):(h=e,A===0&&C(Ut)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(x=Yi(),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===125?(S=X,r++):(S=e,A===0&&C(Gt)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=n,n=of(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 Yi(){var n,t,u,o,a,c,h;if(n=r,t=qc(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C(Ye)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Yi(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),G=n,n=fa(t,u)}else r=n,n=e;return n}function nt(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===123?(t=D,r++):(t=e,A===0&&C(Ut)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Cg(),o===e&&(o=_g()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===125?(c=X,r++):(c=e,A===0&&C(Gt)),c!==e?(G=n,n=tc(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function _g(){var n,t,u,o,a,c,h,E,x,T;for(n=r,t=Co(),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=r,c=$c(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(i.charCodeAt(r)===46?(E=ye,r++):(E=e,A===0&&C(Ye)),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=Co(),T===e&&(T=null),c=[c,h,E,x,T],a=c}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,c=$c(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(i.charCodeAt(r)===46?(E=ye,r++):(E=e,A===0&&C(Ye)),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=Co(),T===e&&(T=null),c=[c,h,E,x,T],a=c}else r=a,a=e;return G=n,n=ic(t,o),n}function Co(){var n,t,u,o,a,c,h;if(n=r,t=tE(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C(Ye)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Co(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),G=n,n=ho(t,u)}else r=n,n=e;return n}function $c(){var n;return n=qg(),n===e&&(n=Qg(),n===e&&(n=jg(),n===e&&(n=Hg(),n===e&&(n=$g(),n===e&&(n=Kg(),n===e&&(n=Xg(),n===e&&(n=Yg()))))))),n}function Qg(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,8).toLowerCase()===Or?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(mu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=nt(),a!==e?(G=n,n=af(a)):(r=n,n=e)}else r=n,n=e;return n}function Hg(){var n,t,u,o,a,c,h;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=zi(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=nt(),h!==e?(G=n,n=lf(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function $g(){var n,t,u,o,a,c,h,E;if(n=r,i.substr(r,7).toLowerCase()===ei?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Pa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ht)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=zi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=nt(),E!==e?(G=n,n=sc(o,c,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u,o,a,c,h,E,x,T,S,F,_;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,4).toLowerCase()===Ie?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Wa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===J?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ys)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=sr(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=n,n=tl(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 Yg(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Ho)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Xc(),a!==e?(G=n,n=uf(a)):(r=n,n=e)}else r=n,n=e;return n}function Xc(){var n;return n=Jg(),n===e&&(n=zg()),n}function Jg(){var n,t,u,o,a,c,h,E;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=sr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===123?(a=D,r++):(a=e,A===0&&C(Ut)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=Ao();E!==e;)h.push(E),E=Ao();i.charCodeAt(r)===125?(E=X,r++):(E=e,A===0&&C(Gt)),E!==e?(G=n,n=nc(u,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,c,h,E,x,T,S;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=sr();c!==e;)a.push(c),c=sr();if(i.charCodeAt(r)===41?(c=Q,r++):(c=e,A===0&&C(le)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=D,r++):(E=e,A===0&&C(Ut)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=[],S=Yc();S!==e;)T.push(S),S=Yc();i.charCodeAt(r)===125?(S=X,r++):(S=e,A===0&&C(Gt)),S!==e?(G=n,n=ff(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Yc(){var n,t,u,o,a,c,h;if(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=Ao();a!==e;)o.push(a),a=Ao();if(i.charCodeAt(r)===41?(a=Q,r++):(a=e,A===0&&C(le)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();G=n,n=pf(o)}else r=n,n=e}else r=n,n=e;return n}function Ao(){var n,t,u,o;if(n=r,t=pr(),t===e&&(t=Rl(),t===e&&(t=yl(),t===e&&(t=wl(),t===e&&(i.substr(r,5)===wt?(t=wt,r+=5):(t=e,A===0&&C(xu)))))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();G=n,n=oc(t)}else r=n,n=e;return n}function jg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===lt?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Cu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=nt(),o!==e?(G=n,n=il(o)):(r=n,n=e)}else r=n,n=e;return n}function qg(){var n,t,u,o,a,c,h,E;if(n=r,t=nt(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===At?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Xn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=nt(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===At?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Xn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=nt(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}G=n,n=go(t,u)}else r=n,n=e;return n}function Kg(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,6).toLowerCase()===es?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(hp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=dl(),a!==e?(G=n,n=Eo(a)):(r=n,n=e)}else r=n,n=e;return n}function dl(){var n;return n=bl(),n===e&&(n=Tl(),n===e&&(n=Jc())),n}function Jc(){var n,t,u,o;if(n=r,t=pr(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=zc(),o!==e?(G=n,n=ac(t,o)):(r=n,n=e)}else r=n,n=e;return n}function zc(){var n,t,u,o,a,c,h,E,x,T,S,F;if(n=r,t=jt(),t!==e&&(G=n,t=cf()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(ct)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=[],x=r,i.charCodeAt(r)===44?(T=Be,r++):(T=e,A===0&&C(ke)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=Be,r++):(T=e,A===0&&C(ke)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=se(),F!==e?x=F:(r=x,x=e)}else r=x,x=e;i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=n,n=lc(o,c,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Ji(){var n,t,u,o,a,c,h,E,x,T,S,F;if(n=r,t=jt(),t!==e&&(G=n,t=uc()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=se(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=r,i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();h=T}else r=h,h=e}else r=h,h=e;for(;h!==e;)if(c.push(h),h=r,i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();h=T}else r=h,h=e}else r=h,h=e;i.charCodeAt(r)===41?(h=Q,r++):(h=e,A===0&&C(le)),h!==e?(G=n,n=fc(o,c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function eE(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===123?(t=D,r++):(t=e,A===0&&C(Ut)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=jc(),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===125?(c=X,r++):(c=e,A===0&&C(Gt)),c!==e?(G=n,n=pc(o)):(r=n,n=e)}else r=n,n=e;return n}function jc(){var n,t,u,o,a,c,h;if(n=r,t=qc(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C(Ye)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=jc(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),G=n,n=hf(t,u)}else r=n,n=e;return n}function qc(){var n,t,u,o,a;if(n=r,t=bo(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=gl(),o!==e?(G=n,n=cc(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=eh(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=rE(),G=n,n=hc(u,a)}else r=n,n=e}return n}function rE(){var n;return n=gl(),n===e&&(n=null),n}function gl(){var n,t,u,o,a,c,h,E,x,T,S,F,_;if(n=r,t=El(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=vl(),o!==e){for(a=[],c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=El(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();_=vl(),_!==e?(S=[S,F,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e;for(;c!==e;){for(a.push(c),c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=El(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();_=vl(),_!==e?(S=[S,F,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e}G=n,n=df(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function El(){var n,t;return n=zi(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ut,r++):(t=e,A===0&&C(ws)),t!==e&&(G=n,t=sl()),n=t),n}function vl(){var n,t,u,o,a,c,h,E;if(n=r,t=Qs(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(ke)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(ke)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}G=n,n=gf(t,u)}else r=n,n=e;return n}function tE(){var n,t,u,o,a;if(n=r,t=bo(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=ml(),o!==e?(G=n,n=dc(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=rh(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=iE(),G=n,n=Ef(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,c,h,E,x,T,S,F,_;if(n=r,t=Io(),t===e&&(t=sr()),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=xl(),o!==e){for(a=[],c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=Io(),S===e&&(S=sr()),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();_=xl(),_!==e?(S=[S,F,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e;for(;c!==e;){for(a.push(c),c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=Io(),S===e&&(S=sr()),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();_=xl(),_!==e?(S=[S,F,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e}G=n,n=Un(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function xl(){var n,t,u,o,a,c,h,E;if(n=r,t=Hs(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(ke)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(ke)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}G=n,n=vf(t,u)}else r=n,n=e;return n}function Io(){var n,t,u,o,a,c,h,E;if(n=r,t=Cl(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===124?(c=Se,r++):(c=e,A===0&&C(Jt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Cl(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===124?(c=Se,r++):(c=e,A===0&&C(Jt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Cl(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}G=n,n=pa(t,u)}else r=n,n=e;return n}function Cl(){var n,t,u,o,a,c,h,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Dr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Al(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Dr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Al(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}G=n,n=gc(t,u)}else r=n,n=e;return n}function Kc(){var n,t,u;return n=r,t=nE(),t!==e?(u=sE(),u===e&&(u=null),G=n,n=Ec(t,u)):(r=n,n=e),n}function Al(){var n,t,u;return n=Kc(),n===e&&(n=r,i.charCodeAt(r)===94?(t=Pt,r++):(t=e,A===0&&C(us)),t!==e?(u=Kc(),u!==e?(G=n,n=vc(u)):(r=n,n=e)):(r=n,n=e)),n}function sE(){var n;return i.charCodeAt(r)===63?(n=It,r++):(n=e,A===0&&C(Os)),n===e&&(i.charCodeAt(r)===42?(n=ee,r++):(n=e,A===0&&C(Zr)),n===e&&(i.charCodeAt(r)===43?(n=Ir,r++):(n=e,A===0&&C(dt)))),n}function nE(){var n,t,u,o;return n=pr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ut,r++):(t=e,A===0&&C(ws)),t!==e&&(G=n,t=Rr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,A===0&&C(vn)),t!==e?(u=oE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e?(u=Io(),u!==e?(i.charCodeAt(r)===41?(o=Q,r++):(o=e,A===0&&C(le)),o!==e?(G=n,n=mc(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function oE(){var n,t,u,o,a,c,h,E;if(n=No(),n===e)if(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e){if(u=r,o=No(),o!==e){for(a=[],c=r,i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e?(E=No(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)a.push(c),c=r,i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e?(E=No(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=Q,r++):(o=e,A===0&&C(le)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function No(){var n,t,u;return n=pr(),n===e&&(i.charCodeAt(r)===97?(n=ut,r++):(n=e,A===0&&C(ws)),n===e&&(n=r,i.charCodeAt(r)===94?(t=Pt,r++):(t=e,A===0&&C(us)),t!==e?(u=pr(),u===e&&(i.charCodeAt(r)===97?(u=ut,r++):(u=e,A===0&&C(ws))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function eh(){var n,t;return n=r,t=uE(),t!==e&&(G=n,t=nl(t)),n=t,n===e&&(n=aE()),n}function aE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===91?(u=Ui,r++):(u=e,A===0&&C(Us)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=gl(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,A===0&&C(li)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=n,n=vo(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function rh(){var n,t;return n=r,t=fE(),t!==e&&(G=n,t=fi(t)),n=t,n===e&&(n=lE()),n}function lE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===91?(u=Ui,r++):(u=e,A===0&&C(Us)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=ml(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,A===0&&C(li)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=n,n=ca(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function uE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Qs(),c!==e)for(;c!==e;)a.push(c),c=Qs();else a=e;if(a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===41?(h=Q,r++):(h=e,A===0&&C(le)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=n,n=ol(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function fE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Hs(),c!==e)for(;c!==e;)a.push(c),c=Hs();else a=e;if(a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===41?(h=Q,r++):(h=e,A===0&&C(le)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=n,n=mf(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Qs(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=bo(),u===e&&(u=eh()),u!==e?(G=n,n=xf(u)):(r=n,n=e),n}function Hs(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=bo(),u===e&&(u=rh()),u!==e?(G=n,n=Cf(u)):(r=n,n=e),n}function bo(){var n;return n=sr(),n===e&&(n=pE()),n}function zi(){var n;return n=sr(),n===e&&(n=pr()),n}function sr(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=bE(),u===e&&(u=TE()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=n,n=al(u)}else r=n,n=e;return n}function pE(){var n;return n=pr(),n===e&&(n=Rl(),n===e&&(n=yl(),n===e&&(n=wl(),n===e&&(n=AE(),n===e&&(n=jt()))))),n}function se(){var n,t,u,o,a,c,h,E;if(n=r,t=Il(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Nt?(c=Nt,r+=2):(c=e,A===0&&C(ki)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Il(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Nt?(c=Nt,r+=2):(c=e,A===0&&C(ki)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Il(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}G=n,n=Af(t,u)}else r=n,n=e;return n}function Il(){var n,t,u,o,a,c,h,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ii?(c=ii,r+=2):(c=e,A===0&&C(gt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ii?(c=ii,r+=2):(c=e,A===0&&C(gt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}G=n,n=xc(t,u)}else r=n,n=e;return n}function Nl(){var n,t,u,o,a,c,h,E,x,T;if(n=r,t=Gr(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===61?(c=br,r++):(c=e,A===0&&C(Zt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Ot?(c=Ot,r+=2):(c=e,A===0&&C(bi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===60?(c=Ue,r++):(c=e,A===0&&C(fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===62?(c=ni,r++):(c=e,A===0&&C(Yn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Wr?(c=Wr,r+=2):(c=e,A===0&&C(Yo)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ar?(c=ar,r+=2):(c=e,A===0&&C(Gs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2).toLowerCase()===dr?(c=i.substr(r,2),r+=2):(c=e,A===0&&C(ps)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ji(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,3).toLowerCase()===rs?(c=i.substr(r,3),r+=3):(c=e,A===0&&C(Fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ps)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Ji(),T!==e?(a=[a,c,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=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===61?(c=br,r++):(c=e,A===0&&C(Zt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Ot?(c=Ot,r+=2):(c=e,A===0&&C(bi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===60?(c=Ue,r++):(c=e,A===0&&C(fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===62?(c=ni,r++):(c=e,A===0&&C(Yn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Wr?(c=Wr,r+=2):(c=e,A===0&&C(Yo)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ar?(c=ar,r+=2):(c=e,A===0&&C(Gs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2).toLowerCase()===dr?(c=i.substr(r,2),r+=2):(c=e,A===0&&C(ps)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ji(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,3).toLowerCase()===rs?(c=i.substr(r,3),r+=3):(c=e,A===0&&C(Fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ps)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Ji(),T!==e?(a=[a,c,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}G=n,n=ll(t,u)}else r=n,n=e;return n}function Gr(){var n,t,u,o,a,c,h,E,x,T,S;if(n=r,t=$s(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===43?(c=Ir,r++):(c=e,A===0&&C(dt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=$s(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Vr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=$s(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=Sl(),a===e&&(a=Ll()),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(Zr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Dr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(Zr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Dr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,c],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===43?(c=Ir,r++):(c=e,A===0&&C(dt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=$s(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Vr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=$s(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=Sl(),a===e&&(a=Ll()),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(Zr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Dr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(Zr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Dr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,c],o=a}else r=o,o=e}}G=n,n=If(t,u)}else r=n,n=e;return n}function $s(){var n,t,u,o,a,c,h,E;if(n=r,t=Fr(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===42?(c=ee,r++):(c=e,A===0&&C(Zr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Dr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===42?(c=ee,r++):(c=e,A===0&&C(Zr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Dr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}}G=n,n=gr(t,u)}else r=n,n=e;return n}function Fr(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,A===0&&C(vn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=To(),o!==e?(G=n,n=Nf(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(dt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=To(),o!==e?(G=n,n=Cc(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,A===0&&C(Vr)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=To(),o!==e?(G=n,n=Gn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=To())}}return n}function To(){var n,t;return n=bl(),n===e&&(n=Tl(),n===e&&(n=mE(),n===e&&(n=r,t=Rl(),t!==e&&(G=n,t=Ac(t)),n=t,n===e&&(n=r,t=yl(),t!==e&&(G=n,t=ha(t)),n=t,n===e&&(n=r,t=wl(),t!==e&&(G=n,t=Ic(t)),n=t,n===e&&(n=r,t=sr(),t!==e&&(G=n,t=Mr(t)),n=t)))))),n}function bl(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=se(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===41?(c=Q,r++):(c=e,A===0&&C(le)),c!==e?(G=n,n=Nc(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne;if(n=vE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===ts?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(dp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=bc(c)):(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()===ft?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(ka)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Tc(c)):(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()===kr?(t=i.substr(r,11),r+=11):(t=e,A===0&&C(Au)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=da(c,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()===Ei?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(Za)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=s(c)):(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()===Is?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(_a)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=sr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=l(c)):(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()===Ks?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(mn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=g(c)):(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()===en?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Jo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=d(c)):(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()===Go?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Iu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=r,i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(a=[a,c,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?(G=n,n=m(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===rn?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(zo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(G=n,n=I()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ta?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(gp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=b(c)):(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()===Wt?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Ep)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=y(c)):(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,A===0&&C(vp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=L(c)):(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()===tn?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Qa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=U(c)):(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()===Fo?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Ha)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=Ji(),o!==e?(G=n,n=k(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=hE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===Wn?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(xn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=$(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=dE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===sn?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Jn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=re(c)):(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,A===0&&C(mp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=K(c)):(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()===nn?(t=i.substr(r,14),r+=14):(t=e,A===0&&C(jo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=oe(c)):(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()===Fi?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(Nu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=fe(c,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()===Bo?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(zn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=he(c,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,A===0&&C(bu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=me(c,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()===on?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Bs)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=Ce(c,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,A===0&&C(jn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=xe(c,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()===q?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Ds)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=be(c)):(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()===ge?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(qn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Ve(c)):(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()===Re?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Cn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Fe(c)):(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()===vr?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Tu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=qe(c)):(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()===Kr?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Ru)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=mr(c)):(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()===je?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(yu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=it(c)):(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,A===0&&C(xp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Sr(c)):(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()===pt?(t=i.substr(r,2),r+=2):(t=e,A===0&&C(Vs)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Qt(c)):(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,A===0&&C(Ms)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(G=n,n=Bt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===kt?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Cp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(G=n,n=_r()):(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,A===0&&C(Ap)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(G=n,n=Dt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===mi?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ip)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=ot(c)):(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()===is?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Np)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=jr(c)):(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()===Ra?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(bp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Qr(c)):(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()===ce?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Tp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Ur(c)):(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()===$e?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(_t)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Vt(c)):(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()===ya?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(rt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=Ji(),o!==e?(G=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===Sa?(t=i.substr(r,2),r+=2):(t=e,A===0&&C(bt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===44?(F=Be,r++):(F=e,A===0&&C(ke)),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();if(ne=se(),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();i.charCodeAt(r)===41?(Ne=Q,r++):(Ne=e,A===0&&C(le)),Ne!==e?(G=n,n=vs(c,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()===Vo?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(tt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=vt(c,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()===Mo?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Kn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=Si(c,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()===zl?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(Rp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e?(G=n,n=st(c,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()===Xe?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(qo)),t===e&&(i.substr(r,5).toLowerCase()===$f?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(yp))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=ul(c)):(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()===jl?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Sp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Hi(c)):(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,A===0&&C(Lp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=Ws(c)):(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()===xi?(t=i.substr(r,9),r+=9):(t=e,A===0&&C($a)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=n,n=ks(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=cE(),n===e&&(n=gE(),n===e&&(n=EE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function cE(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne,de;if(n=r,i.substr(r,5).toLowerCase()===ql?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Su)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=r,i.charCodeAt(r)===44?(_=Be,r++):(_=e,A===0&&C(ke)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=se(),de!==e?(_=[_,ne,de],F=_):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),_=[],ne=p();ne!==e;)_.push(ne),ne=p();i.charCodeAt(r)===41?(ne=Q,r++):(ne=e,A===0&&C(le)),ne!==e?(G=n,n=Tt(c,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 hE(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne,de;if(n=r,i.substr(r,6).toLowerCase()===Kl?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Xa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=r,i.charCodeAt(r)===44?(_=Be,r++):(_=e,A===0&&C(ke)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=se(),de!==e?(_=[_,ne,de],F=_):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),_=[],ne=p();ne!==e;)_.push(ne),ne=p();i.charCodeAt(r)===41?(ne=Q,r++):(ne=e,A===0&&C(le)),ne!==e?(G=n,n=Bn(c,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 dE(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le,er,Ht;if(n=r,i.substr(r,7).toLowerCase()===kn?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(wp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(ke)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===44?(F=Be,r++):(F=e,A===0&&C(ke)),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();if(ne=se(),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=r,i.charCodeAt(r)===44?(Le=Be,r++):(Le=e,A===0&&C(ke)),Le!==e){for(er=[],Ht=p();Ht!==e;)er.push(Ht),Ht=p();Ht=se(),Ht!==e?(Le=[Le,er,Ht],Ne=Le):(r=Ne,Ne=e)}else r=Ne,Ne=e;for(Ne===e&&(Ne=null),Le=[],er=p();er!==e;)Le.push(er),er=p();i.charCodeAt(r)===41?(er=Q,r++):(er=e,A===0&&C(le)),er!==e?(G=n,n=fl(c,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 gE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===Zn?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(eo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=nt(),o!==e?(G=n,n=Ad(o)):(r=n,n=e)}else r=n,n=e;return n}function EE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3).toLowerCase()===rs?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Fs)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===Zn?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(eo)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=nt(),c!==e?(G=n,n=Id(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function vE(){var n,t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le;if(n=r,i.substr(r,5).toLowerCase()===eu?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Ya)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===42?(E=ee,r++):(E=e,A===0&&C(Zr)),E===e&&(E=se()),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=n,n=Nd(c,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()===La?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Lu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=n,n=bd(c,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()===ru?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(wu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=n,n=Td(c,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()===tu?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ja)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=n,n=Rd(c,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()===iu?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ou)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=n,n=yd(c,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()===su?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(ro)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=n,n=Sd(c,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()===Xf?(t=i.substr(r,12),r+=12):(t=e,A===0&&C(Op)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(ct)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=r,T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===59?(S=ur,r++):(S=e,A===0&&C(Yt)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(i.substr(r,9).toLowerCase()===Yf?(_=i.substr(r,9),r+=9):(_=e,A===0&&C(Ko)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(i.charCodeAt(r)===61?(de=br,r++):(de=e,A===0&&C(Zt)),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();Le=th(),Le!==e?(T=[T,S,F,_,ne,de,Ne,Le],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=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=n,n=Ld(c,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 mE(){var n,t,u,o;if(n=r,t=pr(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=zc(),o===e&&(o=null),G=n,n=wd(t,o)}else r=n,n=e;return n}function Rl(){var n,t,u,o,a;return n=r,t=th(),t!==e?(u=RE(),u===e&&(u=r,i.substr(r,2)===Wo?(o=Wo,r+=2):(o=e,A===0&&C(Zi)),o!==e?(a=pr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),G=n,n=Od(t,u)):(r=n,n=e),n}function yl(){var n;return n=xE(),n===e&&(n=Sl(),n===e&&(n=Ll())),n}function xE(){var n;return n=Fl(),n===e&&(n=Gl(),n===e&&(n=Xs())),n}function Sl(){var n;return n=LE(),n===e&&(n=SE(),n===e&&(n=yE())),n}function Ll(){var n;return n=UE(),n===e&&(n=OE(),n===e&&(n=wE())),n}function wl(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Bi?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Uu)),t!==e&&(G=n,t=Ud()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===Jf?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Up)),t!==e&&(G=n,t=Gd()),n=t),n}function th(){var n;return n=BE(),n===e&&(n=DE(),n===e&&(n=GE(),n===e&&(n=FE()))),n}function pr(){var n,t;return n=r,t=Ol(),t!==e&&(G=n,t=Fd(t)),n=t,n===e&&(n=r,t=CE(),t!==e&&(G=n,t=Bd(t)),n=t),n}function CE(){var n,t;return n=r,t=IE(),t!==e&&(G=n,t=Dd(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(G=n,t=Vd(t)),n=t),n}function AE(){var n,t;return n=r,t=NE(),t!==e&&(G=n,t=Md(t)),n=t,n===e&&(n=r,t=ME(),t!==e&&(G=n,t=Pd()),n=t),n}function Ol(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Ue,r++):(t=e,A===0&&C(fs)),t!==e){for(u=[],Zo.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ea));o!==e;)u.push(o),Zo.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ea));i.charCodeAt(r)===62?(o=ni,r++):(o=e,A===0&&C(Yn)),o!==e?(G=n,n=Wd(u)):(r=n,n=e)}else r=n,n=e;return n}function Ul(){var n,t,u;return n=r,t=PE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=Xt,r++):(u=e,A===0&&C(Tr)),u!==e?(G=n,n=kd(t)):(r=n,n=e),n}function IE(){var n,t,u;return n=r,t=Ul(),t!==e?(u=WE(),u!==e?(G=n,n=Zd(t,u)):(r=n,n=e)):(r=n,n=e),n}function NE(){var n,t,u,o,a,c,h;if(n=r,i.substr(r,2)===an?(t=an,r+=2):(t=e,A===0&&C(lr)),t!==e)if(u=ji(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe))),u!==e){for(o=[],a=$r(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e?(h=$r(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=$r(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e?(h=$r(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));G=n,n=_d()}else r=n,n=e;else r=n,n=e;return n}function bE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=It,r++):(t=e,A===0&&C(Os)),t!==e?(u=nh(),u!==e?(G=n,n=Qd(u)):(r=n,n=e)):(r=n,n=e),n}function TE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ns,r++):(t=e,A===0&&C(Ti)),t!==e?(u=nh(),u!==e?(G=n,n=Hd(u)):(r=n,n=e)):(r=n,n=e),n}function RE(){var n,t,u,o,a,c,h,E;if(n=r,i.charCodeAt(r)===64?(t=wa,r++):(t=e,A===0&&C(Ri)),t!==e){if(u=[],Ua.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ra)),o!==e)for(;o!==e;)u.push(o),Ua.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ra));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Vr)),c!==e){if(h=[],ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(_i)),E!==e)for(;E!==e;)h.push(E),ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(_i));else h=e;h!==e?(c=[c,h],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Vr)),c!==e){if(h=[],ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(_i)),E!==e)for(;E!==e;)h.push(E),ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(_i));else h=e;h!==e?(c=[c,h],a=c):(r=a,a=e)}else r=a,a=e;G=n,n=$d(u,o)}else r=n,n=e}else r=n,n=e;return n}function Xs(){var n,t,u;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe));else t=e;return t!==e&&(G=n,t=Xd()),n=t,n}function Gl(){var n,t,u,o,a;for(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe));u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe));if(i.charCodeAt(r)===46?(u=ye,r++):(u=e,A===0&&C(Ye)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe));else o=e;o!==e?(G=n,n=Yd()):(r=n,n=e)}else r=n,n=e;return n}function Fl(){var n,t,u,o,a;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=ye,r++):(u=e,A===0&&C(Ye)),u!==e){for(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe));a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe));a=Bl(),a!==e?(G=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=ye,r++):(t=e,A===0&&C(Ye)),t!==e){if(u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe));else u=e;u!==e?(o=Bl(),o!==e?(G=n,n=zd()):(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,A===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe));else t=e;t!==e?(u=Bl(),u!==e?(G=n,n=jd()):(r=n,n=e)):(r=n,n=e)}}return n}function yE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(dt)),t!==e?(u=Xs(),u!==e?(G=n,n=qd(u)):(r=n,n=e)):(r=n,n=e),n}function SE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(dt)),t!==e?(u=Gl(),u!==e?(G=n,n=Kd(u)):(r=n,n=e)):(r=n,n=e),n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(dt)),t!==e?(u=Fl(),u!==e?(G=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)===45?(t=tr,r++):(t=e,A===0&&C(Vr)),t!==e?(u=Xs(),u!==e?(G=n,n=rg(u)):(r=n,n=e)):(r=n,n=e),n}function OE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Vr)),t!==e?(u=Gl(),u!==e?(G=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)===45?(t=tr,r++):(t=e,A===0&&C(Vr)),t!==e?(u=Fl(),u!==e?(G=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function Bl(){var n,t,u,o,a;if(n=r,ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Gu)),t!==e){if(zf.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Gp)),u===e&&(u=null),o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===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 GE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Di,r++):(t=e,A===0&&C(ui)),t!==e){for(u=[],Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ps)),o===e&&(o=zt());o!==e;)u.push(o),Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ps)),o===e&&(o=zt());i.charCodeAt(r)===39?(o=Di,r++):(o=e,A===0&&C(ui)),o!==e?(G=n,n=sg(u)):(r=n,n=e)}else r=n,n=e;return n}function FE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=bs,r++):(t=e,A===0&&C(cs)),t!==e){for(u=[],_n.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(to)),o===e&&(o=zt());o!==e;)u.push(o),_n.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(to)),o===e&&(o=zt());i.charCodeAt(r)===34?(o=bs,r++):(o=e,A===0&&C(cs)),o!==e?(G=n,n=ng(u)):(r=n,n=e)}else r=n,n=e;return n}function BE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3)===Ts?(t=Ts,r+=3):(t=e,A===0&&C(yi)),t!==e){for(u=[],o=r,i.substr(r,2)===Vi?(a=Vi,r+=2):(a=e,A===0&&C(ta)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,A===0&&C(ui))),a===e&&(a=null),_o.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(ia)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Vi?(a=Vi,r+=2):(a=e,A===0&&C(ta)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,A===0&&C(ui))),a===e&&(a=null),_o.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(ia)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);i.substr(r,3)===Ts?(o=Ts,r+=3):(o=e,A===0&&C(yi)),o!==e?(G=n,n=og(u)):(r=n,n=e)}else r=n,n=e;return n}function DE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3)===ss?(t=ss,r+=3):(t=e,A===0&&C(za)),t!==e){for(u=[],o=r,i.substr(r,2)===Rs?(a=Rs,r+=2):(a=e,A===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs))),a===e&&(a=null),Ci.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(io)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Rs?(a=Rs,r+=2):(a=e,A===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs))),a===e&&(a=null),Ci.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(io)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);i.substr(r,3)===ss?(o=ss,r+=3):(o=e,A===0&&C(za)),o!==e?(G=n,n=ag(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,A===0&&C(sa)),t!==e?(Fa.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Fp)),u!==e?(G=n,n=lg()):(r=n,n=e)):(r=n,n=e),n}function jt(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=P,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.charCodeAt(r)===41?(o=Q,r++):(o=e,A===0&&C(le)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function p(){var n;return n=VE(),n===e&&(n=Dl(),n===e&&(n=Vl())),n}function Dl(){var n;return Mi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Fu)),n}function Vl(){var n;return Qo.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Bp)),n}function Ro(){var n;return Ba.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Dp)),n}function ih(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=ln,r++):(t=e,A===0&&C(hs)),t!==e){for(u=[],o=Ro();o!==e;)u.push(o),o=Ro();o=Vl(),o!==e?(G=n,n=ug()):(r=n,n=e)}else r=n,n=e;return n}function VE(){var n,t,u,o,a,c;for(n=r,t=Vl(),t===e&&(t=null),u=[],o=Dl();o!==e;)u.push(o),o=Dl();if(i.charCodeAt(r)===35?(o=ln,r++):(o=e,A===0&&C(hs)),o!==e){for(a=[],c=Ro();c!==e;)a.push(c),c=Ro();G=n,n=fg()}else r=n,n=e;return n}function ME(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=Ui,r++):(t=e,A===0&&C(Us)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.charCodeAt(r)===93?(o=ti,r++):(o=e,A===0&&C(li)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function sh(){var n;return pn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Bu)),n===e&&(jf.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Vp)),n===e&&(qf.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Mp)),n===e&&(Kf.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Du)),n===e&&(ep.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(In)),n===e&&(ou.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(ja)),n===e&&(au.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(na)),n===e&&(rp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Vu)),n===e&&(tp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(qa)),n===e&&(ip.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Mu)),n===e&&(sp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pp)),n===e&&(lu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pu)),n===e&&(np.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Et)))))))))))))),n}function ji(){var n;return n=sh(),n===e&&(i.charCodeAt(r)===95?(n=un,r++):(n=e,A===0&&C(Nn))),n}function nh(){var n,t,u,o;if(n=r,t=ji(),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pe))),t!==e){for(u=[],o=ji(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe)),o===e&&(cn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(bn)),o===e&&(os.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Tn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Rn))))));o!==e;)u.push(o),o=ji(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe)),o===e&&(cn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(bn)),o===e&&(os.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Tn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Rn))))));G=n,n=pg()}else r=n,n=e;return n}function $r(){var n;return n=ji(),n===e&&(i.charCodeAt(r)===45?(n=tr,r++):(n=e,A===0&&C(Vr)),n===e&&(He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pe)),n===e&&(cn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(bn)),n===e&&(os.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Tn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Rn))))))),n}function PE(){var n,t,u,o,a,c;if(n=r,t=sh(),t!==e){for(u=[],o=$r(),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C(Ye)),a!==e?(c=$r(),c!==e?(a=[a,c],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=ye,r++):(a=e,A===0&&C(Ye)),a!==e?(c=$r(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));G=n,n=cg()}else r=n,n=e;return n}function WE(){var n,t,u,o,a,c;if(n=r,t=ji(),t===e&&(i.charCodeAt(r)===58?(t=Xt,r++):(t=e,A===0&&C(Tr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pe)),t===e&&(t=Ys()))),t!==e){for(u=[],o=$r(),o===e&&(i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(Tr)),o===e&&(o=Ys())),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C(Ye)),a!==e?(c=$r(),c===e&&(i.charCodeAt(r)===58?(c=Xt,r++):(c=e,A===0&&C(Tr)),c===e&&(c=Ys())),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=$r(),o===e&&(i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(Tr)),o===e&&(o=Ys())),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C(Ye)),a!==e?(c=$r(),c===e&&(i.charCodeAt(r)===58?(c=Xt,r++):(c=e,A===0&&C(Tr)),c===e&&(c=Ys())),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));G=n,n=hg()}else r=n,n=e;return n}function Ys(){var n;return n=kE(),n===e&&(n=ZE()),n}function kE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=fn,r++):(t=e,A===0&&C(ds)),t!==e?(u=oh(),u!==e?(o=oh(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function oh(){var n;return He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pe)),n===e&&(op.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(oa)),n===e&&(ap.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Wu)))),n}function ZE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=ko,r++):(t=e,A===0&&C(sa)),t!==e?(i.charCodeAt(r)===95?(u=un,r++):(u=e,A===0&&C(Nn)),u===e&&(i.charCodeAt(r)===126?(u=Oa,r++):(u=e,A===0&&C(ku)),u===e&&(i.charCodeAt(r)===46?(u=ye,r++):(u=e,A===0&&C(Ye)),u===e&&(i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Vr)),u===e&&(i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(vn)),u===e&&(i.charCodeAt(r)===36?(u=Ns,r++):(u=e,A===0&&C(Ti)),u===e&&(i.charCodeAt(r)===38?(u=nu,r++):(u=e,A===0&&C(Zu)),u===e&&(i.charCodeAt(r)===39?(u=Di,r++):(u=e,A===0&&C(ui)),u===e&&(i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u===e&&(i.charCodeAt(r)===41?(u=Q,r++):(u=e,A===0&&C(le)),u===e&&(i.charCodeAt(r)===42?(u=ee,r++):(u=e,A===0&&C(Zr)),u===e&&(i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(dt)),u===e&&(i.charCodeAt(r)===44?(u=Be,r++):(u=e,A===0&&C(ke)),u===e&&(i.charCodeAt(r)===59?(u=ur,r++):(u=e,A===0&&C(Yt)),u===e&&(i.charCodeAt(r)===58?(u=Xt,r++):(u=e,A===0&&C(Tr)),u===e&&(i.charCodeAt(r)===61?(u=br,r++):(u=e,A===0&&C(Zt)),u===e&&(i.charCodeAt(r)===47?(u=rr,r++):(u=e,A===0&&C(Dr)),u===e&&(i.charCodeAt(r)===63?(u=It,r++):(u=e,A===0&&C(Os)),u===e&&(i.charCodeAt(r)===35?(u=ln,r++):(u=e,A===0&&C(hs)),u===e&&(i.charCodeAt(r)===64?(u=wa,r++):(u=e,A===0&&C(Ri)),u===e&&(i.charCodeAt(r)===37?(u=fn,r++):(u=e,A===0&&C(ds)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let ah={};if(xo=w(),xo!==e&&r===i.length)return xo;throw xo!==e&&r<i.length&&C(dg()),yc(pl,mt<i.length?i.charAt(mt):null,mt<i.length?Zs(mt,mt+1):Zs(mt,mt))}function y1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function Yl(i,v,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,Yl.prototype),R.expected=v,R.found=e,R.location=N,R.name="SyntaxError",R}y1(Yl,Error);function Fv(i,v,e){return e=e||" ",i.length>v?i:(v-=i.length,e+=e.repeat(v),i+e.slice(0,v))}Yl.prototype.format=function(i){var v="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,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,O=this.location.source+":"+w.line+":"+w.column;if(e){var V=this.location.end,W=Fv("",w.line.toString().length," "),H=e[R.line-1],Z=R.line===V.line?V.column:H.length+1,P=Z-R.column||1;v+=`
64
- --> `+O+`
65
- `+W+` |
63
+ `],!0,!1),hs=P("#",!1),Bu=Ge([["A","Z"]],!1,!1),Vp=Ge([["a","z"]],!1,!1),Mp=Ge([["\xC0","\xD6"]],!1,!1),Du=Ge([["\xD8","\xF6"]],!1,!1),Nn=Ge([["\xF8","\u02FF"]],!1,!1),ja=Ge([["\u0370","\u037D"]],!1,!1),na=Ge([["\u037F","\u1FFF"]],!1,!1),Vu=Ge([["\u200C","\u200D"]],!1,!1),qa=Ge([["\u2070","\u218F"]],!1,!1),Mu=Ge([["\u2C00","\u2FEF"]],!1,!1),Wp=Ge([["\u3001","\uD7FF"]],!1,!1),Wu=Ge([["\uF900","\uFDCF"]],!1,!1),xt=Ge([["\uFDF0","\uFFFD"]],!1,!1),bn=P("_",!1),Tn=Ge(["\xB7"],!1,!1),yn=Ge([["\u0300","\u036F"]],!1,!1),Rn=Ge([["\u203F","\u2040"]],!1,!1),ds=P("%",!1),oa=Ge([["A","F"]],!1,!1),Pu=Ge([["a","f"]],!1,!1),Zu=P("~",!1),ku=P("&",!1),Sn=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(ah).map(([a,c])=>({pos:parseInt(a),text:c}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},Qu=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},aa=function(n){if(n.length)return{type:"Prologue",decl:n}},_u=function(n){return{type:"BaseDecl",iriref:n}},no=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Pp=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},Ln=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:Te()};return o&&(a.values=o),a},Hu=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},Yu=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},Xu=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:Te()},o},oo=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},ao=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:Te()},o},lo=function(n){return n},uo=function(n){return{graph:n,location:Te()}},$u=function(n){return{namedGraph:n,location:Te()}},Zp=function(n){return n.graphPattern||n},Ju=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},gs=function(n){return n},wn=function(n){return n},fo=function(n){return n},kp=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:Te()}:{bracketted:!0,...n}},zu=function(n){return n},Qp=function(n){return n},_p=function(n){return n},Hp=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},ju=function(n){return n},Yp=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Xp=function(n){return{limit:parseInt(n.literal)}},$p=function(n){return{offset:parseInt(n.literal)}},qu=function(n){return n?n[1]:null},Ku=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},ef=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},Jp=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},zp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},jp=function(n,t){return{type:"create",silent:n,destinyGraph:t}},Es=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]}},la=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},co=function(n){return{type:"insertdata",insert:n}},_i=function(n){return{type:"deletedata",delete:n}},qp=function(n){return{type:"deletewhere",delete:n}},Kp=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},rf=function(n){return n},tf=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},sf=function(){return"default"},ua=function(n){return n},Un=function(n){return n},Ka=function(n){return n},el=function(){return"default"},rl=function(){return"named"},ec=function(){return"all"},ho=function(n){return n},nf=function(n){return n},rc=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},of=function(n,t){return{graph:n,...t}},fa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},tc=function(n){return n},ic=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()}},go=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:Te()}},af=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:Te()}},lf=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},sc=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=Te(),o},tl=function(n,t){return{type:"Bind",bind:n,as:t,location:Te()}},uf=function(n){return n},nc=function(n,t){return{oneVar:n,data:t,location:Te()}},ff=function(n,t){return{variables:n,data:t,location:Te()}},pf=function(n){return n},oc=function(n){return n},il=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:Te()}},Eo=function(n,t){return t.length?{union:[n,...t],location:Te()}:n},vo=function(n){return{type:"Filter",filter:n,location:Te()}},ac=function(n,t){return{functionRef:n,args:t.list,location:Te()}},cf=function(){return{list:[]}},lc=function(n,t,u){return{distinct:!!n,list:[t,...u]}},uc=function(){return[]},fc=function(n,t){return[n,...t]},pc=function(n){return n},hf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},cc=function(n,t){return{subject:n,properties:t}},hc=function(n,t){return{subject:n,properties:t}},df=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},sl=function(){return{a:!0,location:Te()}},gf=function(n,t){return[n,...t]},dc=function(n,t){return{subject:n,properties:t}},Ef=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},vf=function(n,t){return[n,...t]},pa=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},gc=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},Ec=function(n,t){return t&&(n.modifier=t),n},vc=function(n){return n.inverse=!0,n},Rr=function(){return{a:!0,location:Te()}},mc=function(n){return{bracketted:!0,...n}},nl=function(n){return{collection:n,location:Te()}},mo=function(n){return{blankNodeProperties:n,location:Te()}},fi=function(n){return{collection:n,location:Te()}},ca=function(n){return{blankNodeProperties:n,location:Te()}},ol=function(n){return n},mf=function(n){return n},xf=function(n){return n},Cf=function(n){return n},al=function(n){return{...n,location:Te()}},Af=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},xc=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},ll=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},If=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},Nf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Cc=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},Fn=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},Ac=function(n){return{expressionType:"atomic",value:n}},ha=function(n){return{expressionType:"atomic",value:n}},Ic=function(n){return{expressionType:"atomic",value:n}},Pr=function(n){return{expressionType:"atomic",value:n}},Nc=function(n){return{bracketted:!0,...n}},bc=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},Tc=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},da=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]}},m=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},I=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(n){return{expressionType:"builtincall",builtincall:"abs",args:[n]}},R=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},L=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},O=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},k=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},X=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]}},me=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]}},Ve=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},Fe=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},qe=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},mr=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]}},Dt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Vt=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]}},Mt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Bn=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]}},Si=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},nt=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},ul=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Hi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},Ps=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},Zs=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},yt=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}},fl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Ad=function(n){return{exists:n.graphPattern||n}},Id=function(n){return{notexists:n.graphPattern||n}},Nd=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},bd=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},Td=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},yd=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Rd=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},Sd=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Ld=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},wd=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Od=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=Te(),n},Ud=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Gd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Fd=function(n){return{type:"IRIref",iriref:n,location:Te()}},Bd=function(n){return n},Dd=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:Te()}},Vd=function(n){return{type:"PrefixedName",pn_prefix:n,location:Te()}},Md=function(n){return{blankNode:n,location:Te()}},Wd=function(){return{blankNode:"[]",location:Te()}},Pd=function(n){return n.join("")},Zd=function(n){return n||""},kd=function(n,t){return{pn_prefix:n,pn_local:t}},Qd=function(){return Yr()},_d=function(n){return{type:"Var",varType:"VAR1",varname:n}},Hd=function(n){return{type:"Var",varType:"VAR2",varname:n}},Yd=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},Xd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Yr()}},$d=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()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},qd=function(n){return n.literal="+"+n.literal,n},Kd=function(n){return n.literal="+"+n.literal,n},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{quote:"'",literal:n.join("")}},ng=function(n){return{quote:'"',literal:n.join("")}},og=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},ag=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},lg=function(){return Yr()},ug=function(){return Yr()},fg=function(){return ah[Te().start.offset]=Yr(),""},pg=function(){return Yr()},cg=function(){return Yr()},hg=function(){return Yr()},r=0,U=0,xo=[{line:1,column:1}],At=0,pl=[],A=0,Co;if("startRule"in v){if(!(v.startRule in y))throw new Error(`Can't start parsing from rule "`+v.startRule+'".');w=y[v.startRule]}function Yr(){return i.substring(U,r)}function qA(){return U}function KA(){return{source:N,start:U,end:r}}function Te(){return ks(U,r)}function eI(n,t){throw t=t!==void 0?t:ks(U,r),Rc([gg(n)],i.substring(U,r),t)}function rI(n,t){throw t=t!==void 0?t:ks(U,r),Eg(n,t)}function P(n,t){return{type:"literal",text:n,ignoreCase:t}}function Ge(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function tI(){return{type:"any"}}function dg(){return{type:"end"}}function gg(n){return{type:"other",description:n}}function yc(n){var t=xo[n],u;if(t)return t;for(u=n-1;!xo[u];)u--;for(t=xo[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return xo[n]=t,t}function ks(n,t,u){var o=yc(n),a=yc(t),c={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"&&(c.start=N.offset(c.start),c.end=N.offset(c.end)),c}function C(n){r<At||(r>At&&(At=r,pl=[]),pl.push(n))}function Eg(n,t){return new Xl(n,null,null,t)}function Rc(n,t,u){return new Xl(Xl.buildMessage(n,t),n,t,u)}function Sc(){var n,t,u,o,a,c;for(n=r,t=[],u=ih();u!==e;)t.push(u),u=ih();for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=vg(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=Sn(t,o)}else r=n,n=e;return n}function vg(){var n;return n=mg(),n===e&&(n=Wc()),n}function mg(){var n,t,u,o,a;for(n=r,t=Lc(),u=[],o=p();o!==e;)u.push(o),o=p();return o=xg(),o===e&&(o=Ag(),o===e&&(o=Ig(),o===e&&(o=Ng()))),o!==e?(a=Mc(),U=n,n=Qu(t,o,a)):(r=n,n=e),n}function Lc(){var n,t,u;for(n=r,t=[],u=wc(),u===e&&(u=Oc());u!==e;)t.push(u),u=wc(),u===e&&(u=Oc());return U=n,t=aa(t),n=t,n}function wc(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,4).toLowerCase()===G?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(lp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ol(),a!==e?(U=n,n=_u(a)):(r=n,n=e)}else r=n,n=e;return n}function Oc(){var n,t,u,o,a,c,h;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,6).toLowerCase()===V?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Hn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Ul(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Ol(),h!==e?(U=n,n=no(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function xg(){var n,t,u,o,a,c,h,E;if(n=r,t=Uc(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=It();a!==e;)o.push(a),a=It();for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=Qs(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Yi(),U=n,n=Pp(t,o,c,E)}else r=n,n=e}else r=n,n=e;return n}function Cg(){var n,t,u,o,a,c,h;if(n=r,t=Uc(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Qs(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Yi(),h=Mc(),U=n,n=Ln(t,o,c,h)}else r=n,n=e}else r=n,n=e;return n}function Uc(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le;if(n=r,i.substr(r,6).toLowerCase()===Z?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(rt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(gt)),o===e&&(i.substr(r,7).toLowerCase()===_?(o=i.substr(r,7),r+=7):(o=e,A===0&&C(uu))),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(x=nr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===40?(x=W,r++):(x=e,A===0&&C(ae)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(i.substr(r,2).toLowerCase()===J?(Q=i.substr(r,2),r+=2):(Q=e,A===0&&C(Rs)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=nr(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();i.charCodeAt(r)===41?(Le=M,r++):(Le=e,A===0&&C(ue)),Le!==e?(E=[E,x,T,S,F,Q,ne,de,Ne,Le],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(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(x=nr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===40?(x=W,r++):(x=e,A===0&&C(ae)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(i.substr(r,2).toLowerCase()===J?(Q=i.substr(r,2),r+=2):(Q=e,A===0&&C(Rs)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=nr(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();i.charCodeAt(r)===41?(Le=M,r++):(Le=e,A===0&&C(ue)),Le!==e?(E=[E,x,T,S,F,Q,ne,de,Ne,Le],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 c=e;c===e&&(i.charCodeAt(r)===42?(c=z,r++):(c=e,A===0&&C(Qr))),c!==e?(U=n,n=Hu(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Ag(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne;if(n=r,i.substr(r,9).toLowerCase()===$?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(Yn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=eE(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=It();h!==e;)c.push(h),h=It();for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=Qs(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),U=n,n=Yu(o,c,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()===$?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(Yn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=It();a!==e;)o.push(a),a=It();for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===B?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(as)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=D,r++):(E=e,A===0&&C(Gt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=$i(),T===e&&(T=null),S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===125?(F=Y,r++):(F=e,A===0&&C(Ft)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();ne=Yi(),U=n,n=Xu(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 Ig(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,8).toLowerCase()===q?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(fu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=zi(),a!==e)for(;a!==e;)o.push(a),a=zi();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,A===0&&C(Qr))),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=It();h!==e;)c.push(h),h=It();for(h=[],E=p();E!==e;)h.push(E),E=p();for(E=Qs(),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),U=n,n=oo(o,c,E,T)}else r=n,n=e}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,3).toLowerCase()===te?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(pu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=It();c!==e;)a.push(c),c=It();for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=Qs(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Yi(),U=n,n=ao(a,h,x)}else r=n,n=e}else r=n,n=e;return n}function It(){var n,t,u,o,a,c;if(n=r,i.substr(r,4).toLowerCase()===ie?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(up)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=bg(),o===e&&(o=Tg()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=lo(o)}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=pr(),u!==e?(U=n,n=uo(u)):(r=n,n=e),n}function Tg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===le?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Wi)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(U=n,n=$u(o)):(r=n,n=e)}else r=n,n=e;return n}function Qs(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===B?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(as)),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();return o=ot(),o!==e?(U=n,n=Zp(o)):(r=n,n=e),n}function Yi(){var n,t,u,o,a;return n=r,t=yg(),t===e&&(t=null),u=Rg(),u===e&&(u=null),o=Sg(),o===e&&(o=null),a=Lg(),a===e&&(a=null),U=n,n=Ju(t,u,o,a),n}function yg(){var n,t,u,o,a,c,h;if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Pi)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,2).toLowerCase()===ke?(o=i.substr(r,2),r+=2):(o=e,A===0&&C(dn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Gc(),h!==e)for(;h!==e;)c.push(h),h=Gc();else c=e;c!==e?(U=n,n=gs(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Gc(){var n,t,u,o,a,c,h,E,x,T,S;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=Tl(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=n,n=wn(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=Jc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=n,n=fo(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=se(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=r,i.substr(r,2).toLowerCase()===J?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Rs)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();U=n,n=kp(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=p();u!==e;)t.push(u),u=p();if(u=nr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=n,n=zu(u)}else r=n,n=e}}}return n}function Rg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===we?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Da)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=Fc(),a!==e)for(;a!==e;)o.push(a),a=Fc();else o=e;o!==e?(U=n,n=Qp(o)):(r=n,n=e)}else r=n,n=e;return n}function Fc(){var n,t,u,o;if(n=r,t=dl(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();U=n,n=_p(t)}else r=n,n=e;return n}function Sg(){var n,t,u,o,a,c,h,E;if(n=r,i.substr(r,5).toLowerCase()===Pe?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(cu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,2).toLowerCase()===ke?(o=i.substr(r,2),r+=2):(o=e,A===0&&C(dn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Bc(),h!==e)for(;h!==e;)c.push(h),h=Bc();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();U=n,n=Hp(c)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Bc(){var n,t,u,o,a,c;if(n=r,i.substr(r,3).toLowerCase()===Me?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ii)),t===e&&(i.substr(r,4).toLowerCase()===Ke?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Ss))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=bl(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=Bt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=dl(),t===e&&(t=nr()),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();U=n,n=ju(t)}else r=n,n=e;return n}function Lg(){var n,t,u,o;return n=r,t=r,u=Dc(),u!==e?(o=Vc(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=Vc(),u!==e?(o=Dc(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(U=n,t=Yp(t)),n=t,n}function Dc(){var n,t,u,o,a,c;if(n=r,i.substr(r,5).toLowerCase()===ve?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Va)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Xs(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=Xp(o)}else r=n,n=e}else r=n,n=e;return n}function Vc(){var n,t,u,o,a,c;if(n=r,i.substr(r,6).toLowerCase()===xr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(fp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Xs(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=$p(o)}else r=n,n=e}else r=n,n=e;return n}function Mc(){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,A===0&&C(Ho)),u!==e?(o=Xc(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),U=n,t=qu(t),n=t,n}function Wc(){var n,t,u,o,a,c,h,E,x,T;for(n=r,t=Lc(),u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(a=wg(),a!==e){for(c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C($t)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Wc(),h=[h,E,x,T],c=h}else r=c,c=e;c===e&&(c=null),o=[o,a,c],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();return U=n,n=Ku(t,u),n}function wg(){var n;return n=Og(),n===e&&(n=Ug(),n===e&&(n=Gg(),n===e&&(n=Bg(),n===e&&(n=Dg(),n===e&&(n=Vg(),n===e&&(n=Fg(),n===e&&(n=Mg(),n===e&&(n=Wg(),n===e&&(n=Pg(),n===e&&(n=Zg())))))))))),n}function Og(){var n,t,u,o,a,c,h,E,x,T,S;if(n=r,i.substr(r,4).toLowerCase()===Jr?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(hu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=r,i.substr(r,4).toLowerCase()===St?(x=i.substr(r,4),r+=4):(x=e,A===0&&C(gn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=cl(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),U=n,n=ef(o,c,E)}else r=n,n=e}else r=n,n=e;return n}function Ug(){var n,t,u,o,a,c;if(n=r,i.substr(r,5).toLowerCase()===Lt?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Ni)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=kc(),c!==e?(U=n,n=Jp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Gg(){var n,t,u,o,a,c;if(n=r,i.substr(r,4).toLowerCase()===cr?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(du)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=kc(),c!==e?(U=n,n=zp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Fg(){var n,t,u,o,a,c;if(n=r,i.substr(r,6).toLowerCase()===wt?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=cl(),c!==e?(U=n,n=jp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Bg(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,3).toLowerCase()===or?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(pp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=Xi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Xn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Xi(),T!==e?(U=n,n=Es(o,c,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,c,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===ze?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(cp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=Xi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Xn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Xi(),T!==e?(U=n,n=po(o,c,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===zr?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Eu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=Xi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Xn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Xi(),T!==e?(U=n,n=la(o,c,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,c;if(n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Yo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===Zr?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Ls)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Qc(),c!==e?(U=n,n=co(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Wg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(En)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.substr(r,4).toLowerCase()===Zr?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Ls)),o!==e?(a=Qc(),a!==e?(U=n,n=_i(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function Pg(){var n,t,u,o,a,c;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(En)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===B?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(as)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=hl(),c!==e?(U=n,n=qp(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u,o,a,c,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,A===0&&C(vu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=pr(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();u=[u,o,a,c],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=kg(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Pc(),c===e&&(c=null),o=[o,a,c],u=o}else r=u,u=e;if(u===e&&(u=Pc()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=Zc();c!==e;)a.push(c),c=Zc();for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(as)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=ot(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();U=n,n=Kp(t,u,a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function kg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(En)),t!==e?(u=hl(),u!==e?(U=n,n=On(u)):(r=n,n=e)):(r=n,n=e),n}function Pc(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Yo)),t!==e?(u=hl(),u!==e?(U=n,n=rf(u)):(r=n,n=e)):(r=n,n=e),n}function Zc(){var n,t,u,o,a,c,h,E;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Oe?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ma)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=pr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===le?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Wi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=pr(),E!==e?(c=[c,h,E],a=c):(r=a,a=e)}else r=a,a=e;a!==e?(U=n,n=tf(a)):(r=n,n=e)}else r=n,n=e;return n}function Xi(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(vn)),t!==e&&(U=n,t=sf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(ls)),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(U=n,n=ua(o)):(r=n,n=e)}return n}function cl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(ls)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(U=n,n=Un(o)):(r=n,n=e)}else r=n,n=e;return n}function kc(){var n,t;return n=r,t=cl(),t!==e&&(U=n,t=Ka(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(vn)),t!==e&&(U=n,t=el()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===le?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Wi)),t!==e&&(U=n,t=rl()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===fr?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Xo)),t!==e&&(U=n,t=ec()),n=t))),n}function hl(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Gt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=_c(),c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ft)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=ho(a)}else r=n,n=e}else r=n,n=e;return n}function Qc(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Gt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=_c(),c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ft)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=nf(a)}else r=n,n=e}else r=n,n=e;return n}function _c(){var n,t,u,o,a,c,h;for(n=r,t=$i(),t===e&&(t=null),u=[],o=r,a=Hc(),a!==e?(i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c===e&&(c=null),h=$i(),h===e&&(h=null),a=[a,c,h],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=Hc(),a!==e?(i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c===e&&(c=null),h=$i(),h===e&&(h=null),a=[a,c,h],o=a):(r=o,o=e);return U=n,n=rc(t,u),n}function Hc(){var n,t,u,o,a,c,h,E,x,T,S,F,Q;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=zi(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===123?(h=D,r++):(h=e,A===0&&C(Gt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(x=$i(),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===125?(S=Y,r++):(S=e,A===0&&C(Ft)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=n,n=of(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,c,h;if(n=r,t=qc(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=$i(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=fa(t,u)}else r=n,n=e;return n}function ot(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===123?(t=D,r++):(t=e,A===0&&C(Gt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Cg(),o===e&&(o=Qg()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===125?(c=Y,r++):(c=e,A===0&&C(Ft)),c!==e?(U=n,n=tc(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Qg(){var n,t,u,o,a,c,h,E,x,T;for(n=r,t=Ao(),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=r,c=Yc(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(i.charCodeAt(r)===46?(E=Re,r++):(E=e,A===0&&C($e)),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=Ao(),T===e&&(T=null),c=[c,h,E,x,T],a=c}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,c=Yc(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(i.charCodeAt(r)===46?(E=Re,r++):(E=e,A===0&&C($e)),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=Ao(),T===e&&(T=null),c=[c,h,E,x,T],a=c}else r=a,a=e;return U=n,n=ic(t,o),n}function Ao(){var n,t,u,o,a,c,h;if(n=r,t=tE(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Ao(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=go(t,u)}else r=n,n=e;return n}function Yc(){var n;return n=qg(),n===e&&(n=_g(),n===e&&(n=jg(),n===e&&(n=Hg(),n===e&&(n=Yg(),n===e&&(n=Kg(),n===e&&(n=Xg(),n===e&&(n=$g()))))))),n}function _g(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,8).toLowerCase()===Ur?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(mu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=ot(),a!==e?(U=n,n=af(a)):(r=n,n=e)}else r=n,n=e;return n}function Hg(){var n,t,u,o,a,c,h;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=zi(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=ot(),h!==e?(U=n,n=lf(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Yg(){var n,t,u,o,a,c,h,E;if(n=r,i.substr(r,7).toLowerCase()===ei?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Wa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Et)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=zi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=ot(),E!==e?(U=n,n=sc(o,c,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u,o,a,c,h,E,x,T,S,F,Q;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,4).toLowerCase()===Ie?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Pa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===J?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Rs)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=nr(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=n,n=tl(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 $g(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Ho)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Xc(),a!==e?(U=n,n=uf(a)):(r=n,n=e)}else r=n,n=e;return n}function Xc(){var n;return n=Jg(),n===e&&(n=zg()),n}function Jg(){var n,t,u,o,a,c,h,E;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=nr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===123?(a=D,r++):(a=e,A===0&&C(Gt)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=Io();E!==e;)h.push(E),E=Io();i.charCodeAt(r)===125?(E=Y,r++):(E=e,A===0&&C(Ft)),E!==e?(U=n,n=nc(u,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,c,h,E,x,T,S;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=nr();c!==e;)a.push(c),c=nr();if(i.charCodeAt(r)===41?(c=M,r++):(c=e,A===0&&C(ue)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=D,r++):(E=e,A===0&&C(Gt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=[],S=$c();S!==e;)T.push(S),S=$c();i.charCodeAt(r)===125?(S=Y,r++):(S=e,A===0&&C(Ft)),S!==e?(U=n,n=ff(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function $c(){var n,t,u,o,a,c,h;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=Io();a!==e;)o.push(a),a=Io();if(i.charCodeAt(r)===41?(a=M,r++):(a=e,A===0&&C(ue)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=n,n=pf(o)}else r=n,n=e}else r=n,n=e;return n}function Io(){var n,t,u,o;if(n=r,t=pr(),t===e&&(t=yl(),t===e&&(t=Rl(),t===e&&(t=wl(),t===e&&(i.substr(r,5)===Ot?(t=Ot,r+=5):(t=e,A===0&&C(xu)))))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();U=n,n=oc(t)}else r=n,n=e;return n}function jg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ft?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Cu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=ot(),o!==e?(U=n,n=il(o)):(r=n,n=e)}else r=n,n=e;return n}function qg(){var n,t,u,o,a,c,h,E;if(n=r,t=ot(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===Nt?(c=i.substr(r,5),r+=5):(c=e,A===0&&C($n)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();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=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===Nt?(c=i.substr(r,5),r+=5):(c=e,A===0&&C($n)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Eo(t,u)}else r=n,n=e;return n}function Kg(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,6).toLowerCase()===es?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(hp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=dl(),a!==e?(U=n,n=vo(a)):(r=n,n=e)}else r=n,n=e;return n}function dl(){var n;return n=bl(),n===e&&(n=Tl(),n===e&&(n=Jc())),n}function Jc(){var n,t,u,o;if(n=r,t=pr(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=zc(),o!==e?(U=n,n=ac(t,o)):(r=n,n=e)}else r=n,n=e;return n}function zc(){var n,t,u,o,a,c,h,E,x,T,S,F;if(n=r,t=jt(),t!==e&&(U=n,t=cf()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(gt)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=[],x=r,i.charCodeAt(r)===44?(T=Be,r++):(T=e,A===0&&C(Ze)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=Be,r++):(T=e,A===0&&C(Ze)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=se(),F!==e?x=F:(r=x,x=e)}else r=x,x=e;i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=n,n=lc(o,c,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Ji(){var n,t,u,o,a,c,h,E,x,T,S,F;if(n=r,t=jt(),t!==e&&(U=n,t=uc()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=se(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=r,i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();h=T}else r=h,h=e}else r=h,h=e;for(;h!==e;)if(c.push(h),h=r,i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();h=T}else r=h,h=e}else r=h,h=e;i.charCodeAt(r)===41?(h=M,r++):(h=e,A===0&&C(ue)),h!==e?(U=n,n=fc(o,c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function eE(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===123?(t=D,r++):(t=e,A===0&&C(Gt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=jc(),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===125?(c=Y,r++):(c=e,A===0&&C(Ft)),c!==e?(U=n,n=pc(o)):(r=n,n=e)}else r=n,n=e;return n}function jc(){var n,t,u,o,a,c,h;if(n=r,t=qc(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=jc(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=hf(t,u)}else r=n,n=e;return n}function qc(){var n,t,u,o,a;if(n=r,t=To(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=gl(),o!==e?(U=n,n=cc(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=eh(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=rE(),U=n,n=hc(u,a)}else r=n,n=e}return n}function rE(){var n;return n=gl(),n===e&&(n=null),n}function gl(){var n,t,u,o,a,c,h,E,x,T,S,F,Q;if(n=r,t=El(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=vl(),o!==e){for(a=[],c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C($t)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=El(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();Q=vl(),Q!==e?(S=[S,F,Q],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e;for(;c!==e;){for(a.push(c),c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C($t)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=El(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();Q=vl(),Q!==e?(S=[S,F,Q],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e}U=n,n=df(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function El(){var n,t;return n=zi(),n===e&&(n=r,i.charCodeAt(r)===97?(t=pt,r++):(t=e,A===0&&C(ws)),t!==e&&(U=n,t=sl()),n=t),n}function vl(){var n,t,u,o,a,c,h,E;if(n=r,t=_s(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(Ze)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();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=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(Ze)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=_s(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=gf(t,u)}else r=n,n=e;return n}function tE(){var n,t,u,o,a;if(n=r,t=To(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=ml(),o!==e?(U=n,n=dc(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=rh(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=iE(),U=n,n=Ef(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,c,h,E,x,T,S,F,Q;if(n=r,t=No(),t===e&&(t=nr()),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=xl(),o!==e){for(a=[],c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C($t)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=No(),S===e&&(S=nr()),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();Q=xl(),Q!==e?(S=[S,F,Q],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e;for(;c!==e;){for(a.push(c),c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C($t)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=No(),S===e&&(S=nr()),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();Q=xl(),Q!==e?(S=[S,F,Q],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e}U=n,n=Gn(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function xl(){var n,t,u,o,a,c,h,E;if(n=r,t=Hs(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(Ze)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=Be,r++):(c=e,A===0&&C(Ze)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Hs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=vf(t,u)}else r=n,n=e;return n}function No(){var n,t,u,o,a,c,h,E;if(n=r,t=Cl(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===124?(c=Se,r++):(c=e,A===0&&C(Jt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Cl(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===124?(c=Se,r++):(c=e,A===0&&C(Jt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Cl(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}U=n,n=pa(t,u)}else r=n,n=e;return n}function Cl(){var n,t,u,o,a,c,h,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Mr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Al(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Mr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Al(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}U=n,n=gc(t,u)}else r=n,n=e;return n}function Kc(){var n,t,u;return n=r,t=nE(),t!==e?(u=sE(),u===e&&(u=null),U=n,n=Ec(t,u)):(r=n,n=e),n}function Al(){var n,t,u;return n=Kc(),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,A===0&&C(us)),t!==e?(u=Kc(),u!==e?(U=n,n=vc(u)):(r=n,n=e)):(r=n,n=e)),n}function sE(){var n;return i.charCodeAt(r)===63?(n=ct,r++):(n=e,A===0&&C(Os)),n===e&&(i.charCodeAt(r)===42?(n=z,r++):(n=e,A===0&&C(Qr)),n===e&&(i.charCodeAt(r)===43?(n=Nr,r++):(n=e,A===0&&C(vt)))),n}function nE(){var n,t,u,o;return n=pr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=pt,r++):(t=e,A===0&&C(ws)),t!==e&&(U=n,t=Rr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,A===0&&C(mn)),t!==e?(u=oE(),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,A===0&&C(ae)),t!==e?(u=No(),u!==e?(i.charCodeAt(r)===41?(o=M,r++):(o=e,A===0&&C(ue)),o!==e?(U=n,n=mc(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function oE(){var n,t,u,o,a,c,h,E;if(n=bo(),n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,A===0&&C(ae)),t!==e){if(u=r,o=bo(),o!==e){for(a=[],c=r,i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e?(E=bo(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e);c!==e;)a.push(c),c=r,i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e?(E=bo(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=M,r++):(o=e,A===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function bo(){var n,t,u;return n=pr(),n===e&&(i.charCodeAt(r)===97?(n=pt,r++):(n=e,A===0&&C(ws)),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,A===0&&C(us)),t!==e?(u=pr(),u===e&&(i.charCodeAt(r)===97?(u=pt,r++):(u=e,A===0&&C(ws))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function eh(){var n,t;return n=r,t=uE(),t!==e&&(U=n,t=nl(t)),n=t,n===e&&(n=aE()),n}function aE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===91?(u=Ui,r++):(u=e,A===0&&C(Us)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=gl(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,A===0&&C(li)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=mo(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function rh(){var n,t;return n=r,t=fE(),t!==e&&(U=n,t=fi(t)),n=t,n===e&&(n=lE()),n}function lE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===91?(u=Ui,r++):(u=e,A===0&&C(Us)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=ml(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,A===0&&C(li)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=ca(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function uE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=_s(),c!==e)for(;c!==e;)a.push(c),c=_s();else a=e;if(a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,A===0&&C(ue)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=ol(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function fE(){var n,t,u,o,a,c,h,E,x;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Hs(),c!==e)for(;c!==e;)a.push(c),c=Hs();else a=e;if(a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,A===0&&C(ue)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=mf(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function _s(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=To(),u===e&&(u=eh()),u!==e?(U=n,n=xf(u)):(r=n,n=e),n}function Hs(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=To(),u===e&&(u=rh()),u!==e?(U=n,n=Cf(u)):(r=n,n=e),n}function To(){var n;return n=nr(),n===e&&(n=pE()),n}function zi(){var n;return n=nr(),n===e&&(n=pr()),n}function nr(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=bE(),u===e&&(u=TE()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=n,n=al(u)}else r=n,n=e;return n}function pE(){var n;return n=pr(),n===e&&(n=yl(),n===e&&(n=Rl(),n===e&&(n=wl(),n===e&&(n=AE(),n===e&&(n=jt()))))),n}function se(){var n,t,u,o,a,c,h,E;if(n=r,t=Il(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===bt?(c=bt,r+=2):(c=e,A===0&&C(Zi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Il(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===bt?(c=bt,r+=2):(c=e,A===0&&C(Zi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Il(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=Af(t,u)}else r=n,n=e;return n}function Il(){var n,t,u,o,a,c,h,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ii?(c=ii,r+=2):(c=e,A===0&&C(mt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ii?(c=ii,r+=2):(c=e,A===0&&C(mt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Nl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=xc(t,u)}else r=n,n=e;return n}function Nl(){var n,t,u,o,a,c,h,E,x,T;if(n=r,t=Fr(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===61?(c=Tr,r++):(c=e,A===0&&C(kt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Ut?(c=Ut,r+=2):(c=e,A===0&&C(bi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===60?(c=Ue,r++):(c=e,A===0&&C(fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===62?(c=ni,r++):(c=e,A===0&&C(Jn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===kr?(c=kr,r+=2):(c=e,A===0&&C($o)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ar?(c=ar,r+=2):(c=e,A===0&&C(Gs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2).toLowerCase()===dr?(c=i.substr(r,2),r+=2):(c=e,A===0&&C(ps)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ji(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,3).toLowerCase()===rs?(c=i.substr(r,3),r+=3):(c=e,A===0&&C(Fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ps)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Ji(),T!==e?(a=[a,c,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=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===61?(c=Tr,r++):(c=e,A===0&&C(kt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===Ut?(c=Ut,r+=2):(c=e,A===0&&C(bi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===60?(c=Ue,r++):(c=e,A===0&&C(fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===62?(c=ni,r++):(c=e,A===0&&C(Jn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===kr?(c=kr,r+=2):(c=e,A===0&&C($o)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ar?(c=ar,r+=2):(c=e,A===0&&C(Gs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2).toLowerCase()===dr?(c=i.substr(r,2),r+=2):(c=e,A===0&&C(ps)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ji(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,3).toLowerCase()===rs?(c=i.substr(r,3),r+=3):(c=e,A===0&&C(Fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ps)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Ji(),T!==e?(a=[a,c,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}U=n,n=ll(t,u)}else r=n,n=e;return n}function Fr(){var n,t,u,o,a,c,h,E,x,T,S;if(n=r,t=Ys(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===43?(c=Nr,r++):(c=e,A===0&&C(vt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ys(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Wr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ys(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=Sl(),a===e&&(a=Ll()),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,A===0&&C(Qr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Mr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,A===0&&C(Qr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Mr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,c],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===43?(c=Nr,r++):(c=e,A===0&&C(vt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ys(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Wr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ys(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=Sl(),a===e&&(a=Ll()),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,A===0&&C(Qr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Mr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,A===0&&C(Qr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();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=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Mr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,c],o=a}else r=o,o=e}}U=n,n=If(t,u)}else r=n,n=e;return n}function Ys(){var n,t,u,o,a,c,h,E;if(n=r,t=Br(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===42?(c=z,r++):(c=e,A===0&&C(Qr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Br(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Mr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Br(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===42?(c=z,r++):(c=e,A===0&&C(Qr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Br(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Mr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Br(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}}U=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,A===0&&C(mn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=yo(),o!==e?(U=n,n=Nf(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,A===0&&C(vt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=yo(),o!==e?(U=n,n=Cc(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,A===0&&C(Wr)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=yo(),o!==e?(U=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=yo())}}return n}function yo(){var n,t;return n=bl(),n===e&&(n=Tl(),n===e&&(n=mE(),n===e&&(n=r,t=yl(),t!==e&&(U=n,t=Ac(t)),n=t,n===e&&(n=r,t=Rl(),t!==e&&(U=n,t=ha(t)),n=t,n===e&&(n=r,t=wl(),t!==e&&(U=n,t=Ic(t)),n=t,n===e&&(n=r,t=nr(),t!==e&&(U=n,t=Pr(t)),n=t)))))),n}function bl(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=se(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===41?(c=M,r++):(c=e,A===0&&C(ue)),c!==e?(U=n,n=Nc(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne;if(n=vE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===ts?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(dp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=bc(c)):(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,A===0&&C(Za)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Tc(c)):(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()===Vr?(t=i.substr(r,11),r+=11):(t=e,A===0&&C(Au)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=da(c,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()===Ei?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(ka)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=s(c)):(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()===Is?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Qa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=nr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=l(c)):(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()===en?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(xn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=g(c)):(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,A===0&&C(Jo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=d(c)):(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()===Go?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Iu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=r,i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(a=[a,c,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?(U=n,n=m(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===tn?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(zo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(U=n,n=I()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Ta?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(gp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=b(c)):(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()===Pt?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Ep)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=R(c)):(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,A===0&&C(vp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=L(c)):(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()===sn?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(_a)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=O(c)):(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()===Fo?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Ha)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=Ji(),o!==e?(U=n,n=k(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=hE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===Zn?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Cn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=X(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=dE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===nn?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(zn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=re(c)):(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,A===0&&C(mp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=ee(c)):(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()===on?(t=i.substr(r,14),r+=14):(t=e,A===0&&C(jo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=oe(c)):(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()===Fi?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(Nu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=fe(c,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()===Bo?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(jn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=he(c,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,A===0&&C(bu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=me(c,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()===an?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Bs)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=Ce(c,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,A===0&&C(qn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=xe(c,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,A===0&&C(Ds)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=be(c)):(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()===ge?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Kn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Ve(c)):(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()===ye?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(An)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Fe(c)):(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()===vr?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Tu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=qe(c)):(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,A===0&&C(yu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=mr(c)):(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()===je?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Ru)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=st(c)):(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,A===0&&C(xp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Lr(c)):(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,A===0&&C(Vs)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=_t(c)):(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,A===0&&C(Ms)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(U=n,n=Dt()):(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,A===0&&C(Cp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(U=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,A===0&&C(Ap)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=jt(),o!==e?(U=n,n=Vt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===mi?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ip)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=lt(c)):(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()===is?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Np)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=jr(c)):(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()===ya?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(bp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Hr(c)):(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()===ce?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Tp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Gr(c)):(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()===Ye?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Qt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Mt(c)):(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()===Ra?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(tt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=Ji(),o!==e?(U=n,n=Bn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===Sa?(t=i.substr(r,2),r+=2):(t=e,A===0&&C(Tt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===44?(F=Be,r++):(F=e,A===0&&C(Ze)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();if(ne=se(),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();i.charCodeAt(r)===41?(Ne=M,r++):(Ne=e,A===0&&C(ue)),Ne!==e?(U=n,n=vs(c,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()===Vo?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(it)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=Ct(c,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()===Mo?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(eo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=Si(c,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()===zl?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(yp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e?(U=n,n=nt(c,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()===Xe?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(qo)),t===e&&(i.substr(r,5).toLowerCase()===Yf?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Rp))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=ul(c)):(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()===jl?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Sp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Hi(c)):(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,A===0&&C(Lp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Ps(c)):(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()===xi?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(Ya)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=n,n=Zs(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=cE(),n===e&&(n=gE(),n===e&&(n=EE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function cE(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne,de;if(n=r,i.substr(r,5).toLowerCase()===ql?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Su)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=r,i.charCodeAt(r)===44?(Q=Be,r++):(Q=e,A===0&&C(Ze)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=se(),de!==e?(Q=[Q,ne,de],F=Q):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,A===0&&C(ue)),ne!==e?(U=n,n=yt(c,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 hE(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne,de;if(n=r,i.substr(r,6).toLowerCase()===Kl?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Xa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=r,i.charCodeAt(r)===44?(Q=Be,r++):(Q=e,A===0&&C(Ze)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=se(),de!==e?(Q=[Q,ne,de],F=Q):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,A===0&&C(ue)),ne!==e?(U=n,n=Dn(c,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 dE(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le,er,Ht;if(n=r,i.substr(r,7).toLowerCase()===kn?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(wp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===44?(E=Be,r++):(E=e,A===0&&C(Ze)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=se(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===44?(F=Be,r++):(F=e,A===0&&C(Ze)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();if(ne=se(),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=r,i.charCodeAt(r)===44?(Le=Be,r++):(Le=e,A===0&&C(Ze)),Le!==e){for(er=[],Ht=p();Ht!==e;)er.push(Ht),Ht=p();Ht=se(),Ht!==e?(Le=[Le,er,Ht],Ne=Le):(r=Ne,Ne=e)}else r=Ne,Ne=e;for(Ne===e&&(Ne=null),Le=[],er=p();er!==e;)Le.push(er),er=p();i.charCodeAt(r)===41?(er=M,r++):(er=e,A===0&&C(ue)),er!==e?(U=n,n=fl(c,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 gE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===Qn?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(ro)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=ot(),o!==e?(U=n,n=Ad(o)):(r=n,n=e)}else r=n,n=e;return n}function EE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3).toLowerCase()===rs?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Fs)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===Qn?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ro)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=ot(),c!==e?(U=n,n=Id(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function vE(){var n,t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le;if(n=r,i.substr(r,5).toLowerCase()===eu?(t=i.substr(r,5),r+=5):(t=e,A===0&&C($a)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===42?(E=z,r++):(E=e,A===0&&C(Qr)),E===e&&(E=se()),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Nd(c,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()===La?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Lu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=bd(c,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()===ru?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(wu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Td(c,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()===tu?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ja)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=yd(c,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()===iu?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Ou)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Rd(c,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()===su?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(to)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Sd(c,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()===Xf?(t=i.substr(r,12),r+=12):(t=e,A===0&&C(Op)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(i.substr(r,8).toLowerCase()===H?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(gt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=r,T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===59?(S=ur,r++):(S=e,A===0&&C($t)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(i.substr(r,9).toLowerCase()===$f?(Q=i.substr(r,9),r+=9):(Q=e,A===0&&C(Ko)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(i.charCodeAt(r)===61?(de=Tr,r++):(de=e,A===0&&C(kt)),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();Le=th(),Le!==e?(T=[T,S,F,Q,ne,de,Ne,Le],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=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=n,n=Ld(c,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 mE(){var n,t,u,o;if(n=r,t=pr(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=zc(),o===e&&(o=null),U=n,n=wd(t,o)}else r=n,n=e;return n}function yl(){var n,t,u,o,a;return n=r,t=th(),t!==e?(u=yE(),u===e&&(u=r,i.substr(r,2)===Po?(o=Po,r+=2):(o=e,A===0&&C(ki)),o!==e?(a=pr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),U=n,n=Od(t,u)):(r=n,n=e),n}function Rl(){var n;return n=xE(),n===e&&(n=Sl(),n===e&&(n=Ll())),n}function xE(){var n;return n=Fl(),n===e&&(n=Gl(),n===e&&(n=Xs())),n}function Sl(){var n;return n=LE(),n===e&&(n=SE(),n===e&&(n=RE())),n}function Ll(){var n;return n=UE(),n===e&&(n=OE(),n===e&&(n=wE())),n}function wl(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Bi?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Uu)),t!==e&&(U=n,t=Ud()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===Jf?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Up)),t!==e&&(U=n,t=Gd()),n=t),n}function th(){var n;return n=BE(),n===e&&(n=DE(),n===e&&(n=GE(),n===e&&(n=FE()))),n}function pr(){var n,t;return n=r,t=Ol(),t!==e&&(U=n,t=Fd(t)),n=t,n===e&&(n=r,t=CE(),t!==e&&(U=n,t=Bd(t)),n=t),n}function CE(){var n,t;return n=r,t=IE(),t!==e&&(U=n,t=Dd(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(U=n,t=Vd(t)),n=t),n}function AE(){var n,t;return n=r,t=NE(),t!==e&&(U=n,t=Md(t)),n=t,n===e&&(n=r,t=ME(),t!==e&&(U=n,t=Wd()),n=t),n}function Ol(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Ue,r++):(t=e,A===0&&C(fs)),t!==e){for(u=[],ko.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ea));o!==e;)u.push(o),ko.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ea));i.charCodeAt(r)===62?(o=ni,r++):(o=e,A===0&&C(Jn)),o!==e?(U=n,n=Pd(u)):(r=n,n=e)}else r=n,n=e;return n}function Ul(){var n,t,u;return n=r,t=WE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=Xt,r++):(u=e,A===0&&C(yr)),u!==e?(U=n,n=Zd(t)):(r=n,n=e),n}function IE(){var n,t,u;return n=r,t=Ul(),t!==e?(u=PE(),u!==e?(U=n,n=kd(t,u)):(r=n,n=e)):(r=n,n=e),n}function NE(){var n,t,u,o,a,c,h;if(n=r,i.substr(r,2)===ln?(t=ln,r+=2):(t=e,A===0&&C(lr)),t!==e)if(u=ji(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We))),u!==e){for(o=[],a=Xr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e?(h=Xr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Xr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e?(h=Xr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));U=n,n=Qd()}else r=n,n=e;else r=n,n=e;return n}function bE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=ct,r++):(t=e,A===0&&C(Os)),t!==e?(u=nh(),u!==e?(U=n,n=_d(u)):(r=n,n=e)):(r=n,n=e),n}function TE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ns,r++):(t=e,A===0&&C(Ti)),t!==e?(u=nh(),u!==e?(U=n,n=Hd(u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u,o,a,c,h,E;if(n=r,i.charCodeAt(r)===64?(t=wa,r++):(t=e,A===0&&C(yi)),t!==e){if(u=[],Ua.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ra)),o!==e)for(;o!==e;)u.push(o),Ua.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ra));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Wr)),c!==e){if(h=[],ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(Qi)),E!==e)for(;E!==e;)h.push(E),ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(Qi));else h=e;h!==e?(c=[c,h],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Wr)),c!==e){if(h=[],ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(Qi)),E!==e)for(;E!==e;)h.push(E),ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C(Qi));else h=e;h!==e?(c=[c,h],a=c):(r=a,a=e)}else r=a,a=e;U=n,n=Yd(u,o)}else r=n,n=e}else r=n,n=e;return n}function Xs(){var n,t,u;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We));else t=e;return t!==e&&(U=n,t=Xd()),n=t,n}function Gl(){var n,t,u,o,a;for(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We));u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We));if(i.charCodeAt(r)===46?(u=Re,r++):(u=e,A===0&&C($e)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We));else o=e;o!==e?(U=n,n=$d()):(r=n,n=e)}else r=n,n=e;return n}function Fl(){var n,t,u,o,a;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=Re,r++):(u=e,A===0&&C($e)),u!==e){for(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We));a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We));a=Bl(),a!==e?(U=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=Re,r++):(t=e,A===0&&C($e)),t!==e){if(u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We));else u=e;u!==e?(o=Bl(),o!==e?(U=n,n=zd()):(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,A===0&&C(We)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We));else t=e;t!==e?(u=Bl(),u!==e?(U=n,n=jd()):(r=n,n=e)):(r=n,n=e)}}return n}function RE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,A===0&&C(vt)),t!==e?(u=Xs(),u!==e?(U=n,n=qd(u)):(r=n,n=e)):(r=n,n=e),n}function SE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,A===0&&C(vt)),t!==e?(u=Gl(),u!==e?(U=n,n=Kd(u)):(r=n,n=e)):(r=n,n=e),n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,A===0&&C(vt)),t!==e?(u=Fl(),u!==e?(U=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)===45?(t=tr,r++):(t=e,A===0&&C(Wr)),t!==e?(u=Xs(),u!==e?(U=n,n=rg(u)):(r=n,n=e)):(r=n,n=e),n}function OE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Wr)),t!==e?(u=Gl(),u!==e?(U=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)===45?(t=tr,r++):(t=e,A===0&&C(Wr)),t!==e?(u=Fl(),u!==e?(U=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function Bl(){var n,t,u,o,a;if(n=r,ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Gu)),t!==e){if(zf.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Gp)),u===e&&(u=null),o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function GE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Di,r++):(t=e,A===0&&C(ui)),t!==e){for(u=[],Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ws)),o===e&&(o=zt());o!==e;)u.push(o),Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ws)),o===e&&(o=zt());i.charCodeAt(r)===39?(o=Di,r++):(o=e,A===0&&C(ui)),o!==e?(U=n,n=sg(u)):(r=n,n=e)}else r=n,n=e;return n}function FE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=bs,r++):(t=e,A===0&&C(cs)),t!==e){for(u=[],_n.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(io)),o===e&&(o=zt());o!==e;)u.push(o),_n.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(io)),o===e&&(o=zt());i.charCodeAt(r)===34?(o=bs,r++):(o=e,A===0&&C(cs)),o!==e?(U=n,n=ng(u)):(r=n,n=e)}else r=n,n=e;return n}function BE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3)===Ts?(t=Ts,r+=3):(t=e,A===0&&C(Ri)),t!==e){for(u=[],o=r,i.substr(r,2)===Vi?(a=Vi,r+=2):(a=e,A===0&&C(ta)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,A===0&&C(ui))),a===e&&(a=null),Qo.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(ia)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Vi?(a=Vi,r+=2):(a=e,A===0&&C(ta)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,A===0&&C(ui))),a===e&&(a=null),Qo.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(ia)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);i.substr(r,3)===Ts?(o=Ts,r+=3):(o=e,A===0&&C(Ri)),o!==e?(U=n,n=og(u)):(r=n,n=e)}else r=n,n=e;return n}function DE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3)===ss?(t=ss,r+=3):(t=e,A===0&&C(za)),t!==e){for(u=[],o=r,i.substr(r,2)===ys?(a=ys,r+=2):(a=e,A===0&&C(In)),a===e&&(i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs))),a===e&&(a=null),Ci.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(so)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===ys?(a=ys,r+=2):(a=e,A===0&&C(In)),a===e&&(i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs))),a===e&&(a=null),Ci.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(so)),c===e&&(c=zt()),c!==e?(a=[a,c],o=a):(r=o,o=e);i.substr(r,3)===ss?(o=ss,r+=3):(o=e,A===0&&C(za)),o!==e?(U=n,n=ag(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=Zo,r++):(t=e,A===0&&C(sa)),t!==e?(Fa.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Fp)),u!==e?(U=n,n=lg()):(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,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.charCodeAt(r)===41?(o=M,r++):(o=e,A===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function p(){var n;return n=VE(),n===e&&(n=Dl(),n===e&&(n=Vl())),n}function Dl(){var n;return Mi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Fu)),n}function Vl(){var n;return _o.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Bp)),n}function Ro(){var n;return Ba.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Dp)),n}function ih(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=un,r++):(t=e,A===0&&C(hs)),t!==e){for(u=[],o=Ro();o!==e;)u.push(o),o=Ro();o=Vl(),o!==e?(U=n,n=ug()):(r=n,n=e)}else r=n,n=e;return n}function VE(){var n,t,u,o,a,c;for(n=r,t=Vl(),t===e&&(t=null),u=[],o=Dl();o!==e;)u.push(o),o=Dl();if(i.charCodeAt(r)===35?(o=un,r++):(o=e,A===0&&C(hs)),o!==e){for(a=[],c=Ro();c!==e;)a.push(c),c=Ro();U=n,n=fg()}else r=n,n=e;return n}function ME(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=Ui,r++):(t=e,A===0&&C(Us)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.charCodeAt(r)===93?(o=ti,r++):(o=e,A===0&&C(li)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function sh(){var n;return cn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Bu)),n===e&&(jf.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Vp)),n===e&&(qf.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Mp)),n===e&&(Kf.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Du)),n===e&&(ep.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Nn)),n===e&&(ou.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(ja)),n===e&&(au.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(na)),n===e&&(rp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Vu)),n===e&&(tp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(qa)),n===e&&(ip.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Mu)),n===e&&(sp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Wp)),n===e&&(lu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Wu)),n===e&&(np.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(xt)))))))))))))),n}function ji(){var n;return n=sh(),n===e&&(i.charCodeAt(r)===95?(n=fn,r++):(n=e,A===0&&C(bn))),n}function nh(){var n,t,u,o;if(n=r,t=ji(),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(We))),t!==e){for(u=[],o=ji(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We)),o===e&&(hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Tn)),o===e&&(os.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Rn))))));o!==e;)u.push(o),o=ji(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We)),o===e&&(hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Tn)),o===e&&(os.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Rn))))));U=n,n=pg()}else r=n,n=e;return n}function Xr(){var n;return n=ji(),n===e&&(i.charCodeAt(r)===45?(n=tr,r++):(n=e,A===0&&C(Wr)),n===e&&(He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(We)),n===e&&(hn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Tn)),n===e&&(os.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(yn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Rn))))))),n}function WE(){var n,t,u,o,a,c;if(n=r,t=sh(),t!==e){for(u=[],o=Xr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e?(c=Xr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Xr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e?(c=Xr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=cg()}else r=n,n=e;return n}function PE(){var n,t,u,o,a,c;if(n=r,t=ji(),t===e&&(i.charCodeAt(r)===58?(t=Xt,r++):(t=e,A===0&&C(yr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(We)),t===e&&(t=$s()))),t!==e){for(u=[],o=Xr(),o===e&&(i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(yr)),o===e&&(o=$s())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e?(c=Xr(),c===e&&(i.charCodeAt(r)===58?(c=Xt,r++):(c=e,A===0&&C(yr)),c===e&&(c=$s())),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Xr(),o===e&&(i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(yr)),o===e&&(o=$s())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Re,r++):(a=e,A===0&&C($e)),a!==e?(c=Xr(),c===e&&(i.charCodeAt(r)===58?(c=Xt,r++):(c=e,A===0&&C(yr)),c===e&&(c=$s())),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=hg()}else r=n,n=e;return n}function $s(){var n;return n=ZE(),n===e&&(n=kE()),n}function ZE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=pn,r++):(t=e,A===0&&C(ds)),t!==e?(u=oh(),u!==e?(o=oh(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function oh(){var n;return He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(We)),n===e&&(op.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(oa)),n===e&&(ap.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pu)))),n}function kE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Zo,r++):(t=e,A===0&&C(sa)),t!==e?(i.charCodeAt(r)===95?(u=fn,r++):(u=e,A===0&&C(bn)),u===e&&(i.charCodeAt(r)===126?(u=Oa,r++):(u=e,A===0&&C(Zu)),u===e&&(i.charCodeAt(r)===46?(u=Re,r++):(u=e,A===0&&C($e)),u===e&&(i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Wr)),u===e&&(i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(mn)),u===e&&(i.charCodeAt(r)===36?(u=Ns,r++):(u=e,A===0&&C(Ti)),u===e&&(i.charCodeAt(r)===38?(u=nu,r++):(u=e,A===0&&C(ku)),u===e&&(i.charCodeAt(r)===39?(u=Di,r++):(u=e,A===0&&C(ui)),u===e&&(i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u===e&&(i.charCodeAt(r)===41?(u=M,r++):(u=e,A===0&&C(ue)),u===e&&(i.charCodeAt(r)===42?(u=z,r++):(u=e,A===0&&C(Qr)),u===e&&(i.charCodeAt(r)===43?(u=Nr,r++):(u=e,A===0&&C(vt)),u===e&&(i.charCodeAt(r)===44?(u=Be,r++):(u=e,A===0&&C(Ze)),u===e&&(i.charCodeAt(r)===59?(u=ur,r++):(u=e,A===0&&C($t)),u===e&&(i.charCodeAt(r)===58?(u=Xt,r++):(u=e,A===0&&C(yr)),u===e&&(i.charCodeAt(r)===61?(u=Tr,r++):(u=e,A===0&&C(kt)),u===e&&(i.charCodeAt(r)===47?(u=rr,r++):(u=e,A===0&&C(Mr)),u===e&&(i.charCodeAt(r)===63?(u=ct,r++):(u=e,A===0&&C(Os)),u===e&&(i.charCodeAt(r)===35?(u=un,r++):(u=e,A===0&&C(hs)),u===e&&(i.charCodeAt(r)===64?(u=wa,r++):(u=e,A===0&&C(yi)),u===e&&(i.charCodeAt(r)===37?(u=pn,r++):(u=e,A===0&&C(ds)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let ah={};if(Co=w(),Co!==e&&r===i.length)return Co;throw Co!==e&&r<i.length&&C(dg()),Rc(pl,At<i.length?i.charAt(At):null,At<i.length?ks(At,At+1):ks(At,At))}function R1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function $l(i,v,e,N){var y=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(y,$l.prototype),y.expected=v,y.found=e,y.location=N,y.name="SyntaxError",y}R1($l,Error);function Bv(i,v,e){return e=e||" ",i.length>v?i:(v-=i.length,e+=e.repeat(v),i+e.slice(0,v))}$l.prototype.format=function(i){var v="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 y=this.location.start,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,G=this.location.source+":"+w.line+":"+w.column;if(e){var V=this.location.end,Z=Bv("",w.line.toString().length," "),H=e[y.line-1],_=y.line===V.line?V.column:H.length+1,W=_-y.column||1;v+=`
64
+ --> `+G+`
65
+ `+Z+` |
66
66
  `+w.line+" | "+H+`
67
- `+W+" | "+Fv("",R.column-1," ")+Fv("",P,"^")}else v+=`
68
- at `+O}return v};Yl.buildMessage=function(i,v){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var Z=H.parts.map(function(P){return Array.isArray(P)?w(P[0])+"-"+w(P[1]):w(P)});return"["+(H.inverted?"^":"")+Z.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(Z){return"\\x0"+N(Z)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Z){return"\\x"+N(Z)})}function w(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(Z){return"\\x0"+N(Z)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Z){return"\\x"+N(Z)})}function O(H){return e[H.type](H)}function V(H){var Z=H.map(O),P,J;if(Z.sort(),Z.length>0){for(P=1,J=1;P<Z.length;P++)Z[P-1]!==Z[P]&&(Z[J]=Z[P],J++);Z.length=J}switch(Z.length){case 1:return Z[0];case 2:return Z[0]+" or "+Z[1];default:return Z.slice(0,-1).join(", ")+", or "+Z[Z.length-1]}}function W(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+V(i)+" but "+W(v)+" found."};function Bv(i,v){v=v!==void 0?v:{};var e={},N=v.grammarSource,R={DOCUMENT:Sc},w=Sc,O="base",V="prefix",W="select",H="distinct",Z="reduced",P="(",J="as",Q=")",ee="*",Y="construct",B="where",D="{",X="}",z="describe",te="ask",ie="from",ue="named",Ee="group",_e="by",we="having",We="order",Me="asc",Ke="desc",ve="limit",xr="offset",Cr="values",ur=";",Jr="load",Je="silent",yt="into",St="clear",cr="drop",Lt="create",or="add",at="to",ze="move",zr="copy",Ar="insert",Pr="data",hr="delete",Kt="with",Oe="using",pe="default",Er="graph",fr="all",ye=".",Or="optional",ei="service",Ie="bind",wt="UNDEF",lt="minus",At="union",es="filter",Be=",",ut="a",Se="|",rr="/",Pt="^",It="?",Ir="+",ri="!",Ui="[",ti="]",Nt="||",ii="&&",br="=",Ot="!=",Ue="<",ni=">",Wr="<=",ar=">=",dr="in",rs="not",tr="-",ts="str",ft="lang",kr="langmatches",Ei="datatype",Is="bound",Ks="iri",en="uri",Go="bnode",rn="rand",Ta="abs",Wt="ceil",Gi="floor",tn="round",Fo="concat",Wn="strlen",sn="ucase",oi="lcase",nn="encode_for_uri",Fi="contains",Bo="strbefore",Do="strstarts",on="strends",De="strafter",q="year",ge="month",Re="day",vr="hours",Kr="minutes",je="seconds",Ae="timezone",pt="tz",vi="now",kt="uuid",Qe="struuid",mi="md5",is="sha1",Ra="sha256",ce="sha384",$e="sha512",ya="coalesce",Sa="if",Vo="strlang",Mo="strdt",zl="sameterm",Xe="isuri",$f="isiri",jl="isblank",Po="isliteral",xi="isnumeric",ql="regex",Kl="substr",kn="replace",Zn="exists",eu="count",La="sum",ru="min",tu="max",iu="avg",su="sample",Xf="group_concat",Yf="separator",Wo="^^",Bi="true",Jf="false",Xt=":",an="_:",Ns="$",wa="@",Di="'",bs='"',Ts="'''",Vi="''",ss='"""',Rs='""',ko="\\",ln="#",un="_",fn="%",Oa="~",nu="&",Zo=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ua=/^[a-zA-Z]/,ns=/^[a-zA-Z0-9]/,ai=/^[eE]/,zf=/^[+\-]/,Ga=/^[^'\\\n\r]/,_n=/^[^"\\\n\r]/,_o=/^[^'\\]/,Ci=/^[^"\\]/,Fa=/^[tbnrf\\"']/,Mi=/^[ \t]/,Qo=/^[\r\n]/,Ba=/^[^\r\n]/,pn=/^[A-Z]/,jf=/^[a-z]/,qf=/^[\xC0-\xD6]/,Kf=/^[\xD8-\xF6]/,ep=/^[\xF8-\u02FF]/,ou=/^[\u0370-\u037D]/,au=/^[\u037F-\u1FFF]/,rp=/^[\u200C-\u200D]/,tp=/^[\u2070-\u218F]/,ip=/^[\u2C00-\u2FEF]/,sp=/^[\u3001-\uD7FF]/,lu=/^[\uF900-\uFDCF]/,np=/^[\uFDF0-\uFFFD]/,cn=/^[\xB7]/,os=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,op=/^[A-F]/,ap=/^[a-f]/,lp=M("BASE",!0),Qn=M("PREFIX",!0),et=M("SELECT",!0),ct=M("DISTINCT",!0),uu=M("REDUCED",!0),ae=M("(",!1),ys=M("AS",!0),le=M(")",!1),Zr=M("*",!1),Hn=M("CONSTRUCT",!0),as=M("WHERE",!0),Ut=M("{",!1),Gt=M("}",!1),fu=M("DESCRIBE",!0),pu=M("ASK",!0),up=M("FROM",!0),Pi=M("NAMED",!0),Wi=M("GROUP",!0),hn=M("BY",!0),Da=M("HAVING",!0),cu=M("ORDER",!0),Ii=M("ASC",!0),Ss=M("DESC",!0),Va=M("LIMIT",!0),fp=M("OFFSET",!0),Ho=M("VALUES",!0),Yt=M(";",!1),hu=M("LOAD",!0),ht=M("SILENT",!0),dn=M("INTO",!0),Ni=M("CLEAR",!0),du=M("DROP",!0),gu=M("CREATE",!0),pp=M("ADD",!0),$n=M("TO",!0),cp=M("MOVE",!0),Eu=M("COPY",!0),$o=M("INSERT",!0),Ls=M("DATA",!0),gn=M("DELETE",!0),vu=M("WITH",!0),Ma=M("USING",!0),En=M("DEFAULT",!0),ls=M("GRAPH",!0),Xo=M("ALL",!0),Ye=M(".",!1),mu=M("OPTIONAL",!0),Pa=M("SERVICE",!0),Wa=M("BIND",!0),xu=M("UNDEF",!1),Cu=M("MINUS",!0),Xn=M("UNION",!0),hp=M("FILTER",!0),ke=M(",",!1),ws=M("a",!1),Jt=M("|",!1),Dr=M("/",!1),us=M("^",!1),Os=M("?",!1),dt=M("+",!1),vn=M("!",!1),Us=M("[",!1),li=M("]",!1),ki=M("||",!1),gt=M("&&",!1),Zt=M("=",!1),bi=M("!=",!1),fs=M("<",!1),Yn=M(">",!1),Yo=M("<=",!1),Gs=M(">=",!1),ps=M("IN",!0),Fs=M("NOT",!0),Vr=M("-",!1),dp=M("STR",!0),ka=M("LANG",!0),Au=M("LANGMATCHES",!0),Za=M("DATATYPE",!0),_a=M("BOUND",!0),mn=M("IRI",!0),Jo=M("URI",!0),Iu=M("BNODE",!0),zo=M("RAND",!0),gp=M("ABS",!0),Ep=M("CEIL",!0),vp=M("FLOOR",!0),Qa=M("ROUND",!0),Ha=M("CONCAT",!0),xn=M("STRLEN",!0),Jn=M("UCASE",!0),mp=M("LCASE",!0),jo=M("ENCODE_FOR_URI",!0),Nu=M("CONTAINS",!0),zn=M("STRBEFORE",!0),bu=M("STRSTARTS",!0),Bs=M("STRENDS",!0),jn=M("STRAFTER",!0),Ds=M("YEAR",!0),qn=M("MONTH",!0),Cn=M("DAY",!0),Tu=M("HOURS",!0),Ru=M("MINUTES",!0),yu=M("SECONDS",!0),xp=M("TIMEZONE",!0),Vs=M("TZ",!0),Ms=M("NOW",!0),Cp=M("UUID",!0),Ap=M("STRUUID",!0),Ip=M("MD5",!0),Np=M("SHA1",!0),bp=M("SHA256",!0),Tp=M("SHA384",!0),_t=M("SHA512",!0),rt=M("COALESCE",!0),bt=M("IF",!0),tt=M("STRLANG",!0),Kn=M("STRDT",!0),Rp=M("sameTerm",!0),qo=M("isURI",!0),yp=M("isIRI",!0),Sp=M("isBLANK",!0),Lp=M("isLITERAL",!0),$a=M("isNUMERIC",!0),Su=M("REGEX",!0),Xa=M("SUBSTR",!0),wp=M("REPLACE",!0),eo=M("EXISTS",!0),Ya=M("COUNT",!0),Lu=M("SUM",!0),wu=M("MIN",!0),Ja=M("MAX",!0),Ou=M("AVG",!0),ro=M("SAMPLE",!0),Op=M("GROUP_CONCAT",!0),Ko=M("SEPARATOR",!0),Zi=M("^^",!1),Uu=M("true",!0),Up=M("false",!0),ea=Ge(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Tr=M(":",!1),lr=M("_:",!1),Pe=Ge([["0","9"]],!1,!1),Ti=M("$",!1),Ri=M("@",!1),ra=Ge([["a","z"],["A","Z"]],!1,!1),_i=Ge([["a","z"],["A","Z"],["0","9"]],!1,!1),Gu=Ge(["e","E"],!1,!1),Gp=Ge(["+","-"],!1,!1),ui=M("'",!1),Ps=Ge(["'","\\",`
69
- `,"\r"],!0,!1),cs=M('"',!1),to=Ge(['"',"\\",`
70
- `,"\r"],!0,!1),yi=M("'''",!1),ta=M("''",!1),ia=Ge(["'","\\"],!0,!1),za=M('"""',!1),An=M('""',!1),io=Ge(['"',"\\"],!0,!1),sa=M("\\",!1),Fp=Ge(["t","b","n","r","f","\\",'"',"'"],!1,!1),Fu=Ge([" "," "],!1,!1),Bp=Ge(["\r",`
67
+ `+Z+" | "+Bv("",y.column-1," ")+Bv("",W,"^")}else v+=`
68
+ at `+G}return v};$l.buildMessage=function(i,v){var e={literal:function(H){return'"'+y(H.text)+'"'},class:function(H){var _=H.parts.map(function(W){return Array.isArray(W)?w(W[0])+"-"+w(W[1]):w(W)});return"["+(H.inverted?"^":"")+_.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 y(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(_){return"\\x0"+N(_)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(_){return"\\x"+N(_)})}function w(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(_){return"\\x0"+N(_)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(_){return"\\x"+N(_)})}function G(H){return e[H.type](H)}function V(H){var _=H.map(G),W,J;if(_.sort(),_.length>0){for(W=1,J=1;W<_.length;W++)_[W-1]!==_[W]&&(_[J]=_[W],J++);_.length=J}switch(_.length){case 1:return _[0];case 2:return _[0]+" or "+_[1];default:return _.slice(0,-1).join(", ")+", or "+_[_.length-1]}}function Z(H){return H?'"'+y(H)+'"':"end of input"}return"Expected "+V(i)+" but "+Z(v)+" found."};function Dv(i,v){v=v!==void 0?v:{};var e={},N=v.grammarSource,y={DOCUMENT:Sc},w=Sc,G="base",V="prefix",Z="select",H="distinct",_="reduced",W="(",J="as",M=")",z="*",$="construct",B="where",D="{",Y="}",q="describe",te="ask",ie="from",le="named",Ee="group",ke="by",we="having",Pe="order",Me="asc",Ke="desc",ve="limit",xr="offset",Cr="values",ur=";",Jr="load",Je="silent",St="into",Lt="clear",cr="drop",wt="create",or="add",ut="to",ze="move",zr="copy",Ar="insert",Zr="data",hr="delete",Kt="with",Oe="using",pe="default",Er="graph",fr="all",Re=".",Ur="optional",ei="service",Ie="bind",Ot="UNDEF",ft="minus",Nt="union",es="filter",Be=",",pt="a",Se="|",rr="/",at="^",ct="?",Nr="+",ri="!",Ui="[",ti="]",bt="||",ii="&&",Tr="=",Ut="!=",Ue="<",ni=">",kr="<=",ar=">=",dr="in",rs="not",tr="-",ts="str",ht="lang",Vr="langmatches",Ei="datatype",Is="bound",en="iri",rn="uri",Go="bnode",tn="rand",Ta="abs",Pt="ceil",Gi="floor",sn="round",Fo="concat",Zn="strlen",nn="ucase",oi="lcase",on="encode_for_uri",Fi="contains",Bo="strbefore",Do="strstarts",an="strends",De="strafter",K="year",ge="month",ye="day",vr="hours",et="minutes",je="seconds",Ae="timezone",dt="tz",vi="now",Zt="uuid",_e="struuid",mi="md5",is="sha1",ya="sha256",ce="sha384",Ye="sha512",Ra="coalesce",Sa="if",Vo="strlang",Mo="strdt",zl="sameterm",Xe="isuri",Yf="isiri",jl="isblank",Wo="isliteral",xi="isnumeric",ql="regex",Kl="substr",kn="replace",Qn="exists",eu="count",La="sum",ru="min",tu="max",iu="avg",su="sample",Xf="group_concat",$f="separator",Po="^^",Bi="true",Jf="false",Xt=":",ln="_:",Ns="$",wa="@",Di="'",bs='"',Ts="'''",Vi="''",ss='"""',ys='""',Zo="\\",un="#",fn="_",pn="%",Oa="~",nu="&",ko=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ua=/^[a-zA-Z]/,ns=/^[a-zA-Z0-9]/,ai=/^[eE]/,zf=/^[+\-]/,Ga=/^[^'\\\n\r]/,_n=/^[^"\\\n\r]/,Qo=/^[^'\\]/,Ci=/^[^"\\]/,Fa=/^[tbnrf\\"']/,Mi=/^[ \t]/,_o=/^[\r\n]/,Ba=/^[^\r\n]/,cn=/^[A-Z]/,jf=/^[a-z]/,qf=/^[\xC0-\xD6]/,Kf=/^[\xD8-\xF6]/,ep=/^[\xF8-\u02FF]/,ou=/^[\u0370-\u037D]/,au=/^[\u037F-\u1FFF]/,rp=/^[\u200C-\u200D]/,tp=/^[\u2070-\u218F]/,ip=/^[\u2C00-\u2FEF]/,sp=/^[\u3001-\uD7FF]/,lu=/^[\uF900-\uFDCF]/,np=/^[\uFDF0-\uFFFD]/,hn=/^[\xB7]/,os=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,op=/^[A-F]/,ap=/^[a-f]/,lp=P("BASE",!0),Hn=P("PREFIX",!0),rt=P("SELECT",!0),gt=P("DISTINCT",!0),uu=P("REDUCED",!0),ae=P("(",!1),Rs=P("AS",!0),ue=P(")",!1),Qr=P("*",!1),Yn=P("CONSTRUCT",!0),as=P("WHERE",!0),Gt=P("{",!1),Ft=P("}",!1),fu=P("DESCRIBE",!0),pu=P("ASK",!0),up=P("FROM",!0),Wi=P("NAMED",!0),Pi=P("GROUP",!0),dn=P("BY",!0),Da=P("HAVING",!0),cu=P("ORDER",!0),Ii=P("ASC",!0),Ss=P("DESC",!0),Va=P("LIMIT",!0),fp=P("OFFSET",!0),Ho=P("VALUES",!0),$t=P(";",!1),hu=P("LOAD",!0),Et=P("SILENT",!0),gn=P("INTO",!0),Ni=P("CLEAR",!0),du=P("DROP",!0),gu=P("CREATE",!0),pp=P("ADD",!0),Xn=P("TO",!0),cp=P("MOVE",!0),Eu=P("COPY",!0),Yo=P("INSERT",!0),Ls=P("DATA",!0),En=P("DELETE",!0),vu=P("WITH",!0),Ma=P("USING",!0),vn=P("DEFAULT",!0),ls=P("GRAPH",!0),Xo=P("ALL",!0),$e=P(".",!1),mu=P("OPTIONAL",!0),Wa=P("SERVICE",!0),Pa=P("BIND",!0),xu=P("UNDEF",!1),Cu=P("MINUS",!0),$n=P("UNION",!0),hp=P("FILTER",!0),Ze=P(",",!1),ws=P("a",!1),Jt=P("|",!1),Mr=P("/",!1),us=P("^",!1),Os=P("?",!1),vt=P("+",!1),mn=P("!",!1),Us=P("[",!1),li=P("]",!1),Zi=P("||",!1),mt=P("&&",!1),kt=P("=",!1),bi=P("!=",!1),fs=P("<",!1),Jn=P(">",!1),$o=P("<=",!1),Gs=P(">=",!1),ps=P("IN",!0),Fs=P("NOT",!0),Wr=P("-",!1),dp=P("STR",!0),Za=P("LANG",!0),Au=P("LANGMATCHES",!0),ka=P("DATATYPE",!0),Qa=P("BOUND",!0),xn=P("IRI",!0),Jo=P("URI",!0),Iu=P("BNODE",!0),zo=P("RAND",!0),gp=P("ABS",!0),Ep=P("CEIL",!0),vp=P("FLOOR",!0),_a=P("ROUND",!0),Ha=P("CONCAT",!0),Cn=P("STRLEN",!0),zn=P("UCASE",!0),mp=P("LCASE",!0),jo=P("ENCODE_FOR_URI",!0),Nu=P("CONTAINS",!0),jn=P("STRBEFORE",!0),bu=P("STRSTARTS",!0),Bs=P("STRENDS",!0),qn=P("STRAFTER",!0),Ds=P("YEAR",!0),Kn=P("MONTH",!0),An=P("DAY",!0),Tu=P("HOURS",!0),yu=P("MINUTES",!0),Ru=P("SECONDS",!0),xp=P("TIMEZONE",!0),Vs=P("TZ",!0),Ms=P("NOW",!0),Cp=P("UUID",!0),Ap=P("STRUUID",!0),Ip=P("MD5",!0),Np=P("SHA1",!0),bp=P("SHA256",!0),Tp=P("SHA384",!0),Qt=P("SHA512",!0),tt=P("COALESCE",!0),Tt=P("IF",!0),it=P("STRLANG",!0),eo=P("STRDT",!0),yp=P("sameTerm",!0),qo=P("isURI",!0),Rp=P("isIRI",!0),Sp=P("isBLANK",!0),Lp=P("isLITERAL",!0),Ya=P("isNUMERIC",!0),Su=P("REGEX",!0),Xa=P("SUBSTR",!0),wp=P("REPLACE",!0),ro=P("EXISTS",!0),$a=P("COUNT",!0),Lu=P("SUM",!0),wu=P("MIN",!0),Ja=P("MAX",!0),Ou=P("AVG",!0),to=P("SAMPLE",!0),Op=P("GROUP_CONCAT",!0),Ko=P("SEPARATOR",!0),ki=P("^^",!1),Uu=P("true",!0),Up=P("false",!0),ea=Ge(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),yr=P(":",!1),lr=P("_:",!1),We=Ge([["0","9"]],!1,!1),Ti=P("$",!1),yi=P("@",!1),ra=Ge([["a","z"],["A","Z"]],!1,!1),Qi=Ge([["a","z"],["A","Z"],["0","9"]],!1,!1),Gu=Ge(["e","E"],!1,!1),Gp=Ge(["+","-"],!1,!1),ui=P("'",!1),Ws=Ge(["'","\\",`
69
+ `,"\r"],!0,!1),cs=P('"',!1),io=Ge(['"',"\\",`
70
+ `,"\r"],!0,!1),Ri=P("'''",!1),ta=P("''",!1),ia=Ge(["'","\\"],!0,!1),za=P('"""',!1),In=P('""',!1),so=Ge(['"',"\\"],!0,!1),sa=P("\\",!1),Fp=Ge(["t","b","n","r","f","\\",'"',"'"],!1,!1),Fu=Ge([" "," "],!1,!1),Bp=Ge(["\r",`
71
71
  `],!1,!1),Dp=Ge(["\r",`
72
- `],!0,!1),hs=M("#",!1),Bu=Ge([["A","Z"]],!1,!1),Vp=Ge([["a","z"]],!1,!1),Mp=Ge([["\xC0","\xD6"]],!1,!1),Du=Ge([["\xD8","\xF6"]],!1,!1),In=Ge([["\xF8","\u02FF"]],!1,!1),ja=Ge([["\u0370","\u037D"]],!1,!1),na=Ge([["\u037F","\u1FFF"]],!1,!1),Vu=Ge([["\u200C","\u200D"]],!1,!1),qa=Ge([["\u2070","\u218F"]],!1,!1),Mu=Ge([["\u2C00","\u2FEF"]],!1,!1),Pp=Ge([["\u3001","\uD7FF"]],!1,!1),Pu=Ge([["\uF900","\uFDCF"]],!1,!1),Et=Ge([["\uFDF0","\uFFFD"]],!1,!1),Nn=M("_",!1),bn=Ge(["\xB7"],!1,!1),Tn=Ge([["\u0300","\u036F"]],!1,!1),Rn=Ge([["\u203F","\u2040"]],!1,!1),ds=M("%",!1),oa=Ge([["A","F"]],!1,!1),Wu=Ge([["a","f"]],!1,!1),ku=M("~",!1),Zu=M("&",!1),yn=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(ah).map(([c,h])=>({pos:parseInt(c),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},aa=function(t){if(t.length)return{type:"Prologue",decl:t}},Qu=function(t){return{type:"BaseDecl",iriref:t}},so=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Wp=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},Sn=function(t,u,o,a){let c={type:"SubSelect",selectClause:t,whereClause:u,...o,location:Te()};return a&&(c.values=a),c},Hu=function(t,u){let o;u==="*"?o=["*"]:o=u.map(c=>c.length===2?c[1]:{expression:c[3],as:c[7]});let a={var:o};if(t){let c=t.toUpperCase();c==="DISTINCT"?a.distinct=!0:c==="REDUCED"&&(a.reduced=!0)}return a.location=Te(),a},$u=function(t,u,o,a){let c={type:"ConstructQuery"};return u.length&&(c.from=u),c={...c,template:t,where:o,...a,location:Te()},c},Xu=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:Te()},a},no=function(t,u,o,a){let c={type:"DescribeQuery"};return u.length&&(c.from=u),c.describe=t,o&&(c.where=o),c={...c,...a,location:Te()},c},oo=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:Te()},a},ao=function(t){return t},lo=function(t){return{graph:t,location:Te()}},Yu=function(t){return{namedGraph:t,location:Te()}},kp=function(t){return t.graphPattern||t},Ju=function(t,u,o,a){let c={};return t&&(c.group=t),u&&(c.having=u),o&&(c.orderBy=o),a&&(c.limitOffset=a),c},gs=function(t){return t},Ln=function(t){return t},uo=function(t){return t},Zp=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:Te()}:{bracketted:!0,...t}},zu=function(t){return t},_p=function(t){return t},Qp=function(t){return t},Hp=function(t){return t},Ft=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},ju=function(t){return t},$p=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Xp=function(t){return{limit:parseInt(t.literal)}},Yp=function(t){return{offset:parseInt(t.literal)}},qu=function(t){return t?t[1]:null},Ku=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},ef=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},Jp=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},zp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},jp=function(t,u){return{type:"create",silent:t,destinyGraph:u}},Es=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},fo=function(t,u,o){return{type:"move",silent:t,graphs:[u,o]}},la=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},po=function(t){return{type:"insertdata",insert:t}},Qi=function(t){return{type:"deletedata",delete:t}},qp=function(t){return{type:"deletewhere",delete:t}},Kp=function(t,u,o,a){let c={type:"modify"};return t&&(c.with=t[2]),u.length===3?(c.delete=u[0],u[2]&&(c.insert=u[2])):c.insert=u,o.length&&(c.using=o),c.where=a.graphPattern,c},wn=function(t){return t},rf=function(t){return t},tf=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},sf=function(){return"default"},ua=function(t){return t},On=function(t){return t},Ka=function(t){return t},el=function(){return"default"},rl=function(){return"named"},ec=function(){return"all"},co=function(t){return t},nf=function(t){return t},rc=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},of=function(t,u){return{graph:t,...u}},fa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},tc=function(t){return t},ic=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()}},ho=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 c=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(h=>{n(t.properties[a].objects[c],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()}},af=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:Te()}},lf=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},sc=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=Te(),a},tl=function(t,u){return{type:"Bind",bind:t,as:u,location:Te()}},uf=function(t){return t},nc=function(t,u){return{oneVar:t,data:u,location:Te()}},ff=function(t,u){return{variables:t,data:u,location:Te()}},pf=function(t){return t},oc=function(t){return t},il=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:Te()}},go=function(t,u){return u.length?{union:[t,...u],location:Te()}:t},Eo=function(t){return{type:"Filter",filter:t,location:Te()}},ac=function(t,u){return{functionRef:t,args:u.list,location:Te()}},cf=function(){return{list:[]}},lc=function(t,u,o){return{distinct:!!t,list:[u,...o]}},uc=function(){return[]},fc=function(t,u){return[t,...u]},pc=function(t){return t},hf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},cc=function(t,u){return{subject:t,properties:u}},hc=function(t,u){return{subject:t,properties:u}},df=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(c=>{c[3]&&a.push({predicate:c[3][0],objects:c[3][2]})}),a},sl=function(){return{a:!0,location:Te()}},gf=function(t,u){return[t,...u]},dc=function(t,u){return{subject:t,properties:u}},Ef=function(t,u){return{subject:t,properties:u}},Un=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(c=>{if(c[3]){let h=a.length-1,E=a[h].objects.length-1;n(a[h].predicate,c[3][0])?c[3][2].forEach(x=>{n(a[h].objects[E],x)||a[h].objects.push(x)}):a.push({predicate:c[3][0],objects:c[3][2]})}}),a},vf=function(t,u){return[t,...u]},pa=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},gc=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},Ec=function(t,u){return u&&(t.modifier=u),t},vc=function(t){return t.inverse=!0,t},Rr=function(){return{a:!0,location:Te()}},mc=function(t){return{bracketted:!0,...t}},nl=function(t){return{collection:t,location:Te()}},vo=function(t){return{blankNodeProperties:t,location:Te()}},fi=function(t){return{collection:t,location:Te()}},ca=function(t){return{blankNodeProperties:t,location:Te()}},ol=function(t){return t},mf=function(t){return t},xf=function(t){return t},Cf=function(t){return t},al=function(t){return{...t,location:Te()}},Af=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},xc=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},ll=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),c=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),c=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:c}}else return t},If=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},Nf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Cc=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},Gn=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},Ac=function(t){return{expressionType:"atomic",value:t}},ha=function(t){return{expressionType:"atomic",value:t}},Ic=function(t){return{expressionType:"atomic",value:t}},Mr=function(t){return{expressionType:"atomic",value:t}},Nc=function(t){return{bracketted:!0,...t}},bc=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},Tc=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},da=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]}},m=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},I=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]}},L=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}},$=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},re=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},K=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]}},me=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]}},Ve=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},Fe=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},qe=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},mr=function(t){return{expressionType:"builtincall",builtincall:"minutes",args:[t]}},it=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},Sr=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},Qt=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Bt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},ot=function(t){return{expressionType:"builtincall",builtincall:"MD5",args:[t]}},jr=function(t){return{expressionType:"builtincall",builtincall:"SHA1",args:[t]}},Qr=function(t){return{expressionType:"builtincall",builtincall:"SHA256",args:[t]}},Ur=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Vt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Fn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},vs=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},vt=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},Si=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},st=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},ul=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Hi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},Ws=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},ks=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Tt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Bn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},fl=function(t,u,o,a){let c=[t,u,o];return a&&c.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:c}},Ad=function(t){return{exists:t.graphPattern||t}},Id=function(t){return{notexists:t.graphPattern||t}},Nd=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},bd=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},Td=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},Rd=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},yd=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},Sd=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Ld=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},wd=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Od=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=Te(),t},Ud=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Gd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Fd=function(t){return{type:"IRIref",iriref:t,location:Te()}},Bd=function(t){return t},Dd=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:Te()}},Vd=function(t){return{type:"PrefixedName",pn_prefix:t,location:Te()}},Md=function(t){return{blankNode:t,location:Te()}},Pd=function(){return{blankNode:"[]",location:Te()}},Wd=function(t){return t.join("")},kd=function(t){return t||""},Zd=function(t,u){return{pn_prefix:t,pn_local:u}},_d=function(){return Hr()},Qd=function(t){return{type:"Var",varType:"VAR1",varname:t}},Hd=function(t){return{type:"Var",varType:"VAR2",varname:t}},$d=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},Xd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Hr()}},Yd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Hr()}},Jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Hr()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Hr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Hr()}},qd=function(t){return t.literal="+"+t.literal,t},Kd=function(t){return t.literal="+"+t.literal,t},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{quote:"'",literal:t.join("")}},ng=function(t){return{quote:'"',literal:t.join("")}},og=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},ag=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},lg=function(){return Hr()},ug=function(){return Hr()},fg=function(){return ah[Te().start.offset]=Hr(),""},pg=function(){return Hr()},cg=function(){return Hr()},hg=function(){return Hr()},r=0,G=0,mo=[{line:1,column:1}],mt=0,pl=[],A=0,xo;if("startRule"in v){if(!(v.startRule in R))throw new Error(`Can't start parsing from rule "`+v.startRule+'".');w=R[v.startRule]}function Hr(){return i.substring(G,r)}function jA(){return G}function qA(){return{source:N,start:G,end:r}}function Te(){return Zs(G,r)}function KA(t,u){throw u=u!==void 0?u:Zs(G,r),yc([gg(t)],i.substring(G,r),u)}function eI(t,u){throw u=u!==void 0?u:Zs(G,r),Eg(t,u)}function M(t,u){return{type:"literal",text:t,ignoreCase:u}}function Ge(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function rI(){return{type:"any"}}function dg(){return{type:"end"}}function gg(t){return{type:"other",description:t}}function Rc(t){var u=mo[t],o;if(u)return u;for(o=t-1;!mo[o];)o--;for(u=mo[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return mo[t]=u,u}function Zs(t,u,o){var a=Rc(t),c=Rc(u),h={source:N,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:c.line,column:c.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<mt||(r>mt&&(mt=r,pl=[]),pl.push(t))}function Eg(t,u){return new Yl(t,null,null,u)}function yc(t,u,o){return new Yl(Yl.buildMessage(t,u),t,u,o)}function Sc(){var t,u,o,a,c,h;for(t=r,u=[],o=ih();o!==e;)u.push(o),o=ih();for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=vg(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();G=t,t=yn(u,a)}else r=t,t=e;return t}function vg(){var t;return t=mg(),t===e&&(t=Pc()),t}function mg(){var t,u,o,a,c;for(t=r,u=Lc(),o=[],a=p();a!==e;)o.push(a),a=p();return a=xg(),a===e&&(a=Ag(),a===e&&(a=Ig(),a===e&&(a=Ng()))),a!==e?(c=Mc(),G=t,t=_u(u,a,c)):(r=t,t=e),t}function Lc(){var t,u,o;for(t=r,u=[],o=wc(),o===e&&(o=Oc());o!==e;)u.push(o),o=wc(),o===e&&(o=Oc());return G=t,u=aa(u),t=u,t}function wc(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===O?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(lp)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Ol(),c!==e?(G=t,t=Qu(c)):(r=t,t=e)}else r=t,t=e;return t}function Oc(){var t,u,o,a,c,h,E;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===V?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Qn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=Ul(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ol(),E!==e?(G=t,t=so(c,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function xg(){var t,u,o,a,c,h,E,x;if(t=r,u=Uc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=xt();c!==e;)a.push(c),c=xt();for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=_s(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=$i(),G=t,t=Wp(u,a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Cg(){var t,u,o,a,c,h,E;if(t=r,u=Uc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=_s(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=$i(),E=Mc(),G=t,t=Sn(u,a,h,E)}else r=t,t=e}else r=t,t=e;return t}function Uc(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le,er;if(t=r,i.substr(r,6).toLowerCase()===W?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(et)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,A===0&&C(ct)),a===e&&(i.substr(r,7).toLowerCase()===Z?(a=i.substr(r,7),r+=7):(a=e,A===0&&C(uu))),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(T=sr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===40?(T=P,r++):(T=e,A===0&&C(ae)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=se(),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();if(i.substr(r,2).toLowerCase()===J?(ne=i.substr(r,2),r+=2):(ne=e,A===0&&C(ys)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=sr(),Ne!==e){for(Le=[],er=p();er!==e;)Le.push(er),er=p();i.charCodeAt(r)===41?(er=Q,r++):(er=e,A===0&&C(le)),er!==e?(x=[x,T,S,F,_,ne,de,Ne,Le,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=p();T!==e;)x.push(T),T=p();if(T=sr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===40?(T=P,r++):(T=e,A===0&&C(ae)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=se(),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();if(i.substr(r,2).toLowerCase()===J?(ne=i.substr(r,2),r+=2):(ne=e,A===0&&C(ys)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=sr(),Ne!==e){for(Le=[],er=p();er!==e;)Le.push(er),er=p();i.charCodeAt(r)===41?(er=Q,r++):(er=e,A===0&&C(le)),er!==e?(x=[x,T,S,F,_,ne,de,Ne,Le,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=ee,r++):(h=e,A===0&&C(Zr))),h!==e?(G=t,t=Hu(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Ag(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de;if(t=r,i.substr(r,9).toLowerCase()===Y?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Hn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=eE(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=xt();E!==e;)h.push(E),E=xt();for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=_s(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=$i(),G=t,t=$u(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,A===0&&C(Hn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=xt();c!==e;)a.push(c),c=xt();for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(as)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===123?(x=D,r++):(x=e,A===0&&C(Ut)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();for(S=Yi(),S===e&&(S=null),F=[],_=p();_!==e;)F.push(_),_=p();if(i.charCodeAt(r)===125?(_=X,r++):(_=e,A===0&&C(Gt)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=$i(),G=t,t=Xu(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 Ig(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,8).toLowerCase()===z?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(fu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=zi(),c!==e)for(;c!==e;)a.push(c),c=zi();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=ee,r++):(a=e,A===0&&C(Zr))),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=xt();E!==e;)h.push(E),E=xt();for(E=[],x=p();x!==e;)E.push(x),x=p();for(x=_s(),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=$i(),G=t,t=no(a,h,x,S)}else r=t,t=e}else r=t,t=e;return t}function Ng(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,3).toLowerCase()===te?(o=i.substr(r,3),r+=3):(o=e,A===0&&C(pu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=xt();h!==e;)c.push(h),h=xt();for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=_s(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=$i(),G=t,t=oo(c,E,T)}else r=t,t=e}else r=t,t=e;return t}function xt(){var t,u,o,a,c,h;if(t=r,i.substr(r,4).toLowerCase()===ie?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(up)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=bg(),a===e&&(a=Tg()),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();G=t,t=ao(a)}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=pr(),o!==e?(G=t,t=lo(o)):(r=t,t=e),t}function Tg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ue?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Pi)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(G=t,t=Yu(a)):(r=t,t=e)}else r=t,t=e;return t}function _s(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===B?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(as)),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();return a=nt(),a!==e?(G=t,t=kp(a)):(r=t,t=e),t}function $i(){var t,u,o,a,c;return t=r,u=Rg(),u===e&&(u=null),o=yg(),o===e&&(o=null),a=Sg(),a===e&&(a=null),c=Lg(),c===e&&(c=null),G=t,t=Ju(u,o,a,c),t}function Rg(){var t,u,o,a,c,h,E;if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Wi)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,2).toLowerCase()===_e?(a=i.substr(r,2),r+=2):(a=e,A===0&&C(hn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=Gc(),E!==e)for(;E!==e;)h.push(E),E=Gc();else h=e;h!==e?(G=t,t=gs(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Gc(){var t,u,o,a,c,h,E,x,T,S,F;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=Tl(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=t,t=Ln(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=Jc(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=t,t=uo(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=r,i.substr(r,2).toLowerCase()===J?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ys)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=sr(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=t,t=Zp(c,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=sr(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=t,t=zu(o)}else r=t,t=e}}}return t}function yg(){var t,u,o,a,c;if(t=r,i.substr(r,6).toLowerCase()===we?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Da)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Fc(),c!==e)for(;c!==e;)a.push(c),c=Fc();else a=e;a!==e?(G=t,t=_p(a)):(r=t,t=e)}else r=t,t=e;return t}function Fc(){var t,u,o,a;if(t=r,u=dl(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=t,t=Qp(u)}else r=t,t=e;return t}function Sg(){var t,u,o,a,c,h,E,x;if(t=r,i.substr(r,5).toLowerCase()===We?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(cu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,2).toLowerCase()===_e?(a=i.substr(r,2),r+=2):(a=e,A===0&&C(hn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=Bc(),E!==e)for(;E!==e;)h.push(E),E=Bc();else h=e;if(h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();G=t,t=Hp(h)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Bc(){var t,u,o,a,c,h;if(t=r,i.substr(r,3).toLowerCase()===Me?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ii)),u===e&&(i.substr(r,4).toLowerCase()===Ke?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Ss))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=bl(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();G=t,t=Ft(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=dl(),u===e&&(u=sr()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=t,t=ju(u)}else r=t,t=e;return t}function Lg(){var t,u,o,a;return t=r,u=r,o=Dc(),o!==e?(a=Vc(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=Vc(),o!==e?(a=Dc(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(G=t,u=$p(u)),t=u,t}function Dc(){var t,u,o,a,c,h;if(t=r,i.substr(r,5).toLowerCase()===ve?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Va)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Xs(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();G=t,t=Xp(a)}else r=t,t=e}else r=t,t=e;return t}function Vc(){var t,u,o,a,c,h;if(t=r,i.substr(r,6).toLowerCase()===xr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(fp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Xs(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();G=t,t=Yp(a)}else r=t,t=e}else r=t,t=e;return t}function Mc(){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,A===0&&C(Ho)),o!==e?(a=Xc(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),G=t,u=qu(u),t=u,t}function Pc(){var t,u,o,a,c,h,E,x,T,S;for(t=r,u=Lc(),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(c=wg(),c!==e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Pc(),E=[E,x,T,S],h=E}else r=h,h=e;h===e&&(h=null),a=[a,c,h],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();return G=t,t=Ku(u,o),t}function wg(){var t;return t=Og(),t===e&&(t=Ug(),t===e&&(t=Gg(),t===e&&(t=Bg(),t===e&&(t=Dg(),t===e&&(t=Vg(),t===e&&(t=Fg(),t===e&&(t=Mg(),t===e&&(t=Pg(),t===e&&(t=Wg(),t===e&&(t=kg())))))))))),t}function Og(){var t,u,o,a,c,h,E,x,T,S,F;if(t=r,i.substr(r,4).toLowerCase()===Jr?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(hu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=pr(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=r,i.substr(r,4).toLowerCase()===yt?(T=i.substr(r,4),r+=4):(T=e,A===0&&C(dn)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=cl(),F!==e?(T=[T,S,F],x=T):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),G=t,t=ef(a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Ug(){var t,u,o,a,c,h;if(t=r,i.substr(r,5).toLowerCase()===St?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ni)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=Zc(),h!==e?(G=t,t=Jp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Gg(){var t,u,o,a,c,h;if(t=r,i.substr(r,4).toLowerCase()===cr?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(du)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=Zc(),h!==e?(G=t,t=zp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Fg(){var t,u,o,a,c,h;if(t=r,i.substr(r,6).toLowerCase()===Lt?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=cl(),h!==e?(G=t,t=jp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Bg(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,3).toLowerCase()===or?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(pp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=Xi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===at?(x=i.substr(r,2),r+=2):(x=e,A===0&&C($n)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Xi(),S!==e?(G=t,t=Es(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,c,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===ze?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(cp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=Xi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===at?(x=i.substr(r,2),r+=2):(x=e,A===0&&C($n)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Xi(),S!==e?(G=t,t=fo(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 Vg(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===zr?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Eu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=Xi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===at?(x=i.substr(r,2),r+=2):(x=e,A===0&&C($n)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Xi(),S!==e?(G=t,t=la(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,c,h;if(t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,A===0&&C($o)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,4).toLowerCase()===Pr?(a=i.substr(r,4),r+=4):(a=e,A===0&&C(Ls)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=_c(),h!==e?(G=t,t=po(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Pg(){var t,u,o,a,c;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.substr(r,4).toLowerCase()===Pr?(a=i.substr(r,4),r+=4):(a=e,A===0&&C(Ls)),a!==e?(c=_c(),c!==e?(G=t,t=Qi(c)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function Wg(){var t,u,o,a,c,h;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,5).toLowerCase()===B?(a=i.substr(r,5),r+=5):(a=e,A===0&&C(as)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=hl(),h!==e?(G=t,t=qp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function kg(){var t,u,o,a,c,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,A===0&&C(vu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();o=[o,a,c,h],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=Zg(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Wc(),h===e&&(h=null),a=[a,c,h],o=a}else r=o,o=e;if(o===e&&(o=Wc()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=kc();h!==e;)c.push(h),h=kc();for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,5).toLowerCase()===B?(E=i.substr(r,5),r+=5):(E=e,A===0&&C(as)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=nt(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();G=t,t=Kp(u,o,c,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gn)),u!==e?(o=hl(),o!==e?(G=t,t=wn(o)):(r=t,t=e)):(r=t,t=e),t}function Wc(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,A===0&&C($o)),u!==e?(o=hl(),o!==e?(G=t,t=rf(o)):(r=t,t=e)):(r=t,t=e),t}function kc(){var t,u,o,a,c,h,E,x;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Oe?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(Ma)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c===e)if(c=r,i.substr(r,5).toLowerCase()===ue?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Pi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=pr(),x!==e?(h=[h,E,x],c=h):(r=c,c=e)}else r=c,c=e;c!==e?(G=t,t=tf(c)):(r=t,t=e)}else r=t,t=e;return t}function Xi(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(En)),u!==e&&(G=t,u=sf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(G=t,t=ua(a)):(r=t,t=e)}return t}function cl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(G=t,t=On(a)):(r=t,t=e)}else r=t,t=e;return t}function Zc(){var t,u;return t=r,u=cl(),u!==e&&(G=t,u=Ka(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(En)),u!==e&&(G=t,u=el()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ue?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Pi)),u!==e&&(G=t,u=rl()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===fr?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Xo)),u!==e&&(G=t,u=ec()),t=u))),t}function hl(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===123?(o=D,r++):(o=e,A===0&&C(Ut)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=Qc(),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===125?(E=X,r++):(E=e,A===0&&C(Gt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();G=t,t=co(c)}else r=t,t=e}else r=t,t=e;return t}function _c(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===123?(o=D,r++):(o=e,A===0&&C(Ut)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=Qc(),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===125?(E=X,r++):(E=e,A===0&&C(Gt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();G=t,t=nf(c)}else r=t,t=e}else r=t,t=e;return t}function Qc(){var t,u,o,a,c,h,E;for(t=r,u=Yi(),u===e&&(u=null),o=[],a=r,c=Hc(),c!==e?(i.charCodeAt(r)===46?(h=ye,r++):(h=e,A===0&&C(Ye)),h===e&&(h=null),E=Yi(),E===e&&(E=null),c=[c,h,E],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,c=Hc(),c!==e?(i.charCodeAt(r)===46?(h=ye,r++):(h=e,A===0&&C(Ye)),h===e&&(h=null),E=Yi(),E===e&&(E=null),c=[c,h,E],a=c):(r=a,a=e);return G=t,t=rc(u,o),t}function Hc(){var t,u,o,a,c,h,E,x,T,S,F,_,ne;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(ls)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=zi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=D,r++):(E=e,A===0&&C(Ut)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=Yi(),T===e&&(T=null),S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===125?(F=X,r++):(F=e,A===0&&C(Gt)),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();G=t,t=of(c,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Yi(){var t,u,o,a,c,h,E;if(t=r,u=qc(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Yi(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),G=t,t=fa(u,o)}else r=t,t=e;return t}function nt(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Ut)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Cg(),a===e&&(a=_g()),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===125?(h=X,r++):(h=e,A===0&&C(Gt)),h!==e?(G=t,t=tc(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function _g(){var t,u,o,a,c,h,E,x,T,S;for(t=r,u=Co(),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=r,h=$c(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(i.charCodeAt(r)===46?(x=ye,r++):(x=e,A===0&&C(Ye)),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=Co(),S===e&&(S=null),h=[h,E,x,T,S],c=h}else r=c,c=e;for(;c!==e;)if(a.push(c),c=r,h=$c(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(i.charCodeAt(r)===46?(x=ye,r++):(x=e,A===0&&C(Ye)),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=Co(),S===e&&(S=null),h=[h,E,x,T,S],c=h}else r=c,c=e;return G=t,t=ic(u,a),t}function Co(){var t,u,o,a,c,h,E;if(t=r,u=tE(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Co(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),G=t,t=ho(u,o)}else r=t,t=e;return t}function $c(){var t;return t=qg(),t===e&&(t=Qg(),t===e&&(t=jg(),t===e&&(t=Hg(),t===e&&(t=$g(),t===e&&(t=Kg(),t===e&&(t=Xg(),t===e&&(t=Yg()))))))),t}function Qg(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,8).toLowerCase()===Or?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(mu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=nt(),c!==e?(G=t,t=af(c)):(r=t,t=e)}else r=t,t=e;return t}function Hg(){var t,u,o,a,c,h,E;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(ls)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=zi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=nt(),E!==e?(G=t,t=lf(c,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function $g(){var t,u,o,a,c,h,E,x;if(t=r,i.substr(r,7).toLowerCase()===ei?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Pa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ht)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=zi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=nt(),x!==e?(G=t,t=sc(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o,a,c,h,E,x,T,S,F,_,ne;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===Ie?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Wa)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===40?(c=P,r++):(c=e,A===0&&C(ae)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.substr(r,2).toLowerCase()===J?(T=i.substr(r,2),r+=2):(T=e,A===0&&C(ys)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=sr(),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();i.charCodeAt(r)===41?(ne=Q,r++):(ne=e,A===0&&C(le)),ne!==e?(G=t,t=tl(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 Yg(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===Cr?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Ho)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Xc(),c!==e?(G=t,t=uf(c)):(r=t,t=e)}else r=t,t=e;return t}function Xc(){var t;return t=Jg(),t===e&&(t=zg()),t}function Jg(){var t,u,o,a,c,h,E,x;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=sr(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===123?(c=D,r++):(c=e,A===0&&C(Ut)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(E=[],x=Ao();x!==e;)E.push(x),x=Ao();i.charCodeAt(r)===125?(x=X,r++):(x=e,A===0&&C(Gt)),x!==e?(G=t,t=nc(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,c,h,E,x,T,S,F;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=sr();h!==e;)c.push(h),h=sr();if(i.charCodeAt(r)===41?(h=Q,r++):(h=e,A===0&&C(le)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===123?(x=D,r++):(x=e,A===0&&C(Ut)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();for(S=[],F=Yc();F!==e;)S.push(F),F=Yc();i.charCodeAt(r)===125?(F=X,r++):(F=e,A===0&&C(Gt)),F!==e?(G=t,t=ff(c,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Yc(){var t,u,o,a,c,h,E;if(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=Ao();c!==e;)a.push(c),c=Ao();if(i.charCodeAt(r)===41?(c=Q,r++):(c=e,A===0&&C(le)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();G=t,t=pf(a)}else r=t,t=e}else r=t,t=e;return t}function Ao(){var t,u,o,a;if(t=r,u=pr(),u===e&&(u=Rl(),u===e&&(u=yl(),u===e&&(u=wl(),u===e&&(i.substr(r,5)===wt?(u=wt,r+=5):(u=e,A===0&&C(xu)))))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();G=t,t=oc(u)}else r=t,t=e;return t}function jg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===lt?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Cu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=nt(),a!==e?(G=t,t=il(a)):(r=t,t=e)}else r=t,t=e;return t}function qg(){var t,u,o,a,c,h,E,x;if(t=r,u=nt(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===At?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Xn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=nt(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===At?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Xn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=nt(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}G=t,t=go(u,o)}else r=t,t=e;return t}function Kg(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===es?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(hp)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=dl(),c!==e?(G=t,t=Eo(c)):(r=t,t=e)}else r=t,t=e;return t}function dl(){var t;return t=bl(),t===e&&(t=Tl(),t===e&&(t=Jc())),t}function Jc(){var t,u,o,a;if(t=r,u=pr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=zc(),a!==e?(G=t,t=ac(u,a)):(r=t,t=e)}else r=t,t=e;return t}function zc(){var t,u,o,a,c,h,E,x,T,S,F,_;if(t=r,u=jt(),u!==e&&(G=t,u=cf()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,A===0&&C(ct)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=[],T=r,i.charCodeAt(r)===44?(S=Be,r++):(S=e,A===0&&C(ke)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();_=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=Be,r++):(S=e,A===0&&C(ke)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();_=se(),_!==e?T=_:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e?(G=t,t=lc(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Ji(){var t,u,o,a,c,h,E,x,T,S,F,_;if(t=r,u=jt(),u!==e&&(G=t,u=uc()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=se(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=r,i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();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=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e?(G=t,t=fc(a,h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function eE(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Ut)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=jc(),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===125?(h=X,r++):(h=e,A===0&&C(Gt)),h!==e?(G=t,t=pc(a)):(r=t,t=e)}else r=t,t=e;return t}function jc(){var t,u,o,a,c,h,E;if(t=r,u=qc(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=jc(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),G=t,t=hf(u,o)}else r=t,t=e;return t}function qc(){var t,u,o,a,c;if(t=r,u=bo(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=gl(),a!==e?(G=t,t=cc(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=eh(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=rE(),G=t,t=hc(o,c)}else r=t,t=e}return t}function rE(){var t;return t=gl(),t===e&&(t=null),t}function gl(){var t,u,o,a,c,h,E,x,T,S,F,_,ne;if(t=r,u=El(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=vl(),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=El(),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();ne=vl(),ne!==e?(F=[F,_,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(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=El(),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();ne=vl(),ne!==e?(F=[F,_,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}G=t,t=df(u,a,c)}else r=t,t=e}else r=t,t=e;return t}function El(){var t,u;return t=zi(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ut,r++):(u=e,A===0&&C(ws)),u!==e&&(G=t,u=sl()),t=u),t}function vl(){var t,u,o,a,c,h,E,x;if(t=r,u=Qs(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(ke)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(ke)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}G=t,t=gf(u,o)}else r=t,t=e;return t}function tE(){var t,u,o,a,c;if(t=r,u=bo(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=ml(),a!==e?(G=t,t=dc(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=rh(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=iE(),G=t,t=Ef(o,c)}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,c,h,E,x,T,S,F,_,ne;if(t=r,u=Io(),u===e&&(u=sr()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=xl(),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=Io(),F===e&&(F=sr()),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();ne=xl(),ne!==e?(F=[F,_,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(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=Io(),F===e&&(F=sr()),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();ne=xl(),ne!==e?(F=[F,_,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}G=t,t=Un(u,a,c)}else r=t,t=e}else r=t,t=e;return t}function xl(){var t,u,o,a,c,h,E,x;if(t=r,u=Hs(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(ke)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Hs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(ke)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Hs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}G=t,t=vf(u,o)}else r=t,t=e;return t}function Io(){var t,u,o,a,c,h,E,x;if(t=r,u=Cl(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Cl(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Cl(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}G=t,t=pa(u,o)}else r=t,t=e;return t}function Cl(){var t,u,o,a,c,h,E,x;if(t=r,u=Al(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Dr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Al(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Dr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Al(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}G=t,t=gc(u,o)}else r=t,t=e;return t}function Kc(){var t,u,o;return t=r,u=nE(),u!==e?(o=sE(),o===e&&(o=null),G=t,t=Ec(u,o)):(r=t,t=e),t}function Al(){var t,u,o;return t=Kc(),t===e&&(t=r,i.charCodeAt(r)===94?(u=Pt,r++):(u=e,A===0&&C(us)),u!==e?(o=Kc(),o!==e?(G=t,t=vc(o)):(r=t,t=e)):(r=t,t=e)),t}function sE(){var t;return i.charCodeAt(r)===63?(t=It,r++):(t=e,A===0&&C(Os)),t===e&&(i.charCodeAt(r)===42?(t=ee,r++):(t=e,A===0&&C(Zr)),t===e&&(i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(dt)))),t}function nE(){var t,u,o,a;return t=pr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ut,r++):(u=e,A===0&&C(ws)),u!==e&&(G=t,u=Rr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(vn)),u!==e?(o=oE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e?(o=Io(),o!==e?(i.charCodeAt(r)===41?(a=Q,r++):(a=e,A===0&&C(le)),a!==e?(G=t,t=mc(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function oE(){var t,u,o,a,c,h,E,x;if(t=No(),t===e)if(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){if(o=r,a=No(),a!==e){for(c=[],h=r,i.charCodeAt(r)===124?(E=Se,r++):(E=e,A===0&&C(Jt)),E!==e?(x=No(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);h!==e;)c.push(h),h=r,i.charCodeAt(r)===124?(E=Se,r++):(E=e,A===0&&C(Jt)),E!==e?(x=No(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);a=[a,c],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=Q,r++):(a=e,A===0&&C(le)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function No(){var t,u,o;return t=pr(),t===e&&(i.charCodeAt(r)===97?(t=ut,r++):(t=e,A===0&&C(ws)),t===e&&(t=r,i.charCodeAt(r)===94?(u=Pt,r++):(u=e,A===0&&C(us)),u!==e?(o=pr(),o===e&&(i.charCodeAt(r)===97?(o=ut,r++):(o=e,A===0&&C(ws))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function eh(){var t,u;return t=r,u=uE(),u!==e&&(G=t,u=nl(u)),t=u,t===e&&(t=aE()),t}function aE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===91?(o=Ui,r++):(o=e,A===0&&C(Us)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=gl(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,A===0&&C(li)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();G=t,t=vo(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function rh(){var t,u;return t=r,u=fE(),u!==e&&(G=t,u=fi(u)),t=u,t===e&&(t=lE()),t}function lE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===91?(o=Ui,r++):(o=e,A===0&&C(Us)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=ml(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,A===0&&C(li)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();G=t,t=ca(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function uE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Qs(),h!==e)for(;h!==e;)c.push(h),h=Qs();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();G=t,t=ol(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function fE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Hs(),h!==e)for(;h!==e;)c.push(h),h=Hs();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===41?(E=Q,r++):(E=e,A===0&&C(le)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();G=t,t=mf(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Qs(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=bo(),o===e&&(o=eh()),o!==e?(G=t,t=xf(o)):(r=t,t=e),t}function Hs(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=bo(),o===e&&(o=rh()),o!==e?(G=t,t=Cf(o)):(r=t,t=e),t}function bo(){var t;return t=sr(),t===e&&(t=pE()),t}function zi(){var t;return t=sr(),t===e&&(t=pr()),t}function sr(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=bE(),o===e&&(o=TE()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();G=t,t=al(o)}else r=t,t=e;return t}function pE(){var t;return t=pr(),t===e&&(t=Rl(),t===e&&(t=yl(),t===e&&(t=wl(),t===e&&(t=AE(),t===e&&(t=jt()))))),t}function se(){var t,u,o,a,c,h,E,x;if(t=r,u=Il(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Nt?(h=Nt,r+=2):(h=e,A===0&&C(ki)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Il(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Nt?(h=Nt,r+=2):(h=e,A===0&&C(ki)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Il(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}G=t,t=Af(u,o)}else r=t,t=e;return t}function Il(){var t,u,o,a,c,h,E,x;if(t=r,u=Nl(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,A===0&&C(gt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Nl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,A===0&&C(gt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Nl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}G=t,t=xc(u,o)}else r=t,t=e;return t}function Nl(){var t,u,o,a,c,h,E,x,T,S;if(t=r,u=Gr(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===61?(h=br,r++):(h=e,A===0&&C(Zt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Ot?(h=Ot,r+=2):(h=e,A===0&&C(bi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===60?(h=Ue,r++):(h=e,A===0&&C(fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,A===0&&C(Yn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Wr?(h=Wr,r+=2):(h=e,A===0&&C(Yo)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,A===0&&C(Gs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,A===0&&C(ps)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ji(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,3).toLowerCase()===rs?(h=i.substr(r,3),r+=3):(h=e,A===0&&C(Fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ps)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Ji(),S!==e?(c=[c,h,E,x,T,S],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===61?(h=br,r++):(h=e,A===0&&C(Zt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Ot?(h=Ot,r+=2):(h=e,A===0&&C(bi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===60?(h=Ue,r++):(h=e,A===0&&C(fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,A===0&&C(Yn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Wr?(h=Wr,r+=2):(h=e,A===0&&C(Yo)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,A===0&&C(Gs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,A===0&&C(ps)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ji(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,3).toLowerCase()===rs?(h=i.substr(r,3),r+=3):(h=e,A===0&&C(Fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ps)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Ji(),S!==e?(c=[c,h,E,x,T,S],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}G=t,t=ll(u,o)}else r=t,t=e;return t}function Gr(){var t,u,o,a,c,h,E,x,T,S,F;if(t=r,u=$s(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===43?(h=Ir,r++):(h=e,A===0&&C(dt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=$s(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Vr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=$s(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,c=Sl(),c===e&&(c=Ll()),c!==e){for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(Zr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Dr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(Zr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Dr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}c=[c,h],a=c}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===43?(h=Ir,r++):(h=e,A===0&&C(dt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=$s(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Vr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=$s(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,c=Sl(),c===e&&(c=Ll()),c!==e){for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(Zr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Dr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(Zr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Dr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}c=[c,h],a=c}else r=a,a=e}}G=t,t=If(u,o)}else r=t,t=e;return t}function $s(){var t,u,o,a,c,h,E,x;if(t=r,u=Fr(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===42?(h=ee,r++):(h=e,A===0&&C(Zr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Dr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===42?(h=ee,r++):(h=e,A===0&&C(Zr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Dr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}}G=t,t=gr(u,o)}else r=t,t=e;return t}function Fr(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(vn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=To(),a!==e?(G=t,t=Nf(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(dt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=To(),a!==e?(G=t,t=Cc(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,A===0&&C(Vr)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=To(),a!==e?(G=t,t=Gn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=To())}}return t}function To(){var t,u;return t=bl(),t===e&&(t=Tl(),t===e&&(t=mE(),t===e&&(t=r,u=Rl(),u!==e&&(G=t,u=Ac(u)),t=u,t===e&&(t=r,u=yl(),u!==e&&(G=t,u=ha(u)),t=u,t===e&&(t=r,u=wl(),u!==e&&(G=t,u=Ic(u)),t=u,t===e&&(t=r,u=sr(),u!==e&&(G=t,u=Mr(u)),t=u)))))),t}function bl(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=se(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===41?(h=Q,r++):(h=e,A===0&&C(le)),h!==e?(G=t,t=Nc(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Tl(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le;if(t=vE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===ts?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(dp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=bc(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()===ft?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(ka)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Tc(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()===kr?(u=i.substr(r,11),r+=11):(u=e,A===0&&C(Au)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=t,t=da(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()===Ei?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(Za)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Is?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(_a)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=sr(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Ks?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(mn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===en?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Jo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Go?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Iu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=r,i.charCodeAt(r)===40?(c=P,r++):(c=e,A===0&&C(ae)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();i.charCodeAt(r)===41?(T=Q,r++):(T=e,A===0&&C(le)),T!==e?(c=[c,h,E,x,T],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=jt()),a!==e?(G=t,t=m(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===rn?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(zo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(G=t,t=I()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ta?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(gp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Wt?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Ep)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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,A===0&&C(vp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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,5).toLowerCase()===tn?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Qa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Fo?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Ha)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ji(),a!==e?(G=t,t=k(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=hE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===Wn?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(xn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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=dE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===sn?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Jn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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,A===0&&C(mp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=K(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()===nn?(u=i.substr(r,14),r+=14):(u=e,A===0&&C(jo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Fi?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(Nu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=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()===Bo?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(zn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=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,A===0&&C(bu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=t,t=me(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()===on?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Bs)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=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()===De?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(jn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=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()===q?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Ds)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===ge?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(qn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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,3).toLowerCase()===Re?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Cn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Fe(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()===vr?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Tu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=qe(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()===Kr?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Ru)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=mr(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()===je?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(yu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=it(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,A===0&&C(xp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Sr(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()===pt?(u=i.substr(r,2),r+=2):(u=e,A===0&&C(Vs)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Qt(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,A===0&&C(Ms)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(G=t,t=Bt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===kt?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Cp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(G=t,t=_r()):(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,A===0&&C(Ap)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(G=t,t=Dt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===mi?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ip)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=ot(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()===is?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Np)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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()===Ra?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(bp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Qr(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()===ce?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Tp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Ur(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()===$e?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(_t)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Vt(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()===ya?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(rt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ji(),a!==e?(G=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===Sa?(u=i.substr(r,2),r+=2):(u=e,A===0&&C(bt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(i.charCodeAt(r)===44?(_=Be,r++):(_=e,A===0&&C(ke)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=se(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();i.charCodeAt(r)===41?(Le=Q,r++):(Le=e,A===0&&C(le)),Le!==e?(G=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()===Vo?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(tt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=t,t=vt(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()===Mo?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Kn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=t,t=Si(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()===zl?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(Rp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();i.charCodeAt(r)===41?(_=Q,r++):(_=e,A===0&&C(le)),_!==e?(G=t,t=st(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()===Xe?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(qo)),u===e&&(i.substr(r,5).toLowerCase()===$f?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(yp))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=ul(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()===jl?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Sp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Hi(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,A===0&&C(Lp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=t,t=Ws(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()===xi?(u=i.substr(r,9),r+=9):(u=e,A===0&&C($a)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=Q,r++):(x=e,A===0&&C(le)),x!==e?(G=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=cE(),t===e&&(t=gE(),t===e&&(t=EE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function cE(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne;if(t=r,i.substr(r,5).toLowerCase()===ql?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Su)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(_=r,i.charCodeAt(r)===44?(ne=Be,r++):(ne=e,A===0&&C(ke)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();Ne=se(),Ne!==e?(ne=[ne,de,Ne],_=ne):(r=_,_=e)}else r=_,_=e;for(_===e&&(_=null),ne=[],de=p();de!==e;)ne.push(de),de=p();i.charCodeAt(r)===41?(de=Q,r++):(de=e,A===0&&C(le)),de!==e?(G=t,t=Tt(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 hE(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne;if(t=r,i.substr(r,6).toLowerCase()===Kl?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Xa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(_=r,i.charCodeAt(r)===44?(ne=Be,r++):(ne=e,A===0&&C(ke)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();Ne=se(),Ne!==e?(ne=[ne,de,Ne],_=ne):(r=_,_=e)}else r=_,_=e;for(_===e&&(_=null),ne=[],de=p();de!==e;)ne.push(de),de=p();i.charCodeAt(r)===41?(de=Q,r++):(de=e,A===0&&C(le)),de!==e?(G=t,t=Bn(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 dE(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le,er,Ht,Ml;if(t=r,i.substr(r,7).toLowerCase()===kn?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(wp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(ke)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();if(i.charCodeAt(r)===44?(_=Be,r++):(_=e,A===0&&C(ke)),_!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=se(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();if(Le=r,i.charCodeAt(r)===44?(er=Be,r++):(er=e,A===0&&C(ke)),er!==e){for(Ht=[],Ml=p();Ml!==e;)Ht.push(Ml),Ml=p();Ml=se(),Ml!==e?(er=[er,Ht,Ml],Le=er):(r=Le,Le=e)}else r=Le,Le=e;for(Le===e&&(Le=null),er=[],Ht=p();Ht!==e;)er.push(Ht),Ht=p();i.charCodeAt(r)===41?(Ht=Q,r++):(Ht=e,A===0&&C(le)),Ht!==e?(G=t,t=fl(h,S,de,Le)):(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 gE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===Zn?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(eo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=nt(),a!==e?(G=t,t=Ad(a)):(r=t,t=e)}else r=t,t=e;return t}function EE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3).toLowerCase()===rs?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Fs)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,6).toLowerCase()===Zn?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(eo)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=nt(),h!==e?(G=t,t=Id(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function vE(){var t,u,o,a,c,h,E,x,T,S,F,_,ne,de,Ne,Le,er;if(t=r,i.substr(r,5).toLowerCase()===eu?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ya)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(Zr)),x===e&&(x=se()),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=t,t=Nd(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()===La?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Lu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=t,t=bd(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()===ru?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(wu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=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()===tu?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ja)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=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()===iu?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ou)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=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,6).toLowerCase()===su?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(ro)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=Q,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],_=p();_!==e;)F.push(_),_=p();G=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,12).toLowerCase()===Xf?(u=i.substr(r,12),r+=12):(u=e,A===0&&C(Op)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=P,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(ct)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=r,S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===59?(F=ur,r++):(F=e,A===0&&C(Yt)),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();if(i.substr(r,9).toLowerCase()===Yf?(ne=i.substr(r,9),r+=9):(ne=e,A===0&&C(Ko)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(i.charCodeAt(r)===61?(Ne=br,r++):(Ne=e,A===0&&C(Zt)),Ne!==e){for(Le=[],er=p();er!==e;)Le.push(er),er=p();er=th(),er!==e?(S=[S,F,_,ne,de,Ne,Le,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=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===41?(F=Q,r++):(F=e,A===0&&C(le)),F!==e){for(_=[],ne=p();ne!==e;)_.push(ne),ne=p();G=t,t=Ld(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 mE(){var t,u,o,a;if(t=r,u=pr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=zc(),a===e&&(a=null),G=t,t=wd(u,a)}else r=t,t=e;return t}function Rl(){var t,u,o,a,c;return t=r,u=th(),u!==e?(o=RE(),o===e&&(o=r,i.substr(r,2)===Wo?(a=Wo,r+=2):(a=e,A===0&&C(Zi)),a!==e?(c=pr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),G=t,t=Od(u,o)):(r=t,t=e),t}function yl(){var t;return t=xE(),t===e&&(t=Sl(),t===e&&(t=Ll())),t}function xE(){var t;return t=Fl(),t===e&&(t=Gl(),t===e&&(t=Xs())),t}function Sl(){var t;return t=LE(),t===e&&(t=SE(),t===e&&(t=yE())),t}function Ll(){var t;return t=UE(),t===e&&(t=OE(),t===e&&(t=wE())),t}function wl(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Bi?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Uu)),u!==e&&(G=t,u=Ud()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===Jf?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Up)),u!==e&&(G=t,u=Gd()),t=u),t}function th(){var t;return t=BE(),t===e&&(t=DE(),t===e&&(t=GE(),t===e&&(t=FE()))),t}function pr(){var t,u;return t=r,u=Ol(),u!==e&&(G=t,u=Fd(u)),t=u,t===e&&(t=r,u=CE(),u!==e&&(G=t,u=Bd(u)),t=u),t}function CE(){var t,u;return t=r,u=IE(),u!==e&&(G=t,u=Dd(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(G=t,u=Vd(u)),t=u),t}function AE(){var t,u;return t=r,u=NE(),u!==e&&(G=t,u=Md(u)),t=u,t===e&&(t=r,u=ME(),u!==e&&(G=t,u=Pd()),t=u),t}function Ol(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Ue,r++):(u=e,A===0&&C(fs)),u!==e){for(o=[],Zo.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ea));a!==e;)o.push(a),Zo.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ea));i.charCodeAt(r)===62?(a=ni,r++):(a=e,A===0&&C(Yn)),a!==e?(G=t,t=Wd(o)):(r=t,t=e)}else r=t,t=e;return t}function Ul(){var t,u,o;return t=r,u=PE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(Tr)),o!==e?(G=t,t=kd(u)):(r=t,t=e),t}function IE(){var t,u,o;return t=r,u=Ul(),u!==e?(o=WE(),o!==e?(G=t,t=Zd(u,o)):(r=t,t=e)):(r=t,t=e),t}function NE(){var t,u,o,a,c,h,E;if(t=r,i.substr(r,2)===an?(u=an,r+=2):(u=e,A===0&&C(lr)),u!==e)if(o=ji(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe))),o!==e){for(a=[],c=$r(),c===e&&(c=r,i.charCodeAt(r)===46?(h=ye,r++):(h=e,A===0&&C(Ye)),h!==e?(E=$r(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));c!==e;)a.push(c),c=$r(),c===e&&(c=r,i.charCodeAt(r)===46?(h=ye,r++):(h=e,A===0&&C(Ye)),h!==e?(E=$r(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));G=t,t=_d()}else r=t,t=e;else r=t,t=e;return t}function bE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=It,r++):(u=e,A===0&&C(Os)),u!==e?(o=nh(),o!==e?(G=t,t=Qd(o)):(r=t,t=e)):(r=t,t=e),t}function TE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ns,r++):(u=e,A===0&&C(Ti)),u!==e?(o=nh(),o!==e?(G=t,t=Hd(o)):(r=t,t=e)):(r=t,t=e),t}function RE(){var t,u,o,a,c,h,E,x;if(t=r,i.charCodeAt(r)===64?(u=wa,r++):(u=e,A===0&&C(Ri)),u!==e){if(o=[],Ua.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ra)),a!==e)for(;a!==e;)o.push(a),Ua.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ra));else o=e;if(o!==e){if(a=[],c=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Vr)),h!==e){if(E=[],ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(_i)),x!==e)for(;x!==e;)E.push(x),ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(_i));else E=e;E!==e?(h=[h,E],c=h):(r=c,c=e)}else r=c,c=e;for(;c!==e;)if(a.push(c),c=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Vr)),h!==e){if(E=[],ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(_i)),x!==e)for(;x!==e;)E.push(x),ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(_i));else E=e;E!==e?(h=[h,E],c=h):(r=c,c=e)}else r=c,c=e;G=t,t=$d(o,a)}else r=t,t=e}else r=t,t=e;return t}function Xs(){var t,u,o;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe));else u=e;return u!==e&&(G=t,u=Xd()),t=u,t}function Gl(){var t,u,o,a,c;for(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe));o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe));if(i.charCodeAt(r)===46?(o=ye,r++):(o=e,A===0&&C(Ye)),o!==e){if(a=[],He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Pe)),c!==e)for(;c!==e;)a.push(c),He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Pe));else a=e;a!==e?(G=t,t=Yd()):(r=t,t=e)}else r=t,t=e;return t}function Fl(){var t,u,o,a,c;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=ye,r++):(o=e,A===0&&C(Ye)),o!==e){for(a=[],He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Pe));c!==e;)a.push(c),He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Pe));c=Bl(),c!==e?(G=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=ye,r++):(u=e,A===0&&C(Ye)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe));else o=e;o!==e?(a=Bl(),a!==e?(G=t,t=zd()):(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,A===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Pe));else u=e;u!==e?(o=Bl(),o!==e?(G=t,t=jd()):(r=t,t=e)):(r=t,t=e)}}return t}function yE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(dt)),u!==e?(o=Xs(),o!==e?(G=t,t=qd(o)):(r=t,t=e)):(r=t,t=e),t}function SE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(dt)),u!==e?(o=Gl(),o!==e?(G=t,t=Kd(o)):(r=t,t=e)):(r=t,t=e),t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(dt)),u!==e?(o=Fl(),o!==e?(G=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)===45?(u=tr,r++):(u=e,A===0&&C(Vr)),u!==e?(o=Xs(),o!==e?(G=t,t=rg(o)):(r=t,t=e)):(r=t,t=e),t}function OE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Vr)),u!==e?(o=Gl(),o!==e?(G=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)===45?(u=tr,r++):(u=e,A===0&&C(Vr)),u!==e?(o=Fl(),o!==e?(G=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function Bl(){var t,u,o,a,c;if(t=r,ai.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Gu)),u!==e){if(zf.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Gp)),o===e&&(o=null),a=[],He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Pe)),c!==e)for(;c!==e;)a.push(c),He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===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 GE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Di,r++):(u=e,A===0&&C(ui)),u!==e){for(o=[],Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ps)),a===e&&(a=zt());a!==e;)o.push(a),Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ps)),a===e&&(a=zt());i.charCodeAt(r)===39?(a=Di,r++):(a=e,A===0&&C(ui)),a!==e?(G=t,t=sg(o)):(r=t,t=e)}else r=t,t=e;return t}function FE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=bs,r++):(u=e,A===0&&C(cs)),u!==e){for(o=[],_n.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(to)),a===e&&(a=zt());a!==e;)o.push(a),_n.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(to)),a===e&&(a=zt());i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs)),a!==e?(G=t,t=ng(o)):(r=t,t=e)}else r=t,t=e;return t}function BE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3)===Ts?(u=Ts,r+=3):(u=e,A===0&&C(yi)),u!==e){for(o=[],a=r,i.substr(r,2)===Vi?(c=Vi,r+=2):(c=e,A===0&&C(ta)),c===e&&(i.charCodeAt(r)===39?(c=Di,r++):(c=e,A===0&&C(ui))),c===e&&(c=null),_o.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(ia)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Vi?(c=Vi,r+=2):(c=e,A===0&&C(ta)),c===e&&(i.charCodeAt(r)===39?(c=Di,r++):(c=e,A===0&&C(ui))),c===e&&(c=null),_o.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(ia)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);i.substr(r,3)===Ts?(a=Ts,r+=3):(a=e,A===0&&C(yi)),a!==e?(G=t,t=og(o)):(r=t,t=e)}else r=t,t=e;return t}function DE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3)===ss?(u=ss,r+=3):(u=e,A===0&&C(za)),u!==e){for(o=[],a=r,i.substr(r,2)===Rs?(c=Rs,r+=2):(c=e,A===0&&C(An)),c===e&&(i.charCodeAt(r)===34?(c=bs,r++):(c=e,A===0&&C(cs))),c===e&&(c=null),Ci.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(io)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Rs?(c=Rs,r+=2):(c=e,A===0&&C(An)),c===e&&(i.charCodeAt(r)===34?(c=bs,r++):(c=e,A===0&&C(cs))),c===e&&(c=null),Ci.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(io)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);i.substr(r,3)===ss?(a=ss,r+=3):(a=e,A===0&&C(za)),a!==e?(G=t,t=ag(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,A===0&&C(sa)),u!==e?(Fa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Fp)),o!==e?(G=t,t=lg()):(r=t,t=e)):(r=t,t=e),t}function jt(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=P,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.charCodeAt(r)===41?(a=Q,r++):(a=e,A===0&&C(le)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function p(){var t;return t=VE(),t===e&&(t=Dl(),t===e&&(t=Vl())),t}function Dl(){var t;return Mi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Fu)),t}function Vl(){var t;return Qo.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Bp)),t}function Ro(){var t;return Ba.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Dp)),t}function ih(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=ln,r++):(u=e,A===0&&C(hs)),u!==e){for(o=[],a=Ro();a!==e;)o.push(a),a=Ro();a=Vl(),a!==e?(G=t,t=ug()):(r=t,t=e)}else r=t,t=e;return t}function VE(){var t,u,o,a,c,h;for(t=r,u=Vl(),u===e&&(u=null),o=[],a=Dl();a!==e;)o.push(a),a=Dl();if(i.charCodeAt(r)===35?(a=ln,r++):(a=e,A===0&&C(hs)),a!==e){for(c=[],h=Ro();h!==e;)c.push(h),h=Ro();G=t,t=fg()}else r=t,t=e;return t}function ME(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=Ui,r++):(u=e,A===0&&C(Us)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.charCodeAt(r)===93?(a=ti,r++):(a=e,A===0&&C(li)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function sh(){var t;return pn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Bu)),t===e&&(jf.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Vp)),t===e&&(qf.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Mp)),t===e&&(Kf.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Du)),t===e&&(ep.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(In)),t===e&&(ou.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(ja)),t===e&&(au.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(na)),t===e&&(rp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Vu)),t===e&&(tp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(qa)),t===e&&(ip.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Mu)),t===e&&(sp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pp)),t===e&&(lu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pu)),t===e&&(np.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Et)))))))))))))),t}function ji(){var t;return t=sh(),t===e&&(i.charCodeAt(r)===95?(t=un,r++):(t=e,A===0&&C(Nn))),t}function nh(){var t,u,o,a;if(t=r,u=ji(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe))),u!==e){for(o=[],a=ji(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe)),a===e&&(cn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(bn)),a===e&&(os.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Tn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Rn))))));a!==e;)o.push(a),a=ji(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Pe)),a===e&&(cn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(bn)),a===e&&(os.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Tn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Rn))))));G=t,t=pg()}else r=t,t=e;return t}function $r(){var t;return t=ji(),t===e&&(i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Vr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pe)),t===e&&(cn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(bn)),t===e&&(os.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Tn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Rn))))))),t}function PE(){var t,u,o,a,c,h;if(t=r,u=sh(),u!==e){for(o=[],a=$r(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e?(h=$r(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=$r(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e?(h=$r(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));G=t,t=cg()}else r=t,t=e;return t}function WE(){var t,u,o,a,c,h;if(t=r,u=ji(),u===e&&(i.charCodeAt(r)===58?(u=Xt,r++):(u=e,A===0&&C(Tr)),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Pe)),u===e&&(u=Ys()))),u!==e){for(o=[],a=$r(),a===e&&(i.charCodeAt(r)===58?(a=Xt,r++):(a=e,A===0&&C(Tr)),a===e&&(a=Ys())),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e?(h=$r(),h===e&&(i.charCodeAt(r)===58?(h=Xt,r++):(h=e,A===0&&C(Tr)),h===e&&(h=Ys())),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=$r(),a===e&&(i.charCodeAt(r)===58?(a=Xt,r++):(a=e,A===0&&C(Tr)),a===e&&(a=Ys())),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C(Ye)),c!==e?(h=$r(),h===e&&(i.charCodeAt(r)===58?(h=Xt,r++):(h=e,A===0&&C(Tr)),h===e&&(h=Ys())),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));G=t,t=hg()}else r=t,t=e;return t}function Ys(){var t;return t=kE(),t===e&&(t=ZE()),t}function kE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=fn,r++):(u=e,A===0&&C(ds)),u!==e?(o=oh(),o!==e?(a=oh(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function oh(){var t;return He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pe)),t===e&&(op.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(oa)),t===e&&(ap.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Wu)))),t}function ZE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=ko,r++):(u=e,A===0&&C(sa)),u!==e?(i.charCodeAt(r)===95?(o=un,r++):(o=e,A===0&&C(Nn)),o===e&&(i.charCodeAt(r)===126?(o=Oa,r++):(o=e,A===0&&C(ku)),o===e&&(i.charCodeAt(r)===46?(o=ye,r++):(o=e,A===0&&C(Ye)),o===e&&(i.charCodeAt(r)===45?(o=tr,r++):(o=e,A===0&&C(Vr)),o===e&&(i.charCodeAt(r)===33?(o=ri,r++):(o=e,A===0&&C(vn)),o===e&&(i.charCodeAt(r)===36?(o=Ns,r++):(o=e,A===0&&C(Ti)),o===e&&(i.charCodeAt(r)===38?(o=nu,r++):(o=e,A===0&&C(Zu)),o===e&&(i.charCodeAt(r)===39?(o=Di,r++):(o=e,A===0&&C(ui)),o===e&&(i.charCodeAt(r)===40?(o=P,r++):(o=e,A===0&&C(ae)),o===e&&(i.charCodeAt(r)===41?(o=Q,r++):(o=e,A===0&&C(le)),o===e&&(i.charCodeAt(r)===42?(o=ee,r++):(o=e,A===0&&C(Zr)),o===e&&(i.charCodeAt(r)===43?(o=Ir,r++):(o=e,A===0&&C(dt)),o===e&&(i.charCodeAt(r)===44?(o=Be,r++):(o=e,A===0&&C(ke)),o===e&&(i.charCodeAt(r)===59?(o=ur,r++):(o=e,A===0&&C(Yt)),o===e&&(i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(Tr)),o===e&&(i.charCodeAt(r)===61?(o=br,r++):(o=e,A===0&&C(Zt)),o===e&&(i.charCodeAt(r)===47?(o=rr,r++):(o=e,A===0&&C(Dr)),o===e&&(i.charCodeAt(r)===63?(o=It,r++):(o=e,A===0&&C(Os)),o===e&&(i.charCodeAt(r)===35?(o=ln,r++):(o=e,A===0&&C(hs)),o===e&&(i.charCodeAt(r)===64?(o=wa,r++):(o=e,A===0&&C(Ri)),o===e&&(i.charCodeAt(r)===37?(o=fn,r++):(o=e,A===0&&C(ds)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let ah={};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(xo=w(),xo!==e&&r===i.length)return xo;throw xo!==e&&r<i.length&&C(dg()),yc(pl,mt<i.length?i.charAt(mt):null,mt<i.length?Zs(mt,mt+1):Zs(mt,mt))}var Oo,ba,Pn,Vv=" ",vd=0;function xd(i,v=2){if(Vv=" ".repeat(v),Oo=[],ba=i.comments,Pn="",i.headers&&Ze(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?Ze(`BASE <${e.iriref}>`):Ze(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),Ze("")),i.selectQuery)U1(i.selectQuery);else if(i.constructQuery)G1(i.constructQuery);else if(i.askQuery)S1(i.askQuery);else if(i.describeQuery)L1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Oo[Oo.length-1]+=` ;
72
+ `],!0,!1),hs=P("#",!1),Bu=Ge([["A","Z"]],!1,!1),Vp=Ge([["a","z"]],!1,!1),Mp=Ge([["\xC0","\xD6"]],!1,!1),Du=Ge([["\xD8","\xF6"]],!1,!1),Nn=Ge([["\xF8","\u02FF"]],!1,!1),ja=Ge([["\u0370","\u037D"]],!1,!1),na=Ge([["\u037F","\u1FFF"]],!1,!1),Vu=Ge([["\u200C","\u200D"]],!1,!1),qa=Ge([["\u2070","\u218F"]],!1,!1),Mu=Ge([["\u2C00","\u2FEF"]],!1,!1),Wp=Ge([["\u3001","\uD7FF"]],!1,!1),Wu=Ge([["\uF900","\uFDCF"]],!1,!1),xt=Ge([["\uFDF0","\uFFFD"]],!1,!1),bn=P("_",!1),Tn=Ge(["\xB7"],!1,!1),yn=Ge([["\u0300","\u036F"]],!1,!1),Rn=Ge([["\u203F","\u2040"]],!1,!1),ds=P("%",!1),oa=Ge([["A","F"]],!1,!1),Pu=Ge([["a","f"]],!1,!1),Zu=P("~",!1),ku=P("&",!1),Sn=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(ah).map(([c,h])=>({pos:parseInt(c),text:h}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},Qu=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},aa=function(t){if(t.length)return{type:"Prologue",decl:t}},_u=function(t){return{type:"BaseDecl",iriref:t}},no=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Pp=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},Ln=function(t,u,o,a){let c={type:"SubSelect",selectClause:t,whereClause:u,...o,location:Te()};return a&&(c.values=a),c},Hu=function(t,u){let o;u==="*"?o=["*"]:o=u.map(c=>c.length===2?c[1]:{expression:c[3],as:c[7]});let a={var:o};if(t){let c=t.toUpperCase();c==="DISTINCT"?a.distinct=!0:c==="REDUCED"&&(a.reduced=!0)}return a.location=Te(),a},Yu=function(t,u,o,a){let c={type:"ConstructQuery"};return u.length&&(c.from=u),c={...c,template:t,where:o,...a,location:Te()},c},Xu=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:Te()},a},oo=function(t,u,o,a){let c={type:"DescribeQuery"};return u.length&&(c.from=u),c.describe=t,o&&(c.where=o),c={...c,...a,location:Te()},c},ao=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:Te()},a},lo=function(t){return t},uo=function(t){return{graph:t,location:Te()}},$u=function(t){return{namedGraph:t,location:Te()}},Zp=function(t){return t.graphPattern||t},Ju=function(t,u,o,a){let c={};return t&&(c.group=t),u&&(c.having=u),o&&(c.orderBy=o),a&&(c.limitOffset=a),c},gs=function(t){return t},wn=function(t){return t},fo=function(t){return t},kp=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:Te()}:{bracketted:!0,...t}},zu=function(t){return t},Qp=function(t){return t},_p=function(t){return t},Hp=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},ju=function(t){return t},Yp=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Xp=function(t){return{limit:parseInt(t.literal)}},$p=function(t){return{offset:parseInt(t.literal)}},qu=function(t){return t?t[1]:null},Ku=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},ef=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},Jp=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},zp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},jp=function(t,u){return{type:"create",silent:t,destinyGraph:u}},Es=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]}},la=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},co=function(t){return{type:"insertdata",insert:t}},_i=function(t){return{type:"deletedata",delete:t}},qp=function(t){return{type:"deletewhere",delete:t}},Kp=function(t,u,o,a){let c={type:"modify"};return t&&(c.with=t[2]),u.length===3?(c.delete=u[0],u[2]&&(c.insert=u[2])):c.insert=u,o.length&&(c.using=o),c.where=a.graphPattern,c},On=function(t){return t},rf=function(t){return t},tf=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},sf=function(){return"default"},ua=function(t){return t},Un=function(t){return t},Ka=function(t){return t},el=function(){return"default"},rl=function(){return"named"},ec=function(){return"all"},ho=function(t){return t},nf=function(t){return t},rc=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},of=function(t,u){return{graph:t,...u}},fa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},tc=function(t){return t},ic=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()}},go=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 c=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(h=>{n(t.properties[a].objects[c],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()}},af=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:Te()}},lf=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},sc=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=Te(),a},tl=function(t,u){return{type:"Bind",bind:t,as:u,location:Te()}},uf=function(t){return t},nc=function(t,u){return{oneVar:t,data:u,location:Te()}},ff=function(t,u){return{variables:t,data:u,location:Te()}},pf=function(t){return t},oc=function(t){return t},il=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:Te()}},Eo=function(t,u){return u.length?{union:[t,...u],location:Te()}:t},vo=function(t){return{type:"Filter",filter:t,location:Te()}},ac=function(t,u){return{functionRef:t,args:u.list,location:Te()}},cf=function(){return{list:[]}},lc=function(t,u,o){return{distinct:!!t,list:[u,...o]}},uc=function(){return[]},fc=function(t,u){return[t,...u]},pc=function(t){return t},hf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},cc=function(t,u){return{subject:t,properties:u}},hc=function(t,u){return{subject:t,properties:u}},df=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(c=>{c[3]&&a.push({predicate:c[3][0],objects:c[3][2]})}),a},sl=function(){return{a:!0,location:Te()}},gf=function(t,u){return[t,...u]},dc=function(t,u){return{subject:t,properties:u}},Ef=function(t,u){return{subject:t,properties:u}},Gn=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(c=>{if(c[3]){let h=a.length-1,E=a[h].objects.length-1;n(a[h].predicate,c[3][0])?c[3][2].forEach(x=>{n(a[h].objects[E],x)||a[h].objects.push(x)}):a.push({predicate:c[3][0],objects:c[3][2]})}}),a},vf=function(t,u){return[t,...u]},pa=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},gc=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},Ec=function(t,u){return u&&(t.modifier=u),t},vc=function(t){return t.inverse=!0,t},Rr=function(){return{a:!0,location:Te()}},mc=function(t){return{bracketted:!0,...t}},nl=function(t){return{collection:t,location:Te()}},mo=function(t){return{blankNodeProperties:t,location:Te()}},fi=function(t){return{collection:t,location:Te()}},ca=function(t){return{blankNodeProperties:t,location:Te()}},ol=function(t){return t},mf=function(t){return t},xf=function(t){return t},Cf=function(t){return t},al=function(t){return{...t,location:Te()}},Af=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},xc=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},ll=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),c=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),c=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:c}}else return t},If=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},Nf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Cc=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},Fn=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},Ac=function(t){return{expressionType:"atomic",value:t}},ha=function(t){return{expressionType:"atomic",value:t}},Ic=function(t){return{expressionType:"atomic",value:t}},Pr=function(t){return{expressionType:"atomic",value:t}},Nc=function(t){return{bracketted:!0,...t}},bc=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},Tc=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},da=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]}},m=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},I=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(t){return{expressionType:"builtincall",builtincall:"abs",args:[t]}},R=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},L=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},O=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},k=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},X=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]}},me=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]}},Ve=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},Fe=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},qe=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},mr=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]}},Dt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Vt=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]}},Mt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Bn=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]}},Si=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},nt=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},ul=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Hi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},Ps=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},Zs=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},yt=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}},fl=function(t,u,o,a){let c=[t,u,o];return a&&c.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:c}},Ad=function(t){return{exists:t.graphPattern||t}},Id=function(t){return{notexists:t.graphPattern||t}},Nd=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},bd=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},Td=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},yd=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Rd=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},Sd=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Ld=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},wd=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Od=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=Te(),t},Ud=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Gd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Fd=function(t){return{type:"IRIref",iriref:t,location:Te()}},Bd=function(t){return t},Dd=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:Te()}},Vd=function(t){return{type:"PrefixedName",pn_prefix:t,location:Te()}},Md=function(t){return{blankNode:t,location:Te()}},Wd=function(){return{blankNode:"[]",location:Te()}},Pd=function(t){return t.join("")},Zd=function(t){return t||""},kd=function(t,u){return{pn_prefix:t,pn_local:u}},Qd=function(){return Yr()},_d=function(t){return{type:"Var",varType:"VAR1",varname:t}},Hd=function(t){return{type:"Var",varType:"VAR2",varname:t}},Yd=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},Xd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Yr()}},$d=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()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Yr()}},qd=function(t){return t.literal="+"+t.literal,t},Kd=function(t){return t.literal="+"+t.literal,t},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{quote:"'",literal:t.join("")}},ng=function(t){return{quote:'"',literal:t.join("")}},og=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},ag=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},lg=function(){return Yr()},ug=function(){return Yr()},fg=function(){return ah[Te().start.offset]=Yr(),""},pg=function(){return Yr()},cg=function(){return Yr()},hg=function(){return Yr()},r=0,U=0,xo=[{line:1,column:1}],At=0,pl=[],A=0,Co;if("startRule"in v){if(!(v.startRule in y))throw new Error(`Can't start parsing from rule "`+v.startRule+'".');w=y[v.startRule]}function Yr(){return i.substring(U,r)}function qA(){return U}function KA(){return{source:N,start:U,end:r}}function Te(){return ks(U,r)}function eI(t,u){throw u=u!==void 0?u:ks(U,r),Rc([gg(t)],i.substring(U,r),u)}function rI(t,u){throw u=u!==void 0?u:ks(U,r),Eg(t,u)}function P(t,u){return{type:"literal",text:t,ignoreCase:u}}function Ge(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function tI(){return{type:"any"}}function dg(){return{type:"end"}}function gg(t){return{type:"other",description:t}}function yc(t){var u=xo[t],o;if(u)return u;for(o=t-1;!xo[o];)o--;for(u=xo[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return xo[t]=u,u}function ks(t,u,o){var a=yc(t),c=yc(u),h={source:N,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:c.line,column:c.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<At||(r>At&&(At=r,pl=[]),pl.push(t))}function Eg(t,u){return new $l(t,null,null,u)}function Rc(t,u,o){return new $l($l.buildMessage(t,u),t,u,o)}function Sc(){var t,u,o,a,c,h;for(t=r,u=[],o=ih();o!==e;)u.push(o),o=ih();for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=vg(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=Sn(u,a)}else r=t,t=e;return t}function vg(){var t;return t=mg(),t===e&&(t=Wc()),t}function mg(){var t,u,o,a,c;for(t=r,u=Lc(),o=[],a=p();a!==e;)o.push(a),a=p();return a=xg(),a===e&&(a=Ag(),a===e&&(a=Ig(),a===e&&(a=Ng()))),a!==e?(c=Mc(),U=t,t=Qu(u,a,c)):(r=t,t=e),t}function Lc(){var t,u,o;for(t=r,u=[],o=wc(),o===e&&(o=Oc());o!==e;)u.push(o),o=wc(),o===e&&(o=Oc());return U=t,u=aa(u),t=u,t}function wc(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===G?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(lp)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Ol(),c!==e?(U=t,t=_u(c)):(r=t,t=e)}else r=t,t=e;return t}function Oc(){var t,u,o,a,c,h,E;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===V?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Hn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=Ul(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ol(),E!==e?(U=t,t=no(c,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function xg(){var t,u,o,a,c,h,E,x;if(t=r,u=Uc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=It();c!==e;)a.push(c),c=It();for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=Qs(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Yi(),U=t,t=Pp(u,a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Cg(){var t,u,o,a,c,h,E;if(t=r,u=Uc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Qs(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Yi(),E=Mc(),U=t,t=Ln(u,a,h,E)}else r=t,t=e}else r=t,t=e;return t}function Uc(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le,er;if(t=r,i.substr(r,6).toLowerCase()===Z?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(rt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,A===0&&C(gt)),a===e&&(i.substr(r,7).toLowerCase()===_?(a=i.substr(r,7),r+=7):(a=e,A===0&&C(uu))),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(T=nr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===40?(T=W,r++):(T=e,A===0&&C(ae)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=se(),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();if(i.substr(r,2).toLowerCase()===J?(ne=i.substr(r,2),r+=2):(ne=e,A===0&&C(Rs)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=nr(),Ne!==e){for(Le=[],er=p();er!==e;)Le.push(er),er=p();i.charCodeAt(r)===41?(er=M,r++):(er=e,A===0&&C(ue)),er!==e?(x=[x,T,S,F,Q,ne,de,Ne,Le,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=p();T!==e;)x.push(T),T=p();if(T=nr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===40?(T=W,r++):(T=e,A===0&&C(ae)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=se(),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();if(i.substr(r,2).toLowerCase()===J?(ne=i.substr(r,2),r+=2):(ne=e,A===0&&C(Rs)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=nr(),Ne!==e){for(Le=[],er=p();er!==e;)Le.push(er),er=p();i.charCodeAt(r)===41?(er=M,r++):(er=e,A===0&&C(ue)),er!==e?(x=[x,T,S,F,Q,ne,de,Ne,Le,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,A===0&&C(Qr))),h!==e?(U=t,t=Hu(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Ag(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de;if(t=r,i.substr(r,9).toLowerCase()===$?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Yn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=eE(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=It();E!==e;)h.push(E),E=It();for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=Qs(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Yi(),U=t,t=Yu(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()===$?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Yn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=It();c!==e;)a.push(c),c=It();for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(as)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===123?(x=D,r++):(x=e,A===0&&C(Gt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();for(S=$i(),S===e&&(S=null),F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(i.charCodeAt(r)===125?(Q=Y,r++):(Q=e,A===0&&C(Ft)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=Yi(),U=t,t=Xu(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 Ig(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,8).toLowerCase()===q?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(fu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=zi(),c!==e)for(;c!==e;)a.push(c),c=zi();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=z,r++):(a=e,A===0&&C(Qr))),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=It();E!==e;)h.push(E),E=It();for(E=[],x=p();x!==e;)E.push(x),x=p();for(x=Qs(),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=Yi(),U=t,t=oo(a,h,x,S)}else r=t,t=e}else r=t,t=e;return t}function Ng(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,3).toLowerCase()===te?(o=i.substr(r,3),r+=3):(o=e,A===0&&C(pu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=It();h!==e;)c.push(h),h=It();for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=Qs(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),U=t,t=ao(c,E,T)}else r=t,t=e}else r=t,t=e;return t}function It(){var t,u,o,a,c,h;if(t=r,i.substr(r,4).toLowerCase()===ie?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(up)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=bg(),a===e&&(a=Tg()),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=lo(a)}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=pr(),o!==e?(U=t,t=uo(o)):(r=t,t=e),t}function Tg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===le?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Wi)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(U=t,t=$u(a)):(r=t,t=e)}else r=t,t=e;return t}function Qs(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===B?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(as)),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();return a=ot(),a!==e?(U=t,t=Zp(a)):(r=t,t=e),t}function Yi(){var t,u,o,a,c;return t=r,u=yg(),u===e&&(u=null),o=Rg(),o===e&&(o=null),a=Sg(),a===e&&(a=null),c=Lg(),c===e&&(c=null),U=t,t=Ju(u,o,a,c),t}function yg(){var t,u,o,a,c,h,E;if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Pi)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,2).toLowerCase()===ke?(a=i.substr(r,2),r+=2):(a=e,A===0&&C(dn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=Gc(),E!==e)for(;E!==e;)h.push(E),E=Gc();else h=e;h!==e?(U=t,t=gs(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Gc(){var t,u,o,a,c,h,E,x,T,S,F;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=Tl(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=t,t=wn(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=Jc(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=t,t=fo(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=se(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=r,i.substr(r,2).toLowerCase()===J?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Rs)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=t,t=kp(c,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=nr(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=t,t=zu(o)}else r=t,t=e}}}return t}function Rg(){var t,u,o,a,c;if(t=r,i.substr(r,6).toLowerCase()===we?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Da)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Fc(),c!==e)for(;c!==e;)a.push(c),c=Fc();else a=e;a!==e?(U=t,t=Qp(a)):(r=t,t=e)}else r=t,t=e;return t}function Fc(){var t,u,o,a;if(t=r,u=dl(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=t,t=_p(u)}else r=t,t=e;return t}function Sg(){var t,u,o,a,c,h,E,x;if(t=r,i.substr(r,5).toLowerCase()===Pe?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(cu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,2).toLowerCase()===ke?(a=i.substr(r,2),r+=2):(a=e,A===0&&C(dn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=Bc(),E!==e)for(;E!==e;)h.push(E),E=Bc();else h=e;if(h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=t,t=Hp(h)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Bc(){var t,u,o,a,c,h;if(t=r,i.substr(r,3).toLowerCase()===Me?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ii)),u===e&&(i.substr(r,4).toLowerCase()===Ke?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Ss))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=bl(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=Bt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=dl(),u===e&&(u=nr()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=t,t=ju(u)}else r=t,t=e;return t}function Lg(){var t,u,o,a;return t=r,u=r,o=Dc(),o!==e?(a=Vc(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=Vc(),o!==e?(a=Dc(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(U=t,u=Yp(u)),t=u,t}function Dc(){var t,u,o,a,c,h;if(t=r,i.substr(r,5).toLowerCase()===ve?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Va)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Xs(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=Xp(a)}else r=t,t=e}else r=t,t=e;return t}function Vc(){var t,u,o,a,c,h;if(t=r,i.substr(r,6).toLowerCase()===xr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(fp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Xs(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=$p(a)}else r=t,t=e}else r=t,t=e;return t}function Mc(){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,A===0&&C(Ho)),o!==e?(a=Xc(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),U=t,u=qu(u),t=u,t}function Wc(){var t,u,o,a,c,h,E,x,T,S;for(t=r,u=Lc(),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(c=wg(),c!==e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C($t)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Wc(),E=[E,x,T,S],h=E}else r=h,h=e;h===e&&(h=null),a=[a,c,h],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();return U=t,t=Ku(u,o),t}function wg(){var t;return t=Og(),t===e&&(t=Ug(),t===e&&(t=Gg(),t===e&&(t=Bg(),t===e&&(t=Dg(),t===e&&(t=Vg(),t===e&&(t=Fg(),t===e&&(t=Mg(),t===e&&(t=Wg(),t===e&&(t=Pg(),t===e&&(t=Zg())))))))))),t}function Og(){var t,u,o,a,c,h,E,x,T,S,F;if(t=r,i.substr(r,4).toLowerCase()===Jr?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(hu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=pr(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=r,i.substr(r,4).toLowerCase()===St?(T=i.substr(r,4),r+=4):(T=e,A===0&&C(gn)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=cl(),F!==e?(T=[T,S,F],x=T):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),U=t,t=ef(a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Ug(){var t,u,o,a,c,h;if(t=r,i.substr(r,5).toLowerCase()===Lt?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ni)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=kc(),h!==e?(U=t,t=Jp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Gg(){var t,u,o,a,c,h;if(t=r,i.substr(r,4).toLowerCase()===cr?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(du)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=kc(),h!==e?(U=t,t=zp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Fg(){var t,u,o,a,c,h;if(t=r,i.substr(r,6).toLowerCase()===wt?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=cl(),h!==e?(U=t,t=jp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Bg(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,3).toLowerCase()===or?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(pp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=Xi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Xn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Xi(),S!==e?(U=t,t=Es(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,c,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===ze?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(cp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=Xi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Xn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Xi(),S!==e?(U=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 Vg(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===zr?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Eu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=Xi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Xn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Xi(),S!==e?(U=t,t=la(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,c,h;if(t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Yo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,4).toLowerCase()===Zr?(a=i.substr(r,4),r+=4):(a=e,A===0&&C(Ls)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Qc(),h!==e?(U=t,t=co(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Wg(){var t,u,o,a,c;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(En)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.substr(r,4).toLowerCase()===Zr?(a=i.substr(r,4),r+=4):(a=e,A===0&&C(Ls)),a!==e?(c=Qc(),c!==e?(U=t,t=_i(c)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function Pg(){var t,u,o,a,c,h;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(En)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,5).toLowerCase()===B?(a=i.substr(r,5),r+=5):(a=e,A===0&&C(as)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=hl(),h!==e?(U=t,t=qp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o,a,c,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,A===0&&C(vu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();o=[o,a,c,h],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=kg(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Pc(),h===e&&(h=null),a=[a,c,h],o=a}else r=o,o=e;if(o===e&&(o=Pc()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=Zc();h!==e;)c.push(h),h=Zc();for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,5).toLowerCase()===B?(E=i.substr(r,5),r+=5):(E=e,A===0&&C(as)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=ot(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=t,t=Kp(u,o,c,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function kg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(En)),u!==e?(o=hl(),o!==e?(U=t,t=On(o)):(r=t,t=e)):(r=t,t=e),t}function Pc(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Yo)),u!==e?(o=hl(),o!==e?(U=t,t=rf(o)):(r=t,t=e)):(r=t,t=e),t}function Zc(){var t,u,o,a,c,h,E,x;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Oe?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(Ma)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c===e)if(c=r,i.substr(r,5).toLowerCase()===le?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Wi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=pr(),x!==e?(h=[h,E,x],c=h):(r=c,c=e)}else r=c,c=e;c!==e?(U=t,t=tf(c)):(r=t,t=e)}else r=t,t=e;return t}function Xi(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(vn)),u!==e&&(U=t,u=sf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(U=t,t=ua(a)):(r=t,t=e)}return t}function cl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(ls)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(U=t,t=Un(a)):(r=t,t=e)}else r=t,t=e;return t}function kc(){var t,u;return t=r,u=cl(),u!==e&&(U=t,u=Ka(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(vn)),u!==e&&(U=t,u=el()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===le?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Wi)),u!==e&&(U=t,u=rl()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===fr?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Xo)),u!==e&&(U=t,u=ec()),t=u))),t}function hl(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===123?(o=D,r++):(o=e,A===0&&C(Gt)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=_c(),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===125?(E=Y,r++):(E=e,A===0&&C(Ft)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=ho(c)}else r=t,t=e}else r=t,t=e;return t}function Qc(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===123?(o=D,r++):(o=e,A===0&&C(Gt)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=_c(),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===125?(E=Y,r++):(E=e,A===0&&C(Ft)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=nf(c)}else r=t,t=e}else r=t,t=e;return t}function _c(){var t,u,o,a,c,h,E;for(t=r,u=$i(),u===e&&(u=null),o=[],a=r,c=Hc(),c!==e?(i.charCodeAt(r)===46?(h=Re,r++):(h=e,A===0&&C($e)),h===e&&(h=null),E=$i(),E===e&&(E=null),c=[c,h,E],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,c=Hc(),c!==e?(i.charCodeAt(r)===46?(h=Re,r++):(h=e,A===0&&C($e)),h===e&&(h=null),E=$i(),E===e&&(E=null),c=[c,h,E],a=c):(r=a,a=e);return U=t,t=rc(u,o),t}function Hc(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(ls)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=zi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=D,r++):(E=e,A===0&&C(Gt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=$i(),T===e&&(T=null),S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===125?(F=Y,r++):(F=e,A===0&&C(Ft)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();U=t,t=of(c,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,c,h,E;if(t=r,u=qc(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=$i(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=fa(u,o)}else r=t,t=e;return t}function ot(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Gt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Cg(),a===e&&(a=Qg()),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ft)),h!==e?(U=t,t=tc(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Qg(){var t,u,o,a,c,h,E,x,T,S;for(t=r,u=Ao(),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=r,h=Yc(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(i.charCodeAt(r)===46?(x=Re,r++):(x=e,A===0&&C($e)),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],c=h}else r=c,c=e;for(;c!==e;)if(a.push(c),c=r,h=Yc(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(i.charCodeAt(r)===46?(x=Re,r++):(x=e,A===0&&C($e)),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],c=h}else r=c,c=e;return U=t,t=ic(u,a),t}function Ao(){var t,u,o,a,c,h,E;if(t=r,u=tE(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ao(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=go(u,o)}else r=t,t=e;return t}function Yc(){var t;return t=qg(),t===e&&(t=_g(),t===e&&(t=jg(),t===e&&(t=Hg(),t===e&&(t=Yg(),t===e&&(t=Kg(),t===e&&(t=Xg(),t===e&&(t=$g()))))))),t}function _g(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,8).toLowerCase()===Ur?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(mu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=ot(),c!==e?(U=t,t=af(c)):(r=t,t=e)}else r=t,t=e;return t}function Hg(){var t,u,o,a,c,h,E;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(ls)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=zi(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=ot(),E!==e?(U=t,t=lf(c,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Yg(){var t,u,o,a,c,h,E,x;if(t=r,i.substr(r,7).toLowerCase()===ei?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Wa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Et)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=zi(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=ot(),x!==e?(U=t,t=sc(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===Ie?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Pa)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===40?(c=W,r++):(c=e,A===0&&C(ae)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.substr(r,2).toLowerCase()===J?(T=i.substr(r,2),r+=2):(T=e,A===0&&C(Rs)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=nr(),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,A===0&&C(ue)),ne!==e?(U=t,t=tl(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 $g(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===Cr?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Ho)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Xc(),c!==e?(U=t,t=uf(c)):(r=t,t=e)}else r=t,t=e;return t}function Xc(){var t;return t=Jg(),t===e&&(t=zg()),t}function Jg(){var t,u,o,a,c,h,E,x;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=nr(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===123?(c=D,r++):(c=e,A===0&&C(Gt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(E=[],x=Io();x!==e;)E.push(x),x=Io();i.charCodeAt(r)===125?(x=Y,r++):(x=e,A===0&&C(Ft)),x!==e?(U=t,t=nc(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,c,h,E,x,T,S,F;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=nr();h!==e;)c.push(h),h=nr();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,A===0&&C(ue)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===123?(x=D,r++):(x=e,A===0&&C(Gt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();for(S=[],F=$c();F!==e;)S.push(F),F=$c();i.charCodeAt(r)===125?(F=Y,r++):(F=e,A===0&&C(Ft)),F!==e?(U=t,t=ff(c,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function $c(){var t,u,o,a,c,h,E;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=Io();c!==e;)a.push(c),c=Io();if(i.charCodeAt(r)===41?(c=M,r++):(c=e,A===0&&C(ue)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();U=t,t=pf(a)}else r=t,t=e}else r=t,t=e;return t}function Io(){var t,u,o,a;if(t=r,u=pr(),u===e&&(u=yl(),u===e&&(u=Rl(),u===e&&(u=wl(),u===e&&(i.substr(r,5)===Ot?(u=Ot,r+=5):(u=e,A===0&&C(xu)))))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=t,t=oc(u)}else r=t,t=e;return t}function jg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ft?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Cu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=ot(),a!==e?(U=t,t=il(a)):(r=t,t=e)}else r=t,t=e;return t}function qg(){var t,u,o,a,c,h,E,x;if(t=r,u=ot(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,A===0&&C($n)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,A===0&&C($n)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}U=t,t=Eo(u,o)}else r=t,t=e;return t}function Kg(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,6).toLowerCase()===es?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(hp)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=dl(),c!==e?(U=t,t=vo(c)):(r=t,t=e)}else r=t,t=e;return t}function dl(){var t;return t=bl(),t===e&&(t=Tl(),t===e&&(t=Jc())),t}function Jc(){var t,u,o,a;if(t=r,u=pr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=zc(),a!==e?(U=t,t=ac(u,a)):(r=t,t=e)}else r=t,t=e;return t}function zc(){var t,u,o,a,c,h,E,x,T,S,F,Q;if(t=r,u=jt(),u!==e&&(U=t,u=cf()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,A===0&&C(gt)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=[],T=r,i.charCodeAt(r)===44?(S=Be,r++):(S=e,A===0&&C(Ze)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();Q=se(),Q!==e?T=Q:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(x.push(T),T=r,i.charCodeAt(r)===44?(S=Be,r++):(S=e,A===0&&C(Ze)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();Q=se(),Q!==e?T=Q:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e?(U=t,t=lc(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Ji(){var t,u,o,a,c,h,E,x,T,S,F,Q;if(t=r,u=jt(),u!==e&&(U=t,u=uc()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=se(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=r,i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();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=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e?(U=t,t=fc(a,h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function eE(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===123?(u=D,r++):(u=e,A===0&&C(Gt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=jc(),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ft)),h!==e?(U=t,t=pc(a)):(r=t,t=e)}else r=t,t=e;return t}function jc(){var t,u,o,a,c,h,E;if(t=r,u=qc(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=jc(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=hf(u,o)}else r=t,t=e;return t}function qc(){var t,u,o,a,c;if(t=r,u=To(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=gl(),a!==e?(U=t,t=cc(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=eh(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=rE(),U=t,t=hc(o,c)}else r=t,t=e}return t}function rE(){var t;return t=gl(),t===e&&(t=null),t}function gl(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne;if(t=r,u=El(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=vl(),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C($t)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=El(),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();ne=vl(),ne!==e?(F=[F,Q,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(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C($t)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=El(),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();ne=vl(),ne!==e?(F=[F,Q,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}U=t,t=df(u,a,c)}else r=t,t=e}else r=t,t=e;return t}function El(){var t,u;return t=zi(),t===e&&(t=r,i.charCodeAt(r)===97?(u=pt,r++):(u=e,A===0&&C(ws)),u!==e&&(U=t,u=sl()),t=u),t}function vl(){var t,u,o,a,c,h,E,x;if(t=r,u=_s(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(Ze)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=_s(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(Ze)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=_s(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}U=t,t=gf(u,o)}else r=t,t=e;return t}function tE(){var t,u,o,a,c;if(t=r,u=To(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=ml(),a!==e?(U=t,t=dc(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=rh(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=iE(),U=t,t=Ef(o,c)}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,c,h,E,x,T,S,F,Q,ne;if(t=r,u=No(),u===e&&(u=nr()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=xl(),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C($t)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=No(),F===e&&(F=nr()),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();ne=xl(),ne!==e?(F=[F,Q,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(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C($t)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=No(),F===e&&(F=nr()),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();ne=xl(),ne!==e?(F=[F,Q,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}U=t,t=Gn(u,a,c)}else r=t,t=e}else r=t,t=e;return t}function xl(){var t,u,o,a,c,h,E,x;if(t=r,u=Hs(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(Ze)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Hs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=Be,r++):(h=e,A===0&&C(Ze)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Hs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}U=t,t=vf(u,o)}else r=t,t=e;return t}function No(){var t,u,o,a,c,h,E,x;if(t=r,u=Cl(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Cl(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===124?(h=Se,r++):(h=e,A===0&&C(Jt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Cl(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}U=t,t=pa(u,o)}else r=t,t=e;return t}function Cl(){var t,u,o,a,c,h,E,x;if(t=r,u=Al(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Mr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Al(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Mr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Al(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}U=t,t=gc(u,o)}else r=t,t=e;return t}function Kc(){var t,u,o;return t=r,u=nE(),u!==e?(o=sE(),o===e&&(o=null),U=t,t=Ec(u,o)):(r=t,t=e),t}function Al(){var t,u,o;return t=Kc(),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,A===0&&C(us)),u!==e?(o=Kc(),o!==e?(U=t,t=vc(o)):(r=t,t=e)):(r=t,t=e)),t}function sE(){var t;return i.charCodeAt(r)===63?(t=ct,r++):(t=e,A===0&&C(Os)),t===e&&(i.charCodeAt(r)===42?(t=z,r++):(t=e,A===0&&C(Qr)),t===e&&(i.charCodeAt(r)===43?(t=Nr,r++):(t=e,A===0&&C(vt)))),t}function nE(){var t,u,o,a;return t=pr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=pt,r++):(u=e,A===0&&C(ws)),u!==e&&(U=t,u=Rr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(mn)),u!==e?(o=oE(),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,A===0&&C(ae)),u!==e?(o=No(),o!==e?(i.charCodeAt(r)===41?(a=M,r++):(a=e,A===0&&C(ue)),a!==e?(U=t,t=mc(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function oE(){var t,u,o,a,c,h,E,x;if(t=bo(),t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){if(o=r,a=bo(),a!==e){for(c=[],h=r,i.charCodeAt(r)===124?(E=Se,r++):(E=e,A===0&&C(Jt)),E!==e?(x=bo(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);h!==e;)c.push(h),h=r,i.charCodeAt(r)===124?(E=Se,r++):(E=e,A===0&&C(Jt)),E!==e?(x=bo(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);a=[a,c],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=M,r++):(a=e,A===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function bo(){var t,u,o;return t=pr(),t===e&&(i.charCodeAt(r)===97?(t=pt,r++):(t=e,A===0&&C(ws)),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,A===0&&C(us)),u!==e?(o=pr(),o===e&&(i.charCodeAt(r)===97?(o=pt,r++):(o=e,A===0&&C(ws))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function eh(){var t,u;return t=r,u=uE(),u!==e&&(U=t,u=nl(u)),t=u,t===e&&(t=aE()),t}function aE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===91?(o=Ui,r++):(o=e,A===0&&C(Us)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=gl(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,A===0&&C(li)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=mo(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function rh(){var t,u;return t=r,u=fE(),u!==e&&(U=t,u=fi(u)),t=u,t===e&&(t=lE()),t}function lE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===91?(o=Ui,r++):(o=e,A===0&&C(Us)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=ml(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,A===0&&C(li)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=ca(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function uE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=_s(),h!==e)for(;h!==e;)c.push(h),h=_s();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=ol(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function fE(){var t,u,o,a,c,h,E,x,T;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Hs(),h!==e)for(;h!==e;)c.push(h),h=Hs();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,A===0&&C(ue)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=mf(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function _s(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=To(),o===e&&(o=eh()),o!==e?(U=t,t=xf(o)):(r=t,t=e),t}function Hs(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=To(),o===e&&(o=rh()),o!==e?(U=t,t=Cf(o)):(r=t,t=e),t}function To(){var t;return t=nr(),t===e&&(t=pE()),t}function zi(){var t;return t=nr(),t===e&&(t=pr()),t}function nr(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=bE(),o===e&&(o=TE()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=t,t=al(o)}else r=t,t=e;return t}function pE(){var t;return t=pr(),t===e&&(t=yl(),t===e&&(t=Rl(),t===e&&(t=wl(),t===e&&(t=AE(),t===e&&(t=jt()))))),t}function se(){var t,u,o,a,c,h,E,x;if(t=r,u=Il(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,A===0&&C(Zi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Il(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,A===0&&C(Zi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Il(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}U=t,t=Af(u,o)}else r=t,t=e;return t}function Il(){var t,u,o,a,c,h,E,x;if(t=r,u=Nl(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,A===0&&C(mt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Nl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,A===0&&C(mt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Nl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}U=t,t=xc(u,o)}else r=t,t=e;return t}function Nl(){var t,u,o,a,c,h,E,x,T,S;if(t=r,u=Fr(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,A===0&&C(kt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Ut?(h=Ut,r+=2):(h=e,A===0&&C(bi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===60?(h=Ue,r++):(h=e,A===0&&C(fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,A===0&&C(Jn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===kr?(h=kr,r+=2):(h=e,A===0&&C($o)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,A===0&&C(Gs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,A===0&&C(ps)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ji(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,3).toLowerCase()===rs?(h=i.substr(r,3),r+=3):(h=e,A===0&&C(Fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ps)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Ji(),S!==e?(c=[c,h,E,x,T,S],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,A===0&&C(kt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===Ut?(h=Ut,r+=2):(h=e,A===0&&C(bi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===60?(h=Ue,r++):(h=e,A===0&&C(fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,A===0&&C(Jn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===kr?(h=kr,r+=2):(h=e,A===0&&C($o)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,A===0&&C(Gs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,A===0&&C(ps)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ji(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,3).toLowerCase()===rs?(h=i.substr(r,3),r+=3):(h=e,A===0&&C(Fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ps)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Ji(),S!==e?(c=[c,h,E,x,T,S],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}U=t,t=ll(u,o)}else r=t,t=e;return t}function Fr(){var t,u,o,a,c,h,E,x,T,S,F;if(t=r,u=Ys(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,A===0&&C(vt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ys(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Wr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ys(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,c=Sl(),c===e&&(c=Ll()),c!==e){for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,A===0&&C(Qr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Mr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,A===0&&C(Qr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Mr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}c=[c,h],a=c}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,A===0&&C(vt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ys(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Wr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ys(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,c=Sl(),c===e&&(c=Ll()),c!==e){for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,A===0&&C(Qr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Mr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,A===0&&C(Qr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();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=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Mr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Br(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}c=[c,h],a=c}else r=a,a=e}}U=t,t=If(u,o)}else r=t,t=e;return t}function Ys(){var t,u,o,a,c,h,E,x;if(t=r,u=Br(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,A===0&&C(Qr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Br(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Mr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Br(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,A===0&&C(Qr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Br(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Mr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Br(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}}U=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,A===0&&C(mn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=yo(),a!==e?(U=t,t=Nf(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,A===0&&C(vt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=yo(),a!==e?(U=t,t=Cc(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,A===0&&C(Wr)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=yo(),a!==e?(U=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=yo())}}return t}function yo(){var t,u;return t=bl(),t===e&&(t=Tl(),t===e&&(t=mE(),t===e&&(t=r,u=yl(),u!==e&&(U=t,u=Ac(u)),t=u,t===e&&(t=r,u=Rl(),u!==e&&(U=t,u=ha(u)),t=u,t===e&&(t=r,u=wl(),u!==e&&(U=t,u=Ic(u)),t=u,t===e&&(t=r,u=nr(),u!==e&&(U=t,u=Pr(u)),t=u)))))),t}function bl(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=se(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===41?(h=M,r++):(h=e,A===0&&C(ue)),h!==e?(U=t,t=Nc(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Tl(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le;if(t=vE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===ts?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(dp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=bc(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,A===0&&C(Za)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=Tc(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()===Vr?(u=i.substr(r,11),r+=11):(u=e,A===0&&C(Au)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=t,t=da(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()===Ei?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(ka)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===Is?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Qa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=nr(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===en?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(xn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===rn?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Jo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===Go?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Iu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=r,i.charCodeAt(r)===40?(c=W,r++):(c=e,A===0&&C(ae)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();i.charCodeAt(r)===41?(T=M,r++):(T=e,A===0&&C(ue)),T!==e?(c=[c,h,E,x,T],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=jt()),a!==e?(U=t,t=m(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===tn?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(zo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(U=t,t=I()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Ta?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(gp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===Pt?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Ep)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=R(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,A===0&&C(vp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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,5).toLowerCase()===sn?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(_a)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=O(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()===Fo?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Ha)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ji(),a!==e?(U=t,t=k(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=hE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===Zn?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Cn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=X(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=dE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===nn?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(zn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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,A===0&&C(mp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===on?(u=i.substr(r,14),r+=14):(u=e,A===0&&C(jo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===Fi?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(Nu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=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()===Bo?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(jn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=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,A===0&&C(bu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=t,t=me(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()===an?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Bs)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=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()===De?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(qn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=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,A===0&&C(Ds)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===ge?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Kn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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,3).toLowerCase()===ye?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(An)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=Fe(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()===vr?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Tu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=qe(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,A===0&&C(yu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=mr(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()===je?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Ru)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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,A===0&&C(xp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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,A===0&&C(Vs)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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,A===0&&C(Ms)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(U=t,t=Dt()):(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,A===0&&C(Cp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(U=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,A===0&&C(Ap)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=jt(),a!==e?(U=t,t=Vt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===mi?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ip)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===is?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Np)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===ya?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(bp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===ce?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Tp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===Ye?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Qt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===Ra?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(tt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ji(),a!==e?(U=t,t=Bn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===Sa?(u=i.substr(r,2),r+=2):(u=e,A===0&&C(Tt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(i.charCodeAt(r)===44?(Q=Be,r++):(Q=e,A===0&&C(Ze)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=se(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();i.charCodeAt(r)===41?(Le=M,r++):(Le=e,A===0&&C(ue)),Le!==e?(U=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()===Vo?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(it)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=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()===Mo?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(eo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=t,t=Si(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()===zl?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(yp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();i.charCodeAt(r)===41?(Q=M,r++):(Q=e,A===0&&C(ue)),Q!==e?(U=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()===Xe?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(qo)),u===e&&(i.substr(r,5).toLowerCase()===Yf?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Rp))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=ul(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()===jl?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Sp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=Hi(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()===Wo?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Lp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=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()===xi?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Ya)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=M,r++):(x=e,A===0&&C(ue)),x!==e?(U=t,t=Zs(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=cE(),t===e&&(t=gE(),t===e&&(t=EE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function cE(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne;if(t=r,i.substr(r,5).toLowerCase()===ql?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Su)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(Q=r,i.charCodeAt(r)===44?(ne=Be,r++):(ne=e,A===0&&C(Ze)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();Ne=se(),Ne!==e?(ne=[ne,de,Ne],Q=ne):(r=Q,Q=e)}else r=Q,Q=e;for(Q===e&&(Q=null),ne=[],de=p();de!==e;)ne.push(de),de=p();i.charCodeAt(r)===41?(de=M,r++):(de=e,A===0&&C(ue)),de!==e?(U=t,t=yt(h,S,Q)):(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 hE(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne;if(t=r,i.substr(r,6).toLowerCase()===Kl?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Xa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(Q=r,i.charCodeAt(r)===44?(ne=Be,r++):(ne=e,A===0&&C(Ze)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();Ne=se(),Ne!==e?(ne=[ne,de,Ne],Q=ne):(r=Q,Q=e)}else r=Q,Q=e;for(Q===e&&(Q=null),ne=[],de=p();de!==e;)ne.push(de),de=p();i.charCodeAt(r)===41?(de=M,r++):(de=e,A===0&&C(ue)),de!==e?(U=t,t=Dn(h,S,Q)):(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 dE(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le,er,Ht,Ml;if(t=r,i.substr(r,7).toLowerCase()===kn?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(wp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=se(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===44?(x=Be,r++):(x=e,A===0&&C(Ze)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();if(i.charCodeAt(r)===44?(Q=Be,r++):(Q=e,A===0&&C(Ze)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=se(),de!==e){for(Ne=[],Le=p();Le!==e;)Ne.push(Le),Le=p();if(Le=r,i.charCodeAt(r)===44?(er=Be,r++):(er=e,A===0&&C(Ze)),er!==e){for(Ht=[],Ml=p();Ml!==e;)Ht.push(Ml),Ml=p();Ml=se(),Ml!==e?(er=[er,Ht,Ml],Le=er):(r=Le,Le=e)}else r=Le,Le=e;for(Le===e&&(Le=null),er=[],Ht=p();Ht!==e;)er.push(Ht),Ht=p();i.charCodeAt(r)===41?(Ht=M,r++):(Ht=e,A===0&&C(ue)),Ht!==e?(U=t,t=fl(h,S,de,Le)):(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 gE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===Qn?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(ro)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=ot(),a!==e?(U=t,t=Ad(a)):(r=t,t=e)}else r=t,t=e;return t}function EE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3).toLowerCase()===rs?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Fs)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,6).toLowerCase()===Qn?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ro)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=ot(),h!==e?(U=t,t=Id(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function vE(){var t,u,o,a,c,h,E,x,T,S,F,Q,ne,de,Ne,Le,er;if(t=r,i.substr(r,5).toLowerCase()===eu?(u=i.substr(r,5),r+=5):(u=e,A===0&&C($a)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,A===0&&C(Qr)),x===e&&(x=se()),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=t,t=Nd(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()===La?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Lu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=t,t=bd(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()===ru?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(wu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=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()===tu?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ja)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=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()===iu?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Ou)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=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,6).toLowerCase()===su?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(to)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,A===0&&C(ue)),S!==e){for(F=[],Q=p();Q!==e;)F.push(Q),Q=p();U=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,12).toLowerCase()===Xf?(u=i.substr(r,12),r+=12):(u=e,A===0&&C(Op)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(gt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=r,S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===59?(F=ur,r++):(F=e,A===0&&C($t)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();if(i.substr(r,9).toLowerCase()===$f?(ne=i.substr(r,9),r+=9):(ne=e,A===0&&C(Ko)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(i.charCodeAt(r)===61?(Ne=Tr,r++):(Ne=e,A===0&&C(kt)),Ne!==e){for(Le=[],er=p();er!==e;)Le.push(er),er=p();er=th(),er!==e?(S=[S,F,Q,ne,de,Ne,Le,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=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===41?(F=M,r++):(F=e,A===0&&C(ue)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();U=t,t=Ld(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 mE(){var t,u,o,a;if(t=r,u=pr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=zc(),a===e&&(a=null),U=t,t=wd(u,a)}else r=t,t=e;return t}function yl(){var t,u,o,a,c;return t=r,u=th(),u!==e?(o=yE(),o===e&&(o=r,i.substr(r,2)===Po?(a=Po,r+=2):(a=e,A===0&&C(ki)),a!==e?(c=pr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),U=t,t=Od(u,o)):(r=t,t=e),t}function Rl(){var t;return t=xE(),t===e&&(t=Sl(),t===e&&(t=Ll())),t}function xE(){var t;return t=Fl(),t===e&&(t=Gl(),t===e&&(t=Xs())),t}function Sl(){var t;return t=LE(),t===e&&(t=SE(),t===e&&(t=RE())),t}function Ll(){var t;return t=UE(),t===e&&(t=OE(),t===e&&(t=wE())),t}function wl(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Bi?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Uu)),u!==e&&(U=t,u=Ud()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===Jf?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Up)),u!==e&&(U=t,u=Gd()),t=u),t}function th(){var t;return t=BE(),t===e&&(t=DE(),t===e&&(t=GE(),t===e&&(t=FE()))),t}function pr(){var t,u;return t=r,u=Ol(),u!==e&&(U=t,u=Fd(u)),t=u,t===e&&(t=r,u=CE(),u!==e&&(U=t,u=Bd(u)),t=u),t}function CE(){var t,u;return t=r,u=IE(),u!==e&&(U=t,u=Dd(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(U=t,u=Vd(u)),t=u),t}function AE(){var t,u;return t=r,u=NE(),u!==e&&(U=t,u=Md(u)),t=u,t===e&&(t=r,u=ME(),u!==e&&(U=t,u=Wd()),t=u),t}function Ol(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Ue,r++):(u=e,A===0&&C(fs)),u!==e){for(o=[],ko.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ea));a!==e;)o.push(a),ko.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ea));i.charCodeAt(r)===62?(a=ni,r++):(a=e,A===0&&C(Jn)),a!==e?(U=t,t=Pd(o)):(r=t,t=e)}else r=t,t=e;return t}function Ul(){var t,u,o;return t=r,u=WE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(yr)),o!==e?(U=t,t=Zd(u)):(r=t,t=e),t}function IE(){var t,u,o;return t=r,u=Ul(),u!==e?(o=PE(),o!==e?(U=t,t=kd(u,o)):(r=t,t=e)):(r=t,t=e),t}function NE(){var t,u,o,a,c,h,E;if(t=r,i.substr(r,2)===ln?(u=ln,r+=2):(u=e,A===0&&C(lr)),u!==e)if(o=ji(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We))),o!==e){for(a=[],c=Xr(),c===e&&(c=r,i.charCodeAt(r)===46?(h=Re,r++):(h=e,A===0&&C($e)),h!==e?(E=Xr(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));c!==e;)a.push(c),c=Xr(),c===e&&(c=r,i.charCodeAt(r)===46?(h=Re,r++):(h=e,A===0&&C($e)),h!==e?(E=Xr(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));U=t,t=Qd()}else r=t,t=e;else r=t,t=e;return t}function bE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=ct,r++):(u=e,A===0&&C(Os)),u!==e?(o=nh(),o!==e?(U=t,t=_d(o)):(r=t,t=e)):(r=t,t=e),t}function TE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ns,r++):(u=e,A===0&&C(Ti)),u!==e?(o=nh(),o!==e?(U=t,t=Hd(o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o,a,c,h,E,x;if(t=r,i.charCodeAt(r)===64?(u=wa,r++):(u=e,A===0&&C(yi)),u!==e){if(o=[],Ua.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ra)),a!==e)for(;a!==e;)o.push(a),Ua.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ra));else o=e;if(o!==e){if(a=[],c=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Wr)),h!==e){if(E=[],ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(Qi)),x!==e)for(;x!==e;)E.push(x),ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(Qi));else E=e;E!==e?(h=[h,E],c=h):(r=c,c=e)}else r=c,c=e;for(;c!==e;)if(a.push(c),c=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Wr)),h!==e){if(E=[],ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(Qi)),x!==e)for(;x!==e;)E.push(x),ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C(Qi));else E=e;E!==e?(h=[h,E],c=h):(r=c,c=e)}else r=c,c=e;U=t,t=Yd(o,a)}else r=t,t=e}else r=t,t=e;return t}function Xs(){var t,u,o;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We));else u=e;return u!==e&&(U=t,u=Xd()),t=u,t}function Gl(){var t,u,o,a,c;for(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We));o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We));if(i.charCodeAt(r)===46?(o=Re,r++):(o=e,A===0&&C($e)),o!==e){if(a=[],He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(We)),c!==e)for(;c!==e;)a.push(c),He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(We));else a=e;a!==e?(U=t,t=$d()):(r=t,t=e)}else r=t,t=e;return t}function Fl(){var t,u,o,a,c;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=Re,r++):(o=e,A===0&&C($e)),o!==e){for(a=[],He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(We));c!==e;)a.push(c),He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(We));c=Bl(),c!==e?(U=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=Re,r++):(u=e,A===0&&C($e)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We));else o=e;o!==e?(a=Bl(),a!==e?(U=t,t=zd()):(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,A===0&&C(We)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(We));else u=e;u!==e?(o=Bl(),o!==e?(U=t,t=jd()):(r=t,t=e)):(r=t,t=e)}}return t}function RE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,A===0&&C(vt)),u!==e?(o=Xs(),o!==e?(U=t,t=qd(o)):(r=t,t=e)):(r=t,t=e),t}function SE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,A===0&&C(vt)),u!==e?(o=Gl(),o!==e?(U=t,t=Kd(o)):(r=t,t=e)):(r=t,t=e),t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,A===0&&C(vt)),u!==e?(o=Fl(),o!==e?(U=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)===45?(u=tr,r++):(u=e,A===0&&C(Wr)),u!==e?(o=Xs(),o!==e?(U=t,t=rg(o)):(r=t,t=e)):(r=t,t=e),t}function OE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Wr)),u!==e?(o=Gl(),o!==e?(U=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)===45?(u=tr,r++):(u=e,A===0&&C(Wr)),u!==e?(o=Fl(),o!==e?(U=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function Bl(){var t,u,o,a,c;if(t=r,ai.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Gu)),u!==e){if(zf.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Gp)),o===e&&(o=null),a=[],He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(We)),c!==e)for(;c!==e;)a.push(c),He.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(We));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function GE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Di,r++):(u=e,A===0&&C(ui)),u!==e){for(o=[],Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ws)),a===e&&(a=zt());a!==e;)o.push(a),Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ws)),a===e&&(a=zt());i.charCodeAt(r)===39?(a=Di,r++):(a=e,A===0&&C(ui)),a!==e?(U=t,t=sg(o)):(r=t,t=e)}else r=t,t=e;return t}function FE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=bs,r++):(u=e,A===0&&C(cs)),u!==e){for(o=[],_n.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(io)),a===e&&(a=zt());a!==e;)o.push(a),_n.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(io)),a===e&&(a=zt());i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs)),a!==e?(U=t,t=ng(o)):(r=t,t=e)}else r=t,t=e;return t}function BE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3)===Ts?(u=Ts,r+=3):(u=e,A===0&&C(Ri)),u!==e){for(o=[],a=r,i.substr(r,2)===Vi?(c=Vi,r+=2):(c=e,A===0&&C(ta)),c===e&&(i.charCodeAt(r)===39?(c=Di,r++):(c=e,A===0&&C(ui))),c===e&&(c=null),Qo.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(ia)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Vi?(c=Vi,r+=2):(c=e,A===0&&C(ta)),c===e&&(i.charCodeAt(r)===39?(c=Di,r++):(c=e,A===0&&C(ui))),c===e&&(c=null),Qo.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(ia)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);i.substr(r,3)===Ts?(a=Ts,r+=3):(a=e,A===0&&C(Ri)),a!==e?(U=t,t=og(o)):(r=t,t=e)}else r=t,t=e;return t}function DE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3)===ss?(u=ss,r+=3):(u=e,A===0&&C(za)),u!==e){for(o=[],a=r,i.substr(r,2)===ys?(c=ys,r+=2):(c=e,A===0&&C(In)),c===e&&(i.charCodeAt(r)===34?(c=bs,r++):(c=e,A===0&&C(cs))),c===e&&(c=null),Ci.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(so)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===ys?(c=ys,r+=2):(c=e,A===0&&C(In)),c===e&&(i.charCodeAt(r)===34?(c=bs,r++):(c=e,A===0&&C(cs))),c===e&&(c=null),Ci.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(so)),h===e&&(h=zt()),h!==e?(c=[c,h],a=c):(r=a,a=e);i.substr(r,3)===ss?(a=ss,r+=3):(a=e,A===0&&C(za)),a!==e?(U=t,t=ag(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=Zo,r++):(u=e,A===0&&C(sa)),u!==e?(Fa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Fp)),o!==e?(U=t,t=lg()):(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,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.charCodeAt(r)===41?(a=M,r++):(a=e,A===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function p(){var t;return t=VE(),t===e&&(t=Dl(),t===e&&(t=Vl())),t}function Dl(){var t;return Mi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Fu)),t}function Vl(){var t;return _o.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Bp)),t}function Ro(){var t;return Ba.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Dp)),t}function ih(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=un,r++):(u=e,A===0&&C(hs)),u!==e){for(o=[],a=Ro();a!==e;)o.push(a),a=Ro();a=Vl(),a!==e?(U=t,t=ug()):(r=t,t=e)}else r=t,t=e;return t}function VE(){var t,u,o,a,c,h;for(t=r,u=Vl(),u===e&&(u=null),o=[],a=Dl();a!==e;)o.push(a),a=Dl();if(i.charCodeAt(r)===35?(a=un,r++):(a=e,A===0&&C(hs)),a!==e){for(c=[],h=Ro();h!==e;)c.push(h),h=Ro();U=t,t=fg()}else r=t,t=e;return t}function ME(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=Ui,r++):(u=e,A===0&&C(Us)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.charCodeAt(r)===93?(a=ti,r++):(a=e,A===0&&C(li)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function sh(){var t;return cn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Bu)),t===e&&(jf.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Vp)),t===e&&(qf.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Mp)),t===e&&(Kf.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Du)),t===e&&(ep.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Nn)),t===e&&(ou.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(ja)),t===e&&(au.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(na)),t===e&&(rp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Vu)),t===e&&(tp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(qa)),t===e&&(ip.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Mu)),t===e&&(sp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Wp)),t===e&&(lu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Wu)),t===e&&(np.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(xt)))))))))))))),t}function ji(){var t;return t=sh(),t===e&&(i.charCodeAt(r)===95?(t=fn,r++):(t=e,A===0&&C(bn))),t}function nh(){var t,u,o,a;if(t=r,u=ji(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We))),u!==e){for(o=[],a=ji(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We)),a===e&&(hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Tn)),a===e&&(os.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Rn))))));a!==e;)o.push(a),a=ji(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(We)),a===e&&(hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Tn)),a===e&&(os.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Rn))))));U=t,t=pg()}else r=t,t=e;return t}function Xr(){var t;return t=ji(),t===e&&(i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Wr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(We)),t===e&&(hn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Tn)),t===e&&(os.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(yn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Rn))))))),t}function WE(){var t,u,o,a,c,h;if(t=r,u=sh(),u!==e){for(o=[],a=Xr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e?(h=Xr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Xr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e?(h=Xr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));U=t,t=cg()}else r=t,t=e;return t}function PE(){var t,u,o,a,c,h;if(t=r,u=ji(),u===e&&(i.charCodeAt(r)===58?(u=Xt,r++):(u=e,A===0&&C(yr)),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(We)),u===e&&(u=$s()))),u!==e){for(o=[],a=Xr(),a===e&&(i.charCodeAt(r)===58?(a=Xt,r++):(a=e,A===0&&C(yr)),a===e&&(a=$s())),a===e&&(a=r,i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e?(h=Xr(),h===e&&(i.charCodeAt(r)===58?(h=Xt,r++):(h=e,A===0&&C(yr)),h===e&&(h=$s())),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Xr(),a===e&&(i.charCodeAt(r)===58?(a=Xt,r++):(a=e,A===0&&C(yr)),a===e&&(a=$s())),a===e&&(a=r,i.charCodeAt(r)===46?(c=Re,r++):(c=e,A===0&&C($e)),c!==e?(h=Xr(),h===e&&(i.charCodeAt(r)===58?(h=Xt,r++):(h=e,A===0&&C(yr)),h===e&&(h=$s())),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));U=t,t=hg()}else r=t,t=e;return t}function $s(){var t;return t=ZE(),t===e&&(t=kE()),t}function ZE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=pn,r++):(u=e,A===0&&C(ds)),u!==e?(o=oh(),o!==e?(a=oh(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function oh(){var t;return He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(We)),t===e&&(op.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(oa)),t===e&&(ap.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pu)))),t}function kE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Zo,r++):(u=e,A===0&&C(sa)),u!==e?(i.charCodeAt(r)===95?(o=fn,r++):(o=e,A===0&&C(bn)),o===e&&(i.charCodeAt(r)===126?(o=Oa,r++):(o=e,A===0&&C(Zu)),o===e&&(i.charCodeAt(r)===46?(o=Re,r++):(o=e,A===0&&C($e)),o===e&&(i.charCodeAt(r)===45?(o=tr,r++):(o=e,A===0&&C(Wr)),o===e&&(i.charCodeAt(r)===33?(o=ri,r++):(o=e,A===0&&C(mn)),o===e&&(i.charCodeAt(r)===36?(o=Ns,r++):(o=e,A===0&&C(Ti)),o===e&&(i.charCodeAt(r)===38?(o=nu,r++):(o=e,A===0&&C(ku)),o===e&&(i.charCodeAt(r)===39?(o=Di,r++):(o=e,A===0&&C(ui)),o===e&&(i.charCodeAt(r)===40?(o=W,r++):(o=e,A===0&&C(ae)),o===e&&(i.charCodeAt(r)===41?(o=M,r++):(o=e,A===0&&C(ue)),o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,A===0&&C(Qr)),o===e&&(i.charCodeAt(r)===43?(o=Nr,r++):(o=e,A===0&&C(vt)),o===e&&(i.charCodeAt(r)===44?(o=Be,r++):(o=e,A===0&&C(Ze)),o===e&&(i.charCodeAt(r)===59?(o=ur,r++):(o=e,A===0&&C($t)),o===e&&(i.charCodeAt(r)===58?(o=Xt,r++):(o=e,A===0&&C(yr)),o===e&&(i.charCodeAt(r)===61?(o=Tr,r++):(o=e,A===0&&C(kt)),o===e&&(i.charCodeAt(r)===47?(o=rr,r++):(o=e,A===0&&C(Mr)),o===e&&(i.charCodeAt(r)===63?(o=ct,r++):(o=e,A===0&&C(Os)),o===e&&(i.charCodeAt(r)===35?(o=un,r++):(o=e,A===0&&C(hs)),o===e&&(i.charCodeAt(r)===64?(o=wa,r++):(o=e,A===0&&C(yi)),o===e&&(i.charCodeAt(r)===37?(o=pn,r++):(o=e,A===0&&C(ds)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let ah={};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(Co=w(),Co!==e&&r===i.length)return Co;throw Co!==e&&r<i.length&&C(dg()),Rc(pl,At<i.length?i.charAt(At):null,At<i.length?ks(At,At+1):ks(At,At))}var Oo,ba,Pn,Mv=" ",vd=0;function xd(i,v=2){if(Mv=" ".repeat(v),Oo=[],ba=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)U1(i.selectQuery);else if(i.constructQuery)G1(i.constructQuery);else if(i.askQuery)S1(i.askQuery);else if(i.describeQuery)L1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Oo[Oo.length-1]+=` ;
73
73
  `),w1(i.update[e]);for(i.values&&Pv(i.values);ba&&ba.length;)Oo[Oo.length-1]+=ba.shift().text;return Oo.join(`
74
- `)}var Cs=(i=1)=>{Pn+=Vv.repeat(i)},As=(i=1)=>{Pn=Pn.substr(0,Pn.length-Vv.length*i)},Ze=i=>{Oo.push(Pn+i)},wr=(i,v)=>{for(;ba&&ba.length&&ba[0].pos<v;)Oo[Oo.length-1]+=ba.shift().text;Ze(i)},S1=i=>{Ze("ASK {");let v=Oi(i.where);wr("}",v+1),Lh(i)},L1=i=>{let v=i.describe.map(ir).join(" ");if(Ze(`DESCRIBE ${v}`),Mv(i.from),i.where){Ze("WHERE {");let e=Oi(i.where);wr("}",e+1)}Lh(i)},w1=i=>{if(i.type==="insertdata")Ze("INSERT DATA {"),Cs(),Uo(i.insert),As(),Ze("}");else if(i.type==="deletedata")Ze("DELETE DATA {"),Cs(),Uo(i.delete),As(),Ze("}");else if(i.type==="deletewhere")Ze("DELETE WHERE {"),Cs(),Uo(i.delete),As(),Ze("}");else if(i.type==="modify"){i.with&&Ze(`WITH ${ir(i.with)}`),i.delete&&(Ze("DELETE {"),Cs(),Uo(i.delete),As(),Ze("}")),i.insert&&(Ze("INSERT {"),Cs(),Uo(i.insert),As(),Ze("}")),i.using&&i.using.forEach(e=>{Ze(`USING ${O1(e)}`)}),Ze("WHERE {");let v=Oi(i.where);wr("}",v+1)}else if(i.type==="add"){let v=Qf(i.graphs[0]),e=Qf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Ze(`ADD${N}${v} TO ${e}`)}else if(i.type==="move"){let v=Qf(i.graphs[0]),e=Qf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Ze(`MOVE${N}${v} TO ${e}`)}else if(i.type==="copy"){let v=Qf(i.graphs[0]),e=Qf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Ze(`COPY${N}${v} TO ${e}`)}else if(i.type==="load"){let v=" ";i.silent&&(v=" SILENT "),Ze(`LOAD${v}${Ki(i.sourceGraph)}`)}else if(i.type==="clear"){let v=" ";i.silent&&(v=" SILENT "),Ze(`CLEAR${v}${$A(i.destinyGraph)}`)}else if(i.type==="drop"){let v=" ";i.silent&&(v=" SILENT "),Ze(`DROP${v}${$A(i.destinyGraph)}`)}else if(i.type==="create"){let v=" ";i.silent&&(v=" SILENT "),Ze(`CREATE${v}GRAPH ${Ki(i.destinyGraph)}`)}},O1=i=>i.named?`NAMED ${Ki(i.iri)}`:Ki(i.iri),Qf=i=>i==="default"?"DEFAULT":Ki(i),$A=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${Ki(i)}`,Oi=(i,v=0)=>(Cs(),i.type==="SubSelect"?(Dv(i),v=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{XA(e),v=e.location.end.offset}):i.forEach(e=>{XA(e),v=e.location.end.offset}),As(),v),U1=i=>{let v=i.selectClause.location.start.offset;wr(YA(i.selectClause),v);let e=i.selectClause.location.end.offset,N=Mv(i.selectClause.from);N>e&&(e=N),wr("WHERE {",e+1),e=Oi(i.whereClause,e),wr("}",e+1),Lh(i)},Dv=i=>{let v=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;wr(YA(i.selectClause),v),wr("WHERE {",e+1),e=Oi(i.whereClause,e),wr("}",e+1),i.values&&Pv(i.values),Lh(i)},Mv=i=>{if(i){let v;return i.forEach(e=>{e.graph?v=F1(e.graph):e.namedGraph&&(v=B1(e.namedGraph))}),v}},Lh=i=>{i.group&&Ze(D1(i.group)),i.having&&Ze(`HAVING ${yr(i.having[0])}`),i.orderBy&&Ze("ORDER BY "+V1(i.orderBy)),i.limitOffset?.forEach(v=>{v.limit?Ze(`LIMIT ${v.limit}`):v.offset&&Ze(`OFFSET ${v.offset}`)})},G1=i=>{i.template?(wr("CONSTRUCT {",i.location.start.offset),Cs(),Uo(i.template.triplePattern),As(),Ze("}")):Ze("CONSTRUCT"),Mv(i.from),Ze("WHERE {");let v=Oi(i.where);wr("}",v+1),Lh(i)},F1=i=>{let v=Ki(i);if(v!=null){let e=i.location.start.offset,N=i.location.end.offset;return wr("FROM "+v,e),N}},B1=i=>{let v=Ki(i);if(v!=null){let e=i.location.start.offset,N=i.location.end.offset;return wr("FROM NAMED "+v,e),N}},XA=i=>{if(vd=i.location.start.offset,i.type==="SubSelect"){Ze("{"),Cs(),Dv(i),As(),Ze("}");return}if(i.graphPattern&&i.graph){wr(`GRAPH ${ir(i.graph)} {`,vd);let v=Oi(i);wr("}",v+1);return}if(i.graphPattern){Ze("{");let v=Oi(i);wr("}",v+1);return}if(i.data){Pv(i);return}if(i.triplePattern){Uo(i.triplePattern);return}if(i.union){for(let v=0;v<i.union.length;v++)v>0&&Ze("UNION"),Ze("{"),Oi(i.union[v]),wr("}",i.union[v].location.end.offset+2);return}if(i.optional){wr("OPTIONAL {",vd);let v=Oi(i.optional);wr("}",v+1);return}if(i.minus){wr("MINUS {",vd);let v=Oi(i.minus);wr("}",v+1);return}if(i.filter){P1(i);return}if(i.bind){Ze(`BIND (${yr(i.bind)} AS ${Jl(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let v=" ";i.silent&&(v=" SILENT "),Ze(`SERVICE${v}${ir(i.service)} {`),i.pattern.type==="SubSelect"?(Cs(),Dv(i.pattern),As()):Oi(i.pattern),Ze("}");return}if(i.functionRef){let v=i.args.map(yr).join(", ");Ze(Ki(i.functionRef)+`(${v})`)}},D1=i=>{let v=["GROUP BY"],e=0;return i.forEach(N=>{v[e].length>80?(e++,v[e]=" "):v[e]+=" ",v[e]+=ir(N)}),v.join(`
75
- `)},V1=i=>{let v=[];return i.forEach(e=>{let N;e.type==="Var"?N=Jl(e):N=yr(e),e.asc?v.push(`ASC${N}`):e.desc?v.push(`DESC${N}`):v.push(N)}),v.join(" ")},YA=i=>{let v=[];v[0]="SELECT",i.distinct&&(v[0]+=" DISTINCT"),i.reduced&&(v[0]+=" REDUCED");let e=0;return i.var.forEach(N=>{v[e].length>80?(e++,v[e]=" "):v[e]+=" ",v[e]+=M1(N)}),v.join(`
76
- `)},M1=i=>{if(i.varname)return Jl(i);if(i.as)return`(${yr(i.expression)} AS ${Jl(i.as)})`;if(i==="*")return"*"},P1=i=>{if(i.filter.notexists){Ze("FILTER NOT EXISTS {");let v=Oi(i.filter.notexists);wr("}",v+1)}else if(i.filter.exists){Ze("FILTER EXISTS {");let v=Oi(i.filter.exists);wr("}",v+1)}else wr(`FILTER ${yr(i.filter)}`,i.location.start.offset)},Uo=i=>{i.forEach(v=>{v.graph?(wr(`GRAPH ${ir(v.graph)} {`,v.graph.location.start.offset),Cs(),Uo(v.triplePattern),As(),Ze("}")):v.triplePattern?Uo(v.triplePattern):v.properties?W1(v):wr(`[${_1(v.subject.blankNodeProperties)}] .`,v.subject.location.start.offset)})},W1=i=>{let v=ir(i.subject),e,N;i.properties.forEach(R=>{e?(wr(`${e} ;`,N),e=" ".repeat(v.length)+` ${ir(R.predicate)} ${ir(R.objects)}`,R.predicate.location?N=R.predicate.location.start.offset:N=R.predicate.value.location.start.offset):(e=`${v} ${ir(R.predicate)} ${ir(R.objects)}`,N=i.subject.location.start.offset)}),wr(`${e} .`,N)},md=i=>{let v="";return i.forEach(e=>{v&&(v+=" "),e.graph?(v+=`GRAPH ${ir(e.graph)} { `,v+=md(e.triplePattern),v+=" }"):e.triplePattern?v+=md(e.triplePattern):(v+=k1(e),(i.length>1||e.properties.length>1)&&(v+=" ."))}),v},k1=i=>{let v=ir(i.subject),e;return i.properties.forEach(N=>{e?e+=` ; ${ir(N.predicate)} ${ir(N.objects)}`:e=`${v} ${ir(N.predicate)} ${ir(N.objects)}`}),e},Z1=(i,v)=>{if(i.length===1&&!v){let R=i[0];return` ${ir(R.predicate)} ${ir(R.objects)}`}Cs();let e="",N=Pn+" ".repeat(2);return i.forEach(R=>{e?(e+=` ;
77
- `,e+=`${N} ${ir(R.predicate)} ${ir(R.objects,!0)}`):(e+=`
78
- ${N}`,e+=` ${ir(R.predicate)} ${ir(R.objects,!0)}`)}),e+=`
79
- ${Pn}`,As(),e},_1=i=>{if(i.length===1){let N=i[0];return` ${ir(N.predicate)} ${ir(N.objects)} `}let v="",e=Pn+" ".repeat(2);return i.forEach(N=>{v?(v+=` ;
74
+ `)}var Cs=(i=1)=>{Pn+=Mv.repeat(i)},As=(i=1)=>{Pn=Pn.substr(0,Pn.length-Mv.length*i)},Qe=i=>{Oo.push(Pn+i)},Or=(i,v)=>{for(;ba&&ba.length&&ba[0].pos<v;)Oo[Oo.length-1]+=ba.shift().text;Qe(i)},S1=i=>{Qe("ASK {");let v=Oi(i.where);Or("}",v+1),Lh(i)},L1=i=>{let v=i.describe.map(ir).join(" ");if(Qe(`DESCRIBE ${v}`),Wv(i.from),i.where){Qe("WHERE {");let e=Oi(i.where);Or("}",e+1)}Lh(i)},w1=i=>{if(i.type==="insertdata")Qe("INSERT DATA {"),Cs(),Uo(i.insert),As(),Qe("}");else if(i.type==="deletedata")Qe("DELETE DATA {"),Cs(),Uo(i.delete),As(),Qe("}");else if(i.type==="deletewhere")Qe("DELETE WHERE {"),Cs(),Uo(i.delete),As(),Qe("}");else if(i.type==="modify"){i.with&&Qe(`WITH ${ir(i.with)}`),i.delete&&(Qe("DELETE {"),Cs(),Uo(i.delete),As(),Qe("}")),i.insert&&(Qe("INSERT {"),Cs(),Uo(i.insert),As(),Qe("}")),i.using&&i.using.forEach(e=>{Qe(`USING ${O1(e)}`)}),Qe("WHERE {");let v=Oi(i.where);Or("}",v+1)}else if(i.type==="add"){let v=_f(i.graphs[0]),e=_f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`ADD${N}${v} TO ${e}`)}else if(i.type==="move"){let v=_f(i.graphs[0]),e=_f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`MOVE${N}${v} TO ${e}`)}else if(i.type==="copy"){let v=_f(i.graphs[0]),e=_f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`COPY${N}${v} TO ${e}`)}else if(i.type==="load"){let v=" ";i.silent&&(v=" SILENT "),Qe(`LOAD${v}${Ki(i.sourceGraph)}`)}else if(i.type==="clear"){let v=" ";i.silent&&(v=" SILENT "),Qe(`CLEAR${v}${XA(i.destinyGraph)}`)}else if(i.type==="drop"){let v=" ";i.silent&&(v=" SILENT "),Qe(`DROP${v}${XA(i.destinyGraph)}`)}else if(i.type==="create"){let v=" ";i.silent&&(v=" SILENT "),Qe(`CREATE${v}GRAPH ${Ki(i.destinyGraph)}`)}},O1=i=>i.named?`NAMED ${Ki(i.iri)}`:Ki(i.iri),_f=i=>i==="default"?"DEFAULT":Ki(i),XA=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${Ki(i)}`,Oi=(i,v=0)=>(Cs(),i.type==="SubSelect"?(Vv(i),v=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{$A(e),v=e.location.end.offset}):i.forEach(e=>{$A(e),v=e.location.end.offset}),As(),v),U1=i=>{let v=i.selectClause.location.start.offset;Or(JA(i.selectClause),v);let e=i.selectClause.location.end.offset,N=Wv(i.selectClause.from);N>e&&(e=N),Or("WHERE {",e+1),e=Oi(i.whereClause,e),Or("}",e+1),Lh(i)},Vv=i=>{let v=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;Or(JA(i.selectClause),v),Or("WHERE {",e+1),e=Oi(i.whereClause,e),Or("}",e+1),i.values&&Pv(i.values),Lh(i)},Wv=i=>{if(i){let v;return i.forEach(e=>{e.graph?v=F1(e.graph):e.namedGraph&&(v=B1(e.namedGraph))}),v}},Lh=i=>{i.group&&Qe(D1(i.group)),i.having&&Qe(`HAVING ${Sr(i.having[0])}`),i.orderBy&&Qe("ORDER BY "+V1(i.orderBy)),i.limitOffset?.forEach(v=>{v.limit?Qe(`LIMIT ${v.limit}`):v.offset&&Qe(`OFFSET ${v.offset}`)})},G1=i=>{i.template?(Or("CONSTRUCT {",i.location.start.offset),Cs(),Uo(i.template.triplePattern),As(),Qe("}")):Qe("CONSTRUCT"),Wv(i.from),Qe("WHERE {");let v=Oi(i.where);Or("}",v+1),Lh(i)},F1=i=>{let v=Ki(i);if(v!=null){let e=i.location.start.offset,N=i.location.end.offset;return Or("FROM "+v,e),N}},B1=i=>{let v=Ki(i);if(v!=null){let e=i.location.start.offset,N=i.location.end.offset;return Or("FROM NAMED "+v,e),N}},$A=i=>{if(vd=i.location.start.offset,i.type==="SubSelect"){Qe("{"),Cs(),Vv(i),As(),Qe("}");return}if(i.graphPattern&&i.graph){Or(`GRAPH ${ir(i.graph)} {`,vd);let v=Oi(i);Or("}",v+1);return}if(i.graphPattern){Qe("{");let v=Oi(i);Or("}",v+1);return}if(i.data){Pv(i);return}if(i.triplePattern){Uo(i.triplePattern);return}if(i.union){for(let v=0;v<i.union.length;v++)v>0&&Qe("UNION"),Qe("{"),Oi(i.union[v]),Or("}",i.union[v].location.end.offset+2);return}if(i.optional){Or("OPTIONAL {",vd);let v=Oi(i.optional);Or("}",v+1);return}if(i.minus){Or("MINUS {",vd);let v=Oi(i.minus);Or("}",v+1);return}if(i.filter){W1(i);return}if(i.bind){Qe(`BIND (${Sr(i.bind)} AS ${Jl(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let v=" ";i.silent&&(v=" SILENT "),Qe(`SERVICE${v}${ir(i.service)} {`),i.pattern.type==="SubSelect"?(Cs(),Vv(i.pattern),As()):Oi(i.pattern),Qe("}");return}if(i.functionRef){let v=i.args.map(Sr).join(", ");Qe(Ki(i.functionRef)+`(${v})`)}},D1=i=>{let v=["GROUP BY"],e=0;return i.forEach(N=>{v[e].length>80?(e++,v[e]=" "):v[e]+=" ",v[e]+=ir(N)}),v.join(`
75
+ `)},V1=i=>{let v=[];return i.forEach(e=>{let N;e.type==="Var"?N=Jl(e):N=Sr(e),e.asc?v.push(`ASC${N}`):e.desc?v.push(`DESC${N}`):v.push(N)}),v.join(" ")},JA=i=>{let v=[];v[0]="SELECT",i.distinct&&(v[0]+=" DISTINCT"),i.reduced&&(v[0]+=" REDUCED");let e=0;return i.var.forEach(N=>{v[e].length>80?(e++,v[e]=" "):v[e]+=" ",v[e]+=M1(N)}),v.join(`
76
+ `)},M1=i=>{if(i.varname)return Jl(i);if(i.as)return`(${Sr(i.expression)} AS ${Jl(i.as)})`;if(i==="*")return"*"},W1=i=>{if(i.filter.notexists){Qe("FILTER NOT EXISTS {");let v=Oi(i.filter.notexists);Or("}",v+1)}else if(i.filter.exists){Qe("FILTER EXISTS {");let v=Oi(i.filter.exists);Or("}",v+1)}else Or(`FILTER ${Sr(i.filter)}`,i.location.start.offset)},Uo=i=>{i.forEach(v=>{v.graph?(Or(`GRAPH ${ir(v.graph)} {`,v.graph.location.start.offset),Cs(),Uo(v.triplePattern),As(),Qe("}")):v.triplePattern?Uo(v.triplePattern):v.properties?P1(v):Or(`[${Q1(v.subject.blankNodeProperties)}] .`,v.subject.location.start.offset)})},P1=i=>{let v=ir(i.subject),e,N;i.properties.forEach(y=>{e?(Or(`${e} ;`,N),e=" ".repeat(v.length)+` ${ir(y.predicate)} ${ir(y.objects)}`,y.predicate.location?N=y.predicate.location.start.offset:N=y.predicate.value.location.start.offset):(e=`${v} ${ir(y.predicate)} ${ir(y.objects)}`,N=i.subject.location.start.offset)}),Or(`${e} .`,N)},md=i=>{let v="";return i.forEach(e=>{v&&(v+=" "),e.graph?(v+=`GRAPH ${ir(e.graph)} { `,v+=md(e.triplePattern),v+=" }"):e.triplePattern?v+=md(e.triplePattern):(v+=Z1(e),(i.length>1||e.properties.length>1)&&(v+=" ."))}),v},Z1=i=>{let v=ir(i.subject),e;return i.properties.forEach(N=>{e?e+=` ; ${ir(N.predicate)} ${ir(N.objects)}`:e=`${v} ${ir(N.predicate)} ${ir(N.objects)}`}),e},k1=(i,v)=>{if(i.length===1&&!v){let y=i[0];return` ${ir(y.predicate)} ${ir(y.objects)}`}Cs();let e="",N=Pn+" ".repeat(2);return i.forEach(y=>{e?(e+=` ;
77
+ `,e+=`${N} ${ir(y.predicate)} ${ir(y.objects,!0)}`):(e+=`
78
+ ${N}`,e+=` ${ir(y.predicate)} ${ir(y.objects,!0)}`)}),e+=`
79
+ ${Pn}`,As(),e},Q1=i=>{if(i.length===1){let N=i[0];return` ${ir(N.predicate)} ${ir(N.objects)} `}let v="",e=Pn+" ".repeat(2);return i.forEach(N=>{v?(v+=` ;
80
80
  `,v+=`${e}${ir(N.predicate)} ${ir(N.objects,!0)}`):(v+=`
81
81
  ${e}`,v+=`${ir(N.predicate)} ${ir(N.objects,!0)}`)}),v+=`
82
- ${Pn}`,v},Q1=i=>{let v=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=yr(i.expression),`COUNT(${v}${e})`}else{if(i.aggregateType==="sum")return`sum(${v}${yr(i.expression)})`;if(i.aggregateType==="min")return`MIN(${v}${yr(i.expression)})`;if(i.aggregateType==="max")return`MAX(${v}${yr(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${v}${yr(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${v}${yr(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${JA(i.separator)}`),`GROUP_CONCAT(${v}${yr(i.expression)}${e})`}}},yr=i=>{if(i.functionRef)return Ki(i.functionRef)+"("+i.args.map(yr).join(", ")+")";if(i.exists)return`EXISTS { ${md(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${md(i.notexists)} }`;switch(i.expressionType){case"atomic":return Mn(ir(i.value),i.bracketted);case"irireforfunction":let v=Ki(i.iriref);return i.args&&(v+="("+i.args.map(yr).join(", ")+")"),Mn(v,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(ir).join(", ")),Mn(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let N=i.unaryexpression+yr(i.expression);return Mn(N,i.bracketted);case"aggregate":return Q1(i);case"multiplicativeexpression":let R=yr(i.first);return i.rest.forEach(H=>{R+=" "+H.operator+" "+yr(H.expression)}),Mn(R,i.bracketted);case"additiveexpression":let w=yr(i.op1);return i.ops.forEach(H=>{w+=" "+H.operator+" "+yr(H.expression)}),Mn(w,i.bracketted);case"relationalexpression":let O=yr(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?O+="("+i.op2.map(ir).join(", ")+")":O+=yr(i.op2),Mn(O,i.bracketted);case"aliasedexpression":let V=yr(i.expression);return i.as&&(V+=` AS ${Jl(i.as)}`),Mn(V,i.bracketted);case"conditionaland":return Mn(i.operands.map(yr).join(" && "),i.bracketted);case"conditionalor":return Mn(i.operands.map(yr).join(" || "),i.bracketted);case"regex":let W=yr(i.text);return W+=", "+yr(i.pattern),i.flags&&(W+=", "+yr(i.flags)),`regex(${W})`}},Mn=(i,v)=>v?`(${i})`:i,Pv=i=>{if(i.oneVar){let v=ir(i.oneVar),e=i.data.map(ir).join(" ");Ze(`VALUES ${v} { ${e} }`)}else if(i.variables){let v=i.variables.map(Jl).join(" ");if(i.variables.length===1){let e=i.data.map(N=>"("+N.map(ir).join(" ")+")").join(" ");Ze(`VALUES (${v}) { ${e} }`)}else Ze(`VALUES (${v}) {`),Cs(),i.data.map(e=>{Ze("("+e.map(ir).join(" ")+")")}),As(),Ze("}")}},ir=(i,v=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(N=>ir(N,v)).join(", ");if(i.varname)return Jl(i);if(i.collection)return`( ${i.collection.map(R=>ir(R)).join(" ")} )`;if(i.hasOwnProperty("literal"))return JA(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return yr(i);if(i.blankNodeProperties)return`[${Z1(i.blankNodeProperties,v)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=Ki(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},JA=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 v=i.quote+i.literal+i.quote;return i.dataType?v+=`^^${Ki(i.dataType)}`:i.lang&&(v+="@"+i.lang),v},Ki=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"},Jl=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var qs="",kv;function zA(i,v=4){kv=" ".repeat(v);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
82
+ ${Pn}`,v},_1=i=>{let v=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=Sr(i.expression),`COUNT(${v}${e})`}else{if(i.aggregateType==="sum")return`sum(${v}${Sr(i.expression)})`;if(i.aggregateType==="min")return`MIN(${v}${Sr(i.expression)})`;if(i.aggregateType==="max")return`MAX(${v}${Sr(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${v}${Sr(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${v}${Sr(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${zA(i.separator)}`),`GROUP_CONCAT(${v}${Sr(i.expression)}${e})`}}},Sr=i=>{if(i.functionRef)return Ki(i.functionRef)+"("+i.args.map(Sr).join(", ")+")";if(i.exists)return`EXISTS { ${md(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${md(i.notexists)} }`;switch(i.expressionType){case"atomic":return Wn(ir(i.value),i.bracketted);case"irireforfunction":let v=Ki(i.iriref);return i.args&&(v+="("+i.args.map(Sr).join(", ")+")"),Wn(v,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(ir).join(", ")),Wn(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let N=i.unaryexpression+Sr(i.expression);return Wn(N,i.bracketted);case"aggregate":return _1(i);case"multiplicativeexpression":let y=Sr(i.first);return i.rest.forEach(H=>{y+=" "+H.operator+" "+Sr(H.expression)}),Wn(y,i.bracketted);case"additiveexpression":let w=Sr(i.op1);return i.ops.forEach(H=>{w+=" "+H.operator+" "+Sr(H.expression)}),Wn(w,i.bracketted);case"relationalexpression":let G=Sr(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?G+="("+i.op2.map(ir).join(", ")+")":G+=Sr(i.op2),Wn(G,i.bracketted);case"aliasedexpression":let V=Sr(i.expression);return i.as&&(V+=` AS ${Jl(i.as)}`),Wn(V,i.bracketted);case"conditionaland":return Wn(i.operands.map(Sr).join(" && "),i.bracketted);case"conditionalor":return Wn(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})`}},Wn=(i,v)=>v?`(${i})`:i,Pv=i=>{if(i.oneVar){let v=ir(i.oneVar),e=i.data.map(ir).join(" ");Qe(`VALUES ${v} { ${e} }`)}else if(i.variables){let v=i.variables.map(Jl).join(" ");if(i.variables.length===1){let e=i.data.map(N=>"("+N.map(ir).join(" ")+")").join(" ");Qe(`VALUES (${v}) { ${e} }`)}else Qe(`VALUES (${v}) {`),Cs(),i.data.map(e=>{Qe("("+e.map(ir).join(" ")+")")}),As(),Qe("}")}},ir=(i,v=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(N=>ir(N,v)).join(", ");if(i.varname)return Jl(i);if(i.collection)return`( ${i.collection.map(y=>ir(y)).join(" ")} )`;if(i.hasOwnProperty("literal"))return zA(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return Sr(i);if(i.blankNodeProperties)return`[${k1(i.blankNodeProperties,v)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=Ki(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},zA=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 v=i.quote+i.literal+i.quote;return i.dataType?v+=`^^${Ki(i.dataType)}`:i.lang&&(v+="@"+i.lang),v},Ki=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"},Jl=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var Ks="",kv;function jA(i,v=4){kv=" ".repeat(v);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
83
83
 
84
84
  `,e+=`[]
85
- `+Wv(i)+` .
86
- `,e}function Wv(i){let v=[];return $1(),Object.keys(i).forEach(e=>{if(e==="type")v.push(qs+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")v.push(H1(e,i[e]));else{let N=i[e];typeof N=="string"&&(N=JSON.stringify(N)),v.push(qs+`:${e} ${N}`)}}}),X1(),v.join(` ;
87
- `)}function H1(i,v){if(Array.isArray(v)){let e=v.map(N=>Wv(N)+`
88
- `);return qs+`:${i} [
89
- `+e.join(qs+`], [
90
- `)+qs+"]"}else return qs+`:${i} [
91
- `+Wv(v)+`
92
- `+qs+"]"}var $1=(i=1)=>{qs+=kv.repeat(i)},X1=(i=1)=>{qs=qs.substr(0,qs.length-kv.length*i)};var Y1=(i,v="default",e=2)=>{switch(v){case"default":return xd(Sh(i),e);case"compact":return xd(Bv(i),e);case"turtle":return zA(Sh(i),e);case"jsonld":return JSON.stringify(Sh(i),J1,e);default:throw new Error(`Unsupported formatting mode: ${v}`)}};function J1(i,v){if(i!=="location")return v}var Zv={parseSparql:Sh,parseSparqlAsCompact:Bv,formatAst:xd,format:Y1};typeof window<"u"&&(window.spfmt=Zv);var Br=class Br extends Na{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=xv({},Br.defaults,N,(O,V)=>{if(Array.isArray(V))return V});let R=Na(this.rootEl,this.config);for(let O of Object.getOwnPropertyNames(Br.prototype))R[O]=Br.prototype[O].bind(this);Object.assign(this,Na.prototype,R),this.storage=new Zl(Br.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let w=this.getStorageId();if(w){let O=this.storage.get(w);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){Na.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 V of O)e.append(V);else e.appendChild(O)}if(this.config.createShareableLink){var N=Dn(kC);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",W=>V(W)),O.addEventListener("keydown",W=>{W.code==="Enter"&&V(W)});let V=W=>{W.stopPropagation();let H=document.createElement("div");H.className="yasqe_sharePopup",e.appendChild(H),document.body.addEventListener("click",B=>{H&&B.target!==H&&!H.contains(B.target)&&(H.remove(),H=void 0)},!0);var Z=document.createElement("input");Z.type="text",Z.value=this.config.createShareableLink(this),Z.onfocus=function(){Z.select()},Z.onmouseup=function(){return!1},H.innerHTML="";var P=document.createElement("div");P.className="inputWrapper",P.appendChild(Z),H.appendChild(P);let J=[],Q=this.config.createShortLink;if(Q){H.className=H.className+=" enableShort";let B=document.createElement("button");J.push(B),B.innerHTML="Shorten",B.className="yasqe_btn yasqe_btn-sm shorten",H.appendChild(B),B.onclick=()=>{J.forEach(D=>D.disabled=!0),Q(this,Z.value).then(D=>{Z.value=D,Z.focus()},D=>{let X=document.createElement("span");X.className="shortlinkErr";let z="An error has occurred";typeof D=="string"&&D.length!==0?z=D:D.message&&D.message.length!==0&&(z=D.message),X.textContent=z,Z.replaceWith(X)})}}let ee=document.createElement("button");J.push(ee),ee.innerText="cURL",ee.className="yasqe_btn yasqe_btn-sm curl",H.appendChild(ee),ee.onclick=()=>{J.forEach(B=>B.disabled=!0),Z.value=this.getAsCurlString(),Z.focus(),H?.appendChild(ee)};let Y=N.getBoundingClientRect();H.style.top=N.offsetTop+Y.height+"px",H.style.left=N.offsetLeft+N.clientWidth-H.clientWidth+"px",Z.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Xr(this.queryBtn,"yasqe_queryButton");let O=Dn(WC);Xr(O,"queryIcon"),this.queryBtn.appendChild(O);let V=Dn(ad);Xr(V,"warningIcon"),this.queryBtn.appendChild(V),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");Xr(O,"yasqe_formatButton");let V=Dn(QC);Xr(V,"formatIcon"),O.appendChild(V),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"),Xr(this.fullscreenBtn,"yasqe_fullscreenButton");let R=Dn(ZC);Xr(R,"fullscreenIcon"),this.fullscreenBtn.appendChild(R);let w=Dn(_C);Xr(w,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(w),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?(Xr(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(mh(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 w=e.split(`
93
- `),O=w[w.length-1];N.setCursor({line:R.line+w.length-1,ch:w.length===1?R.ch+O.length:O.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&(this.persistentConfig?.showSnippetsBar===void 0||this.persistentConfig.showSnippetsBar)&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),Xr(this.snippetsBar,"yasqe_snippetsBar");let R=this.getWrapperElement();R.parentElement?.insertBefore(this.snippetsBar,R)}this.snippetsBar.innerHTML="";let N=this.config.snippets;if(N.length<=10)N.forEach(R=>{let w=document.createElement("button");Xr(w,"yasqe_snippetButton"),w.textContent=R.label,w.title=R.code,w.setAttribute("aria-label",`Insert ${R.label} snippet`),w.onclick=()=>this.insertSnippet(R.code),this.snippetsBar.appendChild(w)});else{let R={},w=[];N.forEach(O=>{O.group?(R[O.group]||(R[O.group]=[]),R[O.group].push(O)):w.push(O)}),Object.keys(R).forEach(O=>{let V=document.createElement("div");Xr(V,"yasqe_snippetDropdown");let W=document.createElement("button");Xr(W,"yasqe_snippetDropdownButton"),W.textContent=O+" ";let H=Dn(HC);Xr(H,"chevronIcon"),W.appendChild(H),W.setAttribute("aria-label",`${O} snippets`),W.setAttribute("aria-expanded","false");let Z=document.createElement("div");Xr(Z,"yasqe_snippetDropdownContent"),Z.setAttribute("role","menu"),R[O].forEach(P=>{let J=document.createElement("button");Xr(J,"yasqe_snippetDropdownItem"),J.textContent=P.label,J.title=P.code,J.setAttribute("role","menuitem"),J.onclick=()=>{this.insertSnippet(P.code),Z.style.display="none",W.setAttribute("aria-expanded","false")},Z.appendChild(J)}),W.onclick=P=>{P.stopPropagation();let J=Z.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(Y=>{Y.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(Y=>Y.setAttribute("aria-expanded","false")),J||(Z.style.display="block",W.setAttribute("aria-expanded","true"))},V.appendChild(W),V.appendChild(Z),this.snippetsBar.appendChild(V)}),w.forEach(O=>{let V=document.createElement("button");Xr(V,"yasqe_snippetButton"),V.textContent=O.label,V.title=O.code,V.setAttribute("aria-label",`Insert ${O.label} snippet`),V.onclick=()=>this.insertSnippet(O.code),this.snippetsBar.appendChild(V)})}this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=R=>{this.snippetsBar&&!this.snippetsBar.contains(R.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(V=>{V.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(V=>V.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.resizeWrapper)return;this.resizeWrapper=document.createElement("div"),Xr(this.resizeWrapper,"resizeWrapper");let e=document.createElement("div");Xr(e,"resizeChip"),this.resizeWrapper.appendChild(e),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}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 w=0,O=N.parentElement;for(;O;)w+=O.scrollTop,O=O.parentElement;return e.clientY-R-this.rootEl.offsetTop+w}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()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let N=this.getDoc().getLine(e.line);this.getDoc().replaceRange(N+`
94
- `+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){this.queryBtn&&(this.config.queryingDisabled?(Xr(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(mh(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&&(mh(this.queryBtn,"query_"+this.queryStatus),Xr(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"),Br.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),Br.autoformatString(R)}static autoformatString(e){var N=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],R=["}"],w=function(H){if(H==="{"||H===".")return 1;if(H===";")return W.length>2&&W[W.length-2]==="punc"?0:1;for(var Z=0;Z<N.length;Z++)if(W.valueOf().toString()===N[Z].valueOf().toString())return 1;for(var Z=0;Z<R.length;Z++)if(V.trim()!==""&&H==R[Z])return-1;return 0},O="",V="",W=[];return Br.runMode(e,"sparql11",function(H,Z){W.push(Z);var P=w(H);P!=0?(P==1?(O+=H+`
95
- `,V=""):(O+=`
96
- `+H,V=H),W=[]):(V+=H,O+=H),W.length==1&&W[0]=="sp-ws"&&(W=[])}),O.replace(/\n\s*\n/g,`
97
- `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,R=Math.min(e,N),w=Math.max(e,N),O=!0,V=R;V<=w;V++){var W=this.getDoc().getLine(V);if(W.length==0||W.substring(0,1)!="#"){O=!1;break}}for(var V=R;V<=w;V++)O?this.getDoc().replaceRange("",{line:V,ch:0},{line:V,ch:1}):this.getDoc().replaceRange("#",{line:V,ch:0})}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),w=this.getDoc().indexFromPos(N);let O=this.autoformatSelection(R,w);this.operation(()=>{this.getDoc().replaceRange(O,e,N);for(var V=this.getDoc().posFromIndex(R).line,W=this.getDoc().posFromIndex(R+O.length).line,H=V;H<=W;H++)this.indentLine(H,"smart")})}formatQuery(){try{let e=this.getValue(),N=Zv.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(Z,P){for(var J in P)Z[J]=J;return Z},{}),w=[];for(var O in R)w.push(O);if(!w.length)return this.getValue();N="VALUES ("+w.join(" ")+`) {
98
- `,e.forEach(function(Z){N+="( ",w.forEach(function(P){N+=Z[P]||"UNDEF"}),N+=` )
85
+ `+Zv(i)+` .
86
+ `,e}function Zv(i){let v=[];return Y1(),Object.keys(i).forEach(e=>{if(e==="type")v.push(Ks+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")v.push(H1(e,i[e]));else{let N=i[e];typeof N=="string"&&(N=JSON.stringify(N)),v.push(Ks+`:${e} ${N}`)}}}),X1(),v.join(` ;
87
+ `)}function H1(i,v){if(Array.isArray(v)){let e=v.map(N=>Zv(N)+`
88
+ `);return Ks+`:${i} [
89
+ `+e.join(Ks+`], [
90
+ `)+Ks+"]"}else return Ks+`:${i} [
91
+ `+Zv(v)+`
92
+ `+Ks+"]"}var Y1=(i=1)=>{Ks+=kv.repeat(i)},X1=(i=1)=>{Ks=Ks.substr(0,Ks.length-kv.length*i)};var $1=(i,v="default",e=2)=>{switch(v){case"default":return xd(Sh(i),e);case"compact":return xd(Dv(i),e);case"turtle":return jA(Sh(i),e);case"jsonld":return JSON.stringify(Sh(i),J1,e);default:throw new Error(`Unsupported formatting mode: ${v}`)}};function J1(i,v){if(i!=="location")return v}var Qv={parseSparql:Sh,parseSparqlAsCompact:Dv,formatAst:xd,format:$1};typeof window<"u"&&(window.spfmt=Qv);var Dr=class Dr extends Na{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=xv({},Dr.defaults,N,(G,V)=>{if(Array.isArray(V))return V});let y=Na(this.rootEl,this.config);for(let G of Object.getOwnPropertyNames(Dr.prototype))y[G]=Dr.prototype[G].bind(this);Object.assign(this,Na.prototype,y),this.storage=new kl(Dr.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let w=this.getStorageId();if(w){let G=this.storage.get(w);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,y){this.req=N,this.abortController=y,this.updateQueryButton()}handleQueryResponse(e,N,y){this.lastQueryDuration=y,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){Na.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 G=this.config.pluginButtons();if(!G)return;if(Array.isArray(G))for(let V of G)e.append(V);else e.appendChild(G)}if(this.config.createShareableLink){var N=js(QC);let G=document.createElement("button");G.className="yasqe_share",G.title="Share query",G.setAttribute("aria-label","Share query"),G.appendChild(N),e.appendChild(G),G.addEventListener("click",Z=>V(Z)),G.addEventListener("keydown",Z=>{Z.code==="Enter"&&V(Z)});let V=Z=>{Z.stopPropagation();let H=document.createElement("div");H.className="yasqe_sharePopup",e.appendChild(H),document.body.addEventListener("click",B=>{H&&B.target!==H&&!H.contains(B.target)&&(H.remove(),H=void 0)},!0);var _=document.createElement("input");_.type="text",_.value=this.config.createShareableLink(this),_.onfocus=function(){_.select()},_.onmouseup=function(){return!1},H.innerHTML="";var W=document.createElement("div");W.className="inputWrapper",W.appendChild(_),H.appendChild(W);let J=[],M=this.config.createShortLink;if(M){H.className=H.className+=" enableShort";let B=document.createElement("button");J.push(B),B.innerHTML="Shorten",B.className="yasqe_btn yasqe_btn-sm shorten",H.appendChild(B),B.onclick=()=>{J.forEach(D=>D.disabled=!0),M(this,_.value).then(D=>{_.value=D,_.focus()},D=>{let Y=document.createElement("span");Y.className="shortlinkErr";let q="An error has occurred";typeof D=="string"&&D.length!==0?q=D:D.message&&D.message.length!==0&&(q=D.message),Y.textContent=q,_.replaceWith(Y)})}}let z=document.createElement("button");J.push(z),z.innerText="cURL",z.className="yasqe_btn yasqe_btn-sm curl",H.appendChild(z),z.onclick=()=>{J.forEach(B=>B.disabled=!0),_.value=this.getAsCurlString(),_.focus(),H?.appendChild(z)};let $=N.getBoundingClientRect();H.style.top=N.offsetTop+$.height+"px",H.style.left=N.offsetLeft+N.clientWidth-H.clientWidth+"px",_.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Ir(this.queryBtn,"yasqe_queryButton");let G=js(kC);Ir(G,"queryIcon"),this.queryBtn.appendChild(G);let V=js(ad);Ir(V,"warningIcon"),this.queryBtn.appendChild(V),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 G=document.createElement("button");Ir(G,"yasqe_formatButton");let V=js(YC);Ir(V,"formatIcon"),G.appendChild(V),G.onclick=()=>{this.format()},G.title="Format query (Shift+Ctrl+F)",G.setAttribute("aria-label","Format query"),e.appendChild(G)}this.fullscreenBtn=document.createElement("button"),Ir(this.fullscreenBtn,"yasqe_fullscreenButton");let y=js(_C);Ir(y,"fullscreenIcon"),this.fullscreenBtn.appendChild(y);let w=js(HC);Ir(w,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(w),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?(Ir(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(mh(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let N=this.getDoc(),y=N.getCursor();N.replaceRange(e,y);let w=e.split(`
93
+ `),G=w[w.length-1];N.setCursor({line:y.line+w.length-1,ch:w.length===1?y.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"),Ir(this.snippetsBar,"yasqe_snippetsBar");let M=this.getWrapperElement();M.parentElement?.insertBefore(this.snippetsBar,M)}this.snippetsBar.innerHTML="";let N=this.config.snippets,y=document.createElement("div");Ir(y,"yasqe_snippetsVisible");let w=[],G={},V=[];N.forEach(M=>{M.group?(G[M.group]||(G[M.group]=[]),G[M.group].push(M)):V.push(M)}),Object.keys(G).forEach(M=>{let z=document.createElement("div");Ir(z,"yasqe_snippetDropdown");let $=document.createElement("button");Ir($,"yasqe_snippetDropdownButton"),$.textContent=M+" ";let B=js(Rv);Ir(B,"chevronIcon"),$.appendChild(B),$.setAttribute("aria-label",`${M} snippets`),$.setAttribute("aria-expanded","false");let D=document.createElement("div");Ir(D,"yasqe_snippetDropdownContent"),D.setAttribute("role","menu"),G[M].forEach(Y=>{let q=document.createElement("button");Ir(q,"yasqe_snippetDropdownItem"),q.textContent=Y.label,q.title=Y.code,q.setAttribute("role","menuitem"),q.onclick=()=>{this.insertSnippet(Y.code),D.style.display="none",$.setAttribute("aria-expanded","false")},D.appendChild(q)}),$.onclick=Y=>{Y.stopPropagation();let q=D.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(le=>{le.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(le=>le.setAttribute("aria-expanded","false")),q||(D.style.display="block",$.setAttribute("aria-expanded","true"))},z.appendChild($),z.appendChild(D),w.push(z)}),V.forEach(M=>{let z=document.createElement("button");Ir(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),w.push(z)}),w.forEach(M=>y.appendChild(M)),this.snippetsBar.appendChild(y);let Z=document.createElement("div");Ir(Z,"yasqe_snippetDropdown","yasqe_showMore"),Z.style.display="none";let H=document.createElement("button");Ir(H,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),H.textContent="More ";let _=js(Rv);Ir(_,"chevronIcon"),H.appendChild(_),H.setAttribute("aria-label","Show more snippets"),H.setAttribute("aria-expanded","false");let W=document.createElement("div");Ir(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(D=>{D!==W&&(D.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(D=>{D!==H&&D.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 J=()=>{if(!this.snippetsBar)return;let $=this.snippetsBar.offsetWidth-80-20,B=0,D=[];w.forEach((Y,q)=>{let te=Y.offsetWidth+5;if(B+te>$&&q>0)if(Y.style.display="none",Y.classList.contains("yasqe_snippetDropdown")){let le=Y.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";D.push({element:Y,groupName:le})}else{let ie=V.find(le=>le.label===Y.textContent);D.push({element:Y,snippet:ie})}else B+=te}),D.length>0&&(Z.style.display="inline-block",D.forEach(({element:Y,snippet:q,groupName:te})=>{if(te){let ie=document.createElement("div");Ir(ie,"yasqe_snippetGroupHeader"),ie.textContent=te,W.appendChild(ie),Y.querySelectorAll(".yasqe_snippetDropdownItem").forEach(Ee=>{let ke=Ee.cloneNode(!0);ke.onclick=Ee.onclick,W.appendChild(ke)})}else if(q){let ie=document.createElement("button");Ir(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(J),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(w.forEach(M=>M.style.display=""),Z.style.display="none",W.innerHTML="",requestAnimationFrame(J))},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.resizeWrapper)return;this.resizeWrapper=document.createElement("div"),Ir(this.resizeWrapper,"resizeWrapper");let e=document.createElement("div");Ir(e,"resizeChip"),this.resizeWrapper.appendChild(e),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,N){let y=0;N.offsetParent&&(y=N.offsetParent.offsetTop);let w=0,G=N.parentElement;for(;G;)w+=G.scrollTop,G=G.parentElement;return e.clientY-y-this.rootEl.offsetTop+w}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()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let N=this.getDoc().getLine(e.line);this.getDoc().replaceRange(N+`
94
+ `+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){this.queryBtn&&(this.config.queryingDisabled?(Ir(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(mh(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&&(mh(this.queryBtn,"query_"+this.queryStatus),Ir(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"),Dr.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 y in e.state.variables)N.push(y);return N.sort()}autoformatSelection(e,N){var y=this.getValue();return y=y.substring(e,N),Dr.autoformatString(y)}static autoformatString(e){var N=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],y=["}"],w=function(H){if(H==="{"||H===".")return 1;if(H===";")return Z.length>2&&Z[Z.length-2]==="punc"?0:1;for(var _=0;_<N.length;_++)if(Z.valueOf().toString()===N[_].valueOf().toString())return 1;for(var _=0;_<y.length;_++)if(V.trim()!==""&&H==y[_])return-1;return 0},G="",V="",Z=[];return Dr.runMode(e,"sparql11",function(H,_){Z.push(_);var W=w(H);W!=0?(W==1?(G+=H+`
95
+ `,V=""):(G+=`
96
+ `+H,V=H),Z=[]):(V+=H,G+=H),Z.length==1&&Z[0]=="sp-ws"&&(Z=[])}),G.replace(/\n\s*\n/g,`
97
+ `).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,y=Math.min(e,N),w=Math.max(e,N),G=!0,V=y;V<=w;V++){var Z=this.getDoc().getLine(V),H=Z.trimStart();if(Z.length>0&&(H.length===0||H.substring(0,1)!=="#")){G=!1;break}}for(var V=y;V<=w;V++){var Z=this.getDoc().getLine(V),H=Z.trimStart(),_=Z.length-H.length;if(G&&H.length>0){var W=Z.indexOf("#");if(W>=0){var J=1;W+1<Z.length&&Z.charAt(W+1)===" "&&(J=2),this.getDoc().replaceRange("",{line:V,ch:W},{line:V,ch:W+J})}}else!G&&Z.length>0&&this.getDoc().replaceRange("# ",{line:V,ch:_})}}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},y=this.getDoc().indexFromPos(e),w=this.getDoc().indexFromPos(N);let G=this.autoformatSelection(y,w);this.operation(()=>{this.getDoc().replaceRange(G,e,N);for(var V=this.getDoc().posFromIndex(y).line,Z=this.getDoc().posFromIndex(y+G.length).line,H=V;H<=Z;H++)this.indentLine(H,"smart")})}formatQuery(){try{let e=this.getValue(),N=Qv.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 y=e.reduce(function(_,W){for(var J in W)_[J]=J;return _},{}),w=[];for(var G in y)w.push(G);if(!w.length)return this.getValue();N="VALUES ("+w.join(" ")+`) {
98
+ `,e.forEach(function(_){N+="( ",w.forEach(function(W){N+=_[W]||"UNDEF"}),N+=` )
99
99
  `}),N+=`}
100
- `}if(!N)return this.getValue();var V="",W=!1,H=!1;return Br.runMode(this.getValue(),"sparql11",function(Z,P,J,Q,ee){P==="keyword"&&Z.toLowerCase()==="select"&&(H=!0),V+=Z,H&&!W&&P==="punc"&&Z==="{"&&(W=!0,V+=`
101
- `+N)}),V}getValueWithoutComments(){var e="";return Br.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 w=this.getTokenAt({line:N,ch:this.getDoc().getLine(N).length},R),e=w.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let Z=this.getWrapperElement().querySelectorAll(".sp-error");for(let P=0;P<Z.length;P++){var O=Z[P];O.style&&(O.style.color="black")}return}let H=Dn(ad);if(e.errorMsg)xh(this,H,Th(w.state.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){var V=[];e.possibleCurrent.forEach(function(Z){V.push("<strong style='text-decoration:underline'>"+Th(Z)+"</strong>")}),xh(this,H,"This line is invalid. Expected: "+V.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,w=[];for(let O in R.constructVariables)R.whereVariables[O]||w.push(O);if(w.length!==0)for(let O=0;O<this.getDoc().lineCount();++O){let W=this.getTokenAt({line:O,ch:this.getDoc().getLine(O).length},!0).state;if(W.queryType==="CONSTRUCT"&&W.inConstructTemplate){let H=this.getDoc().getLine(O);for(let Z of w){let P=Z.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${P}(?![a-zA-Z0-9_])`).test(H)){let Q=Dn(ad);Q.className="constructVariableWarning",xh(this,Q,Th(`Variable ${Z} is used in CONSTRUCT but not defined in WHERE clause`)),this.setGutterMarker(O,"gutterConstructWarning",Q);break}}}}}getCompleteToken(e,N){return Hv(this,e,N)}getPreviousNonWsToken(e,N){return HE(this,e,N)}getNextNonWsToken(e,N){return bf(this,e,N)}showNotification(e,N){if(!this.notificationEls[e]){let w=document.createElement("div");Xr(w,"notificationContainer"),this.getWrapperElement().appendChild(w),this.notificationEls[e]=document.createElement("div"),Xr(this.notificationEls[e],"notification","notif_"+e),w.appendChild(this.notificationEls[e])}for(let w in this.notificationEls)w!==e&&this.hideNotification(w);let R=this.notificationEls[e];Xr(R,"active"),R.innerText=N}hideNotification(e){this.notificationEls[e]&&mh(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.persistentConfig?this.persistentConfig.showSnippetsBar=e:this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,showSnippetsBar:e},this.saveQuery(),this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&(this.persistentConfig?.showSnippetsBar===void 0||this.persistentConfig.showSnippetsBar)&&this.config.snippets.length>0}enableCompleter(e){return Br.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new hd(this,Br.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=Yv(this);N!==void 0&&this.foldCode(N,Na.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return em(this)}addPrefixes(e){return qv(this,e)}removePrefixes(e){return Kv(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(),bv(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=Cd.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=Cd.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=Cd.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 Tv(this,e)}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.resizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.resizeWrapper?.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 Zl(Br.storageNamespace).removeNamespace()}static registerAutocompleter(e,N=!0){let R=e.name;Br.Autocompleters[R]=e,N&&Br.defaults.autocompleters.indexOf(R)<0&&Br.defaults.autocompleters.push(R)}static forkAutocompleter(e,N,R=!0){if(!Br.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!N?.name)throw new Error("Expected a name for newly registered autocompleter");let w=N.name;Br.Autocompleters[w]={...Br.Autocompleters[e],...N},R&&Br.defaults.autocompleters.indexOf(w)<0&&Br.defaults.autocompleters.push(w)}};Br.storageNamespace="triply",Br.Sparql=Rv,Br.runMode=Na.runMode,Br.Autocompleters={},Br.defaults=wv();var Hf=Br;Object.assign(Na.prototype,Hf.prototype);lA.forEach(i=>{Hf.registerAutocompleter(i)});var z1=Hf;return aI(j1);})();
100
+ `}if(!N)return this.getValue();var V="",Z=!1,H=!1;return Dr.runMode(this.getValue(),"sparql11",function(_,W,J,M,z){W==="keyword"&&_.toLowerCase()==="select"&&(H=!0),V+=_,H&&!Z&&W==="punc"&&_==="{"&&(Z=!0,V+=`
101
+ `+N)}),V}getValueWithoutComments(){var e="";return Dr.runMode(this.getValue(),"sparql11",function(N,y){y!="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 y=!1;this.prevQueryValid||(y=!0);var w=this.getTokenAt({line:N,ch:this.getDoc().getLine(N).length},y),e=w.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let _=this.getWrapperElement().querySelectorAll(".sp-error");for(let W=0;W<_.length;W++){var G=_[W];G.style&&(G.style.color="black")}return}let H=js(ad);if(e.errorMsg)xh(this,H,Th(w.state.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){var V=[];e.possibleCurrent.forEach(function(_){V.push("<strong style='text-decoration:underline'>"+Th(_)+"</strong>")}),xh(this,H,"This line is invalid. Expected: "+V.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(),y=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,w=[];for(let G in y.constructVariables)y.whereVariables[G]||w.push(G);if(w.length!==0)for(let G=0;G<this.getDoc().lineCount();++G){let Z=this.getTokenAt({line:G,ch:this.getDoc().getLine(G).length},!0).state;if(Z.queryType==="CONSTRUCT"&&Z.inConstructTemplate){let H=this.getDoc().getLine(G);for(let _ of w){let W=_.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${W}(?![a-zA-Z0-9_])`).test(H)){let M=js(ad);M.className="constructVariableWarning",xh(this,M,Th(`Variable ${_} is used in CONSTRUCT but not defined in WHERE clause`)),this.setGutterMarker(G,"gutterConstructWarning",M);break}}}}}getCompleteToken(e,N){return Yv(this,e,N)}getPreviousNonWsToken(e,N){return HE(this,e,N)}getNextNonWsToken(e,N){return bf(this,e,N)}showNotification(e,N){if(!this.notificationEls[e]){let w=document.createElement("div");Ir(w,"notificationContainer"),this.getWrapperElement().appendChild(w),this.notificationEls[e]=document.createElement("div"),Ir(this.notificationEls[e],"notification","notif_"+e),w.appendChild(this.notificationEls[e])}for(let w in this.notificationEls)w!==e&&this.hideNotification(w);let y=this.notificationEls[e];Ir(y,"active"),y.innerText=N}hideNotification(e){this.notificationEls[e]&&mh(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()}enableCompleter(e){return Dr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new hd(this,Dr.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 y=this.autocompleters[this.config.autocompleters[N]];!y||y.autocomplete(e)}}collapsePrefixes(e=!0){let N=Jv(this);N!==void 0&&this.foldCode(N,Na.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return rm(this)}addPrefixes(e){return Kv(this,e)}removePrefixes(e){return em(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(),bv(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=Cd.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=Cd.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=Cd.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 Tv(this,e)}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.resizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.resizeWrapper?.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 kl(Dr.storageNamespace).removeNamespace()}static registerAutocompleter(e,N=!0){let y=e.name;Dr.Autocompleters[y]=e,N&&Dr.defaults.autocompleters.indexOf(y)<0&&Dr.defaults.autocompleters.push(y)}static forkAutocompleter(e,N,y=!0){if(!Dr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!N?.name)throw new Error("Expected a name for newly registered autocompleter");let w=N.name;Dr.Autocompleters[w]={...Dr.Autocompleters[e],...N},y&&Dr.defaults.autocompleters.indexOf(w)<0&&Dr.defaults.autocompleters.push(w)}};Dr.storageNamespace="triply",Dr.Sparql=yv,Dr.runMode=Na.runMode,Dr.Autocompleters={},Dr.defaults=Ov();var Hf=Dr;Object.assign(Na.prototype,Hf.prototype);uA.forEach(i=>{Hf.registerAutocompleter(i)});var z1=Hf;return lI(j1);})();
102
102
  /*! Bundled license information:
103
103
 
104
104
  dompurify/dist/purify.es.mjs:
105
- (*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE *)
105
+ (*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE *)
106
106
 
107
107
  lodash-es/lodash.js:
108
108
  (**