@matdata/yasqe 5.9.0 → 5.10.1
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.
- package/README.md +6 -2
- package/build/ts/src/__tests__/share-test.d.ts +1 -0
- package/build/ts/src/__tests__/share-test.js +202 -0
- package/build/ts/src/__tests__/share-test.js.map +1 -0
- package/build/ts/src/index.d.ts +3 -0
- package/build/ts/src/index.js +176 -49
- package/build/ts/src/index.js.map +1 -1
- package/build/ts/src/sparql.d.ts +3 -0
- package/build/ts/src/sparql.js +176 -16
- package/build/ts/src/sparql.js.map +1 -1
- package/build/yasqe.min.css +1 -1
- package/build/yasqe.min.css.map +3 -3
- package/build/yasqe.min.js +84 -78
- package/build/yasqe.min.js.map +3 -3
- package/package.json +1 -1
- package/src/__tests__/share-test.ts +237 -0
- package/src/index.ts +214 -65
- package/src/scss/buttons.scss +107 -4
- package/src/sparql.ts +232 -20
package/build/yasqe.min.js
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
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 R of nI(v))!aI.call(i,R)&&R!==e&&wh(i,R,{get:()=>v[R],enumerable:!(N=sI(v,R))||N.enumerable});return i};var Xt=(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),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),w=/Edge\/(\d+)/.exec(i),G=N||R||w,V=G&&(N?document.documentMode||6:+(w||R)[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),X=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 y=s.indexOf(" ",I);if(y<0||y>=l)return b+(l-I);b+=y-I,b+=g-b%g,I=y+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 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 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]/,y=/[1n]/;function L(O,k,Y){this.level=O,this.from=k,this.to=Y}return function(O,k){var Y=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=Y;fe<re;++fe){var me=ee[fe];me=="m"?ee[fe]=he:he=me}for(var Ce=0,xe=Y;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=Y;_r<re;++_r){var lt=ee[_r];Vt=="L"&<=="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]:Y)=="L",Mt=(Hr<re?ee[Hr]:Y)=="L",Bn=Gr==Mt?Gr?"L":"R":Y,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 Rt=Hi;Rt<nt;)if(y.test(ee[Rt])){Hi<Rt&&(Ct.splice(Ps,0,new L(1,Hi,Rt)),Ps+=Zs);var Dn=Rt;for(++Rt;Rt<nt&&y.test(ee[Rt]);++Rt);Ct.splice(Ps,0,new L(2,Dn,Rt)),Ps+=Zs,Hi=Rt}else++Rt;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=`
|
|
1
|
+
"use strict";var Yasqe=(()=>{var uA=Object.create;var Bh=Object.defineProperty;var fA=Object.getOwnPropertyDescriptor;var cA=Object.getOwnPropertyNames;var pA=Object.getPrototypeOf,hA=Object.prototype.hasOwnProperty;var br=(i,m)=>()=>(m||i((m={exports:{}}).exports,m),m.exports),zm=(i,m)=>{for(var e in m)Bh(i,e,{get:m[e],enumerable:!0})},jm=(i,m,e,N)=>{if(m&&typeof m=="object"||typeof m=="function")for(let R of cA(m))!hA.call(i,R)&&R!==e&&Bh(i,R,{get:()=>m[R],enumerable:!(N=fA(m,R))||N.enumerable});return i};var Xt=(i,m,e)=>(e=i!=null?uA(pA(i)):{},jm(m||!i||!i.__esModule?Bh(e,"default",{value:i,enumerable:!0}):e,i)),dA=i=>jm(Bh({},"__esModule",{value:!0}),i);var si=br((YE,JE)=>{(function(i,m){typeof YE=="object"&&typeof JE<"u"?JE.exports=m():typeof define=="function"&&define.amd?define(m):(i=i||self,i.CodeMirror=m())})(YE,function(){"use strict";var i=navigator.userAgent,m=navigator.platform,e=/gecko\/\d/i.test(i),N=/MSIE \d/.test(i),R=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),L=/Edge\/(\d+)/.exec(i),O=N||R||L,D=O&&(N?document.documentMode||6:+(L||R)[1]),Z=!L&&/WebKit\//.test(i),H=Z&&/Qt\/\d+\.\d+/.test(i),Q=!L&&/Chrome\/(\d+)/.exec(i),W=Q&&+Q[1],$=/Opera\//.test(i),M=/Apple Computer/.test(navigator.vendor),z=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),Y=/PhantomJS/.test(i),B=M&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),V=/Android/.test(i),X=B||V||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),q=B||/Mac/.test(m),te=/\bCrOS\b/.test(i),ie=/win/i.test(m),ae=$&&i.match(/Version\/(\d*\.\d*)/);ae&&(ae=Number(ae[1])),ae&&ae>=15&&($=!1,Z=!0);var fe=q&&(H||$&&(ae==null||ae<12.11)),ye=e||O&&D>=9;function Re(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var Le=function(s,l){var g=s.className,d=Re(l).exec(g);if(d){var v=g.slice(d.index+d[0].length);s.className=g.slice(0,d.index)+(v?d[1]+v:"")}};function Ve(s){for(var l=s.childNodes.length;l>0;--l)s.removeChild(s.firstChild);return s}function Je(s,l){return Ve(s).appendChild(l)}function me(s,l,g,d){var v=document.createElement(s);if(g&&(v.className=g),d&&(v.style.cssText=d),typeof l=="string")v.appendChild(document.createTextNode(l));else if(l)for(var A=0;A<l.length;++A)v.appendChild(l[A]);return v}function xr(s,l,g,d){var v=me(s,l,g,d);return v.setAttribute("role","presentation"),v}var Cr;document.createRange?Cr=function(s,l,g,d){var v=document.createRange();return v.setEnd(d||s,g),v.setStart(s,l),v}:Cr=function(s,l,g){var d=document.body.createTextRange();try{d.moveToElementText(s.parentNode)}catch{return d}return d.collapse(!0),d.moveEnd("character",g),d.moveStart("character",l),d};function ur(s,l){if(l.nodeType==3&&(l=l.parentNode),s.contains)return s.contains(l);do if(l.nodeType==11&&(l=l.host),l==s)return!0;while(l=l.parentNode)}function $r(s){var l=s.ownerDocument||s,g;try{g=s.activeElement}catch{g=l.body||null}for(;g&&g.shadowRoot&&g.shadowRoot.activeElement;)g=g.shadowRoot.activeElement;return g}function ze(s,l){var g=s.className;Re(l).test(g)||(s.className+=(g?" ":"")+l)}function St(s,l){for(var g=s.split(" "),d=0;d<g.length;d++)g[d]&&!Re(g[d]).test(l)&&(l+=" "+g[d]);return l}var Lt=function(s){s.select()};B?Lt=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:O&&(Lt=function(s){try{s.select()}catch{}});function pr(s){return s.display.wrapper.ownerDocument}function wt(s){return or(s.display.wrapper)}function or(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function ut(s){return pr(s).defaultView}function je(s){var l=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,l)}}function zr(s,l,g){l||(l={});for(var d in s)s.hasOwnProperty(d)&&(g!==!1||!l.hasOwnProperty(d))&&(l[d]=s[d]);return l}function Ir(s,l,g,d,v){l==null&&(l=s.search(/[^\s\u00a0]/),l==-1&&(l=s.length));for(var A=d||0,b=v||0;;){var y=s.indexOf(" ",A);if(y<0||y>=l)return b+(l-A);b+=y-A,b+=g-b%g,A=y+1}}var Pr=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};Pr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Pr.prototype.set=function(s,l){this.f=l;var g=+new Date+s;(!this.id||g<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,s),this.time=g)};function hr(s,l){for(var g=0;g<s.length;++g)if(s[g]==l)return g;return-1}var Kt=50,Fe={toString:function(){return"CodeMirror.Pass"}},pe={scroll:!1},Er={origin:"*mouse"},fr={origin:"+move"};function we(s,l,g){for(var d=0,v=0;;){var A=s.indexOf(" ",d);A==-1&&(A=s.length);var b=A-d;if(A==s.length||v+b>=l)return d+Math.min(b,l-v);if(v+=A-d,v+=g-v%g,d=A+1,v>=l)return d}}var Ur=[""];function ei(s){for(;Ur.length<=s;)Ur.push(Ae(Ur)+" ");return Ur[s]}function Ae(s){return s[s.length-1]}function Ot(s,l){for(var g=[],d=0;d<s.length;d++)g[d]=l(s[d],d);return g}function ft(s,l,g){for(var d=0,v=g(l);d<s.length&&g(s[d])<=v;)d++;s.splice(d,0,l)}function Nt(){}function rs(s,l){var g;return Object.create?g=Object.create(s):(Nt.prototype=s,g=new Nt),l&&zr(l,g),g}var Me=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ct(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||Me.test(s))}function Oe(s,l){return l?l.source.indexOf("\\w")>-1&&ct(s)?!0:l.test(s):ct(s)}function rr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var at=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function pt(s){return s.charCodeAt(0)>=768&&at.test(s)}function Nr(s,l,g){for(;(g<0?l>0:l<s.length)&&pt(s.charAt(l));)l+=g;return l}function ri(s,l,g){for(var d=l>g?-1:1;;){if(l==g)return l;var v=(l+g)/2,A=d<0?Math.ceil(v):Math.floor(v);if(A==l)return s(A)?l:g;s(A)?g=A:l=A+d}}function Fi(s,l,g,d){if(!s)return d(l,g,"ltr",0);for(var v=!1,A=0;A<s.length;++A){var b=s[A];(b.from<g&&b.to>l||l==g&&b.to==l)&&(d(Math.max(b.from,l),Math.min(b.to,g),b.level==1?"rtl":"ltr",A),v=!0)}v||d(l,g,"ltr")}var ti=null;function bt(s,l,g){var d;ti=null;for(var v=0;v<s.length;++v){var A=s[v];if(A.from<l&&A.to>l)return v;A.to==l&&(A.from!=A.to&&g=="before"?d=v:ti=v),A.from==l&&(A.from!=A.to&&g!="before"?d=v:ti=v)}return d??ti}var ii=function(){var s="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",l="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function g(U){return U<=247?s.charAt(U):1424<=U&&U<=1524?"R":1536<=U&&U<=1785?l.charAt(U-1536):1774<=U&&U<=2220?"r":8192<=U&&U<=8203?"w":U==8204?"b":"L"}var d=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,v=/[stwN]/,A=/[LRr]/,b=/[Lb1n]/,y=/[1n]/;function w(U,k,J){this.level=U,this.from=k,this.to=J}return function(U,k){var J=k=="ltr"?"L":"R";if(U.length==0||k=="ltr"&&!d.test(U))return!1;for(var re=U.length,ee=[],oe=0;oe<re;++oe)ee.push(g(U.charCodeAt(oe)));for(var ce=0,de=J;ce<re;++ce){var ve=ee[ce];ve=="m"?ee[ce]=de:de=ve}for(var Ce=0,xe=J;Ce<re;++Ce){var be=ee[Ce];be=="1"&&xe=="r"?ee[Ce]="n":A.test(be)&&(xe=be,be=="r"&&(ee[Ce]="R"))}for(var Ze=1,De=ee[0];Ze<re-1;++Ze){var Ke=ee[Ze];Ke=="+"&&De=="1"&&ee[Ze+1]=="1"?ee[Ze]="1":Ke==","&&De==ee[Ze+1]&&(De=="1"||De=="n")&&(ee[Ze]=De),De=Ke}for(var vr=0;vr<re;++vr){var st=ee[vr];if(st==",")ee[vr]="N";else if(st=="%"){var Lr=void 0;for(Lr=vr+1;Lr<re&&ee[Lr]=="%";++Lr);for(var _t=vr&&ee[vr-1]=="!"||Lr<re&&ee[Lr]=="1"?"1":"N",Vt=vr;Vt<Lr;++Vt)ee[Vt]=_t;vr=Lr-1}}for(var _r=0,Dt=J;_r<re;++_r){var lt=ee[_r];Dt=="L"&<=="1"?ee[_r]="L":A.test(lt)&&(Dt=lt)}for(var jr=0;jr<re;++jr)if(v.test(ee[jr])){var Hr=void 0;for(Hr=jr+1;Hr<re&&v.test(ee[Hr]);++Hr);for(var Fr=(jr?ee[jr-1]:J)=="L",Mt=(Hr<re?ee[Hr]:J)=="L",Vn=Fr==Mt?Fr?"L":"R":J,vs=jr;vs<Hr;++vs)ee[vs]=Vn;jr=Hr-1}for(var Ct=[],Li,nt=0;nt<re;)if(b.test(ee[nt])){var cl=nt;for(++nt;nt<re&&b.test(ee[nt]);++nt);Ct.push(new w(0,cl,nt))}else{var Xi=nt,ks=Ct.length,Qs=k=="rtl"?1:0;for(++nt;nt<re&&ee[nt]!="L";++nt);for(var Rt=Xi;Rt<nt;)if(y.test(ee[Rt])){Xi<Rt&&(Ct.splice(ks,0,new w(1,Xi,Rt)),ks+=Qs);var Dn=Rt;for(++Rt;Rt<nt&&y.test(ee[Rt]);++Rt);Ct.splice(ks,0,new w(2,Dn,Rt)),ks+=Qs,Xi=Rt}else++Rt;Xi<nt&&Ct.splice(ks,0,new w(1,Xi,nt))}return k=="ltr"&&(Ct[0].level==1&&(Li=U.match(/^\s+/))&&(Ct[0].from=Li[0].length,Ct.unshift(new w(0,0,Li[0].length))),Ae(Ct).level==1&&(Li=U.match(/\s+$/))&&(Ae(Ct).to-=Li[0].length,Ct.push(new w(0,re-Li[0].length,re)))),k=="rtl"?Ct.reverse():Ct}}();function Tr(s,l){var g=s.order;return g==null&&(g=s.order=ii(s.text,l)),g}var Ut=[],Ge=function(s,l,g){if(s.addEventListener)s.addEventListener(l,g,!1);else if(s.attachEvent)s.attachEvent("on"+l,g);else{var d=s._handlers||(s._handlers={});d[l]=(d[l]||Ut).concat(g)}};function ni(s,l){return s._handlers&&s._handlers[l]||Ut}function kr(s,l,g){if(s.removeEventListener)s.removeEventListener(l,g,!1);else if(s.detachEvent)s.detachEvent("on"+l,g);else{var d=s._handlers,v=d&&d[l];if(v){var A=hr(v,g);A>-1&&(d[l]=v.slice(0,A).concat(v.slice(A+1)))}}}function ar(s,l){var g=ni(s,l);if(g.length)for(var d=Array.prototype.slice.call(arguments,2),v=0;v<g.length;++v)g[v].apply(null,d)}function dr(s,l,g){return typeof l=="string"&&(l={type:l,preventDefault:function(){this.defaultPrevented=!0}}),ar(s,g||l.type,s,l),mi(l)||l.codemirrorIgnore}function ts(s){var l=s._handlers&&s._handlers.cursorActivity;if(l)for(var g=s.curOp.cursorActivityHandlers||(s.curOp.cursorActivityHandlers=[]),d=0;d<l.length;++d)hr(g,l[d])==-1&&g.push(l[d])}function tr(s,l){return ni(s,l).length>0}function is(s){s.prototype.on=function(l,g){Ge(this,l,g)},s.prototype.off=function(l,g){kr(this,l,g)}}function ht(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function Dr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function mi(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function bs(s){ht(s),Dr(s)}function rn(s){return s.target||s.srcElement}function tn(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),q&&s.ctrlKey&&l==1&&(l=3),l}var Bo=function(){if(O&&D<9)return!1;var s=me("div");return"draggable"in s||"dragDrop"in s}(),sn;function ya(s){if(sn==null){var l=me("span","\u200B");Je(s,me("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(sn=l.offsetWidth<=1&&l.offsetHeight>2&&!(O&&D<8))}var g=sn?me("span","\u200B"):me("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Zt;function Gi(s){if(Zt!=null)return Zt;var l=Je(s,document.createTextNode("A\u062EA")),g=Cr(l,0,1).getBoundingClientRect(),d=Cr(l,1,2).getBoundingClientRect();return Ve(s),!g||g.left==g.right?!1:Zt=d.right-g.right<3}var nn=`
|
|
2
2
|
|
|
3
|
-
b`.split(/\n/).length!=3?function(s){for(var l=0,g=[],d=s.length;l<=d;){var
|
|
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 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 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 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 Xe(s,l){return s.line-l.line||s.ch-l.ch}function ya(s,l){return s.sticky==l.sticky&&Xe(s,l)==0}function Sa(s){return ce(s.line,s.ch)}function Vo(s,l){return Xe(s,l)<0?l:s}function Mo(s,l){return Xe(s,l)<0?s:l}function zl(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function Ye(s,l){if(l.line<s.first)return ce(s.first,0);var g=s.first+s.size-1;return l.line>g?ce(g,Ae(s,g).text.length):Xf(l,Ae(s,l.line).text.length)}function Xf(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]=Ye(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,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 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,y=function(O){g.baseTokens=m;var k=s.state.overlays[O],Y=1,re=0;g.state=!0,su(s,l.text,k.mode,g,function(ee,oe){for(var fe=Y;re<ee;){var he=m[Y];he>ee&&m.splice(Y,1,ee,m[Y+1],he),Y+=2,re=Math.min(ee,he)}if(oe)if(k.opaque)m.splice(fe,Y-fe,ee,"overlay "+oe),Y=fe+2;else for(;fe<Y;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,_e(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=Yf(s,l,g),b=I>d.first&&Ae(d,I-1).stateAfter,y=b?xi.fromSaved(d,b,I):new xi(d,et(d.mode),I);return d.iter(I,l,function(L){Qn(s,L.text,y);var O=y.line;L.stateAfter=O==l-1||O%5==0||O>=m.viewFrom&&O<m.viewTo?y.save():null,y.nextLine()}),g&&(d.modeFrontier=y.line),y}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=Ye(m,l);var y=Ae(m,l.line),L=kn(s,l.line,g),O=new je(y.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,Re(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 y=g.flattenSpans;y==null&&(y=s.options.flattenSpans);var L=0,O=null,k=new je(l,s.options.tabSize,d),Y,re=s.options.addModeClass&&[null];for(l==""&&iu(eu(g,d.state),I);!k.eol();){if(k.pos>s.options.maxHighlightLength?(y=!1,b&&Qn(s,l,d,k.pos),k.pos=l.length,Y=null):Y=iu(La(g,k,d.state,re),I),re){var ee=re[0].name;ee&&(Y="m-"+(Y?ee+" "+Y:ee))}if(!y||O!=Y){for(;L<k.start;)L=Math.min(k.start,L+5e3),m(L,O);O=Y}k.start=k.pos}for(;L<k.pos;){var oe=Math.min(k.pos,L+5e3);m(oe,O),L=oe}}function Yf(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),O=L.stateAfter;if(O&&(!g||y+(O instanceof Wo?O.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 $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 Yt(){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,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 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,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 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=Xe(l.from,l.to)==0,y=bs(g,m,b),L=Ts(d,I,b),O=l.text.length==1,k=Ie(l.text).length+(O?m:0);if(y)for(var Y=0;Y<y.length;++Y){var re=y[Y];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(y,fe.marker);he||(fe.from=k,O&&(y||(y=[])).push(fe))}else fe.from+=k,O&&(y||(y=[])).push(fe)}y&&(y=ss(y)),L&&L!=y&&(L=ss(L));var me=[y];if(!O){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 ln(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(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],y=b.find(0),L=0;L<m.length;++L){var O=m[L];if(!(Xe(O.to,y.from)<0||Xe(O.from,y.to)>0)){var k=[L,1],Y=Xe(O.from,y.from),re=Xe(O.to,y.to);(Y<0||!b.inclusiveLeft&&!Y)&&k.push({from:O.from,to:y.from}),(re>0||!b.inclusiveRight&&!re)&&k.push({from:y.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=Xe(d.from,m.from)||fn(s)-fn(l);if(I)return-I;var b=Xe(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 y=0;y<b.length;++y){var L=b[y];if(L.marker.collapsed){var O=L.marker.find(0),k=Xe(O.from,g)||fn(L.marker)-fn(m),Y=Xe(O.to,d)||pn(L.marker)-pn(m);if(!(k>=0&&Y<=0||k<=0&&Y>=0)&&(k<=0&&(L.marker.inclusiveRight&&m.inclusiveLeft?Xe(O.to,g)>=0:Xe(O.to,g)>0)||k>=0&&(L.marker.inclusiveRight&&m.inclusiveLeft?Xe(O.from,d)<=0:Xe(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 y=I.children[b];if(y==g)break;l+=y.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 y=l!=s.display.externalMeasured&&_e(I);np(I,d,Kl(s,I,y)),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 y=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(y),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 Y=0;;){L.lastIndex=Y;var re=L.exec(l),ee=re?re.index-Y:l.length-Y;if(ee){var oe=document.createTextNode(y.slice(Y,Y+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;Y+=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=y.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,y,L){m=m?m+" cm-force-border":"cm-force-border";for(var O=g.pos,k=O+d.length;;){for(var Y=void 0,re=0;re<l.length&&(Y=l[re],!(Y.to>O&&Y.from<=O));re++);if(Y.to>=k)return s(g,d,m,I,b,y,L);s(g,d.slice(0,Y.to-O),m,I,null,y,L),I=null,d=d.slice(Y.to-O),O=Y.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,O=1,k="",Y,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?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 _t=Math.min(y,ee);;){if(k){var Dt=L+k.length;if(!me){var _r=Dt>_t?k.slice(0,_t-L):k;l.addToken(l,_r,Y?Y+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++]),Y=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(y){m.push(function(){return g[y].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"?Xn(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 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 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,Xn(s,l)):g&&(l.text.className=g)}function Xn(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 O=s.display.gutterSpecs[L].className,k=I.hasOwnProperty(O)&&I[O];k&&y.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),Xn(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],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(),y=0;y<b.length-1;y++){var L=b[y],O=b[y+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=Yn(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,O=0;O<s.length;O+=3)if(y=s[O],L=s[O+1],l<y?(m=0,I=1,b="left"):l<L?(m=l-y,I=m+1):(O==s.length-3||l==L&&s[O+3]>l)&&(I=L-y,m=I-1,l>=L&&(b="right")),m!=null){if(d=s[O+2],y==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-y)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: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 Yn(s,l,g,d){var m=gu(l.map,g,d),I=m.node,b=m.start,y=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+y<m.coverEnd&&ct(l.line.text.charAt(m.coverStart+y));)++y;if(G&&V<9&&b==0&&y==m.coverEnd-m.coverStart?O=I.parentNode.getBoundingClientRect():O=pp(Cr(I,b,y).getClientRects(),d),O.left||O.right||b==0)break;y=b,b=b-1,L="right"}G&&V<11&&(O=cp(s.display.measure,O))}else{b>0&&(L=d="right");var Y;s.options.lineWrapping&&(Y=I.getClientRects()).length>1?O=Y[d=="right"?Y.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 Xo(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){Xo(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 y=s.display.lineSpace.getBoundingClientRect();b+=y.top+(d=="window"?0:vu(cr(s)));var L=y.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 Yo(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 y=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"),!y)return b(O=="before"?L-1:L,O=="before");function k(oe,fe,he){var me=y[fe],Ce=me.level==1;return b(he?oe-1:oe,Ce!=he)}var Y=bt(y,L,O),re=ti,ee=k(L,Y,O=="before");return re!=null&&(ee.other=k(L,re,O!="before")),ee}function mu(s,l){var g=0;l=Ye(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 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 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),y=0,L=l.text.length,O=!0,k=Tr(l,s.doc.direction);if(k){var Y=(s.options.lineWrapping?ws:Ze)(s,l,g,I,k,d,m);O=Y.level!=1,y=O?Y.from:Y.to-1,L=O?Y.to:Y.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},y,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==y)&&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 y=ri(function(Y){var re=m[Y],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[y];if(y>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[y-1])}return L}function ws(s,l,g,d,m,I,b){var y=xu(s,l,d,b),L=y.begin,O=y.end;/\s/.test(l.text.charAt(O-1))&&O--;for(var k=null,Y=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||Y>he)&&(k=ee,Y=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 y=s.display.gutterSpecs[b].className;g[y]=I.offsetLeft+I.clientLeft+m,d[y]=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,y=m.lineSpace.getBoundingClientRect();try{I=l.clientX-y.left,b=l.clientY-y.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 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 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 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 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 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 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=Yo(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 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),y=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
|
-
top: `+be+"px; width: "+(
|
|
7
|
-
height: `+(
|
|
8
|
-
top: `+(l.top-g.viewOffset-
|
|
9
|
-
height: `+(l.bottom-l.top+
|
|
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=$e(s,l),L=!g||g==l?y:$e(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 O=_a(s,m),k=s.doc.scrollTop,Y=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-Y)>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 y=s.doc.height+Da(g),L=l.top<d,O=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,(O?y:l.bottom)-I);k!=m&&(b.scrollTop=k)}var Y=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-Y,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+Y-(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||Ya(s,{top:l}),bu(s,l,!0),e&&Ya(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 Ru={native:Ds,null:Kn};function yu(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Pe(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):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;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&&Xa(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,Ye(d,s.scrollToPos.from),Ye(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 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(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 O=I.styleClasses,k=L.classes;k?I.styleClasses=k:O&&(I.styleClasses=null);for(var Y=!b||b.length!=I.styles.length||O!=k&&(!O||!k||O.bgClass!=k.bgClass||O.textClass!=k.textClass),re=0;!Y&&re<b.length;++re)Y=b[re]!=I.styles[re];Y&&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 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(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 Xa(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 y=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(!y&&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,y&&(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(!Xa(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 Ya(s,l){var g=new qo(s,l);if(Xa(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 y(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 Y=L[k];if(!Y.hidden)if(!Y.node||Y.node.parentNode!=I){var re=Ft(s,Y,O,g);I.insertBefore(re,b)}else{for(;b!=Y.node;)b=y(b);var ee=m&&l!=null&&l<=O&&Y.lineNumber;Y.changes&&(hr(Y.changes,"gutter")>-1&&(ee=!1),uu(s,Y,O,g)),ee&&(Me(Y.lineNumber),Y.lineNumber.appendChild(document.createTextNode(Ra(s.options,O)))),b=Y.node.nextSibling}O+=Y.size}for(;b;)b=y(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 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",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,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",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&&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,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,y=b.scroller,L=y.scrollWidth>y.clientWidth,O=y.scrollHeight>y.clientHeight;if(d&&L||m&&O){if(m&&q&&Z){e:for(var k=l.target,Y=b.view;k!=y;k=k.parentNode)for(var re=0;re<Y.length;re++)if(Y[re].node==k){s.display.currentWheelTarget=k;break e}}if(d&&!e&&!J&&I!=null){m&&O&&jn(s,Math.max(0,y.scrollTop+m*I)),Bs(s,Math.max(0,y.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),Ya(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&&(ki=(ki*Ko+Ce)/(Ko+1),++Ko)}},200)):(b.wheelDX+=d,b.wheelDY+=m))}}var Rr=function(s,l){this.ranges=s,this.primIndex=l};Rr.prototype.primary=function(){return this.ranges[this.primIndex]},Rr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],d=s.ranges[l];if(!ya(g.anchor,d.anchor)||!ya(g.head,d.head))return!1}return!0},Rr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new lr(Sa(this.ranges[l].anchor),Sa(this.ranges[l].head));return new Rr(s,this.primIndex)},Rr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Rr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if(Xe(l,d.from())>=0&&Xe(s,d.to())<=0)return g}return-1};var lr=function(s,l){this.anchor=s,this.head=l};lr.prototype.from=function(){return 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 Xe(re.from(),ee.from())}),g=hr(l,m);for(var I=1;I<l.length;I++){var b=l[I],y=l[I-1],L=Xe(y.to(),b.from());if(d&&!b.empty()?L>0:L>=0){var O=Mo(y.from(),b.from()),k=Vo(y.to(),b.to()),Y=y.empty()?b.from()==b.head:y.from()==y.head;I<=g&&--g,l.splice(--I,2,new lr(Y?k:O,Y?O:k))}}return new Rr(l,g)}function Ti(s,l){return new Rr([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(Xe(s,l.from)<0)return s;if(Xe(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 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 y=l[b],L=Gu(y.from,m,I),O=Gu(Ri(y),m,I);if(m=y.to,I=O,g=="around"){var k=s.sel.ranges[b],Y=Xe(k.head,k.anchor)<0;d[b]=new lr(Y?O:L,Y?L:O)}else d[b]=new lr(L,L)}return new Rr(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 y=l.from,L=l.to,O=l.text,k=Ae(s,y.line),Y=Ae(s,L.line),re=Ie(O),ee=m(O.length-1),oe=L.line-y.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(Y,Y.text,ee),oe&&s.remove(y.line,oe),fe.length&&s.insert(y.line,fe)}else if(k==Y)if(O.length==1)I(k,k.text.slice(0,y.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,y.ch)+O[0],m(0)),s.insert(y.line+1,he)}else if(O.length==1)I(k,k.text.slice(0,y.ch)+O[0]+Y.text.slice(L.ch),m(0)),s.remove(y.line+1,oe);else{I(k,k.text.slice(0,y.ch)+O[0],m(0)),I(Y,re+Y.text.slice(L.ch),ee);var me=b(1,O.length-1);oe>1&&s.remove(y.line+1,oe-1),s.insert(y.line+1,me)}rt(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 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:Ri(l),text:dt(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),Xe(l.from,l.to)==0&&Xe(l.from,y.to)==0?y.to=Ri(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,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],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?Rr.prototype.deepCopy.call(I):I);continue}var b=I.changes,y=[];d.push({changes:y});for(var L=0;L<b.length;++L){var O=b[L],k=void 0;if(y.push({from:O.from,to:O.to,text:O.text}),l)for(var Y in O)(k=Y.match(/^spans_(\d+)$/))&&hr(l,Number(k[1]))>-1&&(Ie(y)[Y]=O[Y],delete O[Y])}}return d}function ja(s,l,g,d){if(d){var m=s.anchor;if(g){var I=Xe(l,m)<0;I!=Xe(g,m)<0?(m=l,l=g):I!=Xe(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 Rr([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(Ye(s,m[I].anchor),Ye(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||(Xe(l.primary().head,s.sel.primary().head)<0?-1:1);Tn(s,yn(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 Rn(s){Tn(s,yn(s,s.sel,null,!1))}function yn(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),O=b.head==b.anchor?L:oa(s,b.head,y&&y.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 y=I.markedSpans[b],L=y.marker,O="selectLeft"in L?!L.selectLeft:L.inclusiveLeft,k="selectRight"in L?!L.selectRight:L.inclusiveRight;if((y.from==null||(O?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 Y=L.find(d<0?1:-1),re=void 0;if((d<0?k:O)&&(Y=Pu(s,Y,-d,Y&&Y.line==l.line?I:null)),Y&&Y.line==l.line&&(re=Xe(Y,g))&&(d<0?re<0:re>0))return ds(s,Y,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?Ye(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,y){m&&(d.from=Ye(s,m)),I&&(d.to=Ye(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 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&&Rs(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]==""&&Xe(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=[];yi(s,function(m,I){!I&&hr(d,m.history)==-1&&(Yu(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,y=l=="undo"?m.done:m.undone,L=l=="undo"?m.undone:m.done,O=0;O<y.length&&(I=y[O],!(g?I.ranges&&!I.equals(s.sel):!I.ranges));O++);if(O!=y.length){for(m.lastOrigin=m.lastSelOrigin=null;;)if(I=y.pop(),I.ranges){if(hs(I,L),g&&!I.equals(s.sel)){xt(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 Y=tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"),re=function(fe){var he=I.changes[fe];if(he.origin=l,Y&&!ku(s,he,!1))return y.length=0,{};k.push(so(s,he));var me=fe?Qi(s,he):Ie(y);no(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&&(Yu(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 Rr(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,y=!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 y=!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,y=!1)}),y&&(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"),Y=tr(s,"change");if(Y||k){var re={from:I,to:b,text:l.text,removed:l.removed,origin:l.origin};Y&&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),Xe(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 Xu(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 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 Yu(s,l){var g=l.from.line,d=l.to.line,m=l.text.length-(d-g)-1;Xu(s.done,g,d,m),Xu(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 y=[];this.collapse(y),this.children=[new ao(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 ao(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 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 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;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],y=Ns(b.markedSpans,this);s&&!this.collapsed?kt(s,_e(b),"text"):s&&(y.to!=null&&(m=_e(b)),y.from!=null&&(d=_e(b))),b.markedSpans=wa(b.markedSpans,y),y.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&&Rn(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 y=g.height;g.height=null;var L=Wi(g)-y;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=Xe(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");Yt()}I.addToHistory&&Fu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,L=s.cm,O;if(s.iter(y,g.line+1,function(Y){L&&I.collapsed&&!L.options.lineWrapping&&ai(Y)==L.display.maxLine&&(O=!0),I.collapsed&&y!=l.line&&Zt(Y,0),Di(Y,new ln(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(Y){Ci(s,Y)&&Zt(Y,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&&Rn(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],y=d.widgetNode;return yi(s,function(L){y&&(d.widgetNode=y.cloneNode(!0)),I.push(wn(L,Ye(L,l),Ye(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(Xe(I,b)){var y=wn(s,I,b,d.primary,d.primary.type);d.markers.push(y),y.parent=d}}}function _p(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,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=Ye(this,l),g=g?Ye(this,g):l,Ln(this,s,l,g,d)},getRange:function(s,l,g){var d=dt(this,Ye(this,s),Ye(this,l));return g===!1?d:g===""?d.join(""):d.join(g||this.lineSeparator())},getLine:function(s){var l=this.getLineHandle(s);return l&&l.text},getLineHandle:function(s){if(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 Ye(this,s)},getCursor:function(s){var l=this.sel.primary(),g;return s==null||s=="head"?g=l.head:s=="anchor"?g=l.anchor:s=="end"||s=="to"||s===!1?g=l.to():g=l.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:it(function(s,l,g){Mu(this,Ye(this,typeof s=="number"?ce(s,l||0):s),null,g)}),setSelection:it(function(s,l,g){Mu(this,Ye(this,s),Ye(this,l||s),g)}),extendSelection:it(function(s,l,g){na(this,Ye(this,s),l&&Ye(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(Ye(this,s[m].anchor),Ye(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(Ye(this,s),Ye(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 y=l&&l!="end"&&Gp(this,d,l),L=d.length-1;L>=0;L--)Sn(this,d[L]);y?Wu(this,y):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),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: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 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:it(function(s,l,g){return Zp(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return wn(this,Ye(this,s),Ye(this,l),g,g&&g.type||"range")},setBookmark:function(s,l){var g={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return s=Ye(this,s),wn(this,s,s,g,"bookmark")},findMarksAt:function(s){s=Ye(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=Ye(this,s),l=Ye(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}),Ye(this,ce(g,l))},indexFromPos:function(s){s=Ye(this,s);var l=s.ch;if(s.line<this.first||s.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,s.line,function(d){l+=d.text.length+g}),l},copy:function(s){var l=new Bt(vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,s&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(s){s||(s={});var l=this.first,g=this.first+this.size;s.from!=null&&s.from>l&&(l=s.from),s.to!=null&&s.to<g&&(g=s.to);var d=new Bt(vi(this,l,g),s.mode||this.modeOption,l,this.lineSep,this.direction);return s.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:s.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],Qp(d,zu(this)),d},unlinkDoc:function(s){if(s instanceof yr&&(s=s.doc),this.linked)for(var l=0;l<this.linked.length;++l){var g=this.linked[l];if(g.doc==s){this.linked.splice(l,1),s.unlinkDoc(this),_p(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 In(null),s.history.done=Nn(this.history.done,d),s.history.undone=Nn(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):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 Xp(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,y=function(){++b==m&&tt(l,function(){g=Ye(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(Ye(l.doc,g),Ye(l.doc,Ri(ee))))})()},L=function(ee,oe){if(l.options.allowDropFileTypes&&hr(l.options.allowDropFileTypes,ee.type)==-1){y();return}var fe=new FileReader;fe.onerror=function(){return y()},fe.onload=function(){var he=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){y();return}I[oe]=he,y()},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 Y;if(l.state.draggingText&&!l.state.draggingText.copy&&(Y=l.listSelections()),bn(l.doc,Ti(g,g)),Y)for(var re=0;re<Y.length;++re)Ln(l.doc,"",Y[re].anchor,Y[re].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function Yp(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 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=Ot(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 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&&Xe(I.from,Ie(d).to)<=0;){var b=d.pop();if(Xe(b.from,I.from)<0){I.from=b.from;break}}d.push(I)}Qt(s,function(){for(var y=d.length-1;y>=0;y--)Ln(s.doc,"",d[y].from,d[y].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],y=m<0==(b.level==1),L=y?"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 Y=Ni(l,k,O).top;O=ri(function(re){return Ni(l,k,re).top==Y},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 y=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"?y(g,-1):g.ch);if(s.doc.direction=="rtl"||b.level==1){var Y=b.level==1==d<0,re=y(g,Y?1:-1);if(re!=null&&(Y?re<=b.to&&re<=k.end:re>=b.from&&re>=k.begin)){var ee=Y?"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,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,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:Ye(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&&Xe(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 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=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&&(Xe((b=I.ranges[b]).from(),l)<0||l.xRel>0)&&(Xe(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",y),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())}),y=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",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),Ye(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,y,L=I.sel,O=L.ranges;if(d.addNew&&!d.extend?(y=I.sel.contains(g),y>-1?b=O[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=O.length,xt(I,We(s,O.concat([b]),y),{scroll:!1,origin:"*mouse"})):O.length>1&&O[y].empty()&&d.unit=="char"&&!d.extend?(xt(I,We(s,O.slice(0,y).concat(O.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),L=I.sel):qa(I,y,b,Er):(y=0,xt(I,new Rr([b],0),Er),L=I.sel);var Y=g;function re(xe){if(Xe(Y,xe)!=0)if(Y=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=ye(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,ye(Dt,st,Ve))))}be.length||be.push(new lr(g,g)),xt(I,We(s,L.ranges.slice(0,y).concat(be),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(xe)}else{var Vt=b,lt=hf(s,xe,d.unit),jr=Vt.anchor,Hr;Xe(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[y]=hc(s,new lr(Ye(I,jr),Hr)),xt(I,We(s,Gr,y),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(Xe(Ve,Y)!=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(Xe(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),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 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),Y=k-b||(d.ch-g.ch)*(y.level==1?-1:1);k==L-1||k==L?O=Y<0:O=Y>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,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 O=b.gutters.childNodes[L];if(O&&O.getBoundingClientRect().right>=m){var k=mi(s.doc,I),Y=s.display.gutterSpecs[L];return ar(s,g,s,k,Y.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(y,L,O){O!=Gn&&I(y,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 y=I.length-1;y>=0;y--)Ln(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!=Gn&&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),to(d)},!0),g("keyMap","default",function(d,m,I){var b=ua(m),y=I!=Gn&&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),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){yu(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 yr(s,l){var g=this;if(!(this instanceof yr))return new yr(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 yr.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 Zr,keySeq:null,specialChars:null},l.autofocus&&!X&&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&&!X||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 y=0;y<nl.length;++y)nl[y](this);Ms(this),Z&&l.lineWrapping&&getComputedStyle(I.lineDiv).textRendering=="optimizelegibility"&&(I.lineDiv.style.textRendering="auto")}yr.defaults=vf,yr.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,Y=O.top-L.top;return k*k+Y*Y>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"),Y;!O.prev||b(O,O.prev)?Y=new lr(k,k):!O.prev.prev||b(O,O.prev.prev)?Y=s.findWordAt(k):Y=new lr(ce(k.line,0),Ye(s.doc,ce(k.line+1,0))),s.setSelection(Y.anchor,Y.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 Yp(s,L)},drop:tt(s,Xp),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",tt(s,uf)),Ue(y,"keypress",tt(s,pf)),Ue(y,"focus",function(L){return Qa(s,L)}),Ue(y,"blur",function(L){return xn(s,L)})}var nl=[];yr.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,y=Ae(m,l),L=Ar(y.text,null,b);y.stateAfter&&(y.stateAfter=null);var O=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(O.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 Y="",re=0;if(s.options.indentWithTabs)for(var ee=Math.floor(k/b);ee;--ee)re+=b,Y+=" ";if(re<k&&(Y+=ei(k-re)),Y!=O)return Ln(m,Y,ce(l,0),ce(l,O.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<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,y=m=="paste"||s.state.pasteIncoming>b,L=sn(l),O=null;if(y&&d.ranges.length>1)if(fi&&fi.text.join(`
|
|
13
|
-
`)==l){if(d.ranges.length%fi.text.length==0){
|
|
14
|
-
`)==
|
|
15
|
-
`)&&(oe=fe=ce(oe.line,0)));var he={from:oe,to:fe,text:O?O[re%O.length]:L,origin:m||(y?"paste":s.state.cutIncoming>b?"cut":"+input")};Sn(s.doc,he),rt(s,"inputRead",s,he)}l&&!y&&xf(s,l),Cn(s),s.curOp.updateInput<2&&(s.curOp.updateInput=Y),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 y=0;y<I.electricChars.length;y++)if(l.indexOf(I.electricChars.charAt(y))>-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 y=m[b];if(y.empty())y.head.line>I&&(mo(this,y.head.line,d,!0),I=y.head.line,b==this.doc.sel.primIndex&&Cn(this));else{var L=y.from(),O=y.to(),k=Math.max(I,L.line);I=Math.min(this.lastLine(),O.line-(O.ch?0:1))+1;for(var Y=k;Y<I;++Y)mo(this,Y,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=Ye(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 O=I+b>>1;if((O?m[O*2-1]:0)>=y)b=O;else if(m[O*2+1]<y)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],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 O=b[y[m][L]];O&&I.push(O)}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 Y=b._global[k];Y.pred(y,this)&&hr(I,Y.val)==-1&&I.push(Y.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=Ye(this.doc,d):I=d?b.from():b.to(),$e(this,I,m||"page")},charCoords:function(d,m){return Yo(this,Ye(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,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 vn(this,y,{top:0,left:0},m||"page",I||b).top+(b?this.doc.height-Mi(y):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,y){var L=this.display;d=$e(this,Ye(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 Y=Math.max(L.wrapper.clientHeight,this.doc.height),re=Math.max(L.sizer.clientWidth,L.lineSpace.clientWidth);(b=="above"||d.bottom+m.offsetHeight>Y)&&d.top>m.offsetHeight?O=d.top-m.offsetHeight:d.bottom+m.offsetHeight<=Y&&(O=d.bottom),k+m.offsetWidth>re&&(k=re-m.offsetWidth)}m.style.top=O+"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: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 y=1;m<0&&(y=-1,m=-m);for(var L=Ye(this.doc,d),O=0;O<m&&(L=ll(this.doc,L,y,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(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 O=Ye(this.doc,d),k=0;k<m;++k){var Y=$e(this,O,"div");if(L==null?L=Y.left:Y.left=L,O=If(this,Y,y,I),O.hitSide)break}return O},moveV:Tt(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 Y=$e(I,k.head,"div");k.goalColumn!=null&&(Y.left=k.goalColumn),y.push(Y.left);var re=If(I,Y,d,m);return m=="page"&&k==b.sel.primary()&&Ha(I,Yo(I,re,"div").top-Y.top),re},fr),y.length)for(var O=0;O<b.sel.ranges.length;O++)b.sel.ranges[O].goalColumn=y[O]}),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 O=I.charAt(b),k=Se(O,L)?function(Y){return Se(Y,L)}:/\s/.test(O)?function(Y){return/\s/.test(Y)}:function(Y){return!/\s/.test(Y)&&!Se(Y)};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"):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&&Xo(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(L){if(L.widgets){for(var O=0;O<L.widgets.length;O++)if(L.widgets[O].noHScroll){kt(I,y,"widget");break}}++y}),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,y=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),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&&O())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 Y=null,re=d=="group",ee=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!k(!oe));oe=!1){var fe=y.text.charAt(l.ch)||`
|
|
16
|
-
`,
|
|
17
|
-
`?"n":!re||/\s/.test(
|
|
18
|
-
`);if(y.clipboardData.setData("Text",
|
|
19
|
-
`);var re
|
|
20
|
-
`),Lt(
|
|
21
|
-
`)>-1?g.value=s.prevInput="":s.prevInput=
|
|
3
|
+
b`.split(/\n/).length!=3?function(s){for(var l=0,g=[],d=s.length;l<=d;){var v=s.indexOf(`
|
|
4
|
+
`,l);v==-1&&(v=s.length);var A=s.slice(l,s.charAt(v-1)=="\r"?v-1:v),b=A.indexOf("\r");b!=-1?(g.push(A.slice(0,b)),l+=b+1):(g.push(A),l=v+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Vo=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var l;try{l=s.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=s?!1:l.compareEndPoints("StartToEnd",l)!=0},kn=function(){var s=me("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),on=null;function oi(s){if(on!=null)return on;var l=Je(s,me("span","x")),g=l.getBoundingClientRect(),d=Cr(l,0,1).getBoundingClientRect();return on=Math.abs(g.left-d.left)>1}var an={},Bi={};function Do(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),an[s]=l}function Mo(s,l){Bi[s]=l}function ln(s){if(typeof s=="string"&&Bi.hasOwnProperty(s))s=Bi[s];else if(s&&typeof s.name=="string"&&Bi.hasOwnProperty(s.name)){var l=Bi[s.name];typeof l=="string"&&(l={name:l}),s=rs(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return ln("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return ln("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function We(s,l){l=ln(l);var g=an[l.name];if(!g)return We(s,"text/plain");var d=g(s,l);if(K.hasOwnProperty(l.name)){var v=K[l.name];for(var A in v)v.hasOwnProperty(A)&&(d.hasOwnProperty(A)&&(d["_"+A]=d[A]),d[A]=v[A])}if(d.name=l.name,l.helperType&&(d.helperType=l.helperType),l.modeProps)for(var b in l.modeProps)d[b]=l.modeProps[b];return d}var K={};function Ee(s,l){var g=K.hasOwnProperty(s)?K[s]:K[s]={};zr(l,g)}function Se(s,l){if(l===!0)return l;if(s.copyState)return s.copyState(l);var g={};for(var d in l){var v=l[d];v instanceof Array&&(v=v.concat([])),g[d]=v}return g}function mr(s,l){for(var g;s.innerMode&&(g=s.innerMode(l),!(!g||g.mode==s));)l=g.state,s=g.mode;return g||{mode:s,state:l}}function et(s,l,g){return s.startState?s.startState(l,g):!0}var qe=function(s,l,g){this.pos=this.start=0,this.string=s,this.tabSize=l||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=g};qe.prototype.eol=function(){return this.pos>=this.string.length},qe.prototype.sol=function(){return this.pos==this.lineStart},qe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qe.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qe.prototype.eat=function(s){var l=this.string.charAt(this.pos),g;if(typeof s=="string"?g=l==s:g=l&&(s.test?s.test(l):s(l)),g)return++this.pos,l},qe.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},qe.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},qe.prototype.skipToEnd=function(){this.pos=this.string.length},qe.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},qe.prototype.backUp=function(s){this.pos-=s},qe.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ir(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ir(this.string,this.lineStart,this.tabSize):0)},qe.prototype.indentation=function(){return Ir(this.string,null,this.tabSize)-(this.lineStart?Ir(this.string,this.lineStart,this.tabSize):0)},qe.prototype.match=function(s,l,g){if(typeof s=="string"){var d=function(b){return g?b.toLowerCase():b},v=this.string.substr(this.pos,s.length);if(d(v)==d(s))return l!==!1&&(this.pos+=s.length),!0}else{var A=this.string.slice(this.pos).match(s);return A&&A.index>0?null:(A&&l!==!1&&(this.pos+=A[0].length),A)}},qe.prototype.current=function(){return this.string.slice(this.start,this.pos)},qe.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},qe.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},qe.prototype.baseToken=function(){var s=this.lineOracle;return s&&s.baseToken(this.pos)};function Ie(s,l){if(l-=s.first,l<0||l>=s.size)throw new Error("There is no line "+(l+s.first)+" in the document.");for(var g=s;!g.lines;)for(var d=0;;++d){var v=g.children[d],A=v.chunkSize();if(l<A){g=v;break}l-=A}return g.lines[l]}function dt(s,l,g){var d=[],v=l.line;return s.iter(l.line,g.line+1,function(A){var b=A.text;v==g.line&&(b=b.slice(0,g.ch)),v==l.line&&(b=b.slice(l.ch)),d.push(b),++v}),d}function vi(s,l,g){var d=[];return s.iter(l,g,function(v){d.push(v.text)}),d}function Pt(s,l){var g=l-s.height;if(g)for(var d=s;d;d=d.parent)d.height+=g}function _e(s){if(s.parent==null)return null;for(var l=s.parent,g=hr(l.lines,s),d=l.parent;d;l=d,d=d.parent)for(var v=0;d.children[v]!=l;++v)g+=d.children[v].chunkSize();return g+l.first}function xi(s,l){var g=s.first;e:do{for(var d=0;d<s.children.length;++d){var v=s.children[d],A=v.height;if(l<A){s=v;continue e}l-=A,g+=v.chunkSize()}return g}while(!s.lines);for(var b=0;b<s.lines.length;++b){var y=s.lines[b],w=y.height;if(l<w)break;l-=w}return g+b}function ss(s,l){return l>=s.first&&l<s.first+s.size}function Sa(s,l){return String(s.lineNumberFormatter(l+s.firstLineNumber))}function he(s,l,g){if(g===void 0&&(g=null),!(this instanceof he))return new he(s,l,g);this.line=s,this.ch=l,this.sticky=g}function Xe(s,l){return s.line-l.line||s.ch-l.ch}function La(s,l){return s.sticky==l.sticky&&Xe(s,l)==0}function wa(s){return he(s.line,s.ch)}function Wo(s,l){return Xe(s,l)<0?l:s}function Zo(s,l){return Xe(s,l)<0?s:l}function eu(s,l){return Math.max(s.first,Math.min(l,s.first+s.size-1))}function Ye(s,l){if(l.line<s.first)return he(s.first,0);var g=s.first+s.size-1;return l.line>g?he(g,Ie(s,g).text.length):jf(l,Ie(s,l.line).text.length)}function jf(s,l){var g=s.ch;return g==null||g>l?he(s.line,l):g<0?he(s.line,0):s}function ru(s,l){for(var g=[],d=0;d<l.length;d++)g[d]=Ye(s,l[d]);return g}var Po=function(s,l){this.state=s,this.lookAhead=l},Ci=function(s,l,g,d){this.state=l,this.doc=s,this.line=g,this.maxLookAhead=d||0,this.baseTokens=null,this.baseTokenPos=1};Ci.prototype.lookAhead=function(s){var l=this.doc.getLine(this.line+s);return l!=null&&s>this.maxLookAhead&&(this.maxLookAhead=s),l},Ci.prototype.baseToken=function(s){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=s;)this.baseTokenPos+=2;var l=this.baseTokens[this.baseTokenPos+1];return{type:l&&l.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-s}},Ci.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ci.fromSaved=function(s,l,g){return l instanceof Po?new Ci(s,Se(s.mode,l.state),g,l.lookAhead):new Ci(s,Se(s.mode,l),g)},Ci.prototype.save=function(s){var l=s!==!1?Se(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Po(l,this.maxLookAhead):l};function tu(s,l,g,d){var v=[s.state.modeGen],A={};lu(s,l.text,s.doc.mode,g,function(U,k){return v.push(U,k)},A,d);for(var b=g.state,y=function(U){g.baseTokens=v;var k=s.state.overlays[U],J=1,re=0;g.state=!0,lu(s,l.text,k.mode,g,function(ee,oe){for(var ce=J;re<ee;){var de=v[J];de>ee&&v.splice(J,1,ee,v[J+1],de),J+=2,re=Math.min(ee,de)}if(oe)if(k.opaque)v.splice(ce,J-ce,ee,"overlay "+oe),J=ce+2;else for(;ce<J;ce+=2){var ve=v[ce+1];v[ce+1]=(ve?ve+" ":"")+"overlay "+oe}},A),g.state=b,g.baseTokens=null,g.baseTokenPos=1},w=0;w<s.state.overlays.length;++w)y(w);return{styles:v,classes:A.bgClass||A.textClass?A:null}}function iu(s,l,g){if(!l.styles||l.styles[0]!=s.state.modeGen){var d=Qn(s,_e(l)),v=l.text.length>s.options.maxHighlightLength&&Se(s.doc.mode,d.state),A=tu(s,l,d);v&&(d.state=v),l.stateAfter=d.save(!v),l.styles=A.styles,A.classes?l.styleClasses=A.classes:l.styleClasses&&(l.styleClasses=null),g===s.doc.highlightFrontier&&(s.doc.modeFrontier=Math.max(s.doc.modeFrontier,++s.doc.highlightFrontier))}return l.styles}function Qn(s,l,g){var d=s.doc,v=s.display;if(!d.mode.startState)return new Ci(d,!0,l);var A=qf(s,l,g),b=A>d.first&&Ie(d,A-1).stateAfter,y=b?Ci.fromSaved(d,b,A):new Ci(d,et(d.mode),A);return d.iter(A,l,function(w){_n(s,w.text,y);var U=y.line;w.stateAfter=U==l-1||U%5==0||U>=v.viewFrom&&U<v.viewTo?y.save():null,y.nextLine()}),g&&(d.modeFrontier=y.line),y}function _n(s,l,g,d){var v=s.doc.mode,A=new qe(l,s.options.tabSize,g);for(A.start=A.pos=d||0,l==""&&su(v,g.state);!A.eol();)Oa(v,A,g.state),A.start=A.pos}function su(s,l){if(s.blankLine)return s.blankLine(l);if(s.innerMode){var g=mr(s,l);if(g.mode.blankLine)return g.mode.blankLine(g.state)}}function Oa(s,l,g,d){for(var v=0;v<10;v++){d&&(d[0]=mr(s,g).mode);var A=s.token(l,g);if(l.pos>l.start)return A}throw new Error("Mode "+s.name+" failed to advance stream.")}var nu=function(s,l,g){this.start=s.start,this.end=s.pos,this.string=s.current(),this.type=l||null,this.state=g};function ou(s,l,g,d){var v=s.doc,A=v.mode,b;l=Ye(v,l);var y=Ie(v,l.line),w=Qn(s,l.line,g),U=new qe(y.text,s.options.tabSize,w),k;for(d&&(k=[]);(d||U.pos<l.ch)&&!U.eol();)U.start=U.pos,b=Oa(A,U,w.state),d&&k.push(new nu(U,b,Se(v.mode,w.state)));return d?k:new nu(U,b,w.state)}function au(s,l){if(s)for(;;){var g=s.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!g)break;s=s.slice(0,g.index)+s.slice(g.index+g[0].length);var d=g[1]?"bgClass":"textClass";l[d]==null?l[d]=g[2]:new RegExp("(?:^|\\s)"+g[2]+"(?:$|\\s)").test(l[d])||(l[d]+=" "+g[2])}return s}function lu(s,l,g,d,v,A,b){var y=g.flattenSpans;y==null&&(y=s.options.flattenSpans);var w=0,U=null,k=new qe(l,s.options.tabSize,d),J,re=s.options.addModeClass&&[null];for(l==""&&au(su(g,d.state),A);!k.eol();){if(k.pos>s.options.maxHighlightLength?(y=!1,b&&_n(s,l,d,k.pos),k.pos=l.length,J=null):J=au(Oa(g,k,d.state,re),A),re){var ee=re[0].name;ee&&(J="m-"+(J?ee+" "+J:ee))}if(!y||U!=J){for(;w<k.start;)w=Math.min(k.start,w+5e3),v(w,U);U=J}k.start=k.pos}for(;w<k.pos;){var oe=Math.min(k.pos,w+5e3);v(oe,U),w=oe}}function qf(s,l,g){for(var d,v,A=s.doc,b=g?-1:l-(s.doc.mode.innerMode?1e3:100),y=l;y>b;--y){if(y<=A.first)return A.first;var w=Ie(A,y-1),U=w.stateAfter;if(U&&(!g||y+(U instanceof Po?U.lookAhead:0)<=A.modeFrontier))return y;var k=Ir(w.text,null,s.options.tabSize);(v==null||d>k)&&(v=y-1,d=k)}return v}function Kf(s,l){if(s.modeFrontier=Math.min(s.modeFrontier,l),!(s.highlightFrontier<l-10)){for(var g=s.first,d=l-1;d>g;d--){var v=Ie(s,d).stateAfter;if(v&&(!(v instanceof Po)||d+v.lookAhead<l)){g=d+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var ko=!1,Vi=!1;function ec(){ko=!0}function Yt(){Vi=!0}function un(s,l,g){this.marker=s,this.from=l,this.to=g}function Ts(s,l){if(s)for(var g=0;g<s.length;++g){var d=s[g];if(d.marker==l)return d}}function Ua(s,l){for(var g,d=0;d<s.length;++d)s[d]!=l&&(g||(g=[])).push(s[d]);return g}function Di(s,l,g){var d=g&&window.WeakSet&&(g.markedSpans||(g.markedSpans=new WeakSet));d&&s.markedSpans&&d.has(s.markedSpans)?s.markedSpans.push(l):(s.markedSpans=s.markedSpans?s.markedSpans.concat([l]):[l],d&&d.add(s.markedSpans)),l.marker.attachLine(s)}function Rs(s,l,g){var d;if(s)for(var v=0;v<s.length;++v){var A=s[v],b=A.marker,y=A.from==null||(b.inclusiveLeft?A.from<=l:A.from<l);if(y||A.from==l&&b.type=="bookmark"&&(!g||!A.marker.insertLeft)){var w=A.to==null||(b.inclusiveRight?A.to>=l:A.to>l);(d||(d=[])).push(new un(b,A.from,w?null:A.to))}}return d}function ys(s,l,g){var d;if(s)for(var v=0;v<s.length;++v){var A=s[v],b=A.marker,y=A.to==null||(b.inclusiveRight?A.to>=l:A.to>l);if(y||A.from==l&&b.type=="bookmark"&&(!g||A.marker.insertLeft)){var w=A.from==null||(b.inclusiveLeft?A.from<=l:A.from<l);(d||(d=[])).push(new un(b,w?null:A.from-l,A.to==null?null:A.to-l))}}return d}function Mi(s,l){if(l.full)return null;var g=ss(s,l.from.line)&&Ie(s,l.from.line).markedSpans,d=ss(s,l.to.line)&&Ie(s,l.to.line).markedSpans;if(!g&&!d)return null;var v=l.from.ch,A=l.to.ch,b=Xe(l.from,l.to)==0,y=Rs(g,v,b),w=ys(d,A,b),U=l.text.length==1,k=Ae(l.text).length+(U?v:0);if(y)for(var J=0;J<y.length;++J){var re=y[J];if(re.to==null){var ee=Ts(w,re.marker);ee?U&&(re.to=ee.to==null?null:ee.to+k):re.to=v}}if(w)for(var oe=0;oe<w.length;++oe){var ce=w[oe];if(ce.to!=null&&(ce.to+=k),ce.from==null){var de=Ts(y,ce.marker);de||(ce.from=k,U&&(y||(y=[])).push(ce))}else ce.from+=k,U&&(y||(y=[])).push(ce)}y&&(y=ns(y)),w&&w!=y&&(w=ns(w));var ve=[y];if(!U){var Ce=l.text.length-2,xe;if(Ce>0&&y)for(var be=0;be<y.length;++be)y[be].to==null&&(xe||(xe=[])).push(new un(y[be].marker,null,null));for(var Ze=0;Ze<Ce;++Ze)ve.push(xe);ve.push(w)}return ve}function ns(s){for(var l=0;l<s.length;++l){var g=s[l];g.from!=null&&g.from==g.to&&g.marker.clearWhenEmpty!==!1&&s.splice(l--,1)}return s.length?s:null}function Ss(s,l,g){var d=null;if(s.iter(l.line,g.line+1,function(ee){if(ee.markedSpans)for(var oe=0;oe<ee.markedSpans.length;++oe){var ce=ee.markedSpans[oe].marker;ce.readOnly&&(!d||hr(d,ce)==-1)&&(d||(d=[])).push(ce)}}),!d)return null;for(var v=[{from:l,to:g}],A=0;A<d.length;++A)for(var b=d[A],y=b.find(0),w=0;w<v.length;++w){var U=v[w];if(!(Xe(U.to,y.from)<0||Xe(U.from,y.to)>0)){var k=[w,1],J=Xe(U.from,y.from),re=Xe(U.to,y.to);(J<0||!b.inclusiveLeft&&!J)&&k.push({from:U.from,to:y.from}),(re>0||!b.inclusiveRight&&!re)&&k.push({from:y.to,to:U.to}),v.splice.apply(v,k),w+=k.length-3}}return v}function Qo(s){var l=s.markedSpans;if(l){for(var g=0;g<l.length;++g)l[g].marker.detachLine(s);s.markedSpans=null}}function fn(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function cn(s){return s.inclusiveLeft?-1:0}function pn(s){return s.inclusiveRight?1:0}function Fa(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var d=s.find(),v=l.find(),A=Xe(d.from,v.from)||cn(s)-cn(l);if(A)return-A;var b=Xe(d.to,v.to)||pn(s)-pn(l);return b||l.id-s.id}function uu(s,l){var g=Vi&&s.markedSpans,d;if(g)for(var v=void 0,A=0;A<g.length;++A)v=g[A],v.marker.collapsed&&(l?v.from:v.to)==null&&(!d||Fa(d,v.marker)<0)&&(d=v.marker);return d}function _o(s){return uu(s,!0)}function He(s){return uu(s,!1)}function Ga(s,l){var g=Vi&&s.markedSpans,d;if(g)for(var v=0;v<g.length;++v){var A=g[v];A.marker.collapsed&&(A.from==null||A.from<l)&&(A.to==null||A.to>l)&&(!d||Fa(d,A.marker)<0)&&(d=A.marker)}return d}function os(s,l,g,d,v){var A=Ie(s,l),b=Vi&&A.markedSpans;if(b)for(var y=0;y<b.length;++y){var w=b[y];if(w.marker.collapsed){var U=w.marker.find(0),k=Xe(U.from,g)||cn(w.marker)-cn(v),J=Xe(U.to,d)||pn(w.marker)-pn(v);if(!(k>=0&&J<=0||k<=0&&J>=0)&&(k<=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?Xe(U.to,g)>=0:Xe(U.to,g)>0)||k>=0&&(w.marker.inclusiveRight&&v.inclusiveLeft?Xe(U.from,d)<=0:Xe(U.from,d)<0)))return!0}}}function ai(s){for(var l;l=_o(s);)s=l.find(-1,!0).line;return s}function rc(s){for(var l;l=He(s);)s=l.find(1,!0).line;return s}function Ba(s){for(var l,g;l=He(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function Hn(s,l){var g=Ie(s,l),d=ai(g);return g==d?l:_e(d)}function Ho(s,l){if(l>s.lastLine())return l;var g=Ie(s,l),d;if(!Ii(s,g))return l;for(;d=He(g);)g=d.find(1,!0).line;return _e(g)+1}function Ii(s,l){var g=Vi&&l.markedSpans;if(g){for(var d=void 0,v=0;v<g.length;++v)if(d=g[v],!!d.marker.collapsed){if(d.from==null)return!0;if(!d.marker.widgetNode&&d.from==0&&d.marker.inclusiveLeft&&Va(s,l,d))return!0}}}function Va(s,l,g){if(g.to==null){var d=g.marker.find(1,!0);return Va(s,d.line,Ts(d.line.markedSpans,g.marker))}if(g.marker.inclusiveRight&&g.to==l.text.length)return!0;for(var v=void 0,A=0;A<l.markedSpans.length;++A)if(v=l.markedSpans[A],v.marker.collapsed&&!v.marker.widgetNode&&v.from==g.to&&(v.to==null||v.to!=g.from)&&(v.marker.inclusiveLeft||g.marker.inclusiveRight)&&Va(s,l,v))return!0}function Wi(s){s=ai(s);for(var l=0,g=s.parent,d=0;d<g.lines.length;++d){var v=g.lines[d];if(v==s)break;l+=v.height}for(var A=g.parent;A;g=A,A=g.parent)for(var b=0;b<A.children.length;++b){var y=A.children[b];if(y==g)break;l+=y.height}return l}function Xo(s){if(s.height==0)return 0;for(var l=s.text.length,g,d=s;g=_o(d);){var v=g.find(0,!0);d=v.from.line,l+=v.from.ch-v.to.ch}for(d=s;g=He(d);){var A=g.find(0,!0);l-=d.text.length-A.from.ch,d=A.to.line,l+=d.text.length-A.to.ch}return l}function Da(s){var l=s.display,g=s.doc;l.maxLine=Ie(g,g.first),l.maxLineLength=Xo(l.maxLine),l.maxLineChanged=!0,g.iter(function(d){var v=Xo(d);v>l.maxLineLength&&(l.maxLineLength=v,l.maxLine=d)})}var hn=function(s,l,g){this.text=s,fn(this,l),this.height=g?g(this):1};hn.prototype.lineNo=function(){return _e(this)},is(hn);function tc(s,l,g,d){s.text=l,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Qo(s),fn(s,g);var v=d?d(s):1;v!=s.height&&Pt(s,v)}function ic(s){s.parent=null,Qo(s)}var sc={},nc={};function fu(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?nc:sc;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function cu(s,l){var g=xr("span",null,null,Z?"padding-right: .1px":null),d={pre:xr("pre",[g],"CodeMirror-line"),content:g,col:0,pos:0,cm:s,trailingSpace:!1,splitSpaces:s.getOption("lineWrapping")};l.measure={};for(var v=0;v<=(l.rest?l.rest.length:0);v++){var A=v?l.rest[v-1]:l.line,b=void 0;d.pos=0,d.addToken=ac,Gi(s.display.measure)&&(b=Tr(A,s.doc.direction))&&(d.addToken=uc(d.addToken,b)),d.map=[];var y=l!=s.display.externalMeasured&&_e(A);fc(A,d,iu(s,A,y)),A.styleClasses&&(A.styleClasses.bgClass&&(d.bgClass=St(A.styleClasses.bgClass,d.bgClass||"")),A.styleClasses.textClass&&(d.textClass=St(A.styleClasses.textClass,d.textClass||""))),d.map.length==0&&d.map.push(0,0,d.content.appendChild(ya(s.display.measure))),v==0?(l.measure.map=d.map,l.measure.cache={}):((l.measure.maps||(l.measure.maps=[])).push(d.map),(l.measure.caches||(l.measure.caches=[])).push({}))}if(Z){var w=d.content.lastChild;(/\bcm-tab\b/.test(w.className)||w.querySelector&&w.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return ar(s,"renderLine",s,l.line,d.pre),d.pre.className&&(d.textClass=St(d.pre.className,d.textClass||"")),d}function oc(s){var l=me("span","\u2022","cm-invalidchar");return l.title="\\u"+s.charCodeAt(0).toString(16),l.setAttribute("aria-label",l.title),l}function ac(s,l,g,d,v,A,b){if(l){var y=s.splitSpaces?lc(l,s.trailingSpace):l,w=s.cm.state.specialChars,U=!1,k;if(!w.test(l))s.col+=l.length,k=document.createTextNode(y),s.map.push(s.pos,s.pos+l.length,k),O&&D<9&&(U=!0),s.pos+=l.length;else{k=document.createDocumentFragment();for(var J=0;;){w.lastIndex=J;var re=w.exec(l),ee=re?re.index-J:l.length-J;if(ee){var oe=document.createTextNode(y.slice(J,J+ee));O&&D<9?k.appendChild(me("span",[oe])):k.appendChild(oe),s.map.push(s.pos,s.pos+ee,oe),s.col+=ee,s.pos+=ee}if(!re)break;J+=ee+1;var ce=void 0;if(re[0]==" "){var de=s.cm.options.tabSize,ve=de-s.col%de;ce=k.appendChild(me("span",ei(ve),"cm-tab")),ce.setAttribute("role","presentation"),ce.setAttribute("cm-text"," "),s.col+=ve}else re[0]=="\r"||re[0]==`
|
|
5
|
+
`?(ce=k.appendChild(me("span",re[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ce.setAttribute("cm-text",re[0]),s.col+=1):(ce=s.cm.options.specialCharPlaceholder(re[0]),ce.setAttribute("cm-text",re[0]),O&&D<9?k.appendChild(me("span",[ce])):k.appendChild(ce),s.col+=1);s.map.push(s.pos,s.pos+1,ce),s.pos++}}if(s.trailingSpace=y.charCodeAt(l.length-1)==32,g||d||v||U||A||b){var Ce=g||"";d&&(Ce+=d),v&&(Ce+=v);var xe=me("span",[k],Ce,A);if(b)for(var be in b)b.hasOwnProperty(be)&&be!="style"&&be!="class"&&xe.setAttribute(be,b[be]);return s.content.appendChild(xe)}s.content.appendChild(k)}}function lc(s,l){if(s.length>1&&!/ /.test(s))return s;for(var g=l,d="",v=0;v<s.length;v++){var A=s.charAt(v);A==" "&&g&&(v==s.length-1||s.charCodeAt(v+1)==32)&&(A="\xA0"),d+=A,g=A==" "}return d}function uc(s,l){return function(g,d,v,A,b,y,w){v=v?v+" cm-force-border":"cm-force-border";for(var U=g.pos,k=U+d.length;;){for(var J=void 0,re=0;re<l.length&&(J=l[re],!(J.to>U&&J.from<=U));re++);if(J.to>=k)return s(g,d,v,A,b,y,w);s(g,d.slice(0,J.to-U),v,A,null,y,w),A=null,d=d.slice(J.to-U),U=J.to}}}function pu(s,l,g,d){var v=!d&&g.widgetNode;v&&s.map.push(s.pos,s.pos+l,v),!d&&s.cm.display.input.needsContentAttribute&&(v||(v=s.content.appendChild(document.createElement("span"))),v.setAttribute("cm-marker",g.id)),v&&(s.cm.display.input.setUneditable(v),s.content.appendChild(v)),s.pos+=l,s.trailingSpace=!1}function fc(s,l,g){var d=s.markedSpans,v=s.text,A=0;if(!d){for(var b=1;b<g.length;b+=2)l.addToken(l,v.slice(A,A=g[b]),fu(g[b+1],l.cm.options));return}for(var y=v.length,w=0,U=1,k="",J,re,ee=0,oe,ce,de,ve,Ce;;){if(ee==w){oe=ce=de=re="",Ce=null,ve=null,ee=1/0;for(var xe=[],be=void 0,Ze=0;Ze<d.length;++Ze){var De=d[Ze],Ke=De.marker;if(Ke.type=="bookmark"&&De.from==w&&Ke.widgetNode)xe.push(Ke);else if(De.from<=w&&(De.to==null||De.to>w||Ke.collapsed&&De.to==w&&De.from==w)){if(De.to!=null&&De.to!=w&&ee>De.to&&(ee=De.to,ce=""),Ke.className&&(oe+=" "+Ke.className),Ke.css&&(re=(re?re+";":"")+Ke.css),Ke.startStyle&&De.from==w&&(de+=" "+Ke.startStyle),Ke.endStyle&&De.to==ee&&(be||(be=[])).push(Ke.endStyle,De.to),Ke.title&&((Ce||(Ce={})).title=Ke.title),Ke.attributes)for(var vr in Ke.attributes)(Ce||(Ce={}))[vr]=Ke.attributes[vr];Ke.collapsed&&(!ve||Fa(ve.marker,Ke)<0)&&(ve=De)}else De.from>w&&ee>De.from&&(ee=De.from)}if(be)for(var st=0;st<be.length;st+=2)be[st+1]==ee&&(ce+=" "+be[st]);if(!ve||ve.from==w)for(var Lr=0;Lr<xe.length;++Lr)pu(l,0,xe[Lr]);if(ve&&(ve.from||0)==w){if(pu(l,(ve.to==null?y+1:ve.to)-w,ve.marker,ve.from==null),ve.to==null)return;ve.to==w&&(ve=!1)}}if(w>=y)break;for(var _t=Math.min(y,ee);;){if(k){var Vt=w+k.length;if(!ve){var _r=Vt>_t?k.slice(0,_t-w):k;l.addToken(l,_r,J?J+oe:oe,de,w+_r.length==ee?ce:"",re,Ce)}if(Vt>=_t){k=k.slice(_t-w),w=_t;break}w=Vt,de=""}k=v.slice(A,A=g[U++]),J=fu(g[U++],l.cm.options)}}}function dn(s,l,g){this.line=l,this.rest=Ba(l),this.size=this.rest?_e(Ae(this.rest))-g+1:1,this.node=this.text=null,this.hidden=Ii(s,l)}function as(s,l,g){for(var d=[],v,A=l;A<g;A=v){var b=new dn(s.doc,Ie(s.doc,A),A);v=A+b.size,d.push(b)}return d}var Ai=null;function cc(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function pc(s){var l=s.delayedCallbacks,g=0;do{for(;g<l.length;g++)l[g].call(null);for(var d=0;d<s.ops.length;d++){var v=s.ops[d];if(v.cursorActivityHandlers)for(;v.cursorActivityCalled<v.cursorActivityHandlers.length;)v.cursorActivityHandlers[v.cursorActivityCalled++].call(null,v.cm)}}while(g<l.length)}function hc(s,l){var g=s.ownsGroup;if(g)try{pc(g)}finally{Ai=null,l(g)}}var Xn=null;function rt(s,l){var g=ni(s,l);if(g.length){var d=Array.prototype.slice.call(arguments,2),v;Ai?v=Ai.delayedCallbacks:Xn?v=Xn:(v=Xn=[],setTimeout(gt,0));for(var A=function(y){v.push(function(){return g[y].apply(null,d)})},b=0;b<g.length;++b)A(b)}}function gt(){var s=Xn;Xn=null;for(var l=0;l<s.length;++l)s[l]()}function hu(s,l,g,d){for(var v=0;v<l.changes.length;v++){var A=l.changes[v];A=="text"?Qr(s,l):A=="gutter"?ls(s,l,g,d):A=="class"?Yn(s,l):A=="widget"&&Ft(s,l,d)}l.changes=null}function le(s){return s.node==s.text&&(s.node=me("div",null,null,"position: relative"),s.text.parentNode&&s.text.parentNode.replaceChild(s.node,s.text),s.node.appendChild(s.text),O&&D<8&&(s.node.style.zIndex=2)),s.node}function Ls(s,l){var g=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),l.background)g?l.background.className=g:(l.background.parentNode.removeChild(l.background),l.background=null);else if(g){var d=le(l);l.background=d.insertBefore(me("div",null,g),d.firstChild),s.display.input.setUneditable(l.background)}}function ue(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):cu(s,l)}function Qr(s,l){var g=l.text.className,d=ue(s,l);l.text==l.node&&(l.node=d.pre),l.text.parentNode.replaceChild(d.pre,l.text),l.text=d.pre,d.bgClass!=l.bgClass||d.textClass!=l.textClass?(l.bgClass=d.bgClass,l.textClass=d.textClass,Yn(s,l)):g&&(l.text.className=g)}function Yn(s,l){Ls(s,l),l.line.wrapClass?le(l).className=l.line.wrapClass:l.node!=l.text&&(l.node.className="");var g=l.textClass?l.textClass+" "+(l.line.textClass||""):l.line.textClass;l.text.className=g||""}function ls(s,l,g,d){if(l.gutter&&(l.node.removeChild(l.gutter),l.gutter=null),l.gutterBackground&&(l.node.removeChild(l.gutterBackground),l.gutterBackground=null),l.line.gutterClass){var v=le(l);l.gutterBackground=me("div",null,"CodeMirror-gutter-background "+l.line.gutterClass,"left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px; width: "+d.gutterTotalWidth+"px"),s.display.input.setUneditable(l.gutterBackground),v.insertBefore(l.gutterBackground,l.text)}var A=l.line.gutterMarkers;if(s.options.lineNumbers||A){var b=le(l),y=l.gutter=me("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");if(y.setAttribute("aria-hidden","true"),s.display.input.setUneditable(y),b.insertBefore(y,l.text),l.line.gutterClass&&(y.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!A||!A["CodeMirror-linenumbers"])&&(l.lineNumber=y.appendChild(me("div",Sa(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),A)for(var w=0;w<s.display.gutterSpecs.length;++w){var U=s.display.gutterSpecs[w].className,k=A.hasOwnProperty(U)&&A[U];k&&y.appendChild(me("div",[k],"CodeMirror-gutter-elt","left: "+d.gutterLeft[U]+"px; width: "+d.gutterWidth[U]+"px"))}}}function Ft(s,l,g){l.alignable&&(l.alignable=null);for(var d=Re("CodeMirror-linewidget"),v=l.node.firstChild,A=void 0;v;v=A)A=v.nextSibling,d.test(v.className)&&l.node.removeChild(v);du(s,l,g)}function Gt(s,l,g,d){var v=ue(s,l);return l.text=l.node=v.pre,v.bgClass&&(l.bgClass=v.bgClass),v.textClass&&(l.textClass=v.textClass),Yn(s,l),ls(s,l,g,d),du(s,l,d),l.node}function du(s,l,g){if(gu(s,l.line,l,g,!0),l.rest)for(var d=0;d<l.rest.length;d++)gu(s,l.rest[d],l,g,!1)}function gu(s,l,g,d,v){if(l.widgets)for(var A=le(g),b=0,y=l.widgets;b<y.length;++b){var w=y[b],U=me("div",[w.node],"CodeMirror-linewidget"+(w.className?" "+w.className:""));w.handleMouseEvents||U.setAttribute("cm-ignore-events","true"),dc(w,U,g,d),s.display.input.setUneditable(U),v&&w.above?A.insertBefore(U,g.gutter||g.text):A.appendChild(U),rt(w,"redraw")}}function dc(s,l,g,d){if(s.noHScroll){(g.alignable||(g.alignable=[])).push(l);var v=d.wrapperWidth;l.style.left=d.fixedPos+"px",s.coverGutter||(v-=d.gutterTotalWidth,l.style.paddingLeft=d.gutterTotalWidth+"px"),l.style.width=v+"px"}s.coverGutter&&(l.style.zIndex=5,l.style.position="relative",s.noHScroll||(l.style.marginLeft=-d.gutterTotalWidth+"px"))}function Zi(s){if(s.height!=null)return s.height;var l=s.doc.cm;if(!l)return 0;if(!ur(document.body,s.node)){var g="position: relative;";s.coverGutter&&(g+="margin-left: -"+l.display.gutters.offsetWidth+"px;"),s.noHScroll&&(g+="width: "+l.display.wrapper.clientWidth+"px;"),Je(l.display.measure,me("div",[s.node],null,g))}return s.height=s.node.parentNode.offsetHeight}function Pi(s,l){for(var g=rn(l);g!=s.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==s.sizer&&g!=s.mover)return!0}function gn(s){return s.lineSpace.offsetTop}function Ma(s){return s.mover.offsetHeight-s.lineSpace.offsetHeight}function Eu(s){if(s.cachedPaddingH)return s.cachedPaddingH;var l=Je(s.measure,me("pre","x","CodeMirror-line-like")),g=window.getComputedStyle?window.getComputedStyle(l):l.currentStyle,d={left:parseInt(g.paddingLeft),right:parseInt(g.paddingRight)};return!isNaN(d.left)&&!isNaN(d.right)&&(s.cachedPaddingH=d),d}function Ni(s){return Kt-s.display.nativeBarWidth}function ws(s){return s.display.scroller.clientWidth-Ni(s)-s.display.barWidth}function Wa(s){return s.display.scroller.clientHeight-Ni(s)-s.display.barHeight}function gc(s,l,g){var d=s.options.lineWrapping,v=d&&ws(s);if(!l.measure.heights||d&&l.measure.width!=v){var A=l.measure.heights=[];if(d){l.measure.width=v;for(var b=l.text.firstChild.getClientRects(),y=0;y<b.length-1;y++){var w=b[y],U=b[y+1];Math.abs(w.bottom-U.bottom)>2&&A.push((w.bottom+U.top)/2-g.top)}}A.push(g.bottom-g.top)}}function Yo(s,l,g){if(s.line==l)return{map:s.measure.map,cache:s.measure.cache};if(s.rest){for(var d=0;d<s.rest.length;d++)if(s.rest[d]==l)return{map:s.measure.maps[d],cache:s.measure.caches[d]};for(var v=0;v<s.rest.length;v++)if(_e(s.rest[v])>g)return{map:s.measure.maps[v],cache:s.measure.caches[v],before:!0}}}function Jt(s,l){l=ai(l);var g=_e(l),d=s.display.externalMeasured=new dn(s.doc,l,g);d.lineN=g;var v=d.built=cu(s,d);return d.text=v.pre,Je(s.display.lineMeasure,v.pre),d}function mu(s,l,g,d){return bi(s,En(s,l),g,d)}function Et(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[ki(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function En(s,l){var g=_e(l),d=Et(s,g);d&&!d.text?d=null:d&&d.changes&&(hu(s,d,g,Fs(s)),s.curOp.forceUpdate=!0),d||(d=Jt(s,l));var v=Yo(d,l,g);return{line:l,view:d,rect:null,map:v.map,cache:v.cache,before:v.before,hasHeights:!1}}function bi(s,l,g,d,v){l.before&&(g=-1);var A=g+(d||""),b;return l.cache.hasOwnProperty(A)?b=l.cache[A]:(l.rect||(l.rect=l.view.text.getBoundingClientRect()),l.hasHeights||(gc(s,l.view,l.rect),l.hasHeights=!0),b=Jn(s,l,g,d),b.bogus||(l.cache[A]=b)),{left:b.left,right:b.right,top:v?b.rtop:b.top,bottom:v?b.rbottom:b.bottom}}var vu={left:0,right:0,top:0,bottom:0};function xu(s,l,g){for(var d,v,A,b,y,w,U=0;U<s.length;U+=3)if(y=s[U],w=s[U+1],l<y?(v=0,A=1,b="left"):l<w?(v=l-y,A=v+1):(U==s.length-3||l==w&&s[U+3]>l)&&(A=w-y,v=A-1,l>=w&&(b="right")),v!=null){if(d=s[U+2],y==w&&g==(d.insertLeft?"left":"right")&&(b=g),g=="left"&&v==0)for(;U&&s[U-2]==s[U-3]&&s[U-1].insertLeft;)d=s[(U-=3)+2],b="left";if(g=="right"&&v==w-y)for(;U<s.length-3&&s[U+3]==s[U+4]&&!s[U+5].insertLeft;)d=s[(U+=3)+2],b="right";break}return{node:d,start:v,end:A,collapse:b,coverStart:y,coverEnd:w}}function Ec(s,l){var g=vu;if(l=="left")for(var d=0;d<s.length&&(g=s[d]).left==g.right;d++);else for(var v=s.length-1;v>=0&&(g=s[v]).left==g.right;v--);return g}function Jn(s,l,g,d){var v=xu(l.map,g,d),A=v.node,b=v.start,y=v.end,w=v.collapse,U;if(A.nodeType==3){for(var k=0;k<4;k++){for(;b&&pt(l.line.text.charAt(v.coverStart+b));)--b;for(;v.coverStart+y<v.coverEnd&&pt(l.line.text.charAt(v.coverStart+y));)++y;if(O&&D<9&&b==0&&y==v.coverEnd-v.coverStart?U=A.parentNode.getBoundingClientRect():U=Ec(Cr(A,b,y).getClientRects(),d),U.left||U.right||b==0)break;y=b,b=b-1,w="right"}O&&D<11&&(U=mc(s.display.measure,U))}else{b>0&&(w=d="right");var J;s.options.lineWrapping&&(J=A.getClientRects()).length>1?U=J[d=="right"?J.length-1:0]:U=A.getBoundingClientRect()}if(O&&D<9&&!b&&(!U||!U.left&&!U.right)){var re=A.parentNode.getClientRects()[0];re?U={left:re.left,right:re.left+fs(s.display),top:re.top,bottom:re.bottom}:U=vu}for(var ee=U.top-l.rect.top,oe=U.bottom-l.rect.top,ce=(ee+oe)/2,de=l.view.measure.heights,ve=0;ve<de.length-1&&!(ce<de[ve]);ve++);var Ce=ve?de[ve-1]:0,xe=de[ve],be={left:(w=="right"?U.right:U.left)-l.rect.left,right:(w=="left"?U.left:U.right)-l.rect.left,top:Ce,bottom:xe};return!U.left&&!U.right&&(be.bogus=!0),s.options.singleCursorHeightPerLine||(be.rtop=ee,be.rbottom=oe),be}function mc(s,l){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!oi(s))return l;var g=screen.logicalXDPI/screen.deviceXDPI,d=screen.logicalYDPI/screen.deviceYDPI;return{left:l.left*g,right:l.right*g,top:l.top*d,bottom:l.bottom*d}}function Cu(s){if(s.measure&&(s.measure.cache={},s.measure.heights=null,s.rest))for(var l=0;l<s.rest.length;l++)s.measure.caches[l]={}}function Jo(s){s.display.externalMeasure=null,Ve(s.display.lineMeasure);for(var l=0;l<s.display.view.length;l++)Cu(s.display.view[l])}function Os(s){Jo(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function mn(s){return Q&&V?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function Iu(s){return Q&&V?-(s.body.getBoundingClientRect().top-parseInt(getComputedStyle(s.body).marginTop)):s.defaultView.pageYOffset||(s.documentElement||s.body).scrollTop}function Za(s){var l=ai(s),g=l.widgets,d=0;if(g)for(var v=0;v<g.length;++v)g[v].above&&(d+=Zi(g[v]));return d}function vn(s,l,g,d,v){if(!v){var A=Za(l);g.top+=A,g.bottom+=A}if(d=="line")return g;d||(d="local");var b=Wi(l);if(d=="local"?b+=gn(s.display):b-=s.display.viewOffset,d=="page"||d=="window"){var y=s.display.lineSpace.getBoundingClientRect();b+=y.top+(d=="window"?0:Iu(pr(s)));var w=y.left+(d=="window"?0:mn(pr(s)));g.left+=w,g.right+=w}return g.top+=b,g.bottom+=b,g}function us(s,l,g){if(g=="div")return l;var d=l.left,v=l.top;if(g=="page")d-=mn(pr(s)),v-=Iu(pr(s));else if(g=="local"||!g){var A=s.display.sizer.getBoundingClientRect();d+=A.left,v+=A.top}var b=s.display.lineSpace.getBoundingClientRect();return{left:d-b.left,top:v-b.top}}function $o(s,l,g,d,v){return d||(d=Ie(s.doc,l.line)),vn(s,d,mu(s,d,l.ch,v),g)}function $e(s,l,g,d,v,A){d=d||Ie(s.doc,l.line),v||(v=En(s,d));function b(oe,ce){var de=bi(s,v,oe,ce?"right":"left",A);return ce?de.left=de.right:de.right=de.left,vn(s,d,de,g)}var y=Tr(d,s.doc.direction),w=l.ch,U=l.sticky;if(w>=d.text.length?(w=d.text.length,U="before"):w<=0&&(w=0,U="after"),!y)return b(U=="before"?w-1:w,U=="before");function k(oe,ce,de){var ve=y[ce],Ce=ve.level==1;return b(de?oe-1:oe,Ce!=de)}var J=bt(y,w,U),re=ti,ee=k(w,J,U=="before");return re!=null&&(ee.other=k(w,re,U!="before")),ee}function Au(s,l){var g=0;l=Ye(s.doc,l),s.options.lineWrapping||(g=fs(s.display)*l.ch);var d=Ie(s.doc,l.line),v=Wi(d)+gn(s.display);return{left:g,right:g,top:v,bottom:v+d.height}}function Pa(s,l,g,d,v){var A=he(s,l,g);return A.xRel=v,d&&(A.outside=d),A}function ka(s,l,g){var d=s.doc;if(g+=s.display.viewOffset,g<0)return Pa(d.first,0,null,-1,-1);var v=xi(d,g),A=d.first+d.size-1;if(v>A)return Pa(d.first+d.size-1,Ie(d,A).text.length,null,1,1);l<0&&(l=0);for(var b=Ie(d,v);;){var y=vc(s,b,v,l,g),w=Ga(b,y.ch+(y.xRel>0||y.outside>0?1:0));if(!w)return y;var U=w.find(1);if(U.line==v)return U;b=Ie(d,v=U.line)}}function Nu(s,l,g,d){d-=Za(l);var v=l.text.length,A=ri(function(b){return bi(s,g,b-1).bottom<=d},v,0);return v=ri(function(b){return bi(s,g,b).top>d},A,v),{begin:A,end:v}}function bu(s,l,g,d){g||(g=En(s,l));var v=vn(s,l,bi(s,g,d),"line").top;return Nu(s,l,g,v)}function $n(s,l,g,d){return s.bottom<=g?!1:s.top>g?!0:(d?s.left:s.right)>l}function vc(s,l,g,d,v){v-=Wi(l);var A=En(s,l),b=Za(l),y=0,w=l.text.length,U=!0,k=Tr(l,s.doc.direction);if(k){var J=(s.options.lineWrapping?Us:ke)(s,l,g,A,k,d,v);U=J.level!=1,y=U?J.from:J.to-1,w=U?J.to:J.from-1}var re=null,ee=null,oe=ri(function(Ze){var De=bi(s,A,Ze);return De.top+=b,De.bottom+=b,$n(De,d,v,!1)?(De.top<=v&&De.left<=d&&(re=Ze,ee=De),!0):!1},y,w),ce,de,ve=!1;if(ee){var Ce=d-ee.left<ee.right-d,xe=Ce==U;oe=re+(xe?0:1),de=xe?"after":"before",ce=Ce?ee.left:ee.right}else{!U&&(oe==w||oe==y)&&oe++,de=oe==0?"after":oe==l.text.length?"before":bi(s,A,oe-(U?1:0)).bottom+b<=v==U?"after":"before";var be=$e(s,he(g,oe,de),"line",l,A);ce=be.left,ve=v<be.top?-1:v>=be.bottom?1:0}return oe=Nr(l.text,oe,1),Pa(g,oe,de,ve,d-ce)}function ke(s,l,g,d,v,A,b){var y=ri(function(J){var re=v[J],ee=re.level!=1;return $n($e(s,he(g,ee?re.to:re.from,ee?"before":"after"),"line",l,d),A,b,!0)},0,v.length-1),w=v[y];if(y>0){var U=w.level!=1,k=$e(s,he(g,U?w.from:w.to,U?"after":"before"),"line",l,d);$n(k,A,b,!0)&&k.top>b&&(w=v[y-1])}return w}function Us(s,l,g,d,v,A,b){var y=Nu(s,l,d,b),w=y.begin,U=y.end;/\s/.test(l.text.charAt(U-1))&&U--;for(var k=null,J=null,re=0;re<v.length;re++){var ee=v[re];if(!(ee.from>=U||ee.to<=w)){var oe=ee.level!=1,ce=bi(s,d,oe?Math.min(U,ee.to)-1:Math.max(w,ee.from)).right,de=ce<A?A-ce+1e9:ce-A;(!k||J>de)&&(k=ee,J=de)}}return k||(k=v[v.length-1]),k.from<w&&(k={from:w,to:k.to,level:k.level}),k.to>U&&(k={from:k.from,to:U,level:k.level}),k}var $t;function Mr(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if($t==null){$t=me("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)$t.appendChild(document.createTextNode("x")),$t.appendChild(me("br"));$t.appendChild(document.createTextNode("x"))}Je(s.measure,$t);var g=$t.offsetHeight/50;return g>3&&(s.cachedTextHeight=g),Ve(s.measure),g||1}function fs(s){if(s.cachedCharWidth!=null)return s.cachedCharWidth;var l=me("span","xxxxxxxxxx"),g=me("pre",[l],"CodeMirror-line-like");Je(s.measure,g);var d=l.getBoundingClientRect(),v=(d.right-d.left)/10;return v>2&&(s.cachedCharWidth=v),v||10}function Fs(s){for(var l=s.display,g={},d={},v=l.gutters.clientLeft,A=l.gutters.firstChild,b=0;A;A=A.nextSibling,++b){var y=s.display.gutterSpecs[b].className;g[y]=A.offsetLeft+A.clientLeft+v,d[y]=A.clientWidth}return{fixedPos:mt(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:d,wrapperWidth:l.wrapper.clientWidth}}function mt(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function xn(s){var l=Mr(s.display),g=s.options.lineWrapping,d=g&&Math.max(5,s.display.scroller.clientWidth/fs(s.display)-3);return function(v){if(Ii(s.doc,v))return 0;var A=0;if(v.widgets)for(var b=0;b<v.widgets.length;b++)v.widgets[b].height&&(A+=v.widgets[b].height);return g?A+(Math.ceil(v.text.length/d)||1)*l:A+l}}function Gs(s){var l=s.doc,g=xn(s);l.iter(function(d){var v=g(d);v!=d.height&&Pt(d,v)})}function li(s,l,g,d){var v=s.display;if(!g&&rn(l).getAttribute("cm-not-content")=="true")return null;var A,b,y=v.lineSpace.getBoundingClientRect();try{A=l.clientX-y.left,b=l.clientY-y.top}catch{return null}var w=ka(s,A,b),U;if(d&&w.xRel>0&&(U=Ie(s.doc,w.line).text).length==w.ch){var k=Ir(U,U.length,s.options.tabSize)-U.length;w=he(w.line,Math.max(0,Math.round((A-Eu(s.display).left)/fs(s.display))-k))}return w}function ki(s,l){if(l>=s.display.viewTo||(l-=s.display.viewFrom,l<0))return null;for(var g=s.display.view,d=0;d<g.length;d++)if(l-=g[d].size,l<0)return d}function vt(s,l,g,d){l==null&&(l=s.doc.first),g==null&&(g=s.doc.first+s.doc.size),d||(d=0);var v=s.display;if(d&&g<v.viewTo&&(v.updateLineNumbers==null||v.updateLineNumbers>l)&&(v.updateLineNumbers=l),s.curOp.viewChanged=!0,l>=v.viewTo)Vi&&Hn(s.doc,l)<v.viewTo&&Ti(s);else if(g<=v.viewFrom)Vi&&Ho(s.doc,g+d)>v.viewFrom?Ti(s):(v.viewFrom+=d,v.viewTo+=d);else if(l<=v.viewFrom&&g>=v.viewTo)Ti(s);else if(l<=v.viewFrom){var A=cs(s,g,g+d,1);A?(v.view=v.view.slice(A.index),v.viewFrom=A.lineN,v.viewTo+=d):Ti(s)}else if(g>=v.viewTo){var b=cs(s,l,l,-1);b?(v.view=v.view.slice(0,b.index),v.viewTo=b.lineN):Ti(s)}else{var y=cs(s,l,l,-1),w=cs(s,g,g+d,1);y&&w?(v.view=v.view.slice(0,y.index).concat(as(s,y.lineN,w.lineN)).concat(v.view.slice(w.index)),v.viewTo+=d):Ti(s)}var U=v.externalMeasured;U&&(g<U.lineN?U.lineN+=d:l<U.lineN+U.size&&(v.externalMeasured=null))}function kt(s,l,g){s.curOp.viewChanged=!0;var d=s.display,v=s.display.externalMeasured;if(v&&l>=v.lineN&&l<v.lineN+v.size&&(d.externalMeasured=null),!(l<d.viewFrom||l>=d.viewTo)){var A=d.view[ki(s,l)];if(A.node!=null){var b=A.changes||(A.changes=[]);hr(b,g)==-1&&b.push(g)}}}function Ti(s){s.display.viewFrom=s.display.viewTo=s.doc.first,s.display.view=[],s.display.viewOffset=0}function cs(s,l,g,d){var v=ki(s,l),A,b=s.display.view;if(!Vi||g==s.doc.first+s.doc.size)return{index:v,lineN:g};for(var y=s.display.viewFrom,w=0;w<v;w++)y+=b[w].size;if(y!=l){if(d>0){if(v==b.length-1)return null;A=y+b[v].size-l,v++}else A=y-l;l+=A,g+=A}for(;Hn(s.doc,g)!=g;){if(v==(d<0?0:b.length-1))return null;g+=d*b[v-(d<0?1:0)].size,v+=d}return{index:v,lineN:g}}function zn(s,l,g){var d=s.display,v=d.view;v.length==0||l>=d.viewTo||g<=d.viewFrom?(d.view=as(s,l,g),d.viewFrom=l):(d.viewFrom>l?d.view=as(s,l,d.viewFrom).concat(d.view):d.viewFrom<l&&(d.view=d.view.slice(ki(s,l))),d.viewFrom=l,d.viewTo<g?d.view=d.view.concat(as(s,d.viewTo,g)):d.viewTo>g&&(d.view=d.view.slice(0,ki(s,g)))),d.viewTo=g}function zo(s){for(var l=s.display.view,g=0,d=0;d<l.length;d++){var v=l[d];!v.hidden&&(!v.node||v.changes)&&++g}return g}function Bs(s){s.display.input.showSelection(s.display.input.prepareSelection())}function ps(s,l){l===void 0&&(l=!0);var g=s.doc,d={},v=d.cursors=document.createDocumentFragment(),A=d.selection=document.createDocumentFragment(),b=s.options.$customCursor;b&&(l=!0);for(var y=0;y<g.sel.ranges.length;y++)if(!(!l&&y==g.sel.primIndex)){var w=g.sel.ranges[y];if(!(w.from().line>=s.display.viewTo||w.to().line<s.display.viewFrom)){var U=w.empty();if(b){var k=b(s,w);k&&Vs(s,k,v)}else(U||s.options.showCursorWhenSelecting)&&Vs(s,w.head,v);U||xc(s,w,A)}}return d}function Vs(s,l,g){var d=$e(s,l,"div",null,null,!s.options.singleCursorHeightPerLine),v=g.appendChild(me("div","\xA0","CodeMirror-cursor"));if(v.style.left=d.left+"px",v.style.top=d.top+"px",v.style.height=Math.max(0,d.bottom-d.top)*s.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(s.getWrapperElement().className)){var A=$o(s,l,"div",null,null),b=A.right-A.left;v.style.width=(b>0?b:s.defaultCharWidth())+"px"}if(d.other){var y=g.appendChild(me("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));y.style.display="",y.style.left=d.other.left+"px",y.style.top=d.other.top+"px",y.style.height=(d.other.bottom-d.other.top)*.85+"px"}}function Wr(s,l){return s.top-l.top||s.left-l.left}function xc(s,l,g){var d=s.display,v=s.doc,A=document.createDocumentFragment(),b=Eu(s.display),y=b.left,w=Math.max(d.sizerWidth,ws(s)-d.sizer.offsetLeft)-b.right,U=v.direction=="ltr";function k(xe,be,Ze,De){be<0&&(be=0),be=Math.round(be),De=Math.round(De),A.appendChild(me("div",null,"CodeMirror-selected","position: absolute; left: "+xe+`px;
|
|
6
|
+
top: `+be+"px; width: "+(Ze??w-xe)+`px;
|
|
7
|
+
height: `+(De-be)+"px"))}function J(xe,be,Ze){var De=Ie(v,xe),Ke=De.text.length,vr,st;function Lr(_r,Dt){return $o(s,he(xe,_r),"div",De,Dt)}function _t(_r,Dt,lt){var jr=bu(s,De,null,_r),Hr=Dt=="ltr"==(lt=="after")?"left":"right",Fr=lt=="after"?jr.begin:jr.end-(/\s/.test(De.text.charAt(jr.end-1))?2:1);return Lr(Fr,Hr)[Hr]}var Vt=Tr(De,v.direction);return Fi(Vt,be||0,Ze??Ke,function(_r,Dt,lt,jr){var Hr=lt=="ltr",Fr=Lr(_r,Hr?"left":"right"),Mt=Lr(Dt-1,Hr?"right":"left"),Vn=be==null&&_r==0,vs=Ze==null&&Dt==Ke,Ct=jr==0,Li=!Vt||jr==Vt.length-1;if(Mt.top-Fr.top<=3){var nt=(U?Vn:vs)&&Ct,cl=(U?vs:Vn)&&Li,Xi=nt?y:(Hr?Fr:Mt).left,ks=cl?w:(Hr?Mt:Fr).right;k(Xi,Fr.top,ks-Xi,Fr.bottom)}else{var Qs,Rt,Dn,pl;Hr?(Qs=U&&Vn&&Ct?y:Fr.left,Rt=U?w:_t(_r,lt,"before"),Dn=U?y:_t(Dt,lt,"after"),pl=U&&vs&&Li?w:Mt.right):(Qs=U?_t(_r,lt,"before"):y,Rt=!U&&Vn&&Ct?w:Fr.right,Dn=!U&&vs&&Li?y:Mt.left,pl=U?_t(Dt,lt,"after"):w),k(Qs,Fr.top,Rt-Qs,Fr.bottom),Fr.bottom<Mt.top&&k(y,Fr.bottom,null,Mt.top),k(Dn,Mt.top,pl-Dn,Mt.bottom)}(!vr||Wr(Fr,vr)<0)&&(vr=Fr),Wr(Mt,vr)<0&&(vr=Mt),(!st||Wr(Fr,st)<0)&&(st=Fr),Wr(Mt,st)<0&&(st=Mt)}),{start:vr,end:st}}var re=l.from(),ee=l.to();if(re.line==ee.line)J(re.line,re.ch,ee.ch);else{var oe=Ie(v,re.line),ce=Ie(v,ee.line),de=ai(oe)==ai(ce),ve=J(re.line,re.ch,de?oe.text.length+1:null).end,Ce=J(ee.line,de?0:null,ee.ch).start;de&&(ve.top<Ce.top-2?(k(ve.right,ve.top,null,ve.bottom),k(y,Ce.top,Ce.left,Ce.bottom)):k(ve.right,ve.top,Ce.left-ve.right,ve.bottom)),ve.bottom<Ce.top&&k(y,ve.bottom,null,Ce.top)}g.appendChild(A)}function Qa(s){if(s.state.focused){var l=s.display;clearInterval(l.blinker);var g=!0;l.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?l.blinker=setInterval(function(){s.hasFocus()||Cn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Tu(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||Ha(s))}function _a(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&Cn(s))},100)}function Ha(s,l){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(ar(s,"focus",s,l),s.state.focused=!0,ze(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),Z&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),Qa(s))}function Cn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(ar(s,"blur",s,l),s.state.focused=!1,Le(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function jo(s){for(var l=s.display,g=l.lineDiv.offsetTop,d=Math.max(0,l.scroller.getBoundingClientRect().top),v=l.lineDiv.getBoundingClientRect().top,A=0,b=0;b<l.view.length;b++){var y=l.view[b],w=s.options.lineWrapping,U=void 0,k=0;if(!y.hidden){if(v+=y.line.height,O&&D<8){var J=y.node.offsetTop+y.node.offsetHeight;U=J-g,g=J}else{var re=y.node.getBoundingClientRect();U=re.bottom-re.top,!w&&y.text.firstChild&&(k=y.text.firstChild.getBoundingClientRect().right-re.left-1)}var ee=y.line.height-U;if((ee>.005||ee<-.005)&&(v<d&&(A-=ee),Pt(y.line,U),Ru(y.line),y.rest))for(var oe=0;oe<y.rest.length;oe++)Ru(y.rest[oe]);if(k>s.display.sizerWidth){var ce=Math.ceil(k/fs(s.display));ce>s.display.maxLineLength&&(s.display.maxLineLength=ce,s.display.maxLine=y.line,s.display.maxLineChanged=!0)}}}Math.abs(A)>2&&(l.scroller.scrollTop+=A)}function Ru(s){if(s.widgets)for(var l=0;l<s.widgets.length;++l){var g=s.widgets[l],d=g.node.parentNode;d&&(g.height=d.offsetHeight)}}function qo(s,l,g){var d=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;d=Math.floor(d-gn(s));var v=g&&g.bottom!=null?g.bottom:d+s.wrapper.clientHeight,A=xi(l,d),b=xi(l,v);if(g&&g.ensure){var y=g.ensure.from.line,w=g.ensure.to.line;y<A?(A=y,b=xi(l,Wi(Ie(l,y))+s.wrapper.clientHeight)):Math.min(w,l.lastLine())>=b&&(A=xi(l,Wi(Ie(l,w))-s.wrapper.clientHeight),b=w)}return{from:A,to:Math.max(b,A+1)}}function Cc(s,l){if(!dr(s,"scrollCursorIntoView")){var g=s.display,d=g.sizer.getBoundingClientRect(),v=null,A=g.wrapper.ownerDocument;if(l.top+d.top<0?v=!0:l.bottom+d.top>(A.defaultView.innerHeight||A.documentElement.clientHeight)&&(v=!1),v!=null&&!Y){var b=me("div","\u200B",null,`position: absolute;
|
|
8
|
+
top: `+(l.top-g.viewOffset-gn(s.display))+`px;
|
|
9
|
+
height: `+(l.bottom-l.top+Ni(s)+g.barHeight)+`px;
|
|
10
|
+
left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");s.display.lineSpace.appendChild(b),b.scrollIntoView(v),s.display.lineSpace.removeChild(b)}}}function Ic(s,l,g,d){d==null&&(d=0);var v;!s.options.lineWrapping&&l==g&&(g=l.sticky=="before"?he(l.line,l.ch+1,"before"):l,l=l.ch?he(l.line,l.sticky=="before"?l.ch-1:l.ch,"after"):l);for(var A=0;A<5;A++){var b=!1,y=$e(s,l),w=!g||g==l?y:$e(s,g);v={left:Math.min(y.left,w.left),top:Math.min(y.top,w.top)-d,right:Math.max(y.left,w.left),bottom:Math.max(y.bottom,w.bottom)+d};var U=Xa(s,v),k=s.doc.scrollTop,J=s.doc.scrollLeft;if(U.scrollTop!=null&&(qn(s,U.scrollTop),Math.abs(s.doc.scrollTop-k)>1&&(b=!0)),U.scrollLeft!=null&&(Ds(s,U.scrollLeft),Math.abs(s.doc.scrollLeft-J)>1&&(b=!0)),!b)break}return v}function Ac(s,l){var g=Xa(s,l);g.scrollTop!=null&&qn(s,g.scrollTop),g.scrollLeft!=null&&Ds(s,g.scrollLeft)}function Xa(s,l){var g=s.display,d=Mr(s.display);l.top<0&&(l.top=0);var v=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,A=Wa(s),b={};l.bottom-l.top>A&&(l.bottom=l.top+A);var y=s.doc.height+Ma(g),w=l.top<d,U=l.bottom>y-d;if(l.top<v)b.scrollTop=w?0:l.top;else if(l.bottom>v+A){var k=Math.min(l.top,(U?y:l.bottom)-A);k!=v&&(b.scrollTop=k)}var J=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-J,ee=ws(s)-g.gutters.offsetWidth,oe=l.right-l.left>ee;return oe&&(l.right=l.left+ee),l.left<10?b.scrollLeft=0:l.left<re?b.scrollLeft=Math.max(0,l.left+J-(oe?0:10)):l.right>ee+re-3&&(b.scrollLeft=l.right+(oe?0:10)-ee),b}function Ya(s,l){l!=null&&(Ko(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function In(s){Ko(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function jn(s,l,g){(l!=null||g!=null)&&Ko(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function Nc(s,l){Ko(s),s.curOp.scrollToPos=l}function Ko(s){var l=s.curOp.scrollToPos;if(l){s.curOp.scrollToPos=null;var g=Au(s,l.from),d=Au(s,l.to);yu(s,g,d,l.margin)}}function yu(s,l,g,d){var v=Xa(s,{left:Math.min(l.left,g.left),top:Math.min(l.top,g.top)-d,right:Math.max(l.right,g.right),bottom:Math.max(l.bottom,g.bottom)+d});jn(s,v.scrollLeft,v.scrollTop)}function qn(s,l){Math.abs(s.doc.scrollTop-l)<2||(e||$a(s,{top:l}),Su(s,l,!0),e&&$a(s),ro(s,100))}function Su(s,l,g){l=Math.max(0,Math.min(s.display.scroller.scrollHeight-s.display.scroller.clientHeight,l)),!(s.display.scroller.scrollTop==l&&!g)&&(s.doc.scrollTop=l,s.display.scrollbars.setScrollTop(l),s.display.scroller.scrollTop!=l&&(s.display.scroller.scrollTop=l))}function Ds(s,l,g,d){l=Math.max(0,Math.min(l,s.display.scroller.scrollWidth-s.display.scroller.clientWidth)),!((g?l==s.doc.scrollLeft:Math.abs(s.doc.scrollLeft-l)<2)&&!d)&&(s.doc.scrollLeft=l,Fu(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function Kn(s){var l=s.display,g=l.gutters.offsetWidth,d=Math.round(s.doc.height+Ma(s.display));return{clientHeight:l.scroller.clientHeight,viewHeight:l.wrapper.clientHeight,scrollWidth:l.scroller.scrollWidth,clientWidth:l.scroller.clientWidth,viewWidth:l.wrapper.clientWidth,barLeft:s.options.fixedGutter?g:0,docHeight:d,scrollHeight:d+Ni(s)+l.barHeight,nativeBarWidth:l.nativeBarWidth,gutterWidth:g}}var Ms=function(s,l,g){this.cm=g;var d=this.vert=me("div",[me("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),v=this.horiz=me("div",[me("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");d.tabIndex=v.tabIndex=-1,s(d),s(v),Ge(d,"scroll",function(){d.clientHeight&&l(d.scrollTop,"vertical")}),Ge(v,"scroll",function(){v.clientWidth&&l(v.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,O&&D<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ms.prototype.update=function(s){var l=s.scrollWidth>s.clientWidth+1,g=s.scrollHeight>s.clientHeight+1,d=s.nativeBarWidth;if(g){this.vert.style.display="block",this.vert.style.bottom=l?d+"px":"0";var v=s.viewHeight-(l?d:0);this.vert.firstChild.style.height=Math.max(0,s.scrollHeight-s.clientHeight+v)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(l){this.horiz.style.display="block",this.horiz.style.right=g?d+"px":"0",this.horiz.style.left=s.barLeft+"px";var A=s.viewWidth-s.barLeft-(g?d:0);this.horiz.firstChild.style.width=Math.max(0,s.scrollWidth-s.clientWidth+A)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&s.clientHeight>0&&(d==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:g?d:0,bottom:l?d:0}},Ms.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ms.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ms.prototype.zeroWidthHack=function(){var s=q&&!z?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Pr,this.disableVert=new Pr},Ms.prototype.enableZeroWidthBar=function(s,l,g){s.style.visibility="";function d(){var v=s.getBoundingClientRect(),A=g=="vert"?document.elementFromPoint(v.right-1,(v.top+v.bottom)/2):document.elementFromPoint((v.right+v.left)/2,v.bottom-1);A!=s?s.style.visibility="hidden":l.set(1e3,d)}l.set(1e3,d)},Ms.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var eo=function(){};eo.prototype.update=function(){return{bottom:0,right:0}},eo.prototype.setScrollLeft=function(){},eo.prototype.setScrollTop=function(){},eo.prototype.clear=function(){};function An(s,l){l||(l=Kn(s));var g=s.display.barWidth,d=s.display.barHeight;Lu(s,l);for(var v=0;v<4&&g!=s.display.barWidth||d!=s.display.barHeight;v++)g!=s.display.barWidth&&s.options.lineWrapping&&jo(s),Lu(s,Kn(s)),g=s.display.barWidth,d=s.display.barHeight}function Lu(s,l){var g=s.display,d=g.scrollbars.update(l);g.sizer.style.paddingRight=(g.barWidth=d.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=d.bottom)+"px",g.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=d.bottom+"px",g.scrollbarFiller.style.width=d.right+"px"):g.scrollbarFiller.style.display="",d.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=d.bottom+"px",g.gutterFiller.style.width=l.gutterWidth+"px"):g.gutterFiller.style.display=""}var wu={native:Ms,null:eo};function Ou(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&Le(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new wu[s.options.scrollbarStyle](function(l){s.display.wrapper.insertBefore(l,s.display.scrollbarFiller),Ge(l,"mousedown",function(){s.state.focused&&setTimeout(function(){return s.display.input.focus()},0)}),l.setAttribute("cm-not-content","true")},function(l,g){g=="horizontal"?Ds(s,l):qn(s,l)},s),s.display.scrollbars.addClass&&ze(s.display.wrapper,s.display.scrollbars.addClass)}var bc=0;function Ws(s){s.curOp={cm:s,viewChanged:!1,startHeight:s.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++bc,markArrays:null},cc(s.curOp)}function Zs(s){var l=s.curOp;l&&hc(l,function(g){for(var d=0;d<g.ops.length;d++)g.ops[d].cm.curOp=null;Tc(g)})}function Tc(s){for(var l=s.ops,g=0;g<l.length;g++)Rc(l[g]);for(var d=0;d<l.length;d++)yc(l[d]);for(var v=0;v<l.length;v++)Sc(l[v]);for(var A=0;A<l.length;A++)Lc(l[A]);for(var b=0;b<l.length;b++)wc(l[b])}function Rc(s){var l=s.cm,g=l.display;Uc(l),s.updateMaxLine&&Da(l),s.mustUpdate=s.viewChanged||s.forceUpdate||s.scrollTop!=null||s.scrollToPos&&(s.scrollToPos.from.line<g.viewFrom||s.scrollToPos.to.line>=g.viewTo)||g.maxLineChanged&&l.options.lineWrapping,s.update=s.mustUpdate&&new ea(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function yc(s){s.updatedDisplay=s.mustUpdate&&Ja(s.cm,s.update)}function Sc(s){var l=s.cm,g=l.display;s.updatedDisplay&&jo(l),s.barMeasure=Kn(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=mu(l,g.maxLine,g.maxLine.text.length).left+3,l.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+s.adjustWidthTo+Ni(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-ws(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function Lc(s){var l=s.cm;s.adjustWidthTo!=null&&(l.display.sizer.style.minWidth=s.adjustWidthTo+"px",s.maxScrollLeft<l.doc.scrollLeft&&Ds(l,Math.min(l.display.scroller.scrollLeft,s.maxScrollLeft),!0),l.display.maxLineChanged=!1);var g=s.focus&&s.focus==$r(wt(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&An(l,s.barMeasure),s.updatedDisplay&&za(l,s.barMeasure),s.selectionChanged&&Qa(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Tu(s.cm)}function wc(s){var l=s.cm,g=l.display,d=l.doc;if(s.updatedDisplay&&Uu(l,s.update),g.wheelStartX!=null&&(s.scrollTop!=null||s.scrollLeft!=null||s.scrollToPos)&&(g.wheelStartX=g.wheelStartY=null),s.scrollTop!=null&&Su(l,s.scrollTop,s.forceScroll),s.scrollLeft!=null&&Ds(l,s.scrollLeft,!0,!0),s.scrollToPos){var v=Ic(l,Ye(d,s.scrollToPos.from),Ye(d,s.scrollToPos.to),s.scrollToPos.margin);Cc(l,v)}var A=s.maybeHiddenMarkers,b=s.maybeUnhiddenMarkers;if(A)for(var y=0;y<A.length;++y)A[y].lines.length||ar(A[y],"hide");if(b)for(var w=0;w<b.length;++w)b[w].lines.length&&ar(b[w],"unhide");g.wrapper.offsetHeight&&(d.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&ar(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function Qt(s,l){if(s.curOp)return l();Ws(s);try{return l()}finally{Zs(s)}}function tt(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Ws(s);try{return l.apply(s,arguments)}finally{Zs(s)}}}function Tt(s){return function(){if(this.curOp)return s.apply(this,arguments);Ws(this);try{return s.apply(this,arguments)}finally{Zs(this)}}}function it(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Ws(l);try{return s.apply(this,arguments)}finally{Zs(l)}}}function ro(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,je(Oc,s))}function Oc(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,d=Qn(s,l.highlightFrontier),v=[];l.iter(d.line,Math.min(l.first+l.size,s.display.viewTo+500),function(A){if(d.line>=s.display.viewFrom){var b=A.styles,y=A.text.length>s.options.maxHighlightLength?Se(l.mode,d.state):null,w=tu(s,A,d,!0);y&&(d.state=y),A.styles=w.styles;var U=A.styleClasses,k=w.classes;k?A.styleClasses=k:U&&(A.styleClasses=null);for(var J=!b||b.length!=A.styles.length||U!=k&&(!U||!k||U.bgClass!=k.bgClass||U.textClass!=k.textClass),re=0;!J&&re<b.length;++re)J=b[re]!=A.styles[re];J&&v.push(d.line),A.stateAfter=d.save(),d.nextLine()}else A.text.length<=s.options.maxHighlightLength&&_n(s,A.text,d),A.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>g)return ro(s,s.options.workDelay),!0}),l.highlightFrontier=d.line,l.modeFrontier=Math.max(l.modeFrontier,d.line),v.length&&Qt(s,function(){for(var A=0;A<v.length;A++)kt(s,v[A],"text")})}}var ea=function(s,l,g){var d=s.display;this.viewport=l,this.visible=qo(d,s.doc,l),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=ws(s),this.force=g,this.dims=Fs(s),this.events=[]};ea.prototype.signal=function(s,l){tr(s,l)&&this.events.push(arguments)},ea.prototype.finish=function(){for(var s=0;s<this.events.length;s++)ar.apply(null,this.events[s])};function Uc(s){var l=s.display;!l.scrollbarsClipped&&l.scroller.offsetWidth&&(l.nativeBarWidth=l.scroller.offsetWidth-l.scroller.clientWidth,l.heightForcer.style.height=Ni(s)+"px",l.sizer.style.marginBottom=-l.nativeBarWidth+"px",l.sizer.style.borderRightWidth=Ni(s)+"px",l.scrollbarsClipped=!0)}function Fc(s){if(s.hasFocus())return null;var l=$r(wt(s));if(!l||!ur(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var d=ut(s).getSelection();d.anchorNode&&d.extend&&ur(s.display.lineDiv,d.anchorNode)&&(g.anchorNode=d.anchorNode,g.anchorOffset=d.anchorOffset,g.focusNode=d.focusNode,g.focusOffset=d.focusOffset)}return g}function Gc(s){if(!(!s||!s.activeElt||s.activeElt==$r(or(s.activeElt)))&&(s.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(s.activeElt.nodeName)&&s.anchorNode&&ur(document.body,s.anchorNode)&&ur(document.body,s.focusNode))){var l=s.activeElt.ownerDocument,g=l.defaultView.getSelection(),d=l.createRange();d.setEnd(s.anchorNode,s.anchorOffset),d.collapse(!1),g.removeAllRanges(),g.addRange(d),g.extend(s.focusNode,s.focusOffset)}}function Ja(s,l){var g=s.display,d=s.doc;if(l.editorIsHidden)return Ti(s),!1;if(!l.force&&l.visible.from>=g.viewFrom&&l.visible.to<=g.viewTo&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo)&&g.renderedView==g.view&&zo(s)==0)return!1;Gu(s)&&(Ti(s),l.dims=Fs(s));var v=d.first+d.size,A=Math.max(l.visible.from-s.options.viewportMargin,d.first),b=Math.min(v,l.visible.to+s.options.viewportMargin);g.viewFrom<A&&A-g.viewFrom<20&&(A=Math.max(d.first,g.viewFrom)),g.viewTo>b&&g.viewTo-b<20&&(b=Math.min(v,g.viewTo)),Vi&&(A=Hn(s.doc,A),b=Ho(s.doc,b));var y=A!=g.viewFrom||b!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;zn(s,A,b),g.viewOffset=Wi(Ie(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var w=zo(s);if(!y&&w==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var U=Fc(s);return w>4&&(g.lineDiv.style.display="none"),Bc(s,g.updateLineNumbers,l.dims),w>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,Gc(U),Ve(g.cursorDiv),Ve(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,y&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,ro(s,400)),g.updateLineNumbers=null,!0}function Uu(s,l){for(var g=l.viewport,d=!0;;d=!1){if(!d||!s.options.lineWrapping||l.oldDisplayWidth==ws(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Ma(s.display)-Wa(s),g.top)}),l.visible=qo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else d&&(l.visible=qo(s.display,s.doc,g));if(!Ja(s,l))break;jo(s);var v=Kn(s);Bs(s),An(s,v),za(s,v),l.force=!1}l.signal(s,"update",s),(s.display.viewFrom!=s.display.reportedViewFrom||s.display.viewTo!=s.display.reportedViewTo)&&(l.signal(s,"viewportChange",s,s.display.viewFrom,s.display.viewTo),s.display.reportedViewFrom=s.display.viewFrom,s.display.reportedViewTo=s.display.viewTo)}function $a(s,l){var g=new ea(s,l);if(Ja(s,g)){jo(s),Uu(s,g);var d=Kn(s);Bs(s),An(s,d),za(s,d),g.finish()}}function Bc(s,l,g){var d=s.display,v=s.options.lineNumbers,A=d.lineDiv,b=A.firstChild;function y(oe){var ce=oe.nextSibling;return Z&&q&&s.display.currentWheelTarget==oe?oe.style.display="none":oe.parentNode.removeChild(oe),ce}for(var w=d.view,U=d.viewFrom,k=0;k<w.length;k++){var J=w[k];if(!J.hidden)if(!J.node||J.node.parentNode!=A){var re=Gt(s,J,U,g);A.insertBefore(re,b)}else{for(;b!=J.node;)b=y(b);var ee=v&&l!=null&&l<=U&&J.lineNumber;J.changes&&(hr(J.changes,"gutter")>-1&&(ee=!1),hu(s,J,U,g)),ee&&(Ve(J.lineNumber),J.lineNumber.appendChild(document.createTextNode(Sa(s.options,U)))),b=J.node.nextSibling}U+=J.size}for(;b;)b=y(b)}function to(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",rt(s,"gutterChanged",s)}function za(s,l){s.display.sizer.style.minHeight=l.docHeight+"px",s.display.heightForcer.style.top=l.docHeight+"px",s.display.gutters.style.height=l.docHeight+s.display.barHeight+Ni(s)+"px"}function Fu(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var d=mt(l)-l.scroller.scrollLeft+s.doc.scrollLeft,v=l.gutters.offsetWidth,A=d+"px",b=0;b<g.length;b++)if(!g[b].hidden){s.options.fixedGutter&&(g[b].gutter&&(g[b].gutter.style.left=A),g[b].gutterBackground&&(g[b].gutterBackground.style.left=A));var y=g[b].alignable;if(y)for(var w=0;w<y.length;w++)y[w].style.left=A}s.options.fixedGutter&&(l.gutters.style.left=d+v+"px")}}function Gu(s){if(!s.options.lineNumbers)return!1;var l=s.doc,g=Sa(s.options,l.first+l.size-1),d=s.display;if(g.length!=d.lineNumChars){var v=d.measure.appendChild(me("div",[me("div",g)],"CodeMirror-linenumber CodeMirror-gutter-elt")),A=v.firstChild.offsetWidth,b=v.offsetWidth-A;return d.lineGutter.style.width="",d.lineNumInnerWidth=Math.max(A,d.lineGutter.offsetWidth-b)+1,d.lineNumWidth=d.lineNumInnerWidth+b,d.lineNumChars=d.lineNumInnerWidth?g.length:-1,d.lineGutter.style.width=d.lineNumWidth+"px",to(s.display),!0}return!1}function ja(s,l){for(var g=[],d=!1,v=0;v<s.length;v++){var A=s[v],b=null;if(typeof A!="string"&&(b=A.style,A=A.className),A=="CodeMirror-linenumbers")if(l)d=!0;else continue;g.push({className:A,style:b})}return l&&!d&&g.push({className:"CodeMirror-linenumbers",style:null}),g}function Bu(s){var l=s.gutters,g=s.gutterSpecs;Ve(l),s.lineGutter=null;for(var d=0;d<g.length;++d){var v=g[d],A=v.className,b=v.style,y=l.appendChild(me("div",null,"CodeMirror-gutter "+A));b&&(y.style.cssText=b),A=="CodeMirror-linenumbers"&&(s.lineGutter=y,y.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",to(s)}function io(s){Bu(s.display),vt(s),Fu(s)}function Vc(s,l,g,d){var v=this;this.input=g,v.scrollbarFiller=me("div",null,"CodeMirror-scrollbar-filler"),v.scrollbarFiller.setAttribute("cm-not-content","true"),v.gutterFiller=me("div",null,"CodeMirror-gutter-filler"),v.gutterFiller.setAttribute("cm-not-content","true"),v.lineDiv=xr("div",null,"CodeMirror-code"),v.selectionDiv=me("div",null,null,"position: relative; z-index: 1"),v.cursorDiv=me("div",null,"CodeMirror-cursors"),v.measure=me("div",null,"CodeMirror-measure"),v.lineMeasure=me("div",null,"CodeMirror-measure"),v.lineSpace=xr("div",[v.measure,v.lineMeasure,v.selectionDiv,v.cursorDiv,v.lineDiv],null,"position: relative; outline: none");var A=xr("div",[v.lineSpace],"CodeMirror-lines");v.mover=me("div",[A],null,"position: relative"),v.sizer=me("div",[v.mover],"CodeMirror-sizer"),v.sizerWidth=null,v.heightForcer=me("div",null,null,"position: absolute; height: "+Kt+"px; width: 1px;"),v.gutters=me("div",null,"CodeMirror-gutters"),v.lineGutter=null,v.scroller=me("div",[v.sizer,v.heightForcer,v.gutters],"CodeMirror-scroll"),v.scroller.setAttribute("tabIndex","-1"),v.wrapper=me("div",[v.scrollbarFiller,v.gutterFiller,v.scroller],"CodeMirror"),Q&&W===105&&(v.wrapper.style.clipPath="inset(0px)"),v.wrapper.setAttribute("translate","no"),O&&D<8&&(v.gutters.style.zIndex=-1,v.scroller.style.paddingRight=0),!Z&&!(e&&X)&&(v.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(v.wrapper):s(v.wrapper)),v.viewFrom=v.viewTo=l.first,v.reportedViewFrom=v.reportedViewTo=l.first,v.view=[],v.renderedView=null,v.externalMeasured=null,v.viewOffset=0,v.lastWrapHeight=v.lastWrapWidth=0,v.updateLineNumbers=null,v.nativeBarWidth=v.barHeight=v.barWidth=0,v.scrollbarsClipped=!1,v.lineNumWidth=v.lineNumInnerWidth=v.lineNumChars=null,v.alignWidgets=!1,v.cachedCharWidth=v.cachedTextHeight=v.cachedPaddingH=null,v.maxLine=null,v.maxLineLength=0,v.maxLineChanged=!1,v.wheelDX=v.wheelDY=v.wheelStartX=v.wheelStartY=null,v.shift=!1,v.selForContextMenu=null,v.activeTouch=null,v.gutterSpecs=ja(d.gutters,d.lineNumbers),Bu(v),g.init(v)}var ra=0,Qi=null;O?Qi=-.53:e?Qi=15:Q?Qi=-.7:M&&(Qi=-1/3);function Vu(s){var l=s.wheelDeltaX,g=s.wheelDeltaY;return l==null&&s.detail&&s.axis==s.HORIZONTAL_AXIS&&(l=s.detail),g==null&&s.detail&&s.axis==s.VERTICAL_AXIS?g=s.detail:g==null&&(g=s.wheelDelta),{x:l,y:g}}function Dc(s){var l=Vu(s);return l.x*=Qi,l.y*=Qi,l}function ta(s,l){Q&&W==102&&(s.display.chromeScrollHack==null?s.display.sizer.style.pointerEvents="none":clearTimeout(s.display.chromeScrollHack),s.display.chromeScrollHack=setTimeout(function(){s.display.chromeScrollHack=null,s.display.sizer.style.pointerEvents=""},100));var g=Vu(l),d=g.x,v=g.y,A=Qi;l.deltaMode===0&&(d=l.deltaX,v=l.deltaY,A=1);var b=s.display,y=b.scroller,w=y.scrollWidth>y.clientWidth,U=y.scrollHeight>y.clientHeight;if(d&&w||v&&U){if(v&&q&&Z){e:for(var k=l.target,J=b.view;k!=y;k=k.parentNode)for(var re=0;re<J.length;re++)if(J[re].node==k){s.display.currentWheelTarget=k;break e}}if(d&&!e&&!$&&A!=null){v&&U&&qn(s,Math.max(0,y.scrollTop+v*A)),Ds(s,Math.max(0,y.scrollLeft+d*A)),(!v||v&&U)&&ht(l),b.wheelStartX=null;return}if(v&&A!=null){var ee=v*A,oe=s.doc.scrollTop,ce=oe+b.wrapper.clientHeight;ee<0?oe=Math.max(0,oe+ee-50):ce=Math.min(s.doc.height,ce+ee+50),$a(s,{top:oe,bottom:ce})}ra<20&&l.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=y.scrollLeft,b.wheelStartY=y.scrollTop,b.wheelDX=d,b.wheelDY=v,setTimeout(function(){if(b.wheelStartX!=null){var de=y.scrollLeft-b.wheelStartX,ve=y.scrollTop-b.wheelStartY,Ce=ve&&b.wheelDY&&ve/b.wheelDY||de&&b.wheelDX&&de/b.wheelDX;b.wheelStartX=b.wheelStartY=null,Ce&&(Qi=(Qi*ra+Ce)/(ra+1),++ra)}},200)):(b.wheelDX+=d,b.wheelDY+=v))}}var Rr=function(s,l){this.ranges=s,this.primIndex=l};Rr.prototype.primary=function(){return this.ranges[this.primIndex]},Rr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],d=s.ranges[l];if(!La(g.anchor,d.anchor)||!La(g.head,d.head))return!1}return!0},Rr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new lr(wa(this.ranges[l].anchor),wa(this.ranges[l].head));return new Rr(s,this.primIndex)},Rr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Rr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if(Xe(l,d.from())>=0&&Xe(s,d.to())<=0)return g}return-1};var lr=function(s,l){this.anchor=s,this.head=l};lr.prototype.from=function(){return Zo(this.anchor,this.head)},lr.prototype.to=function(){return Wo(this.anchor,this.head)},lr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Pe(s,l,g){var d=s&&s.options.selectionsMayTouch,v=l[g];l.sort(function(re,ee){return Xe(re.from(),ee.from())}),g=hr(l,v);for(var A=1;A<l.length;A++){var b=l[A],y=l[A-1],w=Xe(y.to(),b.from());if(d&&!b.empty()?w>0:w>=0){var U=Zo(y.from(),b.from()),k=Wo(y.to(),b.to()),J=y.empty()?b.from()==b.head:y.from()==y.head;A<=g&&--g,l.splice(--A,2,new lr(J?k:U,J?U:k))}}return new Rr(l,g)}function Ri(s,l){return new Rr([new lr(s,l||s)],0)}function yi(s){return s.text?he(s.from.line+s.text.length-1,Ae(s.text).length+(s.text.length==1?s.from.ch:0)):s.to}function ia(s,l){if(Xe(s,l.from)<0)return s;if(Xe(s,l.to)<=0)return yi(l);var g=s.line+l.text.length-(l.to.line-l.from.line)-1,d=s.ch;return s.line==l.to.line&&(d+=yi(l).ch-l.to.ch),he(g,d)}function _i(s,l){for(var g=[],d=0;d<s.sel.ranges.length;d++){var v=s.sel.ranges[d];g.push(new lr(ia(v.anchor,l),ia(v.head,l)))}return Pe(s.cm,g,s.sel.primIndex)}function Du(s,l,g){return s.line==l.line?he(g.line,s.ch-l.ch+g.ch):he(g.line+(s.line-l.line),s.ch)}function Mc(s,l,g){for(var d=[],v=he(s.first,0),A=v,b=0;b<l.length;b++){var y=l[b],w=Du(y.from,v,A),U=Du(yi(y),v,A);if(v=y.to,A=U,g=="around"){var k=s.sel.ranges[b],J=Xe(k.head,k.anchor)<0;d[b]=new lr(J?U:w,J?w:U)}else d[b]=new lr(w,w)}return new Rr(d,s.sel.primIndex)}function ui(s){s.doc.mode=We(s.options,s.doc.modeOption),Ps(s)}function Ps(s){s.doc.iter(function(l){l.stateAfter&&(l.stateAfter=null),l.styles&&(l.styles=null)}),s.doc.modeFrontier=s.doc.highlightFrontier=s.doc.first,ro(s,100),s.state.modeGen++,s.curOp&&vt(s)}function hs(s,l){return l.from.ch==0&&l.to.ch==0&&Ae(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function so(s,l,g,d){function v(Ce){return g?g[Ce]:null}function A(Ce,xe,be){tc(Ce,xe,be,d),rt(Ce,"change",Ce,l)}function b(Ce,xe){for(var be=[],Ze=Ce;Ze<xe;++Ze)be.push(new hn(U[Ze],v(Ze),d));return be}var y=l.from,w=l.to,U=l.text,k=Ie(s,y.line),J=Ie(s,w.line),re=Ae(U),ee=v(U.length-1),oe=w.line-y.line;if(l.full)s.insert(0,b(0,U.length)),s.remove(U.length,s.size-U.length);else if(hs(s,l)){var ce=b(0,U.length-1);A(J,J.text,ee),oe&&s.remove(y.line,oe),ce.length&&s.insert(y.line,ce)}else if(k==J)if(U.length==1)A(k,k.text.slice(0,y.ch)+re+k.text.slice(w.ch),ee);else{var de=b(1,U.length-1);de.push(new hn(re+k.text.slice(w.ch),ee,d)),A(k,k.text.slice(0,y.ch)+U[0],v(0)),s.insert(y.line+1,de)}else if(U.length==1)A(k,k.text.slice(0,y.ch)+U[0]+J.text.slice(w.ch),v(0)),s.remove(y.line+1,oe);else{A(k,k.text.slice(0,y.ch)+U[0],v(0)),A(J,re+J.text.slice(w.ch),ee);var ve=b(1,U.length-1);oe>1&&s.remove(y.line+1,oe-1),s.insert(y.line+1,ve)}rt(s,"change",s,l)}function Si(s,l,g){function d(v,A,b){if(v.linked)for(var y=0;y<v.linked.length;++y){var w=v.linked[y];if(w.doc!=A){var U=b&&w.sharedHist;g&&!U||(l(w.doc,U),d(w.doc,v,U))}}}d(s,null,!0)}function sa(s,l){if(l.cm)throw new Error("This document is already in use.");s.doc=l,l.cm=s,Gs(s),ui(s),na(s),s.options.direction=l.direction,s.options.lineWrapping||Da(s),s.options.mode=l.modeOption,vt(s)}function na(s){(s.doc.direction=="rtl"?ze:Le)(s.display.lineDiv,"CodeMirror-rtl")}function qa(s){Qt(s,function(){na(s),vt(s)})}function Nn(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function no(s,l){var g={from:wa(l.from),to:yi(l),text:dt(s,l.from,l.to)};return Wu(s,g,l.from.line,l.to.line+1),Si(s,function(d){return Wu(d,g,l.from.line,l.to.line+1)},!0),g}function oa(s){for(;s.length;){var l=Ae(s);if(l.ranges)s.pop();else break}}function Wc(s,l){if(l)return oa(s.done),Ae(s.done);if(s.done.length&&!Ae(s.done).ranges)return Ae(s.done);if(s.done.length>1&&!s.done[s.done.length-2].ranges)return s.done.pop(),Ae(s.done)}function Mu(s,l,g,d){var v=s.history;v.undone.length=0;var A=+new Date,b,y;if((v.lastOp==d||v.lastOrigin==l.origin&&l.origin&&(l.origin.charAt(0)=="+"&&v.lastModTime>A-(s.cm?s.cm.options.historyEventDelay:500)||l.origin.charAt(0)=="*"))&&(b=Wc(v,v.lastOp==d)))y=Ae(b.changes),Xe(l.from,l.to)==0&&Xe(l.from,y.to)==0?y.to=yi(l):b.changes.push(no(s,l));else{var w=Ae(v.done);for((!w||!w.ranges)&&ds(s.sel,v.done),b={changes:[no(s,l)],generation:v.generation},v.done.push(b);v.done.length>v.undoDepth;)v.done.shift(),v.done[0].ranges||v.done.shift()}v.done.push(g),v.generation=++v.maxGeneration,v.lastModTime=v.lastSelTime=A,v.lastOp=v.lastSelOp=d,v.lastOrigin=v.lastSelOrigin=l.origin,y||ar(s,"historyAdded")}function Zc(s,l,g,d){var v=l.charAt(0);return v=="*"||v=="+"&&g.ranges.length==d.ranges.length&&g.somethingSelected()==d.somethingSelected()&&new Date-s.history.lastSelTime<=(s.cm?s.cm.options.historyEventDelay:500)}function Pc(s,l,g,d){var v=s.history,A=d&&d.origin;g==v.lastSelOp||A&&v.lastSelOrigin==A&&(v.lastModTime==v.lastSelTime&&v.lastOrigin==A||Zc(s,A,Ae(v.done),l))?v.done[v.done.length-1]=l:ds(l,v.done),v.lastSelTime=+new Date,v.lastSelOrigin=A,v.lastSelOp=g,d&&d.clearRedo!==!1&&oa(v.undone)}function ds(s,l){var g=Ae(l);g&&g.ranges&&g.equals(s)||l.push(s)}function Wu(s,l,g,d){var v=l["spans_"+s.id],A=0;s.iter(Math.max(s.first,g),Math.min(s.first+s.size,d),function(b){b.markedSpans&&((v||(v=l["spans_"+s.id]={}))[A]=b.markedSpans),++A})}function kc(s){if(!s)return null;for(var l,g=0;g<s.length;++g)s[g].marker.explicitlyCleared?l||(l=s.slice(0,g)):l&&l.push(s[g]);return l?l.length?l:null:s}function Qc(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var d=[],v=0;v<l.text.length;++v)d.push(kc(g[v]));return d}function Zu(s,l){var g=Qc(s,l),d=Mi(s,l);if(!g)return d;if(!d)return g;for(var v=0;v<g.length;++v){var A=g[v],b=d[v];if(A&&b)e:for(var y=0;y<b.length;++y){for(var w=b[y],U=0;U<A.length;++U)if(A[U].marker==w.marker)continue e;A.push(w)}else b&&(g[v]=b)}return g}function bn(s,l,g){for(var d=[],v=0;v<s.length;++v){var A=s[v];if(A.ranges){d.push(g?Rr.prototype.deepCopy.call(A):A);continue}var b=A.changes,y=[];d.push({changes:y});for(var w=0;w<b.length;++w){var U=b[w],k=void 0;if(y.push({from:U.from,to:U.to,text:U.text}),l)for(var J in U)(k=J.match(/^spans_(\d+)$/))&&hr(l,Number(k[1]))>-1&&(Ae(y)[J]=U[J],delete U[J])}}return d}function Ka(s,l,g,d){if(d){var v=s.anchor;if(g){var A=Xe(l,v)<0;A!=Xe(g,v)<0?(v=l,l=g):A!=Xe(l,g)<0&&(l=g)}return new lr(v,l)}else return new lr(g||l,l)}function aa(s,l,g,d,v){v==null&&(v=s.cm&&(s.cm.display.shift||s.extend)),xt(s,new Rr([Ka(s.sel.primary(),l,g,v)],0),d)}function Pu(s,l,g){for(var d=[],v=s.cm&&(s.cm.display.shift||s.extend),A=0;A<s.sel.ranges.length;A++)d[A]=Ka(s.sel.ranges[A],l[A],null,v);var b=Pe(s.cm,d,s.sel.primIndex);xt(s,b,g)}function el(s,l,g,d){var v=s.sel.ranges.slice(0);v[l]=g,xt(s,Pe(s.cm,v,s.sel.primIndex),d)}function ku(s,l,g,d){xt(s,Ri(l,g),d)}function _c(s,l,g){var d={ranges:l.ranges,update:function(v){this.ranges=[];for(var A=0;A<v.length;A++)this.ranges[A]=new lr(Ye(s,v[A].anchor),Ye(s,v[A].head))},origin:g&&g.origin};return ar(s,"beforeSelectionChange",s,d),s.cm&&ar(s.cm,"beforeSelectionChange",s.cm,d),d.ranges!=l.ranges?Pe(s.cm,d.ranges,d.ranges.length-1):l}function Qu(s,l,g){var d=s.history.done,v=Ae(d);v&&v.ranges?(d[d.length-1]=l,Tn(s,l,g)):xt(s,l,g)}function xt(s,l,g){Tn(s,l,g),Pc(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Tn(s,l,g){(tr(s,"beforeSelectionChange")||s.cm&&tr(s.cm,"beforeSelectionChange"))&&(l=_c(s,l,g));var d=g&&g.bias||(Xe(l.primary().head,s.sel.primary().head)<0?-1:1);Rn(s,Sn(s,l,d,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&In(s.cm)}function Rn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,ts(s.cm)),rt(s,"cursorActivity",s))}function yn(s){Rn(s,Sn(s,s.sel,null,!1))}function Sn(s,l,g,d){for(var v,A=0;A<l.ranges.length;A++){var b=l.ranges[A],y=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[A],w=la(s,b.anchor,y&&y.anchor,g,d),U=b.head==b.anchor?w:la(s,b.head,y&&y.head,g,d);(v||w!=b.anchor||U!=b.head)&&(v||(v=l.ranges.slice(0,A)),v[A]=new lr(w,U))}return v?Pe(s.cm,v,l.primIndex):l}function gs(s,l,g,d,v){var A=Ie(s,l.line);if(A.markedSpans)for(var b=0;b<A.markedSpans.length;++b){var y=A.markedSpans[b],w=y.marker,U="selectLeft"in w?!w.selectLeft:w.inclusiveLeft,k="selectRight"in w?!w.selectRight:w.inclusiveRight;if((y.from==null||(U?y.from<=l.ch:y.from<l.ch))&&(y.to==null||(k?y.to>=l.ch:y.to>l.ch))){if(v&&(ar(w,"beforeCursorEnter"),w.explicitlyCleared))if(A.markedSpans){--b;continue}else break;if(!w.atomic)continue;if(g){var J=w.find(d<0?1:-1),re=void 0;if((d<0?k:U)&&(J=_u(s,J,-d,J&&J.line==l.line?A:null)),J&&J.line==l.line&&(re=Xe(J,g))&&(d<0?re<0:re>0))return gs(s,J,l,d,v)}var ee=w.find(d<0?-1:1);return(d<0?U:k)&&(ee=_u(s,ee,d,ee.line==l.line?A:null)),ee?gs(s,ee,l,d,v):null}}return l}function la(s,l,g,d,v){var A=d||1,b=gs(s,l,g,A,v)||!v&&gs(s,l,g,A,!0)||gs(s,l,g,-A,v)||!v&&gs(s,l,g,-A,!0);return b||(s.cantEdit=!0,he(s.first,0))}function _u(s,l,g,d){return g<0&&l.ch==0?l.line>s.first?Ye(s,he(l.line-1)):null:g>0&&l.ch==(d||Ie(s,l.line)).text.length?l.line<s.first+s.size-1?he(l.line+1,0):null:new he(l.line,l.ch+g)}function Hu(s){s.setSelection(he(s.firstLine(),0),he(s.lastLine()),pe)}function Xu(s,l,g){var d={canceled:!1,from:l.from,to:l.to,text:l.text,origin:l.origin,cancel:function(){return d.canceled=!0}};return g&&(d.update=function(v,A,b,y){v&&(d.from=Ye(s,v)),A&&(d.to=Ye(s,A)),b&&(d.text=b),y!==void 0&&(d.origin=y)}),ar(s,"beforeChange",s,d),s.cm&&ar(s.cm,"beforeChange",s.cm,d),d.canceled?(s.cm&&(s.cm.curOp.updateInput=2),null):{from:d.from,to:d.to,text:d.text,origin:d.origin}}function Ln(s,l,g){if(s.cm){if(!s.cm.curOp)return tt(s.cm,Ln)(s,l,g);if(s.cm.state.suppressEdits)return}if(!((tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"))&&(l=Xu(s,l,!0),!l))){var d=ko&&!g&&Ss(s,l.from,l.to);if(d)for(var v=d.length-1;v>=0;--v)Yu(s,{from:d[v].from,to:d[v].to,text:v?[""]:l.text,origin:l.origin});else Yu(s,l)}}function Yu(s,l){if(!(l.text.length==1&&l.text[0]==""&&Xe(l.from,l.to)==0)){var g=_i(s,l);Mu(s,l,g,s.cm?s.cm.curOp.id:NaN),oo(s,l,g,Mi(s,l));var d=[];Si(s,function(v,A){!A&&hr(d,v.history)==-1&&(ju(v.history,l),d.push(v.history)),oo(v,l,null,Mi(v,l))})}}function ua(s,l,g){var d=s.cm&&s.cm.state.suppressEdits;if(!(d&&!g)){for(var v=s.history,A,b=s.sel,y=l=="undo"?v.done:v.undone,w=l=="undo"?v.undone:v.done,U=0;U<y.length&&(A=y[U],!(g?A.ranges&&!A.equals(s.sel):!A.ranges));U++);if(U!=y.length){for(v.lastOrigin=v.lastSelOrigin=null;;)if(A=y.pop(),A.ranges){if(ds(A,w),g&&!A.equals(s.sel)){xt(s,A,{clearRedo:!1});return}b=A}else if(d){y.push(A);return}else break;var k=[];ds(b,w),w.push({changes:k,generation:v.generation}),v.generation=A.generation||++v.maxGeneration;for(var J=tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"),re=function(ce){var de=A.changes[ce];if(de.origin=l,J&&!Xu(s,de,!1))return y.length=0,{};k.push(no(s,de));var ve=ce?_i(s,de):Ae(y);oo(s,de,ve,Zu(s,de)),!ce&&s.cm&&s.cm.scrollIntoView({from:de.from,to:yi(de)});var Ce=[];Si(s,function(xe,be){!be&&hr(Ce,xe.history)==-1&&(ju(xe.history,de),Ce.push(xe.history)),oo(xe,de,null,Zu(xe,de))})},ee=A.changes.length-1;ee>=0;--ee){var oe=re(ee);if(oe)return oe.v}}}}function Ju(s,l){if(l!=0&&(s.first+=l,s.sel=new Rr(Ot(s.sel.ranges,function(v){return new lr(he(v.anchor.line+l,v.anchor.ch),he(v.head.line+l,v.head.ch))}),s.sel.primIndex),s.cm)){vt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,d=g.viewFrom;d<g.viewTo;d++)kt(s.cm,d,"gutter")}}function oo(s,l,g,d){if(s.cm&&!s.cm.curOp)return tt(s.cm,oo)(s,l,g,d);if(l.to.line<s.first){Ju(s,l.text.length-1-(l.to.line-l.from.line));return}if(!(l.from.line>s.lastLine())){if(l.from.line<s.first){var v=l.text.length-1-(s.first-l.from.line);Ju(s,v),l={from:he(s.first,0),to:he(l.to.line+v,l.to.ch),text:[Ae(l.text)],origin:l.origin}}var A=s.lastLine();l.to.line>A&&(l={from:l.from,to:he(A,Ie(s,A).text.length),text:[l.text[0]],origin:l.origin}),l.removed=dt(s,l.from,l.to),g||(g=_i(s,l)),s.cm?Hc(s.cm,l,d):so(s,l,d),Tn(s,g,pe),s.cantEdit&&la(s,he(s.firstLine(),0))&&(s.cantEdit=!1)}}function Hc(s,l,g){var d=s.doc,v=s.display,A=l.from,b=l.to,y=!1,w=A.line;s.options.lineWrapping||(w=_e(ai(Ie(d,A.line))),d.iter(w,b.line+1,function(ee){if(ee==v.maxLine)return y=!0,!0})),d.sel.contains(l.from,l.to)>-1&&ts(s),so(d,l,g,xn(s)),s.options.lineWrapping||(d.iter(w,A.line+l.text.length,function(ee){var oe=Xo(ee);oe>v.maxLineLength&&(v.maxLine=ee,v.maxLineLength=oe,v.maxLineChanged=!0,y=!1)}),y&&(s.curOp.updateMaxLine=!0)),Kf(d,A.line),ro(s,400);var U=l.text.length-(b.line-A.line)-1;l.full?vt(s):A.line==b.line&&l.text.length==1&&!hs(s.doc,l)?kt(s,A.line,"text"):vt(s,A.line,b.line+1,U);var k=tr(s,"changes"),J=tr(s,"change");if(J||k){var re={from:A,to:b,text:l.text,removed:l.removed,origin:l.origin};J&&rt(s,"change",s,re),k&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(re)}s.display.selForContextMenu=null}function wn(s,l,g,d,v){var A;d||(d=g),Xe(d,g)<0&&(A=[d,g],g=A[0],d=A[1]),typeof l=="string"&&(l=s.splitLines(l)),Ln(s,{from:g,to:d,text:l,origin:v})}function $u(s,l,g,d){g<s.line?s.line+=d:l<s.line&&(s.line=l,s.ch=0)}function zu(s,l,g,d){for(var v=0;v<s.length;++v){var A=s[v],b=!0;if(A.ranges){A.copied||(A=s[v]=A.deepCopy(),A.copied=!0);for(var y=0;y<A.ranges.length;y++)$u(A.ranges[y].anchor,l,g,d),$u(A.ranges[y].head,l,g,d);continue}for(var w=0;w<A.changes.length;++w){var U=A.changes[w];if(g<U.from.line)U.from=he(U.from.line+d,U.from.ch),U.to=he(U.to.line+d,U.to.ch);else if(l<=U.to.line){b=!1;break}}b||(s.splice(0,v+1),v=0)}}function ju(s,l){var g=l.from.line,d=l.to.line,v=l.text.length-(d-g)-1;zu(s.done,g,d,v),zu(s.undone,g,d,v)}function ao(s,l,g,d){var v=l,A=l;return typeof l=="number"?A=Ie(s,eu(s,l)):v=_e(l),v==null?null:(d(A,v)&&s.cm&&kt(s.cm,v,g),A)}function lo(s){this.lines=s,this.parent=null;for(var l=0,g=0;g<s.length;++g)s[g].parent=this,l+=s[g].height;this.height=l}lo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(s,l){for(var g=s,d=s+l;g<d;++g){var v=this.lines[g];this.height-=v.height,ic(v),rt(v,"delete")}this.lines.splice(s,l)},collapse:function(s){s.push.apply(s,this.lines)},insertInner:function(s,l,g){this.height+=g,this.lines=this.lines.slice(0,s).concat(l).concat(this.lines.slice(s));for(var d=0;d<l.length;++d)l[d].parent=this},iterN:function(s,l,g){for(var d=s+l;s<d;++s)if(g(this.lines[s]))return!0}};function uo(s){this.children=s;for(var l=0,g=0,d=0;d<s.length;++d){var v=s[d];l+=v.chunkSize(),g+=v.height,v.parent=this}this.size=l,this.height=g,this.parent=null}uo.prototype={chunkSize:function(){return this.size},removeInner:function(s,l){this.size-=l;for(var g=0;g<this.children.length;++g){var d=this.children[g],v=d.chunkSize();if(s<v){var A=Math.min(l,v-s),b=d.height;if(d.removeInner(s,A),this.height-=b-d.height,v==A&&(this.children.splice(g--,1),d.parent=null),(l-=A)==0)break;s=0}else s-=v}if(this.size-l<25&&(this.children.length>1||!(this.children[0]instanceof lo))){var y=[];this.collapse(y),this.children=[new lo(y)],this.children[0].parent=this}},collapse:function(s){for(var l=0;l<this.children.length;++l)this.children[l].collapse(s)},insertInner:function(s,l,g){this.size+=l.length,this.height+=g;for(var d=0;d<this.children.length;++d){var v=this.children[d],A=v.chunkSize();if(s<=A){if(v.insertInner(s,l,g),v.lines&&v.lines.length>50){for(var b=v.lines.length%25+25,y=b;y<v.lines.length;){var w=new lo(v.lines.slice(y,y+=25));v.height-=w.height,this.children.splice(++d,0,w),w.parent=this}v.lines=v.lines.slice(0,b),this.maybeSpill()}break}s-=A}},maybeSpill:function(){if(!(this.children.length<=10)){var s=this;do{var l=s.children.splice(s.children.length-5,5),g=new uo(l);if(s.parent){s.size-=g.size,s.height-=g.height;var v=hr(s.parent.children,s);s.parent.children.splice(v+1,0,g)}else{var d=new uo(s.children);d.parent=s,s.children=[d,g],s=d}g.parent=s.parent}while(s.children.length>10);s.parent.maybeSpill()}},iterN:function(s,l,g){for(var d=0;d<this.children.length;++d){var v=this.children[d],A=v.chunkSize();if(s<A){var b=Math.min(l,A-s);if(v.iterN(s,b,g))return!0;if((l-=b)==0)break;s=0}else s-=A}}};var fo=function(s,l,g){if(g)for(var d in g)g.hasOwnProperty(d)&&(this[d]=g[d]);this.doc=s,this.node=l};fo.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,d=_e(g);if(!(d==null||!l)){for(var v=0;v<l.length;++v)l[v]==this&&l.splice(v--,1);l.length||(g.widgets=null);var A=Zi(this);Pt(g,Math.max(0,g.height-A)),s&&(Qt(s,function(){qu(s,g,-A),kt(s,d,"widget")}),rt(s,"lineWidgetCleared",s,this,d))}},fo.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,d=this.line;this.height=null;var v=Zi(this)-l;v&&(Ii(this.doc,d)||Pt(d,d.height+v),g&&Qt(g,function(){g.curOp.forceUpdate=!0,qu(g,d,v),rt(g,"lineWidgetChanged",g,s,_e(d))}))},is(fo);function qu(s,l,g){Wi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Ya(s,g)}function Xc(s,l,g,d){var v=new fo(s,g,d),A=s.cm;return A&&v.noHScroll&&(A.display.alignWidgets=!0),ao(s,l,"widget",function(b){var y=b.widgets||(b.widgets=[]);if(v.insertAt==null?y.push(v):y.splice(Math.min(y.length,Math.max(0,v.insertAt)),0,v),v.line=b,A&&!Ii(s,b)){var w=Wi(b)<s.scrollTop;Pt(b,b.height+Zi(v)),w&&Ya(A,v.height),A.curOp.forceUpdate=!0}return!0}),A&&rt(A,"lineWidgetAdded",A,v,typeof l=="number"?l:_e(l)),v}var Ku=0,Es=function(s,l){this.lines=[],this.type=l,this.doc=s,this.id=++Ku};Es.prototype.clear=function(){if(!this.explicitlyCleared){var s=this.doc.cm,l=s&&!s.curOp;if(l&&Ws(s),tr(this,"clear")){var g=this.find();g&&rt(this,"clear",g.from,g.to)}for(var d=null,v=null,A=0;A<this.lines.length;++A){var b=this.lines[A],y=Ts(b.markedSpans,this);s&&!this.collapsed?kt(s,_e(b),"text"):s&&(y.to!=null&&(v=_e(b)),y.from!=null&&(d=_e(b))),b.markedSpans=Ua(b.markedSpans,y),y.from==null&&this.collapsed&&!Ii(this.doc,b)&&s&&Pt(b,Mr(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var w=0;w<this.lines.length;++w){var U=ai(this.lines[w]),k=Xo(U);k>s.display.maxLineLength&&(s.display.maxLine=U,s.display.maxLineLength=k,s.display.maxLineChanged=!0)}d!=null&&s&&this.collapsed&&vt(s,d,v+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&yn(s.doc)),s&&rt(s,"markerCleared",s,this,d,v),l&&Zs(s),this.parent&&this.parent.clear()}},Es.prototype.find=function(s,l){s==null&&this.type=="bookmark"&&(s=1);for(var g,d,v=0;v<this.lines.length;++v){var A=this.lines[v],b=Ts(A.markedSpans,this);if(b.from!=null&&(g=he(l?A:_e(A),b.from),s==-1))return g;if(b.to!=null&&(d=he(l?A:_e(A),b.to),s==1))return d}return g&&{from:g,to:d}},Es.prototype.changed=function(){var s=this,l=this.find(-1,!0),g=this,d=this.doc.cm;!l||!d||Qt(d,function(){var v=l.line,A=_e(l.line),b=Et(d,A);if(b&&(Cu(b),d.curOp.selectionChanged=d.curOp.forceUpdate=!0),d.curOp.updateMaxLine=!0,!Ii(g.doc,v)&&g.height!=null){var y=g.height;g.height=null;var w=Zi(g)-y;w&&Pt(v,v.height+w)}rt(d,"markerChanged",d,s)})},Es.prototype.attachLine=function(s){if(!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(!l.maybeHiddenMarkers||hr(l.maybeHiddenMarkers,this)==-1)&&(l.maybeUnhiddenMarkers||(l.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(s)},Es.prototype.detachLine=function(s){if(this.lines.splice(hr(this.lines,s),1),!this.lines.length&&this.doc.cm){var l=this.doc.cm.curOp;(l.maybeHiddenMarkers||(l.maybeHiddenMarkers=[])).push(this)}},is(Es);function On(s,l,g,d,v){if(d&&d.shared)return Yc(s,l,g,d,v);if(s.cm&&!s.cm.curOp)return tt(s.cm,On)(s,l,g,d,v);var A=new Es(s,v),b=Xe(l,g);if(d&&zr(d,A,!1),b>0||b==0&&A.clearWhenEmpty!==!1)return A;if(A.replacedWith&&(A.collapsed=!0,A.widgetNode=xr("span",[A.replacedWith],"CodeMirror-widget"),d.handleMouseEvents||A.widgetNode.setAttribute("cm-ignore-events","true"),d.insertLeft&&(A.widgetNode.insertLeft=!0)),A.collapsed){if(os(s,l.line,l,g,A)||l.line!=g.line&&os(s,g.line,l,g,A))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yt()}A.addToHistory&&Mu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var y=l.line,w=s.cm,U;if(s.iter(y,g.line+1,function(J){w&&A.collapsed&&!w.options.lineWrapping&&ai(J)==w.display.maxLine&&(U=!0),A.collapsed&&y!=l.line&&Pt(J,0),Di(J,new un(A,y==l.line?l.ch:null,y==g.line?g.ch:null),s.cm&&s.cm.curOp),++y}),A.collapsed&&s.iter(l.line,g.line+1,function(J){Ii(s,J)&&Pt(J,0)}),A.clearOnEnter&&Ge(A,"beforeCursorEnter",function(){return A.clear()}),A.readOnly&&(ec(),(s.history.done.length||s.history.undone.length)&&s.clearHistory()),A.collapsed&&(A.id=++Ku,A.atomic=!0),w){if(U&&(w.curOp.updateMaxLine=!0),A.collapsed)vt(w,l.line,g.line+1);else if(A.className||A.startStyle||A.endStyle||A.css||A.attributes||A.title)for(var k=l.line;k<=g.line;k++)kt(w,k,"text");A.atomic&&yn(w.doc),rt(w,"markerAdded",w,A)}return A}var co=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};co.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();rt(this,"clear")}},co.prototype.find=function(s,l){return this.primary.find(s,l)},is(co);function Yc(s,l,g,d,v){d=zr(d),d.shared=!1;var A=[On(s,l,g,d,v)],b=A[0],y=d.widgetNode;return Si(s,function(w){y&&(d.widgetNode=y.cloneNode(!0)),A.push(On(w,Ye(w,l),Ye(w,g),d,v));for(var U=0;U<w.linked.length;++U)if(w.linked[U].isParent)return;b=Ae(A)}),new co(A,b)}function ef(s){return s.findMarks(he(s.first,0),s.clipPos(he(s.lastLine())),function(l){return l.parent})}function Jc(s,l){for(var g=0;g<l.length;g++){var d=l[g],v=d.find(),A=s.clipPos(v.from),b=s.clipPos(v.to);if(Xe(A,b)){var y=On(s,A,b,d.primary,d.primary.type);d.markers.push(y),y.parent=d}}}function $c(s){for(var l=function(d){var v=s[d],A=[v.primary.doc];Si(v.primary.doc,function(w){return A.push(w)});for(var b=0;b<v.markers.length;b++){var y=v.markers[b];hr(A,y.doc)==-1&&(y.parent=null,v.markers.splice(b--,1))}},g=0;g<s.length;g++)l(g)}var zc=0,Bt=function(s,l,g,d,v){if(!(this instanceof Bt))return new Bt(s,l,g,d,v);g==null&&(g=0),uo.call(this,[new lo([new hn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var A=he(g,0);this.sel=Ri(A),this.history=new Nn(null),this.id=++zc,this.modeOption=l,this.lineSep=d,this.direction=v=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),so(this,{from:A,to:A,text:s}),xt(this,Ri(A),pe)};Bt.prototype=rs(uo.prototype,{constructor:Bt,iter:function(s,l,g){g?this.iterN(s-this.first,l-s,g):this.iterN(this.first,this.first+this.size,s)},insert:function(s,l){for(var g=0,d=0;d<l.length;++d)g+=l[d].height;this.insertInner(s-this.first,l,g)},remove:function(s,l){this.removeInner(s-this.first,l)},getValue:function(s){var l=vi(this,this.first,this.first+this.size);return s===!1?l:l.join(s||this.lineSeparator())},setValue:it(function(s){var l=he(this.first,0),g=this.first+this.size-1;Ln(this,{from:l,to:he(g,Ie(this,g).text.length),text:this.splitLines(s),origin:"setValue",full:!0},!0),this.cm&&jn(this.cm,0,0),xt(this,Ri(l),pe)}),replaceRange:function(s,l,g,d){l=Ye(this,l),g=g?Ye(this,g):l,wn(this,s,l,g,d)},getRange:function(s,l,g){var d=dt(this,Ye(this,s),Ye(this,l));return g===!1?d:g===""?d.join(""):d.join(g||this.lineSeparator())},getLine:function(s){var l=this.getLineHandle(s);return l&&l.text},getLineHandle:function(s){if(ss(this,s))return Ie(this,s)},getLineNumber:function(s){return _e(s)},getLineHandleVisualStart:function(s){return typeof s=="number"&&(s=Ie(this,s)),ai(s)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(s){return Ye(this,s)},getCursor:function(s){var l=this.sel.primary(),g;return s==null||s=="head"?g=l.head:s=="anchor"?g=l.anchor:s=="end"||s=="to"||s===!1?g=l.to():g=l.from(),g},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:it(function(s,l,g){ku(this,Ye(this,typeof s=="number"?he(s,l||0):s),null,g)}),setSelection:it(function(s,l,g){ku(this,Ye(this,s),Ye(this,l||s),g)}),extendSelection:it(function(s,l,g){aa(this,Ye(this,s),l&&Ye(this,l),g)}),extendSelections:it(function(s,l){Pu(this,ru(this,s),l)}),extendSelectionsBy:it(function(s,l){var g=Ot(this.sel.ranges,s);Pu(this,ru(this,g),l)}),setSelections:it(function(s,l,g){if(s.length){for(var d=[],v=0;v<s.length;v++)d[v]=new lr(Ye(this,s[v].anchor),Ye(this,s[v].head||s[v].anchor));l==null&&(l=Math.min(s.length-1,this.sel.primIndex)),xt(this,Pe(this.cm,d,l),g)}}),addSelection:it(function(s,l,g){var d=this.sel.ranges.slice(0);d.push(new lr(Ye(this,s),Ye(this,l||s))),xt(this,Pe(this.cm,d,d.length-1),g)}),getSelection:function(s){for(var l=this.sel.ranges,g,d=0;d<l.length;d++){var v=dt(this,l[d].from(),l[d].to());g=g?g.concat(v):v}return s===!1?g:g.join(s||this.lineSeparator())},getSelections:function(s){for(var l=[],g=this.sel.ranges,d=0;d<g.length;d++){var v=dt(this,g[d].from(),g[d].to());s!==!1&&(v=v.join(s||this.lineSeparator())),l[d]=v}return l},replaceSelection:function(s,l,g){for(var d=[],v=0;v<this.sel.ranges.length;v++)d[v]=s;this.replaceSelections(d,l,g||"+input")},replaceSelections:it(function(s,l,g){for(var d=[],v=this.sel,A=0;A<v.ranges.length;A++){var b=v.ranges[A];d[A]={from:b.from(),to:b.to(),text:this.splitLines(s[A]),origin:g}}for(var y=l&&l!="end"&&Mc(this,d,l),w=d.length-1;w>=0;w--)Ln(this,d[w]);y?Qu(this,y):this.cm&&In(this.cm)}),undo:it(function(){ua(this,"undo")}),redo:it(function(){ua(this,"redo")}),undoSelection:it(function(){ua(this,"undo",!0)}),redoSelection:it(function(){ua(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,l=0,g=0,d=0;d<s.done.length;d++)s.done[d].ranges||++l;for(var v=0;v<s.undone.length;v++)s.undone[v].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new Nn(this.history),Si(this,function(l){return l.history=s.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(s){return s&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(s){return this.history.generation==(s||this.cleanGeneration)},getHistory:function(){return{done:bn(this.history.done),undone:bn(this.history.undone)}},setHistory:function(s){var l=this.history=new Nn(this.history);l.done=bn(s.done.slice(0),null,!0),l.undone=bn(s.undone.slice(0),null,!0)},setGutterMarker:it(function(s,l,g){return ao(this,s,"gutter",function(d){var v=d.gutterMarkers||(d.gutterMarkers={});return v[l]=g,!g&&rr(v)&&(d.gutterMarkers=null),!0})}),clearGutter:it(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&ao(l,g,"gutter",function(){return g.gutterMarkers[s]=null,rr(g.gutterMarkers)&&(g.gutterMarkers=null),!0})})}),lineInfo:function(s){var l;if(typeof s=="number"){if(!ss(this,s)||(l=s,s=Ie(this,s),!s))return null}else if(l=_e(s),l==null)return null;return{line:l,handle:s,text:s.text,gutterMarkers:s.gutterMarkers,textClass:s.textClass,bgClass:s.bgClass,wrapClass:s.wrapClass,widgets:s.widgets}},addLineClass:it(function(s,l,g){return ao(this,s,l=="gutter"?"gutter":"class",function(d){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass";if(!d[v])d[v]=g;else{if(Re(g).test(d[v]))return!1;d[v]+=" "+g}return!0})}),removeLineClass:it(function(s,l,g){return ao(this,s,l=="gutter"?"gutter":"class",function(d){var v=l=="text"?"textClass":l=="background"?"bgClass":l=="gutter"?"gutterClass":"wrapClass",A=d[v];if(A)if(g==null)d[v]=null;else{var b=A.match(Re(g));if(!b)return!1;var y=b.index+b[0].length;d[v]=A.slice(0,b.index)+(!b.index||y==A.length?"":" ")+A.slice(y)||null}else return!1;return!0})}),addLineWidget:it(function(s,l,g){return Xc(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return On(this,Ye(this,s),Ye(this,l),g,g&&g.type||"range")},setBookmark:function(s,l){var g={replacedWith:l&&(l.nodeType==null?l.widget:l),insertLeft:l&&l.insertLeft,clearWhenEmpty:!1,shared:l&&l.shared,handleMouseEvents:l&&l.handleMouseEvents};return s=Ye(this,s),On(this,s,s,g,"bookmark")},findMarksAt:function(s){s=Ye(this,s);var l=[],g=Ie(this,s.line).markedSpans;if(g)for(var d=0;d<g.length;++d){var v=g[d];(v.from==null||v.from<=s.ch)&&(v.to==null||v.to>=s.ch)&&l.push(v.marker.parent||v.marker)}return l},findMarks:function(s,l,g){s=Ye(this,s),l=Ye(this,l);var d=[],v=s.line;return this.iter(s.line,l.line+1,function(A){var b=A.markedSpans;if(b)for(var y=0;y<b.length;y++){var w=b[y];!(w.to!=null&&v==s.line&&s.ch>=w.to||w.from==null&&v!=s.line||w.from!=null&&v==l.line&&w.from>=l.ch)&&(!g||g(w.marker))&&d.push(w.marker.parent||w.marker)}++v}),d},getAllMarks:function(){var s=[];return this.iter(function(l){var g=l.markedSpans;if(g)for(var d=0;d<g.length;++d)g[d].from!=null&&s.push(g[d].marker)}),s},posFromIndex:function(s){var l,g=this.first,d=this.lineSeparator().length;return this.iter(function(v){var A=v.text.length+d;if(A>s)return l=s,!0;s-=A,++g}),Ye(this,he(g,l))},indexFromPos:function(s){s=Ye(this,s);var l=s.ch;if(s.line<this.first||s.ch<0)return 0;var g=this.lineSeparator().length;return this.iter(this.first,s.line,function(d){l+=d.text.length+g}),l},copy:function(s){var l=new Bt(vi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return l.scrollTop=this.scrollTop,l.scrollLeft=this.scrollLeft,l.sel=this.sel,l.extend=!1,s&&(l.history.undoDepth=this.history.undoDepth,l.setHistory(this.getHistory())),l},linkedDoc:function(s){s||(s={});var l=this.first,g=this.first+this.size;s.from!=null&&s.from>l&&(l=s.from),s.to!=null&&s.to<g&&(g=s.to);var d=new Bt(vi(this,l,g),s.mode||this.modeOption,l,this.lineSep,this.direction);return s.sharedHist&&(d.history=this.history),(this.linked||(this.linked=[])).push({doc:d,sharedHist:s.sharedHist}),d.linked=[{doc:this,isParent:!0,sharedHist:s.sharedHist}],Jc(d,ef(this)),d},unlinkDoc:function(s){if(s instanceof yr&&(s=s.doc),this.linked)for(var l=0;l<this.linked.length;++l){var g=this.linked[l];if(g.doc==s){this.linked.splice(l,1),s.unlinkDoc(this),$c(ef(this));break}}if(s.history==this.history){var d=[s.id];Si(s,function(v){return d.push(v.id)},!0),s.history=new Nn(null),s.history.done=bn(this.history.done,d),s.history.undone=bn(this.history.undone,d)}},iterLinkedDocs:function(s){Si(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):nn(s)},lineSeparator:function(){return this.lineSep||`
|
|
11
|
+
`},setDirection:it(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&qa(this.cm))})}),Bt.prototype.eachLine=Bt.prototype.iter;var rf=0;function jc(s){var l=this;if(tf(l),!(dr(l,s)||Pi(l.display,s))){ht(s),O&&(rf=+new Date);var g=li(l,s,!0),d=s.dataTransfer.files;if(!(!g||l.isReadOnly()))if(d&&d.length&&window.FileReader&&window.File)for(var v=d.length,A=Array(v),b=0,y=function(){++b==v&&tt(l,function(){g=Ye(l.doc,g);var ee={from:g,to:g,text:l.doc.splitLines(A.filter(function(oe){return oe!=null}).join(l.doc.lineSeparator())),origin:"paste"};Ln(l.doc,ee),Qu(l.doc,Ri(Ye(l.doc,g),Ye(l.doc,yi(ee))))})()},w=function(ee,oe){if(l.options.allowDropFileTypes&&hr(l.options.allowDropFileTypes,ee.type)==-1){y();return}var ce=new FileReader;ce.onerror=function(){return y()},ce.onload=function(){var de=ce.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(de)){y();return}A[oe]=de,y()},ce.readAsText(ee)},U=0;U<d.length;U++)w(d[U],U);else{if(l.state.draggingText&&l.doc.sel.contains(g)>-1){l.state.draggingText(s),setTimeout(function(){return l.display.input.focus()},20);return}try{var k=s.dataTransfer.getData("Text");if(k){var J;if(l.state.draggingText&&!l.state.draggingText.copy&&(J=l.listSelections()),Tn(l.doc,Ri(g,g)),J)for(var re=0;re<J.length;++re)wn(l.doc,"",J[re].anchor,J[re].head,"drag");l.replaceSelection(k,"around","paste"),l.display.input.focus()}}catch{}}}}function qc(s,l){if(O&&(!s.state.draggingText||+new Date-rf<100)){bs(l);return}if(!(dr(s,l)||Pi(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!M)){var g=me("img",null,null,"position: fixed; left: 0; top: 0;");g.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",$&&(g.width=g.height=1,s.display.wrapper.appendChild(g),g._top=g.offsetTop),l.dataTransfer.setDragImage(g,0,0),$&&g.parentNode.removeChild(g)}}function Kc(s,l){var g=li(s,l);if(g){var d=document.createDocumentFragment();Vs(s,g,d),s.display.dragCursor||(s.display.dragCursor=me("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),s.display.lineSpace.insertBefore(s.display.dragCursor,s.display.cursorDiv)),Je(s.display.dragCursor,d)}}function tf(s){s.display.dragCursor&&(s.display.lineSpace.removeChild(s.display.dragCursor),s.display.dragCursor=null)}function sf(s){if(document.getElementsByClassName){for(var l=document.getElementsByClassName("CodeMirror"),g=[],d=0;d<l.length;d++){var v=l[d].CodeMirror;v&&g.push(v)}g.length&&g[0].operation(function(){for(var A=0;A<g.length;A++)s(g[A])})}}var nf=!1;function ep(){nf||(rp(),nf=!0)}function rp(){var s;Ge(window,"resize",function(){s==null&&(s=setTimeout(function(){s=null,sf(tp)},100))}),Ge(window,"blur",function(){return sf(Cn)})}function tp(s){var l=s.display;l.cachedCharWidth=l.cachedTextHeight=l.cachedPaddingH=null,l.scrollbarsClipped=!1,s.setSize()}for(var ms={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},po=0;po<10;po++)ms[po+48]=ms[po+96]=String(po);for(var fa=65;fa<=90;fa++)ms[fa]=String.fromCharCode(fa);for(var ho=1;ho<=12;ho++)ms[ho+111]=ms[ho+63235]="F"+ho;var Hi={};Hi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Hi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Hi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Hi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Hi.default=q?Hi.macDefault:Hi.pcDefault;function ip(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,d,v,A,b=0;b<l.length-1;b++){var y=l[b];if(/^(cmd|meta|m)$/i.test(y))A=!0;else if(/^a(lt)?$/i.test(y))g=!0;else if(/^(c|ctrl|control)$/i.test(y))d=!0;else if(/^s(hift)?$/i.test(y))v=!0;else throw new Error("Unrecognized modifier name: "+y)}return g&&(s="Alt-"+s),d&&(s="Ctrl-"+s),A&&(s="Cmd-"+s),v&&(s="Shift-"+s),s}function sp(s){var l={};for(var g in s)if(s.hasOwnProperty(g)){var d=s[g];if(/^(name|fallthrough|(de|at)tach)$/.test(g))continue;if(d=="..."){delete s[g];continue}for(var v=Ot(g.split(" "),ip),A=0;A<v.length;A++){var b=void 0,y=void 0;A==v.length-1?(y=v.join(" "),b=d):(y=v.slice(0,A+1).join(" "),b="...");var w=l[y];if(!w)l[y]=b;else if(w!=b)throw new Error("Inconsistent bindings for "+y)}delete s[g]}for(var U in l)s[U]=l[U];return s}function Un(s,l,g,d){l=ca(l);var v=l.call?l.call(s,d):l[s];if(v===!1)return"nothing";if(v==="...")return"multi";if(v!=null&&g(v))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return Un(s,l.fallthrough,g,d);for(var A=0;A<l.fallthrough.length;A++){var b=Un(s,l.fallthrough[A],g,d);if(b)return b}}}function of(s){var l=typeof s=="string"?s:ms[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function af(s,l,g){var d=s;return l.altKey&&d!="Alt"&&(s="Alt-"+s),(fe?l.metaKey:l.ctrlKey)&&d!="Ctrl"&&(s="Ctrl-"+s),(fe?l.ctrlKey:l.metaKey)&&d!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&d!="Shift"&&(s="Shift-"+s),s}function lf(s,l){if($&&s.keyCode==34&&s.char)return!1;var g=ms[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),af(g,s,l))}function ca(s){return typeof s=="string"?Hi[s]:s}function Fn(s,l){for(var g=s.doc.sel.ranges,d=[],v=0;v<g.length;v++){for(var A=l(g[v]);d.length&&Xe(A.from,Ae(d).to)<=0;){var b=d.pop();if(Xe(b.from,A.from)<0){A.from=b.from;break}}d.push(A)}Qt(s,function(){for(var y=d.length-1;y>=0;y--)wn(s.doc,"",d[y].from,d[y].to,"+delete");In(s)})}function rl(s,l,g){var d=Nr(s.text,l+g,g);return d<0||d>s.text.length?null:d}function tl(s,l,g){var d=rl(s,l.ch,g);return d==null?null:new he(l.line,d,g<0?"after":"before")}function il(s,l,g,d,v){if(s){l.doc.direction=="rtl"&&(v=-v);var A=Tr(g,l.doc.direction);if(A){var b=v<0?Ae(A):A[0],y=v<0==(b.level==1),w=y?"after":"before",U;if(b.level>0||l.doc.direction=="rtl"){var k=En(l,g);U=v<0?g.text.length-1:0;var J=bi(l,k,U).top;U=ri(function(re){return bi(l,k,re).top==J},v<0==(b.level==1)?b.from:b.to-1,U),w=="before"&&(U=rl(g,U,1))}else U=v<0?b.to:b.from;return new he(d,U,w)}}return new he(d,v<0?g.text.length:0,v<0?"before":"after")}function np(s,l,g,d){var v=Tr(l,s.doc.direction);if(!v)return tl(l,g,d);g.ch>=l.text.length?(g.ch=l.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var A=bt(v,g.ch,g.sticky),b=v[A];if(s.doc.direction=="ltr"&&b.level%2==0&&(d>0?b.to>g.ch:b.from<g.ch))return tl(l,g,d);var y=function(ve,Ce){return rl(l,ve instanceof he?ve.ch:ve,Ce)},w,U=function(ve){return s.options.lineWrapping?(w=w||En(s,l),bu(s,l,w,ve)):{begin:0,end:l.text.length}},k=U(g.sticky=="before"?y(g,-1):g.ch);if(s.doc.direction=="rtl"||b.level==1){var J=b.level==1==d<0,re=y(g,J?1:-1);if(re!=null&&(J?re<=b.to&&re<=k.end:re>=b.from&&re>=k.begin)){var ee=J?"before":"after";return new he(g.line,re,ee)}}var oe=function(ve,Ce,xe){for(var be=function(vr,st){return st?new he(g.line,y(vr,1),"before"):new he(g.line,vr,"after")};ve>=0&&ve<v.length;ve+=Ce){var Ze=v[ve],De=Ce>0==(Ze.level!=1),Ke=De?xe.begin:y(xe.end,-1);if(Ze.from<=Ke&&Ke<Ze.to||(Ke=De?Ze.from:y(Ze.to,-1),xe.begin<=Ke&&Ke<xe.end))return be(Ke,De)}},ce=oe(A+d,d,k);if(ce)return ce;var de=d>0?k.end:y(k.begin,-1);return de!=null&&!(d>0&&de==l.text.length)&&(ce=oe(d>0?0:v.length-1,d,U(de)),ce)?ce:null}var go={selectAll:Hu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),pe)},killLine:function(s){return Fn(s,function(l){if(l.empty()){var g=Ie(s.doc,l.head.line).text.length;return l.head.ch==g&&l.head.line<s.lastLine()?{from:l.head,to:he(l.head.line+1,0)}:{from:l.head,to:he(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return Fn(s,function(l){return{from:he(l.from().line,0),to:Ye(s.doc,he(l.to().line+1,0))}})},delLineLeft:function(s){return Fn(s,function(l){return{from:he(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return{from:d,to:l.from()}})},delWrappedLineRight:function(s){return Fn(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div");return{from:l.from(),to:d}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(he(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(he(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return uf(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return ff(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return op(s,l.head.line)},{origin:"+move",bias:-1})},goLineRight:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div")},fr)},goLineLeft:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5;return s.coordsChar({left:0,top:g},"div")},fr)},goLineLeftSmart:function(s){return s.extendSelectionsBy(function(l){var g=s.cursorCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return d.ch<s.getLine(d.line).search(/\S/)?ff(s,l.head):d},fr)},goLineUp:function(s){return s.moveV(-1,"line")},goLineDown:function(s){return s.moveV(1,"line")},goPageUp:function(s){return s.moveV(-1,"page")},goPageDown:function(s){return s.moveV(1,"page")},goCharLeft:function(s){return s.moveH(-1,"char")},goCharRight:function(s){return s.moveH(1,"char")},goColumnLeft:function(s){return s.moveH(-1,"column")},goColumnRight:function(s){return s.moveH(1,"column")},goWordLeft:function(s){return s.moveH(-1,"word")},goGroupRight:function(s){return s.moveH(1,"group")},goGroupLeft:function(s){return s.moveH(-1,"group")},goWordRight:function(s){return s.moveH(1,"word")},delCharBefore:function(s){return s.deleteH(-1,"codepoint")},delCharAfter:function(s){return s.deleteH(1,"char")},delWordBefore:function(s){return s.deleteH(-1,"word")},delWordAfter:function(s){return s.deleteH(1,"word")},delGroupBefore:function(s){return s.deleteH(-1,"group")},delGroupAfter:function(s){return s.deleteH(1,"group")},indentAuto:function(s){return s.indentSelection("smart")},indentMore:function(s){return s.indentSelection("add")},indentLess:function(s){return s.indentSelection("subtract")},insertTab:function(s){return s.replaceSelection(" ")},insertSoftTab:function(s){for(var l=[],g=s.listSelections(),d=s.options.tabSize,v=0;v<g.length;v++){var A=g[v].from(),b=Ir(s.getLine(A.line),A.ch,d);l.push(ei(d-b%d))}s.replaceSelections(l)},defaultTab:function(s){s.somethingSelected()?s.indentSelection("add"):s.execCommand("insertTab")},transposeChars:function(s){return Qt(s,function(){for(var l=s.listSelections(),g=[],d=0;d<l.length;d++)if(l[d].empty()){var v=l[d].head,A=Ie(s.doc,v.line).text;if(A){if(v.ch==A.length&&(v=new he(v.line,v.ch-1)),v.ch>0)v=new he(v.line,v.ch+1),s.replaceRange(A.charAt(v.ch-1)+A.charAt(v.ch-2),he(v.line,v.ch-2),v,"+transpose");else if(v.line>s.doc.first){var b=Ie(s.doc,v.line-1).text;b&&(v=new he(v.line,1),s.replaceRange(A.charAt(0)+s.doc.lineSeparator()+b.charAt(b.length-1),he(v.line-1,b.length-1),v,"+transpose"))}}g.push(new lr(v,v))}s.setSelections(g)})},newlineAndIndent:function(s){return Qt(s,function(){for(var l=s.listSelections(),g=l.length-1;g>=0;g--)s.replaceRange(s.doc.lineSeparator(),l[g].anchor,l[g].head,"+input");l=s.listSelections();for(var d=0;d<l.length;d++)s.indentLine(l[d].from().line,null,!0);In(s)})},openLine:function(s){return s.replaceSelection(`
|
|
12
|
+
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function uf(s,l){var g=Ie(s.doc,l),d=ai(g);return d!=g&&(l=_e(d)),il(!0,s,d,l,1)}function op(s,l){var g=Ie(s.doc,l),d=rc(g);return d!=g&&(l=_e(d)),il(!0,s,g,l,-1)}function ff(s,l){var g=uf(s,l.line),d=Ie(s.doc,g.line),v=Tr(d,s.doc.direction);if(!v||v[0].level==0){var A=Math.max(g.ch,d.text.search(/\S/)),b=l.line==g.line&&l.ch<=A&&l.ch;return he(g.line,b?0:A,g.sticky)}return g}function pa(s,l,g){if(typeof l=="string"&&(l=go[l],!l))return!1;s.display.input.ensurePolled();var d=s.display.shift,v=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),g&&(s.display.shift=!1),v=l(s)!=Fe}finally{s.display.shift=d,s.state.suppressEdits=!1}return v}function ap(s,l,g){for(var d=0;d<s.state.keyMaps.length;d++){var v=Un(l,s.state.keyMaps[d],g,s);if(v)return v}return s.options.extraKeys&&Un(l,s.options.extraKeys,g,s)||Un(l,s.options.keyMap,g,s)}var lp=new Pr;function Eo(s,l,g,d){var v=s.state.keySeq;if(v){if(of(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:lp.set(50,function(){s.state.keySeq==v&&(s.state.keySeq=null,s.display.input.reset())}),cf(s,v+" "+l,g,d))return!0}return cf(s,l,g,d)}function cf(s,l,g,d){var v=ap(s,l,d);return v=="multi"&&(s.state.keySeq=l),v=="handled"&&rt(s,"keyHandled",s,l,g),(v=="handled"||v=="multi")&&(ht(g),Qa(s)),!!v}function pf(s,l){var g=lf(l,!0);return g?l.shiftKey&&!s.state.keySeq?Eo(s,"Shift-"+g,l,function(d){return pa(s,d,!0)})||Eo(s,g,l,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return pa(s,d)}):Eo(s,g,l,function(d){return pa(s,d)}):!1}function up(s,l,g){return Eo(s,"'"+g+"'",l,function(d){return pa(s,d,!0)})}var sl=null;function hf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&(l.curOp.focus=$r(wt(l)),!dr(l,s))){O&&D<11&&s.keyCode==27&&(s.returnValue=!1);var g=s.keyCode;l.display.shift=g==16||s.shiftKey;var d=pf(l,s);$&&(sl=d?g:null,!d&&g==88&&!kn&&(q?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!q&&!d&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&fp(l)}}function fp(s){var l=s.display.lineDiv;ze(l,"CodeMirror-crosshair");function g(d){(d.keyCode==18||!d.altKey)&&(Le(l,"CodeMirror-crosshair"),kr(document,"keyup",g),kr(document,"mouseover",g))}Ge(document,"keyup",g),Ge(document,"mouseover",g)}function df(s){s.keyCode==16&&(this.doc.sel.shift=!1),dr(this,s)}function gf(s){var l=this;if(!(s.target&&s.target!=l.display.input.getField())&&!(Pi(l.display,s)||dr(l,s)||s.ctrlKey&&!s.altKey||q&&s.metaKey)){var g=s.keyCode,d=s.charCode;if($&&g==sl){sl=null,ht(s);return}if(!($&&(!s.which||s.which<10)&&pf(l,s))){var v=String.fromCharCode(d??g);v!="\b"&&(up(l,s,v)||l.display.input.onKeyPress(s))}}}var cp=400,nl=function(s,l,g){this.time=s,this.pos=l,this.button=g};nl.prototype.compare=function(s,l,g){return this.time+cp>s&&Xe(l,this.pos)==0&&g==this.button};var mo,vo;function pp(s,l){var g=+new Date;return vo&&vo.compare(g,s,l)?(mo=vo=null,"triple"):mo&&mo.compare(g,s,l)?(vo=new nl(g,s,l),mo=null,"double"):(mo=new nl(g,s,l),vo=null,"single")}function Ef(s){var l=this,g=l.display;if(!(dr(l,s)||g.activeTouch&&g.input.supportsTouch())){if(g.input.ensurePolled(),g.shift=s.shiftKey,Pi(g,s)){Z||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!ol(l,s)){var d=li(l,s),v=tn(s),A=d?pp(d,v):"single";ut(l).focus(),v==1&&l.state.selectingText&&l.state.selectingText(s),!(d&&hp(l,v,d,A,s))&&(v==1?d?gp(l,d,A,s):rn(s)==g.scroller&&ht(s):v==2?(d&&aa(l.doc,d),setTimeout(function(){return g.input.focus()},20)):v==3&&(ye?l.display.input.onContextMenu(s):_a(l)))}}}function hp(s,l,g,d,v){var A="Click";return d=="double"?A="Double"+A:d=="triple"&&(A="Triple"+A),A=(l==1?"Left":l==2?"Middle":"Right")+A,Eo(s,af(A,v),v,function(b){if(typeof b=="string"&&(b=go[b]),!b)return!1;var y=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),y=b(s,g)!=Fe}finally{s.state.suppressEdits=!1}return y})}function dp(s,l,g){var d=s.getOption("configureMouse"),v=d?d(s,l,g):{};if(v.unit==null){var A=te?g.shiftKey&&g.metaKey:g.altKey;v.unit=A?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(v.extend==null||s.doc.extend)&&(v.extend=s.doc.extend||g.shiftKey),v.addNew==null&&(v.addNew=q?g.metaKey:g.ctrlKey),v.moveOnDrag==null&&(v.moveOnDrag=!(q?g.altKey:g.ctrlKey)),v}function gp(s,l,g,d){O?setTimeout(je(Tu,s),0):s.curOp.focus=$r(wt(s));var v=dp(s,g,d),A=s.doc.sel,b;s.options.dragDrop&&Bo&&!s.isReadOnly()&&g=="single"&&(b=A.contains(l))>-1&&(Xe((b=A.ranges[b]).from(),l)<0||l.xRel>0)&&(Xe(b.to(),l)>0||l.xRel<0)?Ep(s,d,l,v):mp(s,d,l,v)}function Ep(s,l,g,d){var v=s.display,A=!1,b=tt(s,function(U){Z&&(v.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:_a(s)),kr(v.wrapper.ownerDocument,"mouseup",b),kr(v.wrapper.ownerDocument,"mousemove",y),kr(v.scroller,"dragstart",w),kr(v.scroller,"drop",b),A||(ht(U),d.addNew||aa(s.doc,g,null,null,d.extend),Z&&!M||O&&D==9?setTimeout(function(){v.wrapper.ownerDocument.body.focus({preventScroll:!0}),v.input.focus()},20):v.input.focus())}),y=function(U){A=A||Math.abs(l.clientX-U.clientX)+Math.abs(l.clientY-U.clientY)>=10},w=function(){return A=!0};Z&&(v.scroller.draggable=!0),s.state.draggingText=b,b.copy=!d.moveOnDrag,Ge(v.wrapper.ownerDocument,"mouseup",b),Ge(v.wrapper.ownerDocument,"mousemove",y),Ge(v.scroller,"dragstart",w),Ge(v.scroller,"drop",b),s.state.delayingBlurEvent=!0,setTimeout(function(){return v.input.focus()},20),v.scroller.dragDrop&&v.scroller.dragDrop()}function mf(s,l,g){if(g=="char")return new lr(l,l);if(g=="word")return s.findWordAt(l);if(g=="line")return new lr(he(l.line,0),Ye(s.doc,he(l.line+1,0)));var d=g(s,l);return new lr(d.from,d.to)}function mp(s,l,g,d){O&&_a(s);var v=s.display,A=s.doc;ht(l);var b,y,w=A.sel,U=w.ranges;if(d.addNew&&!d.extend?(y=A.sel.contains(g),y>-1?b=U[y]:b=new lr(g,g)):(b=A.sel.primary(),y=A.sel.primIndex),d.unit=="rectangle")d.addNew||(b=new lr(g,g)),g=li(s,l,!0,!0),y=-1;else{var k=mf(s,g,d.unit);d.extend?b=Ka(b,k.anchor,k.head,d.extend):b=k}d.addNew?y==-1?(y=U.length,xt(A,Pe(s,U.concat([b]),y),{scroll:!1,origin:"*mouse"})):U.length>1&&U[y].empty()&&d.unit=="char"&&!d.extend?(xt(A,Pe(s,U.slice(0,y).concat(U.slice(y+1)),0),{scroll:!1,origin:"*mouse"}),w=A.sel):el(A,y,b,Er):(y=0,xt(A,new Rr([b],0),Er),w=A.sel);var J=g;function re(xe){if(Xe(J,xe)!=0)if(J=xe,d.unit=="rectangle"){for(var be=[],Ze=s.options.tabSize,De=Ir(Ie(A,g.line).text,g.ch,Ze),Ke=Ir(Ie(A,xe.line).text,xe.ch,Ze),vr=Math.min(De,Ke),st=Math.max(De,Ke),Lr=Math.min(g.line,xe.line),_t=Math.min(s.lastLine(),Math.max(g.line,xe.line));Lr<=_t;Lr++){var Vt=Ie(A,Lr).text,_r=we(Vt,vr,Ze);vr==st?be.push(new lr(he(Lr,_r),he(Lr,_r))):Vt.length>_r&&be.push(new lr(he(Lr,_r),he(Lr,we(Vt,st,Ze))))}be.length||be.push(new lr(g,g)),xt(A,Pe(s,w.ranges.slice(0,y).concat(be),y),{origin:"*mouse",scroll:!1}),s.scrollIntoView(xe)}else{var Dt=b,lt=mf(s,xe,d.unit),jr=Dt.anchor,Hr;Xe(lt.anchor,jr)>0?(Hr=lt.head,jr=Zo(Dt.from(),lt.anchor)):(Hr=lt.anchor,jr=Wo(Dt.to(),lt.head));var Fr=w.ranges.slice(0);Fr[y]=vp(s,new lr(Ye(A,jr),Hr)),xt(A,Pe(s,Fr,y),Er)}}var ee=v.wrapper.getBoundingClientRect(),oe=0;function ce(xe){var be=++oe,Ze=li(s,xe,!0,d.unit=="rectangle");if(Ze)if(Xe(Ze,J)!=0){s.curOp.focus=$r(wt(s)),re(Ze);var De=qo(v,A);(Ze.line>=De.to||Ze.line<De.from)&&setTimeout(tt(s,function(){oe==be&&ce(xe)}),150)}else{var Ke=xe.clientY<ee.top?-20:xe.clientY>ee.bottom?20:0;Ke&&setTimeout(tt(s,function(){oe==be&&(v.scroller.scrollTop+=Ke,ce(xe))}),50)}}function de(xe){s.state.selectingText=!1,oe=1/0,xe&&(ht(xe),v.input.focus()),kr(v.wrapper.ownerDocument,"mousemove",ve),kr(v.wrapper.ownerDocument,"mouseup",Ce),A.history.lastSelOrigin=null}var ve=tt(s,function(xe){xe.buttons===0||!tn(xe)?de(xe):ce(xe)}),Ce=tt(s,de);s.state.selectingText=Ce,Ge(v.wrapper.ownerDocument,"mousemove",ve),Ge(v.wrapper.ownerDocument,"mouseup",Ce)}function vp(s,l){var g=l.anchor,d=l.head,v=Ie(s.doc,g.line);if(Xe(g,d)==0&&g.sticky==d.sticky)return l;var A=Tr(v);if(!A)return l;var b=bt(A,g.ch,g.sticky),y=A[b];if(y.from!=g.ch&&y.to!=g.ch)return l;var w=b+(y.from==g.ch==(y.level!=1)?0:1);if(w==0||w==A.length)return l;var U;if(d.line!=g.line)U=(d.line-g.line)*(s.doc.direction=="ltr"?1:-1)>0;else{var k=bt(A,d.ch,d.sticky),J=k-b||(d.ch-g.ch)*(y.level==1?-1:1);k==w-1||k==w?U=J<0:U=J>0}var re=A[w+(U?-1:0)],ee=U==(re.level==1),oe=ee?re.from:re.to,ce=ee?"after":"before";return g.ch==oe&&g.sticky==ce?l:new lr(new he(g.line,oe,ce),d)}function vf(s,l,g,d){var v,A;if(l.touches)v=l.touches[0].clientX,A=l.touches[0].clientY;else try{v=l.clientX,A=l.clientY}catch{return!1}if(v>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;d&&ht(l);var b=s.display,y=b.lineDiv.getBoundingClientRect();if(A>y.bottom||!tr(s,g))return mi(l);A-=y.top-b.viewOffset;for(var w=0;w<s.display.gutterSpecs.length;++w){var U=b.gutters.childNodes[w];if(U&&U.getBoundingClientRect().right>=v){var k=xi(s.doc,A),J=s.display.gutterSpecs[w];return ar(s,g,s,k,J.className,l),mi(l)}}}function ol(s,l){return vf(s,l,"gutterClick",!0)}function xf(s,l){Pi(s.display,l)||xp(s,l)||dr(s,l,"contextmenu")||ye||s.display.input.onContextMenu(l)}function xp(s,l){return tr(s,"gutterContextMenu")?vf(s,l,"gutterContextMenu",!1):!1}function Cf(s){s.display.wrapper.className=s.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+s.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Os(s)}var Gn={toString:function(){return"CodeMirror.Init"}},If={},ha={};function Cp(s){var l=s.optionHandlers;function g(d,v,A,b){s.defaults[d]=v,A&&(l[d]=b?function(y,w,U){U!=Gn&&A(y,w,U)}:A)}s.defineOption=g,s.Init=Gn,g("value","",function(d,v){return d.setValue(v)},!0),g("mode",null,function(d,v){d.doc.modeOption=v,ui(d)},!0),g("indentUnit",2,ui,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(d){Ps(d),Os(d),vt(d)},!0),g("lineSeparator",null,function(d,v){if(d.doc.lineSep=v,!!v){var A=[],b=d.doc.first;d.doc.iter(function(w){for(var U=0;;){var k=w.text.indexOf(v,U);if(k==-1)break;U=k+v.length,A.push(he(b,k))}b++});for(var y=A.length-1;y>=0;y--)wn(d.doc,v,A[y],he(A[y].line,A[y].ch+v.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(d,v,A){d.state.specialChars=new RegExp(v.source+(v.test(" ")?"":"| "),"g"),A!=Gn&&d.refresh()}),g("specialCharPlaceholder",oc,function(d){return d.refresh()},!0),g("electricChars",!0),g("inputStyle",X?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(d,v){return d.getInputField().spellcheck=v},!0),g("autocorrect",!1,function(d,v){return d.getInputField().autocorrect=v},!0),g("autocapitalize",!1,function(d,v){return d.getInputField().autocapitalize=v},!0),g("rtlMoveVisually",!ie),g("wholeLineUpdateBefore",!0),g("theme","default",function(d){Cf(d),io(d)},!0),g("keyMap","default",function(d,v,A){var b=ca(v),y=A!=Gn&&ca(A);y&&y.detach&&y.detach(d,b),b.attach&&b.attach(d,y||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,Ap,!0),g("gutters",[],function(d,v){d.display.gutterSpecs=ja(v,d.options.lineNumbers),io(d)},!0),g("fixedGutter",!0,function(d,v){d.display.gutters.style.left=v?mt(d.display)+"px":"0",d.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(d){return An(d)},!0),g("scrollbarStyle","native",function(d){Ou(d),An(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),g("lineNumbers",!1,function(d,v){d.display.gutterSpecs=ja(d.options.gutters,v),io(d)},!0),g("firstLineNumber",1,io,!0),g("lineNumberFormatter",function(d){return d},io,!0),g("showCursorWhenSelecting",!1,Bs,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(d,v){v=="nocursor"&&(Cn(d),d.display.input.blur()),d.display.input.readOnlyChanged(v)}),g("screenReaderLabel",null,function(d,v){v=v===""?null:v,d.display.input.screenReaderLabelChanged(v)}),g("disableInput",!1,function(d,v){v||d.display.input.reset()},!0),g("dragDrop",!0,Ip),g("allowDropFileTypes",null),g("cursorBlinkRate",530),g("cursorScrollMargin",0),g("cursorHeight",1,Bs,!0),g("singleCursorHeightPerLine",!0,Bs,!0),g("workTime",100),g("workDelay",100),g("flattenSpans",!0,Ps,!0),g("addModeClass",!1,Ps,!0),g("pollInterval",100),g("undoDepth",200,function(d,v){return d.doc.history.undoDepth=v}),g("historyEventDelay",1250),g("viewportMargin",10,function(d){return d.refresh()},!0),g("maxHighlightLength",1e4,Ps,!0),g("moveInputWithCursor",!0,function(d,v){v||d.display.input.resetPosition()}),g("tabindex",null,function(d,v){return d.display.input.getField().tabIndex=v||""}),g("autofocus",null),g("direction","ltr",function(d,v){return d.doc.setDirection(v)},!0),g("phrases",null)}function Ip(s,l,g){var d=g&&g!=Gn;if(!l!=!d){var v=s.display.dragFunctions,A=l?Ge:kr;A(s.display.scroller,"dragstart",v.start),A(s.display.scroller,"dragenter",v.enter),A(s.display.scroller,"dragover",v.over),A(s.display.scroller,"dragleave",v.leave),A(s.display.scroller,"drop",v.drop)}}function Ap(s){s.options.lineWrapping?(ze(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(Le(s.display.wrapper,"CodeMirror-wrap"),Da(s)),Gs(s),vt(s),Os(s),setTimeout(function(){return An(s)},100)}function yr(s,l){var g=this;if(!(this instanceof yr))return new yr(s,l);this.options=l=l?zr(l):{},zr(If,l,!1);var d=l.value;typeof d=="string"?d=new Bt(d,l.mode,null,l.lineSeparator,l.direction):l.mode&&(d.modeOption=l.mode),this.doc=d;var v=new yr.inputStyles[l.inputStyle](this),A=this.display=new Vc(s,d,v,l);A.wrapper.CodeMirror=this,Cf(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ou(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Pr,keySeq:null,specialChars:null},l.autofocus&&!X&&A.input.focus(),O&&D<11&&setTimeout(function(){return g.display.input.reset(!0)},20),Np(this),ep(),Ws(this),this.curOp.forceUpdate=!0,sa(this,d),l.autofocus&&!X||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&Ha(g)},20):Cn(this);for(var b in ha)ha.hasOwnProperty(b)&&ha[b](this,l[b],Gn);Gu(this),l.finishInit&&l.finishInit(this);for(var y=0;y<al.length;++y)al[y](this);Zs(this),Z&&l.lineWrapping&&getComputedStyle(A.lineDiv).textRendering=="optimizelegibility"&&(A.lineDiv.style.textRendering="auto")}yr.defaults=If,yr.optionHandlers=ha;function Np(s){var l=s.display;Ge(l.scroller,"mousedown",tt(s,Ef)),O&&D<11?Ge(l.scroller,"dblclick",tt(s,function(w){if(!dr(s,w)){var U=li(s,w);if(!(!U||ol(s,w)||Pi(s.display,w))){ht(w);var k=s.findWordAt(U);aa(s.doc,k.anchor,k.head)}}})):Ge(l.scroller,"dblclick",function(w){return dr(s,w)||ht(w)}),Ge(l.scroller,"contextmenu",function(w){return xf(s,w)}),Ge(l.input.getField(),"contextmenu",function(w){l.scroller.contains(w.target)||xf(s,w)});var g,d={end:0};function v(){l.activeTouch&&(g=setTimeout(function(){return l.activeTouch=null},1e3),d=l.activeTouch,d.end=+new Date)}function A(w){if(w.touches.length!=1)return!1;var U=w.touches[0];return U.radiusX<=1&&U.radiusY<=1}function b(w,U){if(U.left==null)return!0;var k=U.left-w.left,J=U.top-w.top;return k*k+J*J>20*20}Ge(l.scroller,"touchstart",function(w){if(!dr(s,w)&&!A(w)&&!ol(s,w)){l.input.ensurePolled(),clearTimeout(g);var U=+new Date;l.activeTouch={start:U,moved:!1,prev:U-d.end<=300?d:null},w.touches.length==1&&(l.activeTouch.left=w.touches[0].pageX,l.activeTouch.top=w.touches[0].pageY)}}),Ge(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Ge(l.scroller,"touchend",function(w){var U=l.activeTouch;if(U&&!Pi(l,w)&&U.left!=null&&!U.moved&&new Date-U.start<300){var k=s.coordsChar(l.activeTouch,"page"),J;!U.prev||b(U,U.prev)?J=new lr(k,k):!U.prev.prev||b(U,U.prev.prev)?J=s.findWordAt(k):J=new lr(he(k.line,0),Ye(s.doc,he(k.line+1,0))),s.setSelection(J.anchor,J.head),s.focus(),ht(w)}v()}),Ge(l.scroller,"touchcancel",v),Ge(l.scroller,"scroll",function(){l.scroller.clientHeight&&(qn(s,l.scroller.scrollTop),Ds(s,l.scroller.scrollLeft,!0),ar(s,"scroll",s))}),Ge(l.scroller,"mousewheel",function(w){return ta(s,w)}),Ge(l.scroller,"DOMMouseScroll",function(w){return ta(s,w)}),Ge(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(w){dr(s,w)||bs(w)},over:function(w){dr(s,w)||(Kc(s,w),bs(w))},start:function(w){return qc(s,w)},drop:tt(s,jc),leave:function(w){dr(s,w)||tf(s)}};var y=l.input.getField();Ge(y,"keyup",function(w){return df.call(s,w)}),Ge(y,"keydown",tt(s,hf)),Ge(y,"keypress",tt(s,gf)),Ge(y,"focus",function(w){return Ha(s,w)}),Ge(y,"blur",function(w){return Cn(s,w)})}var al=[];yr.defineInitHook=function(s){return al.push(s)};function xo(s,l,g,d){var v=s.doc,A;g==null&&(g="add"),g=="smart"&&(v.mode.indent?A=Qn(s,l).state:g="prev");var b=s.options.tabSize,y=Ie(v,l),w=Ir(y.text,null,b);y.stateAfter&&(y.stateAfter=null);var U=y.text.match(/^\s*/)[0],k;if(!d&&!/\S/.test(y.text))k=0,g="not";else if(g=="smart"&&(k=v.mode.indent(A,y.text.slice(U.length),y.text),k==Fe||k>150)){if(!d)return;g="prev"}g=="prev"?l>v.first?k=Ir(Ie(v,l-1).text,null,b):k=0:g=="add"?k=w+s.options.indentUnit:g=="subtract"?k=w-s.options.indentUnit:typeof g=="number"&&(k=w+g),k=Math.max(0,k);var J="",re=0;if(s.options.indentWithTabs)for(var ee=Math.floor(k/b);ee;--ee)re+=b,J+=" ";if(re<k&&(J+=ei(k-re)),J!=U)return wn(v,J,he(l,0),he(l,U.length),"+input"),y.stateAfter=null,!0;for(var oe=0;oe<v.sel.ranges.length;oe++){var ce=v.sel.ranges[oe];if(ce.head.line==l&&ce.head.ch<U.length){var de=he(l,U.length);el(v,oe,new lr(de,de));break}}}var fi=null;function da(s){fi=s}function ll(s,l,g,d,v){var A=s.doc;s.display.shift=!1,d||(d=A.sel);var b=+new Date-200,y=v=="paste"||s.state.pasteIncoming>b,w=nn(l),U=null;if(y&&d.ranges.length>1)if(fi&&fi.text.join(`
|
|
13
|
+
`)==l){if(d.ranges.length%fi.text.length==0){U=[];for(var k=0;k<fi.text.length;k++)U.push(A.splitLines(fi.text[k]))}}else w.length==d.ranges.length&&s.options.pasteLinesPerSelection&&(U=Ot(w,function(ve){return[ve]}));for(var J=s.curOp.updateInput,re=d.ranges.length-1;re>=0;re--){var ee=d.ranges[re],oe=ee.from(),ce=ee.to();ee.empty()&&(g&&g>0?oe=he(oe.line,oe.ch-g):s.state.overwrite&&!y?ce=he(ce.line,Math.min(Ie(A,ce.line).text.length,ce.ch+Ae(w).length)):y&&fi&&fi.lineWise&&fi.text.join(`
|
|
14
|
+
`)==w.join(`
|
|
15
|
+
`)&&(oe=ce=he(oe.line,0)));var de={from:oe,to:ce,text:U?U[re%U.length]:w,origin:v||(y?"paste":s.state.cutIncoming>b?"cut":"+input")};Ln(s.doc,de),rt(s,"inputRead",s,de)}l&&!y&&Nf(s,l),In(s),s.curOp.updateInput<2&&(s.curOp.updateInput=J),s.curOp.typing=!0,s.state.pasteIncoming=s.state.cutIncoming=-1}function Af(s,l){var g=s.clipboardData&&s.clipboardData.getData("Text");if(g)return s.preventDefault(),!l.isReadOnly()&&!l.options.disableInput&&l.hasFocus()&&Qt(l,function(){return ll(l,g,0,null,"paste")}),!0}function Nf(s,l){if(!(!s.options.electricChars||!s.options.smartIndent))for(var g=s.doc.sel,d=g.ranges.length-1;d>=0;d--){var v=g.ranges[d];if(!(v.head.ch>100||d&&g.ranges[d-1].head.line==v.head.line)){var A=s.getModeAt(v.head),b=!1;if(A.electricChars){for(var y=0;y<A.electricChars.length;y++)if(l.indexOf(A.electricChars.charAt(y))>-1){b=xo(s,v.head.line,"smart");break}}else A.electricInput&&A.electricInput.test(Ie(s.doc,v.head.line).text.slice(0,v.head.ch))&&(b=xo(s,v.head.line,"smart"));b&&rt(s,"electricInput",s,v.head.line)}}}function bf(s){for(var l=[],g=[],d=0;d<s.doc.sel.ranges.length;d++){var v=s.doc.sel.ranges[d].head.line,A={anchor:he(v,0),head:he(v+1,0)};g.push(A),l.push(s.getRange(A.anchor,A.head))}return{text:l,ranges:g}}function ul(s,l,g,d){s.setAttribute("autocorrect",g?"on":"off"),s.setAttribute("autocapitalize",d?"on":"off"),s.setAttribute("spellcheck",!!l)}function Tf(){var s=me("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),l=me("div",[s],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Z?s.style.width="1000px":s.setAttribute("wrap","off"),B&&(s.style.border="1px solid black"),l}function bp(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){ut(this).focus(),this.display.input.focus()},setOption:function(d,v){var A=this.options,b=A[d];A[d]==v&&d!="mode"||(A[d]=v,l.hasOwnProperty(d)&&tt(this,l[d])(this,v,b),ar(this,"optionChange",this,d))},getOption:function(d){return this.options[d]},getDoc:function(){return this.doc},addKeyMap:function(d,v){this.state.keyMaps[v?"push":"unshift"](ca(d))},removeKeyMap:function(d){for(var v=this.state.keyMaps,A=0;A<v.length;++A)if(v[A]==d||v[A].name==d)return v.splice(A,1),!0},addOverlay:Tt(function(d,v){var A=d.token?d:s.getMode(this.options,d);if(A.startState)throw new Error("Overlays may not be stateful.");ft(this.state.overlays,{mode:A,modeSpec:d,opaque:v&&v.opaque,priority:v&&v.priority||0},function(b){return b.priority}),this.state.modeGen++,vt(this)}),removeOverlay:Tt(function(d){for(var v=this.state.overlays,A=0;A<v.length;++A){var b=v[A].modeSpec;if(b==d||typeof d=="string"&&b.name==d){v.splice(A,1),this.state.modeGen++,vt(this);return}}}),indentLine:Tt(function(d,v,A){typeof v!="string"&&typeof v!="number"&&(v==null?v=this.options.smartIndent?"smart":"prev":v=v?"add":"subtract"),ss(this.doc,d)&&xo(this,d,v,A)}),indentSelection:Tt(function(d){for(var v=this.doc.sel.ranges,A=-1,b=0;b<v.length;b++){var y=v[b];if(y.empty())y.head.line>A&&(xo(this,y.head.line,d,!0),A=y.head.line,b==this.doc.sel.primIndex&&In(this));else{var w=y.from(),U=y.to(),k=Math.max(A,w.line);A=Math.min(this.lastLine(),U.line-(U.ch?0:1))+1;for(var J=k;J<A;++J)xo(this,J,d);var re=this.doc.sel.ranges;w.ch==0&&v.length==re.length&&re[b].from().ch>0&&el(this.doc,b,new lr(w,re[b].to()),pe)}}}),getTokenAt:function(d,v){return ou(this,d,v)},getLineTokens:function(d,v){return ou(this,he(d),v,!0)},getTokenTypeAt:function(d){d=Ye(this.doc,d);var v=iu(this,Ie(this.doc,d.line)),A=0,b=(v.length-1)/2,y=d.ch,w;if(y==0)w=v[2];else for(;;){var U=A+b>>1;if((U?v[U*2-1]:0)>=y)b=U;else if(v[U*2+1]<y)A=U+1;else{w=v[U*2+2];break}}var k=w?w.indexOf("overlay "):-1;return k<0?w:k==0?null:w.slice(0,k-1)},getModeAt:function(d){var v=this.doc.mode;return v.innerMode?s.innerMode(v,this.getTokenAt(d).state).mode:v},getHelper:function(d,v){return this.getHelpers(d,v)[0]},getHelpers:function(d,v){var A=[];if(!g.hasOwnProperty(v))return A;var b=g[v],y=this.getModeAt(d);if(typeof y[v]=="string")b[y[v]]&&A.push(b[y[v]]);else if(y[v])for(var w=0;w<y[v].length;w++){var U=b[y[v][w]];U&&A.push(U)}else y.helperType&&b[y.helperType]?A.push(b[y.helperType]):b[y.name]&&A.push(b[y.name]);for(var k=0;k<b._global.length;k++){var J=b._global[k];J.pred(y,this)&&hr(A,J.val)==-1&&A.push(J.val)}return A},getStateAfter:function(d,v){var A=this.doc;return d=eu(A,d??A.first+A.size-1),Qn(this,d+1,v).state},cursorCoords:function(d,v){var A,b=this.doc.sel.primary();return d==null?A=b.head:typeof d=="object"?A=Ye(this.doc,d):A=d?b.from():b.to(),$e(this,A,v||"page")},charCoords:function(d,v){return $o(this,Ye(this.doc,d),v||"page")},coordsChar:function(d,v){return d=us(this,d,v||"page"),ka(this,d.left,d.top)},lineAtHeight:function(d,v){return d=us(this,{top:d,left:0},v||"page").top,xi(this.doc,d+this.display.viewOffset)},heightAtLine:function(d,v,A){var b=!1,y;if(typeof d=="number"){var w=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>w&&(d=w,b=!0),y=Ie(this.doc,d)}else y=d;return vn(this,y,{top:0,left:0},v||"page",A||b).top+(b?this.doc.height-Wi(y):0)},defaultTextHeight:function(){return Mr(this.display)},defaultCharWidth:function(){return fs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(d,v,A,b,y){var w=this.display;d=$e(this,Ye(this.doc,d));var U=d.bottom,k=d.left;if(v.style.position="absolute",v.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(v),w.sizer.appendChild(v),b=="over")U=d.top;else if(b=="above"||b=="near"){var J=Math.max(w.wrapper.clientHeight,this.doc.height),re=Math.max(w.sizer.clientWidth,w.lineSpace.clientWidth);(b=="above"||d.bottom+v.offsetHeight>J)&&d.top>v.offsetHeight?U=d.top-v.offsetHeight:d.bottom+v.offsetHeight<=J&&(U=d.bottom),k+v.offsetWidth>re&&(k=re-v.offsetWidth)}v.style.top=U+"px",v.style.left=v.style.right="",y=="right"?(k=w.sizer.clientWidth-v.offsetWidth,v.style.right="0px"):(y=="left"?k=0:y=="middle"&&(k=(w.sizer.clientWidth-v.offsetWidth)/2),v.style.left=k+"px"),A&&Ac(this,{left:k,top:U,right:k+v.offsetWidth,bottom:U+v.offsetHeight})},triggerOnKeyDown:Tt(hf),triggerOnKeyPress:Tt(gf),triggerOnKeyUp:df,triggerOnMouseDown:Tt(Ef),execCommand:function(d){if(go.hasOwnProperty(d))return go[d].call(null,this)},triggerElectric:Tt(function(d){Nf(this,d)}),findPosH:function(d,v,A,b){var y=1;v<0&&(y=-1,v=-v);for(var w=Ye(this.doc,d),U=0;U<v&&(w=fl(this.doc,w,y,A,b),!w.hitSide);++U);return w},moveH:Tt(function(d,v){var A=this;this.extendSelectionsBy(function(b){return A.display.shift||A.doc.extend||b.empty()?fl(A.doc,b.head,d,v,A.options.rtlMoveVisually):d<0?b.from():b.to()},fr)}),deleteH:Tt(function(d,v){var A=this.doc.sel,b=this.doc;A.somethingSelected()?b.replaceSelection("",null,"+delete"):Fn(this,function(y){var w=fl(b,y.head,d,v,!1);return d<0?{from:w,to:y.head}:{from:y.head,to:w}})}),findPosV:function(d,v,A,b){var y=1,w=b;v<0&&(y=-1,v=-v);for(var U=Ye(this.doc,d),k=0;k<v;++k){var J=$e(this,U,"div");if(w==null?w=J.left:J.left=w,U=Rf(this,J,y,A),U.hitSide)break}return U},moveV:Tt(function(d,v){var A=this,b=this.doc,y=[],w=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(k){if(w)return d<0?k.from():k.to();var J=$e(A,k.head,"div");k.goalColumn!=null&&(J.left=k.goalColumn),y.push(J.left);var re=Rf(A,J,d,v);return v=="page"&&k==b.sel.primary()&&Ya(A,$o(A,re,"div").top-J.top),re},fr),y.length)for(var U=0;U<b.sel.ranges.length;U++)b.sel.ranges[U].goalColumn=y[U]}),findWordAt:function(d){var v=this.doc,A=Ie(v,d.line).text,b=d.ch,y=d.ch;if(A){var w=this.getHelper(d,"wordChars");(d.sticky=="before"||y==A.length)&&b?--b:++y;for(var U=A.charAt(b),k=Oe(U,w)?function(J){return Oe(J,w)}:/\s/.test(U)?function(J){return/\s/.test(J)}:function(J){return!/\s/.test(J)&&!Oe(J)};b>0&&k(A.charAt(b-1));)--b;for(;y<A.length&&k(A.charAt(y));)++y}return new lr(he(d.line,b),he(d.line,y))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ze(this.display.cursorDiv,"CodeMirror-overwrite"):Le(this.display.cursorDiv,"CodeMirror-overwrite"),ar(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==$r(wt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Tt(function(d,v){jn(this,d,v)}),getScrollInfo:function(){var d=this.display.scroller;return{left:d.scrollLeft,top:d.scrollTop,height:d.scrollHeight-Ni(this)-this.display.barHeight,width:d.scrollWidth-Ni(this)-this.display.barWidth,clientHeight:Wa(this),clientWidth:ws(this)}},scrollIntoView:Tt(function(d,v){d==null?(d={from:this.doc.sel.primary().head,to:null},v==null&&(v=this.options.cursorScrollMargin)):typeof d=="number"?d={from:he(d,0),to:null}:d.from==null&&(d={from:d,to:null}),d.to||(d.to=d.from),d.margin=v||0,d.from.line!=null?Nc(this,d):yu(this,d.from,d.to,d.margin)}),setSize:Tt(function(d,v){var A=this,b=function(w){return typeof w=="number"||/^\d+$/.test(String(w))?w+"px":w};d!=null&&(this.display.wrapper.style.width=b(d)),v!=null&&(this.display.wrapper.style.height=b(v)),this.options.lineWrapping&&Jo(this);var y=this.display.viewFrom;this.doc.iter(y,this.display.viewTo,function(w){if(w.widgets){for(var U=0;U<w.widgets.length;U++)if(w.widgets[U].noHScroll){kt(A,y,"widget");break}}++y}),this.curOp.forceUpdate=!0,ar(this,"refresh",this)}),operation:function(d){return Qt(this,d)},startOperation:function(){return Ws(this)},endOperation:function(){return Zs(this)},refresh:Tt(function(){var d=this.display.cachedTextHeight;vt(this),this.curOp.forceUpdate=!0,Os(this),jn(this,this.doc.scrollLeft,this.doc.scrollTop),to(this.display),(d==null||Math.abs(d-Mr(this.display))>.5||this.options.lineWrapping)&&Gs(this),ar(this,"refresh",this)}),swapDoc:Tt(function(d){var v=this.doc;return v.cm=null,this.state.selectingText&&this.state.selectingText(),sa(this,d),Os(this),this.display.input.reset(),jn(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,v),v}),phrase:function(d){var v=this.options.phrases;return v&&Object.prototype.hasOwnProperty.call(v,d)?v[d]:d},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},is(s),s.registerHelper=function(d,v,A){g.hasOwnProperty(d)||(g[d]=s[d]={_global:[]}),g[d][v]=A},s.registerGlobalHelper=function(d,v,A,b){s.registerHelper(d,v,b),g[d]._global.push({pred:A,val:b})}}function fl(s,l,g,d,v){var A=l,b=g,y=Ie(s,l.line),w=v&&s.direction=="rtl"?-g:g;function U(){var Ce=l.line+w;return Ce<s.first||Ce>=s.first+s.size?!1:(l=new he(Ce,l.ch,l.sticky),y=Ie(s,Ce))}function k(Ce){var xe;if(d=="codepoint"){var be=y.text.charCodeAt(l.ch+(g>0?0:-1));if(isNaN(be))xe=null;else{var Ze=g>0?be>=55296&&be<56320:be>=56320&&be<57343;xe=new he(l.line,Math.max(0,Math.min(y.text.length,l.ch+g*(Ze?2:1))),-g)}}else v?xe=np(s.cm,y,l,g):xe=tl(y,l,g);if(xe==null)if(!Ce&&U())l=il(v,s.cm,y,l.line,w);else return!1;else l=xe;return!0}if(d=="char"||d=="codepoint")k();else if(d=="column")k(!0);else if(d=="word"||d=="group")for(var J=null,re=d=="group",ee=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!k(!oe));oe=!1){var ce=y.text.charAt(l.ch)||`
|
|
16
|
+
`,de=Oe(ce,ee)?"w":re&&ce==`
|
|
17
|
+
`?"n":!re||/\s/.test(ce)?null:"p";if(re&&!oe&&!de&&(de="s"),J&&J!=de){g<0&&(g=1,k(),l.sticky="after");break}if(de&&(J=de),g>0&&!k(!oe))break}var ve=la(s,l,A,b,!0);return La(A,ve)&&(ve.hitSide=!0),ve}function Rf(s,l,g,d){var v=s.doc,A=l.left,b;if(d=="page"){var y=Math.min(s.display.wrapper.clientHeight,ut(s).innerHeight||v(s).documentElement.clientHeight),w=Math.max(y-.5*Mr(s.display),3);b=(g>0?l.bottom:l.top)+g*w}else d=="line"&&(b=g>0?l.bottom+3:l.top-3);for(var U;U=ka(s,A,b),!!U.outside;){if(g<0?b<=0:b>=v.height){U.hitSide=!0;break}b+=g*5}return U}var gr=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Pr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};gr.prototype.init=function(s){var l=this,g=this,d=g.cm,v=g.div=s.lineDiv;v.contentEditable=!0,ul(v,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function A(y){for(var w=y.target;w;w=w.parentNode){if(w==v)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(w.className))break}return!1}Ge(v,"paste",function(y){!A(y)||dr(d,y)||Af(y,d)||D<=11&&setTimeout(tt(d,function(){return l.updateFromDOM()}),20)}),Ge(v,"compositionstart",function(y){l.composing={data:y.data,done:!1}}),Ge(v,"compositionupdate",function(y){l.composing||(l.composing={data:y.data,done:!1})}),Ge(v,"compositionend",function(y){l.composing&&(y.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Ge(v,"touchstart",function(){return g.forceCompositionEnd()}),Ge(v,"input",function(){l.composing||l.readFromDOMSoon()});function b(y){if(!(!A(y)||dr(d,y))){if(d.somethingSelected())da({lineWise:!1,text:d.getSelections()}),y.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var w=bf(d);da({lineWise:!0,text:w.text}),y.type=="cut"&&d.operation(function(){d.setSelections(w.ranges,0,pe),d.replaceSelection("",null,"cut")})}else return;if(y.clipboardData){y.clipboardData.clearData();var U=fi.text.join(`
|
|
18
|
+
`);if(y.clipboardData.setData("Text",U),y.clipboardData.getData("Text")==U){y.preventDefault();return}}var k=Tf(),J=k.firstChild;ul(J),d.display.lineSpace.insertBefore(k,d.display.lineSpace.firstChild),J.value=fi.text.join(`
|
|
19
|
+
`);var re=$r(or(v));Lt(J),setTimeout(function(){d.display.lineSpace.removeChild(k),re.focus(),re==v&&g.showPrimarySelection()},50)}}Ge(v,"copy",b),Ge(v,"cut",b)},gr.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},gr.prototype.prepareSelection=function(){var s=ps(this.cm,!1);return s.focus=$r(or(this.div))==this.div,s},gr.prototype.showSelection=function(s,l){!s||!this.cm.display.view.length||((s.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(s))},gr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},gr.prototype.showPrimarySelection=function(){var s=this.getSelection(),l=this.cm,g=l.doc.sel.primary(),d=g.from(),v=g.to();if(l.display.viewTo==l.display.viewFrom||d.line>=l.display.viewTo||v.line<l.display.viewFrom){s.removeAllRanges();return}var A=ga(l,s.anchorNode,s.anchorOffset),b=ga(l,s.focusNode,s.focusOffset);if(!(A&&!A.bad&&b&&!b.bad&&Xe(Zo(A,b),d)==0&&Xe(Wo(A,b),v)==0)){var y=l.display.view,w=d.line>=l.display.viewFrom&&yf(l,d)||{node:y[0].measure.map[2],offset:0},U=v.line<l.display.viewTo&&yf(l,v);if(!U){var k=y[y.length-1].measure,J=k.maps?k.maps[k.maps.length-1]:k.map;U={node:J[J.length-1],offset:J[J.length-2]-J[J.length-3]}}if(!w||!U){s.removeAllRanges();return}var re=s.rangeCount&&s.getRangeAt(0),ee;try{ee=Cr(w.node,w.offset,U.offset,U.node)}catch{}ee&&(!e&&l.state.focused?(s.collapse(w.node,w.offset),ee.collapsed||(s.removeAllRanges(),s.addRange(ee))):(s.removeAllRanges(),s.addRange(ee)),re&&s.anchorNode==null?s.addRange(re):e&&this.startGracePeriod()),this.rememberSelection()}},gr.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},gr.prototype.showMultipleSelections=function(s){Je(this.cm.display.cursorDiv,s.cursors),Je(this.cm.display.selectionDiv,s.selection)},gr.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},gr.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var l=s.getRangeAt(0).commonAncestorContainer;return ur(this.div,l)},gr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||$r(or(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},gr.prototype.blur=function(){this.div.blur()},gr.prototype.getField=function(){return this.div},gr.prototype.supportsTouch=function(){return!0},gr.prototype.receivedFocus=function(){var s=this,l=this;this.selectionInEditor()?setTimeout(function(){return s.pollSelection()},20):Qt(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function g(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},gr.prototype.selectionChanged=function(){var s=this.getSelection();return s.anchorNode!=this.lastAnchorNode||s.anchorOffset!=this.lastAnchorOffset||s.focusNode!=this.lastFocusNode||s.focusOffset!=this.lastFocusOffset},gr.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var s=this.getSelection(),l=this.cm;if(V&&Q&&this.cm.display.gutterSpecs.length&&Tp(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ga(l,s.anchorNode,s.anchorOffset),d=ga(l,s.focusNode,s.focusOffset);g&&d&&Qt(l,function(){xt(l.doc,Ri(g,d),pe),(g.bad||d.bad)&&(l.curOp.selectionChanged=!0)})}}},gr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,l=s.display,g=s.doc.sel.primary(),d=g.from(),v=g.to();if(d.ch==0&&d.line>s.firstLine()&&(d=he(d.line-1,Ie(s.doc,d.line-1).length)),v.ch==Ie(s.doc,v.line).text.length&&v.line<s.lastLine()&&(v=he(v.line+1,0)),d.line<l.viewFrom||v.line>l.viewTo-1)return!1;var A,b,y;d.line==l.viewFrom||(A=ki(s,d.line))==0?(b=_e(l.view[0].line),y=l.view[0].node):(b=_e(l.view[A].line),y=l.view[A-1].node.nextSibling);var w=ki(s,v.line),U,k;if(w==l.view.length-1?(U=l.viewTo-1,k=l.lineDiv.lastChild):(U=_e(l.view[w+1].line)-1,k=l.view[w+1].node.previousSibling),!y)return!1;for(var J=s.doc.splitLines(Rp(s,y,k,b,U)),re=dt(s.doc,he(b,0),he(U,Ie(s.doc,U).text.length));J.length>1&&re.length>1;)if(Ae(J)==Ae(re))J.pop(),re.pop(),U--;else if(J[0]==re[0])J.shift(),re.shift(),b++;else break;for(var ee=0,oe=0,ce=J[0],de=re[0],ve=Math.min(ce.length,de.length);ee<ve&&ce.charCodeAt(ee)==de.charCodeAt(ee);)++ee;for(var Ce=Ae(J),xe=Ae(re),be=Math.min(Ce.length-(J.length==1?ee:0),xe.length-(re.length==1?ee:0));oe<be&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)++oe;if(J.length==1&&re.length==1&&b==d.line)for(;ee&&ee>d.ch&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)ee--,oe++;J[J.length-1]=Ce.slice(0,Ce.length-oe).replace(/^\u200b+/,""),J[0]=J[0].slice(ee).replace(/\u200b+$/,"");var Ze=he(b,ee),De=he(U,re.length?Ae(re).length-oe:0);if(J.length>1||J[0]||Xe(Ze,De))return wn(s.doc,J,Ze,De,"+input"),!0},gr.prototype.ensurePolled=function(){this.forceCompositionEnd()},gr.prototype.reset=function(){this.forceCompositionEnd()},gr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},gr.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},gr.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&Qt(this.cm,function(){return vt(s.cm)})},gr.prototype.setUneditable=function(s){s.contentEditable="false"},gr.prototype.onKeyPress=function(s){s.charCode==0||this.composing||(s.preventDefault(),this.cm.isReadOnly()||tt(this.cm,ll)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},gr.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},gr.prototype.onContextMenu=function(){},gr.prototype.resetPosition=function(){},gr.prototype.needsContentAttribute=!0;function yf(s,l){var g=Et(s,l.line);if(!g||g.hidden)return null;var d=Ie(s.doc,l.line),v=Yo(g,d,l.line),A=Tr(d,s.doc.direction),b="left";if(A){var y=bt(A,l.ch);b=y%2?"right":"left"}var w=xu(v.map,l.ch,b);return w.offset=w.collapse=="right"?w.end:w.start,w}function Tp(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function Bn(s,l){return l&&(s.bad=!0),s}function Rp(s,l,g,d,v){var A="",b=!1,y=s.doc.lineSeparator(),w=!1;function U(ee){return function(oe){return oe.id==ee}}function k(){b&&(A+=y,w&&(A+=y),b=w=!1)}function J(ee){ee&&(k(),A+=ee)}function re(ee){if(ee.nodeType==1){var oe=ee.getAttribute("cm-text");if(oe){J(oe);return}var ce=ee.getAttribute("cm-marker"),de;if(ce){var ve=s.findMarks(he(d,0),he(v+1,0),U(+ce));ve.length&&(de=ve[0].find(0))&&J(dt(s.doc,de.from,de.to).join(y));return}if(ee.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(ee.nodeName);if(!/^br$/i.test(ee.nodeName)&&ee.textContent.length==0)return;Ce&&k();for(var xe=0;xe<ee.childNodes.length;xe++)re(ee.childNodes[xe]);/^(pre|p)$/i.test(ee.nodeName)&&(w=!0),Ce&&(b=!0)}else ee.nodeType==3&&J(ee.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(l),l!=g;)l=l.nextSibling,w=!1;return A}function ga(s,l,g){var d;if(l==s.display.lineDiv){if(d=s.display.lineDiv.childNodes[g],!d)return Bn(s.clipPos(he(s.display.viewTo-1)),!0);l=null,g=0}else for(d=l;;d=d.parentNode){if(!d||d==s.display.lineDiv)return null;if(d.parentNode&&d.parentNode==s.display.lineDiv)break}for(var v=0;v<s.display.view.length;v++){var A=s.display.view[v];if(A.node==d)return yp(A,l,g)}}function yp(s,l,g){var d=s.text.firstChild,v=!1;if(!l||!ur(d,l))return Bn(he(_e(s.line),0),!0);if(l==d&&(v=!0,l=d.childNodes[g],g=0,!l)){var A=s.rest?Ae(s.rest):s.line;return Bn(he(_e(A),A.text.length),v)}var b=l.nodeType==3?l:null,y=l;for(!b&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(b=l.firstChild,g&&(g=b.nodeValue.length));y.parentNode!=d;)y=y.parentNode;var w=s.measure,U=w.maps;function k(de,ve,Ce){for(var xe=-1;xe<(U?U.length:0);xe++)for(var be=xe<0?w.map:U[xe],Ze=0;Ze<be.length;Ze+=3){var De=be[Ze+2];if(De==de||De==ve){var Ke=_e(xe<0?s.line:s.rest[xe]),vr=be[Ze]+Ce;return(Ce<0||De!=de)&&(vr=be[Ze+(Ce?1:0)]),he(Ke,vr)}}}var J=k(b,y,g);if(J)return Bn(J,v);for(var re=y.nextSibling,ee=b?b.nodeValue.length-g:0;re;re=re.nextSibling){if(J=k(re,re.firstChild,0),J)return Bn(he(J.line,J.ch-ee),v);ee+=re.textContent.length}for(var oe=y.previousSibling,ce=g;oe;oe=oe.previousSibling){if(J=k(oe,oe.firstChild,-1),J)return Bn(he(J.line,J.ch+ce),v);ce+=oe.textContent.length}}var Zr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Pr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Zr.prototype.init=function(s){var l=this,g=this,d=this.cm;this.createField(s);var v=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),B&&(v.style.width="0px"),Ge(v,"input",function(){O&&D>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Ge(v,"paste",function(b){dr(d,b)||Af(b,d)||(d.state.pasteIncoming=+new Date,g.fastPoll())});function A(b){if(!dr(d,b)){if(d.somethingSelected())da({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var y=bf(d);da({lineWise:!0,text:y.text}),b.type=="cut"?d.setSelections(y.ranges,null,pe):(g.prevInput="",v.value=y.text.join(`
|
|
20
|
+
`),Lt(v))}else return;b.type=="cut"&&(d.state.cutIncoming=+new Date)}}Ge(v,"cut",A),Ge(v,"copy",A),Ge(s.scroller,"paste",function(b){if(!(Pi(s,b)||dr(d,b))){if(!v.dispatchEvent){d.state.pasteIncoming=+new Date,g.focus();return}var y=new Event("paste");y.clipboardData=b.clipboardData,v.dispatchEvent(y)}}),Ge(s.lineSpace,"selectstart",function(b){Pi(s,b)||ht(b)}),Ge(v,"compositionstart",function(){var b=d.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:b,range:d.markText(b,d.getCursor("to"),{className:"CodeMirror-composing"})}}),Ge(v,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Zr.prototype.createField=function(s){this.wrapper=Tf(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;ul(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Zr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Zr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,d=ps(s);if(s.options.moveInputWithCursor){var v=$e(s,g.sel.primary().head,"div"),A=l.wrapper.getBoundingClientRect(),b=l.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,v.top+b.top-A.top)),d.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,v.left+b.left-A.left))}return d},Zr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Je(g.cursorDiv,s.cursors),Je(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Zr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing&&s)){var l=this.cm;if(this.resetting=!0,l.somethingSelected()){this.prevInput="";var g=l.getSelection();this.textarea.value=g,l.state.focused&&Lt(this.textarea),O&&D>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",O&&D>=9&&(this.hasSelection=null));this.resetting=!1}},Zr.prototype.getField=function(){return this.textarea},Zr.prototype.supportsTouch=function(){return!1},Zr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!X||$r(or(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Zr.prototype.blur=function(){this.textarea.blur()},Zr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zr.prototype.receivedFocus=function(){this.slowPoll()},Zr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Zr.prototype.fastPoll=function(){var s=!1,l=this;l.pollingFast=!0;function g(){var d=l.poll();!d&&!s?(s=!0,l.polling.set(60,g)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,g)},Zr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Vo(g)&&!d&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var v=g.value;if(v==d&&!l.somethingSelected())return!1;if(O&&D>=9&&this.hasSelection===v||q&&/[\uf700-\uf7ff]/.test(v))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var A=v.charCodeAt(0);if(A==8203&&!d&&(d="\u200B"),A==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,y=Math.min(d.length,v.length);b<y&&d.charCodeAt(b)==v.charCodeAt(b);)++b;return Qt(l,function(){ll(l,v.slice(b),d.length-b,null,s.composing?"*compose":null),v.length>1e3||v.indexOf(`
|
|
21
|
+
`)>-1?g.value=s.prevInput="":s.prevInput=v,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zr.prototype.onKeyPress=function(){O&&D>=9&&(this.hasSelection=null),this.fastPoll()},Zr.prototype.onContextMenu=function(s){var l=this,g=l.cm,d=g.display,v=l.textarea;l.contextMenuPending&&l.contextMenuPending();var A=li(g,s),b=d.scroller.scrollTop;if(!A||$)return;var y=g.options.resetSelectionOnContextMenu;y&&g.doc.sel.contains(A)==-1&&tt(g,xt)(g.doc,Ri(A),pe);var w=v.style.cssText,U=l.wrapper.style.cssText,k=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",v.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
22
22
|
top: `+(s.clientY-k.top-5)+"px; left: "+(s.clientX-k.left-5)+`px;
|
|
23
|
-
z-index: 1000; background: `+(
|
|
24
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Y;Z&&(Y=m.ownerDocument.defaultView.scrollY),d.input.focus(),Z&&m.ownerDocument.defaultView.scrollTo(null,Y),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=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&&(kr(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=m))}},s.style.display="none";var y=yr(function(L){return s.parentNode.insertBefore(L,s.nextSibling)},l);return y}function bc(s){s.off=kr,s.on=Ue,s.wheelEventPixels=Up,s.Doc=Bt,s.splitLines=sn,s.countColumn=Ar,s.findColumn=ye,s.isWordChar=pt,s.Pass=Oe,s.signal=ar,s.Line=cn,s.changeEnd=Ri,s.scrollbarModel=Ru,s.Pos=ce,s.cmpPos=Xe,s.modes=on,s.mimeModes=Fi,s.resolveMode=an,s.getMode=De,s.modeExtensions=K,s.extendMode=ge,s.copyState=Re,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(yr),xc(yr);var Tc="iter insert remove copy getEditor constructor".split(" ");for(var da in Bt.prototype)Bt.prototype.hasOwnProperty(da)&&hr(Tc,da)<0&&(yr.prototype[da]=function(s){return function(){return s.apply(this.doc,arguments)}}(Bt.prototype[da]));return ts(Bt),yr.inputStyles={textarea:Pr,contenteditable:gr},yr.defineMode=function(s){!yr.defaults.mode&&s!="null"&&(yr.defaults.mode=s),Bo.apply(this,arguments)},yr.defineMIME=Do,yr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(s,l){yr.prototype[s]=l},yr.defineDocExtension=function(s,l){Bt.prototype[s]=l},yr.fromTextArea=Nc,bc(yr),yr.version="5.65.20",yr})});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,R){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,R,w){var G=tv(arguments,1);return rv.apply(this,[Object.create(e)].concat(G))};{let v=function(){};var i=v;return function(N,R,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,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 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 XI={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 YI(){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 G={_namespacePrefix:N,_namespaceRegexp:R,_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){YI("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Z)}},V=_I(G,XI,{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 Rf(){return JI.localStorage}function xm(i){return Rf().getItem(i)}function zI(i,v){return Rf().setItem(i,v)}function jI(i){for(var v=Rf().length-1;v>=0;v--){var e=Rf().key(v);i(xm(e),e)}}function qI(i){return Rf().removeItem(i)}function KI(){return Rf().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 ym=br((fL,Rm)=>{var oN=Wl(),lv=oN.Global;Rm.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 R=e[N];i(v.getAttribute(R.name),R.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(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 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("="),R=unescape(N[0]),w=unescape(N[1]);i(w,R)}}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 yf(){return CN.sessionStorage}function Fm(i){return yf().getItem(i)}function AN(i,v){return yf().setItem(i,v)}function IN(i){for(var v=yf().length-1;v>=0;v--){var e=yf().key(v);i(Fm(e),e)}}function NN(i){return yf().removeItem(i)}function bN(){return yf().clear()}});var Mm=br((hL,Vm)=>{Vm.exports={name:"memoryStorage",read:TN,write:RN,each:yN,remove:SN,clearAll:LN};var Zl={};function TN(i){return Zl[i]}function RN(i,v){Zl[i]=v}function yN(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(),ym(),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,R,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 R=V.length===0?"[]":gap?`[
|
|
25
|
-
`+gap+
|
|
23
|
+
z-index: 1000; background: `+(O?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
24
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var J;Z&&(J=v.ownerDocument.defaultView.scrollY),d.input.focus(),Z&&v.ownerDocument.defaultView.scrollTo(null,J),d.input.reset(),g.somethingSelected()||(v.value=l.prevInput=" "),l.contextMenuPending=ee,d.selForContextMenu=g.doc.sel,clearTimeout(d.detectingSelectAll);function re(){if(v.selectionStart!=null){var ce=g.somethingSelected(),de="\u200B"+(ce?v.value:"");v.value="\u21DA",v.value=de,l.prevInput=ce?"":"\u200B",v.selectionStart=1,v.selectionEnd=de.length,d.selForContextMenu=g.doc.sel}}function ee(){if(l.contextMenuPending==ee&&(l.contextMenuPending=!1,l.wrapper.style.cssText=U,v.style.cssText=w,O&&D<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=b),v.selectionStart!=null)){(!O||O&&D<9)&&re();var ce=0,de=function(){d.selForContextMenu==g.doc.sel&&v.selectionStart==0&&v.selectionEnd>0&&l.prevInput=="\u200B"?tt(g,Hu)(g):ce++<10?d.detectingSelectAll=setTimeout(de,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(de,200)}}if(O&&D>=9&&re(),ye){bs(s);var oe=function(){kr(window,"mouseup",oe),setTimeout(ee,20)};Ge(window,"mouseup",oe)}else setTimeout(ee,50)},Zr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Zr.prototype.setUneditable=function(){},Zr.prototype.needsContentAttribute=!1;function Sp(s,l){if(l=l?zr(l):{},l.value=s.value,!l.tabindex&&s.tabIndex&&(l.tabindex=s.tabIndex),!l.placeholder&&s.placeholder&&(l.placeholder=s.placeholder),l.autofocus==null){var g=$r(or(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function d(){s.value=y.getValue()}var v;if(s.form&&(Ge(s.form,"submit",d),!l.leaveSubmitMethodAlone)){var A=s.form;v=A.submit;try{var b=A.submit=function(){d(),A.submit=v,A.submit(),A.submit=b}}catch{}}l.finishInit=function(w){w.save=d,w.getTextArea=function(){return s},w.toTextArea=function(){w.toTextArea=isNaN,d(),s.parentNode.removeChild(w.getWrapperElement()),s.style.display="",s.form&&(kr(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=v))}},s.style.display="none";var y=yr(function(w){return s.parentNode.insertBefore(w,s.nextSibling)},l);return y}function Lp(s){s.off=kr,s.on=Ge,s.wheelEventPixels=Dc,s.Doc=Bt,s.splitLines=nn,s.countColumn=Ir,s.findColumn=we,s.isWordChar=ct,s.Pass=Fe,s.signal=ar,s.Line=hn,s.changeEnd=yi,s.scrollbarModel=wu,s.Pos=he,s.cmpPos=Xe,s.modes=an,s.mimeModes=Bi,s.resolveMode=ln,s.getMode=We,s.modeExtensions=K,s.extendMode=Ee,s.copyState=Se,s.startState=et,s.innerMode=mr,s.commands=go,s.keyMap=Hi,s.keyName=lf,s.isModifierKey=of,s.lookupKey=Un,s.normalizeKeyMap=sp,s.StringStream=qe,s.SharedTextMarker=co,s.TextMarker=Es,s.LineWidget=fo,s.e_preventDefault=ht,s.e_stopPropagation=Dr,s.e_stop=bs,s.addClass=ze,s.contains=ur,s.rmClass=Le,s.keyNames=ms}Cp(yr),bp(yr);var wp="iter insert remove copy getEditor constructor".split(" ");for(var Ea in Bt.prototype)Bt.prototype.hasOwnProperty(Ea)&&hr(wp,Ea)<0&&(yr.prototype[Ea]=function(s){return function(){return s.apply(this.doc,arguments)}}(Bt.prototype[Ea]));return is(Bt),yr.inputStyles={textarea:Zr,contenteditable:gr},yr.defineMode=function(s){!yr.defaults.mode&&s!="null"&&(yr.defaults.mode=s),Do.apply(this,arguments)},yr.defineMIME=Mo,yr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),yr.defineMIME("text/plain","null"),yr.defineExtension=function(s,l){yr.prototype[s]=l},yr.defineDocExtension=function(s,l){Bt.prototype[s]=l},yr.fromTextArea=Sp,Lp(yr),yr.version="5.65.20",yr})});var Pl=br((EL,Av)=>{var nm=ZA(),DA=PA(),MA=kA(),WA=typeof window<"u"?window:global;Av.exports={assign:nm,create:DA,trim:MA,bind:QA,slice:om,each:Iv,map:_A,pluck:am,isList:lm,isFunction:HA,isObject:XA,Global:WA};function ZA(){return Object.assign?Object.assign:function(m,e,N,R){for(var L=1;L<arguments.length;L++)Iv(Object(arguments[L]),function(O,D){m[D]=O});return m}}function PA(){if(Object.create)return function(e,N,R,L){var O=om(arguments,1);return nm.apply(this,[Object.create(e)].concat(O))};{let m=function(){};var i=m;return function(N,R,L,O){var D=om(arguments,1);return m.prototype=N,nm.apply(this,[new m].concat(D))}}}function kA(){return String.prototype.trim?function(m){return String.prototype.trim.call(m)}:function(m){return m.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function QA(i,m){return function(){return m.apply(i,Array.prototype.slice.call(arguments,0))}}function om(i,m){return Array.prototype.slice.call(i,m||0)}function Iv(i,m){am(i,function(e,N){return m(e,N),!1})}function _A(i,m){var e=lm(i)?[]:{};return am(i,function(N,R){return e[R]=m(N,R),!1}),e}function am(i,m){if(lm(i)){for(var e=0;e<i.length;e++)if(m(i[e],e))return i[e]}else for(var N in i)if(i.hasOwnProperty(N)&&m(i[N],N))return i[N]}function lm(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function HA(i){return i&&{}.toString.call(i)==="[object Function]"}function XA(i){return i&&{}.toString.call(i)==="[object Object]"}});var bv=br((mL,Nv)=>{var ma=Pl(),YA=ma.slice,JA=ma.pluck,Lf=ma.each,$A=ma.bind,zA=ma.create,um=ma.isList,fm=ma.isFunction,jA=ma.isObject;Nv.exports={createStore:cm};var qA={version:"2.0.12",enabled:!1,get:function(i,m){var e=this.storage.read(this._namespacePrefix+i);return this._deserialize(e,m)},set:function(i,m){return m===void 0?this.remove(i):(this.storage.write(this._namespacePrefix+i,this._serialize(m)),m)},remove:function(i){this.storage.remove(this._namespacePrefix+i)},each:function(i){var m=this;this.storage.each(function(e,N){i.call(m,m._deserialize(e),(N||"").replace(m._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(i){return this._namespacePrefix=="__storejs_"+i+"_"},createStore:function(){return cm.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return cm(this.storage,this.plugins,i)}};function KA(){var i=typeof console>"u"?null:console;if(i){var m=i.warn?i.warn:i.log;m.apply(i,arguments)}}function cm(i,m,e){e||(e=""),i&&!um(i)&&(i=[i]),m&&!um(m)&&(m=[m]);var N=e?"__storejs_"+e+"_":"",R=e?new RegExp("^"+N):null,L=/^[a-zA-Z0-9_\-]*$/;if(!L.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var O={_namespacePrefix:N,_namespaceRegexp:R,_testStorage:function(Z){try{var H="__storejs__test__";Z.write(H,H);var Q=Z.read(H)===H;return Z.remove(H),Q}catch{return!1}},_assignPluginFnProp:function(Z,H){var Q=this[H];this[H]=function(){var $=YA(arguments,0),M=this;function z(){if(Q)return Lf(arguments,function(B,V){$[V]=B}),Q.apply(M,$)}var Y=[z].concat($);return Z.apply(M,Y)}},_serialize:function(Z){return JSON.stringify(Z)},_deserialize:function(Z,H){if(!Z)return H;var Q="";try{Q=JSON.parse(Z)}catch{Q=Z}return Q!==void 0?Q:H},_addStorage:function(Z){this.enabled||this._testStorage(Z)&&(this.storage=Z,this.enabled=!0)},_addPlugin:function(Z){var H=this;if(um(Z)){Lf(Z,function($){H._addPlugin($)});return}var Q=JA(this.plugins,function($){return Z===$});if(!Q){if(this.plugins.push(Z),!fm(Z))throw new Error("Plugins must be function values that return objects");var W=Z.call(this);if(!jA(W))throw new Error("Plugins must return an object of function properties");Lf(W,function($,M){if(!fm($))throw new Error("Bad plugin property: "+M+" from plugin "+Z.name+". Plugins should only return functions.");H._assignPluginFnProp($,M)})}},addStorage:function(Z){KA("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(Z)}},D=zA(O,qA,{plugins:[]});return D.raw={},Lf(D,function(Z,H){fm(Z)&&(D.raw[H]=$A(D,Z))}),Lf(i,function(Z){D._addStorage(Z)}),Lf(m,function(Z){D._addPlugin(Z)}),D}});var yv=br((vL,Rv)=>{var eN=Pl(),rN=eN.Global;Rv.exports={name:"localStorage",read:Tv,write:tN,each:iN,remove:sN,clearAll:nN};function wf(){return rN.localStorage}function Tv(i){return wf().getItem(i)}function tN(i,m){return wf().setItem(i,m)}function iN(i){for(var m=wf().length-1;m>=0;m--){var e=wf().key(m);i(Tv(e),e)}}function sN(i){return wf().removeItem(i)}function nN(){return wf().clear()}});var wv=br((xL,Lv)=>{var oN=Pl(),aN=oN.Global;Lv.exports={name:"oldFF-globalStorage",read:lN,write:uN,each:Sv,remove:fN,clearAll:cN};var kl=aN.globalStorage;function lN(i){return kl[i]}function uN(i,m){kl[i]=m}function Sv(i){for(var m=kl.length-1;m>=0;m--){var e=kl.key(m);i(kl[e],e)}}function fN(i){return kl.removeItem(i)}function cN(){Sv(function(i,m){delete kl[i]})}});var Fv=br((CL,Uv)=>{var pN=Pl(),pm=pN.Global;Uv.exports={name:"oldIE-userDataStorage",write:hN,read:dN,each:gN,remove:EN,clearAll:mN};var Ch="storejs",xh=pm.document,Ih=xN(),Ov=(pm.navigator?pm.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function hN(i,m){if(!Ov){var e=hm(i);Ih(function(N){N.setAttribute(e,m),N.save(Ch)})}}function dN(i){if(!Ov){var m=hm(i),e=null;return Ih(function(N){e=N.getAttribute(m)}),e}}function gN(i){Ih(function(m){for(var e=m.XMLDocument.documentElement.attributes,N=e.length-1;N>=0;N--){var R=e[N];i(m.getAttribute(R.name),R.name)}})}function EN(i){var m=hm(i);Ih(function(e){e.removeAttribute(m),e.save(Ch)})}function mN(){Ih(function(i){var m=i.XMLDocument.documentElement.attributes;i.load(Ch);for(var e=m.length-1;e>=0;e--)i.removeAttribute(m[e].name);i.save(Ch)})}var vN=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function hm(i){return i.replace(/^\d/,"___$&").replace(vN,"___")}function xN(){if(!xh||!xh.documentElement||!xh.documentElement.addBehavior)return null;var i="script",m,e,N;try{e=new ActiveXObject("htmlfile"),e.open(),e.write("<"+i+">document.w=window</"+i+'><iframe src="/favicon.ico"></iframe>'),e.close(),m=e.w.frames[0].document,N=m.createElement("div")}catch{N=xh.createElement("div"),m=xh.body}return function(R){var L=[].slice.call(arguments,0);L.unshift(N),m.appendChild(N),N.addBehavior("#default#userData"),N.load(Ch),R.apply(this,L),m.removeChild(N)}}});var Wv=br((IL,Mv)=>{var Gv=Pl(),CN=Gv.Global,IN=Gv.trim;Mv.exports={name:"cookieStorage",read:AN,write:NN,each:Bv,remove:Vv,clearAll:bN};var Ah=CN.document;function AN(i){if(!i||!Dv(i))return null;var m="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(Ah.cookie.replace(new RegExp(m),"$1"))}function Bv(i){for(var m=Ah.cookie.split(/; ?/g),e=m.length-1;e>=0;e--)if(IN(m[e])){var N=m[e].split("="),R=unescape(N[0]),L=unescape(N[1]);i(L,R)}}function NN(i,m){i&&(Ah.cookie=escape(i)+"="+escape(m)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Vv(i){!i||!Dv(i)||(Ah.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function bN(){Bv(function(i,m){Vv(m)})}function Dv(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(Ah.cookie)}});var kv=br((AL,Pv)=>{var TN=Pl(),RN=TN.Global;Pv.exports={name:"sessionStorage",read:Zv,write:yN,each:SN,remove:LN,clearAll:wN};function Of(){return RN.sessionStorage}function Zv(i){return Of().getItem(i)}function yN(i,m){return Of().setItem(i,m)}function SN(i){for(var m=Of().length-1;m>=0;m--){var e=Of().key(m);i(Zv(e),e)}}function LN(i){return Of().removeItem(i)}function wN(){return Of().clear()}});var _v=br((NL,Qv)=>{Qv.exports={name:"memoryStorage",read:ON,write:UN,each:FN,remove:GN,clearAll:BN};var Ql={};function ON(i){return Ql[i]}function UN(i,m){Ql[i]=m}function FN(i){for(var m in Ql)Ql.hasOwnProperty(m)&&i(Ql[m],m)}function GN(i){delete Ql[i]}function BN(i){Ql={}}});var Xv=br((bL,Hv)=>{Hv.exports=[yv(),wv(),Fv(),Wv(),kv(),_v()]});var Yv=br((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(i){return i<10?"0"+i:i}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(i){return rx_escapable.lastIndex=0,rx_escapable.test(i)?'"'+i.replace(rx_escapable,function(m){var e=meta[m];return typeof e=="string"?e:"\\u"+("0000"+m.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,m){var e,N,R,L,O=gap,D,Z=m[i];switch(Z&&typeof Z=="object"&&typeof Z.toJSON=="function"&&(Z=Z.toJSON(i)),typeof rep=="function"&&(Z=rep.call(m,i,Z)),typeof Z){case"string":return quote(Z);case"number":return isFinite(Z)?String(Z):"null";case"boolean":case"null":return String(Z);case"object":if(!Z)return"null";if(gap+=indent,D=[],Object.prototype.toString.apply(Z)==="[object Array]"){for(L=Z.length,e=0;e<L;e+=1)D[e]=str(e,Z)||"null";return R=D.length===0?"[]":gap?`[
|
|
25
|
+
`+gap+D.join(`,
|
|
26
26
|
`+gap)+`
|
|
27
|
-
`+
|
|
28
|
-
`+gap+
|
|
27
|
+
`+O+"]":"["+D.join(",")+"]",gap=O,R}if(rep&&typeof rep=="object")for(L=rep.length,e=0;e<L;e+=1)typeof rep[e]=="string"&&(N=rep[e],R=str(N,Z),R&&D.push(quote(N)+(gap?": ":":")+R));else for(N in Z)Object.prototype.hasOwnProperty.call(Z,N)&&(R=str(N,Z),R&&D.push(quote(N)+(gap?": ":":")+R));return R=D.length===0?"{}":gap?`{
|
|
28
|
+
`+gap+D.join(`,
|
|
29
29
|
`+gap)+`
|
|
30
|
-
`+G+"}":"{"+V.join(",")+"}",gap=G,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 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,Ym)=>{"use strict";Ym.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 R=Object.keys(v),w=0;w<R.length;w++){var G=R[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),R=Array.isArray(v),w=0;w<N.length;w++){var G=N[w],V=i[G];(R?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 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),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);R[e]=V};default:return(e,N,R)=>{if(R[e]===void 0){R[e]=N;return}R[e]=[].concat(R[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 R of i.split("&")){if(R==="")continue;let[w,G]=n0(v.decode?R.replace(/\+/g," "):R,"=");G=G===void 0?null:["comma","separator"].includes(v.arrayFormat)?G:Ql(G,v),e(Ql(w,v),G,N)}for(let R of Object.keys(N)){let w=N[R];if(typeof w=="object"&&w!==null)for(let G of Object.keys(w))w[G]=s0(w[G],v);else N[R]=s0(w,v)}return v.sort===!1?N:(v.sort===!0?Object.keys(N).sort():Object.keys(N).sort(v.sort)).reduce((R,w)=>{let G=N[w];return G&&typeof G=="object"&&!Array.isArray(G)?R[w]=a0(G):R[w]=G,R},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),R={};for(let G of Object.keys(i))e(G)||(R[G]=i[G]);let w=Object.keys(R);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),R=Li.parse(N,{sort:!1}),w=Object.assign(R,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:R,fragmentIdentifier:w}=Li.parseUrl(i,e);return Li.stringifyUrl({url:N,query:WN(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 iA=br((EV,Sv)=>{"use strict";var Qf=typeof Reflect=="object"?Reflect:null,YC=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 R=v==="error",w=this._events;if(w!==void 0)R=R&&w.error===void 0;else if(!R)return!1;if(R){var G;if(e.length>0&&(G=e[0]),G instanceof Error)throw G;var 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")YC(Z,this,e);else for(var H=Z.length,_=rA(Z,H),N=0;N<H;++N)YC(_[N],this,e);return!0};function jC(i,v,e,N){var R,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),R=zC(i),R>0&&G.length>R&&!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},R=c1.bind(N);return R.listener=e,N.wrapFn=R,R}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,R,w,G,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,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&&(R[v]=N[0]),R.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,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),G;for(R=0;R<w.length;++R)G=w[R],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(R=e.length-1;R>=0;R--)this.removeListener(v,e[R]);return this};function KC(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):rA(R,R.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 R(G){i.removeListener(v,w),N(G)}function w(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}tA(i,v,w,{once:!0}),v!=="error"&&E1(i,R,{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 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 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=R(w,V,"rangeFinder");typeof G=="number"&&(G=i.Pos(G,0));var _=R(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),X=0;X<D.length;++X)if(D[X].__isFold){if(!$)return null;B.cleared=!0,D[X].clear()}return B}var J=W(!0);if(R(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:R(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=R(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 R(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 R(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 R(z,$){for(var B=z.findMarks(v($,0),v($+1,0)),D=0;D<B.length;++D)if(B[D].__isFold){var X=B[D].find(-1);if(X&&X.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,X=$-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){++X;var ke=null,we=Ee.gutterMarkers;if(we&&(we=we[D.gutter]),R(z,X)){if(ie&&we&&ie.test(we.className))return;ke=w(D.indicatorFolded)}else{var Pe=v(X,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 X=D.options;if(B==X.gutter){var q=R(z,$);q?q.clear():z.foldCode(v($,0),X)}}}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",R=N+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+N+"]["+R+"]*)","g");function G(B,D,X,q){this.line=D,this.ch=X,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 X=B.cm.getTokenTypeAt(v(B.line,D));return X&&/\btag\b/.test(X)}function Z(B){if(!(B.line>=B.max))return B.ch=0,B.text=B.cm.getLine(++B.line),!0}function H(B){if(!(B.line<=B.min))return B.text=B.cm.getLine(--B.line),B.ch=B.text.length,!0}function _(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 X=B.text.lastIndexOf("/",D),q=X>-1&&!/\S/.test(B.text.slice(X+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 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(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 X=B.text.lastIndexOf("/",D),q=X>-1&&!/\S/.test(B.text.slice(X+1,D));return B.ch=D+1,q?"selfClose":"regular"}}function z(B,D){for(var X=[];;){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=X.length-1;Ee>=0;--Ee)if(X[Ee]==q[2]){X.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 X.push(q[2])}}function $(B,D){for(var X=[];;){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])X.push(le[2]);else{for(var Ee=X.length-1;Ee>=0;--Ee)if(X[Ee]==le[2]){X.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 X=new G(B,D.line,0);;){var q=J(X);if(!q||X.line!=D.line)return;var te=_(X);if(!te)return;if(!q[1]&&te!="selfClose"){var ie=v(X.line,X.ch),le=z(X,q[2]);return le&&e(le.from,ie)>0?{from:ie,to:le.from}:null}}}),i.findMatchingTag=function(B,D,X){var q=new G(B,D.line,D.ch,X);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,X),{open:Ee,close:z(q,le[2]),at:"open"})}}},i.findEnclosingTag=function(B,D,X,q){for(var te=new G(B,D.line,D.ch,X);;){var ie=$(te,q);if(!ie)break;var le=new G(B,D.line,D.ch,X),Ee=z(le,ie.tag);if(Ee)return{open:ie,close:Ee}}},i.scanForClosingTag=function(B,D,X,q){var te=new G(B,D.line,D.ch,q?{from:0,to:q}:null);return z(te,X)}})});var RA=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,R){var w=R.line,G=N.getLine(w);function V(M){for(var z,$=R.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<R.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,X;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,X=ie;break e}}++ie}return B==null||w==B?null:{from:i.Pos(w,D),to:i.Pos(B,X)}}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 R(_){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=R(w),V;if(!G||R(w-1)||(V=R(w-2))&&V.end.line==w-1)return null;for(var Z=G.end;;){var H=R(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 R(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=R(w);if(G==null||R(w-1)!=null)return null;for(var V=w;;){var Z=R(V+1);if(Z==null)break;++V}return{from:i.Pos(w,G+1),to:e.clipPos(i.Pos(V))}})})});var LA=br((yA,SA)=>{(function(i){typeof yA=="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 X={hint:B};if(D)for(var q in D)X[q]=D[q];return $.showHint(X)},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 X=this.state.completionActive=new N(this,$);X.options.hint&&(i.signal(this,"startCompletion",this),X.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 R=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],X=this;this.cm.operation(function(){D.hint?D.hint(X.cm,$,D):X.cm.replaceRange(V(D),D.from||$.from,D.to||$.to,"complete"),i.signal($,"pick",D),X.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 X=this;this.debounce=R(function(){X.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(X){B.tick==D&&B.finishUpdate(X,$)})}},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 X=$.options.hintOptions,q={};for(var te in z)q[te]=z[te];if(X)for(var te in X)X[te]!==void 0&&(q[te]=X[te]);if(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},X=/Mac/.test(navigator.platform);X&&(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,X=$.cm,q=X.getInputField().ownerDocument,te=q.defaultView||q.parentWindow,ie=this.hints=q.createElement("ul");ie.setAttribute("role","listbox"),ie.setAttribute("aria-expanded","true"),ie.id=this.id;var 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=X.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),X.getInputField().setAttribute("aria-autocomplete","list"),X.getInputField().setAttribute("aria-owns",this.id),X.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=X.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+=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=Z($,{moveFocus:function(ye,Ur){D.changeActive(D.selectedHint+ye,Ur)},setFocus:function(ye){D.changeActive(ye)},menuSize:function(){return D.screenAmount()},length:Ee.length,close:function(){$.close()},pick:function(){D.pick()},data:B})),$.options.closeOnUnfocus){var Er;X.on("blur",this.onBlur=function(){Er=setTimeout(function(){$.close()},100)}),X.on("focus",this.onFocus=function(){clearTimeout(Er)})}X.on("scroll",this.onScroll=function(){var ye=X.getScrollInfo(),Ur=X.getWrapperElement().getBoundingClientRect();Ar||(Ar=X.getScrollInfo());var ei=Cr+Ar.top-ye.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-ye.left+"px"}),i.on(ie,"dblclick",function(ye){var Ur=H(ie,ye.target||ye.srcElement);Ur&&Ur.hintId!=null&&(D.changeActive(Ur.hintId),D.pick())}),i.on(ie,"click",function(ye){var Ur=H(ie,ye.target||ye.srcElement);Ur&&Ur.hintId!=null&&(D.changeActive(Ur.hintId),$.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}_.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],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 $=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=[],X=0;X<B.length;X++)B[X].supportsSelection&&D.push(B[X]);return D}function J($,B,D,X){if($.async)$(B,X,D);else{var q=$(B,D);q&&q.then?q.then(X):X(q)}}function M($,B){var D=$.getHelpers(B,"hint"),X;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(X=$.getHelper($.getCursor(),"hintWords"))?function(te){return i.hint.fromList(te,{words:X})}:i.hint.anyword?function(te,ie){return i.hint.anyword(te,ie)}:function(){}}i.registerHelper("hint","auto",{resolve:M}),i.registerHelper("hint","fromList",function($,B){var D=$.getCursor(),X=$.getTokenAt(D),q,te=i.Pos(D.line,X.start),ie=D;X.start<D.ch&&/\w/.test(X.string.charAt(D.ch-X.start-1))?q=X.string.substr(0,D.ch-X.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 X=e(B),q=X,te=0;te<D.length;te++)q.indexOf(D.charAt(te))==-1&&(q+=D.charAt(te));return X==q?B:new RegExp(B.source,q)}function R(B){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(B.source)}function w(B,D,X){D=N(D,"g");for(var q=X.line,te=X.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,X){if(!R(D))return w(B,D,X);D=N(D,"gm");for(var q,te=1,ie=X.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
|
-
`+
|
|
32
|
-
`),
|
|
33
|
-
`),
|
|
34
|
-
`+q}te*=2;var
|
|
35
|
-
`),
|
|
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,X,q){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 le=te+ie>>1,Ee=q(B.slice(0,le)).length;if(Ee==X)return le;Ee>X?ie=le:te=le+1}}function M(B,D,X,q){if(!D.length)return null;var te=q?_:W,ie=te(D).split(/\r|\n\r?/);e:for(var le=X.line,Ee=X.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 X=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,X,q){if(!D.length)return null;var te=q?_:W,ie=te(D).split(/\r|\n\r?/);e:for(var le=X.line,Ee=X.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,X=le-ie.length+1;ve<ie.length-1;ve++)if(te(B.getLine(X+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,X,q){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 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 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 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 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 $(this.doc,B,D,X)}),i.defineDocExtension("getSearchCursor",function(B,D,X){return new $(this,B,D,X)}),i.defineExtension("selectMatches",function(B,D){for(var X=[],q=this.getSearchCursor(B,this.getCursor("from"),D);q.findNext()&&!(i.cmpPos(q.to(),this.getCursor("to"))>0);)X.push({anchor:q.from(),head:q.to()});X.length&&this.setSelections(X,0)})})});var 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 R(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()&&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(),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)*R,D=W($.to,!1)*R;M<G.length-1&&!(G[M+1].to.line>J||(z=W(G[M+1].from,!0)*R,z>D+.9));)$=G[++M],D=W($.to,!1)*R;if(D!=B){var X=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: "+X+"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(R,w,G){return typeof G=="string"&&(G={className:G}),G||(G={}),new v(this,R,w,G)});function v(R,w,G,V){this.cm=R,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=R.annotateScrollbar(Z),this.query=w,this.caseFold=G,this.gap={from:R.firstLine(),to:R.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var _=this;R.on("change",this.changeHandler=function(W,J){_.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 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(R++,0,w),this.matches.length>V))break}this.gap=null}};function N(R,w,G){return R<=w?R:Math.max(w,R+G)}v.prototype.onChange=function(R){var w=R.from.line,G=i.changeEnd(R).line,V=G-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: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",R)),M){var $=J.state.matchHighlighter=new e(M);J.hasFocus()?($.active=!0,Z(J)):J.on("focus",R),J.on("cursorActivity",N)}});function N(J){var M=J.state.matchHighlighter;(M.active||J.hasFocus())&&w(J,M)}function R(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,X=D;D&&z.test(B.charAt(D-1));)--D;for(;X<B.length&&z.test(B.charAt(X));)++X;D<X&&G(J,B.slice(D,X),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 R(_){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=R(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 X=D.charAt(1)==">"?1:-1;if(J&&J.strict&&X>0!=(z==W.ch))return null;var q=_.getTokenTypeAt(e(W.line,z+1)),te=G(_,e(W.line,z+(X>0?1:0)),X,q,J);return te==null?null:{from:e(W.line,z),to:te&&te.pos,match:te&&te.ch==D.charAt(0),forward:X>0}}function G(_,W,J,M,z){for(var $=z&&z.maxScanLineLength||1e4,B=z&&z.maxScanLines||1e3,D=[],X=R(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(X.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 X=B[D].empty()&&w(_,B[D].head,J);if(X&&(X.match||z!==!1)&&_.getLine(X.from.line).length<=M){var q=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";$.push(_.markText(X.from,e(X.from.line,X.from.ch+1),{className:q})),X.to&&_.getLine(X.to.line).length<=M&&$.push(_.markText(X.to,e(X.to.line,X.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 XA=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,R){var w=i.getMode(i.defaults,e),G=R&&R.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,X){if(D==`
|
|
37
|
-
`){H.appendChild(document.createTextNode(Z?"\r":
|
|
38
|
-
`);var
|
|
39
|
-
`,{line:0,ch:0}),i.collapsePrefixes(!1)}function em(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 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,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),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),XE=hi(String.prototype.toString),YE=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),R=1;R<e;R++)N[R-1]=arguments[R];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 R=v[N];if(typeof R=="string"){let w=e(R);w!==R&&(fI(v)||(v[N]=w),R=w)}i[R]=!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),RI=ms(/^(?:\w+script|data):/i),yI=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:yI,CUSTOM_ELEMENT:SI,DATA_ATTR:bI,DOCTYPE_NAME:cm,ERB_EXPR:II,IS_ALLOWED_URI:pm,IS_SCRIPT_OR_DATA:RI,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,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(N=e.getAttribute(R));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,R=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"),X=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,ye=!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],XE),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"?XE: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,XE):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,ye=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),ye&&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,R)),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 Re=Fh(K.tagName),vr=Fh(ge.tagName);return ni[K.namespaceURI]?K.namespaceURI===ii?ge.namespaceURI===Tr?Re==="svg":ge.namespaceURI===bt?Re==="svg"&&(vr==="annotation-xml"||ar[vr]):!!Go[Re]:K.namespaceURI===bt?ge.namespaceURI===Tr?Re==="math":ge.namespaceURI===ii?Re==="math"&&dr[vr]:!!tn[Re]:K.namespaceURI===Tr?ge.namespaceURI===ii&&!dr[vr]||ge.namespaceURI===bt&&!ar[vr]?!1:!tn[Re]&&(rs[Re]||!Go[Re]):!!(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,Re=null;if(ei)K="<remove></remove>"+K;else{let je=YE(K,/^[\r\n\t ]+/);Re=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&&Re&&et.insertBefore(e.createTextNode(Re),et.childNodes[0]||null),Ut===Tr?we.call(ge,ye?"html":"body")[0]:ye?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,Re=>{Re.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 Re=Vr(K.nodeName);if(oi(Me.uponSanitizeElement,K,{tagName:Re,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(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(pt&&!at[Re]){let vr=q(K)||K.parentNode,et=X(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)||(Re==="noscript"||Re==="noembed"||Re==="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,Re){if(Nt&&(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(!(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,Re)||ze.tagNameCheck instanceof Function&&ze.tagNameCheck(Re))))return!1}else if(!Ui[ge]){if(!pi(Lt,fh(Re,Je,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&K!=="script"&&gI(Re,"data:")===0&&Nr[K])){if(!(Oe&&!pi(Jr,fh(Re,Je,"")))){if(Re)return!1}}}}}}}return!0},Bo=function(K){return K!=="annotation-xml"&&YE(K,St)},Do=function(K){oi(Me.beforeSanitizeAttributes,K,null);let{attributes:ge}=K;if(!ge||Zn(K))return;let Re={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(Re.attrName=vi,Re.attrValue=_e,Re.keepAttr=!0,Re.forceKeepAttr=void 0,oi(Me.uponSanitizeAttribute,K,Re),_e=Re.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"&&YE(_e,"href")){Gi(je,K);continue}if(Re.forceKeepAttr)continue;if(!Re.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,Re=Fo(K);for(oi(Me.beforeSanitizeShadowDOM,K,null);ge=Re.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,Re=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("<!---->"),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&&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=ye?ge.outerHTML:ge.innerHTML;return ye&&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 Re=Vr(De),vr=Vr(K);return Fi(Re,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=Xt(Hm()),kl=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 G=w;if(G.quotaExceeded=FN(w),G.quotaExceeded&&R)R(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 R=document.createElement("div");return R.className="svgImg",R.appendChild(N),R}throw new Error("No svg string given. Cannot draw")}function Xm(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):Xm(i,e)||(i.className+=" "+e)}function mh(i,v){if(i){if(i.classList)i.classList.remove(v);else if(Xm(i,v)){var e=new RegExp("(\\s|^)"+v+"(\\s|$)");i.className=i.className.replace(e," ")}}}var Cd=Xt(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,{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,XN=Dh||HN||Function("return this")(),yt=XN;var YN=yt.Symbol,di=YN;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 R=JN.call(i);return N&&(v?i[Ch]=e:delete i[Ch]),R}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,R=Array(N);++e<N;)R[e]=v(i[e],e,i);return R}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]",Rb="[object Proxy]";function yb(i){if(!Wt(i))return!1;var v=qi(i);return v==bb||v==Tb||v==Nb||v==Rb}var Kr=yb;var Sb=yt["__core-js_shared__"],Vh=Sb;var R0=function(){var i=/[^.]+$/.exec(Vh&&Vh.keys&&Vh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Lb(i){return!!R0&&R0 in i}var y0=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)||y0(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(yt,"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 Xb(i,v){var e=-1,N=i.length;for(v||(v=Array(N));++e<N;)v[e]=i[e];return v}var G0=Xb;var Yb=800,$b=16,Jb=Date.now;function zb(i){var v=0,e=0;return function(){var N=Jb(),R=$b-(N-e);if(e=N,R>0){if(++v>=Yb)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 R=!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]),R?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,R=-1,w=P0(N.length-v,0),G=Array(w);++R<w;)G[R]=N[v+R];R=-1;for(var V=Array(v+1);++R<v;)V[R]=N[R];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,R=e.length,w=R>1?e[R-1]:void 0,G=R>2?e[2]:void 0;for(w=i.length>3&&typeof w=="function"?(R--,w):void 0,G&&Ah(e[0],e[1],G)&&(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 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 Y0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,H0=Y0&&typeof module=="object"&&module&&!module.nodeType&&module,RT=H0&&H0.exports===Y0,X0=RT?yt.Buffer:void 0,yT=X0?X0.isBuffer:void 0,ST=yT||_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]",XT="[object Int8Array]",YT="[object Int16Array]",$T="[object Int32Array]",JT="[object Uint8Array]",zT="[object Uint8ClampedArray]",jT="[object Uint16Array]",qT="[object Uint32Array]",$r={};$r[_T]=$r[HT]=$r[XT]=$r[YT]=$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 eR(i){return function(v){return i(v)}}var Zh=eR;var J0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ih=J0&&typeof module=="object"&&module&&!module.nodeType&&module,rR=Ih&&Ih.exports===J0,cv=rR&&Dh.process,tR=function(){try{var i=Ih&&Ih.require&&Ih.require("util").types;return i||cv&&cv.binding&&cv.binding("util")}catch{}}(),hv=tR;var z0=hv&&hv.isTypedArray,iR=z0?Zh(z0):$0,Ff=iR;var sR=Object.prototype,nR=sR.hasOwnProperty;function oR(i,v){var e=qr(i),N=!e&&Lo(i),R=!e&&!N&&_l(i),w=!e&&!N&&!R&&Ff(i),G=e||N||R||w,V=G?k0(i.length,String):[],Z=V.length;for(var H in i)(v||nR.call(i,H))&&!(G&&(H=="length"||R&&(H=="offset"||H=="parent")||w&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||wf(H,Z)))&&V.push(H);return V}var kh=oR;function aR(i,v){return function(e){return i(v(e))}}var Qh=aR;var lR=Qh(Object.keys,Object),j0=lR;var uR=Object.prototype,fR=uR.hasOwnProperty;function pR(i){if(!Gf(i))return j0(i);var v=[];for(var e in Object(i))fR.call(i,e)&&e!="constructor"&&v.push(e);return v}var q0=pR;function cR(i){return xs(i)?kh(i):q0(i)}var Bf=cR;function hR(i){var v=[];if(i!=null)for(var e in Object(i))v.push(e);return v}var K0=hR;var dR=Object.prototype,gR=dR.hasOwnProperty;function ER(i){if(!Wt(i))return K0(i);var v=Gf(i),e=[];for(var N in i)N=="constructor"&&(v||!gR.call(i,N))||e.push(N);return e}var ex=ER;function vR(i){return xs(i)?kh(i,!0):ex(i)}var _h=vR;var mR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xR=/^\w*$/;function CR(i,v){if(qr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||qs(i)?!0:xR.test(i)||!mR.test(i)||v!=null&&i in Object(v)}var Df=CR;var AR=wi(Object,"create"),wo=AR;function IR(){this.__data__=wo?wo(null):{},this.size=0}var rx=IR;function NR(i){var v=this.has(i)&&delete this.__data__[i];return this.size-=v?1:0,v}var tx=NR;var bR="__lodash_hash_undefined__",TR=Object.prototype,RR=TR.hasOwnProperty;function yR(i){var v=this.__data__;if(wo){var e=v[i];return e===bR?void 0:e}return RR.call(v,i)?v[i]:void 0}var ix=yR;var SR=Object.prototype,LR=SR.hasOwnProperty;function wR(i){var v=this.__data__;return wo?v[i]!==void 0:LR.call(v,i)}var sx=wR;var OR="__lodash_hash_undefined__";function UR(i,v){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=wo&&v===void 0?OR:v,this}var nx=UR;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 GR(){this.__data__=[],this.size=0}var ox=GR;function FR(i,v){for(var e=i.length;e--;)if(Mn(i[e][0],v))return e;return-1}var va=FR;var BR=Array.prototype,DR=BR.splice;function VR(i){var v=this.__data__,e=va(v,i);if(e<0)return!1;var N=v.length-1;return e==N?v.pop():DR.call(v,e,1),--this.size,!0}var ax=VR;function MR(i){var v=this.__data__,e=va(v,i);return e<0?void 0:v[e][1]}var lx=MR;function WR(i){return va(this.__data__,i)>-1}var ux=WR;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 fx=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=ox;Mf.prototype.delete=ax;Mf.prototype.get=lx;Mf.prototype.has=ux;Mf.prototype.set=fx;var ma=Mf;var ZR=wi(yt,"Map"),xa=ZR;function kR(){this.size=0,this.__data__={hash:new dv,map:new(xa||ma),string:new dv}}var px=kR;function QR(i){var v=typeof i;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?i!=="__proto__":i===null}var cx=QR;function _R(i,v){var e=i.__data__;return cx(v)?e[typeof v=="string"?"string":"hash"]:e.map}var Ca=_R;function HR(i){var v=Ca(this,i).delete(i);return this.size-=v?1:0,v}var hx=HR;function XR(i){return Ca(this,i).get(i)}var dx=XR;function YR(i){return Ca(this,i).has(i)}var gx=YR;function $R(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=$R;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 JR="Expected a function";function gv(i,v){if(typeof i!="function"||v!=null&&typeof v!="function")throw new TypeError(JR);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 G=i.apply(this,N);return e.cache=w.set(R,G)||w,G};return e.cache=new(gv.Cache||Hl),e}gv.Cache=Hl;var vx=gv;var zR=500;function jR(i){var v=vx(i,function(N){return e.size===zR&&e.clear(),N}),e=v.cache;return v}var mx=jR;var qR=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,KR=/\\(\\)?/g,ey=mx(function(i){var v=[];return i.charCodeAt(0)===46&&v.push(""),i.replace(qR,function(e,N,R,w){v.push(R?w.replace(KR,"$1"):N||e)}),v}),xx=ey;function ry(i){return i==null?"":m0(i)}var Hh=ry;function ty(i,v){return qr(i)?i:Df(i,v)?[i]:xx(Hh(i))}var Xh=ty;var iy=1/0;function sy(i){if(typeof i=="string"||qs(i))return i;var v=i+"";return v=="0"&&1/i==-iy?"-0":v}var Aa=sy;function ny(i,v){v=Xh(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=ny;function oy(i,v,e){var N=i==null?void 0:Pf(i,v);return N===void 0?e:N}var Cx=oy;function ay(i,v){for(var e=-1,N=v.length,R=i.length;++e<N;)i[R+e]=v[e];return i}var Yh=ay;var Ax=di?di.isConcatSpreadable:void 0;function ly(i){return qr(i)||Lo(i)||!!(Ax&&i&&i[Ax])}var Ix=ly;function Nx(i,v,e,N,R){var w=-1,G=i.length;for(e||(e=Ix),R||(R=[]);++w<G;){var V=i[w];v>0&&e(V)?v>1?Nx(V,v-1,e,N,R):Yh(R,V):N||(R[R.length]=V)}return R}var bx=Nx;var uy=Qh(Object.getPrototypeOf,Object),$h=uy;var fy="[object Object]",py=Function.prototype,cy=Object.prototype,Tx=py.toString,hy=cy.hasOwnProperty,dy=Tx.call(Object);function gy(i){if(!gi(i)||qi(i)!=fy)return!1;var v=$h(i);if(v===null)return!0;var e=hy.call(v,"constructor")&&v.constructor;return typeof e=="function"&&e instanceof e&&Tx.call(e)==dy}var Rx=gy;function Ey(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 yx=Ey;function vy(i){return function(v){return i?.[v]}}var Sx=vy;function my(){this.__data__=new ma,this.size=0}var Lx=my;function xy(i){var v=this.__data__,e=v.delete(i);return this.size=v.size,e}var wx=xy;function Cy(i){return this.__data__.get(i)}var Ox=Cy;function Ay(i){return this.__data__.has(i)}var Ux=Ay;var Iy=200;function Ny(i,v){var e=this.__data__;if(e instanceof ma){var N=e.__data__;if(!xa||N.length<Iy-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=Ny;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,by=Fx&&Fx.exports===Vx,Bx=by?yt.Buffer:void 0,Dx=Bx?Bx.allocUnsafe:void 0;function Ty(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=Ty;function Ry(i,v){for(var e=-1,N=i==null?0:i.length,R=0,w=[];++e<N;){var G=i[e];v(G,e,i)&&(w[R++]=G)}return w}var Wx=Ry;function yy(){return[]}var Px=yy;var Sy=Object.prototype,Ly=Sy.propertyIsEnumerable,Zx=Object.getOwnPropertySymbols,wy=Zx?function(i){return i==null?[]:(i=Object(i),Wx(Zx(i),function(v){return Ly.call(i,v)}))}:Px,kx=wy;function Oy(i,v,e){var N=v(i);return qr(i)?N:Yh(N,e(i))}var Qx=Oy;function Uy(i){return Qx(i,Bf,kx)}var Ev=Uy;var Gy=wi(yt,"DataView"),Jh=Gy;var Fy=wi(yt,"Promise"),zh=Fy;var By=wi(yt,"Set"),jh=By;var _x="[object Map]",Dy="[object Object]",Hx="[object Promise]",Xx="[object Set]",Yx="[object WeakMap]",$x="[object DataView]",Vy=So(Jh),My=So(xa),Wy=So(zh),Py=So(jh),Zy=So(Mh),Xl=qi;(Jh&&Xl(new Jh(new ArrayBuffer(1)))!=$x||xa&&Xl(new xa)!=_x||zh&&Xl(zh.resolve())!=Hx||jh&&Xl(new jh)!=Xx||Mh&&Xl(new Mh)!=Yx)&&(Xl=function(i){var v=qi(i),e=v==Dy?i.constructor:void 0,N=e?So(e):"";if(N)switch(N){case Vy:return $x;case My:return _x;case Wy:return Hx;case Py:return Xx;case Zy:return Yx}return v});var vv=Xl;var ky=yt.Uint8Array,kf=ky;function Qy(i){var v=new i.constructor(i.byteLength);return new kf(v).set(new kf(i)),v}var Jx=Qy;function _y(i,v){var e=v?Jx(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var zx=_y;function Hy(i){return typeof i.constructor=="function"&&!Gf(i)?O0($h(i)):{}}var jx=Hy;var Xy="__lodash_hash_undefined__";function Yy(i){return this.__data__.set(i,Xy),this}var qx=Yy;function $y(i){return this.__data__.has(i)}var Kx=$y;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 Jy(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=Jy;function zy(i,v){return i.has(v)}var tC=zy;var jy=1,qy=2;function Ky(i,v,e,N,R,w){var G=e&jy,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&qy?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,X){if(!tC(M,X)&&(z===D||R(z,D,e,N,w)))return M.push(X)})){J=!1;break}}else if(!(z===$||R(z,$,e,N,w))){J=!1;break}}return w.delete(i),w.delete(v),J}var Kh=Ky;function eS(i){var v=-1,e=Array(i.size);return i.forEach(function(N,R){e[++v]=[R,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,R,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,R,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,R,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],X=v[J];if(N)var q=G?N(X,D,J,v,i,w):N(D,X,J,i,v,w);if(!(q===void 0?D===X||R(D,X,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,R,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,R,w):oC(i,v,Z,e,N,R,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),R($,B,e,N,w)}}return J?(w||(w=new Ia),aC(i,v,e,N,R,w)):!1}var pC=IS;function cC(i,v,e,N,R){return i===v?!0:i==null||v==null||!gi(i)&&!gi(v)?i!==i&&v!==v:pC(i,v,e,N,cC,R)}var rd=cC;var NS=1,bS=2;function TS(i,v,e,N){var R=e.length,w=R,G=!N;if(i==null)return!w;for(i=Object(i);R--;){var V=e[R];if(G&&V[2]?V[1]!==i[V[0]]:!(V[0]in i))return!1}for(;++R<w;){V=e[R];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 RS(i){return i===i&&!Wt(i)}var td=RS;function yS(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 dC=yS;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=Xh(v,i);for(var N=-1,R=v.length,w=!1;++N<R;){var G=Aa(v[N]);if(!(w=i!=null&&e(i,G)))break;i=i[G]}return w||++N!=R?w:(R=i==null?0:i.length,!!R&&Uf(R)&&wf(G,R)&&(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 R=-1,w=Object(v),G=N(v),V=G.length;V--;){var Z=G[i?V:++R];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 R=e.length,w=v?R:-1,G=Object(e);(v?w--:++w<R)&&N(G[w],w,G)!==!1;);return e}}var RC=QS;var _S=RC(TC),yC=_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 XS(i){return gi(i)&&xs(i)}var SC=XS;function YS(i,v){if(!(v==="constructor"&&typeof i[v]=="function")&&v!="__proto__")return i[v]}var bh=YS;function $S(i){return W0(i,_h(i))}var LC=$S;function JS(i,v,e,N,R,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)):_=[]:Rx(Z)||Lo(Z)?(_=V,Lo(V)?_=LC(V):(!Wt(V)||Kr(V))&&(_=jx(Z))):W=!1}W&&(G.set(Z,_),R(_,Z,N,w,G),G.delete(Z)),Nh(i,e,_)}var wC=JS;function OC(i,v,e,N,R){i!==v&&sd(v,function(w,G){if(R||(R=new Ia),Wt(w))wC(i,v,G,e,OC,N,R);else{var V=N?N(bh(i,G),w,G+"",i,v,R):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={"&":"&","<":"<",">":">",'"':""","'":"'"},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 yC(i,function(R,w,G){N[++e]=v(R,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,R=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||!R)return 1;if(!N&&!w&&!H&&i<v||H&&e&&R&&!N&&!w||V&&e&&R||!G&&R||!Z)return-1}return 0}var DC=s1;function n1(i,v,e){for(var N=-1,R=i.criteria,w=v.criteria,G=R.length,V=e.length;++N<G;){var Z=DC(R[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 R=FC(i,function(w,G,V){var Z=Sf(v,function(H){return H(w)});return{criteria:Z,index:++N,value:w}});return BC(R,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),yx(i,0,v<0?0:v)):[]}var Av=l1;var Iv=Xt(Bh());function Rh(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({},Rh(i,i.config.requestConfig),Rh(i,v));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let R=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 X=Kr(e.basicAuth)?e.basicAuth(i):e.basicAuth;X&&X.username&&X.password&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):Z.Authorization=u1(X.username,X.password))}catch(_){console.warn("Failed to configure authentication:",_)}return H&&(V=!0),{reqMethod:w,url:R,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 R=Nv(i,v);if(!R)return;let w=new AbortController,G=e?.customAccept||R.accept,V={method:R.reqMethod,headers:{Accept:G,...R.headers||{}},credentials:R.withCredentials?"include":"same-origin",signal:w.signal,mode:"cors"};V?.headers&&R.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(X=>Z.append(B,X)):Z.append(B,D)}},_=z=>z.query!==void 0?"query":z.update!==void 0?"update":"query";if(e?.customQuery){let z=_(R.args);Z.append(z,e.customQuery),H(R.args,["query","update"])}else H(R.args);if(R.reqMethod==="POST")V.body=Z.toString();else{let z=new URL(R.url);Z.forEach(($,B)=>{z.searchParams.append(B,$)}),R.url=z.toString()}let W=new Request(R.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(R){if(!(R instanceof Error&&R.message==="Aborted"))if(R instanceof Error&&!("status"in R)){let w=R;(R.message.includes("Failed to fetch")||R.message.includes("NetworkError"))&&(w.message=`${R.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),i.emit("queryResponse",w,Date.now()-N)}else i.emit("queryResponse",R,Date.now()-N);throw i.emit("error",R),R}}function PC(i,v){var e=i.getQueryMode(),N={};let R=Rh(i,v);var w=Kr(R.queryArgument)?R.queryArgument(i):R.queryArgument;w||(w=i.getQueryMode()),N[w]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let G=Kr(R.namedGraphs)?R.namedGraphs(i):R.namedGraphs;if(G&&G.length>0){let H=e==="query"?"named-graph-uri":"using-named-graph-uri ";N[H]=G}let V=Kr(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(V&&V.length>0){let H=e=="query"?"default-graph-uri":"using-graph-uri ";N[H]=V}let Z=Kr(R.args)?R.args(i):R.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=Rh(i,v);var N=null;if(i.getQueryMode()=="update")N=Kr(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?N=Kr(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Kr(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function 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 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>',XC='<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 yv='<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,G=0;return e===void 0&&(e=0),e===v.length?N.words:(R=v[e],w=N.children[R],w!==void 0&&(G=w.countWord(v,e+1)),G)}countPrefix(v,e){if(v.length==0)return 0;var N=this,G,R,w=0;if(e===void 0&&(e=0),e===v.length)return N.prefixes;var G=v[e];return R=N.children[G],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 lA=Xt(iA());var wv=Xt(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 G=0;G<R.length;G++){let V=R[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 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 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 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"},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 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 G=this.yasqe.getDoc().getCursor().line;return v.to?R={ch:v?.to?.ch||this.yasqe.getCompleteToken().end,line:G}:v.string.length>0?R={ch:this.yasqe.getCompleteToken().end,line:G}: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(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});R.async=!1;var w={closeCharacters:/[\s>"]/,completeSingle:!1,hint:R,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 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 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(R,"Failed fetching suggestions")})},uA=[sA,nA,oA,aA];var fA=Xt(Bh()),dd=Xt(si());function Ov(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
30
|
+
`+O+"}":"{"+D.join(",")+"}",gap=O,R}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,m,e){var N;if(gap="",indent="",typeof e=="number")for(N=0;N<e;N+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=m,m&&typeof m!="function"&&(typeof m!="object"||typeof m.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,m){var e,N,R=i[m];if(R&&typeof R=="object")for(e in R)Object.prototype.hasOwnProperty.call(R,e)&&(N=walk(R,e),N!==void 0?R[e]=N:delete R[e]);return reviver.call(i,m,R)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(i){return"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var $v=br((TL,Jv)=>{Jv.exports=VN;function VN(){return Yv(),{}}});var jv=br((RL,zv)=>{var DN=bv(),MN=Xv(),WN=[$v()];zv.exports=DN.createStore(MN,WN)});var e0=br((UL,Kv)=>{"use strict";Kv.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,m=>`%${m.charCodeAt(0).toString(16).toUpperCase()}`)});var n0=br((FL,s0)=>{"use strict";var i0="%[a-f0-9]{2}",r0=new RegExp("("+i0+")|([^%]+?)","gi"),t0=new RegExp("("+i0+")+","gi");function dm(i,m){try{return[decodeURIComponent(i.join(""))]}catch{}if(i.length===1)return i;m=m||1;var e=i.slice(0,m),N=i.slice(m);return Array.prototype.concat.call([],dm(e),dm(N))}function PN(i){try{return decodeURIComponent(i)}catch{for(var m=i.match(r0)||[],e=1;e<m.length;e++)i=dm(m,e).join(""),m=i.match(r0)||[];return i}}function kN(i){for(var m={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=t0.exec(i);e;){try{m[e[0]]=decodeURIComponent(e[0])}catch{var N=PN(e[0]);N!==e[0]&&(m[e[0]]=N)}e=t0.exec(i)}m["%C2"]="\uFFFD";for(var R=Object.keys(m),L=0;L<R.length;L++){var O=R[L];i=i.replace(new RegExp(O,"g"),m[O])}return i}s0.exports=function(i){if(typeof i!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof i+"`");try{return i=i.replace(/\+/g," "),decodeURIComponent(i)}catch{return kN(i)}}});var a0=br((GL,o0)=>{"use strict";o0.exports=(i,m)=>{if(!(typeof i=="string"&&typeof m=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(m==="")return[i];let e=i.indexOf(m);return e===-1?[i]:[i.slice(0,e),i.slice(e+m.length)]}});var u0=br((BL,l0)=>{"use strict";l0.exports=function(i,m){for(var e={},N=Object.keys(i),R=Array.isArray(m),L=0;L<N.length;L++){var O=N[L],D=i[O];(R?m.indexOf(O)!==-1:m(O,D,i))&&(e[O]=D)}return e}});var Zh=br(wi=>{"use strict";var QN=e0(),_N=n0(),c0=a0(),HN=u0(),XN=i=>i==null;function YN(i){switch(i.arrayFormat){case"index":return m=>(e,N)=>{let R=e.length;return N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(m,i),"[",R,"]"].join("")]:[...e,[qt(m,i),"[",qt(R,i),"]=",qt(N,i)].join("")]};case"bracket":return m=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(m,i),"[]"].join("")]:[...e,[qt(m,i),"[]=",qt(N,i)].join("")];case"comma":case"separator":return m=>(e,N)=>N==null||N.length===0?e:e.length===0?[[qt(m,i),"=",qt(N,i)].join("")]:[[e,qt(N,i)].join(i.arrayFormatSeparator)];default:return m=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,qt(m,i)]:[...e,[qt(m,i),"=",qt(N,i)].join("")]}}function JN(i){let m;switch(i.arrayFormat){case"index":return(e,N,R)=>{if(m=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!m){R[e]=N;return}R[e]===void 0&&(R[e]={}),R[e][m[1]]=N};case"bracket":return(e,N,R)=>{if(m=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!m){R[e]=N;return}if(R[e]===void 0){R[e]=[N];return}R[e]=[].concat(R[e],N)};case"comma":case"separator":return(e,N,R)=>{let L=typeof N=="string"&&N.includes(i.arrayFormatSeparator),O=typeof N=="string"&&!L&&Hl(N,i).includes(i.arrayFormatSeparator);N=O?Hl(N,i):N;let D=L||O?N.split(i.arrayFormatSeparator).map(Z=>Hl(Z,i)):N===null?N:Hl(N,i);R[e]=D};default:return(e,N,R)=>{if(R[e]===void 0){R[e]=N;return}R[e]=[].concat(R[e],N)}}}function p0(i){if(typeof i!="string"||i.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function qt(i,m){return m.encode?m.strict?QN(i):encodeURIComponent(i):i}function Hl(i,m){return m.decode?_N(i):i}function h0(i){return Array.isArray(i)?i.sort():typeof i=="object"?h0(Object.keys(i)).sort((m,e)=>Number(m)-Number(e)).map(m=>i[m]):i}function d0(i){let m=i.indexOf("#");return m!==-1&&(i=i.slice(0,m)),i}function $N(i){let m="",e=i.indexOf("#");return e!==-1&&(m=i.slice(e)),m}function g0(i){i=d0(i);let m=i.indexOf("?");return m===-1?"":i.slice(m+1)}function f0(i,m){return m.parseNumbers&&!Number.isNaN(Number(i))&&typeof i=="string"&&i.trim()!==""?i=Number(i):m.parseBooleans&&i!==null&&(i.toLowerCase()==="true"||i.toLowerCase()==="false")&&(i=i.toLowerCase()==="true"),i}function E0(i,m){m=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},m),p0(m.arrayFormatSeparator);let e=JN(m),N=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return N;for(let R of i.split("&")){if(R==="")continue;let[L,O]=c0(m.decode?R.replace(/\+/g," "):R,"=");O=O===void 0?null:["comma","separator"].includes(m.arrayFormat)?O:Hl(O,m),e(Hl(L,m),O,N)}for(let R of Object.keys(N)){let L=N[R];if(typeof L=="object"&&L!==null)for(let O of Object.keys(L))L[O]=f0(L[O],m);else N[R]=f0(L,m)}return m.sort===!1?N:(m.sort===!0?Object.keys(N).sort():Object.keys(N).sort(m.sort)).reduce((R,L)=>{let O=N[L];return O&&typeof O=="object"&&!Array.isArray(O)?R[L]=h0(O):R[L]=O,R},Object.create(null))}wi.extract=g0;wi.parse=E0;wi.stringify=(i,m)=>{if(!i)return"";m=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},m),p0(m.arrayFormatSeparator);let e=O=>m.skipNull&&XN(i[O])||m.skipEmptyString&&i[O]==="",N=YN(m),R={};for(let O of Object.keys(i))e(O)||(R[O]=i[O]);let L=Object.keys(R);return m.sort!==!1&&L.sort(m.sort),L.map(O=>{let D=i[O];return D===void 0?"":D===null?qt(O,m):Array.isArray(D)?D.reduce(N(O),[]).join("&"):qt(O,m)+"="+qt(D,m)}).filter(O=>O.length>0).join("&")};wi.parseUrl=(i,m)=>{m=Object.assign({decode:!0},m);let[e,N]=c0(i,"#");return Object.assign({url:e.split("?")[0]||"",query:E0(g0(i),m)},m&&m.parseFragmentIdentifier&&N?{fragmentIdentifier:Hl(N,m)}:{})};wi.stringifyUrl=(i,m)=>{m=Object.assign({encode:!0,strict:!0},m);let e=d0(i.url).split("?")[0]||"",N=wi.extract(i.url),R=wi.parse(N,{sort:!1}),L=Object.assign(R,i.query),O=wi.stringify(L,m);O&&(O=`?${O}`);let D=$N(i.url);return i.fragmentIdentifier&&(D=`#${qt(i.fragmentIdentifier,m)}`),`${e}${O}${D}`};wi.pick=(i,m,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:N,query:R,fragmentIdentifier:L}=wi.parseUrl(i,e);return wi.stringifyUrl({url:N,query:HN(R,m),fragmentIdentifier:L},e)};wi.exclude=(i,m,e)=>{let N=Array.isArray(m)?R=>!m.includes(R):(R,L)=>!m(R,L);return wi.pick(i,N,e)}});var uI=br((RD,Gm)=>{"use strict";var Jf=typeof Reflect=="object"?Reflect:null,KC=Jf&&typeof Jf.apply=="function"?Jf.apply:function(m,e,N){return Function.prototype.apply.call(m,e,N)},pd;Jf&&typeof Jf.ownKeys=="function"?pd=Jf.ownKeys:Object.getOwnPropertySymbols?pd=function(m){return Object.getOwnPropertyNames(m).concat(Object.getOwnPropertySymbols(m))}:pd=function(m){return Object.getOwnPropertyNames(m)};function m1(i){console&&console.warn&&console.warn(i)}var rI=Number.isNaN||function(m){return m!==m};function wr(){wr.init.call(this)}Gm.exports=wr;Gm.exports.once=I1;wr.EventEmitter=wr;wr.prototype._events=void 0;wr.prototype._eventsCount=0;wr.prototype._maxListeners=void 0;var eI=10;function hd(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(wr,"defaultMaxListeners",{enumerable:!0,get:function(){return eI},set:function(i){if(typeof i!="number"||i<0||rI(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");eI=i}});wr.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};wr.prototype.setMaxListeners=function(m){if(typeof m!="number"||m<0||rI(m))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+m+".");return this._maxListeners=m,this};function tI(i){return i._maxListeners===void 0?wr.defaultMaxListeners:i._maxListeners}wr.prototype.getMaxListeners=function(){return tI(this)};wr.prototype.emit=function(m){for(var e=[],N=1;N<arguments.length;N++)e.push(arguments[N]);var R=m==="error",L=this._events;if(L!==void 0)R=R&&L.error===void 0;else if(!R)return!1;if(R){var O;if(e.length>0&&(O=e[0]),O instanceof Error)throw O;var D=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw D.context=O,D}var Z=L[m];if(Z===void 0)return!1;if(typeof Z=="function")KC(Z,this,e);else for(var H=Z.length,Q=aI(Z,H),N=0;N<H;++N)KC(Q[N],this,e);return!0};function iI(i,m,e,N){var R,L,O;if(hd(e),L=i._events,L===void 0?(L=i._events=Object.create(null),i._eventsCount=0):(L.newListener!==void 0&&(i.emit("newListener",m,e.listener?e.listener:e),L=i._events),O=L[m]),O===void 0)O=L[m]=e,++i._eventsCount;else if(typeof O=="function"?O=L[m]=N?[e,O]:[O,e]:N?O.unshift(e):O.push(e),R=tI(i),R>0&&O.length>R&&!O.warned){O.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+O.length+" "+String(m)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=i,D.type=m,D.count=O.length,m1(D)}return i}wr.prototype.addListener=function(m,e){return iI(this,m,e,!1)};wr.prototype.on=wr.prototype.addListener;wr.prototype.prependListener=function(m,e){return iI(this,m,e,!0)};function v1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function sI(i,m,e){var N={fired:!1,wrapFn:void 0,target:i,type:m,listener:e},R=v1.bind(N);return R.listener=e,N.wrapFn=R,R}wr.prototype.once=function(m,e){return hd(e),this.on(m,sI(this,m,e)),this};wr.prototype.prependOnceListener=function(m,e){return hd(e),this.prependListener(m,sI(this,m,e)),this};wr.prototype.removeListener=function(m,e){var N,R,L,O,D;if(hd(e),R=this._events,R===void 0)return this;if(N=R[m],N===void 0)return this;if(N===e||N.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete R[m],R.removeListener&&this.emit("removeListener",m,N.listener||e));else if(typeof N!="function"){for(L=-1,O=N.length-1;O>=0;O--)if(N[O]===e||N[O].listener===e){D=N[O].listener,L=O;break}if(L<0)return this;L===0?N.shift():x1(N,L),N.length===1&&(R[m]=N[0]),R.removeListener!==void 0&&this.emit("removeListener",m,D||e)}return this};wr.prototype.off=wr.prototype.removeListener;wr.prototype.removeAllListeners=function(m){var e,N,R;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[m]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[m]),this;if(arguments.length===0){var L=Object.keys(N),O;for(R=0;R<L.length;++R)O=L[R],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=N[m],typeof e=="function")this.removeListener(m,e);else if(e!==void 0)for(R=e.length-1;R>=0;R--)this.removeListener(m,e[R]);return this};function nI(i,m,e){var N=i._events;if(N===void 0)return[];var R=N[m];return R===void 0?[]:typeof R=="function"?e?[R.listener||R]:[R]:e?C1(R):aI(R,R.length)}wr.prototype.listeners=function(m){return nI(this,m,!0)};wr.prototype.rawListeners=function(m){return nI(this,m,!1)};wr.listenerCount=function(i,m){return typeof i.listenerCount=="function"?i.listenerCount(m):oI.call(i,m)};wr.prototype.listenerCount=oI;function oI(i){var m=this._events;if(m!==void 0){var e=m[i];if(typeof e=="function")return 1;if(e!==void 0)return e.length}return 0}wr.prototype.eventNames=function(){return this._eventsCount>0?pd(this._events):[]};function aI(i,m){for(var e=new Array(m),N=0;N<m;++N)e[N]=i[N];return e}function x1(i,m){for(;m+1<i.length;m++)i[m]=i[m+1];i.pop()}function C1(i){for(var m=new Array(i.length),e=0;e<m.length;++e)m[e]=i[e].listener||i[e];return m}function I1(i,m){return new Promise(function(e,N){function R(O){i.removeListener(m,L),N(O)}function L(){typeof i.removeListener=="function"&&i.removeListener("error",R),e([].slice.call(arguments))}lI(i,m,L,{once:!0}),m!=="error"&&A1(i,R,{once:!0})})}function A1(i,m,e){typeof i.on=="function"&&lI(i,"error",m,e)}function lI(i,m,e,N){if(typeof i.on=="function")N.once?i.once(m,e):i.on(m,e);else if(typeof i.addEventListener=="function")i.addEventListener(m,function R(L){N.once&&i.removeEventListener(m,R),e(L)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var Mm=br((AI,NI)=>{(function(i){typeof AI=="object"&&typeof NI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(L,O,D,Z){if(D&&D.call){var H=D;D=null}else var H=R(L,D,"rangeFinder");typeof O=="number"&&(O=i.Pos(O,0));var Q=R(L,D,"minFoldSize");function W(Y){var B=H(L,O);if(!B||B.to.line-B.from.line<Q)return null;if(Z==="fold")return B;for(var V=L.findMarksAt(B.from),X=0;X<V.length;++X)if(V[X].__isFold){if(!Y)return null;B.cleared=!0,V[X].clear()}return B}var $=W(!0);if(R(L,D,"scanUp"))for(;!$&&O.line>L.firstLine();)O=i.Pos(O.line-1,0),$=W(!1);if(!(!$||$.cleared||Z==="unfold")){var M=e(L,D,$);i.on(M,"mousedown",function(Y){z.clear(),i.e_preventDefault(Y)});var z=L.markText($.from,$.to,{replacedWith:M,clearOnEnter:R(L,D,"clearOnEnter"),__isFold:!0});z.on("clear",function(Y,B){i.signal(L,"unfold",L,Y,B)}),i.signal(L,"fold",L,$.from,$.to)}}function e(L,O,D){var Z=R(L,O,"widget");if(typeof Z=="function"&&(Z=Z(D.from,D.to)),typeof Z=="string"){var H=document.createTextNode(Z);Z=document.createElement("span"),Z.appendChild(H),Z.className="CodeMirror-foldmarker"}else Z&&(Z=Z.cloneNode(!0));return Z}i.newFoldFunction=function(L,O){return function(D,Z){m(D,Z,{rangeFinder:L,widget:O})}},i.defineExtension("foldCode",function(L,O,D){m(this,L,O,D)}),i.defineExtension("isFolded",function(L){for(var O=this.findMarksAt(L),D=0;D<O.length;++D)if(O[D].__isFold)return!0}),i.commands.toggleFold=function(L){L.foldCode(L.getCursor())},i.commands.fold=function(L){L.foldCode(L.getCursor(),null,"fold")},i.commands.unfold=function(L){L.foldCode(L.getCursor(),{scanUp:!1},"unfold")},i.commands.foldAll=function(L){L.operation(function(){for(var O=L.firstLine(),D=L.lastLine();O<=D;O++)L.foldCode(i.Pos(O,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(L){L.operation(function(){for(var O=L.firstLine(),D=L.lastLine();O<=D;O++)L.foldCode(i.Pos(O,0),{scanUp:!1},"unfold")})},i.registerHelper("fold","combine",function(){var L=Array.prototype.slice.call(arguments,0);return function(O,D){for(var Z=0;Z<L.length;++Z){var H=L[Z](O,D);if(H)return H}}}),i.registerHelper("fold","auto",function(L,O){for(var D=L.getHelpers(O,"fold"),Z=0;Z<D.length;Z++){var H=D[Z](L,O);if(H)return H}});var N={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function R(L,O,D){if(O&&O[D]!==void 0)return O[D];var Z=L.options.foldOptions;return Z&&Z[D]!==void 0?Z[D]:N[D]}i.defineExtension("foldOption",function(L,O){return R(this,L,O)})})});var RI=br((bI,TI)=>{(function(i){typeof bI=="object"&&typeof TI=="object"?i(si(),Mm()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(z,Y,B){B&&B!=i.Init&&(z.clearGutter(z.state.foldGutter.options.gutter),z.state.foldGutter=null,z.off("gutterClick",H),z.off("changes",W),z.off("viewportChange",$),z.off("fold",M),z.off("unfold",M),z.off("swapDoc",W),z.off("optionChange",Q)),Y&&(z.state.foldGutter=new e(N(Y)),Z(z),z.on("gutterClick",H),z.on("changes",W),z.on("viewportChange",$),z.on("fold",M),z.on("unfold",M),z.on("swapDoc",W),z.on("optionChange",Q))});var m=i.Pos;function e(z){this.options=z,this.from=this.to=0}function N(z){return z===!0&&(z={}),z.gutter==null&&(z.gutter="CodeMirror-foldgutter"),z.indicatorOpen==null&&(z.indicatorOpen="CodeMirror-foldgutter-open"),z.indicatorFolded==null&&(z.indicatorFolded="CodeMirror-foldgutter-folded"),z}function R(z,Y){for(var B=z.findMarks(m(Y,0),m(Y+1,0)),V=0;V<B.length;++V)if(B[V].__isFold){var X=B[V].find(-1);if(X&&X.line===Y)return B[V]}}function L(z){if(typeof z=="string"){var Y=document.createElement("div");return Y.className=z+" CodeMirror-guttermarker-subtle",Y}else return z.cloneNode(!0)}function O(z,Y,B){var V=z.state.foldGutter.options,X=Y-1,q=z.foldOption(V,"minFoldSize"),te=z.foldOption(V,"rangeFinder"),ie=typeof V.indicatorFolded=="string"&&D(V.indicatorFolded),ae=typeof V.indicatorOpen=="string"&&D(V.indicatorOpen);z.eachLine(Y,B,function(fe){++X;var ye=null,Re=fe.gutterMarkers;if(Re&&(Re=Re[V.gutter]),R(z,X)){if(ie&&Re&&ie.test(Re.className))return;ye=L(V.indicatorFolded)}else{var Le=m(X,0),Ve=te&&te(z,Le);if(Ve&&Ve.to.line-Ve.from.line>=q){if(ae&&Re&&ae.test(Re.className))return;ye=L(V.indicatorOpen)}}!ye&&!Re||z.setGutterMarker(fe,V.gutter,ye)})}function D(z){return new RegExp("(^|\\s)"+z+"(?:$|\\s)\\s*")}function Z(z){var Y=z.getViewport(),B=z.state.foldGutter;B&&(z.operation(function(){O(z,Y.from,Y.to)}),B.from=Y.from,B.to=Y.to)}function H(z,Y,B){var V=z.state.foldGutter;if(V){var X=V.options;if(B==X.gutter){var q=R(z,Y);q?q.clear():z.foldCode(m(Y,0),X)}}}function Q(z,Y){Y=="mode"&&W(z)}function W(z){var Y=z.state.foldGutter;if(Y){var B=Y.options;Y.from=Y.to=0,clearTimeout(Y.changeUpdate),Y.changeUpdate=setTimeout(function(){Z(z)},B.foldOnChangeTimeSpan||600)}}function $(z){var Y=z.state.foldGutter;if(Y){var B=Y.options;clearTimeout(Y.changeUpdate),Y.changeUpdate=setTimeout(function(){var V=z.getViewport();Y.from==Y.to||V.from-Y.to>20||Y.from-V.to>20?Z(z):z.operation(function(){V.from<Y.from&&(O(z,V.from,Y.from),Y.from=V.from),V.to>Y.to&&(O(z,Y.to,V.to),Y.to=V.to)})},B.updateViewportTimeSpan||400)}}function M(z,Y){var B=z.state.foldGutter;if(B){var V=Y.line;V>=B.from&&V<B.to&&O(z,V,V+1)}}})});var LI=br((yI,SI)=>{(function(i){typeof yI=="object"&&typeof SI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(B,V){return B.line-V.line||B.ch-V.ch}var N="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",R=N+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",L=new RegExp("<(/?)(["+N+"]["+R+"]*)","g");function O(B,V,X,q){this.line=V,this.ch=X,this.cm=B,this.text=B.getLine(V),this.min=q?Math.max(q.from,B.firstLine()):B.firstLine(),this.max=q?Math.min(q.to-1,B.lastLine()):B.lastLine()}function D(B,V){var X=B.cm.getTokenTypeAt(m(B.line,V));return X&&/\btag\b/.test(X)}function Z(B){if(!(B.line>=B.max))return B.ch=0,B.text=B.cm.getLine(++B.line),!0}function H(B){if(!(B.line<=B.min))return B.text=B.cm.getLine(--B.line),B.ch=B.text.length,!0}function Q(B){for(;;){var V=B.text.indexOf(">",B.ch);if(V==-1){if(Z(B))continue;return}if(!D(B,V+1)){B.ch=V+1;continue}var X=B.text.lastIndexOf("/",V),q=X>-1&&!/\S/.test(B.text.slice(X+1,V));return B.ch=V+1,q?"selfClose":"regular"}}function W(B){for(;;){var V=B.ch?B.text.lastIndexOf("<",B.ch-1):-1;if(V==-1){if(H(B))continue;return}if(!D(B,V+1)){B.ch=V;continue}L.lastIndex=V,B.ch=V;var X=L.exec(B.text);if(X&&X.index==V)return X}}function $(B){for(;;){L.lastIndex=B.ch;var V=L.exec(B.text);if(!V){if(Z(B))continue;return}if(!D(B,V.index+1)){B.ch=V.index+1;continue}return B.ch=V.index+V[0].length,V}}function M(B){for(;;){var V=B.ch?B.text.lastIndexOf(">",B.ch-1):-1;if(V==-1){if(H(B))continue;return}if(!D(B,V+1)){B.ch=V;continue}var X=B.text.lastIndexOf("/",V),q=X>-1&&!/\S/.test(B.text.slice(X+1,V));return B.ch=V+1,q?"selfClose":"regular"}}function z(B,V){for(var X=[];;){var q=$(B),te,ie=B.line,ae=B.ch-(q?q[0].length:0);if(!q||!(te=Q(B)))return;if(te!="selfClose")if(q[1]){for(var fe=X.length-1;fe>=0;--fe)if(X[fe]==q[2]){X.length=fe;break}if(fe<0&&(!V||V==q[2]))return{tag:q[2],from:m(ie,ae),to:m(B.line,B.ch)}}else X.push(q[2])}}function Y(B,V){for(var X=[];;){var q=M(B);if(!q)return;if(q=="selfClose"){W(B);continue}var te=B.line,ie=B.ch,ae=W(B);if(!ae)return;if(ae[1])X.push(ae[2]);else{for(var fe=X.length-1;fe>=0;--fe)if(X[fe]==ae[2]){X.length=fe;break}if(fe<0&&(!V||V==ae[2]))return{tag:ae[2],from:m(B.line,B.ch),to:m(te,ie)}}}}i.registerHelper("fold","xml",function(B,V){for(var X=new O(B,V.line,0);;){var q=$(X);if(!q||X.line!=V.line)return;var te=Q(X);if(!te)return;if(!q[1]&&te!="selfClose"){var ie=m(X.line,X.ch),ae=z(X,q[2]);return ae&&e(ae.from,ie)>0?{from:ie,to:ae.from}:null}}}),i.findMatchingTag=function(B,V,X){var q=new O(B,V.line,V.ch,X);if(!(q.text.indexOf(">")==-1&&q.text.indexOf("<")==-1)){var te=Q(q),ie=te&&m(q.line,q.ch),ae=te&&W(q);if(!(!te||!ae||e(q,V)>0)){var fe={from:m(q.line,q.ch),to:ie,tag:ae[2]};return te=="selfClose"?{open:fe,close:null,at:"open"}:ae[1]?{open:Y(q,ae[2]),close:fe,at:"close"}:(q=new O(B,ie.line,ie.ch,X),{open:fe,close:z(q,ae[2]),at:"open"})}}},i.findEnclosingTag=function(B,V,X,q){for(var te=new O(B,V.line,V.ch,X);;){var ie=Y(te,q);if(!ie)break;var ae=new O(B,V.line,V.ch,X),fe=z(ae,ie.tag);if(fe)return{open:ie,close:fe}}},i.scanForClosingTag=function(B,V,X,q){var te=new O(B,V.line,V.ch,q?{from:0,to:q}:null);return z(te,X)}})});var UI=br((wI,OI)=>{(function(i){typeof wI=="object"&&typeof OI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function m(e){return function(N,R){var L=R.line,O=N.getLine(L);function D(M){for(var z,Y=R.ch,B=0;;){var V=Y<=0?-1:O.lastIndexOf(M[0],Y-1);if(V==-1){if(B==1)break;B=1,Y=O.length;continue}if(B==1&&V<R.ch)break;if(z=N.getTokenTypeAt(i.Pos(L,V+1)),!/^(comment|string)/.test(z))return{ch:V+1,tokenType:z,pair:M};Y=V-1}}function Z(M){var z=1,Y=N.lastLine(),B,V=M.ch,X;e:for(var q=L;q<=Y;++q)for(var te=N.getLine(q),ie=q==L?V:0;;){var ae=te.indexOf(M.pair[0],ie),fe=te.indexOf(M.pair[1],ie);if(ae<0&&(ae=te.length),fe<0&&(fe=te.length),ie=Math.min(ae,fe),ie==te.length)break;if(N.getTokenTypeAt(i.Pos(q,ie+1))==M.tokenType){if(ie==ae)++z;else if(!--z){B=q,X=ie;break e}}++ie}return B==null||L==B?null:{from:i.Pos(L,V),to:i.Pos(B,X)}}for(var H=[],Q=0;Q<e.length;Q++){var W=D(e[Q]);W&&H.push(W)}H.sort(function(M,z){return M.ch-z.ch});for(var Q=0;Q<H.length;Q++){var $=Z(H[Q]);if($)return $}return null}}i.registerHelper("fold","brace",m([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",m([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,N){function R(Q){if(Q<e.firstLine()||Q>e.lastLine())return null;var W=e.getTokenAt(i.Pos(Q,1));if(/\S/.test(W.string)||(W=e.getTokenAt(i.Pos(Q,W.end+1))),W.type!="keyword"||W.string!="import")return null;for(var $=Q,M=Math.min(e.lastLine(),Q+10);$<=M;++$){var z=e.getLine($),Y=z.indexOf(";");if(Y!=-1)return{startCh:W.end,end:i.Pos($,Y)}}}var L=N.line,O=R(L),D;if(!O||R(L-1)||(D=R(L-2))&&D.end.line==L-1)return null;for(var Z=O.end;;){var H=R(Z.line+1);if(H==null)break;Z=H.end}return{from:e.clipPos(i.Pos(L,O.startCh+1)),to:Z}}),i.registerHelper("fold","include",function(e,N){function R(H){if(H<e.firstLine()||H>e.lastLine())return null;var Q=e.getTokenAt(i.Pos(H,1));if(/\S/.test(Q.string)||(Q=e.getTokenAt(i.Pos(H,Q.end+1))),Q.type=="meta"&&Q.string.slice(0,8)=="#include")return Q.start+8}var L=N.line,O=R(L);if(O==null||R(L-1)!=null)return null;for(var D=L;;){var Z=R(D+1);if(Z==null)break;++D}return{from:i.Pos(L,O+1),to:e.clipPos(i.Pos(D))}})})});var BI=br((FI,GI)=>{(function(i){typeof FI=="object"&&typeof GI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(Y,B,V){if(!B)return Y.showHint(V);V&&V.async&&(B.async=!0);var X={hint:B};if(V)for(var q in V)X[q]=V[q];return Y.showHint(X)},i.defineExtension("showHint",function(Y){Y=O(this,this.getCursor("start"),Y);var B=this.listSelections();if(!(B.length>1)){if(this.somethingSelected()){if(!Y.hint.supportsSelection)return;for(var V=0;V<B.length;V++)if(B[V].head.line!=B[V].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var X=this.state.completionActive=new N(this,Y);X.options.hint&&(i.signal(this,"startCompletion",this),X.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function N(Y,B){if(this.cm=Y,this.options=B,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var V=this;Y.on("cursorActivity",this.activityFunc=function(){V.cursorActivity()})}}var R=window.requestAnimationFrame||function(Y){return setTimeout(Y,1e3/60)},L=window.cancelAnimationFrame||clearTimeout;N.prototype={close:function(){this.active()&&(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&i.signal(this.data,"close"),this.widget&&this.widget.close(),i.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(Y,B){var V=Y.list[B],X=this;this.cm.operation(function(){V.hint?V.hint(X.cm,Y,V):X.cm.replaceRange(D(V),V.from||Y.from,V.to||Y.to,"complete"),i.signal(Y,"pick",V),X.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(L(this.debounce),this.debounce=0);var Y=this.startPos;this.data&&(Y=this.data.from);var B=this.cm.getCursor(),V=this.cm.getLine(B.line);if(B.line!=this.startPos.line||V.length-B.ch!=this.startLen-this.startPos.ch||B.ch<Y.ch||this.cm.somethingSelected()||!B.ch||this.options.closeCharacters.test(V.charAt(B.ch-1)))this.close();else{var X=this;this.debounce=R(function(){X.update()}),this.widget&&this.widget.disable()}},update:function(Y){if(this.tick!=null){var B=this,V=++this.tick;$(this.options.hint,this.cm,this.options,function(X){B.tick==V&&B.finishUpdate(X,Y)})}},finishUpdate:function(Y,B){this.data&&i.signal(this.data,"update");var V=this.widget&&this.widget.picked||B&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=Y,Y&&Y.list.length&&(V&&Y.list.length==1?this.pick(Y,0):(this.widget=new Q(this,Y),i.signal(Y,"shown")))}};function O(Y,B,V){var X=Y.options.hintOptions,q={};for(var te in z)q[te]=z[te];if(X)for(var te in X)X[te]!==void 0&&(q[te]=X[te]);if(V)for(var te in V)V[te]!==void 0&&(q[te]=V[te]);return q.hint.resolve&&(q.hint=q.hint.resolve(Y,B)),q}function D(Y){return typeof Y=="string"?Y:Y.text}function Z(Y,B){var V={Up:function(){B.moveFocus(-1)},Down:function(){B.moveFocus(1)},PageUp:function(){B.moveFocus(-B.menuSize()+1,!0)},PageDown:function(){B.moveFocus(B.menuSize()-1,!0)},Home:function(){B.setFocus(0)},End:function(){B.setFocus(B.length-1)},Enter:B.pick,Tab:B.pick,Esc:B.close},X=/Mac/.test(navigator.platform);X&&(V["Ctrl-P"]=function(){B.moveFocus(-1)},V["Ctrl-N"]=function(){B.moveFocus(1)});var q=Y.options.customKeys,te=q?{}:V;function ie(ye,Re){var Le;typeof Re!="string"?Le=function(Ve){return Re(Ve,B)}:V.hasOwnProperty(Re)?Le=V[Re]:Le=Re,te[ye]=Le}if(q)for(var ae in q)q.hasOwnProperty(ae)&&ie(ae,q[ae]);var fe=Y.options.extraKeys;if(fe)for(var ae in fe)fe.hasOwnProperty(ae)&&ie(ae,fe[ae]);return te}function H(Y,B){for(;B&&B!=Y;){if(B.nodeName.toUpperCase()==="LI"&&B.parentNode==Y)return B;B=B.parentNode}}function Q(Y,B){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=Y,this.data=B,this.picked=!1;var V=this,X=Y.cm,q=X.getInputField().ownerDocument,te=q.defaultView||q.parentWindow,ie=this.hints=q.createElement("ul");ie.setAttribute("role","listbox"),ie.setAttribute("aria-expanded","true"),ie.id=this.id;var ae=Y.cm.options.theme;ie.className="CodeMirror-hints "+ae,this.selectedHint=B.selectedHint||0;for(var fe=B.list,ye=0;ye<fe.length;++ye){var Re=ie.appendChild(q.createElement("li")),Le=fe[ye],Ve=m+(ye!=this.selectedHint?"":" "+e);Le.className!=null&&(Ve=Le.className+" "+Ve),Re.className=Ve,ye==this.selectedHint&&Re.setAttribute("aria-selected","true"),Re.id=this.id+"-"+ye,Re.setAttribute("role","option"),Le.render?Le.render(Re,B,Le):Re.appendChild(q.createTextNode(Le.displayText||D(Le))),Re.hintId=ye}var Je=Y.options.container||q.body,me=X.cursorCoords(Y.options.alignWithWord?B.from:null),xr=me.left,Cr=me.bottom,ur=!0,$r=0,ze=0;if(Je!==q.body){var St=["absolute","relative","fixed"].indexOf(te.getComputedStyle(Je).position)!==-1,Lt=St?Je:Je.offsetParent,pr=Lt.getBoundingClientRect(),wt=q.body.getBoundingClientRect();$r=pr.left-wt.left-Lt.scrollLeft,ze=pr.top-wt.top-Lt.scrollTop}ie.style.left=xr-$r+"px",ie.style.top=Cr-ze+"px";var or=te.innerWidth||Math.max(q.body.offsetWidth,q.documentElement.offsetWidth),ut=te.innerHeight||Math.max(q.body.offsetHeight,q.documentElement.offsetHeight);Je.appendChild(ie),X.getInputField().setAttribute("aria-autocomplete","list"),X.getInputField().setAttribute("aria-owns",this.id),X.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var je=Y.options.moveOnOverlap?ie.getBoundingClientRect():new DOMRect,zr=Y.options.paddingForScrollbar?ie.scrollHeight>ie.clientHeight+1:!1,Ir;setTimeout(function(){Ir=X.getScrollInfo()});var Pr=je.bottom-ut;if(Pr>0){var hr=je.bottom-je.top,Kt=je.top-(me.bottom-me.top)-2;ut-je.top<Kt?(hr>Kt&&(ie.style.height=(hr=Kt)+"px"),ie.style.top=(Cr=me.top-hr)-ze+"px",ur=!1):ie.style.height=ut-je.top-2+"px"}var Fe=je.right-or;if(zr&&(Fe+=X.display.nativeBarWidth),Fe>0&&(je.right-je.left>or&&(ie.style.width=or-5+"px",Fe-=je.right-je.left-or),ie.style.left=(xr=Math.max(me.left-Fe-$r,0))+"px"),zr)for(var pe=ie.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=X.display.nativeBarWidth+"px";if(X.addKeyMap(this.keyMap=Z(Y,{moveFocus:function(we,Ur){V.changeActive(V.selectedHint+we,Ur)},setFocus:function(we){V.changeActive(we)},menuSize:function(){return V.screenAmount()},length:fe.length,close:function(){Y.close()},pick:function(){V.pick()},data:B})),Y.options.closeOnUnfocus){var Er;X.on("blur",this.onBlur=function(){Er=setTimeout(function(){Y.close()},100)}),X.on("focus",this.onFocus=function(){clearTimeout(Er)})}X.on("scroll",this.onScroll=function(){var we=X.getScrollInfo(),Ur=X.getWrapperElement().getBoundingClientRect();Ir||(Ir=X.getScrollInfo());var ei=Cr+Ir.top-we.top,Ae=ei-(te.pageYOffset||(q.documentElement||q.body).scrollTop);if(ur||(Ae+=ie.offsetHeight),Ae<=Ur.top||Ae>=Ur.bottom)return Y.close();ie.style.top=ei+"px",ie.style.left=xr+Ir.left-we.left+"px"}),i.on(ie,"dblclick",function(we){var Ur=H(ie,we.target||we.srcElement);Ur&&Ur.hintId!=null&&(V.changeActive(Ur.hintId),V.pick())}),i.on(ie,"click",function(we){var Ur=H(ie,we.target||we.srcElement);Ur&&Ur.hintId!=null&&(V.changeActive(Ur.hintId),Y.options.completeOnSingleClick&&V.pick())}),i.on(ie,"mousedown",function(){setTimeout(function(){X.focus()},20)});var fr=this.getSelectedHintRange();return(fr.from!==0||fr.to!==0)&&this.scrollToActive(),i.signal(B,"select",fe[this.selectedHint],ie.childNodes[this.selectedHint]),!0}Q.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var Y=this.completion.cm.getInputField();Y.removeAttribute("aria-activedescendant"),Y.removeAttribute("aria-owns");var B=this.completion.cm;this.completion.options.closeOnUnfocus&&(B.off("blur",this.onBlur),B.off("focus",this.onFocus)),B.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var Y=this;this.keyMap={Enter:function(){Y.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(Y,B){if(Y>=this.data.list.length?Y=B?this.data.list.length-1:0:Y<0&&(Y=B?0:this.data.list.length-1),this.selectedHint!=Y){var V=this.hints.childNodes[this.selectedHint];V&&(V.className=V.className.replace(" "+e,""),V.removeAttribute("aria-selected")),V=this.hints.childNodes[this.selectedHint=Y],V.className+=" "+e,V.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",V.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],V)}},scrollToActive:function(){var Y=this.getSelectedHintRange(),B=this.hints.childNodes[Y.from],V=this.hints.childNodes[Y.to],X=this.hints.firstChild;B.offsetTop<this.hints.scrollTop?this.hints.scrollTop=B.offsetTop-X.offsetTop:V.offsetTop+V.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=V.offsetTop+V.offsetHeight-this.hints.clientHeight+X.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var Y=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-Y),to:Math.min(this.data.list.length-1,this.selectedHint+Y)}}};function W(Y,B){if(!Y.somethingSelected())return B;for(var V=[],X=0;X<B.length;X++)B[X].supportsSelection&&V.push(B[X]);return V}function $(Y,B,V,X){if(Y.async)Y(B,X,V);else{var q=Y(B,V);q&&q.then?q.then(X):X(q)}}function M(Y,B){var V=Y.getHelpers(B,"hint"),X;if(V.length){var q=function(te,ie,ae){var fe=W(te,V);function ye(Re){if(Re==fe.length)return ie(null);$(fe[Re],te,ae,function(Le){Le&&Le.list.length>0?ie(Le):ye(Re+1)})}ye(0)};return q.async=!0,q.supportsSelection=!0,q}else return(X=Y.getHelper(Y.getCursor(),"hintWords"))?function(te){return i.hint.fromList(te,{words:X})}:i.hint.anyword?function(te,ie){return i.hint.anyword(te,ie)}:function(){}}i.registerHelper("hint","auto",{resolve:M}),i.registerHelper("hint","fromList",function(Y,B){var V=Y.getCursor(),X=Y.getTokenAt(V),q,te=i.Pos(V.line,X.start),ie=V;X.start<V.ch&&/\w/.test(X.string.charAt(V.ch-X.start-1))?q=X.string.substr(0,V.ch-X.start):(q="",te=V);for(var ae=[],fe=0;fe<B.words.length;fe++){var ye=B.words[fe];ye.slice(0,q.length)==q&&ae.push(ye)}if(ae.length)return{list:ae,from:te,to:ie}}),i.commands.autocomplete=i.showHint;var z={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})});var Wm=br((VI,DI)=>{(function(i){typeof VI=="object"&&typeof DI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var m=i.Pos;function e(B){var V=B.flags;return V??(B.ignoreCase?"i":"")+(B.global?"g":"")+(B.multiline?"m":"")}function N(B,V){for(var X=e(B),q=X,te=0;te<V.length;te++)q.indexOf(V.charAt(te))==-1&&(q+=V.charAt(te));return X==q?B:new RegExp(B.source,q)}function R(B){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(B.source)}function L(B,V,X){V=N(V,"g");for(var q=X.line,te=X.ch,ie=B.lastLine();q<=ie;q++,te=0){V.lastIndex=te;var ae=B.getLine(q),fe=V.exec(ae);if(fe)return{from:m(q,fe.index),to:m(q,fe.index+fe[0].length),match:fe}}}function O(B,V,X){if(!R(V))return L(B,V,X);V=N(V,"gm");for(var q,te=1,ie=X.line,ae=B.lastLine();ie<=ae;){for(var fe=0;fe<te&&!(ie>ae);fe++){var ye=B.getLine(ie++);q=q==null?ye:q+`
|
|
31
|
+
`+ye}te=te*2,V.lastIndex=X.ch;var Re=V.exec(q);if(Re){var Le=q.slice(0,Re.index).split(`
|
|
32
|
+
`),Ve=Re[0].split(`
|
|
33
|
+
`),Je=X.line+Le.length-1,me=Le[Le.length-1].length;return{from:m(Je,me),to:m(Je+Ve.length-1,Ve.length==1?me+Ve[0].length:Ve[Ve.length-1].length),match:Re}}}}function D(B,V,X){for(var q,te=0;te<=B.length;){V.lastIndex=te;var ie=V.exec(B);if(!ie)break;var ae=ie.index+ie[0].length;if(ae>B.length-X)break;(!q||ae>q.index+q[0].length)&&(q=ie),te=ie.index+1}return q}function Z(B,V,X){V=N(V,"g");for(var q=X.line,te=X.ch,ie=B.firstLine();q>=ie;q--,te=-1){var ae=B.getLine(q),fe=D(ae,V,te<0?0:ae.length-te);if(fe)return{from:m(q,fe.index),to:m(q,fe.index+fe[0].length),match:fe}}}function H(B,V,X){if(!R(V))return Z(B,V,X);V=N(V,"gm");for(var q,te=1,ie=B.getLine(X.line).length-X.ch,ae=X.line,fe=B.firstLine();ae>=fe;){for(var ye=0;ye<te&&ae>=fe;ye++){var Re=B.getLine(ae--);q=q==null?Re:Re+`
|
|
34
|
+
`+q}te*=2;var Le=D(q,V,ie);if(Le){var Ve=q.slice(0,Le.index).split(`
|
|
35
|
+
`),Je=Le[0].split(`
|
|
36
|
+
`),me=ae+Ve.length,xr=Ve[Ve.length-1].length;return{from:m(me,xr),to:m(me+Je.length-1,Je.length==1?xr+Je[0].length:Je[Je.length-1].length),match:Le}}}}var Q,W;String.prototype.normalize?(Q=function(B){return B.normalize("NFD").toLowerCase()},W=function(B){return B.normalize("NFD")}):(Q=function(B){return B.toLowerCase()},W=function(B){return B});function $(B,V,X,q){if(B.length==V.length)return X;for(var te=0,ie=X+Math.max(0,B.length-V.length);;){if(te==ie)return te;var ae=te+ie>>1,fe=q(B.slice(0,ae)).length;if(fe==X)return ae;fe>X?ie=ae:te=ae+1}}function M(B,V,X,q){if(!V.length)return null;var te=q?Q:W,ie=te(V).split(/\r|\n\r?/);e:for(var ae=X.line,fe=X.ch,ye=B.lastLine()+1-ie.length;ae<=ye;ae++,fe=0){var Re=B.getLine(ae).slice(fe),Le=te(Re);if(ie.length==1){var Ve=Le.indexOf(ie[0]);if(Ve==-1)continue e;var X=$(Re,Le,Ve,te)+fe;return{from:m(ae,$(Re,Le,Ve,te)+fe),to:m(ae,$(Re,Le,Ve+ie[0].length,te)+fe)}}else{var Je=Le.length-ie[0].length;if(Le.slice(Je)!=ie[0])continue e;for(var me=1;me<ie.length-1;me++)if(te(B.getLine(ae+me))!=ie[me])continue e;var xr=B.getLine(ae+ie.length-1),Cr=te(xr),ur=ie[ie.length-1];if(Cr.slice(0,ur.length)!=ur)continue e;return{from:m(ae,$(Re,Le,Je,te)+fe),to:m(ae+ie.length-1,$(xr,Cr,ur.length,te))}}}}function z(B,V,X,q){if(!V.length)return null;var te=q?Q:W,ie=te(V).split(/\r|\n\r?/);e:for(var ae=X.line,fe=X.ch,ye=B.firstLine()-1+ie.length;ae>=ye;ae--,fe=-1){var Re=B.getLine(ae);fe>-1&&(Re=Re.slice(0,fe));var Le=te(Re);if(ie.length==1){var Ve=Le.lastIndexOf(ie[0]);if(Ve==-1)continue e;return{from:m(ae,$(Re,Le,Ve,te)),to:m(ae,$(Re,Le,Ve+ie[0].length,te))}}else{var Je=ie[ie.length-1];if(Le.slice(0,Je.length)!=Je)continue e;for(var me=1,X=ae-ie.length+1;me<ie.length-1;me++)if(te(B.getLine(X+me))!=ie[me])continue e;var xr=B.getLine(ae+1-ie.length),Cr=te(xr);if(Cr.slice(Cr.length-ie[0].length)!=ie[0])continue e;return{from:m(ae+1-ie.length,$(xr,Cr,xr.length-ie[0].length,te)),to:m(ae,$(Re,Le,Je.length,te))}}}}function Y(B,V,X,q){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=B,X=X?B.clipPos(X):m(0,0),this.pos={from:X,to:X};var te;typeof q=="object"?te=q.caseFold:(te=q,q=null),typeof V=="string"?(te==null&&(te=!1),this.matches=function(ie,ae){return(ie?z:M)(B,V,ae,te)}):(V=N(V,"gm"),!q||q.multiline!==!1?this.matches=function(ie,ae){return(ie?H:O)(B,V,ae)}:this.matches=function(ie,ae){return(ie?Z:L)(B,V,ae)})}Y.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(B){var V=this.doc.clipPos(B?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(V=m(V.line,V.ch),B?(V.ch--,V.ch<0&&(V.line--,V.ch=(this.doc.getLine(V.line)||"").length)):(V.ch++,V.ch>(this.doc.getLine(V.line)||"").length&&(V.ch=0,V.line++)),i.cmpPos(V,this.doc.clipPos(V))!=0))return this.atOccurrence=!1;var X=this.matches(B,V);if(this.afterEmptyMatch=X&&i.cmpPos(X.from,X.to)==0,X)return this.pos=X,this.atOccurrence=!0,this.pos.match||!0;var q=m(B?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:q,to:q},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(B,V){if(this.atOccurrence){var X=i.splitLines(B);this.doc.replaceRange(X,this.pos.from,this.pos.to,V),this.pos.to=m(this.pos.from.line+X.length-1,X[X.length-1].length+(X.length==1?this.pos.from.ch:0))}}},i.defineExtension("getSearchCursor",function(B,V,X){return new Y(this.doc,B,V,X)}),i.defineDocExtension("getSearchCursor",function(B,V,X){return new Y(this,B,V,X)}),i.defineExtension("selectMatches",function(B,V){for(var X=[],q=this.getSearchCursor(B,this.getCursor("from"),V);q.findNext()&&!(i.cmpPos(q.to(),this.getCursor("to"))>0);)X.push({anchor:q.from(),head:q.to()});X.length&&this.setSelections(X,0)})})});var ZI=br((MI,WI)=>{(function(i){typeof MI=="object"&&typeof WI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("annotateScrollbar",function(e){return typeof e=="string"&&(e={className:e}),new m(this,e)}),i.defineOption("scrollButtonHeight",0);function m(e,N){this.cm=e,this.options=N,this.buttonHeight=N.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function R(O){clearTimeout(L.doRedraw),L.doRedraw=setTimeout(function(){L.redraw()},O)}var L=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(L.doUpdate),L.doUpdate=setTimeout(function(){L.computeScale()&&R(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),N.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){R(250)})}m.prototype.computeScale=function(){var e=this.cm,N=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(N!=this.hScale)return this.hScale=N,!0},m.prototype.update=function(e){this.annotations=e,this.redraw()},m.prototype.redraw=function(e){e!==!1&&this.computeScale();var N=this.cm,R=this.hScale,L=document.createDocumentFragment(),O=this.annotations,D=N.getOption("lineWrapping"),Z=D&&N.defaultTextHeight()*1.5,H=null,Q=null;function W(te,ie){if(H!=te.line){H=te.line,Q=N.getLineHandle(te.line);var ae=N.getLineHandleVisualStart(Q);ae!=Q&&(H=N.getLineNumber(ae),Q=ae)}if(Q.widgets&&Q.widgets.length||D&&Q.height>Z)return N.charCoords(te,"local")[ie?"top":"bottom"];var fe=N.heightAtLine(Q,"local");return fe+(ie?0:Q.height)}var $=N.lastLine();if(N.display.barWidth)for(var M=0,z;M<O.length;M++){var Y=O[M];if(!(Y.to.line>$)){for(var B=z||W(Y.from,!0)*R,V=W(Y.to,!1)*R;M<O.length-1&&!(O[M+1].to.line>$||(z=W(O[M+1].from,!0)*R,z>V+.9));)Y=O[++M],V=W(Y.to,!1)*R;if(V!=B){var X=Math.max(V-B,3),q=L.appendChild(document.createElement("div"));q.style.cssText="position: absolute; right: 0px; width: "+Math.max(N.display.barWidth-1,2)+"px; top: "+(B+this.buttonHeight)+"px; height: "+X+"px",q.className=this.options.className,Y.id&&q.setAttribute("annotation-id",Y.id)}}}this.div.textContent="",this.div.appendChild(L)},m.prototype.clear=function(){this.cm.off("refresh",this.resizeHandler),this.cm.off("markerAdded",this.resizeHandler),this.cm.off("markerCleared",this.resizeHandler),this.changeHandler&&this.cm.off("changes",this.changeHandler),this.div.parentNode.removeChild(this.div)}})});var QI=br((PI,kI)=>{(function(i){typeof PI=="object"&&typeof kI=="object"?i(si(),Wm(),ZI()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(R,L,O){return typeof O=="string"&&(O={className:O}),O||(O={}),new m(this,R,L,O)});function m(R,L,O,D){this.cm=R,this.options=D;var Z={listenForChanges:!1};for(var H in D)Z[H]=D[H];Z.className||(Z.className="CodeMirror-search-match"),this.annotation=R.annotateScrollbar(Z),this.query=L,this.caseFold=O,this.gap={from:R.firstLine(),to:R.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var Q=this;R.on("change",this.changeHandler=function(W,$){Q.onChange($)})}var e=1e3;m.prototype.findMatches=function(){if(this.gap){for(var R=0;R<this.matches.length;R++){var L=this.matches[R];if(L.from.line>=this.gap.to)break;L.to.line>=this.gap.from&&this.matches.splice(R--,1)}for(var O=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),D=this.options&&this.options.maxMatches||e;O.findNext();){var L={from:O.from(),to:O.to()};if(L.from.line>=this.gap.to||(this.matches.splice(R++,0,L),this.matches.length>D))break}this.gap=null}};function N(R,L,O){return R<=L?R:Math.max(L,R+O)}m.prototype.onChange=function(R){var L=R.from.line,O=i.changeEnd(R).line,D=O-R.to.line;if(this.gap?(this.gap.from=Math.min(N(this.gap.from,L,D),R.from.line),this.gap.to=Math.max(N(this.gap.to,L,D),R.from.line)):this.gap={from:R.from.line,to:O+1},D)for(var Z=0;Z<this.matches.length;Z++){var H=this.matches[Z],Q=N(H.from.line,L,D);Q!=H.from.line&&(H.from=i.Pos(Q,H.from.ch));var W=N(H.to.line,L,D);W!=H.to.line&&(H.to=i.Pos(W,H.to.ch))}clearTimeout(this.update);var $=this;this.update=setTimeout(function(){$.updateAfterChange()},250)},m.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},m.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var XI=br((_I,HI)=>{(function(i){typeof _I=="object"&&typeof HI=="object"?i(si(),QI()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],i):i(CodeMirror)})(function(i){"use strict";var m={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function e($){this.options={};for(var M in m)this.options[M]=($&&$.hasOwnProperty(M)?$:m)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function($,M,z){if(z&&z!=i.Init&&(D($),clearTimeout($.state.matchHighlighter.timeout),$.state.matchHighlighter=null,$.off("cursorActivity",N),$.off("focus",R)),M){var Y=$.state.matchHighlighter=new e(M);$.hasFocus()?(Y.active=!0,Z($)):$.on("focus",R),$.on("cursorActivity",N)}});function N($){var M=$.state.matchHighlighter;(M.active||$.hasFocus())&&L($,M)}function R($){var M=$.state.matchHighlighter;M.active||(M.active=!0,L($,M))}function L($,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){Z($)},M.options.delay)}function O($,M,z,Y){var B=$.state.matchHighlighter;if($.addOverlay(B.overlay=W(M,z,Y)),B.options.annotateScrollbar&&$.showMatchesOnScrollbar){var V=z?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;B.matchesonscroll=$.showMatchesOnScrollbar(V,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function D($){var M=$.state.matchHighlighter;M.overlay&&($.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function Z($){$.operation(function(){var M=$.state.matchHighlighter;if(D($),!$.somethingSelected()&&M.options.showToken){for(var z=M.options.showToken===!0?/[\w$]/:M.options.showToken,Y=$.getCursor(),B=$.getLine(Y.line),V=Y.ch,X=V;V&&z.test(B.charAt(V-1));)--V;for(;X<B.length&&z.test(B.charAt(X));)++X;V<X&&O($,B.slice(V,X),z,M.options.style);return}var q=$.getCursor("from"),te=$.getCursor("to");if(q.line==te.line&&!(M.options.wordsOnly&&!H($,q,te))){var ie=$.getRange(q,te);M.options.trim&&(ie=ie.replace(/^\s+|\s+$/g,"")),ie.length>=M.options.minChars&&O($,ie,!1,M.options.style)}})}function H($,M,z){var Y=$.getRange(M,z);if(Y.match(/^\w+$/)!==null){if(M.ch>0){var B={line:M.line,ch:M.ch-1},V=$.getRange(B,M);if(V.match(/\W/)===null)return!1}if(z.ch<$.getLine(M.line).length){var B={line:z.line,ch:z.ch+1},V=$.getRange(z,B);if(V.match(/\W/)===null)return!1}return!0}else return!1}function Q($,M){return(!$.start||!M.test($.string.charAt($.start-1)))&&($.pos==$.string.length||!M.test($.string.charAt($.pos)))}function W($,M,z){return{token:function(Y){if(Y.match($)&&(!M||Q(Y,M)))return z;Y.next(),Y.skipTo($.charAt(0))||Y.skipToEnd()}}}})});var $I=br((YI,JI)=>{(function(i){typeof YI=="object"&&typeof JI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var m=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,N={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function R(Q){return Q&&Q.bracketRegex||/[(){}[\]]/}function L(Q,W,$){var M=Q.getLineHandle(W.line),z=W.ch-1,Y=$&&$.afterCursor;Y==null&&(Y=/(^| )cm-fat-cursor($| )/.test(Q.getWrapperElement().className));var B=R($),V=!Y&&z>=0&&B.test(M.text.charAt(z))&&N[M.text.charAt(z)]||B.test(M.text.charAt(z+1))&&N[M.text.charAt(++z)];if(!V)return null;var X=V.charAt(1)==">"?1:-1;if($&&$.strict&&X>0!=(z==W.ch))return null;var q=Q.getTokenTypeAt(e(W.line,z+1)),te=O(Q,e(W.line,z+(X>0?1:0)),X,q,$);return te==null?null:{from:e(W.line,z),to:te&&te.pos,match:te&&te.ch==V.charAt(0),forward:X>0}}function O(Q,W,$,M,z){for(var Y=z&&z.maxScanLineLength||1e4,B=z&&z.maxScanLines||1e3,V=[],X=R(z),q=$>0?Math.min(W.line+B,Q.lastLine()+1):Math.max(Q.firstLine()-1,W.line-B),te=W.line;te!=q;te+=$){var ie=Q.getLine(te);if(ie){var ae=$>0?0:ie.length-1,fe=$>0?ie.length:-1;if(!(ie.length>Y))for(te==W.line&&(ae=W.ch-($<0?1:0));ae!=fe;ae+=$){var ye=ie.charAt(ae);if(X.test(ye)&&(M===void 0||(Q.getTokenTypeAt(e(te,ae+1))||"")==(M||""))){var Re=N[ye];if(Re&&Re.charAt(1)==">"==$>0)V.push(ye);else if(V.length)V.pop();else return{pos:e(te,ae),ch:ye}}}}}return te-$==($>0?Q.lastLine():Q.firstLine())?!1:null}function D(Q,W,$){for(var M=Q.state.matchBrackets.maxHighlightLineLength||1e3,z=$&&$.highlightNonMatching,Y=[],B=Q.listSelections(),V=0;V<B.length;V++){var X=B[V].empty()&&L(Q,B[V].head,$);if(X&&(X.match||z!==!1)&&Q.getLine(X.from.line).length<=M){var q=X.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";Y.push(Q.markText(X.from,e(X.from.line,X.from.ch+1),{className:q})),X.to&&Q.getLine(X.to.line).length<=M&&Y.push(Q.markText(X.to,e(X.to.line,X.to.ch+1),{className:q}))}}if(Y.length){m&&Q.state.focused&&Q.focus();var te=function(){Q.operation(function(){for(var ie=0;ie<Y.length;ie++)Y[ie].clear()})};if(W)setTimeout(te,800);else return te}}function Z(Q){Q.operation(function(){Q.state.matchBrackets.currentlyHighlighted&&(Q.state.matchBrackets.currentlyHighlighted(),Q.state.matchBrackets.currentlyHighlighted=null),Q.state.matchBrackets.currentlyHighlighted=D(Q,!1,Q.state.matchBrackets)})}function H(Q){Q.state.matchBrackets&&Q.state.matchBrackets.currentlyHighlighted&&(Q.state.matchBrackets.currentlyHighlighted(),Q.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function(Q,W,$){$&&$!=i.Init&&(Q.off("cursorActivity",Z),Q.off("focus",Z),Q.off("blur",H),H(Q)),W&&(Q.state.matchBrackets=typeof W=="object"?W:{},Q.on("cursorActivity",Z),Q.on("focus",Z),Q.on("blur",H))}),i.defineExtension("matchBrackets",function(){D(this,!0)}),i.defineExtension("findMatchingBracket",function(Q,W,$){return($||typeof W=="boolean")&&($?($.strict=W,W=$):W=W?{strict:!0}:null),L(this,Q,W)}),i.defineExtension("scanForBracket",function(Q,W,$,M){return O(this,Q,W,$,M)})})});var qI=br((zI,jI)=>{(function(i){typeof zI=="object"&&typeof jI=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(m,e,N,R){var L=i.getMode(i.defaults,e),O=R&&R.tabSize||i.defaults.tabSize;if(N.appendChild){var D=/MSIE \d/.test(navigator.userAgent),Z=D&&(document.documentMode==null||document.documentMode<9),H=N,Q=0;H.textContent="",N=function(V,X){if(V==`
|
|
37
|
+
`){H.appendChild(document.createTextNode(Z?"\r":V)),Q=0;return}for(var q="",te=0;;){var ie=V.indexOf(" ",te);if(ie==-1){q+=V.slice(te),Q+=V.length-te;break}else{Q+=ie-te,q+=V.slice(te,ie);var ae=O-Q%O;Q+=ae;for(var fe=0;fe<ae;++fe)q+=" ";te=ie+1}}if(X){var ye=H.appendChild(document.createElement("span"));ye.className="cm-"+X.replace(/ +/g," cm-"),ye.appendChild(document.createTextNode(q))}else H.appendChild(document.createTextNode(q))}}for(var W=i.splitLines(m),$=R&&R.state||i.startState(L),M=0,z=W.length;M<z;++M){M&&N(`
|
|
38
|
+
`);var Y=new i.StringStream(W[M],null,{lookAhead:function(V){return W[M+V]},baseToken:function(){}});for(!Y.string&&L.blankLine&&L.blankLine($);!Y.eol();){var B=L.token(Y,$);N(Y.current(),B,M,Y.start,$,L),Y.start=Y.pos}}}})});var aL={};zm(aL,{Yasqe:()=>zf,default:()=>oL});var hh=Xt(si());function qm(i,m,e){return e||(e=i.getDoc().getCursor()),m||(m=i.getTokenAt(e)),ev(i,Km(i,m,e),e)}function Km(i,m,e){var N=i.getTokenAt({line:e.line,ch:m.start});return(m.type==="punc"||m.type==="error")&&!m.state.possibleFullIri&&!m.state.inPrefixDecl?(m.state.possibleCurrent=m.state.possibleNext,m):N.type==="punc"&&!N.state.possibleFullIri&&!N.state.inPrefixDecl?m:N.type!=null&&N.type!="ws"&&m.type!=null&&m.type!="ws"?(m.start=N.start,m.string=N.string+m.string,Km(i,m,{line:e.line,ch:N.start})):(m.type!=null&&m.type=="ws"&&(m.start=m.start+1,m.string=m.string.substring(1)),m)}function ev(i,m,e){if(m.string.indexOf(" ")>=0){let R=m.string.indexOf(" ");return m.string=m.string.substr(0,R),m.end=m.start+m.string.length,m}if(!m.type)return m;var N=i.getTokenAt({line:e.line,ch:m.end+1});return N.type!=="ws"&&m.state.possibleFullIri&&m.type!==null&&m.type!=="ws"&&N.end!==m.end?(m.end=N.end,m.string=m.string+N.string,ev(i,m,{line:e.line,ch:N.end})):(m.type==="ws"&&(m.end=m.end+1,m.string=m.string.substring(m.string.length-1)),m)}function $E(i,m,e){var N=i.getTokenAt({line:m,ch:e.start});return N!=null&&N.type=="ws"&&(N=$E(i,m,N)),N}function Sf(i,m,e){e==null&&(e=1);var N=i.getTokenAt({line:m,ch:e});if(!(N==null||N==null||N.end<e))return N.type=="ws"?Sf(i,m,N.end+1):N}var Vh="PREFIX ";function rv(i){for(var m=i.getDoc().lastLine(),e=0;e<=m;++e){let N=tv(i,e);if(N!=null&&N>=0)return e}}function tv(i,m,e=0,N){if(N||(N=i.getDoc().getLine(m)),!N)return;N=N.toUpperCase();let R=N.indexOf(Vh,e);if(R>=0&&i.getTokenTypeAt(hh.default.Pos(m,R+1))==="keyword")return R}function iv(i,m){var e=m.line,N=i.getDoc().getLine(e);function R(){for(var V=!1,X=e-1;X>=0;X--)if(i.getDoc().getLine(X).toUpperCase().indexOf(Vh)>=0){V=!0;break}return V}var L=function(V,X){var q=i.getTokenAt(hh.default.Pos(V,X+1));if(!q||q.type!="keyword")return-1;var te=Sf(i,V,q.end+1);if(!te||te.type!="string-2")return-1;var ie=Sf(i,V,te.end+1);return!ie||ie.type!="variable-3"?-1:ie.end};if(!R()){var O=tv(i,e,m.ch,N);if(O!=null){for(var D="{",Z=!1,H=i.getDoc().lastLine(),Q,W=L(e,O),$=e,M=e;M<=H&&!Z;++M)for(var z=i.getDoc().getLine(M),Y=M==e?O+1:0;;){!Z&&z.indexOf(D)>=0&&(Z=!0);var B=z.toUpperCase().indexOf(Vh,Y);if(B>=0)(Q=L(M,B))>0&&(W=Q,$=M,Y=W),Y++;else break}return{from:hh.default.Pos(e,O+Vh.length),to:hh.default.Pos($,W)}}}}function nv(i,m){var e=i.getPrefixesFromQuery();if(typeof m=="string")sv(i,m);else for(var N in m)N in e||sv(i,N+": <"+m[N]+">");i.collapsePrefixes(!1)}function sv(i,m){i.getDoc().replaceRange("PREFIX "+m+`
|
|
39
|
+
`,{line:0,ch:0}),i.collapsePrefixes(!1)}function ov(i,m){var e=function(R){return R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var N in m)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+N+":\\s*"+e("<"+m[N]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function av(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:Ev,setPrototypeOf:lv,isFrozen:EA,getPrototypeOf:mA,getOwnPropertyDescriptor:vA}=Object,{freeze:pi,seal:xs,create:tm}=Object,{apply:im,construct:sm}=typeof Reflect<"u"&&Reflect;pi||(pi=function(m){return m});xs||(xs=function(m){return m});im||(im=function(m,e){for(var N=arguments.length,R=new Array(N>2?N-2:0),L=2;L<N;L++)R[L-2]=arguments[L];return m.apply(e,R)});sm||(sm=function(m){for(var e=arguments.length,N=new Array(e>1?e-1:0),R=1;R<e;R++)N[R-1]=arguments[R];return new m(...N)});var Dh=hi(Array.prototype.forEach),xA=hi(Array.prototype.lastIndexOf),uv=hi(Array.prototype.pop),dh=hi(Array.prototype.push),CA=hi(Array.prototype.splice),Wh=hi(String.prototype.toLowerCase),zE=hi(String.prototype.toString),jE=hi(String.prototype.match),gh=hi(String.prototype.replace),IA=hi(String.prototype.indexOf),AA=hi(String.prototype.trim),js=hi(Object.prototype.hasOwnProperty),ci=hi(RegExp.prototype.test),Eh=NA(TypeError);function hi(i){return function(m){m instanceof RegExp&&(m.lastIndex=0);for(var e=arguments.length,N=new Array(e>1?e-1:0),R=1;R<e;R++)N[R-1]=arguments[R];return im(i,m,N)}}function NA(i){return function(){for(var m=arguments.length,e=new Array(m),N=0;N<m;N++)e[N]=arguments[N];return sm(i,e)}}function sr(i,m){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Wh;lv&&lv(i,null);let N=m.length;for(;N--;){let R=m[N];if(typeof R=="string"){let L=e(R);L!==R&&(EA(m)||(m[N]=L),R=L)}i[R]=!0}return i}function bA(i){for(let m=0;m<i.length;m++)js(i,m)||(i[m]=null);return i}function Mn(i){let m=tm(null);for(let[e,N]of Ev(i))js(i,e)&&(Array.isArray(N)?m[e]=bA(N):N&&typeof N=="object"&&N.constructor===Object?m[e]=Mn(N):m[e]=N);return m}function mh(i,m){for(;i!==null;){let N=vA(i,m);if(N){if(N.get)return hi(N.get);if(typeof N.value=="function")return hi(N.value)}i=mA(i)}function e(){return null}return e}var fv=pi(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qE=pi(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),KE=pi(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),TA=pi(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),em=pi(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),RA=pi(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),cv=pi(["#text"]),pv=pi(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),rm=pi(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),hv=pi(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Mh=pi(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),yA=xs(/\{\{[\w\W]*|[\w\W]*\}\}/gm),SA=xs(/<%[\w\W]*|[\w\W]*%>/gm),LA=xs(/\$\{[\w\W]*/gm),wA=xs(/^data-[\-\w.\u00B7-\uFFFF]+$/),OA=xs(/^aria-[\-\w]+$/),mv=xs(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),UA=xs(/^(?:\w+script|data):/i),FA=xs(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),vv=xs(/^html$/i),GA=xs(/^[a-z][.\w]*(-[.\w]+)+$/i),dv=Object.freeze({__proto__:null,ARIA_ATTR:OA,ATTR_WHITESPACE:FA,CUSTOM_ELEMENT:GA,DATA_ATTR:wA,DOCTYPE_NAME:vv,ERB_EXPR:SA,IS_ALLOWED_URI:mv,IS_SCRIPT_OR_DATA:UA,MUSTACHE_EXPR:yA,TMPLIT_EXPR:LA}),vh={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},BA=function(){return typeof window>"u"?null:window},VA=function(m,e){if(typeof m!="object"||typeof m.createPolicy!="function")return null;let N=null,R="data-tt-policy-suffix";e&&e.hasAttribute(R)&&(N=e.getAttribute(R));let L="dompurify"+(N?"#"+N:"");try{return m.createPolicy(L,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+L+" could not be created."),null}},gv=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function xv(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:BA(),m=We=>xv(We);if(m.version="3.3.1",m.removed=[],!i||!i.document||i.document.nodeType!==vh.document||!i.Element)return m.isSupported=!1,m;let{document:e}=i,N=e,R=N.currentScript,{DocumentFragment:L,HTMLTemplateElement:O,Node:D,Element:Z,NodeFilter:H,NamedNodeMap:Q=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:W,DOMParser:$,trustedTypes:M}=i,z=Z.prototype,Y=mh(z,"cloneNode"),B=mh(z,"remove"),V=mh(z,"nextSibling"),X=mh(z,"childNodes"),q=mh(z,"parentNode");if(typeof O=="function"){let We=e.createElement("template");We.content&&We.content.ownerDocument&&(e=We.content.ownerDocument)}let te,ie="",{implementation:ae,createNodeIterator:fe,createDocumentFragment:ye,getElementsByTagName:Re}=e,{importNode:Le}=N,Ve=gv();m.isSupported=typeof Ev=="function"&&typeof q=="function"&&ae&&ae.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Je,ERB_EXPR:me,TMPLIT_EXPR:xr,DATA_ATTR:Cr,ARIA_ATTR:ur,IS_SCRIPT_OR_DATA:$r,ATTR_WHITESPACE:ze,CUSTOM_ELEMENT:St}=dv,{IS_ALLOWED_URI:Lt}=dv,pr=null,wt=sr({},[...fv,...qE,...KE,...em,...cv]),or=null,ut=sr({},[...pv,...rm,...hv,...Mh]),je=Object.seal(tm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),zr=null,Ir=null,Pr=Object.seal(tm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),hr=!0,Kt=!0,Fe=!1,pe=!0,Er=!1,fr=!0,we=!1,Ur=!1,ei=!1,Ae=!1,Ot=!1,ft=!1,Nt=!0,rs=!1,Me="user-content-",ct=!0,Oe=!1,rr={},at=null,pt=sr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Nr=null,ri=sr({},["audio","video","img","source","image","track"]),Fi=null,ti=sr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),bt="http://www.w3.org/1998/Math/MathML",ii="http://www.w3.org/2000/svg",Tr="http://www.w3.org/1999/xhtml",Ut=Tr,Ge=!1,ni=null,kr=sr({},[bt,ii,Tr],zE),ar=sr({},["mi","mo","mn","ms","mtext"]),dr=sr({},["annotation-xml"]),ts=sr({},["title","style","font","a","script"]),tr=null,is=["application/xhtml+xml","text/html"],ht="text/html",Dr=null,mi=null,bs=e.createElement("form"),rn=function(K){return K instanceof RegExp||K instanceof Function},tn=function(){let K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(mi&&mi===K)){if((!K||typeof K!="object")&&(K={}),K=Mn(K),tr=is.indexOf(K.PARSER_MEDIA_TYPE)===-1?ht:K.PARSER_MEDIA_TYPE,Dr=tr==="application/xhtml+xml"?zE:Wh,pr=js(K,"ALLOWED_TAGS")?sr({},K.ALLOWED_TAGS,Dr):wt,or=js(K,"ALLOWED_ATTR")?sr({},K.ALLOWED_ATTR,Dr):ut,ni=js(K,"ALLOWED_NAMESPACES")?sr({},K.ALLOWED_NAMESPACES,zE):kr,Fi=js(K,"ADD_URI_SAFE_ATTR")?sr(Mn(ti),K.ADD_URI_SAFE_ATTR,Dr):ti,Nr=js(K,"ADD_DATA_URI_TAGS")?sr(Mn(ri),K.ADD_DATA_URI_TAGS,Dr):ri,at=js(K,"FORBID_CONTENTS")?sr({},K.FORBID_CONTENTS,Dr):pt,zr=js(K,"FORBID_TAGS")?sr({},K.FORBID_TAGS,Dr):Mn({}),Ir=js(K,"FORBID_ATTR")?sr({},K.FORBID_ATTR,Dr):Mn({}),rr=js(K,"USE_PROFILES")?K.USE_PROFILES:!1,hr=K.ALLOW_ARIA_ATTR!==!1,Kt=K.ALLOW_DATA_ATTR!==!1,Fe=K.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=K.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Er=K.SAFE_FOR_TEMPLATES||!1,fr=K.SAFE_FOR_XML!==!1,we=K.WHOLE_DOCUMENT||!1,Ae=K.RETURN_DOM||!1,Ot=K.RETURN_DOM_FRAGMENT||!1,ft=K.RETURN_TRUSTED_TYPE||!1,ei=K.FORCE_BODY||!1,Nt=K.SANITIZE_DOM!==!1,rs=K.SANITIZE_NAMED_PROPS||!1,ct=K.KEEP_CONTENT!==!1,Oe=K.IN_PLACE||!1,Lt=K.ALLOWED_URI_REGEXP||mv,Ut=K.NAMESPACE||Tr,ar=K.MATHML_TEXT_INTEGRATION_POINTS||ar,dr=K.HTML_INTEGRATION_POINTS||dr,je=K.CUSTOM_ELEMENT_HANDLING||{},K.CUSTOM_ELEMENT_HANDLING&&rn(K.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=K.CUSTOM_ELEMENT_HANDLING.tagNameCheck),K.CUSTOM_ELEMENT_HANDLING&&rn(K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=K.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),K.CUSTOM_ELEMENT_HANDLING&&typeof K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(je.allowCustomizedBuiltInElements=K.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Er&&(Kt=!1),Ot&&(Ae=!0),rr&&(pr=sr({},cv),or=[],rr.html===!0&&(sr(pr,fv),sr(or,pv)),rr.svg===!0&&(sr(pr,qE),sr(or,rm),sr(or,Mh)),rr.svgFilters===!0&&(sr(pr,KE),sr(or,rm),sr(or,Mh)),rr.mathMl===!0&&(sr(pr,em),sr(or,hv),sr(or,Mh))),K.ADD_TAGS&&(typeof K.ADD_TAGS=="function"?Pr.tagCheck=K.ADD_TAGS:(pr===wt&&(pr=Mn(pr)),sr(pr,K.ADD_TAGS,Dr))),K.ADD_ATTR&&(typeof K.ADD_ATTR=="function"?Pr.attributeCheck=K.ADD_ATTR:(or===ut&&(or=Mn(or)),sr(or,K.ADD_ATTR,Dr))),K.ADD_URI_SAFE_ATTR&&sr(Fi,K.ADD_URI_SAFE_ATTR,Dr),K.FORBID_CONTENTS&&(at===pt&&(at=Mn(at)),sr(at,K.FORBID_CONTENTS,Dr)),K.ADD_FORBID_CONTENTS&&(at===pt&&(at=Mn(at)),sr(at,K.ADD_FORBID_CONTENTS,Dr)),ct&&(pr["#text"]=!0),we&&sr(pr,["html","head","body"]),pr.table&&(sr(pr,["tbody"]),delete zr.tbody),K.TRUSTED_TYPES_POLICY){if(typeof K.TRUSTED_TYPES_POLICY.createHTML!="function")throw Eh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof K.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Eh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=K.TRUSTED_TYPES_POLICY,ie=te.createHTML("")}else te===void 0&&(te=VA(M,R)),te!==null&&typeof ie=="string"&&(ie=te.createHTML(""));pi&&pi(K),mi=K}},Bo=sr({},[...qE,...KE,...TA]),sn=sr({},[...em,...RA]),ya=function(K){let Ee=q(K);(!Ee||!Ee.tagName)&&(Ee={namespaceURI:Ut,tagName:"template"});let Se=Wh(K.tagName),mr=Wh(Ee.tagName);return ni[K.namespaceURI]?K.namespaceURI===ii?Ee.namespaceURI===Tr?Se==="svg":Ee.namespaceURI===bt?Se==="svg"&&(mr==="annotation-xml"||ar[mr]):!!Bo[Se]:K.namespaceURI===bt?Ee.namespaceURI===Tr?Se==="math":Ee.namespaceURI===ii?Se==="math"&&dr[mr]:!!sn[Se]:K.namespaceURI===Tr?Ee.namespaceURI===ii&&!dr[mr]||Ee.namespaceURI===bt&&!ar[mr]?!1:!sn[Se]&&(ts[Se]||!Bo[Se]):!!(tr==="application/xhtml+xml"&&ni[K.namespaceURI]):!1},Zt=function(K){dh(m.removed,{element:K});try{q(K).removeChild(K)}catch{B(K)}},Gi=function(K,Ee){try{dh(m.removed,{attribute:Ee.getAttributeNode(K),from:Ee})}catch{dh(m.removed,{attribute:null,from:Ee})}if(Ee.removeAttribute(K),K==="is")if(Ae||Ot)try{Zt(Ee)}catch{}else try{Ee.setAttribute(K,"")}catch{}},nn=function(K){let Ee=null,Se=null;if(ei)K="<remove></remove>"+K;else{let qe=jE(K,/^[\r\n\t ]+/);Se=qe&&qe[0]}tr==="application/xhtml+xml"&&Ut===Tr&&(K='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+K+"</body></html>");let mr=te?te.createHTML(K):K;if(Ut===Tr)try{Ee=new $().parseFromString(mr,tr)}catch{}if(!Ee||!Ee.documentElement){Ee=ae.createDocument(Ut,"template",null);try{Ee.documentElement.innerHTML=Ge?ie:mr}catch{}}let et=Ee.body||Ee.documentElement;return K&&Se&&et.insertBefore(e.createTextNode(Se),et.childNodes[0]||null),Ut===Tr?Re.call(Ee,we?"html":"body")[0]:we?Ee.documentElement:et},Vo=function(K){return fe.call(K.ownerDocument||K,K,H.SHOW_ELEMENT|H.SHOW_COMMENT|H.SHOW_TEXT|H.SHOW_PROCESSING_INSTRUCTION|H.SHOW_CDATA_SECTION,null)},kn=function(K){return K instanceof W&&(typeof K.nodeName!="string"||typeof K.textContent!="string"||typeof K.removeChild!="function"||!(K.attributes instanceof Q)||typeof K.removeAttribute!="function"||typeof K.setAttribute!="function"||typeof K.namespaceURI!="string"||typeof K.insertBefore!="function"||typeof K.hasChildNodes!="function")},on=function(K){return typeof D=="function"&&K instanceof D};function oi(We,K,Ee){Dh(We,Se=>{Se.call(m,K,Ee,mi)})}let an=function(K){let Ee=null;if(oi(Ve.beforeSanitizeElements,K,null),kn(K))return Zt(K),!0;let Se=Dr(K.nodeName);if(oi(Ve.uponSanitizeElement,K,{tagName:Se,allowedTags:pr}),fr&&K.hasChildNodes()&&!on(K.firstElementChild)&&ci(/<[/\w!]/g,K.innerHTML)&&ci(/<[/\w!]/g,K.textContent)||K.nodeType===vh.progressingInstruction||fr&&K.nodeType===vh.comment&&ci(/<[/\w]/g,K.data))return Zt(K),!0;if(!(Pr.tagCheck instanceof Function&&Pr.tagCheck(Se))&&(!pr[Se]||zr[Se])){if(!zr[Se]&&Do(Se)&&(je.tagNameCheck instanceof RegExp&&ci(je.tagNameCheck,Se)||je.tagNameCheck instanceof Function&&je.tagNameCheck(Se)))return!1;if(ct&&!at[Se]){let mr=q(K)||K.parentNode,et=X(K)||K.childNodes;if(et&&mr){let qe=et.length;for(let Ie=qe-1;Ie>=0;--Ie){let dt=Y(et[Ie],!0);dt.__removalCount=(K.__removalCount||0)+1,mr.insertBefore(dt,V(K))}}}return Zt(K),!0}return K instanceof Z&&!ya(K)||(Se==="noscript"||Se==="noembed"||Se==="noframes")&&ci(/<\/no(script|embed|frames)/i,K.innerHTML)?(Zt(K),!0):(Er&&K.nodeType===vh.text&&(Ee=K.textContent,Dh([Je,me,xr],mr=>{Ee=gh(Ee,mr," ")}),K.textContent!==Ee&&(dh(m.removed,{element:K.cloneNode()}),K.textContent=Ee)),oi(Ve.afterSanitizeElements,K,null),!1)},Bi=function(K,Ee,Se){if(Nt&&(Ee==="id"||Ee==="name")&&(Se in e||Se in bs))return!1;if(!(Kt&&!Ir[Ee]&&ci(Cr,Ee))){if(!(hr&&ci(ur,Ee))){if(!(Pr.attributeCheck instanceof Function&&Pr.attributeCheck(Ee,K))){if(!or[Ee]||Ir[Ee]){if(!(Do(K)&&(je.tagNameCheck instanceof RegExp&&ci(je.tagNameCheck,K)||je.tagNameCheck instanceof Function&&je.tagNameCheck(K))&&(je.attributeNameCheck instanceof RegExp&&ci(je.attributeNameCheck,Ee)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(Ee,K))||Ee==="is"&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&ci(je.tagNameCheck,Se)||je.tagNameCheck instanceof Function&&je.tagNameCheck(Se))))return!1}else if(!Fi[Ee]){if(!ci(Lt,gh(Se,ze,""))){if(!((Ee==="src"||Ee==="xlink:href"||Ee==="href")&&K!=="script"&&IA(Se,"data:")===0&&Nr[K])){if(!(Fe&&!ci($r,gh(Se,ze,"")))){if(Se)return!1}}}}}}}return!0},Do=function(K){return K!=="annotation-xml"&&jE(K,St)},Mo=function(K){oi(Ve.beforeSanitizeAttributes,K,null);let{attributes:Ee}=K;if(!Ee||kn(K))return;let Se={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:or,forceKeepAttr:void 0},mr=Ee.length;for(;mr--;){let et=Ee[mr],{name:qe,namespaceURI:Ie,value:dt}=et,vi=Dr(qe),Pt=dt,_e=qe==="value"?Pt:AA(Pt);if(Se.attrName=vi,Se.attrValue=_e,Se.keepAttr=!0,Se.forceKeepAttr=void 0,oi(Ve.uponSanitizeAttribute,K,Se),_e=Se.attrValue,rs&&(vi==="id"||vi==="name")&&(Gi(qe,K),_e=Me+_e),fr&&ci(/((--!?|])>)|<\/(style|title|textarea)/i,_e)){Gi(qe,K);continue}if(vi==="attributename"&&jE(_e,"href")){Gi(qe,K);continue}if(Se.forceKeepAttr)continue;if(!Se.keepAttr){Gi(qe,K);continue}if(!pe&&ci(/\/>/i,_e)){Gi(qe,K);continue}Er&&Dh([Je,me,xr],ss=>{_e=gh(_e,ss," ")});let xi=Dr(K.nodeName);if(!Bi(xi,vi,_e)){Gi(qe,K);continue}if(te&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!Ie)switch(M.getAttributeType(xi,vi)){case"TrustedHTML":{_e=te.createHTML(_e);break}case"TrustedScriptURL":{_e=te.createScriptURL(_e);break}}if(_e!==Pt)try{Ie?K.setAttributeNS(Ie,qe,_e):K.setAttribute(qe,_e),kn(K)?Zt(K):uv(m.removed)}catch{Gi(qe,K)}}oi(Ve.afterSanitizeAttributes,K,null)},ln=function We(K){let Ee=null,Se=Vo(K);for(oi(Ve.beforeSanitizeShadowDOM,K,null);Ee=Se.nextNode();)oi(Ve.uponSanitizeShadowNode,Ee,null),an(Ee),Mo(Ee),Ee.content instanceof L&&We(Ee.content);oi(Ve.afterSanitizeShadowDOM,K,null)};return m.sanitize=function(We){let K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=null,Se=null,mr=null,et=null;if(Ge=!We,Ge&&(We="<!-->"),typeof We!="string"&&!on(We))if(typeof We.toString=="function"){if(We=We.toString(),typeof We!="string")throw Eh("dirty is not a string, aborting")}else throw Eh("toString is not a function");if(!m.isSupported)return We;if(Ur||tn(K),m.removed=[],typeof We=="string"&&(Oe=!1),Oe){if(We.nodeName){let dt=Dr(We.nodeName);if(!pr[dt]||zr[dt])throw Eh("root node is forbidden and cannot be sanitized in-place")}}else if(We instanceof D)Ee=nn("<!---->"),Se=Ee.ownerDocument.importNode(We,!0),Se.nodeType===vh.element&&Se.nodeName==="BODY"||Se.nodeName==="HTML"?Ee=Se:Ee.appendChild(Se);else{if(!Ae&&!Er&&!we&&We.indexOf("<")===-1)return te&&ft?te.createHTML(We):We;if(Ee=nn(We),!Ee)return Ae?null:ft?ie:""}Ee&&ei&&Zt(Ee.firstChild);let qe=Vo(Oe?We:Ee);for(;mr=qe.nextNode();)an(mr),Mo(mr),mr.content instanceof L&&ln(mr.content);if(Oe)return We;if(Ae){if(Ot)for(et=ye.call(Ee.ownerDocument);Ee.firstChild;)et.appendChild(Ee.firstChild);else et=Ee;return(or.shadowroot||or.shadowrootmode)&&(et=Le.call(N,et,!0)),et}let Ie=we?Ee.outerHTML:Ee.innerHTML;return we&&pr["!doctype"]&&Ee.ownerDocument&&Ee.ownerDocument.doctype&&Ee.ownerDocument.doctype.name&&ci(vv,Ee.ownerDocument.doctype.name)&&(Ie="<!DOCTYPE "+Ee.ownerDocument.doctype.name+`>
|
|
40
|
+
`+Ie),Er&&Dh([Je,me,xr],dt=>{Ie=gh(Ie,dt," ")}),te&&ft?te.createHTML(Ie):Ie},m.setConfig=function(){let We=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};tn(We),Ur=!0},m.clearConfig=function(){mi=null,Ur=!1},m.isValidAttribute=function(We,K,Ee){mi||tn({});let Se=Dr(We),mr=Dr(K);return Bi(Se,mr,Ee)},m.addHook=function(We,K){typeof K=="function"&&dh(Ve[We],K)},m.removeHook=function(We,K){if(K!==void 0){let Ee=xA(Ve[We],K);return Ee===-1?void 0:CA(Ve[We],Ee,1)[0]}return uv(Ve[We])},m.removeHooks=function(We){Ve[We]=[]},m.removeAllHooks=function(){Ve=gv()},m}var Cv=xv();var qs=Xt(jv()),_l=class{constructor(m){this.namespace=m}set(m,e,N,R){if(qs.default.enabled&&(this.removeExpiredKeys(),m&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{qs.default.set(m,{namespace:this.namespace,val:e,exp:N,time:new Date().getTime()/1e3})}catch(L){if(L instanceof Error){let O=L;if(O.quotaExceeded=ZN(L),O.quotaExceeded&&R)R(L);else throw O}throw L}}}remove(m){qs.default.enabled&&m&&qs.default.remove(m)}removeExpiredKeys(){qs.default.enabled&&qs.default.each((m,e)=>{m&&m.exp&&new Date().getTime()/1e3-m.time>m.exp&&this.remove(e)})}removeAll(){qs.default.enabled}removeNamespace(){qs.default.each((m,e)=>{m.namespace&&m.namespace===this.namespace&&this.remove(e)})}get(m){if(qs.default.enabled&&m)if(this.removeExpiredKeys(),m){var e=qs.default.get(m);return e?e.val:void 0}else return}};function ZN(i){var m=!1;if(i)if(i.code)switch(i.code){case 22:m=!0;break;case 1014:i.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(m=!0);break}else i.number===-2147024882&&(m=!0);return m}var{sanitize:LL}=Cv;function Cs(i){if(i&&i.trim().indexOf("<svg")==0){var m=new DOMParser,e=m.parseFromString(i,"text/xml"),N=e.documentElement;N.setAttribute("aria-hidden","true");var R=document.createElement("div");return R.className="svgImg",R.appendChild(N),R}throw new Error("No svg string given. Cannot draw")}function qv(i,m){if(i)return i.classList?i.classList.contains(m):!!i.className.match(new RegExp("(\\s|^)"+m+"(\\s|$)"))}function Ar(i,...m){if(i)for(let e of m)i.classList?i.classList.add(e):qv(i,e)||(i.className+=" "+e)}function Nh(i,m){if(i){if(i.classList)i.classList.remove(m);else if(qv(i,m)){var e=new RegExp("(\\s|^)"+m+"(\\s|$)");i.className=i.className.replace(e," ")}}}var bd=Xt(Zh());function bh(i,m,e){var N;m.onmouseover=function(){N||(N=document.createElement("div"),N.className="yasqe_tooltip"),N.style.display="block",N.innerHTML=e,m.appendChild(N)},m.onmouseout=function(){N&&(N.style.display="none"),N.innerHTML=e}}var Um={};zm(Um,{base64EncodeUnicode:()=>HC,executeQuery:()=>Rm,getAcceptHeader:()=>YC,getAjaxConfig:()=>zl,getAsCurlString:()=>Lm,getAsPowerShellString:()=>wm,getAsWgetString:()=>Om,getUrlArguments:()=>XC,hasAuthenticationCredentials:()=>Sm});var zN=typeof global=="object"&&global&&global.Object===Object&&global,Ph=zN;var jN=typeof self=="object"&&self&&self.Object===Object&&self,qN=Ph||jN||Function("return this")(),yt=qN;var KN=yt.Symbol,di=KN;var m0=Object.prototype,eb=m0.hasOwnProperty,rb=m0.toString,Th=di?di.toStringTag:void 0;function tb(i){var m=eb.call(i,Th),e=i[Th];try{i[Th]=void 0;var N=!0}catch{}var R=rb.call(i);return N&&(m?i[Th]=e:delete i[Th]),R}var v0=tb;var ib=Object.prototype,sb=ib.toString;function nb(i){return sb.call(i)}var x0=nb;var ob="[object Null]",ab="[object Undefined]",C0=di?di.toStringTag:void 0;function lb(i){return i==null?i===void 0?ab:ob:C0&&C0 in Object(i)?v0(i):x0(i)}var Ki=lb;function ub(i){return i!=null&&typeof i=="object"}var gi=ub;var fb="[object Symbol]";function cb(i){return typeof i=="symbol"||gi(i)&&Ki(i)==fb}var Ks=cb;function pb(i,m){for(var e=-1,N=i==null?0:i.length,R=Array(N);++e<N;)R[e]=m(i[e],e,i);return R}var Uf=pb;var hb=Array.isArray,qr=hb;var db=1/0,I0=di?di.prototype:void 0,A0=I0?I0.toString:void 0;function N0(i){if(typeof i=="string")return i;if(qr(i))return Uf(i,N0)+"";if(Ks(i))return A0?A0.call(i):"";var m=i+"";return m=="0"&&1/i==-db?"-0":m}var b0=N0;var gb=/\s/;function Eb(i){for(var m=i.length;m--&&gb.test(i.charAt(m)););return m}var T0=Eb;var mb=/^\s+/;function vb(i){return i&&i.slice(0,T0(i)+1).replace(mb,"")}var R0=vb;function xb(i){var m=typeof i;return i!=null&&(m=="object"||m=="function")}var Wt=xb;var y0=NaN,Cb=/^[-+]0x[0-9a-f]+$/i,Ib=/^0b[01]+$/i,Ab=/^0o[0-7]+$/i,Nb=parseInt;function bb(i){if(typeof i=="number")return i;if(Ks(i))return y0;if(Wt(i)){var m=typeof i.valueOf=="function"?i.valueOf():i;i=Wt(m)?m+"":m}if(typeof i!="string")return i===0?i:+i;i=R0(i);var e=Ib.test(i);return e||Ab.test(i)?Nb(i.slice(2),e?2:8):Cb.test(i)?y0:+i}var S0=bb;var L0=1/0,Tb=17976931348623157e292;function Rb(i){if(!i)return i===0?i:0;if(i=S0(i),i===L0||i===-L0){var m=i<0?-1:1;return m*Tb}return i===i?i:0}var w0=Rb;function yb(i){var m=w0(i),e=m%1;return m===m?e?m-e:m:0}var O0=yb;function Sb(i){return i}var va=Sb;var Lb="[object AsyncFunction]",wb="[object Function]",Ob="[object GeneratorFunction]",Ub="[object Proxy]";function Fb(i){if(!Wt(i))return!1;var m=Ki(i);return m==wb||m==Ob||m==Lb||m==Ub}var Kr=Fb;var Gb=yt["__core-js_shared__"],kh=Gb;var U0=function(){var i=/[^.]+$/.exec(kh&&kh.keys&&kh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Bb(i){return!!U0&&U0 in i}var F0=Bb;var Vb=Function.prototype,Db=Vb.toString;function Mb(i){if(i!=null){try{return Db.call(i)}catch{}try{return i+""}catch{}}return""}var Lo=Mb;var Wb=/[\\^$.*+?()[\]{}|]/g,Zb=/^\[object .+?Constructor\]$/,Pb=Function.prototype,kb=Object.prototype,Qb=Pb.toString,_b=kb.hasOwnProperty,Hb=RegExp("^"+Qb.call(_b).replace(Wb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xb(i){if(!Wt(i)||F0(i))return!1;var m=Kr(i)?Hb:Zb;return m.test(Lo(i))}var G0=Xb;function Yb(i,m){return i?.[m]}var B0=Yb;function Jb(i,m){var e=B0(i,m);return G0(e)?e:void 0}var Oi=Jb;var $b=Oi(yt,"WeakMap"),Qh=$b;var V0=Object.create,zb=function(){function i(){}return function(m){if(!Wt(m))return{};if(V0)return V0(m);i.prototype=m;var e=new i;return i.prototype=void 0,e}}(),D0=zb;function jb(i,m,e){switch(e.length){case 0:return i.call(m);case 1:return i.call(m,e[0]);case 2:return i.call(m,e[0],e[1]);case 3:return i.call(m,e[0],e[1],e[2])}return i.apply(m,e)}var M0=jb;function qb(i,m){var e=-1,N=i.length;for(m||(m=Array(N));++e<N;)m[e]=i[e];return m}var W0=qb;var Kb=800,eT=16,rT=Date.now;function tT(i){var m=0,e=0;return function(){var N=rT(),R=eT-(N-e);if(e=N,R>0){if(++m>=Kb)return arguments[0]}else m=0;return i.apply(void 0,arguments)}}var Z0=tT;function iT(i){return function(){return i}}var P0=iT;var sT=function(){try{var i=Oi(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Ff=sT;var nT=Ff?function(i,m){return Ff(i,"toString",{configurable:!0,enumerable:!1,value:P0(m),writable:!0})}:va,k0=nT;var oT=Z0(k0),Q0=oT;var aT=9007199254740991,lT=/^(?:0|[1-9]\d*)$/;function uT(i,m){var e=typeof i;return m=m??aT,!!m&&(e=="number"||e!="symbol"&&lT.test(i))&&i>-1&&i%1==0&&i<m}var Gf=uT;function fT(i,m,e){m=="__proto__"&&Ff?Ff(i,m,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[m]=e}var Bf=fT;function cT(i,m){return i===m||i!==i&&m!==m}var Wn=cT;var pT=Object.prototype,hT=pT.hasOwnProperty;function dT(i,m,e){var N=i[m];(!(hT.call(i,m)&&Wn(N,e))||e===void 0&&!(m in i))&&Bf(i,m,e)}var _0=dT;function gT(i,m,e,N){var R=!e;e||(e={});for(var L=-1,O=m.length;++L<O;){var D=m[L],Z=N?N(e[D],i[D],D,e,i):void 0;Z===void 0&&(Z=i[D]),R?Bf(e,D,Z):_0(e,D,Z)}return e}var H0=gT;var X0=Math.max;function ET(i,m,e){return m=X0(m===void 0?i.length-1:m,0),function(){for(var N=arguments,R=-1,L=X0(N.length-m,0),O=Array(L);++R<L;)O[R]=N[m+R];R=-1;for(var D=Array(m+1);++R<m;)D[R]=N[R];return D[m]=e(O),M0(i,this,D)}}var Y0=ET;function mT(i,m){return Q0(Y0(i,m,va),i+"")}var _h=mT;var vT=9007199254740991;function xT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=vT}var Vf=xT;function CT(i){return i!=null&&Vf(i.length)&&!Kr(i)}var Is=CT;function IT(i,m,e){if(!Wt(e))return!1;var N=typeof m;return(N=="number"?Is(e)&&Gf(m,e.length):N=="string"&&m in e)?Wn(e[m],i):!1}var Rh=IT;function AT(i){return _h(function(m,e){var N=-1,R=e.length,L=R>1?e[R-1]:void 0,O=R>2?e[2]:void 0;for(L=i.length>3&&typeof L=="function"?(R--,L):void 0,O&&Rh(e[0],e[1],O)&&(L=R<3?void 0:L,R=1),m=Object(m);++N<R;){var D=e[N];D&&i(m,D,N,L)}return m})}var Hh=AT;var NT=Object.prototype;function bT(i){var m=i&&i.constructor,e=typeof m=="function"&&m.prototype||NT;return i===e}var Df=bT;function TT(i,m){for(var e=-1,N=Array(i);++e<i;)N[e]=m(e);return N}var J0=TT;var RT="[object Arguments]";function yT(i){return gi(i)&&Ki(i)==RT}var gm=yT;var $0=Object.prototype,ST=$0.hasOwnProperty,LT=$0.propertyIsEnumerable,wT=gm(function(){return arguments}())?gm:function(i){return gi(i)&&ST.call(i,"callee")&&!LT.call(i,"callee")},wo=wT;function OT(){return!1}var z0=OT;var K0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,j0=K0&&typeof module=="object"&&module&&!module.nodeType&&module,UT=j0&&j0.exports===K0,q0=UT?yt.Buffer:void 0,FT=q0?q0.isBuffer:void 0,GT=FT||z0,Xl=GT;var BT="[object Arguments]",VT="[object Array]",DT="[object Boolean]",MT="[object Date]",WT="[object Error]",ZT="[object Function]",PT="[object Map]",kT="[object Number]",QT="[object Object]",_T="[object RegExp]",HT="[object Set]",XT="[object String]",YT="[object WeakMap]",JT="[object ArrayBuffer]",$T="[object DataView]",zT="[object Float32Array]",jT="[object Float64Array]",qT="[object Int8Array]",KT="[object Int16Array]",eR="[object Int32Array]",rR="[object Uint8Array]",tR="[object Uint8ClampedArray]",iR="[object Uint16Array]",sR="[object Uint32Array]",Jr={};Jr[zT]=Jr[jT]=Jr[qT]=Jr[KT]=Jr[eR]=Jr[rR]=Jr[tR]=Jr[iR]=Jr[sR]=!0;Jr[BT]=Jr[VT]=Jr[JT]=Jr[DT]=Jr[$T]=Jr[MT]=Jr[WT]=Jr[ZT]=Jr[PT]=Jr[kT]=Jr[QT]=Jr[_T]=Jr[HT]=Jr[XT]=Jr[YT]=!1;function nR(i){return gi(i)&&Vf(i.length)&&!!Jr[Ki(i)]}var ex=nR;function oR(i){return function(m){return i(m)}}var Xh=oR;var rx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,yh=rx&&typeof module=="object"&&module&&!module.nodeType&&module,aR=yh&&yh.exports===rx,Em=aR&&Ph.process,lR=function(){try{var i=yh&&yh.require&&yh.require("util").types;return i||Em&&Em.binding&&Em.binding("util")}catch{}}(),mm=lR;var tx=mm&&mm.isTypedArray,uR=tx?Xh(tx):ex,Mf=uR;var fR=Object.prototype,cR=fR.hasOwnProperty;function pR(i,m){var e=qr(i),N=!e&&wo(i),R=!e&&!N&&Xl(i),L=!e&&!N&&!R&&Mf(i),O=e||N||R||L,D=O?J0(i.length,String):[],Z=D.length;for(var H in i)(m||cR.call(i,H))&&!(O&&(H=="length"||R&&(H=="offset"||H=="parent")||L&&(H=="buffer"||H=="byteLength"||H=="byteOffset")||Gf(H,Z)))&&D.push(H);return D}var Yh=pR;function hR(i,m){return function(e){return i(m(e))}}var Jh=hR;var dR=Jh(Object.keys,Object),ix=dR;var gR=Object.prototype,ER=gR.hasOwnProperty;function mR(i){if(!Df(i))return ix(i);var m=[];for(var e in Object(i))ER.call(i,e)&&e!="constructor"&&m.push(e);return m}var sx=mR;function vR(i){return Is(i)?Yh(i):sx(i)}var Wf=vR;function xR(i){var m=[];if(i!=null)for(var e in Object(i))m.push(e);return m}var nx=xR;var CR=Object.prototype,IR=CR.hasOwnProperty;function AR(i){if(!Wt(i))return nx(i);var m=Df(i),e=[];for(var N in i)N=="constructor"&&(m||!IR.call(i,N))||e.push(N);return e}var ox=AR;function NR(i){return Is(i)?Yh(i,!0):ox(i)}var $h=NR;var bR=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,TR=/^\w*$/;function RR(i,m){if(qr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||Ks(i)?!0:TR.test(i)||!bR.test(i)||m!=null&&i in Object(m)}var Zf=RR;var yR=Oi(Object,"create"),Oo=yR;function SR(){this.__data__=Oo?Oo(null):{},this.size=0}var ax=SR;function LR(i){var m=this.has(i)&&delete this.__data__[i];return this.size-=m?1:0,m}var lx=LR;var wR="__lodash_hash_undefined__",OR=Object.prototype,UR=OR.hasOwnProperty;function FR(i){var m=this.__data__;if(Oo){var e=m[i];return e===wR?void 0:e}return UR.call(m,i)?m[i]:void 0}var ux=FR;var GR=Object.prototype,BR=GR.hasOwnProperty;function VR(i){var m=this.__data__;return Oo?m[i]!==void 0:BR.call(m,i)}var fx=VR;var DR="__lodash_hash_undefined__";function MR(i,m){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=Oo&&m===void 0?DR:m,this}var cx=MR;function Pf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}Pf.prototype.clear=ax;Pf.prototype.delete=lx;Pf.prototype.get=ux;Pf.prototype.has=fx;Pf.prototype.set=cx;var vm=Pf;function WR(){this.__data__=[],this.size=0}var px=WR;function ZR(i,m){for(var e=i.length;e--;)if(Wn(i[e][0],m))return e;return-1}var xa=ZR;var PR=Array.prototype,kR=PR.splice;function QR(i){var m=this.__data__,e=xa(m,i);if(e<0)return!1;var N=m.length-1;return e==N?m.pop():kR.call(m,e,1),--this.size,!0}var hx=QR;function _R(i){var m=this.__data__,e=xa(m,i);return e<0?void 0:m[e][1]}var dx=_R;function HR(i){return xa(this.__data__,i)>-1}var gx=HR;function XR(i,m){var e=this.__data__,N=xa(e,i);return N<0?(++this.size,e.push([i,m])):e[N][1]=m,this}var Ex=XR;function kf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}kf.prototype.clear=px;kf.prototype.delete=hx;kf.prototype.get=dx;kf.prototype.has=gx;kf.prototype.set=Ex;var Ca=kf;var YR=Oi(yt,"Map"),Ia=YR;function JR(){this.size=0,this.__data__={hash:new vm,map:new(Ia||Ca),string:new vm}}var mx=JR;function $R(i){var m=typeof i;return m=="string"||m=="number"||m=="symbol"||m=="boolean"?i!=="__proto__":i===null}var vx=$R;function zR(i,m){var e=i.__data__;return vx(m)?e[typeof m=="string"?"string":"hash"]:e.map}var Aa=zR;function jR(i){var m=Aa(this,i).delete(i);return this.size-=m?1:0,m}var xx=jR;function qR(i){return Aa(this,i).get(i)}var Cx=qR;function KR(i){return Aa(this,i).has(i)}var Ix=KR;function ey(i,m){var e=Aa(this,i),N=e.size;return e.set(i,m),this.size+=e.size==N?0:1,this}var Ax=ey;function Qf(i){var m=-1,e=i==null?0:i.length;for(this.clear();++m<e;){var N=i[m];this.set(N[0],N[1])}}Qf.prototype.clear=mx;Qf.prototype.delete=xx;Qf.prototype.get=Cx;Qf.prototype.has=Ix;Qf.prototype.set=Ax;var Yl=Qf;var ry="Expected a function";function xm(i,m){if(typeof i!="function"||m!=null&&typeof m!="function")throw new TypeError(ry);var e=function(){var N=arguments,R=m?m.apply(this,N):N[0],L=e.cache;if(L.has(R))return L.get(R);var O=i.apply(this,N);return e.cache=L.set(R,O)||L,O};return e.cache=new(xm.Cache||Yl),e}xm.Cache=Yl;var Nx=xm;var ty=500;function iy(i){var m=Nx(i,function(N){return e.size===ty&&e.clear(),N}),e=m.cache;return m}var bx=iy;var sy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ny=/\\(\\)?/g,oy=bx(function(i){var m=[];return i.charCodeAt(0)===46&&m.push(""),i.replace(sy,function(e,N,R,L){m.push(R?L.replace(ny,"$1"):N||e)}),m}),Tx=oy;function ay(i){return i==null?"":b0(i)}var zh=ay;function ly(i,m){return qr(i)?i:Zf(i,m)?[i]:Tx(zh(i))}var jh=ly;var uy=1/0;function fy(i){if(typeof i=="string"||Ks(i))return i;var m=i+"";return m=="0"&&1/i==-uy?"-0":m}var Na=fy;function cy(i,m){m=jh(m,i);for(var e=0,N=m.length;i!=null&&e<N;)i=i[Na(m[e++])];return e&&e==N?i:void 0}var _f=cy;function py(i,m,e){var N=i==null?void 0:_f(i,m);return N===void 0?e:N}var Rx=py;function hy(i,m){for(var e=-1,N=m.length,R=i.length;++e<N;)i[R+e]=m[e];return i}var qh=hy;var yx=di?di.isConcatSpreadable:void 0;function dy(i){return qr(i)||wo(i)||!!(yx&&i&&i[yx])}var Sx=dy;function Lx(i,m,e,N,R){var L=-1,O=i.length;for(e||(e=Sx),R||(R=[]);++L<O;){var D=i[L];m>0&&e(D)?m>1?Lx(D,m-1,e,N,R):qh(R,D):N||(R[R.length]=D)}return R}var wx=Lx;var gy=Jh(Object.getPrototypeOf,Object),Kh=gy;var Ey="[object Object]",my=Function.prototype,vy=Object.prototype,Ox=my.toString,xy=vy.hasOwnProperty,Cy=Ox.call(Object);function Iy(i){if(!gi(i)||Ki(i)!=Ey)return!1;var m=Kh(i);if(m===null)return!0;var e=xy.call(m,"constructor")&&m.constructor;return typeof e=="function"&&e instanceof e&&Ox.call(e)==Cy}var Ux=Iy;function Ay(i,m,e){var N=-1,R=i.length;m<0&&(m=-m>R?0:R+m),e=e>R?R:e,e<0&&(e+=R),R=m>e?0:e-m>>>0,m>>>=0;for(var L=Array(R);++N<R;)L[N]=i[N+m];return L}var Fx=Ay;function Ny(i){return function(m){return i?.[m]}}var Gx=Ny;function by(){this.__data__=new Ca,this.size=0}var Bx=by;function Ty(i){var m=this.__data__,e=m.delete(i);return this.size=m.size,e}var Vx=Ty;function Ry(i){return this.__data__.get(i)}var Dx=Ry;function yy(i){return this.__data__.has(i)}var Mx=yy;var Sy=200;function Ly(i,m){var e=this.__data__;if(e instanceof Ca){var N=e.__data__;if(!Ia||N.length<Sy-1)return N.push([i,m]),this.size=++e.size,this;e=this.__data__=new Yl(N)}return e.set(i,m),this.size=e.size,this}var Wx=Ly;function Hf(i){var m=this.__data__=new Ca(i);this.size=m.size}Hf.prototype.clear=Bx;Hf.prototype.delete=Vx;Hf.prototype.get=Dx;Hf.prototype.has=Mx;Hf.prototype.set=Wx;var ba=Hf;var Qx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Zx=Qx&&typeof module=="object"&&module&&!module.nodeType&&module,wy=Zx&&Zx.exports===Qx,Px=wy?yt.Buffer:void 0,kx=Px?Px.allocUnsafe:void 0;function Oy(i,m){if(m)return i.slice();var e=i.length,N=kx?kx(e):new i.constructor(e);return i.copy(N),N}var _x=Oy;function Uy(i,m){for(var e=-1,N=i==null?0:i.length,R=0,L=[];++e<N;){var O=i[e];m(O,e,i)&&(L[R++]=O)}return L}var Hx=Uy;function Fy(){return[]}var Xx=Fy;var Gy=Object.prototype,By=Gy.propertyIsEnumerable,Yx=Object.getOwnPropertySymbols,Vy=Yx?function(i){return i==null?[]:(i=Object(i),Hx(Yx(i),function(m){return By.call(i,m)}))}:Xx,Jx=Vy;function Dy(i,m,e){var N=m(i);return qr(i)?N:qh(N,e(i))}var $x=Dy;function My(i){return $x(i,Wf,Jx)}var Cm=My;var Wy=Oi(yt,"DataView"),ed=Wy;var Zy=Oi(yt,"Promise"),rd=Zy;var Py=Oi(yt,"Set"),td=Py;var zx="[object Map]",ky="[object Object]",jx="[object Promise]",qx="[object Set]",Kx="[object WeakMap]",eC="[object DataView]",Qy=Lo(ed),_y=Lo(Ia),Hy=Lo(rd),Xy=Lo(td),Yy=Lo(Qh),Jl=Ki;(ed&&Jl(new ed(new ArrayBuffer(1)))!=eC||Ia&&Jl(new Ia)!=zx||rd&&Jl(rd.resolve())!=jx||td&&Jl(new td)!=qx||Qh&&Jl(new Qh)!=Kx)&&(Jl=function(i){var m=Ki(i),e=m==ky?i.constructor:void 0,N=e?Lo(e):"";if(N)switch(N){case Qy:return eC;case _y:return zx;case Hy:return jx;case Xy:return qx;case Yy:return Kx}return m});var Im=Jl;var Jy=yt.Uint8Array,Xf=Jy;function $y(i){var m=new i.constructor(i.byteLength);return new Xf(m).set(new Xf(i)),m}var rC=$y;function zy(i,m){var e=m?rC(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var tC=zy;function jy(i){return typeof i.constructor=="function"&&!Df(i)?D0(Kh(i)):{}}var iC=jy;var qy="__lodash_hash_undefined__";function Ky(i){return this.__data__.set(i,qy),this}var sC=Ky;function eS(i){return this.__data__.has(i)}var nC=eS;function id(i){var m=-1,e=i==null?0:i.length;for(this.__data__=new Yl;++m<e;)this.add(i[m])}id.prototype.add=id.prototype.push=sC;id.prototype.has=nC;var oC=id;function rS(i,m){for(var e=-1,N=i==null?0:i.length;++e<N;)if(m(i[e],e,i))return!0;return!1}var aC=rS;function tS(i,m){return i.has(m)}var lC=tS;var iS=1,sS=2;function nS(i,m,e,N,R,L){var O=e&iS,D=i.length,Z=m.length;if(D!=Z&&!(O&&Z>D))return!1;var H=L.get(i),Q=L.get(m);if(H&&Q)return H==m&&Q==i;var W=-1,$=!0,M=e&sS?new oC:void 0;for(L.set(i,m),L.set(m,i);++W<D;){var z=i[W],Y=m[W];if(N)var B=O?N(Y,z,W,m,i,L):N(z,Y,W,i,m,L);if(B!==void 0){if(B)continue;$=!1;break}if(M){if(!aC(m,function(V,X){if(!lC(M,X)&&(z===V||R(z,V,e,N,L)))return M.push(X)})){$=!1;break}}else if(!(z===Y||R(z,Y,e,N,L))){$=!1;break}}return L.delete(i),L.delete(m),$}var sd=nS;function oS(i){var m=-1,e=Array(i.size);return i.forEach(function(N,R){e[++m]=[R,N]}),e}var uC=oS;function aS(i){var m=-1,e=Array(i.size);return i.forEach(function(N){e[++m]=N}),e}var fC=aS;var lS=1,uS=2,fS="[object Boolean]",cS="[object Date]",pS="[object Error]",hS="[object Map]",dS="[object Number]",gS="[object RegExp]",ES="[object Set]",mS="[object String]",vS="[object Symbol]",xS="[object ArrayBuffer]",CS="[object DataView]",cC=di?di.prototype:void 0,Am=cC?cC.valueOf:void 0;function IS(i,m,e,N,R,L,O){switch(e){case CS:if(i.byteLength!=m.byteLength||i.byteOffset!=m.byteOffset)return!1;i=i.buffer,m=m.buffer;case xS:return!(i.byteLength!=m.byteLength||!L(new Xf(i),new Xf(m)));case fS:case cS:case dS:return Wn(+i,+m);case pS:return i.name==m.name&&i.message==m.message;case gS:case mS:return i==m+"";case hS:var D=uC;case ES:var Z=N&lS;if(D||(D=fC),i.size!=m.size&&!Z)return!1;var H=O.get(i);if(H)return H==m;N|=uS,O.set(i,m);var Q=sd(D(i),D(m),N,R,L,O);return O.delete(i),Q;case vS:if(Am)return Am.call(i)==Am.call(m)}return!1}var pC=IS;var AS=1,NS=Object.prototype,bS=NS.hasOwnProperty;function TS(i,m,e,N,R,L){var O=e&AS,D=Cm(i),Z=D.length,H=Cm(m),Q=H.length;if(Z!=Q&&!O)return!1;for(var W=Z;W--;){var $=D[W];if(!(O?$ in m:bS.call(m,$)))return!1}var M=L.get(i),z=L.get(m);if(M&&z)return M==m&&z==i;var Y=!0;L.set(i,m),L.set(m,i);for(var B=O;++W<Z;){$=D[W];var V=i[$],X=m[$];if(N)var q=O?N(X,V,$,m,i,L):N(V,X,$,i,m,L);if(!(q===void 0?V===X||R(V,X,e,N,L):q)){Y=!1;break}B||(B=$=="constructor")}if(Y&&!B){var te=i.constructor,ie=m.constructor;te!=ie&&"constructor"in i&&"constructor"in m&&!(typeof te=="function"&&te instanceof te&&typeof ie=="function"&&ie instanceof ie)&&(Y=!1)}return L.delete(i),L.delete(m),Y}var hC=TS;var RS=1,dC="[object Arguments]",gC="[object Array]",nd="[object Object]",yS=Object.prototype,EC=yS.hasOwnProperty;function SS(i,m,e,N,R,L){var O=qr(i),D=qr(m),Z=O?gC:Im(i),H=D?gC:Im(m);Z=Z==dC?nd:Z,H=H==dC?nd:H;var Q=Z==nd,W=H==nd,$=Z==H;if($&&Xl(i)){if(!Xl(m))return!1;O=!0,Q=!1}if($&&!Q)return L||(L=new ba),O||Mf(i)?sd(i,m,e,N,R,L):pC(i,m,Z,e,N,R,L);if(!(e&RS)){var M=Q&&EC.call(i,"__wrapped__"),z=W&&EC.call(m,"__wrapped__");if(M||z){var Y=M?i.value():i,B=z?m.value():m;return L||(L=new ba),R(Y,B,e,N,L)}}return $?(L||(L=new ba),hC(i,m,e,N,R,L)):!1}var mC=SS;function vC(i,m,e,N,R){return i===m?!0:i==null||m==null||!gi(i)&&!gi(m)?i!==i&&m!==m:mC(i,m,e,N,vC,R)}var od=vC;var LS=1,wS=2;function OS(i,m,e,N){var R=e.length,L=R,O=!N;if(i==null)return!L;for(i=Object(i);R--;){var D=e[R];if(O&&D[2]?D[1]!==i[D[0]]:!(D[0]in i))return!1}for(;++R<L;){D=e[R];var Z=D[0],H=i[Z],Q=D[1];if(O&&D[2]){if(H===void 0&&!(Z in i))return!1}else{var W=new ba;if(N)var $=N(H,Q,Z,i,m,W);if(!($===void 0?od(Q,H,LS|wS,N,W):$))return!1}}return!0}var xC=OS;function US(i){return i===i&&!Wt(i)}var ad=US;function FS(i){for(var m=Wf(i),e=m.length;e--;){var N=m[e],R=i[N];m[e]=[N,R,ad(R)]}return m}var CC=FS;function GS(i,m){return function(e){return e==null?!1:e[i]===m&&(m!==void 0||i in Object(e))}}var ld=GS;function BS(i){var m=CC(i);return m.length==1&&m[0][2]?ld(m[0][0],m[0][1]):function(e){return e===i||xC(e,i,m)}}var IC=BS;function VS(i,m){return i!=null&&m in Object(i)}var AC=VS;function DS(i,m,e){m=jh(m,i);for(var N=-1,R=m.length,L=!1;++N<R;){var O=Na(m[N]);if(!(L=i!=null&&e(i,O)))break;i=i[O]}return L||++N!=R?L:(R=i==null?0:i.length,!!R&&Vf(R)&&Gf(O,R)&&(qr(i)||wo(i)))}var NC=DS;function MS(i,m){return i!=null&&NC(i,m,AC)}var bC=MS;var WS=1,ZS=2;function PS(i,m){return Zf(i)&&ad(m)?ld(Na(i),m):function(e){var N=Rx(e,i);return N===void 0&&N===m?bC(e,i):od(m,N,WS|ZS)}}var TC=PS;function kS(i){return function(m){return m?.[i]}}var RC=kS;function QS(i){return function(m){return _f(m,i)}}var yC=QS;function _S(i){return Zf(i)?RC(Na(i)):yC(i)}var SC=_S;function HS(i){return typeof i=="function"?i:i==null?va:typeof i=="object"?qr(i)?TC(i[0],i[1]):IC(i):SC(i)}var LC=HS;function XS(i){return function(m,e,N){for(var R=-1,L=Object(m),O=N(m),D=O.length;D--;){var Z=O[i?D:++R];if(e(L[Z],Z,L)===!1)break}return m}}var wC=XS;var YS=wC(),ud=YS;function JS(i,m){return i&&ud(i,m,Wf)}var OC=JS;function $S(i,m){return function(e,N){if(e==null)return e;if(!Is(e))return i(e,N);for(var R=e.length,L=m?R:-1,O=Object(e);(m?L--:++L<R)&&N(O[L],L,O)!==!1;);return e}}var UC=$S;var zS=UC(OC),FC=zS;function jS(i,m,e){(e!==void 0&&!Wn(i[m],e)||e===void 0&&!(m in i))&&Bf(i,m,e)}var Sh=jS;function qS(i){return gi(i)&&Is(i)}var GC=qS;function KS(i,m){if(!(m==="constructor"&&typeof i[m]=="function")&&m!="__proto__")return i[m]}var Lh=KS;function e1(i){return H0(i,$h(i))}var BC=e1;function r1(i,m,e,N,R,L,O){var D=Lh(i,e),Z=Lh(m,e),H=O.get(Z);if(H){Sh(i,e,H);return}var Q=L?L(D,Z,e+"",i,m,O):void 0,W=Q===void 0;if(W){var $=qr(Z),M=!$&&Xl(Z),z=!$&&!M&&Mf(Z);Q=Z,$||M||z?qr(D)?Q=D:GC(D)?Q=W0(D):M?(W=!1,Q=_x(Z,!0)):z?(W=!1,Q=tC(Z,!0)):Q=[]:Ux(Z)||wo(Z)?(Q=D,wo(D)?Q=BC(D):(!Wt(D)||Kr(D))&&(Q=iC(Z))):W=!1}W&&(O.set(Z,Q),R(Q,Z,N,L,O),O.delete(Z)),Sh(i,e,Q)}var VC=r1;function DC(i,m,e,N,R){i!==m&&ud(m,function(L,O){if(R||(R=new ba),Wt(L))VC(i,m,O,e,DC,N,R);else{var D=N?N(Lh(i,O),L,O+"",i,m,R):void 0;D===void 0&&(D=L),Sh(i,O,D)}},$h)}var fd=DC;var t1=Hh(function(i,m,e,N){fd(i,m,e,N)}),Nm=t1;var i1={"&":"&","<":"<",">":">",'"':""","'":"'"},s1=Gx(i1),MC=s1;var WC=/[&<>"']/g,n1=RegExp(WC.source);function o1(i){return i=zh(i),i&&n1.test(i)?i.replace(WC,MC):i}var wh=o1;function a1(i,m){var e=-1,N=Is(i)?Array(i.length):[];return FC(i,function(R,L,O){N[++e]=m(R,L,O)}),N}var ZC=a1;var l1=Hh(function(i,m,e){fd(i,m,e)}),cd=l1;function u1(i,m){var e=i.length;for(i.sort(m);e--;)i[e]=i[e].value;return i}var PC=u1;function f1(i,m){if(i!==m){var e=i!==void 0,N=i===null,R=i===i,L=Ks(i),O=m!==void 0,D=m===null,Z=m===m,H=Ks(m);if(!D&&!H&&!L&&i>m||L&&O&&Z&&!D&&!H||N&&O&&Z||!e&&Z||!R)return 1;if(!N&&!L&&!H&&i<m||H&&e&&R&&!N&&!L||D&&e&&R||!O&&R||!Z)return-1}return 0}var kC=f1;function c1(i,m,e){for(var N=-1,R=i.criteria,L=m.criteria,O=R.length,D=e.length;++N<O;){var Z=kC(R[N],L[N]);if(Z){if(N>=D)return Z;var H=e[N];return Z*(H=="desc"?-1:1)}}return i.index-m.index}var QC=c1;function p1(i,m,e){m.length?m=Uf(m,function(L){return qr(L)?function(O){return _f(O,L.length===1?L[0]:L)}:L}):m=[va];var N=-1;m=Uf(m,Xh(LC));var R=ZC(i,function(L,O,D){var Z=Uf(m,function(H){return H(L)});return{criteria:Z,index:++N,value:L}});return PC(R,function(L,O){return QC(L,O,e)})}var _C=p1;var h1=_h(function(i,m){if(i==null)return[];var e=m.length;return e>1&&Rh(i,m[0],m[1])?m=[]:e>2&&Rh(m[0],m[1],m[2])&&(m=[m[0]]),_C(i,wx(m,1),[])}),bm=h1;function d1(i,m,e){return i&&i.length?(m=e||m===void 0?1:O0(m),Fx(i,0,m<0?0:m)):[]}var Tm=d1;var Uo=Xt(Zh());function $l(i,m){return Kr(m)?m(i):m??{}}function g1(i,m){let e=`${i}:${m}`;return`Basic ${HC(e)}`}function HC(i){if(typeof window<"u"&&typeof window.TextEncoder<"u"){let m=new window.TextEncoder().encode(i),e="";for(let N=0;N<m.length;N++)e+=String.fromCharCode(m[N]);return btoa(e)}else if(typeof TextEncoder<"u"){let m=new TextEncoder().encode(i),e="";for(let N=0;N<m.length;N++)e+=String.fromCharCode(m[N]);return btoa(e)}else try{return btoa(i)}catch{throw new Error("Basic authentication credentials contain unsupported Unicode characters. Please use a modern browser or restrict credentials to Latin1 characters.")}}function zl(i,m={}){let e=cd({},$l(i,i.config.requestConfig),$l(i,m));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let R=Kr(e.endpoint)?e.endpoint(i):e.endpoint;var L=N=="update"?"POST":Kr(e.method)?e.method(i):e.method;let O=Kr(e.headers)?e.headers(i):e.headers,D=Kr(e.withCredentials)?e.withCredentials(i):e.withCredentials,Z={...O},H=!1;try{let Q=Kr(e.oauth2Auth)?e.oauth2Auth(i):e.oauth2Auth,W=Q?.idToken||Q?.accessToken,$=W?W.trim():"";Q&&$.length>0&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping OAuth 2.0 Auth header to avoid overwrite."):Z.Authorization=`Bearer ${$}`);let M=Kr(e.bearerAuth)?e.bearerAuth(i):e.bearerAuth,z=M&&M.token?M.token.trim():"";M&&z.length>0&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Bearer Auth header to avoid overwrite."):Z.Authorization=`Bearer ${z}`);let Y=Kr(e.apiKeyAuth)?e.apiKeyAuth(i):e.apiKeyAuth,B=Y&&Y.headerName?Y.headerName.trim():"",V=Y&&Y.apiKey?Y.apiKey.trim():"";Y&&B.length>0&&V.length>0&&(H=!0,Z[B]!==void 0?console.warn(`Header "${B}" already exists in request headers; skipping API Key header to avoid overwrite.`):Z[B]=V);let X=Kr(e.basicAuth)?e.basicAuth(i):e.basicAuth;X&&X.username&&X.password&&(H=!0,Z.Authorization!==void 0?console.warn("Authorization header already exists in request headers; skipping Basic Auth header to avoid overwrite."):Z.Authorization=g1(X.username,X.password))}catch(Q){console.warn("Failed to configure authentication:",Q)}return H&&(D=!0),{reqMethod:L,url:R,args:XC(i,e),headers:Z,accept:YC(i,e),withCredentials:D??!1}}async function Rm(i,m,e){let N=Date.now();try{i.emit("queryBefore",i,m);let R=zl(i,m);if(!R)return;let L=new AbortController,O=e?.customAccept||R.accept,D={method:R.reqMethod,headers:{Accept:O,...R.headers||{}},credentials:R.withCredentials?"include":"same-origin",signal:L.signal,mode:"cors"};D?.headers&&R.reqMethod==="POST"&&(D.headers["Content-Type"]="application/x-www-form-urlencoded");let Z=new URLSearchParams,H=(z,Y=[])=>{for(let B in z)if(!Y.includes(B)){let V=z[B];Array.isArray(V)?V.forEach(X=>Z.append(B,X)):Z.append(B,V)}},Q=z=>z.query!==void 0?"query":z.update!==void 0?"update":"query";if(e?.customQuery){let z=Q(R.args);Z.append(z,e.customQuery),H(R.args,["query","update"])}else H(R.args);if(R.reqMethod==="POST")D.body=Z.toString();else{let z=new URL(R.url);Z.forEach((Y,B)=>{z.searchParams.append(B,Y)}),R.url=z.toString()}let W=new Request(R.url,D);i.emit("query",W,L);let $=await fetch(W),M={ok:$.ok,status:$.status,statusText:$.statusText,headers:$.headers,type:$.type,content:await $.text()};if(!$.ok){let z=new Error(M.content||$.statusText);throw z.status=$.status,z.statusText=$.statusText,z.response=M,z}return i.emit("queryResponse",M,Date.now()-N),i.emit("queryResults",M.content,Date.now()-N),M}catch(R){if(!(R instanceof Error&&R.message==="Aborted"))if(R instanceof Error&&!("status"in R)){let L=R;(R.message.includes("Failed to fetch")||R.message.includes("NetworkError"))&&(L.message=`${R.message}. The server may have returned an error response (check browser dev tools), but CORS headers are preventing JavaScript from accessing it. Ensure the endpoint returns proper CORS headers even for error responses (Access-Control-Allow-Origin, etc.).`),i.emit("queryResponse",L,Date.now()-N)}else i.emit("queryResponse",R,Date.now()-N);throw i.emit("error",R),R}}function XC(i,m){var e=i.getQueryMode(),N={};let R=$l(i,m);var L=Kr(R.queryArgument)?R.queryArgument(i):R.queryArgument;L||(L=i.getQueryMode()),N[L]=R.adjustQueryBeforeRequest?R.adjustQueryBeforeRequest(i):i.getValue();let O=Kr(R.namedGraphs)?R.namedGraphs(i):R.namedGraphs;if(O&&O.length>0){let H=e==="query"?"named-graph-uri":"using-named-graph-uri ";N[H]=O}let D=Kr(R.defaultGraphs)?R.defaultGraphs(i):R.defaultGraphs;if(D&&D.length>0){let H=e=="query"?"default-graph-uri":"using-graph-uri ";N[H]=D}let Z=Kr(R.args)?R.args(i):R.args;return Z&&Z.length>0&&cd(N,Z.reduce((H,Q)=>(H[Q.name]?H[Q.name].push(Q.value):H[Q.name]=[Q.value],H),{})),N}function YC(i,m){let e=$l(i,m);var N=null;if(i.getQueryMode()=="update")N=Kr(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var R=i.getQueryType();R=="DESCRIBE"||R=="CONSTRUCT"?N=Kr(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Kr(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function ym(i){if(i.indexOf("http")!==0){let m=`${window.location.protocol}//${window.location.host}`;if(i.indexOf("/")===0)m+=i;else{let e=window.location.pathname;if(!e.endsWith("/")){let N=e.lastIndexOf("/");e=N>=0?e.substring(0,N+1):"/"}m+=e+i}return m}return i}function Sm(i){if(!i)return!1;if(i.headers&&i.headers.Authorization)return!0;if(i.headers)for(let m in i.headers){let e=m.toLowerCase();if(e.startsWith("x-api-key")||e.startsWith("x-auth-")||e==="apikey"||e==="api-key"||e.endsWith("-token")&&e.startsWith("x-")||e.includes("-auth-")&&e.includes("token"))return!0}return!1}function Ei(i){return i.replace(/'/g,"'\\''")}function Lm(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=ym(e.url),R=["curl"];if(e.reqMethod==="GET")N+=`?${Uo.stringify(e.args)}`,R.push(`'${Ei(N)}'`);else if(e.reqMethod==="POST"){R.push(`'${Ei(N)}'`);let L=Uo.stringify(e.args);R.push("--data",`'${Ei(L)}'`)}else console.warn("Unexpected request-method",e.reqMethod),R.push(`'${Ei(N)}'`);R.push("-X",e.reqMethod),e.accept&&R.push("-H",`'Accept: ${Ei(e.accept)}'`);for(let L in e.headers)R.push("-H",`'${Ei(L)}: ${Ei(e.headers[L])}'`);return R.join(` \\
|
|
41
|
+
`)}function Yf(i){return i.replace(/`/g,"``").replace(/"/g,'`"').replace(/\$/g,"`$")}function wm(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=ym(e.url),R=[],L=e.accept,O="json";L&&(L.includes("text/turtle")||L.includes("application/x-turtle")?O="ttl":L.includes("application/rdf+xml")?O="xml":L.includes("application/n-triples")?O="nt":L.includes("application/ld+json")?O="jsonld":L.includes("text/csv")?O="csv":L.includes("text/tab-separated-values")&&(O="tsv"));let D=[];L&&D.push(` "Accept" = "${Yf(L)}"`);for(let Z in e.headers)D.push(` "${Yf(Z)}" = "${Yf(e.headers[Z])}"`);if(e.reqMethod==="GET")N+=`?${Uo.stringify(e.args)}`,R.push("$params = @{"),R.push(` Uri = "${Yf(N)}"`),R.push(' Method = "Get"'),D.length>0&&(R.push(" Headers = @{"),R.push(D.join(`
|
|
42
|
+
`)),R.push(" }")),R.push(` OutFile = "result.${O}"`),R.push("}");else if(e.reqMethod==="POST"){let Z=Uo.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${Yf(N)}"`),R.push(' Method = "Post"'),D.length>0&&(R.push(" Headers = @{"),R.push(D.join(`
|
|
43
|
+
`)),R.push(" }")),R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${Yf(Z)}"`),R.push(` OutFile = "result.${O}"`),R.push("}")}else{console.warn("Unexpected request-method for PowerShell",e.reqMethod);let Z=Uo.stringify(e.args);R.push("$params = @{"),R.push(` Uri = "${N}"`),R.push(` Method = "${e.reqMethod}"`),D.length>0&&(R.push(" Headers = @{"),R.push(D.join(`
|
|
44
|
+
`)),R.push(" }")),Z&&(R.push(' ContentType = "application/x-www-form-urlencoded"'),R.push(` Body = "${Z.replace(/"/g,'`"')}"`)),R.push(` OutFile = "result.${O}"`),R.push("}")}return R.push(""),R.push("Invoke-WebRequest @params"),R.join(`
|
|
45
|
+
`)}function Om(i,m){let e=zl(i,$l(i,m));if(!e)return"";let N=ym(e.url),R=["wget"];if(e.reqMethod==="GET")N+=`?${Uo.stringify(e.args)}`,R.push(`'${Ei(N)}'`);else if(e.reqMethod==="POST"){R.push(`'${Ei(N)}'`);let L=Uo.stringify(e.args);R.push("--post-data",`'${Ei(L)}'`)}else{console.warn("Unexpected request-method for wget",e.reqMethod),R.push(`'${Ei(N)}'`);let L=Uo.stringify(e.args);L&&R.push("--post-data",`'${Ei(L)}'`)}e.reqMethod!=="GET"&&R.push("--method",e.reqMethod),e.accept&&R.push("--header",`'Accept: ${Ei(e.accept)}'`);for(let L in e.headers)R.push("--header",`'${Ei(L)}: ${Ei(e.headers[L])}'`);return R.push("-O -"),R.join(` \\
|
|
46
|
+
`)}var JC='<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" height="81.9" width="72.9" version="1.1" y="0px" x="0px" viewBox="0 0 72.900002 81.900002"><path id="queryIcon" d="m69.6 35.2-60.3-34.3c-2.2-1.2-4.4-1.2-6.4 0s-2.9 3.4-2.9 5.6v68.8c0 2.2 1.2 4.4 2.9 5.6 1 0.5 2.2 1 3.4 1s2.2-0.5 2.9-1l60.3-34.3c2.2-1.2 3.4-3.4 3.4-5.6s-1.1-4.3-3.3-5.8z"/><path id="loadingIcon" d="m61.184 36.167-48.73-27.719c-1.7779-0.96976-3.5558-0.96976-5.172 0-1.6163 0.96976-2.3436 2.7476-2.3436 4.5255v55.599c0 1.7779 0.96976 3.5558 2.3436 4.5255 0.80813 0.40407 1.7779 0.80813 2.7476 0.80813 0.96975 0 1.7779-0.40406 2.3436-0.80813l48.73-27.719c1.7779-0.96976 2.7476-2.7476 2.7476-4.5255s-0.88894-3.475-2.6668-4.6872z" fill="none"/></svg>';var $C='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M36.764 50c0 .308-.07.598-.088.905l32.247 16.12c2.76-2.34 6.293-3.798 10.195-3.798C87.89 63.227 95 70.337 95 79.11 95 87.89 87.89 95 79.118 95c-8.78 0-15.882-7.11-15.882-15.89 0-.317.07-.6.088-.906l-32.247-16.12c-2.77 2.33-6.293 3.79-10.195 3.79C12.11 65.873 5 58.77 5 50c0-8.78 7.11-15.89 15.882-15.89 3.902 0 7.427 1.467 10.195 3.796l32.247-16.12c-.018-.307-.088-.597-.088-.913C63.236 12.11 70.338 5 79.118 5 87.89 5 95 12.11 95 20.873c0 8.78-7.11 15.89-15.882 15.89-3.91 0-7.436-1.467-10.195-3.805L36.676 49.086c.017.308.088.598.088.914z"/></svg>',Oh='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 66.399998 66.399998"><g><path d="M33.2 0C14.9 0 0 14.9 0 33.2c0 18.3 14.9 33.2 33.2 33.2 18.3 0 33.2-14.9 33.2-33.2C66.4 14.9 51.5 0 33.2 0zm0 59.4C18.7 59.4 7 47.6 7 33.2 7 18.7 18.8 7 33.2 7c14.4 0 26.2 11.8 26.2 26.2 0 14.4-11.8 26.2-26.2 26.2z"/><path d="M33.1 45.6c-1.4 0-2.5.5-3.5 1.5-.9 1-1.4 2.2-1.4 3.6 0 1.6.5 2.8 1.5 3.8 1 .9 2.1 1.3 3.4 1.3 1.3 0 2.4-.5 3.4-1.4 1-.9 1.5-2.2 1.5-3.7 0-1.4-.5-2.6-1.4-3.6-.9-1-2.1-1.5-3.5-1.5zM33.3 12.4c-1.5 0-2.8.5-3.7 1.6-.9 1-1.4 2.4-1.4 4.2 0 1.1.1 2.9.2 5.6l.8 13.1c.2 1.8.4 3.2.9 4.1.5 1.2 1.5 1.8 2.9 1.8 1.3 0 2.3-.7 2.9-1.9.5-1 .7-2.3.9-4l1.1-13.4c.1-1.3.2-2.5.2-3.8 0-2.2-.3-3.9-.8-5.1-.5-1-1.6-2.2-4-2.2z"/></g></svg>',zC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>',jC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/></svg>',qC='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 3v18h18v-2H5V3H3zm14 4V5l-4 4 4 4V9h4V7h-4zM7 9v2h10V9H7zm0 4v2h10v-2H7zm0 4v2h10v-2H7z"/></svg>';var Fm='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>';var Uh=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(m,e){if(m.length!=0){var N=this,R,L;if(e===void 0&&(e=0),e===m.length){N.words++;return}N.prefixes++,R=m[e],N.children[R]===void 0&&(N.children[R]=new i),L=N.children[R],L.insert(m,e+1)}}remove(m,e){if(m.length!=0){var N=this,R,L;if(e===void 0&&(e=0),N!==void 0){if(e===m.length){N.words--;return}N.prefixes--,R=m[e],L=N.children[R],L.remove(m,e+1)}}}update(m,e){m.length==0||e.length==0||(this.remove(m),this.insert(e))}countWord(m,e){if(m.length==0)return 0;var N=this,R,L,O=0;return e===void 0&&(e=0),e===m.length?N.words:(R=m[e],L=N.children[R],L!==void 0&&(O=L.countWord(m,e+1)),O)}countPrefix(m,e){if(m.length==0)return 0;var N=this,O,R,L=0;if(e===void 0&&(e=0),e===m.length)return N.prefixes;var O=m[e];return R=N.children[O],R!==void 0&&(L=R.countPrefix(m,e+1)),L}find(m){return m.length==0?!1:this.countWord(m)>0}getAllWords(m){var e=this,N,R,L=[];if(m===void 0&&(m=""),e===void 0)return[];e.words>0&&L.push(m);for(N in e.children)e.children.hasOwnProperty(N)&&(R=e.children[N],L=L.concat(R.getAllWords(m+N)));return L}autoComplete(m,e){var N=this,R,L;return m.length==0?e===void 0?N.getAllWords(m):[]:(e===void 0&&(e=0),R=m[e],L=N.children[R],L===void 0?[]:e===m.length-1?L.getAllWords(m):L.autoComplete(m,e+1))}};var dI=Xt(uI());var Vm=Xt(si());var N1={name:"variables",isValidCompletionPosition:function(i){var m=i.getTokenAt(i.getDoc().getCursor());return!!(m.type!="ws"&&(m=i.getCompleteToken(m),m&&(m.string[0]==="?"||m.string[0]==="$")))},get:function(i,m){if(!m||m.string.length==0)return[];let e={},N=[],R=i.getWrapperElement().querySelectorAll(".cm-atom");for(let O=0;O<R.length;O++){let D=R[O];var L=D.innerHTML;if(L[0]==="?"||L[0]==="$"){let Z=D.nextSibling;if(Z&&Z.className&&Z.className.indexOf("cm-atom")>=0&&(L+=Z.innerText),e[L]||L.length<=1||L.indexOf(m.string)!==0||L===m.string)continue;e[L]=!0,N.push(L)}}return N.sort()},bulk:!1,autoShow:!0},fI=N1;var b1={"string-2":"prefixed",atom:"var"},T1={postprocessHints:function(i,m){return bm(m,e=>e.text.split(":")[0])},onInitialize:function(i){i.on("change",()=>{if(!(!i.config.autocompleters||i.config.autocompleters.indexOf(this.name)==-1)){var m=i.getDoc().getCursor(),e=i.getTokenAt(m);if(e.type&&b1[e.type]=="prefixed"){var N=e.string.indexOf(":");if(N!==-1){var R=i.getPreviousNonWsToken(m.line,e).string.toUpperCase(),L=i.getTokenAt({line:m.line,ch:e.start});if(R!=="PREFIX"&&(L.type=="ws"||L.type==null||L.type==="punc"&&(L.string==="|"||L.string==="/"||L.string=="^^"||L.string=="{"||L.string==="("))){var O=e.string.substring(0,N+1),D=i.getPrefixesFromQuery();D[O.slice(0,-1)]==null&&(e.autocompletionString=O,i.autocompleters[this.name]?.getCompletions(e).then(Z=>{Z.length&&(i.addPrefixes(Z[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var m=i.getDoc().getCursor(),e=i.getTokenAt(m);if(i.getDoc().getLine(m.line).length>m.ch||(e.type!="ws"&&(e=i.getCompleteToken()),e.string.indexOf("a")!==0&&e.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var N=i.getPreviousNonWsToken(m.line,e);return!(!N||N.string.toUpperCase()!="PREFIX")},get:function(i){return fetch(i.config.prefixCcApi).then(m=>{if(!m.ok)throw new Error("Failed to fetch prefixes");return m.json()}).then(m=>{let e=[];for(let N in m){let R=`${N}: <${m[N]}>`;e.push(R)}return e.sort()})},preProcessToken:function(i,m){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,m);return e&&e.string&&e.string.slice(-1)==":"&&(m={start:e.start,end:m.end,string:e.string+" "+m.string,state:m.state,type:m.type}),m},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},cI=T1;var R1={onInitialize:function(i){},get:function(i,m){return Ed(i,"property",m)},isValidCompletionPosition:function(i){let m=i.getCompleteToken();return m.string.length==0||m.string[0]==="?"||m.string[0]==="$"?!1:m.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(i,m){return dd(i,m)},postProcessSuggestion:function(i,m,e){return gd(i,m,e)},bulk:!1,name:"property"},pI=R1;var y1={onInitialize:function(i){},get:function(i,m){return Ed(i,"class",m)},isValidCompletionPosition:function(i){let m=i.getCompleteToken();if(m.string[0]==="?"||m.string[0]==="$")return!1;let e=i.getDoc().getCursor(),N=i.getPreviousNonWsToken(e.line,m);return N.state.lastProperty==="a"||N.state.lastProperty==="rdf:type"||N.state.lastProperty==="rdfs:domain"||N.state.lastProperty==="rdfs:range"},preProcessToken:function(i,m){return dd(i,m)},postProcessSuggestion:function(i,m,e){return gd(i,m,e)},bulk:!1,name:"class"},hI=y1;var S1=100,md=class extends dI.EventEmitter{constructor(m,e){super(),this.yasqe=m,this.config=e}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(m){if(!(!m||!(m instanceof Array))){this.trie=new Uh;for(let N of m)this.trie.insert(N);var e=this.getStorageId();e&&this.yasqe.storage.set(e,m,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(m){if(!this.config.get)return Promise.resolve([]);if(!m)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(N=>N instanceof Array?N:[]);let e=m.autocompletionString||m.string;return this.trie?Promise.resolve(Tm(this.trie.autoComplete(e),S1)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(N=>N.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,m)).then(N=>N instanceof Array?N:[])}initialize(){if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var m,e=this.getStorageId();return e&&(m=this.yasqe.storage.get(e)),m&&m.length>0?(this.storeBulkCompletions(m),Promise.resolve()):this.getCompletions().then(N=>this.storeBulkCompletions(N))}return Promise.resolve()}isValidPosition(){return this.config.isValidCompletionPosition?this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1):!1}getHint(m,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,m,e));let N,R,L=this.yasqe.getDoc().getCursor();m.from&&(N={...L,...m.from});let O=this.yasqe.getDoc().getCursor().line;return m.to?R={ch:m?.to?.ch||this.yasqe.getCompleteToken().end,line:O}:m.string.length>0?R={ch:this.yasqe.getCompleteToken().end,line:O}:R=m.from,{text:e,displayText:e,from:N,to:R}}getHints(m){return this.config.preProcessToken&&(m=this.config.preProcessToken(this.yasqe,m)),m?this.getCompletions(m).then(e=>e.map(N=>this.getHint(m,N))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}autocomplete(m){if(!this.isValidPosition())return!1;let e=this.yasqe.state.completionActive,N=this.yasqe.getDoc().getCursor();if(e&&N.sticky&&N.ch!==e.startPos.ch?this.yasqe.state.completionActive.startPos=N:e&&!N.sticky&&N.ch<e.startPos.ch&&(N.sticky=e.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=N.ch,this.yasqe.state.completionActive.startLen--),m&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let R=()=>this.getHints(this.yasqe.getCompleteToken()).then(O=>{let D=this.yasqe.getDoc().getCursor(),Z=this.yasqe.getCompleteToken(),H={list:O,from:{line:D.line,ch:Z.start},to:{line:D.line,ch:Z.end}};return Vm.default.on(H,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),Vm.default.on(H,"close",()=>{this.yasqe.emit("autocompletionClose")}),H});R.async=!1;var L={closeCharacters:/[\s>"]/,completeSingle:!1,hint:R,container:this.yasqe.rootEl,extraKeys:{Home:(O,D)=>{O.getDoc().setCursor({ch:0,line:D.data.from.line})},End:(O,D)=>{O.getDoc().setCursor({ch:O.getLine(D.data.to.line).length,line:D.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(L),!0}};function dd(i,m){let e=i.getPrefixesFromQuery(),N=m.string;if(N.indexOf("<")<0&&(m.tokenPrefix=N.substring(0,N.indexOf(":")+1),e[m.tokenPrefix.slice(0,-1)]!=null&&(m.tokenPrefixUri=e[m.tokenPrefix.slice(0,-1)])),m.autocompletionString=N.trim(),N.indexOf("<")<0&&N.indexOf(":")>-1){for(var R in e)if(m.tokenPrefix===R+":"){m.autocompletionString=e[R],m.autocompletionString+=N.substring(R.length+1);break}}return m.autocompletionString.indexOf("<")==0&&(m.autocompletionString=m.autocompletionString.substring(1)),m.autocompletionString.indexOf(">",m.autocompletionString.length-1)>0&&(m.autocompletionString=m.autocompletionString.substring(0,m.autocompletionString.length-1)),m}function gd(i,m,e){return m.tokenPrefix&&m.autocompletionString&&m.tokenPrefixUri?e=m.tokenPrefix+e.substring(m.tokenPrefixUri.length):e="<"+e+">",e}var Ed=(i,m,e)=>{var N=window.location.protocol.indexOf("http")===0?"https://":"http://";let R="autocomplete_"+m;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(R,"Nothing to autocomplete yet!"),Promise.resolve([]);let L=new URLSearchParams;e.autocompletionString&&L.append("q",e.autocompletionString),L.append("page_size","50"),L.append("type",m);let O=`${N}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${L.toString()}`;return fetch(O).then(D=>{if(!D.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return D.json()}).then(D=>D.results?D.results.map(Z=>Z.uri[0]):[]).catch(D=>{i.showNotification(R,"Failed fetching suggestions")})},gI=[fI,cI,pI,hI];var EI=Xt(Zh()),vd=Xt(si());function Dm(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
41
47
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
42
48
|
SELECT * WHERE {
|
|
43
49
|
?sub ?pred ?obj .
|
|
44
|
-
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new
|
|
50
|
+
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new vd.default.fold.combine(vd.default.fold.brace,vd.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","gutterConstructWarning","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(N){N.autocomplete()},"Shift-Ctrl-K":function(N){let R=N,L=R.getDoc().getCursor().line;return L===R.getDoc().lastLine()&&L>1?R.getDoc().replaceRange("",{ch:R.getDoc().getLine(L-1).length,line:L-1},{ch:R.getDoc().getLine(L).length,line:L}):R.getDoc().replaceRange("",{ch:0,line:L},{ch:0,line:L+1})},"Ctrl-/":function(N){N.commentLines()},"Shift-Ctrl-D":function(N){N.duplicateLine()},"Shift-Ctrl-F":function(N){N.format()},"Ctrl-S":function(N){N.saveQuery()},"Cmd-Enter":function(N){N.query().catch(()=>{})},"Ctrl-Enter":function(N){N.query().catch(()=>{})},Esc:function(N){N.getInputField().blur()}},createShareableLink:function(N){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+EI.stringify(N.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(N){N.queryParamsToConfig(N.getUrlParams())},persistenceId:function(N){let R="",L=N.rootEl;for(L.id&&(R=L.id);L&&L!==document;L=L.parentNode)if(L){L.id&&(R=L.id);break}return"yasqe_"+R+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json",showFormatButton:!0,checkConstructVariables:!0,snippets:[{label:"SELECT",code:`SELECT * WHERE {
|
|
45
51
|
?s ?p ?o .
|
|
46
52
|
} LIMIT 10`,group:"Query Types"},{label:"CONSTRUCT",code:`CONSTRUCT {
|
|
47
53
|
?s ?p ?o .
|
|
@@ -51,54 +57,54 @@ SELECT * WHERE {
|
|
|
51
57
|
?s ?p ?o .
|
|
52
58
|
}`,group:"Query Types"},{label:"FILTER",code:"FILTER (?var > 100)",group:"Patterns"},{label:"OPTIONAL",code:`OPTIONAL {
|
|
53
59
|
?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,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var Ed=Xt(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]",R=N+"|_",w="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",G="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",V="\\?"+G,Z="\\$"+G,H="("+N+")((("+w+")|\\.)*("+w+"))?",_="[0-9A-Fa-f]",M="("+("(%"+_+_+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",z="("+R+"|:|[0-9]|"+M+")(("+w+"|\\.|:|"+M+")*("+w+"|:|"+M+"))?",$="_:("+R+"|[0-9])(("+w+"|\\.)*"+w+")?",B="("+H+")?:",D=B+z,X="@[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("^"+X),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 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 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,ye(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 ye=pe.substr(0,1);for(;fr>=0;--fr)if(Oe.stack[fr]==ye){--fr;break}}else{let ye=Zr[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: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=Xt(Uv()),PV=Xt(CA()),ZV=Xt(NA()),kV=Xt(RA()),QV=Xt(LA()),_V=Xt(Gv()),HV=Xt(PA()),XV=Xt(QA()),YV=Xt(XA());Ed.default.registerHelper("fold","prefix",jv);Ed.default.defineMode("sparql11",gA);var T1=Ed.default,Na=T1;function R1(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}R1(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,G=this.location.source+":"+w.line+":"+w.column;if(e){var V=this.location.end,Z=Fv("",w.line.toString().length," "),H=e[R.line-1],_=R.line===V.line?V.column:H.length+1,W=_-R.column||1;v+=`
|
|
55
|
-
--> `+
|
|
60
|
+
}`,group:"Patterns"}],showSnippetsBar:!0},requestConfig:{queryArgument:void 0,endpoint:"https://dbpedia.org/sparql",method:"POST",acceptHeaderGraph:"text/turtle,*/*;q=0.9",acceptHeaderSelect:"application/sparql-results+json,*/*;q=0.9",acceptHeaderUpdate:"text/plain,*/*;q=0.9",namedGraphs:[],defaultGraphs:[],args:[],headers:{},withCredentials:!1,adjustQueryBeforeRequest:!1,basicAuth:void 0,bearerAuth:void 0,apiKeyAuth:void 0,oauth2Auth:void 0}}}var Cd=Xt(si());var mI={"*[&&,valueLogical]":{"&&":["[&&,valueLogical]","*[&&,valueLogical]"],AS:[],")":[],",":[],"||":[],";":[]},"*[,,expression]":{",":["[,,expression]","*[,,expression]"],")":[]},"*[,,objectPath]":{",":["[,,objectPath]","*[,,objectPath]"],".":[],";":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[,,object]":{",":["[,,object]","*[,,object]"],".":[],";":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[/,pathEltOrInverse]":{"/":["[/,pathEltOrInverse]","*[/,pathEltOrInverse]"],"|":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":["[;,?[or([verbPath,verbSimple]),objectListPath]]","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[;,?[verb,objectList]]":{";":["[;,?[verb,objectList]]","*[;,?[verb,objectList]]"],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"*[UNION,groupGraphPattern]":{UNION:["[UNION,groupGraphPattern]","*[UNION,groupGraphPattern]"],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"*[graphPatternNotTriples,?.,?triplesBlock]":{"{":["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["[graphPatternNotTriples,?.,?triplesBlock]","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":[]},"*[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["[quadsNotTriples,?.,?triplesTemplate]","*[quadsNotTriples,?.,?triplesTemplate]"],"}":[]},"*[|,pathOneInPropertySet]":{"|":["[|,pathOneInPropertySet]","*[|,pathOneInPropertySet]"],")":[]},"*[|,pathSequence]":{"|":["[|,pathSequence]","*[|,pathSequence]"],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"*[||,conditionalAndExpression]":{"||":["[||,conditionalAndExpression]","*[||,conditionalAndExpression]"],AS:[],")":[],",":[],";":[]},"*dataBlockValue":{UNDEF:["dataBlockValue","*dataBlockValue"],IRI_REF:["dataBlockValue","*dataBlockValue"],TRUE:["dataBlockValue","*dataBlockValue"],FALSE:["dataBlockValue","*dataBlockValue"],PNAME_LN:["dataBlockValue","*dataBlockValue"],PNAME_NS:["dataBlockValue","*dataBlockValue"],STRING_LITERAL1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL2:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG1:["dataBlockValue","*dataBlockValue"],STRING_LITERAL_LONG2:["dataBlockValue","*dataBlockValue"],INTEGER:["dataBlockValue","*dataBlockValue"],DECIMAL:["dataBlockValue","*dataBlockValue"],DOUBLE:["dataBlockValue","*dataBlockValue"],INTEGER_POSITIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_POSITIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_POSITIVE:["dataBlockValue","*dataBlockValue"],INTEGER_NEGATIVE:["dataBlockValue","*dataBlockValue"],DECIMAL_NEGATIVE:["dataBlockValue","*dataBlockValue"],DOUBLE_NEGATIVE:["dataBlockValue","*dataBlockValue"],"}":[],")":[]},"*datasetClause":{FROM:["datasetClause","*datasetClause"],WHERE:[],"{":[]},"*describeDatasetClause":{FROM:["describeDatasetClause","*describeDatasetClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],VALUES:[],$:[]},"*graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"],")":[]},"*graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"],")":[]},"*groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"*havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"*or([[(,*dataBlockValue,)],NIL])":{"(":["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],NIL:["or([[(,*dataBlockValue,)],NIL])","*or([[(,*dataBlockValue,)],NIL])"],"}":[]},"*or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])","*or([[*,unaryExpression],[/,unaryExpression]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],";":[]},"*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"*or([baseDecl,prefixDecl])":{BASE:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],PREFIX:["or([baseDecl,prefixDecl])","*or([baseDecl,prefixDecl])"],$:[],CONSTRUCT:[],DESCRIBE:[],ASK:[],INSERT:[],DELETE:[],SELECT:[],LOAD:[],CLEAR:[],DROP:[],ADD:[],MOVE:[],COPY:[],CREATE:[],WITH:[]},"*or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],WHERE:[],"{":[],FROM:[]},"*orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"*usingClause":{USING:["usingClause","*usingClause"],WHERE:[]},"*var":{VAR1:["var","*var"],VAR2:["var","*var"],")":[]},"*varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],WHERE:[],"{":[],FROM:[],VALUES:[],$:[]},"+graphNode":{"(":["graphNode","*graphNode"],"[":["graphNode","*graphNode"],VAR1:["graphNode","*graphNode"],VAR2:["graphNode","*graphNode"],NIL:["graphNode","*graphNode"],IRI_REF:["graphNode","*graphNode"],TRUE:["graphNode","*graphNode"],FALSE:["graphNode","*graphNode"],BLANK_NODE_LABEL:["graphNode","*graphNode"],ANON:["graphNode","*graphNode"],PNAME_LN:["graphNode","*graphNode"],PNAME_NS:["graphNode","*graphNode"],STRING_LITERAL1:["graphNode","*graphNode"],STRING_LITERAL2:["graphNode","*graphNode"],STRING_LITERAL_LONG1:["graphNode","*graphNode"],STRING_LITERAL_LONG2:["graphNode","*graphNode"],INTEGER:["graphNode","*graphNode"],DECIMAL:["graphNode","*graphNode"],DOUBLE:["graphNode","*graphNode"],INTEGER_POSITIVE:["graphNode","*graphNode"],DECIMAL_POSITIVE:["graphNode","*graphNode"],DOUBLE_POSITIVE:["graphNode","*graphNode"],INTEGER_NEGATIVE:["graphNode","*graphNode"],DECIMAL_NEGATIVE:["graphNode","*graphNode"],DOUBLE_NEGATIVE:["graphNode","*graphNode"]},"+graphNodePath":{"(":["graphNodePath","*graphNodePath"],"[":["graphNodePath","*graphNodePath"],VAR1:["graphNodePath","*graphNodePath"],VAR2:["graphNodePath","*graphNodePath"],NIL:["graphNodePath","*graphNodePath"],IRI_REF:["graphNodePath","*graphNodePath"],TRUE:["graphNodePath","*graphNodePath"],FALSE:["graphNodePath","*graphNodePath"],BLANK_NODE_LABEL:["graphNodePath","*graphNodePath"],ANON:["graphNodePath","*graphNodePath"],PNAME_LN:["graphNodePath","*graphNodePath"],PNAME_NS:["graphNodePath","*graphNodePath"],STRING_LITERAL1:["graphNodePath","*graphNodePath"],STRING_LITERAL2:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath","*graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath","*graphNodePath"],INTEGER:["graphNodePath","*graphNodePath"],DECIMAL:["graphNodePath","*graphNodePath"],DOUBLE:["graphNodePath","*graphNodePath"],INTEGER_POSITIVE:["graphNodePath","*graphNodePath"],DECIMAL_POSITIVE:["graphNodePath","*graphNodePath"],DOUBLE_POSITIVE:["graphNodePath","*graphNodePath"],INTEGER_NEGATIVE:["graphNodePath","*graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath","*graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath","*graphNodePath"]},"+groupCondition":{"(":["groupCondition","*groupCondition"],STR:["groupCondition","*groupCondition"],LANG:["groupCondition","*groupCondition"],LANGMATCHES:["groupCondition","*groupCondition"],DATATYPE:["groupCondition","*groupCondition"],BOUND:["groupCondition","*groupCondition"],IRI:["groupCondition","*groupCondition"],URI:["groupCondition","*groupCondition"],BNODE:["groupCondition","*groupCondition"],RAND:["groupCondition","*groupCondition"],ABS:["groupCondition","*groupCondition"],CEIL:["groupCondition","*groupCondition"],FLOOR:["groupCondition","*groupCondition"],ROUND:["groupCondition","*groupCondition"],CONCAT:["groupCondition","*groupCondition"],STRLEN:["groupCondition","*groupCondition"],UCASE:["groupCondition","*groupCondition"],LCASE:["groupCondition","*groupCondition"],ENCODE_FOR_URI:["groupCondition","*groupCondition"],CONTAINS:["groupCondition","*groupCondition"],STRSTARTS:["groupCondition","*groupCondition"],STRENDS:["groupCondition","*groupCondition"],STRBEFORE:["groupCondition","*groupCondition"],STRAFTER:["groupCondition","*groupCondition"],YEAR:["groupCondition","*groupCondition"],MONTH:["groupCondition","*groupCondition"],DAY:["groupCondition","*groupCondition"],HOURS:["groupCondition","*groupCondition"],MINUTES:["groupCondition","*groupCondition"],SECONDS:["groupCondition","*groupCondition"],TIMEZONE:["groupCondition","*groupCondition"],TZ:["groupCondition","*groupCondition"],NOW:["groupCondition","*groupCondition"],UUID:["groupCondition","*groupCondition"],STRUUID:["groupCondition","*groupCondition"],MD5:["groupCondition","*groupCondition"],SHA1:["groupCondition","*groupCondition"],SHA256:["groupCondition","*groupCondition"],SHA384:["groupCondition","*groupCondition"],SHA512:["groupCondition","*groupCondition"],COALESCE:["groupCondition","*groupCondition"],IF:["groupCondition","*groupCondition"],STRLANG:["groupCondition","*groupCondition"],STRDT:["groupCondition","*groupCondition"],SAMETERM:["groupCondition","*groupCondition"],ISIRI:["groupCondition","*groupCondition"],ISURI:["groupCondition","*groupCondition"],ISBLANK:["groupCondition","*groupCondition"],ISLITERAL:["groupCondition","*groupCondition"],ISNUMERIC:["groupCondition","*groupCondition"],VAR1:["groupCondition","*groupCondition"],VAR2:["groupCondition","*groupCondition"],SUBSTR:["groupCondition","*groupCondition"],REPLACE:["groupCondition","*groupCondition"],REGEX:["groupCondition","*groupCondition"],EXISTS:["groupCondition","*groupCondition"],NOT:["groupCondition","*groupCondition"],IRI_REF:["groupCondition","*groupCondition"],PNAME_LN:["groupCondition","*groupCondition"],PNAME_NS:["groupCondition","*groupCondition"]},"+havingCondition":{"(":["havingCondition","*havingCondition"],STR:["havingCondition","*havingCondition"],LANG:["havingCondition","*havingCondition"],LANGMATCHES:["havingCondition","*havingCondition"],DATATYPE:["havingCondition","*havingCondition"],BOUND:["havingCondition","*havingCondition"],IRI:["havingCondition","*havingCondition"],URI:["havingCondition","*havingCondition"],BNODE:["havingCondition","*havingCondition"],RAND:["havingCondition","*havingCondition"],ABS:["havingCondition","*havingCondition"],CEIL:["havingCondition","*havingCondition"],FLOOR:["havingCondition","*havingCondition"],ROUND:["havingCondition","*havingCondition"],CONCAT:["havingCondition","*havingCondition"],STRLEN:["havingCondition","*havingCondition"],UCASE:["havingCondition","*havingCondition"],LCASE:["havingCondition","*havingCondition"],ENCODE_FOR_URI:["havingCondition","*havingCondition"],CONTAINS:["havingCondition","*havingCondition"],STRSTARTS:["havingCondition","*havingCondition"],STRENDS:["havingCondition","*havingCondition"],STRBEFORE:["havingCondition","*havingCondition"],STRAFTER:["havingCondition","*havingCondition"],YEAR:["havingCondition","*havingCondition"],MONTH:["havingCondition","*havingCondition"],DAY:["havingCondition","*havingCondition"],HOURS:["havingCondition","*havingCondition"],MINUTES:["havingCondition","*havingCondition"],SECONDS:["havingCondition","*havingCondition"],TIMEZONE:["havingCondition","*havingCondition"],TZ:["havingCondition","*havingCondition"],NOW:["havingCondition","*havingCondition"],UUID:["havingCondition","*havingCondition"],STRUUID:["havingCondition","*havingCondition"],MD5:["havingCondition","*havingCondition"],SHA1:["havingCondition","*havingCondition"],SHA256:["havingCondition","*havingCondition"],SHA384:["havingCondition","*havingCondition"],SHA512:["havingCondition","*havingCondition"],COALESCE:["havingCondition","*havingCondition"],IF:["havingCondition","*havingCondition"],STRLANG:["havingCondition","*havingCondition"],STRDT:["havingCondition","*havingCondition"],SAMETERM:["havingCondition","*havingCondition"],ISIRI:["havingCondition","*havingCondition"],ISURI:["havingCondition","*havingCondition"],ISBLANK:["havingCondition","*havingCondition"],ISLITERAL:["havingCondition","*havingCondition"],ISNUMERIC:["havingCondition","*havingCondition"],SUBSTR:["havingCondition","*havingCondition"],REPLACE:["havingCondition","*havingCondition"],REGEX:["havingCondition","*havingCondition"],EXISTS:["havingCondition","*havingCondition"],NOT:["havingCondition","*havingCondition"],IRI_REF:["havingCondition","*havingCondition"],PNAME_LN:["havingCondition","*havingCondition"],PNAME_NS:["havingCondition","*havingCondition"]},"+or([var,[(,expression,AS,var,)]])":{"(":["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR1:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"],VAR2:["or([var,[(,expression,AS,var,)]])","*or([var,[(,expression,AS,var,)]])"]},"+orderCondition":{ASC:["orderCondition","*orderCondition"],DESC:["orderCondition","*orderCondition"],VAR1:["orderCondition","*orderCondition"],VAR2:["orderCondition","*orderCondition"],"(":["orderCondition","*orderCondition"],STR:["orderCondition","*orderCondition"],LANG:["orderCondition","*orderCondition"],LANGMATCHES:["orderCondition","*orderCondition"],DATATYPE:["orderCondition","*orderCondition"],BOUND:["orderCondition","*orderCondition"],IRI:["orderCondition","*orderCondition"],URI:["orderCondition","*orderCondition"],BNODE:["orderCondition","*orderCondition"],RAND:["orderCondition","*orderCondition"],ABS:["orderCondition","*orderCondition"],CEIL:["orderCondition","*orderCondition"],FLOOR:["orderCondition","*orderCondition"],ROUND:["orderCondition","*orderCondition"],CONCAT:["orderCondition","*orderCondition"],STRLEN:["orderCondition","*orderCondition"],UCASE:["orderCondition","*orderCondition"],LCASE:["orderCondition","*orderCondition"],ENCODE_FOR_URI:["orderCondition","*orderCondition"],CONTAINS:["orderCondition","*orderCondition"],STRSTARTS:["orderCondition","*orderCondition"],STRENDS:["orderCondition","*orderCondition"],STRBEFORE:["orderCondition","*orderCondition"],STRAFTER:["orderCondition","*orderCondition"],YEAR:["orderCondition","*orderCondition"],MONTH:["orderCondition","*orderCondition"],DAY:["orderCondition","*orderCondition"],HOURS:["orderCondition","*orderCondition"],MINUTES:["orderCondition","*orderCondition"],SECONDS:["orderCondition","*orderCondition"],TIMEZONE:["orderCondition","*orderCondition"],TZ:["orderCondition","*orderCondition"],NOW:["orderCondition","*orderCondition"],UUID:["orderCondition","*orderCondition"],STRUUID:["orderCondition","*orderCondition"],MD5:["orderCondition","*orderCondition"],SHA1:["orderCondition","*orderCondition"],SHA256:["orderCondition","*orderCondition"],SHA384:["orderCondition","*orderCondition"],SHA512:["orderCondition","*orderCondition"],COALESCE:["orderCondition","*orderCondition"],IF:["orderCondition","*orderCondition"],STRLANG:["orderCondition","*orderCondition"],STRDT:["orderCondition","*orderCondition"],SAMETERM:["orderCondition","*orderCondition"],ISIRI:["orderCondition","*orderCondition"],ISURI:["orderCondition","*orderCondition"],ISBLANK:["orderCondition","*orderCondition"],ISLITERAL:["orderCondition","*orderCondition"],ISNUMERIC:["orderCondition","*orderCondition"],SUBSTR:["orderCondition","*orderCondition"],REPLACE:["orderCondition","*orderCondition"],REGEX:["orderCondition","*orderCondition"],EXISTS:["orderCondition","*orderCondition"],NOT:["orderCondition","*orderCondition"],IRI_REF:["orderCondition","*orderCondition"],PNAME_LN:["orderCondition","*orderCondition"],PNAME_NS:["orderCondition","*orderCondition"]},"+varOrIRIref":{VAR1:["varOrIRIref","*varOrIRIref"],VAR2:["varOrIRIref","*varOrIRIref"],IRI_REF:["varOrIRIref","*varOrIRIref"],PNAME_LN:["varOrIRIref","*varOrIRIref"],PNAME_NS:["varOrIRIref","*varOrIRIref"]},"?.":{".":["."],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?DISTINCT":{DISTINCT:["DISTINCT"],"!":[],"+":[],"-":[],VAR1:[],VAR2:[],"(":[],STR:[],LANG:[],LANGMATCHES:[],DATATYPE:[],BOUND:[],IRI:[],URI:[],BNODE:[],RAND:[],ABS:[],CEIL:[],FLOOR:[],ROUND:[],CONCAT:[],STRLEN:[],UCASE:[],LCASE:[],ENCODE_FOR_URI:[],CONTAINS:[],STRSTARTS:[],STRENDS:[],STRBEFORE:[],STRAFTER:[],YEAR:[],MONTH:[],DAY:[],HOURS:[],MINUTES:[],SECONDS:[],TIMEZONE:[],TZ:[],NOW:[],UUID:[],STRUUID:[],MD5:[],SHA1:[],SHA256:[],SHA384:[],SHA512:[],COALESCE:[],IF:[],STRLANG:[],STRDT:[],SAMETERM:[],ISIRI:[],ISURI:[],ISBLANK:[],ISLITERAL:[],ISNUMERIC:[],TRUE:[],FALSE:[],COUNT:[],SUM:[],MIN:[],MAX:[],AVG:[],SAMPLE:[],GROUP_CONCAT:[],SUBSTR:[],REPLACE:[],REGEX:[],EXISTS:[],NOT:[],IRI_REF:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],PNAME_LN:[],PNAME_NS:[],"*":[]},"?GRAPH":{GRAPH:["GRAPH"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT":{SILENT:["SILENT"],VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_1":{SILENT:["SILENT"],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?SILENT_2":{SILENT:["SILENT"],GRAPH:[],DEFAULT:[],NAMED:[],ALL:[]},"?SILENT_3":{SILENT:["SILENT"],GRAPH:[]},"?SILENT_4":{SILENT:["SILENT"],DEFAULT:[],GRAPH:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[]},"?WHERE":{WHERE:["WHERE"],"{":[]},"?[,,expression]":{",":["[,,expression]"],")":[]},"?[.,?constructTriples]":{".":["[.,?constructTriples]"],"}":[]},"?[.,?triplesBlock]":{".":["[.,?triplesBlock]"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[.,?triplesTemplate]":{".":["[.,?triplesTemplate]"],"}":[],GRAPH:[]},"?[;,SEPARATOR,=,string]":{";":["[;,SEPARATOR,=,string]"],")":[]},"?[;,update]":{";":["[;,update]"],$:[]},"?[AS,var]":{AS:["[AS,var]"],")":[]},"?[INTO,graphRef]":{INTO:["[INTO,graphRef]"],";":[],$:[]},"?[or([verbPath,verbSimple]),objectListPath]":{VAR1:["[or([verbPath,verbSimple]),objectListPath]"],VAR2:["[or([verbPath,verbSimple]),objectListPath]"],"^":["[or([verbPath,verbSimple]),objectListPath]"],a:["[or([verbPath,verbSimple]),objectListPath]"],"!":["[or([verbPath,verbSimple]),objectListPath]"],"(":["[or([verbPath,verbSimple]),objectListPath]"],IRI_REF:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_LN:["[or([verbPath,verbSimple]),objectListPath]"],PNAME_NS:["[or([verbPath,verbSimple]),objectListPath]"],";":[],".":[],"]":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],"^":["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],IRI_REF:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_LN:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],PNAME_NS:["[pathOneInPropertySet,*[|,pathOneInPropertySet]]"],")":[]},"?[update1,?[;,update]]":{INSERT:["[update1,?[;,update]]"],DELETE:["[update1,?[;,update]]"],LOAD:["[update1,?[;,update]]"],CLEAR:["[update1,?[;,update]]"],DROP:["[update1,?[;,update]]"],ADD:["[update1,?[;,update]]"],MOVE:["[update1,?[;,update]]"],COPY:["[update1,?[;,update]]"],CREATE:["[update1,?[;,update]]"],WITH:["[update1,?[;,update]]"],$:[]},"?[verb,objectList]":{a:["[verb,objectList]"],VAR1:["[verb,objectList]"],VAR2:["[verb,objectList]"],IRI_REF:["[verb,objectList]"],PNAME_LN:["[verb,objectList]"],PNAME_NS:["[verb,objectList]"],";":[],".":[],"]":[],"}":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?argList":{NIL:["argList"],"(":["argList"],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],"*":[],"/":[],";":[]},"?constructTriples":{VAR1:["constructTriples"],VAR2:["constructTriples"],NIL:["constructTriples"],"(":["constructTriples"],"[":["constructTriples"],IRI_REF:["constructTriples"],TRUE:["constructTriples"],FALSE:["constructTriples"],BLANK_NODE_LABEL:["constructTriples"],ANON:["constructTriples"],PNAME_LN:["constructTriples"],PNAME_NS:["constructTriples"],STRING_LITERAL1:["constructTriples"],STRING_LITERAL2:["constructTriples"],STRING_LITERAL_LONG1:["constructTriples"],STRING_LITERAL_LONG2:["constructTriples"],INTEGER:["constructTriples"],DECIMAL:["constructTriples"],DOUBLE:["constructTriples"],INTEGER_POSITIVE:["constructTriples"],DECIMAL_POSITIVE:["constructTriples"],DOUBLE_POSITIVE:["constructTriples"],INTEGER_NEGATIVE:["constructTriples"],DECIMAL_NEGATIVE:["constructTriples"],DOUBLE_NEGATIVE:["constructTriples"],"}":[]},"?groupClause":{GROUP:["groupClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],HAVING:[],$:[],"}":[]},"?havingClause":{HAVING:["havingClause"],VALUES:[],LIMIT:[],OFFSET:[],ORDER:[],$:[],"}":[]},"?insertClause":{INSERT:["insertClause"],WHERE:[],USING:[]},"?limitClause":{LIMIT:["limitClause"],VALUES:[],$:[],"}":[]},"?limitOffsetClauses":{LIMIT:["limitOffsetClauses"],OFFSET:["limitOffsetClauses"],VALUES:[],$:[],"}":[]},"?offsetClause":{OFFSET:["offsetClause"],VALUES:[],$:[],"}":[]},"?or([DISTINCT,REDUCED])":{DISTINCT:["or([DISTINCT,REDUCED])"],REDUCED:["or([DISTINCT,REDUCED])"],"*":[],"(":[],VAR1:[],VAR2:[]},"?or([LANGTAG,[^^,iriRef]])":{LANGTAG:["or([LANGTAG,[^^,iriRef]])"],"^^":["or([LANGTAG,[^^,iriRef]])"],UNDEF:[],IRI_REF:[],TRUE:[],FALSE:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],a:[],VAR1:[],VAR2:[],"^":[],"!":[],"(":[],".":[],";":[],",":[],AS:[],")":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],"+":[],"-":[],"*":[],"/":[],"}":[],"[":[],NIL:[],BLANK_NODE_LABEL:[],ANON:[],"]":[],GRAPH:[],"{":[],OPTIONAL:[],MINUS:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[]},"?or([[*,unaryExpression],[/,unaryExpression]])":{"*":["or([[*,unaryExpression],[/,unaryExpression]])"],"/":["or([[*,unaryExpression],[/,unaryExpression]])"],"+":[],"-":[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[],AS:[],")":[],",":[],"||":[],"&&":[],"=":[],"!=":[],"<":[],">":[],"<=":[],">=":[],IN:[],NOT:[],";":[]},"?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"!=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"<=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],">=":["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IN:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AS:[],")":[],",":[],"||":[],"&&":[],";":[]},"?orderClause":{ORDER:["orderClause"],VALUES:[],LIMIT:[],OFFSET:[],$:[],"}":[]},"?pathMod":{"*":["pathMod"],"?":["pathMod"],"+":["pathMod"],"{":["pathMod"],"|":[],"/":[],")":[],"(":[],"[":[],VAR1:[],VAR2:[],NIL:[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},"?triplesBlock":{VAR1:["triplesBlock"],VAR2:["triplesBlock"],NIL:["triplesBlock"],"(":["triplesBlock"],"[":["triplesBlock"],IRI_REF:["triplesBlock"],TRUE:["triplesBlock"],FALSE:["triplesBlock"],BLANK_NODE_LABEL:["triplesBlock"],ANON:["triplesBlock"],PNAME_LN:["triplesBlock"],PNAME_NS:["triplesBlock"],STRING_LITERAL1:["triplesBlock"],STRING_LITERAL2:["triplesBlock"],STRING_LITERAL_LONG1:["triplesBlock"],STRING_LITERAL_LONG2:["triplesBlock"],INTEGER:["triplesBlock"],DECIMAL:["triplesBlock"],DOUBLE:["triplesBlock"],INTEGER_POSITIVE:["triplesBlock"],DECIMAL_POSITIVE:["triplesBlock"],DOUBLE_POSITIVE:["triplesBlock"],INTEGER_NEGATIVE:["triplesBlock"],DECIMAL_NEGATIVE:["triplesBlock"],DOUBLE_NEGATIVE:["triplesBlock"],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},"?triplesTemplate":{VAR1:["triplesTemplate"],VAR2:["triplesTemplate"],NIL:["triplesTemplate"],"(":["triplesTemplate"],"[":["triplesTemplate"],IRI_REF:["triplesTemplate"],TRUE:["triplesTemplate"],FALSE:["triplesTemplate"],BLANK_NODE_LABEL:["triplesTemplate"],ANON:["triplesTemplate"],PNAME_LN:["triplesTemplate"],PNAME_NS:["triplesTemplate"],STRING_LITERAL1:["triplesTemplate"],STRING_LITERAL2:["triplesTemplate"],STRING_LITERAL_LONG1:["triplesTemplate"],STRING_LITERAL_LONG2:["triplesTemplate"],INTEGER:["triplesTemplate"],DECIMAL:["triplesTemplate"],DOUBLE:["triplesTemplate"],INTEGER_POSITIVE:["triplesTemplate"],DECIMAL_POSITIVE:["triplesTemplate"],DOUBLE_POSITIVE:["triplesTemplate"],INTEGER_NEGATIVE:["triplesTemplate"],DECIMAL_NEGATIVE:["triplesTemplate"],DOUBLE_NEGATIVE:["triplesTemplate"],"}":[],GRAPH:[]},"?whereClause":{WHERE:["whereClause"],"{":["whereClause"],ORDER:[],HAVING:[],GROUP:[],LIMIT:[],OFFSET:[],VALUES:[],$:[]},"[!=,numericExpression]":{"!=":["!=","numericExpression"]},"[&&,valueLogical]":{"&&":["&&","valueLogical"]},"[(,*dataBlockValue,)]":{"(":["(","*dataBlockValue",")"]},"[(,*var,)]":{"(":["(","*var",")"]},"[(,expression,)]":{"(":["(","expression",")"]},"[(,expression,AS,var,)]":{"(":["(","expression","AS","var",")"]},"[*,unaryExpression]":{"*":["*","unaryExpression"]},"[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]":{WHERE:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"],FROM:["*datasetClause","WHERE","{","?triplesTemplate","}","solutionModifier"]},"[+,multiplicativeExpression]":{"+":["+","multiplicativeExpression"]},"[,,expression]":{",":[",","expression"]},"[,,integer,}]":{",":[",","integer","}"]},"[,,objectPath]":{",":[",","objectPath"]},"[,,object]":{",":[",","object"]},"[,,or([},[integer,}]])]":{",":[",","or([},[integer,}]])"]},"[-,multiplicativeExpression]":{"-":["-","multiplicativeExpression"]},"[.,?constructTriples]":{".":[".","?constructTriples"]},"[.,?triplesBlock]":{".":[".","?triplesBlock"]},"[.,?triplesTemplate]":{".":[".","?triplesTemplate"]},"[/,pathEltOrInverse]":{"/":["/","pathEltOrInverse"]},"[/,unaryExpression]":{"/":["/","unaryExpression"]},"[;,?[or([verbPath,verbSimple]),objectListPath]]":{";":[";","?[or([verbPath,verbSimple]),objectListPath]"]},"[;,?[verb,objectList]]":{";":[";","?[verb,objectList]"]},"[;,SEPARATOR,=,string]":{";":[";","SEPARATOR","=","string"]},"[;,update]":{";":[";","update"]},"[<,numericExpression]":{"<":["<","numericExpression"]},"[<=,numericExpression]":{"<=":["<=","numericExpression"]},"[=,numericExpression]":{"=":["=","numericExpression"]},"[>,numericExpression]":{">":[">","numericExpression"]},"[>=,numericExpression]":{">=":[">=","numericExpression"]},"[AS,var]":{AS:["AS","var"]},"[IN,expressionList]":{IN:["IN","expressionList"]},"[INTO,graphRef]":{INTO:["INTO","graphRef"]},"[NAMED,iriRef]":{NAMED:["NAMED","iriRef"]},"[NOT,IN,expressionList]":{NOT:["NOT","IN","expressionList"]},"[UNION,groupGraphPattern]":{UNION:["UNION","groupGraphPattern"]},"[^^,iriRef]":{"^^":["^^","iriRef"]},"[constructTemplate,*datasetClause,whereClause,solutionModifier]":{"{":["constructTemplate","*datasetClause","whereClause","solutionModifier"]},"[deleteClause,?insertClause]":{DELETE:["deleteClause","?insertClause"]},"[graphPatternNotTriples,?.,?triplesBlock]":{"{":["graphPatternNotTriples","?.","?triplesBlock"],OPTIONAL:["graphPatternNotTriples","?.","?triplesBlock"],MINUS:["graphPatternNotTriples","?.","?triplesBlock"],GRAPH:["graphPatternNotTriples","?.","?triplesBlock"],SERVICE:["graphPatternNotTriples","?.","?triplesBlock"],FILTER:["graphPatternNotTriples","?.","?triplesBlock"],BIND:["graphPatternNotTriples","?.","?triplesBlock"],VALUES:["graphPatternNotTriples","?.","?triplesBlock"]},"[integer,or([[,,or([},[integer,}]])],}])]":{INTEGER:["integer","or([[,,or([},[integer,}]])],}])"]},"[integer,}]":{INTEGER:["integer","}"]},"[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]":{INTEGER_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["or([numericLiteralPositive,numericLiteralNegative])","?or([[*,unaryExpression],[/,unaryExpression]])"]},"[or([verbPath,verbSimple]),objectListPath]":{VAR1:["or([verbPath,verbSimple])","objectListPath"],VAR2:["or([verbPath,verbSimple])","objectListPath"],"^":["or([verbPath,verbSimple])","objectListPath"],a:["or([verbPath,verbSimple])","objectListPath"],"!":["or([verbPath,verbSimple])","objectListPath"],"(":["or([verbPath,verbSimple])","objectListPath"],IRI_REF:["or([verbPath,verbSimple])","objectListPath"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath"]},"[pathOneInPropertySet,*[|,pathOneInPropertySet]]":{a:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],"^":["pathOneInPropertySet","*[|,pathOneInPropertySet]"],IRI_REF:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_LN:["pathOneInPropertySet","*[|,pathOneInPropertySet]"],PNAME_NS:["pathOneInPropertySet","*[|,pathOneInPropertySet]"]},"[quadsNotTriples,?.,?triplesTemplate]":{GRAPH:["quadsNotTriples","?.","?triplesTemplate"]},"[update1,?[;,update]]":{INSERT:["update1","?[;,update]"],DELETE:["update1","?[;,update]"],LOAD:["update1","?[;,update]"],CLEAR:["update1","?[;,update]"],DROP:["update1","?[;,update]"],ADD:["update1","?[;,update]"],MOVE:["update1","?[;,update]"],COPY:["update1","?[;,update]"],CREATE:["update1","?[;,update]"],WITH:["update1","?[;,update]"]},"[verb,objectList]":{a:["verb","objectList"],VAR1:["verb","objectList"],VAR2:["verb","objectList"],IRI_REF:["verb","objectList"],PNAME_LN:["verb","objectList"],PNAME_NS:["verb","objectList"]},"[|,pathOneInPropertySet]":{"|":["|","pathOneInPropertySet"]},"[|,pathSequence]":{"|":["|","pathSequence"]},"[||,conditionalAndExpression]":{"||":["||","conditionalAndExpression"]},add:{ADD:["ADD","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},additiveExpression:{"!":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"+":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"-":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],VAR2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],"(":["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LANGMATCHES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DATATYPE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BOUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],BNODE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],RAND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ABS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CEIL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FLOOR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ROUND:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLEN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],LCASE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ENCODE_FOR_URI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],CONTAINS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRSTARTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRENDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRBEFORE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRAFTER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],YEAR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MONTH:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DAY:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],HOURS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MINUTES:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SECONDS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TIMEZONE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TZ:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOW:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],UUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRUUID:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MD5:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA256:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA384:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SHA512:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COALESCE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRLANG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRDT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMETERM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISIRI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISURI:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISBLANK:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISLITERAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],ISNUMERIC:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],TRUE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],FALSE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],COUNT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUM:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MIN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],MAX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],AVG:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SAMPLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],GROUP_CONCAT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],SUBSTR:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REPLACE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],REGEX:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],EXISTS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],NOT:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],IRI_REF:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG1:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],STRING_LITERAL_LONG2:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_POSITIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],INTEGER_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DECIMAL_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],DOUBLE_NEGATIVE:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_LN:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"],PNAME_NS:["multiplicativeExpression","*or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])"]},aggregate:{COUNT:["COUNT","(","?DISTINCT","or([*,expression])",")"],SUM:["SUM","(","?DISTINCT","expression",")"],MIN:["MIN","(","?DISTINCT","expression",")"],MAX:["MAX","(","?DISTINCT","expression",")"],AVG:["AVG","(","?DISTINCT","expression",")"],SAMPLE:["SAMPLE","(","?DISTINCT","expression",")"],GROUP_CONCAT:["GROUP_CONCAT","(","?DISTINCT","expression","?[;,SEPARATOR,=,string]",")"]},allowBnodes:{"}":[]},allowVars:{"}":[]},argList:{NIL:["NIL"],"(":["(","?DISTINCT","expression","*[,,expression]",")"]},askQuery:{ASK:["ASK","*datasetClause","whereClause","solutionModifier"]},baseDecl:{BASE:["BASE","IRI_REF"]},bind:{BIND:["BIND","(","expression","AS","var",")"]},blankNode:{BLANK_NODE_LABEL:["BLANK_NODE_LABEL"],ANON:["ANON"]},blankNodePropertyList:{"[":["[","propertyListNotEmpty","]"]},blankNodePropertyListPath:{"[":["[","propertyListPathNotEmpty","]"]},booleanLiteral:{TRUE:["TRUE"],FALSE:["FALSE"]},brackettedExpression:{"(":["(","expression",")"]},builtInCall:{STR:["STR","(","expression",")"],LANG:["LANG","(","expression",")"],LANGMATCHES:["LANGMATCHES","(","expression",",","expression",")"],DATATYPE:["DATATYPE","(","expression",")"],BOUND:["BOUND","(","var",")"],IRI:["IRI","(","expression",")"],URI:["URI","(","expression",")"],BNODE:["BNODE","or([[(,expression,)],NIL])"],RAND:["RAND","or([[(,expression,)],NIL])"],ABS:["ABS","(","expression",")"],CEIL:["CEIL","(","expression",")"],FLOOR:["FLOOR","(","expression",")"],ROUND:["ROUND","(","expression",")"],CONCAT:["CONCAT","expressionList"],SUBSTR:["substringExpression"],STRLEN:["STRLEN","(","expression",")"],REPLACE:["strReplaceExpression"],UCASE:["UCASE","(","expression",")"],LCASE:["LCASE","(","expression",")"],ENCODE_FOR_URI:["ENCODE_FOR_URI","(","expression",")"],CONTAINS:["CONTAINS","(","expression",",","expression",")"],STRSTARTS:["STRSTARTS","(","expression",",","expression",")"],STRENDS:["STRENDS","(","expression",",","expression",")"],STRBEFORE:["STRBEFORE","(","expression",",","expression",")"],STRAFTER:["STRAFTER","(","expression",",","expression",")"],YEAR:["YEAR","(","expression",")"],MONTH:["MONTH","(","expression",")"],DAY:["DAY","(","expression",")"],HOURS:["HOURS","(","expression",")"],MINUTES:["MINUTES","(","expression",")"],SECONDS:["SECONDS","(","expression",")"],TIMEZONE:["TIMEZONE","(","expression",")"],TZ:["TZ","(","expression",")"],NOW:["NOW","NIL"],UUID:["UUID","NIL"],STRUUID:["STRUUID","NIL"],MD5:["MD5","(","expression",")"],SHA1:["SHA1","(","expression",")"],SHA256:["SHA256","(","expression",")"],SHA384:["SHA384","(","expression",")"],SHA512:["SHA512","(","expression",")"],COALESCE:["COALESCE","expressionList"],IF:["IF","(","expression",",","expression",",","expression",")"],STRLANG:["STRLANG","(","expression",",","expression",")"],STRDT:["STRDT","(","expression",",","expression",")"],SAMETERM:["SAMETERM","(","expression",",","expression",")"],ISIRI:["ISIRI","(","expression",")"],ISURI:["ISURI","(","expression",")"],ISBLANK:["ISBLANK","(","expression",")"],ISLITERAL:["ISLITERAL","(","expression",")"],ISNUMERIC:["ISNUMERIC","(","expression",")"],REGEX:["regexExpression"],EXISTS:["existsFunc"],NOT:["notExistsFunc"]},clear:{CLEAR:["CLEAR","?SILENT_2","graphRefAll"]},collection:{"(":["(","+graphNode",")"]},collectionPath:{"(":["(","+graphNodePath",")"]},conditionalAndExpression:{"!":["valueLogical","*[&&,valueLogical]"],"+":["valueLogical","*[&&,valueLogical]"],"-":["valueLogical","*[&&,valueLogical]"],VAR1:["valueLogical","*[&&,valueLogical]"],VAR2:["valueLogical","*[&&,valueLogical]"],"(":["valueLogical","*[&&,valueLogical]"],STR:["valueLogical","*[&&,valueLogical]"],LANG:["valueLogical","*[&&,valueLogical]"],LANGMATCHES:["valueLogical","*[&&,valueLogical]"],DATATYPE:["valueLogical","*[&&,valueLogical]"],BOUND:["valueLogical","*[&&,valueLogical]"],IRI:["valueLogical","*[&&,valueLogical]"],URI:["valueLogical","*[&&,valueLogical]"],BNODE:["valueLogical","*[&&,valueLogical]"],RAND:["valueLogical","*[&&,valueLogical]"],ABS:["valueLogical","*[&&,valueLogical]"],CEIL:["valueLogical","*[&&,valueLogical]"],FLOOR:["valueLogical","*[&&,valueLogical]"],ROUND:["valueLogical","*[&&,valueLogical]"],CONCAT:["valueLogical","*[&&,valueLogical]"],STRLEN:["valueLogical","*[&&,valueLogical]"],UCASE:["valueLogical","*[&&,valueLogical]"],LCASE:["valueLogical","*[&&,valueLogical]"],ENCODE_FOR_URI:["valueLogical","*[&&,valueLogical]"],CONTAINS:["valueLogical","*[&&,valueLogical]"],STRSTARTS:["valueLogical","*[&&,valueLogical]"],STRENDS:["valueLogical","*[&&,valueLogical]"],STRBEFORE:["valueLogical","*[&&,valueLogical]"],STRAFTER:["valueLogical","*[&&,valueLogical]"],YEAR:["valueLogical","*[&&,valueLogical]"],MONTH:["valueLogical","*[&&,valueLogical]"],DAY:["valueLogical","*[&&,valueLogical]"],HOURS:["valueLogical","*[&&,valueLogical]"],MINUTES:["valueLogical","*[&&,valueLogical]"],SECONDS:["valueLogical","*[&&,valueLogical]"],TIMEZONE:["valueLogical","*[&&,valueLogical]"],TZ:["valueLogical","*[&&,valueLogical]"],NOW:["valueLogical","*[&&,valueLogical]"],UUID:["valueLogical","*[&&,valueLogical]"],STRUUID:["valueLogical","*[&&,valueLogical]"],MD5:["valueLogical","*[&&,valueLogical]"],SHA1:["valueLogical","*[&&,valueLogical]"],SHA256:["valueLogical","*[&&,valueLogical]"],SHA384:["valueLogical","*[&&,valueLogical]"],SHA512:["valueLogical","*[&&,valueLogical]"],COALESCE:["valueLogical","*[&&,valueLogical]"],IF:["valueLogical","*[&&,valueLogical]"],STRLANG:["valueLogical","*[&&,valueLogical]"],STRDT:["valueLogical","*[&&,valueLogical]"],SAMETERM:["valueLogical","*[&&,valueLogical]"],ISIRI:["valueLogical","*[&&,valueLogical]"],ISURI:["valueLogical","*[&&,valueLogical]"],ISBLANK:["valueLogical","*[&&,valueLogical]"],ISLITERAL:["valueLogical","*[&&,valueLogical]"],ISNUMERIC:["valueLogical","*[&&,valueLogical]"],TRUE:["valueLogical","*[&&,valueLogical]"],FALSE:["valueLogical","*[&&,valueLogical]"],COUNT:["valueLogical","*[&&,valueLogical]"],SUM:["valueLogical","*[&&,valueLogical]"],MIN:["valueLogical","*[&&,valueLogical]"],MAX:["valueLogical","*[&&,valueLogical]"],AVG:["valueLogical","*[&&,valueLogical]"],SAMPLE:["valueLogical","*[&&,valueLogical]"],GROUP_CONCAT:["valueLogical","*[&&,valueLogical]"],SUBSTR:["valueLogical","*[&&,valueLogical]"],REPLACE:["valueLogical","*[&&,valueLogical]"],REGEX:["valueLogical","*[&&,valueLogical]"],EXISTS:["valueLogical","*[&&,valueLogical]"],NOT:["valueLogical","*[&&,valueLogical]"],IRI_REF:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL2:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG1:["valueLogical","*[&&,valueLogical]"],STRING_LITERAL_LONG2:["valueLogical","*[&&,valueLogical]"],INTEGER:["valueLogical","*[&&,valueLogical]"],DECIMAL:["valueLogical","*[&&,valueLogical]"],DOUBLE:["valueLogical","*[&&,valueLogical]"],INTEGER_POSITIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_POSITIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_POSITIVE:["valueLogical","*[&&,valueLogical]"],INTEGER_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DECIMAL_NEGATIVE:["valueLogical","*[&&,valueLogical]"],DOUBLE_NEGATIVE:["valueLogical","*[&&,valueLogical]"],PNAME_LN:["valueLogical","*[&&,valueLogical]"],PNAME_NS:["valueLogical","*[&&,valueLogical]"]},conditionalOrExpression:{"!":["conditionalAndExpression","*[||,conditionalAndExpression]"],"+":["conditionalAndExpression","*[||,conditionalAndExpression]"],"-":["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR1:["conditionalAndExpression","*[||,conditionalAndExpression]"],VAR2:["conditionalAndExpression","*[||,conditionalAndExpression]"],"(":["conditionalAndExpression","*[||,conditionalAndExpression]"],STR:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],LANGMATCHES:["conditionalAndExpression","*[||,conditionalAndExpression]"],DATATYPE:["conditionalAndExpression","*[||,conditionalAndExpression]"],BOUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],BNODE:["conditionalAndExpression","*[||,conditionalAndExpression]"],RAND:["conditionalAndExpression","*[||,conditionalAndExpression]"],ABS:["conditionalAndExpression","*[||,conditionalAndExpression]"],CEIL:["conditionalAndExpression","*[||,conditionalAndExpression]"],FLOOR:["conditionalAndExpression","*[||,conditionalAndExpression]"],ROUND:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLEN:["conditionalAndExpression","*[||,conditionalAndExpression]"],UCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],LCASE:["conditionalAndExpression","*[||,conditionalAndExpression]"],ENCODE_FOR_URI:["conditionalAndExpression","*[||,conditionalAndExpression]"],CONTAINS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRSTARTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRENDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRBEFORE:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRAFTER:["conditionalAndExpression","*[||,conditionalAndExpression]"],YEAR:["conditionalAndExpression","*[||,conditionalAndExpression]"],MONTH:["conditionalAndExpression","*[||,conditionalAndExpression]"],DAY:["conditionalAndExpression","*[||,conditionalAndExpression]"],HOURS:["conditionalAndExpression","*[||,conditionalAndExpression]"],MINUTES:["conditionalAndExpression","*[||,conditionalAndExpression]"],SECONDS:["conditionalAndExpression","*[||,conditionalAndExpression]"],TIMEZONE:["conditionalAndExpression","*[||,conditionalAndExpression]"],TZ:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOW:["conditionalAndExpression","*[||,conditionalAndExpression]"],UUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRUUID:["conditionalAndExpression","*[||,conditionalAndExpression]"],MD5:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA1:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA256:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA384:["conditionalAndExpression","*[||,conditionalAndExpression]"],SHA512:["conditionalAndExpression","*[||,conditionalAndExpression]"],COALESCE:["conditionalAndExpression","*[||,conditionalAndExpression]"],IF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRLANG:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRDT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMETERM:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISIRI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISURI:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISBLANK:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISLITERAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],ISNUMERIC:["conditionalAndExpression","*[||,conditionalAndExpression]"],TRUE:["conditionalAndExpression","*[||,conditionalAndExpression]"],FALSE:["conditionalAndExpression","*[||,conditionalAndExpression]"],COUNT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUM:["conditionalAndExpression","*[||,conditionalAndExpression]"],MIN:["conditionalAndExpression","*[||,conditionalAndExpression]"],MAX:["conditionalAndExpression","*[||,conditionalAndExpression]"],AVG:["conditionalAndExpression","*[||,conditionalAndExpression]"],SAMPLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],GROUP_CONCAT:["conditionalAndExpression","*[||,conditionalAndExpression]"],SUBSTR:["conditionalAndExpression","*[||,conditionalAndExpression]"],REPLACE:["conditionalAndExpression","*[||,conditionalAndExpression]"],REGEX:["conditionalAndExpression","*[||,conditionalAndExpression]"],EXISTS:["conditionalAndExpression","*[||,conditionalAndExpression]"],NOT:["conditionalAndExpression","*[||,conditionalAndExpression]"],IRI_REF:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL2:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG1:["conditionalAndExpression","*[||,conditionalAndExpression]"],STRING_LITERAL_LONG2:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_POSITIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],INTEGER_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DECIMAL_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],DOUBLE_NEGATIVE:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_LN:["conditionalAndExpression","*[||,conditionalAndExpression]"],PNAME_NS:["conditionalAndExpression","*[||,conditionalAndExpression]"]},constraint:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"]},constructQuery:{CONSTRUCT:["CONSTRUCT","or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])"]},constructTemplate:{"{":["{","?constructTriples","}"]},constructTriples:{VAR1:["triplesSameSubject","?[.,?constructTriples]"],VAR2:["triplesSameSubject","?[.,?constructTriples]"],NIL:["triplesSameSubject","?[.,?constructTriples]"],"(":["triplesSameSubject","?[.,?constructTriples]"],"[":["triplesSameSubject","?[.,?constructTriples]"],IRI_REF:["triplesSameSubject","?[.,?constructTriples]"],TRUE:["triplesSameSubject","?[.,?constructTriples]"],FALSE:["triplesSameSubject","?[.,?constructTriples]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?constructTriples]"],ANON:["triplesSameSubject","?[.,?constructTriples]"],PNAME_LN:["triplesSameSubject","?[.,?constructTriples]"],PNAME_NS:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL2:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?constructTriples]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?constructTriples]"],INTEGER:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?constructTriples]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?constructTriples]"]},copy:{COPY:["COPY","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},create:{CREATE:["CREATE","?SILENT_3","graphRef"]},dataBlock:{NIL:["or([inlineDataOneVar,inlineDataFull])"],"(":["or([inlineDataOneVar,inlineDataFull])"],VAR1:["or([inlineDataOneVar,inlineDataFull])"],VAR2:["or([inlineDataOneVar,inlineDataFull])"]},dataBlockValue:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],UNDEF:["UNDEF"]},datasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},defaultGraphClause:{IRI_REF:["sourceSelector"],PNAME_LN:["sourceSelector"],PNAME_NS:["sourceSelector"]},delete1:{DATA:["DATA","quadDataNoBnodes"],WHERE:["WHERE","quadPatternNoBnodes"],"{":["quadPatternNoBnodes","?insertClause","*usingClause","WHERE","groupGraphPattern"]},deleteClause:{DELETE:["DELETE","quadPattern"]},describeDatasetClause:{FROM:["FROM","or([defaultGraphClause,namedGraphClause])"]},describeQuery:{DESCRIBE:["DESCRIBE","or([+varOrIRIref,*])","*describeDatasetClause","?whereClause","solutionModifier"]},disallowBnodes:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},disallowVars:{"}":[],GRAPH:[],VAR1:[],VAR2:[],NIL:[],"(":[],"[":[],IRI_REF:[],TRUE:[],FALSE:[],BLANK_NODE_LABEL:[],ANON:[],PNAME_LN:[],PNAME_NS:[],STRING_LITERAL1:[],STRING_LITERAL2:[],STRING_LITERAL_LONG1:[],STRING_LITERAL_LONG2:[],INTEGER:[],DECIMAL:[],DOUBLE:[],INTEGER_POSITIVE:[],DECIMAL_POSITIVE:[],DOUBLE_POSITIVE:[],INTEGER_NEGATIVE:[],DECIMAL_NEGATIVE:[],DOUBLE_NEGATIVE:[]},drop:{DROP:["DROP","?SILENT_2","graphRefAll"]},existsFunc:{EXISTS:["EXISTS","groupGraphPattern"]},expression:{"!":["conditionalOrExpression"],"+":["conditionalOrExpression"],"-":["conditionalOrExpression"],VAR1:["conditionalOrExpression"],VAR2:["conditionalOrExpression"],"(":["conditionalOrExpression"],STR:["conditionalOrExpression"],LANG:["conditionalOrExpression"],LANGMATCHES:["conditionalOrExpression"],DATATYPE:["conditionalOrExpression"],BOUND:["conditionalOrExpression"],IRI:["conditionalOrExpression"],URI:["conditionalOrExpression"],BNODE:["conditionalOrExpression"],RAND:["conditionalOrExpression"],ABS:["conditionalOrExpression"],CEIL:["conditionalOrExpression"],FLOOR:["conditionalOrExpression"],ROUND:["conditionalOrExpression"],CONCAT:["conditionalOrExpression"],STRLEN:["conditionalOrExpression"],UCASE:["conditionalOrExpression"],LCASE:["conditionalOrExpression"],ENCODE_FOR_URI:["conditionalOrExpression"],CONTAINS:["conditionalOrExpression"],STRSTARTS:["conditionalOrExpression"],STRENDS:["conditionalOrExpression"],STRBEFORE:["conditionalOrExpression"],STRAFTER:["conditionalOrExpression"],YEAR:["conditionalOrExpression"],MONTH:["conditionalOrExpression"],DAY:["conditionalOrExpression"],HOURS:["conditionalOrExpression"],MINUTES:["conditionalOrExpression"],SECONDS:["conditionalOrExpression"],TIMEZONE:["conditionalOrExpression"],TZ:["conditionalOrExpression"],NOW:["conditionalOrExpression"],UUID:["conditionalOrExpression"],STRUUID:["conditionalOrExpression"],MD5:["conditionalOrExpression"],SHA1:["conditionalOrExpression"],SHA256:["conditionalOrExpression"],SHA384:["conditionalOrExpression"],SHA512:["conditionalOrExpression"],COALESCE:["conditionalOrExpression"],IF:["conditionalOrExpression"],STRLANG:["conditionalOrExpression"],STRDT:["conditionalOrExpression"],SAMETERM:["conditionalOrExpression"],ISIRI:["conditionalOrExpression"],ISURI:["conditionalOrExpression"],ISBLANK:["conditionalOrExpression"],ISLITERAL:["conditionalOrExpression"],ISNUMERIC:["conditionalOrExpression"],TRUE:["conditionalOrExpression"],FALSE:["conditionalOrExpression"],COUNT:["conditionalOrExpression"],SUM:["conditionalOrExpression"],MIN:["conditionalOrExpression"],MAX:["conditionalOrExpression"],AVG:["conditionalOrExpression"],SAMPLE:["conditionalOrExpression"],GROUP_CONCAT:["conditionalOrExpression"],SUBSTR:["conditionalOrExpression"],REPLACE:["conditionalOrExpression"],REGEX:["conditionalOrExpression"],EXISTS:["conditionalOrExpression"],NOT:["conditionalOrExpression"],IRI_REF:["conditionalOrExpression"],STRING_LITERAL1:["conditionalOrExpression"],STRING_LITERAL2:["conditionalOrExpression"],STRING_LITERAL_LONG1:["conditionalOrExpression"],STRING_LITERAL_LONG2:["conditionalOrExpression"],INTEGER:["conditionalOrExpression"],DECIMAL:["conditionalOrExpression"],DOUBLE:["conditionalOrExpression"],INTEGER_POSITIVE:["conditionalOrExpression"],DECIMAL_POSITIVE:["conditionalOrExpression"],DOUBLE_POSITIVE:["conditionalOrExpression"],INTEGER_NEGATIVE:["conditionalOrExpression"],DECIMAL_NEGATIVE:["conditionalOrExpression"],DOUBLE_NEGATIVE:["conditionalOrExpression"],PNAME_LN:["conditionalOrExpression"],PNAME_NS:["conditionalOrExpression"]},expressionList:{NIL:["NIL"],"(":["(","expression","*[,,expression]",")"]},filter:{FILTER:["FILTER","constraint"]},functionCall:{IRI_REF:["iriRef","argList"],PNAME_LN:["iriRef","argList"],PNAME_NS:["iriRef","argList"]},graphGraphPattern:{GRAPH:["GRAPH","varOrIRIref","groupGraphPattern"]},graphNode:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNode"],"[":["triplesNode"]},graphNodePath:{VAR1:["varOrTerm"],VAR2:["varOrTerm"],NIL:["varOrTerm"],IRI_REF:["varOrTerm"],TRUE:["varOrTerm"],FALSE:["varOrTerm"],BLANK_NODE_LABEL:["varOrTerm"],ANON:["varOrTerm"],PNAME_LN:["varOrTerm"],PNAME_NS:["varOrTerm"],STRING_LITERAL1:["varOrTerm"],STRING_LITERAL2:["varOrTerm"],STRING_LITERAL_LONG1:["varOrTerm"],STRING_LITERAL_LONG2:["varOrTerm"],INTEGER:["varOrTerm"],DECIMAL:["varOrTerm"],DOUBLE:["varOrTerm"],INTEGER_POSITIVE:["varOrTerm"],DECIMAL_POSITIVE:["varOrTerm"],DOUBLE_POSITIVE:["varOrTerm"],INTEGER_NEGATIVE:["varOrTerm"],DECIMAL_NEGATIVE:["varOrTerm"],DOUBLE_NEGATIVE:["varOrTerm"],"(":["triplesNodePath"],"[":["triplesNodePath"]},graphOrDefault:{DEFAULT:["DEFAULT"],IRI_REF:["?GRAPH","iriRef"],PNAME_LN:["?GRAPH","iriRef"],PNAME_NS:["?GRAPH","iriRef"],GRAPH:["?GRAPH","iriRef"]},graphPatternNotTriples:{"{":["groupOrUnionGraphPattern"],OPTIONAL:["optionalGraphPattern"],MINUS:["minusGraphPattern"],GRAPH:["graphGraphPattern"],SERVICE:["serviceGraphPattern"],FILTER:["filter"],BIND:["bind"],VALUES:["inlineData"]},graphRef:{GRAPH:["GRAPH","iriRef"]},graphRefAll:{GRAPH:["graphRef"],DEFAULT:["DEFAULT"],NAMED:["NAMED"],ALL:["ALL"]},graphTerm:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],BLANK_NODE_LABEL:["blankNode"],ANON:["blankNode"],NIL:["NIL"]},groupClause:{GROUP:["GROUP","BY","+groupCondition"]},groupCondition:{STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["functionCall"],PNAME_LN:["functionCall"],PNAME_NS:["functionCall"],"(":["(","expression","?[AS,var]",")"],VAR1:["var"],VAR2:["var"]},groupGraphPattern:{"{":["{","or([subSelect,groupGraphPatternSub])","}"]},groupGraphPatternSub:{"{":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],OPTIONAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],MINUS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],GRAPH:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],SERVICE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FILTER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BIND:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VALUES:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],VAR2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],NIL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"(":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"[":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],IRI_REF:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],TRUE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],FALSE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],BLANK_NODE_LABEL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],ANON:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_LN:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],PNAME_NS:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG1:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],STRING_LITERAL_LONG2:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_POSITIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],INTEGER_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DECIMAL_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],DOUBLE_NEGATIVE:["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"],"}":["?triplesBlock","*[graphPatternNotTriples,?.,?triplesBlock]"]},groupOrUnionGraphPattern:{"{":["groupGraphPattern","*[UNION,groupGraphPattern]"]},havingClause:{HAVING:["HAVING","+havingCondition"]},havingCondition:{"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"]},inlineData:{VALUES:["VALUES","dataBlock"]},inlineDataFull:{NIL:["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"],"(":["or([NIL,[(,*var,)]])","{","*or([[(,*dataBlockValue,)],NIL])","}"]},inlineDataOneVar:{VAR1:["var","{","*dataBlockValue","}"],VAR2:["var","{","*dataBlockValue","}"]},insert1:{DATA:["DATA","quadData"],"{":["quadPattern","*usingClause","WHERE","groupGraphPattern"]},insertClause:{INSERT:["INSERT","quadPattern"]},integer:{INTEGER:["INTEGER"]},iriRef:{IRI_REF:["IRI_REF"],PNAME_LN:["prefixedName"],PNAME_NS:["prefixedName"]},iriRefOrFunction:{IRI_REF:["iriRef","?argList"],PNAME_LN:["iriRef","?argList"],PNAME_NS:["iriRef","?argList"]},limitClause:{LIMIT:["LIMIT","INTEGER"]},limitOffsetClauses:{LIMIT:["limitClause","?offsetClause"],OFFSET:["offsetClause","?limitClause"]},load:{LOAD:["LOAD","?SILENT_1","iriRef","?[INTO,graphRef]"]},minusGraphPattern:{MINUS:["MINUS","groupGraphPattern"]},modify:{WITH:["WITH","iriRef","or([[deleteClause,?insertClause],insertClause])","*usingClause","WHERE","groupGraphPattern"]},move:{MOVE:["MOVE","?SILENT_4","graphOrDefault","TO","graphOrDefault"]},multiplicativeExpression:{"!":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"+":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"-":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],VAR2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],"(":["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LANGMATCHES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DATATYPE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BOUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],BNODE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],RAND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ABS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CEIL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FLOOR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ROUND:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLEN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],LCASE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ENCODE_FOR_URI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],CONTAINS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRSTARTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRENDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRBEFORE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRAFTER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],YEAR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MONTH:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DAY:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],HOURS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MINUTES:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SECONDS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TIMEZONE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TZ:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOW:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],UUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRUUID:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MD5:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA256:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA384:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SHA512:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COALESCE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRLANG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRDT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMETERM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISIRI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISURI:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISBLANK:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISLITERAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],ISNUMERIC:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],TRUE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],FALSE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],COUNT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUM:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MIN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],MAX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],AVG:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SAMPLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],GROUP_CONCAT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],SUBSTR:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REPLACE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],REGEX:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],EXISTS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],NOT:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],IRI_REF:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG1:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],STRING_LITERAL_LONG2:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_POSITIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],INTEGER_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DECIMAL_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],DOUBLE_NEGATIVE:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_LN:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"],PNAME_NS:["unaryExpression","*or([[*,unaryExpression],[/,unaryExpression]])"]},namedGraphClause:{NAMED:["NAMED","sourceSelector"]},notExistsFunc:{NOT:["NOT","EXISTS","groupGraphPattern"]},numericExpression:{"!":["additiveExpression"],"+":["additiveExpression"],"-":["additiveExpression"],VAR1:["additiveExpression"],VAR2:["additiveExpression"],"(":["additiveExpression"],STR:["additiveExpression"],LANG:["additiveExpression"],LANGMATCHES:["additiveExpression"],DATATYPE:["additiveExpression"],BOUND:["additiveExpression"],IRI:["additiveExpression"],URI:["additiveExpression"],BNODE:["additiveExpression"],RAND:["additiveExpression"],ABS:["additiveExpression"],CEIL:["additiveExpression"],FLOOR:["additiveExpression"],ROUND:["additiveExpression"],CONCAT:["additiveExpression"],STRLEN:["additiveExpression"],UCASE:["additiveExpression"],LCASE:["additiveExpression"],ENCODE_FOR_URI:["additiveExpression"],CONTAINS:["additiveExpression"],STRSTARTS:["additiveExpression"],STRENDS:["additiveExpression"],STRBEFORE:["additiveExpression"],STRAFTER:["additiveExpression"],YEAR:["additiveExpression"],MONTH:["additiveExpression"],DAY:["additiveExpression"],HOURS:["additiveExpression"],MINUTES:["additiveExpression"],SECONDS:["additiveExpression"],TIMEZONE:["additiveExpression"],TZ:["additiveExpression"],NOW:["additiveExpression"],UUID:["additiveExpression"],STRUUID:["additiveExpression"],MD5:["additiveExpression"],SHA1:["additiveExpression"],SHA256:["additiveExpression"],SHA384:["additiveExpression"],SHA512:["additiveExpression"],COALESCE:["additiveExpression"],IF:["additiveExpression"],STRLANG:["additiveExpression"],STRDT:["additiveExpression"],SAMETERM:["additiveExpression"],ISIRI:["additiveExpression"],ISURI:["additiveExpression"],ISBLANK:["additiveExpression"],ISLITERAL:["additiveExpression"],ISNUMERIC:["additiveExpression"],TRUE:["additiveExpression"],FALSE:["additiveExpression"],COUNT:["additiveExpression"],SUM:["additiveExpression"],MIN:["additiveExpression"],MAX:["additiveExpression"],AVG:["additiveExpression"],SAMPLE:["additiveExpression"],GROUP_CONCAT:["additiveExpression"],SUBSTR:["additiveExpression"],REPLACE:["additiveExpression"],REGEX:["additiveExpression"],EXISTS:["additiveExpression"],NOT:["additiveExpression"],IRI_REF:["additiveExpression"],STRING_LITERAL1:["additiveExpression"],STRING_LITERAL2:["additiveExpression"],STRING_LITERAL_LONG1:["additiveExpression"],STRING_LITERAL_LONG2:["additiveExpression"],INTEGER:["additiveExpression"],DECIMAL:["additiveExpression"],DOUBLE:["additiveExpression"],INTEGER_POSITIVE:["additiveExpression"],DECIMAL_POSITIVE:["additiveExpression"],DOUBLE_POSITIVE:["additiveExpression"],INTEGER_NEGATIVE:["additiveExpression"],DECIMAL_NEGATIVE:["additiveExpression"],DOUBLE_NEGATIVE:["additiveExpression"],PNAME_LN:["additiveExpression"],PNAME_NS:["additiveExpression"]},numericLiteral:{INTEGER:["numericLiteralUnsigned"],DECIMAL:["numericLiteralUnsigned"],DOUBLE:["numericLiteralUnsigned"],INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},numericLiteralNegative:{INTEGER_NEGATIVE:["INTEGER_NEGATIVE"],DECIMAL_NEGATIVE:["DECIMAL_NEGATIVE"],DOUBLE_NEGATIVE:["DOUBLE_NEGATIVE"]},numericLiteralPositive:{INTEGER_POSITIVE:["INTEGER_POSITIVE"],DECIMAL_POSITIVE:["DECIMAL_POSITIVE"],DOUBLE_POSITIVE:["DOUBLE_POSITIVE"]},numericLiteralUnsigned:{INTEGER:["INTEGER"],DECIMAL:["DECIMAL"],DOUBLE:["DOUBLE"]},object:{"(":["graphNode"],"[":["graphNode"],VAR1:["graphNode"],VAR2:["graphNode"],NIL:["graphNode"],IRI_REF:["graphNode"],TRUE:["graphNode"],FALSE:["graphNode"],BLANK_NODE_LABEL:["graphNode"],ANON:["graphNode"],PNAME_LN:["graphNode"],PNAME_NS:["graphNode"],STRING_LITERAL1:["graphNode"],STRING_LITERAL2:["graphNode"],STRING_LITERAL_LONG1:["graphNode"],STRING_LITERAL_LONG2:["graphNode"],INTEGER:["graphNode"],DECIMAL:["graphNode"],DOUBLE:["graphNode"],INTEGER_POSITIVE:["graphNode"],DECIMAL_POSITIVE:["graphNode"],DOUBLE_POSITIVE:["graphNode"],INTEGER_NEGATIVE:["graphNode"],DECIMAL_NEGATIVE:["graphNode"],DOUBLE_NEGATIVE:["graphNode"]},objectList:{"(":["object","*[,,object]"],"[":["object","*[,,object]"],VAR1:["object","*[,,object]"],VAR2:["object","*[,,object]"],NIL:["object","*[,,object]"],IRI_REF:["object","*[,,object]"],TRUE:["object","*[,,object]"],FALSE:["object","*[,,object]"],BLANK_NODE_LABEL:["object","*[,,object]"],ANON:["object","*[,,object]"],PNAME_LN:["object","*[,,object]"],PNAME_NS:["object","*[,,object]"],STRING_LITERAL1:["object","*[,,object]"],STRING_LITERAL2:["object","*[,,object]"],STRING_LITERAL_LONG1:["object","*[,,object]"],STRING_LITERAL_LONG2:["object","*[,,object]"],INTEGER:["object","*[,,object]"],DECIMAL:["object","*[,,object]"],DOUBLE:["object","*[,,object]"],INTEGER_POSITIVE:["object","*[,,object]"],DECIMAL_POSITIVE:["object","*[,,object]"],DOUBLE_POSITIVE:["object","*[,,object]"],INTEGER_NEGATIVE:["object","*[,,object]"],DECIMAL_NEGATIVE:["object","*[,,object]"],DOUBLE_NEGATIVE:["object","*[,,object]"]},objectListPath:{"(":["objectPath","*[,,objectPath]"],"[":["objectPath","*[,,objectPath]"],VAR1:["objectPath","*[,,objectPath]"],VAR2:["objectPath","*[,,objectPath]"],NIL:["objectPath","*[,,objectPath]"],IRI_REF:["objectPath","*[,,objectPath]"],TRUE:["objectPath","*[,,objectPath]"],FALSE:["objectPath","*[,,objectPath]"],BLANK_NODE_LABEL:["objectPath","*[,,objectPath]"],ANON:["objectPath","*[,,objectPath]"],PNAME_LN:["objectPath","*[,,objectPath]"],PNAME_NS:["objectPath","*[,,objectPath]"],STRING_LITERAL1:["objectPath","*[,,objectPath]"],STRING_LITERAL2:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG1:["objectPath","*[,,objectPath]"],STRING_LITERAL_LONG2:["objectPath","*[,,objectPath]"],INTEGER:["objectPath","*[,,objectPath]"],DECIMAL:["objectPath","*[,,objectPath]"],DOUBLE:["objectPath","*[,,objectPath]"],INTEGER_POSITIVE:["objectPath","*[,,objectPath]"],DECIMAL_POSITIVE:["objectPath","*[,,objectPath]"],DOUBLE_POSITIVE:["objectPath","*[,,objectPath]"],INTEGER_NEGATIVE:["objectPath","*[,,objectPath]"],DECIMAL_NEGATIVE:["objectPath","*[,,objectPath]"],DOUBLE_NEGATIVE:["objectPath","*[,,objectPath]"]},objectPath:{"(":["graphNodePath"],"[":["graphNodePath"],VAR1:["graphNodePath"],VAR2:["graphNodePath"],NIL:["graphNodePath"],IRI_REF:["graphNodePath"],TRUE:["graphNodePath"],FALSE:["graphNodePath"],BLANK_NODE_LABEL:["graphNodePath"],ANON:["graphNodePath"],PNAME_LN:["graphNodePath"],PNAME_NS:["graphNodePath"],STRING_LITERAL1:["graphNodePath"],STRING_LITERAL2:["graphNodePath"],STRING_LITERAL_LONG1:["graphNodePath"],STRING_LITERAL_LONG2:["graphNodePath"],INTEGER:["graphNodePath"],DECIMAL:["graphNodePath"],DOUBLE:["graphNodePath"],INTEGER_POSITIVE:["graphNodePath"],DECIMAL_POSITIVE:["graphNodePath"],DOUBLE_POSITIVE:["graphNodePath"],INTEGER_NEGATIVE:["graphNodePath"],DECIMAL_NEGATIVE:["graphNodePath"],DOUBLE_NEGATIVE:["graphNodePath"]},offsetClause:{OFFSET:["OFFSET","INTEGER"]},optionalGraphPattern:{OPTIONAL:["OPTIONAL","groupGraphPattern"]},"or([*,expression])":{"*":["*"],"!":["expression"],"+":["expression"],"-":["expression"],VAR1:["expression"],VAR2:["expression"],"(":["expression"],STR:["expression"],LANG:["expression"],LANGMATCHES:["expression"],DATATYPE:["expression"],BOUND:["expression"],IRI:["expression"],URI:["expression"],BNODE:["expression"],RAND:["expression"],ABS:["expression"],CEIL:["expression"],FLOOR:["expression"],ROUND:["expression"],CONCAT:["expression"],STRLEN:["expression"],UCASE:["expression"],LCASE:["expression"],ENCODE_FOR_URI:["expression"],CONTAINS:["expression"],STRSTARTS:["expression"],STRENDS:["expression"],STRBEFORE:["expression"],STRAFTER:["expression"],YEAR:["expression"],MONTH:["expression"],DAY:["expression"],HOURS:["expression"],MINUTES:["expression"],SECONDS:["expression"],TIMEZONE:["expression"],TZ:["expression"],NOW:["expression"],UUID:["expression"],STRUUID:["expression"],MD5:["expression"],SHA1:["expression"],SHA256:["expression"],SHA384:["expression"],SHA512:["expression"],COALESCE:["expression"],IF:["expression"],STRLANG:["expression"],STRDT:["expression"],SAMETERM:["expression"],ISIRI:["expression"],ISURI:["expression"],ISBLANK:["expression"],ISLITERAL:["expression"],ISNUMERIC:["expression"],TRUE:["expression"],FALSE:["expression"],COUNT:["expression"],SUM:["expression"],MIN:["expression"],MAX:["expression"],AVG:["expression"],SAMPLE:["expression"],GROUP_CONCAT:["expression"],SUBSTR:["expression"],REPLACE:["expression"],REGEX:["expression"],EXISTS:["expression"],NOT:["expression"],IRI_REF:["expression"],STRING_LITERAL1:["expression"],STRING_LITERAL2:["expression"],STRING_LITERAL_LONG1:["expression"],STRING_LITERAL_LONG2:["expression"],INTEGER:["expression"],DECIMAL:["expression"],DOUBLE:["expression"],INTEGER_POSITIVE:["expression"],DECIMAL_POSITIVE:["expression"],DOUBLE_POSITIVE:["expression"],INTEGER_NEGATIVE:["expression"],DECIMAL_NEGATIVE:["expression"],DOUBLE_NEGATIVE:["expression"],PNAME_LN:["expression"],PNAME_NS:["expression"]},"or([+or([var,[(,expression,AS,var,)]]),*])":{"(":["+or([var,[(,expression,AS,var,)]])"],VAR1:["+or([var,[(,expression,AS,var,)]])"],VAR2:["+or([var,[(,expression,AS,var,)]])"],"*":["*"]},"or([+varOrIRIref,*])":{VAR1:["+varOrIRIref"],VAR2:["+varOrIRIref"],IRI_REF:["+varOrIRIref"],PNAME_LN:["+varOrIRIref"],PNAME_NS:["+varOrIRIref"],"*":["*"]},"or([ASC,DESC])":{ASC:["ASC"],DESC:["DESC"]},"or([DISTINCT,REDUCED])":{DISTINCT:["DISTINCT"],REDUCED:["REDUCED"]},"or([LANGTAG,[^^,iriRef]])":{LANGTAG:["LANGTAG"],"^^":["[^^,iriRef]"]},"or([NIL,[(,*var,)]])":{NIL:["NIL"],"(":["[(,*var,)]"]},"or([[(,*dataBlockValue,)],NIL])":{"(":["[(,*dataBlockValue,)]"],NIL:["NIL"]},"or([[(,expression,)],NIL])":{"(":["[(,expression,)]"],NIL:["NIL"]},"or([[*,unaryExpression],[/,unaryExpression]])":{"*":["[*,unaryExpression]"],"/":["[/,unaryExpression]"]},"or([[+,multiplicativeExpression],[-,multiplicativeExpression],[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]])":{"+":["[+,multiplicativeExpression]"],"-":["[-,multiplicativeExpression]"],INTEGER_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_POSITIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],INTEGER_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DECIMAL_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"],DOUBLE_NEGATIVE:["[or([numericLiteralPositive,numericLiteralNegative]),?or([[*,unaryExpression],[/,unaryExpression]])]"]},"or([[,,or([},[integer,}]])],}])":{",":["[,,or([},[integer,}]])]"],"}":["}"]},"or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])":{"=":["[=,numericExpression]"],"!=":["[!=,numericExpression]"],"<":["[<,numericExpression]"],">":["[>,numericExpression]"],"<=":["[<=,numericExpression]"],">=":["[>=,numericExpression]"],IN:["[IN,expressionList]"],NOT:["[NOT,IN,expressionList]"]},"or([[constructTemplate,*datasetClause,whereClause,solutionModifier],[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]])":{"{":["[constructTemplate,*datasetClause,whereClause,solutionModifier]"],WHERE:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"],FROM:["[*datasetClause,WHERE,{,?triplesTemplate,},solutionModifier]"]},"or([[deleteClause,?insertClause],insertClause])":{DELETE:["[deleteClause,?insertClause]"],INSERT:["insertClause"]},"or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])":{INTEGER:["[integer,or([[,,or([},[integer,}]])],}])]"],",":["[,,integer,}]"]},"or([baseDecl,prefixDecl])":{BASE:["baseDecl"],PREFIX:["prefixDecl"]},"or([defaultGraphClause,namedGraphClause])":{IRI_REF:["defaultGraphClause"],PNAME_LN:["defaultGraphClause"],PNAME_NS:["defaultGraphClause"],NAMED:["namedGraphClause"]},"or([inlineDataOneVar,inlineDataFull])":{VAR1:["inlineDataOneVar"],VAR2:["inlineDataOneVar"],NIL:["inlineDataFull"],"(":["inlineDataFull"]},"or([iriRef,[NAMED,iriRef]])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],NAMED:["[NAMED,iriRef]"]},"or([iriRef,a])":{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"]},"or([numericLiteralPositive,numericLiteralNegative])":{INTEGER_POSITIVE:["numericLiteralPositive"],DECIMAL_POSITIVE:["numericLiteralPositive"],DOUBLE_POSITIVE:["numericLiteralPositive"],INTEGER_NEGATIVE:["numericLiteralNegative"],DECIMAL_NEGATIVE:["numericLiteralNegative"],DOUBLE_NEGATIVE:["numericLiteralNegative"]},"or([queryAll,updateAll])":{CONSTRUCT:["queryAll"],DESCRIBE:["queryAll"],ASK:["queryAll"],SELECT:["queryAll"],INSERT:["updateAll"],DELETE:["updateAll"],LOAD:["updateAll"],CLEAR:["updateAll"],DROP:["updateAll"],ADD:["updateAll"],MOVE:["updateAll"],COPY:["updateAll"],CREATE:["updateAll"],WITH:["updateAll"],$:["updateAll"]},"or([selectQuery,constructQuery,describeQuery,askQuery])":{SELECT:["selectQuery"],CONSTRUCT:["constructQuery"],DESCRIBE:["describeQuery"],ASK:["askQuery"]},"or([subSelect,groupGraphPatternSub])":{SELECT:["subSelect"],"{":["groupGraphPatternSub"],OPTIONAL:["groupGraphPatternSub"],MINUS:["groupGraphPatternSub"],GRAPH:["groupGraphPatternSub"],SERVICE:["groupGraphPatternSub"],FILTER:["groupGraphPatternSub"],BIND:["groupGraphPatternSub"],VALUES:["groupGraphPatternSub"],VAR1:["groupGraphPatternSub"],VAR2:["groupGraphPatternSub"],NIL:["groupGraphPatternSub"],"(":["groupGraphPatternSub"],"[":["groupGraphPatternSub"],IRI_REF:["groupGraphPatternSub"],TRUE:["groupGraphPatternSub"],FALSE:["groupGraphPatternSub"],BLANK_NODE_LABEL:["groupGraphPatternSub"],ANON:["groupGraphPatternSub"],PNAME_LN:["groupGraphPatternSub"],PNAME_NS:["groupGraphPatternSub"],STRING_LITERAL1:["groupGraphPatternSub"],STRING_LITERAL2:["groupGraphPatternSub"],STRING_LITERAL_LONG1:["groupGraphPatternSub"],STRING_LITERAL_LONG2:["groupGraphPatternSub"],INTEGER:["groupGraphPatternSub"],DECIMAL:["groupGraphPatternSub"],DOUBLE:["groupGraphPatternSub"],INTEGER_POSITIVE:["groupGraphPatternSub"],DECIMAL_POSITIVE:["groupGraphPatternSub"],DOUBLE_POSITIVE:["groupGraphPatternSub"],INTEGER_NEGATIVE:["groupGraphPatternSub"],DECIMAL_NEGATIVE:["groupGraphPatternSub"],DOUBLE_NEGATIVE:["groupGraphPatternSub"],"}":["groupGraphPatternSub"]},"or([var,[(,expression,AS,var,)]])":{VAR1:["var"],VAR2:["var"],"(":["[(,expression,AS,var,)]"]},"or([verbPath,verbSimple])":{"^":["verbPath"],a:["verbPath"],"!":["verbPath"],"(":["verbPath"],IRI_REF:["verbPath"],PNAME_LN:["verbPath"],PNAME_NS:["verbPath"],VAR1:["verbSimple"],VAR2:["verbSimple"]},"or([},[integer,}]])":{"}":["}"],INTEGER:["[integer,}]"]},orderClause:{ORDER:["ORDER","BY","+orderCondition"]},orderCondition:{ASC:["or([ASC,DESC])","brackettedExpression"],DESC:["or([ASC,DESC])","brackettedExpression"],"(":["constraint"],STR:["constraint"],LANG:["constraint"],LANGMATCHES:["constraint"],DATATYPE:["constraint"],BOUND:["constraint"],IRI:["constraint"],URI:["constraint"],BNODE:["constraint"],RAND:["constraint"],ABS:["constraint"],CEIL:["constraint"],FLOOR:["constraint"],ROUND:["constraint"],CONCAT:["constraint"],STRLEN:["constraint"],UCASE:["constraint"],LCASE:["constraint"],ENCODE_FOR_URI:["constraint"],CONTAINS:["constraint"],STRSTARTS:["constraint"],STRENDS:["constraint"],STRBEFORE:["constraint"],STRAFTER:["constraint"],YEAR:["constraint"],MONTH:["constraint"],DAY:["constraint"],HOURS:["constraint"],MINUTES:["constraint"],SECONDS:["constraint"],TIMEZONE:["constraint"],TZ:["constraint"],NOW:["constraint"],UUID:["constraint"],STRUUID:["constraint"],MD5:["constraint"],SHA1:["constraint"],SHA256:["constraint"],SHA384:["constraint"],SHA512:["constraint"],COALESCE:["constraint"],IF:["constraint"],STRLANG:["constraint"],STRDT:["constraint"],SAMETERM:["constraint"],ISIRI:["constraint"],ISURI:["constraint"],ISBLANK:["constraint"],ISLITERAL:["constraint"],ISNUMERIC:["constraint"],SUBSTR:["constraint"],REPLACE:["constraint"],REGEX:["constraint"],EXISTS:["constraint"],NOT:["constraint"],IRI_REF:["constraint"],PNAME_LN:["constraint"],PNAME_NS:["constraint"],VAR1:["var"],VAR2:["var"]},path:{"^":["pathAlternative"],a:["pathAlternative"],"!":["pathAlternative"],"(":["pathAlternative"],IRI_REF:["pathAlternative"],PNAME_LN:["pathAlternative"],PNAME_NS:["pathAlternative"]},pathAlternative:{"^":["pathSequence","*[|,pathSequence]"],a:["pathSequence","*[|,pathSequence]"],"!":["pathSequence","*[|,pathSequence]"],"(":["pathSequence","*[|,pathSequence]"],IRI_REF:["pathSequence","*[|,pathSequence]"],PNAME_LN:["pathSequence","*[|,pathSequence]"],PNAME_NS:["pathSequence","*[|,pathSequence]"]},pathElt:{a:["pathPrimary","?pathMod"],"!":["pathPrimary","?pathMod"],"(":["pathPrimary","?pathMod"],IRI_REF:["pathPrimary","?pathMod"],PNAME_LN:["pathPrimary","?pathMod"],PNAME_NS:["pathPrimary","?pathMod"]},pathEltOrInverse:{a:["pathElt"],"!":["pathElt"],"(":["pathElt"],IRI_REF:["pathElt"],PNAME_LN:["pathElt"],PNAME_NS:["pathElt"],"^":["^","pathElt"]},pathMod:{"*":["*"],"?":["?"],"+":["+"],"{":["{","or([[integer,or([[,,or([},[integer,}]])],}])],[,,integer,}]])"]},pathNegatedPropertySet:{a:["pathOneInPropertySet"],"^":["pathOneInPropertySet"],IRI_REF:["pathOneInPropertySet"],PNAME_LN:["pathOneInPropertySet"],PNAME_NS:["pathOneInPropertySet"],"(":["(","?[pathOneInPropertySet,*[|,pathOneInPropertySet]]",")"]},pathOneInPropertySet:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"],a:["a"],"^":["^","or([iriRef,a])"]},pathPrimary:{IRI_REF:["storeProperty","iriRef"],PNAME_LN:["storeProperty","iriRef"],PNAME_NS:["storeProperty","iriRef"],a:["storeProperty","a"],"!":["!","pathNegatedPropertySet"],"(":["(","path",")"]},pathSequence:{"^":["pathEltOrInverse","*[/,pathEltOrInverse]"],a:["pathEltOrInverse","*[/,pathEltOrInverse]"],"!":["pathEltOrInverse","*[/,pathEltOrInverse]"],"(":["pathEltOrInverse","*[/,pathEltOrInverse]"],IRI_REF:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_LN:["pathEltOrInverse","*[/,pathEltOrInverse]"],PNAME_NS:["pathEltOrInverse","*[/,pathEltOrInverse]"]},prefixDecl:{PREFIX:["PREFIX","PNAME_NS","IRI_REF"]},prefixedName:{PNAME_LN:["PNAME_LN"],PNAME_NS:["PNAME_NS"]},primaryExpression:{"(":["brackettedExpression"],STR:["builtInCall"],LANG:["builtInCall"],LANGMATCHES:["builtInCall"],DATATYPE:["builtInCall"],BOUND:["builtInCall"],IRI:["builtInCall"],URI:["builtInCall"],BNODE:["builtInCall"],RAND:["builtInCall"],ABS:["builtInCall"],CEIL:["builtInCall"],FLOOR:["builtInCall"],ROUND:["builtInCall"],CONCAT:["builtInCall"],STRLEN:["builtInCall"],UCASE:["builtInCall"],LCASE:["builtInCall"],ENCODE_FOR_URI:["builtInCall"],CONTAINS:["builtInCall"],STRSTARTS:["builtInCall"],STRENDS:["builtInCall"],STRBEFORE:["builtInCall"],STRAFTER:["builtInCall"],YEAR:["builtInCall"],MONTH:["builtInCall"],DAY:["builtInCall"],HOURS:["builtInCall"],MINUTES:["builtInCall"],SECONDS:["builtInCall"],TIMEZONE:["builtInCall"],TZ:["builtInCall"],NOW:["builtInCall"],UUID:["builtInCall"],STRUUID:["builtInCall"],MD5:["builtInCall"],SHA1:["builtInCall"],SHA256:["builtInCall"],SHA384:["builtInCall"],SHA512:["builtInCall"],COALESCE:["builtInCall"],IF:["builtInCall"],STRLANG:["builtInCall"],STRDT:["builtInCall"],SAMETERM:["builtInCall"],ISIRI:["builtInCall"],ISURI:["builtInCall"],ISBLANK:["builtInCall"],ISLITERAL:["builtInCall"],ISNUMERIC:["builtInCall"],SUBSTR:["builtInCall"],REPLACE:["builtInCall"],REGEX:["builtInCall"],EXISTS:["builtInCall"],NOT:["builtInCall"],IRI_REF:["iriRefOrFunction"],PNAME_LN:["iriRefOrFunction"],PNAME_NS:["iriRefOrFunction"],STRING_LITERAL1:["rdfLiteral"],STRING_LITERAL2:["rdfLiteral"],STRING_LITERAL_LONG1:["rdfLiteral"],STRING_LITERAL_LONG2:["rdfLiteral"],INTEGER:["numericLiteral"],DECIMAL:["numericLiteral"],DOUBLE:["numericLiteral"],INTEGER_POSITIVE:["numericLiteral"],DECIMAL_POSITIVE:["numericLiteral"],DOUBLE_POSITIVE:["numericLiteral"],INTEGER_NEGATIVE:["numericLiteral"],DECIMAL_NEGATIVE:["numericLiteral"],DOUBLE_NEGATIVE:["numericLiteral"],TRUE:["booleanLiteral"],FALSE:["booleanLiteral"],VAR1:["var"],VAR2:["var"],COUNT:["aggregate"],SUM:["aggregate"],MIN:["aggregate"],MAX:["aggregate"],AVG:["aggregate"],SAMPLE:["aggregate"],GROUP_CONCAT:["aggregate"]},prologue:{BASE:["*or([baseDecl,prefixDecl])"],PREFIX:["*or([baseDecl,prefixDecl])"],$:["*or([baseDecl,prefixDecl])"],CONSTRUCT:["*or([baseDecl,prefixDecl])"],DESCRIBE:["*or([baseDecl,prefixDecl])"],ASK:["*or([baseDecl,prefixDecl])"],INSERT:["*or([baseDecl,prefixDecl])"],DELETE:["*or([baseDecl,prefixDecl])"],SELECT:["*or([baseDecl,prefixDecl])"],LOAD:["*or([baseDecl,prefixDecl])"],CLEAR:["*or([baseDecl,prefixDecl])"],DROP:["*or([baseDecl,prefixDecl])"],ADD:["*or([baseDecl,prefixDecl])"],MOVE:["*or([baseDecl,prefixDecl])"],COPY:["*or([baseDecl,prefixDecl])"],CREATE:["*or([baseDecl,prefixDecl])"],WITH:["*or([baseDecl,prefixDecl])"]},propertyList:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"}":[],GRAPH:[]},propertyListNotEmpty:{a:["verb","objectList","*[;,?[verb,objectList]]"],VAR1:["verb","objectList","*[;,?[verb,objectList]]"],VAR2:["verb","objectList","*[;,?[verb,objectList]]"],IRI_REF:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_LN:["verb","objectList","*[;,?[verb,objectList]]"],PNAME_NS:["verb","objectList","*[;,?[verb,objectList]]"]},propertyListPath:{a:["propertyListNotEmpty"],VAR1:["propertyListNotEmpty"],VAR2:["propertyListNotEmpty"],IRI_REF:["propertyListNotEmpty"],PNAME_LN:["propertyListNotEmpty"],PNAME_NS:["propertyListNotEmpty"],".":[],"{":[],OPTIONAL:[],MINUS:[],GRAPH:[],SERVICE:[],FILTER:[],BIND:[],VALUES:[],"}":[]},propertyListPathNotEmpty:{VAR1:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],VAR2:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"^":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],a:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"!":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],"(":["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],IRI_REF:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_LN:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"],PNAME_NS:["or([verbPath,verbSimple])","objectListPath","*[;,?[or([verbPath,verbSimple]),objectListPath]]"]},quadData:{"{":["{","disallowVars","quads","allowVars","}"]},quadDataNoBnodes:{"{":["{","disallowBnodes","disallowVars","quads","allowVars","allowBnodes","}"]},quadPattern:{"{":["{","quads","}"]},quadPatternNoBnodes:{"{":["{","disallowBnodes","quads","allowBnodes","}"]},quads:{GRAPH:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],VAR2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],NIL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"(":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"[":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],IRI_REF:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],TRUE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],FALSE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],BLANK_NODE_LABEL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],ANON:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_LN:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],PNAME_NS:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG1:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],STRING_LITERAL_LONG2:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_POSITIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],INTEGER_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DECIMAL_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],DOUBLE_NEGATIVE:["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"],"}":["?triplesTemplate","*[quadsNotTriples,?.,?triplesTemplate]"]},quadsNotTriples:{GRAPH:["GRAPH","varOrIRIref","{","?triplesTemplate","}"]},queryAll:{CONSTRUCT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],DESCRIBE:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],ASK:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"],SELECT:["or([selectQuery,constructQuery,describeQuery,askQuery])","valuesClause"]},rdfLiteral:{STRING_LITERAL1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL2:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG1:["string","?or([LANGTAG,[^^,iriRef]])"],STRING_LITERAL_LONG2:["string","?or([LANGTAG,[^^,iriRef]])"]},regexExpression:{REGEX:["REGEX","(","expression",",","expression","?[,,expression]",")"]},relationalExpression:{"!":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"+":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"-":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],VAR2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],"(":["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LANGMATCHES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DATATYPE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BOUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],BNODE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],RAND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ABS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CEIL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FLOOR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ROUND:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLEN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],LCASE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ENCODE_FOR_URI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],CONTAINS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRSTARTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRENDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRBEFORE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRAFTER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],YEAR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MONTH:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DAY:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],HOURS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MINUTES:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SECONDS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TIMEZONE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TZ:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOW:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],UUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRUUID:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MD5:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA256:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA384:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SHA512:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COALESCE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRLANG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRDT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMETERM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISIRI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISURI:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISBLANK:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISLITERAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],ISNUMERIC:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],TRUE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],FALSE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],COUNT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUM:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MIN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],MAX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],AVG:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SAMPLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],GROUP_CONCAT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],SUBSTR:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REPLACE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],REGEX:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],EXISTS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],NOT:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],IRI_REF:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG1:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],STRING_LITERAL_LONG2:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_POSITIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],INTEGER_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DECIMAL_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],DOUBLE_NEGATIVE:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_LN:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"],PNAME_NS:["numericExpression","?or([[=,numericExpression],[!=,numericExpression],[<,numericExpression],[>,numericExpression],[<=,numericExpression],[>=,numericExpression],[IN,expressionList],[NOT,IN,expressionList]])"]},selectClause:{SELECT:["SELECT","?or([DISTINCT,REDUCED])","or([+or([var,[(,expression,AS,var,)]]),*])"]},selectQuery:{SELECT:["selectClause","*datasetClause","whereClause","solutionModifier"]},serviceGraphPattern:{SERVICE:["SERVICE","?SILENT","varOrIRIref","groupGraphPattern"]},solutionModifier:{LIMIT:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],OFFSET:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],ORDER:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],HAVING:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],GROUP:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],VALUES:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],$:["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"],"}":["?groupClause","?havingClause","?orderClause","?limitOffsetClauses"]},sourceSelector:{IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},sparql11:{$:["prologue","or([queryAll,updateAll])","$"],CONSTRUCT:["prologue","or([queryAll,updateAll])","$"],DESCRIBE:["prologue","or([queryAll,updateAll])","$"],ASK:["prologue","or([queryAll,updateAll])","$"],INSERT:["prologue","or([queryAll,updateAll])","$"],DELETE:["prologue","or([queryAll,updateAll])","$"],SELECT:["prologue","or([queryAll,updateAll])","$"],LOAD:["prologue","or([queryAll,updateAll])","$"],CLEAR:["prologue","or([queryAll,updateAll])","$"],DROP:["prologue","or([queryAll,updateAll])","$"],ADD:["prologue","or([queryAll,updateAll])","$"],MOVE:["prologue","or([queryAll,updateAll])","$"],COPY:["prologue","or([queryAll,updateAll])","$"],CREATE:["prologue","or([queryAll,updateAll])","$"],WITH:["prologue","or([queryAll,updateAll])","$"],BASE:["prologue","or([queryAll,updateAll])","$"],PREFIX:["prologue","or([queryAll,updateAll])","$"]},storeProperty:{VAR1:[],VAR2:[],IRI_REF:[],PNAME_LN:[],PNAME_NS:[],a:[]},strReplaceExpression:{REPLACE:["REPLACE","(","expression",",","expression",",","expression","?[,,expression]",")"]},string:{STRING_LITERAL1:["STRING_LITERAL1"],STRING_LITERAL2:["STRING_LITERAL2"],STRING_LITERAL_LONG1:["STRING_LITERAL_LONG1"],STRING_LITERAL_LONG2:["STRING_LITERAL_LONG2"]},subSelect:{SELECT:["selectClause","whereClause","solutionModifier","valuesClause"]},substringExpression:{SUBSTR:["SUBSTR","(","expression",",","expression","?[,,expression]",")"]},triplesBlock:{VAR1:["triplesSameSubjectPath","?[.,?triplesBlock]"],VAR2:["triplesSameSubjectPath","?[.,?triplesBlock]"],NIL:["triplesSameSubjectPath","?[.,?triplesBlock]"],"(":["triplesSameSubjectPath","?[.,?triplesBlock]"],"[":["triplesSameSubjectPath","?[.,?triplesBlock]"],IRI_REF:["triplesSameSubjectPath","?[.,?triplesBlock]"],TRUE:["triplesSameSubjectPath","?[.,?triplesBlock]"],FALSE:["triplesSameSubjectPath","?[.,?triplesBlock]"],BLANK_NODE_LABEL:["triplesSameSubjectPath","?[.,?triplesBlock]"],ANON:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_LN:["triplesSameSubjectPath","?[.,?triplesBlock]"],PNAME_NS:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL2:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG1:["triplesSameSubjectPath","?[.,?triplesBlock]"],STRING_LITERAL_LONG2:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_POSITIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],INTEGER_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DECIMAL_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"],DOUBLE_NEGATIVE:["triplesSameSubjectPath","?[.,?triplesBlock]"]},triplesNode:{"(":["collection"],"[":["blankNodePropertyList"]},triplesNodePath:{"(":["collectionPath"],"[":["blankNodePropertyListPath"]},triplesSameSubject:{VAR1:["varOrTerm","propertyListNotEmpty"],VAR2:["varOrTerm","propertyListNotEmpty"],NIL:["varOrTerm","propertyListNotEmpty"],IRI_REF:["varOrTerm","propertyListNotEmpty"],TRUE:["varOrTerm","propertyListNotEmpty"],FALSE:["varOrTerm","propertyListNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListNotEmpty"],ANON:["varOrTerm","propertyListNotEmpty"],PNAME_LN:["varOrTerm","propertyListNotEmpty"],PNAME_NS:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListNotEmpty"],INTEGER:["varOrTerm","propertyListNotEmpty"],DECIMAL:["varOrTerm","propertyListNotEmpty"],DOUBLE:["varOrTerm","propertyListNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListNotEmpty"],"(":["triplesNode","propertyList"],"[":["triplesNode","propertyList"]},triplesSameSubjectPath:{VAR1:["varOrTerm","propertyListPathNotEmpty"],VAR2:["varOrTerm","propertyListPathNotEmpty"],NIL:["varOrTerm","propertyListPathNotEmpty"],IRI_REF:["varOrTerm","propertyListPathNotEmpty"],TRUE:["varOrTerm","propertyListPathNotEmpty"],FALSE:["varOrTerm","propertyListPathNotEmpty"],BLANK_NODE_LABEL:["varOrTerm","propertyListPathNotEmpty"],ANON:["varOrTerm","propertyListPathNotEmpty"],PNAME_LN:["varOrTerm","propertyListPathNotEmpty"],PNAME_NS:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL2:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG1:["varOrTerm","propertyListPathNotEmpty"],STRING_LITERAL_LONG2:["varOrTerm","propertyListPathNotEmpty"],INTEGER:["varOrTerm","propertyListPathNotEmpty"],DECIMAL:["varOrTerm","propertyListPathNotEmpty"],DOUBLE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_POSITIVE:["varOrTerm","propertyListPathNotEmpty"],INTEGER_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DECIMAL_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],DOUBLE_NEGATIVE:["varOrTerm","propertyListPathNotEmpty"],"(":["triplesNodePath","propertyListPath"],"[":["triplesNodePath","propertyListPath"]},triplesTemplate:{VAR1:["triplesSameSubject","?[.,?triplesTemplate]"],VAR2:["triplesSameSubject","?[.,?triplesTemplate]"],NIL:["triplesSameSubject","?[.,?triplesTemplate]"],"(":["triplesSameSubject","?[.,?triplesTemplate]"],"[":["triplesSameSubject","?[.,?triplesTemplate]"],IRI_REF:["triplesSameSubject","?[.,?triplesTemplate]"],TRUE:["triplesSameSubject","?[.,?triplesTemplate]"],FALSE:["triplesSameSubject","?[.,?triplesTemplate]"],BLANK_NODE_LABEL:["triplesSameSubject","?[.,?triplesTemplate]"],ANON:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_LN:["triplesSameSubject","?[.,?triplesTemplate]"],PNAME_NS:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL2:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG1:["triplesSameSubject","?[.,?triplesTemplate]"],STRING_LITERAL_LONG2:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_POSITIVE:["triplesSameSubject","?[.,?triplesTemplate]"],INTEGER_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DECIMAL_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"],DOUBLE_NEGATIVE:["triplesSameSubject","?[.,?triplesTemplate]"]},unaryExpression:{"!":["!","primaryExpression"],"+":["+","primaryExpression"],"-":["-","primaryExpression"],VAR1:["primaryExpression"],VAR2:["primaryExpression"],"(":["primaryExpression"],STR:["primaryExpression"],LANG:["primaryExpression"],LANGMATCHES:["primaryExpression"],DATATYPE:["primaryExpression"],BOUND:["primaryExpression"],IRI:["primaryExpression"],URI:["primaryExpression"],BNODE:["primaryExpression"],RAND:["primaryExpression"],ABS:["primaryExpression"],CEIL:["primaryExpression"],FLOOR:["primaryExpression"],ROUND:["primaryExpression"],CONCAT:["primaryExpression"],STRLEN:["primaryExpression"],UCASE:["primaryExpression"],LCASE:["primaryExpression"],ENCODE_FOR_URI:["primaryExpression"],CONTAINS:["primaryExpression"],STRSTARTS:["primaryExpression"],STRENDS:["primaryExpression"],STRBEFORE:["primaryExpression"],STRAFTER:["primaryExpression"],YEAR:["primaryExpression"],MONTH:["primaryExpression"],DAY:["primaryExpression"],HOURS:["primaryExpression"],MINUTES:["primaryExpression"],SECONDS:["primaryExpression"],TIMEZONE:["primaryExpression"],TZ:["primaryExpression"],NOW:["primaryExpression"],UUID:["primaryExpression"],STRUUID:["primaryExpression"],MD5:["primaryExpression"],SHA1:["primaryExpression"],SHA256:["primaryExpression"],SHA384:["primaryExpression"],SHA512:["primaryExpression"],COALESCE:["primaryExpression"],IF:["primaryExpression"],STRLANG:["primaryExpression"],STRDT:["primaryExpression"],SAMETERM:["primaryExpression"],ISIRI:["primaryExpression"],ISURI:["primaryExpression"],ISBLANK:["primaryExpression"],ISLITERAL:["primaryExpression"],ISNUMERIC:["primaryExpression"],TRUE:["primaryExpression"],FALSE:["primaryExpression"],COUNT:["primaryExpression"],SUM:["primaryExpression"],MIN:["primaryExpression"],MAX:["primaryExpression"],AVG:["primaryExpression"],SAMPLE:["primaryExpression"],GROUP_CONCAT:["primaryExpression"],SUBSTR:["primaryExpression"],REPLACE:["primaryExpression"],REGEX:["primaryExpression"],EXISTS:["primaryExpression"],NOT:["primaryExpression"],IRI_REF:["primaryExpression"],STRING_LITERAL1:["primaryExpression"],STRING_LITERAL2:["primaryExpression"],STRING_LITERAL_LONG1:["primaryExpression"],STRING_LITERAL_LONG2:["primaryExpression"],INTEGER:["primaryExpression"],DECIMAL:["primaryExpression"],DOUBLE:["primaryExpression"],INTEGER_POSITIVE:["primaryExpression"],DECIMAL_POSITIVE:["primaryExpression"],DOUBLE_POSITIVE:["primaryExpression"],INTEGER_NEGATIVE:["primaryExpression"],DECIMAL_NEGATIVE:["primaryExpression"],DOUBLE_NEGATIVE:["primaryExpression"],PNAME_LN:["primaryExpression"],PNAME_NS:["primaryExpression"]},update:{INSERT:["prologue","?[update1,?[;,update]]"],DELETE:["prologue","?[update1,?[;,update]]"],LOAD:["prologue","?[update1,?[;,update]]"],CLEAR:["prologue","?[update1,?[;,update]]"],DROP:["prologue","?[update1,?[;,update]]"],ADD:["prologue","?[update1,?[;,update]]"],MOVE:["prologue","?[update1,?[;,update]]"],COPY:["prologue","?[update1,?[;,update]]"],CREATE:["prologue","?[update1,?[;,update]]"],WITH:["prologue","?[update1,?[;,update]]"],BASE:["prologue","?[update1,?[;,update]]"],PREFIX:["prologue","?[update1,?[;,update]]"],$:["prologue","?[update1,?[;,update]]"]},update1:{LOAD:["load"],CLEAR:["clear"],DROP:["drop"],ADD:["add"],MOVE:["move"],COPY:["copy"],CREATE:["create"],INSERT:["INSERT","insert1"],DELETE:["DELETE","delete1"],WITH:["modify"]},updateAll:{INSERT:["?[update1,?[;,update]]"],DELETE:["?[update1,?[;,update]]"],LOAD:["?[update1,?[;,update]]"],CLEAR:["?[update1,?[;,update]]"],DROP:["?[update1,?[;,update]]"],ADD:["?[update1,?[;,update]]"],MOVE:["?[update1,?[;,update]]"],COPY:["?[update1,?[;,update]]"],CREATE:["?[update1,?[;,update]]"],WITH:["?[update1,?[;,update]]"],$:["?[update1,?[;,update]]"]},usingClause:{USING:["USING","or([iriRef,[NAMED,iriRef]])"]},valueLogical:{"!":["relationalExpression"],"+":["relationalExpression"],"-":["relationalExpression"],VAR1:["relationalExpression"],VAR2:["relationalExpression"],"(":["relationalExpression"],STR:["relationalExpression"],LANG:["relationalExpression"],LANGMATCHES:["relationalExpression"],DATATYPE:["relationalExpression"],BOUND:["relationalExpression"],IRI:["relationalExpression"],URI:["relationalExpression"],BNODE:["relationalExpression"],RAND:["relationalExpression"],ABS:["relationalExpression"],CEIL:["relationalExpression"],FLOOR:["relationalExpression"],ROUND:["relationalExpression"],CONCAT:["relationalExpression"],STRLEN:["relationalExpression"],UCASE:["relationalExpression"],LCASE:["relationalExpression"],ENCODE_FOR_URI:["relationalExpression"],CONTAINS:["relationalExpression"],STRSTARTS:["relationalExpression"],STRENDS:["relationalExpression"],STRBEFORE:["relationalExpression"],STRAFTER:["relationalExpression"],YEAR:["relationalExpression"],MONTH:["relationalExpression"],DAY:["relationalExpression"],HOURS:["relationalExpression"],MINUTES:["relationalExpression"],SECONDS:["relationalExpression"],TIMEZONE:["relationalExpression"],TZ:["relationalExpression"],NOW:["relationalExpression"],UUID:["relationalExpression"],STRUUID:["relationalExpression"],MD5:["relationalExpression"],SHA1:["relationalExpression"],SHA256:["relationalExpression"],SHA384:["relationalExpression"],SHA512:["relationalExpression"],COALESCE:["relationalExpression"],IF:["relationalExpression"],STRLANG:["relationalExpression"],STRDT:["relationalExpression"],SAMETERM:["relationalExpression"],ISIRI:["relationalExpression"],ISURI:["relationalExpression"],ISBLANK:["relationalExpression"],ISLITERAL:["relationalExpression"],ISNUMERIC:["relationalExpression"],TRUE:["relationalExpression"],FALSE:["relationalExpression"],COUNT:["relationalExpression"],SUM:["relationalExpression"],MIN:["relationalExpression"],MAX:["relationalExpression"],AVG:["relationalExpression"],SAMPLE:["relationalExpression"],GROUP_CONCAT:["relationalExpression"],SUBSTR:["relationalExpression"],REPLACE:["relationalExpression"],REGEX:["relationalExpression"],EXISTS:["relationalExpression"],NOT:["relationalExpression"],IRI_REF:["relationalExpression"],STRING_LITERAL1:["relationalExpression"],STRING_LITERAL2:["relationalExpression"],STRING_LITERAL_LONG1:["relationalExpression"],STRING_LITERAL_LONG2:["relationalExpression"],INTEGER:["relationalExpression"],DECIMAL:["relationalExpression"],DOUBLE:["relationalExpression"],INTEGER_POSITIVE:["relationalExpression"],DECIMAL_POSITIVE:["relationalExpression"],DOUBLE_POSITIVE:["relationalExpression"],INTEGER_NEGATIVE:["relationalExpression"],DECIMAL_NEGATIVE:["relationalExpression"],DOUBLE_NEGATIVE:["relationalExpression"],PNAME_LN:["relationalExpression"],PNAME_NS:["relationalExpression"]},valuesClause:{VALUES:["VALUES","dataBlock"],$:[],"}":[]},var:{VAR1:["VAR1"],VAR2:["VAR2"]},varOrIRIref:{VAR1:["var"],VAR2:["var"],IRI_REF:["iriRef"],PNAME_LN:["iriRef"],PNAME_NS:["iriRef"]},varOrTerm:{VAR1:["var"],VAR2:["var"],NIL:["graphTerm"],IRI_REF:["graphTerm"],TRUE:["graphTerm"],FALSE:["graphTerm"],BLANK_NODE_LABEL:["graphTerm"],ANON:["graphTerm"],PNAME_LN:["graphTerm"],PNAME_NS:["graphTerm"],STRING_LITERAL1:["graphTerm"],STRING_LITERAL2:["graphTerm"],STRING_LITERAL_LONG1:["graphTerm"],STRING_LITERAL_LONG2:["graphTerm"],INTEGER:["graphTerm"],DECIMAL:["graphTerm"],DOUBLE:["graphTerm"],INTEGER_POSITIVE:["graphTerm"],DECIMAL_POSITIVE:["graphTerm"],DOUBLE_POSITIVE:["graphTerm"],INTEGER_NEGATIVE:["graphTerm"],DECIMAL_NEGATIVE:["graphTerm"],DOUBLE_NEGATIVE:["graphTerm"]},verb:{VAR1:["storeProperty","varOrIRIref"],VAR2:["storeProperty","varOrIRIref"],IRI_REF:["storeProperty","varOrIRIref"],PNAME_LN:["storeProperty","varOrIRIref"],PNAME_NS:["storeProperty","varOrIRIref"],a:["storeProperty","a"]},verbPath:{"^":["path"],a:["path"],"!":["path"],"(":["path"],IRI_REF:["path"],PNAME_LN:["path"],PNAME_NS:["path"]},verbSimple:{VAR1:["var"],VAR2:["var"]},whereClause:{"{":["?WHERE","groupGraphPattern"],WHERE:["?WHERE","groupGraphPattern"]}},vI=/^(GROUP_CONCAT|DATATYPE|BASE|PREFIX|SELECT|CONSTRUCT|DESCRIBE|ASK|FROM|NAMED|ORDER|BY|LIMIT|ASC|DESC|OFFSET|DISTINCT|REDUCED|WHERE|GRAPH|OPTIONAL|UNION|FILTER|GROUP|HAVING|AS|VALUES|LOAD|CLEAR|DROP|CREATE|MOVE|COPY|SILENT|INSERT|DELETE|DATA|WITH|TO|USING|NAMED|MINUS|BIND|LANGMATCHES|LANG|BOUND|SAMETERM|ISIRI|ISURI|ISBLANK|ISLITERAL|REGEX|TRUE|FALSE|UNDEF|ADD|DEFAULT|ALL|SERVICE|INTO|IN|NOT|IRI|URI|BNODE|RAND|ABS|CEIL|FLOOR|ROUND|CONCAT|STRLEN|UCASE|LCASE|ENCODE_FOR_URI|CONTAINS|STRSTARTS|STRENDS|STRBEFORE|STRAFTER|YEAR|MONTH|DAY|HOURS|MINUTES|SECONDS|TIMEZONE|TZ|NOW|UUID|STRUUID|MD5|SHA1|SHA256|SHA384|SHA512|COALESCE|IF|STRLANG|STRDT|ISNUMERIC|SUBSTR|REPLACE|EXISTS|COUNT|SUM|MIN|MAX|AVG|SAMPLE|SEPARATOR|STR)/i,xI=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,xd="sparql11",CI=!0;function II(i){let m=mI,e='<[^<>"`|{}^\\\0- ]*>',N="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",R=N+"|_",L="("+R+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",O="("+R+"|[0-9])("+R+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",D="\\?"+O,Z="\\$"+O,H="("+N+")((("+L+")|\\.)*("+L+"))?",Q="[0-9A-Fa-f]",M="("+("(%"+Q+Q+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",z="("+R+"|:|[0-9]|"+M+")(("+L+"|\\.|:|"+M+")*("+L+"|:|"+M+"))?",Y="_:("+R+"|[0-9])(("+L+"|\\.)*"+L+")?",B="("+H+")?:",V=B+z,X="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",q="[eE][\\+-]?[0-9]+",te="[0-9]+",ie="[0-9]*\\.[0-9]+",ae="(([0-9]+\\.[0-9]*"+q+")|(\\.[0-9]+"+q+")|([0-9]+"+q+"))",fe="\\+"+te,ye="\\+"+ie,Re="\\+"+ae,Le="-"+te,Ve="-"+ie,Je="-"+ae,me=`\\\\[tbnrf\\\\"']`,xr=Q+"{4}",Cr="(\\\\u"+xr+"|\\\\U00(10|0"+Q+")"+xr+")",ur="'(([^\\x27\\x5C\\x0A\\x0D])|"+me+"|"+Cr+")*'",$r='"(([^\\x22\\x5C\\x0A\\x0D])|'+me+"|"+Cr+')*"',ze={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+me+"|"+Cr+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+me+"|"+Cr+"))*"}};for(let Fe in ze)ze[Fe].COMPLETE=ze[Fe].QUOTES+ze[Fe].CONTENTS+ze[Fe].QUOTES;var St={};for(let Fe in ze)St[Fe]={complete:{name:"STRING_LITERAL_LONG_"+Fe,regex:new RegExp("^"+ze[Fe].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Fe,regex:new RegExp("^"+ze[Fe].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Fe,regex:new RegExp("^"+ze[Fe].CONTENTS+ze[Fe].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Fe,regex:new RegExp("^"+ze[Fe].QUOTES),style:"string"}};let Lt="[\\x20\\x09\\x0D\\x0A]",pr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",wt="("+Lt+"|("+pr+"))*",or="\\("+wt+"\\)",ut="\\["+wt+"\\]",je=[{name:"WS",regex:new RegExp("^"+Lt+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+pr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+D),style:"atom"},{name:"VAR2",regex:new RegExp("^"+Z),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+X),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ae),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ie),style:"number"},{name:"INTEGER",regex:new RegExp("^"+te),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+Re),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+ye),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+fe),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Je),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Ve),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+Le),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+ur),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+$r),style:"string"},{name:"NIL",regex:new RegExp("^"+or),style:"punc"},{name:"ANON",regex:new RegExp("^"+ut),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+V),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+B),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+Y),style:"string-2"}];function zr(Fe){var pe=[],Er=m[Fe];if(Er!=null)for(let fr in Er)pe.push(fr.toString());else pe.push(Fe);return pe}function Ir(Fe,pe){function Er(){let Oe;if(pe.inLiteral){var rr=!1;if(Oe=Fe.match(St[pe.inLiteral].contents.regex,!0,!1),Oe&&Oe[0].length==0&&(Oe=Fe.match(St[pe.inLiteral].closing.regex,!0,!1),rr=!0),Oe&&Oe[0].length>0){let Nr={quotePos:rr?"end":"content",cat:ze[pe.inLiteral].CAT,style:St[pe.inLiteral].complete.style,string:Oe[0],start:Fe.start};return rr&&(pe.inLiteral=void 0),Nr}}for(let Nr in St)if(Oe=Fe.match(St[Nr].quotes.regex,!0,!1),Oe){var at;return pe.inLiteral?(pe.inLiteral=void 0,at="end"):(pe.inLiteral=Nr,at="start"),{cat:ze[Nr].CAT,style:St[Nr].quotes.style,string:Oe[0],quotePos:at,start:Fe.start}}for(var pt=0;pt<je.length;++pt)if(Oe=Fe.match(je[pt].regex,!0,!1),Oe)return{cat:je[pt].name,style:je[pt].style,string:Oe[0],start:Fe.start,quotePos:void 0};return Oe=Fe.match(vI,!0,!1),Oe?{cat:Fe.current().toUpperCase(),style:"keyword",string:Oe[0],start:Fe.start,quotePos:void 0}:(Oe=Fe.match(xI,!0,!1),Oe?{cat:Fe.current(),style:"punc",string:Oe[0],start:Fe.start,quotePos:void 0}:(Oe=Fe.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:Oe[0],start:Fe.start,quotePos:void 0}))}function fr(){let Oe=Fe.column();pe.errorStartPos=Oe,pe.errorEndPos=Oe+Ae.string.length}function we(Oe){if(pe.queryType==null)switch(Oe){case"SELECT":case"CONSTRUCT":case"ASK":case"DESCRIBE":case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":pe.queryType=Oe}}function Ur(Oe){switch(Oe==="prefixDecl"?pe.inPrefixDecl=!0:pe.inPrefixDecl=!1,Oe){case"disallowVars":pe.allowVars=!1;break;case"allowVars":pe.allowVars=!0;break;case"disallowBnodes":pe.allowBnodes=!1;break;case"allowBnodes":pe.allowBnodes=!0;break;case"storeProperty":pe.storeProperty=!0;break;case"constructTemplate":pe.inConstructTemplate=!0;break;case"whereClause":pe.inConstructTemplate=!1,pe.seenWhereClause=!0;break}}function ei(Oe){return(pe.allowVars||Oe!="var")&&(pe.allowBnodes||Oe!="blankNode"&&Oe!="blankNodePropertyList"&&Oe!="blankNodePropertyListPath")}Fe.pos==0&&(pe.possibleCurrent=pe.possibleNext);let Ae=Er();if(Ae.cat=="<invalid_token>")return pe.OK==!0&&(pe.OK=!1,fr()),pe.complete=!1,Ae.style;if(Ae.cat==="WS"||Ae.cat==="COMMENT"||Ae.quotePos&&Ae.quotePos!="end")return pe.possibleCurrent=pe.possibleNext,pe.possibleFullIri=!1,Ae.style;var Ot=!1,ft;let Nt=Ae.cat;if(pe.possibleFullIri&&Ae.string===">"&&(pe.possibleFullIri=!1),!pe.possibleFullIri&&Ae.string==="<"&&(pe.possibleFullIri=!0),!Ae.quotePos||Ae.quotePos=="end")for(;pe.stack.length>0&&Nt&&pe.OK&&!Ot;)if(ft=pe.stack.pop(),ft==="var"&&Ae.string&&(pe.variables[Ae.string]=Ae.string,pe.queryType==="CONSTRUCT"&&(pe.inConstructTemplate?pe.constructVariables[Ae.string]=Ae.string:pe.seenWhereClause&&(pe.whereVariables[Ae.string]=Ae.string))),m[ft]){let Oe=m[ft][Nt];if(Oe!=null&&ei(ft)){for(var ct=Oe.length-1;ct>=0;--ct)pe.stack.push(Oe[ct]);Ur(ft)}else pe.OK=!1,pe.complete=!1,fr(),pe.stack.push(ft)}else if(ft==Nt){pe.inPrefixDecl&&(ft==="PNAME_NS"&&Ae.string.length>0?pe.currentPnameNs=Ae.string.slice(0,-1):typeof pe.currentPnameNs=="string"&&Ae.string.length>1&&(pe.prefixes[pe.currentPnameNs]=Ae.string.slice(1,-1),pe.currentPnameNs=void 0)),Ot=!0,we(ft);for(var rs=!0,Me=pe.stack.length;Me>0;--Me){let Oe=m[pe.stack[Me-1]];(!Oe||!Oe.$)&&(rs=!1)}if(pe.complete=rs,pe.storeProperty&&Nt!="punc"?(pe.lastProperty=Ae.string,pe.lastPropertyIndex=Ae.start,pe.storeProperty=!1):(Nt==="."||Nt===";")&&(pe.lastProperty="",pe.lastPropertyIndex=0),!pe.inPrefixDecl&&(Nt==="PNAME_NS"||Nt==="PNAME_LN")){let Oe=Ae.string.indexOf(":");if(Oe>=0){let rr=Ae.string.slice(0,Oe);pe.prefixes[rr]===void 0&&(pe.OK=!1,fr(),pe.errorMsg="Prefix '"+rr+"' is not defined")}}}else pe.OK=!1,pe.complete=!1,fr();if(!Ot&&pe.OK&&(pe.OK=!1,pe.complete=!1,fr()),pe.possibleNext.indexOf("a")>=0){let Oe=Fe.string;for(let rr=Ae.start;rr>=0;rr--)if(Oe[rr-1]!==" "){Oe[rr-1]==="|"||Oe[rr-1]==="/"||Ae.style==="punc"||(pe.lastPredicateOffset=Ae.start);break}}return pe.possibleCurrent=pe.possibleNext,pe.possibleNext=zr(pe.stack[pe.stack.length-1]),Ae.style}let Pr={"*[,, object]":3,"*[(,),object]":3,"*[(,),objectPath]":3,"*[/,pathEltOrInverse]":2,object:2,objectPath:2,objectList:2,objectListPath:2,storeProperty:2,pathMod:2,"?pathMod":2,propertyListNotEmpty:1,propertyList:1,propertyListPath:1,propertyListPathNotEmpty:1,"?[verb,objectList]":1},hr={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function Kt(Fe,pe){if(Fe.inLiteral)return 0;if(Fe.lastPredicateOffset!==void 0&&Fe.stack.length&&Fe.stack[Fe.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return Fe.lastPredicateOffset;var Er=0,fr=Fe.stack.length-1;if(/^[\}\]\)]/.test(pe)){let we=pe.substr(0,1);for(;fr>=0;--fr)if(Fe.stack[fr]==we){--fr;break}}else{let we=Pr[Fe.stack[fr]];we&&(Er+=we,--fr)}for(;fr>=0;--fr){let we=hr[Fe.stack[fr]];we&&(Er+=we)}return Er*(i.indentUnit??2)}return{token:Ir,startState:function(){return{tokenize:Ir,OK:!0,complete:CI,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:zr(xd),possibleNext:zr(xd),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[xd],lastPredicateOffset:i.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1,inConstructTemplate:!1,seenWhereClause:!1,constructVariables:{},whereVariables:{}}},indent:Kt,electricChars:"}])"}}var $D=Xt(Mm()),zD=Xt(RI()),jD=Xt(LI()),qD=Xt(UI()),KD=Xt(BI()),eM=Xt(Wm()),rM=Xt(XI()),tM=Xt($I()),iM=Xt(qI());Cd.default.registerHelper("fold","prefix",iv);Cd.default.defineMode("sparql11",II);var O1=Cd.default,Ta=O1;function U1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function jl(i,m,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,jl.prototype),R.expected=m,R.found=e,R.location=N,R.name="SyntaxError",R}U1(jl,Error);function Zm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}jl.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,O=this.location.source+":"+L.line+":"+L.column;if(e){var D=this.location.end,Z=Zm("",L.line.toString().length," "),H=e[R.line-1],Q=R.line===D.line?D.column:H.length+1,W=Q-R.column||1;m+=`
|
|
61
|
+
--> `+O+`
|
|
56
62
|
`+Z+` |
|
|
57
|
-
`+
|
|
58
|
-
`+Z+" | "+
|
|
59
|
-
at `+
|
|
60
|
-
`,"\r"],!0,!1),
|
|
61
|
-
`,"\r"],!0,!1),
|
|
62
|
-
`],!1,!1),
|
|
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),Rn=Ge([["\u0300","\u036F"]],!1,!1),yn=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},Xu=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},Yu=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},Xp=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Yp=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},yr=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]}},y=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}},Y=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]}},Rt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Dn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},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()}},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 Xr()},_d=function(n){return{type:"Var",varType:"VAR1",varname:n}},Hd=function(n){return{type:"Var",varType:"VAR2",varname:n}},Xd=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},Yd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Xr()}},$d=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Xr()}},Jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},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 Xr()},ug=function(){return Xr()},fg=function(){return ah[Te().start.offset]=Xr(),""},pg=function(){return Xr()},cg=function(){return Xr()},hg=function(){return Xr()},r=0,U=0,xo=[{line:1,column:1}],At=0,pl=[],A=0,Co;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 Xr(){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),yc([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 Rc(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=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<At||(r>At&&(At=r,pl=[]),pl.push(n))}function Eg(n,t){return new Yl(n,null,null,t)}function yc(n,t,u){return new Yl(Yl.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=Xi(),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=Xi(),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(ys)),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(ys)),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(Xn)),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=Xi(),U=n,n=Xu(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(Xn)),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=X,r++):(F=e,A===0&&C(Ft)),F!==e){for(Q=[],ne=p();ne!==e;)Q.push(ne),ne=p();ne=Xi(),U=n,n=Yu(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=Xi(),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=Xi(),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 Xi(){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),U=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(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(ys)),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 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?(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=Xp(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=Ys(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=Yp(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=Ys(),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=Yc(),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=Yi(),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(Yn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),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=Yi(),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(Yn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),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=Yi(),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(Yn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),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(Xo)),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(Xo)),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 Yi(){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(Yo)),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=X,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=X,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=ye,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=ye,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=X,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=ye,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=X,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=Xc(),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($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=Xc(),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($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=ye,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 Xc(){var n;return n=qg(),n===e&&(n=_g(),n===e&&(n=jg(),n===e&&(n=Hg(),n===e&&(n=Xg(),n===e&&(n=Kg(),n===e&&(n=Yg(),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 Xg(){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 Yg(){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(ys)),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=Yc(),a!==e?(U=n,n=uf(a)):(r=n,n=e)}else r=n,n=e;return n}function Yc(){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=X,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=X,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=Rl(),t===e&&(t=yl(),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=X,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=ye,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=yr()),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=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)===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=Xs(),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=Xs(),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=Xs(),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=Xs(),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=Xs(),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 Xs(){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=Ro(),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=Ro(),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=Ro(),o!==e?(U=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=Ro())}}return n}function Ro(){var n,t;return n=bl(),n===e&&(n=Tl(),n===e&&(n=mE(),n===e&&(n=r,t=Rl(),t!==e&&(U=n,t=Ac(t)),n=t,n===e&&(n=r,t=yl(),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=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=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=Y(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()===Re?(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(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=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=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()===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=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()===Xe?(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()===ya?(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(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();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()===Ye?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(qo)),t===e&&(i.substr(r,5).toLowerCase()===Xf?(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=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(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();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=Rt(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(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();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=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=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,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()===Yf?(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 Rl(){var n,t,u,o,a;return n=r,t=th(),t!==e?(u=RE(),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 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=Ys())),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&&(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=Yt,r++):(u=e,A===0&&C(Rr)),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=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C($e)),c!==e?(h=Yr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C($e)),c!==e?(h=Yr(),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 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(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=Xd(u,o)}else r=n,n=e}else r=n,n=e;return n}function Ys(){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=Yd()),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=ye,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=ye,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=ye,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 yE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,A===0&&C(vt)),t!==e?(u=Ys(),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=Ys(),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(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),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(yi)),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)===Rs?(a=Rs,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)===Rs?(a=Rs,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 yo(){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=yo();o!==e;)u.push(o),o=yo();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=yo();c!==e;)a.push(c),c=yo();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(Rn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(yn))))));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(Rn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(yn))))));U=n,n=pg()}else r=n,n=e;return n}function Yr(){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(Rn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(yn))))))),n}function WE(){var n,t,u,o,a,c;if(n=r,t=sh(),t!==e){for(u=[],o=Yr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C($e)),a!==e?(c=Yr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Yr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C($e)),a!==e?(c=Yr(),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=Yt,r++):(t=e,A===0&&C(Rr)),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=Yr(),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,A===0&&C(Rr)),o===e&&(o=$s())),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C($e)),a!==e?(c=Yr(),c===e&&(i.charCodeAt(r)===58?(c=Yt,r++):(c=e,A===0&&C(Rr)),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=Yr(),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,A===0&&C(Rr)),o===e&&(o=$s())),o===e&&(o=r,i.charCodeAt(r)===46?(a=ye,r++):(a=e,A===0&&C($e)),a!==e?(c=Yr(),c===e&&(i.charCodeAt(r)===58?(c=Yt,r++):(c=e,A===0&&C(Rr)),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=ye,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=Yt,r++):(u=e,A===0&&C(Rr)),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(Ri)),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()),yc(pl,At<i.length?i.charAt(At):null,At<i.length?ks(At,At+1):ks(At,At))}function y1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function $l(i,v,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,$l.prototype),R.expected=v,R.found=e,R.location=N,R.name="SyntaxError",R}y1($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 R=this.location.start,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,G=this.location.source+":"+w.line+":"+w.column;if(e){var V=this.location.end,Z=Bv("",w.line.toString().length," "),H=e[R.line-1],_=R.line===V.line?V.column:H.length+1,W=_-R.column||1;v+=`
|
|
64
|
-
--> `+
|
|
63
|
+
`+L.line+" | "+H+`
|
|
64
|
+
`+Z+" | "+Zm("",R.column-1," ")+Zm("",W,"^")}else m+=`
|
|
65
|
+
at `+O}return m};jl.buildMessage=function(i,m){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var Q=H.parts.map(function(W){return Array.isArray(W)?L(W[0])+"-"+L(W[1]):L(W)});return"["+(H.inverted?"^":"")+Q.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};function N(H){return H.charCodeAt(0).toString(16).toUpperCase()}function R(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function L(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function O(H){return e[H.type](H)}function D(H){var Q=H.map(O),W,$;if(Q.sort(),Q.length>0){for(W=1,$=1;W<Q.length;W++)Q[W-1]!==Q[W]&&(Q[$]=Q[W],$++);Q.length=$}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function Z(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+D(i)+" but "+Z(m)+" found."};function Fh(i,m){m=m!==void 0?m:{};var e={},N=m.grammarSource,R={DOCUMENT:Fp},L=Fp,O="base",D="prefix",Z="select",H="distinct",Q="reduced",W="(",$="as",M=")",z="*",Y="construct",B="where",V="{",X="}",q="describe",te="ask",ie="from",ae="named",fe="group",ye="by",Re="having",Le="order",Ve="asc",Je="desc",me="limit",xr="offset",Cr="values",ur=";",$r="load",ze="silent",St="into",Lt="clear",pr="drop",wt="create",or="add",ut="to",je="move",zr="copy",Ir="insert",Pr="data",hr="delete",Kt="with",Fe="using",pe="default",Er="graph",fr="all",we=".",Ur="optional",ei="service",Ae="bind",Ot="UNDEF",ft="minus",Nt="union",rs="filter",Me=",",ct="a",Oe="|",rr="/",at="^",pt="?",Nr="+",ri="!",Fi="[",ti="]",bt="||",ii="&&",Tr="=",Ut="!=",Ge="<",ni=">",kr="<=",ar=">=",dr="in",ts="not",tr="-",is="str",ht="lang",Dr="langmatches",mi="datatype",bs="bound",rn="iri",tn="uri",Bo="bnode",sn="rand",ya="abs",Zt="ceil",Gi="floor",nn="round",Vo="concat",kn="strlen",on="ucase",oi="lcase",an="encode_for_uri",Bi="contains",Do="strbefore",Mo="strstarts",ln="strends",We="strafter",K="year",Ee="month",Se="day",mr="hours",et="minutes",qe="seconds",Ie="timezone",dt="tz",vi="now",Pt="uuid",_e="struuid",xi="md5",ss="sha1",Sa="sha256",he="sha384",Xe="sha512",La="coalesce",wa="if",Wo="strlang",Zo="strdt",eu="sameterm",Ye="isuri",jf="isiri",ru="isblank",Po="isliteral",Ci="isnumeric",tu="regex",iu="substr",Qn="replace",_n="exists",su="count",Oa="sum",nu="min",ou="max",au="avg",lu="sample",qf="group_concat",Kf="separator",ko="^^",Vi="true",ec="false",Yt=":",un="_:",Ts="$",Ua="@",Di="'",Rs='"',ys="'''",Mi="''",ns='"""',Ss='""',Qo="\\",fn="#",cn="_",pn="%",Fa="~",uu="&",_o=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ga=/^[a-zA-Z]/,os=/^[a-zA-Z0-9]/,ai=/^[eE]/,rc=/^[+\-]/,Ba=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Ho=/^[^'\\]/,Ii=/^[^"\\]/,Va=/^[tbnrf\\"']/,Wi=/^[ \t]/,Xo=/^[\r\n]/,Da=/^[^\r\n]/,hn=/^[A-Z]/,tc=/^[a-z]/,ic=/^[\xC0-\xD6]/,sc=/^[\xD8-\xF6]/,nc=/^[\xF8-\u02FF]/,fu=/^[\u0370-\u037D]/,cu=/^[\u037F-\u1FFF]/,oc=/^[\u200C-\u200D]/,ac=/^[\u2070-\u218F]/,lc=/^[\u2C00-\u2FEF]/,uc=/^[\u3001-\uD7FF]/,pu=/^[\uF900-\uFDCF]/,fc=/^[\uFDF0-\uFFFD]/,dn=/^[\xB7]/,as=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,cc=/^[A-F]/,pc=/^[a-f]/,hc=P("BASE",!0),Xn=P("PREFIX",!0),rt=P("SELECT",!0),gt=P("DISTINCT",!0),hu=P("REDUCED",!0),le=P("(",!1),Ls=P("AS",!0),ue=P(")",!1),Qr=P("*",!1),Yn=P("CONSTRUCT",!0),ls=P("WHERE",!0),Ft=P("{",!1),Gt=P("}",!1),du=P("DESCRIBE",!0),gu=P("ASK",!0),dc=P("FROM",!0),Zi=P("NAMED",!0),Pi=P("GROUP",!0),gn=P("BY",!0),Ma=P("HAVING",!0),Eu=P("ORDER",!0),Ni=P("ASC",!0),ws=P("DESC",!0),Wa=P("LIMIT",!0),gc=P("OFFSET",!0),Yo=P("VALUES",!0),Jt=P(";",!1),mu=P("LOAD",!0),Et=P("SILENT",!0),En=P("INTO",!0),bi=P("CLEAR",!0),vu=P("DROP",!0),xu=P("CREATE",!0),Ec=P("ADD",!0),Jn=P("TO",!0),mc=P("MOVE",!0),Cu=P("COPY",!0),Jo=P("INSERT",!0),Os=P("DATA",!0),mn=P("DELETE",!0),Iu=P("WITH",!0),Za=P("USING",!0),vn=P("DEFAULT",!0),us=P("GRAPH",!0),$o=P("ALL",!0),$e=P(".",!1),Au=P("OPTIONAL",!0),Pa=P("SERVICE",!0),ka=P("BIND",!0),Nu=P("UNDEF",!1),bu=P("MINUS",!0),$n=P("UNION",!0),vc=P("FILTER",!0),ke=P(",",!1),Us=P("a",!1),$t=P("|",!1),Mr=P("/",!1),fs=P("^",!1),Fs=P("?",!1),mt=P("+",!1),xn=P("!",!1),Gs=P("[",!1),li=P("]",!1),ki=P("||",!1),vt=P("&&",!1),kt=P("=",!1),Ti=P("!=",!1),cs=P("<",!1),zn=P(">",!1),zo=P("<=",!1),Bs=P(">=",!1),ps=P("IN",!0),Vs=P("NOT",!0),Wr=P("-",!1),xc=P("STR",!0),Qa=P("LANG",!0),Tu=P("LANGMATCHES",!0),_a=P("DATATYPE",!0),Ha=P("BOUND",!0),Cn=P("IRI",!0),jo=P("URI",!0),Ru=P("BNODE",!0),qo=P("RAND",!0),Cc=P("ABS",!0),Ic=P("CEIL",!0),Ac=P("FLOOR",!0),Xa=P("ROUND",!0),Ya=P("CONCAT",!0),In=P("STRLEN",!0),jn=P("UCASE",!0),Nc=P("LCASE",!0),Ko=P("ENCODE_FOR_URI",!0),yu=P("CONTAINS",!0),qn=P("STRBEFORE",!0),Su=P("STRSTARTS",!0),Ds=P("STRENDS",!0),Kn=P("STRAFTER",!0),Ms=P("YEAR",!0),eo=P("MONTH",!0),An=P("DAY",!0),Lu=P("HOURS",!0),wu=P("MINUTES",!0),Ou=P("SECONDS",!0),bc=P("TIMEZONE",!0),Ws=P("TZ",!0),Zs=P("NOW",!0),Tc=P("UUID",!0),Rc=P("STRUUID",!0),yc=P("MD5",!0),Sc=P("SHA1",!0),Lc=P("SHA256",!0),wc=P("SHA384",!0),Qt=P("SHA512",!0),tt=P("COALESCE",!0),Tt=P("IF",!0),it=P("STRLANG",!0),ro=P("STRDT",!0),Oc=P("sameTerm",!0),ea=P("isURI",!0),Uc=P("isIRI",!0),Fc=P("isBLANK",!0),Gc=P("isLITERAL",!0),Ja=P("isNUMERIC",!0),Uu=P("REGEX",!0),$a=P("SUBSTR",!0),Bc=P("REPLACE",!0),to=P("EXISTS",!0),za=P("COUNT",!0),Fu=P("SUM",!0),Gu=P("MIN",!0),ja=P("MAX",!0),Bu=P("AVG",!0),io=P("SAMPLE",!0),Vc=P("GROUP_CONCAT",!0),ra=P("SEPARATOR",!0),Qi=P("^^",!1),Vu=P("true",!0),Dc=P("false",!0),ta=Be(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Rr=P(":",!1),lr=P("_:",!1),Pe=Be([["0","9"]],!1,!1),Ri=P("$",!1),yi=P("@",!1),ia=Be([["a","z"],["A","Z"]],!1,!1),_i=Be([["a","z"],["A","Z"],["0","9"]],!1,!1),Du=Be(["e","E"],!1,!1),Mc=Be(["+","-"],!1,!1),ui=P("'",!1),Ps=Be(["'","\\",`
|
|
66
|
+
`,"\r"],!0,!1),hs=P('"',!1),so=Be(['"',"\\",`
|
|
67
|
+
`,"\r"],!0,!1),Si=P("'''",!1),sa=P("''",!1),na=Be(["'","\\"],!0,!1),qa=P('"""',!1),Nn=P('""',!1),no=Be(['"',"\\"],!0,!1),oa=P("\\",!1),Wc=Be(["t","b","n","r","f","\\",'"',"'"],!1,!1),Mu=Be([" "," "],!1,!1),Zc=Be(["\r",`
|
|
68
|
+
`],!1,!1),Pc=Be(["\r",`
|
|
69
|
+
`],!0,!1),ds=P("#",!1),Wu=Be([["A","Z"]],!1,!1),kc=Be([["a","z"]],!1,!1),Qc=Be([["\xC0","\xD6"]],!1,!1),Zu=Be([["\xD8","\xF6"]],!1,!1),bn=Be([["\xF8","\u02FF"]],!1,!1),Ka=Be([["\u0370","\u037D"]],!1,!1),aa=Be([["\u037F","\u1FFF"]],!1,!1),Pu=Be([["\u200C","\u200D"]],!1,!1),el=Be([["\u2070","\u218F"]],!1,!1),ku=Be([["\u2C00","\u2FEF"]],!1,!1),_c=Be([["\u3001","\uD7FF"]],!1,!1),Qu=Be([["\uF900","\uFDCF"]],!1,!1),xt=Be([["\uFDF0","\uFFFD"]],!1,!1),Tn=P("_",!1),Rn=Be(["\xB7"],!1,!1),yn=Be([["\u0300","\u036F"]],!1,!1),Sn=Be([["\u203F","\u2040"]],!1,!1),gs=P("%",!1),la=Be([["A","F"]],!1,!1),_u=Be([["a","f"]],!1,!1),Hu=P("~",!1),Xu=P("&",!1),Ln=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(ph).map(([a,p])=>({pos:parseInt(a),text:p}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},Yu=function(n,t,u){let o={type:"Query"};return n&&(o.prologue=n),t.type==="SelectQuery"?o.selectQuery=t:t.type==="ConstructQuery"?o.constructQuery=t:t.type==="DescribeQuery"?o.describeQuery=t:t.type==="AskQuery"&&(o.askQuery=t),u&&(o.values=u),o},ua=function(n){if(n.length)return{type:"Prologue",decl:n}},Ju=function(n){return{type:"BaseDecl",iriref:n}},oo=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Hc=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},wn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:Te()};return o&&(a.values=o),a},$u=function(n,t){let u;t==="*"?u=["*"]:u=t.map(a=>a.length===2?a[1]:{expression:a[3],as:a[7]});let o={var:u};if(n){let a=n.toUpperCase();a==="DISTINCT"?o.distinct=!0:a==="REDUCED"&&(o.reduced=!0)}return o.location=Te(),o},zu=function(n,t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,template:n,where:u,...o,location:Te()},a},ju=function(n,t,u){let o={type:"ConstructQuery"};return n.length&&(o.from=n),o={...o,where:[t],...u,location:Te()},o},ao=function(n,t,u,o){let a={type:"DescribeQuery"};return t.length&&(a.from=t),a.describe=n,u&&(a.where=u),a={...a,...o,location:Te()},a},lo=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:Te()},o},uo=function(n){return n},fo=function(n){return{graph:n,location:Te()}},qu=function(n){return{namedGraph:n,location:Te()}},Xc=function(n){return n.graphPattern||n},Ku=function(n,t,u,o){let a={};return n&&(a.group=n),t&&(a.having=t),u&&(a.orderBy=u),o&&(a.limitOffset=o),a},Es=function(n){return n},On=function(n){return n},co=function(n){return n},Yc=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:Te()}:{bracketted:!0,...n}},ef=function(n){return n},Jc=function(n){return n},$c=function(n){return n},zc=function(n){return n},Bt=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},rf=function(n){return n},jc=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},qc=function(n){return{limit:parseInt(n.literal)}},Kc=function(n){return{offset:parseInt(n.literal)}},tf=function(n){return n?n[1]:null},sf=function(n,t){let u={type:"Update"};n&&(u.prologue=n);let o=[];return t&&(o=[t[1]],t[2]&&(o=o.concat(t[2][3].update))),u.update=o,u},nf=function(n,t,u){let o={type:"load",silent:n,sourceGraph:t};return u&&(o.destinyGraph=u[2]),o},ep=function(n,t){return{type:"clear",silent:n,destinyGraph:t}},rp=function(n,t){return{type:"drop",silent:n,destinyGraph:t}},tp=function(n,t){return{type:"create",silent:n,destinyGraph:t}},ms=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},po=function(n,t,u){return{type:"move",silent:n,graphs:[t,u]}},fa=function(n,t,u){return{type:"copy",silent:n,graphs:[t,u]}},ho=function(n){return{type:"insertdata",insert:n}},Hi=function(n){return{type:"deletedata",delete:n}},ip=function(n){return{type:"deletewhere",delete:n}},sp=function(n,t,u,o){let a={type:"modify"};return n&&(a.with=n[2]),t.length===3?(a.delete=t[0],t[2]&&(a.insert=t[2])):a.insert=t,u.length&&(a.using=u),a.where=o.graphPattern,a},Un=function(n){return n},of=function(n){return n},af=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},lf=function(){return"default"},ca=function(n){return n},Fn=function(n){return n},rl=function(n){return n},tl=function(){return"default"},il=function(){return"named"},np=function(){return"all"},go=function(n){return n},uf=function(n){return n},op=function(n,t){let u=[];return n&&(u=u.concat(n)),t.forEach(o=>{u=u.concat(o[0]),o[2]&&(u=u.concat(o[2]))}),u},ff=function(n,t){return{graph:n,...t}},pa=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},ap=function(n){return n},lp=function(n,t){let u=[];return n&&u.push(n),t.forEach(o=>{u.push(o[0]),o[4]&&u.push(o[4])}),{graphPattern:u,location:Te()}},Eo=function(n,t){let u=[];return t&&t[3]?u=[n].concat(t[3].triplePattern):u=[n],{type:"TriplesBlock",triplePattern:u,location:Te()}},cf=function(n){return{type:"OptionalGraphPattern",optional:n.graphPattern||n,location:Te()}},pf=function(n,t){return{type:"GraphGraphPattern",graph:n,...t}},up=function(n,t,u){let o={type:"ServiceGraphPattern",service:t,pattern:u.graphPattern||u};return n&&(o.silent=!0),o.location=Te(),o},sl=function(n,t){return{type:"Bind",bind:n,as:t,location:Te()}},hf=function(n){return n},fp=function(n,t){return{oneVar:n,data:t,location:Te()}},df=function(n,t){return{variables:n,data:t,location:Te()}},gf=function(n){return n},cp=function(n){return n},nl=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:Te()}},mo=function(n,t){return t.length?{union:[n,...t],location:Te()}:n},vo=function(n){return{type:"Filter",filter:n,location:Te()}},pp=function(n,t){return{functionRef:n,args:t.list,location:Te()}},Ef=function(){return{list:[]}},hp=function(n,t,u){return{distinct:!!n,list:[t,...u]}},dp=function(){return[]},gp=function(n,t){return[n,...t]},Ep=function(n){return n},mf=function(n,t){let u=[n];return t&&t[3]&&(u=u.concat(t[3].triplePattern)),{triplePattern:u,location:Te()}},mp=function(n,t){return{subject:n,properties:t}},vp=function(n,t){return{subject:n,properties:t}},vf=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},ol=function(){return{a:!0,location:Te()}},xf=function(n,t){return[n,...t]},xp=function(n,t){return{subject:n,properties:t}},Cf=function(n,t){return{subject:n,properties:t}},Gn=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},If=function(n,t){return[n,...t]},ha=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{alternative:u,location:Te()}}else return n},Cp=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{sequence:u,location:Te()}}else return n},Ip=function(n,t){return t&&(n.modifier=t),n},Ap=function(n){return n.inverse=!0,n},yr=function(){return{a:!0,location:Te()}},Np=function(n){return{bracketted:!0,...n}},al=function(n){return{collection:n,location:Te()}},xo=function(n){return{blankNodeProperties:n,location:Te()}},fi=function(n){return{collection:n,location:Te()}},da=function(n){return{blankNodeProperties:n,location:Te()}},ll=function(n){return n},Af=function(n){return n},Nf=function(n){return n},bf=function(n){return n},ul=function(n){return{...n,location:Te()}},Tf=function(n,t){return t.length?{expressionType:"conditionalor",operands:[n,...t]}:n},bp=function(n,t){return t.length?{expressionType:"conditionaland",operands:[n,...t]}:n},fl=function(n,t){if(t.length){let u=n,o=t[0][1].toUpperCase(),a=t[0][3];return o==="NOT"&&(o+=" "+t[0][3].toUpperCase(),a=t[0][5]),{expressionType:"relationalexpression",operator:o,op1:u,op2:a}}else return n},Rf=function(n,t){if(t.length===0)return n;let u=[];return t.forEach(o=>{o.length==4&&u.push({operator:o[1],expression:o[3]})}),{expressionType:"additiveexpression",op1:n,ops:u}},gr=function(n,t){return t.length?{expressionType:"multiplicativeexpression",first:n,rest:t.map(u=>({operator:u[1],expression:u[3]}))}:n},yf=function(n){return{expressionType:"unaryexpression",unaryexpression:"!",expression:n}},Tp=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},Bn=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},Rp=function(n){return{expressionType:"atomic",value:n}},ga=function(n){return{expressionType:"atomic",value:n}},yp=function(n){return{expressionType:"atomic",value:n}},Zr=function(n){return{expressionType:"atomic",value:n}},Sp=function(n){return{bracketted:!0,...n}},Lp=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},wp=function(n){return{expressionType:"builtincall",builtincall:"lang",args:[n]}},Ea=function(n,t){return{expressionType:"builtincall",builtincall:"langMatches",args:[n,t]}},s=function(n){return{expressionType:"builtincall",builtincall:"datatype",args:[n]}},l=function(n){return{expressionType:"builtincall",builtincall:"bound",args:[n]}},g=function(n){return{expressionType:"builtincall",builtincall:"IRI",args:[n]}},d=function(n){return{expressionType:"builtincall",builtincall:"URI",args:[n]}},v=function(n){let t={expressionType:"builtincall",builtincall:"BNODE",args:null};return n.length===5&&(t.args=[n[2]]),t},A=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(n){return{expressionType:"builtincall",builtincall:"abs",args:[n]}},y=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},w=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},U=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},k=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},J=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},re=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},ee=function(n){return{expressionType:"builtincall",builtincall:"LCASE",args:[n]}},oe=function(n){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[n]}},ce=function(n,t){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[n,t]}},de=function(n,t){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[n,t]}},ve=function(n,t){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[n,t]}},Ce=function(n,t){return{expressionType:"builtincall",builtincall:"STRENDS",args:[n,t]}},xe=function(n,t){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[n,t]}},be=function(n){return{expressionType:"builtincall",builtincall:"year",args:[n]}},Ze=function(n){return{expressionType:"builtincall",builtincall:"month",args:[n]}},De=function(n){return{expressionType:"builtincall",builtincall:"day",args:[n]}},Ke=function(n){return{expressionType:"builtincall",builtincall:"hours",args:[n]}},vr=function(n){return{expressionType:"builtincall",builtincall:"minutes",args:[n]}},st=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},Lr=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},_t=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Vt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},lt=function(n){return{expressionType:"builtincall",builtincall:"MD5",args:[n]}},jr=function(n){return{expressionType:"builtincall",builtincall:"SHA1",args:[n]}},Hr=function(n){return{expressionType:"builtincall",builtincall:"SHA256",args:[n]}},Fr=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Mt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Vn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},vs=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},Ct=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},Li=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},nt=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},cl=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Xi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},ks=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},Qs=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Rt=function(n,t,u){let o={expressionType:"regex",text:n,pattern:t};return u&&(o.flags=u[2]),o},Dn=function(n,t,u){let o=[n,t];return u&&o.push(u[2]),{expressionType:"builtincall",builtincall:"substr",args:o}},pl=function(n,t,u,o){let a=[n,t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"replace",args:a}},Td=function(n){return{exists:n.graphPattern||n}},Rd=function(n){return{notexists:n.graphPattern||n}},yd=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},Sd=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},Ld=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},wd=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Od=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},Ud=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Fd=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},Gd=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Bd=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=Te(),n},Vd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Dd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Md=function(n){return{type:"IRIref",iriref:n,location:Te()}},Wd=function(n){return n},Zd=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:Te()}},Pd=function(n){return{type:"PrefixedName",pn_prefix:n,location:Te()}},kd=function(n){return{blankNode:n,location:Te()}},Qd=function(){return{blankNode:"[]",location:Te()}},_d=function(n){return n.join("")},Hd=function(n){return n||""},Xd=function(n,t){return{pn_prefix:n,pn_local:t}},Yd=function(){return Xr()},Jd=function(n){return{type:"Var",varType:"VAR1",varname:n}},$d=function(n){return{type:"Var",varType:"VAR2",varname:n}},zd=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Xr()}},qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Xr()}},Kd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},eg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},rg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},tg=function(n){return n.literal="+"+n.literal,n},ig=function(n){return n.literal="+"+n.literal,n},sg=function(n){return n.literal="+"+n.literal,n},ng=function(n){return n.literal="-"+n.literal,n},og=function(n){return n.literal="-"+n.literal,n},ag=function(n){return n.literal="-"+n.literal,n},lg=function(n){return{quote:"'",literal:n.join("")}},ug=function(n){return{quote:'"',literal:n.join("")}},fg=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},cg=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},pg=function(){return Xr()},hg=function(){return Xr()},dg=function(){return ph[Te().start.offset]=Xr(),""},gg=function(){return Xr()},Eg=function(){return Xr()},mg=function(){return Xr()},r=0,F=0,Co=[{line:1,column:1}],It=0,hl=[],I=0,Io;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function Xr(){return i.substring(F,r)}function sA(){return F}function nA(){return{source:N,start:F,end:r}}function Te(){return _s(F,r)}function oA(n,t){throw t=t!==void 0?t:_s(F,r),Up([xg(n)],i.substring(F,r),t)}function aA(n,t){throw t=t!==void 0?t:_s(F,r),Cg(n,t)}function P(n,t){return{type:"literal",text:n,ignoreCase:t}}function Be(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function lA(){return{type:"any"}}function vg(){return{type:"end"}}function xg(n){return{type:"other",description:n}}function Op(n){var t=Co[n],u;if(t)return t;for(u=n-1;!Co[u];)u--;for(t=Co[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return Co[n]=t,t}function _s(n,t,u){var o=Op(n),a=Op(t),p={source:N,start:{offset:n,line:o.line,column:o.column},end:{offset:t,line:a.line,column:a.column}};return u&&N&&typeof N.offset=="function"&&(p.start=N.offset(p.start),p.end=N.offset(p.end)),p}function C(n){r<It||(r>It&&(It=r,hl=[]),hl.push(n))}function Cg(n,t){return new jl(n,null,null,t)}function Up(n,t,u){return new jl(jl.buildMessage(n,t),n,t,u)}function Fp(){var n,t,u,o,a,p;for(n=r,t=[],u=lh();u!==e;)t.push(u),u=lh();for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Ig(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=Ln(t,o)}else r=n,n=e;return n}function Ig(){var n;return n=Ag(),n===e&&(n=_p()),n}function Ag(){var n,t,u,o,a;for(n=r,t=Gp(),u=[],o=c();o!==e;)u.push(o),o=c();return o=Ng(),o===e&&(o=Tg(),o===e&&(o=Rg(),o===e&&(o=yg()))),o!==e?(a=Qp(),F=n,n=Yu(t,o,a)):(r=n,n=e),n}function Gp(){var n,t,u;for(n=r,t=[],u=Bp(),u===e&&(u=Vp());u!==e;)t.push(u),u=Bp(),u===e&&(u=Vp());return F=n,t=ua(t),n=t,n}function Bp(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===O?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(hc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Fl(),a!==e?(F=n,n=Ju(a)):(r=n,n=e)}else r=n,n=e;return n}function Vp(){var n,t,u,o,a,p,h;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===D?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Gl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Fl(),h!==e?(F=n,n=oo(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Ng(){var n,t,u,o,a,p,h,E;if(n=r,t=Dp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=At();a!==e;)o.push(a),a=At();for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Hs(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Yi(),F=n,n=Hc(t,o,p,E)}else r=n,n=e}else r=n,n=e;return n}function bg(){var n,t,u,o,a,p,h;if(n=r,t=Dp(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Hs(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Yi(),h=Qp(),F=n,n=wn(t,o,p,h)}else r=n,n=e}else r=n,n=e;return n}function Dp(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue;if(n=r,i.substr(r,6).toLowerCase()===Z?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(rt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(gt)),o===e&&(i.substr(r,7).toLowerCase()===Q?(o=i.substr(r,7),r+=7):(o=e,I===0&&C(hu))),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(x=nr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===40?(x=W,r++):(x=e,I===0&&C(le)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.substr(r,2).toLowerCase()===$?(_=i.substr(r,2),r+=2):(_=e,I===0&&C(Ls)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=nr(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();i.charCodeAt(r)===41?(Ue=M,r++):(Ue=e,I===0&&C(ue)),Ue!==e?(E=[E,x,T,S,G,_,ne,ge,Ne,Ue],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}if(h!==e)for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(x=nr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===40?(x=W,r++):(x=e,I===0&&C(le)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.substr(r,2).toLowerCase()===$?(_=i.substr(r,2),r+=2):(_=e,I===0&&C(Ls)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=nr(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();i.charCodeAt(r)===41?(Ue=M,r++):(Ue=e,I===0&&C(ue)),Ue!==e?(E=[E,x,T,S,G,_,ne,ge,Ne,Ue],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}}else p=e;p===e&&(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(Qr))),p!==e?(F=n,n=$u(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Tg(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne;if(n=r,i.substr(r,9).toLowerCase()===Y?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Yn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=sE(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=Hs(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Yi(),F=n,n=zu(o,p,E,T)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,9).toLowerCase()===Y?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Yn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=At();a!==e;)o.push(a),a=At();for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===B?(p=i.substr(r,5),r+=5):(p=e,I===0&&C(ls)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=$i(),T===e&&(T=null),S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===125?(G=X,r++):(G=e,I===0&&C(Gt)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=Yi(),F=n,n=ju(o,T,ne)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Rg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,8).toLowerCase()===q?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(du)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=ji(),a!==e)for(;a!==e;)o.push(a),a=ji();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,I===0&&C(Qr))),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();for(E=Hs(),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Yi(),F=n,n=ao(o,p,E,T)}else r=n,n=e}else r=n,n=e;return n}function yg(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,3).toLowerCase()===te?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=Hs(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Yi(),F=n,n=lo(a,h,x)}else r=n,n=e}else r=n,n=e;return n}function At(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===ie?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(dc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Sg(),o===e&&(o=Lg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=uo(o)}else r=n,n=e}else r=n,n=e;return n}function Sg(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=cr(),u!==e?(F=n,n=fo(u)):(r=n,n=e),n}function Lg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ae?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Zi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=cr(),o!==e?(F=n,n=qu(o)):(r=n,n=e)}else r=n,n=e;return n}function Hs(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===B?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ls)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();return o=ot(),o!==e?(F=n,n=Xc(o)):(r=n,n=e),n}function Yi(){var n,t,u,o,a;return n=r,t=wg(),t===e&&(t=null),u=Og(),u===e&&(u=null),o=Ug(),o===e&&(o=null),a=Fg(),a===e&&(a=null),F=n,n=Ku(t,u,o,a),n}function wg(){var n,t,u,o,a,p,h;if(n=r,i.substr(r,5).toLowerCase()===fe?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Pi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===ye?(o=i.substr(r,2),r+=2):(o=e,I===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Mp(),h!==e)for(;h!==e;)p.push(h),h=Mp();else p=e;p!==e?(F=n,n=Es(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Mp(){var n,t,u,o,a,p,h,E,x,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=yl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=On(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=eh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=co(u)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=r,i.substr(r,2).toLowerCase()===$?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Ls)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=nr(),T!==e?(E=[E,x,T],h=E):(r=h,h=e)}else r=h,h=e;for(h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();F=n,n=Yc(a,h)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=nr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=ef(u)}else r=n,n=e}}}return n}function Og(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===Re?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Ma)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=Wp(),a!==e)for(;a!==e;)o.push(a),a=Wp();else o=e;o!==e?(F=n,n=Jc(o)):(r=n,n=e)}else r=n,n=e;return n}function Wp(){var n,t,u,o;if(n=r,t=El(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();F=n,n=$c(t)}else r=n,n=e;return n}function Ug(){var n,t,u,o,a,p,h,E;if(n=r,i.substr(r,5).toLowerCase()===Le?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Eu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,2).toLowerCase()===ye?(o=i.substr(r,2),r+=2):(o=e,I===0&&C(gn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Zp(),h!==e)for(;h!==e;)p.push(h),h=Zp();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();F=n,n=zc(p)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zp(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===Ve?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Ni)),t===e&&(i.substr(r,4).toLowerCase()===Je?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(ws))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Rl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=Bt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=El(),t===e&&(t=nr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();F=n,n=rf(t)}else r=n,n=e;return n}function Fg(){var n,t,u,o;return n=r,t=r,u=Pp(),u!==e?(o=kp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=kp(),u!==e?(o=Pp(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(F=n,t=jc(t)),n=t,n}function Pp(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===me?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Wa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=$s(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=qc(o)}else r=n,n=e}else r=n,n=e;return n}function kp(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===xr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=$s(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=n,n=Kc(o)}else r=n,n=e}else r=n,n=e;return n}function Qp(){var n,t,u,o;return n=r,t=r,i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Yo)),u!==e?(o=qp(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),F=n,t=tf(t),n=t,n}function _p(){var n,t,u,o,a,p,h,E,x,T;for(n=r,t=Gp(),u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(a=Gg(),a!==e){for(p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=_p(),h=[h,E,x,T],p=h}else r=p,p=e;p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;for(u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return F=n,n=sf(t,u),n}function Gg(){var n;return n=Bg(),n===e&&(n=Vg(),n===e&&(n=Dg(),n===e&&(n=Wg(),n===e&&(n=Zg(),n===e&&(n=Pg(),n===e&&(n=Mg(),n===e&&(n=kg(),n===e&&(n=Qg(),n===e&&(n=_g(),n===e&&(n=Hg())))))))))),n}function Bg(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,i.substr(r,4).toLowerCase()===$r?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(mu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=cr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=r,i.substr(r,4).toLowerCase()===St?(x=i.substr(r,4),r+=4):(x=e,I===0&&C(En)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=dl(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),F=n,n=nf(o,p,E)}else r=n,n=e}else r=n,n=e;return n}function Vg(){var n,t,u,o,a,p;if(n=r,i.substr(r,5).toLowerCase()===Lt?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bi)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=Yp(),p!==e?(F=n,n=ep(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Dg(){var n,t,u,o,a,p;if(n=r,i.substr(r,4).toLowerCase()===pr?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(vu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=Yp(),p!==e?(F=n,n=rp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Mg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===wt?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(xu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();p=dl(),p!==e?(F=n,n=tp(o,p)):(r=n,n=e)}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,3).toLowerCase()===or?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Ec)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(F=n,n=ms(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Zg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===je?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(mc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(F=n,n=po(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Pg(){var n,t,u,o,a,p,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===zr?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Cu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=Ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===ut?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(Jn)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Ji(),T!==e?(F=n,n=fa(o,p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function kg(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===Ir?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Jo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Pr?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Os)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Jp(),p!==e?(F=n,n=ho(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Qg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.substr(r,4).toLowerCase()===Pr?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Os)),o!==e?(a=Jp(),a!==e?(F=n,n=Hi(a)):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;return n}function _g(){var n,t,u,o,a,p;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===B?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(ls)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=gl(),p!==e?(F=n,n=ip(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Hg(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,t=r,i.substr(r,4).toLowerCase()===Kt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Iu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=cr(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();u=[u,o,a,p],t=u}else r=t,t=e}else r=t,t=e;if(t===e&&(t=null),u=r,o=Xg(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Hp(),p===e&&(p=null),o=[o,a,p],u=o}else r=u,u=e;if(u===e&&(u=Hp()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=Xp();p!==e;)a.push(p),p=Xp();for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(ls)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=ot(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();F=n,n=sp(t,u,a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Xg(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(mn)),t!==e?(u=gl(),u!==e?(F=n,n=Un(u)):(r=n,n=e)):(r=n,n=e),n}function Hp(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Ir?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Jo)),t!==e?(u=gl(),u!==e?(F=n,n=of(u)):(r=n,n=e)):(r=n,n=e),n}function Xp(){var n,t,u,o,a,p,h,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Fe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=cr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ae?(p=i.substr(r,5),r+=5):(p=e,I===0&&C(Zi)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=cr(),E!==e?(p=[p,h,E],a=p):(r=a,a=e)}else r=a,a=e;a!==e?(F=n,n=af(a)):(r=n,n=e)}else r=n,n=e;return n}function Ji(){var n,t,u,o;if(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(vn)),t!==e&&(F=n,t=lf()),n=t,n===e){for(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(us)),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();o=cr(),o!==e?(F=n,n=ca(o)):(r=n,n=e)}return n}function dl(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===Er?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(us)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=cr(),o!==e?(F=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;return n}function Yp(){var n,t;return n=r,t=dl(),t!==e&&(F=n,t=rl(t)),n=t,n===e&&(n=r,i.substr(r,7).toLowerCase()===pe?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(vn)),t!==e&&(F=n,t=tl()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ae?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Zi)),t!==e&&(F=n,t=il()),n=t,n===e&&(n=r,i.substr(r,3).toLowerCase()===fr?(t=i.substr(r,3),r+=3):(t=e,I===0&&C($o)),t!==e&&(F=n,t=np()),n=t))),n}function gl(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=$p(),p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=go(a)}else r=n,n=e}else r=n,n=e;return n}function Jp(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=$p(),p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=uf(a)}else r=n,n=e}else r=n,n=e;return n}function $p(){var n,t,u,o,a,p,h;for(n=r,t=$i(),t===e&&(t=null),u=[],o=r,a=zp(),a!==e?(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p===e&&(p=null),h=$i(),h===e&&(h=null),a=[a,p,h],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=zp(),a!==e?(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p===e&&(p=null),h=$i(),h===e&&(h=null),a=[a,p,h],o=a):(r=o,o=e);return F=n,n=op(t,u),n}function zp(){var n,t,u,o,a,p,h,E,x,T,S,G,_;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ji(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===123?(h=V,r++):(h=e,I===0&&C(Ft)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(x=$i(),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===125?(S=X,r++):(S=e,I===0&&C(Gt)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=n,n=ff(a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function $i(){var n,t,u,o,a,p,h;if(n=r,t=ih(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=$i(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),F=n,n=pa(t,u)}else r=n,n=e;return n}function ot(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,I===0&&C(Ft)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=bg(),o===e&&(o=Yg()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=X,r++):(p=e,I===0&&C(Gt)),p!==e?(F=n,n=ap(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Yg(){var n,t,u,o,a,p,h,E,x,T;for(n=r,t=Ao(),t===e&&(t=null),u=[],o=c();o!==e;)u.push(o),o=c();if(o=[],a=r,p=jp(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(i.charCodeAt(r)===46?(E=we,r++):(E=e,I===0&&C($e)),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,h,E,x,T],a=p}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,p=jp(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(i.charCodeAt(r)===46?(E=we,r++):(E=e,I===0&&C($e)),E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();T=Ao(),T===e&&(T=null),p=[p,h,E,x,T],a=p}else r=a,a=e;return F=n,n=lp(t,o),n}function Ao(){var n,t,u,o,a,p,h;if(n=r,t=oE(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Ao(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),F=n,n=Eo(t,u)}else r=n,n=e;return n}function jp(){var n;return n=tE(),n===e&&(n=Jg(),n===e&&(n=rE(),n===e&&(n=$g(),n===e&&(n=zg(),n===e&&(n=iE(),n===e&&(n=jg(),n===e&&(n=qg()))))))),n}function Jg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,8).toLowerCase()===Ur?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Au)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(F=n,n=cf(a)):(r=n,n=e)}else r=n,n=e;return n}function $g(){var n,t,u,o,a,p,h;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ji(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ot(),h!==e?(F=n,n=pf(a,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zg(){var n,t,u,o,a,p,h,E;if(n=r,i.substr(r,7).toLowerCase()===ei?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Pa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,6).toLowerCase()===ze?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Et)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?(F=n,n=up(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function jg(){var n,t,u,o,a,p,h,E,x,T,S,G,_;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,4).toLowerCase()===Ae?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(ka)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===$?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ls)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=nr(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=n,n=sl(h,S)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function qg(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===Cr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Yo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=qp(),a!==e?(F=n,n=hf(a)):(r=n,n=e)}else r=n,n=e;return n}function qp(){var n;return n=Kg(),n===e&&(n=eE()),n}function Kg(){var n,t,u,o,a,p,h,E;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=nr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===123?(a=V,r++):(a=e,I===0&&C(Ft)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=No();E!==e;)h.push(E),E=No();i.charCodeAt(r)===125?(E=X,r++):(E=e,I===0&&C(Gt)),E!==e?(F=n,n=fp(u,h)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function eE(){var n,t,u,o,a,p,h,E,x,T,S;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=nr();p!==e;)a.push(p),p=nr();if(i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=[],S=Kp();S!==e;)T.push(S),S=Kp();i.charCodeAt(r)===125?(S=X,r++):(S=e,I===0&&C(Gt)),S!==e?(F=n,n=df(a,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Kp(){var n,t,u,o,a,p,h;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=[],a=No();a!==e;)o.push(a),a=No();if(i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=n,n=gf(o)}else r=n,n=e}else r=n,n=e;return n}function No(){var n,t,u,o;if(n=r,t=cr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(i.substr(r,5)===Ot?(t=Ot,r+=5):(t=e,I===0&&C(Nu)))))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();F=n,n=cp(t)}else r=n,n=e;return n}function rE(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ft?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ot(),o!==e?(F=n,n=nl(o)):(r=n,n=e)}else r=n,n=e;return n}function tE(){var n,t,u,o,a,p,h,E;if(n=r,t=ot(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Nt?(p=i.substr(r,5),r+=5):(p=e,I===0&&C($n)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,5).toLowerCase()===Nt?(p=i.substr(r,5),r+=5):(p=e,I===0&&C($n)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=mo(t,u)}else r=n,n=e;return n}function iE(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.substr(r,6).toLowerCase()===rs?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=El(),a!==e?(F=n,n=vo(a)):(r=n,n=e)}else r=n,n=e;return n}function El(){var n;return n=Rl(),n===e&&(n=yl(),n===e&&(n=eh())),n}function eh(){var n,t,u,o;if(n=r,t=cr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=rh(),o!==e?(F=n,n=pp(t,o)):(r=n,n=e)}else r=n,n=e;return n}function rh(){var n,t,u,o,a,p,h,E,x,T,S,G;if(n=r,t=jt(),t!==e&&(F=n,t=Ef()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(i.substr(r,8).toLowerCase()===H?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(gt)),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=[],x=r,i.charCodeAt(r)===44?(T=Me,r++):(T=e,I===0&&C(ke)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=se(),G!==e?x=G:(r=x,x=e)}else r=x,x=e;for(;x!==e;)if(E.push(x),x=r,i.charCodeAt(r)===44?(T=Me,r++):(T=e,I===0&&C(ke)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=se(),G!==e?x=G:(r=x,x=e)}else r=x,x=e;i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=n,n=hp(o,p,E)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function zi(){var n,t,u,o,a,p,h,E,x,T,S,G;if(n=r,t=jt(),t!==e&&(F=n,t=dp()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=r,i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();h=T}else r=h,h=e}else r=h,h=e;for(;h!==e;)if(p.push(h),h=r,i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();h=T}else r=h,h=e}else r=h,h=e;i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e?(F=n,n=gp(o,p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function sE(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===123?(t=V,r++):(t=e,I===0&&C(Ft)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();for(o=th(),o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===125?(p=X,r++):(p=e,I===0&&C(Gt)),p!==e?(F=n,n=Ep(o)):(r=n,n=e)}else r=n,n=e;return n}function th(){var n,t,u,o,a,p,h;if(n=r,t=ih(),t!==e){for(u=r,o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=th(),h===e&&(h=null),o=[o,a,p,h],u=o}else r=u,u=e;u===e&&(u=null),F=n,n=mf(t,u)}else r=n,n=e;return n}function ih(){var n,t,u,o,a;if(n=r,t=Ro(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ml(),o!==e?(F=n,n=mp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=nh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=nE(),F=n,n=vp(u,a)}else r=n,n=e}return n}function nE(){var n;return n=ml(),n===e&&(n=null),n}function ml(){var n,t,u,o,a,p,h,E,x,T,S,G,_;if(n=r,t=vl(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=xl(),o!==e){for(a=[],p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=vl(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=xl(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=vl(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=xl(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e}F=n,n=vf(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function vl(){var n,t;return n=ji(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Us)),t!==e&&(F=n,t=ol()),n=t),n}function xl(){var n,t,u,o,a,p,h,E;if(n=r,t=Xs(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Xs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Xs(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=xf(t,u)}else r=n,n=e;return n}function oE(){var n,t,u,o,a;if(n=r,t=Ro(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=Cl(),o!==e?(F=n,n=xp(t,o)):(r=n,n=e)}else r=n,n=e;if(n===e){for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=oh(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=aE(),F=n,n=Cf(u,a)}else r=n,n=e}return n}function aE(){var n;return n=Cl(),n===e&&(n=null),n}function Cl(){var n,t,u,o,a,p,h,E,x,T,S,G,_;if(n=r,t=bo(),t===e&&(t=nr()),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=Il(),o!==e){for(a=[],p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=bo(),S===e&&(S=nr()),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=Il(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e;for(;p!==e;){for(a.push(p),p=r,h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,I===0&&C(Jt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=r,S=bo(),S===e&&(S=nr()),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=Il(),_!==e?(S=[S,G,_],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],p=h}else r=p,p=e}F=n,n=Gn(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function Il(){var n,t,u,o,a,p,h,E;if(n=r,t=Ys(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ys(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===44?(p=Me,r++):(p=e,I===0&&C(ke)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ys(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=If(t,u)}else r=n,n=e;return n}function bo(){var n,t,u,o,a,p,h,E;if(n=r,t=Al(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Oe,r++):(p=e,I===0&&C($t)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Al(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===124?(p=Oe,r++):(p=e,I===0&&C($t)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Al(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}F=n,n=ha(t,u)}else r=n,n=e;return n}function Al(){var n,t,u,o,a,p,h,E;if(n=r,t=Nl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Nl(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Nl(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}F=n,n=Cp(t,u)}else r=n,n=e;return n}function sh(){var n,t,u;return n=r,t=uE(),t!==e?(u=lE(),u===e&&(u=null),F=n,n=Ip(t,u)):(r=n,n=e),n}function Nl(){var n,t,u;return n=sh(),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,I===0&&C(fs)),t!==e?(u=sh(),u!==e?(F=n,n=Ap(u)):(r=n,n=e)):(r=n,n=e)),n}function lE(){var n;return i.charCodeAt(r)===63?(n=pt,r++):(n=e,I===0&&C(Fs)),n===e&&(i.charCodeAt(r)===42?(n=z,r++):(n=e,I===0&&C(Qr)),n===e&&(i.charCodeAt(r)===43?(n=Nr,r++):(n=e,I===0&&C(mt)))),n}function uE(){var n,t,u,o;return n=cr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Us)),t!==e&&(F=n,t=yr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,I===0&&C(xn)),t!==e?(u=fE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e?(u=bo(),u!==e?(i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(F=n,n=Np(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function fE(){var n,t,u,o,a,p,h,E;if(n=To(),n===e)if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){if(u=r,o=To(),o!==e){for(a=[],p=r,i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e?(E=To(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e);p!==e;)a.push(p),p=r,i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e?(E=To(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e);o=[o,a],u=o}else r=u,u=e;u===e&&(u=null),i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function To(){var n,t,u;return n=cr(),n===e&&(i.charCodeAt(r)===97?(n=ct,r++):(n=e,I===0&&C(Us)),n===e&&(n=r,i.charCodeAt(r)===94?(t=at,r++):(t=e,I===0&&C(fs)),t!==e?(u=cr(),u===e&&(i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Us))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function nh(){var n,t;return n=r,t=hE(),t!==e&&(F=n,t=al(t)),n=t,n===e&&(n=cE()),n}function cE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=Fi,r++):(u=e,I===0&&C(Gs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=ml(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,I===0&&C(li)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=xo(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function oh(){var n,t;return n=r,t=dE(),t!==e&&(F=n,t=fi(t)),n=t,n===e&&(n=pE()),n}function pE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===91?(u=Fi,r++):(u=e,I===0&&C(Gs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Cl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===93?(h=ti,r++):(h=e,I===0&&C(li)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=da(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function hE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Xs(),p!==e)for(;p!==e;)a.push(p),p=Xs();else a=e;if(a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=ll(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function dE(){var n,t,u,o,a,p,h,E,x;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Ys(),p!==e)for(;p!==e;)a.push(p),p=Ys();else a=e;if(a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=n,n=Af(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function Xs(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=Ro(),u===e&&(u=nh()),u!==e?(F=n,n=Nf(u)):(r=n,n=e),n}function Ys(){var n,t,u;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();return u=Ro(),u===e&&(u=oh()),u!==e?(F=n,n=bf(u)):(r=n,n=e),n}function Ro(){var n;return n=nr(),n===e&&(n=gE()),n}function ji(){var n;return n=nr(),n===e&&(n=cr()),n}function nr(){var n,t,u,o,a;for(n=r,t=[],u=c();u!==e;)t.push(u),u=c();if(u=SE(),u===e&&(u=LE()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=n,n=ul(u)}else r=n,n=e;return n}function gE(){var n;return n=cr(),n===e&&(n=Sl(),n===e&&(n=Ll(),n===e&&(n=Ul(),n===e&&(n=TE(),n===e&&(n=jt()))))),n}function se(){var n,t,u,o,a,p,h,E;if(n=r,t=bl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===bt?(p=bt,r+=2):(p=e,I===0&&C(ki)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=bl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===bt?(p=bt,r+=2):(p=e,I===0&&C(ki)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=bl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=Tf(t,u)}else r=n,n=e;return n}function bl(){var n,t,u,o,a,p,h,E;if(n=r,t=Tl(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ii?(p=ii,r+=2):(p=e,I===0&&C(vt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e;for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ii?(p=ii,r+=2):(p=e,I===0&&C(vt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Tl(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}F=n,n=bp(t,u)}else r=n,n=e;return n}function Tl(){var n,t,u,o,a,p,h,E,x,T;if(n=r,t=Gr(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Tr,r++):(p=e,I===0&&C(kt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ut?(p=Ut,r+=2):(p=e,I===0&&C(Ti)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Ge,r++):(p=e,I===0&&C(cs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=ni,r++):(p=e,I===0&&C(zn)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===kr?(p=kr,r+=2):(p=e,I===0&&C(zo)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ar?(p=ar,r+=2):(p=e,I===0&&C(Bs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===dr?(p=i.substr(r,2),r+=2):(p=e,I===0&&C(ps)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=zi(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===ts?(p=i.substr(r,3),r+=3):(p=e,I===0&&C(Vs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(ps)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=zi(),T!==e?(a=[a,p,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===61?(p=Tr,r++):(p=e,I===0&&C(kt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===Ut?(p=Ut,r+=2):(p=e,I===0&&C(Ti)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===60?(p=Ge,r++):(p=e,I===0&&C(cs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===62?(p=ni,r++):(p=e,I===0&&C(zn)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===kr?(p=kr,r+=2):(p=e,I===0&&C(zo)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2)===ar?(p=ar,r+=2):(p=e,I===0&&C(Bs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Gr(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,2).toLowerCase()===dr?(p=i.substr(r,2),r+=2):(p=e,I===0&&C(ps)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=zi(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.substr(r,3).toLowerCase()===ts?(p=i.substr(r,3),r+=3):(p=e,I===0&&C(Vs)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,I===0&&C(ps)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=zi(),T!==e?(a=[a,p,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}F=n,n=fl(t,u)}else r=n,n=e;return n}function Gr(){var n,t,u,o,a,p,h,E,x,T,S;if(n=r,t=Js(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=Nr,r++):(p=e,I===0&&C(mt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Ol()),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,p],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===43?(p=Nr,r++):(p=e,I===0&&C(mt)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Js(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e)if(o=r,a=wl(),a===e&&(a=Ol()),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,I===0&&C(Mr)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Br(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,p],o=a}else r=o,o=e}}F=n,n=Rf(t,u)}else r=n,n=e;return n}function Js(){var n,t,u,o,a,p,h,E;if(n=r,t=Br(),t!==e){for(u=[],o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(Qr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===42?(p=z,r++):(p=e,I===0&&C(Qr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===47?(p=rr,r++):(p=e,I===0&&C(Mr)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Br(),E!==e?(a=[a,p,h,E],o=a):(r=o,o=e)}else r=o,o=e}}F=n,n=gr(t,u)}else r=n,n=e;return n}function Br(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,I===0&&C(xn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(F=n,n=yf(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(F=n,n=Tp(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=yo(),o!==e?(F=n,n=Bn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=yo())}}return n}function yo(){var n,t;return n=Rl(),n===e&&(n=yl(),n===e&&(n=AE(),n===e&&(n=r,t=Sl(),t!==e&&(F=n,t=Rp(t)),n=t,n===e&&(n=r,t=Ll(),t!==e&&(F=n,t=ga(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(F=n,t=yp(t)),n=t,n===e&&(n=r,t=nr(),t!==e&&(F=n,t=Zr(t)),n=t)))))),n}function Rl(){var n,t,u,o,a,p;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=se(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e?(F=n,n=Sp(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function yl(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne;if(n=IE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===is?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(xc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Lp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ht?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Qa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=wp(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,11).toLowerCase()===Dr?(t=i.substr(r,11),r+=11):(t=e,I===0&&C(Tu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Ea(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===mi?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(_a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=s(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===bs?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ha)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=nr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=l(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===rn?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Cn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=g(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===tn?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(jo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=d(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Bo?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ru)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(o=r,i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(a=[a,p,h,E,x],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e;o===e&&(o=jt()),o!==e?(F=n,n=v(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===sn?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(qo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=A()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ya?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Cc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=b(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Zt?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Ic)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=y(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Gi?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Ac)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=w(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===nn?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Xa)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=U(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Vo?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Ya)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(F=n,n=k(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=mE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===kn?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(In)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=J(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=vE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===on?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(jn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=re(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===oi?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Nc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=ee(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,14).toLowerCase()===an?(t=i.substr(r,14),r+=14):(t=e,I===0&&C(Ko)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=oe(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Bi?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(yu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Do?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(qn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=de(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Mo?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Su)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=ve(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ln?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Ds)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Ce(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===We?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Kn)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=xe(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===K?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Ms)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=be(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ee?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(eo)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Ze(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Se?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(An)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=De(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===mr?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Lu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Ke(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===et?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(wu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=vr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===qe?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Ou)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=st(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===Ie?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Lr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===dt?(t=i.substr(r,2),r+=2):(t=e,I===0&&C(Ws)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=_t(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===vi?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Zs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=Vt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===Pt?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Tc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=_r()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===_e?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Rc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=jt(),o!==e?(F=n,n=Dt()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===xi?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(yc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=lt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===ss?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Sc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=jr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Sa?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Lc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Hr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===he?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(wc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Fr(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Xe?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(Qt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Mt(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===La?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(tt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=zi(),o!==e?(F=n,n=Vn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===wa?(t=i.substr(r,2),r+=2):(t=e,I===0&&C(Tt)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===44?(G=Me,r++):(G=e,I===0&&C(ke)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(ne=se(),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();i.charCodeAt(r)===41?(Ne=M,r++):(Ne=e,I===0&&C(ue)),Ne!==e?(F=n,n=vs(p,T,ne)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===Wo?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(it)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Ct(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Zo?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ro)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=Li(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,8).toLowerCase()===eu?(t=i.substr(r,8),r+=8):(t=e,I===0&&C(Oc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e?(F=n,n=nt(p,T)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===Ye?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(ea)),t===e&&(i.substr(r,5).toLowerCase()===jf?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Uc))),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=cl(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===ru?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Fc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Xi(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Po?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Gc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=ks(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,9).toLowerCase()===Ci?(t=i.substr(r,9),r+=9):(t=e,I===0&&C(Ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=n,n=Qs(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=EE(),n===e&&(n=xE(),n===e&&(n=CE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function EE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge;if(n=r,i.substr(r,5).toLowerCase()===tu?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Uu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=r,i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();ge=se(),ge!==e?(_=[_,ne,ge],G=_):(r=G,G=e)}else r=G,G=e;for(G===e&&(G=null),_=[],ne=c();ne!==e;)_.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(F=n,n=Rt(p,T,G)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function mE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge;if(n=r,i.substr(r,6).toLowerCase()===iu?(t=i.substr(r,6),r+=6):(t=e,I===0&&C($a)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=r,i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();ge=se(),ge!==e?(_=[_,ne,ge],G=_):(r=G,G=e)}else r=G,G=e;for(G===e&&(G=null),_=[],ne=c();ne!==e;)_.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(F=n,n=Dn(p,T,G)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function vE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er,Ht;if(n=r,i.substr(r,7).toLowerCase()===Qn?(t=i.substr(r,7),r+=7):(t=e,I===0&&C(Bc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===44?(E=Me,r++):(E=e,I===0&&C(ke)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=se(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===44?(G=Me,r++):(G=e,I===0&&C(ke)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(ne=se(),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(Ne=r,i.charCodeAt(r)===44?(Ue=Me,r++):(Ue=e,I===0&&C(ke)),Ue!==e){for(er=[],Ht=c();Ht!==e;)er.push(Ht),Ht=c();Ht=se(),Ht!==e?(Ue=[Ue,er,Ht],Ne=Ue):(r=Ne,Ne=e)}else r=Ne,Ne=e;for(Ne===e&&(Ne=null),Ue=[],er=c();er!==e;)Ue.push(er),er=c();i.charCodeAt(r)===41?(er=M,r++):(er=e,I===0&&C(ue)),er!==e?(F=n,n=pl(p,T,ne,Ne)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function xE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===_n?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(to)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=ot(),o!==e?(F=n,n=Td(o)):(r=n,n=e)}else r=n,n=e;return n}function CE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3).toLowerCase()===ts?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Vs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===_n?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(to)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ot(),p!==e?(F=n,n=Rd(p)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function IE(){var n,t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue;if(n=r,i.substr(r,5).toLowerCase()===su?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(za)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===42?(E=z,r++):(E=e,I===0&&C(Qr)),E===e&&(E=se()),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=yd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===Oa?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Fu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Sd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===nu?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Gu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Ld(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===ou?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(ja)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=wd(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,3).toLowerCase()===au?(t=i.substr(r,3),r+=3):(t=e,I===0&&C(Bu)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Od(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===lu?(t=i.substr(r,6),r+=6):(t=e,I===0&&C(io)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=n,n=Ud(p,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,12).toLowerCase()===qf?(t=i.substr(r,12),r+=12):(t=e,I===0&&C(Vc)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(i.substr(r,8).toLowerCase()===H?(p=i.substr(r,8),r+=8):(p=e,I===0&&C(gt)),p===e&&(p=null),h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=r,T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===59?(S=ur,r++):(S=e,I===0&&C(Jt)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.substr(r,9).toLowerCase()===Kf?(_=i.substr(r,9),r+=9):(_=e,I===0&&C(ra)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(i.charCodeAt(r)===61?(ge=Tr,r++):(ge=e,I===0&&C(kt)),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();Ue=ah(),Ue!==e?(T=[T,S,G,_,ne,ge,Ne,Ue],x=T):(r=x,x=e)}else r=x,x=e}else r=x,x=e}else r=x,x=e;for(x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=n,n=Fd(p,E,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e}}}}}return n}function AE(){var n,t,u,o;if(n=r,t=cr(),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();o=rh(),o===e&&(o=null),F=n,n=Gd(t,o)}else r=n,n=e;return n}function Sl(){var n,t,u,o,a;return n=r,t=ah(),t!==e?(u=wE(),u===e&&(u=r,i.substr(r,2)===ko?(o=ko,r+=2):(o=e,I===0&&C(Qi)),o!==e?(a=cr(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e)),u===e&&(u=null),F=n,n=Bd(t,u)):(r=n,n=e),n}function Ll(){var n;return n=NE(),n===e&&(n=wl(),n===e&&(n=Ol())),n}function NE(){var n;return n=Vl(),n===e&&(n=Bl(),n===e&&(n=$s())),n}function wl(){var n;return n=FE(),n===e&&(n=UE(),n===e&&(n=OE())),n}function Ol(){var n;return n=VE(),n===e&&(n=BE(),n===e&&(n=GE())),n}function Ul(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Vi?(t=i.substr(r,4),r+=4):(t=e,I===0&&C(Vu)),t!==e&&(F=n,t=Vd()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ec?(t=i.substr(r,5),r+=5):(t=e,I===0&&C(Dc)),t!==e&&(F=n,t=Dd()),n=t),n}function ah(){var n;return n=WE(),n===e&&(n=ZE(),n===e&&(n=DE(),n===e&&(n=ME()))),n}function cr(){var n,t;return n=r,t=Fl(),t!==e&&(F=n,t=Md(t)),n=t,n===e&&(n=r,t=bE(),t!==e&&(F=n,t=Wd(t)),n=t),n}function bE(){var n,t;return n=r,t=RE(),t!==e&&(F=n,t=Zd(t)),n=t,n===e&&(n=r,t=Gl(),t!==e&&(F=n,t=Pd(t)),n=t),n}function TE(){var n,t;return n=r,t=yE(),t!==e&&(F=n,t=kd(t)),n=t,n===e&&(n=r,t=kE(),t!==e&&(F=n,t=Qd()),n=t),n}function Fl(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Ge,r++):(t=e,I===0&&C(cs)),t!==e){for(u=[],_o.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ta));o!==e;)u.push(o),_o.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ta));i.charCodeAt(r)===62?(o=ni,r++):(o=e,I===0&&C(zn)),o!==e?(F=n,n=_d(u)):(r=n,n=e)}else r=n,n=e;return n}function Gl(){var n,t,u;return n=r,t=QE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=Yt,r++):(u=e,I===0&&C(Rr)),u!==e?(F=n,n=Hd(t)):(r=n,n=e),n}function RE(){var n,t,u;return n=r,t=Gl(),t!==e?(u=_E(),u!==e?(F=n,n=Xd(t,u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u,o,a,p,h;if(n=r,i.substr(r,2)===un?(t=un,r+=2):(t=e,I===0&&C(lr)),t!==e)if(u=qi(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe))),u!==e){for(o=[],a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));F=n,n=Yd()}else r=n,n=e;else r=n,n=e;return n}function SE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=pt,r++):(t=e,I===0&&C(Fs)),t!==e?(u=fh(),u!==e?(F=n,n=Jd(u)):(r=n,n=e)):(r=n,n=e),n}function LE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ts,r++):(t=e,I===0&&C(Ri)),t!==e?(u=fh(),u!==e?(F=n,n=$d(u)):(r=n,n=e)):(r=n,n=e),n}function wE(){var n,t,u,o,a,p,h,E;if(n=r,i.charCodeAt(r)===64?(t=Ua,r++):(t=e,I===0&&C(yi)),t!==e){if(u=[],Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ia)),o!==e)for(;o!==e;)u.push(o),Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(ia));else u=e;if(u!==e){if(o=[],a=r,i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){if(h=[],os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i)),E!==e)for(;E!==e;)h.push(E),os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i));else h=e;h!==e?(p=[p,h],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(p=tr,r++):(p=e,I===0&&C(Wr)),p!==e){if(h=[],os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i)),E!==e)for(;E!==e;)h.push(E),os.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,I===0&&C(_i));else h=e;h!==e?(p=[p,h],a=p):(r=a,a=e)}else r=a,a=e;F=n,n=zd(u,o)}else r=n,n=e}else r=n,n=e;return n}function $s(){var n,t,u;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;return t!==e&&(F=n,t=jd()),n=t,n}function Bl(){var n,t,u,o,a;for(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));if(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(F=n,n=qd()):(r=n,n=e)}else r=n,n=e;return n}function Vl(){var n,t,u,o,a;if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u!==e){for(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));a=Dl(),a!==e?(F=n,n=Kd()):(r=n,n=e)}else r=n,n=e;else r=n,n=e;if(n===e){if(n=r,i.charCodeAt(r)===46?(t=we,r++):(t=e,I===0&&C($e)),t!==e){if(u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;u!==e?(o=Dl(),o!==e?(F=n,n=eg()):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,t=[],He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u!==e)for(;u!==e;)t.push(u),He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe));else t=e;t!==e?(u=Dl(),u!==e?(F=n,n=rg()):(r=n,n=e)):(r=n,n=e)}}return n}function OE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=$s(),u!==e?(F=n,n=tg(u)):(r=n,n=e)):(r=n,n=e),n}function UE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=Bl(),u!==e?(F=n,n=ig(u)):(r=n,n=e)):(r=n,n=e),n}function FE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)),t!==e?(u=Vl(),u!==e?(F=n,n=sg(u)):(r=n,n=e)):(r=n,n=e),n}function GE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e?(u=$s(),u!==e?(F=n,n=ng(u)):(r=n,n=e)):(r=n,n=e),n}function BE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e?(u=Bl(),u!==e?(F=n,n=og(u)):(r=n,n=e)):(r=n,n=e),n}function VE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t!==e?(u=Vl(),u!==e?(F=n,n=ag(u)):(r=n,n=e)):(r=n,n=e),n}function Dl(){var n,t,u,o,a;if(n=r,ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Du)),t!==e){if(rc.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Mc)),u===e&&(u=null),o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function DE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Di,r++):(t=e,I===0&&C(ui)),t!==e){for(u=[],Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Ps)),o===e&&(o=zt());o!==e;)u.push(o),Ba.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Ps)),o===e&&(o=zt());i.charCodeAt(r)===39?(o=Di,r++):(o=e,I===0&&C(ui)),o!==e?(F=n,n=lg(u)):(r=n,n=e)}else r=n,n=e;return n}function ME(){var n,t,u,o;if(n=r,i.charCodeAt(r)===34?(t=Rs,r++):(t=e,I===0&&C(hs)),t!==e){for(u=[],Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(so)),o===e&&(o=zt());o!==e;)u.push(o),Hn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(so)),o===e&&(o=zt());i.charCodeAt(r)===34?(o=Rs,r++):(o=e,I===0&&C(hs)),o!==e?(F=n,n=ug(u)):(r=n,n=e)}else r=n,n=e;return n}function WE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ys?(t=ys,r+=3):(t=e,I===0&&C(Si)),t!==e){for(u=[],o=r,i.substr(r,2)===Mi?(a=Mi,r+=2):(a=e,I===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,I===0&&C(ui))),a===e&&(a=null),Ho.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(na)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Mi?(a=Mi,r+=2):(a=e,I===0&&C(sa)),a===e&&(i.charCodeAt(r)===39?(a=Di,r++):(a=e,I===0&&C(ui))),a===e&&(a=null),Ho.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(na)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ys?(o=ys,r+=3):(o=e,I===0&&C(Si)),o!==e?(F=n,n=fg(u)):(r=n,n=e)}else r=n,n=e;return n}function ZE(){var n,t,u,o,a,p;if(n=r,i.substr(r,3)===ns?(t=ns,r+=3):(t=e,I===0&&C(qa)),t!==e){for(u=[],o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,I===0&&C(Nn)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs))),a===e&&(a=null),Ii.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(no)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Ss?(a=Ss,r+=2):(a=e,I===0&&C(Nn)),a===e&&(i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs))),a===e&&(a=null),Ii.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(no)),p===e&&(p=zt()),p!==e?(a=[a,p],o=a):(r=o,o=e);i.substr(r,3)===ns?(o=ns,r+=3):(o=e,I===0&&C(qa)),o!==e?(F=n,n=cg(u)):(r=n,n=e)}else r=n,n=e;return n}function zt(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Qo,r++):(t=e,I===0&&C(oa)),t!==e?(Va.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Wc)),u!==e?(F=n,n=pg()):(r=n,n=e)):(r=n,n=e),n}function jt(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=W,r++):(t=e,I===0&&C(le)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function c(){var n;return n=PE(),n===e&&(n=Ml(),n===e&&(n=Wl())),n}function Ml(){var n;return Wi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Mu)),n}function Wl(){var n;return Xo.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Zc)),n}function So(){var n;return Da.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pc)),n}function lh(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=fn,r++):(t=e,I===0&&C(ds)),t!==e){for(u=[],o=So();o!==e;)u.push(o),o=So();o=Wl(),o!==e?(F=n,n=hg()):(r=n,n=e)}else r=n,n=e;return n}function PE(){var n,t,u,o,a,p;for(n=r,t=Wl(),t===e&&(t=null),u=[],o=Ml();o!==e;)u.push(o),o=Ml();if(i.charCodeAt(r)===35?(o=fn,r++):(o=e,I===0&&C(ds)),o!==e){for(a=[],p=So();p!==e;)a.push(p),p=So();F=n,n=dg()}else r=n,n=e;return n}function kE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===91?(t=Fi,r++):(t=e,I===0&&C(Gs)),t!==e){for(u=[],o=c();o!==e;)u.push(o),o=c();i.charCodeAt(r)===93?(o=ti,r++):(o=e,I===0&&C(li)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function uh(){var n;return hn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Wu)),n===e&&(tc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(kc)),n===e&&(ic.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Qc)),n===e&&(sc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Zu)),n===e&&(nc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(bn)),n===e&&(fu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Ka)),n===e&&(cu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(aa)),n===e&&(oc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pu)),n===e&&(ac.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(el)),n===e&&(lc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(ku)),n===e&&(uc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(_c)),n===e&&(pu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Qu)),n===e&&(fc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(xt)))))))))))))),n}function qi(){var n;return n=uh(),n===e&&(i.charCodeAt(r)===95?(n=cn,r++):(n=e,I===0&&C(Tn))),n}function fh(){var n,t,u,o;if(n=r,t=qi(),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe))),t!==e){for(u=[],o=qi(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o===e&&(dn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Rn)),o===e&&(as.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Sn))))));o!==e;)u.push(o),o=qi(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o===e&&(dn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Rn)),o===e&&(as.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(yn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Sn))))));F=n,n=gg()}else r=n,n=e;return n}function Yr(){var n;return n=qi(),n===e&&(i.charCodeAt(r)===45?(n=tr,r++):(n=e,I===0&&C(Wr)),n===e&&(He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pe)),n===e&&(dn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Rn)),n===e&&(as.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(yn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Sn))))))),n}function QE(){var n,t,u,o,a,p;if(n=r,t=uh(),t!==e){for(u=[],o=Yr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Yr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));F=n,n=Eg()}else r=n,n=e;return n}function _E(){var n,t,u,o,a,p;if(n=r,t=qi(),t===e&&(i.charCodeAt(r)===58?(t=Yt,r++):(t=e,I===0&&C(Rr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(t=zs()))),t!==e){for(u=[],o=Yr(),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p===e&&(i.charCodeAt(r)===58?(p=Yt,r++):(p=e,I===0&&C(Rr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Yr(),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o===e&&(o=zs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=we,r++):(a=e,I===0&&C($e)),a!==e?(p=Yr(),p===e&&(i.charCodeAt(r)===58?(p=Yt,r++):(p=e,I===0&&C(Rr)),p===e&&(p=zs())),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e));F=n,n=mg()}else r=n,n=e;return n}function zs(){var n;return n=HE(),n===e&&(n=XE()),n}function HE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=pn,r++):(t=e,I===0&&C(gs)),t!==e?(u=ch(),u!==e?(o=ch(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function ch(){var n;return He.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(Pe)),n===e&&(cc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(la)),n===e&&(pc.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,I===0&&C(_u)))),n}function XE(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Qo,r++):(t=e,I===0&&C(oa)),t!==e?(i.charCodeAt(r)===95?(u=cn,r++):(u=e,I===0&&C(Tn)),u===e&&(i.charCodeAt(r)===126?(u=Fa,r++):(u=e,I===0&&C(Hu)),u===e&&(i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u===e&&(i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u===e&&(i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u===e&&(i.charCodeAt(r)===36?(u=Ts,r++):(u=e,I===0&&C(Ri)),u===e&&(i.charCodeAt(r)===38?(u=uu,r++):(u=e,I===0&&C(Xu)),u===e&&(i.charCodeAt(r)===39?(u=Di,r++):(u=e,I===0&&C(ui)),u===e&&(i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u===e&&(i.charCodeAt(r)===41?(u=M,r++):(u=e,I===0&&C(ue)),u===e&&(i.charCodeAt(r)===42?(u=z,r++):(u=e,I===0&&C(Qr)),u===e&&(i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u===e&&(i.charCodeAt(r)===44?(u=Me,r++):(u=e,I===0&&C(ke)),u===e&&(i.charCodeAt(r)===59?(u=ur,r++):(u=e,I===0&&C(Jt)),u===e&&(i.charCodeAt(r)===58?(u=Yt,r++):(u=e,I===0&&C(Rr)),u===e&&(i.charCodeAt(r)===61?(u=Tr,r++):(u=e,I===0&&C(kt)),u===e&&(i.charCodeAt(r)===47?(u=rr,r++):(u=e,I===0&&C(Mr)),u===e&&(i.charCodeAt(r)===63?(u=pt,r++):(u=e,I===0&&C(Fs)),u===e&&(i.charCodeAt(r)===35?(u=fn,r++):(u=e,I===0&&C(ds)),u===e&&(i.charCodeAt(r)===64?(u=Ua,r++):(u=e,I===0&&C(yi)),u===e&&(i.charCodeAt(r)===37?(u=pn,r++):(u=e,I===0&&C(gs)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let ph={};if(Io=L(),Io!==e&&r===i.length)return Io;throw Io!==e&&r<i.length&&C(vg()),Up(hl,It<i.length?i.charAt(It):null,It<i.length?_s(It,It+1):_s(It,It))}function F1(i,m){function e(){this.constructor=i}e.prototype=m.prototype,i.prototype=new e}function ql(i,m,e,N){var R=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(R,ql.prototype),R.expected=m,R.found=e,R.location=N,R.name="SyntaxError",R}F1(ql,Error);function Pm(i,m,e){return e=e||" ",i.length>m?i:(m-=i.length,e+=e.repeat(m),i+e.slice(0,m))}ql.prototype.format=function(i){var m="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var R=this.location.start,L=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(R):R,O=this.location.source+":"+L.line+":"+L.column;if(e){var D=this.location.end,Z=Pm("",L.line.toString().length," "),H=e[R.line-1],Q=R.line===D.line?D.column:H.length+1,W=Q-R.column||1;m+=`
|
|
70
|
+
--> `+O+`
|
|
65
71
|
`+Z+` |
|
|
66
|
-
`+
|
|
67
|
-
`+Z+" | "+
|
|
68
|
-
at `+
|
|
69
|
-
`,"\r"],!0,!1),
|
|
70
|
-
`,"\r"],!0,!1),
|
|
71
|
-
`],!1,!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),Rn=Ge([["\u0300","\u036F"]],!1,!1),yn=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},Xu=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},Yu=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},Xp=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Yp=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},yr=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]}},y=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}},Y=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]}},Rt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Dn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},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()}},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 Xr()},_d=function(t){return{type:"Var",varType:"VAR1",varname:t}},Hd=function(t){return{type:"Var",varType:"VAR2",varname:t}},Xd=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},Yd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Xr()}},$d=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Xr()}},Jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},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 Xr()},ug=function(){return Xr()},fg=function(){return ah[Te().start.offset]=Xr(),""},pg=function(){return Xr()},cg=function(){return Xr()},hg=function(){return Xr()},r=0,U=0,xo=[{line:1,column:1}],At=0,pl=[],A=0,Co;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 Xr(){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),yc([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 Rc(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=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<At||(r>At&&(At=r,pl=[]),pl.push(t))}function Eg(t,u){return new $l(t,null,null,u)}function yc(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=Xi(),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=Xi(),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(ys)),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(ys)),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(Xn)),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=Xi(),U=t,t=Xu(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(Xn)),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=X,r++):(Q=e,A===0&&C(Ft)),Q!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=Xi(),U=t,t=Yu(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=Xi(),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=Xi(),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 Xi(){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),U=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(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(ys)),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 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?(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=Xp(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=Ys(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=Yp(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=Ys(),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=Yc(),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=Yi(),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(Yn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Yi(),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=Yi(),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(Yn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Yi(),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=Yi(),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(Yn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Yi(),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(Xo)),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(Xo)),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 Yi(){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(Yo)),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=X,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=X,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=ye,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=ye,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=X,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=ye,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=X,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=Xc(),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($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=Xc(),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($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=ye,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 Xc(){var t;return t=qg(),t===e&&(t=_g(),t===e&&(t=jg(),t===e&&(t=Hg(),t===e&&(t=Xg(),t===e&&(t=Kg(),t===e&&(t=Yg(),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 Xg(){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 Yg(){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(ys)),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=Yc(),c!==e?(U=t,t=uf(c)):(r=t,t=e)}else r=t,t=e;return t}function Yc(){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=X,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=X,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=Rl(),u===e&&(u=yl(),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=X,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=ye,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=yr()),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=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)===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=Xs(),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=Xs(),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=Xs(),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=Xs(),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=Xs(),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 Xs(){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=Ro(),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=Ro(),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=Ro(),a!==e?(U=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=Ro())}}return t}function Ro(){var t,u;return t=bl(),t===e&&(t=Tl(),t===e&&(t=mE(),t===e&&(t=r,u=Rl(),u!==e&&(U=t,u=Ac(u)),t=u,t===e&&(t=r,u=yl(),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=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=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=Y(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()===Re?(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(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=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=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()===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=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()===Xe?(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()===ya?(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(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();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()===Ye?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(qo)),u===e&&(i.substr(r,5).toLowerCase()===Xf?(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=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(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();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=Rt(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(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();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=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=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,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()===Yf?(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 Rl(){var t,u,o,a,c;return t=r,u=th(),u!==e?(o=RE(),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 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=Ys())),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&&(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=Yt,r++):(o=e,A===0&&C(Rr)),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=Yr(),c===e&&(c=r,i.charCodeAt(r)===46?(h=ye,r++):(h=e,A===0&&C($e)),h!==e?(E=Yr(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));c!==e;)a.push(c),c=Yr(),c===e&&(c=r,i.charCodeAt(r)===46?(h=ye,r++):(h=e,A===0&&C($e)),h!==e?(E=Yr(),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 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(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=Xd(o,a)}else r=t,t=e}else r=t,t=e;return t}function Ys(){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=Yd()),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=ye,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=ye,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=ye,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 yE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,A===0&&C(vt)),u!==e?(o=Ys(),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=Ys(),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(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),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(yi)),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)===Rs?(c=Rs,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)===Rs?(c=Rs,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 yo(){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=yo();a!==e;)o.push(a),a=yo();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=yo();h!==e;)c.push(h),h=yo();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(Rn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(yn))))));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(Rn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(yn))))));U=t,t=pg()}else r=t,t=e;return t}function Yr(){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(Rn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(yn))))))),t}function WE(){var t,u,o,a,c,h;if(t=r,u=sh(),u!==e){for(o=[],a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C($e)),c!==e?(h=Yr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C($e)),c!==e?(h=Yr(),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=Yt,r++):(u=e,A===0&&C(Rr)),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=Yr(),a===e&&(i.charCodeAt(r)===58?(a=Yt,r++):(a=e,A===0&&C(Rr)),a===e&&(a=$s())),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C($e)),c!==e?(h=Yr(),h===e&&(i.charCodeAt(r)===58?(h=Yt,r++):(h=e,A===0&&C(Rr)),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=Yr(),a===e&&(i.charCodeAt(r)===58?(a=Yt,r++):(a=e,A===0&&C(Rr)),a===e&&(a=$s())),a===e&&(a=r,i.charCodeAt(r)===46?(c=ye,r++):(c=e,A===0&&C($e)),c!==e?(h=Yr(),h===e&&(i.charCodeAt(r)===58?(h=Yt,r++):(h=e,A===0&&C(Rr)),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=ye,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=Yt,r++):(o=e,A===0&&C(Rr)),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(Ri)),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()),yc(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
|
-
`),
|
|
74
|
-
`)}var
|
|
75
|
-
`)},
|
|
76
|
-
`)},
|
|
72
|
+
`+L.line+" | "+H+`
|
|
73
|
+
`+Z+" | "+Pm("",R.column-1," ")+Pm("",W,"^")}else m+=`
|
|
74
|
+
at `+O}return m};ql.buildMessage=function(i,m){var e={literal:function(H){return'"'+R(H.text)+'"'},class:function(H){var Q=H.parts.map(function(W){return Array.isArray(W)?L(W[0])+"-"+L(W[1]):L(W)});return"["+(H.inverted?"^":"")+Q.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(H){return H.description}};function N(H){return H.charCodeAt(0).toString(16).toUpperCase()}function R(H){return H.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function L(H){return H.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(Q){return"\\x0"+N(Q)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(Q){return"\\x"+N(Q)})}function O(H){return e[H.type](H)}function D(H){var Q=H.map(O),W,$;if(Q.sort(),Q.length>0){for(W=1,$=1;W<Q.length;W++)Q[W-1]!==Q[W]&&(Q[$]=Q[W],$++);Q.length=$}switch(Q.length){case 1:return Q[0];case 2:return Q[0]+" or "+Q[1];default:return Q.slice(0,-1).join(", ")+", or "+Q[Q.length-1]}}function Z(H){return H?'"'+R(H)+'"':"end of input"}return"Expected "+D(i)+" but "+Z(m)+" found."};function km(i,m){m=m!==void 0?m:{};var e={},N=m.grammarSource,R={DOCUMENT:Fp},L=Fp,O="base",D="prefix",Z="select",H="distinct",Q="reduced",W="(",$="as",M=")",z="*",Y="construct",B="where",V="{",X="}",q="describe",te="ask",ie="from",ae="named",fe="group",ye="by",Re="having",Le="order",Ve="asc",Je="desc",me="limit",xr="offset",Cr="values",ur=";",$r="load",ze="silent",St="into",Lt="clear",pr="drop",wt="create",or="add",ut="to",je="move",zr="copy",Ir="insert",Pr="data",hr="delete",Kt="with",Fe="using",pe="default",Er="graph",fr="all",we=".",Ur="optional",ei="service",Ae="bind",Ot="UNDEF",ft="minus",Nt="union",rs="filter",Me=",",ct="a",Oe="|",rr="/",at="^",pt="?",Nr="+",ri="!",Fi="[",ti="]",bt="||",ii="&&",Tr="=",Ut="!=",Ge="<",ni=">",kr="<=",ar=">=",dr="in",ts="not",tr="-",is="str",ht="lang",Dr="langmatches",mi="datatype",bs="bound",rn="iri",tn="uri",Bo="bnode",sn="rand",ya="abs",Zt="ceil",Gi="floor",nn="round",Vo="concat",kn="strlen",on="ucase",oi="lcase",an="encode_for_uri",Bi="contains",Do="strbefore",Mo="strstarts",ln="strends",We="strafter",K="year",Ee="month",Se="day",mr="hours",et="minutes",qe="seconds",Ie="timezone",dt="tz",vi="now",Pt="uuid",_e="struuid",xi="md5",ss="sha1",Sa="sha256",he="sha384",Xe="sha512",La="coalesce",wa="if",Wo="strlang",Zo="strdt",eu="sameterm",Ye="isuri",jf="isiri",ru="isblank",Po="isliteral",Ci="isnumeric",tu="regex",iu="substr",Qn="replace",_n="exists",su="count",Oa="sum",nu="min",ou="max",au="avg",lu="sample",qf="group_concat",Kf="separator",ko="^^",Vi="true",ec="false",Yt=":",un="_:",Ts="$",Ua="@",Di="'",Rs='"',ys="'''",Mi="''",ns='"""',Ss='""',Qo="\\",fn="#",cn="_",pn="%",Fa="~",uu="&",_o=/^[^<>"{}|\^`\\\0- ]/,He=/^[0-9]/,Ga=/^[a-zA-Z]/,os=/^[a-zA-Z0-9]/,ai=/^[eE]/,rc=/^[+\-]/,Ba=/^[^'\\\n\r]/,Hn=/^[^"\\\n\r]/,Ho=/^[^'\\]/,Ii=/^[^"\\]/,Va=/^[tbnrf\\"']/,Wi=/^[ \t]/,Xo=/^[\r\n]/,Da=/^[^\r\n]/,hn=/^[A-Z]/,tc=/^[a-z]/,ic=/^[\xC0-\xD6]/,sc=/^[\xD8-\xF6]/,nc=/^[\xF8-\u02FF]/,fu=/^[\u0370-\u037D]/,cu=/^[\u037F-\u1FFF]/,oc=/^[\u200C-\u200D]/,ac=/^[\u2070-\u218F]/,lc=/^[\u2C00-\u2FEF]/,uc=/^[\u3001-\uD7FF]/,pu=/^[\uF900-\uFDCF]/,fc=/^[\uFDF0-\uFFFD]/,dn=/^[\xB7]/,as=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,cc=/^[A-F]/,pc=/^[a-f]/,hc=P("BASE",!0),Xn=P("PREFIX",!0),rt=P("SELECT",!0),gt=P("DISTINCT",!0),hu=P("REDUCED",!0),le=P("(",!1),Ls=P("AS",!0),ue=P(")",!1),Qr=P("*",!1),Yn=P("CONSTRUCT",!0),ls=P("WHERE",!0),Ft=P("{",!1),Gt=P("}",!1),du=P("DESCRIBE",!0),gu=P("ASK",!0),dc=P("FROM",!0),Zi=P("NAMED",!0),Pi=P("GROUP",!0),gn=P("BY",!0),Ma=P("HAVING",!0),Eu=P("ORDER",!0),Ni=P("ASC",!0),ws=P("DESC",!0),Wa=P("LIMIT",!0),gc=P("OFFSET",!0),Yo=P("VALUES",!0),Jt=P(";",!1),mu=P("LOAD",!0),Et=P("SILENT",!0),En=P("INTO",!0),bi=P("CLEAR",!0),vu=P("DROP",!0),xu=P("CREATE",!0),Ec=P("ADD",!0),Jn=P("TO",!0),mc=P("MOVE",!0),Cu=P("COPY",!0),Jo=P("INSERT",!0),Os=P("DATA",!0),mn=P("DELETE",!0),Iu=P("WITH",!0),Za=P("USING",!0),vn=P("DEFAULT",!0),us=P("GRAPH",!0),$o=P("ALL",!0),$e=P(".",!1),Au=P("OPTIONAL",!0),Pa=P("SERVICE",!0),ka=P("BIND",!0),Nu=P("UNDEF",!1),bu=P("MINUS",!0),$n=P("UNION",!0),vc=P("FILTER",!0),ke=P(",",!1),Us=P("a",!1),$t=P("|",!1),Mr=P("/",!1),fs=P("^",!1),Fs=P("?",!1),mt=P("+",!1),xn=P("!",!1),Gs=P("[",!1),li=P("]",!1),ki=P("||",!1),vt=P("&&",!1),kt=P("=",!1),Ti=P("!=",!1),cs=P("<",!1),zn=P(">",!1),zo=P("<=",!1),Bs=P(">=",!1),ps=P("IN",!0),Vs=P("NOT",!0),Wr=P("-",!1),xc=P("STR",!0),Qa=P("LANG",!0),Tu=P("LANGMATCHES",!0),_a=P("DATATYPE",!0),Ha=P("BOUND",!0),Cn=P("IRI",!0),jo=P("URI",!0),Ru=P("BNODE",!0),qo=P("RAND",!0),Cc=P("ABS",!0),Ic=P("CEIL",!0),Ac=P("FLOOR",!0),Xa=P("ROUND",!0),Ya=P("CONCAT",!0),In=P("STRLEN",!0),jn=P("UCASE",!0),Nc=P("LCASE",!0),Ko=P("ENCODE_FOR_URI",!0),yu=P("CONTAINS",!0),qn=P("STRBEFORE",!0),Su=P("STRSTARTS",!0),Ds=P("STRENDS",!0),Kn=P("STRAFTER",!0),Ms=P("YEAR",!0),eo=P("MONTH",!0),An=P("DAY",!0),Lu=P("HOURS",!0),wu=P("MINUTES",!0),Ou=P("SECONDS",!0),bc=P("TIMEZONE",!0),Ws=P("TZ",!0),Zs=P("NOW",!0),Tc=P("UUID",!0),Rc=P("STRUUID",!0),yc=P("MD5",!0),Sc=P("SHA1",!0),Lc=P("SHA256",!0),wc=P("SHA384",!0),Qt=P("SHA512",!0),tt=P("COALESCE",!0),Tt=P("IF",!0),it=P("STRLANG",!0),ro=P("STRDT",!0),Oc=P("sameTerm",!0),ea=P("isURI",!0),Uc=P("isIRI",!0),Fc=P("isBLANK",!0),Gc=P("isLITERAL",!0),Ja=P("isNUMERIC",!0),Uu=P("REGEX",!0),$a=P("SUBSTR",!0),Bc=P("REPLACE",!0),to=P("EXISTS",!0),za=P("COUNT",!0),Fu=P("SUM",!0),Gu=P("MIN",!0),ja=P("MAX",!0),Bu=P("AVG",!0),io=P("SAMPLE",!0),Vc=P("GROUP_CONCAT",!0),ra=P("SEPARATOR",!0),Qi=P("^^",!1),Vu=P("true",!0),Dc=P("false",!0),ta=Be(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Rr=P(":",!1),lr=P("_:",!1),Pe=Be([["0","9"]],!1,!1),Ri=P("$",!1),yi=P("@",!1),ia=Be([["a","z"],["A","Z"]],!1,!1),_i=Be([["a","z"],["A","Z"],["0","9"]],!1,!1),Du=Be(["e","E"],!1,!1),Mc=Be(["+","-"],!1,!1),ui=P("'",!1),Ps=Be(["'","\\",`
|
|
75
|
+
`,"\r"],!0,!1),hs=P('"',!1),so=Be(['"',"\\",`
|
|
76
|
+
`,"\r"],!0,!1),Si=P("'''",!1),sa=P("''",!1),na=Be(["'","\\"],!0,!1),qa=P('"""',!1),Nn=P('""',!1),no=Be(['"',"\\"],!0,!1),oa=P("\\",!1),Wc=Be(["t","b","n","r","f","\\",'"',"'"],!1,!1),Mu=Be([" "," "],!1,!1),Zc=Be(["\r",`
|
|
77
|
+
`],!1,!1),Pc=Be(["\r",`
|
|
78
|
+
`],!0,!1),ds=P("#",!1),Wu=Be([["A","Z"]],!1,!1),kc=Be([["a","z"]],!1,!1),Qc=Be([["\xC0","\xD6"]],!1,!1),Zu=Be([["\xD8","\xF6"]],!1,!1),bn=Be([["\xF8","\u02FF"]],!1,!1),Ka=Be([["\u0370","\u037D"]],!1,!1),aa=Be([["\u037F","\u1FFF"]],!1,!1),Pu=Be([["\u200C","\u200D"]],!1,!1),el=Be([["\u2070","\u218F"]],!1,!1),ku=Be([["\u2C00","\u2FEF"]],!1,!1),_c=Be([["\u3001","\uD7FF"]],!1,!1),Qu=Be([["\uF900","\uFDCF"]],!1,!1),xt=Be([["\uFDF0","\uFFFD"]],!1,!1),Tn=P("_",!1),Rn=Be(["\xB7"],!1,!1),yn=Be([["\u0300","\u036F"]],!1,!1),Sn=Be([["\u203F","\u2040"]],!1,!1),gs=P("%",!1),la=Be([["A","F"]],!1,!1),_u=Be([["a","f"]],!1,!1),Hu=P("~",!1),Xu=P("&",!1),Ln=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(ph).map(([p,h])=>({pos:parseInt(p),text:h}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},Yu=function(t,u,o){let a={type:"Query"};return t&&(a.prologue=t),u.type==="SelectQuery"?a.selectQuery=u:u.type==="ConstructQuery"?a.constructQuery=u:u.type==="DescribeQuery"?a.describeQuery=u:u.type==="AskQuery"&&(a.askQuery=u),o&&(a.values=o),a},ua=function(t){if(t.length)return{type:"Prologue",decl:t}},Ju=function(t){return{type:"BaseDecl",iriref:t}},oo=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Hc=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},wn=function(t,u,o,a){let p={type:"SubSelect",selectClause:t,whereClause:u,...o,location:Te()};return a&&(p.values=a),p},$u=function(t,u){let o;u==="*"?o=["*"]:o=u.map(p=>p.length===2?p[1]:{expression:p[3],as:p[7]});let a={var:o};if(t){let p=t.toUpperCase();p==="DISTINCT"?a.distinct=!0:p==="REDUCED"&&(a.reduced=!0)}return a.location=Te(),a},zu=function(t,u,o,a){let p={type:"ConstructQuery"};return u.length&&(p.from=u),p={...p,template:t,where:o,...a,location:Te()},p},ju=function(t,u,o){let a={type:"ConstructQuery"};return t.length&&(a.from=t),a={...a,where:[u],...o,location:Te()},a},ao=function(t,u,o,a){let p={type:"DescribeQuery"};return u.length&&(p.from=u),p.describe=t,o&&(p.where=o),p={...p,...a,location:Te()},p},lo=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:Te()},a},uo=function(t){return t},fo=function(t){return{graph:t,location:Te()}},qu=function(t){return{namedGraph:t,location:Te()}},Xc=function(t){return t.graphPattern||t},Ku=function(t,u,o,a){let p={};return t&&(p.group=t),u&&(p.having=u),o&&(p.orderBy=o),a&&(p.limitOffset=a),p},Es=function(t){return t},On=function(t){return t},co=function(t){return t},Yc=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:Te()}:{bracketted:!0,...t}},ef=function(t){return t},Jc=function(t){return t},$c=function(t){return t},zc=function(t){return t},Bt=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},rf=function(t){return t},jc=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},qc=function(t){return{limit:parseInt(t.literal)}},Kc=function(t){return{offset:parseInt(t.literal)}},tf=function(t){return t?t[1]:null},sf=function(t,u){let o={type:"Update"};t&&(o.prologue=t);let a=[];return u&&(a=[u[1]],u[2]&&(a=a.concat(u[2][3].update))),o.update=a,o},nf=function(t,u,o){let a={type:"load",silent:t,sourceGraph:u};return o&&(a.destinyGraph=o[2]),a},ep=function(t,u){return{type:"clear",silent:t,destinyGraph:u}},rp=function(t,u){return{type:"drop",silent:t,destinyGraph:u}},tp=function(t,u){return{type:"create",silent:t,destinyGraph:u}},ms=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},po=function(t,u,o){return{type:"move",silent:t,graphs:[u,o]}},fa=function(t,u,o){return{type:"copy",silent:t,graphs:[u,o]}},ho=function(t){return{type:"insertdata",insert:t}},Hi=function(t){return{type:"deletedata",delete:t}},ip=function(t){return{type:"deletewhere",delete:t}},sp=function(t,u,o,a){let p={type:"modify"};return t&&(p.with=t[2]),u.length===3?(p.delete=u[0],u[2]&&(p.insert=u[2])):p.insert=u,o.length&&(p.using=o),p.where=a.graphPattern,p},Un=function(t){return t},of=function(t){return t},af=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},lf=function(){return"default"},ca=function(t){return t},Fn=function(t){return t},rl=function(t){return t},tl=function(){return"default"},il=function(){return"named"},np=function(){return"all"},go=function(t){return t},uf=function(t){return t},op=function(t,u){let o=[];return t&&(o=o.concat(t)),u.forEach(a=>{o=o.concat(a[0]),a[2]&&(o=o.concat(a[2]))}),o},ff=function(t,u){return{graph:t,...u}},pa=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},ap=function(t){return t},lp=function(t,u){let o=[];return t&&o.push(t),u.forEach(a=>{o.push(a[0]),a[4]&&o.push(a[4])}),{graphPattern:o,location:Te()}},Eo=function(t,u){let o=[];if(u&&u[3])if(n(t.subject,u[3].triplePattern[0].subject)){o=JSON.parse(JSON.stringify(u[3].triplePattern));let a=t.properties.length-1;if(n(t.properties[a].predicate,u[3].triplePattern[0].properties[0].predicate)){o[0].properties=t.properties;let p=o[0].properties[a].objects.length-1;u[3].triplePattern[0].properties[0].objects.forEach(h=>{n(t.properties[a].objects[p],h)||o[0].properties[a].objects.push(h)}),o[0].properties.push(...u[3].triplePattern[0].properties.slice(1))}else o[0].properties=t.properties.concat(u[3].triplePattern[0].properties)}else o=[t].concat(u[3].triplePattern);else o=[t];return{type:"TriplesBlock",triplePattern:o,location:Te()}},cf=function(t){return{type:"OptionalGraphPattern",optional:t.graphPattern||t,location:Te()}},pf=function(t,u){return{type:"GraphGraphPattern",graph:t,...u}},up=function(t,u,o){let a={type:"ServiceGraphPattern",service:u,pattern:o.graphPattern||o};return t&&(a.silent=!0),a.location=Te(),a},sl=function(t,u){return{type:"Bind",bind:t,as:u,location:Te()}},hf=function(t){return t},fp=function(t,u){return{oneVar:t,data:u,location:Te()}},df=function(t,u){return{variables:t,data:u,location:Te()}},gf=function(t){return t},cp=function(t){return t},nl=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:Te()}},mo=function(t,u){return u.length?{union:[t,...u],location:Te()}:t},vo=function(t){return{type:"Filter",filter:t,location:Te()}},pp=function(t,u){return{functionRef:t,args:u.list,location:Te()}},Ef=function(){return{list:[]}},hp=function(t,u,o){return{distinct:!!t,list:[u,...o]}},dp=function(){return[]},gp=function(t,u){return[t,...u]},Ep=function(t){return t},mf=function(t,u){let o=[t];return u&&u[3]&&(o=o.concat(u[3].triplePattern)),{triplePattern:o,location:Te()}},mp=function(t,u){return{subject:t,properties:u}},vp=function(t,u){return{subject:t,properties:u}},vf=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{p[3]&&a.push({predicate:p[3][0],objects:p[3][2]})}),a},ol=function(){return{a:!0,location:Te()}},xf=function(t,u){return[t,...u]},xp=function(t,u){return{subject:t,properties:u}},Cf=function(t,u){return{subject:t,properties:u}},Gn=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(p=>{if(p[3]){let h=a.length-1,E=a[h].objects.length-1;n(a[h].predicate,p[3][0])?p[3][2].forEach(x=>{n(a[h].objects[E],x)||a[h].objects.push(x)}):a.push({predicate:p[3][0],objects:p[3][2]})}}),a},If=function(t,u){return[t,...u]},ha=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{alternative:o,location:Te()}}else return t},Cp=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{sequence:o,location:Te()}}else return t},Ip=function(t,u){return u&&(t.modifier=u),t},Ap=function(t){return t.inverse=!0,t},yr=function(){return{a:!0,location:Te()}},Np=function(t){return{bracketted:!0,...t}},al=function(t){return{collection:t,location:Te()}},xo=function(t){return{blankNodeProperties:t,location:Te()}},fi=function(t){return{collection:t,location:Te()}},da=function(t){return{blankNodeProperties:t,location:Te()}},ll=function(t){return t},Af=function(t){return t},Nf=function(t){return t},bf=function(t){return t},ul=function(t){return{...t,location:Te()}},Tf=function(t,u){return u.length?{expressionType:"conditionalor",operands:[t,...u]}:t},bp=function(t,u){return u.length?{expressionType:"conditionaland",operands:[t,...u]}:t},fl=function(t,u){if(u.length){let o=t,a=u[0][1].toUpperCase(),p=u[0][3];return a==="NOT"&&(a+=" "+u[0][3].toUpperCase(),p=u[0][5]),{expressionType:"relationalexpression",operator:a,op1:o,op2:p}}else return t},Rf=function(t,u){if(u.length===0)return t;let o=[];return u.forEach(a=>{a.length==4&&o.push({operator:a[1],expression:a[3]})}),{expressionType:"additiveexpression",op1:t,ops:o}},gr=function(t,u){return u.length?{expressionType:"multiplicativeexpression",first:t,rest:u.map(o=>({operator:o[1],expression:o[3]}))}:t},yf=function(t){return{expressionType:"unaryexpression",unaryexpression:"!",expression:t}},Tp=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},Bn=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},Rp=function(t){return{expressionType:"atomic",value:t}},ga=function(t){return{expressionType:"atomic",value:t}},yp=function(t){return{expressionType:"atomic",value:t}},Zr=function(t){return{expressionType:"atomic",value:t}},Sp=function(t){return{bracketted:!0,...t}},Lp=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},wp=function(t){return{expressionType:"builtincall",builtincall:"lang",args:[t]}},Ea=function(t,u){return{expressionType:"builtincall",builtincall:"langMatches",args:[t,u]}},s=function(t){return{expressionType:"builtincall",builtincall:"datatype",args:[t]}},l=function(t){return{expressionType:"builtincall",builtincall:"bound",args:[t]}},g=function(t){return{expressionType:"builtincall",builtincall:"IRI",args:[t]}},d=function(t){return{expressionType:"builtincall",builtincall:"URI",args:[t]}},v=function(t){let u={expressionType:"builtincall",builtincall:"BNODE",args:null};return t.length===5&&(u.args=[t[2]]),u},A=function(){return{expressionType:"builtincall",builtincall:"rand"}},b=function(t){return{expressionType:"builtincall",builtincall:"abs",args:[t]}},y=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},w=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},U=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},k=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},J=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},re=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},ee=function(t){return{expressionType:"builtincall",builtincall:"LCASE",args:[t]}},oe=function(t){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[t]}},ce=function(t,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[t,u]}},de=function(t,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[t,u]}},ve=function(t,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[t,u]}},Ce=function(t,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[t,u]}},xe=function(t,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[t,u]}},be=function(t){return{expressionType:"builtincall",builtincall:"year",args:[t]}},Ze=function(t){return{expressionType:"builtincall",builtincall:"month",args:[t]}},De=function(t){return{expressionType:"builtincall",builtincall:"day",args:[t]}},Ke=function(t){return{expressionType:"builtincall",builtincall:"hours",args:[t]}},vr=function(t){return{expressionType:"builtincall",builtincall:"minutes",args:[t]}},st=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},Lr=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},_t=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Vt=function(){return{expressionType:"builtincall",builtincall:"now"}},_r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},lt=function(t){return{expressionType:"builtincall",builtincall:"MD5",args:[t]}},jr=function(t){return{expressionType:"builtincall",builtincall:"SHA1",args:[t]}},Hr=function(t){return{expressionType:"builtincall",builtincall:"SHA256",args:[t]}},Fr=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Mt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Vn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},vs=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},Ct=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},Li=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},nt=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},cl=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Xi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},ks=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},Qs=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Rt=function(t,u,o){let a={expressionType:"regex",text:t,pattern:u};return o&&(a.flags=o[2]),a},Dn=function(t,u,o){let a=[t,u];return o&&a.push(o[2]),{expressionType:"builtincall",builtincall:"substr",args:a}},pl=function(t,u,o,a){let p=[t,u,o];return a&&p.push(a[2]),{expressionType:"builtincall",builtincall:"replace",args:p}},Td=function(t){return{exists:t.graphPattern||t}},Rd=function(t){return{notexists:t.graphPattern||t}},yd=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},Sd=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},Ld=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},wd=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Od=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},Ud=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Fd=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},Gd=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Bd=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=Te(),t},Vd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Dd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Md=function(t){return{type:"IRIref",iriref:t,location:Te()}},Wd=function(t){return t},Zd=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:Te()}},Pd=function(t){return{type:"PrefixedName",pn_prefix:t,location:Te()}},kd=function(t){return{blankNode:t,location:Te()}},Qd=function(){return{blankNode:"[]",location:Te()}},_d=function(t){return t.join("")},Hd=function(t){return t||""},Xd=function(t,u){return{pn_prefix:t,pn_local:u}},Yd=function(){return Xr()},Jd=function(t){return{type:"Var",varType:"VAR1",varname:t}},$d=function(t){return{type:"Var",varType:"VAR2",varname:t}},zd=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Xr()}},qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Xr()}},Kd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},eg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},rg=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Xr()}},tg=function(t){return t.literal="+"+t.literal,t},ig=function(t){return t.literal="+"+t.literal,t},sg=function(t){return t.literal="+"+t.literal,t},ng=function(t){return t.literal="-"+t.literal,t},og=function(t){return t.literal="-"+t.literal,t},ag=function(t){return t.literal="-"+t.literal,t},lg=function(t){return{quote:"'",literal:t.join("")}},ug=function(t){return{quote:'"',literal:t.join("")}},fg=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},cg=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},pg=function(){return Xr()},hg=function(){return Xr()},dg=function(){return ph[Te().start.offset]=Xr(),""},gg=function(){return Xr()},Eg=function(){return Xr()},mg=function(){return Xr()},r=0,F=0,Co=[{line:1,column:1}],It=0,hl=[],I=0,Io;if("startRule"in m){if(!(m.startRule in R))throw new Error(`Can't start parsing from rule "`+m.startRule+'".');L=R[m.startRule]}function Xr(){return i.substring(F,r)}function sA(){return F}function nA(){return{source:N,start:F,end:r}}function Te(){return _s(F,r)}function oA(t,u){throw u=u!==void 0?u:_s(F,r),Up([xg(t)],i.substring(F,r),u)}function aA(t,u){throw u=u!==void 0?u:_s(F,r),Cg(t,u)}function P(t,u){return{type:"literal",text:t,ignoreCase:u}}function Be(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function lA(){return{type:"any"}}function vg(){return{type:"end"}}function xg(t){return{type:"other",description:t}}function Op(t){var u=Co[t],o;if(u)return u;for(o=t-1;!Co[o];)o--;for(u=Co[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return Co[t]=u,u}function _s(t,u,o){var a=Op(t),p=Op(u),h={source:N,start:{offset:t,line:a.line,column:a.column},end:{offset:u,line:p.line,column:p.column}};return o&&N&&typeof N.offset=="function"&&(h.start=N.offset(h.start),h.end=N.offset(h.end)),h}function C(t){r<It||(r>It&&(It=r,hl=[]),hl.push(t))}function Cg(t,u){return new ql(t,null,null,u)}function Up(t,u,o){return new ql(ql.buildMessage(t,u),t,u,o)}function Fp(){var t,u,o,a,p,h;for(t=r,u=[],o=lh();o!==e;)u.push(o),o=lh();for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Ig(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=Ln(u,a)}else r=t,t=e;return t}function Ig(){var t;return t=Ag(),t===e&&(t=_p()),t}function Ag(){var t,u,o,a,p;for(t=r,u=Gp(),o=[],a=c();a!==e;)o.push(a),a=c();return a=Ng(),a===e&&(a=Tg(),a===e&&(a=Rg(),a===e&&(a=yg()))),a!==e?(p=Qp(),F=t,t=Yu(u,a,p)):(r=t,t=e),t}function Gp(){var t,u,o;for(t=r,u=[],o=Bp(),o===e&&(o=Vp());o!==e;)u.push(o),o=Bp(),o===e&&(o=Vp());return F=t,u=ua(u),t=u,t}function Bp(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===O?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(hc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=Fl(),p!==e?(F=t,t=Ju(p)):(r=t,t=e)}else r=t,t=e;return t}function Vp(){var t,u,o,a,p,h,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===D?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Xn)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Gl(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Fl(),E!==e?(F=t,t=oo(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Ng(){var t,u,o,a,p,h,E,x;if(t=r,u=Dp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=Hs(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Yi(),F=t,t=Hc(u,a,h,x)}else r=t,t=e}else r=t,t=e;return t}function bg(){var t,u,o,a,p,h,E;if(t=r,u=Dp(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Hs(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Yi(),E=Qp(),F=t,t=wn(u,a,h,E)}else r=t,t=e}else r=t,t=e;return t}function Dp(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er;if(t=r,i.substr(r,6).toLowerCase()===Z?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(rt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,I===0&&C(gt)),a===e&&(i.substr(r,7).toLowerCase()===Q?(a=i.substr(r,7),r+=7):(a=e,I===0&&C(hu))),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(T=nr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===40?(T=W,r++):(T=e,I===0&&C(le)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=se(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(i.substr(r,2).toLowerCase()===$?(ne=i.substr(r,2),r+=2):(ne=e,I===0&&C(Ls)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(Ne=nr(),Ne!==e){for(Ue=[],er=c();er!==e;)Ue.push(er),er=c();i.charCodeAt(r)===41?(er=M,r++):(er=e,I===0&&C(ue)),er!==e?(x=[x,T,S,G,_,ne,ge,Ne,Ue,er],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}if(E!==e)for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(T=nr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===40?(T=W,r++):(T=e,I===0&&C(le)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=se(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(i.substr(r,2).toLowerCase()===$?(ne=i.substr(r,2),r+=2):(ne=e,I===0&&C(Ls)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(Ne=nr(),Ne!==e){for(Ue=[],er=c();er!==e;)Ue.push(er),er=c();i.charCodeAt(r)===41?(er=M,r++):(er=e,I===0&&C(ue)),er!==e?(x=[x,T,S,G,_,ne,ge,Ne,Ue,er],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}}else h=e;h===e&&(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(Qr))),h!==e?(F=t,t=$u(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Tg(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge;if(t=r,i.substr(r,9).toLowerCase()===Y?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Yn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=sE(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=At();E!==e;)h.push(E),E=At();for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=Hs(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Yi(),F=t,t=zu(a,h,x,S)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,9).toLowerCase()===Y?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Yn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=At();p!==e;)a.push(p),p=At();for(p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===B?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(ls)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===123?(x=V,r++):(x=e,I===0&&C(Ft)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=$i(),S===e&&(S=null),G=[],_=c();_!==e;)G.push(_),_=c();if(i.charCodeAt(r)===125?(_=X,r++):(_=e,I===0&&C(Gt)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();ge=Yi(),F=t,t=ju(a,S,ge)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Rg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,8).toLowerCase()===q?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(du)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=ji(),p!==e)for(;p!==e;)a.push(p),p=ji();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=z,r++):(a=e,I===0&&C(Qr))),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(h=[],E=At();E!==e;)h.push(E),E=At();for(E=[],x=c();x!==e;)E.push(x),x=c();for(x=Hs(),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Yi(),F=t,t=ao(a,h,x,S)}else r=t,t=e}else r=t,t=e;return t}function yg(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,3).toLowerCase()===te?(o=i.substr(r,3),r+=3):(o=e,I===0&&C(gu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=At();h!==e;)p.push(h),h=At();for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=Hs(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();T=Yi(),F=t,t=lo(p,E,T)}else r=t,t=e}else r=t,t=e;return t}function At(){var t,u,o,a,p,h;if(t=r,i.substr(r,4).toLowerCase()===ie?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(dc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Sg(),a===e&&(a=Lg()),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=uo(a)}else r=t,t=e}else r=t,t=e;return t}function Sg(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=cr(),o!==e?(F=t,t=fo(o)):(r=t,t=e),t}function Lg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Zi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=cr(),a!==e?(F=t,t=qu(a)):(r=t,t=e)}else r=t,t=e;return t}function Hs(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===B?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ls)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();return a=ot(),a!==e?(F=t,t=Xc(a)):(r=t,t=e),t}function Yi(){var t,u,o,a,p;return t=r,u=wg(),u===e&&(u=null),o=Og(),o===e&&(o=null),a=Ug(),a===e&&(a=null),p=Fg(),p===e&&(p=null),F=t,t=Ku(u,o,a,p),t}function wg(){var t,u,o,a,p,h,E;if(t=r,i.substr(r,5).toLowerCase()===fe?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Pi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===ye?(a=i.substr(r,2),r+=2):(a=e,I===0&&C(gn)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=Mp(),E!==e)for(;E!==e;)h.push(E),E=Mp();else h=e;h!==e?(F=t,t=Es(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Mp(){var t,u,o,a,p,h,E,x,T,S,G;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=yl(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=On(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=eh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=co(o)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=se(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=r,i.substr(r,2).toLowerCase()===$?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Ls)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=nr(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=t,t=Yc(p,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=nr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=ef(o)}else r=t,t=e}}}return t}function Og(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===Re?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Ma)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=Wp(),p!==e)for(;p!==e;)a.push(p),p=Wp();else a=e;a!==e?(F=t,t=Jc(a)):(r=t,t=e)}else r=t,t=e;return t}function Wp(){var t,u,o,a;if(t=r,u=El(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=t,t=$c(u)}else r=t,t=e;return t}function Ug(){var t,u,o,a,p,h,E,x;if(t=r,i.substr(r,5).toLowerCase()===Le?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Eu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,2).toLowerCase()===ye?(a=i.substr(r,2),r+=2):(a=e,I===0&&C(gn)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=Zp(),E!==e)for(;E!==e;)h.push(E),E=Zp();else h=e;if(h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();F=t,t=zc(h)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zp(){var t,u,o,a,p,h;if(t=r,i.substr(r,3).toLowerCase()===Ve?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ni)),u===e&&(i.substr(r,4).toLowerCase()===Je?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(ws))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Rl(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=Bt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=El(),u===e&&(u=nr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=t,t=rf(u)}else r=t,t=e;return t}function Fg(){var t,u,o,a;return t=r,u=r,o=Pp(),o!==e?(a=kp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=kp(),o!==e?(a=Pp(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(F=t,u=jc(u)),t=u,t}function Pp(){var t,u,o,a,p,h;if(t=r,i.substr(r,5).toLowerCase()===me?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Wa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$s(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=qc(a)}else r=t,t=e}else r=t,t=e;return t}function kp(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===xr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=$s(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();F=t,t=Kc(a)}else r=t,t=e}else r=t,t=e;return t}function Qp(){var t,u,o,a;return t=r,u=r,i.substr(r,6).toLowerCase()===Cr?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Yo)),o!==e?(a=qp(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),F=t,u=tf(u),t=u,t}function _p(){var t,u,o,a,p,h,E,x,T,S;for(t=r,u=Gp(),o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(p=Gg(),p!==e){for(h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=_p(),E=[E,x,T,S],h=E}else r=h,h=e;h===e&&(h=null),a=[a,p,h],o=a}else r=o,o=e;for(o===e&&(o=null),a=[],p=c();p!==e;)a.push(p),p=c();return F=t,t=sf(u,o),t}function Gg(){var t;return t=Bg(),t===e&&(t=Vg(),t===e&&(t=Dg(),t===e&&(t=Wg(),t===e&&(t=Zg(),t===e&&(t=Pg(),t===e&&(t=Mg(),t===e&&(t=kg(),t===e&&(t=Qg(),t===e&&(t=_g(),t===e&&(t=Hg())))))))))),t}function Bg(){var t,u,o,a,p,h,E,x,T,S,G;if(t=r,i.substr(r,4).toLowerCase()===$r?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(mu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=cr(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=r,i.substr(r,4).toLowerCase()===St?(T=i.substr(r,4),r+=4):(T=e,I===0&&C(En)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=dl(),G!==e?(T=[T,S,G],x=T):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),F=t,t=nf(a,h,x)}else r=t,t=e}else r=t,t=e;return t}function Vg(){var t,u,o,a,p,h;if(t=r,i.substr(r,5).toLowerCase()===Lt?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bi)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=Yp(),h!==e?(F=t,t=ep(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Dg(){var t,u,o,a,p,h;if(t=r,i.substr(r,4).toLowerCase()===pr?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(vu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=Yp(),h!==e?(F=t,t=rp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Mg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===wt?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(xu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();h=dl(),h!==e?(F=t,t=tp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Wg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,3).toLowerCase()===or?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Ec)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(F=t,t=ms(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Zg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===je?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(mc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(F=t,t=po(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Pg(){var t,u,o,a,p,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===zr?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Cu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=Ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===ut?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(Jn)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=Ji(),S!==e?(F=t,t=fa(a,h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function kg(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===Ir?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,4).toLowerCase()===Pr?(a=i.substr(r,4),r+=4):(a=e,I===0&&C(Os)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Jp(),h!==e?(F=t,t=ho(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Qg(){var t,u,o,a,p;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.substr(r,4).toLowerCase()===Pr?(a=i.substr(r,4),r+=4):(a=e,I===0&&C(Os)),a!==e?(p=Jp(),p!==e?(F=t,t=Hi(p)):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;return t}function _g(){var t,u,o,a,p,h;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,5).toLowerCase()===B?(a=i.substr(r,5),r+=5):(a=e,I===0&&C(ls)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=gl(),h!==e?(F=t,t=ip(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Hg(){var t,u,o,a,p,h,E,x,T,S,G;if(t=r,u=r,i.substr(r,4).toLowerCase()===Kt?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(Iu)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=cr(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();o=[o,a,p,h],u=o}else r=u,u=e}else r=u,u=e;if(u===e&&(u=null),o=r,a=Xg(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=Hp(),h===e&&(h=null),a=[a,p,h],o=a}else r=o,o=e;if(o===e&&(o=Hp()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=Xp();h!==e;)p.push(h),h=Xp();for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.substr(r,5).toLowerCase()===B?(E=i.substr(r,5),r+=5):(E=e,I===0&&C(ls)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(T=ot(),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();F=t,t=sp(u,o,p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Xg(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(mn)),u!==e?(o=gl(),o!==e?(F=t,t=Un(o)):(r=t,t=e)):(r=t,t=e),t}function Hp(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Ir?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Jo)),u!==e?(o=gl(),o!==e?(F=t,t=of(o)):(r=t,t=e)):(r=t,t=e),t}function Xp(){var t,u,o,a,p,h,E,x;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Fe?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(Za)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=cr(),p===e)if(p=r,i.substr(r,5).toLowerCase()===ae?(h=i.substr(r,5),r+=5):(h=e,I===0&&C(Zi)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=cr(),x!==e?(h=[h,E,x],p=h):(r=p,p=e)}else r=p,p=e;p!==e?(F=t,t=af(p)):(r=t,t=e)}else r=t,t=e;return t}function Ji(){var t,u,o,a;if(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(vn)),u!==e&&(F=t,u=lf()),t=u,t===e){for(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();a=cr(),a!==e?(F=t,t=ca(a)):(r=t,t=e)}return t}function dl(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===Er?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(us)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=cr(),a!==e?(F=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;return t}function Yp(){var t,u;return t=r,u=dl(),u!==e&&(F=t,u=rl(u)),t=u,t===e&&(t=r,i.substr(r,7).toLowerCase()===pe?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(vn)),u!==e&&(F=t,u=tl()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ae?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Zi)),u!==e&&(F=t,u=il()),t=u,t===e&&(t=r,i.substr(r,3).toLowerCase()===fr?(u=i.substr(r,3),r+=3):(u=e,I===0&&C($o)),u!==e&&(F=t,u=np()),t=u))),t}function gl(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,I===0&&C(Ft)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=$p(),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===125?(E=X,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=go(p)}else r=t,t=e}else r=t,t=e;return t}function Jp(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===123?(o=V,r++):(o=e,I===0&&C(Ft)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=$p(),h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===125?(E=X,r++):(E=e,I===0&&C(Gt)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=uf(p)}else r=t,t=e}else r=t,t=e;return t}function $p(){var t,u,o,a,p,h,E;for(t=r,u=$i(),u===e&&(u=null),o=[],a=r,p=zp(),p!==e?(i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h===e&&(h=null),E=$i(),E===e&&(E=null),p=[p,h,E],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,p=zp(),p!==e?(i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h===e&&(h=null),E=$i(),E===e&&(E=null),p=[p,h,E],a=p):(r=a,a=e);return F=t,t=op(u,o),t}function zp(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===123?(E=V,r++):(E=e,I===0&&C(Ft)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();for(T=$i(),T===e&&(T=null),S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===125?(G=X,r++):(G=e,I===0&&C(Gt)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();F=t,t=ff(p,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function $i(){var t,u,o,a,p,h,E;if(t=r,u=ih(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=$i(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),F=t,t=pa(u,o)}else r=t,t=e;return t}function ot(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=bg(),a===e&&(a=Yg()),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e?(F=t,t=ap(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Yg(){var t,u,o,a,p,h,E,x,T,S;for(t=r,u=Ao(),u===e&&(u=null),o=[],a=c();a!==e;)o.push(a),a=c();if(a=[],p=r,h=jp(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(i.charCodeAt(r)===46?(x=we,r++):(x=e,I===0&&C($e)),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],p=h}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,h=jp(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();for(i.charCodeAt(r)===46?(x=we,r++):(x=e,I===0&&C($e)),x===e&&(x=null),T=[],S=c();S!==e;)T.push(S),S=c();S=Ao(),S===e&&(S=null),h=[h,E,x,T,S],p=h}else r=p,p=e;return F=t,t=lp(u,a),t}function Ao(){var t,u,o,a,p,h,E;if(t=r,u=oE(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=Ao(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),F=t,t=Eo(u,o)}else r=t,t=e;return t}function jp(){var t;return t=tE(),t===e&&(t=Jg(),t===e&&(t=rE(),t===e&&(t=$g(),t===e&&(t=zg(),t===e&&(t=iE(),t===e&&(t=jg(),t===e&&(t=qg()))))))),t}function Jg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,8).toLowerCase()===Ur?(o=i.substr(r,8),r+=8):(o=e,I===0&&C(Au)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=ot(),p!==e?(F=t,t=cf(p)):(r=t,t=e)}else r=t,t=e;return t}function $g(){var t,u,o,a,p,h,E;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,5).toLowerCase()===Er?(o=i.substr(r,5),r+=5):(o=e,I===0&&C(us)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ji(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=ot(),E!==e?(F=t,t=pf(p,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zg(){var t,u,o,a,p,h,E,x;if(t=r,i.substr(r,7).toLowerCase()===ei?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Pa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,6).toLowerCase()===ze?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(Et)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=ji(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?(F=t,t=up(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function jg(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,4).toLowerCase()===Ae?(o=i.substr(r,4),r+=4):(o=e,I===0&&C(ka)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===40?(p=W,r++):(p=e,I===0&&C(le)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();if(i.substr(r,2).toLowerCase()===$?(T=i.substr(r,2),r+=2):(T=e,I===0&&C(Ls)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();if(G=nr(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();i.charCodeAt(r)===41?(ne=M,r++):(ne=e,I===0&&C(ue)),ne!==e?(F=t,t=sl(E,G)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function qg(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===Cr?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(Yo)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=qp(),p!==e?(F=t,t=hf(p)):(r=t,t=e)}else r=t,t=e;return t}function qp(){var t;return t=Kg(),t===e&&(t=eE()),t}function Kg(){var t,u,o,a,p,h,E,x;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=nr(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===123?(p=V,r++):(p=e,I===0&&C(Ft)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();for(E=[],x=No();x!==e;)E.push(x),x=No();i.charCodeAt(r)===125?(x=X,r++):(x=e,I===0&&C(Gt)),x!==e?(F=t,t=fp(o,E)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function eE(){var t,u,o,a,p,h,E,x,T,S,G;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();for(p=[],h=nr();h!==e;)p.push(h),h=nr();if(i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===123?(x=V,r++):(x=e,I===0&&C(Ft)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();for(S=[],G=Kp();G!==e;)S.push(G),G=Kp();i.charCodeAt(r)===125?(G=X,r++):(G=e,I===0&&C(Gt)),G!==e?(F=t,t=df(p,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Kp(){var t,u,o,a,p,h,E;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=[],p=No();p!==e;)a.push(p),p=No();if(i.charCodeAt(r)===41?(p=M,r++):(p=e,I===0&&C(ue)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();F=t,t=gf(a)}else r=t,t=e}else r=t,t=e;return t}function No(){var t,u,o,a;if(t=r,u=cr(),u===e&&(u=Sl(),u===e&&(u=Ll(),u===e&&(u=Ul(),u===e&&(i.substr(r,5)===Ot?(u=Ot,r+=5):(u=e,I===0&&C(Nu)))))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();F=t,t=cp(u)}else r=t,t=e;return t}function rE(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ft?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(F=t,t=nl(a)):(r=t,t=e)}else r=t,t=e;return t}function tE(){var t,u,o,a,p,h,E,x;if(t=r,u=ot(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,I===0&&C($n)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,5).toLowerCase()===Nt?(h=i.substr(r,5),r+=5):(h=e,I===0&&C($n)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=ot(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=mo(u,o)}else r=t,t=e;return t}function iE(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.substr(r,6).toLowerCase()===rs?(o=i.substr(r,6),r+=6):(o=e,I===0&&C(vc)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=El(),p!==e?(F=t,t=vo(p)):(r=t,t=e)}else r=t,t=e;return t}function El(){var t;return t=Rl(),t===e&&(t=yl(),t===e&&(t=eh())),t}function eh(){var t,u,o,a;if(t=r,u=cr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=rh(),a!==e?(F=t,t=pp(u,a)):(r=t,t=e)}else r=t,t=e;return t}function rh(){var t,u,o,a,p,h,E,x,T,S,G,_;if(t=r,u=jt(),u!==e&&(F=t,u=Ef()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(i.substr(r,8).toLowerCase()===H?(a=i.substr(r,8),r+=8):(a=e,I===0&&C(gt)),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(x=[],T=r,i.charCodeAt(r)===44?(S=Me,r++):(S=e,I===0&&C(ke)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=se(),_!==e?T=_:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(x.push(T),T=r,i.charCodeAt(r)===44?(S=Me,r++):(S=e,I===0&&C(ke)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();_=se(),_!==e?T=_:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e?(F=t,t=hp(a,h,x)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function zi(){var t,u,o,a,p,h,E,x,T,S,G,_;if(t=r,u=jt(),u!==e&&(F=t,u=dp()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=[],E=r,i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();E=S}else r=E,E=e}else r=E,E=e;for(;E!==e;)if(h.push(E),E=r,i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e?(F=t,t=gp(a,h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function sE(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===123?(u=V,r++):(u=e,I===0&&C(Ft)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();for(a=th(),a===e&&(a=null),p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===125?(h=X,r++):(h=e,I===0&&C(Gt)),h!==e?(F=t,t=Ep(a)):(r=t,t=e)}else r=t,t=e;return t}function th(){var t,u,o,a,p,h,E;if(t=r,u=ih(),u!==e){for(o=r,a=[],p=c();p!==e;)a.push(p),p=c();if(i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();E=th(),E===e&&(E=null),a=[a,p,h,E],o=a}else r=o,o=e;o===e&&(o=null),F=t,t=mf(u,o)}else r=t,t=e;return t}function ih(){var t,u,o,a,p;if(t=r,u=Ro(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ml(),a!==e?(F=t,t=mp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=nh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=nE(),F=t,t=vp(o,p)}else r=t,t=e}return t}function nE(){var t;return t=ml(),t===e&&(t=null),t}function ml(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;if(t=r,u=vl(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=xl(),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=vl(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=xl(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=vl(),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=xl(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e}F=t,t=vf(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function vl(){var t,u;return t=ji(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Us)),u!==e&&(F=t,u=ol()),t=u),t}function xl(){var t,u,o,a,p,h,E,x;if(t=r,u=Xs(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Xs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Xs(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=xf(u,o)}else r=t,t=e;return t}function oE(){var t,u,o,a,p;if(t=r,u=Ro(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=Cl(),a!==e?(F=t,t=xp(u,a)):(r=t,t=e)}else r=t,t=e;if(t===e){for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=oh(),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();p=aE(),F=t,t=Cf(o,p)}else r=t,t=e}return t}function aE(){var t;return t=Cl(),t===e&&(t=null),t}function Cl(){var t,u,o,a,p,h,E,x,T,S,G,_,ne;if(t=r,u=bo(),u===e&&(u=nr()),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=Il(),a!==e){for(p=[],h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=bo(),G===e&&(G=nr()),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=Il(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(p.push(h),h=r,E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,I===0&&C(Jt)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=r,G=bo(),G===e&&(G=nr()),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();ne=Il(),ne!==e?(G=[G,_,ne],S=G):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e}F=t,t=Gn(u,a,p)}else r=t,t=e}else r=t,t=e;return t}function Il(){var t,u,o,a,p,h,E,x;if(t=r,u=Ys(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Ys(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===44?(h=Me,r++):(h=e,I===0&&C(ke)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Ys(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=If(u,o)}else r=t,t=e;return t}function bo(){var t,u,o,a,p,h,E,x;if(t=r,u=Al(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Al(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===124?(h=Oe,r++):(h=e,I===0&&C($t)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Al(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}F=t,t=ha(u,o)}else r=t,t=e;return t}function Al(){var t,u,o,a,p,h,E,x;if(t=r,u=Nl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Nl(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Nl(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}F=t,t=Cp(u,o)}else r=t,t=e;return t}function sh(){var t,u,o;return t=r,u=uE(),u!==e?(o=lE(),o===e&&(o=null),F=t,t=Ip(u,o)):(r=t,t=e),t}function Nl(){var t,u,o;return t=sh(),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,I===0&&C(fs)),u!==e?(o=sh(),o!==e?(F=t,t=Ap(o)):(r=t,t=e)):(r=t,t=e)),t}function lE(){var t;return i.charCodeAt(r)===63?(t=pt,r++):(t=e,I===0&&C(Fs)),t===e&&(i.charCodeAt(r)===42?(t=z,r++):(t=e,I===0&&C(Qr)),t===e&&(i.charCodeAt(r)===43?(t=Nr,r++):(t=e,I===0&&C(mt)))),t}function uE(){var t,u,o,a;return t=cr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=ct,r++):(u=e,I===0&&C(Us)),u!==e&&(F=t,u=yr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u!==e?(o=fE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e?(o=bo(),o!==e?(i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(F=t,t=Np(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function fE(){var t,u,o,a,p,h,E,x;if(t=To(),t===e)if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){if(o=r,a=To(),a!==e){for(p=[],h=r,i.charCodeAt(r)===124?(E=Oe,r++):(E=e,I===0&&C($t)),E!==e?(x=To(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);h!==e;)p.push(h),h=r,i.charCodeAt(r)===124?(E=Oe,r++):(E=e,I===0&&C($t)),E!==e?(x=To(),x!==e?(E=[E,x],h=E):(r=h,h=e)):(r=h,h=e);a=[a,p],o=a}else r=o,o=e;o===e&&(o=null),i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function To(){var t,u,o;return t=cr(),t===e&&(i.charCodeAt(r)===97?(t=ct,r++):(t=e,I===0&&C(Us)),t===e&&(t=r,i.charCodeAt(r)===94?(u=at,r++):(u=e,I===0&&C(fs)),u!==e?(o=cr(),o===e&&(i.charCodeAt(r)===97?(o=ct,r++):(o=e,I===0&&C(Us))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function nh(){var t,u;return t=r,u=hE(),u!==e&&(F=t,u=al(u)),t=u,t===e&&(t=cE()),t}function cE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=Fi,r++):(o=e,I===0&&C(Gs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=ml(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,I===0&&C(li)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=xo(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function oh(){var t,u;return t=r,u=dE(),u!==e&&(F=t,u=fi(u)),t=u,t===e&&(t=pE()),t}function pE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===91?(o=Fi,r++):(o=e,I===0&&C(Gs)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=Cl(),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===93?(E=ti,r++):(E=e,I===0&&C(li)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=da(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function hE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Xs(),h!==e)for(;h!==e;)p.push(h),h=Xs();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=ll(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function dE(){var t,u,o,a,p,h,E,x,T;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();if(p=[],h=Ys(),h!==e)for(;h!==e;)p.push(h),h=Ys();else p=e;if(p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(i.charCodeAt(r)===41?(E=M,r++):(E=e,I===0&&C(ue)),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();F=t,t=Af(p)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function Xs(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=Ro(),o===e&&(o=nh()),o!==e?(F=t,t=Nf(o)):(r=t,t=e),t}function Ys(){var t,u,o;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();return o=Ro(),o===e&&(o=oh()),o!==e?(F=t,t=bf(o)):(r=t,t=e),t}function Ro(){var t;return t=nr(),t===e&&(t=gE()),t}function ji(){var t;return t=nr(),t===e&&(t=cr()),t}function nr(){var t,u,o,a,p;for(t=r,u=[],o=c();o!==e;)u.push(o),o=c();if(o=SE(),o===e&&(o=LE()),o!==e){for(a=[],p=c();p!==e;)a.push(p),p=c();F=t,t=ul(o)}else r=t,t=e;return t}function gE(){var t;return t=cr(),t===e&&(t=Sl(),t===e&&(t=Ll(),t===e&&(t=Ul(),t===e&&(t=TE(),t===e&&(t=jt()))))),t}function se(){var t,u,o,a,p,h,E,x;if(t=r,u=bl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,I===0&&C(ki)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=bl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===bt?(h=bt,r+=2):(h=e,I===0&&C(ki)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=bl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=Tf(u,o)}else r=t,t=e;return t}function bl(){var t,u,o,a,p,h,E,x;if(t=r,u=Tl(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,I===0&&C(vt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Tl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e;for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ii?(h=ii,r+=2):(h=e,I===0&&C(vt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Tl(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}F=t,t=bp(u,o)}else r=t,t=e;return t}function Tl(){var t,u,o,a,p,h,E,x,T,S;if(t=r,u=Gr(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,I===0&&C(kt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Ut?(h=Ut,r+=2):(h=e,I===0&&C(Ti)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===60?(h=Ge,r++):(h=e,I===0&&C(cs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,I===0&&C(zn)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===kr?(h=kr,r+=2):(h=e,I===0&&C(zo)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,I===0&&C(Bs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(ps)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=zi(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,3).toLowerCase()===ts?(h=i.substr(r,3),r+=3):(h=e,I===0&&C(Vs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(ps)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,h,E,x,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===61?(h=Tr,r++):(h=e,I===0&&C(kt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===Ut?(h=Ut,r+=2):(h=e,I===0&&C(Ti)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===60?(h=Ge,r++):(h=e,I===0&&C(cs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,I===0&&C(zn)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===kr?(h=kr,r+=2):(h=e,I===0&&C(zo)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,I===0&&C(Bs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Gr(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,I===0&&C(ps)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=zi(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.substr(r,3).toLowerCase()===ts?(h=i.substr(r,3),r+=3):(h=e,I===0&&C(Vs)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,I===0&&C(ps)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();S=zi(),S!==e?(p=[p,h,E,x,T,S],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}F=t,t=fl(u,o)}else r=t,t=e;return t}function Gr(){var t,u,o,a,p,h,E,x,T,S,G;if(t=r,u=Js(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,I===0&&C(mt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Ol()),p!==e){for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}}p=[p,h],a=p}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===43?(h=Nr,r++):(h=e,I===0&&C(mt)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Js(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e)if(a=r,p=wl(),p===e&&(p=Ol()),p!==e){for(h=[],E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===42?(T=z,r++):(T=e,I===0&&C(Qr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=c();T!==e;)x.push(T),T=c();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,I===0&&C(Mr)),T!==e){for(S=[],G=c();G!==e;)S.push(G),G=c();G=Br(),G!==e?(x=[x,T,S,G],E=x):(r=E,E=e)}else r=E,E=e}}p=[p,h],a=p}else r=a,a=e}}F=t,t=Rf(u,o)}else r=t,t=e;return t}function Js(){var t,u,o,a,p,h,E,x;if(t=r,u=Br(),u!==e){for(o=[],a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(Qr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===42?(h=z,r++):(h=e,I===0&&C(Qr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,p=[],h=c();h!==e;)p.push(h),h=c();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,I===0&&C(Mr)),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();x=Br(),x!==e?(p=[p,h,E,x],a=p):(r=a,a=e)}else r=a,a=e}}F=t,t=gr(u,o)}else r=t,t=e;return t}function Br(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,I===0&&C(xn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(F=t,t=yf(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(F=t,t=Tp(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=yo(),a!==e?(F=t,t=Bn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=yo())}}return t}function yo(){var t,u;return t=Rl(),t===e&&(t=yl(),t===e&&(t=AE(),t===e&&(t=r,u=Sl(),u!==e&&(F=t,u=Rp(u)),t=u,t===e&&(t=r,u=Ll(),u!==e&&(F=t,u=ga(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(F=t,u=yp(u)),t=u,t===e&&(t=r,u=nr(),u!==e&&(F=t,u=Zr(u)),t=u)))))),t}function Rl(){var t,u,o,a,p,h;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=se(),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();i.charCodeAt(r)===41?(h=M,r++):(h=e,I===0&&C(ue)),h!==e?(F=t,t=Sp(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function yl(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue;if(t=IE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===is?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(xc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Lp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ht?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Qa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=wp(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,11).toLowerCase()===Dr?(u=i.substr(r,11),r+=11):(u=e,I===0&&C(Tu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Ea(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===mi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(_a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=s(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===bs?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ha)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=nr(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=l(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===rn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Cn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=g(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===tn?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(jo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=d(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Bo?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ru)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(a=r,i.charCodeAt(r)===40?(p=W,r++):(p=e,I===0&&C(le)),p!==e){for(h=[],E=c();E!==e;)h.push(E),E=c();if(E=se(),E!==e){for(x=[],T=c();T!==e;)x.push(T),T=c();i.charCodeAt(r)===41?(T=M,r++):(T=e,I===0&&C(ue)),T!==e?(p=[p,h,E,x,T],a=p):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=jt()),a!==e?(F=t,t=v(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===sn?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(qo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=A()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ya?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Cc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=b(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Zt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Ic)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=y(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Gi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Ac)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=w(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===nn?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Xa)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=U(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Vo?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Ya)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(F=t,t=k(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=mE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===kn?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(In)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=J(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=vE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===on?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(jn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=re(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===oi?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Nc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=ee(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,14).toLowerCase()===an?(u=i.substr(r,14),r+=14):(u=e,I===0&&C(Ko)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=oe(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Bi?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(yu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=ce(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Do?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(qn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=de(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Mo?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Su)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=ve(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ln?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Ds)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Ce(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===We?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Kn)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=xe(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===K?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Ms)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=be(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ee?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(eo)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Ze(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Se?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(An)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=De(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===mr?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Lu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Ke(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===et?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(wu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=vr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===qe?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Ou)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=st(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===Ie?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Lr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===dt?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Ws)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=_t(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===vi?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Zs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=Vt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===Pt?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Tc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=_r()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===_e?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Rc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=jt(),a!==e?(F=t,t=Dt()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===xi?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(yc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=lt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===ss?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Sc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=jr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Sa?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Lc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Hr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===he?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(wc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Fr(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Xe?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(Qt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Mt(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===La?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(tt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=zi(),a!==e?(F=t,t=Vn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===wa?(u=i.substr(r,2),r+=2):(u=e,I===0&&C(Tt)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=se(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();i.charCodeAt(r)===41?(Ue=M,r++):(Ue=e,I===0&&C(ue)),Ue!==e?(F=t,t=vs(h,S,ge)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===Wo?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(it)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Ct(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Zo?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ro)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=Li(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,8).toLowerCase()===eu?(u=i.substr(r,8),r+=8):(u=e,I===0&&C(Oc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();i.charCodeAt(r)===41?(_=M,r++):(_=e,I===0&&C(ue)),_!==e?(F=t,t=nt(h,S)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===Ye?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(ea)),u===e&&(i.substr(r,5).toLowerCase()===jf?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Uc))),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=cl(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===ru?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Fc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Xi(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Po?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Gc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=ks(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,9).toLowerCase()===Ci?(u=i.substr(r,9),r+=9):(u=e,I===0&&C(Ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();i.charCodeAt(r)===41?(x=M,r++):(x=e,I===0&&C(ue)),x!==e?(F=t,t=Qs(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=EE(),t===e&&(t=xE(),t===e&&(t=CE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function EE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne;if(t=r,i.substr(r,5).toLowerCase()===tu?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Uu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(_=r,i.charCodeAt(r)===44?(ne=Me,r++):(ne=e,I===0&&C(ke)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();Ne=se(),Ne!==e?(ne=[ne,ge,Ne],_=ne):(r=_,_=e)}else r=_,_=e;for(_===e&&(_=null),ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();i.charCodeAt(r)===41?(ge=M,r++):(ge=e,I===0&&C(ue)),ge!==e?(F=t,t=Rt(h,S,_)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function mE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne;if(t=r,i.substr(r,6).toLowerCase()===iu?(u=i.substr(r,6),r+=6):(u=e,I===0&&C($a)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(_=r,i.charCodeAt(r)===44?(ne=Me,r++):(ne=e,I===0&&C(ke)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();Ne=se(),Ne!==e?(ne=[ne,ge,Ne],_=ne):(r=_,_=e)}else r=_,_=e;for(_===e&&(_=null),ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();i.charCodeAt(r)===41?(ge=M,r++):(ge=e,I===0&&C(ue)),ge!==e?(F=t,t=Dn(h,S,_)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function vE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er,Ht,Zl;if(t=r,i.substr(r,7).toLowerCase()===Qn?(u=i.substr(r,7),r+=7):(u=e,I===0&&C(Bc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();if(h=se(),h!==e){for(E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===44?(x=Me,r++):(x=e,I===0&&C(ke)),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(S=se(),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();if(i.charCodeAt(r)===44?(_=Me,r++):(_=e,I===0&&C(ke)),_!==e){for(ne=[],ge=c();ge!==e;)ne.push(ge),ge=c();if(ge=se(),ge!==e){for(Ne=[],Ue=c();Ue!==e;)Ne.push(Ue),Ue=c();if(Ue=r,i.charCodeAt(r)===44?(er=Me,r++):(er=e,I===0&&C(ke)),er!==e){for(Ht=[],Zl=c();Zl!==e;)Ht.push(Zl),Zl=c();Zl=se(),Zl!==e?(er=[er,Ht,Zl],Ue=er):(r=Ue,Ue=e)}else r=Ue,Ue=e;for(Ue===e&&(Ue=null),er=[],Ht=c();Ht!==e;)er.push(Ht),Ht=c();i.charCodeAt(r)===41?(Ht=M,r++):(Ht=e,I===0&&C(ue)),Ht!==e?(F=t,t=pl(h,S,ge,Ue)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function xE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===_n?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(to)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=ot(),a!==e?(F=t,t=Td(a)):(r=t,t=e)}else r=t,t=e;return t}function CE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3).toLowerCase()===ts?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Vs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.substr(r,6).toLowerCase()===_n?(a=i.substr(r,6),r+=6):(a=e,I===0&&C(to)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();h=ot(),h!==e?(F=t,t=Rd(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function IE(){var t,u,o,a,p,h,E,x,T,S,G,_,ne,ge,Ne,Ue,er;if(t=r,i.substr(r,5).toLowerCase()===su?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(za)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(i.charCodeAt(r)===42?(x=z,r++):(x=e,I===0&&C(Qr)),x===e&&(x=se()),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=yd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===Oa?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Fu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Sd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===nu?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Gu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Ld(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===ou?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(ja)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=wd(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,3).toLowerCase()===au?(u=i.substr(r,3),r+=3):(u=e,I===0&&C(Bu)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Od(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===lu?(u=i.substr(r,6),r+=6):(u=e,I===0&&C(io)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=[],S=c();S!==e;)T.push(S),S=c();if(i.charCodeAt(r)===41?(S=M,r++):(S=e,I===0&&C(ue)),S!==e){for(G=[],_=c();_!==e;)G.push(_),_=c();F=t,t=Ud(h,x)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,i.substr(r,12).toLowerCase()===qf?(u=i.substr(r,12),r+=12):(u=e,I===0&&C(Vc)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();if(i.charCodeAt(r)===40?(a=W,r++):(a=e,I===0&&C(le)),a!==e){for(p=[],h=c();h!==e;)p.push(h),h=c();for(i.substr(r,8).toLowerCase()===H?(h=i.substr(r,8),r+=8):(h=e,I===0&&C(gt)),h===e&&(h=null),E=[],x=c();x!==e;)E.push(x),x=c();if(x=se(),x!==e){for(T=r,S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===59?(G=ur,r++):(G=e,I===0&&C(Jt)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();if(i.substr(r,9).toLowerCase()===Kf?(ne=i.substr(r,9),r+=9):(ne=e,I===0&&C(ra)),ne!==e){for(ge=[],Ne=c();Ne!==e;)ge.push(Ne),Ne=c();if(i.charCodeAt(r)===61?(Ne=Tr,r++):(Ne=e,I===0&&C(kt)),Ne!==e){for(Ue=[],er=c();er!==e;)Ue.push(er),er=c();er=ah(),er!==e?(S=[S,G,_,ne,ge,Ne,Ue,er],T=S):(r=T,T=e)}else r=T,T=e}else r=T,T=e}else r=T,T=e;for(T===e&&(T=null),S=[],G=c();G!==e;)S.push(G),G=c();if(i.charCodeAt(r)===41?(G=M,r++):(G=e,I===0&&C(ue)),G!==e){for(_=[],ne=c();ne!==e;)_.push(ne),ne=c();F=t,t=Fd(h,x,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e}else r=t,t=e}}}}}return t}function AE(){var t,u,o,a;if(t=r,u=cr(),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();a=rh(),a===e&&(a=null),F=t,t=Gd(u,a)}else r=t,t=e;return t}function Sl(){var t,u,o,a,p;return t=r,u=ah(),u!==e?(o=wE(),o===e&&(o=r,i.substr(r,2)===ko?(a=ko,r+=2):(a=e,I===0&&C(Qi)),a!==e?(p=cr(),p!==e?(a=[a,p],o=a):(r=o,o=e)):(r=o,o=e)),o===e&&(o=null),F=t,t=Bd(u,o)):(r=t,t=e),t}function Ll(){var t;return t=NE(),t===e&&(t=wl(),t===e&&(t=Ol())),t}function NE(){var t;return t=Vl(),t===e&&(t=Bl(),t===e&&(t=$s())),t}function wl(){var t;return t=FE(),t===e&&(t=UE(),t===e&&(t=OE())),t}function Ol(){var t;return t=VE(),t===e&&(t=BE(),t===e&&(t=GE())),t}function Ul(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Vi?(u=i.substr(r,4),r+=4):(u=e,I===0&&C(Vu)),u!==e&&(F=t,u=Vd()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ec?(u=i.substr(r,5),r+=5):(u=e,I===0&&C(Dc)),u!==e&&(F=t,u=Dd()),t=u),t}function ah(){var t;return t=WE(),t===e&&(t=ZE(),t===e&&(t=DE(),t===e&&(t=ME()))),t}function cr(){var t,u;return t=r,u=Fl(),u!==e&&(F=t,u=Md(u)),t=u,t===e&&(t=r,u=bE(),u!==e&&(F=t,u=Wd(u)),t=u),t}function bE(){var t,u;return t=r,u=RE(),u!==e&&(F=t,u=Zd(u)),t=u,t===e&&(t=r,u=Gl(),u!==e&&(F=t,u=Pd(u)),t=u),t}function TE(){var t,u;return t=r,u=yE(),u!==e&&(F=t,u=kd(u)),t=u,t===e&&(t=r,u=kE(),u!==e&&(F=t,u=Qd()),t=u),t}function Fl(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Ge,r++):(u=e,I===0&&C(cs)),u!==e){for(o=[],_o.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ta));a!==e;)o.push(a),_o.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ta));i.charCodeAt(r)===62?(a=ni,r++):(a=e,I===0&&C(zn)),a!==e?(F=t,t=_d(o)):(r=t,t=e)}else r=t,t=e;return t}function Gl(){var t,u,o;return t=r,u=QE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o!==e?(F=t,t=Hd(u)):(r=t,t=e),t}function RE(){var t,u,o;return t=r,u=Gl(),u!==e?(o=_E(),o!==e?(F=t,t=Xd(u,o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o,a,p,h,E;if(t=r,i.substr(r,2)===un?(u=un,r+=2):(u=e,I===0&&C(lr)),u!==e)if(o=qi(),o===e&&(He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe))),o!==e){for(a=[],p=Yr(),p===e&&(p=r,i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h!==e?(E=Yr(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e));p!==e;)a.push(p),p=Yr(),p===e&&(p=r,i.charCodeAt(r)===46?(h=we,r++):(h=e,I===0&&C($e)),h!==e?(E=Yr(),E!==e?(h=[h,E],p=h):(r=p,p=e)):(r=p,p=e));F=t,t=Yd()}else r=t,t=e;else r=t,t=e;return t}function SE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=pt,r++):(u=e,I===0&&C(Fs)),u!==e?(o=fh(),o!==e?(F=t,t=Jd(o)):(r=t,t=e)):(r=t,t=e),t}function LE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ts,r++):(u=e,I===0&&C(Ri)),u!==e?(o=fh(),o!==e?(F=t,t=$d(o)):(r=t,t=e)):(r=t,t=e),t}function wE(){var t,u,o,a,p,h,E,x;if(t=r,i.charCodeAt(r)===64?(u=Ua,r++):(u=e,I===0&&C(yi)),u!==e){if(o=[],Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ia)),a!==e)for(;a!==e;)o.push(a),Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(ia));else o=e;if(o!==e){if(a=[],p=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){if(E=[],os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i)),x!==e)for(;x!==e;)E.push(x),os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i));else E=e;E!==e?(h=[h,E],p=h):(r=p,p=e)}else r=p,p=e;for(;p!==e;)if(a.push(p),p=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,I===0&&C(Wr)),h!==e){if(E=[],os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i)),x!==e)for(;x!==e;)E.push(x),os.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,I===0&&C(_i));else E=e;E!==e?(h=[h,E],p=h):(r=p,p=e)}else r=p,p=e;F=t,t=zd(o,a)}else r=t,t=e}else r=t,t=e;return t}function $s(){var t,u,o;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;return u!==e&&(F=t,u=jd()),t=u,t}function Bl(){var t,u,o,a,p;for(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));if(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C($e)),o!==e){if(a=[],He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe)),p!==e)for(;p!==e;)a.push(p),He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));else a=e;a!==e?(F=t,t=qd()):(r=t,t=e)}else r=t,t=e;return t}function Vl(){var t,u,o,a,p;if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C($e)),o!==e){for(a=[],He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));p!==e;)a.push(p),He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));p=Dl(),p!==e?(F=t,t=Kd()):(r=t,t=e)}else r=t,t=e;else r=t,t=e;if(t===e){if(t=r,i.charCodeAt(r)===46?(u=we,r++):(u=e,I===0&&C($e)),u!==e){if(o=[],He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a!==e)for(;a!==e;)o.push(a),He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe));else o=e;o!==e?(a=Dl(),a!==e?(F=t,t=eg()):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,u=[],He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe)),o!==e)for(;o!==e;)u.push(o),He.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Pe));else u=e;u!==e?(o=Dl(),o!==e?(F=t,t=rg()):(r=t,t=e)):(r=t,t=e)}}return t}function OE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=$s(),o!==e?(F=t,t=tg(o)):(r=t,t=e)):(r=t,t=e),t}function UE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=Bl(),o!==e?(F=t,t=ig(o)):(r=t,t=e)):(r=t,t=e),t}function FE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Nr,r++):(u=e,I===0&&C(mt)),u!==e?(o=Vl(),o!==e?(F=t,t=sg(o)):(r=t,t=e)):(r=t,t=e),t}function GE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e?(o=$s(),o!==e?(F=t,t=ng(o)):(r=t,t=e)):(r=t,t=e),t}function BE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e?(o=Bl(),o!==e?(F=t,t=og(o)):(r=t,t=e)):(r=t,t=e),t}function VE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,I===0&&C(Wr)),u!==e?(o=Vl(),o!==e?(F=t,t=ag(o)):(r=t,t=e)):(r=t,t=e),t}function Dl(){var t,u,o,a,p;if(t=r,ai.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Du)),u!==e){if(rc.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Mc)),o===e&&(o=null),a=[],He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe)),p!==e)for(;p!==e;)a.push(p),He.test(i.charAt(r))?(p=i.charAt(r),r++):(p=e,I===0&&C(Pe));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function DE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Di,r++):(u=e,I===0&&C(ui)),u!==e){for(o=[],Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ps)),a===e&&(a=zt());a!==e;)o.push(a),Ba.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Ps)),a===e&&(a=zt());i.charCodeAt(r)===39?(a=Di,r++):(a=e,I===0&&C(ui)),a!==e?(F=t,t=lg(o)):(r=t,t=e)}else r=t,t=e;return t}function ME(){var t,u,o,a;if(t=r,i.charCodeAt(r)===34?(u=Rs,r++):(u=e,I===0&&C(hs)),u!==e){for(o=[],Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(so)),a===e&&(a=zt());a!==e;)o.push(a),Hn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(so)),a===e&&(a=zt());i.charCodeAt(r)===34?(a=Rs,r++):(a=e,I===0&&C(hs)),a!==e?(F=t,t=ug(o)):(r=t,t=e)}else r=t,t=e;return t}function WE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3)===ys?(u=ys,r+=3):(u=e,I===0&&C(Si)),u!==e){for(o=[],a=r,i.substr(r,2)===Mi?(p=Mi,r+=2):(p=e,I===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Di,r++):(p=e,I===0&&C(ui))),p===e&&(p=null),Ho.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(na)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Mi?(p=Mi,r+=2):(p=e,I===0&&C(sa)),p===e&&(i.charCodeAt(r)===39?(p=Di,r++):(p=e,I===0&&C(ui))),p===e&&(p=null),Ho.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(na)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);i.substr(r,3)===ys?(a=ys,r+=3):(a=e,I===0&&C(Si)),a!==e?(F=t,t=fg(o)):(r=t,t=e)}else r=t,t=e;return t}function ZE(){var t,u,o,a,p,h;if(t=r,i.substr(r,3)===ns?(u=ns,r+=3):(u=e,I===0&&C(qa)),u!==e){for(o=[],a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,I===0&&C(Nn)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,I===0&&C(hs))),p===e&&(p=null),Ii.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(no)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Ss?(p=Ss,r+=2):(p=e,I===0&&C(Nn)),p===e&&(i.charCodeAt(r)===34?(p=Rs,r++):(p=e,I===0&&C(hs))),p===e&&(p=null),Ii.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,I===0&&C(no)),h===e&&(h=zt()),h!==e?(p=[p,h],a=p):(r=a,a=e);i.substr(r,3)===ns?(a=ns,r+=3):(a=e,I===0&&C(qa)),a!==e?(F=t,t=cg(o)):(r=t,t=e)}else r=t,t=e;return t}function zt(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Qo,r++):(u=e,I===0&&C(oa)),u!==e?(Va.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,I===0&&C(Wc)),o!==e?(F=t,t=pg()):(r=t,t=e)):(r=t,t=e),t}function jt(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=W,r++):(u=e,I===0&&C(le)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===41?(a=M,r++):(a=e,I===0&&C(ue)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function c(){var t;return t=PE(),t===e&&(t=Ml(),t===e&&(t=Wl())),t}function Ml(){var t;return Wi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Mu)),t}function Wl(){var t;return Xo.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Zc)),t}function So(){var t;return Da.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pc)),t}function lh(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=fn,r++):(u=e,I===0&&C(ds)),u!==e){for(o=[],a=So();a!==e;)o.push(a),a=So();a=Wl(),a!==e?(F=t,t=hg()):(r=t,t=e)}else r=t,t=e;return t}function PE(){var t,u,o,a,p,h;for(t=r,u=Wl(),u===e&&(u=null),o=[],a=Ml();a!==e;)o.push(a),a=Ml();if(i.charCodeAt(r)===35?(a=fn,r++):(a=e,I===0&&C(ds)),a!==e){for(p=[],h=So();h!==e;)p.push(h),h=So();F=t,t=dg()}else r=t,t=e;return t}function kE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===91?(u=Fi,r++):(u=e,I===0&&C(Gs)),u!==e){for(o=[],a=c();a!==e;)o.push(a),a=c();i.charCodeAt(r)===93?(a=ti,r++):(a=e,I===0&&C(li)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function uh(){var t;return hn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Wu)),t===e&&(tc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(kc)),t===e&&(ic.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Qc)),t===e&&(sc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Zu)),t===e&&(nc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(bn)),t===e&&(fu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Ka)),t===e&&(cu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(aa)),t===e&&(oc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pu)),t===e&&(ac.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(el)),t===e&&(lc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(ku)),t===e&&(uc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(_c)),t===e&&(pu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Qu)),t===e&&(fc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(xt)))))))))))))),t}function qi(){var t;return t=uh(),t===e&&(i.charCodeAt(r)===95?(t=cn,r++):(t=e,I===0&&C(Tn))),t}function fh(){var t,u,o,a;if(t=r,u=qi(),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe))),u!==e){for(o=[],a=qi(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a===e&&(dn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Rn)),a===e&&(as.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Sn))))));a!==e;)o.push(a),a=qi(),a===e&&(He.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Pe)),a===e&&(dn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Rn)),a===e&&(as.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(yn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,I===0&&C(Sn))))));F=t,t=gg()}else r=t,t=e;return t}function Yr(){var t;return t=qi(),t===e&&(i.charCodeAt(r)===45?(t=tr,r++):(t=e,I===0&&C(Wr)),t===e&&(He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(dn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Rn)),t===e&&(as.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(yn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Sn))))))),t}function QE(){var t,u,o,a,p,h;if(t=r,u=uh(),u!==e){for(o=[],a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));F=t,t=Eg()}else r=t,t=e;return t}function _E(){var t,u,o,a,p,h;if(t=r,u=qi(),u===e&&(i.charCodeAt(r)===58?(u=Yt,r++):(u=e,I===0&&C(Rr)),u===e&&(He.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,I===0&&C(Pe)),u===e&&(u=zs()))),u!==e){for(o=[],a=Yr(),a===e&&(i.charCodeAt(r)===58?(a=Yt,r++):(a=e,I===0&&C(Rr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h===e&&(i.charCodeAt(r)===58?(h=Yt,r++):(h=e,I===0&&C(Rr)),h===e&&(h=zs())),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Yr(),a===e&&(i.charCodeAt(r)===58?(a=Yt,r++):(a=e,I===0&&C(Rr)),a===e&&(a=zs())),a===e&&(a=r,i.charCodeAt(r)===46?(p=we,r++):(p=e,I===0&&C($e)),p!==e?(h=Yr(),h===e&&(i.charCodeAt(r)===58?(h=Yt,r++):(h=e,I===0&&C(Rr)),h===e&&(h=zs())),h!==e?(p=[p,h],a=p):(r=a,a=e)):(r=a,a=e));F=t,t=mg()}else r=t,t=e;return t}function zs(){var t;return t=HE(),t===e&&(t=XE()),t}function HE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=pn,r++):(u=e,I===0&&C(gs)),u!==e?(o=ch(),o!==e?(a=ch(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ch(){var t;return He.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(Pe)),t===e&&(cc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(la)),t===e&&(pc.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,I===0&&C(_u)))),t}function XE(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Qo,r++):(u=e,I===0&&C(oa)),u!==e?(i.charCodeAt(r)===95?(o=cn,r++):(o=e,I===0&&C(Tn)),o===e&&(i.charCodeAt(r)===126?(o=Fa,r++):(o=e,I===0&&C(Hu)),o===e&&(i.charCodeAt(r)===46?(o=we,r++):(o=e,I===0&&C($e)),o===e&&(i.charCodeAt(r)===45?(o=tr,r++):(o=e,I===0&&C(Wr)),o===e&&(i.charCodeAt(r)===33?(o=ri,r++):(o=e,I===0&&C(xn)),o===e&&(i.charCodeAt(r)===36?(o=Ts,r++):(o=e,I===0&&C(Ri)),o===e&&(i.charCodeAt(r)===38?(o=uu,r++):(o=e,I===0&&C(Xu)),o===e&&(i.charCodeAt(r)===39?(o=Di,r++):(o=e,I===0&&C(ui)),o===e&&(i.charCodeAt(r)===40?(o=W,r++):(o=e,I===0&&C(le)),o===e&&(i.charCodeAt(r)===41?(o=M,r++):(o=e,I===0&&C(ue)),o===e&&(i.charCodeAt(r)===42?(o=z,r++):(o=e,I===0&&C(Qr)),o===e&&(i.charCodeAt(r)===43?(o=Nr,r++):(o=e,I===0&&C(mt)),o===e&&(i.charCodeAt(r)===44?(o=Me,r++):(o=e,I===0&&C(ke)),o===e&&(i.charCodeAt(r)===59?(o=ur,r++):(o=e,I===0&&C(Jt)),o===e&&(i.charCodeAt(r)===58?(o=Yt,r++):(o=e,I===0&&C(Rr)),o===e&&(i.charCodeAt(r)===61?(o=Tr,r++):(o=e,I===0&&C(kt)),o===e&&(i.charCodeAt(r)===47?(o=rr,r++):(o=e,I===0&&C(Mr)),o===e&&(i.charCodeAt(r)===63?(o=pt,r++):(o=e,I===0&&C(Fs)),o===e&&(i.charCodeAt(r)===35?(o=fn,r++):(o=e,I===0&&C(ds)),o===e&&(i.charCodeAt(r)===64?(o=Ua,r++):(o=e,I===0&&C(yi)),o===e&&(i.charCodeAt(r)===37?(o=pn,r++):(o=e,I===0&&C(gs)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let ph={};function n(t,u){return!!(t.type==="Var"&&t.varType===u.varType&&t.varname===u.varname||t.iriref&&t.iriref===u.iriref||t.type==="PrefixedName"&&t.pn_prefix===u.pn_prefix&&t.pn_local===u.pn_local)}if(Io=L(),Io!==e&&r===i.length)return Io;throw Io!==e&&r<i.length&&C(vg()),Up(hl,It<i.length?i.charAt(It):null,It<i.length?_s(It,It+1):_s(It,It))}var Fo,Ra,Pn,_m=" ",Id=0;function Nd(i,m=2){if(_m=" ".repeat(m),Fo=[],Ra=i.comments,Pn="",i.headers&&Qe(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?Qe(`BASE <${e.iriref}>`):Qe(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),Qe("")),i.selectQuery)M1(i.selectQuery);else if(i.constructQuery)W1(i.constructQuery);else if(i.askQuery)G1(i.askQuery);else if(i.describeQuery)B1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Fo[Fo.length-1]+=` ;
|
|
79
|
+
`),V1(i.update[e]);for(i.values&&Xm(i.values);Ra&&Ra.length;)Fo[Fo.length-1]+=Ra.shift().text;return Fo.join(`
|
|
80
|
+
`)}var As=(i=1)=>{Pn+=_m.repeat(i)},Ns=(i=1)=>{Pn=Pn.substr(0,Pn.length-_m.length*i)},Qe=i=>{Fo.push(Pn+i)},Or=(i,m)=>{for(;Ra&&Ra.length&&Ra[0].pos<m;)Fo[Fo.length-1]+=Ra.shift().text;Qe(i)},G1=i=>{Qe("ASK {");let m=Ui(i.where);Or("}",m+1),Gh(i)},B1=i=>{let m=i.describe.map(ir).join(" ");if(Qe(`DESCRIBE ${m}`),Hm(i.from),i.where){Qe("WHERE {");let e=Ui(i.where);Or("}",e+1)}Gh(i)},V1=i=>{if(i.type==="insertdata")Qe("INSERT DATA {"),As(),Go(i.insert),Ns(),Qe("}");else if(i.type==="deletedata")Qe("DELETE DATA {"),As(),Go(i.delete),Ns(),Qe("}");else if(i.type==="deletewhere")Qe("DELETE WHERE {"),As(),Go(i.delete),Ns(),Qe("}");else if(i.type==="modify"){i.with&&Qe(`WITH ${ir(i.with)}`),i.delete&&(Qe("DELETE {"),As(),Go(i.delete),Ns(),Qe("}")),i.insert&&(Qe("INSERT {"),As(),Go(i.insert),Ns(),Qe("}")),i.using&&i.using.forEach(e=>{Qe(`USING ${D1(e)}`)}),Qe("WHERE {");let m=Ui(i.where);Or("}",m+1)}else if(i.type==="add"){let m=$f(i.graphs[0]),e=$f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`ADD${N}${m} TO ${e}`)}else if(i.type==="move"){let m=$f(i.graphs[0]),e=$f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`MOVE${N}${m} TO ${e}`)}else if(i.type==="copy"){let m=$f(i.graphs[0]),e=$f(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),Qe(`COPY${N}${m} TO ${e}`)}else if(i.type==="load"){let m=" ";i.silent&&(m=" SILENT "),Qe(`LOAD${m}${es(i.sourceGraph)}`)}else if(i.type==="clear"){let m=" ";i.silent&&(m=" SILENT "),Qe(`CLEAR${m}${KI(i.destinyGraph)}`)}else if(i.type==="drop"){let m=" ";i.silent&&(m=" SILENT "),Qe(`DROP${m}${KI(i.destinyGraph)}`)}else if(i.type==="create"){let m=" ";i.silent&&(m=" SILENT "),Qe(`CREATE${m}GRAPH ${es(i.destinyGraph)}`)}},D1=i=>i.named?`NAMED ${es(i.iri)}`:es(i.iri),$f=i=>i==="default"?"DEFAULT":es(i),KI=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${es(i)}`,Ui=(i,m=0)=>(As(),i.type==="SubSelect"?(Qm(i),m=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{eA(e),m=e.location.end.offset}):i.forEach(e=>{eA(e),m=e.location.end.offset}),Ns(),m),M1=i=>{let m=i.selectClause.location.start.offset;Or(rA(i.selectClause),m);let e=i.selectClause.location.end.offset,N=Hm(i.selectClause.from);N>e&&(e=N),Or("WHERE {",e+1),e=Ui(i.whereClause,e),Or("}",e+1),Gh(i)},Qm=i=>{let m=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;Or(rA(i.selectClause),m),Or("WHERE {",e+1),e=Ui(i.whereClause,e),Or("}",e+1),i.values&&Xm(i.values),Gh(i)},Hm=i=>{if(i){let m;return i.forEach(e=>{e.graph?m=Z1(e.graph):e.namedGraph&&(m=P1(e.namedGraph))}),m}},Gh=i=>{i.group&&Qe(k1(i.group)),i.having&&Qe(`HAVING ${Sr(i.having[0])}`),i.orderBy&&Qe("ORDER BY "+Q1(i.orderBy)),i.limitOffset?.forEach(m=>{m.limit?Qe(`LIMIT ${m.limit}`):m.offset&&Qe(`OFFSET ${m.offset}`)})},W1=i=>{i.template?(Or("CONSTRUCT {",i.location.start.offset),As(),Go(i.template.triplePattern),Ns(),Qe("}")):Qe("CONSTRUCT"),Hm(i.from),Qe("WHERE {");let m=Ui(i.where);Or("}",m+1),Gh(i)},Z1=i=>{let m=es(i);if(m!=null){let e=i.location.start.offset,N=i.location.end.offset;return Or("FROM "+m,e),N}},P1=i=>{let m=es(i);if(m!=null){let e=i.location.start.offset,N=i.location.end.offset;return Or("FROM NAMED "+m,e),N}},eA=i=>{if(Id=i.location.start.offset,i.type==="SubSelect"){Qe("{"),As(),Qm(i),Ns(),Qe("}");return}if(i.graphPattern&&i.graph){Or(`GRAPH ${ir(i.graph)} {`,Id);let m=Ui(i);Or("}",m+1);return}if(i.graphPattern){Qe("{");let m=Ui(i);Or("}",m+1);return}if(i.data){Xm(i);return}if(i.triplePattern){Go(i.triplePattern);return}if(i.union){for(let m=0;m<i.union.length;m++)m>0&&Qe("UNION"),Qe("{"),Ui(i.union[m]),Or("}",i.union[m].location.end.offset+2);return}if(i.optional){Or("OPTIONAL {",Id);let m=Ui(i.optional);Or("}",m+1);return}if(i.minus){Or("MINUS {",Id);let m=Ui(i.minus);Or("}",m+1);return}if(i.filter){H1(i);return}if(i.bind){Qe(`BIND (${Sr(i.bind)} AS ${Kl(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let m=" ";i.silent&&(m=" SILENT "),Qe(`SERVICE${m}${ir(i.service)} {`),i.pattern.type==="SubSelect"?(As(),Qm(i.pattern),Ns()):Ui(i.pattern),Qe("}");return}if(i.functionRef){let m=i.args.map(Sr).join(", ");Qe(es(i.functionRef)+`(${m})`)}},k1=i=>{let m=["GROUP BY"],e=0;return i.forEach(N=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=ir(N)}),m.join(`
|
|
81
|
+
`)},Q1=i=>{let m=[];return i.forEach(e=>{let N;e.type==="Var"?N=Kl(e):N=Sr(e),e.asc?m.push(`ASC${N}`):e.desc?m.push(`DESC${N}`):m.push(N)}),m.join(" ")},rA=i=>{let m=[];m[0]="SELECT",i.distinct&&(m[0]+=" DISTINCT"),i.reduced&&(m[0]+=" REDUCED");let e=0;return i.var.forEach(N=>{m[e].length>80?(e++,m[e]=" "):m[e]+=" ",m[e]+=_1(N)}),m.join(`
|
|
82
|
+
`)},_1=i=>{if(i.varname)return Kl(i);if(i.as)return`(${Sr(i.expression)} AS ${Kl(i.as)})`;if(i==="*")return"*"},H1=i=>{if(i.filter.notexists){Qe("FILTER NOT EXISTS {");let m=Ui(i.filter.notexists);Or("}",m+1)}else if(i.filter.exists){Qe("FILTER EXISTS {");let m=Ui(i.filter.exists);Or("}",m+1)}else Or(`FILTER ${Sr(i.filter)}`,i.location.start.offset)},Go=i=>{i.forEach(m=>{m.graph?(Or(`GRAPH ${ir(m.graph)} {`,m.graph.location.start.offset),As(),Go(m.triplePattern),Ns(),Qe("}")):m.triplePattern?Go(m.triplePattern):m.properties?X1(m):Or(`[${$1(m.subject.blankNodeProperties)}] .`,m.subject.location.start.offset)})},X1=i=>{let m=ir(i.subject),e,N;i.properties.forEach(R=>{e?(Or(`${e} ;`,N),e=" ".repeat(m.length)+` ${ir(R.predicate)} ${ir(R.objects)}`,R.predicate.location?N=R.predicate.location.start.offset:N=R.predicate.value.location.start.offset):(e=`${m} ${ir(R.predicate)} ${ir(R.objects)}`,N=i.subject.location.start.offset)}),Or(`${e} .`,N)},Ad=i=>{let m="";return i.forEach(e=>{m&&(m+=" "),e.graph?(m+=`GRAPH ${ir(e.graph)} { `,m+=Ad(e.triplePattern),m+=" }"):e.triplePattern?m+=Ad(e.triplePattern):(m+=Y1(e),(i.length>1||e.properties.length>1)&&(m+=" ."))}),m},Y1=i=>{let m=ir(i.subject),e;return i.properties.forEach(N=>{e?e+=` ; ${ir(N.predicate)} ${ir(N.objects)}`:e=`${m} ${ir(N.predicate)} ${ir(N.objects)}`}),e},J1=(i,m)=>{if(i.length===1&&!m){let R=i[0];return` ${ir(R.predicate)} ${ir(R.objects)}`}As();let e="",N=Pn+" ".repeat(2);return i.forEach(R=>{e?(e+=` ;
|
|
77
83
|
`,e+=`${N} ${ir(R.predicate)} ${ir(R.objects,!0)}`):(e+=`
|
|
78
84
|
${N}`,e+=` ${ir(R.predicate)} ${ir(R.objects,!0)}`)}),e+=`
|
|
79
|
-
${Pn}`,
|
|
80
|
-
`,
|
|
81
|
-
${e}`,
|
|
82
|
-
${Pn}`,
|
|
85
|
+
${Pn}`,Ns(),e},$1=i=>{if(i.length===1){let N=i[0];return` ${ir(N.predicate)} ${ir(N.objects)} `}let m="",e=Pn+" ".repeat(2);return i.forEach(N=>{m?(m+=` ;
|
|
86
|
+
`,m+=`${e}${ir(N.predicate)} ${ir(N.objects,!0)}`):(m+=`
|
|
87
|
+
${e}`,m+=`${ir(N.predicate)} ${ir(N.objects,!0)}`)}),m+=`
|
|
88
|
+
${Pn}`,m},z1=i=>{let m=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=Sr(i.expression),`COUNT(${m}${e})`}else{if(i.aggregateType==="sum")return`sum(${m}${Sr(i.expression)})`;if(i.aggregateType==="min")return`MIN(${m}${Sr(i.expression)})`;if(i.aggregateType==="max")return`MAX(${m}${Sr(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${m}${Sr(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${m}${Sr(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${tA(i.separator)}`),`GROUP_CONCAT(${m}${Sr(i.expression)}${e})`}}},Sr=i=>{if(i.functionRef)return es(i.functionRef)+"("+i.args.map(Sr).join(", ")+")";if(i.exists)return`EXISTS { ${Ad(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${Ad(i.notexists)} }`;switch(i.expressionType){case"atomic":return Zn(ir(i.value),i.bracketted);case"irireforfunction":let m=es(i.iriref);return i.args&&(m+="("+i.args.map(Sr).join(", ")+")"),Zn(m,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(ir).join(", ")),Zn(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let N=i.unaryexpression+Sr(i.expression);return Zn(N,i.bracketted);case"aggregate":return z1(i);case"multiplicativeexpression":let R=Sr(i.first);return i.rest.forEach(H=>{R+=" "+H.operator+" "+Sr(H.expression)}),Zn(R,i.bracketted);case"additiveexpression":let L=Sr(i.op1);return i.ops.forEach(H=>{L+=" "+H.operator+" "+Sr(H.expression)}),Zn(L,i.bracketted);case"relationalexpression":let O=Sr(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?O+="("+i.op2.map(ir).join(", ")+")":O+=Sr(i.op2),Zn(O,i.bracketted);case"aliasedexpression":let D=Sr(i.expression);return i.as&&(D+=` AS ${Kl(i.as)}`),Zn(D,i.bracketted);case"conditionaland":return Zn(i.operands.map(Sr).join(" && "),i.bracketted);case"conditionalor":return Zn(i.operands.map(Sr).join(" || "),i.bracketted);case"regex":let Z=Sr(i.text);return Z+=", "+Sr(i.pattern),i.flags&&(Z+=", "+Sr(i.flags)),`regex(${Z})`}},Zn=(i,m)=>m?`(${i})`:i,Xm=i=>{if(i.oneVar){let m=ir(i.oneVar),e=i.data.map(ir).join(" ");Qe(`VALUES ${m} { ${e} }`)}else if(i.variables){let m=i.variables.map(Kl).join(" ");if(i.variables.length===1){let e=i.data.map(N=>"("+N.map(ir).join(" ")+")").join(" ");Qe(`VALUES (${m}) { ${e} }`)}else Qe(`VALUES (${m}) {`),As(),i.data.map(e=>{Qe("("+e.map(ir).join(" ")+")")}),Ns(),Qe("}")}},ir=(i,m=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(N=>ir(N,m)).join(", ");if(i.varname)return Kl(i);if(i.collection)return`( ${i.collection.map(R=>ir(R)).join(" ")} )`;if(i.hasOwnProperty("literal"))return tA(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return Sr(i);if(i.blankNodeProperties)return`[${J1(i.blankNodeProperties,m)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=es(i)),i.alternative?e+=i.alternative.map(N=>ir(N)).join("|"):i.sequence&&(e+=i.sequence.map(N=>ir(N)).join("/")),i.bracketted&&(e=`(${e})`),i.modifier&&(e+=i.modifier),e},tA=i=>{if(i.dataType==="http://www.w3.org/2001/XMLSchema#decimal")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#double")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#integer")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#boolean")return i.literal;let m=i.quote+i.literal+i.quote;return i.dataType?m+=`^^${es(i.dataType)}`:i.lang&&(m+="@"+i.lang),m},es=i=>{if(i.iriref)return`<${i.iriref}>`;if(i.pn_prefix&&i.pn_local)return`${i.pn_prefix}:${i.pn_local}`;if(i.pn_prefix)return`${i.pn_prefix}:`;if(i.pn_local)return`:${i.pn_local}`;if(i.a)return"a"},Kl=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var en="",Jm;function iA(i,m=4){Jm=" ".repeat(m);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
|
|
83
89
|
|
|
84
90
|
`,e+=`[]
|
|
85
|
-
`+
|
|
86
|
-
`,e}function
|
|
87
|
-
`)}function
|
|
88
|
-
`);return
|
|
89
|
-
`+e.join(
|
|
90
|
-
`)+
|
|
91
|
-
`+
|
|
92
|
-
`+
|
|
93
|
-
`),
|
|
94
|
-
`+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){this.queryBtn&&(this.config.queryingDisabled?(
|
|
95
|
-
`,
|
|
96
|
-
`+H,
|
|
97
|
-
`).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,R=Math.min(e,N),
|
|
98
|
-
`,e.forEach(function(
|
|
91
|
+
`+Ym(i)+` .
|
|
92
|
+
`,e}function Ym(i){let m=[];return q1(),Object.keys(i).forEach(e=>{if(e==="type")m.push(en+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")m.push(j1(e,i[e]));else{let N=i[e];typeof N=="string"&&(N=JSON.stringify(N)),m.push(en+`:${e} ${N}`)}}}),K1(),m.join(` ;
|
|
93
|
+
`)}function j1(i,m){if(Array.isArray(m)){let e=m.map(N=>Ym(N)+`
|
|
94
|
+
`);return en+`:${i} [
|
|
95
|
+
`+e.join(en+`], [
|
|
96
|
+
`)+en+"]"}else return en+`:${i} [
|
|
97
|
+
`+Ym(m)+`
|
|
98
|
+
`+en+"]"}var q1=(i=1)=>{en+=Jm.repeat(i)},K1=(i=1)=>{en=en.substr(0,en.length-Jm.length*i)};var eL=(i,m="default",e=2)=>{switch(m){case"default":return Nd(Fh(i),e);case"compact":return Nd(km(i),e);case"turtle":return iA(Fh(i),e);case"jsonld":return JSON.stringify(Fh(i),rL,e);default:throw new Error(`Unsupported formatting mode: ${m}`)}};function rL(i,m){if(i!=="location")return m}var $m={parseSparql:Fh,parseSparqlAsCompact:km,formatAst:Nd,format:eL};typeof window<"u"&&(window.spfmt=$m);var tL=3e3,iL=4e3,sL=500,nL=300,Vr=class Vr extends Ta{constructor(e,N={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",e.appendChild(this.rootEl),this.config=Nm({},Vr.defaults,N,(O,D)=>{if(Array.isArray(D))return D});let R=Ta(this.rootEl,this.config);for(let O of Object.getOwnPropertyNames(Vr.prototype))R[O]=Vr.prototype[O].bind(this);Object.assign(this,Ta.prototype,R),this.storage=new _l(Vr.storageNamespace),this.drawButtons(),this.drawSnippetsBar();let L=this.getStorageId();if(L){let O=this.storage.get(L);O&&typeof O=="string"?this.persistentConfig={query:O,editorHeight:this.config.editorHeight}:this.persistentConfig=O,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}else this.persistentConfig?typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0):this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,autoformatOnQuery:!0};this.config.autocompleters.forEach(O=>this.enableCompleter(O).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.checkConstructVariables(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let e=this.getDoc().getCursor(),N=this.getTokenAt(e);N&&N.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(e,N,R){this.req=N,this.abortController=R,this.updateQueryButton()}handleQueryResponse(e,N,R){this.lastQueryDuration=R,this.req=void 0,this.updateQueryButton()}handleQueryAbort(e,N){this.req=void 0,this.updateQueryButton()}registerEventListeners(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}unregisterEventListeners(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}emit(e,...N){Ta.signal(this,e,this,...N)}getStorageId(e){let N=e||this.config.persistenceId;if(N)return typeof N=="string"?N:N(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let O=this.config.pluginButtons();if(!O)return;if(Array.isArray(O))for(let D of O)e.append(D);else e.appendChild(O)}if(this.config.createShareableLink){var N=Cs($C);let O=document.createElement("button");O.className="yasqe_share",O.title="Share query",O.setAttribute("aria-label","Share query"),O.appendChild(N),e.appendChild(O),O.addEventListener("click",Z=>D(Z)),O.addEventListener("keydown",Z=>{Z.code==="Enter"&&D(Z)});let D=Z=>{Z.stopPropagation();let H=document.createElement("div");H.className="yasqe_sharePopup",e.appendChild(H);let Q,W,$=(fe,ye=tL,Re="info")=>{if(Q&&Q.remove(),W!==void 0&&clearTimeout(W),Q=document.createElement("div"),Q.className=Re==="warning"?"yasqe_toast yasqe_toast-warning":"yasqe_toast",Re==="warning"){let Ve=document.createElement("span");Ve.className="yasqe_toast-icon";let Je=Cs(Oh);Ve.appendChild(Je),Q.appendChild(Ve)}let Le=document.createElement("span");Le.className="yasqe_toast-message",Le.textContent=fe,Q.appendChild(Le),document.body.appendChild(Q),W=window.setTimeout(()=>{Q&&(Q.classList.add("yasqe_toast-fadeout"),setTimeout(()=>{Q?.remove(),Q=void 0},nL))},ye)},M=fe=>{H&&fe.target!==H&&!H.contains(fe.target)&&(H.remove(),H=void 0,Q&&(Q.remove(),Q=void 0),W!==void 0&&clearTimeout(W),document.body.removeEventListener("click",M,!0))};document.body.addEventListener("click",M,!0),H.innerHTML="";let z=async(fe,ye,Re=!1)=>{try{if(!navigator.clipboard||!navigator.clipboard.writeText){let Le=document.createElement("textarea");Le.value=fe,Le.style.position="fixed",Le.style.left="-999999px",document.body.appendChild(Le),Le.select();try{document.execCommand("copy"),document.body.removeChild(Le),$(`${ye} copied to clipboard!`)}catch{throw document.body.removeChild(Le),new Error("Copy command not supported")}}else await navigator.clipboard.writeText(fe),$(`${ye} copied to clipboard!`);Re&&setTimeout(()=>{$("Warning: Authentication credentials included in copied content",iL,"warning")},sL)}catch(Le){console.error("Failed to copy to clipboard:",Le),$("Failed to copy to clipboard. Please copy manually.",2e3)}},Y=document.createElement("div");Y.className="yasqe_sharePopup_title",Y.textContent="Share Query",H.appendChild(Y);let B=document.createElement("div");B.className="yasqe_sharePopup_buttons",H.appendChild(B);let V=document.createElement("button");V.innerText="Copy URL",V.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(V),V.onclick=async()=>{let fe=this.config.createShareableLink(this);await z(fe,"URL")};let X=this.config.createShortLink;if(X){let fe=document.createElement("button");fe.innerText="Shorten URL",fe.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(fe),fe.onclick=async()=>{fe.disabled=!0,fe.innerText="Shortening...";try{let ye=this.config.createShareableLink(this),Re=await X(this,ye);await z(Re,"Shortened URL"),fe.innerText="Shorten URL",fe.disabled=!1}catch(ye){fe.innerText="Shorten URL",fe.disabled=!1;let Re="Failed to shorten URL";typeof ye=="string"&&ye.length!==0?Re=ye:ye.message&&ye.message.length!==0&&(Re=ye.message),$(Re,3e3)}}}let q=document.createElement("button");q.innerText="Copy cURL",q.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(q),q.onclick=async()=>{let fe=this.getAsCurlString(),ye=this.hasAuthenticationCredentials();await z(fe,"cURL command",ye)};let te=document.createElement("button");te.innerText="Copy PowerShell",te.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(te),te.onclick=async()=>{let fe=this.getAsPowerShellString(),ye=this.hasAuthenticationCredentials();await z(fe,"PowerShell command",ye)};let ie=document.createElement("button");ie.innerText="Copy wget",ie.className="yasqe_btn yasqe_btn-sm yasqe_shareBtn",B.appendChild(ie),ie.onclick=async()=>{let fe=this.getAsWgetString(),ye=this.hasAuthenticationCredentials();await z(fe,"wget command",ye)};let ae=()=>{if(!H)return;let fe=N.getBoundingClientRect();H.style.top=N.offsetTop+fe.height+"px",H.style.left=N.offsetLeft+N.clientWidth-H.clientWidth+"px"};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(ae):setTimeout(ae,0)}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Ar(this.queryBtn,"yasqe_queryButton");let O=Cs(JC);Ar(O,"queryIcon"),this.queryBtn.appendChild(O);let D=Cs(Oh);Ar(D,"warningIcon"),this.queryBtn.appendChild(D),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.showFormatButton){let O=document.createElement("button");Ar(O,"yasqe_formatButton");let D=Cs(qC);Ar(D,"formatIcon"),O.appendChild(D),O.onclick=()=>{this.format()},O.title="Format query (Shift+Ctrl+F)",O.setAttribute("aria-label","Format query"),e.appendChild(O)}this.fullscreenBtn=document.createElement("button"),Ar(this.fullscreenBtn,"yasqe_fullscreenButton");let R=Cs(zC);Ar(R,"fullscreenIcon"),this.fullscreenBtn.appendChild(R);let L=Cs(jC);Ar(L,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(L),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Ar(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(Nh(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}insertSnippet(e){let N=this.getDoc(),R=N.getCursor();N.replaceRange(e,R);let L=e.split(`
|
|
99
|
+
`),O=L[L.length-1];N.setCursor({line:R.line+L.length-1,ch:L.length===1?R.ch+O.length:O.length}),this.focus()}drawSnippetsBar(){if(!(this.config.showSnippetsBar&&this.config.snippets.length>0)){this.snippetsBar&&(this.snippetsBar.remove(),this.snippetsBar=void 0);return}if(!this.snippetsBar){this.snippetsBar=document.createElement("div"),Ar(this.snippetsBar,"yasqe_snippetsBar");let M=this.getWrapperElement();M.parentElement?.insertBefore(this.snippetsBar,M)}this.snippetsBar.innerHTML="";let N=this.config.snippets,R=document.createElement("div");Ar(R,"yasqe_snippetsVisible");let L=[],O={},D=[];N.forEach(M=>{M.group?(O[M.group]||(O[M.group]=[]),O[M.group].push(M)):D.push(M)}),Object.keys(O).forEach(M=>{let z=document.createElement("div");Ar(z,"yasqe_snippetDropdown");let Y=document.createElement("button");Ar(Y,"yasqe_snippetDropdownButton"),Y.textContent=M+" ";let B=Cs(Fm);Ar(B,"chevronIcon"),Y.appendChild(B),Y.setAttribute("aria-label",`${M} snippets`),Y.setAttribute("aria-expanded","false");let V=document.createElement("div");Ar(V,"yasqe_snippetDropdownContent"),V.setAttribute("role","menu"),O[M].forEach(X=>{let q=document.createElement("button");Ar(q,"yasqe_snippetDropdownItem"),q.textContent=X.label,q.title=X.code,q.setAttribute("role","menuitem"),q.onclick=()=>{this.insertSnippet(X.code),V.style.display="none",Y.setAttribute("aria-expanded","false")},V.appendChild(q)}),Y.onclick=X=>{X.stopPropagation();let q=V.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(ae=>{ae.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(ae=>ae.setAttribute("aria-expanded","false")),q||(V.style.display="block",Y.setAttribute("aria-expanded","true"))},z.appendChild(Y),z.appendChild(V),L.push(z)}),D.forEach(M=>{let z=document.createElement("button");Ar(z,"yasqe_snippetButton"),z.textContent=M.label,z.title=M.code,z.setAttribute("aria-label",`Insert ${M.label} snippet`),z.onclick=()=>this.insertSnippet(M.code),L.push(z)}),L.forEach(M=>R.appendChild(M)),this.snippetsBar.appendChild(R);let Z=document.createElement("div");Ar(Z,"yasqe_snippetDropdown","yasqe_showMore"),Z.style.display="none";let H=document.createElement("button");Ar(H,"yasqe_snippetDropdownButton","yasqe_showMoreButton"),H.textContent="More ";let Q=Cs(Fm);Ar(Q,"chevronIcon"),H.appendChild(Q),H.setAttribute("aria-label","Show more snippets"),H.setAttribute("aria-expanded","false");let W=document.createElement("div");Ar(W,"yasqe_snippetDropdownContent","yasqe_showMoreContent"),W.setAttribute("role","menu"),H.onclick=M=>{M.stopPropagation();let z=W.style.display==="block";this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(V=>{V!==W&&(V.style.display="none")}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(V=>{V!==H&&V.setAttribute("aria-expanded","false")}),z?(W.style.display="none",H.setAttribute("aria-expanded","false")):(W.style.display="block",H.setAttribute("aria-expanded","true"))},Z.appendChild(H),Z.appendChild(W),this.snippetsBar.appendChild(Z);let $=()=>{if(!this.snippetsBar)return;let Y=this.snippetsBar.offsetWidth-80-20,B=0,V=[];L.forEach((X,q)=>{let te=X.offsetWidth+5;if(B+te>Y&&q>0)if(X.style.display="none",X.classList.contains("yasqe_snippetDropdown")){let ae=X.querySelector(".yasqe_snippetDropdownButton")?.textContent?.trim().replace(" ","")||"Group";V.push({element:X,groupName:ae})}else{let ie=D.find(ae=>ae.label===X.textContent);V.push({element:X,snippet:ie})}else B+=te}),V.length>0&&(Z.style.display="inline-block",V.forEach(({element:X,snippet:q,groupName:te})=>{if(te){let ie=document.createElement("div");Ar(ie,"yasqe_snippetGroupHeader"),ie.textContent=te,W.appendChild(ie),X.querySelectorAll(".yasqe_snippetDropdownItem").forEach(fe=>{let ye=fe.cloneNode(!0);ye.onclick=fe.onclick,W.appendChild(ye)})}else if(q){let ie=document.createElement("button");Ar(ie,"yasqe_snippetDropdownItem"),ie.textContent=q.label,ie.title=q.code,ie.setAttribute("role","menuitem"),ie.onclick=()=>{this.insertSnippet(q.code),W.style.display="none",H.setAttribute("aria-expanded","false")},W.appendChild(ie)}}))};requestAnimationFrame($),this.snippetsResizeHandler&&window.removeEventListener("resize",this.snippetsResizeHandler),this.snippetsResizeHandler=()=>{this.snippetsBar&&(L.forEach(M=>M.style.display=""),Z.style.display="none",W.innerHTML="",requestAnimationFrame($))},window.addEventListener("resize",this.snippetsResizeHandler),this.snippetsClickHandler&&document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=M=>{this.snippetsBar&&!this.snippetsBar.contains(M.target)&&(this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownContent").forEach(B=>{B.style.display="none"}),this.snippetsBar.querySelectorAll(".yasqe_snippetDropdownButton").forEach(B=>B.setAttribute("aria-expanded","false")))},document.addEventListener("click",this.snippetsClickHandler)}drawResizer(){if(this.horizontalResizeWrapper)return;this.horizontalResizeWrapper=document.createElement("div"),Ar(this.horizontalResizeWrapper,"horizontalResizeWrapper");let e=document.createElement("div");Ar(e,"horizontalResizeChip"),this.horizontalResizeWrapper.appendChild(e),this.horizontalResizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.horizontalResizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,N){let R=0;N.offsetParent&&(R=N.offsetParent.offsetTop);let L=0,O=N.parentElement;for(;O;)L+=O.scrollTop,O=O.parentElement;return e.clientY-R-this.rootEl.offsetTop+L}doDrag(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let N=this.getDoc().getLine(e.line);this.getDoc().replaceRange(N+`
|
|
100
|
+
`+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){this.queryBtn&&(this.config.queryingDisabled?(Ar(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(Nh(this.queryBtn,"query_disabled"),this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query")),e||(e=this.queryValid?"valid":"error"),e!=this.queryStatus&&(Nh(this.queryBtn,"query_"+this.queryStatus),Ar(this.queryBtn,"query_"+e),this.queryStatus=e),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),Vr.clearStorage()}saveQuery(){let e=this.getStorageId();!e||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}getVariablesFromQuery(){let e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),N=[];for(var R in e.state.variables)N.push(R);return N.sort()}autoformatSelection(e,N){var R=this.getValue();return R=R.substring(e,N),Vr.autoformatString(R)}static autoformatString(e){var N=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],R=["}"],L=function(H){if(H==="{"||H===".")return 1;if(H===";")return Z.length>2&&Z[Z.length-2]==="punc"?0:1;for(var Q=0;Q<N.length;Q++)if(Z.valueOf().toString()===N[Q].valueOf().toString())return 1;for(var Q=0;Q<R.length;Q++)if(D.trim()!==""&&H==R[Q])return-1;return 0},O="",D="",Z=[];return Vr.runMode(e,"sparql11",function(H,Q){Z.push(Q);var W=L(H);W!=0?(W==1?(O+=H+`
|
|
101
|
+
`,D=""):(O+=`
|
|
102
|
+
`+H,D=H),Z=[]):(D+=H,O+=H),Z.length==1&&Z[0]=="sp-ws"&&(Z=[])}),O.replace(/\n\s*\n/g,`
|
|
103
|
+
`).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,R=Math.min(e,N),L=Math.max(e,N),O=!0,D=R;D<=L;D++){var Z=this.getDoc().getLine(D),H=Z.trimStart();if(Z.length>0&&(H.length===0||H.substring(0,1)!=="#")){O=!1;break}}for(var D=R;D<=L;D++){var Z=this.getDoc().getLine(D),H=Z.trimStart(),Q=Z.length-H.length;if(O&&H.length>0){var W=Z.indexOf("#");if(W>=0){var $=1;W+1<Z.length&&Z.charAt(W+1)===" "&&($=2),this.getDoc().replaceRange("",{line:D,ch:W},{line:D,ch:W+$})}}else!O&&Z.length>0&&this.getDoc().replaceRange("# ",{line:D,ch:Q})}}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start");var N={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},R=this.getDoc().indexFromPos(e),L=this.getDoc().indexFromPos(N);let O=this.autoformatSelection(R,L);this.operation(()=>{this.getDoc().replaceRange(O,e,N);for(var D=this.getDoc().posFromIndex(R).line,Z=this.getDoc().posFromIndex(R+O.length).line,H=D;H<=Z;H++)this.indentLine(H,"smart")})}formatQuery(){try{let e=this.getValue(),N=$m.format(e);this.setValue(N),this.collapsePrefixes(!0)}catch(e){console.warn("Failed to format SPARQL query using sparql-formatter. This may be due to syntax errors in the query. Falling back to legacy formatter.",e),this.autoformat()}}format(){(this.persistentConfig?.formatterType||"sparql-formatter")==="legacy"?this.autoformat():this.formatQuery()}getQueryWithValues(e){if(!e)return this.getValue();var N;if(typeof e=="string")N=e;else{e instanceof Array||(e=[e]);var R=e.reduce(function(Q,W){for(var $ in W)Q[$]=$;return Q},{}),L=[];for(var O in R)L.push(O);if(!L.length)return this.getValue();N="VALUES ("+L.join(" ")+`) {
|
|
104
|
+
`,e.forEach(function(Q){N+="( ",L.forEach(function(W){N+=Q[W]||"UNDEF"}),N+=` )
|
|
99
105
|
`}),N+=`}
|
|
100
|
-
`}if(!N)return this.getValue();var
|
|
101
|
-
`+N)}),
|
|
106
|
+
`}if(!N)return this.getValue();var D="",Z=!1,H=!1;return Vr.runMode(this.getValue(),"sparql11",function(Q,W,$,M,z){W==="keyword"&&Q.toLowerCase()==="select"&&(H=!0),D+=Q,H&&!Z&&W==="punc"&&Q==="{"&&(Z=!0,D+=`
|
|
107
|
+
`+N)}),D}getValueWithoutComments(){var e="";return Vr.runMode(this.getValue(),"sparql11",function(N,R){R!="comment"&&(e+=N)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e,N=0;N<this.getDoc().lineCount();++N){var R=!1;this.prevQueryValid||(R=!0);var L=this.getTokenAt({line:N,ch:this.getDoc().getLine(N).length},R),e=L.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let Q=this.getWrapperElement().querySelectorAll(".sp-error");for(let W=0;W<Q.length;W++){var O=Q[W];O.style&&(O.style.color="black")}return}let H=Cs(Oh);if(e.errorMsg)bh(this,H,wh(L.state.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){var D=[];e.possibleCurrent.forEach(function(Q){D.push("<strong style='text-decoration:underline'>"+wh(Q)+"</strong>")}),bh(this,H,"This line is invalid. Expected: "+D.join(", "))}H.className="parseErrorIcon",this.setGutterMarker(N,"gutterErrorBar",H),this.queryValid=!1;break}}}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),R=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,L=[];for(let O in R.constructVariables)R.whereVariables[O]||L.push(O);if(L.length!==0)for(let O=0;O<this.getDoc().lineCount();++O){let Z=this.getTokenAt({line:O,ch:this.getDoc().getLine(O).length},!0).state;if(Z.queryType==="CONSTRUCT"&&Z.inConstructTemplate){let H=this.getDoc().getLine(O);for(let Q of L){let W=Q.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${W}(?![a-zA-Z0-9_])`).test(H)){let M=Cs(Oh);M.className="constructVariableWarning",bh(this,M,wh(`Variable ${Q} is used in CONSTRUCT but not defined in WHERE clause`)),this.setGutterMarker(O,"gutterConstructWarning",M);break}}}}}getCompleteToken(e,N){return qm(this,e,N)}getPreviousNonWsToken(e,N){return $E(this,e,N)}getNextNonWsToken(e,N){return Sf(this,e,N)}showNotification(e,N){if(!this.notificationEls[e]){let L=document.createElement("div");Ar(L,"notificationContainer"),this.getWrapperElement().appendChild(L),this.notificationEls[e]=document.createElement("div"),Ar(this.notificationEls[e],"notification","notif_"+e),L.appendChild(this.notificationEls[e])}for(let L in this.notificationEls)L!==e&&this.hideNotification(L);let R=this.notificationEls[e];Ar(R,"active"),R.innerText=N}hideNotification(e){this.notificationEls[e]&&Nh(this.notificationEls[e],"active")}setSnippetsBarVisible(e){this.config.showSnippetsBar=e,this.drawSnippetsBar()}getSnippetsBarVisible(){return this.config.showSnippetsBar&&this.config.snippets.length>0}refreshSnippetsBar(){this.drawSnippetsBar(),this.snippetsResizeHandler&&this.snippetsResizeHandler()}enableCompleter(e){return Vr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new md(this,Vr.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(N=>N!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(!this.getDoc().somethingSelected())for(let N in this.config.autocompleters){let R=this.autocompleters[this.config.autocompleters[N]];!R||R.autocomplete(e)}}collapsePrefixes(e=!0){let N=rv(this);N!==void 0&&this.foldCode(N,Ta.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return av(this)}addPrefixes(e){return nv(this,e)}removePrefixes(e){return ov(this,e)}updateWidget(){if(this.cursorCoords&&this.state.completionActive&&this.state.completionActive.widget){let e=this.cursorCoords(null).bottom;this.state.completionActive.widget.hints.style.top=e+"px"}}query(e){return this.config.queryingDisabled?Promise.reject("Querying is disabled."):(this.persistentConfig?.autoformatOnQuery&&this.format(),this.abortQuery(),Rm(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=bd.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=bd.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=bd.parse(window.location.hash)),e.query=this.getValue(),e}queryParamsToConfig(e){e&&e.query&&typeof e.query=="string"&&this.setValue(e.query)}getAsCurlString(e){return Lm(this,e)}getAsPowerShellString(e){return wm(this,e)}getAsWgetString(e){return Om(this,e)}hasAuthenticationCredentials(e){let N=zl(this,e);return N?Sm(N):!1}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.horizontalResizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.horizontalResizeWrapper?.removeEventListener("dblclick",this.expandEditor),this.snippetsClickHandler&&(document.removeEventListener("click",this.snippetsClickHandler),this.snippetsClickHandler=void 0);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new _l(Vr.storageNamespace).removeNamespace()}static registerAutocompleter(e,N=!0){let R=e.name;Vr.Autocompleters[R]=e,N&&Vr.defaults.autocompleters.indexOf(R)<0&&Vr.defaults.autocompleters.push(R)}static forkAutocompleter(e,N,R=!0){if(!Vr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!N?.name)throw new Error("Expected a name for newly registered autocompleter");let L=N.name;Vr.Autocompleters[L]={...Vr.Autocompleters[e],...N},R&&Vr.defaults.autocompleters.indexOf(L)<0&&Vr.defaults.autocompleters.push(L)}};Vr.storageNamespace="triply",Vr.Sparql=Um,Vr.runMode=Ta.runMode,Vr.Autocompleters={},Vr.defaults=Dm();var zf=Vr;Object.assign(Ta.prototype,zf.prototype);gI.forEach(i=>{zf.registerAutocompleter(i)});var oL=zf;return dA(aL);})();
|
|
102
108
|
/*! Bundled license information:
|
|
103
109
|
|
|
104
110
|
dompurify/dist/purify.es.mjs:
|