@matdata/yasqe 5.2.0 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +128 -144
- package/build/ts/grammar/tokenizer.d.ts +8 -0
- package/build/ts/grammar/tokenizer.js +21 -1
- package/build/ts/grammar/tokenizer.js.map +1 -1
- package/build/ts/src/defaults.d.ts +2 -0
- package/build/ts/src/defaults.js +4 -2
- package/build/ts/src/defaults.js.map +1 -1
- package/build/ts/src/imgs.d.ts +1 -0
- package/build/ts/src/imgs.js +1 -0
- package/build/ts/src/imgs.js.map +1 -1
- package/build/ts/src/index.d.ts +10 -0
- package/build/ts/src/index.js +104 -0
- package/build/ts/src/index.js.map +1 -1
- package/build/ts/src/prefixFold.js +2 -0
- package/build/ts/src/prefixFold.js.map +1 -1
- package/build/ts/src/prefixUtils.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 -46
- package/build/yasqe.min.js.map +4 -4
- package/grammar/_tokenizer-table.d.ts +9 -0
- package/grammar/tokenizer.ts +27 -1
- package/package.json +3 -2
- package/src/defaults.ts +4 -2
- package/src/imgs.ts +2 -0
- package/src/index.ts +145 -1
- package/src/prefixFold.ts +1 -0
- package/src/prefixUtils.ts +5 -2
- package/src/scss/buttons.scss +20 -0
- package/src/scss/yasqe.scss +12 -0
- package/src/sparql-formatter.d.ts +10 -0
package/build/yasqe.min.js
CHANGED
|
@@ -1,55 +1,93 @@
|
|
|
1
|
-
"use strict";var Yasqe=(()=>{var Sm=Object.create;var zo=Object.defineProperty;var Lm=Object.getOwnPropertyDescriptor;var Rm=Object.getOwnPropertyNames;var ym=Object.getPrototypeOf,bm=Object.prototype.hasOwnProperty;var Se=(n,s)=>()=>(s||n((s={exports:{}}).exports,s),s.exports),Tp=(n,s)=>{for(var a in s)zo(n,a,{get:s[a],enumerable:!0})},Ap=(n,s,a,u)=>{if(s&&typeof s=="object"||typeof s=="function")for(let h of Rm(s))!bm.call(n,h)&&h!==a&&zo(n,h,{get:()=>s[h],enumerable:!(u=Lm(s,h))||u.enumerable});return n};var ft=(n,s,a)=>(a=n!=null?Sm(ym(n)):{},Ap(s||!n||!n.__esModule?zo(a,"default",{value:n,enumerable:!0}):a,n)),Om=n=>Ap(zo({},"__esModule",{value:!0}),n);var Nt=Se((Fa,Ba)=>{(function(n,s){typeof Fa=="object"&&typeof Ba<"u"?Ba.exports=s():typeof define=="function"&&define.amd?define(s):(n=n||self,n.CodeMirror=s())})(Fa,function(){"use strict";var n=navigator.userAgent,s=navigator.platform,a=/gecko\/\d/i.test(n),u=/MSIE \d/.test(n),h=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(n),g=/Edge\/(\d+)/.exec(n),m=u||h||g,I=m&&(u?document.documentMode||6:+(g||h)[1]),T=!g&&/WebKit\//.test(n),G=T&&/Qt\/\d+\.\d+/.test(n),L=!g&&/Chrome\/(\d+)/.exec(n),V=L&&+L[1],y=/Opera\//.test(n),M=/Apple Computer/.test(navigator.vendor),F=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(n),S=/PhantomJS/.test(n),x=M&&(/Mobile\/\w+/.test(n)||navigator.maxTouchPoints>2),v=/Android/.test(n),C=x||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(n),R=x||/Mac/.test(s),B=/\bCrOS\b/.test(n),D=/win/i.test(s),w=y&&n.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(y=!1,T=!0);var Q=R&&(G||y&&(w==null||w<12.11)),de=a||m&&I>=9;function te(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var ue=function(e,t){var i=e.className,r=te(t).exec(i);if(r){var o=i.slice(r.index+r[0].length);e.className=i.slice(0,r.index)+(o?r[1]+o:"")}};function le(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function me(e,t){return le(e).appendChild(t)}function Y(e,t,i,r){var o=document.createElement(e);if(i&&(o.className=i),r&&(o.style.cssText=r),typeof t=="string")o.appendChild(document.createTextNode(t));else if(t)for(var l=0;l<t.length;++l)o.appendChild(t[l]);return o}function Oe(e,t,i,r){var o=Y(e,t,i,r);return o.setAttribute("role","presentation"),o}var Be;document.createRange?Be=function(e,t,i,r){var o=document.createRange();return o.setEnd(r||e,i),o.setStart(e,t),o}:Be=function(e,t,i){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch{return r}return r.collapse(!0),r.moveEnd("character",i),r.moveStart("character",t),r};function et(e,t){if(t.nodeType==3&&(t=t.parentNode),e.contains)return e.contains(t);do if(t.nodeType==11&&(t=t.host),t==e)return!0;while(t=t.parentNode)}function je(e){var t=e.ownerDocument||e,i;try{i=e.activeElement}catch{i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Le(e,t){var i=e.className;te(t).test(i)||(e.className+=(i?" ":"")+t)}function Tt(e,t){for(var i=e.split(" "),r=0;r<i.length;r++)i[r]&&!te(i[r]).test(t)&&(t+=" "+i[r]);return t}var At=function(e){e.select()};x?At=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:m&&(At=function(e){try{e.select()}catch{}});function Ae(e){return e.display.wrapper.ownerDocument}function Ct(e){return Ie(e.display.wrapper)}function Ie(e){return e.getRootNode?e.getRootNode():e.ownerDocument}function Ht(e){return Ae(e).defaultView}function he(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function ze(e,t,i){t||(t={});for(var r in e)e.hasOwnProperty(r)&&(i!==!1||!t.hasOwnProperty(r))&&(t[r]=e[r]);return t}function De(e,t,i,r,o){t==null&&(t=e.search(/[^\s\u00a0]/),t==-1&&(t=e.length));for(var l=r||0,p=o||0;;){var c=e.indexOf(" ",l);if(c<0||c>=t)return p+(t-l);p+=c-l,p+=i-p%i,l=c+1}}var tt=function(){this.id=null,this.f=null,this.time=0,this.handler=he(this.onTimeout,this)};tt.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},tt.prototype.set=function(e,t){this.f=t;var i=+new Date+e;(!this.id||i<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=i)};function Ue(e,t){for(var i=0;i<e.length;++i)if(e[i]==t)return i;return-1}var Jt=50,re={toString:function(){return"CodeMirror.Pass"}},k={scroll:!1},Ze={origin:"*mouse"},Te={origin:"+move"};function ve(e,t,i){for(var r=0,o=0;;){var l=e.indexOf(" ",r);l==-1&&(l=e.length);var p=l-r;if(l==e.length||o+p>=t)return r+Math.min(p,t-o);if(o+=l-r,o+=i-o%i,r=l+1,o>=t)return r}}var We=[""];function jt(e){for(;We.length<=e;)We.push($(We)+" ");return We[e]}function $(e){return e[e.length-1]}function Qt(e,t){for(var i=[],r=0;r<e.length;r++)i[r]=t(e[r],r);return i}function dt(e,t,i){for(var r=0,o=i(t);r<e.length&&i(e[r])<=o;)r++;e.splice(r,0,t)}function Pt(){}function Ur(e,t){var i;return Object.create?i=Object.create(e):(Pt.prototype=e,i=new Pt),t&&ze(t,i),i}var ti=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tr(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||ti.test(e))}function ie(e,t){return t?t.source.indexOf("\\w")>-1&&tr(e)?!0:t.test(e):tr(e)}function He(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var zt=/[\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 qt(e){return e.charCodeAt(0)>=768&&zt.test(e)}function Kt(e,t,i){for(;(i<0?t>0:t<e.length)&&qt(e.charAt(t));)t+=i;return t}function Fr(e,t,i){for(var r=t>i?-1:1;;){if(t==i)return t;var o=(t+i)/2,l=r<0?Math.ceil(o):Math.floor(o);if(l==t)return e(l)?t:i;e(l)?i=l:t=l+r}}function vn(e,t,i,r){if(!e)return r(t,i,"ltr",0);for(var o=!1,l=0;l<e.length;++l){var p=e[l];(p.from<i&&p.to>t||t==i&&p.to==t)&&(r(Math.max(p.from,t),Math.min(p.to,i),p.level==1?"rtl":"ltr",l),o=!0)}o||r(t,i,"ltr")}var Br=null;function pr(e,t,i){var r;Br=null;for(var o=0;o<e.length;++o){var l=e[o];if(l.from<t&&l.to>t)return o;l.to==t&&(l.from!=l.to&&i=="before"?r=o:Br=o),l.from==t&&(l.from!=l.to&&i!="before"?r=o:Br=o)}return r??Br}var Ai=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function i(E){return E<=247?e.charAt(E):1424<=E&&E<=1524?"R":1536<=E&&E<=1785?t.charAt(E-1536):1774<=E&&E<=2220?"r":8192<=E&&E<=8203?"w":E==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,p=/[Lb1n]/,c=/[1n]/;function d(E,N,A){this.level=E,this.from=N,this.to=A}return function(E,N){var A=N=="ltr"?"L":"R";if(E.length==0||N=="ltr"&&!r.test(E))return!1;for(var U=E.length,O=[],P=0;P<U;++P)O.push(i(E.charCodeAt(P)));for(var _=0,Z=A;_<U;++_){var X=O[_];X=="m"?O[_]=Z:Z=X}for(var z=0,J=A;z<U;++z){var K=O[z];K=="1"&&J=="r"?O[z]="n":l.test(K)&&(J=K,K=="r"&&(O[z]="R"))}for(var ae=1,ne=O[0];ae<U-1;++ae){var Ee=O[ae];Ee=="+"&&ne=="1"&&O[ae+1]=="1"?O[ae]="1":Ee==","&&ne==O[ae+1]&&(ne=="1"||ne=="n")&&(O[ae]=ne),ne=Ee}for(var ye=0;ye<U;++ye){var at=O[ye];if(at==",")O[ye]="N";else if(at=="%"){var we=void 0;for(we=ye+1;we<U&&O[we]=="%";++we);for(var Wt=ye&&O[ye-1]=="!"||we<U&&O[we]=="1"?"1":"N",yt=ye;yt<we;++yt)O[yt]=Wt;ye=we-1}}for(var Xe=0,bt=A;Xe<U;++Xe){var ct=O[Xe];bt=="L"&&ct=="1"?O[Xe]="L":l.test(ct)&&(bt=ct)}for(var qe=0;qe<U;++qe)if(o.test(O[qe])){var Je=void 0;for(Je=qe+1;Je<U&&o.test(O[Je]);++Je);for(var ke=(qe?O[qe-1]:A)=="L",Ot=(Je<U?O[Je]:A)=="L",Ji=ke==Ot?ke?"L":"R":A,Qr=qe;Qr<Je;++Qr)O[Qr]=Ji;qe=Je-1}for(var mt=[],mr,lt=0;lt<U;)if(p.test(O[lt])){var Ga=lt;for(++lt;lt<U&&p.test(O[lt]);++lt);mt.push(new d(0,Ga,lt))}else{var Rr=lt,fi=mt.length,di=N=="rtl"?1:0;for(++lt;lt<U&&O[lt]!="L";++lt);for(var It=Rr;It<lt;)if(c.test(O[It])){Rr<It&&(mt.splice(fi,0,new d(1,Rr,It)),fi+=di);var ji=It;for(++It;It<lt&&c.test(O[It]);++It);mt.splice(fi,0,new d(2,ji,It)),fi+=di,Rr=It}else++It;Rr<lt&&mt.splice(fi,0,new d(1,Rr,lt))}return N=="ltr"&&(mt[0].level==1&&(mr=E.match(/^\s+/))&&(mt[0].from=mr[0].length,mt.unshift(new d(0,0,mr[0].length))),$(mt).level==1&&(mr=E.match(/\s+$/))&&($(mt).to-=mr[0].length,mt.push(new d(0,U-mr[0].length,U)))),N=="rtl"?mt.reverse():mt}}();function rt(e,t){var i=e.order;return i==null&&(i=e.order=Ai(e.text,t)),i}var vr=[],se=function(e,t,i){if(e.addEventListener)e.addEventListener(t,i,!1);else if(e.attachEvent)e.attachEvent("on"+t,i);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||vr).concat(i)}};function ri(e,t){return e._handlers&&e._handlers[t]||vr}function St(e,t,i){if(e.removeEventListener)e.removeEventListener(t,i,!1);else if(e.detachEvent)e.detachEvent("on"+t,i);else{var r=e._handlers,o=r&&r[t];if(o){var l=Ue(o,i);l>-1&&(r[t]=o.slice(0,l).concat(o.slice(l+1)))}}}function Fe(e,t){var i=ri(e,t);if(i.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o<i.length;++o)i[o].apply(null,r)}function Ve(e,t,i){return typeof t=="string"&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Fe(e,i||t.type,e,t),cr(t)||t.codemirrorIgnore}function fo(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var i=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)Ue(i,t[r])==-1&&i.push(t[r])}function pt(e,t){return ri(e,t).length>0}function Dr(e){e.prototype.on=function(t,i){se(this,t,i)},e.prototype.off=function(t,i){St(this,t,i)}}function ht(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Ye(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function cr(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function ii(e){ht(e),Ye(e)}function Ci(e){return e.target||e.srcElement}function Si(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),R&&e.ctrlKey&&t==1&&(t=3),t}var ho=function(){if(m&&I<9)return!1;var e=Y("div");return"draggable"in e||"dragDrop"in e}(),Li;function Ms(e){if(Li==null){var t=Y("span","\u200B");me(e,Y("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(Li=t.offsetWidth<=1&&t.offsetHeight>2&&!(m&&I<8))}var i=Li?Y("span","\u200B"):Y("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}var Vt;function Ir(e){if(Vt!=null)return Vt;var t=me(e,document.createTextNode("A\u062EA")),i=Be(t,0,1).getBoundingClientRect(),r=Be(t,1,2).getBoundingClientRect();return le(e),!i||i.left==i.right?!1:Vt=r.right-i.right<3}var Ri=`
|
|
1
|
+
"use strict";var Yasqe=(()=>{var eI=Object.create;var Oh=Object.defineProperty;var rI=Object.getOwnPropertyDescriptor;var tI=Object.getOwnPropertyNames;var iI=Object.getPrototypeOf,sI=Object.prototype.hasOwnProperty;var Nr=(i,v)=>()=>(v||i((v={exports:{}}).exports,v),v.exports),_v=(i,v)=>{for(var e in v)Oh(i,e,{get:v[e],enumerable:!0})},Wv=(i,v,e,N)=>{if(v&&typeof v=="object"||typeof v=="function")for(let y of tI(v))!sI.call(i,y)&&y!==e&&Oh(i,y,{get:()=>v[y],enumerable:!(N=rI(v,y))||N.enumerable});return i};var Zt=(i,v,e)=>(e=i!=null?eI(iI(i)):{},Wv(v||!i||!i.__esModule?Oh(e,"default",{value:i,enumerable:!0}):e,i)),nI=i=>Wv(Oh({},"__esModule",{value:!0}),i);var si=Nr((WE,kE)=>{(function(i,v){typeof WE=="object"&&typeof kE<"u"?kE.exports=v():typeof define=="function"&&define.amd?define(v):(i=i||self,i.CodeMirror=v())})(WE,function(){"use strict";var i=navigator.userAgent,v=navigator.platform,e=/gecko\/\d/i.test(i),N=/MSIE \d/.test(i),y=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(i),w=/Edge\/(\d+)/.exec(i),G=N||y||w,P=G&&(N?document.documentMode||6:+(w||y)[1]),H=!w&&/WebKit\//.test(i),Z=H&&/Qt\/\d+\.\d+/.test(i),$=!w&&/Chrome\/(\d+)/.exec(i),V=$&&+$[1],J=/Opera\//.test(i),k=/Apple Computer/.test(navigator.vendor),ee=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(i),X=/PhantomJS/.test(i),D=k&&(/Mobile\/\w+/.test(i)||navigator.maxTouchPoints>2),B=/Android/.test(i),Y=D||B||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(i),z=D||/Mac/.test(v),te=/\bCrOS\b/.test(i),ie=/win/i.test(v),ue=J&&i.match(/Version\/(\d*\.\d*)/);ue&&(ue=Number(ue[1])),ue&&ue>=15&&(J=!1,H=!0);var Ee=z&&(Z||J&&(ue==null||ue<12.11)),$e=e||G&&P>=9;function we(s){return new RegExp("(^|\\s)"+s+"(?:$|\\s)\\s*")}var _e=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 Xr(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 Lt(s,l){for(var g=s.split(" "),d=0;d<g.length;d++)g[d]&&!we(g[d]).test(l)&&(l+=" "+g[d]);return l}var St=function(s){s.select()};D?St=function(s){s.selectionStart=0,s.selectionEnd=s.value.length}:G&&(St=function(s){try{s.select()}catch{}});function cr(s){return s.display.wrapper.ownerDocument}function yt(s){return or(s.display.wrapper)}function or(s){return s.getRootNode?s.getRootNode():s.ownerDocument}function ot(s){return cr(s).defaultView}function je(s){var l=Array.prototype.slice.call(arguments,1);return function(){return s.apply(null,l)}}function Jr(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 L=s.indexOf(" ",I);if(L<0||L>=l)return b+(l-I);b+=L-I,b+=g-b%g,I=L+1}}var Vr=function(){this.id=null,this.f=null,this.time=0,this.handler=je(this.onTimeout,this)};Vr.prototype.onTimeout=function(s){s.id=0,s.time<=+new Date?s.f():setTimeout(s.handler,s.time-+new Date)},Vr.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 Se(s,l,g){for(var d=0,m=0;;){var I=s.indexOf(" ",d);I==-1&&(I=s.length);var b=I-d;if(I==s.length||m+b>=l)return d+Math.min(b,l-m);if(m+=I-d,m+=g-m%g,d=I+1,m>=l)return d}}var Or=[""];function ei(s){for(;Or.length<=s;)Or.push(Ie(Or)+" ");return Or[s]}function Ie(s){return s[s.length-1]}function Rt(s,l){for(var g=[],d=0;d<s.length;d++)g[d]=l(s[d],d);return g}function at(s,l,g){for(var d=0,m=g(l);d<s.length&&g(s[d])<=m;)d++;s.splice(d,0,l)}function xt(){}function es(s,l){var g;return Object.create?g=Object.create(s):(xt.prototype=s,g=new xt),l&&Jr(l,g),g}var De=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function lt(s){return/\w/.test(s)||s>"\x80"&&(s.toUpperCase()!=s.toLowerCase()||De.test(s))}function ye(s,l){return l?l.source.indexOf("\\w")>-1&<(s)?!0:l.test(s):lt(s)}function rr(s){for(var l in s)if(s.hasOwnProperty(l)&&s[l])return!1;return!0}var Mt=/[\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&&Mt.test(s)}function Ir(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 At(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]/,L=/[1n]/;function R(O,_,Q){this.level=O,this.from=_,this.to=Q}return function(O,_){var Q=_=="ltr"?"L":"R";if(O.length==0||_=="ltr"&&!d.test(O))return!1;for(var re=O.length,K=[],oe=0;oe<re;++oe)K.push(g(O.charCodeAt(oe)));for(var fe=0,he=Q;fe<re;++fe){var me=K[fe];me=="m"?K[fe]=he:he=me}for(var Ce=0,xe=Q;Ce<re;++Ce){var be=K[Ce];be=="1"&&xe=="r"?K[Ce]="n":I.test(be)&&(xe=be,be=="r"&&(K[Ce]="R"))}for(var Pe=1,Fe=K[0];Pe<re-1;++Pe){var qe=K[Pe];qe=="+"&&Fe=="1"&&K[Pe+1]=="1"?K[Pe]="1":qe==","&&Fe==K[Pe+1]&&(Fe=="1"||Fe=="n")&&(K[Pe]=Fe),Fe=qe}for(var mr=0;mr<re;++mr){var tt=K[mr];if(tt==",")K[mr]="N";else if(tt=="%"){var yr=void 0;for(yr=mr+1;yr<re&&K[yr]=="%";++yr);for(var $t=mr&&K[mr-1]=="!"||yr<re&&K[yr]=="1"?"1":"N",Ft=mr;Ft<yr;++Ft)K[Ft]=$t;mr=yr-1}}for(var $r=0,Dt=Q;$r<re;++$r){var nt=K[$r];Dt=="L"&&nt=="1"?K[$r]="L":I.test(nt)&&(Dt=nt)}for(var jr=0;jr<re;++jr)if(m.test(K[jr])){var Hr=void 0;for(Hr=jr+1;Hr<re&&m.test(K[Hr]);++Hr);for(var Ur=(jr?K[jr-1]:Q)=="L",Bt=(Hr<re?K[Hr]:Q)=="L",Fn=Ur==Bt?Ur?"L":"R":Q,vs=jr;vs<Hr;++vs)K[vs]=Fn;jr=Hr-1}for(var Et=[],yi,it=0;it<re;)if(b.test(K[it])){var ul=it;for(++it;it<re&&b.test(K[it]);++it);Et.push(new R(0,ul,it))}else{var Zi=it,_s=Et.length,Ws=_=="rtl"?1:0;for(++it;it<re&&K[it]!="L";++it);for(var Nt=Zi;Nt<it;)if(L.test(K[Nt])){Zi<Nt&&(Et.splice(_s,0,new R(1,Zi,Nt)),_s+=Ws);var Dn=Nt;for(++Nt;Nt<it&&L.test(K[Nt]);++Nt);Et.splice(_s,0,new R(2,Dn,Nt)),_s+=Ws,Zi=Nt}else++Nt;Zi<it&&Et.splice(_s,0,new R(1,Zi,it))}return _=="ltr"&&(Et[0].level==1&&(yi=O.match(/^\s+/))&&(Et[0].from=yi[0].length,Et.unshift(new R(0,0,yi[0].length))),Ie(Et).level==1&&(yi=O.match(/\s+$/))&&(Ie(Et).to-=yi[0].length,Et.push(new R(0,re-yi[0].length,re)))),_=="rtl"?Et.reverse():Et}}();function br(s,l){var g=s.order;return g==null&&(g=s.order=ii(s.text,l)),g}var wt=[],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]||wt).concat(g)}};function ni(s,l){return s._handlers&&s._handlers[l]||wt}function _r(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){_r(this,l,g)}}function ut(s){s.preventDefault?s.preventDefault():s.returnValue=!1}function Wr(s){s.stopPropagation?s.stopPropagation():s.cancelBubble=!0}function Ei(s){return s.defaultPrevented!=null?s.defaultPrevented:s.returnValue==!1}function Is(s){ut(s),Wr(s)}function Ks(s){return s.target||s.srcElement}function en(s){var l=s.which;return l==null&&(s.button&1?l=1:s.button&2?l=3:s.button&4&&(l=2)),z&&s.ctrlKey&&l==1&&(l=3),l}var Go=function(){if(G&&P<9)return!1;var s=ve("div");return"draggable"in s||"dragDrop"in s}(),rn;function Ta(s){if(rn==null){var l=ve("span","\u200B");Ke(s,ve("span",[l,document.createTextNode("x")])),s.firstChild.offsetHeight!=0&&(rn=l.offsetWidth<=1&&l.offsetHeight>2&&!(G&&P<8))}var g=rn?ve("span","\u200B"):ve("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return g.setAttribute("cm-text",""),g}var Vt;function Gi(s){if(Vt!=null)return Vt;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:Vt=d.right-g.right<3}var tn=`
|
|
2
2
|
|
|
3
|
-
b`.split(/\n/).length!=3?function(
|
|
4
|
-
`,t);o==-1&&(o=e.length);var l=e.slice(t,e.charAt(o-1)=="\r"?o-1:o),p=l.indexOf("\r");p!=-1?(i.push(l.slice(0,p)),t+=p+1):(i.push(l),t=o+1)}return i}:function(e){return e.split(/\r\n?|\n/)},go=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},In=function(){var e=Y("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),yi=null;function rr(e){if(yi!=null)return yi;var t=me(e,Y("span","x")),i=t.getBoundingClientRect(),r=Be(t,0,1).getBoundingClientRect();return yi=Math.abs(i.left-r.left)>1}var bi={},Nr={};function Eo(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),bi[e]=t}function mo(e,t){Nr[e]=t}function Oi(e){if(typeof e=="string"&&Nr.hasOwnProperty(e))e=Nr[e];else if(e&&typeof e.name=="string"&&Nr.hasOwnProperty(e.name)){var t=Nr[e.name];typeof t=="string"&&(t={name:t}),e=Ur(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Oi("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Oi("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function oe(e,t){t=Oi(t);var i=bi[t.name];if(!i)return oe(e,"text/plain");var r=i(e,t);if(b.hasOwnProperty(t.name)){var o=b[t.name];for(var l in o)o.hasOwnProperty(l)&&(r.hasOwnProperty(l)&&(r["_"+l]=r[l]),r[l]=o[l])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var p in t.modeProps)r[p]=t.modeProps[p];return r}var b={};function H(e,t){var i=b.hasOwnProperty(e)?b[e]:b[e]={};ze(t,i)}function ee(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var i={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),i[r]=o}return i}function Re(e,t){for(var i;e.innerMode&&(i=e.innerMode(t),!(!i||i.mode==e));)t=i.state,e=i.mode;return i||{mode:e,state:t}}function it(e,t,i){return e.startState?e.startState(t,i):!0}var ge=function(e,t,i){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=i};ge.prototype.eol=function(){return this.pos>=this.string.length},ge.prototype.sol=function(){return this.pos==this.lineStart},ge.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ge.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ge.prototype.eat=function(e){var t=this.string.charAt(this.pos),i;if(typeof e=="string"?i=t==e:i=t&&(e.test?e.test(t):e(t)),i)return++this.pos,t},ge.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},ge.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},ge.prototype.skipToEnd=function(){this.pos=this.string.length},ge.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},ge.prototype.backUp=function(e){this.pos-=e},ge.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=De(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},ge.prototype.indentation=function(){return De(this.string,null,this.tabSize)-(this.lineStart?De(this.string,this.lineStart,this.tabSize):0)},ge.prototype.match=function(e,t,i){if(typeof e=="string"){var r=function(p){return i?p.toLowerCase():p},o=this.string.substr(this.pos,e.length);if(r(o)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var l=this.string.slice(this.pos).match(e);return l&&l.index>0?null:(l&&t!==!1&&(this.pos+=l[0].length),l)}},ge.prototype.current=function(){return this.string.slice(this.start,this.pos)},ge.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},ge.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},ge.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function q(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var i=e;!i.lines;)for(var r=0;;++r){var o=i.children[r],l=o.chunkSize();if(t<l){i=o;break}t-=l}return i.lines[t]}function gt(e,t,i){var r=[],o=t.line;return e.iter(t.line,i.line+1,function(l){var p=l.text;o==i.line&&(p=p.slice(0,i.ch)),o==t.line&&(p=p.slice(t.ch)),r.push(p),++o}),r}function fr(e,t,i){var r=[];return e.iter(t,i,function(o){r.push(o.text)}),r}function wt(e,t){var i=t-e.height;if(i)for(var r=e;r;r=r.parent)r.height+=i}function pe(e){if(e.parent==null)return null;for(var t=e.parent,i=Ue(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var o=0;r.children[o]!=t;++o)i+=r.children[o].chunkSize();return i+t.first}function dr(e,t){var i=e.first;e:do{for(var r=0;r<e.children.length;++r){var o=e.children[r],l=o.height;if(t<l){e=o;continue e}t-=l,i+=o.chunkSize()}return i}while(!e.lines);for(var p=0;p<e.lines.length;++p){var c=e.lines[p],d=c.height;if(t<d)break;t-=d}return i+p}function Mr(e,t){return t>=e.first&&t<e.first+e.size}function Ps(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function W(e,t,i){if(i===void 0&&(i=null),!(this instanceof W))return new W(e,t,i);this.line=e,this.ch=t,this.sticky=i}function ce(e,t){return e.line-t.line||e.ch-t.ch}function Vs(e,t){return e.sticky==t.sticky&&ce(e,t)==0}function ws(e){return W(e.line,e.ch)}function xo(e,t){return ce(e,t)<0?t:e}function vo(e,t){return ce(e,t)<0?e:t}function Al(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function fe(e,t){if(t.line<e.first)return W(e.first,0);var i=e.first+e.size-1;return t.line>i?W(i,q(e,i).text.length):Lg(t,q(e,t.line).text.length)}function Lg(e,t){var i=e.ch;return i==null||i>t?W(e.line,t):i<0?W(e.line,0):e}function Cl(e,t){for(var i=[],r=0;r<t.length;r++)i[r]=fe(e,t[r]);return i}var Io=function(e,t){this.state=e,this.lookAhead=t},hr=function(e,t,i,r){this.state=t,this.doc=e,this.line=i,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};hr.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return t!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},hr.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},hr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},hr.fromSaved=function(e,t,i){return t instanceof Io?new hr(e,ee(e.mode,t.state),i,t.lookAhead):new hr(e,ee(e.mode,t),i)},hr.prototype.save=function(e){var t=e!==!1?ee(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Io(t,this.maxLookAhead):t};function Sl(e,t,i,r){var o=[e.state.modeGen],l={};Gl(e,t.text,e.doc.mode,i,function(E,N){return o.push(E,N)},l,r);for(var p=i.state,c=function(E){i.baseTokens=o;var N=e.state.overlays[E],A=1,U=0;i.state=!0,Gl(e,t.text,N.mode,i,function(O,P){for(var _=A;U<O;){var Z=o[A];Z>O&&o.splice(A,1,O,o[A+1],Z),A+=2,U=Math.min(O,Z)}if(P)if(N.opaque)o.splice(_,A-_,O,"overlay "+P),A=_+2;else for(;_<A;_+=2){var X=o[_+1];o[_+1]=(X?X+" ":"")+"overlay "+P}},l),i.state=p,i.baseTokens=null,i.baseTokenPos=1},d=0;d<e.state.overlays.length;++d)c(d);return{styles:o,classes:l.bgClass||l.textClass?l:null}}function Ll(e,t,i){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=Nn(e,pe(t)),o=t.text.length>e.options.maxHighlightLength&&ee(e.doc.mode,r.state),l=Sl(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=l.styles,l.classes?t.styleClasses=l.classes:t.styleClasses&&(t.styleClasses=null),i===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Nn(e,t,i){var r=e.doc,o=e.display;if(!r.mode.startState)return new hr(r,!0,t);var l=Rg(e,t,i),p=l>r.first&&q(r,l-1).stateAfter,c=p?hr.fromSaved(r,p,l):new hr(r,it(r.mode),l);return r.iter(l,t,function(d){_s(e,d.text,c);var E=c.line;d.stateAfter=E==t-1||E%5==0||E>=o.viewFrom&&E<o.viewTo?c.save():null,c.nextLine()}),i&&(r.modeFrontier=c.line),c}function _s(e,t,i,r){var o=e.doc.mode,l=new ge(t,e.options.tabSize,i);for(l.start=l.pos=r||0,t==""&&Rl(o,i.state);!l.eol();)Ws(o,l,i.state),l.start=l.pos}function Rl(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var i=Re(e,t);if(i.mode.blankLine)return i.mode.blankLine(i.state)}}function Ws(e,t,i,r){for(var o=0;o<10;o++){r&&(r[0]=Re(e,i).mode);var l=e.token(t,i);if(t.pos>t.start)return l}throw new Error("Mode "+e.name+" failed to advance stream.")}var yl=function(e,t,i){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=i};function bl(e,t,i,r){var o=e.doc,l=o.mode,p;t=fe(o,t);var c=q(o,t.line),d=Nn(e,t.line,i),E=new ge(c.text,e.options.tabSize,d),N;for(r&&(N=[]);(r||E.pos<t.ch)&&!E.eol();)E.start=E.pos,p=Ws(l,E,d.state),r&&N.push(new yl(E,p,ee(o.mode,d.state)));return r?N:new yl(E,p,d.state)}function Ol(e,t){if(e)for(;;){var i=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!i)break;e=e.slice(0,i.index)+e.slice(i.index+i[0].length);var r=i[1]?"bgClass":"textClass";t[r]==null?t[r]=i[2]:new RegExp("(?:^|\\s)"+i[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+i[2])}return e}function Gl(e,t,i,r,o,l,p){var c=i.flattenSpans;c==null&&(c=e.options.flattenSpans);var d=0,E=null,N=new ge(t,e.options.tabSize,r),A,U=e.options.addModeClass&&[null];for(t==""&&Ol(Rl(i,r.state),l);!N.eol();){if(N.pos>e.options.maxHighlightLength?(c=!1,p&&_s(e,t,r,N.pos),N.pos=t.length,A=null):A=Ol(Ws(i,N,r.state,U),l),U){var O=U[0].name;O&&(A="m-"+(A?O+" "+A:O))}if(!c||E!=A){for(;d<N.start;)d=Math.min(N.start,d+5e3),o(d,E);E=A}N.start=N.pos}for(;d<N.pos;){var P=Math.min(N.pos,d+5e3);o(P,E),d=P}}function Rg(e,t,i){for(var r,o,l=e.doc,p=i?-1:t-(e.doc.mode.innerMode?1e3:100),c=t;c>p;--c){if(c<=l.first)return l.first;var d=q(l,c-1),E=d.stateAfter;if(E&&(!i||c+(E instanceof Io?E.lookAhead:0)<=l.modeFrontier))return c;var N=De(d.text,null,e.options.tabSize);(o==null||r>N)&&(o=c-1,r=N)}return o}function yg(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var i=e.first,r=t-1;r>i;r--){var o=q(e,r).stateAfter;if(o&&(!(o instanceof Io)||r+o.lookAhead<t)){i=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,i)}}var Ul=!1,Tr=!1;function bg(){Ul=!0}function Og(){Tr=!0}function No(e,t,i){this.marker=e,this.from=t,this.to=i}function Tn(e,t){if(e)for(var i=0;i<e.length;++i){var r=e[i];if(r.marker==t)return r}}function Gg(e,t){for(var i,r=0;r<e.length;++r)e[r]!=t&&(i||(i=[])).push(e[r]);return i}function Ug(e,t,i){var r=i&&window.WeakSet&&(i.markedSpans||(i.markedSpans=new WeakSet));r&&e.markedSpans&&r.has(e.markedSpans)?e.markedSpans.push(t):(e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],r&&r.add(e.markedSpans)),t.marker.attachLine(e)}function Fg(e,t,i){var r;if(e)for(var o=0;o<e.length;++o){var l=e[o],p=l.marker,c=l.from==null||(p.inclusiveLeft?l.from<=t:l.from<t);if(c||l.from==t&&p.type=="bookmark"&&(!i||!l.marker.insertLeft)){var d=l.to==null||(p.inclusiveRight?l.to>=t:l.to>t);(r||(r=[])).push(new No(p,l.from,d?null:l.to))}}return r}function Bg(e,t,i){var r;if(e)for(var o=0;o<e.length;++o){var l=e[o],p=l.marker,c=l.to==null||(p.inclusiveRight?l.to>=t:l.to>t);if(c||l.from==t&&p.type=="bookmark"&&(!i||l.marker.insertLeft)){var d=l.from==null||(p.inclusiveLeft?l.from<=t:l.from<t);(r||(r=[])).push(new No(p,d?null:l.from-t,l.to==null?null:l.to-t))}}return r}function ks(e,t){if(t.full)return null;var i=Mr(e,t.from.line)&&q(e,t.from.line).markedSpans,r=Mr(e,t.to.line)&&q(e,t.to.line).markedSpans;if(!i&&!r)return null;var o=t.from.ch,l=t.to.ch,p=ce(t.from,t.to)==0,c=Fg(i,o,p),d=Bg(r,l,p),E=t.text.length==1,N=$(t.text).length+(E?o:0);if(c)for(var A=0;A<c.length;++A){var U=c[A];if(U.to==null){var O=Tn(d,U.marker);O?E&&(U.to=O.to==null?null:O.to+N):U.to=o}}if(d)for(var P=0;P<d.length;++P){var _=d[P];if(_.to!=null&&(_.to+=N),_.from==null){var Z=Tn(c,_.marker);Z||(_.from=N,E&&(c||(c=[])).push(_))}else _.from+=N,E&&(c||(c=[])).push(_)}c&&(c=Fl(c)),d&&d!=c&&(d=Fl(d));var X=[c];if(!E){var z=t.text.length-2,J;if(z>0&&c)for(var K=0;K<c.length;++K)c[K].to==null&&(J||(J=[])).push(new No(c[K].marker,null,null));for(var ae=0;ae<z;++ae)X.push(J);X.push(d)}return X}function Fl(e){for(var t=0;t<e.length;++t){var i=e[t];i.from!=null&&i.from==i.to&&i.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function Dg(e,t,i){var r=null;if(e.iter(t.line,i.line+1,function(O){if(O.markedSpans)for(var P=0;P<O.markedSpans.length;++P){var _=O.markedSpans[P].marker;_.readOnly&&(!r||Ue(r,_)==-1)&&(r||(r=[])).push(_)}}),!r)return null;for(var o=[{from:t,to:i}],l=0;l<r.length;++l)for(var p=r[l],c=p.find(0),d=0;d<o.length;++d){var E=o[d];if(!(ce(E.to,c.from)<0||ce(E.from,c.to)>0)){var N=[d,1],A=ce(E.from,c.from),U=ce(E.to,c.to);(A<0||!p.inclusiveLeft&&!A)&&N.push({from:E.from,to:c.from}),(U>0||!p.inclusiveRight&&!U)&&N.push({from:c.to,to:E.to}),o.splice.apply(o,N),d+=N.length-3}}return o}function Bl(e){var t=e.markedSpans;if(t){for(var i=0;i<t.length;++i)t[i].marker.detachLine(e);e.markedSpans=null}}function Dl(e,t){if(t){for(var i=0;i<t.length;++i)t[i].marker.attachLine(e);e.markedSpans=t}}function To(e){return e.inclusiveLeft?-1:0}function Ao(e){return e.inclusiveRight?1:0}function Zs(e,t){var i=e.lines.length-t.lines.length;if(i!=0)return i;var r=e.find(),o=t.find(),l=ce(r.from,o.from)||To(e)-To(t);if(l)return-l;var p=ce(r.to,o.to)||Ao(e)-Ao(t);return p||t.id-e.id}function Ml(e,t){var i=Tr&&e.markedSpans,r;if(i)for(var o=void 0,l=0;l<i.length;++l)o=i[l],o.marker.collapsed&&(t?o.from:o.to)==null&&(!r||Zs(r,o.marker)<0)&&(r=o.marker);return r}function Pl(e){return Ml(e,!0)}function Co(e){return Ml(e,!1)}function Mg(e,t){var i=Tr&&e.markedSpans,r;if(i)for(var o=0;o<i.length;++o){var l=i[o];l.marker.collapsed&&(l.from==null||l.from<t)&&(l.to==null||l.to>t)&&(!r||Zs(r,l.marker)<0)&&(r=l.marker)}return r}function Vl(e,t,i,r,o){var l=q(e,t),p=Tr&&l.markedSpans;if(p)for(var c=0;c<p.length;++c){var d=p[c];if(d.marker.collapsed){var E=d.marker.find(0),N=ce(E.from,i)||To(d.marker)-To(o),A=ce(E.to,r)||Ao(d.marker)-Ao(o);if(!(N>=0&&A<=0||N<=0&&A>=0)&&(N<=0&&(d.marker.inclusiveRight&&o.inclusiveLeft?ce(E.to,i)>=0:ce(E.to,i)>0)||N>=0&&(d.marker.inclusiveRight&&o.inclusiveLeft?ce(E.from,r)<=0:ce(E.from,r)<0)))return!0}}}function ir(e){for(var t;t=Pl(e);)e=t.find(-1,!0).line;return e}function Pg(e){for(var t;t=Co(e);)e=t.find(1,!0).line;return e}function Vg(e){for(var t,i;t=Co(e);)e=t.find(1,!0).line,(i||(i=[])).push(e);return i}function Hs(e,t){var i=q(e,t),r=ir(i);return i==r?t:pe(r)}function wl(e,t){if(t>e.lastLine())return t;var i=q(e,t),r;if(!Pr(e,i))return t;for(;r=Co(i);)i=r.find(1,!0).line;return pe(i)+1}function Pr(e,t){var i=Tr&&t.markedSpans;if(i){for(var r=void 0,o=0;o<i.length;++o)if(r=i[o],!!r.marker.collapsed){if(r.from==null)return!0;if(!r.marker.widgetNode&&r.from==0&&r.marker.inclusiveLeft&&Qs(e,t,r))return!0}}}function Qs(e,t,i){if(i.to==null){var r=i.marker.find(1,!0);return Qs(e,r.line,Tn(r.line.markedSpans,i.marker))}if(i.marker.inclusiveRight&&i.to==t.text.length)return!0;for(var o=void 0,l=0;l<t.markedSpans.length;++l)if(o=t.markedSpans[l],o.marker.collapsed&&!o.marker.widgetNode&&o.from==i.to&&(o.to==null||o.to!=i.from)&&(o.marker.inclusiveLeft||i.marker.inclusiveRight)&&Qs(e,t,o))return!0}function Ar(e){e=ir(e);for(var t=0,i=e.parent,r=0;r<i.lines.length;++r){var o=i.lines[r];if(o==e)break;t+=o.height}for(var l=i.parent;l;i=l,l=i.parent)for(var p=0;p<l.children.length;++p){var c=l.children[p];if(c==i)break;t+=c.height}return t}function So(e){if(e.height==0)return 0;for(var t=e.text.length,i,r=e;i=Pl(r);){var o=i.find(0,!0);r=o.from.line,t+=o.from.ch-o.to.ch}for(r=e;i=Co(r);){var l=i.find(0,!0);t-=r.text.length-l.from.ch,r=l.to.line,t+=r.text.length-l.to.ch}return t}function Ys(e){var t=e.display,i=e.doc;t.maxLine=q(i,i.first),t.maxLineLength=So(t.maxLine),t.maxLineChanged=!0,i.iter(function(r){var o=So(r);o>t.maxLineLength&&(t.maxLineLength=o,t.maxLine=r)})}var Gi=function(e,t,i){this.text=e,Dl(this,t),this.height=i?i(this):1};Gi.prototype.lineNo=function(){return pe(this)},Dr(Gi);function wg(e,t,i,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Bl(e),Dl(e,i);var o=r?r(e):1;o!=e.height&&wt(e,o)}function _g(e){e.parent=null,Bl(e)}var Wg={},kg={};function _l(e,t){if(!e||/^\s*$/.test(e))return null;var i=t.addModeClass?kg:Wg;return i[e]||(i[e]=e.replace(/\S+/g,"cm-$&"))}function Wl(e,t){var i=Oe("span",null,null,T?"padding-right: .1px":null),r={pre:Oe("pre",[i],"CodeMirror-line"),content:i,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var l=o?t.rest[o-1]:t.line,p=void 0;r.pos=0,r.addToken=Hg,Ir(e.display.measure)&&(p=rt(l,e.doc.direction))&&(r.addToken=Yg(r.addToken,p)),r.map=[];var c=t!=e.display.externalMeasured&&pe(l);Xg(l,r,Ll(e,l,c)),l.styleClasses&&(l.styleClasses.bgClass&&(r.bgClass=Tt(l.styleClasses.bgClass,r.bgClass||"")),l.styleClasses.textClass&&(r.textClass=Tt(l.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(Ms(e.display.measure))),o==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(T){var d=r.content.lastChild;(/\bcm-tab\b/.test(d.className)||d.querySelector&&d.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return Fe(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Tt(r.pre.className,r.textClass||"")),r}function Zg(e){var t=Y("span","\u2022","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Hg(e,t,i,r,o,l,p){if(t){var c=e.splitSpaces?Qg(t,e.trailingSpace):t,d=e.cm.state.specialChars,E=!1,N;if(!d.test(t))e.col+=t.length,N=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,N),m&&I<9&&(E=!0),e.pos+=t.length;else{N=document.createDocumentFragment();for(var A=0;;){d.lastIndex=A;var U=d.exec(t),O=U?U.index-A:t.length-A;if(O){var P=document.createTextNode(c.slice(A,A+O));m&&I<9?N.appendChild(Y("span",[P])):N.appendChild(P),e.map.push(e.pos,e.pos+O,P),e.col+=O,e.pos+=O}if(!U)break;A+=O+1;var _=void 0;if(U[0]==" "){var Z=e.cm.options.tabSize,X=Z-e.col%Z;_=N.appendChild(Y("span",jt(X),"cm-tab")),_.setAttribute("role","presentation"),_.setAttribute("cm-text"," "),e.col+=X}else U[0]=="\r"||U[0]==`
|
|
5
|
-
`?(_=N.appendChild(Y("span",U[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),_.setAttribute("cm-text",U[0]),e.col+=1):(_=e.cm.options.specialCharPlaceholder(U[0]),_.setAttribute("cm-text",U[0]),m&&I<9?N.appendChild(Y("span",[_])):N.appendChild(_),e.col+=1);e.map.push(e.pos,e.pos+1,_),e.pos++}}if(e.trailingSpace=c.charCodeAt(t.length-1)==32,i||r||o||E||l||p){var z=i||"";r&&(z+=r),o&&(z+=o);var J=Y("span",[N],z,l);if(p)for(var K in p)p.hasOwnProperty(K)&&K!="style"&&K!="class"&&J.setAttribute(K,p[K]);return e.content.appendChild(J)}e.content.appendChild(N)}}function Qg(e,t){if(e.length>1&&!/ /.test(e))return e;for(var i=t,r="",o=0;o<e.length;o++){var l=e.charAt(o);l==" "&&i&&(o==e.length-1||e.charCodeAt(o+1)==32)&&(l="\xA0"),r+=l,i=l==" "}return r}function Yg(e,t){return function(i,r,o,l,p,c,d){o=o?o+" cm-force-border":"cm-force-border";for(var E=i.pos,N=E+r.length;;){for(var A=void 0,U=0;U<t.length&&(A=t[U],!(A.to>E&&A.from<=E));U++);if(A.to>=N)return e(i,r,o,l,p,c,d);e(i,r.slice(0,A.to-E),o,l,null,c,d),l=null,r=r.slice(A.to-E),E=A.to}}}function kl(e,t,i,r){var o=!r&&i.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",i.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function Xg(e,t,i){var r=e.markedSpans,o=e.text,l=0;if(!r){for(var p=1;p<i.length;p+=2)t.addToken(t,o.slice(l,l=i[p]),_l(i[p+1],t.cm.options));return}for(var c=o.length,d=0,E=1,N="",A,U,O=0,P,_,Z,X,z;;){if(O==d){P=_=Z=U="",z=null,X=null,O=1/0;for(var J=[],K=void 0,ae=0;ae<r.length;++ae){var ne=r[ae],Ee=ne.marker;if(Ee.type=="bookmark"&&ne.from==d&&Ee.widgetNode)J.push(Ee);else if(ne.from<=d&&(ne.to==null||ne.to>d||Ee.collapsed&&ne.to==d&&ne.from==d)){if(ne.to!=null&&ne.to!=d&&O>ne.to&&(O=ne.to,_=""),Ee.className&&(P+=" "+Ee.className),Ee.css&&(U=(U?U+";":"")+Ee.css),Ee.startStyle&&ne.from==d&&(Z+=" "+Ee.startStyle),Ee.endStyle&&ne.to==O&&(K||(K=[])).push(Ee.endStyle,ne.to),Ee.title&&((z||(z={})).title=Ee.title),Ee.attributes)for(var ye in Ee.attributes)(z||(z={}))[ye]=Ee.attributes[ye];Ee.collapsed&&(!X||Zs(X.marker,Ee)<0)&&(X=ne)}else ne.from>d&&O>ne.from&&(O=ne.from)}if(K)for(var at=0;at<K.length;at+=2)K[at+1]==O&&(_+=" "+K[at]);if(!X||X.from==d)for(var we=0;we<J.length;++we)kl(t,0,J[we]);if(X&&(X.from||0)==d){if(kl(t,(X.to==null?c+1:X.to)-d,X.marker,X.from==null),X.to==null)return;X.to==d&&(X=!1)}}if(d>=c)break;for(var Wt=Math.min(c,O);;){if(N){var yt=d+N.length;if(!X){var Xe=yt>Wt?N.slice(0,Wt-d):N;t.addToken(t,Xe,A?A+P:P,Z,d+Xe.length==O?_:"",U,z)}if(yt>=Wt){N=N.slice(Wt-d),d=Wt;break}d=yt,Z=""}N=o.slice(l,l=i[E++]),A=_l(i[E++],t.cm.options)}}}function Zl(e,t,i){this.line=t,this.rest=Vg(t),this.size=this.rest?pe($(this.rest))-i+1:1,this.node=this.text=null,this.hidden=Pr(e,t)}function Lo(e,t,i){for(var r=[],o,l=t;l<i;l=o){var p=new Zl(e.doc,q(e.doc,l),l);o=l+p.size,r.push(p)}return r}var Ui=null;function Jg(e){Ui?Ui.ops.push(e):e.ownsGroup=Ui={ops:[e],delayedCallbacks:[]}}function jg(e){var t=e.delayedCallbacks,i=0;do{for(;i<t.length;i++)t[i].call(null);for(var r=0;r<e.ops.length;r++){var o=e.ops[r];if(o.cursorActivityHandlers)for(;o.cursorActivityCalled<o.cursorActivityHandlers.length;)o.cursorActivityHandlers[o.cursorActivityCalled++].call(null,o.cm)}}while(i<t.length)}function zg(e,t){var i=e.ownsGroup;if(i)try{jg(i)}finally{Ui=null,t(i)}}var An=null;function nt(e,t){var i=ri(e,t);if(i.length){var r=Array.prototype.slice.call(arguments,2),o;Ui?o=Ui.delayedCallbacks:An?o=An:(o=An=[],setTimeout(qg,0));for(var l=function(c){o.push(function(){return i[c].apply(null,r)})},p=0;p<i.length;++p)l(p)}}function qg(){var e=An;An=null;for(var t=0;t<e.length;++t)e[t]()}function Hl(e,t,i,r){for(var o=0;o<t.changes.length;o++){var l=t.changes[o];l=="text"?$g(e,t):l=="gutter"?Yl(e,t,i,r):l=="class"?Xs(e,t):l=="widget"&&eE(e,t,r)}t.changes=null}function Cn(e){return e.node==e.text&&(e.node=Y("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),m&&I<8&&(e.node.style.zIndex=2)),e.node}function Kg(e,t){var i=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(i&&(i+=" CodeMirror-linebackground"),t.background)i?t.background.className=i:(t.background.parentNode.removeChild(t.background),t.background=null);else if(i){var r=Cn(t);t.background=r.insertBefore(Y("div",null,i),r.firstChild),e.display.input.setUneditable(t.background)}}function Ql(e,t){var i=e.display.externalMeasured;return i&&i.line==t.line?(e.display.externalMeasured=null,t.measure=i.measure,i.built):Wl(e,t)}function $g(e,t){var i=t.text.className,r=Ql(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,Xs(e,t)):i&&(t.text.className=i)}function Xs(e,t){Kg(e,t),t.line.wrapClass?Cn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var i=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=i||""}function Yl(e,t,i,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Cn(t);t.gutterBackground=Y("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var p=Cn(t),c=t.gutter=Y("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(c.setAttribute("aria-hidden","true"),e.display.input.setUneditable(c),p.insertBefore(c,t.text),t.line.gutterClass&&(c.className+=" "+t.line.gutterClass),e.options.lineNumbers&&(!l||!l["CodeMirror-linenumbers"])&&(t.lineNumber=c.appendChild(Y("div",Ps(e.options,i),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var d=0;d<e.display.gutterSpecs.length;++d){var E=e.display.gutterSpecs[d].className,N=l.hasOwnProperty(E)&&l[E];N&&c.appendChild(Y("div",[N],"CodeMirror-gutter-elt","left: "+r.gutterLeft[E]+"px; width: "+r.gutterWidth[E]+"px"))}}}function eE(e,t,i){t.alignable&&(t.alignable=null);for(var r=te("CodeMirror-linewidget"),o=t.node.firstChild,l=void 0;o;o=l)l=o.nextSibling,r.test(o.className)&&t.node.removeChild(o);Xl(e,t,i)}function tE(e,t,i,r){var o=Ql(e,t);return t.text=t.node=o.pre,o.bgClass&&(t.bgClass=o.bgClass),o.textClass&&(t.textClass=o.textClass),Xs(e,t),Yl(e,t,i,r),Xl(e,t,r),t.node}function Xl(e,t,i){if(Jl(e,t.line,t,i,!0),t.rest)for(var r=0;r<t.rest.length;r++)Jl(e,t.rest[r],t,i,!1)}function Jl(e,t,i,r,o){if(t.widgets)for(var l=Cn(i),p=0,c=t.widgets;p<c.length;++p){var d=c[p],E=Y("div",[d.node],"CodeMirror-linewidget"+(d.className?" "+d.className:""));d.handleMouseEvents||E.setAttribute("cm-ignore-events","true"),rE(d,E,i,r),e.display.input.setUneditable(E),o&&d.above?l.insertBefore(E,i.gutter||i.text):l.appendChild(E),nt(d,"redraw")}}function rE(e,t,i,r){if(e.noHScroll){(i.alignable||(i.alignable=[])).push(t);var o=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(o-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=o+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function Sn(e){if(e.height!=null)return e.height;var t=e.doc.cm;if(!t)return 0;if(!et(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),me(t.display.measure,Y("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function Cr(e,t){for(var i=Ci(t);i!=e.wrapper;i=i.parentNode)if(!i||i.nodeType==1&&i.getAttribute("cm-ignore-events")=="true"||i.parentNode==e.sizer&&i!=e.mover)return!0}function Ro(e){return e.lineSpace.offsetTop}function Js(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function jl(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=me(e.measure,Y("pre","x","CodeMirror-line-like")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return!isNaN(r.left)&&!isNaN(r.right)&&(e.cachedPaddingH=r),r}function gr(e){return Jt-e.display.nativeBarWidth}function ni(e){return e.display.scroller.clientWidth-gr(e)-e.display.barWidth}function js(e){return e.display.scroller.clientHeight-gr(e)-e.display.barHeight}function iE(e,t,i){var r=e.options.lineWrapping,o=r&&ni(e);if(!t.measure.heights||r&&t.measure.width!=o){var l=t.measure.heights=[];if(r){t.measure.width=o;for(var p=t.text.firstChild.getClientRects(),c=0;c<p.length-1;c++){var d=p[c],E=p[c+1];Math.abs(d.bottom-E.bottom)>2&&l.push((d.bottom+E.top)/2-i.top)}}l.push(i.bottom-i.top)}}function zl(e,t,i){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var o=0;o<e.rest.length;o++)if(pe(e.rest[o])>i)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}}function nE(e,t){t=ir(t);var i=pe(t),r=e.display.externalMeasured=new Zl(e.doc,t,i);r.lineN=i;var o=r.built=Wl(e,r);return r.text=o.pre,me(e.display.lineMeasure,o.pre),r}function ql(e,t,i,r){return Er(e,Fi(e,t),i,r)}function zs(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ai(e,t)];var i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size)return i}function Fi(e,t){var i=pe(t),r=zs(e,i);r&&!r.text?r=null:r&&r.changes&&(Hl(e,r,i,ta(e)),e.curOp.forceUpdate=!0),r||(r=nE(e,t));var o=zl(r,t,i);return{line:t,view:r,rect:null,map:o.map,cache:o.cache,before:o.before,hasHeights:!1}}function Er(e,t,i,r,o){t.before&&(i=-1);var l=i+(r||""),p;return t.cache.hasOwnProperty(l)?p=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(iE(e,t.view,t.rect),t.hasHeights=!0),p=sE(e,t,i,r),p.bogus||(t.cache[l]=p)),{left:p.left,right:p.right,top:o?p.rtop:p.top,bottom:o?p.rbottom:p.bottom}}var Kl={left:0,right:0,top:0,bottom:0};function $l(e,t,i){for(var r,o,l,p,c,d,E=0;E<e.length;E+=3)if(c=e[E],d=e[E+1],t<c?(o=0,l=1,p="left"):t<d?(o=t-c,l=o+1):(E==e.length-3||t==d&&e[E+3]>t)&&(l=d-c,o=l-1,t>=d&&(p="right")),o!=null){if(r=e[E+2],c==d&&i==(r.insertLeft?"left":"right")&&(p=i),i=="left"&&o==0)for(;E&&e[E-2]==e[E-3]&&e[E-1].insertLeft;)r=e[(E-=3)+2],p="left";if(i=="right"&&o==d-c)for(;E<e.length-3&&e[E+3]==e[E+4]&&!e[E+5].insertLeft;)r=e[(E+=3)+2],p="right";break}return{node:r,start:o,end:l,collapse:p,coverStart:c,coverEnd:d}}function oE(e,t){var i=Kl;if(t=="left")for(var r=0;r<e.length&&(i=e[r]).left==i.right;r++);else for(var o=e.length-1;o>=0&&(i=e[o]).left==i.right;o--);return i}function sE(e,t,i,r){var o=$l(t.map,i,r),l=o.node,p=o.start,c=o.end,d=o.collapse,E;if(l.nodeType==3){for(var N=0;N<4;N++){for(;p&&qt(t.line.text.charAt(o.coverStart+p));)--p;for(;o.coverStart+c<o.coverEnd&&qt(t.line.text.charAt(o.coverStart+c));)++c;if(m&&I<9&&p==0&&c==o.coverEnd-o.coverStart?E=l.parentNode.getBoundingClientRect():E=oE(Be(l,p,c).getClientRects(),r),E.left||E.right||p==0)break;c=p,p=p-1,d="right"}m&&I<11&&(E=aE(e.display.measure,E))}else{p>0&&(d=r="right");var A;e.options.lineWrapping&&(A=l.getClientRects()).length>1?E=A[r=="right"?A.length-1:0]:E=l.getBoundingClientRect()}if(m&&I<9&&!p&&(!E||!E.left&&!E.right)){var U=l.parentNode.getClientRects()[0];U?E={left:U.left,right:U.left+Di(e.display),top:U.top,bottom:U.bottom}:E=Kl}for(var O=E.top-t.rect.top,P=E.bottom-t.rect.top,_=(O+P)/2,Z=t.view.measure.heights,X=0;X<Z.length-1&&!(_<Z[X]);X++);var z=X?Z[X-1]:0,J=Z[X],K={left:(d=="right"?E.right:E.left)-t.rect.left,right:(d=="left"?E.left:E.right)-t.rect.left,top:z,bottom:J};return!E.left&&!E.right&&(K.bogus=!0),e.options.singleCursorHeightPerLine||(K.rtop=O,K.rbottom=P),K}function aE(e,t){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!rr(e))return t;var i=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*i,right:t.right*i,top:t.top*r,bottom:t.bottom*r}}function eu(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function tu(e){e.display.externalMeasure=null,le(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)eu(e.display.view[t])}function Ln(e){tu(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function ru(e){return L&&v?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function iu(e){return L&&v?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function qs(e){var t=ir(e),i=t.widgets,r=0;if(i)for(var o=0;o<i.length;++o)i[o].above&&(r+=Sn(i[o]));return r}function yo(e,t,i,r,o){if(!o){var l=qs(t);i.top+=l,i.bottom+=l}if(r=="line")return i;r||(r="local");var p=Ar(t);if(r=="local"?p+=Ro(e.display):p-=e.display.viewOffset,r=="page"||r=="window"){var c=e.display.lineSpace.getBoundingClientRect();p+=c.top+(r=="window"?0:iu(Ae(e)));var d=c.left+(r=="window"?0:ru(Ae(e)));i.left+=d,i.right+=d}return i.top+=p,i.bottom+=p,i}function nu(e,t,i){if(i=="div")return t;var r=t.left,o=t.top;if(i=="page")r-=ru(Ae(e)),o-=iu(Ae(e));else if(i=="local"||!i){var l=e.display.sizer.getBoundingClientRect();r+=l.left,o+=l.top}var p=e.display.lineSpace.getBoundingClientRect();return{left:r-p.left,top:o-p.top}}function bo(e,t,i,r,o){return r||(r=q(e.doc,t.line)),yo(e,r,ql(e,r,t.ch,o),i)}function nr(e,t,i,r,o,l){r=r||q(e.doc,t.line),o||(o=Fi(e,r));function p(P,_){var Z=Er(e,o,P,_?"right":"left",l);return _?Z.left=Z.right:Z.right=Z.left,yo(e,r,Z,i)}var c=rt(r,e.doc.direction),d=t.ch,E=t.sticky;if(d>=r.text.length?(d=r.text.length,E="before"):d<=0&&(d=0,E="after"),!c)return p(E=="before"?d-1:d,E=="before");function N(P,_,Z){var X=c[_],z=X.level==1;return p(Z?P-1:P,z!=Z)}var A=pr(c,d,E),U=Br,O=N(d,A,E=="before");return U!=null&&(O.other=N(d,U,E!="before")),O}function ou(e,t){var i=0;t=fe(e.doc,t),e.options.lineWrapping||(i=Di(e.display)*t.ch);var r=q(e.doc,t.line),o=Ar(r)+Ro(e.display);return{left:i,right:i,top:o,bottom:o+r.height}}function Ks(e,t,i,r,o){var l=W(e,t,i);return l.xRel=o,r&&(l.outside=r),l}function $s(e,t,i){var r=e.doc;if(i+=e.display.viewOffset,i<0)return Ks(r.first,0,null,-1,-1);var o=dr(r,i),l=r.first+r.size-1;if(o>l)return Ks(r.first+r.size-1,q(r,l).text.length,null,1,1);t<0&&(t=0);for(var p=q(r,o);;){var c=lE(e,p,o,t,i),d=Mg(p,c.ch+(c.xRel>0||c.outside>0?1:0));if(!d)return c;var E=d.find(1);if(E.line==o)return E;p=q(r,o=E.line)}}function su(e,t,i,r){r-=qs(t);var o=t.text.length,l=Fr(function(p){return Er(e,i,p-1).bottom<=r},o,0);return o=Fr(function(p){return Er(e,i,p).top>r},l,o),{begin:l,end:o}}function au(e,t,i,r){i||(i=Fi(e,t));var o=yo(e,t,Er(e,i,r),"line").top;return su(e,t,i,o)}function ea(e,t,i,r){return e.bottom<=i?!1:e.top>i?!0:(r?e.left:e.right)>t}function lE(e,t,i,r,o){o-=Ar(t);var l=Fi(e,t),p=qs(t),c=0,d=t.text.length,E=!0,N=rt(t,e.doc.direction);if(N){var A=(e.options.lineWrapping?pE:uE)(e,t,i,l,N,r,o);E=A.level!=1,c=E?A.from:A.to-1,d=E?A.to:A.from-1}var U=null,O=null,P=Fr(function(ae){var ne=Er(e,l,ae);return ne.top+=p,ne.bottom+=p,ea(ne,r,o,!1)?(ne.top<=o&&ne.left<=r&&(U=ae,O=ne),!0):!1},c,d),_,Z,X=!1;if(O){var z=r-O.left<O.right-r,J=z==E;P=U+(J?0:1),Z=J?"after":"before",_=z?O.left:O.right}else{!E&&(P==d||P==c)&&P++,Z=P==0?"after":P==t.text.length?"before":Er(e,l,P-(E?1:0)).bottom+p<=o==E?"after":"before";var K=nr(e,W(i,P,Z),"line",t,l);_=K.left,X=o<K.top?-1:o>=K.bottom?1:0}return P=Kt(t.text,P,1),Ks(i,P,Z,X,r-_)}function uE(e,t,i,r,o,l,p){var c=Fr(function(A){var U=o[A],O=U.level!=1;return ea(nr(e,W(i,O?U.to:U.from,O?"before":"after"),"line",t,r),l,p,!0)},0,o.length-1),d=o[c];if(c>0){var E=d.level!=1,N=nr(e,W(i,E?d.from:d.to,E?"after":"before"),"line",t,r);ea(N,l,p,!0)&&N.top>p&&(d=o[c-1])}return d}function pE(e,t,i,r,o,l,p){var c=su(e,t,r,p),d=c.begin,E=c.end;/\s/.test(t.text.charAt(E-1))&&E--;for(var N=null,A=null,U=0;U<o.length;U++){var O=o[U];if(!(O.from>=E||O.to<=d)){var P=O.level!=1,_=Er(e,r,P?Math.min(E,O.to)-1:Math.max(d,O.from)).right,Z=_<l?l-_+1e9:_-l;(!N||A>Z)&&(N=O,A=Z)}}return N||(N=o[o.length-1]),N.from<d&&(N={from:d,to:N.to,level:N.level}),N.to>E&&(N={from:N.from,to:E,level:N.level}),N}var oi;function Bi(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(oi==null){oi=Y("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)oi.appendChild(document.createTextNode("x")),oi.appendChild(Y("br"));oi.appendChild(document.createTextNode("x"))}me(e.measure,oi);var i=oi.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),le(e.measure),i||1}function Di(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=Y("span","xxxxxxxxxx"),i=Y("pre",[t],"CodeMirror-line-like");me(e.measure,i);var r=t.getBoundingClientRect(),o=(r.right-r.left)/10;return o>2&&(e.cachedCharWidth=o),o||10}function ta(e){for(var t=e.display,i={},r={},o=t.gutters.clientLeft,l=t.gutters.firstChild,p=0;l;l=l.nextSibling,++p){var c=e.display.gutterSpecs[p].className;i[c]=l.offsetLeft+l.clientLeft+o,r[c]=l.clientWidth}return{fixedPos:ra(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:i,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function ra(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lu(e){var t=Bi(e.display),i=e.options.lineWrapping,r=i&&Math.max(5,e.display.scroller.clientWidth/Di(e.display)-3);return function(o){if(Pr(e.doc,o))return 0;var l=0;if(o.widgets)for(var p=0;p<o.widgets.length;p++)o.widgets[p].height&&(l+=o.widgets[p].height);return i?l+(Math.ceil(o.text.length/r)||1)*t:l+t}}function ia(e){var t=e.doc,i=lu(e);t.iter(function(r){var o=i(r);o!=r.height&&wt(r,o)})}function si(e,t,i,r){var o=e.display;if(!i&&Ci(t).getAttribute("cm-not-content")=="true")return null;var l,p,c=o.lineSpace.getBoundingClientRect();try{l=t.clientX-c.left,p=t.clientY-c.top}catch{return null}var d=$s(e,l,p),E;if(r&&d.xRel>0&&(E=q(e.doc,d.line).text).length==d.ch){var N=De(E,E.length,e.options.tabSize)-E.length;d=W(d.line,Math.max(0,Math.round((l-jl(e.display).left)/Di(e.display))-N))}return d}function ai(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var i=e.display.view,r=0;r<i.length;r++)if(t-=i[r].size,t<0)return r}function Lt(e,t,i,r){t==null&&(t=e.doc.first),i==null&&(i=e.doc.first+e.doc.size),r||(r=0);var o=e.display;if(r&&i<o.viewTo&&(o.updateLineNumbers==null||o.updateLineNumbers>t)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Tr&&Hs(e.doc,t)<o.viewTo&&wr(e);else if(i<=o.viewFrom)Tr&&wl(e.doc,i+r)>o.viewFrom?wr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&i>=o.viewTo)wr(e);else if(t<=o.viewFrom){var l=Oo(e,i,i+r,1);l?(o.view=o.view.slice(l.index),o.viewFrom=l.lineN,o.viewTo+=r):wr(e)}else if(i>=o.viewTo){var p=Oo(e,t,t,-1);p?(o.view=o.view.slice(0,p.index),o.viewTo=p.lineN):wr(e)}else{var c=Oo(e,t,t,-1),d=Oo(e,i,i+r,1);c&&d?(o.view=o.view.slice(0,c.index).concat(Lo(e,c.lineN,d.lineN)).concat(o.view.slice(d.index)),o.viewTo+=r):wr(e)}var E=o.externalMeasured;E&&(i<E.lineN?E.lineN+=r:t<E.lineN+E.size&&(o.externalMeasured=null))}function Vr(e,t,i){e.curOp.viewChanged=!0;var r=e.display,o=e.display.externalMeasured;if(o&&t>=o.lineN&&t<o.lineN+o.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var l=r.view[ai(e,t)];if(l.node!=null){var p=l.changes||(l.changes=[]);Ue(p,i)==-1&&p.push(i)}}}function wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Oo(e,t,i,r){var o=ai(e,t),l,p=e.display.view;if(!Tr||i==e.doc.first+e.doc.size)return{index:o,lineN:i};for(var c=e.display.viewFrom,d=0;d<o;d++)c+=p[d].size;if(c!=t){if(r>0){if(o==p.length-1)return null;l=c+p[o].size-t,o++}else l=c-t;t+=l,i+=l}for(;Hs(e.doc,i)!=i;){if(o==(r<0?0:p.length-1))return null;i+=r*p[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:i}}function cE(e,t,i){var r=e.display,o=r.view;o.length==0||t>=r.viewTo||i<=r.viewFrom?(r.view=Lo(e,t,i),r.viewFrom=t):(r.viewFrom>t?r.view=Lo(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ai(e,t))),r.viewFrom=t,r.viewTo<i?r.view=r.view.concat(Lo(e,r.viewTo,i)):r.viewTo>i&&(r.view=r.view.slice(0,ai(e,i)))),r.viewTo=i}function uu(e){for(var t=e.display.view,i=0,r=0;r<t.length;r++){var o=t[r];!o.hidden&&(!o.node||o.changes)&&++i}return i}function Rn(e){e.display.input.showSelection(e.display.input.prepareSelection())}function pu(e,t){t===void 0&&(t=!0);var i=e.doc,r={},o=r.cursors=document.createDocumentFragment(),l=r.selection=document.createDocumentFragment(),p=e.options.$customCursor;p&&(t=!0);for(var c=0;c<i.sel.ranges.length;c++)if(!(!t&&c==i.sel.primIndex)){var d=i.sel.ranges[c];if(!(d.from().line>=e.display.viewTo||d.to().line<e.display.viewFrom)){var E=d.empty();if(p){var N=p(e,d);N&&na(e,N,o)}else(E||e.options.showCursorWhenSelecting)&&na(e,d.head,o);E||fE(e,d,l)}}return r}function na(e,t,i){var r=nr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=i.appendChild(Y("div","\xA0","CodeMirror-cursor"));if(o.style.left=r.left+"px",o.style.top=r.top+"px",o.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var l=bo(e,t,"div",null,null),p=l.right-l.left;o.style.width=(p>0?p:e.defaultCharWidth())+"px"}if(r.other){var c=i.appendChild(Y("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));c.style.display="",c.style.left=r.other.left+"px",c.style.top=r.other.top+"px",c.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Go(e,t){return e.top-t.top||e.left-t.left}function fE(e,t,i){var r=e.display,o=e.doc,l=document.createDocumentFragment(),p=jl(e.display),c=p.left,d=Math.max(r.sizerWidth,ni(e)-r.sizer.offsetLeft)-p.right,E=o.direction=="ltr";function N(J,K,ae,ne){K<0&&(K=0),K=Math.round(K),ne=Math.round(ne),l.appendChild(Y("div",null,"CodeMirror-selected","position: absolute; left: "+J+`px;
|
|
6
|
-
top: `+
|
|
7
|
-
height: `+(
|
|
8
|
-
top: `+(
|
|
9
|
-
height: `+(
|
|
10
|
-
left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(p),p.scrollIntoView(o),e.display.lineSpace.removeChild(p)}}}function hE(e,t,i,r){r==null&&(r=0);var o;!e.options.lineWrapping&&t==i&&(i=t.sticky=="before"?W(t.line,t.ch+1,"before"):t,t=t.ch?W(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var l=0;l<5;l++){var p=!1,c=nr(e,t),d=!i||i==t?c:nr(e,i);o={left:Math.min(c.left,d.left),top:Math.min(c.top,d.top)-r,right:Math.max(c.left,d.left),bottom:Math.max(c.bottom,d.bottom)+r};var E=la(e,o),N=e.doc.scrollTop,A=e.doc.scrollLeft;if(E.scrollTop!=null&&(bn(e,E.scrollTop),Math.abs(e.doc.scrollTop-N)>1&&(p=!0)),E.scrollLeft!=null&&(li(e,E.scrollLeft),Math.abs(e.doc.scrollLeft-A)>1&&(p=!0)),!p)break}return o}function gE(e,t){var i=la(e,t);i.scrollTop!=null&&bn(e,i.scrollTop),i.scrollLeft!=null&&li(e,i.scrollLeft)}function la(e,t){var i=e.display,r=Bi(e.display);t.top<0&&(t.top=0);var o=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:i.scroller.scrollTop,l=js(e),p={};t.bottom-t.top>l&&(t.bottom=t.top+l);var c=e.doc.height+Js(i),d=t.top<r,E=t.bottom>c-r;if(t.top<o)p.scrollTop=d?0:t.top;else if(t.bottom>o+l){var N=Math.min(t.top,(E?c:t.bottom)-l);N!=o&&(p.scrollTop=N)}var A=e.options.fixedGutter?0:i.gutters.offsetWidth,U=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:i.scroller.scrollLeft-A,O=ni(e)-i.gutters.offsetWidth,P=t.right-t.left>O;return P&&(t.right=t.left+O),t.left<10?p.scrollLeft=0:t.left<U?p.scrollLeft=Math.max(0,t.left+A-(P?0:10)):t.right>O+U-3&&(p.scrollLeft=t.right+(P?0:10)-O),p}function ua(e,t){t!=null&&(Bo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Pi(e){Bo(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function yn(e,t,i){(t!=null||i!=null)&&Bo(e),t!=null&&(e.curOp.scrollLeft=t),i!=null&&(e.curOp.scrollTop=i)}function EE(e,t){Bo(e),e.curOp.scrollToPos=t}function Bo(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var i=ou(e,t.from),r=ou(e,t.to);du(e,i,r,t.margin)}}function du(e,t,i,r){var o=la(e,{left:Math.min(t.left,i.left),top:Math.min(t.top,i.top)-r,right:Math.max(t.right,i.right),bottom:Math.max(t.bottom,i.bottom)+r});yn(e,o.scrollLeft,o.scrollTop)}function bn(e,t){Math.abs(e.doc.scrollTop-t)<2||(a||ca(e,{top:t}),hu(e,t,!0),a&&ca(e),Un(e,100))}function hu(e,t,i){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!i)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function li(e,t,i,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((i?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,vu(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function On(e){var t=e.display,i=t.gutters.offsetWidth,r=Math.round(e.doc.height+Js(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?i:0,docHeight:r,scrollHeight:r+gr(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:i}}var ui=function(e,t,i){this.cm=i;var r=this.vert=Y("div",[Y("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=Y("div",[Y("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=o.tabIndex=-1,e(r),e(o),se(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),se(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,m&&I<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ui.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,i=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(i){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=i?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var l=e.viewWidth-e.barLeft-(i?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+l)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:i?r:0,bottom:t?r:0}},ui.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ui.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ui.prototype.zeroWidthHack=function(){var e=R&&!F?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new tt,this.disableVert=new tt},ui.prototype.enableZeroWidthBar=function(e,t,i){e.style.visibility="";function r(){var o=e.getBoundingClientRect(),l=i=="vert"?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1);l!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},ui.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Gn=function(){};Gn.prototype.update=function(){return{bottom:0,right:0}},Gn.prototype.setScrollLeft=function(){},Gn.prototype.setScrollTop=function(){},Gn.prototype.clear=function(){};function Vi(e,t){t||(t=On(e));var i=e.display.barWidth,r=e.display.barHeight;gu(e,t);for(var o=0;o<4&&i!=e.display.barWidth||r!=e.display.barHeight;o++)i!=e.display.barWidth&&e.options.lineWrapping&&Uo(e),gu(e,On(e)),i=e.display.barWidth,r=e.display.barHeight}function gu(e,t){var i=e.display,r=i.scrollbars.update(t);i.sizer.style.paddingRight=(i.barWidth=r.right)+"px",i.sizer.style.paddingBottom=(i.barHeight=r.bottom)+"px",i.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(i.scrollbarFiller.style.display="block",i.scrollbarFiller.style.height=r.bottom+"px",i.scrollbarFiller.style.width=r.right+"px"):i.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(i.gutterFiller.style.display="block",i.gutterFiller.style.height=r.bottom+"px",i.gutterFiller.style.width=t.gutterWidth+"px"):i.gutterFiller.style.display=""}var Eu={native:ui,null:Gn};function mu(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&ue(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Eu[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),se(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,i){i=="horizontal"?li(e,t):bn(e,t)},e),e.display.scrollbars.addClass&&Le(e.display.wrapper,e.display.scrollbars.addClass)}var mE=0;function pi(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.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:++mE,markArrays:null},Jg(e.curOp)}function ci(e){var t=e.curOp;t&&zg(t,function(i){for(var r=0;r<i.ops.length;r++)i.ops[r].cm.curOp=null;xE(i)})}function xE(e){for(var t=e.ops,i=0;i<t.length;i++)vE(t[i]);for(var r=0;r<t.length;r++)IE(t[r]);for(var o=0;o<t.length;o++)NE(t[o]);for(var l=0;l<t.length;l++)TE(t[l]);for(var p=0;p<t.length;p++)AE(t[p])}function vE(e){var t=e.cm,i=t.display;SE(t),e.updateMaxLine&&Ys(t),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<i.viewFrom||e.scrollToPos.to.line>=i.viewTo)||i.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Do(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function IE(e){e.updatedDisplay=e.mustUpdate&&pa(e.cm,e.update)}function NE(e){var t=e.cm,i=t.display;e.updatedDisplay&&Uo(t),e.barMeasure=On(t),i.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ql(t,i.maxLine,i.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(i.scroller.clientWidth,i.sizer.offsetLeft+e.adjustWidthTo+gr(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,i.sizer.offsetLeft+e.adjustWidthTo-ni(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=i.input.prepareSelection())}function TE(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&li(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var i=e.focus&&e.focus==je(Ct(t));e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,i),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Vi(t,e.barMeasure),e.updatedDisplay&&da(t,e.barMeasure),e.selectionChanged&&oa(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),i&&cu(e.cm)}function AE(e){var t=e.cm,i=t.display,r=t.doc;if(e.updatedDisplay&&xu(t,e.update),i.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(i.wheelStartX=i.wheelStartY=null),e.scrollTop!=null&&hu(t,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&li(t,e.scrollLeft,!0,!0),e.scrollToPos){var o=hE(t,fe(r,e.scrollToPos.from),fe(r,e.scrollToPos.to),e.scrollToPos.margin);dE(t,o)}var l=e.maybeHiddenMarkers,p=e.maybeUnhiddenMarkers;if(l)for(var c=0;c<l.length;++c)l[c].lines.length||Fe(l[c],"hide");if(p)for(var d=0;d<p.length;++d)p[d].lines.length&&Fe(p[d],"unhide");i.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Fe(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function _t(e,t){if(e.curOp)return t();pi(e);try{return t()}finally{ci(e)}}function ot(e,t){return function(){if(e.curOp)return t.apply(e,arguments);pi(e);try{return t.apply(e,arguments)}finally{ci(e)}}}function vt(e){return function(){if(this.curOp)return e.apply(this,arguments);pi(this);try{return e.apply(this,arguments)}finally{ci(this)}}}function st(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);pi(t);try{return e.apply(this,arguments)}finally{ci(t)}}}function Un(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,he(CE,e))}function CE(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var i=+new Date+e.options.workTime,r=Nn(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(l){if(r.line>=e.display.viewFrom){var p=l.styles,c=l.text.length>e.options.maxHighlightLength?ee(t.mode,r.state):null,d=Sl(e,l,r,!0);c&&(r.state=c),l.styles=d.styles;var E=l.styleClasses,N=d.classes;N?l.styleClasses=N:E&&(l.styleClasses=null);for(var A=!p||p.length!=l.styles.length||E!=N&&(!E||!N||E.bgClass!=N.bgClass||E.textClass!=N.textClass),U=0;!A&&U<p.length;++U)A=p[U]!=l.styles[U];A&&o.push(r.line),l.stateAfter=r.save(),r.nextLine()}else l.text.length<=e.options.maxHighlightLength&&_s(e,l.text,r),l.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>i)return Un(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&_t(e,function(){for(var l=0;l<o.length;l++)Vr(e,o[l],"text")})}}var Do=function(e,t,i){var r=e.display;this.viewport=t,this.visible=Fo(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=ni(e),this.force=i,this.dims=ta(e),this.events=[]};Do.prototype.signal=function(e,t){pt(e,t)&&this.events.push(arguments)},Do.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Fe.apply(null,this.events[e])};function SE(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=gr(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=gr(e)+"px",t.scrollbarsClipped=!0)}function LE(e){if(e.hasFocus())return null;var t=je(Ct(e));if(!t||!et(e.display.lineDiv,t))return null;var i={activeElt:t};if(window.getSelection){var r=Ht(e).getSelection();r.anchorNode&&r.extend&&et(e.display.lineDiv,r.anchorNode)&&(i.anchorNode=r.anchorNode,i.anchorOffset=r.anchorOffset,i.focusNode=r.focusNode,i.focusOffset=r.focusOffset)}return i}function RE(e){if(!(!e||!e.activeElt||e.activeElt==je(Ie(e.activeElt)))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&et(document.body,e.anchorNode)&&et(document.body,e.focusNode))){var t=e.activeElt.ownerDocument,i=t.defaultView.getSelection(),r=t.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),i.removeAllRanges(),i.addRange(r),i.extend(e.focusNode,e.focusOffset)}}function pa(e,t){var i=e.display,r=e.doc;if(t.editorIsHidden)return wr(e),!1;if(!t.force&&t.visible.from>=i.viewFrom&&t.visible.to<=i.viewTo&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo)&&i.renderedView==i.view&&uu(e)==0)return!1;Iu(e)&&(wr(e),t.dims=ta(e));var o=r.first+r.size,l=Math.max(t.visible.from-e.options.viewportMargin,r.first),p=Math.min(o,t.visible.to+e.options.viewportMargin);i.viewFrom<l&&l-i.viewFrom<20&&(l=Math.max(r.first,i.viewFrom)),i.viewTo>p&&i.viewTo-p<20&&(p=Math.min(o,i.viewTo)),Tr&&(l=Hs(e.doc,l),p=wl(e.doc,p));var c=l!=i.viewFrom||p!=i.viewTo||i.lastWrapHeight!=t.wrapperHeight||i.lastWrapWidth!=t.wrapperWidth;cE(e,l,p),i.viewOffset=Ar(q(e.doc,i.viewFrom)),e.display.mover.style.top=i.viewOffset+"px";var d=uu(e);if(!c&&d==0&&!t.force&&i.renderedView==i.view&&(i.updateLineNumbers==null||i.updateLineNumbers>=i.viewTo))return!1;var E=LE(e);return d>4&&(i.lineDiv.style.display="none"),yE(e,i.updateLineNumbers,t.dims),d>4&&(i.lineDiv.style.display=""),i.renderedView=i.view,RE(E),le(i.cursorDiv),le(i.selectionDiv),i.gutters.style.height=i.sizer.style.minHeight=0,c&&(i.lastWrapHeight=t.wrapperHeight,i.lastWrapWidth=t.wrapperWidth,Un(e,400)),i.updateLineNumbers=null,!0}function xu(e,t){for(var i=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==ni(e)){if(i&&i.top!=null&&(i={top:Math.min(e.doc.height+Js(e.display)-js(e),i.top)}),t.visible=Fo(e.display,e.doc,i),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Fo(e.display,e.doc,i));if(!pa(e,t))break;Uo(e);var o=On(e);Rn(e),Vi(e,o),da(e,o),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function ca(e,t){var i=new Do(e,t);if(pa(e,i)){Uo(e),xu(e,i);var r=On(e);Rn(e),Vi(e,r),da(e,r),i.finish()}}function yE(e,t,i){var r=e.display,o=e.options.lineNumbers,l=r.lineDiv,p=l.firstChild;function c(P){var _=P.nextSibling;return T&&R&&e.display.currentWheelTarget==P?P.style.display="none":P.parentNode.removeChild(P),_}for(var d=r.view,E=r.viewFrom,N=0;N<d.length;N++){var A=d[N];if(!A.hidden)if(!A.node||A.node.parentNode!=l){var U=tE(e,A,E,i);l.insertBefore(U,p)}else{for(;p!=A.node;)p=c(p);var O=o&&t!=null&&t<=E&&A.lineNumber;A.changes&&(Ue(A.changes,"gutter")>-1&&(O=!1),Hl(e,A,E,i)),O&&(le(A.lineNumber),A.lineNumber.appendChild(document.createTextNode(Ps(e.options,E)))),p=A.node.nextSibling}E+=A.size}for(;p;)p=c(p)}function fa(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",nt(e,"gutterChanged",e)}function da(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+gr(e)+"px"}function vu(e){var t=e.display,i=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=ra(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,l=r+"px",p=0;p<i.length;p++)if(!i[p].hidden){e.options.fixedGutter&&(i[p].gutter&&(i[p].gutter.style.left=l),i[p].gutterBackground&&(i[p].gutterBackground.style.left=l));var c=i[p].alignable;if(c)for(var d=0;d<c.length;d++)c[d].style.left=l}e.options.fixedGutter&&(t.gutters.style.left=r+o+"px")}}function Iu(e){if(!e.options.lineNumbers)return!1;var t=e.doc,i=Ps(e.options,t.first+t.size-1),r=e.display;if(i.length!=r.lineNumChars){var o=r.measure.appendChild(Y("div",[Y("div",i)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=o.firstChild.offsetWidth,p=o.offsetWidth-l;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(l,r.lineGutter.offsetWidth-p)+1,r.lineNumWidth=r.lineNumInnerWidth+p,r.lineNumChars=r.lineNumInnerWidth?i.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",fa(e.display),!0}return!1}function ha(e,t){for(var i=[],r=!1,o=0;o<e.length;o++){var l=e[o],p=null;if(typeof l!="string"&&(p=l.style,l=l.className),l=="CodeMirror-linenumbers")if(t)r=!0;else continue;i.push({className:l,style:p})}return t&&!r&&i.push({className:"CodeMirror-linenumbers",style:null}),i}function Nu(e){var t=e.gutters,i=e.gutterSpecs;le(t),e.lineGutter=null;for(var r=0;r<i.length;++r){var o=i[r],l=o.className,p=o.style,c=t.appendChild(Y("div",null,"CodeMirror-gutter "+l));p&&(c.style.cssText=p),l=="CodeMirror-linenumbers"&&(e.lineGutter=c,c.style.width=(e.lineNumWidth||1)+"px")}t.style.display=i.length?"":"none",fa(e)}function Fn(e){Nu(e.display),Lt(e),vu(e)}function bE(e,t,i,r){var o=this;this.input=i,o.scrollbarFiller=Y("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=Y("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=Oe("div",null,"CodeMirror-code"),o.selectionDiv=Y("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=Y("div",null,"CodeMirror-cursors"),o.measure=Y("div",null,"CodeMirror-measure"),o.lineMeasure=Y("div",null,"CodeMirror-measure"),o.lineSpace=Oe("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=Oe("div",[o.lineSpace],"CodeMirror-lines");o.mover=Y("div",[l],null,"position: relative"),o.sizer=Y("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=Y("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),o.gutters=Y("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=Y("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=Y("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),L&&V===105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),m&&I<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),!T&&!(a&&C)&&(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=ha(r.gutters,r.lineNumbers),Nu(o),i.init(o)}var Mo=0,Sr=null;m?Sr=-.53:a?Sr=15:L?Sr=-.7:M&&(Sr=-1/3);function Tu(e){var t=e.wheelDeltaX,i=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),i==null&&e.detail&&e.axis==e.VERTICAL_AXIS?i=e.detail:i==null&&(i=e.wheelDelta),{x:t,y:i}}function OE(e){var t=Tu(e);return t.x*=Sr,t.y*=Sr,t}function Au(e,t){L&&V==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var i=Tu(t),r=i.x,o=i.y,l=Sr;t.deltaMode===0&&(r=t.deltaX,o=t.deltaY,l=1);var p=e.display,c=p.scroller,d=c.scrollWidth>c.clientWidth,E=c.scrollHeight>c.clientHeight;if(r&&d||o&&E){if(o&&R&&T){e:for(var N=t.target,A=p.view;N!=c;N=N.parentNode)for(var U=0;U<A.length;U++)if(A[U].node==N){e.display.currentWheelTarget=N;break e}}if(r&&!a&&!y&&l!=null){o&&E&&bn(e,Math.max(0,c.scrollTop+o*l)),li(e,Math.max(0,c.scrollLeft+r*l)),(!o||o&&E)&&ht(t),p.wheelStartX=null;return}if(o&&l!=null){var O=o*l,P=e.doc.scrollTop,_=P+p.wrapper.clientHeight;O<0?P=Math.max(0,P+O-50):_=Math.min(e.doc.height,_+O+50),ca(e,{top:P,bottom:_})}Mo<20&&t.deltaMode!==0&&(p.wheelStartX==null?(p.wheelStartX=c.scrollLeft,p.wheelStartY=c.scrollTop,p.wheelDX=r,p.wheelDY=o,setTimeout(function(){if(p.wheelStartX!=null){var Z=c.scrollLeft-p.wheelStartX,X=c.scrollTop-p.wheelStartY,z=X&&p.wheelDY&&X/p.wheelDY||Z&&p.wheelDX&&Z/p.wheelDX;p.wheelStartX=p.wheelStartY=null,z&&(Sr=(Sr*Mo+z)/(Mo+1),++Mo)}},200)):(p.wheelDX+=r,p.wheelDY+=o))}}var Yt=function(e,t){this.ranges=e,this.primIndex=t};Yt.prototype.primary=function(){return this.ranges[this.primIndex]},Yt.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var i=this.ranges[t],r=e.ranges[t];if(!Vs(i.anchor,r.anchor)||!Vs(i.head,r.head))return!1}return!0},Yt.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Ne(ws(this.ranges[t].anchor),ws(this.ranges[t].head));return new Yt(e,this.primIndex)},Yt.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Yt.prototype.contains=function(e,t){t||(t=e);for(var i=0;i<this.ranges.length;i++){var r=this.ranges[i];if(ce(t,r.from())>=0&&ce(e,r.to())<=0)return i}return-1};var Ne=function(e,t){this.anchor=e,this.head=t};Ne.prototype.from=function(){return vo(this.anchor,this.head)},Ne.prototype.to=function(){return xo(this.anchor,this.head)},Ne.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function or(e,t,i){var r=e&&e.options.selectionsMayTouch,o=t[i];t.sort(function(U,O){return ce(U.from(),O.from())}),i=Ue(t,o);for(var l=1;l<t.length;l++){var p=t[l],c=t[l-1],d=ce(c.to(),p.from());if(r&&!p.empty()?d>0:d>=0){var E=vo(c.from(),p.from()),N=xo(c.to(),p.to()),A=c.empty()?p.from()==p.head:c.from()==c.head;l<=i&&--i,t.splice(--l,2,new Ne(A?N:E,A?E:N))}}return new Yt(t,i)}function _r(e,t){return new Yt([new Ne(e,t||e)],0)}function Wr(e){return e.text?W(e.from.line+e.text.length-1,$(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Cu(e,t){if(ce(e,t.from)<0)return e;if(ce(e,t.to)<=0)return Wr(t);var i=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Wr(t).ch-t.to.ch),W(i,r)}function ga(e,t){for(var i=[],r=0;r<e.sel.ranges.length;r++){var o=e.sel.ranges[r];i.push(new Ne(Cu(o.anchor,t),Cu(o.head,t)))}return or(e.cm,i,e.sel.primIndex)}function Su(e,t,i){return e.line==t.line?W(i.line,e.ch-t.ch+i.ch):W(i.line+(e.line-t.line),e.ch)}function GE(e,t,i){for(var r=[],o=W(e.first,0),l=o,p=0;p<t.length;p++){var c=t[p],d=Su(c.from,o,l),E=Su(Wr(c),o,l);if(o=c.to,l=E,i=="around"){var N=e.sel.ranges[p],A=ce(N.head,N.anchor)<0;r[p]=new Ne(A?E:d,A?d:E)}else r[p]=new Ne(d,d)}return new Yt(r,e.sel.primIndex)}function Ea(e){e.doc.mode=oe(e.options,e.doc.modeOption),Bn(e)}function Bn(e){e.doc.iter(function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Un(e,100),e.state.modeGen++,e.curOp&&Lt(e)}function Lu(e,t){return t.from.ch==0&&t.to.ch==0&&$(t.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function ma(e,t,i,r){function o(z){return i?i[z]:null}function l(z,J,K){wg(z,J,K,r),nt(z,"change",z,t)}function p(z,J){for(var K=[],ae=z;ae<J;++ae)K.push(new Gi(E[ae],o(ae),r));return K}var c=t.from,d=t.to,E=t.text,N=q(e,c.line),A=q(e,d.line),U=$(E),O=o(E.length-1),P=d.line-c.line;if(t.full)e.insert(0,p(0,E.length)),e.remove(E.length,e.size-E.length);else if(Lu(e,t)){var _=p(0,E.length-1);l(A,A.text,O),P&&e.remove(c.line,P),_.length&&e.insert(c.line,_)}else if(N==A)if(E.length==1)l(N,N.text.slice(0,c.ch)+U+N.text.slice(d.ch),O);else{var Z=p(1,E.length-1);Z.push(new Gi(U+N.text.slice(d.ch),O,r)),l(N,N.text.slice(0,c.ch)+E[0],o(0)),e.insert(c.line+1,Z)}else if(E.length==1)l(N,N.text.slice(0,c.ch)+E[0]+A.text.slice(d.ch),o(0)),e.remove(c.line+1,P);else{l(N,N.text.slice(0,c.ch)+E[0],o(0)),l(A,U+A.text.slice(d.ch),O);var X=p(1,E.length-1);P>1&&e.remove(c.line+1,P-1),e.insert(c.line+1,X)}nt(e,"change",e,t)}function kr(e,t,i){function r(o,l,p){if(o.linked)for(var c=0;c<o.linked.length;++c){var d=o.linked[c];if(d.doc!=l){var E=p&&d.sharedHist;i&&!E||(t(d.doc,E),r(d.doc,o,E))}}}r(e,null,!0)}function Ru(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,ia(e),Ea(e),yu(e),e.options.direction=t.direction,e.options.lineWrapping||Ys(e),e.options.mode=t.modeOption,Lt(e)}function yu(e){(e.doc.direction=="rtl"?Le:ue)(e.display.lineDiv,"CodeMirror-rtl")}function UE(e){_t(e,function(){yu(e),Lt(e)})}function Po(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function xa(e,t){var i={from:ws(t.from),to:Wr(t),text:gt(e,t.from,t.to)};return Gu(e,i,t.from.line,t.to.line+1),kr(e,function(r){return Gu(r,i,t.from.line,t.to.line+1)},!0),i}function bu(e){for(;e.length;){var t=$(e);if(t.ranges)e.pop();else break}}function FE(e,t){if(t)return bu(e.done),$(e.done);if(e.done.length&&!$(e.done).ranges)return $(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),$(e.done)}function Ou(e,t,i,r){var o=e.history;o.undone.length=0;var l=+new Date,p,c;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&o.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(p=FE(o,o.lastOp==r)))c=$(p.changes),ce(t.from,t.to)==0&&ce(t.from,c.to)==0?c.to=Wr(t):p.changes.push(xa(e,t));else{var d=$(o.done);for((!d||!d.ranges)&&Vo(e.sel,o.done),p={changes:[xa(e,t)],generation:o.generation},o.done.push(p);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(i),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=l,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,c||Fe(e,"historyAdded")}function BE(e,t,i,r){var o=t.charAt(0);return o=="*"||o=="+"&&i.ranges.length==r.ranges.length&&i.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function DE(e,t,i,r){var o=e.history,l=r&&r.origin;i==o.lastSelOp||l&&o.lastSelOrigin==l&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==l||BE(e,l,$(o.done),t))?o.done[o.done.length-1]=t:Vo(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=l,o.lastSelOp=i,r&&r.clearRedo!==!1&&bu(o.undone)}function Vo(e,t){var i=$(t);i&&i.ranges&&i.equals(e)||t.push(e)}function Gu(e,t,i,r){var o=t["spans_"+e.id],l=0;e.iter(Math.max(e.first,i),Math.min(e.first+e.size,r),function(p){p.markedSpans&&((o||(o=t["spans_"+e.id]={}))[l]=p.markedSpans),++l})}function ME(e){if(!e)return null;for(var t,i=0;i<e.length;++i)e[i].marker.explicitlyCleared?t||(t=e.slice(0,i)):t&&t.push(e[i]);return t?t.length?t:null:e}function PE(e,t){var i=t["spans_"+e.id];if(!i)return null;for(var r=[],o=0;o<t.text.length;++o)r.push(ME(i[o]));return r}function Uu(e,t){var i=PE(e,t),r=ks(e,t);if(!i)return r;if(!r)return i;for(var o=0;o<i.length;++o){var l=i[o],p=r[o];if(l&&p)e:for(var c=0;c<p.length;++c){for(var d=p[c],E=0;E<l.length;++E)if(l[E].marker==d.marker)continue e;l.push(d)}else p&&(i[o]=p)}return i}function wi(e,t,i){for(var r=[],o=0;o<e.length;++o){var l=e[o];if(l.ranges){r.push(i?Yt.prototype.deepCopy.call(l):l);continue}var p=l.changes,c=[];r.push({changes:c});for(var d=0;d<p.length;++d){var E=p[d],N=void 0;if(c.push({from:E.from,to:E.to,text:E.text}),t)for(var A in E)(N=A.match(/^spans_(\d+)$/))&&Ue(t,Number(N[1]))>-1&&($(c)[A]=E[A],delete E[A])}}return r}function va(e,t,i,r){if(r){var o=e.anchor;if(i){var l=ce(t,o)<0;l!=ce(i,o)<0?(o=t,t=i):l!=ce(t,i)<0&&(t=i)}return new Ne(o,t)}else return new Ne(i||t,t)}function wo(e,t,i,r,o){o==null&&(o=e.cm&&(e.cm.display.shift||e.extend)),Et(e,new Yt([va(e.sel.primary(),t,i,o)],0),r)}function Fu(e,t,i){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),l=0;l<e.sel.ranges.length;l++)r[l]=va(e.sel.ranges[l],t[l],null,o);var p=or(e.cm,r,e.sel.primIndex);Et(e,p,i)}function Ia(e,t,i,r){var o=e.sel.ranges.slice(0);o[t]=i,Et(e,or(e.cm,o,e.sel.primIndex),r)}function Bu(e,t,i,r){Et(e,_r(t,i),r)}function VE(e,t,i){var r={ranges:t.ranges,update:function(o){this.ranges=[];for(var l=0;l<o.length;l++)this.ranges[l]=new Ne(fe(e,o[l].anchor),fe(e,o[l].head))},origin:i&&i.origin};return Fe(e,"beforeSelectionChange",e,r),e.cm&&Fe(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?or(e.cm,r.ranges,r.ranges.length-1):t}function Du(e,t,i){var r=e.history.done,o=$(r);o&&o.ranges?(r[r.length-1]=t,_o(e,t,i)):Et(e,t,i)}function Et(e,t,i){_o(e,t,i),DE(e,e.sel,e.cm?e.cm.curOp.id:NaN,i)}function _o(e,t,i){(pt(e,"beforeSelectionChange")||e.cm&&pt(e.cm,"beforeSelectionChange"))&&(t=VE(e,t,i));var r=i&&i.bias||(ce(t.primary().head,e.sel.primary().head)<0?-1:1);Mu(e,Vu(e,t,r,!0)),!(i&&i.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Pi(e.cm)}function Mu(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,fo(e.cm)),nt(e,"cursorActivity",e))}function Pu(e){Mu(e,Vu(e,e.sel,null,!1))}function Vu(e,t,i,r){for(var o,l=0;l<t.ranges.length;l++){var p=t.ranges[l],c=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[l],d=Wo(e,p.anchor,c&&c.anchor,i,r),E=p.head==p.anchor?d:Wo(e,p.head,c&&c.head,i,r);(o||d!=p.anchor||E!=p.head)&&(o||(o=t.ranges.slice(0,l)),o[l]=new Ne(d,E))}return o?or(e.cm,o,t.primIndex):t}function _i(e,t,i,r,o){var l=q(e,t.line);if(l.markedSpans)for(var p=0;p<l.markedSpans.length;++p){var c=l.markedSpans[p],d=c.marker,E="selectLeft"in d?!d.selectLeft:d.inclusiveLeft,N="selectRight"in d?!d.selectRight:d.inclusiveRight;if((c.from==null||(E?c.from<=t.ch:c.from<t.ch))&&(c.to==null||(N?c.to>=t.ch:c.to>t.ch))){if(o&&(Fe(d,"beforeCursorEnter"),d.explicitlyCleared))if(l.markedSpans){--p;continue}else break;if(!d.atomic)continue;if(i){var A=d.find(r<0?1:-1),U=void 0;if((r<0?N:E)&&(A=wu(e,A,-r,A&&A.line==t.line?l:null)),A&&A.line==t.line&&(U=ce(A,i))&&(r<0?U<0:U>0))return _i(e,A,t,r,o)}var O=d.find(r<0?-1:1);return(r<0?E:N)&&(O=wu(e,O,r,O.line==t.line?l:null)),O?_i(e,O,t,r,o):null}}return t}function Wo(e,t,i,r,o){var l=r||1,p=_i(e,t,i,l,o)||!o&&_i(e,t,i,l,!0)||_i(e,t,i,-l,o)||!o&&_i(e,t,i,-l,!0);return p||(e.cantEdit=!0,W(e.first,0))}function wu(e,t,i,r){return i<0&&t.ch==0?t.line>e.first?fe(e,W(t.line-1)):null:i>0&&t.ch==(r||q(e,t.line)).text.length?t.line<e.first+e.size-1?W(t.line+1,0):null:new W(t.line,t.ch+i)}function _u(e){e.setSelection(W(e.firstLine(),0),W(e.lastLine()),k)}function Wu(e,t,i){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return i&&(r.update=function(o,l,p,c){o&&(r.from=fe(e,o)),l&&(r.to=fe(e,l)),p&&(r.text=p),c!==void 0&&(r.origin=c)}),Fe(e,"beforeChange",e,r),e.cm&&Fe(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function Wi(e,t,i){if(e.cm){if(!e.cm.curOp)return ot(e.cm,Wi)(e,t,i);if(e.cm.state.suppressEdits)return}if(!((pt(e,"beforeChange")||e.cm&&pt(e.cm,"beforeChange"))&&(t=Wu(e,t,!0),!t))){var r=Ul&&!i&&Dg(e,t.from,t.to);if(r)for(var o=r.length-1;o>=0;--o)ku(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text,origin:t.origin});else ku(e,t)}}function ku(e,t){if(!(t.text.length==1&&t.text[0]==""&&ce(t.from,t.to)==0)){var i=ga(e,t);Ou(e,t,i,e.cm?e.cm.curOp.id:NaN),Dn(e,t,i,ks(e,t));var r=[];kr(e,function(o,l){!l&&Ue(r,o.history)==-1&&(Yu(o.history,t),r.push(o.history)),Dn(o,t,null,ks(o,t))})}}function ko(e,t,i){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!i)){for(var o=e.history,l,p=e.sel,c=t=="undo"?o.done:o.undone,d=t=="undo"?o.undone:o.done,E=0;E<c.length&&(l=c[E],!(i?l.ranges&&!l.equals(e.sel):!l.ranges));E++);if(E!=c.length){for(o.lastOrigin=o.lastSelOrigin=null;;)if(l=c.pop(),l.ranges){if(Vo(l,d),i&&!l.equals(e.sel)){Et(e,l,{clearRedo:!1});return}p=l}else if(r){c.push(l);return}else break;var N=[];Vo(p,d),d.push({changes:N,generation:o.generation}),o.generation=l.generation||++o.maxGeneration;for(var A=pt(e,"beforeChange")||e.cm&&pt(e.cm,"beforeChange"),U=function(_){var Z=l.changes[_];if(Z.origin=t,A&&!Wu(e,Z,!1))return c.length=0,{};N.push(xa(e,Z));var X=_?ga(e,Z):$(c);Dn(e,Z,X,Uu(e,Z)),!_&&e.cm&&e.cm.scrollIntoView({from:Z.from,to:Wr(Z)});var z=[];kr(e,function(J,K){!K&&Ue(z,J.history)==-1&&(Yu(J.history,Z),z.push(J.history)),Dn(J,Z,null,Uu(J,Z))})},O=l.changes.length-1;O>=0;--O){var P=U(O);if(P)return P.v}}}}function Zu(e,t){if(t!=0&&(e.first+=t,e.sel=new Yt(Qt(e.sel.ranges,function(o){return new Ne(W(o.anchor.line+t,o.anchor.ch),W(o.head.line+t,o.head.ch))}),e.sel.primIndex),e.cm)){Lt(e.cm,e.first,e.first-t,t);for(var i=e.cm.display,r=i.viewFrom;r<i.viewTo;r++)Vr(e.cm,r,"gutter")}}function Dn(e,t,i,r){if(e.cm&&!e.cm.curOp)return ot(e.cm,Dn)(e,t,i,r);if(t.to.line<e.first){Zu(e,t.text.length-1-(t.to.line-t.from.line));return}if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var o=t.text.length-1-(e.first-t.from.line);Zu(e,o),t={from:W(e.first,0),to:W(t.to.line+o,t.to.ch),text:[$(t.text)],origin:t.origin}}var l=e.lastLine();t.to.line>l&&(t={from:t.from,to:W(l,q(e,l).text.length),text:[t.text[0]],origin:t.origin}),t.removed=gt(e,t.from,t.to),i||(i=ga(e,t)),e.cm?wE(e.cm,t,r):ma(e,t,r),_o(e,i,k),e.cantEdit&&Wo(e,W(e.firstLine(),0))&&(e.cantEdit=!1)}}function wE(e,t,i){var r=e.doc,o=e.display,l=t.from,p=t.to,c=!1,d=l.line;e.options.lineWrapping||(d=pe(ir(q(r,l.line))),r.iter(d,p.line+1,function(O){if(O==o.maxLine)return c=!0,!0})),r.sel.contains(t.from,t.to)>-1&&fo(e),ma(r,t,i,lu(e)),e.options.lineWrapping||(r.iter(d,l.line+t.text.length,function(O){var P=So(O);P>o.maxLineLength&&(o.maxLine=O,o.maxLineLength=P,o.maxLineChanged=!0,c=!1)}),c&&(e.curOp.updateMaxLine=!0)),yg(r,l.line),Un(e,400);var E=t.text.length-(p.line-l.line)-1;t.full?Lt(e):l.line==p.line&&t.text.length==1&&!Lu(e.doc,t)?Vr(e,l.line,"text"):Lt(e,l.line,p.line+1,E);var N=pt(e,"changes"),A=pt(e,"change");if(A||N){var U={from:l,to:p,text:t.text,removed:t.removed,origin:t.origin};A&&nt(e,"change",e,U),N&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(U)}e.display.selForContextMenu=null}function ki(e,t,i,r,o){var l;r||(r=i),ce(r,i)<0&&(l=[r,i],i=l[0],r=l[1]),typeof t=="string"&&(t=e.splitLines(t)),Wi(e,{from:i,to:r,text:t,origin:o})}function Hu(e,t,i,r){i<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function Qu(e,t,i,r){for(var o=0;o<e.length;++o){var l=e[o],p=!0;if(l.ranges){l.copied||(l=e[o]=l.deepCopy(),l.copied=!0);for(var c=0;c<l.ranges.length;c++)Hu(l.ranges[c].anchor,t,i,r),Hu(l.ranges[c].head,t,i,r);continue}for(var d=0;d<l.changes.length;++d){var E=l.changes[d];if(i<E.from.line)E.from=W(E.from.line+r,E.from.ch),E.to=W(E.to.line+r,E.to.ch);else if(t<=E.to.line){p=!1;break}}p||(e.splice(0,o+1),o=0)}}function Yu(e,t){var i=t.from.line,r=t.to.line,o=t.text.length-(r-i)-1;Qu(e.done,i,r,o),Qu(e.undone,i,r,o)}function Mn(e,t,i,r){var o=t,l=t;return typeof t=="number"?l=q(e,Al(e,t)):o=pe(t),o==null?null:(r(l,o)&&e.cm&&Vr(e.cm,o,i),l)}function Pn(e){this.lines=e,this.parent=null;for(var t=0,i=0;i<e.length;++i)e[i].parent=this,t+=e[i].height;this.height=t}Pn.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var i=e,r=e+t;i<r;++i){var o=this.lines[i];this.height-=o.height,_g(o),nt(o,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,i){this.height+=i,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,i){for(var r=e+t;e<r;++e)if(i(this.lines[e]))return!0}};function Vn(e){this.children=e;for(var t=0,i=0,r=0;r<e.length;++r){var o=e[r];t+=o.chunkSize(),i+=o.height,o.parent=this}this.size=t,this.height=i,this.parent=null}Vn.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var i=0;i<this.children.length;++i){var r=this.children[i],o=r.chunkSize();if(e<o){var l=Math.min(t,o-e),p=r.height;if(r.removeInner(e,l),this.height-=p-r.height,o==l&&(this.children.splice(i--,1),r.parent=null),(t-=l)==0)break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof Pn))){var c=[];this.collapse(c),this.children=[new Pn(c)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,i){this.size+=t.length,this.height+=i;for(var r=0;r<this.children.length;++r){var o=this.children[r],l=o.chunkSize();if(e<=l){if(o.insertInner(e,t,i),o.lines&&o.lines.length>50){for(var p=o.lines.length%25+25,c=p;c<o.lines.length;){var d=new Pn(o.lines.slice(c,c+=25));o.height-=d.height,this.children.splice(++r,0,d),d.parent=this}o.lines=o.lines.slice(0,p),this.maybeSpill()}break}e-=l}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),i=new Vn(t);if(e.parent){e.size-=i.size,e.height-=i.height;var o=Ue(e.parent.children,e);e.parent.children.splice(o+1,0,i)}else{var r=new Vn(e.children);r.parent=e,e.children=[r,i],e=r}i.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,i){for(var r=0;r<this.children.length;++r){var o=this.children[r],l=o.chunkSize();if(e<l){var p=Math.min(t,l-e);if(o.iterN(e,p,i))return!0;if((t-=p)==0)break;e=0}else e-=l}}};var wn=function(e,t,i){if(i)for(var r in i)i.hasOwnProperty(r)&&(this[r]=i[r]);this.doc=e,this.node=t};wn.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,i=this.line,r=pe(i);if(!(r==null||!t)){for(var o=0;o<t.length;++o)t[o]==this&&t.splice(o--,1);t.length||(i.widgets=null);var l=Sn(this);wt(i,Math.max(0,i.height-l)),e&&(_t(e,function(){Xu(e,i,-l),Vr(e,r,"widget")}),nt(e,"lineWidgetCleared",e,this,r))}},wn.prototype.changed=function(){var e=this,t=this.height,i=this.doc.cm,r=this.line;this.height=null;var o=Sn(this)-t;o&&(Pr(this.doc,r)||wt(r,r.height+o),i&&_t(i,function(){i.curOp.forceUpdate=!0,Xu(i,r,o),nt(i,"lineWidgetChanged",i,e,pe(r))}))},Dr(wn);function Xu(e,t,i){Ar(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&ua(e,i)}function _E(e,t,i,r){var o=new wn(e,i,r),l=e.cm;return l&&o.noHScroll&&(l.display.alignWidgets=!0),Mn(e,t,"widget",function(p){var c=p.widgets||(p.widgets=[]);if(o.insertAt==null?c.push(o):c.splice(Math.min(c.length,Math.max(0,o.insertAt)),0,o),o.line=p,l&&!Pr(e,p)){var d=Ar(p)<e.scrollTop;wt(p,p.height+Sn(o)),d&&ua(l,o.height),l.curOp.forceUpdate=!0}return!0}),l&&nt(l,"lineWidgetAdded",l,o,typeof t=="number"?t:pe(t)),o}var Ju=0,Zr=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ju};Zr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&pi(e),pt(this,"clear")){var i=this.find();i&&nt(this,"clear",i.from,i.to)}for(var r=null,o=null,l=0;l<this.lines.length;++l){var p=this.lines[l],c=Tn(p.markedSpans,this);e&&!this.collapsed?Vr(e,pe(p),"text"):e&&(c.to!=null&&(o=pe(p)),c.from!=null&&(r=pe(p))),p.markedSpans=Gg(p.markedSpans,c),c.from==null&&this.collapsed&&!Pr(this.doc,p)&&e&&wt(p,Bi(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var d=0;d<this.lines.length;++d){var E=ir(this.lines[d]),N=So(E);N>e.display.maxLineLength&&(e.display.maxLine=E,e.display.maxLineLength=N,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&Lt(e,r,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Pu(e.doc)),e&&nt(e,"markerCleared",e,this,r,o),t&&ci(e),this.parent&&this.parent.clear()}},Zr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var i,r,o=0;o<this.lines.length;++o){var l=this.lines[o],p=Tn(l.markedSpans,this);if(p.from!=null&&(i=W(t?l:pe(l),p.from),e==-1))return i;if(p.to!=null&&(r=W(t?l:pe(l),p.to),e==1))return r}return i&&{from:i,to:r}},Zr.prototype.changed=function(){var e=this,t=this.find(-1,!0),i=this,r=this.doc.cm;!t||!r||_t(r,function(){var o=t.line,l=pe(t.line),p=zs(r,l);if(p&&(eu(p),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Pr(i.doc,o)&&i.height!=null){var c=i.height;i.height=null;var d=Sn(i)-c;d&&wt(o,o.height+d)}nt(r,"markerChanged",r,e)})},Zr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(!t.maybeHiddenMarkers||Ue(t.maybeHiddenMarkers,this)==-1)&&(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Zr.prototype.detachLine=function(e){if(this.lines.splice(Ue(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Dr(Zr);function Zi(e,t,i,r,o){if(r&&r.shared)return WE(e,t,i,r,o);if(e.cm&&!e.cm.curOp)return ot(e.cm,Zi)(e,t,i,r,o);var l=new Zr(e,o),p=ce(t,i);if(r&&ze(r,l,!1),p>0||p==0&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=Oe("span",[l.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(Vl(e,t.line,t,i,l)||t.line!=i.line&&Vl(e,i.line,t,i,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");Og()}l.addToHistory&&Ou(e,{from:t,to:i,origin:"markText"},e.sel,NaN);var c=t.line,d=e.cm,E;if(e.iter(c,i.line+1,function(A){d&&l.collapsed&&!d.options.lineWrapping&&ir(A)==d.display.maxLine&&(E=!0),l.collapsed&&c!=t.line&&wt(A,0),Ug(A,new No(l,c==t.line?t.ch:null,c==i.line?i.ch:null),e.cm&&e.cm.curOp),++c}),l.collapsed&&e.iter(t.line,i.line+1,function(A){Pr(e,A)&&wt(A,0)}),l.clearOnEnter&&se(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(bg(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++Ju,l.atomic=!0),d){if(E&&(d.curOp.updateMaxLine=!0),l.collapsed)Lt(d,t.line,i.line+1);else if(l.className||l.startStyle||l.endStyle||l.css||l.attributes||l.title)for(var N=t.line;N<=i.line;N++)Vr(d,N,"text");l.atomic&&Pu(d.doc),nt(d,"markerAdded",d,l)}return l}var _n=function(e,t){this.markers=e,this.primary=t;for(var i=0;i<e.length;++i)e[i].parent=this};_n.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();nt(this,"clear")}},_n.prototype.find=function(e,t){return this.primary.find(e,t)},Dr(_n);function WE(e,t,i,r,o){r=ze(r),r.shared=!1;var l=[Zi(e,t,i,r,o)],p=l[0],c=r.widgetNode;return kr(e,function(d){c&&(r.widgetNode=c.cloneNode(!0)),l.push(Zi(d,fe(d,t),fe(d,i),r,o));for(var E=0;E<d.linked.length;++E)if(d.linked[E].isParent)return;p=$(l)}),new _n(l,p)}function ju(e){return e.findMarks(W(e.first,0),e.clipPos(W(e.lastLine())),function(t){return t.parent})}function kE(e,t){for(var i=0;i<t.length;i++){var r=t[i],o=r.find(),l=e.clipPos(o.from),p=e.clipPos(o.to);if(ce(l,p)){var c=Zi(e,l,p,r.primary,r.primary.type);r.markers.push(c),c.parent=r}}}function ZE(e){for(var t=function(r){var o=e[r],l=[o.primary.doc];kr(o.primary.doc,function(d){return l.push(d)});for(var p=0;p<o.markers.length;p++){var c=o.markers[p];Ue(l,c.doc)==-1&&(c.parent=null,o.markers.splice(p--,1))}},i=0;i<e.length;i++)t(i)}var HE=0,Rt=function(e,t,i,r,o){if(!(this instanceof Rt))return new Rt(e,t,i,r,o);i==null&&(i=0),Vn.call(this,[new Pn([new Gi("",null)])]),this.first=i,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=i;var l=W(i,0);this.sel=_r(l),this.history=new Po(null),this.id=++HE,this.modeOption=t,this.lineSep=r,this.direction=o=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),ma(this,{from:l,to:l,text:e}),Et(this,_r(l),k)};Rt.prototype=Ur(Vn.prototype,{constructor:Rt,iter:function(e,t,i){i?this.iterN(e-this.first,t-e,i):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var i=0,r=0;r<t.length;++r)i+=t[r].height;this.insertInner(e-this.first,t,i)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=fr(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:st(function(e){var t=W(this.first,0),i=this.first+this.size-1;Wi(this,{from:t,to:W(i,q(this,i).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&yn(this.cm,0,0),Et(this,_r(t),k)}),replaceRange:function(e,t,i,r){t=fe(this,t),i=i?fe(this,i):t,ki(this,e,t,i,r)},getRange:function(e,t,i){var r=gt(this,fe(this,e),fe(this,t));return i===!1?r:i===""?r.join(""):r.join(i||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(Mr(this,e))return q(this,e)},getLineNumber:function(e){return pe(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=q(this,e)),ir(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return fe(this,e)},getCursor:function(e){var t=this.sel.primary(),i;return e==null||e=="head"?i=t.head:e=="anchor"?i=t.anchor:e=="end"||e=="to"||e===!1?i=t.to():i=t.from(),i},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:st(function(e,t,i){Bu(this,fe(this,typeof e=="number"?W(e,t||0):e),null,i)}),setSelection:st(function(e,t,i){Bu(this,fe(this,e),fe(this,t||e),i)}),extendSelection:st(function(e,t,i){wo(this,fe(this,e),t&&fe(this,t),i)}),extendSelections:st(function(e,t){Fu(this,Cl(this,e),t)}),extendSelectionsBy:st(function(e,t){var i=Qt(this.sel.ranges,e);Fu(this,Cl(this,i),t)}),setSelections:st(function(e,t,i){if(e.length){for(var r=[],o=0;o<e.length;o++)r[o]=new Ne(fe(this,e[o].anchor),fe(this,e[o].head||e[o].anchor));t==null&&(t=Math.min(e.length-1,this.sel.primIndex)),Et(this,or(this.cm,r,t),i)}}),addSelection:st(function(e,t,i){var r=this.sel.ranges.slice(0);r.push(new Ne(fe(this,e),fe(this,t||e))),Et(this,or(this.cm,r,r.length-1),i)}),getSelection:function(e){for(var t=this.sel.ranges,i,r=0;r<t.length;r++){var o=gt(this,t[r].from(),t[r].to());i=i?i.concat(o):o}return e===!1?i:i.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],i=this.sel.ranges,r=0;r<i.length;r++){var o=gt(this,i[r].from(),i[r].to());e!==!1&&(o=o.join(e||this.lineSeparator())),t[r]=o}return t},replaceSelection:function(e,t,i){for(var r=[],o=0;o<this.sel.ranges.length;o++)r[o]=e;this.replaceSelections(r,t,i||"+input")},replaceSelections:st(function(e,t,i){for(var r=[],o=this.sel,l=0;l<o.ranges.length;l++){var p=o.ranges[l];r[l]={from:p.from(),to:p.to(),text:this.splitLines(e[l]),origin:i}}for(var c=t&&t!="end"&&GE(this,r,t),d=r.length-1;d>=0;d--)Wi(this,r[d]);c?Du(this,c):this.cm&&Pi(this.cm)}),undo:st(function(){ko(this,"undo")}),redo:st(function(){ko(this,"redo")}),undoSelection:st(function(){ko(this,"undo",!0)}),redoSelection:st(function(){ko(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,i=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var o=0;o<e.undone.length;o++)e.undone[o].ranges||++i;return{undo:t,redo:i}},clearHistory:function(){var e=this;this.history=new Po(this.history),kr(this,function(t){return t.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:wi(this.history.done),undone:wi(this.history.undone)}},setHistory:function(e){var t=this.history=new Po(this.history);t.done=wi(e.done.slice(0),null,!0),t.undone=wi(e.undone.slice(0),null,!0)},setGutterMarker:st(function(e,t,i){return Mn(this,e,"gutter",function(r){var o=r.gutterMarkers||(r.gutterMarkers={});return o[t]=i,!i&&He(o)&&(r.gutterMarkers=null),!0})}),clearGutter:st(function(e){var t=this;this.iter(function(i){i.gutterMarkers&&i.gutterMarkers[e]&&Mn(t,i,"gutter",function(){return i.gutterMarkers[e]=null,He(i.gutterMarkers)&&(i.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if(typeof e=="number"){if(!Mr(this,e)||(t=e,e=q(this,e),!e))return null}else if(t=pe(e),t==null)return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:st(function(e,t,i){return Mn(this,e,t=="gutter"?"gutter":"class",function(r){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass";if(!r[o])r[o]=i;else{if(te(i).test(r[o]))return!1;r[o]+=" "+i}return!0})}),removeLineClass:st(function(e,t,i){return Mn(this,e,t=="gutter"?"gutter":"class",function(r){var o=t=="text"?"textClass":t=="background"?"bgClass":t=="gutter"?"gutterClass":"wrapClass",l=r[o];if(l)if(i==null)r[o]=null;else{var p=l.match(te(i));if(!p)return!1;var c=p.index+p[0].length;r[o]=l.slice(0,p.index)+(!p.index||c==l.length?"":" ")+l.slice(c)||null}else return!1;return!0})}),addLineWidget:st(function(e,t,i){return _E(this,e,t,i)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,i){return Zi(this,fe(this,e),fe(this,t),i,i&&i.type||"range")},setBookmark:function(e,t){var i={replacedWith:t&&(t.nodeType==null?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=fe(this,e),Zi(this,e,e,i,"bookmark")},findMarksAt:function(e){e=fe(this,e);var t=[],i=q(this,e.line).markedSpans;if(i)for(var r=0;r<i.length;++r){var o=i[r];(o.from==null||o.from<=e.ch)&&(o.to==null||o.to>=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,i){e=fe(this,e),t=fe(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(l){var p=l.markedSpans;if(p)for(var c=0;c<p.length;c++){var d=p[c];!(d.to!=null&&o==e.line&&e.ch>=d.to||d.from==null&&o!=e.line||d.from!=null&&o==t.line&&d.from>=t.ch)&&(!i||i(d.marker))&&r.push(d.marker.parent||d.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var i=t.markedSpans;if(i)for(var r=0;r<i.length;++r)i[r].from!=null&&e.push(i[r].marker)}),e},posFromIndex:function(e){var t,i=this.first,r=this.lineSeparator().length;return this.iter(function(o){var l=o.text.length+r;if(l>e)return t=e,!0;e-=l,++i}),fe(this,W(i,t))},indexFromPos:function(e){e=fe(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var i=this.lineSeparator().length;return this.iter(this.first,e.line,function(r){t+=r.text.length+i}),t},copy:function(e){var t=new Rt(fr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,i=this.first+this.size;e.from!=null&&e.from>t&&(t=e.from),e.to!=null&&e.to<i&&(i=e.to);var r=new Rt(fr(this,t,i),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],kE(r,ju(this)),r},unlinkDoc:function(e){if(e instanceof Me&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t){var i=this.linked[t];if(i.doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ZE(ju(this));break}}if(e.history==this.history){var r=[e.id];kr(e,function(o){return r.push(o.id)},!0),e.history=new Po(null),e.history.done=wi(this.history.done,r),e.history.undone=wi(this.history.undone,r)}},iterLinkedDocs:function(e){kr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ri(e)},lineSeparator:function(){return this.lineSep||`
|
|
11
|
-
`},setDirection:st(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(t){return t.order=null}),this.cm&&UE(this.cm))})}),Rt.prototype.eachLine=Rt.prototype.iter;var zu=0;function QE(e){var t=this;if(qu(t),!(Ve(t,e)||Cr(t.display,e))){ht(e),m&&(zu=+new Date);var i=si(t,e,!0),r=e.dataTransfer.files;if(!(!i||t.isReadOnly()))if(r&&r.length&&window.FileReader&&window.File)for(var o=r.length,l=Array(o),p=0,c=function(){++p==o&&ot(t,function(){i=fe(t.doc,i);var O={from:i,to:i,text:t.doc.splitLines(l.filter(function(P){return P!=null}).join(t.doc.lineSeparator())),origin:"paste"};Wi(t.doc,O),Du(t.doc,_r(fe(t.doc,i),fe(t.doc,Wr(O))))})()},d=function(O,P){if(t.options.allowDropFileTypes&&Ue(t.options.allowDropFileTypes,O.type)==-1){c();return}var _=new FileReader;_.onerror=function(){return c()},_.onload=function(){var Z=_.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Z)){c();return}l[P]=Z,c()},_.readAsText(O)},E=0;E<r.length;E++)d(r[E],E);else{if(t.state.draggingText&&t.doc.sel.contains(i)>-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var N=e.dataTransfer.getData("Text");if(N){var A;if(t.state.draggingText&&!t.state.draggingText.copy&&(A=t.listSelections()),_o(t.doc,_r(i,i)),A)for(var U=0;U<A.length;++U)ki(t.doc,"",A[U].anchor,A[U].head,"drag");t.replaceSelection(N,"around","paste"),t.display.input.focus()}}catch{}}}}function YE(e,t){if(m&&(!e.state.draggingText||+new Date-zu<100)){ii(t);return}if(!(Ve(e,t)||Cr(e.display,t))&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!M)){var i=Y("img",null,null,"position: fixed; left: 0; top: 0;");i.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",y&&(i.width=i.height=1,e.display.wrapper.appendChild(i),i._top=i.offsetTop),t.dataTransfer.setDragImage(i,0,0),y&&i.parentNode.removeChild(i)}}function XE(e,t){var i=si(e,t);if(i){var r=document.createDocumentFragment();na(e,i,r),e.display.dragCursor||(e.display.dragCursor=Y("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),me(e.display.dragCursor,r)}}function qu(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ku(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),i=[],r=0;r<t.length;r++){var o=t[r].CodeMirror;o&&i.push(o)}i.length&&i[0].operation(function(){for(var l=0;l<i.length;l++)e(i[l])})}}var $u=!1;function JE(){$u||(jE(),$u=!0)}function jE(){var e;se(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Ku(zE)},100))}),se(window,"blur",function(){return Ku(Mi)})}function zE(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Hr={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"},Wn=0;Wn<10;Wn++)Hr[Wn+48]=Hr[Wn+96]=String(Wn);for(var Zo=65;Zo<=90;Zo++)Hr[Zo]=String.fromCharCode(Zo);for(var kn=1;kn<=12;kn++)Hr[kn+111]=Hr[kn+63235]="F"+kn;var Lr={};Lr.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"},Lr.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"},Lr.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"},Lr.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"]},Lr.default=R?Lr.macDefault:Lr.pcDefault;function qE(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var i,r,o,l,p=0;p<t.length-1;p++){var c=t[p];if(/^(cmd|meta|m)$/i.test(c))l=!0;else if(/^a(lt)?$/i.test(c))i=!0;else if(/^(c|ctrl|control)$/i.test(c))r=!0;else if(/^s(hift)?$/i.test(c))o=!0;else throw new Error("Unrecognized modifier name: "+c)}return i&&(e="Alt-"+e),r&&(e="Ctrl-"+e),l&&(e="Cmd-"+e),o&&(e="Shift-"+e),e}function KE(e){var t={};for(var i in e)if(e.hasOwnProperty(i)){var r=e[i];if(/^(name|fallthrough|(de|at)tach)$/.test(i))continue;if(r=="..."){delete e[i];continue}for(var o=Qt(i.split(" "),qE),l=0;l<o.length;l++){var p=void 0,c=void 0;l==o.length-1?(c=o.join(" "),p=r):(c=o.slice(0,l+1).join(" "),p="...");var d=t[c];if(!d)t[c]=p;else if(d!=p)throw new Error("Inconsistent bindings for "+c)}delete e[i]}for(var E in t)e[E]=t[E];return e}function Hi(e,t,i,r){t=Ho(t);var o=t.call?t.call(e,r):t[e];if(o===!1)return"nothing";if(o==="...")return"multi";if(o!=null&&i(o))return"handled";if(t.fallthrough){if(Object.prototype.toString.call(t.fallthrough)!="[object Array]")return Hi(e,t.fallthrough,i,r);for(var l=0;l<t.fallthrough.length;l++){var p=Hi(e,t.fallthrough[l],i,r);if(p)return p}}}function ep(e){var t=typeof e=="string"?e:Hr[e.keyCode];return t=="Ctrl"||t=="Alt"||t=="Shift"||t=="Mod"}function tp(e,t,i){var r=e;return t.altKey&&r!="Alt"&&(e="Alt-"+e),(Q?t.metaKey:t.ctrlKey)&&r!="Ctrl"&&(e="Ctrl-"+e),(Q?t.ctrlKey:t.metaKey)&&r!="Mod"&&(e="Cmd-"+e),!i&&t.shiftKey&&r!="Shift"&&(e="Shift-"+e),e}function rp(e,t){if(y&&e.keyCode==34&&e.char)return!1;var i=Hr[e.keyCode];return i==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(i=e.code),tp(i,e,t))}function Ho(e){return typeof e=="string"?Lr[e]:e}function Qi(e,t){for(var i=e.doc.sel.ranges,r=[],o=0;o<i.length;o++){for(var l=t(i[o]);r.length&&ce(l.from,$(r).to)<=0;){var p=r.pop();if(ce(p.from,l.from)<0){l.from=p.from;break}}r.push(l)}_t(e,function(){for(var c=r.length-1;c>=0;c--)ki(e.doc,"",r[c].from,r[c].to,"+delete");Pi(e)})}function Na(e,t,i){var r=Kt(e.text,t+i,i);return r<0||r>e.text.length?null:r}function Ta(e,t,i){var r=Na(e,t.ch,i);return r==null?null:new W(t.line,r,i<0?"after":"before")}function Aa(e,t,i,r,o){if(e){t.doc.direction=="rtl"&&(o=-o);var l=rt(i,t.doc.direction);if(l){var p=o<0?$(l):l[0],c=o<0==(p.level==1),d=c?"after":"before",E;if(p.level>0||t.doc.direction=="rtl"){var N=Fi(t,i);E=o<0?i.text.length-1:0;var A=Er(t,N,E).top;E=Fr(function(U){return Er(t,N,U).top==A},o<0==(p.level==1)?p.from:p.to-1,E),d=="before"&&(E=Na(i,E,1))}else E=o<0?p.to:p.from;return new W(r,E,d)}}return new W(r,o<0?i.text.length:0,o<0?"before":"after")}function $E(e,t,i,r){var o=rt(t,e.doc.direction);if(!o)return Ta(t,i,r);i.ch>=t.text.length?(i.ch=t.text.length,i.sticky="before"):i.ch<=0&&(i.ch=0,i.sticky="after");var l=pr(o,i.ch,i.sticky),p=o[l];if(e.doc.direction=="ltr"&&p.level%2==0&&(r>0?p.to>i.ch:p.from<i.ch))return Ta(t,i,r);var c=function(X,z){return Na(t,X instanceof W?X.ch:X,z)},d,E=function(X){return e.options.lineWrapping?(d=d||Fi(e,t),au(e,t,d,X)):{begin:0,end:t.text.length}},N=E(i.sticky=="before"?c(i,-1):i.ch);if(e.doc.direction=="rtl"||p.level==1){var A=p.level==1==r<0,U=c(i,A?1:-1);if(U!=null&&(A?U<=p.to&&U<=N.end:U>=p.from&&U>=N.begin)){var O=A?"before":"after";return new W(i.line,U,O)}}var P=function(X,z,J){for(var K=function(ye,at){return at?new W(i.line,c(ye,1),"before"):new W(i.line,ye,"after")};X>=0&&X<o.length;X+=z){var ae=o[X],ne=z>0==(ae.level!=1),Ee=ne?J.begin:c(J.end,-1);if(ae.from<=Ee&&Ee<ae.to||(Ee=ne?ae.from:c(ae.to,-1),J.begin<=Ee&&Ee<J.end))return K(Ee,ne)}},_=P(l+r,r,N);if(_)return _;var Z=r>0?N.end:c(N.begin,-1);return Z!=null&&!(r>0&&Z==t.text.length)&&(_=P(r>0?0:o.length-1,r,E(Z)),_)?_:null}var Zn={selectAll:_u,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),k)},killLine:function(e){return Qi(e,function(t){if(t.empty()){var i=q(e.doc,t.head.line).text.length;return t.head.ch==i&&t.head.line<e.lastLine()?{from:t.head,to:W(t.head.line+1,0)}:{from:t.head,to:W(t.head.line,i)}}else return{from:t.from(),to:t.to()}})},deleteLine:function(e){return Qi(e,function(t){return{from:W(t.from().line,0),to:fe(e.doc,W(t.to().line+1,0))}})},delLineLeft:function(e){return Qi(e,function(t){return{from:W(t.from().line,0),to:t.from()}})},delWrappedLineLeft:function(e){return Qi(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return{from:r,to:t.from()}})},delWrappedLineRight:function(e){return Qi(e,function(t){var i=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div");return{from:t.from(),to:r}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(W(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(W(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return ip(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return np(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return em(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:i},"div")},Te)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:i},"div")},Te)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var i=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:i},"div");return r.ch<e.getLine(r.line).search(/\S/)?np(e,t.head):r},Te)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var t=[],i=e.listSelections(),r=e.options.tabSize,o=0;o<i.length;o++){var l=i[o].from(),p=De(e.getLine(l.line),l.ch,r);t.push(jt(r-p%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return _t(e,function(){for(var t=e.listSelections(),i=[],r=0;r<t.length;r++)if(t[r].empty()){var o=t[r].head,l=q(e.doc,o.line).text;if(l){if(o.ch==l.length&&(o=new W(o.line,o.ch-1)),o.ch>0)o=new W(o.line,o.ch+1),e.replaceRange(l.charAt(o.ch-1)+l.charAt(o.ch-2),W(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var p=q(e.doc,o.line-1).text;p&&(o=new W(o.line,1),e.replaceRange(l.charAt(0)+e.doc.lineSeparator()+p.charAt(p.length-1),W(o.line-1,p.length-1),o,"+transpose"))}}i.push(new Ne(o,o))}e.setSelections(i)})},newlineAndIndent:function(e){return _t(e,function(){for(var t=e.listSelections(),i=t.length-1;i>=0;i--)e.replaceRange(e.doc.lineSeparator(),t[i].anchor,t[i].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Pi(e)})},openLine:function(e){return e.replaceSelection(`
|
|
12
|
-
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function ip(e,t){var i=q(e.doc,t),r=ir(i);return r!=i&&(t=pe(r)),Aa(!0,e,r,t,1)}function em(e,t){var i=q(e.doc,t),r=Pg(i);return r!=i&&(t=pe(r)),Aa(!0,e,i,t,-1)}function np(e,t){var i=ip(e,t.line),r=q(e.doc,i.line),o=rt(r,e.doc.direction);if(!o||o[0].level==0){var l=Math.max(i.ch,r.text.search(/\S/)),p=t.line==i.line&&t.ch<=l&&t.ch;return W(i.line,p?0:l,i.sticky)}return i}function Qo(e,t,i){if(typeof t=="string"&&(t=Zn[t],!t))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),i&&(e.display.shift=!1),o=t(e)!=re}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function tm(e,t,i){for(var r=0;r<e.state.keyMaps.length;r++){var o=Hi(t,e.state.keyMaps[r],i,e);if(o)return o}return e.options.extraKeys&&Hi(t,e.options.extraKeys,i,e)||Hi(t,e.options.keyMap,i,e)}var rm=new tt;function Hn(e,t,i,r){var o=e.state.keySeq;if(o){if(ep(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:rm.set(50,function(){e.state.keySeq==o&&(e.state.keySeq=null,e.display.input.reset())}),op(e,o+" "+t,i,r))return!0}return op(e,t,i,r)}function op(e,t,i,r){var o=tm(e,t,r);return o=="multi"&&(e.state.keySeq=t),o=="handled"&&nt(e,"keyHandled",e,t,i),(o=="handled"||o=="multi")&&(ht(i),oa(e)),!!o}function sp(e,t){var i=rp(t,!0);return i?t.shiftKey&&!e.state.keySeq?Hn(e,"Shift-"+i,t,function(r){return Qo(e,r,!0)})||Hn(e,i,t,function(r){if(typeof r=="string"?/^go[A-Z]/.test(r):r.motion)return Qo(e,r)}):Hn(e,i,t,function(r){return Qo(e,r)}):!1}function im(e,t,i){return Hn(e,"'"+i+"'",t,function(r){return Qo(e,r,!0)})}var Ca=null;function ap(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&(t.curOp.focus=je(Ct(t)),!Ve(t,e))){m&&I<11&&e.keyCode==27&&(e.returnValue=!1);var i=e.keyCode;t.display.shift=i==16||e.shiftKey;var r=sp(t,e);y&&(Ca=r?i:null,!r&&i==88&&!In&&(R?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),a&&!R&&!r&&i==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),i==18&&!/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)&&nm(t)}}function nm(e){var t=e.display.lineDiv;Le(t,"CodeMirror-crosshair");function i(r){(r.keyCode==18||!r.altKey)&&(ue(t,"CodeMirror-crosshair"),St(document,"keyup",i),St(document,"mouseover",i))}se(document,"keyup",i),se(document,"mouseover",i)}function lp(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ve(this,e)}function up(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField())&&!(Cr(t.display,e)||Ve(t,e)||e.ctrlKey&&!e.altKey||R&&e.metaKey)){var i=e.keyCode,r=e.charCode;if(y&&i==Ca){Ca=null,ht(e);return}if(!(y&&(!e.which||e.which<10)&&sp(t,e))){var o=String.fromCharCode(r??i);o!="\b"&&(im(t,e,o)||t.display.input.onKeyPress(e))}}}var om=400,Sa=function(e,t,i){this.time=e,this.pos=t,this.button=i};Sa.prototype.compare=function(e,t,i){return this.time+om>e&&ce(t,this.pos)==0&&i==this.button};var Qn,Yn;function sm(e,t){var i=+new Date;return Yn&&Yn.compare(i,e,t)?(Qn=Yn=null,"triple"):Qn&&Qn.compare(i,e,t)?(Yn=new Sa(i,e,t),Qn=null,"double"):(Qn=new Sa(i,e,t),Yn=null,"single")}function pp(e){var t=this,i=t.display;if(!(Ve(t,e)||i.activeTouch&&i.input.supportsTouch())){if(i.input.ensurePolled(),i.shift=e.shiftKey,Cr(i,e)){T||(i.scroller.draggable=!1,setTimeout(function(){return i.scroller.draggable=!0},100));return}if(!La(t,e)){var r=si(t,e),o=Si(e),l=r?sm(r,o):"single";Ht(t).focus(),o==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&am(t,o,r,l,e))&&(o==1?r?um(t,r,l,e):Ci(e)==i.scroller&&ht(e):o==2?(r&&wo(t.doc,r),setTimeout(function(){return i.input.focus()},20)):o==3&&(de?t.display.input.onContextMenu(e):sa(t)))}}}function am(e,t,i,r,o){var l="Click";return r=="double"?l="Double"+l:r=="triple"&&(l="Triple"+l),l=(t==1?"Left":t==2?"Middle":"Right")+l,Hn(e,tp(l,o),o,function(p){if(typeof p=="string"&&(p=Zn[p]),!p)return!1;var c=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),c=p(e,i)!=re}finally{e.state.suppressEdits=!1}return c})}function lm(e,t,i){var r=e.getOption("configureMouse"),o=r?r(e,t,i):{};if(o.unit==null){var l=B?i.shiftKey&&i.metaKey:i.altKey;o.unit=l?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(o.extend==null||e.doc.extend)&&(o.extend=e.doc.extend||i.shiftKey),o.addNew==null&&(o.addNew=R?i.metaKey:i.ctrlKey),o.moveOnDrag==null&&(o.moveOnDrag=!(R?i.altKey:i.ctrlKey)),o}function um(e,t,i,r){m?setTimeout(he(cu,e),0):e.curOp.focus=je(Ct(e));var o=lm(e,i,r),l=e.doc.sel,p;e.options.dragDrop&&ho&&!e.isReadOnly()&&i=="single"&&(p=l.contains(t))>-1&&(ce((p=l.ranges[p]).from(),t)<0||t.xRel>0)&&(ce(p.to(),t)>0||t.xRel<0)?pm(e,r,t,o):cm(e,r,t,o)}function pm(e,t,i,r){var o=e.display,l=!1,p=ot(e,function(E){T&&(o.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:sa(e)),St(o.wrapper.ownerDocument,"mouseup",p),St(o.wrapper.ownerDocument,"mousemove",c),St(o.scroller,"dragstart",d),St(o.scroller,"drop",p),l||(ht(E),r.addNew||wo(e.doc,i,null,null,r.extend),T&&!M||m&&I==9?setTimeout(function(){o.wrapper.ownerDocument.body.focus({preventScroll:!0}),o.input.focus()},20):o.input.focus())}),c=function(E){l=l||Math.abs(t.clientX-E.clientX)+Math.abs(t.clientY-E.clientY)>=10},d=function(){return l=!0};T&&(o.scroller.draggable=!0),e.state.draggingText=p,p.copy=!r.moveOnDrag,se(o.wrapper.ownerDocument,"mouseup",p),se(o.wrapper.ownerDocument,"mousemove",c),se(o.scroller,"dragstart",d),se(o.scroller,"drop",p),e.state.delayingBlurEvent=!0,setTimeout(function(){return o.input.focus()},20),o.scroller.dragDrop&&o.scroller.dragDrop()}function cp(e,t,i){if(i=="char")return new Ne(t,t);if(i=="word")return e.findWordAt(t);if(i=="line")return new Ne(W(t.line,0),fe(e.doc,W(t.line+1,0)));var r=i(e,t);return new Ne(r.from,r.to)}function cm(e,t,i,r){m&&sa(e);var o=e.display,l=e.doc;ht(t);var p,c,d=l.sel,E=d.ranges;if(r.addNew&&!r.extend?(c=l.sel.contains(i),c>-1?p=E[c]:p=new Ne(i,i)):(p=l.sel.primary(),c=l.sel.primIndex),r.unit=="rectangle")r.addNew||(p=new Ne(i,i)),i=si(e,t,!0,!0),c=-1;else{var N=cp(e,i,r.unit);r.extend?p=va(p,N.anchor,N.head,r.extend):p=N}r.addNew?c==-1?(c=E.length,Et(l,or(e,E.concat([p]),c),{scroll:!1,origin:"*mouse"})):E.length>1&&E[c].empty()&&r.unit=="char"&&!r.extend?(Et(l,or(e,E.slice(0,c).concat(E.slice(c+1)),0),{scroll:!1,origin:"*mouse"}),d=l.sel):Ia(l,c,p,Ze):(c=0,Et(l,new Yt([p],0),Ze),d=l.sel);var A=i;function U(J){if(ce(A,J)!=0)if(A=J,r.unit=="rectangle"){for(var K=[],ae=e.options.tabSize,ne=De(q(l,i.line).text,i.ch,ae),Ee=De(q(l,J.line).text,J.ch,ae),ye=Math.min(ne,Ee),at=Math.max(ne,Ee),we=Math.min(i.line,J.line),Wt=Math.min(e.lastLine(),Math.max(i.line,J.line));we<=Wt;we++){var yt=q(l,we).text,Xe=ve(yt,ye,ae);ye==at?K.push(new Ne(W(we,Xe),W(we,Xe))):yt.length>Xe&&K.push(new Ne(W(we,Xe),W(we,ve(yt,at,ae))))}K.length||K.push(new Ne(i,i)),Et(l,or(e,d.ranges.slice(0,c).concat(K),c),{origin:"*mouse",scroll:!1}),e.scrollIntoView(J)}else{var bt=p,ct=cp(e,J,r.unit),qe=bt.anchor,Je;ce(ct.anchor,qe)>0?(Je=ct.head,qe=vo(bt.from(),ct.anchor)):(Je=ct.anchor,qe=xo(bt.to(),ct.head));var ke=d.ranges.slice(0);ke[c]=fm(e,new Ne(fe(l,qe),Je)),Et(l,or(e,ke,c),Ze)}}var O=o.wrapper.getBoundingClientRect(),P=0;function _(J){var K=++P,ae=si(e,J,!0,r.unit=="rectangle");if(ae)if(ce(ae,A)!=0){e.curOp.focus=je(Ct(e)),U(ae);var ne=Fo(o,l);(ae.line>=ne.to||ae.line<ne.from)&&setTimeout(ot(e,function(){P==K&&_(J)}),150)}else{var Ee=J.clientY<O.top?-20:J.clientY>O.bottom?20:0;Ee&&setTimeout(ot(e,function(){P==K&&(o.scroller.scrollTop+=Ee,_(J))}),50)}}function Z(J){e.state.selectingText=!1,P=1/0,J&&(ht(J),o.input.focus()),St(o.wrapper.ownerDocument,"mousemove",X),St(o.wrapper.ownerDocument,"mouseup",z),l.history.lastSelOrigin=null}var X=ot(e,function(J){J.buttons===0||!Si(J)?Z(J):_(J)}),z=ot(e,Z);e.state.selectingText=z,se(o.wrapper.ownerDocument,"mousemove",X),se(o.wrapper.ownerDocument,"mouseup",z)}function fm(e,t){var i=t.anchor,r=t.head,o=q(e.doc,i.line);if(ce(i,r)==0&&i.sticky==r.sticky)return t;var l=rt(o);if(!l)return t;var p=pr(l,i.ch,i.sticky),c=l[p];if(c.from!=i.ch&&c.to!=i.ch)return t;var d=p+(c.from==i.ch==(c.level!=1)?0:1);if(d==0||d==l.length)return t;var E;if(r.line!=i.line)E=(r.line-i.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var N=pr(l,r.ch,r.sticky),A=N-p||(r.ch-i.ch)*(c.level==1?-1:1);N==d-1||N==d?E=A<0:E=A>0}var U=l[d+(E?-1:0)],O=E==(U.level==1),P=O?U.from:U.to,_=O?"after":"before";return i.ch==P&&i.sticky==_?t:new Ne(new W(i.line,P,_),r)}function fp(e,t,i,r){var o,l;if(t.touches)o=t.touches[0].clientX,l=t.touches[0].clientY;else try{o=t.clientX,l=t.clientY}catch{return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ht(t);var p=e.display,c=p.lineDiv.getBoundingClientRect();if(l>c.bottom||!pt(e,i))return cr(t);l-=c.top-p.viewOffset;for(var d=0;d<e.display.gutterSpecs.length;++d){var E=p.gutters.childNodes[d];if(E&&E.getBoundingClientRect().right>=o){var N=dr(e.doc,l),A=e.display.gutterSpecs[d];return Fe(e,i,e,N,A.className,t),cr(t)}}}function La(e,t){return fp(e,t,"gutterClick",!0)}function dp(e,t){Cr(e.display,t)||dm(e,t)||Ve(e,t,"contextmenu")||de||e.display.input.onContextMenu(t)}function dm(e,t){return pt(e,"gutterContextMenu")?fp(e,t,"gutterContextMenu",!1):!1}function hp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ln(e)}var Yi={toString:function(){return"CodeMirror.Init"}},gp={},Yo={};function hm(e){var t=e.optionHandlers;function i(r,o,l,p){e.defaults[r]=o,l&&(t[r]=p?function(c,d,E){E!=Yi&&l(c,d,E)}:l)}e.defineOption=i,e.Init=Yi,i("value","",function(r,o){return r.setValue(o)},!0),i("mode",null,function(r,o){r.doc.modeOption=o,Ea(r)},!0),i("indentUnit",2,Ea,!0),i("indentWithTabs",!1),i("smartIndent",!0),i("tabSize",4,function(r){Bn(r),Ln(r),Lt(r)},!0),i("lineSeparator",null,function(r,o){if(r.doc.lineSep=o,!!o){var l=[],p=r.doc.first;r.doc.iter(function(d){for(var E=0;;){var N=d.text.indexOf(o,E);if(N==-1)break;E=N+o.length,l.push(W(p,N))}p++});for(var c=l.length-1;c>=0;c--)ki(r.doc,o,l[c],W(l[c].line,l[c].ch+o.length))}}),i("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,o,l){r.state.specialChars=new RegExp(o.source+(o.test(" ")?"":"| "),"g"),l!=Yi&&r.refresh()}),i("specialCharPlaceholder",Zg,function(r){return r.refresh()},!0),i("electricChars",!0),i("inputStyle",C?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),i("spellcheck",!1,function(r,o){return r.getInputField().spellcheck=o},!0),i("autocorrect",!1,function(r,o){return r.getInputField().autocorrect=o},!0),i("autocapitalize",!1,function(r,o){return r.getInputField().autocapitalize=o},!0),i("rtlMoveVisually",!D),i("wholeLineUpdateBefore",!0),i("theme","default",function(r){hp(r),Fn(r)},!0),i("keyMap","default",function(r,o,l){var p=Ho(o),c=l!=Yi&&Ho(l);c&&c.detach&&c.detach(r,p),p.attach&&p.attach(r,c||null)}),i("extraKeys",null),i("configureMouse",null),i("lineWrapping",!1,Em,!0),i("gutters",[],function(r,o){r.display.gutterSpecs=ha(o,r.options.lineNumbers),Fn(r)},!0),i("fixedGutter",!0,function(r,o){r.display.gutters.style.left=o?ra(r.display)+"px":"0",r.refresh()},!0),i("coverGutterNextToScrollbar",!1,function(r){return Vi(r)},!0),i("scrollbarStyle","native",function(r){mu(r),Vi(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),i("lineNumbers",!1,function(r,o){r.display.gutterSpecs=ha(r.options.gutters,o),Fn(r)},!0),i("firstLineNumber",1,Fn,!0),i("lineNumberFormatter",function(r){return r},Fn,!0),i("showCursorWhenSelecting",!1,Rn,!0),i("resetSelectionOnContextMenu",!0),i("lineWiseCopyCut",!0),i("pasteLinesPerSelection",!0),i("selectionsMayTouch",!1),i("readOnly",!1,function(r,o){o=="nocursor"&&(Mi(r),r.display.input.blur()),r.display.input.readOnlyChanged(o)}),i("screenReaderLabel",null,function(r,o){o=o===""?null:o,r.display.input.screenReaderLabelChanged(o)}),i("disableInput",!1,function(r,o){o||r.display.input.reset()},!0),i("dragDrop",!0,gm),i("allowDropFileTypes",null),i("cursorBlinkRate",530),i("cursorScrollMargin",0),i("cursorHeight",1,Rn,!0),i("singleCursorHeightPerLine",!0,Rn,!0),i("workTime",100),i("workDelay",100),i("flattenSpans",!0,Bn,!0),i("addModeClass",!1,Bn,!0),i("pollInterval",100),i("undoDepth",200,function(r,o){return r.doc.history.undoDepth=o}),i("historyEventDelay",1250),i("viewportMargin",10,function(r){return r.refresh()},!0),i("maxHighlightLength",1e4,Bn,!0),i("moveInputWithCursor",!0,function(r,o){o||r.display.input.resetPosition()}),i("tabindex",null,function(r,o){return r.display.input.getField().tabIndex=o||""}),i("autofocus",null),i("direction","ltr",function(r,o){return r.doc.setDirection(o)},!0),i("phrases",null)}function gm(e,t,i){var r=i&&i!=Yi;if(!t!=!r){var o=e.display.dragFunctions,l=t?se:St;l(e.display.scroller,"dragstart",o.start),l(e.display.scroller,"dragenter",o.enter),l(e.display.scroller,"dragover",o.over),l(e.display.scroller,"dragleave",o.leave),l(e.display.scroller,"drop",o.drop)}}function Em(e){e.options.lineWrapping?(Le(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(ue(e.display.wrapper,"CodeMirror-wrap"),Ys(e)),ia(e),Lt(e),Ln(e),setTimeout(function(){return Vi(e)},100)}function Me(e,t){var i=this;if(!(this instanceof Me))return new Me(e,t);this.options=t=t?ze(t):{},ze(gp,t,!1);var r=t.value;typeof r=="string"?r=new Rt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var o=new Me.inputStyles[t.inputStyle](this),l=this.display=new bE(e,r,o,t);l.wrapper.CodeMirror=this,hp(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),mu(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 tt,keySeq:null,specialChars:null},t.autofocus&&!C&&l.input.focus(),m&&I<11&&setTimeout(function(){return i.display.input.reset(!0)},20),mm(this),JE(),pi(this),this.curOp.forceUpdate=!0,Ru(this,r),t.autofocus&&!C||this.hasFocus()?setTimeout(function(){i.hasFocus()&&!i.state.focused&&aa(i)},20):Mi(this);for(var p in Yo)Yo.hasOwnProperty(p)&&Yo[p](this,t[p],Yi);Iu(this),t.finishInit&&t.finishInit(this);for(var c=0;c<Ra.length;++c)Ra[c](this);ci(this),T&&t.lineWrapping&&getComputedStyle(l.lineDiv).textRendering=="optimizelegibility"&&(l.lineDiv.style.textRendering="auto")}Me.defaults=gp,Me.optionHandlers=Yo;function mm(e){var t=e.display;se(t.scroller,"mousedown",ot(e,pp)),m&&I<11?se(t.scroller,"dblclick",ot(e,function(d){if(!Ve(e,d)){var E=si(e,d);if(!(!E||La(e,d)||Cr(e.display,d))){ht(d);var N=e.findWordAt(E);wo(e.doc,N.anchor,N.head)}}})):se(t.scroller,"dblclick",function(d){return Ve(e,d)||ht(d)}),se(t.scroller,"contextmenu",function(d){return dp(e,d)}),se(t.input.getField(),"contextmenu",function(d){t.scroller.contains(d.target)||dp(e,d)});var i,r={end:0};function o(){t.activeTouch&&(i=setTimeout(function(){return t.activeTouch=null},1e3),r=t.activeTouch,r.end=+new Date)}function l(d){if(d.touches.length!=1)return!1;var E=d.touches[0];return E.radiusX<=1&&E.radiusY<=1}function p(d,E){if(E.left==null)return!0;var N=E.left-d.left,A=E.top-d.top;return N*N+A*A>20*20}se(t.scroller,"touchstart",function(d){if(!Ve(e,d)&&!l(d)&&!La(e,d)){t.input.ensurePolled(),clearTimeout(i);var E=+new Date;t.activeTouch={start:E,moved:!1,prev:E-r.end<=300?r:null},d.touches.length==1&&(t.activeTouch.left=d.touches[0].pageX,t.activeTouch.top=d.touches[0].pageY)}}),se(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),se(t.scroller,"touchend",function(d){var E=t.activeTouch;if(E&&!Cr(t,d)&&E.left!=null&&!E.moved&&new Date-E.start<300){var N=e.coordsChar(t.activeTouch,"page"),A;!E.prev||p(E,E.prev)?A=new Ne(N,N):!E.prev.prev||p(E,E.prev.prev)?A=e.findWordAt(N):A=new Ne(W(N.line,0),fe(e.doc,W(N.line+1,0))),e.setSelection(A.anchor,A.head),e.focus(),ht(d)}o()}),se(t.scroller,"touchcancel",o),se(t.scroller,"scroll",function(){t.scroller.clientHeight&&(bn(e,t.scroller.scrollTop),li(e,t.scroller.scrollLeft,!0),Fe(e,"scroll",e))}),se(t.scroller,"mousewheel",function(d){return Au(e,d)}),se(t.scroller,"DOMMouseScroll",function(d){return Au(e,d)}),se(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(d){Ve(e,d)||ii(d)},over:function(d){Ve(e,d)||(XE(e,d),ii(d))},start:function(d){return YE(e,d)},drop:ot(e,QE),leave:function(d){Ve(e,d)||qu(e)}};var c=t.input.getField();se(c,"keyup",function(d){return lp.call(e,d)}),se(c,"keydown",ot(e,ap)),se(c,"keypress",ot(e,up)),se(c,"focus",function(d){return aa(e,d)}),se(c,"blur",function(d){return Mi(e,d)})}var Ra=[];Me.defineInitHook=function(e){return Ra.push(e)};function Xn(e,t,i,r){var o=e.doc,l;i==null&&(i="add"),i=="smart"&&(o.mode.indent?l=Nn(e,t).state:i="prev");var p=e.options.tabSize,c=q(o,t),d=De(c.text,null,p);c.stateAfter&&(c.stateAfter=null);var E=c.text.match(/^\s*/)[0],N;if(!r&&!/\S/.test(c.text))N=0,i="not";else if(i=="smart"&&(N=o.mode.indent(l,c.text.slice(E.length),c.text),N==re||N>150)){if(!r)return;i="prev"}i=="prev"?t>o.first?N=De(q(o,t-1).text,null,p):N=0:i=="add"?N=d+e.options.indentUnit:i=="subtract"?N=d-e.options.indentUnit:typeof i=="number"&&(N=d+i),N=Math.max(0,N);var A="",U=0;if(e.options.indentWithTabs)for(var O=Math.floor(N/p);O;--O)U+=p,A+=" ";if(U<N&&(A+=jt(N-U)),A!=E)return ki(o,A,W(t,0),W(t,E.length),"+input"),c.stateAfter=null,!0;for(var P=0;P<o.sel.ranges.length;P++){var _=o.sel.ranges[P];if(_.head.line==t&&_.head.ch<E.length){var Z=W(t,E.length);Ia(o,P,new Ne(Z,Z));break}}}var sr=null;function Xo(e){sr=e}function ya(e,t,i,r,o){var l=e.doc;e.display.shift=!1,r||(r=l.sel);var p=+new Date-200,c=o=="paste"||e.state.pasteIncoming>p,d=Ri(t),E=null;if(c&&r.ranges.length>1)if(sr&&sr.text.join(`
|
|
13
|
-
`)==
|
|
14
|
-
`)==
|
|
15
|
-
`)&&(P=_=W(P.line,0)));var Z={from:P,to:_,text:E?E[U%E.length]:d,origin:o||(c?"paste":e.state.cutIncoming>p?"cut":"+input")};Wi(e.doc,Z),nt(e,"inputRead",e,Z)}t&&!c&&mp(e,t),Pi(e),e.curOp.updateInput<2&&(e.curOp.updateInput=A),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Ep(e,t){var i=e.clipboardData&&e.clipboardData.getData("Text");if(i)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&_t(t,function(){return ya(t,i,0,null,"paste")}),!0}function mp(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var i=e.doc.sel,r=i.ranges.length-1;r>=0;r--){var o=i.ranges[r];if(!(o.head.ch>100||r&&i.ranges[r-1].head.line==o.head.line)){var l=e.getModeAt(o.head),p=!1;if(l.electricChars){for(var c=0;c<l.electricChars.length;c++)if(t.indexOf(l.electricChars.charAt(c))>-1){p=Xn(e,o.head.line,"smart");break}}else l.electricInput&&l.electricInput.test(q(e.doc,o.head.line).text.slice(0,o.head.ch))&&(p=Xn(e,o.head.line,"smart"));p&&nt(e,"electricInput",e,o.head.line)}}}function xp(e){for(var t=[],i=[],r=0;r<e.doc.sel.ranges.length;r++){var o=e.doc.sel.ranges[r].head.line,l={anchor:W(o,0),head:W(o+1,0)};i.push(l),t.push(e.getRange(l.anchor,l.head))}return{text:t,ranges:i}}function ba(e,t,i,r){e.setAttribute("autocorrect",i?"on":"off"),e.setAttribute("autocapitalize",r?"on":"off"),e.setAttribute("spellcheck",!!t)}function vp(){var e=Y("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),t=Y("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return T?e.style.width="1000px":e.setAttribute("wrap","off"),x&&(e.style.border="1px solid black"),t}function xm(e){var t=e.optionHandlers,i=e.helpers={};e.prototype={constructor:e,focus:function(){Ht(this).focus(),this.display.input.focus()},setOption:function(r,o){var l=this.options,p=l[r];l[r]==o&&r!="mode"||(l[r]=o,t.hasOwnProperty(r)&&ot(this,t[r])(this,o,p),Fe(this,"optionChange",this,r))},getOption:function(r){return this.options[r]},getDoc:function(){return this.doc},addKeyMap:function(r,o){this.state.keyMaps[o?"push":"unshift"](Ho(r))},removeKeyMap:function(r){for(var o=this.state.keyMaps,l=0;l<o.length;++l)if(o[l]==r||o[l].name==r)return o.splice(l,1),!0},addOverlay:vt(function(r,o){var l=r.token?r:e.getMode(this.options,r);if(l.startState)throw new Error("Overlays may not be stateful.");dt(this.state.overlays,{mode:l,modeSpec:r,opaque:o&&o.opaque,priority:o&&o.priority||0},function(p){return p.priority}),this.state.modeGen++,Lt(this)}),removeOverlay:vt(function(r){for(var o=this.state.overlays,l=0;l<o.length;++l){var p=o[l].modeSpec;if(p==r||typeof r=="string"&&p.name==r){o.splice(l,1),this.state.modeGen++,Lt(this);return}}}),indentLine:vt(function(r,o,l){typeof o!="string"&&typeof o!="number"&&(o==null?o=this.options.smartIndent?"smart":"prev":o=o?"add":"subtract"),Mr(this.doc,r)&&Xn(this,r,o,l)}),indentSelection:vt(function(r){for(var o=this.doc.sel.ranges,l=-1,p=0;p<o.length;p++){var c=o[p];if(c.empty())c.head.line>l&&(Xn(this,c.head.line,r,!0),l=c.head.line,p==this.doc.sel.primIndex&&Pi(this));else{var d=c.from(),E=c.to(),N=Math.max(l,d.line);l=Math.min(this.lastLine(),E.line-(E.ch?0:1))+1;for(var A=N;A<l;++A)Xn(this,A,r);var U=this.doc.sel.ranges;d.ch==0&&o.length==U.length&&U[p].from().ch>0&&Ia(this.doc,p,new Ne(d,U[p].to()),k)}}}),getTokenAt:function(r,o){return bl(this,r,o)},getLineTokens:function(r,o){return bl(this,W(r),o,!0)},getTokenTypeAt:function(r){r=fe(this.doc,r);var o=Ll(this,q(this.doc,r.line)),l=0,p=(o.length-1)/2,c=r.ch,d;if(c==0)d=o[2];else for(;;){var E=l+p>>1;if((E?o[E*2-1]:0)>=c)p=E;else if(o[E*2+1]<c)l=E+1;else{d=o[E*2+2];break}}var N=d?d.indexOf("overlay "):-1;return N<0?d:N==0?null:d.slice(0,N-1)},getModeAt:function(r){var o=this.doc.mode;return o.innerMode?e.innerMode(o,this.getTokenAt(r).state).mode:o},getHelper:function(r,o){return this.getHelpers(r,o)[0]},getHelpers:function(r,o){var l=[];if(!i.hasOwnProperty(o))return l;var p=i[o],c=this.getModeAt(r);if(typeof c[o]=="string")p[c[o]]&&l.push(p[c[o]]);else if(c[o])for(var d=0;d<c[o].length;d++){var E=p[c[o][d]];E&&l.push(E)}else c.helperType&&p[c.helperType]?l.push(p[c.helperType]):p[c.name]&&l.push(p[c.name]);for(var N=0;N<p._global.length;N++){var A=p._global[N];A.pred(c,this)&&Ue(l,A.val)==-1&&l.push(A.val)}return l},getStateAfter:function(r,o){var l=this.doc;return r=Al(l,r??l.first+l.size-1),Nn(this,r+1,o).state},cursorCoords:function(r,o){var l,p=this.doc.sel.primary();return r==null?l=p.head:typeof r=="object"?l=fe(this.doc,r):l=r?p.from():p.to(),nr(this,l,o||"page")},charCoords:function(r,o){return bo(this,fe(this.doc,r),o||"page")},coordsChar:function(r,o){return r=nu(this,r,o||"page"),$s(this,r.left,r.top)},lineAtHeight:function(r,o){return r=nu(this,{top:r,left:0},o||"page").top,dr(this.doc,r+this.display.viewOffset)},heightAtLine:function(r,o,l){var p=!1,c;if(typeof r=="number"){var d=this.doc.first+this.doc.size-1;r<this.doc.first?r=this.doc.first:r>d&&(r=d,p=!0),c=q(this.doc,r)}else c=r;return yo(this,c,{top:0,left:0},o||"page",l||p).top+(p?this.doc.height-Ar(c):0)},defaultTextHeight:function(){return Bi(this.display)},defaultCharWidth:function(){return Di(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,o,l,p,c){var d=this.display;r=nr(this,fe(this.doc,r));var E=r.bottom,N=r.left;if(o.style.position="absolute",o.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(o),d.sizer.appendChild(o),p=="over")E=r.top;else if(p=="above"||p=="near"){var A=Math.max(d.wrapper.clientHeight,this.doc.height),U=Math.max(d.sizer.clientWidth,d.lineSpace.clientWidth);(p=="above"||r.bottom+o.offsetHeight>A)&&r.top>o.offsetHeight?E=r.top-o.offsetHeight:r.bottom+o.offsetHeight<=A&&(E=r.bottom),N+o.offsetWidth>U&&(N=U-o.offsetWidth)}o.style.top=E+"px",o.style.left=o.style.right="",c=="right"?(N=d.sizer.clientWidth-o.offsetWidth,o.style.right="0px"):(c=="left"?N=0:c=="middle"&&(N=(d.sizer.clientWidth-o.offsetWidth)/2),o.style.left=N+"px"),l&&gE(this,{left:N,top:E,right:N+o.offsetWidth,bottom:E+o.offsetHeight})},triggerOnKeyDown:vt(ap),triggerOnKeyPress:vt(up),triggerOnKeyUp:lp,triggerOnMouseDown:vt(pp),execCommand:function(r){if(Zn.hasOwnProperty(r))return Zn[r].call(null,this)},triggerElectric:vt(function(r){mp(this,r)}),findPosH:function(r,o,l,p){var c=1;o<0&&(c=-1,o=-o);for(var d=fe(this.doc,r),E=0;E<o&&(d=Oa(this.doc,d,c,l,p),!d.hitSide);++E);return d},moveH:vt(function(r,o){var l=this;this.extendSelectionsBy(function(p){return l.display.shift||l.doc.extend||p.empty()?Oa(l.doc,p.head,r,o,l.options.rtlMoveVisually):r<0?p.from():p.to()},Te)}),deleteH:vt(function(r,o){var l=this.doc.sel,p=this.doc;l.somethingSelected()?p.replaceSelection("",null,"+delete"):Qi(this,function(c){var d=Oa(p,c.head,r,o,!1);return r<0?{from:d,to:c.head}:{from:c.head,to:d}})}),findPosV:function(r,o,l,p){var c=1,d=p;o<0&&(c=-1,o=-o);for(var E=fe(this.doc,r),N=0;N<o;++N){var A=nr(this,E,"div");if(d==null?d=A.left:A.left=d,E=Ip(this,A,c,l),E.hitSide)break}return E},moveV:vt(function(r,o){var l=this,p=this.doc,c=[],d=!this.display.shift&&!p.extend&&p.sel.somethingSelected();if(p.extendSelectionsBy(function(N){if(d)return r<0?N.from():N.to();var A=nr(l,N.head,"div");N.goalColumn!=null&&(A.left=N.goalColumn),c.push(A.left);var U=Ip(l,A,r,o);return o=="page"&&N==p.sel.primary()&&ua(l,bo(l,U,"div").top-A.top),U},Te),c.length)for(var E=0;E<p.sel.ranges.length;E++)p.sel.ranges[E].goalColumn=c[E]}),findWordAt:function(r){var o=this.doc,l=q(o,r.line).text,p=r.ch,c=r.ch;if(l){var d=this.getHelper(r,"wordChars");(r.sticky=="before"||c==l.length)&&p?--p:++c;for(var E=l.charAt(p),N=ie(E,d)?function(A){return ie(A,d)}:/\s/.test(E)?function(A){return/\s/.test(A)}:function(A){return!/\s/.test(A)&&!ie(A)};p>0&&N(l.charAt(p-1));)--p;for(;c<l.length&&N(l.charAt(c));)++c}return new Ne(W(r.line,p),W(r.line,c))},toggleOverwrite:function(r){r!=null&&r==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Le(this.display.cursorDiv,"CodeMirror-overwrite"):ue(this.display.cursorDiv,"CodeMirror-overwrite"),Fe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==je(Ct(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vt(function(r,o){yn(this,r,o)}),getScrollInfo:function(){var r=this.display.scroller;return{left:r.scrollLeft,top:r.scrollTop,height:r.scrollHeight-gr(this)-this.display.barHeight,width:r.scrollWidth-gr(this)-this.display.barWidth,clientHeight:js(this),clientWidth:ni(this)}},scrollIntoView:vt(function(r,o){r==null?(r={from:this.doc.sel.primary().head,to:null},o==null&&(o=this.options.cursorScrollMargin)):typeof r=="number"?r={from:W(r,0),to:null}:r.from==null&&(r={from:r,to:null}),r.to||(r.to=r.from),r.margin=o||0,r.from.line!=null?EE(this,r):du(this,r.from,r.to,r.margin)}),setSize:vt(function(r,o){var l=this,p=function(d){return typeof d=="number"||/^\d+$/.test(String(d))?d+"px":d};r!=null&&(this.display.wrapper.style.width=p(r)),o!=null&&(this.display.wrapper.style.height=p(o)),this.options.lineWrapping&&tu(this);var c=this.display.viewFrom;this.doc.iter(c,this.display.viewTo,function(d){if(d.widgets){for(var E=0;E<d.widgets.length;E++)if(d.widgets[E].noHScroll){Vr(l,c,"widget");break}}++c}),this.curOp.forceUpdate=!0,Fe(this,"refresh",this)}),operation:function(r){return _t(this,r)},startOperation:function(){return pi(this)},endOperation:function(){return ci(this)},refresh:vt(function(){var r=this.display.cachedTextHeight;Lt(this),this.curOp.forceUpdate=!0,Ln(this),yn(this,this.doc.scrollLeft,this.doc.scrollTop),fa(this.display),(r==null||Math.abs(r-Bi(this.display))>.5||this.options.lineWrapping)&&ia(this),Fe(this,"refresh",this)}),swapDoc:vt(function(r){var o=this.doc;return o.cm=null,this.state.selectingText&&this.state.selectingText(),Ru(this,r),Ln(this),this.display.input.reset(),yn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,nt(this,"swapDoc",this,o),o}),phrase:function(r){var o=this.options.phrases;return o&&Object.prototype.hasOwnProperty.call(o,r)?o[r]:r},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}},Dr(e),e.registerHelper=function(r,o,l){i.hasOwnProperty(r)||(i[r]=e[r]={_global:[]}),i[r][o]=l},e.registerGlobalHelper=function(r,o,l,p){e.registerHelper(r,o,p),i[r]._global.push({pred:l,val:p})}}function Oa(e,t,i,r,o){var l=t,p=i,c=q(e,t.line),d=o&&e.direction=="rtl"?-i:i;function E(){var z=t.line+d;return z<e.first||z>=e.first+e.size?!1:(t=new W(z,t.ch,t.sticky),c=q(e,z))}function N(z){var J;if(r=="codepoint"){var K=c.text.charCodeAt(t.ch+(i>0?0:-1));if(isNaN(K))J=null;else{var ae=i>0?K>=55296&&K<56320:K>=56320&&K<57343;J=new W(t.line,Math.max(0,Math.min(c.text.length,t.ch+i*(ae?2:1))),-i)}}else o?J=$E(e.cm,c,t,i):J=Ta(c,t,i);if(J==null)if(!z&&E())t=Aa(o,e.cm,c,t.line,d);else return!1;else t=J;return!0}if(r=="char"||r=="codepoint")N();else if(r=="column")N(!0);else if(r=="word"||r=="group")for(var A=null,U=r=="group",O=e.cm&&e.cm.getHelper(t,"wordChars"),P=!0;!(i<0&&!N(!P));P=!1){var _=c.text.charAt(t.ch)||`
|
|
16
|
-
`,
|
|
17
|
-
`?"n":!
|
|
18
|
-
`);if(
|
|
19
|
-
`);var
|
|
20
|
-
`),
|
|
21
|
-
`)>-1?
|
|
22
|
-
top: `+(
|
|
23
|
-
z-index: 1000; background: `+(
|
|
24
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var A;T&&(A=o.ownerDocument.defaultView.scrollY),r.input.focus(),T&&o.ownerDocument.defaultView.scrollTo(null,A),r.input.reset(),i.somethingSelected()||(o.value=t.prevInput=" "),t.contextMenuPending=O,r.selForContextMenu=i.doc.sel,clearTimeout(r.detectingSelectAll);function U(){if(o.selectionStart!=null){var _=i.somethingSelected(),Z="\u200B"+(_?o.value:"");o.value="\u21DA",o.value=Z,t.prevInput=_?"":"\u200B",o.selectionStart=1,o.selectionEnd=Z.length,r.selForContextMenu=i.doc.sel}}function O(){if(t.contextMenuPending==O&&(t.contextMenuPending=!1,t.wrapper.style.cssText=E,o.style.cssText=d,m&&I<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=p),o.selectionStart!=null)){(!m||m&&I<9)&&U();var _=0,Z=function(){r.selForContextMenu==i.doc.sel&&o.selectionStart==0&&o.selectionEnd>0&&t.prevInput=="\u200B"?ot(i,_u)(i):_++<10?r.detectingSelectAll=setTimeout(Z,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(Z,200)}}if(m&&I>=9&&U(),de){ii(e);var P=function(){St(window,"mouseup",P),setTimeout(O,20)};se(window,"mouseup",P)}else setTimeout(O,50)},Qe.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Qe.prototype.setUneditable=function(){},Qe.prototype.needsContentAttribute=!1;function Tm(e,t){if(t=t?ze(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var i=je(Ie(e));t.autofocus=i==e||e.getAttribute("autofocus")!=null&&i==document.body}function r(){e.value=c.getValue()}var o;if(e.form&&(se(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var l=e.form;o=l.submit;try{var p=l.submit=function(){r(),l.submit=o,l.submit(),l.submit=p}}catch{}}t.finishInit=function(d){d.save=r,d.getTextArea=function(){return e},d.toTextArea=function(){d.toTextArea=isNaN,r(),e.parentNode.removeChild(d.getWrapperElement()),e.style.display="",e.form&&(St(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=o))}},e.style.display="none";var c=Me(function(d){return e.parentNode.insertBefore(d,e.nextSibling)},t);return c}function Am(e){e.off=St,e.on=se,e.wheelEventPixels=OE,e.Doc=Rt,e.splitLines=Ri,e.countColumn=De,e.findColumn=ve,e.isWordChar=tr,e.Pass=re,e.signal=Fe,e.Line=Gi,e.changeEnd=Wr,e.scrollbarModel=Eu,e.Pos=W,e.cmpPos=ce,e.modes=bi,e.mimeModes=Nr,e.resolveMode=Oi,e.getMode=oe,e.modeExtensions=b,e.extendMode=H,e.copyState=ee,e.startState=it,e.innerMode=Re,e.commands=Zn,e.keyMap=Lr,e.keyName=rp,e.isModifierKey=ep,e.lookupKey=Hi,e.normalizeKeyMap=KE,e.StringStream=ge,e.SharedTextMarker=_n,e.TextMarker=Zr,e.LineWidget=wn,e.e_preventDefault=ht,e.e_stopPropagation=Ye,e.e_stop=ii,e.addClass=Le,e.contains=et,e.rmClass=ue,e.keyNames=Hr}hm(Me),xm(Me);var Cm="iter insert remove copy getEditor constructor".split(" ");for(var jo in Rt.prototype)Rt.prototype.hasOwnProperty(jo)&&Ue(Cm,jo)<0&&(Me.prototype[jo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Rt.prototype[jo]));return Dr(Rt),Me.inputStyles={textarea:Qe,contenteditable:Ce},Me.defineMode=function(e){!Me.defaults.mode&&e!="null"&&(Me.defaults.mode=e),Eo.apply(this,arguments)},Me.defineMIME=mo,Me.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Me.defineMIME("text/plain","null"),Me.defineExtension=function(e,t){Me.prototype[e]=t},Me.defineDocExtension=function(e,t){Rt.prototype[e]=t},Me.fromTextArea=Tm,Am(Me),Me.version="5.65.20",Me})});var hi=Se((rS,Jp)=>{var Qa=rx(),$m=ix(),ex=nx(),tx=typeof window<"u"?window:global;Jp.exports={assign:Qa,create:$m,trim:ex,bind:ox,slice:Ya,each:Xp,map:sx,pluck:Xa,isList:Ja,isFunction:ax,isObject:lx,Global:tx};function rx(){return Object.assign?Object.assign:function(s,a,u,h){for(var g=1;g<arguments.length;g++)Xp(Object(arguments[g]),function(m,I){s[I]=m});return s}}function ix(){if(Object.create)return function(a,u,h,g){var m=Ya(arguments,1);return Qa.apply(this,[Object.create(a)].concat(m))};{let s=function(){};var n=s;return function(u,h,g,m){var I=Ya(arguments,1);return s.prototype=u,Qa.apply(this,[new s].concat(I))}}}function nx(){return String.prototype.trim?function(s){return String.prototype.trim.call(s)}:function(s){return s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}}function ox(n,s){return function(){return s.apply(n,Array.prototype.slice.call(arguments,0))}}function Ya(n,s){return Array.prototype.slice.call(n,s||0)}function Xp(n,s){Xa(n,function(a,u){return s(a,u),!1})}function sx(n,s){var a=Ja(n)?[]:{};return Xa(n,function(u,h){return a[h]=s(u,h),!1}),a}function Xa(n,s){if(Ja(n)){for(var a=0;a<n.length;a++)if(s(n[a],a))return n[a]}else for(var u in n)if(n.hasOwnProperty(u)&&s(n[u],u))return n[u]}function Ja(n){return n!=null&&typeof n!="function"&&typeof n.length=="number"}function ax(n){return n&&{}.toString.call(n)==="[object Function]"}function lx(n){return n&&{}.toString.call(n)==="[object Object]"}});var zp=Se((iS,jp)=>{var Yr=hi(),ux=Yr.slice,px=Yr.pluck,qi=Yr.each,cx=Yr.bind,fx=Yr.create,ja=Yr.isList,za=Yr.isFunction,dx=Yr.isObject;jp.exports={createStore:qa};var hx={version:"2.0.12",enabled:!1,get:function(n,s){var a=this.storage.read(this._namespacePrefix+n);return this._deserialize(a,s)},set:function(n,s){return s===void 0?this.remove(n):(this.storage.write(this._namespacePrefix+n,this._serialize(s)),s)},remove:function(n){this.storage.remove(this._namespacePrefix+n)},each:function(n){var s=this;this.storage.each(function(a,u){n.call(s,s._deserialize(a),(u||"").replace(s._namespaceRegexp,""))})},clearAll:function(){this.storage.clearAll()},hasNamespace:function(n){return this._namespacePrefix=="__storejs_"+n+"_"},createStore:function(){return qa.apply(this,arguments)},addPlugin:function(n){this._addPlugin(n)},namespace:function(n){return qa(this.storage,this.plugins,n)}};function gx(){var n=typeof console>"u"?null:console;if(n){var s=n.warn?n.warn:n.log;s.apply(n,arguments)}}function qa(n,s,a){a||(a=""),n&&!ja(n)&&(n=[n]),s&&!ja(s)&&(s=[s]);var u=a?"__storejs_"+a+"_":"",h=a?new RegExp("^"+u):null,g=/^[a-zA-Z0-9_\-]*$/;if(!g.test(a))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var m={_namespacePrefix:u,_namespaceRegexp:h,_testStorage:function(T){try{var G="__storejs__test__";T.write(G,G);var L=T.read(G)===G;return T.remove(G),L}catch{return!1}},_assignPluginFnProp:function(T,G){var L=this[G];this[G]=function(){var y=ux(arguments,0),M=this;function F(){if(L)return qi(arguments,function(x,v){y[v]=x}),L.apply(M,y)}var S=[F].concat(y);return T.apply(M,S)}},_serialize:function(T){return JSON.stringify(T)},_deserialize:function(T,G){if(!T)return G;var L="";try{L=JSON.parse(T)}catch{L=T}return L!==void 0?L:G},_addStorage:function(T){this.enabled||this._testStorage(T)&&(this.storage=T,this.enabled=!0)},_addPlugin:function(T){var G=this;if(ja(T)){qi(T,function(y){G._addPlugin(y)});return}var L=px(this.plugins,function(y){return T===y});if(!L){if(this.plugins.push(T),!za(T))throw new Error("Plugins must be function values that return objects");var V=T.call(this);if(!dx(V))throw new Error("Plugins must return an object of function properties");qi(V,function(y,M){if(!za(y))throw new Error("Bad plugin property: "+M+" from plugin "+T.name+". Plugins should only return functions.");G._assignPluginFnProp(y,M)})}},addStorage:function(T){gx("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(T)}},I=fx(m,hx,{plugins:[]});return I.raw={},qi(I,function(T,G){za(T)&&(I.raw[G]=cx(I,T))}),qi(n,function(T){I._addStorage(T)}),qi(s,function(T){I._addPlugin(T)}),I}});var $p=Se((nS,Kp)=>{var Ex=hi(),mx=Ex.Global;Kp.exports={name:"localStorage",read:qp,write:xx,each:vx,remove:Ix,clearAll:Nx};function Ki(){return mx.localStorage}function qp(n){return Ki().getItem(n)}function xx(n,s){return Ki().setItem(n,s)}function vx(n){for(var s=Ki().length-1;s>=0;s--){var a=Ki().key(s);n(qp(a),a)}}function Ix(n){return Ki().removeItem(n)}function Nx(){return Ki().clear()}});var rc=Se((oS,tc)=>{var Tx=hi(),Ax=Tx.Global;tc.exports={name:"oldFF-globalStorage",read:Cx,write:Sx,each:ec,remove:Lx,clearAll:Rx};var gi=Ax.globalStorage;function Cx(n){return gi[n]}function Sx(n,s){gi[n]=s}function ec(n){for(var s=gi.length-1;s>=0;s--){var a=gi.key(s);n(gi[a],a)}}function Lx(n){return gi.removeItem(n)}function Rx(){ec(function(n,s){delete gi[n]})}});var oc=Se((sS,nc)=>{var yx=hi(),Ka=yx.Global;nc.exports={name:"oldIE-userDataStorage",write:bx,read:Ox,each:Gx,remove:Ux,clearAll:Fx};var to="storejs",eo=Ka.document,ro=Dx(),ic=(Ka.navigator?Ka.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function bx(n,s){if(!ic){var a=$a(n);ro(function(u){u.setAttribute(a,s),u.save(to)})}}function Ox(n){if(!ic){var s=$a(n),a=null;return ro(function(u){a=u.getAttribute(s)}),a}}function Gx(n){ro(function(s){for(var a=s.XMLDocument.documentElement.attributes,u=a.length-1;u>=0;u--){var h=a[u];n(s.getAttribute(h.name),h.name)}})}function Ux(n){var s=$a(n);ro(function(a){a.removeAttribute(s),a.save(to)})}function Fx(){ro(function(n){var s=n.XMLDocument.documentElement.attributes;n.load(to);for(var a=s.length-1;a>=0;a--)n.removeAttribute(s[a].name);n.save(to)})}var Bx=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function $a(n){return n.replace(/^\d/,"___$&").replace(Bx,"___")}function Dx(){if(!eo||!eo.documentElement||!eo.documentElement.addBehavior)return null;var n="script",s,a,u;try{a=new ActiveXObject("htmlfile"),a.open(),a.write("<"+n+">document.w=window</"+n+'><iframe src="/favicon.ico"></iframe>'),a.close(),s=a.w.frames[0].document,u=s.createElement("div")}catch{u=eo.createElement("div"),s=eo.body}return function(h){var g=[].slice.call(arguments,0);g.unshift(u),s.appendChild(u),u.addBehavior("#default#userData"),u.load(to),h.apply(this,g),s.removeChild(u)}}});var cc=Se((aS,pc)=>{var sc=hi(),Mx=sc.Global,Px=sc.trim;pc.exports={name:"cookieStorage",read:Vx,write:wx,each:ac,remove:lc,clearAll:_x};var io=Mx.document;function Vx(n){if(!n||!uc(n))return null;var s="(?:^|.*;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(io.cookie.replace(new RegExp(s),"$1"))}function ac(n){for(var s=io.cookie.split(/; ?/g),a=s.length-1;a>=0;a--)if(Px(s[a])){var u=s[a].split("="),h=unescape(u[0]),g=unescape(u[1]);n(g,h)}}function wx(n,s){n&&(io.cookie=escape(n)+"="+escape(s)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function lc(n){!n||!uc(n)||(io.cookie=escape(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function _x(){ac(function(n,s){lc(s)})}function uc(n){return new RegExp("(?:^|;\\s*)"+escape(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(io.cookie)}});var hc=Se((lS,dc)=>{var Wx=hi(),kx=Wx.Global;dc.exports={name:"sessionStorage",read:fc,write:Zx,each:Hx,remove:Qx,clearAll:Yx};function $i(){return kx.sessionStorage}function fc(n){return $i().getItem(n)}function Zx(n,s){return $i().setItem(n,s)}function Hx(n){for(var s=$i().length-1;s>=0;s--){var a=$i().key(s);n(fc(a),a)}}function Qx(n){return $i().removeItem(n)}function Yx(){return $i().clear()}});var Ec=Se((uS,gc)=>{gc.exports={name:"memoryStorage",read:Xx,write:Jx,each:jx,remove:zx,clearAll:qx};var Ei={};function Xx(n){return Ei[n]}function Jx(n,s){Ei[n]=s}function jx(n){for(var s in Ei)Ei.hasOwnProperty(s)&&n(Ei[s],s)}function zx(n){delete Ei[n]}function qx(n){Ei={}}});var xc=Se((pS,mc)=>{mc.exports=[$p(),rc(),oc(),cc(),hc(),Ec()]});var vc=Se((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(n){return n<10?"0"+n:n}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(n){return rx_escapable.lastIndex=0,rx_escapable.test(n)?'"'+n.replace(rx_escapable,function(s){var a=meta[s];return typeof a=="string"?a:"\\u"+("0000"+s.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+n+'"'}function str(n,s){var a,u,h,g,m=gap,I,T=s[n];switch(T&&typeof T=="object"&&typeof T.toJSON=="function"&&(T=T.toJSON(n)),typeof rep=="function"&&(T=rep.call(s,n,T)),typeof T){case"string":return quote(T);case"number":return isFinite(T)?String(T):"null";case"boolean":case"null":return String(T);case"object":if(!T)return"null";if(gap+=indent,I=[],Object.prototype.toString.apply(T)==="[object Array]"){for(g=T.length,a=0;a<g;a+=1)I[a]=str(a,T)||"null";return h=I.length===0?"[]":gap?`[
|
|
25
|
-
`+gap+
|
|
3
|
+
b`.split(/\n/).length!=3?function(s){for(var l=0,g=[],d=s.length;l<=d;){var m=s.indexOf(`
|
|
4
|
+
`,l);m==-1&&(m=s.length);var I=s.slice(l,s.charAt(m-1)=="\r"?m-1:m),b=I.indexOf("\r");b!=-1?(g.push(I.slice(0,b)),l+=b+1):(g.push(I),l=m+1)}return g}:function(s){return s.split(/\r\n?|\n/)},Fo=window.getSelection?function(s){try{return s.selectionStart!=s.selectionEnd}catch{return!1}}:function(s){var l;try{l=s.ownerDocument.selection.createRange()}catch{}return!l||l.parentElement()!=s?!1:l.compareEndPoints("StartToEnd",l)!=0},Vn=function(){var s=ve("div");return"oncopy"in s?!0:(s.setAttribute("oncopy","return;"),typeof s.oncopy=="function")}(),sn=null;function oi(s){if(sn!=null)return sn;var l=Ke(s,ve("span","x")),g=l.getBoundingClientRect(),d=Cr(l,0,1).getBoundingClientRect();return sn=Math.abs(g.left-d.left)>1}var nn={},Fi={};function Do(s,l){arguments.length>2&&(l.dependencies=Array.prototype.slice.call(arguments,2)),nn[s]=l}function Bo(s,l){Fi[s]=l}function on(s){if(typeof s=="string"&&Fi.hasOwnProperty(s))s=Fi[s];else if(s&&typeof s.name=="string"&&Fi.hasOwnProperty(s.name)){var l=Fi[s.name];typeof l=="string"&&(l={name:l}),s=es(l,s),s.name=l.name}else{if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(s))return on("application/xml");if(typeof s=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(s))return on("application/json")}return typeof s=="string"?{name:s}:s||{name:"null"}}function Be(s,l){l=on(l);var g=nn[l.name];if(!g)return Be(s,"text/plain");var d=g(s,l);if(q.hasOwnProperty(l.name)){var m=q[l.name];for(var I in m)m.hasOwnProperty(I)&&(d.hasOwnProperty(I)&&(d["_"+I]=d[I]),d[I]=m[I])}if(d.name=l.name,l.helperType&&(d.helperType=l.helperType),l.modeProps)for(var b in l.modeProps)d[b]=l.modeProps[b];return d}var q={};function ge(s,l){var g=q.hasOwnProperty(s)?q[s]:q[s]={};Jr(l,g)}function Le(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 qr(s,l,g){return s.startState?s.startState(l,g):!0}var ze=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};ze.prototype.eol=function(){return this.pos>=this.string.length},ze.prototype.sol=function(){return this.pos==this.lineStart},ze.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ze.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ze.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},ze.prototype.eatWhile=function(s){for(var l=this.pos;this.eat(s););return this.pos>l},ze.prototype.eatSpace=function(){for(var s=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>s},ze.prototype.skipToEnd=function(){this.pos=this.string.length},ze.prototype.skipTo=function(s){var l=this.string.indexOf(s,this.pos);if(l>-1)return this.pos=l,!0},ze.prototype.backUp=function(s){this.pos-=s},ze.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)},ze.prototype.indentation=function(){return Ar(this.string,null,this.tabSize)-(this.lineStart?Ar(this.string,this.lineStart,this.tabSize):0)},ze.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)}},ze.prototype.current=function(){return this.string.slice(this.start,this.pos)},ze.prototype.hideFirstChars=function(s,l){this.lineStart+=s;try{return l()}finally{this.lineStart-=s}},ze.prototype.lookAhead=function(s){var l=this.lineOracle;return l&&l.lookAhead(s)},ze.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 ft(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 _t(s,l){var g=l-s.height;if(g)for(var d=s;d;d=d.parent)d.height+=g}function He(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 L=s.lines[b],R=L.height;if(l<R)break;l-=R}return g+b}function is(s,l){return l>=s.first&&l<s.first+s.size}function La(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 Qe(s,l){return s.line-l.line||s.ch-l.ch}function Sa(s,l){return s.sticky==l.sticky&&Qe(s,l)==0}function ya(s){return ce(s.line,s.ch)}function Po(s,l){return Qe(s,l)<0?l:s}function Mo(s,l){return Qe(s,l)<0?s:l}function jl(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):Yf(l,Ae(s,l.line).text.length)}function Yf(s,l){var g=s.ch;return g==null||g>l?ce(s.line,l):g<0?ce(s.line,0):s}function zl(s,l){for(var g=[],d=0;d<l.length;d++)g[d]=Ye(s,l[d]);return g}var Vo=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 Vo?new xi(s,Le(s.mode,l.state),g,l.lookAhead):new xi(s,Le(s.mode,l),g)},xi.prototype.save=function(s){var l=s!==!1?Le(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Vo(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,_){return m.push(O,_)},I,d);for(var b=g.state,L=function(O){g.baseTokens=m;var _=s.state.overlays[O],Q=1,re=0;g.state=!0,su(s,l.text,_.mode,g,function(K,oe){for(var fe=Q;re<K;){var he=m[Q];he>K&&m.splice(Q,1,K,m[Q+1],he),Q+=2,re=Math.min(K,he)}if(oe)if(_.opaque)m.splice(fe,Q-fe,K,"overlay "+oe),Q=fe+2;else for(;fe<Q;fe+=2){var me=m[fe+1];m[fe+1]=(me?me+" ":"")+"overlay "+oe}},I),g.state=b,g.baseTokens=null,g.baseTokenPos=1},R=0;R<s.state.overlays.length;++R)L(R);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=_n(s,He(l)),m=l.text.length>s.options.maxHighlightLength&&Le(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 _n(s,l,g){var d=s.doc,m=s.display;if(!d.mode.startState)return new xi(d,!0,l);var I=Xf(s,l,g),b=I>d.first&&Ae(d,I-1).stateAfter,L=b?xi.fromSaved(d,b,I):new xi(d,qr(d.mode),I);return d.iter(I,l,function(R){Wn(s,R.text,L);var O=L.line;R.stateAfter=O==l-1||O%5==0||O>=m.viewFrom&&O<m.viewTo?L.save():null,L.nextLine()}),g&&(d.modeFrontier=L.line),L}function Wn(s,l,g,d){var m=s.doc.mode,I=new ze(l,s.options.tabSize,g);for(I.start=I.pos=d||0,l==""&&eu(m,g.state);!I.eol();)Ra(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 Ra(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 L=Ae(m,l.line),R=_n(s,l.line,g),O=new ze(L.text,s.options.tabSize,R),_;for(d&&(_=[]);(d||O.pos<l.ch)&&!O.eol();)O.start=O.pos,b=Ra(I,O,R.state),d&&_.push(new ru(O,b,Le(m.mode,R.state)));return d?_:new ru(O,b,R.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 L=g.flattenSpans;L==null&&(L=s.options.flattenSpans);var R=0,O=null,_=new ze(l,s.options.tabSize,d),Q,re=s.options.addModeClass&&[null];for(l==""&&iu(eu(g,d.state),I);!_.eol();){if(_.pos>s.options.maxHighlightLength?(L=!1,b&&Wn(s,l,d,_.pos),_.pos=l.length,Q=null):Q=iu(Ra(g,_,d.state,re),I),re){var K=re[0].name;K&&(Q="m-"+(Q?K+" "+Q:K))}if(!L||O!=Q){for(;R<_.start;)R=Math.min(_.start,R+5e3),m(R,O);O=Q}_.start=_.pos}for(;R<_.pos;){var oe=Math.min(_.pos,R+5e3);m(oe,O),R=oe}}function Xf(s,l,g){for(var d,m,I=s.doc,b=g?-1:l-(s.doc.mode.innerMode?1e3:100),L=l;L>b;--L){if(L<=I.first)return I.first;var R=Ae(I,L-1),O=R.stateAfter;if(O&&(!g||L+(O instanceof Vo?O.lookAhead:0)<=I.modeFrontier))return L;var _=Ar(R.text,null,s.options.tabSize);(m==null||d>_)&&(m=L-1,d=_)}return m}function Jf(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 Vo)||d+m.lookAhead<l)){g=d+1;break}}s.highlightFrontier=Math.min(s.highlightFrontier,g)}}var _o=!1,Di=!1;function jf(){_o=!0}function Qt(){Di=!0}function an(s,l,g){this.marker=s,this.from=l,this.to=g}function Ns(s,l){if(s)for(var g=0;g<s.length;++g){var d=s[g];if(d.marker==l)return d}}function wa(s,l){for(var g,d=0;d<s.length;++d)s[d]!=l&&(g||(g=[])).push(s[d]);return g}function Bi(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,L=I.from==null||(b.inclusiveLeft?I.from<=l:I.from<l);if(L||I.from==l&&b.type=="bookmark"&&(!g||!I.marker.insertLeft)){var R=I.to==null||(b.inclusiveRight?I.to>=l:I.to>l);(d||(d=[])).push(new an(b,I.from,R?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,L=I.to==null||(b.inclusiveRight?I.to>=l:I.to>l);if(L||I.from==l&&b.type=="bookmark"&&(!g||I.marker.insertLeft)){var R=I.from==null||(b.inclusiveLeft?I.from<=l:I.from<l);(d||(d=[])).push(new an(b,R?null:I.from-l,I.to==null?null:I.to-l))}}return d}function Pi(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=Qe(l.from,l.to)==0,L=bs(g,m,b),R=Ts(d,I,b),O=l.text.length==1,_=Ie(l.text).length+(O?m:0);if(L)for(var Q=0;Q<L.length;++Q){var re=L[Q];if(re.to==null){var K=Ns(R,re.marker);K?O&&(re.to=K.to==null?null:K.to+_):re.to=m}}if(R)for(var oe=0;oe<R.length;++oe){var fe=R[oe];if(fe.to!=null&&(fe.to+=_),fe.from==null){var he=Ns(L,fe.marker);he||(fe.from=_,O&&(L||(L=[])).push(fe))}else fe.from+=_,O&&(L||(L=[])).push(fe)}L&&(L=ss(L)),R&&R!=L&&(R=ss(R));var me=[L];if(!O){var Ce=l.text.length-2,xe;if(Ce>0&&L)for(var be=0;be<L.length;++be)L[be].to==null&&(xe||(xe=[])).push(new an(L[be].marker,null,null));for(var Pe=0;Pe<Ce;++Pe)me.push(xe);me.push(R)}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 Ls(s,l,g){var d=null;if(s.iter(l.line,g.line+1,function(K){if(K.markedSpans)for(var oe=0;oe<K.markedSpans.length;++oe){var fe=K.markedSpans[oe].marker;fe.readOnly&&(!d||hr(d,fe)==-1)&&(d||(d=[])).push(fe)}}),!d)return null;for(var m=[{from:l,to:g}],I=0;I<d.length;++I)for(var b=d[I],L=b.find(0),R=0;R<m.length;++R){var O=m[R];if(!(Qe(O.to,L.from)<0||Qe(O.from,L.to)>0)){var _=[R,1],Q=Qe(O.from,L.from),re=Qe(O.to,L.to);(Q<0||!b.inclusiveLeft&&!Q)&&_.push({from:O.from,to:L.from}),(re>0||!b.inclusiveRight&&!re)&&_.push({from:L.to,to:O.to}),m.splice.apply(m,_),R+=_.length-3}}return m}function Wo(s){var l=s.markedSpans;if(l){for(var g=0;g<l.length;++g)l[g].marker.detachLine(s);s.markedSpans=null}}function ln(s,l){if(l){for(var g=0;g<l.length;++g)l[g].marker.attachLine(s);s.markedSpans=l}}function un(s){return s.inclusiveLeft?-1:0}function fn(s){return s.inclusiveRight?1:0}function Oa(s,l){var g=s.lines.length-l.lines.length;if(g!=0)return g;var d=s.find(),m=l.find(),I=Qe(d.from,m.from)||un(s)-un(l);if(I)return-I;var b=Qe(d.to,m.to)||fn(s)-fn(l);return b||l.id-s.id}function nu(s,l){var g=Di&&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 Ze(s){return nu(s,!1)}function Ua(s,l){var g=Di&&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=Di&&I.markedSpans;if(b)for(var L=0;L<b.length;++L){var R=b[L];if(R.marker.collapsed){var O=R.marker.find(0),_=Qe(O.from,g)||un(R.marker)-un(m),Q=Qe(O.to,d)||fn(R.marker)-fn(m);if(!(_>=0&&Q<=0||_<=0&&Q>=0)&&(_<=0&&(R.marker.inclusiveRight&&m.inclusiveLeft?Qe(O.to,g)>=0:Qe(O.to,g)>0)||_>=0&&(R.marker.inclusiveRight&&m.inclusiveLeft?Qe(O.from,d)<=0:Qe(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=Ze(s);)s=l.find(1,!0).line;return s}function Ga(s){for(var l,g;l=Ze(s);)s=l.find(1,!0).line,(g||(g=[])).push(s);return g}function kn(s,l){var g=Ae(s,l),d=ai(g);return g==d?l:He(d)}function $o(s,l){if(l>s.lastLine())return l;var g=Ae(s,l),d;if(!Ci(s,g))return l;for(;d=Ze(g);)g=d.find(1,!0).line;return He(g)+1}function Ci(s,l){var g=Di&&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 L=I.children[b];if(L==g)break;l+=L.height}return l}function Ho(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=Ze(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 Da(s){var l=s.display,g=s.doc;l.maxLine=Ae(g,g.first),l.maxLineLength=Ho(l.maxLine),l.maxLineChanged=!0,g.iter(function(d){var m=Ho(d);m>l.maxLineLength&&(l.maxLineLength=m,l.maxLine=d)})}var pn=function(s,l,g){this.text=s,ln(this,l),this.height=g?g(this):1};pn.prototype.lineNo=function(){return He(this)},ts(pn);function qf(s,l,g,d){s.text=l,s.stateAfter&&(s.stateAfter=null),s.styles&&(s.styles=null),s.order!=null&&(s.order=null),Wo(s),ln(s,g);var m=d?d(s):1;m!=s.height&&_t(s,m)}function Kf(s){s.parent=null,Wo(s)}var ep={},rp={};function ou(s,l){if(!s||/^\s*$/.test(s))return null;var g=l.addModeClass?rp:ep;return g[s]||(g[s]=s.replace(/\S+/g,"cm-$&"))}function au(s,l){var g=xr("span",null,null,H?"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=ip,Gi(s.display.measure)&&(b=br(I,s.doc.direction))&&(d.addToken=np(d.addToken,b)),d.map=[];var L=l!=s.display.externalMeasured&&He(I);op(I,d,Kl(s,I,L)),I.styleClasses&&(I.styleClasses.bgClass&&(d.bgClass=Lt(I.styleClasses.bgClass,d.bgClass||"")),I.styleClasses.textClass&&(d.textClass=Lt(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(H){var R=d.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(d.content.className="cm-tab-wrap-hack")}return ar(s,"renderLine",s,l.line,d.pre),d.pre.className&&(d.textClass=Lt(d.pre.className,d.textClass||"")),d}function tp(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 ip(s,l,g,d,m,I,b){if(l){var L=s.splitSpaces?sp(l,s.trailingSpace):l,R=s.cm.state.specialChars,O=!1,_;if(!R.test(l))s.col+=l.length,_=document.createTextNode(L),s.map.push(s.pos,s.pos+l.length,_),G&&P<9&&(O=!0),s.pos+=l.length;else{_=document.createDocumentFragment();for(var Q=0;;){R.lastIndex=Q;var re=R.exec(l),K=re?re.index-Q:l.length-Q;if(K){var oe=document.createTextNode(L.slice(Q,Q+K));G&&P<9?_.appendChild(ve("span",[oe])):_.appendChild(oe),s.map.push(s.pos,s.pos+K,oe),s.col+=K,s.pos+=K}if(!re)break;Q+=K+1;var fe=void 0;if(re[0]==" "){var he=s.cm.options.tabSize,me=he-s.col%he;fe=_.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=_.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&&P<9?_.appendChild(ve("span",[fe])):_.appendChild(fe),s.col+=1);s.map.push(s.pos,s.pos+1,fe),s.pos++}}if(s.trailingSpace=L.charCodeAt(l.length-1)==32,g||d||m||O||I||b){var Ce=g||"";d&&(Ce+=d),m&&(Ce+=m);var xe=ve("span",[_],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(_)}}function sp(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 np(s,l){return function(g,d,m,I,b,L,R){m=m?m+" cm-force-border":"cm-force-border";for(var O=g.pos,_=O+d.length;;){for(var Q=void 0,re=0;re<l.length&&(Q=l[re],!(Q.to>O&&Q.from<=O));re++);if(Q.to>=_)return s(g,d,m,I,b,L,R);s(g,d.slice(0,Q.to-O),m,I,null,L,R),I=null,d=d.slice(Q.to-O),O=Q.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 op(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 L=m.length,R=0,O=1,_="",Q,re,K=0,oe,fe,he,me,Ce;;){if(K==R){oe=fe=he=re="",Ce=null,me=null,K=1/0;for(var xe=[],be=void 0,Pe=0;Pe<d.length;++Pe){var Fe=d[Pe],qe=Fe.marker;if(qe.type=="bookmark"&&Fe.from==R&&qe.widgetNode)xe.push(qe);else if(Fe.from<=R&&(Fe.to==null||Fe.to>R||qe.collapsed&&Fe.to==R&&Fe.from==R)){if(Fe.to!=null&&Fe.to!=R&&K>Fe.to&&(K=Fe.to,fe=""),qe.className&&(oe+=" "+qe.className),qe.css&&(re=(re?re+";":"")+qe.css),qe.startStyle&&Fe.from==R&&(he+=" "+qe.startStyle),qe.endStyle&&Fe.to==K&&(be||(be=[])).push(qe.endStyle,Fe.to),qe.title&&((Ce||(Ce={})).title=qe.title),qe.attributes)for(var mr in qe.attributes)(Ce||(Ce={}))[mr]=qe.attributes[mr];qe.collapsed&&(!me||Oa(me.marker,qe)<0)&&(me=Fe)}else Fe.from>R&&K>Fe.from&&(K=Fe.from)}if(be)for(var tt=0;tt<be.length;tt+=2)be[tt+1]==K&&(fe+=" "+be[tt]);if(!me||me.from==R)for(var yr=0;yr<xe.length;++yr)lu(l,0,xe[yr]);if(me&&(me.from||0)==R){if(lu(l,(me.to==null?L+1:me.to)-R,me.marker,me.from==null),me.to==null)return;me.to==R&&(me=!1)}}if(R>=L)break;for(var $t=Math.min(L,K);;){if(_){var Ft=R+_.length;if(!me){var $r=Ft>$t?_.slice(0,$t-R):_;l.addToken(l,$r,Q?Q+oe:oe,he,R+$r.length==K?fe:"",re,Ce)}if(Ft>=$t){_=_.slice($t-R),R=$t;break}R=Ft,he=""}_=m.slice(I,I=g[O++]),Q=ou(g[O++],l.cm.options)}}}function cn(s,l,g){this.line=l,this.rest=Ga(l),this.size=this.rest?He(Ie(this.rest))-g+1:1,this.node=this.text=null,this.hidden=Ci(s,l)}function os(s,l,g){for(var d=[],m,I=l;I<g;I=m){var b=new cn(s.doc,Ae(s.doc,I),I);m=I+b.size,d.push(b)}return d}var Ai=null;function ap(s){Ai?Ai.ops.push(s):s.ownsGroup=Ai={ops:[s],delayedCallbacks:[]}}function lp(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 up(s,l){var g=s.ownsGroup;if(g)try{lp(g)}finally{Ai=null,l(g)}}var $n=null;function Kr(s,l){var g=ni(s,l);if(g.length){var d=Array.prototype.slice.call(arguments,2),m;Ai?m=Ai.delayedCallbacks:$n?m=$n:(m=$n=[],setTimeout(pt,0));for(var I=function(L){m.push(function(){return g[L].apply(null,d)})},b=0;b<g.length;++b)I(b)}}function pt(){var s=$n;$n=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"?kr(s,l):I=="gutter"?as(s,l,g,d):I=="class"?Hn(s,l):I=="widget"&&Ot(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&&P<8&&(s.node.style.zIndex=2)),s.node}function Ss(s,l){var g=l.bgClass?l.bgClass+" "+(l.line.bgClass||""):l.line.bgClass;if(g&&(g+=" CodeMirror-linebackground"),l.background)g?l.background.className=g:(l.background.parentNode.removeChild(l.background),l.background=null);else if(g){var d=ae(l);l.background=d.insertBefore(ve("div",null,g),d.firstChild),s.display.input.setUneditable(l.background)}}function le(s,l){var g=s.display.externalMeasured;return g&&g.line==l.line?(s.display.externalMeasured=null,l.measure=g.measure,g.built):au(s,l)}function kr(s,l){var g=l.text.className,d=le(s,l);l.text==l.node&&(l.node=d.pre),l.text.parentNode.replaceChild(d.pre,l.text),l.text=d.pre,d.bgClass!=l.bgClass||d.textClass!=l.textClass?(l.bgClass=d.bgClass,l.textClass=d.textClass,Hn(s,l)):g&&(l.text.className=g)}function Hn(s,l){Ss(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),L=l.gutter=ve("div",null,"CodeMirror-gutter-wrapper","left: "+(s.options.fixedGutter?d.fixedPos:-d.gutterTotalWidth)+"px");if(L.setAttribute("aria-hidden","true"),s.display.input.setUneditable(L),b.insertBefore(L,l.text),l.line.gutterClass&&(L.className+=" "+l.line.gutterClass),s.options.lineNumbers&&(!I||!I["CodeMirror-linenumbers"])&&(l.lineNumber=L.appendChild(ve("div",La(s.options,g),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+d.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+s.display.lineNumInnerWidth+"px"))),I)for(var R=0;R<s.display.gutterSpecs.length;++R){var O=s.display.gutterSpecs[R].className,_=I.hasOwnProperty(O)&&I[O];_&&L.appendChild(ve("div",[_],"CodeMirror-gutter-elt","left: "+d.gutterLeft[O]+"px; width: "+d.gutterWidth[O]+"px"))}}}function Ot(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 Ut(s,l,g,d){var m=le(s,l);return l.text=l.node=m.pre,m.bgClass&&(l.bgClass=m.bgClass),m.textClass&&(l.textClass=m.textClass),Hn(s,l),as(s,l,g,d),fu(s,l,d),l.node}function fu(s,l,g){if(pu(s,l.line,l,g,!0),l.rest)for(var d=0;d<l.rest.length;d++)pu(s,l.rest[d],l,g,!1)}function pu(s,l,g,d,m){if(l.widgets)for(var I=ae(g),b=0,L=l.widgets;b<L.length;++b){var R=L[b],O=ve("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||O.setAttribute("cm-ignore-events","true"),fp(R,O,g,d),s.display.input.setUneditable(O),m&&R.above?I.insertBefore(O,g.gutter||g.text):I.appendChild(O),Kr(R,"redraw")}}function fp(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 Vi(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 _i(s,l){for(var g=Ks(l);g!=s.wrapper;g=g.parentNode)if(!g||g.nodeType==1&&g.getAttribute("cm-ignore-events")=="true"||g.parentNode==s.sizer&&g!=s.mover)return!0}function hn(s){return s.lineSpace.offsetTop}function Ba(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 ys(s){return s.display.scroller.clientWidth-Ii(s)-s.display.barWidth}function Pa(s){return s.display.scroller.clientHeight-Ii(s)-s.display.barHeight}function pp(s,l,g){var d=s.options.lineWrapping,m=d&&ys(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(),L=0;L<b.length-1;L++){var R=b[L],O=b[L+1];Math.abs(R.bottom-O.bottom)>2&&I.push((R.bottom+O.top)/2-g.top)}}I.push(g.bottom-g.top)}}function Zo(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(He(s.rest[m])>g)return{map:s.measure.maps[m],cache:s.measure.caches[m],before:!0}}}function Yt(s,l){l=ai(l);var g=He(l),d=s.display.externalMeasured=new cn(s.doc,l,g);d.lineN=g;var m=d.built=au(s,d);return d.text=m.pre,Ke(s.display.lineMeasure,m.pre),d}function hu(s,l,g,d){return Ni(s,dn(s,l),g,d)}function ct(s,l){if(l>=s.display.viewFrom&&l<s.display.viewTo)return s.display.view[Wi(s,l)];var g=s.display.externalMeasured;if(g&&l>=g.lineN&&l<g.lineN+g.size)return g}function dn(s,l){var g=He(l),d=ct(s,g);d&&!d.text?d=null:d&&d.changes&&(uu(s,d,g,Os(s)),s.curOp.forceUpdate=!0),d||(d=Yt(s,l));var m=Zo(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||(pp(s,l.view,l.rect),l.hasHeights=!0),b=Zn(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,L,R,O=0;O<s.length;O+=3)if(L=s[O],R=s[O+1],l<L?(m=0,I=1,b="left"):l<R?(m=l-L,I=m+1):(O==s.length-3||l==R&&s[O+3]>l)&&(I=R-L,m=I-1,l>=R&&(b="right")),m!=null){if(d=s[O+2],L==R&&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==R-L)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:L,coverEnd:R}}function cp(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 Zn(s,l,g,d){var m=gu(l.map,g,d),I=m.node,b=m.start,L=m.end,R=m.collapse,O;if(I.nodeType==3){for(var _=0;_<4;_++){for(;b&&Ct(l.line.text.charAt(m.coverStart+b));)--b;for(;m.coverStart+L<m.coverEnd&&Ct(l.line.text.charAt(m.coverStart+L));)++L;if(G&&P<9&&b==0&&L==m.coverEnd-m.coverStart?O=I.parentNode.getBoundingClientRect():O=cp(Cr(I,b,L).getClientRects(),d),O.left||O.right||b==0)break;L=b,b=b-1,R="right"}G&&P<11&&(O=hp(s.display.measure,O))}else{b>0&&(R=d="right");var Q;s.options.lineWrapping&&(Q=I.getClientRects()).length>1?O=Q[d=="right"?Q.length-1:0]:O=I.getBoundingClientRect()}if(G&&P<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 K=O.top-l.rect.top,oe=O.bottom-l.rect.top,fe=(K+oe)/2,he=l.view.measure.heights,me=0;me<he.length-1&&!(fe<he[me]);me++);var Ce=me?he[me-1]:0,xe=he[me],be={left:(R=="right"?O.right:O.left)-l.rect.left,right:(R=="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=K,be.rbottom=oe),be}function hp(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 Qo(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 Rs(s){Qo(s),s.display.cachedCharWidth=s.display.cachedTextHeight=s.display.cachedPaddingH=null,s.options.lineWrapping||(s.display.maxLineChanged=!0),s.display.lineNumChars=null}function gn(s){return $&&B?-(s.body.getBoundingClientRect().left-parseInt(getComputedStyle(s.body).marginLeft)):s.defaultView.pageXOffset||(s.documentElement||s.body).scrollLeft}function vu(s){return $&&B?-(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+=Vi(g[m]));return d}function En(s,l,g,d,m){if(!m){var I=Ma(l);g.top+=I,g.bottom+=I}if(d=="line")return g;d||(d="local");var b=Mi(l);if(d=="local"?b+=hn(s.display):b-=s.display.viewOffset,d=="page"||d=="window"){var L=s.display.lineSpace.getBoundingClientRect();b+=L.top+(d=="window"?0:vu(cr(s)));var R=L.left+(d=="window"?0:gn(cr(s)));g.left+=R,g.right+=R}return g.top+=b,g.bottom+=b,g}function ls(s,l,g){if(g=="div")return l;var d=l.left,m=l.top;if(g=="page")d-=gn(cr(s)),m-=vu(cr(s));else if(g=="local"||!g){var I=s.display.sizer.getBoundingClientRect();d+=I.left,m+=I.top}var b=s.display.lineSpace.getBoundingClientRect();return{left:d-b.left,top:m-b.top}}function Yo(s,l,g,d,m){return d||(d=Ae(s.doc,l.line)),En(s,d,hu(s,d,l.ch,m),g)}function Xe(s,l,g,d,m,I){d=d||Ae(s.doc,l.line),m||(m=dn(s,d));function b(oe,fe){var he=Ni(s,m,oe,fe?"right":"left",I);return fe?he.left=he.right:he.right=he.left,En(s,d,he,g)}var L=br(d,s.doc.direction),R=l.ch,O=l.sticky;if(R>=d.text.length?(R=d.text.length,O="before"):R<=0&&(R=0,O="after"),!L)return b(O=="before"?R-1:R,O=="before");function _(oe,fe,he){var me=L[fe],Ce=me.level==1;return b(he?oe-1:oe,Ce!=he)}var Q=At(L,R,O),re=ti,K=_(R,Q,O=="before");return re!=null&&(K.other=_(R,re,O!="before")),K}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)+hn(s.display);return{left:g,right:g,top:m,bottom:m+d.height}}function Va(s,l,g,d,m){var I=ce(s,l,g);return I.xRel=m,d&&(I.outside=d),I}function _a(s,l,g){var d=s.doc;if(g+=s.display.viewOffset,g<0)return Va(d.first,0,null,-1,-1);var m=mi(d,g),I=d.first+d.size-1;if(m>I)return Va(d.first+d.size-1,Ae(d,I).text.length,null,1,1);l<0&&(l=0);for(var b=Ae(d,m);;){var L=dp(s,b,m,l,g),R=Ua(b,L.ch+(L.xRel>0||L.outside>0?1:0));if(!R)return L;var O=R.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=dn(s,l));var m=En(s,l,Ni(s,g,d),"line").top;return xu(s,l,g,m)}function Qn(s,l,g,d){return s.bottom<=g?!1:s.top>g?!0:(d?s.left:s.right)>l}function dp(s,l,g,d,m){m-=Mi(l);var I=dn(s,l),b=Ma(l),L=0,R=l.text.length,O=!0,_=br(l,s.doc.direction);if(_){var Q=(s.options.lineWrapping?ws:We)(s,l,g,I,_,d,m);O=Q.level!=1,L=O?Q.from:Q.to-1,R=O?Q.to:Q.from-1}var re=null,K=null,oe=ri(function(Pe){var Fe=Ni(s,I,Pe);return Fe.top+=b,Fe.bottom+=b,Qn(Fe,d,m,!1)?(Fe.top<=m&&Fe.left<=d&&(re=Pe,K=Fe),!0):!1},L,R),fe,he,me=!1;if(K){var Ce=d-K.left<K.right-d,xe=Ce==O;oe=re+(xe?0:1),he=xe?"after":"before",fe=Ce?K.left:K.right}else{!O&&(oe==R||oe==L)&&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=Xe(s,ce(g,oe,he),"line",l,I);fe=be.left,me=m<be.top?-1:m>=be.bottom?1:0}return oe=Ir(l.text,oe,1),Va(g,oe,he,me,d-fe)}function We(s,l,g,d,m,I,b){var L=ri(function(Q){var re=m[Q],K=re.level!=1;return Qn(Xe(s,ce(g,K?re.to:re.from,K?"before":"after"),"line",l,d),I,b,!0)},0,m.length-1),R=m[L];if(L>0){var O=R.level!=1,_=Xe(s,ce(g,O?R.from:R.to,O?"after":"before"),"line",l,d);Qn(_,I,b,!0)&&_.top>b&&(R=m[L-1])}return R}function ws(s,l,g,d,m,I,b){var L=xu(s,l,d,b),R=L.begin,O=L.end;/\s/.test(l.text.charAt(O-1))&&O--;for(var _=null,Q=null,re=0;re<m.length;re++){var K=m[re];if(!(K.from>=O||K.to<=R)){var oe=K.level!=1,fe=Ni(s,d,oe?Math.min(O,K.to)-1:Math.max(R,K.from)).right,he=fe<I?I-fe+1e9:fe-I;(!_||Q>he)&&(_=K,Q=he)}}return _||(_=m[m.length-1]),_.from<R&&(_={from:R,to:_.to,level:_.level}),_.to>O&&(_={from:_.from,to:O,level:_.level}),_}var Xt;function Br(s){if(s.cachedTextHeight!=null)return s.cachedTextHeight;if(Xt==null){Xt=ve("pre",null,"CodeMirror-line-like");for(var l=0;l<49;++l)Xt.appendChild(document.createTextNode("x")),Xt.appendChild(ve("br"));Xt.appendChild(document.createTextNode("x"))}Ke(s.measure,Xt);var g=Xt.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 L=s.display.gutterSpecs[b].className;g[L]=I.offsetLeft+I.clientLeft+m,d[L]=I.clientWidth}return{fixedPos:ht(l),gutterTotalWidth:l.gutters.offsetWidth,gutterLeft:g,gutterWidth:d,wrapperWidth:l.wrapper.clientWidth}}function ht(s){return s.scroller.getBoundingClientRect().left-s.sizer.getBoundingClientRect().left}function vn(s){var l=Br(s.display),g=s.options.lineWrapping,d=g&&Math.max(5,s.display.scroller.clientWidth/us(s.display)-3);return function(m){if(Ci(s.doc,m))return 0;var I=0;if(m.widgets)for(var b=0;b<m.widgets.length;b++)m.widgets[b].height&&(I+=m.widgets[b].height);return g?I+(Math.ceil(m.text.length/d)||1)*l:I+l}}function Us(s){var l=s.doc,g=vn(s);l.iter(function(d){var m=g(d);m!=d.height&&_t(d,m)})}function li(s,l,g,d){var m=s.display;if(!g&&Ks(l).getAttribute("cm-not-content")=="true")return null;var I,b,L=m.lineSpace.getBoundingClientRect();try{I=l.clientX-L.left,b=l.clientY-L.top}catch{return null}var R=_a(s,I,b),O;if(d&&R.xRel>0&&(O=Ae(s.doc,R.line).text).length==R.ch){var _=Ar(O,O.length,s.options.tabSize)-O.length;R=ce(R.line,Math.max(0,Math.round((I-cu(s.display).left)/us(s.display))-_))}return R}function Wi(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 dt(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)Di&&kn(s.doc,l)<m.viewTo&&bi(s);else if(g<=m.viewFrom)Di&&$o(s.doc,g+d)>m.viewFrom?bi(s):(m.viewFrom+=d,m.viewTo+=d);else if(l<=m.viewFrom&&g>=m.viewTo)bi(s);else if(l<=m.viewFrom){var I=fs(s,g,g+d,1);I?(m.view=m.view.slice(I.index),m.viewFrom=I.lineN,m.viewTo+=d):bi(s)}else if(g>=m.viewTo){var b=fs(s,l,l,-1);b?(m.view=m.view.slice(0,b.index),m.viewTo=b.lineN):bi(s)}else{var L=fs(s,l,l,-1),R=fs(s,g,g+d,1);L&&R?(m.view=m.view.slice(0,L.index).concat(os(s,L.lineN,R.lineN)).concat(m.view.slice(R.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 Wt(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[Wi(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=Wi(s,l),I,b=s.display.view;if(!Di||g==s.doc.first+s.doc.size)return{index:m,lineN:g};for(var L=s.display.viewFrom,R=0;R<m;R++)L+=b[R].size;if(L!=l){if(d>0){if(m==b.length-1)return null;I=L+b[m].size-l,m++}else I=L-l;l+=I,g+=I}for(;kn(s.doc,g)!=g;){if(m==(d<0?0:b.length-1))return null;g+=d*b[m-(d<0?1:0)].size,m+=d}return{index:m,lineN:g}}function Yn(s,l,g){var d=s.display,m=d.view;m.length==0||l>=d.viewTo||g<=d.viewFrom?(d.view=os(s,l,g),d.viewFrom=l):(d.viewFrom>l?d.view=os(s,l,d.viewFrom).concat(d.view):d.viewFrom<l&&(d.view=d.view.slice(Wi(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,Wi(s,g)))),d.viewTo=g}function Xo(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 L=0;L<g.sel.ranges.length;L++)if(!(!l&&L==g.sel.primIndex)){var R=g.sel.ranges[L];if(!(R.from().line>=s.display.viewTo||R.to().line<s.display.viewFrom)){var O=R.empty();if(b){var _=b(s,R);_&&Fs(s,_,m)}else(O||s.options.showCursorWhenSelecting)&&Fs(s,R.head,m);O||gp(s,R,I)}}return d}function Fs(s,l,g){var d=Xe(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 L=g.appendChild(ve("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));L.style.display="",L.style.left=d.other.left+"px",L.style.top=d.other.top+"px",L.style.height=(d.other.bottom-d.other.top)*.85+"px"}}function Pr(s,l){return s.top-l.top||s.left-l.left}function gp(s,l,g){var d=s.display,m=s.doc,I=document.createDocumentFragment(),b=cu(s.display),L=b.left,R=Math.max(d.sizerWidth,ys(s)-d.sizer.offsetLeft)-b.right,O=m.direction=="ltr";function _(xe,be,Pe,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: "+(Pe??R-xe)+`px;
|
|
7
|
+
height: `+(Fe-be)+"px"))}function Q(xe,be,Pe){var Fe=Ae(m,xe),qe=Fe.text.length,mr,tt;function yr($r,Dt){return Yo(s,ce(xe,$r),"div",Fe,Dt)}function $t($r,Dt,nt){var jr=Cu(s,Fe,null,$r),Hr=Dt=="ltr"==(nt=="after")?"left":"right",Ur=nt=="after"?jr.begin:jr.end-(/\s/.test(Fe.text.charAt(jr.end-1))?2:1);return yr(Ur,Hr)[Hr]}var Ft=br(Fe,m.direction);return Ui(Ft,be||0,Pe??qe,function($r,Dt,nt,jr){var Hr=nt=="ltr",Ur=yr($r,Hr?"left":"right"),Bt=yr(Dt-1,Hr?"right":"left"),Fn=be==null&&$r==0,vs=Pe==null&&Dt==qe,Et=jr==0,yi=!Ft||jr==Ft.length-1;if(Bt.top-Ur.top<=3){var it=(O?Fn:vs)&&Et,ul=(O?vs:Fn)&&yi,Zi=it?L:(Hr?Ur:Bt).left,_s=ul?R:(Hr?Bt:Ur).right;_(Zi,Ur.top,_s-Zi,Ur.bottom)}else{var Ws,Nt,Dn,fl;Hr?(Ws=O&&Fn&&Et?L:Ur.left,Nt=O?R:$t($r,nt,"before"),Dn=O?L:$t(Dt,nt,"after"),fl=O&&vs&&yi?R:Bt.right):(Ws=O?$t($r,nt,"before"):L,Nt=!O&&Fn&&Et?R:Ur.right,Dn=!O&&vs&&yi?L:Bt.left,fl=O?$t(Dt,nt,"after"):R),_(Ws,Ur.top,Nt-Ws,Ur.bottom),Ur.bottom<Bt.top&&_(L,Ur.bottom,null,Bt.top),_(Dn,Bt.top,fl-Dn,Bt.bottom)}(!mr||Pr(Ur,mr)<0)&&(mr=Ur),Pr(Bt,mr)<0&&(mr=Bt),(!tt||Pr(Ur,tt)<0)&&(tt=Ur),Pr(Bt,tt)<0&&(tt=Bt)}),{start:mr,end:tt}}var re=l.from(),K=l.to();if(re.line==K.line)Q(re.line,re.ch,K.ch);else{var oe=Ae(m,re.line),fe=Ae(m,K.line),he=ai(oe)==ai(fe),me=Q(re.line,re.ch,he?oe.text.length+1:null).end,Ce=Q(K.line,he?0:null,K.ch).start;he&&(me.top<Ce.top-2?(_(me.right,me.top,null,me.bottom),_(L,Ce.top,Ce.left,Ce.bottom)):_(me.right,me.top,Ce.left-me.right,me.bottom)),me.bottom<Ce.top&&_(L,me.bottom,null,Ce.top)}g.appendChild(I)}function Wa(s){if(s.state.focused){var l=s.display;clearInterval(l.blinker);var g=!0;l.cursorDiv.style.visibility="",s.options.cursorBlinkRate>0?l.blinker=setInterval(function(){s.hasFocus()||mn(s),l.cursorDiv.style.visibility=(g=!g)?"":"hidden"},s.options.cursorBlinkRate):s.options.cursorBlinkRate<0&&(l.cursorDiv.style.visibility="hidden")}}function Au(s){s.hasFocus()||(s.display.input.focus(),s.state.focused||$a(s))}function ka(s){s.state.delayingBlurEvent=!0,setTimeout(function(){s.state.delayingBlurEvent&&(s.state.delayingBlurEvent=!1,s.state.focused&&mn(s))},100)}function $a(s,l){s.state.delayingBlurEvent&&!s.state.draggingText&&(s.state.delayingBlurEvent=!1),s.options.readOnly!="nocursor"&&(s.state.focused||(ar(s,"focus",s,l),s.state.focused=!0,Je(s.display.wrapper,"CodeMirror-focused"),!s.curOp&&s.display.selForContextMenu!=s.doc.sel&&(s.display.input.reset(),H&&setTimeout(function(){return s.display.input.reset(!0)},20)),s.display.input.receivedFocus()),Wa(s))}function mn(s,l){s.state.delayingBlurEvent||(s.state.focused&&(ar(s,"blur",s,l),s.state.focused=!1,_e(s.display.wrapper,"CodeMirror-focused")),clearInterval(s.display.blinker),setTimeout(function(){s.state.focused||(s.display.shift=!1)},150))}function Jo(s){for(var l=s.display,g=l.lineDiv.offsetTop,d=Math.max(0,l.scroller.getBoundingClientRect().top),m=l.lineDiv.getBoundingClientRect().top,I=0,b=0;b<l.view.length;b++){var L=l.view[b],R=s.options.lineWrapping,O=void 0,_=0;if(!L.hidden){if(m+=L.line.height,G&&P<8){var Q=L.node.offsetTop+L.node.offsetHeight;O=Q-g,g=Q}else{var re=L.node.getBoundingClientRect();O=re.bottom-re.top,!R&&L.text.firstChild&&(_=L.text.firstChild.getBoundingClientRect().right-re.left-1)}var K=L.line.height-O;if((K>.005||K<-.005)&&(m<d&&(I-=K),_t(L.line,O),Iu(L.line),L.rest))for(var oe=0;oe<L.rest.length;oe++)Iu(L.rest[oe]);if(_>s.display.sizerWidth){var fe=Math.ceil(_/us(s.display));fe>s.display.maxLineLength&&(s.display.maxLineLength=fe,s.display.maxLine=L.line,s.display.maxLineChanged=!0)}}}Math.abs(I)>2&&(l.scroller.scrollTop+=I)}function Iu(s){if(s.widgets)for(var l=0;l<s.widgets.length;++l){var g=s.widgets[l],d=g.node.parentNode;d&&(g.height=d.offsetHeight)}}function jo(s,l,g){var d=g&&g.top!=null?Math.max(0,g.top):s.scroller.scrollTop;d=Math.floor(d-hn(s));var m=g&&g.bottom!=null?g.bottom:d+s.wrapper.clientHeight,I=mi(l,d),b=mi(l,m);if(g&&g.ensure){var L=g.ensure.from.line,R=g.ensure.to.line;L<I?(I=L,b=mi(l,Mi(Ae(l,L))+s.wrapper.clientHeight)):Math.min(R,l.lastLine())>=b&&(I=mi(l,Mi(Ae(l,R))-s.wrapper.clientHeight),b=R)}return{from:I,to:Math.max(b,I+1)}}function Ep(s,l){if(!dr(s,"scrollCursorIntoView")){var g=s.display,d=g.sizer.getBoundingClientRect(),m=null,I=g.wrapper.ownerDocument;if(l.top+d.top<0?m=!0:l.bottom+d.top>(I.defaultView.innerHeight||I.documentElement.clientHeight)&&(m=!1),m!=null&&!X){var b=ve("div","\u200B",null,`position: absolute;
|
|
8
|
+
top: `+(l.top-g.viewOffset-hn(s.display))+`px;
|
|
9
|
+
height: `+(l.bottom-l.top+Ii(s)+g.barHeight)+`px;
|
|
10
|
+
left: `+l.left+"px; width: "+Math.max(2,l.right-l.left)+"px;");s.display.lineSpace.appendChild(b),b.scrollIntoView(m),s.display.lineSpace.removeChild(b)}}}function vp(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,L=Xe(s,l),R=!g||g==l?L:Xe(s,g);m={left:Math.min(L.left,R.left),top:Math.min(L.top,R.top)-d,right:Math.max(L.left,R.left),bottom:Math.max(L.bottom,R.bottom)+d};var O=Ha(s,m),_=s.doc.scrollTop,Q=s.doc.scrollLeft;if(O.scrollTop!=null&&(Jn(s,O.scrollTop),Math.abs(s.doc.scrollTop-_)>1&&(b=!0)),O.scrollLeft!=null&&(Ds(s,O.scrollLeft),Math.abs(s.doc.scrollLeft-Q)>1&&(b=!0)),!b)break}return m}function mp(s,l){var g=Ha(s,l);g.scrollTop!=null&&Jn(s,g.scrollTop),g.scrollLeft!=null&&Ds(s,g.scrollLeft)}function Ha(s,l){var g=s.display,d=Br(s.display);l.top<0&&(l.top=0);var m=s.curOp&&s.curOp.scrollTop!=null?s.curOp.scrollTop:g.scroller.scrollTop,I=Pa(s),b={};l.bottom-l.top>I&&(l.bottom=l.top+I);var L=s.doc.height+Ba(g),R=l.top<d,O=l.bottom>L-d;if(l.top<m)b.scrollTop=R?0:l.top;else if(l.bottom>m+I){var _=Math.min(l.top,(O?L:l.bottom)-I);_!=m&&(b.scrollTop=_)}var Q=s.options.fixedGutter?0:g.gutters.offsetWidth,re=s.curOp&&s.curOp.scrollLeft!=null?s.curOp.scrollLeft:g.scroller.scrollLeft-Q,K=ys(s)-g.gutters.offsetWidth,oe=l.right-l.left>K;return oe&&(l.right=l.left+K),l.left<10?b.scrollLeft=0:l.left<re?b.scrollLeft=Math.max(0,l.left+Q-(oe?0:10)):l.right>K+re-3&&(b.scrollLeft=l.right+(oe?0:10)-K),b}function Za(s,l){l!=null&&(zo(s),s.curOp.scrollTop=(s.curOp.scrollTop==null?s.doc.scrollTop:s.curOp.scrollTop)+l)}function xn(s){zo(s);var l=s.getCursor();s.curOp.scrollToPos={from:l,to:l,margin:s.options.cursorScrollMargin}}function Xn(s,l,g){(l!=null||g!=null)&&zo(s),l!=null&&(s.curOp.scrollLeft=l),g!=null&&(s.curOp.scrollTop=g)}function xp(s,l){zo(s),s.curOp.scrollToPos=l}function zo(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=Ha(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});Xn(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),qn(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 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,Ru(s),s.display.scroller.scrollLeft!=l&&(s.display.scroller.scrollLeft=l),s.display.scrollbars.setScrollLeft(l))}function jn(s){var l=s.display,g=l.gutters.offsetWidth,d=Math.round(s.doc.height+Ba(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 Bs=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&&P<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Bs.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}},Bs.prototype.setScrollLeft=function(s){this.horiz.scrollLeft!=s&&(this.horiz.scrollLeft=s),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Bs.prototype.setScrollTop=function(s){this.vert.scrollTop!=s&&(this.vert.scrollTop=s),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Bs.prototype.zeroWidthHack=function(){var s=z&&!ee?"12px":"18px";this.horiz.style.height=this.vert.style.width=s,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Vr,this.disableVert=new Vr},Bs.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)},Bs.prototype.clear=function(){var s=this.horiz.parentNode;s.removeChild(this.horiz),s.removeChild(this.vert)};var zn=function(){};zn.prototype.update=function(){return{bottom:0,right:0}},zn.prototype.setScrollLeft=function(){},zn.prototype.setScrollTop=function(){},zn.prototype.clear=function(){};function Cn(s,l){l||(l=jn(s));var g=s.display.barWidth,d=s.display.barHeight;Tu(s,l);for(var m=0;m<4&&g!=s.display.barWidth||d!=s.display.barHeight;m++)g!=s.display.barWidth&&s.options.lineWrapping&&Jo(s),Tu(s,jn(s)),g=s.display.barWidth,d=s.display.barHeight}function Tu(s,l){var g=s.display,d=g.scrollbars.update(l);g.sizer.style.paddingRight=(g.barWidth=d.right)+"px",g.sizer.style.paddingBottom=(g.barHeight=d.bottom)+"px",g.heightForcer.style.borderBottom=d.bottom+"px solid transparent",d.right&&d.bottom?(g.scrollbarFiller.style.display="block",g.scrollbarFiller.style.height=d.bottom+"px",g.scrollbarFiller.style.width=d.right+"px"):g.scrollbarFiller.style.display="",d.bottom&&s.options.coverGutterNextToScrollbar&&s.options.fixedGutter?(g.gutterFiller.style.display="block",g.gutterFiller.style.height=d.bottom+"px",g.gutterFiller.style.width=l.gutterWidth+"px"):g.gutterFiller.style.display=""}var Lu={native:Bs,null:zn};function Su(s){s.display.scrollbars&&(s.display.scrollbars.clear(),s.display.scrollbars.addClass&&_e(s.display.wrapper,s.display.scrollbars.addClass)),s.display.scrollbars=new Lu[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"?Ds(s,l):Jn(s,l)},s),s.display.scrollbars.addClass&&Je(s.display.wrapper,s.display.scrollbars.addClass)}var Cp=0;function Ps(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:++Cp,markArrays:null},ap(s.curOp)}function Ms(s){var l=s.curOp;l&&up(l,function(g){for(var d=0;d<g.ops.length;d++)g.ops[d].cm.curOp=null;Ap(g)})}function Ap(s){for(var l=s.ops,g=0;g<l.length;g++)Ip(l[g]);for(var d=0;d<l.length;d++)Np(l[d]);for(var m=0;m<l.length;m++)bp(l[m]);for(var I=0;I<l.length;I++)Tp(l[I]);for(var b=0;b<l.length;b++)Lp(l[b])}function Ip(s){var l=s.cm,g=l.display;yp(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 qo(l,s.mustUpdate&&{top:s.scrollTop,ensure:s.scrollToPos},s.forceUpdate)}function Np(s){s.updatedDisplay=s.mustUpdate&&Qa(s.cm,s.update)}function bp(s){var l=s.cm,g=l.display;s.updatedDisplay&&Jo(l),s.barMeasure=jn(l),g.maxLineChanged&&!l.options.lineWrapping&&(s.adjustWidthTo=hu(l,g.maxLine,g.maxLine.text.length).left+3,l.display.sizerWidth=s.adjustWidthTo,s.barMeasure.scrollWidth=Math.max(g.scroller.clientWidth,g.sizer.offsetLeft+s.adjustWidthTo+Ii(l)+l.display.barWidth),s.maxScrollLeft=Math.max(0,g.sizer.offsetLeft+s.adjustWidthTo-ys(l))),(s.updatedDisplay||s.selectionChanged)&&(s.preparedSelection=g.input.prepareSelection())}function Tp(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==Xr(yt(l));s.preparedSelection&&l.display.input.showSelection(s.preparedSelection,g),(s.updatedDisplay||s.startHeight!=l.doc.height)&&Cn(l,s.barMeasure),s.updatedDisplay&&Xa(l,s.barMeasure),s.selectionChanged&&Wa(l),l.state.focused&&s.updateInput&&l.display.input.reset(s.typing),g&&Au(s.cm)}function Lp(s){var l=s.cm,g=l.display,d=l.doc;if(s.updatedDisplay&&yu(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&&Ds(l,s.scrollLeft,!0,!0),s.scrollToPos){var m=vp(l,Ye(d,s.scrollToPos.from),Ye(d,s.scrollToPos.to),s.scrollToPos.margin);Ep(l,m)}var I=s.maybeHiddenMarkers,b=s.maybeUnhiddenMarkers;if(I)for(var L=0;L<I.length;++L)I[L].lines.length||ar(I[L],"hide");if(b)for(var R=0;R<b.length;++R)b[R].lines.length&&ar(b[R],"unhide");g.wrapper.offsetHeight&&(d.scrollTop=l.display.scroller.scrollTop),s.changeObjs&&ar(l,"changes",l,s.changeObjs),s.update&&s.update.finish()}function kt(s,l){if(s.curOp)return l();Ps(s);try{return l()}finally{Ms(s)}}function et(s,l){return function(){if(s.curOp)return l.apply(s,arguments);Ps(s);try{return l.apply(s,arguments)}finally{Ms(s)}}}function It(s){return function(){if(this.curOp)return s.apply(this,arguments);Ps(this);try{return s.apply(this,arguments)}finally{Ms(this)}}}function rt(s){return function(){var l=this.cm;if(!l||l.curOp)return s.apply(this,arguments);Ps(l);try{return s.apply(this,arguments)}finally{Ms(l)}}}function qn(s,l){s.doc.highlightFrontier<s.display.viewTo&&s.state.highlight.set(l,je(Sp,s))}function Sp(s){var l=s.doc;if(!(l.highlightFrontier>=s.display.viewTo)){var g=+new Date+s.options.workTime,d=_n(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,L=I.text.length>s.options.maxHighlightLength?Le(l.mode,d.state):null,R=ql(s,I,d,!0);L&&(d.state=L),I.styles=R.styles;var O=I.styleClasses,_=R.classes;_?I.styleClasses=_:O&&(I.styleClasses=null);for(var Q=!b||b.length!=I.styles.length||O!=_&&(!O||!_||O.bgClass!=_.bgClass||O.textClass!=_.textClass),re=0;!Q&&re<b.length;++re)Q=b[re]!=I.styles[re];Q&&m.push(d.line),I.stateAfter=d.save(),d.nextLine()}else I.text.length<=s.options.maxHighlightLength&&Wn(s,I.text,d),I.stateAfter=d.line%5==0?d.save():null,d.nextLine();if(+new Date>g)return qn(s,s.options.workDelay),!0}),l.highlightFrontier=d.line,l.modeFrontier=Math.max(l.modeFrontier,d.line),m.length&&kt(s,function(){for(var I=0;I<m.length;I++)Wt(s,m[I],"text")})}}var qo=function(s,l,g){var d=s.display;this.viewport=l,this.visible=jo(d,s.doc,l),this.editorIsHidden=!d.wrapper.offsetWidth,this.wrapperHeight=d.wrapper.clientHeight,this.wrapperWidth=d.wrapper.clientWidth,this.oldDisplayWidth=ys(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 Rp(s){if(s.hasFocus())return null;var l=Xr(yt(s));if(!l||!ur(s.display.lineDiv,l))return null;var g={activeElt:l};if(window.getSelection){var d=ot(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 wp(s){if(!(!s||!s.activeElt||s.activeElt==Xr(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 Qa(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&&Xo(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)),Di&&(I=kn(s.doc,I),b=$o(s.doc,b));var L=I!=g.viewFrom||b!=g.viewTo||g.lastWrapHeight!=l.wrapperHeight||g.lastWrapWidth!=l.wrapperWidth;Yn(s,I,b),g.viewOffset=Mi(Ae(s.doc,g.viewFrom)),s.display.mover.style.top=g.viewOffset+"px";var R=Xo(s);if(!L&&R==0&&!l.force&&g.renderedView==g.view&&(g.updateLineNumbers==null||g.updateLineNumbers>=g.viewTo))return!1;var O=Rp(s);return R>4&&(g.lineDiv.style.display="none"),Op(s,g.updateLineNumbers,l.dims),R>4&&(g.lineDiv.style.display=""),g.renderedView=g.view,wp(O),Me(g.cursorDiv),Me(g.selectionDiv),g.gutters.style.height=g.sizer.style.minHeight=0,L&&(g.lastWrapHeight=l.wrapperHeight,g.lastWrapWidth=l.wrapperWidth,qn(s,400)),g.updateLineNumbers=null,!0}function yu(s,l){for(var g=l.viewport,d=!0;;d=!1){if(!d||!s.options.lineWrapping||l.oldDisplayWidth==ys(s)){if(g&&g.top!=null&&(g={top:Math.min(s.doc.height+Ba(s.display)-Pa(s),g.top)}),l.visible=jo(s.display,s.doc,g),l.visible.from>=s.display.viewFrom&&l.visible.to<=s.display.viewTo)break}else d&&(l.visible=jo(s.display,s.doc,g));if(!Qa(s,l))break;Jo(s);var m=jn(s);Gs(s),Cn(s,m),Xa(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(Qa(s,g)){Jo(s),yu(s,g);var d=jn(s);Gs(s),Cn(s,d),Xa(s,d),g.finish()}}function Op(s,l,g){var d=s.display,m=s.options.lineNumbers,I=d.lineDiv,b=I.firstChild;function L(oe){var fe=oe.nextSibling;return H&&z&&s.display.currentWheelTarget==oe?oe.style.display="none":oe.parentNode.removeChild(oe),fe}for(var R=d.view,O=d.viewFrom,_=0;_<R.length;_++){var Q=R[_];if(!Q.hidden)if(!Q.node||Q.node.parentNode!=I){var re=Ut(s,Q,O,g);I.insertBefore(re,b)}else{for(;b!=Q.node;)b=L(b);var K=m&&l!=null&&l<=O&&Q.lineNumber;Q.changes&&(hr(Q.changes,"gutter")>-1&&(K=!1),uu(s,Q,O,g)),K&&(Me(Q.lineNumber),Q.lineNumber.appendChild(document.createTextNode(La(s.options,O)))),b=Q.node.nextSibling}O+=Q.size}for(;b;)b=L(b)}function Kn(s){var l=s.gutters.offsetWidth;s.sizer.style.marginLeft=l+"px",Kr(s,"gutterChanged",s)}function Xa(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 Ru(s){var l=s.display,g=l.view;if(!(!l.alignWidgets&&(!l.gutters.firstChild||!s.options.fixedGutter))){for(var d=ht(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 L=g[b].alignable;if(L)for(var R=0;R<L.length;R++)L[R].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=La(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",Kn(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,L=l.appendChild(ve("div",null,"CodeMirror-gutter "+I));b&&(L.style.cssText=b),I=="CodeMirror-linenumbers"&&(s.lineGutter=L,L.style.width=(s.lineNumWidth||1)+"px")}l.style.display=g.length?"":"none",Kn(s)}function eo(s){Ou(s.display),dt(s),Ru(s)}function Up(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"),$&&V===105&&(m.wrapper.style.clipPath="inset(0px)"),m.wrapper.setAttribute("translate","no"),G&&P<8&&(m.gutters.style.zIndex=-1,m.scroller.style.paddingRight=0),!H&&!(e&&Y)&&(m.scroller.draggable=!0),s&&(s.appendChild?s.appendChild(m.wrapper):s(m.wrapper)),m.viewFrom=m.viewTo=l.first,m.reportedViewFrom=m.reportedViewTo=l.first,m.view=[],m.renderedView=null,m.externalMeasured=null,m.viewOffset=0,m.lastWrapHeight=m.lastWrapWidth=0,m.updateLineNumbers=null,m.nativeBarWidth=m.barHeight=m.barWidth=0,m.scrollbarsClipped=!1,m.lineNumWidth=m.lineNumInnerWidth=m.lineNumChars=null,m.alignWidgets=!1,m.cachedCharWidth=m.cachedTextHeight=m.cachedPaddingH=null,m.maxLine=null,m.maxLineLength=0,m.maxLineChanged=!1,m.wheelDX=m.wheelDY=m.wheelStartX=m.wheelStartY=null,m.shift=!1,m.selForContextMenu=null,m.activeTouch=null,m.gutterSpecs=Ja(d.gutters,d.lineNumbers),Ou(m),g.init(m)}var Ko=0,ki=null;G?ki=-.53:e?ki=15:$?ki=-.7:k&&(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 Gp(s){var l=Uu(s);return l.x*=ki,l.y*=ki,l}function ea(s,l){$&&V==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,L=b.scroller,R=L.scrollWidth>L.clientWidth,O=L.scrollHeight>L.clientHeight;if(d&&R||m&&O){if(m&&z&&H){e:for(var _=l.target,Q=b.view;_!=L;_=_.parentNode)for(var re=0;re<Q.length;re++)if(Q[re].node==_){s.display.currentWheelTarget=_;break e}}if(d&&!e&&!J&&I!=null){m&&O&&Jn(s,Math.max(0,L.scrollTop+m*I)),Ds(s,Math.max(0,L.scrollLeft+d*I)),(!m||m&&O)&&ut(l),b.wheelStartX=null;return}if(m&&I!=null){var K=m*I,oe=s.doc.scrollTop,fe=oe+b.wrapper.clientHeight;K<0?oe=Math.max(0,oe+K-50):fe=Math.min(s.doc.height,fe+K+50),Ya(s,{top:oe,bottom:fe})}Ko<20&&l.deltaMode!==0&&(b.wheelStartX==null?(b.wheelStartX=L.scrollLeft,b.wheelStartY=L.scrollTop,b.wheelDX=d,b.wheelDY=m,setTimeout(function(){if(b.wheelStartX!=null){var he=L.scrollLeft-b.wheelStartX,me=L.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 Tr=function(s,l){this.ranges=s,this.primIndex=l};Tr.prototype.primary=function(){return this.ranges[this.primIndex]},Tr.prototype.equals=function(s){if(s==this)return!0;if(s.primIndex!=this.primIndex||s.ranges.length!=this.ranges.length)return!1;for(var l=0;l<this.ranges.length;l++){var g=this.ranges[l],d=s.ranges[l];if(!Sa(g.anchor,d.anchor)||!Sa(g.head,d.head))return!1}return!0},Tr.prototype.deepCopy=function(){for(var s=[],l=0;l<this.ranges.length;l++)s[l]=new lr(ya(this.ranges[l].anchor),ya(this.ranges[l].head));return new Tr(s,this.primIndex)},Tr.prototype.somethingSelected=function(){for(var s=0;s<this.ranges.length;s++)if(!this.ranges[s].empty())return!0;return!1},Tr.prototype.contains=function(s,l){l||(l=s);for(var g=0;g<this.ranges.length;g++){var d=this.ranges[g];if(Qe(l,d.from())>=0&&Qe(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 Po(this.anchor,this.head)},lr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ve(s,l,g){var d=s&&s.options.selectionsMayTouch,m=l[g];l.sort(function(re,K){return Qe(re.from(),K.from())}),g=hr(l,m);for(var I=1;I<l.length;I++){var b=l[I],L=l[I-1],R=Qe(L.to(),b.from());if(d&&!b.empty()?R>0:R>=0){var O=Mo(L.from(),b.from()),_=Po(L.to(),b.to()),Q=L.empty()?b.from()==b.head:L.from()==L.head;I<=g&&--g,l.splice(--I,2,new lr(Q?_:O,Q?O:_))}}return new Tr(l,g)}function Ti(s,l){return new Tr([new lr(s,l||s)],0)}function Li(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(Qe(s,l.from)<0)return s;if(Qe(s,l.to)<=0)return Li(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+=Li(l).ch-l.to.ch),ce(g,d)}function $i(s,l){for(var g=[],d=0;d<s.sel.ranges.length;d++){var m=s.sel.ranges[d];g.push(new lr(ra(m.anchor,l),ra(m.head,l)))}return Ve(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 Fp(s,l,g){for(var d=[],m=ce(s.first,0),I=m,b=0;b<l.length;b++){var L=l[b],R=Gu(L.from,m,I),O=Gu(Li(L),m,I);if(m=L.to,I=O,g=="around"){var _=s.sel.ranges[b],Q=Qe(_.head,_.anchor)<0;d[b]=new lr(Q?O:R,Q?R:O)}else d[b]=new lr(R,R)}return new Tr(d,s.sel.primIndex)}function ui(s){s.doc.mode=Be(s.options,s.doc.modeOption),Vs(s)}function Vs(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,qn(s,100),s.state.modeGen++,s.curOp&&dt(s)}function cs(s,l){return l.from.ch==0&&l.to.ch==0&&Ie(l.text)==""&&(!s.cm||s.cm.options.wholeLineUpdateBefore)}function ro(s,l,g,d){function m(Ce){return g?g[Ce]:null}function I(Ce,xe,be){qf(Ce,xe,be,d),Kr(Ce,"change",Ce,l)}function b(Ce,xe){for(var be=[],Pe=Ce;Pe<xe;++Pe)be.push(new pn(O[Pe],m(Pe),d));return be}var L=l.from,R=l.to,O=l.text,_=Ae(s,L.line),Q=Ae(s,R.line),re=Ie(O),K=m(O.length-1),oe=R.line-L.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(Q,Q.text,K),oe&&s.remove(L.line,oe),fe.length&&s.insert(L.line,fe)}else if(_==Q)if(O.length==1)I(_,_.text.slice(0,L.ch)+re+_.text.slice(R.ch),K);else{var he=b(1,O.length-1);he.push(new pn(re+_.text.slice(R.ch),K,d)),I(_,_.text.slice(0,L.ch)+O[0],m(0)),s.insert(L.line+1,he)}else if(O.length==1)I(_,_.text.slice(0,L.ch)+O[0]+Q.text.slice(R.ch),m(0)),s.remove(L.line+1,oe);else{I(_,_.text.slice(0,L.ch)+O[0],m(0)),I(Q,re+Q.text.slice(R.ch),K);var me=b(1,O.length-1);oe>1&&s.remove(L.line+1,oe-1),s.insert(L.line+1,me)}Kr(s,"change",s,l)}function Si(s,l,g){function d(m,I,b){if(m.linked)for(var L=0;L<m.linked.length;++L){var R=m.linked[L];if(R.doc!=I){var O=b&&R.sharedHist;g&&!O||(l(R.doc,O),d(R.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||Da(s),s.options.mode=l.modeOption,dt(s)}function ia(s){(s.doc.direction=="rtl"?Je:_e)(s.display.lineDiv,"CodeMirror-rtl")}function ja(s){kt(s,function(){ia(s),dt(s)})}function An(s){this.done=[],this.undone=[],this.undoDepth=s?s.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=s?s.maxGeneration:1}function to(s,l){var g={from:ya(l.from),to:Li(l),text:ft(s,l.from,l.to)};return Du(s,g,l.from.line,l.to.line+1),Si(s,function(d){return Du(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 Dp(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,L;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=Dp(m,m.lastOp==d)))L=Ie(b.changes),Qe(l.from,l.to)==0&&Qe(l.from,L.to)==0?L.to=Li(l):b.changes.push(to(s,l));else{var R=Ie(m.done);for((!R||!R.ranges)&&hs(s.sel,m.done),b={changes:[to(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,L||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 Pp(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 Du(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 Mp(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 Vp(s,l){var g=l["spans_"+s.id];if(!g)return null;for(var d=[],m=0;m<l.text.length;++m)d.push(Mp(g[m]));return d}function Bu(s,l){var g=Vp(s,l),d=Pi(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 L=0;L<b.length;++L){for(var R=b[L],O=0;O<I.length;++O)if(I[O].marker==R.marker)continue e;I.push(R)}else b&&(g[m]=b)}return g}function In(s,l,g){for(var d=[],m=0;m<s.length;++m){var I=s[m];if(I.ranges){d.push(g?Tr.prototype.deepCopy.call(I):I);continue}var b=I.changes,L=[];d.push({changes:L});for(var R=0;R<b.length;++R){var O=b[R],_=void 0;if(L.push({from:O.from,to:O.to,text:O.text}),l)for(var Q in O)(_=Q.match(/^spans_(\d+)$/))&&hr(l,Number(_[1]))>-1&&(Ie(L)[Q]=O[Q],delete O[Q])}}return d}function za(s,l,g,d){if(d){var m=s.anchor;if(g){var I=Qe(l,m)<0;I!=Qe(g,m)<0?(m=l,l=g):I!=Qe(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)),gt(s,new Tr([za(s.sel.primary(),l,g,m)],0),d)}function Pu(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]=za(s.sel.ranges[I],l[I],null,m);var b=Ve(s.cm,d,s.sel.primIndex);gt(s,b,g)}function qa(s,l,g,d){var m=s.sel.ranges.slice(0);m[l]=g,gt(s,Ve(s.cm,m,s.sel.primIndex),d)}function Mu(s,l,g,d){gt(s,Ti(l,g),d)}function _p(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?Ve(s.cm,d.ranges,d.ranges.length-1):l}function Vu(s,l,g){var d=s.history.done,m=Ie(d);m&&m.ranges?(d[d.length-1]=l,Nn(s,l,g)):gt(s,l,g)}function gt(s,l,g){Nn(s,l,g),Pp(s,s.sel,s.cm?s.cm.curOp.id:NaN,g)}function Nn(s,l,g){(tr(s,"beforeSelectionChange")||s.cm&&tr(s.cm,"beforeSelectionChange"))&&(l=_p(s,l,g));var d=g&&g.bias||(Qe(l.primary().head,s.sel.primary().head)<0?-1:1);bn(s,Ln(s,l,d,!0)),!(g&&g.scroll===!1)&&s.cm&&s.cm.getOption("readOnly")!="nocursor"&&xn(s.cm)}function bn(s,l){l.equals(s.sel)||(s.sel=l,s.cm&&(s.cm.curOp.updateInput=1,s.cm.curOp.selectionChanged=!0,rs(s.cm)),Kr(s,"cursorActivity",s))}function Tn(s){bn(s,Ln(s,s.sel,null,!1))}function Ln(s,l,g,d){for(var m,I=0;I<l.ranges.length;I++){var b=l.ranges[I],L=l.ranges.length==s.sel.ranges.length&&s.sel.ranges[I],R=oa(s,b.anchor,L&&L.anchor,g,d),O=b.head==b.anchor?R:oa(s,b.head,L&&L.head,g,d);(m||R!=b.anchor||O!=b.head)&&(m||(m=l.ranges.slice(0,I)),m[I]=new lr(R,O))}return m?Ve(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 L=I.markedSpans[b],R=L.marker,O="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,_="selectRight"in R?!R.selectRight:R.inclusiveRight;if((L.from==null||(O?L.from<=l.ch:L.from<l.ch))&&(L.to==null||(_?L.to>=l.ch:L.to>l.ch))){if(m&&(ar(R,"beforeCursorEnter"),R.explicitlyCleared))if(I.markedSpans){--b;continue}else break;if(!R.atomic)continue;if(g){var Q=R.find(d<0?1:-1),re=void 0;if((d<0?_:O)&&(Q=_u(s,Q,-d,Q&&Q.line==l.line?I:null)),Q&&Q.line==l.line&&(re=Qe(Q,g))&&(d<0?re<0:re>0))return ds(s,Q,l,d,m)}var K=R.find(d<0?-1:1);return(d<0?O:_)&&(K=_u(s,K,d,K.line==l.line?I:null)),K?ds(s,K,l,d,m):null}}return l}function oa(s,l,g,d,m){var I=d||1,b=ds(s,l,g,I,m)||!m&&ds(s,l,g,I,!0)||ds(s,l,g,-I,m)||!m&&ds(s,l,g,-I,!0);return b||(s.cantEdit=!0,ce(s.first,0))}function _u(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 Wu(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,L){m&&(d.from=Ye(s,m)),I&&(d.to=Ye(s,I)),b&&(d.text=b),L!==void 0&&(d.origin=L)}),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 et(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=_o&&!g&&Ls(s,l.from,l.to);if(d)for(var m=d.length-1;m>=0;--m)$u(s,{from:d[m].from,to:d[m].to,text:m?[""]:l.text,origin:l.origin});else $u(s,l)}}function $u(s,l){if(!(l.text.length==1&&l.text[0]==""&&Qe(l.from,l.to)==0)){var g=$i(s,l);Fu(s,l,g,s.cm?s.cm.curOp.id:NaN),io(s,l,g,Pi(s,l));var d=[];Si(s,function(m,I){!I&&hr(d,m.history)==-1&&(Yu(m.history,l),d.push(m.history)),io(m,l,null,Pi(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,L=l=="undo"?m.done:m.undone,R=l=="undo"?m.undone:m.done,O=0;O<L.length&&(I=L[O],!(g?I.ranges&&!I.equals(s.sel):!I.ranges));O++);if(O!=L.length){for(m.lastOrigin=m.lastSelOrigin=null;;)if(I=L.pop(),I.ranges){if(hs(I,R),g&&!I.equals(s.sel)){gt(s,I,{clearRedo:!1});return}b=I}else if(d){L.push(I);return}else break;var _=[];hs(b,R),R.push({changes:_,generation:m.generation}),m.generation=I.generation||++m.maxGeneration;for(var Q=tr(s,"beforeChange")||s.cm&&tr(s.cm,"beforeChange"),re=function(fe){var he=I.changes[fe];if(he.origin=l,Q&&!ku(s,he,!1))return L.length=0,{};_.push(to(s,he));var me=fe?$i(s,he):Ie(L);io(s,he,me,Bu(s,he)),!fe&&s.cm&&s.cm.scrollIntoView({from:he.from,to:Li(he)});var Ce=[];Si(s,function(xe,be){!be&&hr(Ce,xe.history)==-1&&(Yu(xe.history,he),Ce.push(xe.history)),io(xe,he,null,Bu(xe,he))})},K=I.changes.length-1;K>=0;--K){var oe=re(K);if(oe)return oe.v}}}}function Hu(s,l){if(l!=0&&(s.first+=l,s.sel=new Tr(Rt(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)){dt(s.cm,s.first,s.first-l,l);for(var g=s.cm.display,d=g.viewFrom;d<g.viewTo;d++)Wt(s.cm,d,"gutter")}}function io(s,l,g,d){if(s.cm&&!s.cm.curOp)return et(s.cm,io)(s,l,g,d);if(l.to.line<s.first){Hu(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);Hu(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=ft(s,l.from,l.to),g||(g=$i(s,l)),s.cm?Wp(s.cm,l,d):ro(s,l,d),Nn(s,g,pe),s.cantEdit&&oa(s,ce(s.firstLine(),0))&&(s.cantEdit=!1)}}function Wp(s,l,g){var d=s.doc,m=s.display,I=l.from,b=l.to,L=!1,R=I.line;s.options.lineWrapping||(R=He(ai(Ae(d,I.line))),d.iter(R,b.line+1,function(K){if(K==m.maxLine)return L=!0,!0})),d.sel.contains(l.from,l.to)>-1&&rs(s),ro(d,l,g,vn(s)),s.options.lineWrapping||(d.iter(R,I.line+l.text.length,function(K){var oe=Ho(K);oe>m.maxLineLength&&(m.maxLine=K,m.maxLineLength=oe,m.maxLineChanged=!0,L=!1)}),L&&(s.curOp.updateMaxLine=!0)),Jf(d,I.line),qn(s,400);var O=l.text.length-(b.line-I.line)-1;l.full?dt(s):I.line==b.line&&l.text.length==1&&!cs(s.doc,l)?Wt(s,I.line,"text"):dt(s,I.line,b.line+1,O);var _=tr(s,"changes"),Q=tr(s,"change");if(Q||_){var re={from:I,to:b,text:l.text,removed:l.removed,origin:l.origin};Q&&Kr(s,"change",s,re),_&&(s.curOp.changeObjs||(s.curOp.changeObjs=[])).push(re)}s.display.selForContextMenu=null}function yn(s,l,g,d,m){var I;d||(d=g),Qe(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 Zu(s,l,g,d){g<s.line?s.line+=d:l<s.line&&(s.line=l,s.ch=0)}function Qu(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 L=0;L<I.ranges.length;L++)Zu(I.ranges[L].anchor,l,g,d),Zu(I.ranges[L].head,l,g,d);continue}for(var R=0;R<I.changes.length;++R){var O=I.changes[R];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;Qu(s.done,g,d,m),Qu(s.undone,g,d,m)}function so(s,l,g,d){var m=l,I=l;return typeof l=="number"?I=Ae(s,jl(s,l)):m=He(l),m==null?null:(d(I,m)&&s.cm&&Wt(s.cm,m,g),I)}function no(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}no.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,Kf(m),Kr(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 oo(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}oo.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 no))){var L=[];this.collapse(L),this.children=[new no(L)],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,L=b;L<m.lines.length;){var R=new no(m.lines.slice(L,L+=25));m.height-=R.height,this.children.splice(++d,0,R),R.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 oo(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 oo(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 ao=function(s,l,g){if(g)for(var d in g)g.hasOwnProperty(d)&&(this[d]=g[d]);this.doc=s,this.node=l};ao.prototype.clear=function(){var s=this.doc.cm,l=this.line.widgets,g=this.line,d=He(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=Vi(this);_t(g,Math.max(0,g.height-I)),s&&(kt(s,function(){Xu(s,g,-I),Wt(s,d,"widget")}),Kr(s,"lineWidgetCleared",s,this,d))}},ao.prototype.changed=function(){var s=this,l=this.height,g=this.doc.cm,d=this.line;this.height=null;var m=Vi(this)-l;m&&(Ci(this.doc,d)||_t(d,d.height+m),g&&kt(g,function(){g.curOp.forceUpdate=!0,Xu(g,d,m),Kr(g,"lineWidgetChanged",g,s,He(d))}))},ts(ao);function Xu(s,l,g){Mi(l)<(s.curOp&&s.curOp.scrollTop||s.doc.scrollTop)&&Za(s,g)}function kp(s,l,g,d){var m=new ao(s,g,d),I=s.cm;return I&&m.noHScroll&&(I.display.alignWidgets=!0),so(s,l,"widget",function(b){var L=b.widgets||(b.widgets=[]);if(m.insertAt==null?L.push(m):L.splice(Math.min(L.length,Math.max(0,m.insertAt)),0,m),m.line=b,I&&!Ci(s,b)){var R=Mi(b)<s.scrollTop;_t(b,b.height+Vi(m)),R&&Za(I,m.height),I.curOp.forceUpdate=!0}return!0}),I&&Kr(I,"lineWidgetAdded",I,m,typeof l=="number"?l:He(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&&Ps(s),tr(this,"clear")){var g=this.find();g&&Kr(this,"clear",g.from,g.to)}for(var d=null,m=null,I=0;I<this.lines.length;++I){var b=this.lines[I],L=Ns(b.markedSpans,this);s&&!this.collapsed?Wt(s,He(b),"text"):s&&(L.to!=null&&(m=He(b)),L.from!=null&&(d=He(b))),b.markedSpans=wa(b.markedSpans,L),L.from==null&&this.collapsed&&!Ci(this.doc,b)&&s&&_t(b,Br(s.display))}if(s&&this.collapsed&&!s.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var O=ai(this.lines[R]),_=Ho(O);_>s.display.maxLineLength&&(s.display.maxLine=O,s.display.maxLineLength=_,s.display.maxLineChanged=!0)}d!=null&&s&&this.collapsed&&dt(s,d,m+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,s&&Tn(s.doc)),s&&Kr(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:He(I),b.from),s==-1))return g;if(b.to!=null&&(d=ce(l?I:He(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||kt(d,function(){var m=l.line,I=He(l.line),b=ct(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 L=g.height;g.height=null;var R=Vi(g)-L;R&&_t(m,m.height+R)}Kr(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 Rn(s,l,g,d,m){if(d&&d.shared)return $p(s,l,g,d,m);if(s.cm&&!s.cm.curOp)return et(s.cm,Rn)(s,l,g,d,m);var I=new gs(s,m),b=Qe(l,g);if(d&&Jr(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");Qt()}I.addToHistory&&Fu(s,{from:l,to:g,origin:"markText"},s.sel,NaN);var L=l.line,R=s.cm,O;if(s.iter(L,g.line+1,function(Q){R&&I.collapsed&&!R.options.lineWrapping&&ai(Q)==R.display.maxLine&&(O=!0),I.collapsed&&L!=l.line&&_t(Q,0),Bi(Q,new an(I,L==l.line?l.ch:null,L==g.line?g.ch:null),s.cm&&s.cm.curOp),++L}),I.collapsed&&s.iter(l.line,g.line+1,function(Q){Ci(s,Q)&&_t(Q,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),R){if(O&&(R.curOp.updateMaxLine=!0),I.collapsed)dt(R,l.line,g.line+1);else if(I.className||I.startStyle||I.endStyle||I.css||I.attributes||I.title)for(var _=l.line;_<=g.line;_++)Wt(R,_,"text");I.atomic&&Tn(R.doc),Kr(R,"markerAdded",R,I)}return I}var lo=function(s,l){this.markers=s,this.primary=l;for(var g=0;g<s.length;++g)s[g].parent=this};lo.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var s=0;s<this.markers.length;++s)this.markers[s].clear();Kr(this,"clear")}},lo.prototype.find=function(s,l){return this.primary.find(s,l)},ts(lo);function $p(s,l,g,d,m){d=Jr(d),d.shared=!1;var I=[Rn(s,l,g,d,m)],b=I[0],L=d.widgetNode;return Si(s,function(R){L&&(d.widgetNode=L.cloneNode(!0)),I.push(Rn(R,Ye(R,l),Ye(R,g),d,m));for(var O=0;O<R.linked.length;++O)if(R.linked[O].isParent)return;b=Ie(I)}),new lo(I,b)}function ju(s){return s.findMarks(ce(s.first,0),s.clipPos(ce(s.lastLine())),function(l){return l.parent})}function Hp(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(Qe(I,b)){var L=Rn(s,I,b,d.primary,d.primary.type);d.markers.push(L),L.parent=d}}}function Zp(s){for(var l=function(d){var m=s[d],I=[m.primary.doc];Si(m.primary.doc,function(R){return I.push(R)});for(var b=0;b<m.markers.length;b++){var L=m.markers[b];hr(I,L.doc)==-1&&(L.parent=null,m.markers.splice(b--,1))}},g=0;g<s.length;g++)l(g)}var Qp=0,Gt=function(s,l,g,d,m){if(!(this instanceof Gt))return new Gt(s,l,g,d,m);g==null&&(g=0),oo.call(this,[new no([new pn("",null)])]),this.first=g,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=g;var I=ce(g,0);this.sel=Ti(I),this.history=new An(null),this.id=++Qp,this.modeOption=l,this.lineSep=d,this.direction=m=="rtl"?"rtl":"ltr",this.extend=!1,typeof s=="string"&&(s=this.splitLines(s)),ro(this,{from:I,to:I,text:s}),gt(this,Ti(I),pe)};Gt.prototype=es(oo.prototype,{constructor:Gt,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:rt(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&&Xn(this.cm,0,0),gt(this,Ti(l),pe)}),replaceRange:function(s,l,g,d){l=Ye(this,l),g=g?Ye(this,g):l,yn(this,s,l,g,d)},getRange:function(s,l,g){var d=ft(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 He(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:rt(function(s,l,g){Mu(this,Ye(this,typeof s=="number"?ce(s,l||0):s),null,g)}),setSelection:rt(function(s,l,g){Mu(this,Ye(this,s),Ye(this,l||s),g)}),extendSelection:rt(function(s,l,g){na(this,Ye(this,s),l&&Ye(this,l),g)}),extendSelections:rt(function(s,l){Pu(this,zl(this,s),l)}),extendSelectionsBy:rt(function(s,l){var g=Rt(this.sel.ranges,s);Pu(this,zl(this,g),l)}),setSelections:rt(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)),gt(this,Ve(this.cm,d,l),g)}}),addSelection:rt(function(s,l,g){var d=this.sel.ranges.slice(0);d.push(new lr(Ye(this,s),Ye(this,l||s))),gt(this,Ve(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=ft(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=ft(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:rt(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 L=l&&l!="end"&&Fp(this,d,l),R=d.length-1;R>=0;R--)Sn(this,d[R]);L?Vu(this,L):this.cm&&xn(this.cm)}),undo:rt(function(){aa(this,"undo")}),redo:rt(function(){aa(this,"redo")}),undoSelection:rt(function(){aa(this,"undo",!0)}),redoSelection:rt(function(){aa(this,"redo",!0)}),setExtending:function(s){this.extend=s},getExtending:function(){return this.extend},historySize:function(){for(var s=this.history,l=0,g=0,d=0;d<s.done.length;d++)s.done[d].ranges||++l;for(var m=0;m<s.undone.length;m++)s.undone[m].ranges||++g;return{undo:l,redo:g}},clearHistory:function(){var s=this;this.history=new An(this.history),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:In(this.history.done),undone:In(this.history.undone)}},setHistory:function(s){var l=this.history=new An(this.history);l.done=In(s.done.slice(0),null,!0),l.undone=In(s.undone.slice(0),null,!0)},setGutterMarker:rt(function(s,l,g){return so(this,s,"gutter",function(d){var m=d.gutterMarkers||(d.gutterMarkers={});return m[l]=g,!g&&rr(m)&&(d.gutterMarkers=null),!0})}),clearGutter:rt(function(s){var l=this;this.iter(function(g){g.gutterMarkers&&g.gutterMarkers[s]&&so(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=He(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:rt(function(s,l,g){return so(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:rt(function(s,l,g){return so(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 L=b.index+b[0].length;d[m]=I.slice(0,b.index)+(!b.index||L==I.length?"":" ")+I.slice(L)||null}else return!1;return!0})}),addLineWidget:rt(function(s,l,g){return kp(this,s,l,g)}),removeLineWidget:function(s){s.clear()},markText:function(s,l,g){return Rn(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),Rn(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 L=0;L<b.length;L++){var R=b[L];!(R.to!=null&&m==s.line&&s.ch>=R.to||R.from==null&&m!=s.line||R.from!=null&&m==l.line&&R.from>=l.ch)&&(!g||g(R.marker))&&d.push(R.marker.parent||R.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 Gt(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 Gt(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}],Hp(d,ju(this)),d},unlinkDoc:function(s){if(s instanceof Lr&&(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),Zp(ju(this));break}}if(s.history==this.history){var d=[s.id];Si(s,function(m){return d.push(m.id)},!0),s.history=new An(null),s.history.done=In(this.history.done,d),s.history.undone=In(this.history.undone,d)}},iterLinkedDocs:function(s){Si(this,s)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(s){return this.lineSep?s.split(this.lineSep):tn(s)},lineSeparator:function(){return this.lineSep||`
|
|
11
|
+
`},setDirection:rt(function(s){s!="rtl"&&(s="ltr"),s!=this.direction&&(this.direction=s,this.iter(function(l){return l.order=null}),this.cm&&ja(this.cm))})}),Gt.prototype.eachLine=Gt.prototype.iter;var zu=0;function Yp(s){var l=this;if(qu(l),!(dr(l,s)||_i(l.display,s))){ut(s),G&&(zu=+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,L=function(){++b==m&&et(l,function(){g=Ye(l.doc,g);var K={from:g,to:g,text:l.doc.splitLines(I.filter(function(oe){return oe!=null}).join(l.doc.lineSeparator())),origin:"paste"};Sn(l.doc,K),Vu(l.doc,Ti(Ye(l.doc,g),Ye(l.doc,Li(K))))})()},R=function(K,oe){if(l.options.allowDropFileTypes&&hr(l.options.allowDropFileTypes,K.type)==-1){L();return}var fe=new FileReader;fe.onerror=function(){return L()},fe.onload=function(){var he=fe.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(he)){L();return}I[oe]=he,L()},fe.readAsText(K)},O=0;O<d.length;O++)R(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 _=s.dataTransfer.getData("Text");if(_){var Q;if(l.state.draggingText&&!l.state.draggingText.copy&&(Q=l.listSelections()),Nn(l.doc,Ti(g,g)),Q)for(var re=0;re<Q.length;++re)yn(l.doc,"",Q[re].anchor,Q[re].head,"drag");l.replaceSelection(_,"around","paste"),l.display.input.focus()}}catch{}}}}function Xp(s,l){if(G&&(!s.state.draggingText||+new Date-zu<100)){Is(l);return}if(!(dr(s,l)||_i(s.display,l))&&(l.dataTransfer.setData("Text",s.getSelection()),l.dataTransfer.effectAllowed="copyMove",l.dataTransfer.setDragImage&&!k)){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 Jp(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(qp)},100))}),Ue(window,"blur",function(){return Ku(mn)})}function qp(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"},uo=0;uo<10;uo++)Es[uo+48]=Es[uo+96]=String(uo);for(var la=65;la<=90;la++)Es[la]=String.fromCharCode(la);for(var fo=1;fo<=12;fo++)Es[fo+111]=Es[fo+63235]="F"+fo;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=z?Hi.macDefault:Hi.pcDefault;function Kp(s){var l=s.split(/-(?!$)/);s=l[l.length-1];for(var g,d,m,I,b=0;b<l.length-1;b++){var L=l[b];if(/^(cmd|meta|m)$/i.test(L))I=!0;else if(/^a(lt)?$/i.test(L))g=!0;else if(/^(c|ctrl|control)$/i.test(L))d=!0;else if(/^s(hift)?$/i.test(L))m=!0;else throw new Error("Unrecognized modifier name: "+L)}return g&&(s="Alt-"+s),d&&(s="Ctrl-"+s),I&&(s="Cmd-"+s),m&&(s="Shift-"+s),s}function ec(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=Rt(g.split(" "),Kp),I=0;I<m.length;I++){var b=void 0,L=void 0;I==m.length-1?(L=m.join(" "),b=d):(L=m.slice(0,I+1).join(" "),b="...");var R=l[L];if(!R)l[L]=b;else if(R!=b)throw new Error("Inconsistent bindings for "+L)}delete s[g]}for(var O in l)s[O]=l[O];return s}function wn(s,l,g,d){l=ua(l);var m=l.call?l.call(s,d):l[s];if(m===!1)return"nothing";if(m==="...")return"multi";if(m!=null&&g(m))return"handled";if(l.fallthrough){if(Object.prototype.toString.call(l.fallthrough)!="[object Array]")return wn(s,l.fallthrough,g,d);for(var I=0;I<l.fallthrough.length;I++){var b=wn(s,l.fallthrough[I],g,d);if(b)return b}}}function rf(s){var l=typeof s=="string"?s:Es[s.keyCode];return l=="Ctrl"||l=="Alt"||l=="Shift"||l=="Mod"}function tf(s,l,g){var d=s;return l.altKey&&d!="Alt"&&(s="Alt-"+s),(Ee?l.metaKey:l.ctrlKey)&&d!="Ctrl"&&(s="Ctrl-"+s),(Ee?l.ctrlKey:l.metaKey)&&d!="Mod"&&(s="Cmd-"+s),!g&&l.shiftKey&&d!="Shift"&&(s="Shift-"+s),s}function sf(s,l){if(J&&s.keyCode==34&&s.char)return!1;var g=Es[s.keyCode];return g==null||s.altGraphKey?!1:(s.keyCode==3&&s.code&&(g=s.code),tf(g,s,l))}function ua(s){return typeof s=="string"?Hi[s]:s}function On(s,l){for(var g=s.doc.sel.ranges,d=[],m=0;m<g.length;m++){for(var I=l(g[m]);d.length&&Qe(I.from,Ie(d).to)<=0;){var b=d.pop();if(Qe(b.from,I.from)<0){I.from=b.from;break}}d.push(I)}kt(s,function(){for(var L=d.length-1;L>=0;L--)yn(s.doc,"",d[L].from,d[L].to,"+delete");xn(s)})}function Ka(s,l,g){var d=Ir(s.text,l+g,g);return d<0||d>s.text.length?null:d}function el(s,l,g){var d=Ka(s,l.ch,g);return d==null?null:new ce(l.line,d,g<0?"after":"before")}function rl(s,l,g,d,m){if(s){l.doc.direction=="rtl"&&(m=-m);var I=br(g,l.doc.direction);if(I){var b=m<0?Ie(I):I[0],L=m<0==(b.level==1),R=L?"after":"before",O;if(b.level>0||l.doc.direction=="rtl"){var _=dn(l,g);O=m<0?g.text.length-1:0;var Q=Ni(l,_,O).top;O=ri(function(re){return Ni(l,_,re).top==Q},m<0==(b.level==1)?b.from:b.to-1,O),R=="before"&&(O=Ka(g,O,1))}else O=m<0?b.to:b.from;return new ce(d,O,R)}}return new ce(d,m<0?g.text.length:0,m<0?"before":"after")}function rc(s,l,g,d){var m=br(l,s.doc.direction);if(!m)return el(l,g,d);g.ch>=l.text.length?(g.ch=l.text.length,g.sticky="before"):g.ch<=0&&(g.ch=0,g.sticky="after");var I=At(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 L=function(me,Ce){return Ka(l,me instanceof ce?me.ch:me,Ce)},R,O=function(me){return s.options.lineWrapping?(R=R||dn(s,l),Cu(s,l,R,me)):{begin:0,end:l.text.length}},_=O(g.sticky=="before"?L(g,-1):g.ch);if(s.doc.direction=="rtl"||b.level==1){var Q=b.level==1==d<0,re=L(g,Q?1:-1);if(re!=null&&(Q?re<=b.to&&re<=_.end:re>=b.from&&re>=_.begin)){var K=Q?"before":"after";return new ce(g.line,re,K)}}var oe=function(me,Ce,xe){for(var be=function(mr,tt){return tt?new ce(g.line,L(mr,1),"before"):new ce(g.line,mr,"after")};me>=0&&me<m.length;me+=Ce){var Pe=m[me],Fe=Ce>0==(Pe.level!=1),qe=Fe?xe.begin:L(xe.end,-1);if(Pe.from<=qe&&qe<Pe.to||(qe=Fe?Pe.from:L(Pe.to,-1),xe.begin<=qe&&qe<xe.end))return be(qe,Fe)}},fe=oe(I+d,d,_);if(fe)return fe;var he=d>0?_.end:L(_.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 po={selectAll:Wu,singleSelection:function(s){return s.setSelection(s.getCursor("anchor"),s.getCursor("head"),pe)},killLine:function(s){return On(s,function(l){if(l.empty()){var g=Ae(s.doc,l.head.line).text.length;return l.head.ch==g&&l.head.line<s.lastLine()?{from:l.head,to:ce(l.head.line+1,0)}:{from:l.head,to:ce(l.head.line,g)}}else return{from:l.from(),to:l.to()}})},deleteLine:function(s){return On(s,function(l){return{from:ce(l.from().line,0),to:Ye(s.doc,ce(l.to().line+1,0))}})},delLineLeft:function(s){return On(s,function(l){return{from:ce(l.from().line,0),to:l.from()}})},delWrappedLineLeft:function(s){return On(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:0,top:g},"div");return{from:d,to:l.from()}})},delWrappedLineRight:function(s){return On(s,function(l){var g=s.charCoords(l.head,"div").top+5,d=s.coordsChar({left:s.display.lineDiv.offsetWidth+100,top:g},"div");return{from:l.from(),to:d}})},undo:function(s){return s.undo()},redo:function(s){return s.redo()},undoSelection:function(s){return s.undoSelection()},redoSelection:function(s){return s.redoSelection()},goDocStart:function(s){return s.extendSelection(ce(s.firstLine(),0))},goDocEnd:function(s){return s.extendSelection(ce(s.lastLine()))},goLineStart:function(s){return s.extendSelectionsBy(function(l){return nf(s,l.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(s){return s.extendSelectionsBy(function(l){return of(s,l.head)},{origin:"+move",bias:1})},goLineEnd:function(s){return s.extendSelectionsBy(function(l){return tc(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 kt(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 kt(s,function(){for(var l=s.listSelections(),g=l.length-1;g>=0;g--)s.replaceRange(s.doc.lineSeparator(),l[g].anchor,l[g].head,"+input");l=s.listSelections();for(var d=0;d<l.length;d++)s.indentLine(l[d].from().line,null,!0);xn(s)})},openLine:function(s){return s.replaceSelection(`
|
|
12
|
+
`,"start")},toggleOverwrite:function(s){return s.toggleOverwrite()}};function nf(s,l){var g=Ae(s.doc,l),d=ai(g);return d!=g&&(l=He(d)),rl(!0,s,d,l,1)}function tc(s,l){var g=Ae(s.doc,l),d=zf(g);return d!=g&&(l=He(d)),rl(!0,s,g,l,-1)}function of(s,l){var g=nf(s,l.line),d=Ae(s.doc,g.line),m=br(d,s.doc.direction);if(!m||m[0].level==0){var I=Math.max(g.ch,d.text.search(/\S/)),b=l.line==g.line&&l.ch<=I&&l.ch;return ce(g.line,b?0:I,g.sticky)}return g}function fa(s,l,g){if(typeof l=="string"&&(l=po[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 ic(s,l,g){for(var d=0;d<s.state.keyMaps.length;d++){var m=wn(l,s.state.keyMaps[d],g,s);if(m)return m}return s.options.extraKeys&&wn(l,s.options.extraKeys,g,s)||wn(l,s.options.keyMap,g,s)}var sc=new Vr;function co(s,l,g,d){var m=s.state.keySeq;if(m){if(rf(l))return"handled";if(/\'$/.test(l)?s.state.keySeq=null:sc.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=ic(s,l,d);return m=="multi"&&(s.state.keySeq=l),m=="handled"&&Kr(s,"keyHandled",s,l,g),(m=="handled"||m=="multi")&&(ut(g),Wa(s)),!!m}function lf(s,l){var g=sf(l,!0);return g?l.shiftKey&&!s.state.keySeq?co(s,"Shift-"+g,l,function(d){return fa(s,d,!0)})||co(s,g,l,function(d){if(typeof d=="string"?/^go[A-Z]/.test(d):d.motion)return fa(s,d)}):co(s,g,l,function(d){return fa(s,d)}):!1}function nc(s,l,g){return co(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=Xr(yt(l)),!dr(l,s))){G&&P<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&&!Vn&&(z?s.metaKey:s.ctrlKey)&&l.replaceSelection("",null,"cut")),e&&!z&&!d&&g==46&&s.shiftKey&&!s.ctrlKey&&document.execCommand&&document.execCommand("cut"),g==18&&!/\bCodeMirror-crosshair\b/.test(l.display.lineDiv.className)&&oc(l)}}function oc(s){var l=s.display.lineDiv;Je(l,"CodeMirror-crosshair");function g(d){(d.keyCode==18||!d.altKey)&&(_e(l,"CodeMirror-crosshair"),_r(document,"keyup",g),_r(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())&&!(_i(l.display,s)||dr(l,s)||s.ctrlKey&&!s.altKey||z&&s.metaKey)){var g=s.keyCode,d=s.charCode;if(J&&g==tl){tl=null,ut(s);return}if(!(J&&(!s.which||s.which<10)&&lf(l,s))){var m=String.fromCharCode(d??g);m!="\b"&&(nc(l,s,m)||l.display.input.onKeyPress(s))}}}var ac=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+ac>s&&Qe(l,this.pos)==0&&g==this.button};var ho,go;function lc(s,l){var g=+new Date;return go&&go.compare(g,s,l)?(ho=go=null,"triple"):ho&&ho.compare(g,s,l)?(go=new il(g,s,l),ho=null,"double"):(ho=new il(g,s,l),go=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,_i(g,s)){H||(g.scroller.draggable=!1,setTimeout(function(){return g.scroller.draggable=!0},100));return}if(!sl(l,s)){var d=li(l,s),m=en(s),I=d?lc(d,m):"single";ot(l).focus(),m==1&&l.state.selectingText&&l.state.selectingText(s),!(d&&uc(l,m,d,I,s))&&(m==1?d?pc(l,d,I,s):Ks(s)==g.scroller&&ut(s):m==2?(d&&na(l.doc,d),setTimeout(function(){return g.input.focus()},20)):m==3&&($e?l.display.input.onContextMenu(s):ka(l)))}}}function uc(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,co(s,tf(I,m),m,function(b){if(typeof b=="string"&&(b=po[b]),!b)return!1;var L=!1;try{s.isReadOnly()&&(s.state.suppressEdits=!0),L=b(s,g)!=Oe}finally{s.state.suppressEdits=!1}return L})}function fc(s,l,g){var d=s.getOption("configureMouse"),m=d?d(s,l,g):{};if(m.unit==null){var I=te?g.shiftKey&&g.metaKey:g.altKey;m.unit=I?"rectangle":l=="single"?"char":l=="double"?"word":"line"}return(m.extend==null||s.doc.extend)&&(m.extend=s.doc.extend||g.shiftKey),m.addNew==null&&(m.addNew=z?g.metaKey:g.ctrlKey),m.moveOnDrag==null&&(m.moveOnDrag=!(z?g.altKey:g.ctrlKey)),m}function pc(s,l,g,d){G?setTimeout(je(Au,s),0):s.curOp.focus=Xr(yt(s));var m=fc(s,g,d),I=s.doc.sel,b;s.options.dragDrop&&Go&&!s.isReadOnly()&&g=="single"&&(b=I.contains(l))>-1&&(Qe((b=I.ranges[b]).from(),l)<0||l.xRel>0)&&(Qe(b.to(),l)>0||l.xRel<0)?cc(s,d,l,m):hc(s,d,l,m)}function cc(s,l,g,d){var m=s.display,I=!1,b=et(s,function(O){H&&(m.scroller.draggable=!1),s.state.draggingText=!1,s.state.delayingBlurEvent&&(s.hasFocus()?s.state.delayingBlurEvent=!1:ka(s)),_r(m.wrapper.ownerDocument,"mouseup",b),_r(m.wrapper.ownerDocument,"mousemove",L),_r(m.scroller,"dragstart",R),_r(m.scroller,"drop",b),I||(ut(O),d.addNew||na(s.doc,g,null,null,d.extend),H&&!k||G&&P==9?setTimeout(function(){m.wrapper.ownerDocument.body.focus({preventScroll:!0}),m.input.focus()},20):m.input.focus())}),L=function(O){I=I||Math.abs(l.clientX-O.clientX)+Math.abs(l.clientY-O.clientY)>=10},R=function(){return I=!0};H&&(m.scroller.draggable=!0),s.state.draggingText=b,b.copy=!d.moveOnDrag,Ue(m.wrapper.ownerDocument,"mouseup",b),Ue(m.wrapper.ownerDocument,"mousemove",L),Ue(m.scroller,"dragstart",R),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 hc(s,l,g,d){G&&ka(s);var m=s.display,I=s.doc;ut(l);var b,L,R=I.sel,O=R.ranges;if(d.addNew&&!d.extend?(L=I.sel.contains(g),L>-1?b=O[L]:b=new lr(g,g)):(b=I.sel.primary(),L=I.sel.primIndex),d.unit=="rectangle")d.addNew||(b=new lr(g,g)),g=li(s,l,!0,!0),L=-1;else{var _=hf(s,g,d.unit);d.extend?b=za(b,_.anchor,_.head,d.extend):b=_}d.addNew?L==-1?(L=O.length,gt(I,Ve(s,O.concat([b]),L),{scroll:!1,origin:"*mouse"})):O.length>1&&O[L].empty()&&d.unit=="char"&&!d.extend?(gt(I,Ve(s,O.slice(0,L).concat(O.slice(L+1)),0),{scroll:!1,origin:"*mouse"}),R=I.sel):qa(I,L,b,Er):(L=0,gt(I,new Tr([b],0),Er),R=I.sel);var Q=g;function re(xe){if(Qe(Q,xe)!=0)if(Q=xe,d.unit=="rectangle"){for(var be=[],Pe=s.options.tabSize,Fe=Ar(Ae(I,g.line).text,g.ch,Pe),qe=Ar(Ae(I,xe.line).text,xe.ch,Pe),mr=Math.min(Fe,qe),tt=Math.max(Fe,qe),yr=Math.min(g.line,xe.line),$t=Math.min(s.lastLine(),Math.max(g.line,xe.line));yr<=$t;yr++){var Ft=Ae(I,yr).text,$r=Se(Ft,mr,Pe);mr==tt?be.push(new lr(ce(yr,$r),ce(yr,$r))):Ft.length>$r&&be.push(new lr(ce(yr,$r),ce(yr,Se(Ft,tt,Pe))))}be.length||be.push(new lr(g,g)),gt(I,Ve(s,R.ranges.slice(0,L).concat(be),L),{origin:"*mouse",scroll:!1}),s.scrollIntoView(xe)}else{var Dt=b,nt=hf(s,xe,d.unit),jr=Dt.anchor,Hr;Qe(nt.anchor,jr)>0?(Hr=nt.head,jr=Mo(Dt.from(),nt.anchor)):(Hr=nt.anchor,jr=Po(Dt.to(),nt.head));var Ur=R.ranges.slice(0);Ur[L]=dc(s,new lr(Ye(I,jr),Hr)),gt(I,Ve(s,Ur,L),Er)}}var K=m.wrapper.getBoundingClientRect(),oe=0;function fe(xe){var be=++oe,Pe=li(s,xe,!0,d.unit=="rectangle");if(Pe)if(Qe(Pe,Q)!=0){s.curOp.focus=Xr(yt(s)),re(Pe);var Fe=jo(m,I);(Pe.line>=Fe.to||Pe.line<Fe.from)&&setTimeout(et(s,function(){oe==be&&fe(xe)}),150)}else{var qe=xe.clientY<K.top?-20:xe.clientY>K.bottom?20:0;qe&&setTimeout(et(s,function(){oe==be&&(m.scroller.scrollTop+=qe,fe(xe))}),50)}}function he(xe){s.state.selectingText=!1,oe=1/0,xe&&(ut(xe),m.input.focus()),_r(m.wrapper.ownerDocument,"mousemove",me),_r(m.wrapper.ownerDocument,"mouseup",Ce),I.history.lastSelOrigin=null}var me=et(s,function(xe){xe.buttons===0||!en(xe)?he(xe):fe(xe)}),Ce=et(s,he);s.state.selectingText=Ce,Ue(m.wrapper.ownerDocument,"mousemove",me),Ue(m.wrapper.ownerDocument,"mouseup",Ce)}function dc(s,l){var g=l.anchor,d=l.head,m=Ae(s.doc,g.line);if(Qe(g,d)==0&&g.sticky==d.sticky)return l;var I=br(m);if(!I)return l;var b=At(I,g.ch,g.sticky),L=I[b];if(L.from!=g.ch&&L.to!=g.ch)return l;var R=b+(L.from==g.ch==(L.level!=1)?0:1);if(R==0||R==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 _=At(I,d.ch,d.sticky),Q=_-b||(d.ch-g.ch)*(L.level==1?-1:1);_==R-1||_==R?O=Q<0:O=Q>0}var re=I[R+(O?-1:0)],K=O==(re.level==1),oe=K?re.from:re.to,fe=K?"after":"before";return g.ch==oe&&g.sticky==fe?l:new lr(new ce(g.line,oe,fe),d)}function df(s,l,g,d){var m,I;if(l.touches)m=l.touches[0].clientX,I=l.touches[0].clientY;else try{m=l.clientX,I=l.clientY}catch{return!1}if(m>=Math.floor(s.display.gutters.getBoundingClientRect().right))return!1;d&&ut(l);var b=s.display,L=b.lineDiv.getBoundingClientRect();if(I>L.bottom||!tr(s,g))return Ei(l);I-=L.top-b.viewOffset;for(var R=0;R<s.display.gutterSpecs.length;++R){var O=b.gutters.childNodes[R];if(O&&O.getBoundingClientRect().right>=m){var _=mi(s.doc,I),Q=s.display.gutterSpecs[R];return ar(s,g,s,_,Q.className,l),Ei(l)}}}function sl(s,l){return df(s,l,"gutterClick",!0)}function gf(s,l){_i(s.display,l)||gc(s,l)||dr(s,l,"contextmenu")||$e||s.display.input.onContextMenu(l)}function gc(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-"),Rs(s)}var Un={toString:function(){return"CodeMirror.Init"}},vf={},pa={};function Ec(s){var l=s.optionHandlers;function g(d,m,I,b){s.defaults[d]=m,I&&(l[d]=b?function(L,R,O){O!=Un&&I(L,R,O)}:I)}s.defineOption=g,s.Init=Un,g("value","",function(d,m){return d.setValue(m)},!0),g("mode",null,function(d,m){d.doc.modeOption=m,ui(d)},!0),g("indentUnit",2,ui,!0),g("indentWithTabs",!1),g("smartIndent",!0),g("tabSize",4,function(d){Vs(d),Rs(d),dt(d)},!0),g("lineSeparator",null,function(d,m){if(d.doc.lineSep=m,!!m){var I=[],b=d.doc.first;d.doc.iter(function(R){for(var O=0;;){var _=R.text.indexOf(m,O);if(_==-1)break;O=_+m.length,I.push(ce(b,_))}b++});for(var L=I.length-1;L>=0;L--)yn(d.doc,m,I[L],ce(I[L].line,I[L].ch+m.length))}}),g("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(d,m,I){d.state.specialChars=new RegExp(m.source+(m.test(" ")?"":"| "),"g"),I!=Un&&d.refresh()}),g("specialCharPlaceholder",tp,function(d){return d.refresh()},!0),g("electricChars",!0),g("inputStyle",Y?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),g("spellcheck",!1,function(d,m){return d.getInputField().spellcheck=m},!0),g("autocorrect",!1,function(d,m){return d.getInputField().autocorrect=m},!0),g("autocapitalize",!1,function(d,m){return d.getInputField().autocapitalize=m},!0),g("rtlMoveVisually",!ie),g("wholeLineUpdateBefore",!0),g("theme","default",function(d){Ef(d),eo(d)},!0),g("keyMap","default",function(d,m,I){var b=ua(m),L=I!=Un&&ua(I);L&&L.detach&&L.detach(d,b),b.attach&&b.attach(d,L||null)}),g("extraKeys",null),g("configureMouse",null),g("lineWrapping",!1,mc,!0),g("gutters",[],function(d,m){d.display.gutterSpecs=Ja(m,d.options.lineNumbers),eo(d)},!0),g("fixedGutter",!0,function(d,m){d.display.gutters.style.left=m?ht(d.display)+"px":"0",d.refresh()},!0),g("coverGutterNextToScrollbar",!1,function(d){return Cn(d)},!0),g("scrollbarStyle","native",function(d){Su(d),Cn(d),d.display.scrollbars.setScrollTop(d.doc.scrollTop),d.display.scrollbars.setScrollLeft(d.doc.scrollLeft)},!0),g("lineNumbers",!1,function(d,m){d.display.gutterSpecs=Ja(d.options.gutters,m),eo(d)},!0),g("firstLineNumber",1,eo,!0),g("lineNumberFormatter",function(d){return d},eo,!0),g("showCursorWhenSelecting",!1,Gs,!0),g("resetSelectionOnContextMenu",!0),g("lineWiseCopyCut",!0),g("pasteLinesPerSelection",!0),g("selectionsMayTouch",!1),g("readOnly",!1,function(d,m){m=="nocursor"&&(mn(d),d.display.input.blur()),d.display.input.readOnlyChanged(m)}),g("screenReaderLabel",null,function(d,m){m=m===""?null:m,d.display.input.screenReaderLabelChanged(m)}),g("disableInput",!1,function(d,m){m||d.display.input.reset()},!0),g("dragDrop",!0,vc),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,Vs,!0),g("addModeClass",!1,Vs,!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,Vs,!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 vc(s,l,g){var d=g&&g!=Un;if(!l!=!d){var m=s.display.dragFunctions,I=l?Ue:_r;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 mc(s){s.options.lineWrapping?(Je(s.display.wrapper,"CodeMirror-wrap"),s.display.sizer.style.minWidth="",s.display.sizerWidth=null):(_e(s.display.wrapper,"CodeMirror-wrap"),Da(s)),Us(s),dt(s),Rs(s),setTimeout(function(){return Cn(s)},100)}function Lr(s,l){var g=this;if(!(this instanceof Lr))return new Lr(s,l);this.options=l=l?Jr(l):{},Jr(vf,l,!1);var d=l.value;typeof d=="string"?d=new Gt(d,l.mode,null,l.lineSeparator,l.direction):l.mode&&(d.modeOption=l.mode),this.doc=d;var m=new Lr.inputStyles[l.inputStyle](this),I=this.display=new Up(s,d,m,l);I.wrapper.CodeMirror=this,Ef(this),l.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Su(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 Vr,keySeq:null,specialChars:null},l.autofocus&&!Y&&I.input.focus(),G&&P<11&&setTimeout(function(){return g.display.input.reset(!0)},20),xc(this),jp(),Ps(this),this.curOp.forceUpdate=!0,ta(this,d),l.autofocus&&!Y||this.hasFocus()?setTimeout(function(){g.hasFocus()&&!g.state.focused&&$a(g)},20):mn(this);for(var b in pa)pa.hasOwnProperty(b)&&pa[b](this,l[b],Un);wu(this),l.finishInit&&l.finishInit(this);for(var L=0;L<nl.length;++L)nl[L](this);Ms(this),H&&l.lineWrapping&&getComputedStyle(I.lineDiv).textRendering=="optimizelegibility"&&(I.lineDiv.style.textRendering="auto")}Lr.defaults=vf,Lr.optionHandlers=pa;function xc(s){var l=s.display;Ue(l.scroller,"mousedown",et(s,cf)),G&&P<11?Ue(l.scroller,"dblclick",et(s,function(R){if(!dr(s,R)){var O=li(s,R);if(!(!O||sl(s,R)||_i(s.display,R))){ut(R);var _=s.findWordAt(O);na(s.doc,_.anchor,_.head)}}})):Ue(l.scroller,"dblclick",function(R){return dr(s,R)||ut(R)}),Ue(l.scroller,"contextmenu",function(R){return gf(s,R)}),Ue(l.input.getField(),"contextmenu",function(R){l.scroller.contains(R.target)||gf(s,R)});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(R){if(R.touches.length!=1)return!1;var O=R.touches[0];return O.radiusX<=1&&O.radiusY<=1}function b(R,O){if(O.left==null)return!0;var _=O.left-R.left,Q=O.top-R.top;return _*_+Q*Q>20*20}Ue(l.scroller,"touchstart",function(R){if(!dr(s,R)&&!I(R)&&!sl(s,R)){l.input.ensurePolled(),clearTimeout(g);var O=+new Date;l.activeTouch={start:O,moved:!1,prev:O-d.end<=300?d:null},R.touches.length==1&&(l.activeTouch.left=R.touches[0].pageX,l.activeTouch.top=R.touches[0].pageY)}}),Ue(l.scroller,"touchmove",function(){l.activeTouch&&(l.activeTouch.moved=!0)}),Ue(l.scroller,"touchend",function(R){var O=l.activeTouch;if(O&&!_i(l,R)&&O.left!=null&&!O.moved&&new Date-O.start<300){var _=s.coordsChar(l.activeTouch,"page"),Q;!O.prev||b(O,O.prev)?Q=new lr(_,_):!O.prev.prev||b(O,O.prev.prev)?Q=s.findWordAt(_):Q=new lr(ce(_.line,0),Ye(s.doc,ce(_.line+1,0))),s.setSelection(Q.anchor,Q.head),s.focus(),ut(R)}m()}),Ue(l.scroller,"touchcancel",m),Ue(l.scroller,"scroll",function(){l.scroller.clientHeight&&(Jn(s,l.scroller.scrollTop),Ds(s,l.scroller.scrollLeft,!0),ar(s,"scroll",s))}),Ue(l.scroller,"mousewheel",function(R){return ea(s,R)}),Ue(l.scroller,"DOMMouseScroll",function(R){return ea(s,R)}),Ue(l.wrapper,"scroll",function(){return l.wrapper.scrollTop=l.wrapper.scrollLeft=0}),l.dragFunctions={enter:function(R){dr(s,R)||Is(R)},over:function(R){dr(s,R)||(Jp(s,R),Is(R))},start:function(R){return Xp(s,R)},drop:et(s,Yp),leave:function(R){dr(s,R)||qu(s)}};var L=l.input.getField();Ue(L,"keyup",function(R){return ff.call(s,R)}),Ue(L,"keydown",et(s,uf)),Ue(L,"keypress",et(s,pf)),Ue(L,"focus",function(R){return $a(s,R)}),Ue(L,"blur",function(R){return mn(s,R)})}var nl=[];Lr.defineInitHook=function(s){return nl.push(s)};function Eo(s,l,g,d){var m=s.doc,I;g==null&&(g="add"),g=="smart"&&(m.mode.indent?I=_n(s,l).state:g="prev");var b=s.options.tabSize,L=Ae(m,l),R=Ar(L.text,null,b);L.stateAfter&&(L.stateAfter=null);var O=L.text.match(/^\s*/)[0],_;if(!d&&!/\S/.test(L.text))_=0,g="not";else if(g=="smart"&&(_=m.mode.indent(I,L.text.slice(O.length),L.text),_==Oe||_>150)){if(!d)return;g="prev"}g=="prev"?l>m.first?_=Ar(Ae(m,l-1).text,null,b):_=0:g=="add"?_=R+s.options.indentUnit:g=="subtract"?_=R-s.options.indentUnit:typeof g=="number"&&(_=R+g),_=Math.max(0,_);var Q="",re=0;if(s.options.indentWithTabs)for(var K=Math.floor(_/b);K;--K)re+=b,Q+=" ";if(re<_&&(Q+=ei(_-re)),Q!=O)return yn(m,Q,ce(l,0),ce(l,O.length),"+input"),L.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,L=m=="paste"||s.state.pasteIncoming>b,R=tn(l),O=null;if(L&&d.ranges.length>1)if(fi&&fi.text.join(`
|
|
13
|
+
`)==l){if(d.ranges.length%fi.text.length==0){O=[];for(var _=0;_<fi.text.length;_++)O.push(I.splitLines(fi.text[_]))}}else R.length==d.ranges.length&&s.options.pasteLinesPerSelection&&(O=Rt(R,function(me){return[me]}));for(var Q=s.curOp.updateInput,re=d.ranges.length-1;re>=0;re--){var K=d.ranges[re],oe=K.from(),fe=K.to();K.empty()&&(g&&g>0?oe=ce(oe.line,oe.ch-g):s.state.overwrite&&!L?fe=ce(fe.line,Math.min(Ae(I,fe.line).text.length,fe.ch+Ie(R).length)):L&&fi&&fi.lineWise&&fi.text.join(`
|
|
14
|
+
`)==R.join(`
|
|
15
|
+
`)&&(oe=fe=ce(oe.line,0)));var he={from:oe,to:fe,text:O?O[re%O.length]:R,origin:m||(L?"paste":s.state.cutIncoming>b?"cut":"+input")};Sn(s.doc,he),Kr(s,"inputRead",s,he)}l&&!L&&xf(s,l),xn(s),s.curOp.updateInput<2&&(s.curOp.updateInput=Q),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()&&kt(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 L=0;L<I.electricChars.length;L++)if(l.indexOf(I.electricChars.charAt(L))>-1){b=Eo(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=Eo(s,m.head.line,"smart"));b&&Kr(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 H?s.style.width="1000px":s.setAttribute("wrap","off"),D&&(s.style.border="1px solid black"),l}function Cc(s){var l=s.optionHandlers,g=s.helpers={};s.prototype={constructor:s,focus:function(){ot(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)&&et(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:It(function(d,m){var I=d.token?d:s.getMode(this.options,d);if(I.startState)throw new Error("Overlays may not be stateful.");at(this.state.overlays,{mode:I,modeSpec:d,opaque:m&&m.opaque,priority:m&&m.priority||0},function(b){return b.priority}),this.state.modeGen++,dt(this)}),removeOverlay:It(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++,dt(this);return}}}),indentLine:It(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)&&Eo(this,d,m,I)}),indentSelection:It(function(d){for(var m=this.doc.sel.ranges,I=-1,b=0;b<m.length;b++){var L=m[b];if(L.empty())L.head.line>I&&(Eo(this,L.head.line,d,!0),I=L.head.line,b==this.doc.sel.primIndex&&xn(this));else{var R=L.from(),O=L.to(),_=Math.max(I,R.line);I=Math.min(this.lastLine(),O.line-(O.ch?0:1))+1;for(var Q=_;Q<I;++Q)Eo(this,Q,d);var re=this.doc.sel.ranges;R.ch==0&&m.length==re.length&&re[b].from().ch>0&&qa(this.doc,b,new lr(R,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,L=d.ch,R;if(L==0)R=m[2];else for(;;){var O=I+b>>1;if((O?m[O*2-1]:0)>=L)b=O;else if(m[O*2+1]<L)I=O+1;else{R=m[O*2+2];break}}var _=R?R.indexOf("overlay "):-1;return _<0?R:_==0?null:R.slice(0,_-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],L=this.getModeAt(d);if(typeof L[m]=="string")b[L[m]]&&I.push(b[L[m]]);else if(L[m])for(var R=0;R<L[m].length;R++){var O=b[L[m][R]];O&&I.push(O)}else L.helperType&&b[L.helperType]?I.push(b[L.helperType]):b[L.name]&&I.push(b[L.name]);for(var _=0;_<b._global.length;_++){var Q=b._global[_];Q.pred(L,this)&&hr(I,Q.val)==-1&&I.push(Q.val)}return I},getStateAfter:function(d,m){var I=this.doc;return d=jl(I,d??I.first+I.size-1),_n(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(),Xe(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"),_a(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,L;if(typeof d=="number"){var R=this.doc.first+this.doc.size-1;d<this.doc.first?d=this.doc.first:d>R&&(d=R,b=!0),L=Ae(this.doc,d)}else L=d;return En(this,L,{top:0,left:0},m||"page",I||b).top+(b?this.doc.height-Mi(L):0)},defaultTextHeight:function(){return Br(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,L){var R=this.display;d=Xe(this,Ye(this.doc,d));var O=d.bottom,_=d.left;if(m.style.position="absolute",m.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(m),R.sizer.appendChild(m),b=="over")O=d.top;else if(b=="above"||b=="near"){var Q=Math.max(R.wrapper.clientHeight,this.doc.height),re=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(b=="above"||d.bottom+m.offsetHeight>Q)&&d.top>m.offsetHeight?O=d.top-m.offsetHeight:d.bottom+m.offsetHeight<=Q&&(O=d.bottom),_+m.offsetWidth>re&&(_=re-m.offsetWidth)}m.style.top=O+"px",m.style.left=m.style.right="",L=="right"?(_=R.sizer.clientWidth-m.offsetWidth,m.style.right="0px"):(L=="left"?_=0:L=="middle"&&(_=(R.sizer.clientWidth-m.offsetWidth)/2),m.style.left=_+"px"),I&&mp(this,{left:_,top:O,right:_+m.offsetWidth,bottom:O+m.offsetHeight})},triggerOnKeyDown:It(uf),triggerOnKeyPress:It(pf),triggerOnKeyUp:ff,triggerOnMouseDown:It(cf),execCommand:function(d){if(po.hasOwnProperty(d))return po[d].call(null,this)},triggerElectric:It(function(d){xf(this,d)}),findPosH:function(d,m,I,b){var L=1;m<0&&(L=-1,m=-m);for(var R=Ye(this.doc,d),O=0;O<m&&(R=ll(this.doc,R,L,I,b),!R.hitSide);++O);return R},moveH:It(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:It(function(d,m){var I=this.doc.sel,b=this.doc;I.somethingSelected()?b.replaceSelection("",null,"+delete"):On(this,function(L){var R=ll(b,L.head,d,m,!1);return d<0?{from:R,to:L.head}:{from:L.head,to:R}})}),findPosV:function(d,m,I,b){var L=1,R=b;m<0&&(L=-1,m=-m);for(var O=Ye(this.doc,d),_=0;_<m;++_){var Q=Xe(this,O,"div");if(R==null?R=Q.left:Q.left=R,O=If(this,Q,L,I),O.hitSide)break}return O},moveV:It(function(d,m){var I=this,b=this.doc,L=[],R=!this.display.shift&&!b.extend&&b.sel.somethingSelected();if(b.extendSelectionsBy(function(_){if(R)return d<0?_.from():_.to();var Q=Xe(I,_.head,"div");_.goalColumn!=null&&(Q.left=_.goalColumn),L.push(Q.left);var re=If(I,Q,d,m);return m=="page"&&_==b.sel.primary()&&Za(I,Yo(I,re,"div").top-Q.top),re},fr),L.length)for(var O=0;O<b.sel.ranges.length;O++)b.sel.ranges[O].goalColumn=L[O]}),findWordAt:function(d){var m=this.doc,I=Ae(m,d.line).text,b=d.ch,L=d.ch;if(I){var R=this.getHelper(d,"wordChars");(d.sticky=="before"||L==I.length)&&b?--b:++L;for(var O=I.charAt(b),_=ye(O,R)?function(Q){return ye(Q,R)}:/\s/.test(O)?function(Q){return/\s/.test(Q)}:function(Q){return!/\s/.test(Q)&&!ye(Q)};b>0&&_(I.charAt(b-1));)--b;for(;L<I.length&&_(I.charAt(L));)++L}return new lr(ce(d.line,b),ce(d.line,L))},toggleOverwrite:function(d){d!=null&&d==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Je(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),ar(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Xr(yt(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:It(function(d,m){Xn(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:Pa(this),clientWidth:ys(this)}},scrollIntoView:It(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?xp(this,d):Nu(this,d.from,d.to,d.margin)}),setSize:It(function(d,m){var I=this,b=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};d!=null&&(this.display.wrapper.style.width=b(d)),m!=null&&(this.display.wrapper.style.height=b(m)),this.options.lineWrapping&&Qo(this);var L=this.display.viewFrom;this.doc.iter(L,this.display.viewTo,function(R){if(R.widgets){for(var O=0;O<R.widgets.length;O++)if(R.widgets[O].noHScroll){Wt(I,L,"widget");break}}++L}),this.curOp.forceUpdate=!0,ar(this,"refresh",this)}),operation:function(d){return kt(this,d)},startOperation:function(){return Ps(this)},endOperation:function(){return Ms(this)},refresh:It(function(){var d=this.display.cachedTextHeight;dt(this),this.curOp.forceUpdate=!0,Rs(this),Xn(this,this.doc.scrollLeft,this.doc.scrollTop),Kn(this.display),(d==null||Math.abs(d-Br(this.display))>.5||this.options.lineWrapping)&&Us(this),ar(this,"refresh",this)}),swapDoc:It(function(d){var m=this.doc;return m.cm=null,this.state.selectingText&&this.state.selectingText(),ta(this,d),Rs(this),this.display.input.reset(),Xn(this,d.scrollLeft,d.scrollTop),this.curOp.forceScroll=!0,Kr(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,L=Ae(s,l.line),R=m&&s.direction=="rtl"?-g:g;function O(){var Ce=l.line+R;return Ce<s.first||Ce>=s.first+s.size?!1:(l=new ce(Ce,l.ch,l.sticky),L=Ae(s,Ce))}function _(Ce){var xe;if(d=="codepoint"){var be=L.text.charCodeAt(l.ch+(g>0?0:-1));if(isNaN(be))xe=null;else{var Pe=g>0?be>=55296&&be<56320:be>=56320&&be<57343;xe=new ce(l.line,Math.max(0,Math.min(L.text.length,l.ch+g*(Pe?2:1))),-g)}}else m?xe=rc(s.cm,L,l,g):xe=el(L,l,g);if(xe==null)if(!Ce&&O())l=rl(m,s.cm,L,l.line,R);else return!1;else l=xe;return!0}if(d=="char"||d=="codepoint")_();else if(d=="column")_(!0);else if(d=="word"||d=="group")for(var Q=null,re=d=="group",K=s.cm&&s.cm.getHelper(l,"wordChars"),oe=!0;!(g<0&&!_(!oe));oe=!1){var fe=L.text.charAt(l.ch)||`
|
|
16
|
+
`,he=ye(fe,K)?"w":re&&fe==`
|
|
17
|
+
`?"n":!re||/\s/.test(fe)?null:"p";if(re&&!oe&&!he&&(he="s"),Q&&Q!=he){g<0&&(g=1,_(),l.sticky="after");break}if(he&&(Q=he),g>0&&!_(!oe))break}var me=oa(s,l,I,b,!0);return Sa(I,me)&&(me.hitSide=!0),me}function If(s,l,g,d){var m=s.doc,I=l.left,b;if(d=="page"){var L=Math.min(s.display.wrapper.clientHeight,ot(s).innerHeight||m(s).documentElement.clientHeight),R=Math.max(L-.5*Br(s.display),3);b=(g>0?l.bottom:l.top)+g*R}else d=="line"&&(b=g>0?l.bottom+3:l.top-3);for(var O;O=_a(s,I,b),!!O.outside;){if(g<0?b<=0:b>=m.height){O.hitSide=!0;break}b+=g*5}return O}var gr=function(s){this.cm=s,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Vr,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};gr.prototype.init=function(s){var l=this,g=this,d=g.cm,m=g.div=s.lineDiv;m.contentEditable=!0,al(m,d.options.spellcheck,d.options.autocorrect,d.options.autocapitalize);function I(L){for(var R=L.target;R;R=R.parentNode){if(R==m)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}Ue(m,"paste",function(L){!I(L)||dr(d,L)||mf(L,d)||P<=11&&setTimeout(et(d,function(){return l.updateFromDOM()}),20)}),Ue(m,"compositionstart",function(L){l.composing={data:L.data,done:!1}}),Ue(m,"compositionupdate",function(L){l.composing||(l.composing={data:L.data,done:!1})}),Ue(m,"compositionend",function(L){l.composing&&(L.data!=l.composing.data&&l.readFromDOMSoon(),l.composing.done=!0)}),Ue(m,"touchstart",function(){return g.forceCompositionEnd()}),Ue(m,"input",function(){l.composing||l.readFromDOMSoon()});function b(L){if(!(!I(L)||dr(d,L))){if(d.somethingSelected())ca({lineWise:!1,text:d.getSelections()}),L.type=="cut"&&d.replaceSelection("",null,"cut");else if(d.options.lineWiseCopyCut){var R=Cf(d);ca({lineWise:!0,text:R.text}),L.type=="cut"&&d.operation(function(){d.setSelections(R.ranges,0,pe),d.replaceSelection("",null,"cut")})}else return;if(L.clipboardData){L.clipboardData.clearData();var O=fi.text.join(`
|
|
18
|
+
`);if(L.clipboardData.setData("Text",O),L.clipboardData.getData("Text")==O){L.preventDefault();return}}var _=Af(),Q=_.firstChild;al(Q),d.display.lineSpace.insertBefore(_,d.display.lineSpace.firstChild),Q.value=fi.text.join(`
|
|
19
|
+
`);var re=Xr(or(m));St(Q),setTimeout(function(){d.display.lineSpace.removeChild(_),re.focus(),re==m&&g.showPrimarySelection()},50)}}Ue(m,"copy",b),Ue(m,"cut",b)},gr.prototype.screenReaderLabelChanged=function(s){s?this.div.setAttribute("aria-label",s):this.div.removeAttribute("aria-label")},gr.prototype.prepareSelection=function(){var s=ps(this.cm,!1);return s.focus=Xr(or(this.div))==this.div,s},gr.prototype.showSelection=function(s,l){!s||!this.cm.display.view.length||((s.focus||l)&&this.showPrimarySelection(),this.showMultipleSelections(s))},gr.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},gr.prototype.showPrimarySelection=function(){var s=this.getSelection(),l=this.cm,g=l.doc.sel.primary(),d=g.from(),m=g.to();if(l.display.viewTo==l.display.viewFrom||d.line>=l.display.viewTo||m.line<l.display.viewFrom){s.removeAllRanges();return}var I=ha(l,s.anchorNode,s.anchorOffset),b=ha(l,s.focusNode,s.focusOffset);if(!(I&&!I.bad&&b&&!b.bad&&Qe(Mo(I,b),d)==0&&Qe(Po(I,b),m)==0)){var L=l.display.view,R=d.line>=l.display.viewFrom&&Nf(l,d)||{node:L[0].measure.map[2],offset:0},O=m.line<l.display.viewTo&&Nf(l,m);if(!O){var _=L[L.length-1].measure,Q=_.maps?_.maps[_.maps.length-1]:_.map;O={node:Q[Q.length-1],offset:Q[Q.length-2]-Q[Q.length-3]}}if(!R||!O){s.removeAllRanges();return}var re=s.rangeCount&&s.getRangeAt(0),K;try{K=Cr(R.node,R.offset,O.offset,O.node)}catch{}K&&(!e&&l.state.focused?(s.collapse(R.node,R.offset),K.collapsed||(s.removeAllRanges(),s.addRange(K))):(s.removeAllRanges(),s.addRange(K)),re&&s.anchorNode==null?s.addRange(re):e&&this.startGracePeriod()),this.rememberSelection()}},gr.prototype.startGracePeriod=function(){var s=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){s.gracePeriod=!1,s.selectionChanged()&&s.cm.operation(function(){return s.cm.curOp.selectionChanged=!0})},20)},gr.prototype.showMultipleSelections=function(s){Ke(this.cm.display.cursorDiv,s.cursors),Ke(this.cm.display.selectionDiv,s.selection)},gr.prototype.rememberSelection=function(){var s=this.getSelection();this.lastAnchorNode=s.anchorNode,this.lastAnchorOffset=s.anchorOffset,this.lastFocusNode=s.focusNode,this.lastFocusOffset=s.focusOffset},gr.prototype.selectionInEditor=function(){var s=this.getSelection();if(!s.rangeCount)return!1;var l=s.getRangeAt(0).commonAncestorContainer;return ur(this.div,l)},gr.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Xr(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):kt(this.cm,function(){return l.cm.curOp.selectionChanged=!0});function g(){l.cm.state.focused&&(l.pollSelection(),l.polling.set(l.cm.options.pollInterval,g))}this.polling.set(this.cm.options.pollInterval,g)},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(B&&$&&this.cm.display.gutterSpecs.length&&Ac(s.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var g=ha(l,s.anchorNode,s.anchorOffset),d=ha(l,s.focusNode,s.focusOffset);g&&d&&kt(l,function(){gt(l.doc,Ti(g,d),pe),(g.bad||d.bad)&&(l.curOp.selectionChanged=!0)})}}},gr.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var s=this.cm,l=s.display,g=s.doc.sel.primary(),d=g.from(),m=g.to();if(d.ch==0&&d.line>s.firstLine()&&(d=ce(d.line-1,Ae(s.doc,d.line-1).length)),m.ch==Ae(s.doc,m.line).text.length&&m.line<s.lastLine()&&(m=ce(m.line+1,0)),d.line<l.viewFrom||m.line>l.viewTo-1)return!1;var I,b,L;d.line==l.viewFrom||(I=Wi(s,d.line))==0?(b=He(l.view[0].line),L=l.view[0].node):(b=He(l.view[I].line),L=l.view[I-1].node.nextSibling);var R=Wi(s,m.line),O,_;if(R==l.view.length-1?(O=l.viewTo-1,_=l.lineDiv.lastChild):(O=He(l.view[R+1].line)-1,_=l.view[R+1].node.previousSibling),!L)return!1;for(var Q=s.doc.splitLines(Ic(s,L,_,b,O)),re=ft(s.doc,ce(b,0),ce(O,Ae(s.doc,O).text.length));Q.length>1&&re.length>1;)if(Ie(Q)==Ie(re))Q.pop(),re.pop(),O--;else if(Q[0]==re[0])Q.shift(),re.shift(),b++;else break;for(var K=0,oe=0,fe=Q[0],he=re[0],me=Math.min(fe.length,he.length);K<me&&fe.charCodeAt(K)==he.charCodeAt(K);)++K;for(var Ce=Ie(Q),xe=Ie(re),be=Math.min(Ce.length-(Q.length==1?K:0),xe.length-(re.length==1?K:0));oe<be&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)++oe;if(Q.length==1&&re.length==1&&b==d.line)for(;K&&K>d.ch&&Ce.charCodeAt(Ce.length-oe-1)==xe.charCodeAt(xe.length-oe-1);)K--,oe++;Q[Q.length-1]=Ce.slice(0,Ce.length-oe).replace(/^\u200b+/,""),Q[0]=Q[0].slice(K).replace(/\u200b+$/,"");var Pe=ce(b,K),Fe=ce(O,re.length?Ie(re).length-oe:0);if(Q.length>1||Q[0]||Qe(Pe,Fe))return yn(s.doc,Q,Pe,Fe,"+input"),!0},gr.prototype.ensurePolled=function(){this.forceCompositionEnd()},gr.prototype.reset=function(){this.forceCompositionEnd()},gr.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},gr.prototype.readFromDOMSoon=function(){var s=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(s.readDOMTimeout=null,s.composing)if(s.composing.done)s.composing=null;else return;s.updateFromDOM()},80))},gr.prototype.updateFromDOM=function(){var s=this;(this.cm.isReadOnly()||!this.pollContent())&&kt(this.cm,function(){return dt(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()||et(this.cm,ol)(this.cm,String.fromCharCode(s.charCode==null?s.keyCode:s.charCode),0))},gr.prototype.readOnlyChanged=function(s){this.div.contentEditable=String(s!="nocursor")},gr.prototype.onContextMenu=function(){},gr.prototype.resetPosition=function(){},gr.prototype.needsContentAttribute=!0;function Nf(s,l){var g=ct(s,l.line);if(!g||g.hidden)return null;var d=Ae(s.doc,l.line),m=Zo(g,d,l.line),I=br(d,s.doc.direction),b="left";if(I){var L=At(I,l.ch);b=L%2?"right":"left"}var R=gu(m.map,l.ch,b);return R.offset=R.collapse=="right"?R.end:R.start,R}function Ac(s){for(var l=s;l;l=l.parentNode)if(/CodeMirror-gutter-wrapper/.test(l.className))return!0;return!1}function Gn(s,l){return l&&(s.bad=!0),s}function Ic(s,l,g,d,m){var I="",b=!1,L=s.doc.lineSeparator(),R=!1;function O(K){return function(oe){return oe.id==K}}function _(){b&&(I+=L,R&&(I+=L),b=R=!1)}function Q(K){K&&(_(),I+=K)}function re(K){if(K.nodeType==1){var oe=K.getAttribute("cm-text");if(oe){Q(oe);return}var fe=K.getAttribute("cm-marker"),he;if(fe){var me=s.findMarks(ce(d,0),ce(m+1,0),O(+fe));me.length&&(he=me[0].find(0))&&Q(ft(s.doc,he.from,he.to).join(L));return}if(K.getAttribute("contenteditable")=="false")return;var Ce=/^(pre|div|p|li|table|br)$/i.test(K.nodeName);if(!/^br$/i.test(K.nodeName)&&K.textContent.length==0)return;Ce&&_();for(var xe=0;xe<K.childNodes.length;xe++)re(K.childNodes[xe]);/^(pre|p)$/i.test(K.nodeName)&&(R=!0),Ce&&(b=!0)}else K.nodeType==3&&Q(K.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;re(l),l!=g;)l=l.nextSibling,R=!1;return I}function ha(s,l,g){var d;if(l==s.display.lineDiv){if(d=s.display.lineDiv.childNodes[g],!d)return Gn(s.clipPos(ce(s.display.viewTo-1)),!0);l=null,g=0}else for(d=l;;d=d.parentNode){if(!d||d==s.display.lineDiv)return null;if(d.parentNode&&d.parentNode==s.display.lineDiv)break}for(var m=0;m<s.display.view.length;m++){var I=s.display.view[m];if(I.node==d)return Nc(I,l,g)}}function Nc(s,l,g){var d=s.text.firstChild,m=!1;if(!l||!ur(d,l))return Gn(ce(He(s.line),0),!0);if(l==d&&(m=!0,l=d.childNodes[g],g=0,!l)){var I=s.rest?Ie(s.rest):s.line;return Gn(ce(He(I),I.text.length),m)}var b=l.nodeType==3?l:null,L=l;for(!b&&l.childNodes.length==1&&l.firstChild.nodeType==3&&(b=l.firstChild,g&&(g=b.nodeValue.length));L.parentNode!=d;)L=L.parentNode;var R=s.measure,O=R.maps;function _(he,me,Ce){for(var xe=-1;xe<(O?O.length:0);xe++)for(var be=xe<0?R.map:O[xe],Pe=0;Pe<be.length;Pe+=3){var Fe=be[Pe+2];if(Fe==he||Fe==me){var qe=He(xe<0?s.line:s.rest[xe]),mr=be[Pe]+Ce;return(Ce<0||Fe!=he)&&(mr=be[Pe+(Ce?1:0)]),ce(qe,mr)}}}var Q=_(b,L,g);if(Q)return Gn(Q,m);for(var re=L.nextSibling,K=b?b.nodeValue.length-g:0;re;re=re.nextSibling){if(Q=_(re,re.firstChild,0),Q)return Gn(ce(Q.line,Q.ch-K),m);K+=re.textContent.length}for(var oe=L.previousSibling,fe=g;oe;oe=oe.previousSibling){if(Q=_(oe,oe.firstChild,-1),Q)return Gn(ce(Q.line,Q.ch+fe),m);fe+=oe.textContent.length}}var Mr=function(s){this.cm=s,this.prevInput="",this.pollingFast=!1,this.polling=new Vr,this.hasSelection=!1,this.composing=null,this.resetting=!1};Mr.prototype.init=function(s){var l=this,g=this,d=this.cm;this.createField(s);var m=this.textarea;s.wrapper.insertBefore(this.wrapper,s.wrapper.firstChild),D&&(m.style.width="0px"),Ue(m,"input",function(){G&&P>=9&&l.hasSelection&&(l.hasSelection=null),g.poll()}),Ue(m,"paste",function(b){dr(d,b)||mf(b,d)||(d.state.pasteIncoming=+new Date,g.fastPoll())});function I(b){if(!dr(d,b)){if(d.somethingSelected())ca({lineWise:!1,text:d.getSelections()});else if(d.options.lineWiseCopyCut){var L=Cf(d);ca({lineWise:!0,text:L.text}),b.type=="cut"?d.setSelections(L.ranges,null,pe):(g.prevInput="",m.value=L.text.join(`
|
|
20
|
+
`),St(m))}else return;b.type=="cut"&&(d.state.cutIncoming=+new Date)}}Ue(m,"cut",I),Ue(m,"copy",I),Ue(s.scroller,"paste",function(b){if(!(_i(s,b)||dr(d,b))){if(!m.dispatchEvent){d.state.pasteIncoming=+new Date,g.focus();return}var L=new Event("paste");L.clipboardData=b.clipboardData,m.dispatchEvent(L)}}),Ue(s.lineSpace,"selectstart",function(b){_i(s,b)||ut(b)}),Ue(m,"compositionstart",function(){var b=d.getCursor("from");g.composing&&g.composing.range.clear(),g.composing={start:b,range:d.markText(b,d.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(m,"compositionend",function(){g.composing&&(g.poll(),g.composing.range.clear(),g.composing=null)})},Mr.prototype.createField=function(s){this.wrapper=Af(),this.textarea=this.wrapper.firstChild;var l=this.cm.options;al(this.textarea,l.spellcheck,l.autocorrect,l.autocapitalize)},Mr.prototype.screenReaderLabelChanged=function(s){s?this.textarea.setAttribute("aria-label",s):this.textarea.removeAttribute("aria-label")},Mr.prototype.prepareSelection=function(){var s=this.cm,l=s.display,g=s.doc,d=ps(s);if(s.options.moveInputWithCursor){var m=Xe(s,g.sel.primary().head,"div"),I=l.wrapper.getBoundingClientRect(),b=l.lineDiv.getBoundingClientRect();d.teTop=Math.max(0,Math.min(l.wrapper.clientHeight-10,m.top+b.top-I.top)),d.teLeft=Math.max(0,Math.min(l.wrapper.clientWidth-10,m.left+b.left-I.left))}return d},Mr.prototype.showSelection=function(s){var l=this.cm,g=l.display;Ke(g.cursorDiv,s.cursors),Ke(g.selectionDiv,s.selection),s.teTop!=null&&(this.wrapper.style.top=s.teTop+"px",this.wrapper.style.left=s.teLeft+"px")},Mr.prototype.reset=function(s){if(!(this.contextMenuPending||this.composing&&s)){var l=this.cm;if(this.resetting=!0,l.somethingSelected()){this.prevInput="";var g=l.getSelection();this.textarea.value=g,l.state.focused&&St(this.textarea),G&&P>=9&&(this.hasSelection=g)}else s||(this.prevInput=this.textarea.value="",G&&P>=9&&(this.hasSelection=null));this.resetting=!1}},Mr.prototype.getField=function(){return this.textarea},Mr.prototype.supportsTouch=function(){return!1},Mr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Y||Xr(or(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Mr.prototype.blur=function(){this.textarea.blur()},Mr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Mr.prototype.receivedFocus=function(){this.slowPoll()},Mr.prototype.slowPoll=function(){var s=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){s.poll(),s.cm.state.focused&&s.slowPoll()})},Mr.prototype.fastPoll=function(){var s=!1,l=this;l.pollingFast=!0;function g(){var d=l.poll();!d&&!s?(s=!0,l.polling.set(60,g)):(l.pollingFast=!1,l.slowPoll())}l.polling.set(20,g)},Mr.prototype.poll=function(){var s=this,l=this.cm,g=this.textarea,d=this.prevInput;if(this.contextMenuPending||this.resetting||!l.state.focused||Fo(g)&&!d&&!this.composing||l.isReadOnly()||l.options.disableInput||l.state.keySeq)return!1;var m=g.value;if(m==d&&!l.somethingSelected())return!1;if(G&&P>=9&&this.hasSelection===m||z&&/[\uf700-\uf7ff]/.test(m))return l.display.input.reset(),!1;if(l.doc.sel==l.display.selForContextMenu){var I=m.charCodeAt(0);if(I==8203&&!d&&(d="\u200B"),I==8666)return this.reset(),this.cm.execCommand("undo")}for(var b=0,L=Math.min(d.length,m.length);b<L&&d.charCodeAt(b)==m.charCodeAt(b);)++b;return kt(l,function(){ol(l,m.slice(b),d.length-b,null,s.composing?"*compose":null),m.length>1e3||m.indexOf(`
|
|
21
|
+
`)>-1?g.value=s.prevInput="":s.prevInput=m,s.composing&&(s.composing.range.clear(),s.composing.range=l.markText(s.composing.start,l.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Mr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Mr.prototype.onKeyPress=function(){G&&P>=9&&(this.hasSelection=null),this.fastPoll()},Mr.prototype.onContextMenu=function(s){var l=this,g=l.cm,d=g.display,m=l.textarea;l.contextMenuPending&&l.contextMenuPending();var I=li(g,s),b=d.scroller.scrollTop;if(!I||J)return;var L=g.options.resetSelectionOnContextMenu;L&&g.doc.sel.contains(I)==-1&&et(g,gt)(g.doc,Ti(I),pe);var R=m.style.cssText,O=l.wrapper.style.cssText,_=l.wrapper.offsetParent.getBoundingClientRect();l.wrapper.style.cssText="position: static",m.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
22
|
+
top: `+(s.clientY-_.top-5)+"px; left: "+(s.clientX-_.left-5)+`px;
|
|
23
|
+
z-index: 1000; background: `+(G?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
24
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Q;H&&(Q=m.ownerDocument.defaultView.scrollY),d.input.focus(),H&&m.ownerDocument.defaultView.scrollTo(null,Q),d.input.reset(),g.somethingSelected()||(m.value=l.prevInput=" "),l.contextMenuPending=K,d.selForContextMenu=g.doc.sel,clearTimeout(d.detectingSelectAll);function re(){if(m.selectionStart!=null){var fe=g.somethingSelected(),he="\u200B"+(fe?m.value:"");m.value="\u21DA",m.value=he,l.prevInput=fe?"":"\u200B",m.selectionStart=1,m.selectionEnd=he.length,d.selForContextMenu=g.doc.sel}}function K(){if(l.contextMenuPending==K&&(l.contextMenuPending=!1,l.wrapper.style.cssText=O,m.style.cssText=R,G&&P<9&&d.scrollbars.setScrollTop(d.scroller.scrollTop=b),m.selectionStart!=null)){(!G||G&&P<9)&&re();var fe=0,he=function(){d.selForContextMenu==g.doc.sel&&m.selectionStart==0&&m.selectionEnd>0&&l.prevInput=="\u200B"?et(g,Wu)(g):fe++<10?d.detectingSelectAll=setTimeout(he,500):(d.selForContextMenu=null,d.input.reset())};d.detectingSelectAll=setTimeout(he,200)}}if(G&&P>=9&&re(),$e){Is(s);var oe=function(){_r(window,"mouseup",oe),setTimeout(K,20)};Ue(window,"mouseup",oe)}else setTimeout(K,50)},Mr.prototype.readOnlyChanged=function(s){s||this.reset(),this.textarea.disabled=s=="nocursor",this.textarea.readOnly=!!s},Mr.prototype.setUneditable=function(){},Mr.prototype.needsContentAttribute=!1;function bc(s,l){if(l=l?Jr(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=Xr(or(s));l.autofocus=g==s||s.getAttribute("autofocus")!=null&&g==document.body}function d(){s.value=L.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(R){R.save=d,R.getTextArea=function(){return s},R.toTextArea=function(){R.toTextArea=isNaN,d(),s.parentNode.removeChild(R.getWrapperElement()),s.style.display="",s.form&&(_r(s.form,"submit",d),!l.leaveSubmitMethodAlone&&typeof s.form.submit=="function"&&(s.form.submit=m))}},s.style.display="none";var L=Lr(function(R){return s.parentNode.insertBefore(R,s.nextSibling)},l);return L}function Tc(s){s.off=_r,s.on=Ue,s.wheelEventPixels=Gp,s.Doc=Gt,s.splitLines=tn,s.countColumn=Ar,s.findColumn=Se,s.isWordChar=lt,s.Pass=Oe,s.signal=ar,s.Line=pn,s.changeEnd=Li,s.scrollbarModel=Lu,s.Pos=ce,s.cmpPos=Qe,s.modes=nn,s.mimeModes=Fi,s.resolveMode=on,s.getMode=Be,s.modeExtensions=q,s.extendMode=ge,s.copyState=Le,s.startState=qr,s.innerMode=vr,s.commands=po,s.keyMap=Hi,s.keyName=sf,s.isModifierKey=rf,s.lookupKey=wn,s.normalizeKeyMap=ec,s.StringStream=ze,s.SharedTextMarker=lo,s.TextMarker=gs,s.LineWidget=ao,s.e_preventDefault=ut,s.e_stopPropagation=Wr,s.e_stop=Is,s.addClass=Je,s.contains=ur,s.rmClass=_e,s.keyNames=Es}Ec(Lr),Cc(Lr);var Lc="iter insert remove copy getEditor constructor".split(" ");for(var da in Gt.prototype)Gt.prototype.hasOwnProperty(da)&&hr(Lc,da)<0&&(Lr.prototype[da]=function(s){return function(){return s.apply(this.doc,arguments)}}(Gt.prototype[da]));return ts(Gt),Lr.inputStyles={textarea:Mr,contenteditable:gr},Lr.defineMode=function(s){!Lr.defaults.mode&&s!="null"&&(Lr.defaults.mode=s),Do.apply(this,arguments)},Lr.defineMIME=Bo,Lr.defineMode("null",function(){return{token:function(s){return s.skipToEnd()}}}),Lr.defineMIME("text/plain","null"),Lr.defineExtension=function(s,l){Lr.prototype[s]=l},Lr.defineDocExtension=function(s,l){Gt.prototype[s]=l},Lr.fromTextArea=bc,Tc(Lr),Lr.version="5.65.20",Lr})});var Vl=Nr((rR,cm)=>{var KE=OI(),yI=UI(),RI=GI(),wI=typeof window<"u"?window:global;cm.exports={assign:KE,create:yI,trim:RI,bind:FI,slice:ev,each:pm,map:DI,pluck:rv,isList:tv,isFunction:BI,isObject:PI,Global:wI};function OI(){return Object.assign?Object.assign:function(v,e,N,y){for(var w=1;w<arguments.length;w++)pm(Object(arguments[w]),function(G,P){v[P]=G});return v}}function UI(){if(Object.create)return function(e,N,y,w){var G=ev(arguments,1);return KE.apply(this,[Object.create(e)].concat(G))};{let v=function(){};var i=v;return function(N,y,w,G){var P=ev(arguments,1);return v.prototype=N,KE.apply(this,[new v].concat(P))}}}function GI(){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 FI(i,v){return function(){return v.apply(i,Array.prototype.slice.call(arguments,0))}}function ev(i,v){return Array.prototype.slice.call(i,v||0)}function pm(i,v){rv(i,function(e,N){return v(e,N),!1})}function DI(i,v){var e=tv(i)?[]:{};return rv(i,function(N,y){return e[y]=v(N,y),!1}),e}function rv(i,v){if(tv(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 tv(i){return i!=null&&typeof i!="function"&&typeof i.length=="number"}function BI(i){return i&&{}.toString.call(i)==="[object Function]"}function PI(i){return i&&{}.toString.call(i)==="[object Object]"}});var dm=Nr((tR,hm)=>{var ga=Vl(),MI=ga.slice,VI=ga.pluck,Tf=ga.each,_I=ga.bind,WI=ga.create,iv=ga.isList,sv=ga.isFunction,kI=ga.isObject;hm.exports={createStore:nv};var $I={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 nv.apply(this,arguments)},addPlugin:function(i){this._addPlugin(i)},namespace:function(i){return nv(this.storage,this.plugins,i)}};function HI(){var i=typeof console>"u"?null:console;if(i){var v=i.warn?i.warn:i.log;v.apply(i,arguments)}}function nv(i,v,e){e||(e=""),i&&!iv(i)&&(i=[i]),v&&!iv(v)&&(v=[v]);var N=e?"__storejs_"+e+"_":"",y=e?new RegExp("^"+N):null,w=/^[a-zA-Z0-9_\-]*$/;if(!w.test(e))throw new Error("store.js namespaces can only have alphanumerics + underscores and dashes");var G={_namespacePrefix:N,_namespaceRegexp:y,_testStorage:function(H){try{var Z="__storejs__test__";H.write(Z,Z);var $=H.read(Z)===Z;return H.remove(Z),$}catch{return!1}},_assignPluginFnProp:function(H,Z){var $=this[Z];this[Z]=function(){var J=MI(arguments,0),k=this;function ee(){if($)return Tf(arguments,function(D,B){J[B]=D}),$.apply(k,J)}var X=[ee].concat(J);return H.apply(k,X)}},_serialize:function(H){return JSON.stringify(H)},_deserialize:function(H,Z){if(!H)return Z;var $="";try{$=JSON.parse(H)}catch{$=H}return $!==void 0?$:Z},_addStorage:function(H){this.enabled||this._testStorage(H)&&(this.storage=H,this.enabled=!0)},_addPlugin:function(H){var Z=this;if(iv(H)){Tf(H,function(J){Z._addPlugin(J)});return}var $=VI(this.plugins,function(J){return H===J});if(!$){if(this.plugins.push(H),!sv(H))throw new Error("Plugins must be function values that return objects");var V=H.call(this);if(!kI(V))throw new Error("Plugins must return an object of function properties");Tf(V,function(J,k){if(!sv(J))throw new Error("Bad plugin property: "+k+" from plugin "+H.name+". Plugins should only return functions.");Z._assignPluginFnProp(J,k)})}},addStorage:function(H){HI("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(H)}},P=WI(G,$I,{plugins:[]});return P.raw={},Tf(P,function(H,Z){sv(H)&&(P.raw[Z]=_I(P,H))}),Tf(i,function(H){P._addStorage(H)}),Tf(v,function(H){P._addPlugin(H)}),P}});var vm=Nr((iR,Em)=>{var ZI=Vl(),QI=ZI.Global;Em.exports={name:"localStorage",read:gm,write:YI,each:XI,remove:JI,clearAll:jI};function Lf(){return QI.localStorage}function gm(i){return Lf().getItem(i)}function YI(i,v){return Lf().setItem(i,v)}function XI(i){for(var v=Lf().length-1;v>=0;v--){var e=Lf().key(v);i(gm(e),e)}}function JI(i){return Lf().removeItem(i)}function jI(){return Lf().clear()}});var Cm=Nr((sR,xm)=>{var zI=Vl(),qI=zI.Global;xm.exports={name:"oldFF-globalStorage",read:KI,write:eN,each:mm,remove:rN,clearAll:tN};var _l=qI.globalStorage;function KI(i){return _l[i]}function eN(i,v){_l[i]=v}function mm(i){for(var v=_l.length-1;v>=0;v--){var e=_l.key(v);i(_l[e],e)}}function rN(i){return _l.removeItem(i)}function tN(){mm(function(i,v){delete _l[i]})}});var Nm=Nr((nR,Im)=>{var iN=Vl(),ov=iN.Global;Im.exports={name:"oldIE-userDataStorage",write:sN,read:nN,each:oN,remove:aN,clearAll:lN};var Eh="storejs",gh=ov.document,vh=fN(),Am=(ov.navigator?ov.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function sN(i,v){if(!Am){var e=av(i);vh(function(N){N.setAttribute(e,v),N.save(Eh)})}}function nN(i){if(!Am){var v=av(i),e=null;return vh(function(N){e=N.getAttribute(v)}),e}}function oN(i){vh(function(v){for(var e=v.XMLDocument.documentElement.attributes,N=e.length-1;N>=0;N--){var y=e[N];i(v.getAttribute(y.name),y.name)}})}function aN(i){var v=av(i);vh(function(e){e.removeAttribute(v),e.save(Eh)})}function lN(){vh(function(i){var v=i.XMLDocument.documentElement.attributes;i.load(Eh);for(var e=v.length-1;e>=0;e--)i.removeAttribute(v[e].name);i.save(Eh)})}var uN=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function av(i){return i.replace(/^\d/,"___$&").replace(uN,"___")}function fN(){if(!gh||!gh.documentElement||!gh.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=gh.createElement("div"),v=gh.body}return function(y){var w=[].slice.call(arguments,0);w.unshift(N),v.appendChild(N),N.addBehavior("#default#userData"),N.load(Eh),y.apply(this,w),v.removeChild(N)}}});var Rm=Nr((oR,ym)=>{var bm=Vl(),pN=bm.Global,cN=bm.trim;ym.exports={name:"cookieStorage",read:hN,write:dN,each:Tm,remove:Lm,clearAll:gN};var mh=pN.document;function hN(i){if(!i||!Sm(i))return null;var v="(?:^|.*;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(mh.cookie.replace(new RegExp(v),"$1"))}function Tm(i){for(var v=mh.cookie.split(/; ?/g),e=v.length-1;e>=0;e--)if(cN(v[e])){var N=v[e].split("="),y=unescape(N[0]),w=unescape(N[1]);i(w,y)}}function dN(i,v){i&&(mh.cookie=escape(i)+"="+escape(v)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/")}function Lm(i){!i||!Sm(i)||(mh.cookie=escape(i)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function gN(){Tm(function(i,v){Lm(v)})}function Sm(i){return new RegExp("(?:^|;\\s*)"+escape(i).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(mh.cookie)}});var Um=Nr((aR,Om)=>{var EN=Vl(),vN=EN.Global;Om.exports={name:"sessionStorage",read:wm,write:mN,each:xN,remove:CN,clearAll:AN};function Sf(){return vN.sessionStorage}function wm(i){return Sf().getItem(i)}function mN(i,v){return Sf().setItem(i,v)}function xN(i){for(var v=Sf().length-1;v>=0;v--){var e=Sf().key(v);i(wm(e),e)}}function CN(i){return Sf().removeItem(i)}function AN(){return Sf().clear()}});var Fm=Nr((lR,Gm)=>{Gm.exports={name:"memoryStorage",read:IN,write:NN,each:bN,remove:TN,clearAll:LN};var Wl={};function IN(i){return Wl[i]}function NN(i,v){Wl[i]=v}function bN(i){for(var v in Wl)Wl.hasOwnProperty(v)&&i(Wl[v],v)}function TN(i){delete Wl[i]}function LN(i){Wl={}}});var Bm=Nr((uR,Dm)=>{Dm.exports=[vm(),Cm(),Nm(),Rm(),Um(),Fm()]});var Pm=Nr((exports,module)=>{typeof JSON!="object"&&(JSON={});(function(){"use strict";var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;function f(i){return i<10?"0"+i:i}function this_value(){return this.valueOf()}typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;function quote(i){return rx_escapable.lastIndex=0,rx_escapable.test(i)?'"'+i.replace(rx_escapable,function(v){var e=meta[v];return typeof e=="string"?e:"\\u"+("0000"+v.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+i+'"'}function str(i,v){var e,N,y,w,G=gap,P,H=v[i];switch(H&&typeof H=="object"&&typeof H.toJSON=="function"&&(H=H.toJSON(i)),typeof rep=="function"&&(H=rep.call(v,i,H)),typeof H){case"string":return quote(H);case"number":return isFinite(H)?String(H):"null";case"boolean":case"null":return String(H);case"object":if(!H)return"null";if(gap+=indent,P=[],Object.prototype.toString.apply(H)==="[object Array]"){for(w=H.length,e=0;e<w;e+=1)P[e]=str(e,H)||"null";return y=P.length===0?"[]":gap?`[
|
|
25
|
+
`+gap+P.join(`,
|
|
26
26
|
`+gap)+`
|
|
27
|
-
`+
|
|
28
|
-
`+gap+
|
|
27
|
+
`+G+"]":"["+P.join(",")+"]",gap=G,y}if(rep&&typeof rep=="object")for(w=rep.length,e=0;e<w;e+=1)typeof rep[e]=="string"&&(N=rep[e],y=str(N,H),y&&P.push(quote(N)+(gap?": ":":")+y));else for(N in H)Object.prototype.hasOwnProperty.call(H,N)&&(y=str(N,H),y&&P.push(quote(N)+(gap?": ":":")+y));return y=P.length===0?"{}":gap?`{
|
|
28
|
+
`+gap+P.join(`,
|
|
29
29
|
`+gap)+`
|
|
30
|
-
`+m+"}":"{"+I.join(",")+"}",gap=m,h}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(n,s,a){var u;if(gap="",indent="",typeof a=="number")for(u=0;u<a;u+=1)indent+=" ";else typeof a=="string"&&(indent=a);if(rep=s,s&&typeof s!="function"&&(typeof s!="object"||typeof s.length!="number"))throw new Error("JSON.stringify");return str("",{"":n})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(n,s){var a,u,h=n[s];if(h&&typeof h=="object")for(a in h)Object.prototype.hasOwnProperty.call(h,a)&&(u=walk(h,a),u!==void 0?h[a]=u:delete h[a]);return reviver.call(n,s,h)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(n){return"\\u"+("0000"+n.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 Nc=Se((cS,Ic)=>{Ic.exports=Kx;function Kx(){return vc(),{}}});var Ac=Se((fS,Tc)=>{var $x=zp(),ev=xc(),tv=[Nc()];Tc.exports=$x.createStore(ev,tv)});var Lc=Se((xS,Sc)=>{"use strict";Sc.exports=n=>encodeURIComponent(n).replace(/[!'()*]/g,s=>`%${s.charCodeAt(0).toString(16).toUpperCase()}`)});var Gc=Se((vS,Oc)=>{"use strict";var bc="%[a-f0-9]{2}",Rc=new RegExp("("+bc+")|([^%]+?)","gi"),yc=new RegExp("("+bc+")+","gi");function el(n,s){try{return[decodeURIComponent(n.join(""))]}catch{}if(n.length===1)return n;s=s||1;var a=n.slice(0,s),u=n.slice(s);return Array.prototype.concat.call([],el(a),el(u))}function iv(n){try{return decodeURIComponent(n)}catch{for(var s=n.match(Rc)||[],a=1;a<s.length;a++)n=el(s,a).join(""),s=n.match(Rc)||[];return n}}function nv(n){for(var s={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},a=yc.exec(n);a;){try{s[a[0]]=decodeURIComponent(a[0])}catch{var u=iv(a[0]);u!==a[0]&&(s[a[0]]=u)}a=yc.exec(n)}s["%C2"]="\uFFFD";for(var h=Object.keys(s),g=0;g<h.length;g++){var m=h[g];n=n.replace(new RegExp(m,"g"),s[m])}return n}Oc.exports=function(n){if(typeof n!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof n+"`");try{return n=n.replace(/\+/g," "),decodeURIComponent(n)}catch{return nv(n)}}});var Fc=Se((IS,Uc)=>{"use strict";Uc.exports=(n,s)=>{if(!(typeof n=="string"&&typeof s=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(s==="")return[n];let a=n.indexOf(s);return a===-1?[n]:[n.slice(0,a),n.slice(a+s.length)]}});var Dc=Se((NS,Bc)=>{"use strict";Bc.exports=function(n,s){for(var a={},u=Object.keys(n),h=Array.isArray(s),g=0;g<u.length;g++){var m=u[g],I=n[m];(h?s.indexOf(m)!==-1:s(m,I,n))&&(a[m]=I)}return a}});var ts=Se(kt=>{"use strict";var ov=Lc(),sv=Gc(),Pc=Fc(),av=Dc(),lv=n=>n==null;function uv(n){switch(n.arrayFormat){case"index":return s=>(a,u)=>{let h=a.length;return u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,[xt(s,n),"[",h,"]"].join("")]:[...a,[xt(s,n),"[",xt(h,n),"]=",xt(u,n)].join("")]};case"bracket":return s=>(a,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,[xt(s,n),"[]"].join("")]:[...a,[xt(s,n),"[]=",xt(u,n)].join("")];case"comma":case"separator":return s=>(a,u)=>u==null||u.length===0?a:a.length===0?[[xt(s,n),"=",xt(u,n)].join("")]:[[a,xt(u,n)].join(n.arrayFormatSeparator)];default:return s=>(a,u)=>u===void 0||n.skipNull&&u===null||n.skipEmptyString&&u===""?a:u===null?[...a,xt(s,n)]:[...a,[xt(s,n),"=",xt(u,n)].join("")]}}function pv(n){let s;switch(n.arrayFormat){case"index":return(a,u,h)=>{if(s=/\[(\d*)\]$/.exec(a),a=a.replace(/\[\d*\]$/,""),!s){h[a]=u;return}h[a]===void 0&&(h[a]={}),h[a][s[1]]=u};case"bracket":return(a,u,h)=>{if(s=/(\[\])$/.exec(a),a=a.replace(/\[\]$/,""),!s){h[a]=u;return}if(h[a]===void 0){h[a]=[u];return}h[a]=[].concat(h[a],u)};case"comma":case"separator":return(a,u,h)=>{let g=typeof u=="string"&&u.includes(n.arrayFormatSeparator),m=typeof u=="string"&&!g&&vi(u,n).includes(n.arrayFormatSeparator);u=m?vi(u,n):u;let I=g||m?u.split(n.arrayFormatSeparator).map(T=>vi(T,n)):u===null?u:vi(u,n);h[a]=I};default:return(a,u,h)=>{if(h[a]===void 0){h[a]=u;return}h[a]=[].concat(h[a],u)}}}function Vc(n){if(typeof n!="string"||n.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function xt(n,s){return s.encode?s.strict?ov(n):encodeURIComponent(n):n}function vi(n,s){return s.decode?sv(n):n}function wc(n){return Array.isArray(n)?n.sort():typeof n=="object"?wc(Object.keys(n)).sort((s,a)=>Number(s)-Number(a)).map(s=>n[s]):n}function _c(n){let s=n.indexOf("#");return s!==-1&&(n=n.slice(0,s)),n}function cv(n){let s="",a=n.indexOf("#");return a!==-1&&(s=n.slice(a)),s}function Wc(n){n=_c(n);let s=n.indexOf("?");return s===-1?"":n.slice(s+1)}function Mc(n,s){return s.parseNumbers&&!Number.isNaN(Number(n))&&typeof n=="string"&&n.trim()!==""?n=Number(n):s.parseBooleans&&n!==null&&(n.toLowerCase()==="true"||n.toLowerCase()==="false")&&(n=n.toLowerCase()==="true"),n}function kc(n,s){s=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},s),Vc(s.arrayFormatSeparator);let a=pv(s),u=Object.create(null);if(typeof n!="string"||(n=n.trim().replace(/^[?#&]/,""),!n))return u;for(let h of n.split("&")){if(h==="")continue;let[g,m]=Pc(s.decode?h.replace(/\+/g," "):h,"=");m=m===void 0?null:["comma","separator"].includes(s.arrayFormat)?m:vi(m,s),a(vi(g,s),m,u)}for(let h of Object.keys(u)){let g=u[h];if(typeof g=="object"&&g!==null)for(let m of Object.keys(g))g[m]=Mc(g[m],s);else u[h]=Mc(g,s)}return s.sort===!1?u:(s.sort===!0?Object.keys(u).sort():Object.keys(u).sort(s.sort)).reduce((h,g)=>{let m=u[g];return m&&typeof m=="object"&&!Array.isArray(m)?h[g]=wc(m):h[g]=m,h},Object.create(null))}kt.extract=Wc;kt.parse=kc;kt.stringify=(n,s)=>{if(!n)return"";s=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},s),Vc(s.arrayFormatSeparator);let a=m=>s.skipNull&&lv(n[m])||s.skipEmptyString&&n[m]==="",u=uv(s),h={};for(let m of Object.keys(n))a(m)||(h[m]=n[m]);let g=Object.keys(h);return s.sort!==!1&&g.sort(s.sort),g.map(m=>{let I=n[m];return I===void 0?"":I===null?xt(m,s):Array.isArray(I)?I.reduce(u(m),[]).join("&"):xt(m,s)+"="+xt(I,s)}).filter(m=>m.length>0).join("&")};kt.parseUrl=(n,s)=>{s=Object.assign({decode:!0},s);let[a,u]=Pc(n,"#");return Object.assign({url:a.split("?")[0]||"",query:kc(Wc(n),s)},s&&s.parseFragmentIdentifier&&u?{fragmentIdentifier:vi(u,s)}:{})};kt.stringifyUrl=(n,s)=>{s=Object.assign({encode:!0,strict:!0},s);let a=_c(n.url).split("?")[0]||"",u=kt.extract(n.url),h=kt.parse(u,{sort:!1}),g=Object.assign(h,n.query),m=kt.stringify(g,s);m&&(m=`?${m}`);let I=cv(n.url);return n.fragmentIdentifier&&(I=`#${xt(n.fragmentIdentifier,s)}`),`${a}${m}${I}`};kt.pick=(n,s,a)=>{a=Object.assign({parseFragmentIdentifier:!0},a);let{url:u,query:h,fragmentIdentifier:g}=kt.parseUrl(n,a);return kt.stringifyUrl({url:u,query:av(h,s),fragmentIdentifier:g},a)};kt.exclude=(n,s,a)=>{let u=Array.isArray(s)?h=>!s.includes(h):(h,g)=>!s(h,g);return kt.pick(n,u,a)}});var Mh=Se((lU,ml)=>{"use strict";var mn=typeof Reflect=="object"?Reflect:null,Lh=mn&&typeof mn.apply=="function"?mn.apply:function(s,a,u){return Function.prototype.apply.call(s,a,u)},Ls;mn&&typeof mn.ownKeys=="function"?Ls=mn.ownKeys:Object.getOwnPropertySymbols?Ls=function(s){return Object.getOwnPropertyNames(s).concat(Object.getOwnPropertySymbols(s))}:Ls=function(s){return Object.getOwnPropertyNames(s)};function GC(n){console&&console.warn&&console.warn(n)}var yh=Number.isNaN||function(s){return s!==s};function be(){be.init.call(this)}ml.exports=be;ml.exports.once=DC;be.EventEmitter=be;be.prototype._events=void 0;be.prototype._eventsCount=0;be.prototype._maxListeners=void 0;var Rh=10;function Rs(n){if(typeof n!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof n)}Object.defineProperty(be,"defaultMaxListeners",{enumerable:!0,get:function(){return Rh},set:function(n){if(typeof n!="number"||n<0||yh(n))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+n+".");Rh=n}});be.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};be.prototype.setMaxListeners=function(s){if(typeof s!="number"||s<0||yh(s))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+s+".");return this._maxListeners=s,this};function bh(n){return n._maxListeners===void 0?be.defaultMaxListeners:n._maxListeners}be.prototype.getMaxListeners=function(){return bh(this)};be.prototype.emit=function(s){for(var a=[],u=1;u<arguments.length;u++)a.push(arguments[u]);var h=s==="error",g=this._events;if(g!==void 0)h=h&&g.error===void 0;else if(!h)return!1;if(h){var m;if(a.length>0&&(m=a[0]),m instanceof Error)throw m;var I=new Error("Unhandled error."+(m?" ("+m.message+")":""));throw I.context=m,I}var T=g[s];if(T===void 0)return!1;if(typeof T=="function")Lh(T,this,a);else for(var G=T.length,L=Bh(T,G),u=0;u<G;++u)Lh(L[u],this,a);return!0};function Oh(n,s,a,u){var h,g,m;if(Rs(a),g=n._events,g===void 0?(g=n._events=Object.create(null),n._eventsCount=0):(g.newListener!==void 0&&(n.emit("newListener",s,a.listener?a.listener:a),g=n._events),m=g[s]),m===void 0)m=g[s]=a,++n._eventsCount;else if(typeof m=="function"?m=g[s]=u?[a,m]:[m,a]:u?m.unshift(a):m.push(a),h=bh(n),h>0&&m.length>h&&!m.warned){m.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+m.length+" "+String(s)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=n,I.type=s,I.count=m.length,GC(I)}return n}be.prototype.addListener=function(s,a){return Oh(this,s,a,!1)};be.prototype.on=be.prototype.addListener;be.prototype.prependListener=function(s,a){return Oh(this,s,a,!0)};function UC(){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 Gh(n,s,a){var u={fired:!1,wrapFn:void 0,target:n,type:s,listener:a},h=UC.bind(u);return h.listener=a,u.wrapFn=h,h}be.prototype.once=function(s,a){return Rs(a),this.on(s,Gh(this,s,a)),this};be.prototype.prependOnceListener=function(s,a){return Rs(a),this.prependListener(s,Gh(this,s,a)),this};be.prototype.removeListener=function(s,a){var u,h,g,m,I;if(Rs(a),h=this._events,h===void 0)return this;if(u=h[s],u===void 0)return this;if(u===a||u.listener===a)--this._eventsCount===0?this._events=Object.create(null):(delete h[s],h.removeListener&&this.emit("removeListener",s,u.listener||a));else if(typeof u!="function"){for(g=-1,m=u.length-1;m>=0;m--)if(u[m]===a||u[m].listener===a){I=u[m].listener,g=m;break}if(g<0)return this;g===0?u.shift():FC(u,g),u.length===1&&(h[s]=u[0]),h.removeListener!==void 0&&this.emit("removeListener",s,I||a)}return this};be.prototype.off=be.prototype.removeListener;be.prototype.removeAllListeners=function(s){var a,u,h;if(u=this._events,u===void 0)return this;if(u.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):u[s]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete u[s]),this;if(arguments.length===0){var g=Object.keys(u),m;for(h=0;h<g.length;++h)m=g[h],m!=="removeListener"&&this.removeAllListeners(m);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(a=u[s],typeof a=="function")this.removeListener(s,a);else if(a!==void 0)for(h=a.length-1;h>=0;h--)this.removeListener(s,a[h]);return this};function Uh(n,s,a){var u=n._events;if(u===void 0)return[];var h=u[s];return h===void 0?[]:typeof h=="function"?a?[h.listener||h]:[h]:a?BC(h):Bh(h,h.length)}be.prototype.listeners=function(s){return Uh(this,s,!0)};be.prototype.rawListeners=function(s){return Uh(this,s,!1)};be.listenerCount=function(n,s){return typeof n.listenerCount=="function"?n.listenerCount(s):Fh.call(n,s)};be.prototype.listenerCount=Fh;function Fh(n){var s=this._events;if(s!==void 0){var a=s[n];if(typeof a=="function")return 1;if(a!==void 0)return a.length}return 0}be.prototype.eventNames=function(){return this._eventsCount>0?Ls(this._events):[]};function Bh(n,s){for(var a=new Array(s),u=0;u<s;++u)a[u]=n[u];return a}function FC(n,s){for(;s+1<n.length;s++)n[s]=n[s+1];n.pop()}function BC(n){for(var s=new Array(n.length),a=0;a<s.length;++a)s[a]=n[a].listener||n[a];return s}function DC(n,s){return new Promise(function(a,u){function h(m){n.removeListener(s,g),u(m)}function g(){typeof n.removeListener=="function"&&n.removeListener("error",h),a([].slice.call(arguments))}Dh(n,s,g,{once:!0}),s!=="error"&&MC(n,h,{once:!0})})}function MC(n,s,a){typeof n.on=="function"&&Dh(n,"error",s,a)}function Dh(n,s,a,u){if(typeof n.on=="function")u.once?n.once(s,a):n.on(s,a);else if(typeof n.addEventListener=="function")n.addEventListener(s,function h(g){u.once&&n.removeEventListener(s,h),a(g)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof n)}});var Nl=Se((jh,zh)=>{(function(n){typeof jh=="object"&&typeof zh=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";function s(g,m,I,T){if(I&&I.call){var G=I;I=null}else var G=h(g,I,"rangeFinder");typeof m=="number"&&(m=n.Pos(m,0));var L=h(g,I,"minFoldSize");function V(S){var x=G(g,m);if(!x||x.to.line-x.from.line<L)return null;if(T==="fold")return x;for(var v=g.findMarksAt(x.from),C=0;C<v.length;++C)if(v[C].__isFold){if(!S)return null;x.cleared=!0,v[C].clear()}return x}var y=V(!0);if(h(g,I,"scanUp"))for(;!y&&m.line>g.firstLine();)m=n.Pos(m.line-1,0),y=V(!1);if(!(!y||y.cleared||T==="unfold")){var M=a(g,I,y);n.on(M,"mousedown",function(S){F.clear(),n.e_preventDefault(S)});var F=g.markText(y.from,y.to,{replacedWith:M,clearOnEnter:h(g,I,"clearOnEnter"),__isFold:!0});F.on("clear",function(S,x){n.signal(g,"unfold",g,S,x)}),n.signal(g,"fold",g,y.from,y.to)}}function a(g,m,I){var T=h(g,m,"widget");if(typeof T=="function"&&(T=T(I.from,I.to)),typeof T=="string"){var G=document.createTextNode(T);T=document.createElement("span"),T.appendChild(G),T.className="CodeMirror-foldmarker"}else T&&(T=T.cloneNode(!0));return T}n.newFoldFunction=function(g,m){return function(I,T){s(I,T,{rangeFinder:g,widget:m})}},n.defineExtension("foldCode",function(g,m,I){s(this,g,m,I)}),n.defineExtension("isFolded",function(g){for(var m=this.findMarksAt(g),I=0;I<m.length;++I)if(m[I].__isFold)return!0}),n.commands.toggleFold=function(g){g.foldCode(g.getCursor())},n.commands.fold=function(g){g.foldCode(g.getCursor(),null,"fold")},n.commands.unfold=function(g){g.foldCode(g.getCursor(),{scanUp:!1},"unfold")},n.commands.foldAll=function(g){g.operation(function(){for(var m=g.firstLine(),I=g.lastLine();m<=I;m++)g.foldCode(n.Pos(m,0),{scanUp:!1},"fold")})},n.commands.unfoldAll=function(g){g.operation(function(){for(var m=g.firstLine(),I=g.lastLine();m<=I;m++)g.foldCode(n.Pos(m,0),{scanUp:!1},"unfold")})},n.registerHelper("fold","combine",function(){var g=Array.prototype.slice.call(arguments,0);return function(m,I){for(var T=0;T<g.length;++T){var G=g[T](m,I);if(G)return G}}}),n.registerHelper("fold","auto",function(g,m){for(var I=g.getHelpers(m,"fold"),T=0;T<I.length;T++){var G=I[T](g,m);if(G)return G}});var u={rangeFinder:n.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};n.defineOption("foldOptions",null);function h(g,m,I){if(m&&m[I]!==void 0)return m[I];var T=g.options.foldOptions;return T&&T[I]!==void 0?T[I]:u[I]}n.defineExtension("foldOption",function(g,m){return h(this,g,m)})})});var $h=Se((qh,Kh)=>{(function(n){typeof qh=="object"&&typeof Kh=="object"?n(Nt(),Nl()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],n):n(CodeMirror)})(function(n){"use strict";n.defineOption("foldGutter",!1,function(F,S,x){x&&x!=n.Init&&(F.clearGutter(F.state.foldGutter.options.gutter),F.state.foldGutter=null,F.off("gutterClick",G),F.off("changes",V),F.off("viewportChange",y),F.off("fold",M),F.off("unfold",M),F.off("swapDoc",V),F.off("optionChange",L)),S&&(F.state.foldGutter=new a(u(S)),T(F),F.on("gutterClick",G),F.on("changes",V),F.on("viewportChange",y),F.on("fold",M),F.on("unfold",M),F.on("swapDoc",V),F.on("optionChange",L))});var s=n.Pos;function a(F){this.options=F,this.from=this.to=0}function u(F){return F===!0&&(F={}),F.gutter==null&&(F.gutter="CodeMirror-foldgutter"),F.indicatorOpen==null&&(F.indicatorOpen="CodeMirror-foldgutter-open"),F.indicatorFolded==null&&(F.indicatorFolded="CodeMirror-foldgutter-folded"),F}function h(F,S){for(var x=F.findMarks(s(S,0),s(S+1,0)),v=0;v<x.length;++v)if(x[v].__isFold){var C=x[v].find(-1);if(C&&C.line===S)return x[v]}}function g(F){if(typeof F=="string"){var S=document.createElement("div");return S.className=F+" CodeMirror-guttermarker-subtle",S}else return F.cloneNode(!0)}function m(F,S,x){var v=F.state.foldGutter.options,C=S-1,R=F.foldOption(v,"minFoldSize"),B=F.foldOption(v,"rangeFinder"),D=typeof v.indicatorFolded=="string"&&I(v.indicatorFolded),w=typeof v.indicatorOpen=="string"&&I(v.indicatorOpen);F.eachLine(S,x,function(Q){++C;var de=null,te=Q.gutterMarkers;if(te&&(te=te[v.gutter]),h(F,C)){if(D&&te&&D.test(te.className))return;de=g(v.indicatorFolded)}else{var ue=s(C,0),le=B&&B(F,ue);if(le&&le.to.line-le.from.line>=R){if(w&&te&&w.test(te.className))return;de=g(v.indicatorOpen)}}!de&&!te||F.setGutterMarker(Q,v.gutter,de)})}function I(F){return new RegExp("(^|\\s)"+F+"(?:$|\\s)\\s*")}function T(F){var S=F.getViewport(),x=F.state.foldGutter;x&&(F.operation(function(){m(F,S.from,S.to)}),x.from=S.from,x.to=S.to)}function G(F,S,x){var v=F.state.foldGutter;if(v){var C=v.options;if(x==C.gutter){var R=h(F,S);R?R.clear():F.foldCode(s(S,0),C)}}}function L(F,S){S=="mode"&&V(F)}function V(F){var S=F.state.foldGutter;if(S){var x=S.options;S.from=S.to=0,clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){T(F)},x.foldOnChangeTimeSpan||600)}}function y(F){var S=F.state.foldGutter;if(S){var x=S.options;clearTimeout(S.changeUpdate),S.changeUpdate=setTimeout(function(){var v=F.getViewport();S.from==S.to||v.from-S.to>20||S.from-v.to>20?T(F):F.operation(function(){v.from<S.from&&(m(F,v.from,S.from),S.from=v.from),v.to>S.to&&(m(F,S.to,v.to),S.to=v.to)})},x.updateViewportTimeSpan||400)}}function M(F,S){var x=F.state.foldGutter;if(x){var v=S.line;v>=x.from&&v<x.to&&m(F,v,v+1)}}})});var rg=Se((eg,tg)=>{(function(n){typeof eg=="object"&&typeof tg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s=n.Pos;function a(x,v){return x.line-v.line||x.ch-v.ch}var u="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",h=u+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",g=new RegExp("<(/?)(["+u+"]["+h+"]*)","g");function m(x,v,C,R){this.line=v,this.ch=C,this.cm=x,this.text=x.getLine(v),this.min=R?Math.max(R.from,x.firstLine()):x.firstLine(),this.max=R?Math.min(R.to-1,x.lastLine()):x.lastLine()}function I(x,v){var C=x.cm.getTokenTypeAt(s(x.line,v));return C&&/\btag\b/.test(C)}function T(x){if(!(x.line>=x.max))return x.ch=0,x.text=x.cm.getLine(++x.line),!0}function G(x){if(!(x.line<=x.min))return x.text=x.cm.getLine(--x.line),x.ch=x.text.length,!0}function L(x){for(;;){var v=x.text.indexOf(">",x.ch);if(v==-1){if(T(x))continue;return}if(!I(x,v+1)){x.ch=v+1;continue}var C=x.text.lastIndexOf("/",v),R=C>-1&&!/\S/.test(x.text.slice(C+1,v));return x.ch=v+1,R?"selfClose":"regular"}}function V(x){for(;;){var v=x.ch?x.text.lastIndexOf("<",x.ch-1):-1;if(v==-1){if(G(x))continue;return}if(!I(x,v+1)){x.ch=v;continue}g.lastIndex=v,x.ch=v;var C=g.exec(x.text);if(C&&C.index==v)return C}}function y(x){for(;;){g.lastIndex=x.ch;var v=g.exec(x.text);if(!v){if(T(x))continue;return}if(!I(x,v.index+1)){x.ch=v.index+1;continue}return x.ch=v.index+v[0].length,v}}function M(x){for(;;){var v=x.ch?x.text.lastIndexOf(">",x.ch-1):-1;if(v==-1){if(G(x))continue;return}if(!I(x,v+1)){x.ch=v;continue}var C=x.text.lastIndexOf("/",v),R=C>-1&&!/\S/.test(x.text.slice(C+1,v));return x.ch=v+1,R?"selfClose":"regular"}}function F(x,v){for(var C=[];;){var R=y(x),B,D=x.line,w=x.ch-(R?R[0].length:0);if(!R||!(B=L(x)))return;if(B!="selfClose")if(R[1]){for(var Q=C.length-1;Q>=0;--Q)if(C[Q]==R[2]){C.length=Q;break}if(Q<0&&(!v||v==R[2]))return{tag:R[2],from:s(D,w),to:s(x.line,x.ch)}}else C.push(R[2])}}function S(x,v){for(var C=[];;){var R=M(x);if(!R)return;if(R=="selfClose"){V(x);continue}var B=x.line,D=x.ch,w=V(x);if(!w)return;if(w[1])C.push(w[2]);else{for(var Q=C.length-1;Q>=0;--Q)if(C[Q]==w[2]){C.length=Q;break}if(Q<0&&(!v||v==w[2]))return{tag:w[2],from:s(x.line,x.ch),to:s(B,D)}}}}n.registerHelper("fold","xml",function(x,v){for(var C=new m(x,v.line,0);;){var R=y(C);if(!R||C.line!=v.line)return;var B=L(C);if(!B)return;if(!R[1]&&B!="selfClose"){var D=s(C.line,C.ch),w=F(C,R[2]);return w&&a(w.from,D)>0?{from:D,to:w.from}:null}}}),n.findMatchingTag=function(x,v,C){var R=new m(x,v.line,v.ch,C);if(!(R.text.indexOf(">")==-1&&R.text.indexOf("<")==-1)){var B=L(R),D=B&&s(R.line,R.ch),w=B&&V(R);if(!(!B||!w||a(R,v)>0)){var Q={from:s(R.line,R.ch),to:D,tag:w[2]};return B=="selfClose"?{open:Q,close:null,at:"open"}:w[1]?{open:S(R,w[2]),close:Q,at:"close"}:(R=new m(x,D.line,D.ch,C),{open:Q,close:F(R,w[2]),at:"open"})}}},n.findEnclosingTag=function(x,v,C,R){for(var B=new m(x,v.line,v.ch,C);;){var D=S(B,R);if(!D)break;var w=new m(x,v.line,v.ch,C),Q=F(w,D.tag);if(Q)return{open:D,close:Q}}},n.scanForClosingTag=function(x,v,C,R){var B=new m(x,v.line,v.ch,R?{from:0,to:R}:null);return F(B,C)}})});var og=Se((ig,ng)=>{(function(n){typeof ig=="object"&&typeof ng=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";function s(a){return function(u,h){var g=h.line,m=u.getLine(g);function I(M){for(var F,S=h.ch,x=0;;){var v=S<=0?-1:m.lastIndexOf(M[0],S-1);if(v==-1){if(x==1)break;x=1,S=m.length;continue}if(x==1&&v<h.ch)break;if(F=u.getTokenTypeAt(n.Pos(g,v+1)),!/^(comment|string)/.test(F))return{ch:v+1,tokenType:F,pair:M};S=v-1}}function T(M){var F=1,S=u.lastLine(),x,v=M.ch,C;e:for(var R=g;R<=S;++R)for(var B=u.getLine(R),D=R==g?v:0;;){var w=B.indexOf(M.pair[0],D),Q=B.indexOf(M.pair[1],D);if(w<0&&(w=B.length),Q<0&&(Q=B.length),D=Math.min(w,Q),D==B.length)break;if(u.getTokenTypeAt(n.Pos(R,D+1))==M.tokenType){if(D==w)++F;else if(!--F){x=R,C=D;break e}}++D}return x==null||g==x?null:{from:n.Pos(g,v),to:n.Pos(x,C)}}for(var G=[],L=0;L<a.length;L++){var V=I(a[L]);V&&G.push(V)}G.sort(function(M,F){return M.ch-F.ch});for(var L=0;L<G.length;L++){var y=T(G[L]);if(y)return y}return null}}n.registerHelper("fold","brace",s([["{","}"],["[","]"]])),n.registerHelper("fold","brace-paren",s([["{","}"],["[","]"],["(",")"]])),n.registerHelper("fold","import",function(a,u){function h(L){if(L<a.firstLine()||L>a.lastLine())return null;var V=a.getTokenAt(n.Pos(L,1));if(/\S/.test(V.string)||(V=a.getTokenAt(n.Pos(L,V.end+1))),V.type!="keyword"||V.string!="import")return null;for(var y=L,M=Math.min(a.lastLine(),L+10);y<=M;++y){var F=a.getLine(y),S=F.indexOf(";");if(S!=-1)return{startCh:V.end,end:n.Pos(y,S)}}}var g=u.line,m=h(g),I;if(!m||h(g-1)||(I=h(g-2))&&I.end.line==g-1)return null;for(var T=m.end;;){var G=h(T.line+1);if(G==null)break;T=G.end}return{from:a.clipPos(n.Pos(g,m.startCh+1)),to:T}}),n.registerHelper("fold","include",function(a,u){function h(G){if(G<a.firstLine()||G>a.lastLine())return null;var L=a.getTokenAt(n.Pos(G,1));if(/\S/.test(L.string)||(L=a.getTokenAt(n.Pos(G,L.end+1))),L.type=="meta"&&L.string.slice(0,8)=="#include")return L.start+8}var g=u.line,m=h(g);if(m==null||h(g-1)!=null)return null;for(var I=g;;){var T=h(I+1);if(T==null)break;++I}return{from:n.Pos(g,m+1),to:a.clipPos(n.Pos(I))}})})});var lg=Se((sg,ag)=>{(function(n){typeof sg=="object"&&typeof ag=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s="CodeMirror-hint",a="CodeMirror-hint-active";n.showHint=function(S,x,v){if(!x)return S.showHint(v);v&&v.async&&(x.async=!0);var C={hint:x};if(v)for(var R in v)C[R]=v[R];return S.showHint(C)},n.defineExtension("showHint",function(S){S=m(this,this.getCursor("start"),S);var x=this.listSelections();if(!(x.length>1)){if(this.somethingSelected()){if(!S.hint.supportsSelection)return;for(var v=0;v<x.length;v++)if(x[v].head.line!=x[v].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var C=this.state.completionActive=new u(this,S);C.options.hint&&(n.signal(this,"startCompletion",this),C.update(!0))}}),n.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function u(S,x){if(this.cm=S,this.options=x,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;S.on("cursorActivity",this.activityFunc=function(){v.cursorActivity()})}}var h=window.requestAnimationFrame||function(S){return setTimeout(S,1e3/60)},g=window.cancelAnimationFrame||clearTimeout;u.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&&n.signal(this.data,"close"),this.widget&&this.widget.close(),n.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(S,x){var v=S.list[x],C=this;this.cm.operation(function(){v.hint?v.hint(C.cm,S,v):C.cm.replaceRange(I(v),v.from||S.from,v.to||S.to,"complete"),n.signal(S,"pick",v),C.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(g(this.debounce),this.debounce=0);var S=this.startPos;this.data&&(S=this.data.from);var x=this.cm.getCursor(),v=this.cm.getLine(x.line);if(x.line!=this.startPos.line||v.length-x.ch!=this.startLen-this.startPos.ch||x.ch<S.ch||this.cm.somethingSelected()||!x.ch||this.options.closeCharacters.test(v.charAt(x.ch-1)))this.close();else{var C=this;this.debounce=h(function(){C.update()}),this.widget&&this.widget.disable()}},update:function(S){if(this.tick!=null){var x=this,v=++this.tick;y(this.options.hint,this.cm,this.options,function(C){x.tick==v&&x.finishUpdate(C,S)})}},finishUpdate:function(S,x){this.data&&n.signal(this.data,"update");var v=this.widget&&this.widget.picked||x&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=S,S&&S.list.length&&(v&&S.list.length==1?this.pick(S,0):(this.widget=new L(this,S),n.signal(S,"shown")))}};function m(S,x,v){var C=S.options.hintOptions,R={};for(var B in F)R[B]=F[B];if(C)for(var B in C)C[B]!==void 0&&(R[B]=C[B]);if(v)for(var B in v)v[B]!==void 0&&(R[B]=v[B]);return R.hint.resolve&&(R.hint=R.hint.resolve(S,x)),R}function I(S){return typeof S=="string"?S:S.text}function T(S,x){var v={Up:function(){x.moveFocus(-1)},Down:function(){x.moveFocus(1)},PageUp:function(){x.moveFocus(-x.menuSize()+1,!0)},PageDown:function(){x.moveFocus(x.menuSize()-1,!0)},Home:function(){x.setFocus(0)},End:function(){x.setFocus(x.length-1)},Enter:x.pick,Tab:x.pick,Esc:x.close},C=/Mac/.test(navigator.platform);C&&(v["Ctrl-P"]=function(){x.moveFocus(-1)},v["Ctrl-N"]=function(){x.moveFocus(1)});var R=S.options.customKeys,B=R?{}:v;function D(de,te){var ue;typeof te!="string"?ue=function(le){return te(le,x)}:v.hasOwnProperty(te)?ue=v[te]:ue=te,B[de]=ue}if(R)for(var w in R)R.hasOwnProperty(w)&&D(w,R[w]);var Q=S.options.extraKeys;if(Q)for(var w in Q)Q.hasOwnProperty(w)&&D(w,Q[w]);return B}function G(S,x){for(;x&&x!=S;){if(x.nodeName.toUpperCase()==="LI"&&x.parentNode==S)return x;x=x.parentNode}}function L(S,x){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=S,this.data=x,this.picked=!1;var v=this,C=S.cm,R=C.getInputField().ownerDocument,B=R.defaultView||R.parentWindow,D=this.hints=R.createElement("ul");D.setAttribute("role","listbox"),D.setAttribute("aria-expanded","true"),D.id=this.id;var w=S.cm.options.theme;D.className="CodeMirror-hints "+w,this.selectedHint=x.selectedHint||0;for(var Q=x.list,de=0;de<Q.length;++de){var te=D.appendChild(R.createElement("li")),ue=Q[de],le=s+(de!=this.selectedHint?"":" "+a);ue.className!=null&&(le=ue.className+" "+le),te.className=le,de==this.selectedHint&&te.setAttribute("aria-selected","true"),te.id=this.id+"-"+de,te.setAttribute("role","option"),ue.render?ue.render(te,x,ue):te.appendChild(R.createTextNode(ue.displayText||I(ue))),te.hintId=de}var me=S.options.container||R.body,Y=C.cursorCoords(S.options.alignWithWord?x.from:null),Oe=Y.left,Be=Y.bottom,et=!0,je=0,Le=0;if(me!==R.body){var Tt=["absolute","relative","fixed"].indexOf(B.getComputedStyle(me).position)!==-1,At=Tt?me:me.offsetParent,Ae=At.getBoundingClientRect(),Ct=R.body.getBoundingClientRect();je=Ae.left-Ct.left-At.scrollLeft,Le=Ae.top-Ct.top-At.scrollTop}D.style.left=Oe-je+"px",D.style.top=Be-Le+"px";var Ie=B.innerWidth||Math.max(R.body.offsetWidth,R.documentElement.offsetWidth),Ht=B.innerHeight||Math.max(R.body.offsetHeight,R.documentElement.offsetHeight);me.appendChild(D),C.getInputField().setAttribute("aria-autocomplete","list"),C.getInputField().setAttribute("aria-owns",this.id),C.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var he=S.options.moveOnOverlap?D.getBoundingClientRect():new DOMRect,ze=S.options.paddingForScrollbar?D.scrollHeight>D.clientHeight+1:!1,De;setTimeout(function(){De=C.getScrollInfo()});var tt=he.bottom-Ht;if(tt>0){var Ue=he.bottom-he.top,Jt=he.top-(Y.bottom-Y.top)-2;Ht-he.top<Jt?(Ue>Jt&&(D.style.height=(Ue=Jt)+"px"),D.style.top=(Be=Y.top-Ue)-Le+"px",et=!1):D.style.height=Ht-he.top-2+"px"}var re=he.right-Ie;if(ze&&(re+=C.display.nativeBarWidth),re>0&&(he.right-he.left>Ie&&(D.style.width=Ie-5+"px",re-=he.right-he.left-Ie),D.style.left=(Oe=Math.max(Y.left-re-je,0))+"px"),ze)for(var k=D.firstChild;k;k=k.nextSibling)k.style.paddingRight=C.display.nativeBarWidth+"px";if(C.addKeyMap(this.keyMap=T(S,{moveFocus:function(ve,We){v.changeActive(v.selectedHint+ve,We)},setFocus:function(ve){v.changeActive(ve)},menuSize:function(){return v.screenAmount()},length:Q.length,close:function(){S.close()},pick:function(){v.pick()},data:x})),S.options.closeOnUnfocus){var Ze;C.on("blur",this.onBlur=function(){Ze=setTimeout(function(){S.close()},100)}),C.on("focus",this.onFocus=function(){clearTimeout(Ze)})}C.on("scroll",this.onScroll=function(){var ve=C.getScrollInfo(),We=C.getWrapperElement().getBoundingClientRect();De||(De=C.getScrollInfo());var jt=Be+De.top-ve.top,$=jt-(B.pageYOffset||(R.documentElement||R.body).scrollTop);if(et||($+=D.offsetHeight),$<=We.top||$>=We.bottom)return S.close();D.style.top=jt+"px",D.style.left=Oe+De.left-ve.left+"px"}),n.on(D,"dblclick",function(ve){var We=G(D,ve.target||ve.srcElement);We&&We.hintId!=null&&(v.changeActive(We.hintId),v.pick())}),n.on(D,"click",function(ve){var We=G(D,ve.target||ve.srcElement);We&&We.hintId!=null&&(v.changeActive(We.hintId),S.options.completeOnSingleClick&&v.pick())}),n.on(D,"mousedown",function(){setTimeout(function(){C.focus()},20)});var Te=this.getSelectedHintRange();return(Te.from!==0||Te.to!==0)&&this.scrollToActive(),n.signal(x,"select",Q[this.selectedHint],D.childNodes[this.selectedHint]),!0}L.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 S=this.completion.cm.getInputField();S.removeAttribute("aria-activedescendant"),S.removeAttribute("aria-owns");var x=this.completion.cm;this.completion.options.closeOnUnfocus&&(x.off("blur",this.onBlur),x.off("focus",this.onFocus)),x.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var S=this;this.keyMap={Enter:function(){S.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(S,x){if(S>=this.data.list.length?S=x?this.data.list.length-1:0:S<0&&(S=x?0:this.data.list.length-1),this.selectedHint!=S){var v=this.hints.childNodes[this.selectedHint];v&&(v.className=v.className.replace(" "+a,""),v.removeAttribute("aria-selected")),v=this.hints.childNodes[this.selectedHint=S],v.className+=" "+a,v.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",v.id),this.scrollToActive(),n.signal(this.data,"select",this.data.list[this.selectedHint],v)}},scrollToActive:function(){var S=this.getSelectedHintRange(),x=this.hints.childNodes[S.from],v=this.hints.childNodes[S.to],C=this.hints.firstChild;x.offsetTop<this.hints.scrollTop?this.hints.scrollTop=x.offsetTop-C.offsetTop:v.offsetTop+v.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=v.offsetTop+v.offsetHeight-this.hints.clientHeight+C.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var S=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-S),to:Math.min(this.data.list.length-1,this.selectedHint+S)}}};function V(S,x){if(!S.somethingSelected())return x;for(var v=[],C=0;C<x.length;C++)x[C].supportsSelection&&v.push(x[C]);return v}function y(S,x,v,C){if(S.async)S(x,C,v);else{var R=S(x,v);R&&R.then?R.then(C):C(R)}}function M(S,x){var v=S.getHelpers(x,"hint"),C;if(v.length){var R=function(B,D,w){var Q=V(B,v);function de(te){if(te==Q.length)return D(null);y(Q[te],B,w,function(ue){ue&&ue.list.length>0?D(ue):de(te+1)})}de(0)};return R.async=!0,R.supportsSelection=!0,R}else return(C=S.getHelper(S.getCursor(),"hintWords"))?function(B){return n.hint.fromList(B,{words:C})}:n.hint.anyword?function(B,D){return n.hint.anyword(B,D)}:function(){}}n.registerHelper("hint","auto",{resolve:M}),n.registerHelper("hint","fromList",function(S,x){var v=S.getCursor(),C=S.getTokenAt(v),R,B=n.Pos(v.line,C.start),D=v;C.start<v.ch&&/\w/.test(C.string.charAt(v.ch-C.start-1))?R=C.string.substr(0,v.ch-C.start):(R="",B=v);for(var w=[],Q=0;Q<x.words.length;Q++){var de=x.words[Q];de.slice(0,R.length)==R&&w.push(de)}if(w.length)return{list:w,from:B,to:D}}),n.commands.autocomplete=n.showHint;var F={hint:n.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};n.defineOption("hintOptions",null)})});var Tl=Se((ug,pg)=>{(function(n){typeof ug=="object"&&typeof pg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";var s=n.Pos;function a(x){var v=x.flags;return v??(x.ignoreCase?"i":"")+(x.global?"g":"")+(x.multiline?"m":"")}function u(x,v){for(var C=a(x),R=C,B=0;B<v.length;B++)R.indexOf(v.charAt(B))==-1&&(R+=v.charAt(B));return C==R?x:new RegExp(x.source,R)}function h(x){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(x.source)}function g(x,v,C){v=u(v,"g");for(var R=C.line,B=C.ch,D=x.lastLine();R<=D;R++,B=0){v.lastIndex=B;var w=x.getLine(R),Q=v.exec(w);if(Q)return{from:s(R,Q.index),to:s(R,Q.index+Q[0].length),match:Q}}}function m(x,v,C){if(!h(v))return g(x,v,C);v=u(v,"gm");for(var R,B=1,D=C.line,w=x.lastLine();D<=w;){for(var Q=0;Q<B&&!(D>w);Q++){var de=x.getLine(D++);R=R==null?de:R+`
|
|
31
|
-
|
|
32
|
-
`),
|
|
33
|
-
`),
|
|
34
|
-
`+
|
|
35
|
-
`),
|
|
36
|
-
`),Y=w+le.length,Oe=le[le.length-1].length;return{from:s(Y,Oe),to:s(Y+me.length-1,me.length==1?Oe+me[0].length:me[me.length-1].length),match:ue}}}}var L,V;String.prototype.normalize?(L=function(x){return x.normalize("NFD").toLowerCase()},V=function(x){return x.normalize("NFD")}):(L=function(x){return x.toLowerCase()},V=function(x){return x});function y(x,v,C,R){if(x.length==v.length)return C;for(var B=0,D=C+Math.max(0,x.length-v.length);;){if(B==D)return B;var w=B+D>>1,Q=R(x.slice(0,w)).length;if(Q==C)return w;Q>C?D=w:B=w+1}}function M(x,v,C,R){if(!v.length)return null;var B=R?L:V,D=B(v).split(/\r|\n\r?/);e:for(var w=C.line,Q=C.ch,de=x.lastLine()+1-D.length;w<=de;w++,Q=0){var te=x.getLine(w).slice(Q),ue=B(te);if(D.length==1){var le=ue.indexOf(D[0]);if(le==-1)continue e;var C=y(te,ue,le,B)+Q;return{from:s(w,y(te,ue,le,B)+Q),to:s(w,y(te,ue,le+D[0].length,B)+Q)}}else{var me=ue.length-D[0].length;if(ue.slice(me)!=D[0])continue e;for(var Y=1;Y<D.length-1;Y++)if(B(x.getLine(w+Y))!=D[Y])continue e;var Oe=x.getLine(w+D.length-1),Be=B(Oe),et=D[D.length-1];if(Be.slice(0,et.length)!=et)continue e;return{from:s(w,y(te,ue,me,B)+Q),to:s(w+D.length-1,y(Oe,Be,et.length,B))}}}}function F(x,v,C,R){if(!v.length)return null;var B=R?L:V,D=B(v).split(/\r|\n\r?/);e:for(var w=C.line,Q=C.ch,de=x.firstLine()-1+D.length;w>=de;w--,Q=-1){var te=x.getLine(w);Q>-1&&(te=te.slice(0,Q));var ue=B(te);if(D.length==1){var le=ue.lastIndexOf(D[0]);if(le==-1)continue e;return{from:s(w,y(te,ue,le,B)),to:s(w,y(te,ue,le+D[0].length,B))}}else{var me=D[D.length-1];if(ue.slice(0,me.length)!=me)continue e;for(var Y=1,C=w-D.length+1;Y<D.length-1;Y++)if(B(x.getLine(C+Y))!=D[Y])continue e;var Oe=x.getLine(w+1-D.length),Be=B(Oe);if(Be.slice(Be.length-D[0].length)!=D[0])continue e;return{from:s(w+1-D.length,y(Oe,Be,Oe.length-D[0].length,B)),to:s(w,y(te,ue,me.length,B))}}}}function S(x,v,C,R){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=x,C=C?x.clipPos(C):s(0,0),this.pos={from:C,to:C};var B;typeof R=="object"?B=R.caseFold:(B=R,R=null),typeof v=="string"?(B==null&&(B=!1),this.matches=function(D,w){return(D?F:M)(x,v,w,B)}):(v=u(v,"gm"),!R||R.multiline!==!1?this.matches=function(D,w){return(D?G:m)(x,v,w)}:this.matches=function(D,w){return(D?T:g)(x,v,w)})}S.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(x){var v=this.doc.clipPos(x?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(v=s(v.line,v.ch),x?(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++)),n.cmpPos(v,this.doc.clipPos(v))!=0))return this.atOccurrence=!1;var C=this.matches(x,v);if(this.afterEmptyMatch=C&&n.cmpPos(C.from,C.to)==0,C)return this.pos=C,this.atOccurrence=!0,this.pos.match||!0;var R=s(x?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:R,to:R},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(x,v){if(this.atOccurrence){var C=n.splitLines(x);this.doc.replaceRange(C,this.pos.from,this.pos.to,v),this.pos.to=s(this.pos.from.line+C.length-1,C[C.length-1].length+(C.length==1?this.pos.from.ch:0))}}},n.defineExtension("getSearchCursor",function(x,v,C){return new S(this.doc,x,v,C)}),n.defineDocExtension("getSearchCursor",function(x,v,C){return new S(this,x,v,C)}),n.defineExtension("selectMatches",function(x,v){for(var C=[],R=this.getSearchCursor(x,this.getCursor("from"),v);R.findNext()&&!(n.cmpPos(R.to(),this.getCursor("to"))>0);)C.push({anchor:R.from(),head:R.to()});C.length&&this.setSelections(C,0)})})});var dg=Se((cg,fg)=>{(function(n){typeof cg=="object"&&typeof fg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";n.defineExtension("annotateScrollbar",function(a){return typeof a=="string"&&(a={className:a}),new s(this,a)}),n.defineOption("scrollButtonHeight",0);function s(a,u){this.cm=a,this.options=u,this.buttonHeight=u.scrollButtonHeight||a.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=a.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function h(m){clearTimeout(g.doRedraw),g.doRedraw=setTimeout(function(){g.redraw()},m)}var g=this;a.on("refresh",this.resizeHandler=function(){clearTimeout(g.doUpdate),g.doUpdate=setTimeout(function(){g.computeScale()&&h(20)},100)}),a.on("markerAdded",this.resizeHandler),a.on("markerCleared",this.resizeHandler),u.listenForChanges!==!1&&a.on("changes",this.changeHandler=function(){h(250)})}s.prototype.computeScale=function(){var a=this.cm,u=(a.getWrapperElement().clientHeight-a.display.barHeight-this.buttonHeight*2)/a.getScrollerElement().scrollHeight;if(u!=this.hScale)return this.hScale=u,!0},s.prototype.update=function(a){this.annotations=a,this.redraw()},s.prototype.redraw=function(a){a!==!1&&this.computeScale();var u=this.cm,h=this.hScale,g=document.createDocumentFragment(),m=this.annotations,I=u.getOption("lineWrapping"),T=I&&u.defaultTextHeight()*1.5,G=null,L=null;function V(B,D){if(G!=B.line){G=B.line,L=u.getLineHandle(B.line);var w=u.getLineHandleVisualStart(L);w!=L&&(G=u.getLineNumber(w),L=w)}if(L.widgets&&L.widgets.length||I&&L.height>T)return u.charCoords(B,"local")[D?"top":"bottom"];var Q=u.heightAtLine(L,"local");return Q+(D?0:L.height)}var y=u.lastLine();if(u.display.barWidth)for(var M=0,F;M<m.length;M++){var S=m[M];if(!(S.to.line>y)){for(var x=F||V(S.from,!0)*h,v=V(S.to,!1)*h;M<m.length-1&&!(m[M+1].to.line>y||(F=V(m[M+1].from,!0)*h,F>v+.9));)S=m[++M],v=V(S.to,!1)*h;if(v!=x){var C=Math.max(v-x,3),R=g.appendChild(document.createElement("div"));R.style.cssText="position: absolute; right: 0px; width: "+Math.max(u.display.barWidth-1,2)+"px; top: "+(x+this.buttonHeight)+"px; height: "+C+"px",R.className=this.options.className,S.id&&R.setAttribute("annotation-id",S.id)}}}this.div.textContent="",this.div.appendChild(g)},s.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 Eg=Se((hg,gg)=>{(function(n){typeof hg=="object"&&typeof gg=="object"?n(Nt(),Tl(),dg()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],n):n(CodeMirror)})(function(n){"use strict";n.defineExtension("showMatchesOnScrollbar",function(h,g,m){return typeof m=="string"&&(m={className:m}),m||(m={}),new s(this,h,g,m)});function s(h,g,m,I){this.cm=h,this.options=I;var T={listenForChanges:!1};for(var G in I)T[G]=I[G];T.className||(T.className="CodeMirror-search-match"),this.annotation=h.annotateScrollbar(T),this.query=g,this.caseFold=m,this.gap={from:h.firstLine(),to:h.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var L=this;h.on("change",this.changeHandler=function(V,y){L.onChange(y)})}var a=1e3;s.prototype.findMatches=function(){if(this.gap){for(var h=0;h<this.matches.length;h++){var g=this.matches[h];if(g.from.line>=this.gap.to)break;g.to.line>=this.gap.from&&this.matches.splice(h--,1)}for(var m=this.cm.getSearchCursor(this.query,n.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),I=this.options&&this.options.maxMatches||a;m.findNext();){var g={from:m.from(),to:m.to()};if(g.from.line>=this.gap.to||(this.matches.splice(h++,0,g),this.matches.length>I))break}this.gap=null}};function u(h,g,m){return h<=g?h:Math.max(g,h+m)}s.prototype.onChange=function(h){var g=h.from.line,m=n.changeEnd(h).line,I=m-h.to.line;if(this.gap?(this.gap.from=Math.min(u(this.gap.from,g,I),h.from.line),this.gap.to=Math.max(u(this.gap.to,g,I),h.from.line)):this.gap={from:h.from.line,to:m+1},I)for(var T=0;T<this.matches.length;T++){var G=this.matches[T],L=u(G.from.line,g,I);L!=G.from.line&&(G.from=n.Pos(L,G.from.ch));var V=u(G.to.line,g,I);V!=G.to.line&&(G.to=n.Pos(V,G.to.ch))}clearTimeout(this.update);var y=this;this.update=setTimeout(function(){y.updateAfterChange()},250)},s.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},s.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var vg=Se((mg,xg)=>{(function(n){typeof mg=="object"&&typeof xg=="object"?n(Nt(),Eg()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./matchesonscrollbar"],n):n(CodeMirror)})(function(n){"use strict";var s={style:"matchhighlight",minChars:2,delay:100,wordsOnly:!1,annotateScrollbar:!1,showToken:!1,trim:!0};function a(y){this.options={};for(var M in s)this.options[M]=(y&&y.hasOwnProperty(M)?y:s)[M];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}n.defineOption("highlightSelectionMatches",!1,function(y,M,F){if(F&&F!=n.Init&&(I(y),clearTimeout(y.state.matchHighlighter.timeout),y.state.matchHighlighter=null,y.off("cursorActivity",u),y.off("focus",h)),M){var S=y.state.matchHighlighter=new a(M);y.hasFocus()?(S.active=!0,T(y)):y.on("focus",h),y.on("cursorActivity",u)}});function u(y){var M=y.state.matchHighlighter;(M.active||y.hasFocus())&&g(y,M)}function h(y){var M=y.state.matchHighlighter;M.active||(M.active=!0,g(y,M))}function g(y,M){clearTimeout(M.timeout),M.timeout=setTimeout(function(){T(y)},M.options.delay)}function m(y,M,F,S){var x=y.state.matchHighlighter;if(y.addOverlay(x.overlay=V(M,F,S)),x.options.annotateScrollbar&&y.showMatchesOnScrollbar){var v=F?new RegExp((/\w/.test(M.charAt(0))?"\\b":"")+M.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(M.charAt(M.length-1))?"\\b":"")):M;x.matchesonscroll=y.showMatchesOnScrollbar(v,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function I(y){var M=y.state.matchHighlighter;M.overlay&&(y.removeOverlay(M.overlay),M.overlay=null,M.matchesonscroll&&(M.matchesonscroll.clear(),M.matchesonscroll=null))}function T(y){y.operation(function(){var M=y.state.matchHighlighter;if(I(y),!y.somethingSelected()&&M.options.showToken){for(var F=M.options.showToken===!0?/[\w$]/:M.options.showToken,S=y.getCursor(),x=y.getLine(S.line),v=S.ch,C=v;v&&F.test(x.charAt(v-1));)--v;for(;C<x.length&&F.test(x.charAt(C));)++C;v<C&&m(y,x.slice(v,C),F,M.options.style);return}var R=y.getCursor("from"),B=y.getCursor("to");if(R.line==B.line&&!(M.options.wordsOnly&&!G(y,R,B))){var D=y.getRange(R,B);M.options.trim&&(D=D.replace(/^\s+|\s+$/g,"")),D.length>=M.options.minChars&&m(y,D,!1,M.options.style)}})}function G(y,M,F){var S=y.getRange(M,F);if(S.match(/^\w+$/)!==null){if(M.ch>0){var x={line:M.line,ch:M.ch-1},v=y.getRange(x,M);if(v.match(/\W/)===null)return!1}if(F.ch<y.getLine(M.line).length){var x={line:F.line,ch:F.ch+1},v=y.getRange(F,x);if(v.match(/\W/)===null)return!1}return!0}else return!1}function L(y,M){return(!y.start||!M.test(y.string.charAt(y.start-1)))&&(y.pos==y.string.length||!M.test(y.string.charAt(y.pos)))}function V(y,M,F){return{token:function(S){if(S.match(y)&&(!M||L(S,M)))return F;S.next(),S.skipTo(y.charAt(0))||S.skipToEnd()}}}})});var Tg=Se((Ig,Ng)=>{(function(n){typeof Ig=="object"&&typeof Ng=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){var s=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),a=n.Pos,u={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function h(L){return L&&L.bracketRegex||/[(){}[\]]/}function g(L,V,y){var M=L.getLineHandle(V.line),F=V.ch-1,S=y&&y.afterCursor;S==null&&(S=/(^| )cm-fat-cursor($| )/.test(L.getWrapperElement().className));var x=h(y),v=!S&&F>=0&&x.test(M.text.charAt(F))&&u[M.text.charAt(F)]||x.test(M.text.charAt(F+1))&&u[M.text.charAt(++F)];if(!v)return null;var C=v.charAt(1)==">"?1:-1;if(y&&y.strict&&C>0!=(F==V.ch))return null;var R=L.getTokenTypeAt(a(V.line,F+1)),B=m(L,a(V.line,F+(C>0?1:0)),C,R,y);return B==null?null:{from:a(V.line,F),to:B&&B.pos,match:B&&B.ch==v.charAt(0),forward:C>0}}function m(L,V,y,M,F){for(var S=F&&F.maxScanLineLength||1e4,x=F&&F.maxScanLines||1e3,v=[],C=h(F),R=y>0?Math.min(V.line+x,L.lastLine()+1):Math.max(L.firstLine()-1,V.line-x),B=V.line;B!=R;B+=y){var D=L.getLine(B);if(D){var w=y>0?0:D.length-1,Q=y>0?D.length:-1;if(!(D.length>S))for(B==V.line&&(w=V.ch-(y<0?1:0));w!=Q;w+=y){var de=D.charAt(w);if(C.test(de)&&(M===void 0||(L.getTokenTypeAt(a(B,w+1))||"")==(M||""))){var te=u[de];if(te&&te.charAt(1)==">"==y>0)v.push(de);else if(v.length)v.pop();else return{pos:a(B,w),ch:de}}}}}return B-y==(y>0?L.lastLine():L.firstLine())?!1:null}function I(L,V,y){for(var M=L.state.matchBrackets.maxHighlightLineLength||1e3,F=y&&y.highlightNonMatching,S=[],x=L.listSelections(),v=0;v<x.length;v++){var C=x[v].empty()&&g(L,x[v].head,y);if(C&&(C.match||F!==!1)&&L.getLine(C.from.line).length<=M){var R=C.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";S.push(L.markText(C.from,a(C.from.line,C.from.ch+1),{className:R})),C.to&&L.getLine(C.to.line).length<=M&&S.push(L.markText(C.to,a(C.to.line,C.to.ch+1),{className:R}))}}if(S.length){s&&L.state.focused&&L.focus();var B=function(){L.operation(function(){for(var D=0;D<S.length;D++)S[D].clear()})};if(V)setTimeout(B,800);else return B}}function T(L){L.operation(function(){L.state.matchBrackets.currentlyHighlighted&&(L.state.matchBrackets.currentlyHighlighted(),L.state.matchBrackets.currentlyHighlighted=null),L.state.matchBrackets.currentlyHighlighted=I(L,!1,L.state.matchBrackets)})}function G(L){L.state.matchBrackets&&L.state.matchBrackets.currentlyHighlighted&&(L.state.matchBrackets.currentlyHighlighted(),L.state.matchBrackets.currentlyHighlighted=null)}n.defineOption("matchBrackets",!1,function(L,V,y){y&&y!=n.Init&&(L.off("cursorActivity",T),L.off("focus",T),L.off("blur",G),G(L)),V&&(L.state.matchBrackets=typeof V=="object"?V:{},L.on("cursorActivity",T),L.on("focus",T),L.on("blur",G))}),n.defineExtension("matchBrackets",function(){I(this,!0)}),n.defineExtension("findMatchingBracket",function(L,V,y){return(y||typeof V=="boolean")&&(y?(y.strict=V,V=y):V=V?{strict:!0}:null),g(this,L,V)}),n.defineExtension("scanForBracket",function(L,V,y,M){return m(this,L,V,y,M)})})});var Sg=Se((Ag,Cg)=>{(function(n){typeof Ag=="object"&&typeof Cg=="object"?n(Nt()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],n):n(CodeMirror)})(function(n){"use strict";n.runMode=function(s,a,u,h){var g=n.getMode(n.defaults,a),m=h&&h.tabSize||n.defaults.tabSize;if(u.appendChild){var I=/MSIE \d/.test(navigator.userAgent),T=I&&(document.documentMode==null||document.documentMode<9),G=u,L=0;G.textContent="",u=function(v,C){if(v==`
|
|
37
|
-
`){
|
|
38
|
-
`);var
|
|
39
|
-
`,{line:0,ch:0}),n.collapsePrefixes(!1)}function Up(n,s){var a=function(h){return h.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var u in s)n.setValue(n.getValue().replace(new RegExp("PREFIX\\s*"+u+":\\s*"+a("<"+s[u]+">")+"\\s*","ig"),""));n.collapsePrefixes(!1)}function Fp(n){return n.getTokenAt({line:n.getDoc().lastLine(),ch:n.getDoc().getLine(n.getDoc().lastLine()).length},!0).state.prefixes}var{entries:kp,setPrototypeOf:Bp,isFrozen:Um,getPrototypeOf:Fm,getOwnPropertyDescriptor:Bm}=Object,{freeze:Ut,seal:$t,create:ka}=Object,{apply:Za,construct:Ha}=typeof Reflect<"u"&&Reflect;Ut||(Ut=function(s){return s});$t||($t=function(s){return s});Za||(Za=function(s,a){for(var u=arguments.length,h=new Array(u>2?u-2:0),g=2;g<u;g++)h[g-2]=arguments[g];return s.apply(a,h)});Ha||(Ha=function(s){for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];return new s(...u)});var Ko=Ft(Array.prototype.forEach),Dm=Ft(Array.prototype.lastIndexOf),Dp=Ft(Array.prototype.pop),jn=Ft(Array.prototype.push),Mm=Ft(Array.prototype.splice),es=Ft(String.prototype.toLowerCase),Ma=Ft(String.prototype.toString),Pa=Ft(String.prototype.match),zn=Ft(String.prototype.replace),Pm=Ft(String.prototype.indexOf),Vm=Ft(String.prototype.trim),ar=Ft(Object.prototype.hasOwnProperty),Gt=Ft(RegExp.prototype.test),qn=wm(TypeError);function Ft(n){return function(s){s instanceof RegExp&&(s.lastIndex=0);for(var a=arguments.length,u=new Array(a>1?a-1:0),h=1;h<a;h++)u[h-1]=arguments[h];return Za(n,s,u)}}function wm(n){return function(){for(var s=arguments.length,a=new Array(s),u=0;u<s;u++)a[u]=arguments[u];return Ha(n,a)}}function xe(n,s){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:es;Bp&&Bp(n,null);let u=s.length;for(;u--;){let h=s[u];if(typeof h=="string"){let g=a(h);g!==h&&(Um(s)||(s[u]=g),h=g)}n[h]=!0}return n}function _m(n){for(let s=0;s<n.length;s++)ar(n,s)||(n[s]=null);return n}function yr(n){let s=ka(null);for(let[a,u]of kp(n))ar(n,a)&&(Array.isArray(u)?s[a]=_m(u):u&&typeof u=="object"&&u.constructor===Object?s[a]=yr(u):s[a]=u);return s}function Kn(n,s){for(;n!==null;){let u=Bm(n,s);if(u){if(u.get)return Ft(u.get);if(typeof u.value=="function")return Ft(u.value)}n=Fm(n)}function a(){return null}return a}var Mp=Ut(["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"]),Va=Ut(["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"]),wa=Ut(["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"]),Wm=Ut(["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"]),_a=Ut(["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"]),km=Ut(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Pp=Ut(["#text"]),Vp=Ut(["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"]),Wa=Ut(["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"]),wp=Ut(["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"]),$o=Ut(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Zm=$t(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Hm=$t(/<%[\w\W]*|[\w\W]*%>/gm),Qm=$t(/\$\{[\w\W]*/gm),Ym=$t(/^data-[\-\w.\u00B7-\uFFFF]+$/),Xm=$t(/^aria-[\-\w]+$/),Zp=$t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Jm=$t(/^(?:\w+script|data):/i),jm=$t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Hp=$t(/^html$/i),zm=$t(/^[a-z][.\w]*(-[.\w]+)+$/i),_p=Object.freeze({__proto__:null,ARIA_ATTR:Xm,ATTR_WHITESPACE:jm,CUSTOM_ELEMENT:zm,DATA_ATTR:Ym,DOCTYPE_NAME:Hp,ERB_EXPR:Hm,IS_ALLOWED_URI:Zp,IS_SCRIPT_OR_DATA:Jm,MUSTACHE_EXPR:Zm,TMPLIT_EXPR:Qm}),$n={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qm=function(){return typeof window>"u"?null:window},Km=function(s,a){if(typeof s!="object"||typeof s.createPolicy!="function")return null;let u=null,h="data-tt-policy-suffix";a&&a.hasAttribute(h)&&(u=a.getAttribute(h));let g="dompurify"+(u?"#"+u:"");try{return s.createPolicy(g,{createHTML(m){return m},createScriptURL(m){return m}})}catch{return console.warn("TrustedTypes policy "+g+" could not be created."),null}},Wp=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Qp(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:qm(),s=oe=>Qp(oe);if(s.version="3.3.0",s.removed=[],!n||!n.document||n.document.nodeType!==$n.document||!n.Element)return s.isSupported=!1,s;let{document:a}=n,u=a,h=u.currentScript,{DocumentFragment:g,HTMLTemplateElement:m,Node:I,Element:T,NodeFilter:G,NamedNodeMap:L=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:V,DOMParser:y,trustedTypes:M}=n,F=T.prototype,S=Kn(F,"cloneNode"),x=Kn(F,"remove"),v=Kn(F,"nextSibling"),C=Kn(F,"childNodes"),R=Kn(F,"parentNode");if(typeof m=="function"){let oe=a.createElement("template");oe.content&&oe.content.ownerDocument&&(a=oe.content.ownerDocument)}let B,D="",{implementation:w,createNodeIterator:Q,createDocumentFragment:de,getElementsByTagName:te}=a,{importNode:ue}=u,le=Wp();s.isSupported=typeof kp=="function"&&typeof R=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:me,ERB_EXPR:Y,TMPLIT_EXPR:Oe,DATA_ATTR:Be,ARIA_ATTR:et,IS_SCRIPT_OR_DATA:je,ATTR_WHITESPACE:Le,CUSTOM_ELEMENT:Tt}=_p,{IS_ALLOWED_URI:At}=_p,Ae=null,Ct=xe({},[...Mp,...Va,...wa,..._a,...Pp]),Ie=null,Ht=xe({},[...Vp,...Wa,...wp,...$o]),he=Object.seal(ka(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}})),ze=null,De=null,tt=Object.seal(ka(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),Ue=!0,Jt=!0,re=!1,k=!0,Ze=!1,Te=!0,ve=!1,We=!1,jt=!1,$=!1,Qt=!1,dt=!1,Pt=!0,Ur=!1,ti="user-content-",tr=!0,ie=!1,He={},zt=null,qt=xe({},["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"]),Kt=null,Fr=xe({},["audio","video","img","source","image","track"]),vn=null,Br=xe({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),pr="http://www.w3.org/1998/Math/MathML",Ai="http://www.w3.org/2000/svg",rt="http://www.w3.org/1999/xhtml",vr=rt,se=!1,ri=null,St=xe({},[pr,Ai,rt],Ma),Fe=xe({},["mi","mo","mn","ms","mtext"]),Ve=xe({},["annotation-xml"]),fo=xe({},["title","style","font","a","script"]),pt=null,Dr=["application/xhtml+xml","text/html"],ht="text/html",Ye=null,cr=null,ii=a.createElement("form"),Ci=function(b){return b instanceof RegExp||b instanceof Function},Si=function(){let b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(cr&&cr===b)){if((!b||typeof b!="object")&&(b={}),b=yr(b),pt=Dr.indexOf(b.PARSER_MEDIA_TYPE)===-1?ht:b.PARSER_MEDIA_TYPE,Ye=pt==="application/xhtml+xml"?Ma:es,Ae=ar(b,"ALLOWED_TAGS")?xe({},b.ALLOWED_TAGS,Ye):Ct,Ie=ar(b,"ALLOWED_ATTR")?xe({},b.ALLOWED_ATTR,Ye):Ht,ri=ar(b,"ALLOWED_NAMESPACES")?xe({},b.ALLOWED_NAMESPACES,Ma):St,vn=ar(b,"ADD_URI_SAFE_ATTR")?xe(yr(Br),b.ADD_URI_SAFE_ATTR,Ye):Br,Kt=ar(b,"ADD_DATA_URI_TAGS")?xe(yr(Fr),b.ADD_DATA_URI_TAGS,Ye):Fr,zt=ar(b,"FORBID_CONTENTS")?xe({},b.FORBID_CONTENTS,Ye):qt,ze=ar(b,"FORBID_TAGS")?xe({},b.FORBID_TAGS,Ye):yr({}),De=ar(b,"FORBID_ATTR")?xe({},b.FORBID_ATTR,Ye):yr({}),He=ar(b,"USE_PROFILES")?b.USE_PROFILES:!1,Ue=b.ALLOW_ARIA_ATTR!==!1,Jt=b.ALLOW_DATA_ATTR!==!1,re=b.ALLOW_UNKNOWN_PROTOCOLS||!1,k=b.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Ze=b.SAFE_FOR_TEMPLATES||!1,Te=b.SAFE_FOR_XML!==!1,ve=b.WHOLE_DOCUMENT||!1,$=b.RETURN_DOM||!1,Qt=b.RETURN_DOM_FRAGMENT||!1,dt=b.RETURN_TRUSTED_TYPE||!1,jt=b.FORCE_BODY||!1,Pt=b.SANITIZE_DOM!==!1,Ur=b.SANITIZE_NAMED_PROPS||!1,tr=b.KEEP_CONTENT!==!1,ie=b.IN_PLACE||!1,At=b.ALLOWED_URI_REGEXP||Zp,vr=b.NAMESPACE||rt,Fe=b.MATHML_TEXT_INTEGRATION_POINTS||Fe,Ve=b.HTML_INTEGRATION_POINTS||Ve,he=b.CUSTOM_ELEMENT_HANDLING||{},b.CUSTOM_ELEMENT_HANDLING&&Ci(b.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(he.tagNameCheck=b.CUSTOM_ELEMENT_HANDLING.tagNameCheck),b.CUSTOM_ELEMENT_HANDLING&&Ci(b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(he.attributeNameCheck=b.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),b.CUSTOM_ELEMENT_HANDLING&&typeof b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=b.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ze&&(Jt=!1),Qt&&($=!0),He&&(Ae=xe({},Pp),Ie=[],He.html===!0&&(xe(Ae,Mp),xe(Ie,Vp)),He.svg===!0&&(xe(Ae,Va),xe(Ie,Wa),xe(Ie,$o)),He.svgFilters===!0&&(xe(Ae,wa),xe(Ie,Wa),xe(Ie,$o)),He.mathMl===!0&&(xe(Ae,_a),xe(Ie,wp),xe(Ie,$o))),b.ADD_TAGS&&(typeof b.ADD_TAGS=="function"?tt.tagCheck=b.ADD_TAGS:(Ae===Ct&&(Ae=yr(Ae)),xe(Ae,b.ADD_TAGS,Ye))),b.ADD_ATTR&&(typeof b.ADD_ATTR=="function"?tt.attributeCheck=b.ADD_ATTR:(Ie===Ht&&(Ie=yr(Ie)),xe(Ie,b.ADD_ATTR,Ye))),b.ADD_URI_SAFE_ATTR&&xe(vn,b.ADD_URI_SAFE_ATTR,Ye),b.FORBID_CONTENTS&&(zt===qt&&(zt=yr(zt)),xe(zt,b.FORBID_CONTENTS,Ye)),tr&&(Ae["#text"]=!0),ve&&xe(Ae,["html","head","body"]),Ae.table&&(xe(Ae,["tbody"]),delete ze.tbody),b.TRUSTED_TYPES_POLICY){if(typeof b.TRUSTED_TYPES_POLICY.createHTML!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof b.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw qn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=b.TRUSTED_TYPES_POLICY,D=B.createHTML("")}else B===void 0&&(B=Km(M,h)),B!==null&&typeof D=="string"&&(D=B.createHTML(""));Ut&&Ut(b),cr=b}},ho=xe({},[...Va,...wa,...Wm]),Li=xe({},[..._a,...km]),Ms=function(b){let H=R(b);(!H||!H.tagName)&&(H={namespaceURI:vr,tagName:"template"});let ee=es(b.tagName),Re=es(H.tagName);return ri[b.namespaceURI]?b.namespaceURI===Ai?H.namespaceURI===rt?ee==="svg":H.namespaceURI===pr?ee==="svg"&&(Re==="annotation-xml"||Fe[Re]):!!ho[ee]:b.namespaceURI===pr?H.namespaceURI===rt?ee==="math":H.namespaceURI===Ai?ee==="math"&&Ve[Re]:!!Li[ee]:b.namespaceURI===rt?H.namespaceURI===Ai&&!Ve[Re]||H.namespaceURI===pr&&!Fe[Re]?!1:!Li[ee]&&(fo[ee]||!ho[ee]):!!(pt==="application/xhtml+xml"&&ri[b.namespaceURI]):!1},Vt=function(b){jn(s.removed,{element:b});try{R(b).removeChild(b)}catch{x(b)}},Ir=function(b,H){try{jn(s.removed,{attribute:H.getAttributeNode(b),from:H})}catch{jn(s.removed,{attribute:null,from:H})}if(H.removeAttribute(b),b==="is")if($||Qt)try{Vt(H)}catch{}else try{H.setAttribute(b,"")}catch{}},Ri=function(b){let H=null,ee=null;if(jt)b="<remove></remove>"+b;else{let ge=Pa(b,/^[\r\n\t ]+/);ee=ge&&ge[0]}pt==="application/xhtml+xml"&&vr===rt&&(b='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+b+"</body></html>");let Re=B?B.createHTML(b):b;if(vr===rt)try{H=new y().parseFromString(Re,pt)}catch{}if(!H||!H.documentElement){H=w.createDocument(vr,"template",null);try{H.documentElement.innerHTML=se?D:Re}catch{}}let it=H.body||H.documentElement;return b&&ee&&it.insertBefore(a.createTextNode(ee),it.childNodes[0]||null),vr===rt?te.call(H,ve?"html":"body")[0]:ve?H.documentElement:it},go=function(b){return Q.call(b.ownerDocument||b,b,G.SHOW_ELEMENT|G.SHOW_COMMENT|G.SHOW_TEXT|G.SHOW_PROCESSING_INSTRUCTION|G.SHOW_CDATA_SECTION,null)},In=function(b){return b instanceof V&&(typeof b.nodeName!="string"||typeof b.textContent!="string"||typeof b.removeChild!="function"||!(b.attributes instanceof L)||typeof b.removeAttribute!="function"||typeof b.setAttribute!="function"||typeof b.namespaceURI!="string"||typeof b.insertBefore!="function"||typeof b.hasChildNodes!="function")},yi=function(b){return typeof I=="function"&&b instanceof I};function rr(oe,b,H){Ko(oe,ee=>{ee.call(s,b,H,cr)})}let bi=function(b){let H=null;if(rr(le.beforeSanitizeElements,b,null),In(b))return Vt(b),!0;let ee=Ye(b.nodeName);if(rr(le.uponSanitizeElement,b,{tagName:ee,allowedTags:Ae}),Te&&b.hasChildNodes()&&!yi(b.firstElementChild)&&Gt(/<[/\w!]/g,b.innerHTML)&&Gt(/<[/\w!]/g,b.textContent)||b.nodeType===$n.progressingInstruction||Te&&b.nodeType===$n.comment&&Gt(/<[/\w]/g,b.data))return Vt(b),!0;if(!(tt.tagCheck instanceof Function&&tt.tagCheck(ee))&&(!Ae[ee]||ze[ee])){if(!ze[ee]&&Eo(ee)&&(he.tagNameCheck instanceof RegExp&&Gt(he.tagNameCheck,ee)||he.tagNameCheck instanceof Function&&he.tagNameCheck(ee)))return!1;if(tr&&!zt[ee]){let Re=R(b)||b.parentNode,it=C(b)||b.childNodes;if(it&&Re){let ge=it.length;for(let q=ge-1;q>=0;--q){let gt=S(it[q],!0);gt.__removalCount=(b.__removalCount||0)+1,Re.insertBefore(gt,v(b))}}}return Vt(b),!0}return b instanceof T&&!Ms(b)||(ee==="noscript"||ee==="noembed"||ee==="noframes")&&Gt(/<\/no(script|embed|frames)/i,b.innerHTML)?(Vt(b),!0):(Ze&&b.nodeType===$n.text&&(H=b.textContent,Ko([me,Y,Oe],Re=>{H=zn(H,Re," ")}),b.textContent!==H&&(jn(s.removed,{element:b.cloneNode()}),b.textContent=H)),rr(le.afterSanitizeElements,b,null),!1)},Nr=function(b,H,ee){if(Pt&&(H==="id"||H==="name")&&(ee in a||ee in ii))return!1;if(!(Jt&&!De[H]&&Gt(Be,H))){if(!(Ue&&Gt(et,H))){if(!(tt.attributeCheck instanceof Function&&tt.attributeCheck(H,b))){if(!Ie[H]||De[H]){if(!(Eo(b)&&(he.tagNameCheck instanceof RegExp&&Gt(he.tagNameCheck,b)||he.tagNameCheck instanceof Function&&he.tagNameCheck(b))&&(he.attributeNameCheck instanceof RegExp&&Gt(he.attributeNameCheck,H)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(H,b))||H==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&Gt(he.tagNameCheck,ee)||he.tagNameCheck instanceof Function&&he.tagNameCheck(ee))))return!1}else if(!vn[H]){if(!Gt(At,zn(ee,Le,""))){if(!((H==="src"||H==="xlink:href"||H==="href")&&b!=="script"&&Pm(ee,"data:")===0&&Kt[b])){if(!(re&&!Gt(je,zn(ee,Le,"")))){if(ee)return!1}}}}}}}return!0},Eo=function(b){return b!=="annotation-xml"&&Pa(b,Tt)},mo=function(b){rr(le.beforeSanitizeAttributes,b,null);let{attributes:H}=b;if(!H||In(b))return;let ee={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0},Re=H.length;for(;Re--;){let it=H[Re],{name:ge,namespaceURI:q,value:gt}=it,fr=Ye(ge),wt=gt,pe=ge==="value"?wt:Vm(wt);if(ee.attrName=fr,ee.attrValue=pe,ee.keepAttr=!0,ee.forceKeepAttr=void 0,rr(le.uponSanitizeAttribute,b,ee),pe=ee.attrValue,Ur&&(fr==="id"||fr==="name")&&(Ir(ge,b),pe=ti+pe),Te&&Gt(/((--!?|])>)|<\/(style|title|textarea)/i,pe)){Ir(ge,b);continue}if(fr==="attributename"&&Pa(pe,"href")){Ir(ge,b);continue}if(ee.forceKeepAttr)continue;if(!ee.keepAttr){Ir(ge,b);continue}if(!k&&Gt(/\/>/i,pe)){Ir(ge,b);continue}Ze&&Ko([me,Y,Oe],Mr=>{pe=zn(pe,Mr," ")});let dr=Ye(b.nodeName);if(!Nr(dr,fr,pe)){Ir(ge,b);continue}if(B&&typeof M=="object"&&typeof M.getAttributeType=="function"&&!q)switch(M.getAttributeType(dr,fr)){case"TrustedHTML":{pe=B.createHTML(pe);break}case"TrustedScriptURL":{pe=B.createScriptURL(pe);break}}if(pe!==wt)try{q?b.setAttributeNS(q,ge,pe):b.setAttribute(ge,pe),In(b)?Vt(b):Dp(s.removed)}catch{Ir(ge,b)}}rr(le.afterSanitizeAttributes,b,null)},Oi=function oe(b){let H=null,ee=go(b);for(rr(le.beforeSanitizeShadowDOM,b,null);H=ee.nextNode();)rr(le.uponSanitizeShadowNode,H,null),bi(H),mo(H),H.content instanceof g&&oe(H.content);rr(le.afterSanitizeShadowDOM,b,null)};return s.sanitize=function(oe){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},H=null,ee=null,Re=null,it=null;if(se=!oe,se&&(oe="<!-->"),typeof oe!="string"&&!yi(oe))if(typeof oe.toString=="function"){if(oe=oe.toString(),typeof oe!="string")throw qn("dirty is not a string, aborting")}else throw qn("toString is not a function");if(!s.isSupported)return oe;if(We||Si(b),s.removed=[],typeof oe=="string"&&(ie=!1),ie){if(oe.nodeName){let gt=Ye(oe.nodeName);if(!Ae[gt]||ze[gt])throw qn("root node is forbidden and cannot be sanitized in-place")}}else if(oe instanceof I)H=Ri("<!---->"),ee=H.ownerDocument.importNode(oe,!0),ee.nodeType===$n.element&&ee.nodeName==="BODY"||ee.nodeName==="HTML"?H=ee:H.appendChild(ee);else{if(!$&&!Ze&&!ve&&oe.indexOf("<")===-1)return B&&dt?B.createHTML(oe):oe;if(H=Ri(oe),!H)return $?null:dt?D:""}H&&jt&&Vt(H.firstChild);let ge=go(ie?oe:H);for(;Re=ge.nextNode();)bi(Re),mo(Re),Re.content instanceof g&&Oi(Re.content);if(ie)return oe;if($){if(Qt)for(it=de.call(H.ownerDocument);H.firstChild;)it.appendChild(H.firstChild);else it=H;return(Ie.shadowroot||Ie.shadowrootmode)&&(it=ue.call(u,it,!0)),it}let q=ve?H.outerHTML:H.innerHTML;return ve&&Ae["!doctype"]&&H.ownerDocument&&H.ownerDocument.doctype&&H.ownerDocument.doctype.name&&Gt(Hp,H.ownerDocument.doctype.name)&&(q="<!DOCTYPE "+H.ownerDocument.doctype.name+`>
|
|
40
|
-
`+q),Ze&&Ko([me,Y,Oe],gt=>{q=zn(q,gt," ")}),B&&dt?B.createHTML(q):q},s.setConfig=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Si(oe),We=!0},s.clearConfig=function(){cr=null,We=!1},s.isValidAttribute=function(oe,b,H){cr||Si({});let ee=Ye(oe),Re=Ye(b);return Nr(ee,Re,H)},s.addHook=function(oe,b){typeof b=="function"&&jn(le[oe],b)},s.removeHook=function(oe,b){if(b!==void 0){let H=Dm(le[oe],b);return H===-1?void 0:Mm(le[oe],H,1)[0]}return Dp(le[oe])},s.removeHooks=function(oe){le[oe]=[]},s.removeAllHooks=function(){le=Wp()},s}var Yp=Qp();var lr=ft(Ac()),mi=class{constructor(s){this.namespace=s}set(s,a,u,h){if(lr.default.enabled&&(this.removeExpiredKeys(),s&&a!==void 0)){a.documentElement&&(a=new XMLSerializer().serializeToString(a.documentElement));try{lr.default.set(s,{namespace:this.namespace,val:a,exp:u,time:new Date().getTime()/1e3})}catch(g){if(g instanceof Error){let m=g;if(m.quotaExceeded=rv(g),m.quotaExceeded&&h)h(g);else throw m}throw g}}}remove(s){lr.default.enabled&&s&&lr.default.remove(s)}removeExpiredKeys(){lr.default.enabled&&lr.default.each((s,a)=>{s&&s.exp&&new Date().getTime()/1e3-s.time>s.exp&&this.remove(a)})}removeAll(){lr.default.enabled}removeNamespace(){lr.default.each((s,a)=>{s.namespace&&s.namespace===this.namespace&&this.remove(a)})}get(s){if(lr.default.enabled&&s)if(this.removeExpiredKeys(),s){var a=lr.default.get(s);return a?a.val:void 0}else return}};function rv(n){var s=!1;if(n)if(n.code)switch(n.code){case 22:s=!0;break;case 1014:n.name==="NS_ERROR_DOM_QUOTA_REACHED"&&(s=!0);break}else n.number===-2147024882&&(s=!0);return s}var{sanitize:gS}=Yp;function xi(n){if(n&&n.trim().indexOf("<svg")==0){var s=new DOMParser,a=s.parseFromString(n,"text/xml"),u=a.documentElement;u.setAttribute("aria-hidden","true");var h=document.createElement("div");return h.className="svgImg",h.appendChild(u),h}throw new Error("No svg string given. Cannot draw")}function Cc(n,s){if(n)return n.classList?n.classList.contains(s):!!n.className.match(new RegExp("(\\s|^)"+s+"(\\s|$)"))}function Bt(n,...s){if(n)for(let a of s)n.classList?n.classList.add(a):Cc(n,a)||(n.className+=" "+a)}function no(n,s){if(n){if(n.classList)n.classList.remove(s);else if(Cc(n,s)){var a=new RegExp("(\\s|^)"+s+"(\\s|$)");n.className=n.className.replace(a," ")}}}var Ds=ft(ts());function rs(n,s,a){var u;s.onmouseover=function(){u||(u=document.createElement("div"),u.className="yasqe_tooltip"),u.style.display="block",u.innerHTML=a,s.appendChild(u)},s.onmouseout=function(){u&&(u.style.display="none"),u.innerHTML=a}}var gl={};Tp(gl,{executeQuery:()=>dl,getAcceptHeader:()=>Nh,getAjaxConfig:()=>fl,getAsCurlString:()=>hl,getUrlArguments:()=>Ih});var fv=typeof global=="object"&&global&&global.Object===Object&&global,is=fv;var dv=typeof self=="object"&&self&&self.Object===Object&&self,hv=is||dv||Function("return this")(),Ke=hv;var gv=Ke.Symbol,Dt=gv;var Zc=Object.prototype,Ev=Zc.hasOwnProperty,mv=Zc.toString,oo=Dt?Dt.toStringTag:void 0;function xv(n){var s=Ev.call(n,oo),a=n[oo];try{n[oo]=void 0;var u=!0}catch{}var h=mv.call(n);return u&&(s?n[oo]=a:delete n[oo]),h}var Hc=xv;var vv=Object.prototype,Iv=vv.toString;function Nv(n){return Iv.call(n)}var Qc=Nv;var Tv="[object Null]",Av="[object Undefined]",Yc=Dt?Dt.toStringTag:void 0;function Cv(n){return n==null?n===void 0?Av:Tv:Yc&&Yc in Object(n)?Hc(n):Qc(n)}var Xt=Cv;function Sv(n){return n!=null&&typeof n=="object"}var Mt=Sv;var Lv="[object Symbol]";function Rv(n){return typeof n=="symbol"||Mt(n)&&Xt(n)==Lv}var ur=Rv;function yv(n,s){for(var a=-1,u=n==null?0:n.length,h=Array(u);++a<u;)h[a]=s(n[a],a,n);return h}var en=yv;var bv=Array.isArray,_e=bv;var Ov=1/0,Xc=Dt?Dt.prototype:void 0,Jc=Xc?Xc.toString:void 0;function jc(n){if(typeof n=="string")return n;if(_e(n))return en(n,jc)+"";if(ur(n))return Jc?Jc.call(n):"";var s=n+"";return s=="0"&&1/n==-Ov?"-0":s}var zc=jc;var Gv=/\s/;function Uv(n){for(var s=n.length;s--&&Gv.test(n.charAt(s)););return s}var qc=Uv;var Fv=/^\s+/;function Bv(n){return n&&n.slice(0,qc(n)+1).replace(Fv,"")}var Kc=Bv;function Dv(n){var s=typeof n;return n!=null&&(s=="object"||s=="function")}var ut=Dv;var $c=NaN,Mv=/^[-+]0x[0-9a-f]+$/i,Pv=/^0b[01]+$/i,Vv=/^0o[0-7]+$/i,wv=parseInt;function _v(n){if(typeof n=="number")return n;if(ur(n))return $c;if(ut(n)){var s=typeof n.valueOf=="function"?n.valueOf():n;n=ut(s)?s+"":s}if(typeof n!="string")return n===0?n:+n;n=Kc(n);var a=Pv.test(n);return a||Vv.test(n)?wv(n.slice(2),a?2:8):Mv.test(n)?$c:+n}var ef=_v;var tf=1/0,Wv=17976931348623157e292;function kv(n){if(!n)return n===0?n:0;if(n=ef(n),n===tf||n===-tf){var s=n<0?-1:1;return s*Wv}return n===n?n:0}var rf=kv;function Zv(n){var s=rf(n),a=s%1;return s===s?a?s-a:s:0}var nf=Zv;function Hv(n){return n}var Xr=Hv;var Qv="[object AsyncFunction]",Yv="[object Function]",Xv="[object GeneratorFunction]",Jv="[object Proxy]";function jv(n){if(!ut(n))return!1;var s=Xt(n);return s==Yv||s==Xv||s==Qv||s==Jv}var $e=jv;var zv=Ke["__core-js_shared__"],ns=zv;var of=function(){var n=/[^.]+$/.exec(ns&&ns.keys&&ns.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function qv(n){return!!of&&of in n}var sf=qv;var Kv=Function.prototype,$v=Kv.toString;function eI(n){if(n!=null){try{return $v.call(n)}catch{}try{return n+""}catch{}}return""}var br=eI;var tI=/[\\^$.*+?()[\]{}|]/g,rI=/^\[object .+?Constructor\]$/,iI=Function.prototype,nI=Object.prototype,oI=iI.toString,sI=nI.hasOwnProperty,aI=RegExp("^"+oI.call(sI).replace(tI,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function lI(n){if(!ut(n)||sf(n))return!1;var s=$e(n)?aI:rI;return s.test(br(n))}var af=lI;function uI(n,s){return n?.[s]}var lf=uI;function pI(n,s){var a=lf(n,s);return af(a)?a:void 0}var Zt=pI;var cI=Zt(Ke,"WeakMap"),os=cI;var uf=Object.create,fI=function(){function n(){}return function(s){if(!ut(s))return{};if(uf)return uf(s);n.prototype=s;var a=new n;return n.prototype=void 0,a}}(),pf=fI;function dI(n,s,a){switch(a.length){case 0:return n.call(s);case 1:return n.call(s,a[0]);case 2:return n.call(s,a[0],a[1]);case 3:return n.call(s,a[0],a[1],a[2])}return n.apply(s,a)}var cf=dI;function hI(n,s){var a=-1,u=n.length;for(s||(s=Array(u));++a<u;)s[a]=n[a];return s}var ff=hI;var gI=800,EI=16,mI=Date.now;function xI(n){var s=0,a=0;return function(){var u=mI(),h=EI-(u-a);if(a=u,h>0){if(++s>=gI)return arguments[0]}else s=0;return n.apply(void 0,arguments)}}var df=xI;function vI(n){return function(){return n}}var hf=vI;var II=function(){try{var n=Zt(Object,"defineProperty");return n({},"",{}),n}catch{}}(),tn=II;var NI=tn?function(n,s){return tn(n,"toString",{configurable:!0,enumerable:!1,value:hf(s),writable:!0})}:Xr,gf=NI;var TI=df(gf),Ef=TI;var AI=9007199254740991,CI=/^(?:0|[1-9]\d*)$/;function SI(n,s){var a=typeof n;return s=s??AI,!!s&&(a=="number"||a!="symbol"&&CI.test(n))&&n>-1&&n%1==0&&n<s}var rn=SI;function LI(n,s,a){s=="__proto__"&&tn?tn(n,s,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[s]=a}var nn=LI;function RI(n,s){return n===s||n!==n&&s!==s}var xr=RI;var yI=Object.prototype,bI=yI.hasOwnProperty;function OI(n,s,a){var u=n[s];(!(bI.call(n,s)&&xr(u,a))||a===void 0&&!(s in n))&&nn(n,s,a)}var mf=OI;function GI(n,s,a,u){var h=!a;a||(a={});for(var g=-1,m=s.length;++g<m;){var I=s[g],T=u?u(a[I],n[I],I,a,n):void 0;T===void 0&&(T=n[I]),h?nn(a,I,T):mf(a,I,T)}return a}var xf=GI;var vf=Math.max;function UI(n,s,a){return s=vf(s===void 0?n.length-1:s,0),function(){for(var u=arguments,h=-1,g=vf(u.length-s,0),m=Array(g);++h<g;)m[h]=u[s+h];h=-1;for(var I=Array(s+1);++h<s;)I[h]=u[h];return I[s]=a(m),cf(n,this,I)}}var If=UI;function FI(n,s){return Ef(If(n,s,Xr),n+"")}var ss=FI;var BI=9007199254740991;function DI(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=BI}var on=DI;function MI(n){return n!=null&&on(n.length)&&!$e(n)}var er=MI;function PI(n,s,a){if(!ut(a))return!1;var u=typeof s;return(u=="number"?er(a)&&rn(s,a.length):u=="string"&&s in a)?xr(a[s],n):!1}var so=PI;function VI(n){return ss(function(s,a){var u=-1,h=a.length,g=h>1?a[h-1]:void 0,m=h>2?a[2]:void 0;for(g=n.length>3&&typeof g=="function"?(h--,g):void 0,m&&so(a[0],a[1],m)&&(g=h<3?void 0:g,h=1),s=Object(s);++u<h;){var I=a[u];I&&n(s,I,u,g)}return s})}var Nf=VI;var wI=Object.prototype;function _I(n){var s=n&&n.constructor,a=typeof s=="function"&&s.prototype||wI;return n===a}var sn=_I;function WI(n,s){for(var a=-1,u=Array(n);++a<n;)u[a]=s(a);return u}var Tf=WI;var kI="[object Arguments]";function ZI(n){return Mt(n)&&Xt(n)==kI}var tl=ZI;var Af=Object.prototype,HI=Af.hasOwnProperty,QI=Af.propertyIsEnumerable,YI=tl(function(){return arguments}())?tl:function(n){return Mt(n)&&HI.call(n,"callee")&&!QI.call(n,"callee")},Or=YI;function XI(){return!1}var Cf=XI;var Rf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Sf=Rf&&typeof module=="object"&&module&&!module.nodeType&&module,JI=Sf&&Sf.exports===Rf,Lf=JI?Ke.Buffer:void 0,jI=Lf?Lf.isBuffer:void 0,zI=jI||Cf,Ii=zI;var qI="[object Arguments]",KI="[object Array]",$I="[object Boolean]",eN="[object Date]",tN="[object Error]",rN="[object Function]",iN="[object Map]",nN="[object Number]",oN="[object Object]",sN="[object RegExp]",aN="[object Set]",lN="[object String]",uN="[object WeakMap]",pN="[object ArrayBuffer]",cN="[object DataView]",fN="[object Float32Array]",dN="[object Float64Array]",hN="[object Int8Array]",gN="[object Int16Array]",EN="[object Int32Array]",mN="[object Uint8Array]",xN="[object Uint8ClampedArray]",vN="[object Uint16Array]",IN="[object Uint32Array]",Pe={};Pe[fN]=Pe[dN]=Pe[hN]=Pe[gN]=Pe[EN]=Pe[mN]=Pe[xN]=Pe[vN]=Pe[IN]=!0;Pe[qI]=Pe[KI]=Pe[pN]=Pe[$I]=Pe[cN]=Pe[eN]=Pe[tN]=Pe[rN]=Pe[iN]=Pe[nN]=Pe[oN]=Pe[sN]=Pe[aN]=Pe[lN]=Pe[uN]=!1;function NN(n){return Mt(n)&&on(n.length)&&!!Pe[Xt(n)]}var yf=NN;function TN(n){return function(s){return n(s)}}var as=TN;var bf=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ao=bf&&typeof module=="object"&&module&&!module.nodeType&&module,AN=ao&&ao.exports===bf,rl=AN&&is.process,CN=function(){try{var n=ao&&ao.require&&ao.require("util").types;return n||rl&&rl.binding&&rl.binding("util")}catch{}}(),il=CN;var Of=il&&il.isTypedArray,SN=Of?as(Of):yf,an=SN;var LN=Object.prototype,RN=LN.hasOwnProperty;function yN(n,s){var a=_e(n),u=!a&&Or(n),h=!a&&!u&&Ii(n),g=!a&&!u&&!h&&an(n),m=a||u||h||g,I=m?Tf(n.length,String):[],T=I.length;for(var G in n)(s||RN.call(n,G))&&!(m&&(G=="length"||h&&(G=="offset"||G=="parent")||g&&(G=="buffer"||G=="byteLength"||G=="byteOffset")||rn(G,T)))&&I.push(G);return I}var ls=yN;function bN(n,s){return function(a){return n(s(a))}}var us=bN;var ON=us(Object.keys,Object),Gf=ON;var GN=Object.prototype,UN=GN.hasOwnProperty;function FN(n){if(!sn(n))return Gf(n);var s=[];for(var a in Object(n))UN.call(n,a)&&a!="constructor"&&s.push(a);return s}var Uf=FN;function BN(n){return er(n)?ls(n):Uf(n)}var ln=BN;function DN(n){var s=[];if(n!=null)for(var a in Object(n))s.push(a);return s}var Ff=DN;var MN=Object.prototype,PN=MN.hasOwnProperty;function VN(n){if(!ut(n))return Ff(n);var s=sn(n),a=[];for(var u in n)u=="constructor"&&(s||!PN.call(n,u))||a.push(u);return a}var Bf=VN;function wN(n){return er(n)?ls(n,!0):Bf(n)}var ps=wN;var _N=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,WN=/^\w*$/;function kN(n,s){if(_e(n))return!1;var a=typeof n;return a=="number"||a=="symbol"||a=="boolean"||n==null||ur(n)?!0:WN.test(n)||!_N.test(n)||s!=null&&n in Object(s)}var un=kN;var ZN=Zt(Object,"create"),Gr=ZN;function HN(){this.__data__=Gr?Gr(null):{},this.size=0}var Df=HN;function QN(n){var s=this.has(n)&&delete this.__data__[n];return this.size-=s?1:0,s}var Mf=QN;var YN="__lodash_hash_undefined__",XN=Object.prototype,JN=XN.hasOwnProperty;function jN(n){var s=this.__data__;if(Gr){var a=s[n];return a===YN?void 0:a}return JN.call(s,n)?s[n]:void 0}var Pf=jN;var zN=Object.prototype,qN=zN.hasOwnProperty;function KN(n){var s=this.__data__;return Gr?s[n]!==void 0:qN.call(s,n)}var Vf=KN;var $N="__lodash_hash_undefined__";function eT(n,s){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=Gr&&s===void 0?$N:s,this}var wf=eT;function pn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}pn.prototype.clear=Df;pn.prototype.delete=Mf;pn.prototype.get=Pf;pn.prototype.has=Vf;pn.prototype.set=wf;var nl=pn;function tT(){this.__data__=[],this.size=0}var _f=tT;function rT(n,s){for(var a=n.length;a--;)if(xr(n[a][0],s))return a;return-1}var Jr=rT;var iT=Array.prototype,nT=iT.splice;function oT(n){var s=this.__data__,a=Jr(s,n);if(a<0)return!1;var u=s.length-1;return a==u?s.pop():nT.call(s,a,1),--this.size,!0}var Wf=oT;function sT(n){var s=this.__data__,a=Jr(s,n);return a<0?void 0:s[a][1]}var kf=sT;function aT(n){return Jr(this.__data__,n)>-1}var Zf=aT;function lT(n,s){var a=this.__data__,u=Jr(a,n);return u<0?(++this.size,a.push([n,s])):a[u][1]=s,this}var Hf=lT;function cn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}cn.prototype.clear=_f;cn.prototype.delete=Wf;cn.prototype.get=kf;cn.prototype.has=Zf;cn.prototype.set=Hf;var jr=cn;var uT=Zt(Ke,"Map"),zr=uT;function pT(){this.size=0,this.__data__={hash:new nl,map:new(zr||jr),string:new nl}}var Qf=pT;function cT(n){var s=typeof n;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?n!=="__proto__":n===null}var Yf=cT;function fT(n,s){var a=n.__data__;return Yf(s)?a[typeof s=="string"?"string":"hash"]:a.map}var qr=fT;function dT(n){var s=qr(this,n).delete(n);return this.size-=s?1:0,s}var Xf=dT;function hT(n){return qr(this,n).get(n)}var Jf=hT;function gT(n){return qr(this,n).has(n)}var jf=gT;function ET(n,s){var a=qr(this,n),u=a.size;return a.set(n,s),this.size+=a.size==u?0:1,this}var zf=ET;function fn(n){var s=-1,a=n==null?0:n.length;for(this.clear();++s<a;){var u=n[s];this.set(u[0],u[1])}}fn.prototype.clear=Qf;fn.prototype.delete=Xf;fn.prototype.get=Jf;fn.prototype.has=jf;fn.prototype.set=zf;var Ni=fn;var mT="Expected a function";function ol(n,s){if(typeof n!="function"||s!=null&&typeof s!="function")throw new TypeError(mT);var a=function(){var u=arguments,h=s?s.apply(this,u):u[0],g=a.cache;if(g.has(h))return g.get(h);var m=n.apply(this,u);return a.cache=g.set(h,m)||g,m};return a.cache=new(ol.Cache||Ni),a}ol.Cache=Ni;var qf=ol;var xT=500;function vT(n){var s=qf(n,function(u){return a.size===xT&&a.clear(),u}),a=s.cache;return s}var Kf=vT;var IT=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,NT=/\\(\\)?/g,TT=Kf(function(n){var s=[];return n.charCodeAt(0)===46&&s.push(""),n.replace(IT,function(a,u,h,g){s.push(h?g.replace(NT,"$1"):u||a)}),s}),$f=TT;function AT(n){return n==null?"":zc(n)}var cs=AT;function CT(n,s){return _e(n)?n:un(n,s)?[n]:$f(cs(n))}var fs=CT;var ST=1/0;function LT(n){if(typeof n=="string"||ur(n))return n;var s=n+"";return s=="0"&&1/n==-ST?"-0":s}var Kr=LT;function RT(n,s){s=fs(s,n);for(var a=0,u=s.length;n!=null&&a<u;)n=n[Kr(s[a++])];return a&&a==u?n:void 0}var dn=RT;function yT(n,s,a){var u=n==null?void 0:dn(n,s);return u===void 0?a:u}var ed=yT;function bT(n,s){for(var a=-1,u=s.length,h=n.length;++a<u;)n[h+a]=s[a];return n}var ds=bT;var td=Dt?Dt.isConcatSpreadable:void 0;function OT(n){return _e(n)||Or(n)||!!(td&&n&&n[td])}var rd=OT;function id(n,s,a,u,h){var g=-1,m=n.length;for(a||(a=rd),h||(h=[]);++g<m;){var I=n[g];s>0&&a(I)?s>1?id(I,s-1,a,u,h):ds(h,I):u||(h[h.length]=I)}return h}var nd=id;var GT=us(Object.getPrototypeOf,Object),hs=GT;var UT="[object Object]",FT=Function.prototype,BT=Object.prototype,od=FT.toString,DT=BT.hasOwnProperty,MT=od.call(Object);function PT(n){if(!Mt(n)||Xt(n)!=UT)return!1;var s=hs(n);if(s===null)return!0;var a=DT.call(s,"constructor")&&s.constructor;return typeof a=="function"&&a instanceof a&&od.call(a)==MT}var sd=PT;function VT(n,s,a){var u=-1,h=n.length;s<0&&(s=-s>h?0:h+s),a=a>h?h:a,a<0&&(a+=h),h=s>a?0:a-s>>>0,s>>>=0;for(var g=Array(h);++u<h;)g[u]=n[u+s];return g}var ad=VT;function wT(n){return function(s){return n?.[s]}}var ld=wT;function _T(){this.__data__=new jr,this.size=0}var ud=_T;function WT(n){var s=this.__data__,a=s.delete(n);return this.size=s.size,a}var pd=WT;function kT(n){return this.__data__.get(n)}var cd=kT;function ZT(n){return this.__data__.has(n)}var fd=ZT;var HT=200;function QT(n,s){var a=this.__data__;if(a instanceof jr){var u=a.__data__;if(!zr||u.length<HT-1)return u.push([n,s]),this.size=++a.size,this;a=this.__data__=new Ni(u)}return a.set(n,s),this.size=a.size,this}var dd=QT;function hn(n){var s=this.__data__=new jr(n);this.size=s.size}hn.prototype.clear=ud;hn.prototype.delete=pd;hn.prototype.get=cd;hn.prototype.has=fd;hn.prototype.set=dd;var $r=hn;var md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,hd=md&&typeof module=="object"&&module&&!module.nodeType&&module,YT=hd&&hd.exports===md,gd=YT?Ke.Buffer:void 0,Ed=gd?gd.allocUnsafe:void 0;function XT(n,s){if(s)return n.slice();var a=n.length,u=Ed?Ed(a):new n.constructor(a);return n.copy(u),u}var xd=XT;function JT(n,s){for(var a=-1,u=n==null?0:n.length,h=0,g=[];++a<u;){var m=n[a];s(m,a,n)&&(g[h++]=m)}return g}var vd=JT;function jT(){return[]}var Id=jT;var zT=Object.prototype,qT=zT.propertyIsEnumerable,Nd=Object.getOwnPropertySymbols,KT=Nd?function(n){return n==null?[]:(n=Object(n),vd(Nd(n),function(s){return qT.call(n,s)}))}:Id,Td=KT;function $T(n,s,a){var u=s(n);return _e(n)?u:ds(u,a(n))}var Ad=$T;function eA(n){return Ad(n,ln,Td)}var sl=eA;var tA=Zt(Ke,"DataView"),gs=tA;var rA=Zt(Ke,"Promise"),Es=rA;var iA=Zt(Ke,"Set"),ms=iA;var Cd="[object Map]",nA="[object Object]",Sd="[object Promise]",Ld="[object Set]",Rd="[object WeakMap]",yd="[object DataView]",oA=br(gs),sA=br(zr),aA=br(Es),lA=br(ms),uA=br(os),Ti=Xt;(gs&&Ti(new gs(new ArrayBuffer(1)))!=yd||zr&&Ti(new zr)!=Cd||Es&&Ti(Es.resolve())!=Sd||ms&&Ti(new ms)!=Ld||os&&Ti(new os)!=Rd)&&(Ti=function(n){var s=Xt(n),a=s==nA?n.constructor:void 0,u=a?br(a):"";if(u)switch(u){case oA:return yd;case sA:return Cd;case aA:return Sd;case lA:return Ld;case uA:return Rd}return s});var al=Ti;var pA=Ke.Uint8Array,gn=pA;function cA(n){var s=new n.constructor(n.byteLength);return new gn(s).set(new gn(n)),s}var bd=cA;function fA(n,s){var a=s?bd(n.buffer):n.buffer;return new n.constructor(a,n.byteOffset,n.length)}var Od=fA;function dA(n){return typeof n.constructor=="function"&&!sn(n)?pf(hs(n)):{}}var Gd=dA;var hA="__lodash_hash_undefined__";function gA(n){return this.__data__.set(n,hA),this}var Ud=gA;function EA(n){return this.__data__.has(n)}var Fd=EA;function xs(n){var s=-1,a=n==null?0:n.length;for(this.__data__=new Ni;++s<a;)this.add(n[s])}xs.prototype.add=xs.prototype.push=Ud;xs.prototype.has=Fd;var Bd=xs;function mA(n,s){for(var a=-1,u=n==null?0:n.length;++a<u;)if(s(n[a],a,n))return!0;return!1}var Dd=mA;function xA(n,s){return n.has(s)}var Md=xA;var vA=1,IA=2;function NA(n,s,a,u,h,g){var m=a&vA,I=n.length,T=s.length;if(I!=T&&!(m&&T>I))return!1;var G=g.get(n),L=g.get(s);if(G&&L)return G==s&&L==n;var V=-1,y=!0,M=a&IA?new Bd:void 0;for(g.set(n,s),g.set(s,n);++V<I;){var F=n[V],S=s[V];if(u)var x=m?u(S,F,V,s,n,g):u(F,S,V,n,s,g);if(x!==void 0){if(x)continue;y=!1;break}if(M){if(!Dd(s,function(v,C){if(!Md(M,C)&&(F===v||h(F,v,a,u,g)))return M.push(C)})){y=!1;break}}else if(!(F===S||h(F,S,a,u,g))){y=!1;break}}return g.delete(n),g.delete(s),y}var vs=NA;function TA(n){var s=-1,a=Array(n.size);return n.forEach(function(u,h){a[++s]=[h,u]}),a}var Pd=TA;function AA(n){var s=-1,a=Array(n.size);return n.forEach(function(u){a[++s]=u}),a}var Vd=AA;var CA=1,SA=2,LA="[object Boolean]",RA="[object Date]",yA="[object Error]",bA="[object Map]",OA="[object Number]",GA="[object RegExp]",UA="[object Set]",FA="[object String]",BA="[object Symbol]",DA="[object ArrayBuffer]",MA="[object DataView]",wd=Dt?Dt.prototype:void 0,ll=wd?wd.valueOf:void 0;function PA(n,s,a,u,h,g,m){switch(a){case MA:if(n.byteLength!=s.byteLength||n.byteOffset!=s.byteOffset)return!1;n=n.buffer,s=s.buffer;case DA:return!(n.byteLength!=s.byteLength||!g(new gn(n),new gn(s)));case LA:case RA:case OA:return xr(+n,+s);case yA:return n.name==s.name&&n.message==s.message;case GA:case FA:return n==s+"";case bA:var I=Pd;case UA:var T=u&CA;if(I||(I=Vd),n.size!=s.size&&!T)return!1;var G=m.get(n);if(G)return G==s;u|=SA,m.set(n,s);var L=vs(I(n),I(s),u,h,g,m);return m.delete(n),L;case BA:if(ll)return ll.call(n)==ll.call(s)}return!1}var _d=PA;var VA=1,wA=Object.prototype,_A=wA.hasOwnProperty;function WA(n,s,a,u,h,g){var m=a&VA,I=sl(n),T=I.length,G=sl(s),L=G.length;if(T!=L&&!m)return!1;for(var V=T;V--;){var y=I[V];if(!(m?y in s:_A.call(s,y)))return!1}var M=g.get(n),F=g.get(s);if(M&&F)return M==s&&F==n;var S=!0;g.set(n,s),g.set(s,n);for(var x=m;++V<T;){y=I[V];var v=n[y],C=s[y];if(u)var R=m?u(C,v,y,s,n,g):u(v,C,y,n,s,g);if(!(R===void 0?v===C||h(v,C,a,u,g):R)){S=!1;break}x||(x=y=="constructor")}if(S&&!x){var B=n.constructor,D=s.constructor;B!=D&&"constructor"in n&&"constructor"in s&&!(typeof B=="function"&&B instanceof B&&typeof D=="function"&&D instanceof D)&&(S=!1)}return g.delete(n),g.delete(s),S}var Wd=WA;var kA=1,kd="[object Arguments]",Zd="[object Array]",Is="[object Object]",ZA=Object.prototype,Hd=ZA.hasOwnProperty;function HA(n,s,a,u,h,g){var m=_e(n),I=_e(s),T=m?Zd:al(n),G=I?Zd:al(s);T=T==kd?Is:T,G=G==kd?Is:G;var L=T==Is,V=G==Is,y=T==G;if(y&&Ii(n)){if(!Ii(s))return!1;m=!0,L=!1}if(y&&!L)return g||(g=new $r),m||an(n)?vs(n,s,a,u,h,g):_d(n,s,T,a,u,h,g);if(!(a&kA)){var M=L&&Hd.call(n,"__wrapped__"),F=V&&Hd.call(s,"__wrapped__");if(M||F){var S=M?n.value():n,x=F?s.value():s;return g||(g=new $r),h(S,x,a,u,g)}}return y?(g||(g=new $r),Wd(n,s,a,u,h,g)):!1}var Qd=HA;function Yd(n,s,a,u,h){return n===s?!0:n==null||s==null||!Mt(n)&&!Mt(s)?n!==n&&s!==s:Qd(n,s,a,u,Yd,h)}var Ns=Yd;var QA=1,YA=2;function XA(n,s,a,u){var h=a.length,g=h,m=!u;if(n==null)return!g;for(n=Object(n);h--;){var I=a[h];if(m&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++h<g;){I=a[h];var T=I[0],G=n[T],L=I[1];if(m&&I[2]){if(G===void 0&&!(T in n))return!1}else{var V=new $r;if(u)var y=u(G,L,T,n,s,V);if(!(y===void 0?Ns(L,G,QA|YA,u,V):y))return!1}}return!0}var Xd=XA;function JA(n){return n===n&&!ut(n)}var Ts=JA;function jA(n){for(var s=ln(n),a=s.length;a--;){var u=s[a],h=n[u];s[a]=[u,h,Ts(h)]}return s}var Jd=jA;function zA(n,s){return function(a){return a==null?!1:a[n]===s&&(s!==void 0||n in Object(a))}}var As=zA;function qA(n){var s=Jd(n);return s.length==1&&s[0][2]?As(s[0][0],s[0][1]):function(a){return a===n||Xd(a,n,s)}}var jd=qA;function KA(n,s){return n!=null&&s in Object(n)}var zd=KA;function $A(n,s,a){s=fs(s,n);for(var u=-1,h=s.length,g=!1;++u<h;){var m=Kr(s[u]);if(!(g=n!=null&&a(n,m)))break;n=n[m]}return g||++u!=h?g:(h=n==null?0:n.length,!!h&&on(h)&&rn(m,h)&&(_e(n)||Or(n)))}var qd=$A;function eC(n,s){return n!=null&&qd(n,s,zd)}var Kd=eC;var tC=1,rC=2;function iC(n,s){return un(n)&&Ts(s)?As(Kr(n),s):function(a){var u=ed(a,n);return u===void 0&&u===s?Kd(a,n):Ns(s,u,tC|rC)}}var $d=iC;function nC(n){return function(s){return s?.[n]}}var eh=nC;function oC(n){return function(s){return dn(s,n)}}var th=oC;function sC(n){return un(n)?eh(Kr(n)):th(n)}var rh=sC;function aC(n){return typeof n=="function"?n:n==null?Xr:typeof n=="object"?_e(n)?$d(n[0],n[1]):jd(n):rh(n)}var ih=aC;function lC(n){return function(s,a,u){for(var h=-1,g=Object(s),m=u(s),I=m.length;I--;){var T=m[n?I:++h];if(a(g[T],T,g)===!1)break}return s}}var nh=lC;var uC=nh(),Cs=uC;function pC(n,s){return n&&Cs(n,s,ln)}var oh=pC;function cC(n,s){return function(a,u){if(a==null)return a;if(!er(a))return n(a,u);for(var h=a.length,g=s?h:-1,m=Object(a);(s?g--:++g<h)&&u(m[g],g,m)!==!1;);return a}}var sh=cC;var fC=sh(oh),ah=fC;function dC(n,s,a){(a!==void 0&&!xr(n[s],a)||a===void 0&&!(s in n))&&nn(n,s,a)}var lo=dC;function hC(n){return Mt(n)&&er(n)}var lh=hC;function gC(n,s){if(!(s==="constructor"&&typeof n[s]=="function")&&s!="__proto__")return n[s]}var uo=gC;function EC(n){return xf(n,ps(n))}var uh=EC;function mC(n,s,a,u,h,g,m){var I=uo(n,a),T=uo(s,a),G=m.get(T);if(G){lo(n,a,G);return}var L=g?g(I,T,a+"",n,s,m):void 0,V=L===void 0;if(V){var y=_e(T),M=!y&&Ii(T),F=!y&&!M&&an(T);L=T,y||M||F?_e(I)?L=I:lh(I)?L=ff(I):M?(V=!1,L=xd(T,!0)):F?(V=!1,L=Od(T,!0)):L=[]:sd(T)||Or(T)?(L=I,Or(I)?L=uh(I):(!ut(I)||$e(I))&&(L=Gd(T))):V=!1}V&&(m.set(T,L),h(L,T,u,g,m),m.delete(T)),lo(n,a,L)}var ph=mC;function ch(n,s,a,u,h){n!==s&&Cs(s,function(g,m){if(h||(h=new $r),ut(g))ph(n,s,m,a,ch,u,h);else{var I=u?u(uo(n,m),g,m+"",n,s,h):void 0;I===void 0&&(I=g),lo(n,m,I)}},ps)}var fh=ch;var xC={"&":"&","<":"<",">":">",'"':""","'":"'"},vC=ld(xC),dh=vC;var hh=/[&<>"']/g,IC=RegExp(hh.source);function NC(n){return n=cs(n),n&&IC.test(n)?n.replace(hh,dh):n}var Ss=NC;function TC(n,s){var a=-1,u=er(n)?Array(n.length):[];return ah(n,function(h,g,m){u[++a]=s(h,g,m)}),u}var gh=TC;var AC=Nf(function(n,s,a){fh(n,s,a)}),En=AC;function CC(n,s){var a=n.length;for(n.sort(s);a--;)n[a]=n[a].value;return n}var Eh=CC;function SC(n,s){if(n!==s){var a=n!==void 0,u=n===null,h=n===n,g=ur(n),m=s!==void 0,I=s===null,T=s===s,G=ur(s);if(!I&&!G&&!g&&n>s||g&&m&&T&&!I&&!G||u&&m&&T||!a&&T||!h)return 1;if(!u&&!g&&!G&&n<s||G&&a&&h&&!u&&!g||I&&a&&h||!m&&h||!T)return-1}return 0}var mh=SC;function LC(n,s,a){for(var u=-1,h=n.criteria,g=s.criteria,m=h.length,I=a.length;++u<m;){var T=mh(h[u],g[u]);if(T){if(u>=I)return T;var G=a[u];return T*(G=="desc"?-1:1)}}return n.index-s.index}var xh=LC;function RC(n,s,a){s.length?s=en(s,function(g){return _e(g)?function(m){return dn(m,g.length===1?g[0]:g)}:g}):s=[Xr];var u=-1;s=en(s,as(ih));var h=gh(n,function(g,m,I){var T=en(s,function(G){return G(g)});return{criteria:T,index:++u,value:g}});return Eh(h,function(g,m){return xh(g,m,a)})}var vh=RC;var yC=ss(function(n,s){if(n==null)return[];var a=s.length;return a>1&&so(n,s[0],s[1])?s=[]:a>2&&so(s[0],s[1],s[2])&&(s=[s[0]]),vh(n,nd(s,1),[])}),ul=yC;function bC(n,s,a){return n&&n.length?(s=a||s===void 0?1:nf(s),ad(n,0,s<0?0:s)):[]}var pl=bC;var cl=ft(ts());function po(n,s){return $e(s)?s(n):s??{}}function fl(n,s={}){let a=En({},po(n,n.config.requestConfig),po(n,s));if(!a.endpoint||a.endpoint.length==0)return;var u=n.getQueryMode();let h=$e(a.endpoint)?a.endpoint(n):a.endpoint;var g=u=="update"?"POST":$e(a.method)?a.method(n):a.method;let m=$e(a.headers)?a.headers(n):a.headers,I=$e(a.withCredentials)?a.withCredentials(n):a.withCredentials;return{reqMethod:g,url:h,args:Ih(n,a),headers:m,accept:Nh(n,a),withCredentials:I}}async function dl(n,s){let a=Date.now();try{n.emit("queryBefore",n,s);let u=fl(n,s);if(!u)return;let h=new AbortController,g={method:u.reqMethod,headers:{Accept:u.accept,...u.headers||{}},credentials:u.withCredentials?"include":"same-origin",signal:h.signal};g?.headers&&u.reqMethod==="POST"&&(g.headers["Content-Type"]="application/x-www-form-urlencoded");let m=new URLSearchParams;for(let L in u.args){let V=u.args[L];Array.isArray(V)?V.forEach(y=>m.append(L,y)):m.append(L,V)}if(u.reqMethod==="POST")g.body=m.toString();else{let L=new URL(u.url);m.forEach((V,y)=>{L.searchParams.append(y,V)}),u.url=L.toString()}let I=new Request(u.url,g);n.emit("query",I,h);let T=await fetch(I);if(!T.ok)throw new Error(await T.text()||T.statusText);let G={ok:T.ok,status:T.status,statusText:T.statusText,headers:T.headers,type:T.type,content:await T.text()};return n.emit("queryResponse",G,Date.now()-a),n.emit("queryResults",G.content,Date.now()-a),G}catch(u){throw u instanceof Error&&u.message==="Aborted"||n.emit("queryResponse",u,Date.now()-a),n.emit("error",u),u}}function Ih(n,s){var a=n.getQueryMode(),u={};let h=po(n,s);var g=$e(h.queryArgument)?h.queryArgument(n):h.queryArgument;g||(g=n.getQueryMode()),u[g]=h.adjustQueryBeforeRequest?h.adjustQueryBeforeRequest(n):n.getValue();let m=$e(h.namedGraphs)?h.namedGraphs(n):h.namedGraphs;if(m&&m.length>0){let G=a==="query"?"named-graph-uri":"using-named-graph-uri ";u[G]=m}let I=$e(h.defaultGraphs)?h.defaultGraphs(n):h.defaultGraphs;if(I&&I.length>0){let G=a=="query"?"default-graph-uri":"using-graph-uri ";u[G]=m}let T=$e(h.args)?h.args(n):h.args;return T&&T.length>0&&En(u,T.reduce((G,L)=>(G[L.name]?G[L.name].push(L.value):G[L.name]=[L.value],G),{})),u}function Nh(n,s){let a=po(n,s);var u=null;if(n.getQueryMode()=="update")u=$e(a.acceptHeaderUpdate)?a.acceptHeaderUpdate(n):a.acceptHeaderUpdate;else{var h=n.getQueryType();h=="DESCRIBE"||h=="CONSTRUCT"?u=$e(a.acceptHeaderGraph)?a.acceptHeaderGraph(n):a.acceptHeaderGraph:u=$e(a.acceptHeaderSelect)?a.acceptHeaderSelect(n):a.acceptHeaderSelect}return u}function hl(n,s){let a=fl(n,po(n,s));if(!a)return"";let u=a.url;a.url.indexOf("http")!==0&&(u=`${window.location.protocol}//${window.location.host}`,a.url.indexOf("/")===0?u+=a.url:u+=window.location.pathname+a.url);let h=["curl"];a.reqMethod==="GET"?(u+=`?${cl.stringify(a.args)}`,h.push(u)):a.reqMethod==="POST"?(h.push(u),h.push("--data",cl.stringify(a.args))):(console.warn("Unexpected request-method",a.reqMethod),h.push(u)),h.push("-X",a.reqMethod);for(let g in a.headers)h.push(`-H '${g}: ${a.headers[g]}'`);return h.join(" ")}var Th='<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 Ah='<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>',El='<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>',Ch='<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>',Sh='<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>';var co=class n{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(s,a){if(s.length!=0){var u=this,h,g;if(a===void 0&&(a=0),a===s.length){u.words++;return}u.prefixes++,h=s[a],u.children[h]===void 0&&(u.children[h]=new n),g=u.children[h],g.insert(s,a+1)}}remove(s,a){if(s.length!=0){var u=this,h,g;if(a===void 0&&(a=0),u!==void 0){if(a===s.length){u.words--;return}u.prefixes--,h=s[a],g=u.children[h],g.remove(s,a+1)}}}update(s,a){s.length==0||a.length==0||(this.remove(s),this.insert(a))}countWord(s,a){if(s.length==0)return 0;var u=this,h,g,m=0;return a===void 0&&(a=0),a===s.length?u.words:(h=s[a],g=u.children[h],g!==void 0&&(m=g.countWord(s,a+1)),m)}countPrefix(s,a){if(s.length==0)return 0;var u=this,m,h,g=0;if(a===void 0&&(a=0),a===s.length)return u.prefixes;var m=s[a];return h=u.children[m],h!==void 0&&(g=h.countPrefix(s,a+1)),g}find(s){return s.length==0?!1:this.countWord(s)>0}getAllWords(s){var a=this,u,h,g=[];if(s===void 0&&(s=""),a===void 0)return[];a.words>0&&g.push(s);for(u in a.children)a.children.hasOwnProperty(u)&&(h=a.children[u],g=g.concat(h.getAllWords(s+u)));return g}autoComplete(s,a){var u=this,h,g;return s.length==0?a===void 0?u.getAllWords(s):[]:(a===void 0&&(a=0),h=s[a],g=u.children[h],g===void 0?[]:a===s.length-1?g.getAllWords(s):g.autoComplete(s,a+1))}};var Wh=ft(Mh());var vl=ft(Nt());var PC={name:"variables",isValidCompletionPosition:function(n){var s=n.getTokenAt(n.getDoc().getCursor());return!!(s.type!="ws"&&(s=n.getCompleteToken(s),s&&(s.string[0]==="?"||s.string[0]==="$")))},get:function(n,s){if(!s||s.string.length==0)return[];let a={},u=[],h=n.getWrapperElement().querySelectorAll(".cm-atom");for(let m=0;m<h.length;m++){let I=h[m];var g=I.innerHTML;if(g[0]==="?"||g[0]==="$"){let T=I.nextSibling;if(T&&T.className&&T.className.indexOf("cm-atom")>=0&&(g+=T.innerText),a[g]||g.length<=1||g.indexOf(s.string)!==0||g===s.string)continue;a[g]=!0,u.push(g)}}return u.sort()},bulk:!1,autoShow:!0},Ph=PC;var VC={"string-2":"prefixed",atom:"var"},wC={postprocessHints:function(n,s){return ul(s,a=>a.text.split(":")[0])},onInitialize:function(n){n.on("change",()=>{if(!(!n.config.autocompleters||n.config.autocompleters.indexOf(this.name)==-1)){var s=n.getDoc().getCursor(),a=n.getTokenAt(s);if(a.type&&VC[a.type]=="prefixed"){var u=a.string.indexOf(":");if(u!==-1){var h=n.getPreviousNonWsToken(s.line,a).string.toUpperCase(),g=n.getTokenAt({line:s.line,ch:a.start});if(h!=="PREFIX"&&(g.type=="ws"||g.type==null||g.type==="punc"&&(g.string==="|"||g.string==="/"||g.string=="^^"||g.string=="{"||g.string==="("))){var m=a.string.substring(0,u+1),I=n.getPrefixesFromQuery();I[m.slice(0,-1)]==null&&(a.autocompletionString=m,n.autocompleters[this.name]?.getCompletions(a).then(T=>{T.length&&(n.addPrefixes(T[0]),n.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(n){var s=n.getDoc().getCursor(),a=n.getTokenAt(s);if(n.getDoc().getLine(s.line).length>s.ch||(a.type!="ws"&&(a=n.getCompleteToken()),a.string.indexOf("a")!==0&&a.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var u=n.getPreviousNonWsToken(s.line,a);return!(!u||u.string.toUpperCase()!="PREFIX")},get:function(n){return fetch(n.config.prefixCcApi).then(s=>{if(!s.ok)throw new Error("Failed to fetch prefixes");return s.json()}).then(s=>{let a=[];for(let u in s){let h=`${u}: <${s[u]}>`;a.push(h)}return a.sort()})},preProcessToken:function(n,s){var a=n.getPreviousNonWsToken(n.getDoc().getCursor().line,s);return a&&a.string&&a.string.slice(-1)==":"&&(s={start:a.start,end:s.end,string:a.string+" "+s.string,state:s.state,type:s.type}),s},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},Vh=wC;var _C={onInitialize:function(n){},get:function(n,s){return Os(n,"property",s)},isValidCompletionPosition:function(n){let s=n.getCompleteToken();return s.string.length==0||s.string[0]==="?"||s.string[0]==="$"?!1:s.state.possibleCurrent.indexOf("a")>=0},preProcessToken:function(n,s){return ys(n,s)},postProcessSuggestion:function(n,s,a){return bs(n,s,a)},bulk:!1,name:"property"},wh=_C;var WC={onInitialize:function(n){},get:function(n,s){return Os(n,"class",s)},isValidCompletionPosition:function(n){let s=n.getCompleteToken();if(s.string[0]==="?"||s.string[0]==="$")return!1;let a=n.getDoc().getCursor(),u=n.getPreviousNonWsToken(a.line,s);return u.state.lastProperty==="a"||u.state.lastProperty==="rdf:type"||u.state.lastProperty==="rdfs:domain"||u.state.lastProperty==="rdfs:range"},preProcessToken:function(n,s){return ys(n,s)},postProcessSuggestion:function(n,s,a){return bs(n,s,a)},bulk:!1,name:"class"},_h=WC;var kC=100,Gs=class extends Wh.EventEmitter{constructor(s,a){super(),this.yasqe=s,this.config=a}getStorageId(){return this.yasqe.getStorageId(this.config.persistenceId)}storeBulkCompletions(s){if(!(!s||!(s instanceof Array))){this.trie=new co;for(let u of s)this.trie.insert(u);var a=this.getStorageId();a&&this.yasqe.storage.set(a,s,60*60*24*30,this.yasqe.handleLocalStorageQuotaFull)}}getCompletions(s){if(!this.config.get)return Promise.resolve([]);if(!s)return this.config.get instanceof Array?Promise.resolve(this.config.get):Promise.resolve(this.config.get(this.yasqe)).then(u=>u instanceof Array?u:[]);let a=s.autocompletionString||s.string;return this.trie?Promise.resolve(pl(this.trie.autoComplete(a),kC)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(u=>u.indexOf(a)===0)):Promise.resolve(this.config.get(this.yasqe,s)).then(u=>u instanceof Array?u:[])}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 s,a=this.getStorageId();return a&&(s=this.yasqe.storage.get(a)),s&&s.length>0?(this.storeBulkCompletions(s),Promise.resolve()):this.getCompletions().then(u=>this.storeBulkCompletions(u))}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(s,a){this.config.postProcessSuggestion&&(a=this.config.postProcessSuggestion(this.yasqe,s,a));let u,h,g=this.yasqe.getDoc().getCursor();s.from&&(u={...g,...s.from});let m=this.yasqe.getDoc().getCursor().line;return s.to?h={ch:s?.to?.ch||this.yasqe.getCompleteToken().end,line:m}:s.string.length>0?h={ch:this.yasqe.getCompleteToken().end,line:m}:h=s.from,{text:a,displayText:a,from:u,to:h}}getHints(s){return this.config.preProcessToken&&(s=this.config.preProcessToken(this.yasqe,s)),s?this.getCompletions(s).then(a=>a.map(u=>this.getHint(s,u))).then(a=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,a):a):Promise.resolve([])}autocomplete(s){if(!this.isValidPosition())return!1;let a=this.yasqe.state.completionActive,u=this.yasqe.getDoc().getCursor();if(a&&u.sticky&&u.ch!==a.startPos.ch?this.yasqe.state.completionActive.startPos=u:a&&!u.sticky&&u.ch<a.startPos.ch&&(u.sticky=a.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=u.ch,this.yasqe.state.completionActive.startLen--),s&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let h=()=>this.getHints(this.yasqe.getCompleteToken()).then(m=>{let I=this.yasqe.getDoc().getCursor(),T=this.yasqe.getCompleteToken(),G={list:m,from:{line:I.line,ch:T.start},to:{line:I.line,ch:T.end}};return vl.default.on(G,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),vl.default.on(G,"close",()=>{this.yasqe.emit("autocompletionClose")}),G});h.async=!1;var g={closeCharacters:/[\s>"]/,completeSingle:!1,hint:h,container:this.yasqe.rootEl,extraKeys:{Home:(m,I)=>{m.getDoc().setCursor({ch:0,line:I.data.from.line})},End:(m,I)=>{m.getDoc().setCursor({ch:m.getLine(I.data.to.line).length,line:I.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(g),!0}};function ys(n,s){let a=n.getPrefixesFromQuery(),u=s.string;if(u.indexOf("<")<0&&(s.tokenPrefix=u.substring(0,u.indexOf(":")+1),a[s.tokenPrefix.slice(0,-1)]!=null&&(s.tokenPrefixUri=a[s.tokenPrefix.slice(0,-1)])),s.autocompletionString=u.trim(),u.indexOf("<")<0&&u.indexOf(":")>-1){for(var h in a)if(s.tokenPrefix===h+":"){s.autocompletionString=a[h],s.autocompletionString+=u.substring(h.length+1);break}}return s.autocompletionString.indexOf("<")==0&&(s.autocompletionString=s.autocompletionString.substring(1)),s.autocompletionString.indexOf(">",s.autocompletionString.length-1)>0&&(s.autocompletionString=s.autocompletionString.substring(0,s.autocompletionString.length-1)),s}function bs(n,s,a){return s.tokenPrefix&&s.autocompletionString&&s.tokenPrefixUri?a=s.tokenPrefix+a.substring(s.tokenPrefixUri.length):a="<"+a+">",a}var Os=(n,s,a)=>{var u=window.location.protocol.indexOf("http")===0?"https://":"http://";let h="autocomplete_"+s;if(!a||!a.string||a.string.trim().length==0)return n.showNotification(h,"Nothing to autocomplete yet!"),Promise.resolve([]);let g=new URLSearchParams;a.autocompletionString&&g.append("q",a.autocompletionString),g.append("page_size","50"),g.append("type",s);let m=`${u}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${g.toString()}`;return fetch(m).then(I=>{if(!I.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return I.json()}).then(I=>I.results?I.results.map(T=>T.uri[0]):[]).catch(I=>{n.showNotification(h,"Failed fetching suggestions")})},kh=[Ph,Vh,wh,_h];var Zh=ft(ts()),Us=ft(Nt());function Il(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
30
|
+
`+G+"}":"{"+P.join(",")+"}",gap=G,y}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(i,v,e){var N;if(gap="",indent="",typeof e=="number")for(N=0;N<e;N+=1)indent+=" ";else typeof e=="string"&&(indent=e);if(rep=v,v&&typeof v!="function"&&(typeof v!="object"||typeof v.length!="number"))throw new Error("JSON.stringify");return str("",{"":i})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(i,v){var e,N,y=i[v];if(y&&typeof y=="object")for(e in y)Object.prototype.hasOwnProperty.call(y,e)&&(N=walk(y,e),N!==void 0?y[e]=N:delete y[e]);return reviver.call(i,v,y)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(i){return"\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})})()});var Vm=Nr((fR,Mm)=>{Mm.exports=SN;function SN(){return Pm(),{}}});var Wm=Nr((pR,_m)=>{var yN=dm(),RN=Bm(),wN=[Vm()];_m.exports=yN.createStore(RN,wN)});var Hm=Nr((vR,$m)=>{"use strict";$m.exports=i=>encodeURIComponent(i).replace(/[!'()*]/g,v=>`%${v.charCodeAt(0).toString(16).toUpperCase()}`)});var Jm=Nr((mR,Xm)=>{"use strict";var Ym="%[a-f0-9]{2}",Zm=new RegExp("("+Ym+")|([^%]+?)","gi"),Qm=new RegExp("("+Ym+")+","gi");function lv(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([],lv(e),lv(N))}function UN(i){try{return decodeURIComponent(i)}catch{for(var v=i.match(Zm)||[],e=1;e<v.length;e++)i=lv(v,e).join(""),v=i.match(Zm)||[];return i}}function GN(i){for(var v={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},e=Qm.exec(i);e;){try{v[e[0]]=decodeURIComponent(e[0])}catch{var N=UN(e[0]);N!==e[0]&&(v[e[0]]=N)}e=Qm.exec(i)}v["%C2"]="\uFFFD";for(var y=Object.keys(v),w=0;w<y.length;w++){var G=y[w];i=i.replace(new RegExp(G,"g"),v[G])}return i}Xm.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 GN(i)}}});var zm=Nr((xR,jm)=>{"use strict";jm.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 Km=Nr((CR,qm)=>{"use strict";qm.exports=function(i,v){for(var e={},N=Object.keys(i),y=Array.isArray(v),w=0;w<N.length;w++){var G=N[w],P=i[G];(y?v.indexOf(G)!==-1:v(G,P,i))&&(e[G]=P)}return e}});var Bh=Nr(Ri=>{"use strict";var FN=Hm(),DN=Jm(),rx=zm(),BN=Km(),PN=i=>i==null;function MN(i){switch(i.arrayFormat){case"index":return v=>(e,N)=>{let y=e.length;return N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(v,i),"[",y,"]"].join("")]:[...e,[qt(v,i),"[",qt(y,i),"]=",qt(N,i)].join("")]};case"bracket":return v=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,[qt(v,i),"[]"].join("")]:[...e,[qt(v,i),"[]=",qt(N,i)].join("")];case"comma":case"separator":return v=>(e,N)=>N==null||N.length===0?e:e.length===0?[[qt(v,i),"=",qt(N,i)].join("")]:[[e,qt(N,i)].join(i.arrayFormatSeparator)];default:return v=>(e,N)=>N===void 0||i.skipNull&&N===null||i.skipEmptyString&&N===""?e:N===null?[...e,qt(v,i)]:[...e,[qt(v,i),"=",qt(N,i)].join("")]}}function VN(i){let v;switch(i.arrayFormat){case"index":return(e,N,y)=>{if(v=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),!v){y[e]=N;return}y[e]===void 0&&(y[e]={}),y[e][v[1]]=N};case"bracket":return(e,N,y)=>{if(v=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),!v){y[e]=N;return}if(y[e]===void 0){y[e]=[N];return}y[e]=[].concat(y[e],N)};case"comma":case"separator":return(e,N,y)=>{let w=typeof N=="string"&&N.includes(i.arrayFormatSeparator),G=typeof N=="string"&&!w&&$l(N,i).includes(i.arrayFormatSeparator);N=G?$l(N,i):N;let P=w||G?N.split(i.arrayFormatSeparator).map(H=>$l(H,i)):N===null?N:$l(N,i);y[e]=P};default:return(e,N,y)=>{if(y[e]===void 0){y[e]=N;return}y[e]=[].concat(y[e],N)}}}function tx(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?FN(i):encodeURIComponent(i):i}function $l(i,v){return v.decode?DN(i):i}function ix(i){return Array.isArray(i)?i.sort():typeof i=="object"?ix(Object.keys(i)).sort((v,e)=>Number(v)-Number(e)).map(v=>i[v]):i}function sx(i){let v=i.indexOf("#");return v!==-1&&(i=i.slice(0,v)),i}function _N(i){let v="",e=i.indexOf("#");return e!==-1&&(v=i.slice(e)),v}function nx(i){i=sx(i);let v=i.indexOf("?");return v===-1?"":i.slice(v+1)}function ex(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 ox(i,v){v=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},v),tx(v.arrayFormatSeparator);let e=VN(v),N=Object.create(null);if(typeof i!="string"||(i=i.trim().replace(/^[?#&]/,""),!i))return N;for(let y of i.split("&")){if(y==="")continue;let[w,G]=rx(v.decode?y.replace(/\+/g," "):y,"=");G=G===void 0?null:["comma","separator"].includes(v.arrayFormat)?G:$l(G,v),e($l(w,v),G,N)}for(let y of Object.keys(N)){let w=N[y];if(typeof w=="object"&&w!==null)for(let G of Object.keys(w))w[G]=ex(w[G],v);else N[y]=ex(w,v)}return v.sort===!1?N:(v.sort===!0?Object.keys(N).sort():Object.keys(N).sort(v.sort)).reduce((y,w)=>{let G=N[w];return G&&typeof G=="object"&&!Array.isArray(G)?y[w]=ix(G):y[w]=G,y},Object.create(null))}Ri.extract=nx;Ri.parse=ox;Ri.stringify=(i,v)=>{if(!i)return"";v=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},v),tx(v.arrayFormatSeparator);let e=G=>v.skipNull&&PN(i[G])||v.skipEmptyString&&i[G]==="",N=MN(v),y={};for(let G of Object.keys(i))e(G)||(y[G]=i[G]);let w=Object.keys(y);return v.sort!==!1&&w.sort(v.sort),w.map(G=>{let P=i[G];return P===void 0?"":P===null?qt(G,v):Array.isArray(P)?P.reduce(N(G),[]).join("&"):qt(G,v)+"="+qt(P,v)}).filter(G=>G.length>0).join("&")};Ri.parseUrl=(i,v)=>{v=Object.assign({decode:!0},v);let[e,N]=rx(i,"#");return Object.assign({url:e.split("?")[0]||"",query:ox(nx(i),v)},v&&v.parseFragmentIdentifier&&N?{fragmentIdentifier:$l(N,v)}:{})};Ri.stringifyUrl=(i,v)=>{v=Object.assign({encode:!0,strict:!0},v);let e=sx(i.url).split("?")[0]||"",N=Ri.extract(i.url),y=Ri.parse(N,{sort:!1}),w=Object.assign(y,i.query),G=Ri.stringify(w,v);G&&(G=`?${G}`);let P=_N(i.url);return i.fragmentIdentifier&&(P=`#${qt(i.fragmentIdentifier,v)}`),`${e}${G}${P}`};Ri.pick=(i,v,e)=>{e=Object.assign({parseFragmentIdentifier:!0},e);let{url:N,query:y,fragmentIdentifier:w}=Ri.parseUrl(i,e);return Ri.stringifyUrl({url:N,query:BN(y,v),fragmentIdentifier:w},e)};Ri.exclude=(i,v,e)=>{let N=Array.isArray(v)?y=>!v.includes(y):(y,w)=>!v(y,w);return Ri.pick(i,N,e)}});var eA=Nr((aP,bv)=>{"use strict";var Hf=typeof Reflect=="object"?Reflect:null,HC=Hf&&typeof Hf.apply=="function"?Hf.apply:function(v,e,N){return Function.prototype.apply.call(v,e,N)},od;Hf&&typeof Hf.ownKeys=="function"?od=Hf.ownKeys:Object.getOwnPropertySymbols?od=function(v){return Object.getOwnPropertyNames(v).concat(Object.getOwnPropertySymbols(v))}:od=function(v){return Object.getOwnPropertyNames(v)};function o1(i){console&&console.warn&&console.warn(i)}var QC=Number.isNaN||function(v){return v!==v};function Rr(){Rr.init.call(this)}bv.exports=Rr;bv.exports.once=f1;Rr.EventEmitter=Rr;Rr.prototype._events=void 0;Rr.prototype._eventsCount=0;Rr.prototype._maxListeners=void 0;var ZC=10;function ad(i){if(typeof i!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i)}Object.defineProperty(Rr,"defaultMaxListeners",{enumerable:!0,get:function(){return ZC},set:function(i){if(typeof i!="number"||i<0||QC(i))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+i+".");ZC=i}});Rr.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};Rr.prototype.setMaxListeners=function(v){if(typeof v!="number"||v<0||QC(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 YC(i){return i._maxListeners===void 0?Rr.defaultMaxListeners:i._maxListeners}Rr.prototype.getMaxListeners=function(){return YC(this)};Rr.prototype.emit=function(v){for(var e=[],N=1;N<arguments.length;N++)e.push(arguments[N]);var y=v==="error",w=this._events;if(w!==void 0)y=y&&w.error===void 0;else if(!y)return!1;if(y){var G;if(e.length>0&&(G=e[0]),G instanceof Error)throw G;var P=new Error("Unhandled error."+(G?" ("+G.message+")":""));throw P.context=G,P}var H=w[v];if(H===void 0)return!1;if(typeof H=="function")HC(H,this,e);else for(var Z=H.length,$=qC(H,Z),N=0;N<Z;++N)HC($[N],this,e);return!0};function XC(i,v,e,N){var y,w,G;if(ad(e),w=i._events,w===void 0?(w=i._events=Object.create(null),i._eventsCount=0):(w.newListener!==void 0&&(i.emit("newListener",v,e.listener?e.listener:e),w=i._events),G=w[v]),G===void 0)G=w[v]=e,++i._eventsCount;else if(typeof G=="function"?G=w[v]=N?[e,G]:[G,e]:N?G.unshift(e):G.push(e),y=YC(i),y>0&&G.length>y&&!G.warned){G.warned=!0;var P=new Error("Possible EventEmitter memory leak detected. "+G.length+" "+String(v)+" listeners added. Use emitter.setMaxListeners() to increase limit");P.name="MaxListenersExceededWarning",P.emitter=i,P.type=v,P.count=G.length,o1(P)}return i}Rr.prototype.addListener=function(v,e){return XC(this,v,e,!1)};Rr.prototype.on=Rr.prototype.addListener;Rr.prototype.prependListener=function(v,e){return XC(this,v,e,!0)};function a1(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function JC(i,v,e){var N={fired:!1,wrapFn:void 0,target:i,type:v,listener:e},y=a1.bind(N);return y.listener=e,N.wrapFn=y,y}Rr.prototype.once=function(v,e){return ad(e),this.on(v,JC(this,v,e)),this};Rr.prototype.prependOnceListener=function(v,e){return ad(e),this.prependListener(v,JC(this,v,e)),this};Rr.prototype.removeListener=function(v,e){var N,y,w,G,P;if(ad(e),y=this._events,y===void 0)return this;if(N=y[v],N===void 0)return this;if(N===e||N.listener===e)--this._eventsCount===0?this._events=Object.create(null):(delete y[v],y.removeListener&&this.emit("removeListener",v,N.listener||e));else if(typeof N!="function"){for(w=-1,G=N.length-1;G>=0;G--)if(N[G]===e||N[G].listener===e){P=N[G].listener,w=G;break}if(w<0)return this;w===0?N.shift():l1(N,w),N.length===1&&(y[v]=N[0]),y.removeListener!==void 0&&this.emit("removeListener",v,P||e)}return this};Rr.prototype.off=Rr.prototype.removeListener;Rr.prototype.removeAllListeners=function(v){var e,N,y;if(N=this._events,N===void 0)return this;if(N.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):N[v]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete N[v]),this;if(arguments.length===0){var w=Object.keys(N),G;for(y=0;y<w.length;++y)G=w[y],G!=="removeListener"&&this.removeAllListeners(G);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(e=N[v],typeof e=="function")this.removeListener(v,e);else if(e!==void 0)for(y=e.length-1;y>=0;y--)this.removeListener(v,e[y]);return this};function jC(i,v,e){var N=i._events;if(N===void 0)return[];var y=N[v];return y===void 0?[]:typeof y=="function"?e?[y.listener||y]:[y]:e?u1(y):qC(y,y.length)}Rr.prototype.listeners=function(v){return jC(this,v,!0)};Rr.prototype.rawListeners=function(v){return jC(this,v,!1)};Rr.listenerCount=function(i,v){return typeof i.listenerCount=="function"?i.listenerCount(v):zC.call(i,v)};Rr.prototype.listenerCount=zC;function zC(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}Rr.prototype.eventNames=function(){return this._eventsCount>0?od(this._events):[]};function qC(i,v){for(var e=new Array(v),N=0;N<v;++N)e[N]=i[N];return e}function l1(i,v){for(;v+1<i.length;v++)i[v]=i[v+1];i.pop()}function u1(i){for(var v=new Array(i.length),e=0;e<v.length;++e)v[e]=i[e].listener||i[e];return v}function f1(i,v){return new Promise(function(e,N){function y(G){i.removeListener(v,w),N(G)}function w(){typeof i.removeListener=="function"&&i.removeListener("error",y),e([].slice.call(arguments))}KC(i,v,w,{once:!0}),v!=="error"&&p1(i,y,{once:!0})})}function p1(i,v,e){typeof i.on=="function"&&KC(i,"error",v,e)}function KC(i,v,e,N){if(typeof i.on=="function")N.once?i.once(v,e):i.on(v,e);else if(typeof i.addEventListener=="function")i.addEventListener(v,function y(w){N.once&&i.removeEventListener(v,y),e(w)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof i)}});var yv=Nr((hA,dA)=>{(function(i){typeof hA=="object"&&typeof dA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";function v(w,G,P,H){if(P&&P.call){var Z=P;P=null}else var Z=y(w,P,"rangeFinder");typeof G=="number"&&(G=i.Pos(G,0));var $=y(w,P,"minFoldSize");function V(X){var D=Z(w,G);if(!D||D.to.line-D.from.line<$)return null;if(H==="fold")return D;for(var B=w.findMarksAt(D.from),Y=0;Y<B.length;++Y)if(B[Y].__isFold){if(!X)return null;D.cleared=!0,B[Y].clear()}return D}var J=V(!0);if(y(w,P,"scanUp"))for(;!J&&G.line>w.firstLine();)G=i.Pos(G.line-1,0),J=V(!1);if(!(!J||J.cleared||H==="unfold")){var k=e(w,P,J);i.on(k,"mousedown",function(X){ee.clear(),i.e_preventDefault(X)});var ee=w.markText(J.from,J.to,{replacedWith:k,clearOnEnter:y(w,P,"clearOnEnter"),__isFold:!0});ee.on("clear",function(X,D){i.signal(w,"unfold",w,X,D)}),i.signal(w,"fold",w,J.from,J.to)}}function e(w,G,P){var H=y(w,G,"widget");if(typeof H=="function"&&(H=H(P.from,P.to)),typeof H=="string"){var Z=document.createTextNode(H);H=document.createElement("span"),H.appendChild(Z),H.className="CodeMirror-foldmarker"}else H&&(H=H.cloneNode(!0));return H}i.newFoldFunction=function(w,G){return function(P,H){v(P,H,{rangeFinder:w,widget:G})}},i.defineExtension("foldCode",function(w,G,P){v(this,w,G,P)}),i.defineExtension("isFolded",function(w){for(var G=this.findMarksAt(w),P=0;P<G.length;++P)if(G[P].__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(),P=w.lastLine();G<=P;G++)w.foldCode(i.Pos(G,0),{scanUp:!1},"fold")})},i.commands.unfoldAll=function(w){w.operation(function(){for(var G=w.firstLine(),P=w.lastLine();G<=P;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,P){for(var H=0;H<w.length;++H){var Z=w[H](G,P);if(Z)return Z}}}),i.registerHelper("fold","auto",function(w,G){for(var P=w.getHelpers(G,"fold"),H=0;H<P.length;H++){var Z=P[H](w,G);if(Z)return Z}});var N={rangeFinder:i.fold.auto,widget:"\u2194",minFoldSize:0,scanUp:!1,clearOnEnter:!0};i.defineOption("foldOptions",null);function y(w,G,P){if(G&&G[P]!==void 0)return G[P];var H=w.options.foldOptions;return H&&H[P]!==void 0?H[P]:N[P]}i.defineExtension("foldOption",function(w,G){return y(this,w,G)})})});var vA=Nr((gA,EA)=>{(function(i){typeof gA=="object"&&typeof EA=="object"?i(si(),yv()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./foldcode"],i):i(CodeMirror)})(function(i){"use strict";i.defineOption("foldGutter",!1,function(ee,X,D){D&&D!=i.Init&&(ee.clearGutter(ee.state.foldGutter.options.gutter),ee.state.foldGutter=null,ee.off("gutterClick",Z),ee.off("changes",V),ee.off("viewportChange",J),ee.off("fold",k),ee.off("unfold",k),ee.off("swapDoc",V),ee.off("optionChange",$)),X&&(ee.state.foldGutter=new e(N(X)),H(ee),ee.on("gutterClick",Z),ee.on("changes",V),ee.on("viewportChange",J),ee.on("fold",k),ee.on("unfold",k),ee.on("swapDoc",V),ee.on("optionChange",$))});var v=i.Pos;function e(ee){this.options=ee,this.from=this.to=0}function N(ee){return ee===!0&&(ee={}),ee.gutter==null&&(ee.gutter="CodeMirror-foldgutter"),ee.indicatorOpen==null&&(ee.indicatorOpen="CodeMirror-foldgutter-open"),ee.indicatorFolded==null&&(ee.indicatorFolded="CodeMirror-foldgutter-folded"),ee}function y(ee,X){for(var D=ee.findMarks(v(X,0),v(X+1,0)),B=0;B<D.length;++B)if(D[B].__isFold){var Y=D[B].find(-1);if(Y&&Y.line===X)return D[B]}}function w(ee){if(typeof ee=="string"){var X=document.createElement("div");return X.className=ee+" CodeMirror-guttermarker-subtle",X}else return ee.cloneNode(!0)}function G(ee,X,D){var B=ee.state.foldGutter.options,Y=X-1,z=ee.foldOption(B,"minFoldSize"),te=ee.foldOption(B,"rangeFinder"),ie=typeof B.indicatorFolded=="string"&&P(B.indicatorFolded),ue=typeof B.indicatorOpen=="string"&&P(B.indicatorOpen);ee.eachLine(X,D,function(Ee){++Y;var $e=null,we=Ee.gutterMarkers;if(we&&(we=we[B.gutter]),y(ee,Y)){if(ie&&we&&ie.test(we.className))return;$e=w(B.indicatorFolded)}else{var _e=v(Y,0),Me=te&&te(ee,_e);if(Me&&Me.to.line-Me.from.line>=z){if(ue&&we&&ue.test(we.className))return;$e=w(B.indicatorOpen)}}!$e&&!we||ee.setGutterMarker(Ee,B.gutter,$e)})}function P(ee){return new RegExp("(^|\\s)"+ee+"(?:$|\\s)\\s*")}function H(ee){var X=ee.getViewport(),D=ee.state.foldGutter;D&&(ee.operation(function(){G(ee,X.from,X.to)}),D.from=X.from,D.to=X.to)}function Z(ee,X,D){var B=ee.state.foldGutter;if(B){var Y=B.options;if(D==Y.gutter){var z=y(ee,X);z?z.clear():ee.foldCode(v(X,0),Y)}}}function $(ee,X){X=="mode"&&V(ee)}function V(ee){var X=ee.state.foldGutter;if(X){var D=X.options;X.from=X.to=0,clearTimeout(X.changeUpdate),X.changeUpdate=setTimeout(function(){H(ee)},D.foldOnChangeTimeSpan||600)}}function J(ee){var X=ee.state.foldGutter;if(X){var D=X.options;clearTimeout(X.changeUpdate),X.changeUpdate=setTimeout(function(){var B=ee.getViewport();X.from==X.to||B.from-X.to>20||X.from-B.to>20?H(ee):ee.operation(function(){B.from<X.from&&(G(ee,B.from,X.from),X.from=B.from),B.to>X.to&&(G(ee,X.to,B.to),X.to=B.to)})},D.updateViewportTimeSpan||400)}}function k(ee,X){var D=ee.state.foldGutter;if(D){var B=X.line;B>=D.from&&B<D.to&&G(ee,B,B+1)}}})});var CA=Nr((mA,xA)=>{(function(i){typeof mA=="object"&&typeof xA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v=i.Pos;function e(D,B){return D.line-B.line||D.ch-B.ch}var N="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",y=N+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w=new RegExp("<(/?)(["+N+"]["+y+"]*)","g");function G(D,B,Y,z){this.line=B,this.ch=Y,this.cm=D,this.text=D.getLine(B),this.min=z?Math.max(z.from,D.firstLine()):D.firstLine(),this.max=z?Math.min(z.to-1,D.lastLine()):D.lastLine()}function P(D,B){var Y=D.cm.getTokenTypeAt(v(D.line,B));return Y&&/\btag\b/.test(Y)}function H(D){if(!(D.line>=D.max))return D.ch=0,D.text=D.cm.getLine(++D.line),!0}function Z(D){if(!(D.line<=D.min))return D.text=D.cm.getLine(--D.line),D.ch=D.text.length,!0}function $(D){for(;;){var B=D.text.indexOf(">",D.ch);if(B==-1){if(H(D))continue;return}if(!P(D,B+1)){D.ch=B+1;continue}var Y=D.text.lastIndexOf("/",B),z=Y>-1&&!/\S/.test(D.text.slice(Y+1,B));return D.ch=B+1,z?"selfClose":"regular"}}function V(D){for(;;){var B=D.ch?D.text.lastIndexOf("<",D.ch-1):-1;if(B==-1){if(Z(D))continue;return}if(!P(D,B+1)){D.ch=B;continue}w.lastIndex=B,D.ch=B;var Y=w.exec(D.text);if(Y&&Y.index==B)return Y}}function J(D){for(;;){w.lastIndex=D.ch;var B=w.exec(D.text);if(!B){if(H(D))continue;return}if(!P(D,B.index+1)){D.ch=B.index+1;continue}return D.ch=B.index+B[0].length,B}}function k(D){for(;;){var B=D.ch?D.text.lastIndexOf(">",D.ch-1):-1;if(B==-1){if(Z(D))continue;return}if(!P(D,B+1)){D.ch=B;continue}var Y=D.text.lastIndexOf("/",B),z=Y>-1&&!/\S/.test(D.text.slice(Y+1,B));return D.ch=B+1,z?"selfClose":"regular"}}function ee(D,B){for(var Y=[];;){var z=J(D),te,ie=D.line,ue=D.ch-(z?z[0].length:0);if(!z||!(te=$(D)))return;if(te!="selfClose")if(z[1]){for(var Ee=Y.length-1;Ee>=0;--Ee)if(Y[Ee]==z[2]){Y.length=Ee;break}if(Ee<0&&(!B||B==z[2]))return{tag:z[2],from:v(ie,ue),to:v(D.line,D.ch)}}else Y.push(z[2])}}function X(D,B){for(var Y=[];;){var z=k(D);if(!z)return;if(z=="selfClose"){V(D);continue}var te=D.line,ie=D.ch,ue=V(D);if(!ue)return;if(ue[1])Y.push(ue[2]);else{for(var Ee=Y.length-1;Ee>=0;--Ee)if(Y[Ee]==ue[2]){Y.length=Ee;break}if(Ee<0&&(!B||B==ue[2]))return{tag:ue[2],from:v(D.line,D.ch),to:v(te,ie)}}}}i.registerHelper("fold","xml",function(D,B){for(var Y=new G(D,B.line,0);;){var z=J(Y);if(!z||Y.line!=B.line)return;var te=$(Y);if(!te)return;if(!z[1]&&te!="selfClose"){var ie=v(Y.line,Y.ch),ue=ee(Y,z[2]);return ue&&e(ue.from,ie)>0?{from:ie,to:ue.from}:null}}}),i.findMatchingTag=function(D,B,Y){var z=new G(D,B.line,B.ch,Y);if(!(z.text.indexOf(">")==-1&&z.text.indexOf("<")==-1)){var te=$(z),ie=te&&v(z.line,z.ch),ue=te&&V(z);if(!(!te||!ue||e(z,B)>0)){var Ee={from:v(z.line,z.ch),to:ie,tag:ue[2]};return te=="selfClose"?{open:Ee,close:null,at:"open"}:ue[1]?{open:X(z,ue[2]),close:Ee,at:"close"}:(z=new G(D,ie.line,ie.ch,Y),{open:Ee,close:ee(z,ue[2]),at:"open"})}}},i.findEnclosingTag=function(D,B,Y,z){for(var te=new G(D,B.line,B.ch,Y);;){var ie=X(te,z);if(!ie)break;var ue=new G(D,B.line,B.ch,Y),Ee=ee(ue,ie.tag);if(Ee)return{open:ie,close:Ee}}},i.scanForClosingTag=function(D,B,Y,z){var te=new G(D,B.line,B.ch,z?{from:0,to:z}:null);return ee(te,Y)}})});var NA=Nr((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";function v(e){return function(N,y){var w=y.line,G=N.getLine(w);function P(k){for(var ee,X=y.ch,D=0;;){var B=X<=0?-1:G.lastIndexOf(k[0],X-1);if(B==-1){if(D==1)break;D=1,X=G.length;continue}if(D==1&&B<y.ch)break;if(ee=N.getTokenTypeAt(i.Pos(w,B+1)),!/^(comment|string)/.test(ee))return{ch:B+1,tokenType:ee,pair:k};X=B-1}}function H(k){var ee=1,X=N.lastLine(),D,B=k.ch,Y;e:for(var z=w;z<=X;++z)for(var te=N.getLine(z),ie=z==w?B:0;;){var ue=te.indexOf(k.pair[0],ie),Ee=te.indexOf(k.pair[1],ie);if(ue<0&&(ue=te.length),Ee<0&&(Ee=te.length),ie=Math.min(ue,Ee),ie==te.length)break;if(N.getTokenTypeAt(i.Pos(z,ie+1))==k.tokenType){if(ie==ue)++ee;else if(!--ee){D=z,Y=ie;break e}}++ie}return D==null||w==D?null:{from:i.Pos(w,B),to:i.Pos(D,Y)}}for(var Z=[],$=0;$<e.length;$++){var V=P(e[$]);V&&Z.push(V)}Z.sort(function(k,ee){return k.ch-ee.ch});for(var $=0;$<Z.length;$++){var J=H(Z[$]);if(J)return J}return null}}i.registerHelper("fold","brace",v([["{","}"],["[","]"]])),i.registerHelper("fold","brace-paren",v([["{","}"],["[","]"],["(",")"]])),i.registerHelper("fold","import",function(e,N){function y($){if($<e.firstLine()||$>e.lastLine())return null;var V=e.getTokenAt(i.Pos($,1));if(/\S/.test(V.string)||(V=e.getTokenAt(i.Pos($,V.end+1))),V.type!="keyword"||V.string!="import")return null;for(var J=$,k=Math.min(e.lastLine(),$+10);J<=k;++J){var ee=e.getLine(J),X=ee.indexOf(";");if(X!=-1)return{startCh:V.end,end:i.Pos(J,X)}}}var w=N.line,G=y(w),P;if(!G||y(w-1)||(P=y(w-2))&&P.end.line==w-1)return null;for(var H=G.end;;){var Z=y(H.line+1);if(Z==null)break;H=Z.end}return{from:e.clipPos(i.Pos(w,G.startCh+1)),to:H}}),i.registerHelper("fold","include",function(e,N){function y(Z){if(Z<e.firstLine()||Z>e.lastLine())return null;var $=e.getTokenAt(i.Pos(Z,1));if(/\S/.test($.string)||($=e.getTokenAt(i.Pos(Z,$.end+1))),$.type=="meta"&&$.string.slice(0,8)=="#include")return $.start+8}var w=N.line,G=y(w);if(G==null||y(w-1)!=null)return null;for(var P=w;;){var H=y(P+1);if(H==null)break;++P}return{from:i.Pos(w,G+1),to:e.clipPos(i.Pos(P))}})})});var LA=Nr((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";var v="CodeMirror-hint",e="CodeMirror-hint-active";i.showHint=function(X,D,B){if(!D)return X.showHint(B);B&&B.async&&(D.async=!0);var Y={hint:D};if(B)for(var z in B)Y[z]=B[z];return X.showHint(Y)},i.defineExtension("showHint",function(X){X=G(this,this.getCursor("start"),X);var D=this.listSelections();if(!(D.length>1)){if(this.somethingSelected()){if(!X.hint.supportsSelection)return;for(var B=0;B<D.length;B++)if(D[B].head.line!=D[B].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var Y=this.state.completionActive=new N(this,X);Y.options.hint&&(i.signal(this,"startCompletion",this),Y.update(!0))}}),i.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function N(X,D){if(this.cm=X,this.options=D,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 B=this;X.on("cursorActivity",this.activityFunc=function(){B.cursorActivity()})}}var y=window.requestAnimationFrame||function(X){return setTimeout(X,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(X,D){var B=X.list[D],Y=this;this.cm.operation(function(){B.hint?B.hint(Y.cm,X,B):Y.cm.replaceRange(P(B),B.from||X.from,B.to||X.to,"complete"),i.signal(X,"pick",B),Y.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(w(this.debounce),this.debounce=0);var X=this.startPos;this.data&&(X=this.data.from);var D=this.cm.getCursor(),B=this.cm.getLine(D.line);if(D.line!=this.startPos.line||B.length-D.ch!=this.startLen-this.startPos.ch||D.ch<X.ch||this.cm.somethingSelected()||!D.ch||this.options.closeCharacters.test(B.charAt(D.ch-1)))this.close();else{var Y=this;this.debounce=y(function(){Y.update()}),this.widget&&this.widget.disable()}},update:function(X){if(this.tick!=null){var D=this,B=++this.tick;J(this.options.hint,this.cm,this.options,function(Y){D.tick==B&&D.finishUpdate(Y,X)})}},finishUpdate:function(X,D){this.data&&i.signal(this.data,"update");var B=this.widget&&this.widget.picked||D&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=X,X&&X.list.length&&(B&&X.list.length==1?this.pick(X,0):(this.widget=new $(this,X),i.signal(X,"shown")))}};function G(X,D,B){var Y=X.options.hintOptions,z={};for(var te in ee)z[te]=ee[te];if(Y)for(var te in Y)Y[te]!==void 0&&(z[te]=Y[te]);if(B)for(var te in B)B[te]!==void 0&&(z[te]=B[te]);return z.hint.resolve&&(z.hint=z.hint.resolve(X,D)),z}function P(X){return typeof X=="string"?X:X.text}function H(X,D){var B={Up:function(){D.moveFocus(-1)},Down:function(){D.moveFocus(1)},PageUp:function(){D.moveFocus(-D.menuSize()+1,!0)},PageDown:function(){D.moveFocus(D.menuSize()-1,!0)},Home:function(){D.setFocus(0)},End:function(){D.setFocus(D.length-1)},Enter:D.pick,Tab:D.pick,Esc:D.close},Y=/Mac/.test(navigator.platform);Y&&(B["Ctrl-P"]=function(){D.moveFocus(-1)},B["Ctrl-N"]=function(){D.moveFocus(1)});var z=X.options.customKeys,te=z?{}:B;function ie($e,we){var _e;typeof we!="string"?_e=function(Me){return we(Me,D)}:B.hasOwnProperty(we)?_e=B[we]:_e=we,te[$e]=_e}if(z)for(var ue in z)z.hasOwnProperty(ue)&&ie(ue,z[ue]);var Ee=X.options.extraKeys;if(Ee)for(var ue in Ee)Ee.hasOwnProperty(ue)&&ie(ue,Ee[ue]);return te}function Z(X,D){for(;D&&D!=X;){if(D.nodeName.toUpperCase()==="LI"&&D.parentNode==X)return D;D=D.parentNode}}function $(X,D){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=X,this.data=D,this.picked=!1;var B=this,Y=X.cm,z=Y.getInputField().ownerDocument,te=z.defaultView||z.parentWindow,ie=this.hints=z.createElement("ul");ie.setAttribute("role","listbox"),ie.setAttribute("aria-expanded","true"),ie.id=this.id;var ue=X.cm.options.theme;ie.className="CodeMirror-hints "+ue,this.selectedHint=D.selectedHint||0;for(var Ee=D.list,$e=0;$e<Ee.length;++$e){var we=ie.appendChild(z.createElement("li")),_e=Ee[$e],Me=v+($e!=this.selectedHint?"":" "+e);_e.className!=null&&(Me=_e.className+" "+Me),we.className=Me,$e==this.selectedHint&&we.setAttribute("aria-selected","true"),we.id=this.id+"-"+$e,we.setAttribute("role","option"),_e.render?_e.render(we,D,_e):we.appendChild(z.createTextNode(_e.displayText||P(_e))),we.hintId=$e}var Ke=X.options.container||z.body,ve=Y.cursorCoords(X.options.alignWithWord?D.from:null),xr=ve.left,Cr=ve.bottom,ur=!0,Xr=0,Je=0;if(Ke!==z.body){var Lt=["absolute","relative","fixed"].indexOf(te.getComputedStyle(Ke).position)!==-1,St=Lt?Ke:Ke.offsetParent,cr=St.getBoundingClientRect(),yt=z.body.getBoundingClientRect();Xr=cr.left-yt.left-St.scrollLeft,Je=cr.top-yt.top-St.scrollTop}ie.style.left=xr-Xr+"px",ie.style.top=Cr-Je+"px";var or=te.innerWidth||Math.max(z.body.offsetWidth,z.documentElement.offsetWidth),ot=te.innerHeight||Math.max(z.body.offsetHeight,z.documentElement.offsetHeight);Ke.appendChild(ie),Y.getInputField().setAttribute("aria-autocomplete","list"),Y.getInputField().setAttribute("aria-owns",this.id),Y.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var je=X.options.moveOnOverlap?ie.getBoundingClientRect():new DOMRect,Jr=X.options.paddingForScrollbar?ie.scrollHeight>ie.clientHeight+1:!1,Ar;setTimeout(function(){Ar=Y.getScrollInfo()});var Vr=je.bottom-ot;if(Vr>0){var hr=je.bottom-je.top,Kt=je.top-(ve.bottom-ve.top)-2;ot-je.top<Kt?(hr>Kt&&(ie.style.height=(hr=Kt)+"px"),ie.style.top=(Cr=ve.top-hr)-Je+"px",ur=!1):ie.style.height=ot-je.top-2+"px"}var Oe=je.right-or;if(Jr&&(Oe+=Y.display.nativeBarWidth),Oe>0&&(je.right-je.left>or&&(ie.style.width=or-5+"px",Oe-=je.right-je.left-or),ie.style.left=(xr=Math.max(ve.left-Oe-Xr,0))+"px"),Jr)for(var pe=ie.firstChild;pe;pe=pe.nextSibling)pe.style.paddingRight=Y.display.nativeBarWidth+"px";if(Y.addKeyMap(this.keyMap=H(X,{moveFocus:function(Se,Or){B.changeActive(B.selectedHint+Se,Or)},setFocus:function(Se){B.changeActive(Se)},menuSize:function(){return B.screenAmount()},length:Ee.length,close:function(){X.close()},pick:function(){B.pick()},data:D})),X.options.closeOnUnfocus){var Er;Y.on("blur",this.onBlur=function(){Er=setTimeout(function(){X.close()},100)}),Y.on("focus",this.onFocus=function(){clearTimeout(Er)})}Y.on("scroll",this.onScroll=function(){var Se=Y.getScrollInfo(),Or=Y.getWrapperElement().getBoundingClientRect();Ar||(Ar=Y.getScrollInfo());var ei=Cr+Ar.top-Se.top,Ie=ei-(te.pageYOffset||(z.documentElement||z.body).scrollTop);if(ur||(Ie+=ie.offsetHeight),Ie<=Or.top||Ie>=Or.bottom)return X.close();ie.style.top=ei+"px",ie.style.left=xr+Ar.left-Se.left+"px"}),i.on(ie,"dblclick",function(Se){var Or=Z(ie,Se.target||Se.srcElement);Or&&Or.hintId!=null&&(B.changeActive(Or.hintId),B.pick())}),i.on(ie,"click",function(Se){var Or=Z(ie,Se.target||Se.srcElement);Or&&Or.hintId!=null&&(B.changeActive(Or.hintId),X.options.completeOnSingleClick&&B.pick())}),i.on(ie,"mousedown",function(){setTimeout(function(){Y.focus()},20)});var fr=this.getSelectedHintRange();return(fr.from!==0||fr.to!==0)&&this.scrollToActive(),i.signal(D,"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 X=this.completion.cm.getInputField();X.removeAttribute("aria-activedescendant"),X.removeAttribute("aria-owns");var D=this.completion.cm;this.completion.options.closeOnUnfocus&&(D.off("blur",this.onBlur),D.off("focus",this.onFocus)),D.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var X=this;this.keyMap={Enter:function(){X.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(X,D){if(X>=this.data.list.length?X=D?this.data.list.length-1:0:X<0&&(X=D?0:this.data.list.length-1),this.selectedHint!=X){var B=this.hints.childNodes[this.selectedHint];B&&(B.className=B.className.replace(" "+e,""),B.removeAttribute("aria-selected")),B=this.hints.childNodes[this.selectedHint=X],B.className+=" "+e,B.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",B.id),this.scrollToActive(),i.signal(this.data,"select",this.data.list[this.selectedHint],B)}},scrollToActive:function(){var X=this.getSelectedHintRange(),D=this.hints.childNodes[X.from],B=this.hints.childNodes[X.to],Y=this.hints.firstChild;D.offsetTop<this.hints.scrollTop?this.hints.scrollTop=D.offsetTop-Y.offsetTop:B.offsetTop+B.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=B.offsetTop+B.offsetHeight-this.hints.clientHeight+Y.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var X=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-X),to:Math.min(this.data.list.length-1,this.selectedHint+X)}}};function V(X,D){if(!X.somethingSelected())return D;for(var B=[],Y=0;Y<D.length;Y++)D[Y].supportsSelection&&B.push(D[Y]);return B}function J(X,D,B,Y){if(X.async)X(D,Y,B);else{var z=X(D,B);z&&z.then?z.then(Y):Y(z)}}function k(X,D){var B=X.getHelpers(D,"hint"),Y;if(B.length){var z=function(te,ie,ue){var Ee=V(te,B);function $e(we){if(we==Ee.length)return ie(null);J(Ee[we],te,ue,function(_e){_e&&_e.list.length>0?ie(_e):$e(we+1)})}$e(0)};return z.async=!0,z.supportsSelection=!0,z}else return(Y=X.getHelper(X.getCursor(),"hintWords"))?function(te){return i.hint.fromList(te,{words:Y})}:i.hint.anyword?function(te,ie){return i.hint.anyword(te,ie)}:function(){}}i.registerHelper("hint","auto",{resolve:k}),i.registerHelper("hint","fromList",function(X,D){var B=X.getCursor(),Y=X.getTokenAt(B),z,te=i.Pos(B.line,Y.start),ie=B;Y.start<B.ch&&/\w/.test(Y.string.charAt(B.ch-Y.start-1))?z=Y.string.substr(0,B.ch-Y.start):(z="",te=B);for(var ue=[],Ee=0;Ee<D.words.length;Ee++){var $e=D.words[Ee];$e.slice(0,z.length)==z&&ue.push($e)}if(ue.length)return{list:ue,from:te,to:ie}}),i.commands.autocomplete=i.showHint;var ee={hint:i.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};i.defineOption("hintOptions",null)})});var Rv=Nr((SA,yA)=>{(function(i){typeof SA=="object"&&typeof yA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";var v=i.Pos;function e(D){var B=D.flags;return B??(D.ignoreCase?"i":"")+(D.global?"g":"")+(D.multiline?"m":"")}function N(D,B){for(var Y=e(D),z=Y,te=0;te<B.length;te++)z.indexOf(B.charAt(te))==-1&&(z+=B.charAt(te));return Y==z?D:new RegExp(D.source,z)}function y(D){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(D.source)}function w(D,B,Y){B=N(B,"g");for(var z=Y.line,te=Y.ch,ie=D.lastLine();z<=ie;z++,te=0){B.lastIndex=te;var ue=D.getLine(z),Ee=B.exec(ue);if(Ee)return{from:v(z,Ee.index),to:v(z,Ee.index+Ee[0].length),match:Ee}}}function G(D,B,Y){if(!y(B))return w(D,B,Y);B=N(B,"gm");for(var z,te=1,ie=Y.line,ue=D.lastLine();ie<=ue;){for(var Ee=0;Ee<te&&!(ie>ue);Ee++){var $e=D.getLine(ie++);z=z==null?$e:z+`
|
|
31
|
+
`+$e}te=te*2,B.lastIndex=Y.ch;var we=B.exec(z);if(we){var _e=z.slice(0,we.index).split(`
|
|
32
|
+
`),Me=we[0].split(`
|
|
33
|
+
`),Ke=Y.line+_e.length-1,ve=_e[_e.length-1].length;return{from:v(Ke,ve),to:v(Ke+Me.length-1,Me.length==1?ve+Me[0].length:Me[Me.length-1].length),match:we}}}}function P(D,B,Y){for(var z,te=0;te<=D.length;){B.lastIndex=te;var ie=B.exec(D);if(!ie)break;var ue=ie.index+ie[0].length;if(ue>D.length-Y)break;(!z||ue>z.index+z[0].length)&&(z=ie),te=ie.index+1}return z}function H(D,B,Y){B=N(B,"g");for(var z=Y.line,te=Y.ch,ie=D.firstLine();z>=ie;z--,te=-1){var ue=D.getLine(z),Ee=P(ue,B,te<0?0:ue.length-te);if(Ee)return{from:v(z,Ee.index),to:v(z,Ee.index+Ee[0].length),match:Ee}}}function Z(D,B,Y){if(!y(B))return H(D,B,Y);B=N(B,"gm");for(var z,te=1,ie=D.getLine(Y.line).length-Y.ch,ue=Y.line,Ee=D.firstLine();ue>=Ee;){for(var $e=0;$e<te&&ue>=Ee;$e++){var we=D.getLine(ue--);z=z==null?we:we+`
|
|
34
|
+
`+z}te*=2;var _e=P(z,B,ie);if(_e){var Me=z.slice(0,_e.index).split(`
|
|
35
|
+
`),Ke=_e[0].split(`
|
|
36
|
+
`),ve=ue+Me.length,xr=Me[Me.length-1].length;return{from:v(ve,xr),to:v(ve+Ke.length-1,Ke.length==1?xr+Ke[0].length:Ke[Ke.length-1].length),match:_e}}}}var $,V;String.prototype.normalize?($=function(D){return D.normalize("NFD").toLowerCase()},V=function(D){return D.normalize("NFD")}):($=function(D){return D.toLowerCase()},V=function(D){return D});function J(D,B,Y,z){if(D.length==B.length)return Y;for(var te=0,ie=Y+Math.max(0,D.length-B.length);;){if(te==ie)return te;var ue=te+ie>>1,Ee=z(D.slice(0,ue)).length;if(Ee==Y)return ue;Ee>Y?ie=ue:te=ue+1}}function k(D,B,Y,z){if(!B.length)return null;var te=z?$:V,ie=te(B).split(/\r|\n\r?/);e:for(var ue=Y.line,Ee=Y.ch,$e=D.lastLine()+1-ie.length;ue<=$e;ue++,Ee=0){var we=D.getLine(ue).slice(Ee),_e=te(we);if(ie.length==1){var Me=_e.indexOf(ie[0]);if(Me==-1)continue e;var Y=J(we,_e,Me,te)+Ee;return{from:v(ue,J(we,_e,Me,te)+Ee),to:v(ue,J(we,_e,Me+ie[0].length,te)+Ee)}}else{var Ke=_e.length-ie[0].length;if(_e.slice(Ke)!=ie[0])continue e;for(var ve=1;ve<ie.length-1;ve++)if(te(D.getLine(ue+ve))!=ie[ve])continue e;var xr=D.getLine(ue+ie.length-1),Cr=te(xr),ur=ie[ie.length-1];if(Cr.slice(0,ur.length)!=ur)continue e;return{from:v(ue,J(we,_e,Ke,te)+Ee),to:v(ue+ie.length-1,J(xr,Cr,ur.length,te))}}}}function ee(D,B,Y,z){if(!B.length)return null;var te=z?$:V,ie=te(B).split(/\r|\n\r?/);e:for(var ue=Y.line,Ee=Y.ch,$e=D.firstLine()-1+ie.length;ue>=$e;ue--,Ee=-1){var we=D.getLine(ue);Ee>-1&&(we=we.slice(0,Ee));var _e=te(we);if(ie.length==1){var Me=_e.lastIndexOf(ie[0]);if(Me==-1)continue e;return{from:v(ue,J(we,_e,Me,te)),to:v(ue,J(we,_e,Me+ie[0].length,te))}}else{var Ke=ie[ie.length-1];if(_e.slice(0,Ke.length)!=Ke)continue e;for(var ve=1,Y=ue-ie.length+1;ve<ie.length-1;ve++)if(te(D.getLine(Y+ve))!=ie[ve])continue e;var xr=D.getLine(ue+1-ie.length),Cr=te(xr);if(Cr.slice(Cr.length-ie[0].length)!=ie[0])continue e;return{from:v(ue+1-ie.length,J(xr,Cr,xr.length-ie[0].length,te)),to:v(ue,J(we,_e,Ke.length,te))}}}}function X(D,B,Y,z){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=D,Y=Y?D.clipPos(Y):v(0,0),this.pos={from:Y,to:Y};var te;typeof z=="object"?te=z.caseFold:(te=z,z=null),typeof B=="string"?(te==null&&(te=!1),this.matches=function(ie,ue){return(ie?ee:k)(D,B,ue,te)}):(B=N(B,"gm"),!z||z.multiline!==!1?this.matches=function(ie,ue){return(ie?Z:G)(D,B,ue)}:this.matches=function(ie,ue){return(ie?H:w)(D,B,ue)})}X.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(D){var B=this.doc.clipPos(D?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(B=v(B.line,B.ch),D?(B.ch--,B.ch<0&&(B.line--,B.ch=(this.doc.getLine(B.line)||"").length)):(B.ch++,B.ch>(this.doc.getLine(B.line)||"").length&&(B.ch=0,B.line++)),i.cmpPos(B,this.doc.clipPos(B))!=0))return this.atOccurrence=!1;var Y=this.matches(D,B);if(this.afterEmptyMatch=Y&&i.cmpPos(Y.from,Y.to)==0,Y)return this.pos=Y,this.atOccurrence=!0,this.pos.match||!0;var z=v(D?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:z,to:z},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(D,B){if(this.atOccurrence){var Y=i.splitLines(D);this.doc.replaceRange(Y,this.pos.from,this.pos.to,B),this.pos.to=v(this.pos.from.line+Y.length-1,Y[Y.length-1].length+(Y.length==1?this.pos.from.ch:0))}}},i.defineExtension("getSearchCursor",function(D,B,Y){return new X(this.doc,D,B,Y)}),i.defineDocExtension("getSearchCursor",function(D,B,Y){return new X(this,D,B,Y)}),i.defineExtension("selectMatches",function(D,B){for(var Y=[],z=this.getSearchCursor(D,this.getCursor("from"),B);z.findNext()&&!(i.cmpPos(z.to(),this.getCursor("to"))>0);)Y.push({anchor:z.from(),head:z.to()});Y.length&&this.setSelections(Y,0)})})});var OA=Nr((RA,wA)=>{(function(i){typeof RA=="object"&&typeof wA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("annotateScrollbar",function(e){return typeof e=="string"&&(e={className:e}),new v(this,e)}),i.defineOption("scrollButtonHeight",0);function v(e,N){this.cm=e,this.options=N,this.buttonHeight=N.scrollButtonHeight||e.getOption("scrollButtonHeight"),this.annotations=[],this.doRedraw=this.doUpdate=null,this.div=e.getWrapperElement().appendChild(document.createElement("div")),this.div.style.cssText="position: absolute; right: 0; top: 0; z-index: 7; pointer-events: none",this.computeScale();function y(G){clearTimeout(w.doRedraw),w.doRedraw=setTimeout(function(){w.redraw()},G)}var w=this;e.on("refresh",this.resizeHandler=function(){clearTimeout(w.doUpdate),w.doUpdate=setTimeout(function(){w.computeScale()&&y(20)},100)}),e.on("markerAdded",this.resizeHandler),e.on("markerCleared",this.resizeHandler),N.listenForChanges!==!1&&e.on("changes",this.changeHandler=function(){y(250)})}v.prototype.computeScale=function(){var e=this.cm,N=(e.getWrapperElement().clientHeight-e.display.barHeight-this.buttonHeight*2)/e.getScrollerElement().scrollHeight;if(N!=this.hScale)return this.hScale=N,!0},v.prototype.update=function(e){this.annotations=e,this.redraw()},v.prototype.redraw=function(e){e!==!1&&this.computeScale();var N=this.cm,y=this.hScale,w=document.createDocumentFragment(),G=this.annotations,P=N.getOption("lineWrapping"),H=P&&N.defaultTextHeight()*1.5,Z=null,$=null;function V(te,ie){if(Z!=te.line){Z=te.line,$=N.getLineHandle(te.line);var ue=N.getLineHandleVisualStart($);ue!=$&&(Z=N.getLineNumber(ue),$=ue)}if($.widgets&&$.widgets.length||P&&$.height>H)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 k=0,ee;k<G.length;k++){var X=G[k];if(!(X.to.line>J)){for(var D=ee||V(X.from,!0)*y,B=V(X.to,!1)*y;k<G.length-1&&!(G[k+1].to.line>J||(ee=V(G[k+1].from,!0)*y,ee>B+.9));)X=G[++k],B=V(X.to,!1)*y;if(B!=D){var Y=Math.max(B-D,3),z=w.appendChild(document.createElement("div"));z.style.cssText="position: absolute; right: 0px; width: "+Math.max(N.display.barWidth-1,2)+"px; top: "+(D+this.buttonHeight)+"px; height: "+Y+"px",z.className=this.options.className,X.id&&z.setAttribute("annotation-id",X.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 FA=Nr((UA,GA)=>{(function(i){typeof UA=="object"&&typeof GA=="object"?i(si(),Rv(),OA()):typeof define=="function"&&define.amd?define(["../../lib/codemirror","./searchcursor","../scroll/annotatescrollbar"],i):i(CodeMirror)})(function(i){"use strict";i.defineExtension("showMatchesOnScrollbar",function(y,w,G){return typeof G=="string"&&(G={className:G}),G||(G={}),new v(this,y,w,G)});function v(y,w,G,P){this.cm=y,this.options=P;var H={listenForChanges:!1};for(var Z in P)H[Z]=P[Z];H.className||(H.className="CodeMirror-search-match"),this.annotation=y.annotateScrollbar(H),this.query=w,this.caseFold=G,this.gap={from:y.firstLine(),to:y.lastLine()+1},this.matches=[],this.update=null,this.findMatches(),this.annotation.update(this.matches);var $=this;y.on("change",this.changeHandler=function(V,J){$.onChange(J)})}var e=1e3;v.prototype.findMatches=function(){if(this.gap){for(var y=0;y<this.matches.length;y++){var w=this.matches[y];if(w.from.line>=this.gap.to)break;w.to.line>=this.gap.from&&this.matches.splice(y--,1)}for(var G=this.cm.getSearchCursor(this.query,i.Pos(this.gap.from,0),{caseFold:this.caseFold,multiline:this.options.multiline}),P=this.options&&this.options.maxMatches||e;G.findNext();){var w={from:G.from(),to:G.to()};if(w.from.line>=this.gap.to||(this.matches.splice(y++,0,w),this.matches.length>P))break}this.gap=null}};function N(y,w,G){return y<=w?y:Math.max(w,y+G)}v.prototype.onChange=function(y){var w=y.from.line,G=i.changeEnd(y).line,P=G-y.to.line;if(this.gap?(this.gap.from=Math.min(N(this.gap.from,w,P),y.from.line),this.gap.to=Math.max(N(this.gap.to,w,P),y.from.line)):this.gap={from:y.from.line,to:G+1},P)for(var H=0;H<this.matches.length;H++){var Z=this.matches[H],$=N(Z.from.line,w,P);$!=Z.from.line&&(Z.from=i.Pos($,Z.from.ch));var V=N(Z.to.line,w,P);V!=Z.to.line&&(Z.to=i.Pos(V,Z.to.ch))}clearTimeout(this.update);var J=this;this.update=setTimeout(function(){J.updateAfterChange()},250)},v.prototype.updateAfterChange=function(){this.findMatches(),this.annotation.update(this.matches)},v.prototype.clear=function(){this.cm.off("change",this.changeHandler),this.annotation.clear()}})});var PA=Nr((DA,BA)=>{(function(i){typeof DA=="object"&&typeof BA=="object"?i(si(),FA()):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 k in v)this.options[k]=(J&&J.hasOwnProperty(k)?J:v)[k];this.overlay=this.timeout=null,this.matchesonscroll=null,this.active=!1}i.defineOption("highlightSelectionMatches",!1,function(J,k,ee){if(ee&&ee!=i.Init&&(P(J),clearTimeout(J.state.matchHighlighter.timeout),J.state.matchHighlighter=null,J.off("cursorActivity",N),J.off("focus",y)),k){var X=J.state.matchHighlighter=new e(k);J.hasFocus()?(X.active=!0,H(J)):J.on("focus",y),J.on("cursorActivity",N)}});function N(J){var k=J.state.matchHighlighter;(k.active||J.hasFocus())&&w(J,k)}function y(J){var k=J.state.matchHighlighter;k.active||(k.active=!0,w(J,k))}function w(J,k){clearTimeout(k.timeout),k.timeout=setTimeout(function(){H(J)},k.options.delay)}function G(J,k,ee,X){var D=J.state.matchHighlighter;if(J.addOverlay(D.overlay=V(k,ee,X)),D.options.annotateScrollbar&&J.showMatchesOnScrollbar){var B=ee?new RegExp((/\w/.test(k.charAt(0))?"\\b":"")+k.replace(/[\\\[.+*?(){|^$]/g,"\\$&")+(/\w/.test(k.charAt(k.length-1))?"\\b":"")):k;D.matchesonscroll=J.showMatchesOnScrollbar(B,!1,{className:"CodeMirror-selection-highlight-scrollbar"})}}function P(J){var k=J.state.matchHighlighter;k.overlay&&(J.removeOverlay(k.overlay),k.overlay=null,k.matchesonscroll&&(k.matchesonscroll.clear(),k.matchesonscroll=null))}function H(J){J.operation(function(){var k=J.state.matchHighlighter;if(P(J),!J.somethingSelected()&&k.options.showToken){for(var ee=k.options.showToken===!0?/[\w$]/:k.options.showToken,X=J.getCursor(),D=J.getLine(X.line),B=X.ch,Y=B;B&&ee.test(D.charAt(B-1));)--B;for(;Y<D.length&&ee.test(D.charAt(Y));)++Y;B<Y&&G(J,D.slice(B,Y),ee,k.options.style);return}var z=J.getCursor("from"),te=J.getCursor("to");if(z.line==te.line&&!(k.options.wordsOnly&&!Z(J,z,te))){var ie=J.getRange(z,te);k.options.trim&&(ie=ie.replace(/^\s+|\s+$/g,"")),ie.length>=k.options.minChars&&G(J,ie,!1,k.options.style)}})}function Z(J,k,ee){var X=J.getRange(k,ee);if(X.match(/^\w+$/)!==null){if(k.ch>0){var D={line:k.line,ch:k.ch-1},B=J.getRange(D,k);if(B.match(/\W/)===null)return!1}if(ee.ch<J.getLine(k.line).length){var D={line:ee.line,ch:ee.ch+1},B=J.getRange(ee,D);if(B.match(/\W/)===null)return!1}return!0}else return!1}function $(J,k){return(!J.start||!k.test(J.string.charAt(J.start-1)))&&(J.pos==J.string.length||!k.test(J.string.charAt(J.pos)))}function V(J,k,ee){return{token:function(X){if(X.match(J)&&(!k||$(X,k)))return ee;X.next(),X.skipTo(J.charAt(0))||X.skipToEnd()}}}})});var _A=Nr((MA,VA)=>{(function(i){typeof MA=="object"&&typeof VA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){var v=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),e=i.Pos,N={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function y($){return $&&$.bracketRegex||/[(){}[\]]/}function w($,V,J){var k=$.getLineHandle(V.line),ee=V.ch-1,X=J&&J.afterCursor;X==null&&(X=/(^| )cm-fat-cursor($| )/.test($.getWrapperElement().className));var D=y(J),B=!X&&ee>=0&&D.test(k.text.charAt(ee))&&N[k.text.charAt(ee)]||D.test(k.text.charAt(ee+1))&&N[k.text.charAt(++ee)];if(!B)return null;var Y=B.charAt(1)==">"?1:-1;if(J&&J.strict&&Y>0!=(ee==V.ch))return null;var z=$.getTokenTypeAt(e(V.line,ee+1)),te=G($,e(V.line,ee+(Y>0?1:0)),Y,z,J);return te==null?null:{from:e(V.line,ee),to:te&&te.pos,match:te&&te.ch==B.charAt(0),forward:Y>0}}function G($,V,J,k,ee){for(var X=ee&&ee.maxScanLineLength||1e4,D=ee&&ee.maxScanLines||1e3,B=[],Y=y(ee),z=J>0?Math.min(V.line+D,$.lastLine()+1):Math.max($.firstLine()-1,V.line-D),te=V.line;te!=z;te+=J){var ie=$.getLine(te);if(ie){var ue=J>0?0:ie.length-1,Ee=J>0?ie.length:-1;if(!(ie.length>X))for(te==V.line&&(ue=V.ch-(J<0?1:0));ue!=Ee;ue+=J){var $e=ie.charAt(ue);if(Y.test($e)&&(k===void 0||($.getTokenTypeAt(e(te,ue+1))||"")==(k||""))){var we=N[$e];if(we&&we.charAt(1)==">"==J>0)B.push($e);else if(B.length)B.pop();else return{pos:e(te,ue),ch:$e}}}}}return te-J==(J>0?$.lastLine():$.firstLine())?!1:null}function P($,V,J){for(var k=$.state.matchBrackets.maxHighlightLineLength||1e3,ee=J&&J.highlightNonMatching,X=[],D=$.listSelections(),B=0;B<D.length;B++){var Y=D[B].empty()&&w($,D[B].head,J);if(Y&&(Y.match||ee!==!1)&&$.getLine(Y.from.line).length<=k){var z=Y.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";X.push($.markText(Y.from,e(Y.from.line,Y.from.ch+1),{className:z})),Y.to&&$.getLine(Y.to.line).length<=k&&X.push($.markText(Y.to,e(Y.to.line,Y.to.ch+1),{className:z}))}}if(X.length){v&&$.state.focused&&$.focus();var te=function(){$.operation(function(){for(var ie=0;ie<X.length;ie++)X[ie].clear()})};if(V)setTimeout(te,800);else return te}}function H($){$.operation(function(){$.state.matchBrackets.currentlyHighlighted&&($.state.matchBrackets.currentlyHighlighted(),$.state.matchBrackets.currentlyHighlighted=null),$.state.matchBrackets.currentlyHighlighted=P($,!1,$.state.matchBrackets)})}function Z($){$.state.matchBrackets&&$.state.matchBrackets.currentlyHighlighted&&($.state.matchBrackets.currentlyHighlighted(),$.state.matchBrackets.currentlyHighlighted=null)}i.defineOption("matchBrackets",!1,function($,V,J){J&&J!=i.Init&&($.off("cursorActivity",H),$.off("focus",H),$.off("blur",Z),Z($)),V&&($.state.matchBrackets=typeof V=="object"?V:{},$.on("cursorActivity",H),$.on("focus",H),$.on("blur",Z))}),i.defineExtension("matchBrackets",function(){P(this,!0)}),i.defineExtension("findMatchingBracket",function($,V,J){return(J||typeof V=="boolean")&&(J?(J.strict=V,V=J):V=V?{strict:!0}:null),w(this,$,V)}),i.defineExtension("scanForBracket",function($,V,J,k){return G(this,$,V,J,k)})})});var $A=Nr((WA,kA)=>{(function(i){typeof WA=="object"&&typeof kA=="object"?i(si()):typeof define=="function"&&define.amd?define(["../../lib/codemirror"],i):i(CodeMirror)})(function(i){"use strict";i.runMode=function(v,e,N,y){var w=i.getMode(i.defaults,e),G=y&&y.tabSize||i.defaults.tabSize;if(N.appendChild){var P=/MSIE \d/.test(navigator.userAgent),H=P&&(document.documentMode==null||document.documentMode<9),Z=N,$=0;Z.textContent="",N=function(B,Y){if(B==`
|
|
37
|
+
`){Z.appendChild(document.createTextNode(H?"\r":B)),$=0;return}for(var z="",te=0;;){var ie=B.indexOf(" ",te);if(ie==-1){z+=B.slice(te),$+=B.length-te;break}else{$+=ie-te,z+=B.slice(te,ie);var ue=G-$%G;$+=ue;for(var Ee=0;Ee<ue;++Ee)z+=" ";te=ie+1}}if(Y){var $e=Z.appendChild(document.createElement("span"));$e.className="cm-"+Y.replace(/ +/g," cm-"),$e.appendChild(document.createTextNode(z))}else Z.appendChild(document.createTextNode(z))}}for(var V=i.splitLines(v),J=y&&y.state||i.startState(w),k=0,ee=V.length;k<ee;++k){k&&N(`
|
|
38
|
+
`);var X=new i.StringStream(V[k],null,{lookAhead:function(B){return V[k+B]},baseToken:function(){}});for(!X.string&&w.blankLine&&w.blankLine(J);!X.eol();){var D=w.token(X,J);N(X.current(),D,k,X.start,J,w),X.start=X.pos}}}})});var Q1={};_v(Q1,{Yasqe:()=>Qf,default:()=>Z1});var uh=Zt(si());function kv(i,v,e){return e||(e=i.getDoc().getCursor()),v||(v=i.getTokenAt(e)),Hv(i,$v(i,v,e),e)}function $v(i,v,e){var N=i.getTokenAt({line:e.line,ch:v.start});return(v.type==="punc"||v.type==="error")&&!v.state.possibleFullIri&&!v.state.inPrefixDecl?(v.state.possibleCurrent=v.state.possibleNext,v):N.type==="punc"&&!N.state.possibleFullIri&&!N.state.inPrefixDecl?v:N.type!=null&&N.type!="ws"&&v.type!=null&&v.type!="ws"?(v.start=N.start,v.string=N.string+v.string,$v(i,v,{line:e.line,ch:N.start})):(v.type!=null&&v.type=="ws"&&(v.start=v.start+1,v.string=v.string.substring(1)),v)}function Hv(i,v,e){if(v.string.indexOf(" ")>=0){let y=v.string.indexOf(" ");return v.string=v.string.substr(0,y),v.end=v.start+v.string.length,v}if(!v.type)return v;var N=i.getTokenAt({line:e.line,ch:v.end+1});return N.type!=="ws"&&v.state.possibleFullIri&&v.type!==null&&v.type!=="ws"&&N.end!==v.end?(v.end=N.end,v.string=v.string+N.string,Hv(i,v,{line:e.line,ch:N.end})):(v.type==="ws"&&(v.end=v.end+1,v.string=v.string.substring(v.string.length-1)),v)}function $E(i,v,e){var N=i.getTokenAt({line:v,ch:e.start});return N!=null&&N.type=="ws"&&(N=$E(i,v,N)),N}function bf(i,v,e){e==null&&(e=1);var N=i.getTokenAt({line:v,ch:e});if(!(N==null||N==null||N.end<e))return N.type=="ws"?bf(i,v,N.end+1):N}var Uh="PREFIX ";function Zv(i){for(var v=i.getDoc().lastLine(),e=0;e<=v;++e){let N=Qv(i,e);if(N!=null&&N>=0)return e}}function Qv(i,v,e=0,N){if(N||(N=i.getDoc().getLine(v)),!N)return;N=N.toUpperCase();let y=N.indexOf(Uh,e);if(y>=0&&i.getTokenTypeAt(uh.default.Pos(v,y+1))==="keyword")return y}function Yv(i,v){var e=v.line,N=i.getDoc().getLine(e);function y(){for(var B=!1,Y=e-1;Y>=0;Y--)if(i.getDoc().getLine(Y).toUpperCase().indexOf(Uh)>=0){B=!0;break}return B}var w=function(B,Y){var z=i.getTokenAt(uh.default.Pos(B,Y+1));if(!z||z.type!="keyword")return-1;var te=bf(i,B,z.end+1);if(!te||te.type!="string-2")return-1;var ie=bf(i,B,te.end+1);return!ie||ie.type!="variable-3"?-1:ie.end};if(!y()){var G=Qv(i,e,v.ch,N);if(G!=null){for(var P="{",H=!1,Z=i.getDoc().lastLine(),$,V=w(e,G),J=e,k=e;k<=Z&&!H;++k)for(var ee=i.getDoc().getLine(k),X=k==e?G+1:0;;){!H&&ee.indexOf(P)>=0&&(H=!0);var D=ee.toUpperCase().indexOf(Uh,X);if(D>=0)($=w(k,D))>0&&(V=$,J=k,X=V),X++;else break}return{from:uh.default.Pos(e,G+Uh.length),to:uh.default.Pos(J,V)}}}}function Jv(i,v){var e=i.getPrefixesFromQuery();if(typeof v=="string")Xv(i,v);else for(var N in v)N in e||Xv(i,N+": <"+v[N]+">");i.collapsePrefixes(!1)}function Xv(i,v){i.getDoc().replaceRange("PREFIX "+v+`
|
|
39
|
+
`,{line:0,ch:0}),i.collapsePrefixes(!1)}function jv(i,v){var e=function(y){return y.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")};for(var N in v)i.setValue(i.getValue().replace(new RegExp("PREFIX\\s*"+N+":\\s*"+e("<"+v[N]+">")+"\\s*","ig"),""));i.collapsePrefixes(!1)}function zv(i){return i.getTokenAt({line:i.getDoc().lastLine(),ch:i.getDoc().getLine(i.getDoc().lastLine()).length},!0).state.prefixes}var{entries:om,setPrototypeOf:qv,isFrozen:aI,getPrototypeOf:lI,getOwnPropertyDescriptor:uI}=Object,{freeze:ci,seal:ms,create:jE}=Object,{apply:zE,construct:qE}=typeof Reflect<"u"&&Reflect;ci||(ci=function(v){return v});ms||(ms=function(v){return v});zE||(zE=function(v,e){for(var N=arguments.length,y=new Array(N>2?N-2:0),w=2;w<N;w++)y[w-2]=arguments[w];return v.apply(e,y)});qE||(qE=function(v){for(var e=arguments.length,N=new Array(e>1?e-1:0),y=1;y<e;y++)N[y-1]=arguments[y];return new v(...N)});var Gh=hi(Array.prototype.forEach),fI=hi(Array.prototype.lastIndexOf),Kv=hi(Array.prototype.pop),fh=hi(Array.prototype.push),pI=hi(Array.prototype.splice),Dh=hi(String.prototype.toLowerCase),HE=hi(String.prototype.toString),ZE=hi(String.prototype.match),ph=hi(String.prototype.replace),cI=hi(String.prototype.indexOf),hI=hi(String.prototype.trim),Js=hi(Object.prototype.hasOwnProperty),pi=hi(RegExp.prototype.test),ch=dI(TypeError);function hi(i){return function(v){v instanceof RegExp&&(v.lastIndex=0);for(var e=arguments.length,N=new Array(e>1?e-1:0),y=1;y<e;y++)N[y-1]=arguments[y];return zE(i,v,N)}}function dI(i){return function(){for(var v=arguments.length,e=new Array(v),N=0;N<v;N++)e[N]=arguments[N];return qE(i,e)}}function nr(i,v){let e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dh;qv&&qv(i,null);let N=v.length;for(;N--;){let y=v[N];if(typeof y=="string"){let w=e(y);w!==y&&(aI(v)||(v[N]=w),y=w)}i[y]=!0}return i}function gI(i){for(let v=0;v<i.length;v++)Js(i,v)||(i[v]=null);return i}function Lo(i){let v=jE(null);for(let[e,N]of om(i))Js(i,e)&&(Array.isArray(N)?v[e]=gI(N):N&&typeof N=="object"&&N.constructor===Object?v[e]=Lo(N):v[e]=N);return v}function hh(i,v){for(;i!==null;){let N=uI(i,v);if(N){if(N.get)return hi(N.get);if(typeof N.value=="function")return hi(N.value)}i=lI(i)}function e(){return null}return e}var em=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"]),QE=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"]),YE=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"]),EI=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"]),XE=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"]),vI=ci(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rm=ci(["#text"]),tm=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"]),im=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"]),Fh=ci(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mI=ms(/\{\{[\w\W]*|[\w\W]*\}\}/gm),xI=ms(/<%[\w\W]*|[\w\W]*%>/gm),CI=ms(/\$\{[\w\W]*/gm),AI=ms(/^data-[\-\w.\u00B7-\uFFFF]+$/),II=ms(/^aria-[\-\w]+$/),am=ms(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),NI=ms(/^(?:\w+script|data):/i),bI=ms(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),lm=ms(/^html$/i),TI=ms(/^[a-z][.\w]*(-[.\w]+)+$/i),sm=Object.freeze({__proto__:null,ARIA_ATTR:II,ATTR_WHITESPACE:bI,CUSTOM_ELEMENT:TI,DATA_ATTR:AI,DOCTYPE_NAME:lm,ERB_EXPR:xI,IS_ALLOWED_URI:am,IS_SCRIPT_OR_DATA:NI,MUSTACHE_EXPR:mI,TMPLIT_EXPR:CI}),dh={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},SI=function(v,e){if(typeof v!="object"||typeof v.createPolicy!="function")return null;let N=null,y="data-tt-policy-suffix";e&&e.hasAttribute(y)&&(N=e.getAttribute(y));let w="dompurify"+(N?"#"+N:"");try{return v.createPolicy(w,{createHTML(G){return G},createScriptURL(G){return G}})}catch{return console.warn("TrustedTypes policy "+w+" could not be created."),null}},nm=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function um(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:LI(),v=Be=>um(Be);if(v.version="3.3.0",v.removed=[],!i||!i.document||i.document.nodeType!==dh.document||!i.Element)return v.isSupported=!1,v;let{document:e}=i,N=e,y=N.currentScript,{DocumentFragment:w,HTMLTemplateElement:G,Node:P,Element:H,NodeFilter:Z,NamedNodeMap:$=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:V,DOMParser:J,trustedTypes:k}=i,ee=H.prototype,X=hh(ee,"cloneNode"),D=hh(ee,"remove"),B=hh(ee,"nextSibling"),Y=hh(ee,"childNodes"),z=hh(ee,"parentNode");if(typeof G=="function"){let Be=e.createElement("template");Be.content&&Be.content.ownerDocument&&(e=Be.content.ownerDocument)}let te,ie="",{implementation:ue,createNodeIterator:Ee,createDocumentFragment:$e,getElementsByTagName:we}=e,{importNode:_e}=N,Me=nm();v.isSupported=typeof om=="function"&&typeof z=="function"&&ue&&ue.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Ke,ERB_EXPR:ve,TMPLIT_EXPR:xr,DATA_ATTR:Cr,ARIA_ATTR:ur,IS_SCRIPT_OR_DATA:Xr,ATTR_WHITESPACE:Je,CUSTOM_ELEMENT:Lt}=sm,{IS_ALLOWED_URI:St}=sm,cr=null,yt=nr({},[...em,...QE,...YE,...XE,...rm]),or=null,ot=nr({},[...tm,...JE,...im,...Fh]),je=Object.seal(jE(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}})),Jr=null,Ar=null,Vr=Object.seal(jE(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,Se=!1,Or=!1,ei=!1,Ie=!1,Rt=!1,at=!1,xt=!0,es=!1,De="user-content-",lt=!0,ye=!1,rr={},Mt=null,Ct=nr({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ir=null,ri=nr({},["audio","video","img","source","image","track"]),Ui=null,ti=nr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",ii="http://www.w3.org/2000/svg",br="http://www.w3.org/1999/xhtml",wt=br,Ue=!1,ni=null,_r=nr({},[At,ii,br],HE),ar=nr({},["mi","mo","mn","ms","mtext"]),dr=nr({},["annotation-xml"]),rs=nr({},["title","style","font","a","script"]),tr=null,ts=["application/xhtml+xml","text/html"],ut="text/html",Wr=null,Ei=null,Is=e.createElement("form"),Ks=function(q){return q instanceof RegExp||q instanceof Function},en=function(){let q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ei&&Ei===q)){if((!q||typeof q!="object")&&(q={}),q=Lo(q),tr=ts.indexOf(q.PARSER_MEDIA_TYPE)===-1?ut:q.PARSER_MEDIA_TYPE,Wr=tr==="application/xhtml+xml"?HE:Dh,cr=Js(q,"ALLOWED_TAGS")?nr({},q.ALLOWED_TAGS,Wr):yt,or=Js(q,"ALLOWED_ATTR")?nr({},q.ALLOWED_ATTR,Wr):ot,ni=Js(q,"ALLOWED_NAMESPACES")?nr({},q.ALLOWED_NAMESPACES,HE):_r,Ui=Js(q,"ADD_URI_SAFE_ATTR")?nr(Lo(ti),q.ADD_URI_SAFE_ATTR,Wr):ti,Ir=Js(q,"ADD_DATA_URI_TAGS")?nr(Lo(ri),q.ADD_DATA_URI_TAGS,Wr):ri,Mt=Js(q,"FORBID_CONTENTS")?nr({},q.FORBID_CONTENTS,Wr):Ct,Jr=Js(q,"FORBID_TAGS")?nr({},q.FORBID_TAGS,Wr):Lo({}),Ar=Js(q,"FORBID_ATTR")?nr({},q.FORBID_ATTR,Wr):Lo({}),rr=Js(q,"USE_PROFILES")?q.USE_PROFILES:!1,hr=q.ALLOW_ARIA_ATTR!==!1,Kt=q.ALLOW_DATA_ATTR!==!1,Oe=q.ALLOW_UNKNOWN_PROTOCOLS||!1,pe=q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Er=q.SAFE_FOR_TEMPLATES||!1,fr=q.SAFE_FOR_XML!==!1,Se=q.WHOLE_DOCUMENT||!1,Ie=q.RETURN_DOM||!1,Rt=q.RETURN_DOM_FRAGMENT||!1,at=q.RETURN_TRUSTED_TYPE||!1,ei=q.FORCE_BODY||!1,xt=q.SANITIZE_DOM!==!1,es=q.SANITIZE_NAMED_PROPS||!1,lt=q.KEEP_CONTENT!==!1,ye=q.IN_PLACE||!1,St=q.ALLOWED_URI_REGEXP||am,wt=q.NAMESPACE||br,ar=q.MATHML_TEXT_INTEGRATION_POINTS||ar,dr=q.HTML_INTEGRATION_POINTS||dr,je=q.CUSTOM_ELEMENT_HANDLING||{},q.CUSTOM_ELEMENT_HANDLING&&Ks(q.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(je.tagNameCheck=q.CUSTOM_ELEMENT_HANDLING.tagNameCheck),q.CUSTOM_ELEMENT_HANDLING&&Ks(q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(je.attributeNameCheck=q.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),q.CUSTOM_ELEMENT_HANDLING&&typeof q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(je.allowCustomizedBuiltInElements=q.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Er&&(Kt=!1),Rt&&(Ie=!0),rr&&(cr=nr({},rm),or=[],rr.html===!0&&(nr(cr,em),nr(or,tm)),rr.svg===!0&&(nr(cr,QE),nr(or,JE),nr(or,Fh)),rr.svgFilters===!0&&(nr(cr,YE),nr(or,JE),nr(or,Fh)),rr.mathMl===!0&&(nr(cr,XE),nr(or,im),nr(or,Fh))),q.ADD_TAGS&&(typeof q.ADD_TAGS=="function"?Vr.tagCheck=q.ADD_TAGS:(cr===yt&&(cr=Lo(cr)),nr(cr,q.ADD_TAGS,Wr))),q.ADD_ATTR&&(typeof q.ADD_ATTR=="function"?Vr.attributeCheck=q.ADD_ATTR:(or===ot&&(or=Lo(or)),nr(or,q.ADD_ATTR,Wr))),q.ADD_URI_SAFE_ATTR&&nr(Ui,q.ADD_URI_SAFE_ATTR,Wr),q.FORBID_CONTENTS&&(Mt===Ct&&(Mt=Lo(Mt)),nr(Mt,q.FORBID_CONTENTS,Wr)),lt&&(cr["#text"]=!0),Se&&nr(cr,["html","head","body"]),cr.table&&(nr(cr,["tbody"]),delete Jr.tbody),q.TRUSTED_TYPES_POLICY){if(typeof q.TRUSTED_TYPES_POLICY.createHTML!="function")throw ch('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ch('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');te=q.TRUSTED_TYPES_POLICY,ie=te.createHTML("")}else te===void 0&&(te=SI(k,y)),te!==null&&typeof ie=="string"&&(ie=te.createHTML(""));ci&&ci(q),Ei=q}},Go=nr({},[...QE,...YE,...EI]),rn=nr({},[...XE,...vI]),Ta=function(q){let ge=z(q);(!ge||!ge.tagName)&&(ge={namespaceURI:wt,tagName:"template"});let Le=Dh(q.tagName),vr=Dh(ge.tagName);return ni[q.namespaceURI]?q.namespaceURI===ii?ge.namespaceURI===br?Le==="svg":ge.namespaceURI===At?Le==="svg"&&(vr==="annotation-xml"||ar[vr]):!!Go[Le]:q.namespaceURI===At?ge.namespaceURI===br?Le==="math":ge.namespaceURI===ii?Le==="math"&&dr[vr]:!!rn[Le]:q.namespaceURI===br?ge.namespaceURI===ii&&!dr[vr]||ge.namespaceURI===At&&!ar[vr]?!1:!rn[Le]&&(rs[Le]||!Go[Le]):!!(tr==="application/xhtml+xml"&&ni[q.namespaceURI]):!1},Vt=function(q){fh(v.removed,{element:q});try{z(q).removeChild(q)}catch{D(q)}},Gi=function(q,ge){try{fh(v.removed,{attribute:ge.getAttributeNode(q),from:ge})}catch{fh(v.removed,{attribute:null,from:ge})}if(ge.removeAttribute(q),q==="is")if(Ie||Rt)try{Vt(ge)}catch{}else try{ge.setAttribute(q,"")}catch{}},tn=function(q){let ge=null,Le=null;if(ei)q="<remove></remove>"+q;else{let ze=ZE(q,/^[\r\n\t ]+/);Le=ze&&ze[0]}tr==="application/xhtml+xml"&&wt===br&&(q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+q+"</body></html>");let vr=te?te.createHTML(q):q;if(wt===br)try{ge=new J().parseFromString(vr,tr)}catch{}if(!ge||!ge.documentElement){ge=ue.createDocument(wt,"template",null);try{ge.documentElement.innerHTML=Ue?ie:vr}catch{}}let qr=ge.body||ge.documentElement;return q&&Le&&qr.insertBefore(e.createTextNode(Le),qr.childNodes[0]||null),wt===br?we.call(ge,Se?"html":"body")[0]:Se?ge.documentElement:qr},Fo=function(q){return Ee.call(q.ownerDocument||q,q,Z.SHOW_ELEMENT|Z.SHOW_COMMENT|Z.SHOW_TEXT|Z.SHOW_PROCESSING_INSTRUCTION|Z.SHOW_CDATA_SECTION,null)},Vn=function(q){return q instanceof V&&(typeof q.nodeName!="string"||typeof q.textContent!="string"||typeof q.removeChild!="function"||!(q.attributes instanceof $)||typeof q.removeAttribute!="function"||typeof q.setAttribute!="function"||typeof q.namespaceURI!="string"||typeof q.insertBefore!="function"||typeof q.hasChildNodes!="function")},sn=function(q){return typeof P=="function"&&q instanceof P};function oi(Be,q,ge){Gh(Be,Le=>{Le.call(v,q,ge,Ei)})}let nn=function(q){let ge=null;if(oi(Me.beforeSanitizeElements,q,null),Vn(q))return Vt(q),!0;let Le=Wr(q.nodeName);if(oi(Me.uponSanitizeElement,q,{tagName:Le,allowedTags:cr}),fr&&q.hasChildNodes()&&!sn(q.firstElementChild)&&pi(/<[/\w!]/g,q.innerHTML)&&pi(/<[/\w!]/g,q.textContent)||q.nodeType===dh.progressingInstruction||fr&&q.nodeType===dh.comment&&pi(/<[/\w]/g,q.data))return Vt(q),!0;if(!(Vr.tagCheck instanceof Function&&Vr.tagCheck(Le))&&(!cr[Le]||Jr[Le])){if(!Jr[Le]&&Do(Le)&&(je.tagNameCheck instanceof RegExp&&pi(je.tagNameCheck,Le)||je.tagNameCheck instanceof Function&&je.tagNameCheck(Le)))return!1;if(lt&&!Mt[Le]){let vr=z(q)||q.parentNode,qr=Y(q)||q.childNodes;if(qr&&vr){let ze=qr.length;for(let Ae=ze-1;Ae>=0;--Ae){let ft=X(qr[Ae],!0);ft.__removalCount=(q.__removalCount||0)+1,vr.insertBefore(ft,B(q))}}}return Vt(q),!0}return q instanceof H&&!Ta(q)||(Le==="noscript"||Le==="noembed"||Le==="noframes")&&pi(/<\/no(script|embed|frames)/i,q.innerHTML)?(Vt(q),!0):(Er&&q.nodeType===dh.text&&(ge=q.textContent,Gh([Ke,ve,xr],vr=>{ge=ph(ge,vr," ")}),q.textContent!==ge&&(fh(v.removed,{element:q.cloneNode()}),q.textContent=ge)),oi(Me.afterSanitizeElements,q,null),!1)},Fi=function(q,ge,Le){if(xt&&(ge==="id"||ge==="name")&&(Le in e||Le in Is))return!1;if(!(Kt&&!Ar[ge]&&pi(Cr,ge))){if(!(hr&&pi(ur,ge))){if(!(Vr.attributeCheck instanceof Function&&Vr.attributeCheck(ge,q))){if(!or[ge]||Ar[ge]){if(!(Do(q)&&(je.tagNameCheck instanceof RegExp&&pi(je.tagNameCheck,q)||je.tagNameCheck instanceof Function&&je.tagNameCheck(q))&&(je.attributeNameCheck instanceof RegExp&&pi(je.attributeNameCheck,ge)||je.attributeNameCheck instanceof Function&&je.attributeNameCheck(ge,q))||ge==="is"&&je.allowCustomizedBuiltInElements&&(je.tagNameCheck instanceof RegExp&&pi(je.tagNameCheck,Le)||je.tagNameCheck instanceof Function&&je.tagNameCheck(Le))))return!1}else if(!Ui[ge]){if(!pi(St,ph(Le,Je,""))){if(!((ge==="src"||ge==="xlink:href"||ge==="href")&&q!=="script"&&cI(Le,"data:")===0&&Ir[q])){if(!(Oe&&!pi(Xr,ph(Le,Je,"")))){if(Le)return!1}}}}}}}return!0},Do=function(q){return q!=="annotation-xml"&&ZE(q,Lt)},Bo=function(q){oi(Me.beforeSanitizeAttributes,q,null);let{attributes:ge}=q;if(!ge||Vn(q))return;let Le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:or,forceKeepAttr:void 0},vr=ge.length;for(;vr--;){let qr=ge[vr],{name:ze,namespaceURI:Ae,value:ft}=qr,vi=Wr(ze),_t=ft,He=ze==="value"?_t:hI(_t);if(Le.attrName=vi,Le.attrValue=He,Le.keepAttr=!0,Le.forceKeepAttr=void 0,oi(Me.uponSanitizeAttribute,q,Le),He=Le.attrValue,es&&(vi==="id"||vi==="name")&&(Gi(ze,q),He=De+He),fr&&pi(/((--!?|])>)|<\/(style|title|textarea)/i,He)){Gi(ze,q);continue}if(vi==="attributename"&&ZE(He,"href")){Gi(ze,q);continue}if(Le.forceKeepAttr)continue;if(!Le.keepAttr){Gi(ze,q);continue}if(!pe&&pi(/\/>/i,He)){Gi(ze,q);continue}Er&&Gh([Ke,ve,xr],is=>{He=ph(He,is," ")});let mi=Wr(q.nodeName);if(!Fi(mi,vi,He)){Gi(ze,q);continue}if(te&&typeof k=="object"&&typeof k.getAttributeType=="function"&&!Ae)switch(k.getAttributeType(mi,vi)){case"TrustedHTML":{He=te.createHTML(He);break}case"TrustedScriptURL":{He=te.createScriptURL(He);break}}if(He!==_t)try{Ae?q.setAttributeNS(Ae,ze,He):q.setAttribute(ze,He),Vn(q)?Vt(q):Kv(v.removed)}catch{Gi(ze,q)}}oi(Me.afterSanitizeAttributes,q,null)},on=function Be(q){let ge=null,Le=Fo(q);for(oi(Me.beforeSanitizeShadowDOM,q,null);ge=Le.nextNode();)oi(Me.uponSanitizeShadowNode,ge,null),nn(ge),Bo(ge),ge.content instanceof w&&Be(ge.content);oi(Me.afterSanitizeShadowDOM,q,null)};return v.sanitize=function(Be){let q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ge=null,Le=null,vr=null,qr=null;if(Ue=!Be,Ue&&(Be="<!-->"),typeof Be!="string"&&!sn(Be))if(typeof Be.toString=="function"){if(Be=Be.toString(),typeof Be!="string")throw ch("dirty is not a string, aborting")}else throw ch("toString is not a function");if(!v.isSupported)return Be;if(Or||en(q),v.removed=[],typeof Be=="string"&&(ye=!1),ye){if(Be.nodeName){let ft=Wr(Be.nodeName);if(!cr[ft]||Jr[ft])throw ch("root node is forbidden and cannot be sanitized in-place")}}else if(Be instanceof P)ge=tn("<!---->"),Le=ge.ownerDocument.importNode(Be,!0),Le.nodeType===dh.element&&Le.nodeName==="BODY"||Le.nodeName==="HTML"?ge=Le:ge.appendChild(Le);else{if(!Ie&&!Er&&!Se&&Be.indexOf("<")===-1)return te&&at?te.createHTML(Be):Be;if(ge=tn(Be),!ge)return Ie?null:at?ie:""}ge&&ei&&Vt(ge.firstChild);let ze=Fo(ye?Be:ge);for(;vr=ze.nextNode();)nn(vr),Bo(vr),vr.content instanceof w&&on(vr.content);if(ye)return Be;if(Ie){if(Rt)for(qr=$e.call(ge.ownerDocument);ge.firstChild;)qr.appendChild(ge.firstChild);else qr=ge;return(or.shadowroot||or.shadowrootmode)&&(qr=_e.call(N,qr,!0)),qr}let Ae=Se?ge.outerHTML:ge.innerHTML;return Se&&cr["!doctype"]&&ge.ownerDocument&&ge.ownerDocument.doctype&&ge.ownerDocument.doctype.name&&pi(lm,ge.ownerDocument.doctype.name)&&(Ae="<!DOCTYPE "+ge.ownerDocument.doctype.name+`>
|
|
40
|
+
`+Ae),Er&&Gh([Ke,ve,xr],ft=>{Ae=ph(Ae,ft," ")}),te&&at?te.createHTML(Ae):Ae},v.setConfig=function(){let Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(Be),Or=!0},v.clearConfig=function(){Ei=null,Or=!1},v.isValidAttribute=function(Be,q,ge){Ei||en({});let Le=Wr(Be),vr=Wr(q);return Fi(Le,vr,ge)},v.addHook=function(Be,q){typeof q=="function"&&fh(Me[Be],q)},v.removeHook=function(Be,q){if(q!==void 0){let ge=fI(Me[Be],q);return ge===-1?void 0:pI(Me[Be],ge,1)[0]}return Kv(Me[Be])},v.removeHooks=function(Be){Me[Be]=[]},v.removeAllHooks=function(){Me=nm()},v}var fm=um();var js=Zt(Wm()),kl=class{constructor(v){this.namespace=v}set(v,e,N,y){if(js.default.enabled&&(this.removeExpiredKeys(),v&&e!==void 0)){e.documentElement&&(e=new XMLSerializer().serializeToString(e.documentElement));try{js.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=ON(w),G.quotaExceeded&&y)y(w);else throw G}throw w}}}remove(v){js.default.enabled&&v&&js.default.remove(v)}removeExpiredKeys(){js.default.enabled&&js.default.each((v,e)=>{v&&v.exp&&new Date().getTime()/1e3-v.time>v.exp&&this.remove(e)})}removeAll(){js.default.enabled}removeNamespace(){js.default.each((v,e)=>{v.namespace&&v.namespace===this.namespace&&this.remove(e)})}get(v){if(js.default.enabled&&v)if(this.removeExpiredKeys(),v){var e=js.default.get(v);return e?e.val:void 0}else return}};function ON(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:dR}=fm;function So(i){if(i&&i.trim().indexOf("<svg")==0){var v=new DOMParser,e=v.parseFromString(i,"text/xml"),N=e.documentElement;N.setAttribute("aria-hidden","true");var y=document.createElement("div");return y.className="svgImg",y.appendChild(N),y}throw new Error("No svg string given. Cannot draw")}function km(i,v){if(i)return i.classList?i.classList.contains(v):!!i.className.match(new RegExp("(\\s|^)"+v+"(\\s|$)"))}function zt(i,...v){if(i)for(let e of v)i.classList?i.classList.add(e):km(i,e)||(i.className+=" "+e)}function xh(i,v){if(i){if(i.classList)i.classList.remove(v);else if(km(i,v)){var e=new RegExp("(\\s|^)"+v+"(\\s|$)");i.className=i.className.replace(e," ")}}}var md=Zt(Bh());function Ch(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 Nv={};_v(Nv,{executeQuery:()=>Av,getAcceptHeader:()=>MC,getAjaxConfig:()=>Cv,getAsCurlString:()=>Iv,getUrlArguments:()=>PC});var WN=typeof global=="object"&&global&&global.Object===Object&&global,Ph=WN;var kN=typeof self=="object"&&self&&self.Object===Object&&self,$N=Ph||kN||Function("return this")(),bt=$N;var HN=bt.Symbol,di=HN;var ax=Object.prototype,ZN=ax.hasOwnProperty,QN=ax.toString,Ah=di?di.toStringTag:void 0;function YN(i){var v=ZN.call(i,Ah),e=i[Ah];try{i[Ah]=void 0;var N=!0}catch{}var y=QN.call(i);return N&&(v?i[Ah]=e:delete i[Ah]),y}var lx=YN;var XN=Object.prototype,JN=XN.toString;function jN(i){return JN.call(i)}var ux=jN;var zN="[object Null]",qN="[object Undefined]",fx=di?di.toStringTag:void 0;function KN(i){return i==null?i===void 0?qN:zN:fx&&fx in Object(i)?lx(i):ux(i)}var qi=KN;function eb(i){return i!=null&&typeof i=="object"}var gi=eb;var rb="[object Symbol]";function tb(i){return typeof i=="symbol"||gi(i)&&qi(i)==rb}var zs=tb;function ib(i,v){for(var e=-1,N=i==null?0:i.length,y=Array(N);++e<N;)y[e]=v(i[e],e,i);return y}var yf=ib;var sb=Array.isArray,zr=sb;var nb=1/0,px=di?di.prototype:void 0,cx=px?px.toString:void 0;function hx(i){if(typeof i=="string")return i;if(zr(i))return yf(i,hx)+"";if(zs(i))return cx?cx.call(i):"";var v=i+"";return v=="0"&&1/i==-nb?"-0":v}var dx=hx;var ob=/\s/;function ab(i){for(var v=i.length;v--&&ob.test(i.charAt(v)););return v}var gx=ab;var lb=/^\s+/;function ub(i){return i&&i.slice(0,gx(i)+1).replace(lb,"")}var Ex=ub;function fb(i){var v=typeof i;return i!=null&&(v=="object"||v=="function")}var Pt=fb;var vx=NaN,pb=/^[-+]0x[0-9a-f]+$/i,cb=/^0b[01]+$/i,hb=/^0o[0-7]+$/i,db=parseInt;function gb(i){if(typeof i=="number")return i;if(zs(i))return vx;if(Pt(i)){var v=typeof i.valueOf=="function"?i.valueOf():i;i=Pt(v)?v+"":v}if(typeof i!="string")return i===0?i:+i;i=Ex(i);var e=cb.test(i);return e||hb.test(i)?db(i.slice(2),e?2:8):pb.test(i)?vx:+i}var mx=gb;var xx=1/0,Eb=17976931348623157e292;function vb(i){if(!i)return i===0?i:0;if(i=mx(i),i===xx||i===-xx){var v=i<0?-1:1;return v*Eb}return i===i?i:0}var Cx=vb;function mb(i){var v=Cx(i),e=v%1;return v===v?e?v-e:v:0}var Ax=mb;function xb(i){return i}var Ea=xb;var Cb="[object AsyncFunction]",Ab="[object Function]",Ib="[object GeneratorFunction]",Nb="[object Proxy]";function bb(i){if(!Pt(i))return!1;var v=qi(i);return v==Ab||v==Ib||v==Cb||v==Nb}var Tt=bb;var Tb=bt["__core-js_shared__"],Mh=Tb;var Ix=function(){var i=/[^.]+$/.exec(Mh&&Mh.keys&&Mh.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}();function Lb(i){return!!Ix&&Ix in i}var Nx=Lb;var Sb=Function.prototype,yb=Sb.toString;function Rb(i){if(i!=null){try{return yb.call(i)}catch{}try{return i+""}catch{}}return""}var yo=Rb;var wb=/[\\^$.*+?()[\]{}|]/g,Ob=/^\[object .+?Constructor\]$/,Ub=Function.prototype,Gb=Object.prototype,Fb=Ub.toString,Db=Gb.hasOwnProperty,Bb=RegExp("^"+Fb.call(Db).replace(wb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Pb(i){if(!Pt(i)||Nx(i))return!1;var v=Tt(i)?Bb:Ob;return v.test(yo(i))}var bx=Pb;function Mb(i,v){return i?.[v]}var Tx=Mb;function Vb(i,v){var e=Tx(i,v);return bx(e)?e:void 0}var wi=Vb;var _b=wi(bt,"WeakMap"),Vh=_b;var Lx=Object.create,Wb=function(){function i(){}return function(v){if(!Pt(v))return{};if(Lx)return Lx(v);i.prototype=v;var e=new i;return i.prototype=void 0,e}}(),Sx=Wb;function kb(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 yx=kb;function $b(i,v){var e=-1,N=i.length;for(v||(v=Array(N));++e<N;)v[e]=i[e];return v}var Rx=$b;var Hb=800,Zb=16,Qb=Date.now;function Yb(i){var v=0,e=0;return function(){var N=Qb(),y=Zb-(N-e);if(e=N,y>0){if(++v>=Hb)return arguments[0]}else v=0;return i.apply(void 0,arguments)}}var wx=Yb;function Xb(i){return function(){return i}}var Ox=Xb;var Jb=function(){try{var i=wi(Object,"defineProperty");return i({},"",{}),i}catch{}}(),Rf=Jb;var jb=Rf?function(i,v){return Rf(i,"toString",{configurable:!0,enumerable:!1,value:Ox(v),writable:!0})}:Ea,Ux=jb;var zb=wx(Ux),Gx=zb;var qb=9007199254740991,Kb=/^(?:0|[1-9]\d*)$/;function eT(i,v){var e=typeof i;return v=v??qb,!!v&&(e=="number"||e!="symbol"&&Kb.test(i))&&i>-1&&i%1==0&&i<v}var wf=eT;function rT(i,v,e){v=="__proto__"&&Rf?Rf(i,v,{configurable:!0,enumerable:!0,value:e,writable:!0}):i[v]=e}var Of=rT;function tT(i,v){return i===v||i!==i&&v!==v}var Bn=tT;var iT=Object.prototype,sT=iT.hasOwnProperty;function nT(i,v,e){var N=i[v];(!(sT.call(i,v)&&Bn(N,e))||e===void 0&&!(v in i))&&Of(i,v,e)}var Fx=nT;function oT(i,v,e,N){var y=!e;e||(e={});for(var w=-1,G=v.length;++w<G;){var P=v[w],H=N?N(e[P],i[P],P,e,i):void 0;H===void 0&&(H=i[P]),y?Of(e,P,H):Fx(e,P,H)}return e}var Dx=oT;var Bx=Math.max;function aT(i,v,e){return v=Bx(v===void 0?i.length-1:v,0),function(){for(var N=arguments,y=-1,w=Bx(N.length-v,0),G=Array(w);++y<w;)G[y]=N[v+y];y=-1;for(var P=Array(v+1);++y<v;)P[y]=N[y];return P[v]=e(G),yx(i,this,P)}}var Px=aT;function lT(i,v){return Gx(Px(i,v,Ea),i+"")}var _h=lT;var uT=9007199254740991;function fT(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=uT}var Uf=fT;function pT(i){return i!=null&&Uf(i.length)&&!Tt(i)}var xs=pT;function cT(i,v,e){if(!Pt(e))return!1;var N=typeof v;return(N=="number"?xs(e)&&wf(v,e.length):N=="string"&&v in e)?Bn(e[v],i):!1}var Ih=cT;function hT(i){return _h(function(v,e){var N=-1,y=e.length,w=y>1?e[y-1]:void 0,G=y>2?e[2]:void 0;for(w=i.length>3&&typeof w=="function"?(y--,w):void 0,G&&Ih(e[0],e[1],G)&&(w=y<3?void 0:w,y=1),v=Object(v);++N<y;){var P=e[N];P&&i(v,P,N,w)}return v})}var Mx=hT;var dT=Object.prototype;function gT(i){var v=i&&i.constructor,e=typeof v=="function"&&v.prototype||dT;return i===e}var Gf=gT;function ET(i,v){for(var e=-1,N=Array(i);++e<i;)N[e]=v(e);return N}var Vx=ET;var vT="[object Arguments]";function mT(i){return gi(i)&&qi(i)==vT}var uv=mT;var _x=Object.prototype,xT=_x.hasOwnProperty,CT=_x.propertyIsEnumerable,AT=uv(function(){return arguments}())?uv:function(i){return gi(i)&&xT.call(i,"callee")&&!CT.call(i,"callee")},Ro=AT;function IT(){return!1}var Wx=IT;var Hx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,kx=Hx&&typeof module=="object"&&module&&!module.nodeType&&module,NT=kx&&kx.exports===Hx,$x=NT?bt.Buffer:void 0,bT=$x?$x.isBuffer:void 0,TT=bT||Wx,Hl=TT;var LT="[object Arguments]",ST="[object Array]",yT="[object Boolean]",RT="[object Date]",wT="[object Error]",OT="[object Function]",UT="[object Map]",GT="[object Number]",FT="[object Object]",DT="[object RegExp]",BT="[object Set]",PT="[object String]",MT="[object WeakMap]",VT="[object ArrayBuffer]",_T="[object DataView]",WT="[object Float32Array]",kT="[object Float64Array]",$T="[object Int8Array]",HT="[object Int16Array]",ZT="[object Int32Array]",QT="[object Uint8Array]",YT="[object Uint8ClampedArray]",XT="[object Uint16Array]",JT="[object Uint32Array]",Yr={};Yr[WT]=Yr[kT]=Yr[$T]=Yr[HT]=Yr[ZT]=Yr[QT]=Yr[YT]=Yr[XT]=Yr[JT]=!0;Yr[LT]=Yr[ST]=Yr[VT]=Yr[yT]=Yr[_T]=Yr[RT]=Yr[wT]=Yr[OT]=Yr[UT]=Yr[GT]=Yr[FT]=Yr[DT]=Yr[BT]=Yr[PT]=Yr[MT]=!1;function jT(i){return gi(i)&&Uf(i.length)&&!!Yr[qi(i)]}var Zx=jT;function zT(i){return function(v){return i(v)}}var Wh=zT;var Qx=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Nh=Qx&&typeof module=="object"&&module&&!module.nodeType&&module,qT=Nh&&Nh.exports===Qx,fv=qT&&Ph.process,KT=function(){try{var i=Nh&&Nh.require&&Nh.require("util").types;return i||fv&&fv.binding&&fv.binding("util")}catch{}}(),pv=KT;var Yx=pv&&pv.isTypedArray,eL=Yx?Wh(Yx):Zx,Ff=eL;var rL=Object.prototype,tL=rL.hasOwnProperty;function iL(i,v){var e=zr(i),N=!e&&Ro(i),y=!e&&!N&&Hl(i),w=!e&&!N&&!y&&Ff(i),G=e||N||y||w,P=G?Vx(i.length,String):[],H=P.length;for(var Z in i)(v||tL.call(i,Z))&&!(G&&(Z=="length"||y&&(Z=="offset"||Z=="parent")||w&&(Z=="buffer"||Z=="byteLength"||Z=="byteOffset")||wf(Z,H)))&&P.push(Z);return P}var kh=iL;function sL(i,v){return function(e){return i(v(e))}}var $h=sL;var nL=$h(Object.keys,Object),Xx=nL;var oL=Object.prototype,aL=oL.hasOwnProperty;function lL(i){if(!Gf(i))return Xx(i);var v=[];for(var e in Object(i))aL.call(i,e)&&e!="constructor"&&v.push(e);return v}var Jx=lL;function uL(i){return xs(i)?kh(i):Jx(i)}var Df=uL;function fL(i){var v=[];if(i!=null)for(var e in Object(i))v.push(e);return v}var jx=fL;var pL=Object.prototype,cL=pL.hasOwnProperty;function hL(i){if(!Pt(i))return jx(i);var v=Gf(i),e=[];for(var N in i)N=="constructor"&&(v||!cL.call(i,N))||e.push(N);return e}var zx=hL;function dL(i){return xs(i)?kh(i,!0):zx(i)}var Hh=dL;var gL=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EL=/^\w*$/;function vL(i,v){if(zr(i))return!1;var e=typeof i;return e=="number"||e=="symbol"||e=="boolean"||i==null||zs(i)?!0:EL.test(i)||!gL.test(i)||v!=null&&i in Object(v)}var Bf=vL;var mL=wi(Object,"create"),wo=mL;function xL(){this.__data__=wo?wo(null):{},this.size=0}var qx=xL;function CL(i){var v=this.has(i)&&delete this.__data__[i];return this.size-=v?1:0,v}var Kx=CL;var AL="__lodash_hash_undefined__",IL=Object.prototype,NL=IL.hasOwnProperty;function bL(i){var v=this.__data__;if(wo){var e=v[i];return e===AL?void 0:e}return NL.call(v,i)?v[i]:void 0}var e0=bL;var TL=Object.prototype,LL=TL.hasOwnProperty;function SL(i){var v=this.__data__;return wo?v[i]!==void 0:LL.call(v,i)}var r0=SL;var yL="__lodash_hash_undefined__";function RL(i,v){var e=this.__data__;return this.size+=this.has(i)?0:1,e[i]=wo&&v===void 0?yL:v,this}var t0=RL;function Pf(i){var v=-1,e=i==null?0:i.length;for(this.clear();++v<e;){var N=i[v];this.set(N[0],N[1])}}Pf.prototype.clear=qx;Pf.prototype.delete=Kx;Pf.prototype.get=e0;Pf.prototype.has=r0;Pf.prototype.set=t0;var cv=Pf;function wL(){this.__data__=[],this.size=0}var i0=wL;function OL(i,v){for(var e=i.length;e--;)if(Bn(i[e][0],v))return e;return-1}var va=OL;var UL=Array.prototype,GL=UL.splice;function FL(i){var v=this.__data__,e=va(v,i);if(e<0)return!1;var N=v.length-1;return e==N?v.pop():GL.call(v,e,1),--this.size,!0}var s0=FL;function DL(i){var v=this.__data__,e=va(v,i);return e<0?void 0:v[e][1]}var n0=DL;function BL(i){return va(this.__data__,i)>-1}var o0=BL;function PL(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 a0=PL;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=i0;Mf.prototype.delete=s0;Mf.prototype.get=n0;Mf.prototype.has=o0;Mf.prototype.set=a0;var ma=Mf;var ML=wi(bt,"Map"),xa=ML;function VL(){this.size=0,this.__data__={hash:new cv,map:new(xa||ma),string:new cv}}var l0=VL;function _L(i){var v=typeof i;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?i!=="__proto__":i===null}var u0=_L;function WL(i,v){var e=i.__data__;return u0(v)?e[typeof v=="string"?"string":"hash"]:e.map}var Ca=WL;function kL(i){var v=Ca(this,i).delete(i);return this.size-=v?1:0,v}var f0=kL;function $L(i){return Ca(this,i).get(i)}var p0=$L;function HL(i){return Ca(this,i).has(i)}var c0=HL;function ZL(i,v){var e=Ca(this,i),N=e.size;return e.set(i,v),this.size+=e.size==N?0:1,this}var h0=ZL;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=l0;Vf.prototype.delete=f0;Vf.prototype.get=p0;Vf.prototype.has=c0;Vf.prototype.set=h0;var Zl=Vf;var QL="Expected a function";function hv(i,v){if(typeof i!="function"||v!=null&&typeof v!="function")throw new TypeError(QL);var e=function(){var N=arguments,y=v?v.apply(this,N):N[0],w=e.cache;if(w.has(y))return w.get(y);var G=i.apply(this,N);return e.cache=w.set(y,G)||w,G};return e.cache=new(hv.Cache||Zl),e}hv.Cache=Zl;var d0=hv;var YL=500;function XL(i){var v=d0(i,function(N){return e.size===YL&&e.clear(),N}),e=v.cache;return v}var g0=XL;var JL=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jL=/\\(\\)?/g,zL=g0(function(i){var v=[];return i.charCodeAt(0)===46&&v.push(""),i.replace(JL,function(e,N,y,w){v.push(y?w.replace(jL,"$1"):N||e)}),v}),E0=zL;function qL(i){return i==null?"":dx(i)}var Zh=qL;function KL(i,v){return zr(i)?i:Bf(i,v)?[i]:E0(Zh(i))}var Qh=KL;var eS=1/0;function rS(i){if(typeof i=="string"||zs(i))return i;var v=i+"";return v=="0"&&1/i==-eS?"-0":v}var Aa=rS;function tS(i,v){v=Qh(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 _f=tS;function iS(i,v,e){var N=i==null?void 0:_f(i,v);return N===void 0?e:N}var v0=iS;function sS(i,v){for(var e=-1,N=v.length,y=i.length;++e<N;)i[y+e]=v[e];return i}var Yh=sS;var m0=di?di.isConcatSpreadable:void 0;function nS(i){return zr(i)||Ro(i)||!!(m0&&i&&i[m0])}var x0=nS;function C0(i,v,e,N,y){var w=-1,G=i.length;for(e||(e=x0),y||(y=[]);++w<G;){var P=i[w];v>0&&e(P)?v>1?C0(P,v-1,e,N,y):Yh(y,P):N||(y[y.length]=P)}return y}var A0=C0;var oS=$h(Object.getPrototypeOf,Object),Xh=oS;var aS="[object Object]",lS=Function.prototype,uS=Object.prototype,I0=lS.toString,fS=uS.hasOwnProperty,pS=I0.call(Object);function cS(i){if(!gi(i)||qi(i)!=aS)return!1;var v=Xh(i);if(v===null)return!0;var e=fS.call(v,"constructor")&&v.constructor;return typeof e=="function"&&e instanceof e&&I0.call(e)==pS}var N0=cS;function hS(i,v,e){var N=-1,y=i.length;v<0&&(v=-v>y?0:y+v),e=e>y?y:e,e<0&&(e+=y),y=v>e?0:e-v>>>0,v>>>=0;for(var w=Array(y);++N<y;)w[N]=i[N+v];return w}var b0=hS;function dS(i){return function(v){return i?.[v]}}var T0=dS;function gS(){this.__data__=new ma,this.size=0}var L0=gS;function ES(i){var v=this.__data__,e=v.delete(i);return this.size=v.size,e}var S0=ES;function vS(i){return this.__data__.get(i)}var y0=vS;function mS(i){return this.__data__.has(i)}var R0=mS;var xS=200;function CS(i,v){var e=this.__data__;if(e instanceof ma){var N=e.__data__;if(!xa||N.length<xS-1)return N.push([i,v]),this.size=++e.size,this;e=this.__data__=new Zl(N)}return e.set(i,v),this.size=e.size,this}var w0=CS;function Wf(i){var v=this.__data__=new ma(i);this.size=v.size}Wf.prototype.clear=L0;Wf.prototype.delete=S0;Wf.prototype.get=y0;Wf.prototype.has=R0;Wf.prototype.set=w0;var Ia=Wf;var F0=typeof exports=="object"&&exports&&!exports.nodeType&&exports,O0=F0&&typeof module=="object"&&module&&!module.nodeType&&module,AS=O0&&O0.exports===F0,U0=AS?bt.Buffer:void 0,G0=U0?U0.allocUnsafe:void 0;function IS(i,v){if(v)return i.slice();var e=i.length,N=G0?G0(e):new i.constructor(e);return i.copy(N),N}var D0=IS;function NS(i,v){for(var e=-1,N=i==null?0:i.length,y=0,w=[];++e<N;){var G=i[e];v(G,e,i)&&(w[y++]=G)}return w}var B0=NS;function bS(){return[]}var P0=bS;var TS=Object.prototype,LS=TS.propertyIsEnumerable,M0=Object.getOwnPropertySymbols,SS=M0?function(i){return i==null?[]:(i=Object(i),B0(M0(i),function(v){return LS.call(i,v)}))}:P0,V0=SS;function yS(i,v,e){var N=v(i);return zr(i)?N:Yh(N,e(i))}var _0=yS;function RS(i){return _0(i,Df,V0)}var dv=RS;var wS=wi(bt,"DataView"),Jh=wS;var OS=wi(bt,"Promise"),jh=OS;var US=wi(bt,"Set"),zh=US;var W0="[object Map]",GS="[object Object]",k0="[object Promise]",$0="[object Set]",H0="[object WeakMap]",Z0="[object DataView]",FS=yo(Jh),DS=yo(xa),BS=yo(jh),PS=yo(zh),MS=yo(Vh),Ql=qi;(Jh&&Ql(new Jh(new ArrayBuffer(1)))!=Z0||xa&&Ql(new xa)!=W0||jh&&Ql(jh.resolve())!=k0||zh&&Ql(new zh)!=$0||Vh&&Ql(new Vh)!=H0)&&(Ql=function(i){var v=qi(i),e=v==GS?i.constructor:void 0,N=e?yo(e):"";if(N)switch(N){case FS:return Z0;case DS:return W0;case BS:return k0;case PS:return $0;case MS:return H0}return v});var gv=Ql;var VS=bt.Uint8Array,kf=VS;function _S(i){var v=new i.constructor(i.byteLength);return new kf(v).set(new kf(i)),v}var Q0=_S;function WS(i,v){var e=v?Q0(i.buffer):i.buffer;return new i.constructor(e,i.byteOffset,i.length)}var Y0=WS;function kS(i){return typeof i.constructor=="function"&&!Gf(i)?Sx(Xh(i)):{}}var X0=kS;var $S="__lodash_hash_undefined__";function HS(i){return this.__data__.set(i,$S),this}var J0=HS;function ZS(i){return this.__data__.has(i)}var j0=ZS;function qh(i){var v=-1,e=i==null?0:i.length;for(this.__data__=new Zl;++v<e;)this.add(i[v])}qh.prototype.add=qh.prototype.push=J0;qh.prototype.has=j0;var z0=qh;function QS(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 q0=QS;function YS(i,v){return i.has(v)}var K0=YS;var XS=1,JS=2;function jS(i,v,e,N,y,w){var G=e&XS,P=i.length,H=v.length;if(P!=H&&!(G&&H>P))return!1;var Z=w.get(i),$=w.get(v);if(Z&&$)return Z==v&&$==i;var V=-1,J=!0,k=e&JS?new z0:void 0;for(w.set(i,v),w.set(v,i);++V<P;){var ee=i[V],X=v[V];if(N)var D=G?N(X,ee,V,v,i,w):N(ee,X,V,i,v,w);if(D!==void 0){if(D)continue;J=!1;break}if(k){if(!q0(v,function(B,Y){if(!K0(k,Y)&&(ee===B||y(ee,B,e,N,w)))return k.push(Y)})){J=!1;break}}else if(!(ee===X||y(ee,X,e,N,w))){J=!1;break}}return w.delete(i),w.delete(v),J}var Kh=jS;function zS(i){var v=-1,e=Array(i.size);return i.forEach(function(N,y){e[++v]=[y,N]}),e}var eC=zS;function qS(i){var v=-1,e=Array(i.size);return i.forEach(function(N){e[++v]=N}),e}var rC=qS;var KS=1,ey=2,ry="[object Boolean]",ty="[object Date]",iy="[object Error]",sy="[object Map]",ny="[object Number]",oy="[object RegExp]",ay="[object Set]",ly="[object String]",uy="[object Symbol]",fy="[object ArrayBuffer]",py="[object DataView]",tC=di?di.prototype:void 0,Ev=tC?tC.valueOf:void 0;function cy(i,v,e,N,y,w,G){switch(e){case py:if(i.byteLength!=v.byteLength||i.byteOffset!=v.byteOffset)return!1;i=i.buffer,v=v.buffer;case fy:return!(i.byteLength!=v.byteLength||!w(new kf(i),new kf(v)));case ry:case ty:case ny:return Bn(+i,+v);case iy:return i.name==v.name&&i.message==v.message;case oy:case ly:return i==v+"";case sy:var P=eC;case ay:var H=N&KS;if(P||(P=rC),i.size!=v.size&&!H)return!1;var Z=G.get(i);if(Z)return Z==v;N|=ey,G.set(i,v);var $=Kh(P(i),P(v),N,y,w,G);return G.delete(i),$;case uy:if(Ev)return Ev.call(i)==Ev.call(v)}return!1}var iC=cy;var hy=1,dy=Object.prototype,gy=dy.hasOwnProperty;function Ey(i,v,e,N,y,w){var G=e&hy,P=dv(i),H=P.length,Z=dv(v),$=Z.length;if(H!=$&&!G)return!1;for(var V=H;V--;){var J=P[V];if(!(G?J in v:gy.call(v,J)))return!1}var k=w.get(i),ee=w.get(v);if(k&&ee)return k==v&&ee==i;var X=!0;w.set(i,v),w.set(v,i);for(var D=G;++V<H;){J=P[V];var B=i[J],Y=v[J];if(N)var z=G?N(Y,B,J,v,i,w):N(B,Y,J,i,v,w);if(!(z===void 0?B===Y||y(B,Y,e,N,w):z)){X=!1;break}D||(D=J=="constructor")}if(X&&!D){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)&&(X=!1)}return w.delete(i),w.delete(v),X}var sC=Ey;var vy=1,nC="[object Arguments]",oC="[object Array]",ed="[object Object]",my=Object.prototype,aC=my.hasOwnProperty;function xy(i,v,e,N,y,w){var G=zr(i),P=zr(v),H=G?oC:gv(i),Z=P?oC:gv(v);H=H==nC?ed:H,Z=Z==nC?ed:Z;var $=H==ed,V=Z==ed,J=H==Z;if(J&&Hl(i)){if(!Hl(v))return!1;G=!0,$=!1}if(J&&!$)return w||(w=new Ia),G||Ff(i)?Kh(i,v,e,N,y,w):iC(i,v,H,e,N,y,w);if(!(e&vy)){var k=$&&aC.call(i,"__wrapped__"),ee=V&&aC.call(v,"__wrapped__");if(k||ee){var X=k?i.value():i,D=ee?v.value():v;return w||(w=new Ia),y(X,D,e,N,w)}}return J?(w||(w=new Ia),sC(i,v,e,N,y,w)):!1}var lC=xy;function uC(i,v,e,N,y){return i===v?!0:i==null||v==null||!gi(i)&&!gi(v)?i!==i&&v!==v:lC(i,v,e,N,uC,y)}var rd=uC;var Cy=1,Ay=2;function Iy(i,v,e,N){var y=e.length,w=y,G=!N;if(i==null)return!w;for(i=Object(i);y--;){var P=e[y];if(G&&P[2]?P[1]!==i[P[0]]:!(P[0]in i))return!1}for(;++y<w;){P=e[y];var H=P[0],Z=i[H],$=P[1];if(G&&P[2]){if(Z===void 0&&!(H in i))return!1}else{var V=new Ia;if(N)var J=N(Z,$,H,i,v,V);if(!(J===void 0?rd($,Z,Cy|Ay,N,V):J))return!1}}return!0}var fC=Iy;function Ny(i){return i===i&&!Pt(i)}var td=Ny;function by(i){for(var v=Df(i),e=v.length;e--;){var N=v[e],y=i[N];v[e]=[N,y,td(y)]}return v}var pC=by;function Ty(i,v){return function(e){return e==null?!1:e[i]===v&&(v!==void 0||i in Object(e))}}var id=Ty;function Ly(i){var v=pC(i);return v.length==1&&v[0][2]?id(v[0][0],v[0][1]):function(e){return e===i||fC(e,i,v)}}var cC=Ly;function Sy(i,v){return i!=null&&v in Object(i)}var hC=Sy;function yy(i,v,e){v=Qh(v,i);for(var N=-1,y=v.length,w=!1;++N<y;){var G=Aa(v[N]);if(!(w=i!=null&&e(i,G)))break;i=i[G]}return w||++N!=y?w:(y=i==null?0:i.length,!!y&&Uf(y)&&wf(G,y)&&(zr(i)||Ro(i)))}var dC=yy;function Ry(i,v){return i!=null&&dC(i,v,hC)}var gC=Ry;var wy=1,Oy=2;function Uy(i,v){return Bf(i)&&td(v)?id(Aa(i),v):function(e){var N=v0(e,i);return N===void 0&&N===v?gC(e,i):rd(v,N,wy|Oy)}}var EC=Uy;function Gy(i){return function(v){return v?.[i]}}var vC=Gy;function Fy(i){return function(v){return _f(v,i)}}var mC=Fy;function Dy(i){return Bf(i)?vC(Aa(i)):mC(i)}var xC=Dy;function By(i){return typeof i=="function"?i:i==null?Ea:typeof i=="object"?zr(i)?EC(i[0],i[1]):cC(i):xC(i)}var CC=By;function Py(i){return function(v,e,N){for(var y=-1,w=Object(v),G=N(v),P=G.length;P--;){var H=G[i?P:++y];if(e(w[H],H,w)===!1)break}return v}}var AC=Py;var My=AC(),sd=My;function Vy(i,v){return i&&sd(i,v,Df)}var IC=Vy;function _y(i,v){return function(e,N){if(e==null)return e;if(!xs(e))return i(e,N);for(var y=e.length,w=v?y:-1,G=Object(e);(v?w--:++w<y)&&N(G[w],w,G)!==!1;);return e}}var NC=_y;var Wy=NC(IC),bC=Wy;function ky(i,v,e){(e!==void 0&&!Bn(i[v],e)||e===void 0&&!(v in i))&&Of(i,v,e)}var bh=ky;function $y(i){return gi(i)&&xs(i)}var TC=$y;function Hy(i,v){if(!(v==="constructor"&&typeof i[v]=="function")&&v!="__proto__")return i[v]}var Th=Hy;function Zy(i){return Dx(i,Hh(i))}var LC=Zy;function Qy(i,v,e,N,y,w,G){var P=Th(i,e),H=Th(v,e),Z=G.get(H);if(Z){bh(i,e,Z);return}var $=w?w(P,H,e+"",i,v,G):void 0,V=$===void 0;if(V){var J=zr(H),k=!J&&Hl(H),ee=!J&&!k&&Ff(H);$=H,J||k||ee?zr(P)?$=P:TC(P)?$=Rx(P):k?(V=!1,$=D0(H,!0)):ee?(V=!1,$=Y0(H,!0)):$=[]:N0(H)||Ro(H)?($=P,Ro(P)?$=LC(P):(!Pt(P)||Tt(P))&&($=X0(H))):V=!1}V&&(G.set(H,$),y($,H,N,w,G),G.delete(H)),bh(i,e,$)}var SC=Qy;function yC(i,v,e,N,y){i!==v&&sd(v,function(w,G){if(y||(y=new Ia),Pt(w))SC(i,v,G,e,yC,N,y);else{var P=N?N(Th(i,G),w,G+"",i,v,y):void 0;P===void 0&&(P=w),bh(i,G,P)}},Hh)}var RC=yC;var Yy={"&":"&","<":"<",">":">",'"':""","'":"'"},Xy=T0(Yy),wC=Xy;var OC=/[&<>"']/g,Jy=RegExp(OC.source);function jy(i){return i=Zh(i),i&&Jy.test(i)?i.replace(OC,wC):i}var Lh=jy;function zy(i,v){var e=-1,N=xs(i)?Array(i.length):[];return bC(i,function(y,w,G){N[++e]=v(y,w,G)}),N}var UC=zy;var qy=Mx(function(i,v,e){RC(i,v,e)}),$f=qy;function Ky(i,v){var e=i.length;for(i.sort(v);e--;)i[e]=i[e].value;return i}var GC=Ky;function e1(i,v){if(i!==v){var e=i!==void 0,N=i===null,y=i===i,w=zs(i),G=v!==void 0,P=v===null,H=v===v,Z=zs(v);if(!P&&!Z&&!w&&i>v||w&&G&&H&&!P&&!Z||N&&G&&H||!e&&H||!y)return 1;if(!N&&!w&&!Z&&i<v||Z&&e&&y&&!N&&!w||P&&e&&y||!G&&y||!H)return-1}return 0}var FC=e1;function r1(i,v,e){for(var N=-1,y=i.criteria,w=v.criteria,G=y.length,P=e.length;++N<G;){var H=FC(y[N],w[N]);if(H){if(N>=P)return H;var Z=e[N];return H*(Z=="desc"?-1:1)}}return i.index-v.index}var DC=r1;function t1(i,v,e){v.length?v=yf(v,function(w){return zr(w)?function(G){return _f(G,w.length===1?w[0]:w)}:w}):v=[Ea];var N=-1;v=yf(v,Wh(CC));var y=UC(i,function(w,G,P){var H=yf(v,function(Z){return Z(w)});return{criteria:H,index:++N,value:w}});return GC(y,function(w,G){return DC(w,G,e)})}var BC=t1;var i1=_h(function(i,v){if(i==null)return[];var e=v.length;return e>1&&Ih(i,v[0],v[1])?v=[]:e>2&&Ih(v[0],v[1],v[2])&&(v=[v[0]]),BC(i,A0(v,1),[])}),vv=i1;function s1(i,v,e){return i&&i.length?(v=e||v===void 0?1:Ax(v),b0(i,0,v<0?0:v)):[]}var mv=s1;var xv=Zt(Bh());function Sh(i,v){return Tt(v)?v(i):v??{}}function Cv(i,v={}){let e=$f({},Sh(i,i.config.requestConfig),Sh(i,v));if(!e.endpoint||e.endpoint.length==0)return;var N=i.getQueryMode();let y=Tt(e.endpoint)?e.endpoint(i):e.endpoint;var w=N=="update"?"POST":Tt(e.method)?e.method(i):e.method;let G=Tt(e.headers)?e.headers(i):e.headers,P=Tt(e.withCredentials)?e.withCredentials(i):e.withCredentials;return{reqMethod:w,url:y,args:PC(i,e),headers:G,accept:MC(i,e),withCredentials:P}}async function Av(i,v){let e=Date.now();try{i.emit("queryBefore",i,v);let N=Cv(i,v);if(!N)return;let y=new AbortController,w={method:N.reqMethod,headers:{Accept:N.accept,...N.headers||{}},credentials:N.withCredentials?"include":"same-origin",signal:y.signal};w?.headers&&N.reqMethod==="POST"&&(w.headers["Content-Type"]="application/x-www-form-urlencoded");let G=new URLSearchParams;for(let $ in N.args){let V=N.args[$];Array.isArray(V)?V.forEach(J=>G.append($,J)):G.append($,V)}if(N.reqMethod==="POST")w.body=G.toString();else{let $=new URL(N.url);G.forEach((V,J)=>{$.searchParams.append(J,V)}),N.url=$.toString()}let P=new Request(N.url,w);i.emit("query",P,y);let H=await fetch(P);if(!H.ok)throw new Error(await H.text()||H.statusText);let Z={ok:H.ok,status:H.status,statusText:H.statusText,headers:H.headers,type:H.type,content:await H.text()};return i.emit("queryResponse",Z,Date.now()-e),i.emit("queryResults",Z.content,Date.now()-e),Z}catch(N){throw N instanceof Error&&N.message==="Aborted"||i.emit("queryResponse",N,Date.now()-e),i.emit("error",N),N}}function PC(i,v){var e=i.getQueryMode(),N={};let y=Sh(i,v);var w=Tt(y.queryArgument)?y.queryArgument(i):y.queryArgument;w||(w=i.getQueryMode()),N[w]=y.adjustQueryBeforeRequest?y.adjustQueryBeforeRequest(i):i.getValue();let G=Tt(y.namedGraphs)?y.namedGraphs(i):y.namedGraphs;if(G&&G.length>0){let Z=e==="query"?"named-graph-uri":"using-named-graph-uri ";N[Z]=G}let P=Tt(y.defaultGraphs)?y.defaultGraphs(i):y.defaultGraphs;if(P&&P.length>0){let Z=e=="query"?"default-graph-uri":"using-graph-uri ";N[Z]=G}let H=Tt(y.args)?y.args(i):y.args;return H&&H.length>0&&$f(N,H.reduce((Z,$)=>(Z[$.name]?Z[$.name].push($.value):Z[$.name]=[$.value],Z),{})),N}function MC(i,v){let e=Sh(i,v);var N=null;if(i.getQueryMode()=="update")N=Tt(e.acceptHeaderUpdate)?e.acceptHeaderUpdate(i):e.acceptHeaderUpdate;else{var y=i.getQueryType();y=="DESCRIBE"||y=="CONSTRUCT"?N=Tt(e.acceptHeaderGraph)?e.acceptHeaderGraph(i):e.acceptHeaderGraph:N=Tt(e.acceptHeaderSelect)?e.acceptHeaderSelect(i):e.acceptHeaderSelect}return N}function Iv(i,v){let e=Cv(i,Sh(i,v));if(!e)return"";let N=e.url;e.url.indexOf("http")!==0&&(N=`${window.location.protocol}//${window.location.host}`,e.url.indexOf("/")===0?N+=e.url:N+=window.location.pathname+e.url);let y=["curl"];e.reqMethod==="GET"?(N+=`?${xv.stringify(e.args)}`,y.push(N)):e.reqMethod==="POST"?(y.push(N),y.push("--data",xv.stringify(e.args))):(console.warn("Unexpected request-method",e.reqMethod),y.push(N)),y.push("-X",e.reqMethod);for(let w in e.headers)y.push(`-H '${w}: ${e.headers[w]}'`);return y.join(" ")}var VC='<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>',nd='<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>',WC='<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>',kC='<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>',$C='<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 yh=class i{constructor(){this.words=0;this.prefixes=0;this.children={}}insert(v,e){if(v.length!=0){var N=this,y,w;if(e===void 0&&(e=0),e===v.length){N.words++;return}N.prefixes++,y=v[e],N.children[y]===void 0&&(N.children[y]=new i),w=N.children[y],w.insert(v,e+1)}}remove(v,e){if(v.length!=0){var N=this,y,w;if(e===void 0&&(e=0),N!==void 0){if(e===v.length){N.words--;return}N.prefixes--,y=v[e],w=N.children[y],w.remove(v,e+1)}}}update(v,e){v.length==0||e.length==0||(this.remove(v),this.insert(e))}countWord(v,e){if(v.length==0)return 0;var N=this,y,w,G=0;return e===void 0&&(e=0),e===v.length?N.words:(y=v[e],w=N.children[y],w!==void 0&&(G=w.countWord(v,e+1)),G)}countPrefix(v,e){if(v.length==0)return 0;var N=this,G,y,w=0;if(e===void 0&&(e=0),e===v.length)return N.prefixes;var G=v[e];return y=N.children[G],y!==void 0&&(w=y.countPrefix(v,e+1)),w}find(v){return v.length==0?!1:this.countWord(v)>0}getAllWords(v){var e=this,N,y,w=[];if(v===void 0&&(v=""),e===void 0)return[];e.words>0&&w.push(v);for(N in e.children)e.children.hasOwnProperty(N)&&(y=e.children[N],w=w.concat(y.getAllWords(v+N)));return w}autoComplete(v,e){var N=this,y,w;return v.length==0?e===void 0?N.getAllWords(v):[]:(e===void 0&&(e=0),y=v[e],w=N.children[y],w===void 0?[]:e===v.length-1?w.getAllWords(v):w.autoComplete(v,e+1))}};var nA=Zt(eA());var Lv=Zt(si());var c1={name:"variables",isValidCompletionPosition:function(i){var v=i.getTokenAt(i.getDoc().getCursor());return!!(v.type!="ws"&&(v=i.getCompleteToken(v),v&&(v.string[0]==="?"||v.string[0]==="$")))},get:function(i,v){if(!v||v.string.length==0)return[];let e={},N=[],y=i.getWrapperElement().querySelectorAll(".cm-atom");for(let G=0;G<y.length;G++){let P=y[G];var w=P.innerHTML;if(w[0]==="?"||w[0]==="$"){let H=P.nextSibling;if(H&&H.className&&H.className.indexOf("cm-atom")>=0&&(w+=H.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},rA=c1;var h1={"string-2":"prefixed",atom:"var"},d1={postprocessHints:function(i,v){return vv(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&&h1[e.type]=="prefixed"){var N=e.string.indexOf(":");if(N!==-1){var y=i.getPreviousNonWsToken(v.line,e).string.toUpperCase(),w=i.getTokenAt({line:v.line,ch:e.start});if(y!=="PREFIX"&&(w.type=="ws"||w.type==null||w.type==="punc"&&(w.string==="|"||w.string==="/"||w.string=="^^"||w.string=="{"||w.string==="("))){var G=e.string.substring(0,N+1),P=i.getPrefixesFromQuery();P[G.slice(0,-1)]==null&&(e.autocompletionString=G,i.autocompleters[this.name]?.getCompletions(e).then(H=>{H.length&&(i.addPrefixes(H[0]),i.autocomplete())},console.warn))}}}}})},isValidCompletionPosition:function(i){var v=i.getDoc().getCursor(),e=i.getTokenAt(v);if(i.getDoc().getLine(v.line).length>v.ch||(e.type!="ws"&&(e=i.getCompleteToken()),e.string.indexOf("a")!==0&&e.state.possibleCurrent.indexOf("PNAME_NS")<0))return!1;var N=i.getPreviousNonWsToken(v.line,e);return!(!N||N.string.toUpperCase()!="PREFIX")},get:function(i){return fetch(i.config.prefixCcApi).then(v=>{if(!v.ok)throw new Error("Failed to fetch prefixes");return v.json()}).then(v=>{let e=[];for(let N in v){let y=`${N}: <${v[N]}>`;e.push(y)}return e.sort()})},preProcessToken:function(i,v){var e=i.getPreviousNonWsToken(i.getDoc().getCursor().line,v);return e&&e.string&&e.string.slice(-1)==":"&&(v={start:e.start,end:v.end,string:e.string+" "+v.string,state:v.state,type:v.type}),v},bulk:!0,autoShow:!0,persistenceId:"prefixes",name:"prefixes"},tA=d1;var g1={onInitialize:function(i){},get:function(i,v){return fd(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 ld(i,v)},postProcessSuggestion:function(i,v,e){return ud(i,v,e)},bulk:!1,name:"property"},iA=g1;var E1={onInitialize:function(i){},get:function(i,v){return fd(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 ld(i,v)},postProcessSuggestion:function(i,v,e){return ud(i,v,e)},bulk:!1,name:"class"},sA=E1;var v1=100,pd=class extends nA.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(mv(this.trie.autoComplete(e),v1)):this.config.get instanceof Array?Promise.resolve(this.config.get.filter(N=>N.indexOf(e)===0)):Promise.resolve(this.config.get(this.yasqe,v)).then(N=>N instanceof Array?N:[])}initialize(){if(this.config.onInitialize&&this.config.onInitialize(this.yasqe),this.config.bulk){if(this.config.get instanceof Array)return this.storeBulkCompletions(this.config.get),Promise.resolve();var v,e=this.getStorageId();return e&&(v=this.yasqe.storage.get(e)),v&&v.length>0?(this.storeBulkCompletions(v),Promise.resolve()):this.getCompletions().then(N=>this.storeBulkCompletions(N))}return Promise.resolve()}isValidPosition(){return this.config.isValidCompletionPosition?this.config.isValidCompletionPosition(this.yasqe)?(this.config.autoShow||this.yasqe.showNotification(this.config.name,"Press CTRL - <spacebar> to autocomplete"),this.emit("validPosition",this),!0):(this.emit("invalidPosition",this),this.yasqe.hideNotification(this.config.name),!1):!1}getHint(v,e){this.config.postProcessSuggestion&&(e=this.config.postProcessSuggestion(this.yasqe,v,e));let N,y,w=this.yasqe.getDoc().getCursor();v.from&&(N={...w,...v.from});let G=this.yasqe.getDoc().getCursor().line;return v.to?y={ch:v?.to?.ch||this.yasqe.getCompleteToken().end,line:G}:v.string.length>0?y={ch:this.yasqe.getCompleteToken().end,line:G}:y=v.from,{text:e,displayText:e,from:N,to:y}}getHints(v){return this.config.preProcessToken&&(v=this.config.preProcessToken(this.yasqe,v)),v?this.getCompletions(v).then(e=>e.map(N=>this.getHint(v,N))).then(e=>this.config.postprocessHints?this.config.postprocessHints(this.yasqe,e):e):Promise.resolve([])}autocomplete(v){if(!this.isValidPosition())return!1;let e=this.yasqe.state.completionActive,N=this.yasqe.getDoc().getCursor();if(e&&N.sticky&&N.ch!==e.startPos.ch?this.yasqe.state.completionActive.startPos=N:e&&!N.sticky&&N.ch<e.startPos.ch&&(N.sticky=e.startPos.sticky,this.yasqe.state.completionActive.startPos.ch=N.ch,this.yasqe.state.completionActive.startLen--),v&&(!this.config.autoShow||this.yasqe.state.completionActive))return!1;let y=()=>this.getHints(this.yasqe.getCompleteToken()).then(G=>{let P=this.yasqe.getDoc().getCursor(),H=this.yasqe.getCompleteToken(),Z={list:G,from:{line:P.line,ch:H.start},to:{line:P.line,ch:H.end}};return Lv.default.on(Z,"shown",()=>{this.yasqe.emit("autocompletionShown",this.yasqe.state.completionActive.widget)}),Lv.default.on(Z,"close",()=>{this.yasqe.emit("autocompletionClose")}),Z});y.async=!1;var w={closeCharacters:/[\s>"]/,completeSingle:!1,hint:y,container:this.yasqe.rootEl,extraKeys:{Home:(G,P)=>{G.getDoc().setCursor({ch:0,line:P.data.from.line})},End:(G,P)=>{G.getDoc().setCursor({ch:G.getLine(P.data.to.line).length,line:P.data.to.line})}},...this.yasqe.config.hintConfig};return this.yasqe.showHint(w),!0}};function ld(i,v){let e=i.getPrefixesFromQuery(),N=v.string;if(N.indexOf("<")<0&&(v.tokenPrefix=N.substring(0,N.indexOf(":")+1),e[v.tokenPrefix.slice(0,-1)]!=null&&(v.tokenPrefixUri=e[v.tokenPrefix.slice(0,-1)])),v.autocompletionString=N.trim(),N.indexOf("<")<0&&N.indexOf(":")>-1){for(var y in e)if(v.tokenPrefix===y+":"){v.autocompletionString=e[y],v.autocompletionString+=N.substring(y.length+1);break}}return v.autocompletionString.indexOf("<")==0&&(v.autocompletionString=v.autocompletionString.substring(1)),v.autocompletionString.indexOf(">",v.autocompletionString.length-1)>0&&(v.autocompletionString=v.autocompletionString.substring(0,v.autocompletionString.length-1)),v}function ud(i,v,e){return v.tokenPrefix&&v.autocompletionString&&v.tokenPrefixUri?e=v.tokenPrefix+e.substring(v.tokenPrefixUri.length):e="<"+e+">",e}var fd=(i,v,e)=>{var N=window.location.protocol.indexOf("http")===0?"https://":"http://";let y="autocomplete_"+v;if(!e||!e.string||e.string.trim().length==0)return i.showNotification(y,"Nothing to autocomplete yet!"),Promise.resolve([]);let w=new URLSearchParams;e.autocompletionString&&w.append("q",e.autocompletionString),w.append("page_size","50"),w.append("type",v);let G=`${N}lov.linkeddata.es/dataset/lov/api/v2/autocomplete/terms?${w.toString()}`;return fetch(G).then(P=>{if(!P.ok)throw new Error("Failed fetching suggestions from Linked Open Vocabularies");return P.json()}).then(P=>P.results?P.results.map(H=>H.uri[0]):[]).catch(P=>{i.showNotification(y,"Failed fetching suggestions")})},oA=[rA,tA,iA,sA];var aA=Zt(Bh()),cd=Zt(si());function Sv(){return{...{mode:"sparql11",value:`PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
|
|
41
41
|
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
|
|
42
42
|
SELECT * WHERE {
|
|
43
43
|
?sub ?pred ?obj .
|
|
44
|
-
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new Us.default.fold.combine(Us.default.fold.brace,Us.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(u){u.autocomplete()},"Shift-Ctrl-K":function(u){let h=u,g=h.getDoc().getCursor().line;return g===h.getDoc().lastLine()&&g>1?h.getDoc().replaceRange("",{ch:h.getDoc().getLine(g-1).length,line:g-1},{ch:h.getDoc().getLine(g).length,line:g}):h.getDoc().replaceRange("",{ch:0,line:g},{ch:0,line:g+1})},"Ctrl-/":function(u){u.commentLines()},"Shift-Ctrl-D":function(u){u.duplicateLine()},"Shift-Ctrl-F":function(u){u.autoformat()},"Ctrl-S":function(u){u.saveQuery()},"Cmd-Enter":function(u){u.query().catch(()=>{})},"Ctrl-Enter":function(u){u.query().catch(()=>{})},Esc:function(u){u.getInputField().blur()}},createShareableLink:function(u){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+Zh.stringify(u.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(u){u.queryParamsToConfig(u.getUrlParams())},persistenceId:function(u){let h="",g=u.rootEl;for(g.id&&(h=g.id);g&&g!==document;g=g.parentNode)if(g){g.id&&(h=g.id);break}return"yasqe_"+h+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json"},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}}}var Bs=ft(Nt());var Hh={"*[&&,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"]}},Qh=/^(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,Yh=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,Fs="sparql11",Xh=!0;function Jh(n){let s=Hh,a='<[^<>"`|{}^\\\0- ]*>',u="[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]",h=u+"|_",g="("+h+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",m="("+h+"|[0-9])("+h+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",I="\\?"+m,T="\\$"+m,G="("+u+")((("+g+")|\\.)*("+g+"))?",L="[0-9A-Fa-f]",M="("+("(%"+L+L+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",F="("+h+"|:|[0-9]|"+M+")(("+g+"|\\.|:|"+M+")*("+g+"|:|"+M+"))?",S="_:("+h+"|[0-9])(("+g+"|\\.)*"+g+")?",x="("+G+")?:",v=x+F,C="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",R="[eE][\\+-]?[0-9]+",B="[0-9]+",D="[0-9]*\\.[0-9]+",w="(([0-9]+\\.[0-9]*"+R+")|(\\.[0-9]+"+R+")|([0-9]+"+R+"))",Q="\\+"+B,de="\\+"+D,te="\\+"+w,ue="-"+B,le="-"+D,me="-"+w,Y=`\\\\[tbnrf\\\\"']`,Oe=L+"{4}",Be="(\\\\u"+Oe+"|\\\\U00(10|0"+L+")"+Oe+")",et="'(([^\\x27\\x5C\\x0A\\x0D])|"+Y+"|"+Be+")*'",je='"(([^\\x22\\x5C\\x0A\\x0D])|'+Y+"|"+Be+')*"',Le={SINGLE:{CAT:"STRING_LITERAL_LONG1",QUOTES:"'''",CONTENTS:"(('|'')?([^'\\\\]|"+Y+"|"+Be+"))*"},DOUBLE:{CAT:"STRING_LITERAL_LONG2",QUOTES:'"""',CONTENTS:'(("|"")?([^"\\\\]|'+Y+"|"+Be+"))*"}};for(let re in Le)Le[re].COMPLETE=Le[re].QUOTES+Le[re].CONTENTS+Le[re].QUOTES;var Tt={};for(let re in Le)Tt[re]={complete:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+re,regex:new RegExp("^"+Le[re].CONTENTS+Le[re].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+re,regex:new RegExp("^"+Le[re].QUOTES),style:"string"}};let At="[\\x20\\x09\\x0D\\x0A]",Ae="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",Ct="("+At+"|("+Ae+"))*",Ie="\\("+Ct+"\\)",Ht="\\["+Ct+"\\]",he=[{name:"WS",regex:new RegExp("^"+At+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+Ae),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+a),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+I),style:"atom"},{name:"VAR2",regex:new RegExp("^"+T),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+C),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+w),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+D),style:"number"},{name:"INTEGER",regex:new RegExp("^"+B),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+te),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+de),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+Q),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+me),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+le),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+ue),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+et),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+je),style:"string"},{name:"NIL",regex:new RegExp("^"+Ie),style:"punc"},{name:"ANON",regex:new RegExp("^"+Ht),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+v),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+x),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+S),style:"string-2"}];function ze(re){var k=[],Ze=s[re];if(Ze!=null)for(let Te in Ze)k.push(Te.toString());else k.push(re);return k}function De(re,k){function Ze(){let ie;if(k.inLiteral){var He=!1;if(ie=re.match(Tt[k.inLiteral].contents.regex,!0,!1),ie&&ie[0].length==0&&(ie=re.match(Tt[k.inLiteral].closing.regex,!0,!1),He=!0),ie&&ie[0].length>0){let Kt={quotePos:He?"end":"content",cat:Le[k.inLiteral].CAT,style:Tt[k.inLiteral].complete.style,string:ie[0],start:re.start};return He&&(k.inLiteral=void 0),Kt}}for(let Kt in Tt)if(ie=re.match(Tt[Kt].quotes.regex,!0,!1),ie){var zt;return k.inLiteral?(k.inLiteral=void 0,zt="end"):(k.inLiteral=Kt,zt="start"),{cat:Le[Kt].CAT,style:Tt[Kt].quotes.style,string:ie[0],quotePos:zt,start:re.start}}for(var qt=0;qt<he.length;++qt)if(ie=re.match(he[qt].regex,!0,!1),ie)return{cat:he[qt].name,style:he[qt].style,string:ie[0],start:re.start,quotePos:void 0};return ie=re.match(Qh,!0,!1),ie?{cat:re.current().toUpperCase(),style:"keyword",string:ie[0],start:re.start,quotePos:void 0}:(ie=re.match(Yh,!0,!1),ie?{cat:re.current(),style:"punc",string:ie[0],start:re.start,quotePos:void 0}:(ie=re.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:ie[0],start:re.start,quotePos:void 0}))}function Te(){let ie=re.column();k.errorStartPos=ie,k.errorEndPos=ie+$.string.length}function ve(ie){if(k.queryType==null)switch(ie){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":k.queryType=ie}}function We(ie){switch(ie==="prefixDecl"?k.inPrefixDecl=!0:k.inPrefixDecl=!1,ie){case"disallowVars":k.allowVars=!1;break;case"allowVars":k.allowVars=!0;break;case"disallowBnodes":k.allowBnodes=!1;break;case"allowBnodes":k.allowBnodes=!0;break;case"storeProperty":k.storeProperty=!0;break}}function jt(ie){return(k.allowVars||ie!="var")&&(k.allowBnodes||ie!="blankNode"&&ie!="blankNodePropertyList"&&ie!="blankNodePropertyListPath")}re.pos==0&&(k.possibleCurrent=k.possibleNext);let $=Ze();if($.cat=="<invalid_token>")return k.OK==!0&&(k.OK=!1,Te()),k.complete=!1,$.style;if($.cat==="WS"||$.cat==="COMMENT"||$.quotePos&&$.quotePos!="end")return k.possibleCurrent=k.possibleNext,k.possibleFullIri=!1,$.style;var Qt=!1,dt;let Pt=$.cat;if(k.possibleFullIri&&$.string===">"&&(k.possibleFullIri=!1),!k.possibleFullIri&&$.string==="<"&&(k.possibleFullIri=!0),!$.quotePos||$.quotePos=="end")for(;k.stack.length>0&&Pt&&k.OK&&!Qt;)if(dt=k.stack.pop(),dt==="var"&&$.string&&(k.variables[$.string]=$.string),s[dt]){let ie=s[dt][Pt];if(ie!=null&&jt(dt)){for(var tr=ie.length-1;tr>=0;--tr)k.stack.push(ie[tr]);We(dt)}else k.OK=!1,k.complete=!1,Te(),k.stack.push(dt)}else if(dt==Pt){k.inPrefixDecl&&(dt==="PNAME_NS"&&$.string.length>0?k.currentPnameNs=$.string.slice(0,-1):typeof k.currentPnameNs=="string"&&$.string.length>1&&(k.prefixes[k.currentPnameNs]=$.string.slice(1,-1),k.currentPnameNs=void 0)),Qt=!0,ve(dt);for(var Ur=!0,ti=k.stack.length;ti>0;--ti){let ie=s[k.stack[ti-1]];(!ie||!ie.$)&&(Ur=!1)}if(k.complete=Ur,k.storeProperty&&Pt!="punc"?(k.lastProperty=$.string,k.lastPropertyIndex=$.start,k.storeProperty=!1):(Pt==="."||Pt===";")&&(k.lastProperty="",k.lastPropertyIndex=0),!k.inPrefixDecl&&(Pt==="PNAME_NS"||Pt==="PNAME_LN")){let ie=$.string.indexOf(":");if(ie>=0){let He=$.string.slice(0,ie);k.prefixes[He]===void 0&&(k.OK=!1,Te(),k.errorMsg="Prefix '"+He+"' is not defined")}}}else k.OK=!1,k.complete=!1,Te();if(!Qt&&k.OK&&(k.OK=!1,k.complete=!1,Te()),k.possibleNext.indexOf("a")>=0){let ie=re.string;for(let He=$.start;He>=0;He--)if(ie[He-1]!==" "){ie[He-1]==="|"||ie[He-1]==="/"||$.style==="punc"||(k.lastPredicateOffset=$.start);break}}return k.possibleCurrent=k.possibleNext,k.possibleNext=ze(k.stack[k.stack.length-1]),$.style}let tt={"*[,, 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},Ue={"}":1,"]":1,")":1,"{":-1,"(":-1,"[":-1};function Jt(re,k){if(re.inLiteral)return 0;if(re.lastPredicateOffset!==void 0&&re.stack.length&&re.stack[re.stack.length-1]=="?[or([verbPath,verbSimple]),objectListPath]")return re.lastPredicateOffset;var Ze=0,Te=re.stack.length-1;if(/^[\}\]\)]/.test(k)){let ve=k.substr(0,1);for(;Te>=0;--Te)if(re.stack[Te]==ve){--Te;break}}else{let ve=tt[re.stack[Te]];ve&&(Ze+=ve,--Te)}for(;Te>=0;--Te){let ve=Ue[re.stack[Te]];ve&&(Ze+=ve)}return Ze*(n.indentUnit??2)}return{token:De,startState:function(){return{tokenize:De,OK:!0,complete:Xh,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:ze(Fs),possibleNext:ze(Fs),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[Fs],lastPredicateOffset:n.indentUnit||2,prefixes:{},variables:{},currentPnameNs:void 0,errorMsg:void 0,inPrefixDecl:!1,possibleFullIri:!1}},indent:Jt,electricChars:"}])"}}var GU=ft(Nl()),UU=ft($h()),FU=ft(rg()),BU=ft(og()),DU=ft(lg()),MU=ft(Tl()),PU=ft(vg()),VU=ft(Tg()),wU=ft(Sg());Bs.default.registerHelper("fold","prefix",bp);Bs.default.defineMode("sparql11",Jh);var QC=Bs.default,ei=QC;var Ge=class Ge extends ei{constructor(a,u={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!a)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",a.appendChild(this.rootEl),this.config=En({},Ge.defaults,u);let h=ei(this.rootEl,this.config);for(let m of Object.getOwnPropertyNames(Ge.prototype))h[m]=Ge.prototype[m].bind(this);Object.assign(this,ei.prototype,h),this.storage=new mi(Ge.storageNamespace),this.drawButtons();let g=this.getStorageId();if(g){let m=this.storage.get(g);m&&typeof m=="string"?this.persistentConfig={query:m,editorHeight:this.config.editorHeight}:this.persistentConfig=m,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}this.config.autocompleters.forEach(m=>this.enableCompleter(m).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),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.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let a=this.getDoc().getCursor(),u=this.getTokenAt(a);u&&u.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(a,u,h){this.req=u,this.abortController=h,this.updateQueryButton()}handleQueryResponse(a,u,h){this.lastQueryDuration=h,this.req=void 0,this.updateQueryButton()}handleQueryAbort(a,u){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(a,...u){ei.signal(this,a,this,...u)}getStorageId(a){let u=a||this.config.persistenceId;if(u)return typeof u=="string"?u:u(this)}drawButtons(){let a=document.createElement("div");if(a.className="yasqe_buttons",this.getWrapperElement().appendChild(a),this.config.pluginButtons){let m=this.config.pluginButtons();if(!m)return;if(Array.isArray(m))for(let I of m)a.append(I);else a.appendChild(m)}if(this.config.createShareableLink){var u=xi(Ah);let m=document.createElement("button");m.className="yasqe_share",m.title="Share query",m.setAttribute("aria-label","Share query"),m.appendChild(u),a.appendChild(m),m.addEventListener("click",T=>I(T)),m.addEventListener("keydown",T=>{T.code==="Enter"&&I(T)});let I=T=>{T.stopPropagation();let G=document.createElement("div");G.className="yasqe_sharePopup",a.appendChild(G),document.body.addEventListener("click",x=>{G&&x.target!==G&&!G.contains(x.target)&&(G.remove(),G=void 0)},!0);var L=document.createElement("input");L.type="text",L.value=this.config.createShareableLink(this),L.onfocus=function(){L.select()},L.onmouseup=function(){return!1},G.innerHTML="";var V=document.createElement("div");V.className="inputWrapper",V.appendChild(L),G.appendChild(V);let y=[],M=this.config.createShortLink;if(M){G.className=G.className+=" enableShort";let x=document.createElement("button");y.push(x),x.innerHTML="Shorten",x.className="yasqe_btn yasqe_btn-sm shorten",G.appendChild(x),x.onclick=()=>{y.forEach(v=>v.disabled=!0),M(this,L.value).then(v=>{L.value=v,L.focus()},v=>{let C=document.createElement("span");C.className="shortlinkErr";let R="An error has occurred";typeof v=="string"&&v.length!==0?R=v:v.message&&v.message.length!==0&&(R=v.message),C.textContent=R,L.replaceWith(C)})}}let F=document.createElement("button");y.push(F),F.innerText="cURL",F.className="yasqe_btn yasqe_btn-sm curl",G.appendChild(F),F.onclick=()=>{y.forEach(x=>x.disabled=!0),L.value=this.getAsCurlString(),L.focus(),G?.appendChild(F)};let S=u.getBoundingClientRect();G.style.top=u.offsetTop+S.height+"px",G.style.left=u.offsetLeft+u.clientWidth-G.clientWidth+"px",L.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),Bt(this.queryBtn,"yasqe_queryButton");let m=xi(Th);Bt(m,"queryIcon"),this.queryBtn.appendChild(m);let I=xi(El);Bt(I,"warningIcon"),this.queryBtn.appendChild(I),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"),a.appendChild(this.queryBtn),this.updateQueryButton()}this.fullscreenBtn=document.createElement("button"),Bt(this.fullscreenBtn,"yasqe_fullscreenButton");let h=xi(Ch);Bt(h,"fullscreenIcon"),this.fullscreenBtn.appendChild(h);let g=xi(Sh);Bt(g,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(g),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),a.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(Bt(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(no(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}drawResizer(){if(this.resizeWrapper)return;this.resizeWrapper=document.createElement("div"),Bt(this.resizeWrapper,"resizeWrapper");let a=document.createElement("div");Bt(a,"resizeChip"),this.resizeWrapper.appendChild(a),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(a,u){let h=0;u.offsetParent&&(h=u.offsetParent.offsetTop);let g=0,m=u.parentElement;for(;m;)g+=m.scrollTop,m=m.parentElement;return a.clientY-h-this.rootEl.offsetTop+g}doDrag(a){this.getWrapperElement().style.height=this.calculateDragOffset(a,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}duplicateLine(){let a=this.getDoc().getCursor();if(a){let u=this.getDoc().getLine(a.line);this.getDoc().replaceRange(u+`
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
`+
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
} LIMIT 10`,highlightSelectionMatches:{showToken:/\w/},tabMode:"indent",lineNumbers:!0,lineWrapping:!0,foldGutter:{rangeFinder:new cd.default.fold.combine(cd.default.fold.brace,cd.default.fold.prefix)},collapsePrefixesOnLoad:!1,gutters:["gutterErrorBar","gutterConstructWarning","CodeMirror-linenumbers","CodeMirror-foldgutter"],matchBrackets:!0,fixedGutter:!0,syntaxErrorCheck:!0,autocompleters:[],extraKeys:{"Ctrl-Space":function(N){N.autocomplete()},"Shift-Ctrl-K":function(N){let y=N,w=y.getDoc().getCursor().line;return w===y.getDoc().lastLine()&&w>1?y.getDoc().replaceRange("",{ch:y.getDoc().getLine(w-1).length,line:w-1},{ch:y.getDoc().getLine(w).length,line:w}):y.getDoc().replaceRange("",{ch:0,line:w},{ch:0,line:w+1})},"Ctrl-/":function(N){N.commentLines()},"Shift-Ctrl-D":function(N){N.duplicateLine()},"Shift-Ctrl-F":function(N){N.format()},"Ctrl-S":function(N){N.saveQuery()},"Cmd-Enter":function(N){N.query().catch(()=>{})},"Ctrl-Enter":function(N){N.query().catch(()=>{})},Esc:function(N){N.getInputField().blur()}},createShareableLink:function(N){return document.location.protocol+"//"+document.location.host+document.location.pathname+document.location.search+"#"+aA.stringify(N.configToQueryParams())},pluginButtons:void 0,createShortLink:void 0,consumeShareLink:function(N){N.queryParamsToConfig(N.getUrlParams())},persistenceId:function(N){let y="",w=N.rootEl;for(w.id&&(y=w.id);w&&w!==document;w=w.parentNode)if(w){w.id&&(y=w.id);break}return"yasqe_"+y+"_query"},persistencyExpire:2592e3,showQueryButton:!0,hintConfig:{},resizeable:!0,editorHeight:"300px",queryingDisabled:void 0,prefixCcApi:"https://prefix.cc/popular/all.file.json",showFormatButton:!0,checkConstructVariables:!0},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}}}var dd=Zt(si());var lA={"*[&&,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"]}},uA=/^(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,fA=/^(\*|a|\.|\{|\}|,|\(|\)|;|\[|\]|\|\||&&|=|!=|!|<=|>=|<|>|\+|-|\/|\^\^|\?|\||\^)/,hd="sparql11",pA=!0;function cA(i){let v=lA,e='<[^<>"`|{}^\\\0- ]*>',N="[A-Za-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD]",y=N+"|_",w="("+y+"|-|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])",G="("+y+"|[0-9])("+y+"|[0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040])*",P="\\?"+G,H="\\$"+G,Z="("+N+")((("+w+")|\\.)*("+w+"))?",$="[0-9A-Fa-f]",k="("+("(%"+$+$+")")+"|"+"(\\\\[_~\\.\\-!\\$&'\\(\\)\\*\\+,;=/\\?#@%])"+")",ee="("+y+"|:|[0-9]|"+k+")(("+w+"|\\.|:|"+k+")*("+w+"|:|"+k+"))?",X="_:("+y+"|[0-9])(("+w+"|\\.)*"+w+")?",D="("+Z+")?:",B=D+ee,Y="@[a-zA-Z]+(-[a-zA-Z0-9]+)*",z="[eE][\\+-]?[0-9]+",te="[0-9]+",ie="[0-9]*\\.[0-9]+",ue="(([0-9]+\\.[0-9]*"+z+")|(\\.[0-9]+"+z+")|([0-9]+"+z+"))",Ee="\\+"+te,$e="\\+"+ie,we="\\+"+ue,_e="-"+te,Me="-"+ie,Ke="-"+ue,ve=`\\\\[tbnrf\\\\"']`,xr=$+"{4}",Cr="(\\\\u"+xr+"|\\\\U00(10|0"+$+")"+xr+")",ur="'(([^\\x27\\x5C\\x0A\\x0D])|"+ve+"|"+Cr+")*'",Xr='"(([^\\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 Lt={};for(let Oe in Je)Lt[Oe]={complete:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].COMPLETE),style:"string"},contents:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].CONTENTS),style:"string"},closing:{name:"STRING_LITERAL_LONG_"+Oe,regex:new RegExp("^"+Je[Oe].CONTENTS+Je[Oe].QUOTES),style:"string"},quotes:{name:"STRING_LITERAL_LONG_QUOTES_"+Oe,regex:new RegExp("^"+Je[Oe].QUOTES),style:"string"}};let St="[\\x20\\x09\\x0D\\x0A]",cr="#([^\\n\\r]*[\\n\\r]|[^\\n\\r]*$)",yt="("+St+"|("+cr+"))*",or="\\("+yt+"\\)",ot="\\["+yt+"\\]",je=[{name:"WS",regex:new RegExp("^"+St+"+"),style:"ws"},{name:"COMMENT",regex:new RegExp("^"+cr),style:"comment"},{name:"IRI_REF",regex:new RegExp("^"+e),style:"variable-3"},{name:"VAR1",regex:new RegExp("^"+P),style:"atom"},{name:"VAR2",regex:new RegExp("^"+H),style:"atom"},{name:"LANGTAG",regex:new RegExp("^"+Y),style:"meta"},{name:"DOUBLE",regex:new RegExp("^"+ue),style:"number"},{name:"DECIMAL",regex:new RegExp("^"+ie),style:"number"},{name:"INTEGER",regex:new RegExp("^"+te),style:"number"},{name:"DOUBLE_POSITIVE",regex:new RegExp("^"+we),style:"number"},{name:"DECIMAL_POSITIVE",regex:new RegExp("^"+$e),style:"number"},{name:"INTEGER_POSITIVE",regex:new RegExp("^"+Ee),style:"number"},{name:"DOUBLE_NEGATIVE",regex:new RegExp("^"+Ke),style:"number"},{name:"DECIMAL_NEGATIVE",regex:new RegExp("^"+Me),style:"number"},{name:"INTEGER_NEGATIVE",regex:new RegExp("^"+_e),style:"number"},{name:"STRING_LITERAL1",regex:new RegExp("^"+ur),style:"string"},{name:"STRING_LITERAL2",regex:new RegExp("^"+Xr),style:"string"},{name:"NIL",regex:new RegExp("^"+or),style:"punc"},{name:"ANON",regex:new RegExp("^"+ot),style:"punc"},{name:"PNAME_LN",regex:new RegExp("^"+B),style:"string-2"},{name:"PNAME_NS",regex:new RegExp("^"+D),style:"string-2"},{name:"BLANK_NODE_LABEL",regex:new RegExp("^"+X),style:"string-2"}];function Jr(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 ye;if(pe.inLiteral){var rr=!1;if(ye=Oe.match(Lt[pe.inLiteral].contents.regex,!0,!1),ye&&ye[0].length==0&&(ye=Oe.match(Lt[pe.inLiteral].closing.regex,!0,!1),rr=!0),ye&&ye[0].length>0){let Ir={quotePos:rr?"end":"content",cat:Je[pe.inLiteral].CAT,style:Lt[pe.inLiteral].complete.style,string:ye[0],start:Oe.start};return rr&&(pe.inLiteral=void 0),Ir}}for(let Ir in Lt)if(ye=Oe.match(Lt[Ir].quotes.regex,!0,!1),ye){var Mt;return pe.inLiteral?(pe.inLiteral=void 0,Mt="end"):(pe.inLiteral=Ir,Mt="start"),{cat:Je[Ir].CAT,style:Lt[Ir].quotes.style,string:ye[0],quotePos:Mt,start:Oe.start}}for(var Ct=0;Ct<je.length;++Ct)if(ye=Oe.match(je[Ct].regex,!0,!1),ye)return{cat:je[Ct].name,style:je[Ct].style,string:ye[0],start:Oe.start,quotePos:void 0};return ye=Oe.match(uA,!0,!1),ye?{cat:Oe.current().toUpperCase(),style:"keyword",string:ye[0],start:Oe.start,quotePos:void 0}:(ye=Oe.match(fA,!0,!1),ye?{cat:Oe.current(),style:"punc",string:ye[0],start:Oe.start,quotePos:void 0}:(ye=Oe.match(/^.[A-Za-z0-9]*/,!0,!1),{cat:"<invalid_token>",style:"error",string:ye[0],start:Oe.start,quotePos:void 0}))}function fr(){let ye=Oe.column();pe.errorStartPos=ye,pe.errorEndPos=ye+Ie.string.length}function Se(ye){if(pe.queryType==null)switch(ye){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=ye}}function Or(ye){switch(ye==="prefixDecl"?pe.inPrefixDecl=!0:pe.inPrefixDecl=!1,ye){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(ye){return(pe.allowVars||ye!="var")&&(pe.allowBnodes||ye!="blankNode"&&ye!="blankNodePropertyList"&&ye!="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 Rt=!1,at;let xt=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&&xt&&pe.OK&&!Rt;)if(at=pe.stack.pop(),at==="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[at]){let ye=v[at][xt];if(ye!=null&&ei(at)){for(var lt=ye.length-1;lt>=0;--lt)pe.stack.push(ye[lt]);Or(at)}else pe.OK=!1,pe.complete=!1,fr(),pe.stack.push(at)}else if(at==xt){pe.inPrefixDecl&&(at==="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)),Rt=!0,Se(at);for(var es=!0,De=pe.stack.length;De>0;--De){let ye=v[pe.stack[De-1]];(!ye||!ye.$)&&(es=!1)}if(pe.complete=es,pe.storeProperty&&xt!="punc"?(pe.lastProperty=Ie.string,pe.lastPropertyIndex=Ie.start,pe.storeProperty=!1):(xt==="."||xt===";")&&(pe.lastProperty="",pe.lastPropertyIndex=0),!pe.inPrefixDecl&&(xt==="PNAME_NS"||xt==="PNAME_LN")){let ye=Ie.string.indexOf(":");if(ye>=0){let rr=Ie.string.slice(0,ye);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(!Rt&&pe.OK&&(pe.OK=!1,pe.complete=!1,fr()),pe.possibleNext.indexOf("a")>=0){let ye=Oe.string;for(let rr=Ie.start;rr>=0;rr--)if(ye[rr-1]!==" "){ye[rr-1]==="|"||ye[rr-1]==="/"||Ie.style==="punc"||(pe.lastPredicateOffset=Ie.start);break}}return pe.possibleCurrent=pe.possibleNext,pe.possibleNext=Jr(pe.stack[pe.stack.length-1]),Ie.style}let Vr={"*[,, 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 Se=pe.substr(0,1);for(;fr>=0;--fr)if(Oe.stack[fr]==Se){--fr;break}}else{let Se=Vr[Oe.stack[fr]];Se&&(Er+=Se,--fr)}for(;fr>=0;--fr){let Se=hr[Oe.stack[fr]];Se&&(Er+=Se)}return Er*(i.indentUnit??2)}return{token:Ar,startState:function(){return{tokenize:Ar,OK:!0,complete:pA,errorStartPos:void 0,errorEndPos:void 0,queryType:void 0,possibleCurrent:Jr(hd),possibleNext:Jr(hd),allowVars:!0,allowBnodes:!0,storeProperty:!1,lastProperty:"",lastPropertyIndex:0,inLiteral:void 0,stack:[hd],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 wP=Zt(yv()),OP=Zt(vA()),UP=Zt(CA()),GP=Zt(NA()),FP=Zt(LA()),DP=Zt(Rv()),BP=Zt(PA()),PP=Zt(_A()),MP=Zt($A());dd.default.registerHelper("fold","prefix",Yv);dd.default.defineMode("sparql11",cA);var C1=dd.default,Na=C1;function A1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function Yl(i,v,e,N){var y=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(y,Yl.prototype),y.expected=v,y.found=e,y.location=N,y.name="SyntaxError",y}A1(Yl,Error);function wv(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 y=this.location.start,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,G=this.location.source+":"+w.line+":"+w.column;if(e){var P=this.location.end,H=wv("",w.line.toString().length," "),Z=e[y.line-1],$=y.line===P.line?P.column:Z.length+1,V=$-y.column||1;v+=`
|
|
45
|
+
--> `+G+`
|
|
46
|
+
`+H+` |
|
|
47
|
+
`+w.line+" | "+Z+`
|
|
48
|
+
`+H+" | "+wv("",y.column-1," ")+wv("",V,"^")}else v+=`
|
|
49
|
+
at `+G}return v};Yl.buildMessage=function(i,v){var e={literal:function(Z){return'"'+y(Z.text)+'"'},class:function(Z){var $=Z.parts.map(function(V){return Array.isArray(V)?w(V[0])+"-"+w(V[1]):w(V)});return"["+(Z.inverted?"^":"")+$.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(Z){return Z.description}};function N(Z){return Z.charCodeAt(0).toString(16).toUpperCase()}function y(Z){return Z.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function($){return"\\x0"+N($)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function($){return"\\x"+N($)})}function w(Z){return Z.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function($){return"\\x0"+N($)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function($){return"\\x"+N($)})}function G(Z){return e[Z.type](Z)}function P(Z){var $=Z.map(G),V,J;if($.sort(),$.length>0){for(V=1,J=1;V<$.length;V++)$[V-1]!==$[V]&&($[J]=$[V],J++);$.length=J}switch($.length){case 1:return $[0];case 2:return $[0]+" or "+$[1];default:return $.slice(0,-1).join(", ")+", or "+$[$.length-1]}}function H(Z){return Z?'"'+y(Z)+'"':"end of input"}return"Expected "+P(i)+" but "+H(v)+" found."};function Rh(i,v){v=v!==void 0?v:{};var e={},N=v.grammarSource,y={DOCUMENT:Rc},w=Rc,G="base",P="prefix",H="select",Z="distinct",$="reduced",V="(",J="as",k=")",ee="*",X="construct",D="where",B="{",Y="}",z="describe",te="ask",ie="from",ue="named",Ee="group",$e="by",we="having",_e="order",Me="asc",Ke="desc",ve="limit",xr="offset",Cr="values",ur=";",Xr="load",Je="silent",Lt="into",St="clear",cr="drop",yt="create",or="add",ot="to",je="move",Jr="copy",Ar="insert",Vr="data",hr="delete",Kt="with",Oe="using",pe="default",Er="graph",fr="all",Se=".",Or="optional",ei="service",Ie="bind",Rt="UNDEF",at="minus",xt="union",es="filter",De=",",lt="a",ye="|",rr="/",Mt="^",Ct="?",Ir="+",ri="!",Ui="[",ti="]",At="||",ii="&&",br="=",wt="!=",Ue="<",ni=">",_r="<=",ar=">=",dr="in",rs="not",tr="-",ts="str",ut="lang",Wr="langmatches",Ei="datatype",Is="bound",Ks="iri",en="uri",Go="bnode",rn="rand",Ta="abs",Vt="ceil",Gi="floor",tn="round",Fo="concat",Vn="strlen",sn="ucase",oi="lcase",nn="encode_for_uri",Fi="contains",Do="strbefore",Bo="strstarts",on="strends",Be="strafter",q="year",ge="month",Le="day",vr="hours",qr="minutes",ze="seconds",Ae="timezone",ft="tz",vi="now",_t="uuid",He="struuid",mi="md5",is="sha1",La="sha256",ce="sha384",Qe="sha512",Sa="coalesce",ya="if",Po="strlang",Mo="strdt",jl="sameterm",Ye="isuri",Yf="isiri",zl="isblank",Vo="isliteral",xi="isnumeric",ql="regex",Kl="substr",_n="replace",Wn="exists",eu="count",Ra="sum",ru="min",tu="max",iu="avg",su="sample",Xf="group_concat",Jf="separator",_o="^^",Di="true",jf="false",Qt=":",an="_:",Ns="$",wa="@",Bi="'",bs='"',Ts="'''",Pi="''",ss='"""',Ls='""',Wo="\\",ln="#",un="_",fn="%",Oa="~",nu="&",ko=/^[^<>"{}|\^`\\\0- ]/,Ze=/^[0-9]/,Ua=/^[a-zA-Z]/,ns=/^[a-zA-Z0-9]/,ai=/^[eE]/,zf=/^[+\-]/,Ga=/^[^'\\\n\r]/,kn=/^[^"\\\n\r]/,$o=/^[^'\\]/,Ci=/^[^"\\]/,Fa=/^[tbnrf\\"']/,Mi=/^[ \t]/,Ho=/^[\r\n]/,Da=/^[^\r\n]/,pn=/^[A-Z]/,qf=/^[a-z]/,Kf=/^[\xC0-\xD6]/,ep=/^[\xD8-\xF6]/,rp=/^[\xF8-\u02FF]/,ou=/^[\u0370-\u037D]/,au=/^[\u037F-\u1FFF]/,tp=/^[\u200C-\u200D]/,ip=/^[\u2070-\u218F]/,sp=/^[\u2C00-\u2FEF]/,np=/^[\u3001-\uD7FF]/,lu=/^[\uF900-\uFDCF]/,op=/^[\uFDF0-\uFFFD]/,cn=/^[\xB7]/,os=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,ap=/^[A-F]/,lp=/^[a-f]/,up=M("BASE",!0),$n=M("PREFIX",!0),Kr=M("SELECT",!0),pt=M("DISTINCT",!0),uu=M("REDUCED",!0),ae=M("(",!1),Ss=M("AS",!0),le=M(")",!1),kr=M("*",!1),Hn=M("CONSTRUCT",!0),as=M("WHERE",!0),Ot=M("{",!1),Ut=M("}",!1),fu=M("DESCRIBE",!0),pu=M("ASK",!0),fp=M("FROM",!0),Vi=M("NAMED",!0),_i=M("GROUP",!0),hn=M("BY",!0),Ba=M("HAVING",!0),cu=M("ORDER",!0),Ii=M("ASC",!0),ys=M("DESC",!0),Pa=M("LIMIT",!0),pp=M("OFFSET",!0),Zo=M("VALUES",!0),Yt=M(";",!1),hu=M("LOAD",!0),ct=M("SILENT",!0),dn=M("INTO",!0),Ni=M("CLEAR",!0),du=M("DROP",!0),gu=M("CREATE",!0),cp=M("ADD",!0),Zn=M("TO",!0),hp=M("MOVE",!0),Eu=M("COPY",!0),Qo=M("INSERT",!0),Rs=M("DATA",!0),gn=M("DELETE",!0),vu=M("WITH",!0),Ma=M("USING",!0),En=M("DEFAULT",!0),ls=M("GRAPH",!0),Yo=M("ALL",!0),Xe=M(".",!1),mu=M("OPTIONAL",!0),Va=M("SERVICE",!0),_a=M("BIND",!0),xu=M("UNDEF",!1),Cu=M("MINUS",!0),Qn=M("UNION",!0),dp=M("FILTER",!0),We=M(",",!1),ws=M("a",!1),Xt=M("|",!1),Br=M("/",!1),us=M("^",!1),Os=M("?",!1),ht=M("+",!1),vn=M("!",!1),Us=M("[",!1),li=M("]",!1),Wi=M("||",!1),dt=M("&&",!1),Wt=M("=",!1),bi=M("!=",!1),fs=M("<",!1),Yn=M(">",!1),Xo=M("<=",!1),Gs=M(">=",!1),ps=M("IN",!0),Fs=M("NOT",!0),Pr=M("-",!1),gp=M("STR",!0),Wa=M("LANG",!0),Au=M("LANGMATCHES",!0),ka=M("DATATYPE",!0),$a=M("BOUND",!0),mn=M("IRI",!0),Jo=M("URI",!0),Iu=M("BNODE",!0),jo=M("RAND",!0),Ep=M("ABS",!0),vp=M("CEIL",!0),mp=M("FLOOR",!0),Ha=M("ROUND",!0),Za=M("CONCAT",!0),xn=M("STRLEN",!0),Xn=M("UCASE",!0),xp=M("LCASE",!0),zo=M("ENCODE_FOR_URI",!0),Nu=M("CONTAINS",!0),Jn=M("STRBEFORE",!0),bu=M("STRSTARTS",!0),Ds=M("STRENDS",!0),jn=M("STRAFTER",!0),Bs=M("YEAR",!0),zn=M("MONTH",!0),Cn=M("DAY",!0),Tu=M("HOURS",!0),Lu=M("MINUTES",!0),Su=M("SECONDS",!0),Cp=M("TIMEZONE",!0),Ps=M("TZ",!0),Ms=M("NOW",!0),Ap=M("UUID",!0),Ip=M("STRUUID",!0),Np=M("MD5",!0),bp=M("SHA1",!0),Tp=M("SHA256",!0),Lp=M("SHA384",!0),kt=M("SHA512",!0),et=M("COALESCE",!0),It=M("IF",!0),rt=M("STRLANG",!0),qn=M("STRDT",!0),Sp=M("sameTerm",!0),qo=M("isURI",!0),yp=M("isIRI",!0),Rp=M("isBLANK",!0),wp=M("isLITERAL",!0),Qa=M("isNUMERIC",!0),yu=M("REGEX",!0),Ya=M("SUBSTR",!0),Op=M("REPLACE",!0),Kn=M("EXISTS",!0),Xa=M("COUNT",!0),Ru=M("SUM",!0),wu=M("MIN",!0),Ja=M("MAX",!0),Ou=M("AVG",!0),eo=M("SAMPLE",!0),Up=M("GROUP_CONCAT",!0),Ko=M("SEPARATOR",!0),ki=M("^^",!1),Uu=M("true",!0),Gp=M("false",!0),ea=Ge(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Tr=M(":",!1),lr=M("_:",!1),Ve=Ge([["0","9"]],!1,!1),Ti=M("$",!1),Li=M("@",!1),ra=Ge([["a","z"],["A","Z"]],!1,!1),$i=Ge([["a","z"],["A","Z"],["0","9"]],!1,!1),Gu=Ge(["e","E"],!1,!1),Fp=Ge(["+","-"],!1,!1),ui=M("'",!1),Vs=Ge(["'","\\",`
|
|
50
|
+
`,"\r"],!0,!1),cs=M('"',!1),ro=Ge(['"',"\\",`
|
|
51
|
+
`,"\r"],!0,!1),Si=M("'''",!1),ta=M("''",!1),ia=Ge(["'","\\"],!0,!1),ja=M('"""',!1),An=M('""',!1),to=Ge(['"',"\\"],!0,!1),sa=M("\\",!1),Dp=Ge(["t","b","n","r","f","\\",'"',"'"],!1,!1),Fu=Ge([" "," "],!1,!1),Bp=Ge(["\r",`
|
|
52
|
+
`],!1,!1),Pp=Ge(["\r",`
|
|
53
|
+
`],!0,!1),hs=M("#",!1),Du=Ge([["A","Z"]],!1,!1),Mp=Ge([["a","z"]],!1,!1),Vp=Ge([["\xC0","\xD6"]],!1,!1),Bu=Ge([["\xD8","\xF6"]],!1,!1),In=Ge([["\xF8","\u02FF"]],!1,!1),za=Ge([["\u0370","\u037D"]],!1,!1),na=Ge([["\u037F","\u1FFF"]],!1,!1),Pu=Ge([["\u200C","\u200D"]],!1,!1),qa=Ge([["\u2070","\u218F"]],!1,!1),Mu=Ge([["\u2C00","\u2FEF"]],!1,!1),_p=Ge([["\u3001","\uD7FF"]],!1,!1),Vu=Ge([["\uF900","\uFDCF"]],!1,!1),gt=Ge([["\uFDF0","\uFFFD"]],!1,!1),Nn=M("_",!1),bn=Ge(["\xB7"],!1,!1),Tn=Ge([["\u0300","\u036F"]],!1,!1),Ln=Ge([["\u203F","\u2040"]],!1,!1),ds=M("%",!1),oa=Ge([["A","F"]],!1,!1),_u=Ge([["a","f"]],!1,!1),Wu=M("~",!1),ku=M("&",!1),Sn=function(n,t){let u={};n.length?u={headers:n,...t}:u=t;let o=Object.entries(lh).map(([a,c])=>({pos:parseInt(a),text:c}));return o.length&&(u.comments=o),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...u}},$u=function(n,t,u){let o={type:"Query"};return n&&(o.prologue=n),t.type==="SelectQuery"?o.selectQuery=t:t.type==="ConstructQuery"?o.constructQuery=t:t.type==="DescribeQuery"?o.describeQuery=t:t.type==="AskQuery"&&(o.askQuery=t),u&&(o.values=u),o},aa=function(n){if(n.length)return{type:"Prologue",decl:n}},Hu=function(n){return{type:"BaseDecl",iriref:n}},io=function(n,t){return{type:"PrefixDecl",pn_prefix:n,iriref:t}},Wp=function(n,t,u,o){return t.length&&(n.from=t),n={type:"SelectQuery",selectClause:n,whereClause:u,...o},n},yn=function(n,t,u,o){let a={type:"SubSelect",selectClause:n,whereClause:t,...u,location:Te()};return o&&(a.values=o),a},Zu=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},Qu=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},so=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},no=function(n,t,u){let o={type:"AskQuery"};return n.length&&(o.from=n),o={...o,where:t,...u,location:Te()},o},oo=function(n){return n},ao=function(n){return{graph:n,location:Te()}},Xu=function(n){return{namedGraph:n,location:Te()}},kp=function(n){return n.graphPattern||n},Ju=function(n,t,u,o){let a={};return n&&(a.group=n),t&&(a.having=t),u&&(a.orderBy=u),o&&(a.limitOffset=o),a},gs=function(n){return n},Rn=function(n){return n},lo=function(n){return n},$p=function(n,t){return t?{expressionType:"aliasedexpression",bracketted:!0,expression:n,as:t[2],location:Te()}:{bracketted:!0,...n}},ju=function(n){return n},Hp=function(n){return n},Zp=function(n){return n},Qp=function(n){return n},Gt=function(n,t){let u={};return n.toUpperCase()==="ASC"?u={asc:!0,...t}:n.toUpperCase()==="DESC"&&(u={desc:!0,...t}),u},zu=function(n){return n},Yp=function(n){let t=[n[0]];return n[1]&&t.push(n[1]),t},Xp=function(n){return{limit:parseInt(n.literal)}},Jp=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}},qp=function(n,t){return{type:"create",silent:n,destinyGraph:t}},Es=function(n,t,u){return{type:"add",silent:n,graphs:[t,u]}},uo=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]}},fo=function(n){return{type:"insertdata",insert:n}},Hi=function(n){return{type:"deletedata",delete:n}},Kp=function(n){return{type:"deletewhere",delete:n}},ec=function(n,t,u,o){let a={type:"modify"};return n&&(a.with=n[2]),t.length===3?(a.delete=t[0],t[2]&&(a.insert=t[2])):a.insert=t,u.length&&(a.using=u),a.where=o.graphPattern,a},wn=function(n){return n},rf=function(n){return n},tf=function(n){return n.length===3?{named:!0,iri:n[2]}:{iri:n}},sf=function(){return"default"},ua=function(n){return n},On=function(n){return n},Ka=function(n){return n},el=function(){return"default"},rl=function(){return"named"},rc=function(){return"all"},po=function(n){return n},nf=function(n){return n},tc=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()}},ic=function(n){return n},sc=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()}},co=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}},nc=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},oc=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},ac=function(n){return n},il=function(n){return{type:"MinusGraphPattern",minus:n.graphPattern||n,location:Te()}},ho=function(n,t){return t.length?{union:[n,...t],location:Te()}:n},go=function(n){return{type:"Filter",filter:n,location:Te()}},lc=function(n,t){return{functionRef:n,args:t.list,location:Te()}},cf=function(){return{list:[]}},uc=function(n,t,u){return{distinct:!!n,list:[t,...u]}},fc=function(){return[]},pc=function(n,t){return[n,...t]},cc=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()}},hc=function(n,t){return{subject:n,properties:t}},dc=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]},gc=function(n,t){return{subject:n,properties:t}},Ef=function(n,t){return{subject:n,properties:t}},Un=function(n,t,u){let o=[];return o.push({predicate:n,objects:t}),u.forEach(a=>{a[3]&&o.push({predicate:a[3][0],objects:a[3][2]})}),o},vf=function(n,t){return[n,...t]},pa=function(n,t){if(t.length){let u=[n];for(let o=0;o<t.length;o++)u.push(t[o][3]);return{alternative:u,location:Te()}}else return n},Ec=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},vc=function(n,t){return t&&(n.modifier=t),n},mc=function(n){return n.inverse=!0,n},Lr=function(){return{a:!0,location:Te()}},xc=function(n){return{bracketted:!0,...n}},nl=function(n){return{collection:n,location:Te()}},Eo=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},Cc=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}},Ac=function(n){return{expressionType:"unaryexpression",unaryexpression:"+",expression:n}},Gn=function(n){return{expressionType:"unaryexpression",unaryexpression:"-",expression:n}},Ic=function(n){return{expressionType:"atomic",value:n}},ha=function(n){return{expressionType:"atomic",value:n}},Nc=function(n){return{expressionType:"atomic",value:n}},Mr=function(n){return{expressionType:"atomic",value:n}},bc=function(n){return{bracketted:!0,...n}},Tc=function(n){return{expressionType:"builtincall",builtincall:"str",args:[n]}},Lc=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]}},L=function(n){return{expressionType:"builtincall",builtincall:"ceil",args:[n]}},R=function(n){return{expressionType:"builtincall",builtincall:"floor",args:[n]}},O=function(n){return{expressionType:"builtincall",builtincall:"round",args:[n]}},_=function(n){return{expressionType:"builtincall",builtincall:"CONCAT",args:n}},Q=function(n){return{expressionType:"builtincall",builtincall:"STRLEN",args:[n]}},re=function(n){return{expressionType:"builtincall",builtincall:"UCASE",args:[n]}},K=function(n){return{expressionType:"builtincall",builtincall:"LCASE",args:[n]}},oe=function(n){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[n]}},fe=function(n,t){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[n,t]}},he=function(n,t){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[n,t]}},me=function(n,t){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[n,t]}},Ce=function(n,t){return{expressionType:"builtincall",builtincall:"STRENDS",args:[n,t]}},xe=function(n,t){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[n,t]}},be=function(n){return{expressionType:"builtincall",builtincall:"year",args:[n]}},Pe=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]}},tt=function(n){return{expressionType:"builtincall",builtincall:"seconds",args:[n]}},yr=function(n){return{expressionType:"builtincall",builtincall:"timezone",args:[n]}},$t=function(n){return{expressionType:"builtincall",builtincall:"tz",args:[n]}},Ft=function(){return{expressionType:"builtincall",builtincall:"now"}},$r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},nt=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]}},Ur=function(n){return{expressionType:"builtincall",builtincall:"SHA384",args:[n]}},Bt=function(n){return{expressionType:"builtincall",builtincall:"SHA512",args:[n]}},Fn=function(n){return{expressionType:"builtincall",builtincall:"COALESCE",args:n}},vs=function(n,t,u){return{expressionType:"builtincall",builtincall:"IF",args:[n,t,u]}},Et=function(n,t){return{expressionType:"builtincall",builtincall:"STRLANG",args:[n,t]}},yi=function(n,t){return{expressionType:"builtincall",builtincall:"STRDT",args:[n,t]}},it=function(n,t){return{expressionType:"builtincall",builtincall:"sameTerm",args:[n,t]}},ul=function(n){return{expressionType:"builtincall",builtincall:"isURI",args:[n]}},Zi=function(n){return{expressionType:"builtincall",builtincall:"isBlank",args:[n]}},_s=function(n){return{expressionType:"builtincall",builtincall:"isLiteral",args:[n]}},Ws=function(n){return{expressionType:"builtincall",builtincall:"isNumeric",args:[n]}},Nt=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}},xd=function(n){return{exists:n.graphPattern||n}},Cd=function(n){return{notexists:n.graphPattern||n}},Ad=function(n,t){return{expressionType:"aggregate",aggregateType:"count",distinct:!!n,expression:t}},Id=function(n,t){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!n,expression:t}},Nd=function(n,t){return{expressionType:"aggregate",aggregateType:"min",distinct:!!n,expression:t}},bd=function(n,t){return{expressionType:"aggregate",aggregateType:"max",distinct:!!n,expression:t}},Td=function(n,t){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!n,expression:t}},Ld=function(n,t){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!n,expression:t}},Sd=function(n,t,u){let o=null;return u?.length&&(o=u[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:t,separator:o,distinct:!!n}},yd=function(n,t){let u={expressionType:"irireforfunction",iriref:n};return t&&(u.args=t.list),u},Rd=function(n,t){return typeof t=="string"?n.lang=t:t&&(n.dataType=t[1]),n.location=Te(),n},wd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Od=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Ud=function(n){return{type:"IRIref",iriref:n,location:Te()}},Gd=function(n){return n},Fd=function(n){return{type:"PrefixedName",pn_prefix:n.pn_prefix,pn_local:n.pn_local,location:Te()}},Dd=function(n){return{type:"PrefixedName",pn_prefix:n,location:Te()}},Bd=function(n){return{blankNode:n,location:Te()}},Pd=function(){return{blankNode:"[]",location:Te()}},Md=function(n){return n.join("")},Vd=function(n){return n||""},_d=function(n,t){return{pn_prefix:n,pn_local:t}},Wd=function(){return Zr()},kd=function(n){return{type:"Var",varType:"VAR1",varname:n}},$d=function(n){return{type:"Var",varType:"VAR2",varname:n}},Hd=function(n,t){let u=n.join("");return t.length&&(u+="-"+t[0][1].join("")),u.toLowerCase()},Zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Zr()}},Qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Zr()}},Yd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zr()}},Xd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zr()}},Jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zr()}},jd=function(n){return n.literal="+"+n.literal,n},zd=function(n){return n.literal="+"+n.literal,n},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{quote:"'",literal:n.join("")}},ig=function(n){return{quote:'"',literal:n.join("")}},sg=function(n){return{quote:"'''",literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},ng=function(n){return{quote:'"""',literal:n.map(t=>t[0]?t[0]+t[1]:t[1]).join("")}},og=function(){return Zr()},ag=function(){return Zr()},lg=function(){return lh[Te().start.offset]=Zr(),""},ug=function(){return Zr()},fg=function(){return Zr()},pg=function(){return Zr()},r=0,U=0,vo=[{line:1,column:1}],vt=0,pl=[],A=0,mo;if("startRule"in v){if(!(v.startRule in y))throw new Error(`Can't start parsing from rule "`+v.startRule+'".');w=y[v.startRule]}function Zr(){return i.substring(U,r)}function JA(){return U}function jA(){return{source:N,start:U,end:r}}function Te(){return ks(U,r)}function zA(n,t){throw t=t!==void 0?t:ks(U,r),yc([hg(n)],i.substring(U,r),t)}function qA(n,t){throw t=t!==void 0?t:ks(U,r),dg(n,t)}function M(n,t){return{type:"literal",text:n,ignoreCase:t}}function Ge(n,t,u){return{type:"class",parts:n,inverted:t,ignoreCase:u}}function KA(){return{type:"any"}}function cg(){return{type:"end"}}function hg(n){return{type:"other",description:n}}function Sc(n){var t=vo[n],u;if(t)return t;for(u=n-1;!vo[u];)u--;for(t=vo[u],t={line:t.line,column:t.column};u<n;)i.charCodeAt(u)===10?(t.line++,t.column=1):t.column++,u++;return vo[n]=t,t}function ks(n,t,u){var o=Sc(n),a=Sc(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<vt||(r>vt&&(vt=r,pl=[]),pl.push(n))}function dg(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 Rc(){var n,t,u,o,a,c;for(n=r,t=[],u=sh();u!==e;)t.push(u),u=sh();for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=gg(),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 gg(){var n;return n=Eg(),n===e&&(n=_c()),n}function Eg(){var n,t,u,o,a;for(n=r,t=wc(),u=[],o=p();o!==e;)u.push(o),o=p();return o=vg(),o===e&&(o=xg(),o===e&&(o=Cg(),o===e&&(o=Ag()))),o!==e?(a=Vc(),U=n,n=$u(t,o,a)):(r=n,n=e),n}function wc(){var n,t,u;for(n=r,t=[],u=Oc(),u===e&&(u=Uc());u!==e;)t.push(u),u=Oc(),u===e&&(u=Uc());return U=n,t=aa(t),n=t,n}function Oc(){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(up)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ol(),a!==e?(U=n,n=Hu(a)):(r=n,n=e)}else r=n,n=e;return n}function Uc(){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()===P?(u=i.substr(r,6),r+=6):(u=e,A===0&&C($n)),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=io(a,h)):(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;if(n=r,t=Gc(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=mt();a!==e;)o.push(a),a=mt();for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=$s(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qi(),U=n,n=Wp(t,o,c,E)}else r=n,n=e}else r=n,n=e;return n}function mg(){var n,t,u,o,a,c,h;if(n=r,t=Gc(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=$s(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Qi(),h=Vc(),U=n,n=yn(t,o,c,h)}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,F,W,ne,de,Ne,Re;if(n=r,i.substr(r,6).toLowerCase()===H?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Kr)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,8).toLowerCase()===Z?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(pt)),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=sr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===40?(x=V,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=[],W=p();W!==e;)F.push(W),W=p();if(i.substr(r,2).toLowerCase()===J?(W=i.substr(r,2),r+=2):(W=e,A===0&&C(Ss)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=sr(),de!==e){for(Ne=[],Re=p();Re!==e;)Ne.push(Re),Re=p();i.charCodeAt(r)===41?(Re=k,r++):(Re=e,A===0&&C(le)),Re!==e?(E=[E,x,T,S,F,W,ne,de,Ne,Re],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}if(h!==e)for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(x=sr(),x!==e?(E=[E,x],h=E):(r=h,h=e),h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===40?(x=V,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=[],W=p();W!==e;)F.push(W),W=p();if(i.substr(r,2).toLowerCase()===J?(W=i.substr(r,2),r+=2):(W=e,A===0&&C(Ss)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=sr(),de!==e){for(Ne=[],Re=p();Re!==e;)Ne.push(Re),Re=p();i.charCodeAt(r)===41?(Re=k,r++):(Re=e,A===0&&C(le)),Re!==e?(E=[E,x,T,S,F,W,ne,de,Ne,Re],h=E):(r=h,h=e)}else r=h,h=e}else r=h,h=e}else r=h,h=e}else r=h,h=e}}else c=e;c===e&&(i.charCodeAt(r)===42?(c=ee,r++):(c=e,A===0&&C(kr))),c!==e?(U=n,n=Zu(o,c)):(r=n,n=e)}else r=n,n=e;return n}function xg(){var n,t,u,o,a,c,h,E,x,T,S,F,W,ne;if(n=r,i.substr(r,9).toLowerCase()===X?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(Hn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=qg(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=mt();h!==e;)c.push(h),h=mt();for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=$s(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Qi(),U=n,n=Qu(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()===X?(t=i.substr(r,9),r+=9):(t=e,A===0&&C(Hn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=mt();a!==e;)o.push(a),a=mt();for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===D?(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=B,r++):(E=e,A===0&&C(Ot)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=Xi(),T===e&&(T=null),S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===125?(F=Y,r++):(F=e,A===0&&C(Ut)),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();ne=Qi(),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 Cg(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,8).toLowerCase()===z?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(fu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=ji(),a!==e)for(;a!==e;)o.push(a),a=ji();else o=e;if(o===e&&(i.charCodeAt(r)===42?(o=ee,r++):(o=e,A===0&&C(kr))),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=mt();h!==e;)c.push(h),h=mt();for(h=[],E=p();E!==e;)h.push(E),E=p();for(E=$s(),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=Qi(),U=n,n=so(o,c,E,T)}else r=n,n=e}else r=n,n=e;return n}function Ag(){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=mt();c!==e;)a.push(c),c=mt();for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=$s(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qi(),U=n,n=no(a,h,x)}else r=n,n=e}else r=n,n=e;return n}function mt(){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(fp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=Ig(),o===e&&(o=Ng()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=n,n=oo(o)}else r=n,n=e}else r=n,n=e;return n}function Ig(){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=ao(u)):(r=n,n=e),n}function Ng(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===ue?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Vi)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=pr(),o!==e?(U=n,n=Xu(o)):(r=n,n=e)}else r=n,n=e;return n}function $s(){var n,t,u,o;for(n=r,i.substr(r,5).toLowerCase()===D?(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=st(),o!==e?(U=n,n=kp(o)):(r=n,n=e),n}function Qi(){var n,t,u,o,a;return n=r,t=bg(),t===e&&(t=null),u=Tg(),u===e&&(u=null),o=Lg(),o===e&&(o=null),a=Sg(),a===e&&(a=null),U=n,n=Ju(t,u,o,a),n}function bg(){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(_i)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,2).toLowerCase()===$e?(o=i.substr(r,2),r+=2):(o=e,A===0&&C(hn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Fc(),h!==e)for(;h!==e;)c.push(h),h=Fc();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 Fc(){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=Rn(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=lo(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=V,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(Ss)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=sr(),T!==e?(E=[E,x,T],h=E):(r=h,h=e)}else r=h,h=e;for(h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===41?(x=k,r++):(x=e,A===0&&C(le)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();U=n,n=$p(a,h)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=sr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=n,n=ju(u)}else r=n,n=e}}}return n}function Tg(){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(Ba)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=Dc(),a!==e)for(;a!==e;)o.push(a),a=Dc();else o=e;o!==e?(U=n,n=Hp(o)):(r=n,n=e)}else r=n,n=e;return n}function Dc(){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=Zp(t)}else r=n,n=e;return n}function Lg(){var n,t,u,o,a,c,h,E;if(n=r,i.substr(r,5).toLowerCase()===_e?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(cu)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,2).toLowerCase()===$e?(o=i.substr(r,2),r+=2):(o=e,A===0&&C(hn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Bc(),h!==e)for(;h!==e;)c.push(h),h=Bc();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();U=n,n=Qp(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(ys))),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=Gt(t,o)}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,t=dl(),t===e&&(t=sr()),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();U=n,n=zu(t)}else r=n,n=e;return n}function Sg(){var n,t,u,o;return n=r,t=r,u=Pc(),u!==e?(o=Mc(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e),t===e&&(t=r,u=Mc(),u!==e?(o=Pc(),o===e&&(o=null),u=[u,o],t=u):(r=t,t=e)),t!==e&&(U=n,t=Yp(t)),n=t,n}function Pc(){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(Pa)),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=Xp(o)}else r=n,n=e}else r=n,n=e;return n}function Mc(){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(pp)),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=Jp(o)}else r=n,n=e}else r=n,n=e;return n}function Vc(){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(Zo)),u!==e?(o=Xc(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=null),U=n,t=qu(t),n=t,n}function _c(){var n,t,u,o,a,c,h,E,x,T;for(n=r,t=wc(),u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(a=yg(),a!==e){for(c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=_c(),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 yg(){var n;return n=Rg(),n===e&&(n=wg(),n===e&&(n=Og(),n===e&&(n=Gg(),n===e&&(n=Fg(),n===e&&(n=Dg(),n===e&&(n=Ug(),n===e&&(n=Bg(),n===e&&(n=Pg(),n===e&&(n=Mg(),n===e&&(n=Vg())))))))))),n}function Rg(){var n,t,u,o,a,c,h,E,x,T,S;if(n=r,i.substr(r,4).toLowerCase()===Xr?(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(ct)),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()===Lt?(x=i.substr(r,4),r+=4):(x=e,A===0&&C(dn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=cl(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;E===e&&(E=null),U=n,n=ef(o,c,E)}else r=n,n=e}else r=n,n=e;return n}function wg(){var n,t,u,o,a,c;if(n=r,i.substr(r,5).toLowerCase()===St?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Ni)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(i.substr(r,6).toLowerCase()===Je?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(ct)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=$c(),c!==e?(U=n,n=jp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Og(){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(ct)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=$c(),c!==e?(U=n,n=zp(o,c)):(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,6).toLowerCase()===yt?(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(ct)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();c=cl(),c!==e?(U=n,n=qp(o,c)):(r=n,n=e)}else r=n,n=e;return n}function Gg(){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(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(ct)),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()===ot?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Zn)),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 Fg(){var n,t,u,o,a,c,h,E,x,T;if(n=r,i.substr(r,4).toLowerCase()===je?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(hp)),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(ct)),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()===ot?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Zn)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Yi(),T!==e?(U=n,n=uo(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()===Jr?(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(ct)),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()===ot?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(Zn)),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 Bg(){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(Qo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,4).toLowerCase()===Vr?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Rs)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Hc(),c!==e?(U=n,n=fo(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Pg(){var n,t,u,o,a;if(n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();i.substr(r,4).toLowerCase()===Vr?(o=i.substr(r,4),r+=4):(o=e,A===0&&C(Rs)),o!==e?(a=Hc(),a!==e?(U=n,n=Hi(a)):(r=n,n=e)):(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()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===D?(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=Kp(c)):(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,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=_g(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Wc(),c===e&&(c=null),o=[o,a,c],u=o}else r=u,u=e;if(u===e&&(u=Wc()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=kc();c!==e;)a.push(c),c=kc();for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===D?(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=st(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();U=n,n=ec(t,u,a,x)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function _g(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===hr?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(gn)),t!==e?(u=hl(),u!==e?(U=n,n=wn(u)):(r=n,n=e)):(r=n,n=e),n}function Wc(){var n,t,u;return n=r,i.substr(r,6).toLowerCase()===Ar?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Qo)),t!==e?(u=hl(),u!==e?(U=n,n=rf(u)):(r=n,n=e)):(r=n,n=e),n}function kc(){var n,t,u,o,a,c,h,E;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.substr(r,5).toLowerCase()===Oe?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ma)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=pr(),a===e)if(a=r,i.substr(r,5).toLowerCase()===ue?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Vi)),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(En)),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=On(o)):(r=n,n=e)}else r=n,n=e;return n}function $c(){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(En)),t!==e&&(U=n,t=el()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===ue?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Vi)),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=rc()),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=B,r++):(u=e,A===0&&C(Ot)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=Zc(),c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ut)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=n,n=po(a)}else r=n,n=e}else r=n,n=e;return n}function Hc(){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=B,r++):(u=e,A===0&&C(Ot)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=Zc(),c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ut)),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 Zc(){var n,t,u,o,a,c,h;for(n=r,t=Xi(),t===e&&(t=null),u=[],o=r,a=Qc(),a!==e?(i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c===e&&(c=null),h=Xi(),h===e&&(h=null),a=[a,c,h],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,a=Qc(),a!==e?(i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c===e&&(c=null),h=Xi(),h===e&&(h=null),a=[a,c,h],o=a):(r=o,o=e);return U=n,n=tc(t,u),n}function Qc(){var n,t,u,o,a,c,h,E,x,T,S,F,W;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=ji(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===123?(h=B,r++):(h=e,A===0&&C(Ot)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(x=Xi(),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===125?(S=Y,r++):(S=e,A===0&&C(Ut)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=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 Xi(){var n,t,u,o,a,c,h;if(n=r,t=Kc(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Xi(),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 st(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===123?(t=B,r++):(t=e,A===0&&C(Ot)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=mg(),o===e&&(o=Wg()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===125?(c=Y,r++):(c=e,A===0&&C(Ut)),c!==e?(U=n,n=ic(o)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function Wg(){var n,t,u,o,a,c,h,E,x,T;for(n=r,t=xo(),t===e&&(t=null),u=[],o=p();o!==e;)u.push(o),o=p();if(o=[],a=r,c=Yc(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(i.charCodeAt(r)===46?(E=Se,r++):(E=e,A===0&&C(Xe)),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=xo(),T===e&&(T=null),c=[c,h,E,x,T],a=c}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,c=Yc(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(i.charCodeAt(r)===46?(E=Se,r++):(E=e,A===0&&C(Xe)),E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();T=xo(),T===e&&(T=null),c=[c,h,E,x,T],a=c}else r=a,a=e;return U=n,n=sc(t,o),n}function xo(){var n,t,u,o,a,c,h;if(n=r,t=eE(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=xo(),h===e&&(h=null),o=[o,a,c,h],u=o}else r=u,u=e;u===e&&(u=null),U=n,n=co(t,u)}else r=n,n=e;return n}function Yc(){var n;return n=jg(),n===e&&(n=kg(),n===e&&(n=Jg(),n===e&&(n=$g(),n===e&&(n=Hg(),n===e&&(n=zg(),n===e&&(n=Zg(),n===e&&(n=Qg()))))))),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,8).toLowerCase()===Or?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(mu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=st(),a!==e?(U=n,n=af(a)):(r=n,n=e)}else r=n,n=e;return n}function $g(){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=ji(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=st(),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 Hg(){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(Va)),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(ct)),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();if(c=ji(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=st(),E!==e?(U=n,n=nc(o,c,E)):(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,F,W;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(_a)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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(Ss)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=sr(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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 Qg(){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(Zo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Xc(),a!==e?(U=n,n=uf(a)):(r=n,n=e)}else r=n,n=e;return n}function Xc(){var n;return n=Yg(),n===e&&(n=Xg()),n}function Yg(){var n,t,u,o,a,c,h,E;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=sr(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===123?(a=B,r++):(a=e,A===0&&C(Ot)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=Co();E!==e;)h.push(E),E=Co();i.charCodeAt(r)===125?(E=Y,r++):(E=e,A===0&&C(Ut)),E!==e?(U=n,n=oc(u,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,x,T,S;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(i.charCodeAt(r)===40?(u=V,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=sr();c!==e;)a.push(c),c=sr();if(i.charCodeAt(r)===41?(c=k,r++):(c=e,A===0&&C(le)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=B,r++):(E=e,A===0&&C(Ot)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=[],S=Jc();S!==e;)T.push(S),S=Jc();i.charCodeAt(r)===125?(S=Y,r++):(S=e,A===0&&C(Ut)),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 Jc(){var n,t,u,o,a,c,h;if(n=r,i.charCodeAt(r)===40?(t=V,r++):(t=e,A===0&&C(ae)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=[],a=Co();a!==e;)o.push(a),a=Co();if(i.charCodeAt(r)===41?(a=k,r++):(a=e,A===0&&C(le)),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 Co(){var n,t,u,o;if(n=r,t=pr(),t===e&&(t=Ll(),t===e&&(t=Sl(),t===e&&(t=wl(),t===e&&(i.substr(r,5)===Rt?(t=Rt,r+=5):(t=e,A===0&&C(xu)))))),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();U=n,n=ac(t)}else r=n,n=e;return n}function Jg(){var n,t,u,o;if(n=r,i.substr(r,5).toLowerCase()===at?(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=st(),o!==e?(U=n,n=il(o)):(r=n,n=e)}else r=n,n=e;return n}function jg(){var n,t,u,o,a,c,h,E;if(n=r,t=st(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,5).toLowerCase()===xt?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Qn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=st(),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()===xt?(c=i.substr(r,5),r+=5):(c=e,A===0&&C(Qn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=st(),E!==e?o=E:(r=o,o=e)}else r=o,o=e}U=n,n=ho(t,u)}else r=n,n=e;return n}function zg(){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(dp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=dl(),a!==e?(U=n,n=go(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=lc(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=V,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()===Z?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(pt)),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=De,r++):(T=e,A===0&&C(We)),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=De,r++):(T=e,A===0&&C(We)),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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=n,n=uc(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=fc()),n=t,n===e)if(n=r,i.charCodeAt(r)===40?(t=V,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=De,r++):(E=e,A===0&&C(We)),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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(h=e,A===0&&C(le)),h!==e?(U=n,n=pc(o,c)):(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;if(n=r,i.charCodeAt(r)===123?(t=B,r++):(t=e,A===0&&C(Ot)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();for(o=qc(),o===e&&(o=null),a=[],c=p();c!==e;)a.push(c),c=p();i.charCodeAt(r)===125?(c=Y,r++):(c=e,A===0&&C(Ut)),c!==e?(U=n,n=cc(o)):(r=n,n=e)}else r=n,n=e;return n}function qc(){var n,t,u,o,a,c,h;if(n=r,t=Kc(),t!==e){for(u=r,o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=qc(),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 Kc(){var n,t,u,o,a;if(n=r,t=No(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=gl(),o!==e?(U=n,n=hc(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=Kg(),U=n,n=dc(u,a)}else r=n,n=e}return n}function Kg(){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,W;if(n=r,t=El(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=vl(),o!==e){for(a=[],c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=El(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();W=vl(),W!==e?(S=[S,F,W],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e;for(;c!==e;){for(a.push(c),c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=El(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();W=vl(),W!==e?(S=[S,F,W],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=ji(),n===e&&(n=r,i.charCodeAt(r)===97?(t=lt,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=Hs(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=De,r++):(c=e,A===0&&C(We)),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=De,r++):(c=e,A===0&&C(We)),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=gf(t,u)}else r=n,n=e;return n}function eE(){var n,t,u,o,a;if(n=r,t=No(),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=ml(),o!==e?(U=n,n=gc(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=th(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=rE(),U=n,n=Ef(u,a)}else r=n,n=e}return n}function rE(){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,W;if(n=r,t=Ao(),t===e&&(t=sr()),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(o=xl(),o!==e){for(a=[],c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=Ao(),S===e&&(S=sr()),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();W=xl(),W!==e?(S=[S,F,W],T=S):(r=T,T=e)}else r=T,T=e;T===e&&(T=null),h=[h,E,x,T],c=h}else r=c,c=e;for(;c!==e;){for(a.push(c),c=r,h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===59?(E=ur,r++):(E=e,A===0&&C(Yt)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(T=r,S=Ao(),S===e&&(S=sr()),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();W=xl(),W!==e?(S=[S,F,W],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=Un(t,o,a)}else r=n,n=e}else r=n,n=e;return n}function xl(){var n,t,u,o,a,c,h,E;if(n=r,t=Zs(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===44?(c=De,r++):(c=e,A===0&&C(We)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Zs(),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=De,r++):(c=e,A===0&&C(We)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Zs(),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 Ao(){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=ye,r++):(c=e,A===0&&C(Xt)),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=ye,r++):(c=e,A===0&&C(Xt)),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(Br)),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(Br)),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=Ec(t,u)}else r=n,n=e;return n}function eh(){var n,t,u;return n=r,t=iE(),t!==e?(u=tE(),u===e&&(u=null),U=n,n=vc(t,u)):(r=n,n=e),n}function Al(){var n,t,u;return n=eh(),n===e&&(n=r,i.charCodeAt(r)===94?(t=Mt,r++):(t=e,A===0&&C(us)),t!==e?(u=eh(),u!==e?(U=n,n=mc(u)):(r=n,n=e)):(r=n,n=e)),n}function tE(){var n;return i.charCodeAt(r)===63?(n=Ct,r++):(n=e,A===0&&C(Os)),n===e&&(i.charCodeAt(r)===42?(n=ee,r++):(n=e,A===0&&C(kr)),n===e&&(i.charCodeAt(r)===43?(n=Ir,r++):(n=e,A===0&&C(ht)))),n}function iE(){var n,t,u,o;return n=pr(),n===e&&(n=r,i.charCodeAt(r)===97?(t=lt,r++):(t=e,A===0&&C(ws)),t!==e&&(U=n,t=Lr()),n=t,n===e&&(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,A===0&&C(vn)),t!==e?(u=sE(),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n===e&&(n=r,i.charCodeAt(r)===40?(t=V,r++):(t=e,A===0&&C(ae)),t!==e?(u=Ao(),u!==e?(i.charCodeAt(r)===41?(o=k,r++):(o=e,A===0&&C(le)),o!==e?(U=n,n=xc(u)):(r=n,n=e)):(r=n,n=e)):(r=n,n=e)))),n}function sE(){var n,t,u,o,a,c,h,E;if(n=Io(),n===e)if(n=r,i.charCodeAt(r)===40?(t=V,r++):(t=e,A===0&&C(ae)),t!==e){if(u=r,o=Io(),o!==e){for(a=[],c=r,i.charCodeAt(r)===124?(h=ye,r++):(h=e,A===0&&C(Xt)),h!==e?(E=Io(),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=ye,r++):(h=e,A===0&&C(Xt)),h!==e?(E=Io(),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=k,r++):(o=e,A===0&&C(le)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function Io(){var n,t,u;return n=pr(),n===e&&(i.charCodeAt(r)===97?(n=lt,r++):(n=e,A===0&&C(ws)),n===e&&(n=r,i.charCodeAt(r)===94?(t=Mt,r++):(t=e,A===0&&C(us)),t!==e?(u=pr(),u===e&&(i.charCodeAt(r)===97?(u=lt,r++):(u=e,A===0&&C(ws))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e))),n}function rh(){var n,t;return n=r,t=aE(),t!==e&&(U=n,t=nl(t)),n=t,n===e&&(n=nE()),n}function nE(){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=Eo(a)}else r=n,n=e}else r=n,n=e}else r=n,n=e;return n}function th(){var n,t;return n=r,t=lE(),t!==e&&(U=n,t=fi(t)),n=t,n===e&&(n=oE()),n}function oE(){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 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)===40?(u=V,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=k,r++):(h=e,A===0&&C(le)),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 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)===40?(u=V,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Zs(),c!==e)for(;c!==e;)a.push(c),c=Zs();else a=e;if(a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===41?(h=k,r++):(h=e,A===0&&C(le)),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 Hs(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=No(),u===e&&(u=rh()),u!==e?(U=n,n=xf(u)):(r=n,n=e),n}function Zs(){var n,t,u;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();return u=No(),u===e&&(u=th()),u!==e?(U=n,n=Cf(u)):(r=n,n=e),n}function No(){var n;return n=sr(),n===e&&(n=uE()),n}function ji(){var n;return n=sr(),n===e&&(n=pr()),n}function sr(){var n,t,u,o,a;for(n=r,t=[],u=p();u!==e;)t.push(u),u=p();if(u=IE(),u===e&&(u=NE()),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 uE(){var n;return n=pr(),n===e&&(n=Ll(),n===e&&(n=Sl(),n===e&&(n=wl(),n===e&&(n=xE(),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)===At?(c=At,r+=2):(c=e,A===0&&C(Wi)),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)===At?(c=At,r+=2):(c=e,A===0&&C(Wi)),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(dt)),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(dt)),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=Cc(t,u)}else r=n,n=e;return n}function Nl(){var n,t,u,o,a,c,h,E,x,T;if(n=r,t=Gr(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===61?(c=br,r++):(c=e,A===0&&C(Wt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===wt?(c=wt,r+=2):(c=e,A===0&&C(bi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===60?(c=Ue,r++):(c=e,A===0&&C(fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===62?(c=ni,r++):(c=e,A===0&&C(Yn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===_r?(c=_r,r+=2):(c=e,A===0&&C(Xo)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ar?(c=ar,r+=2):(c=e,A===0&&C(Gs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2).toLowerCase()===dr?(c=i.substr(r,2),r+=2):(c=e,A===0&&C(ps)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ji(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,3).toLowerCase()===rs?(c=i.substr(r,3),r+=3):(c=e,A===0&&C(Fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ps)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Ji(),T!==e?(a=[a,c,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===61?(c=br,r++):(c=e,A===0&&C(Wt)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===wt?(c=wt,r+=2):(c=e,A===0&&C(bi)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===60?(c=Ue,r++):(c=e,A===0&&C(fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===62?(c=ni,r++):(c=e,A===0&&C(Yn)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===_r?(c=_r,r+=2):(c=e,A===0&&C(Xo)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2)===ar?(c=ar,r+=2):(c=e,A===0&&C(Gs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Gr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,2).toLowerCase()===dr?(c=i.substr(r,2),r+=2):(c=e,A===0&&C(ps)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Ji(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.substr(r,3).toLowerCase()===rs?(c=i.substr(r,3),r+=3):(c=e,A===0&&C(Fs)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,2).toLowerCase()===dr?(E=i.substr(r,2),r+=2):(E=e,A===0&&C(ps)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Ji(),T!==e?(a=[a,c,h,E,x,T],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e}}}}}}}}U=n,n=ll(t,u)}else r=n,n=e;return n}function Gr(){var n,t,u,o,a,c,h,E,x,T,S;if(n=r,t=Qs(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===43?(c=Ir,r++):(c=e,A===0&&C(ht)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qs(),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(Pr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qs(),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=yl(),a===e&&(a=Rl()),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(kr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Br)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(kr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Br)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,c],o=a}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===43?(c=Ir,r++):(c=e,A===0&&C(ht)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qs(),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(Pr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Qs(),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=yl(),a===e&&(a=Rl()),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(kr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Br)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(kr)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e;if(h===e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===47?(x=rr,r++):(x=e,A===0&&C(Br)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Fr(),S!==e?(E=[E,x,T,S],h=E):(r=h,h=e)}else r=h,h=e}}a=[a,c],o=a}else r=o,o=e}}U=n,n=If(t,u)}else r=n,n=e;return n}function Qs(){var n,t,u,o,a,c,h,E;if(n=r,t=Fr(),t!==e){for(u=[],o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===42?(c=ee,r++):(c=e,A===0&&C(kr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Br)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e}for(;o!==e;){for(u.push(o),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===42?(c=ee,r++):(c=e,A===0&&C(kr)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Fr(),E!==e?(a=[a,c,h,E],o=a):(r=o,o=e)}else r=o,o=e;if(o===e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===47?(c=rr,r++):(c=e,A===0&&C(Br)),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}}U=n,n=gr(t,u)}else r=n,n=e;return n}function Fr(){var n,t,u,o;if(n=r,i.charCodeAt(r)===33?(t=ri,r++):(t=e,A===0&&C(vn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=bo(),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=Ir,r++):(t=e,A===0&&C(ht)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=bo(),o!==e?(U=n,n=Ac(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(Pr)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=bo(),o!==e?(U=n,n=Gn(o)):(r=n,n=e)}else r=n,n=e;n===e&&(n=bo())}}return n}function bo(){var n,t;return n=bl(),n===e&&(n=Tl(),n===e&&(n=EE(),n===e&&(n=r,t=Ll(),t!==e&&(U=n,t=Ic(t)),n=t,n===e&&(n=r,t=Sl(),t!==e&&(U=n,t=ha(t)),n=t,n===e&&(n=r,t=wl(),t!==e&&(U=n,t=Nc(t)),n=t,n===e&&(n=r,t=sr(),t!==e&&(U=n,t=Mr(t)),n=t)))))),n}function bl(){var n,t,u,o,a,c;if(n=r,i.charCodeAt(r)===40?(t=V,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=k,r++):(c=e,A===0&&C(le)),c!==e?(U=n,n=bc(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,W,ne,de,Ne;if(n=gE(),n===e){if(n=r,i.substr(r,3).toLowerCase()===ts?(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=V,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=k,r++):(E=e,A===0&&C(le)),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,4).toLowerCase()===ut?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Wa)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Lc(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()===Wr?(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=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),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=V,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=k,r++):(E=e,A===0&&C(le)),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($a)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=sr(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();i.charCodeAt(r)===41?(E=k,r++):(E=e,A===0&&C(le)),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()===Ks?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(mn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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()===en?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Jo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(a=[a,c,h,E,x],o=a):(r=o,o=e)}else r=o,o=e}else r=o,o=e;o===e&&(o=jt()),o!==e?(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()===rn?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(jo)),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(Ep)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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()===Vt?(t=i.substr(r,4),r+=4):(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=V,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=k,r++):(E=e,A===0&&C(le)),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()===Gi?(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=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=R(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,5).toLowerCase()===tn?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Ha)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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(Za)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=Ji(),o!==e?(U=n,n=_(o)):(r=n,n=e)}else r=n,n=e;if(n===e&&(n=pE(),n===e)){if(n=r,i.substr(r,6).toLowerCase()===Vn?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(xn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Q(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e&&(n=cE(),n===e)){if(n=r,i.substr(r,5).toLowerCase()===sn?(t=i.substr(r,5),r+=5):(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=V,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=k,r++):(E=e,A===0&&C(le)),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(xp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=K(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,14).toLowerCase()===nn?(t=i.substr(r,14),r+=14):(t=e,A===0&&C(zo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),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()===Do?(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=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),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()===Bo?(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=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),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()===on?(t=i.substr(r,7),r+=7):(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=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),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()===Be?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(jn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),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()===q?(t=i.substr(r,4),r+=4):(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=V,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=k,r++):(E=e,A===0&&C(le)),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(zn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Pe(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()===Le?(t=i.substr(r,3),r+=3):(t=e,A===0&&C(Cn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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=V,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=k,r++):(E=e,A===0&&C(le)),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()===qr?(t=i.substr(r,7),r+=7):(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=V,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=k,r++):(E=e,A===0&&C(le)),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()===ze?(t=i.substr(r,7),r+=7):(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=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=tt(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(Cp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=yr(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()===ft?(t=i.substr(r,2),r+=2):(t=e,A===0&&C(Ps)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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=Ft()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,4).toLowerCase()===_t?(t=i.substr(r,4),r+=4):(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=$r()):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,7).toLowerCase()===He?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(Ip)),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,3).toLowerCase()===mi?(t=i.substr(r,3),r+=3):(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=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=nt(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(bp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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()===La?(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=V,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=k,r++):(E=e,A===0&&C(le)),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(Lp)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Ur(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e){if(n=r,i.substr(r,6).toLowerCase()===Qe?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(kt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Bt(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()===Sa?(t=i.substr(r,8),r+=8):(t=e,A===0&&C(et)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=Ji(),o!==e?(U=n,n=Fn(o)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,i.substr(r,2).toLowerCase()===ya?(t=i.substr(r,2),r+=2):(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=V,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=De,r++):(E=e,A===0&&C(We)),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=De,r++):(F=e,A===0&&C(We)),F!==e){for(W=[],ne=p();ne!==e;)W.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=k,r++):(Ne=e,A===0&&C(le)),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()===Po?(t=i.substr(r,7),r+=7):(t=e,A===0&&C(rt)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),F!==e?(U=n,n=Et(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(qn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),F!==e?(U=n,n=yi(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()===jl?(t=i.substr(r,8),r+=8):(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=V,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=De,r++):(E=e,A===0&&C(We)),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=k,r++):(F=e,A===0&&C(le)),F!==e?(U=n,n=it(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()===Yf?(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=V,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=k,r++):(E=e,A===0&&C(le)),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()===zl?(t=i.substr(r,7),r+=7):(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=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Zi(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()===Vo?(t=i.substr(r,9),r+=9):(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=V,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=k,r++):(E=e,A===0&&C(le)),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,9).toLowerCase()===xi?(t=i.substr(r,9),r+=9):(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=V,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=k,r++):(E=e,A===0&&C(le)),E!==e?(U=n,n=Ws(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e}else r=n,n=e;n===e&&(n=fE(),n===e&&(n=hE(),n===e&&(n=dE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return n}function fE(){var n,t,u,o,a,c,h,E,x,T,S,F,W,ne,de;if(n=r,i.substr(r,5).toLowerCase()===ql?(t=i.substr(r,5),r+=5):(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=V,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=De,r++):(E=e,A===0&&C(We)),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?(W=De,r++):(W=e,A===0&&C(We)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=se(),de!==e?(W=[W,ne,de],F=W):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),W=[],ne=p();ne!==e;)W.push(ne),ne=p();i.charCodeAt(r)===41?(ne=k,r++):(ne=e,A===0&&C(le)),ne!==e?(U=n,n=Nt(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 pE(){var n,t,u,o,a,c,h,E,x,T,S,F,W,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=V,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=De,r++):(E=e,A===0&&C(We)),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?(W=De,r++):(W=e,A===0&&C(We)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=se(),de!==e?(W=[W,ne,de],F=W):(r=F,F=e)}else r=F,F=e;for(F===e&&(F=null),W=[],ne=p();ne!==e;)W.push(ne),ne=p();i.charCodeAt(r)===41?(ne=k,r++):(ne=e,A===0&&C(le)),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 cE(){var n,t,u,o,a,c,h,E,x,T,S,F,W,ne,de,Ne,Re,er,Ht;if(n=r,i.substr(r,7).toLowerCase()===_n?(t=i.substr(r,7),r+=7):(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=V,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=De,r++):(E=e,A===0&&C(We)),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=De,r++):(F=e,A===0&&C(We)),F!==e){for(W=[],ne=p();ne!==e;)W.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?(Re=De,r++):(Re=e,A===0&&C(We)),Re!==e){for(er=[],Ht=p();Ht!==e;)er.push(Ht),Ht=p();Ht=se(),Ht!==e?(Re=[Re,er,Ht],Ne=Re):(r=Ne,Ne=e)}else r=Ne,Ne=e;for(Ne===e&&(Ne=null),Re=[],er=p();er!==e;)Re.push(er),er=p();i.charCodeAt(r)===41?(er=k,r++):(er=e,A===0&&C(le)),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 hE(){var n,t,u,o;if(n=r,i.substr(r,6).toLowerCase()===Wn?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(Kn)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();o=st(),o!==e?(U=n,n=xd(o)):(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).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()===Wn?(o=i.substr(r,6),r+=6):(o=e,A===0&&C(Kn)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=st(),c!==e?(U=n,n=Cd(c)):(r=n,n=e)}else r=n,n=e}else r=n,n=e;return n}function gE(){var n,t,u,o,a,c,h,E,x,T,S,F,W,ne,de,Ne,Re;if(n=r,i.substr(r,5).toLowerCase()===eu?(t=i.substr(r,5),r+=5):(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=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===42?(E=ee,r++):(E=e,A===0&&C(kr)),E===e&&(E=se()),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=k,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Ad(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()===Ra?(t=i.substr(r,3),r+=3):(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=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),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=k,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Id(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=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),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=k,r++):(T=e,A===0&&C(le)),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()===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=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),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=k,r++):(T=e,A===0&&C(le)),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()===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=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),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=k,r++):(T=e,A===0&&C(le)),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,6).toLowerCase()===su?(t=i.substr(r,6),r+=6):(t=e,A===0&&C(eo)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),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=k,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=n,n=Ld(c,E)}else r=n,n=e}else r=n,n=e}else r=n,n=e}else r=n,n=e;if(n===e)if(n=r,i.substr(r,12).toLowerCase()===Xf?(t=i.substr(r,12),r+=12):(t=e,A===0&&C(Up)),t!==e){for(u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,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()===Z?(c=i.substr(r,8),r+=8):(c=e,A===0&&C(pt)),c===e&&(c=null),h=[],E=p();E!==e;)h.push(E),E=p();if(E=se(),E!==e){for(x=r,T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===59?(S=ur,r++):(S=e,A===0&&C(Yt)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();if(i.substr(r,9).toLowerCase()===Jf?(W=i.substr(r,9),r+=9):(W=e,A===0&&C(Ko)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(i.charCodeAt(r)===61?(de=br,r++):(de=e,A===0&&C(Wt)),de!==e){for(Ne=[],Re=p();Re!==e;)Ne.push(Re),Re=p();Re=ih(),Re!==e?(T=[T,S,F,W,ne,de,Ne,Re],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=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();U=n,n=Sd(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 EE(){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=yd(t,o)}else r=n,n=e;return n}function Ll(){var n,t,u,o,a;return n=r,t=ih(),t!==e?(u=bE(),u===e&&(u=r,i.substr(r,2)===_o?(o=_o,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=Rd(t,u)):(r=n,n=e),n}function Sl(){var n;return n=vE(),n===e&&(n=yl(),n===e&&(n=Rl())),n}function vE(){var n;return n=Fl(),n===e&&(n=Gl(),n===e&&(n=Ys())),n}function yl(){var n;return n=SE(),n===e&&(n=LE(),n===e&&(n=TE())),n}function Rl(){var n;return n=wE(),n===e&&(n=RE(),n===e&&(n=yE())),n}function wl(){var n,t;return n=r,i.substr(r,4).toLowerCase()===Di?(t=i.substr(r,4),r+=4):(t=e,A===0&&C(Uu)),t!==e&&(U=n,t=wd()),n=t,n===e&&(n=r,i.substr(r,5).toLowerCase()===jf?(t=i.substr(r,5),r+=5):(t=e,A===0&&C(Gp)),t!==e&&(U=n,t=Od()),n=t),n}function ih(){var n;return n=GE(),n===e&&(n=FE(),n===e&&(n=OE(),n===e&&(n=UE()))),n}function pr(){var n,t;return n=r,t=Ol(),t!==e&&(U=n,t=Ud(t)),n=t,n===e&&(n=r,t=mE(),t!==e&&(U=n,t=Gd(t)),n=t),n}function mE(){var n,t;return n=r,t=CE(),t!==e&&(U=n,t=Fd(t)),n=t,n===e&&(n=r,t=Ul(),t!==e&&(U=n,t=Dd(t)),n=t),n}function xE(){var n,t;return n=r,t=AE(),t!==e&&(U=n,t=Bd(t)),n=t,n===e&&(n=r,t=BE(),t!==e&&(U=n,t=Pd()),n=t),n}function Ol(){var n,t,u,o;if(n=r,i.charCodeAt(r)===60?(t=Ue,r++):(t=e,A===0&&C(fs)),t!==e){for(u=[],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(Yn)),o!==e?(U=n,n=Md(u)):(r=n,n=e)}else r=n,n=e;return n}function Ul(){var n,t,u;return n=r,t=PE(),t===e&&(t=null),i.charCodeAt(r)===58?(u=Qt,r++):(u=e,A===0&&C(Tr)),u!==e?(U=n,n=Vd(t)):(r=n,n=e),n}function CE(){var n,t,u;return n=r,t=Ul(),t!==e?(u=ME(),u!==e?(U=n,n=_d(t,u)):(r=n,n=e)):(r=n,n=e),n}function AE(){var n,t,u,o,a,c,h;if(n=r,i.substr(r,2)===an?(t=an,r+=2):(t=e,A===0&&C(lr)),t!==e)if(u=zi(),u===e&&(Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve))),u!==e){for(o=[],a=Qr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e?(h=Qr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Qr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e?(h=Qr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));U=n,n=Wd()}else r=n,n=e;else r=n,n=e;return n}function IE(){var n,t,u;return n=r,i.charCodeAt(r)===63?(t=Ct,r++):(t=e,A===0&&C(Os)),t!==e?(u=oh(),u!==e?(U=n,n=kd(u)):(r=n,n=e)):(r=n,n=e),n}function NE(){var n,t,u;return n=r,i.charCodeAt(r)===36?(t=Ns,r++):(t=e,A===0&&C(Ti)),t!==e?(u=oh(),u!==e?(U=n,n=$d(u)):(r=n,n=e)):(r=n,n=e),n}function bE(){var n,t,u,o,a,c,h,E;if(n=r,i.charCodeAt(r)===64?(t=wa,r++):(t=e,A===0&&C(Li)),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(Pr)),c!==e){if(h=[],ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C($i)),E!==e)for(;E!==e;)h.push(E),ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C($i));else h=e;h!==e?(c=[c,h],a=c):(r=a,a=e)}else r=a,a=e;for(;a!==e;)if(o.push(a),a=r,i.charCodeAt(r)===45?(c=tr,r++):(c=e,A===0&&C(Pr)),c!==e){if(h=[],ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C($i)),E!==e)for(;E!==e;)h.push(E),ns.test(i.charAt(r))?(E=i.charAt(r),r++):(E=e,A===0&&C($i));else h=e;h!==e?(c=[c,h],a=c):(r=a,a=e)}else r=a,a=e;U=n,n=Hd(u,o)}else r=n,n=e}else r=n,n=e;return n}function Ys(){var n,t,u;if(n=r,t=[],Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve)),u!==e)for(;u!==e;)t.push(u),Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve));else t=e;return t!==e&&(U=n,t=Zd()),n=t,n}function Gl(){var n,t,u,o,a;for(n=r,t=[],Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve));u!==e;)t.push(u),Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve));if(i.charCodeAt(r)===46?(u=Se,r++):(u=e,A===0&&C(Xe)),u!==e){if(o=[],Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve)),a!==e)for(;a!==e;)o.push(a),Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve));else o=e;o!==e?(U=n,n=Qd()):(r=n,n=e)}else r=n,n=e;return n}function Fl(){var n,t,u,o,a;if(n=r,t=[],Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve)),u!==e)for(;u!==e;)t.push(u),Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve));else t=e;if(t!==e)if(i.charCodeAt(r)===46?(u=Se,r++):(u=e,A===0&&C(Xe)),u!==e){for(o=[],Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve));a!==e;)o.push(a),Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve));a=Dl(),a!==e?(U=n,n=Yd()):(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=Se,r++):(t=e,A===0&&C(Xe)),t!==e){if(u=[],Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve)),o!==e)for(;o!==e;)u.push(o),Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve));else u=e;u!==e?(o=Dl(),o!==e?(U=n,n=Xd()):(r=n,n=e)):(r=n,n=e)}else r=n,n=e;if(n===e){if(n=r,t=[],Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve)),u!==e)for(;u!==e;)t.push(u),Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve));else t=e;t!==e?(u=Dl(),u!==e?(U=n,n=Jd()):(r=n,n=e)):(r=n,n=e)}}return n}function TE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(ht)),t!==e?(u=Ys(),u!==e?(U=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)===43?(t=Ir,r++):(t=e,A===0&&C(ht)),t!==e?(u=Gl(),u!==e?(U=n,n=zd(u)):(r=n,n=e)):(r=n,n=e),n}function SE(){var n,t,u;return n=r,i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(ht)),t!==e?(u=Fl(),u!==e?(U=n,n=qd(u)):(r=n,n=e)):(r=n,n=e),n}function yE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Pr)),t!==e?(u=Ys(),u!==e?(U=n,n=Kd(u)):(r=n,n=e)):(r=n,n=e),n}function RE(){var n,t,u;return n=r,i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Pr)),t!==e?(u=Gl(),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(Pr)),t!==e?(u=Fl(),u!==e?(U=n,n=rg(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,A===0&&C(Gu)),t!==e){if(zf.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Fp)),u===e&&(u=null),o=[],Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve)),a!==e)for(;a!==e;)o.push(a),Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve));else o=e;o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function OE(){var n,t,u,o;if(n=r,i.charCodeAt(r)===39?(t=Bi,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(Vs)),o===e&&(o=Jt());o!==e;)u.push(o),Ga.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Vs)),o===e&&(o=Jt());i.charCodeAt(r)===39?(o=Bi,r++):(o=e,A===0&&C(ui)),o!==e?(U=n,n=tg(u)):(r=n,n=e)}else r=n,n=e;return n}function UE(){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=[],kn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ro)),o===e&&(o=Jt());o!==e;)u.push(o),kn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(ro)),o===e&&(o=Jt());i.charCodeAt(r)===34?(o=bs,r++):(o=e,A===0&&C(cs)),o!==e?(U=n,n=ig(u)):(r=n,n=e)}else r=n,n=e;return n}function GE(){var n,t,u,o,a,c;if(n=r,i.substr(r,3)===Ts?(t=Ts,r+=3):(t=e,A===0&&C(Si)),t!==e){for(u=[],o=r,i.substr(r,2)===Pi?(a=Pi,r+=2):(a=e,A===0&&C(ta)),a===e&&(i.charCodeAt(r)===39?(a=Bi,r++):(a=e,A===0&&C(ui))),a===e&&(a=null),$o.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(ia)),c===e&&(c=Jt()),c!==e?(a=[a,c],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Pi?(a=Pi,r+=2):(a=e,A===0&&C(ta)),a===e&&(i.charCodeAt(r)===39?(a=Bi,r++):(a=e,A===0&&C(ui))),a===e&&(a=null),$o.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(ia)),c===e&&(c=Jt()),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(Si)),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,a,c;if(n=r,i.substr(r,3)===ss?(t=ss,r+=3):(t=e,A===0&&C(ja)),t!==e){for(u=[],o=r,i.substr(r,2)===Ls?(a=Ls,r+=2):(a=e,A===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs))),a===e&&(a=null),Ci.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(to)),c===e&&(c=Jt()),c!==e?(a=[a,c],o=a):(r=o,o=e);o!==e;)u.push(o),o=r,i.substr(r,2)===Ls?(a=Ls,r+=2):(a=e,A===0&&C(An)),a===e&&(i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs))),a===e&&(a=null),Ci.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(to)),c===e&&(c=Jt()),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(ja)),o!==e?(U=n,n=ng(u)):(r=n,n=e)}else r=n,n=e;return n}function Jt(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Wo,r++):(t=e,A===0&&C(sa)),t!==e?(Fa.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Dp)),u!==e?(U=n,n=og()):(r=n,n=e)):(r=n,n=e),n}function jt(){var n,t,u,o;if(n=r,i.charCodeAt(r)===40?(t=V,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=k,r++):(o=e,A===0&&C(le)),o!==e?(t=[t,u,o],n=t):(r=n,n=e)}else r=n,n=e;return n}function p(){var n;return n=DE(),n===e&&(n=Bl(),n===e&&(n=Pl())),n}function Bl(){var n;return Mi.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Fu)),n}function Pl(){var n;return Ho.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Bp)),n}function To(){var n;return Da.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pp)),n}function sh(){var n,t,u,o;if(n=r,i.charCodeAt(r)===35?(t=ln,r++):(t=e,A===0&&C(hs)),t!==e){for(u=[],o=To();o!==e;)u.push(o),o=To();o=Pl(),o!==e?(U=n,n=ag()):(r=n,n=e)}else r=n,n=e;return n}function DE(){var n,t,u,o,a,c;for(n=r,t=Pl(),t===e&&(t=null),u=[],o=Bl();o!==e;)u.push(o),o=Bl();if(i.charCodeAt(r)===35?(o=ln,r++):(o=e,A===0&&C(hs)),o!==e){for(a=[],c=To();c!==e;)a.push(c),c=To();U=n,n=lg()}else r=n,n=e;return n}function BE(){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 nh(){var n;return pn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Du)),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(Vp)),n===e&&(ep.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Bu)),n===e&&(rp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(In)),n===e&&(ou.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(za)),n===e&&(au.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(na)),n===e&&(tp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Pu)),n===e&&(ip.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(qa)),n===e&&(sp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Mu)),n===e&&(np.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(_p)),n===e&&(lu.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Vu)),n===e&&(op.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(gt)))))))))))))),n}function zi(){var n;return n=nh(),n===e&&(i.charCodeAt(r)===95?(n=un,r++):(n=e,A===0&&C(Nn))),n}function oh(){var n,t,u,o;if(n=r,t=zi(),t===e&&(Ze.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Ve))),t!==e){for(u=[],o=zi(),o===e&&(Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve)),o===e&&(cn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(bn)),o===e&&(os.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Tn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ln))))));o!==e;)u.push(o),o=zi(),o===e&&(Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve)),o===e&&(cn.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(bn)),o===e&&(os.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Tn)),o===e&&(Ai.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ln))))));U=n,n=ug()}else r=n,n=e;return n}function Qr(){var n;return n=zi(),n===e&&(i.charCodeAt(r)===45?(n=tr,r++):(n=e,A===0&&C(Pr)),n===e&&(Ze.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Ve)),n===e&&(cn.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(bn)),n===e&&(os.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Tn)),n===e&&(Ai.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Ln))))))),n}function PE(){var n,t,u,o,a,c;if(n=r,t=nh(),t!==e){for(u=[],o=Qr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e?(c=Qr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Qr(),o===e&&(o=r,i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e?(c=Qr(),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=fg()}else r=n,n=e;return n}function ME(){var n,t,u,o,a,c;if(n=r,t=zi(),t===e&&(i.charCodeAt(r)===58?(t=Qt,r++):(t=e,A===0&&C(Tr)),t===e&&(Ze.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Ve)),t===e&&(t=Xs()))),t!==e){for(u=[],o=Qr(),o===e&&(i.charCodeAt(r)===58?(o=Qt,r++):(o=e,A===0&&C(Tr)),o===e&&(o=Xs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e?(c=Qr(),c===e&&(i.charCodeAt(r)===58?(c=Qt,r++):(c=e,A===0&&C(Tr)),c===e&&(c=Xs())),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));o!==e;)u.push(o),o=Qr(),o===e&&(i.charCodeAt(r)===58?(o=Qt,r++):(o=e,A===0&&C(Tr)),o===e&&(o=Xs())),o===e&&(o=r,i.charCodeAt(r)===46?(a=Se,r++):(a=e,A===0&&C(Xe)),a!==e?(c=Qr(),c===e&&(i.charCodeAt(r)===58?(c=Qt,r++):(c=e,A===0&&C(Tr)),c===e&&(c=Xs())),c!==e?(a=[a,c],o=a):(r=o,o=e)):(r=o,o=e));U=n,n=pg()}else r=n,n=e;return n}function Xs(){var n;return n=VE(),n===e&&(n=_E()),n}function VE(){var n,t,u,o;return n=r,i.charCodeAt(r)===37?(t=fn,r++):(t=e,A===0&&C(ds)),t!==e?(u=ah(),u!==e?(o=ah(),o!==e?(t=[t,u,o],n=t):(r=n,n=e)):(r=n,n=e)):(r=n,n=e),n}function ah(){var n;return Ze.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(Ve)),n===e&&(ap.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(oa)),n===e&&(lp.test(i.charAt(r))?(n=i.charAt(r),r++):(n=e,A===0&&C(_u)))),n}function _E(){var n,t,u;return n=r,i.charCodeAt(r)===92?(t=Wo,r++):(t=e,A===0&&C(sa)),t!==e?(i.charCodeAt(r)===95?(u=un,r++):(u=e,A===0&&C(Nn)),u===e&&(i.charCodeAt(r)===126?(u=Oa,r++):(u=e,A===0&&C(Wu)),u===e&&(i.charCodeAt(r)===46?(u=Se,r++):(u=e,A===0&&C(Xe)),u===e&&(i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Pr)),u===e&&(i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(vn)),u===e&&(i.charCodeAt(r)===36?(u=Ns,r++):(u=e,A===0&&C(Ti)),u===e&&(i.charCodeAt(r)===38?(u=nu,r++):(u=e,A===0&&C(ku)),u===e&&(i.charCodeAt(r)===39?(u=Bi,r++):(u=e,A===0&&C(ui)),u===e&&(i.charCodeAt(r)===40?(u=V,r++):(u=e,A===0&&C(ae)),u===e&&(i.charCodeAt(r)===41?(u=k,r++):(u=e,A===0&&C(le)),u===e&&(i.charCodeAt(r)===42?(u=ee,r++):(u=e,A===0&&C(kr)),u===e&&(i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(ht)),u===e&&(i.charCodeAt(r)===44?(u=De,r++):(u=e,A===0&&C(We)),u===e&&(i.charCodeAt(r)===59?(u=ur,r++):(u=e,A===0&&C(Yt)),u===e&&(i.charCodeAt(r)===58?(u=Qt,r++):(u=e,A===0&&C(Tr)),u===e&&(i.charCodeAt(r)===61?(u=br,r++):(u=e,A===0&&C(Wt)),u===e&&(i.charCodeAt(r)===47?(u=rr,r++):(u=e,A===0&&C(Br)),u===e&&(i.charCodeAt(r)===63?(u=Ct,r++):(u=e,A===0&&C(Os)),u===e&&(i.charCodeAt(r)===35?(u=ln,r++):(u=e,A===0&&C(hs)),u===e&&(i.charCodeAt(r)===64?(u=wa,r++):(u=e,A===0&&C(Li)),u===e&&(i.charCodeAt(r)===37?(u=fn,r++):(u=e,A===0&&C(ds)))))))))))))))))))))),u!==e?(t=[t,u],n=t):(r=n,n=e)):(r=n,n=e),n}let lh={};if(mo=w(),mo!==e&&r===i.length)return mo;throw mo!==e&&r<i.length&&C(cg()),yc(pl,vt<i.length?i.charAt(vt):null,vt<i.length?ks(vt,vt+1):ks(vt,vt))}function I1(i,v){function e(){this.constructor=i}e.prototype=v.prototype,i.prototype=new e}function Xl(i,v,e,N){var y=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(y,Xl.prototype),y.expected=v,y.found=e,y.location=N,y.name="SyntaxError",y}I1(Xl,Error);function Ov(i,v,e){return e=e||" ",i.length>v?i:(v-=i.length,e+=e.repeat(v),i+e.slice(0,v))}Xl.prototype.format=function(i){var v="Error: "+this.message;if(this.location){var e=null,N;for(N=0;N<i.length;N++)if(i[N].source===this.location.source){e=i[N].text.split(/\r\n|\n|\r/g);break}var y=this.location.start,w=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(y):y,G=this.location.source+":"+w.line+":"+w.column;if(e){var P=this.location.end,H=Ov("",w.line.toString().length," "),Z=e[y.line-1],$=y.line===P.line?P.column:Z.length+1,V=$-y.column||1;v+=`
|
|
54
|
+
--> `+G+`
|
|
55
|
+
`+H+` |
|
|
56
|
+
`+w.line+" | "+Z+`
|
|
57
|
+
`+H+" | "+Ov("",y.column-1," ")+Ov("",V,"^")}else v+=`
|
|
58
|
+
at `+G}return v};Xl.buildMessage=function(i,v){var e={literal:function(Z){return'"'+y(Z.text)+'"'},class:function(Z){var $=Z.parts.map(function(V){return Array.isArray(V)?w(V[0])+"-"+w(V[1]):w(V)});return"["+(Z.inverted?"^":"")+$.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(Z){return Z.description}};function N(Z){return Z.charCodeAt(0).toString(16).toUpperCase()}function y(Z){return Z.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function($){return"\\x0"+N($)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function($){return"\\x"+N($)})}function w(Z){return Z.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function($){return"\\x0"+N($)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function($){return"\\x"+N($)})}function G(Z){return e[Z.type](Z)}function P(Z){var $=Z.map(G),V,J;if($.sort(),$.length>0){for(V=1,J=1;V<$.length;V++)$[V-1]!==$[V]&&($[J]=$[V],J++);$.length=J}switch($.length){case 1:return $[0];case 2:return $[0]+" or "+$[1];default:return $.slice(0,-1).join(", ")+", or "+$[$.length-1]}}function H(Z){return Z?'"'+y(Z)+'"':"end of input"}return"Expected "+P(i)+" but "+H(v)+" found."};function Uv(i,v){v=v!==void 0?v:{};var e={},N=v.grammarSource,y={DOCUMENT:Rc},w=Rc,G="base",P="prefix",H="select",Z="distinct",$="reduced",V="(",J="as",k=")",ee="*",X="construct",D="where",B="{",Y="}",z="describe",te="ask",ie="from",ue="named",Ee="group",$e="by",we="having",_e="order",Me="asc",Ke="desc",ve="limit",xr="offset",Cr="values",ur=";",Xr="load",Je="silent",Lt="into",St="clear",cr="drop",yt="create",or="add",ot="to",je="move",Jr="copy",Ar="insert",Vr="data",hr="delete",Kt="with",Oe="using",pe="default",Er="graph",fr="all",Se=".",Or="optional",ei="service",Ie="bind",Rt="UNDEF",at="minus",xt="union",es="filter",De=",",lt="a",ye="|",rr="/",Mt="^",Ct="?",Ir="+",ri="!",Ui="[",ti="]",At="||",ii="&&",br="=",wt="!=",Ue="<",ni=">",_r="<=",ar=">=",dr="in",rs="not",tr="-",ts="str",ut="lang",Wr="langmatches",Ei="datatype",Is="bound",Ks="iri",en="uri",Go="bnode",rn="rand",Ta="abs",Vt="ceil",Gi="floor",tn="round",Fo="concat",Vn="strlen",sn="ucase",oi="lcase",nn="encode_for_uri",Fi="contains",Do="strbefore",Bo="strstarts",on="strends",Be="strafter",q="year",ge="month",Le="day",vr="hours",qr="minutes",ze="seconds",Ae="timezone",ft="tz",vi="now",_t="uuid",He="struuid",mi="md5",is="sha1",La="sha256",ce="sha384",Qe="sha512",Sa="coalesce",ya="if",Po="strlang",Mo="strdt",jl="sameterm",Ye="isuri",Yf="isiri",zl="isblank",Vo="isliteral",xi="isnumeric",ql="regex",Kl="substr",_n="replace",Wn="exists",eu="count",Ra="sum",ru="min",tu="max",iu="avg",su="sample",Xf="group_concat",Jf="separator",_o="^^",Di="true",jf="false",Qt=":",an="_:",Ns="$",wa="@",Bi="'",bs='"',Ts="'''",Pi="''",ss='"""',Ls='""',Wo="\\",ln="#",un="_",fn="%",Oa="~",nu="&",ko=/^[^<>"{}|\^`\\\0- ]/,Ze=/^[0-9]/,Ua=/^[a-zA-Z]/,ns=/^[a-zA-Z0-9]/,ai=/^[eE]/,zf=/^[+\-]/,Ga=/^[^'\\\n\r]/,kn=/^[^"\\\n\r]/,$o=/^[^'\\]/,Ci=/^[^"\\]/,Fa=/^[tbnrf\\"']/,Mi=/^[ \t]/,Ho=/^[\r\n]/,Da=/^[^\r\n]/,pn=/^[A-Z]/,qf=/^[a-z]/,Kf=/^[\xC0-\xD6]/,ep=/^[\xD8-\xF6]/,rp=/^[\xF8-\u02FF]/,ou=/^[\u0370-\u037D]/,au=/^[\u037F-\u1FFF]/,tp=/^[\u200C-\u200D]/,ip=/^[\u2070-\u218F]/,sp=/^[\u2C00-\u2FEF]/,np=/^[\u3001-\uD7FF]/,lu=/^[\uF900-\uFDCF]/,op=/^[\uFDF0-\uFFFD]/,cn=/^[\xB7]/,os=/^[\u0300-\u036F]/,Ai=/^[\u203F-\u2040]/,ap=/^[A-F]/,lp=/^[a-f]/,up=M("BASE",!0),$n=M("PREFIX",!0),Kr=M("SELECT",!0),pt=M("DISTINCT",!0),uu=M("REDUCED",!0),ae=M("(",!1),Ss=M("AS",!0),le=M(")",!1),kr=M("*",!1),Hn=M("CONSTRUCT",!0),as=M("WHERE",!0),Ot=M("{",!1),Ut=M("}",!1),fu=M("DESCRIBE",!0),pu=M("ASK",!0),fp=M("FROM",!0),Vi=M("NAMED",!0),_i=M("GROUP",!0),hn=M("BY",!0),Ba=M("HAVING",!0),cu=M("ORDER",!0),Ii=M("ASC",!0),ys=M("DESC",!0),Pa=M("LIMIT",!0),pp=M("OFFSET",!0),Zo=M("VALUES",!0),Yt=M(";",!1),hu=M("LOAD",!0),ct=M("SILENT",!0),dn=M("INTO",!0),Ni=M("CLEAR",!0),du=M("DROP",!0),gu=M("CREATE",!0),cp=M("ADD",!0),Zn=M("TO",!0),hp=M("MOVE",!0),Eu=M("COPY",!0),Qo=M("INSERT",!0),Rs=M("DATA",!0),gn=M("DELETE",!0),vu=M("WITH",!0),Ma=M("USING",!0),En=M("DEFAULT",!0),ls=M("GRAPH",!0),Yo=M("ALL",!0),Xe=M(".",!1),mu=M("OPTIONAL",!0),Va=M("SERVICE",!0),_a=M("BIND",!0),xu=M("UNDEF",!1),Cu=M("MINUS",!0),Qn=M("UNION",!0),dp=M("FILTER",!0),We=M(",",!1),ws=M("a",!1),Xt=M("|",!1),Br=M("/",!1),us=M("^",!1),Os=M("?",!1),ht=M("+",!1),vn=M("!",!1),Us=M("[",!1),li=M("]",!1),Wi=M("||",!1),dt=M("&&",!1),Wt=M("=",!1),bi=M("!=",!1),fs=M("<",!1),Yn=M(">",!1),Xo=M("<=",!1),Gs=M(">=",!1),ps=M("IN",!0),Fs=M("NOT",!0),Pr=M("-",!1),gp=M("STR",!0),Wa=M("LANG",!0),Au=M("LANGMATCHES",!0),ka=M("DATATYPE",!0),$a=M("BOUND",!0),mn=M("IRI",!0),Jo=M("URI",!0),Iu=M("BNODE",!0),jo=M("RAND",!0),Ep=M("ABS",!0),vp=M("CEIL",!0),mp=M("FLOOR",!0),Ha=M("ROUND",!0),Za=M("CONCAT",!0),xn=M("STRLEN",!0),Xn=M("UCASE",!0),xp=M("LCASE",!0),zo=M("ENCODE_FOR_URI",!0),Nu=M("CONTAINS",!0),Jn=M("STRBEFORE",!0),bu=M("STRSTARTS",!0),Ds=M("STRENDS",!0),jn=M("STRAFTER",!0),Bs=M("YEAR",!0),zn=M("MONTH",!0),Cn=M("DAY",!0),Tu=M("HOURS",!0),Lu=M("MINUTES",!0),Su=M("SECONDS",!0),Cp=M("TIMEZONE",!0),Ps=M("TZ",!0),Ms=M("NOW",!0),Ap=M("UUID",!0),Ip=M("STRUUID",!0),Np=M("MD5",!0),bp=M("SHA1",!0),Tp=M("SHA256",!0),Lp=M("SHA384",!0),kt=M("SHA512",!0),et=M("COALESCE",!0),It=M("IF",!0),rt=M("STRLANG",!0),qn=M("STRDT",!0),Sp=M("sameTerm",!0),qo=M("isURI",!0),yp=M("isIRI",!0),Rp=M("isBLANK",!0),wp=M("isLITERAL",!0),Qa=M("isNUMERIC",!0),yu=M("REGEX",!0),Ya=M("SUBSTR",!0),Op=M("REPLACE",!0),Kn=M("EXISTS",!0),Xa=M("COUNT",!0),Ru=M("SUM",!0),wu=M("MIN",!0),Ja=M("MAX",!0),Ou=M("AVG",!0),eo=M("SAMPLE",!0),Up=M("GROUP_CONCAT",!0),Ko=M("SEPARATOR",!0),ki=M("^^",!1),Uu=M("true",!0),Gp=M("false",!0),ea=Ge(["<",">",'"',"{","}","|","^","`","\\",["\0"," "]],!0,!1),Tr=M(":",!1),lr=M("_:",!1),Ve=Ge([["0","9"]],!1,!1),Ti=M("$",!1),Li=M("@",!1),ra=Ge([["a","z"],["A","Z"]],!1,!1),$i=Ge([["a","z"],["A","Z"],["0","9"]],!1,!1),Gu=Ge(["e","E"],!1,!1),Fp=Ge(["+","-"],!1,!1),ui=M("'",!1),Vs=Ge(["'","\\",`
|
|
59
|
+
`,"\r"],!0,!1),cs=M('"',!1),ro=Ge(['"',"\\",`
|
|
60
|
+
`,"\r"],!0,!1),Si=M("'''",!1),ta=M("''",!1),ia=Ge(["'","\\"],!0,!1),ja=M('"""',!1),An=M('""',!1),to=Ge(['"',"\\"],!0,!1),sa=M("\\",!1),Dp=Ge(["t","b","n","r","f","\\",'"',"'"],!1,!1),Fu=Ge([" "," "],!1,!1),Bp=Ge(["\r",`
|
|
61
|
+
`],!1,!1),Pp=Ge(["\r",`
|
|
62
|
+
`],!0,!1),hs=M("#",!1),Du=Ge([["A","Z"]],!1,!1),Mp=Ge([["a","z"]],!1,!1),Vp=Ge([["\xC0","\xD6"]],!1,!1),Bu=Ge([["\xD8","\xF6"]],!1,!1),In=Ge([["\xF8","\u02FF"]],!1,!1),za=Ge([["\u0370","\u037D"]],!1,!1),na=Ge([["\u037F","\u1FFF"]],!1,!1),Pu=Ge([["\u200C","\u200D"]],!1,!1),qa=Ge([["\u2070","\u218F"]],!1,!1),Mu=Ge([["\u2C00","\u2FEF"]],!1,!1),_p=Ge([["\u3001","\uD7FF"]],!1,!1),Vu=Ge([["\uF900","\uFDCF"]],!1,!1),gt=Ge([["\uFDF0","\uFFFD"]],!1,!1),Nn=M("_",!1),bn=Ge(["\xB7"],!1,!1),Tn=Ge([["\u0300","\u036F"]],!1,!1),Ln=Ge([["\u203F","\u2040"]],!1,!1),ds=M("%",!1),oa=Ge([["A","F"]],!1,!1),_u=Ge([["a","f"]],!1,!1),Wu=M("~",!1),ku=M("&",!1),Sn=function(t,u){let o={};t.length?o={headers:t,...u}:o=u;let a=Object.entries(lh).map(([c,h])=>({pos:parseInt(c),text:h}));return a.length&&(o.comments=a),{"@context":"https://purl.org/sparql-formatter/context.jsonld",...o}},$u=function(t,u,o){let a={type:"Query"};return t&&(a.prologue=t),u.type==="SelectQuery"?a.selectQuery=u:u.type==="ConstructQuery"?a.constructQuery=u:u.type==="DescribeQuery"?a.describeQuery=u:u.type==="AskQuery"&&(a.askQuery=u),o&&(a.values=o),a},aa=function(t){if(t.length)return{type:"Prologue",decl:t}},Hu=function(t){return{type:"BaseDecl",iriref:t}},io=function(t,u){return{type:"PrefixDecl",pn_prefix:t,iriref:u}},Wp=function(t,u,o,a){return u.length&&(t.from=u),t={type:"SelectQuery",selectClause:t,whereClause:o,...a},t},yn=function(t,u,o,a){let c={type:"SubSelect",selectClause:t,whereClause:u,...o,location:Te()};return a&&(c.values=a),c},Zu=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},Qu=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},so=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},no=function(t,u,o){let a={type:"AskQuery"};return t.length&&(a.from=t),a={...a,where:u,...o,location:Te()},a},oo=function(t){return t},ao=function(t){return{graph:t,location:Te()}},Xu=function(t){return{namedGraph:t,location:Te()}},kp=function(t){return t.graphPattern||t},Ju=function(t,u,o,a){let c={};return t&&(c.group=t),u&&(c.having=u),o&&(c.orderBy=o),a&&(c.limitOffset=a),c},gs=function(t){return t},Rn=function(t){return t},lo=function(t){return t},$p=function(t,u){return u?{expressionType:"aliasedexpression",bracketted:!0,expression:t,as:u[2],location:Te()}:{bracketted:!0,...t}},ju=function(t){return t},Hp=function(t){return t},Zp=function(t){return t},Qp=function(t){return t},Gt=function(t,u){let o={};return t.toUpperCase()==="ASC"?o={asc:!0,...u}:t.toUpperCase()==="DESC"&&(o={desc:!0,...u}),o},zu=function(t){return t},Yp=function(t){let u=[t[0]];return t[1]&&u.push(t[1]),u},Xp=function(t){return{limit:parseInt(t.literal)}},Jp=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}},qp=function(t,u){return{type:"create",silent:t,destinyGraph:u}},Es=function(t,u,o){return{type:"add",silent:t,graphs:[u,o]}},uo=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]}},fo=function(t){return{type:"insertdata",insert:t}},Hi=function(t){return{type:"deletedata",delete:t}},Kp=function(t){return{type:"deletewhere",delete:t}},ec=function(t,u,o,a){let c={type:"modify"};return t&&(c.with=t[2]),u.length===3?(c.delete=u[0],u[2]&&(c.insert=u[2])):c.insert=u,o.length&&(c.using=o),c.where=a.graphPattern,c},wn=function(t){return t},rf=function(t){return t},tf=function(t){return t.length===3?{named:!0,iri:t[2]}:{iri:t}},sf=function(){return"default"},ua=function(t){return t},On=function(t){return t},Ka=function(t){return t},el=function(){return"default"},rl=function(){return"named"},rc=function(){return"all"},po=function(t){return t},nf=function(t){return t},tc=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()}},ic=function(t){return t},sc=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()}},co=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}},nc=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},oc=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},ac=function(t){return t},il=function(t){return{type:"MinusGraphPattern",minus:t.graphPattern||t,location:Te()}},ho=function(t,u){return u.length?{union:[t,...u],location:Te()}:t},go=function(t){return{type:"Filter",filter:t,location:Te()}},lc=function(t,u){return{functionRef:t,args:u.list,location:Te()}},cf=function(){return{list:[]}},uc=function(t,u,o){return{distinct:!!t,list:[u,...o]}},fc=function(){return[]},pc=function(t,u){return[t,...u]},cc=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()}},hc=function(t,u){return{subject:t,properties:u}},dc=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]},gc=function(t,u){return{subject:t,properties:u}},Ef=function(t,u){return{subject:t,properties:u}},Un=function(t,u,o){let a=[];return a.push({predicate:t,objects:u}),o.forEach(c=>{if(c[3]){let h=a.length-1,E=a[h].objects.length-1;n(a[h].predicate,c[3][0])?c[3][2].forEach(x=>{n(a[h].objects[E],x)||a[h].objects.push(x)}):a.push({predicate:c[3][0],objects:c[3][2]})}}),a},vf=function(t,u){return[t,...u]},pa=function(t,u){if(u.length){let o=[t];for(let a=0;a<u.length;a++)o.push(u[a][3]);return{alternative:o,location:Te()}}else return t},Ec=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},vc=function(t,u){return u&&(t.modifier=u),t},mc=function(t){return t.inverse=!0,t},Lr=function(){return{a:!0,location:Te()}},xc=function(t){return{bracketted:!0,...t}},nl=function(t){return{collection:t,location:Te()}},Eo=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},Cc=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}},Ac=function(t){return{expressionType:"unaryexpression",unaryexpression:"+",expression:t}},Gn=function(t){return{expressionType:"unaryexpression",unaryexpression:"-",expression:t}},Ic=function(t){return{expressionType:"atomic",value:t}},ha=function(t){return{expressionType:"atomic",value:t}},Nc=function(t){return{expressionType:"atomic",value:t}},Mr=function(t){return{expressionType:"atomic",value:t}},bc=function(t){return{bracketted:!0,...t}},Tc=function(t){return{expressionType:"builtincall",builtincall:"str",args:[t]}},Lc=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]}},L=function(t){return{expressionType:"builtincall",builtincall:"ceil",args:[t]}},R=function(t){return{expressionType:"builtincall",builtincall:"floor",args:[t]}},O=function(t){return{expressionType:"builtincall",builtincall:"round",args:[t]}},_=function(t){return{expressionType:"builtincall",builtincall:"CONCAT",args:t}},Q=function(t){return{expressionType:"builtincall",builtincall:"STRLEN",args:[t]}},re=function(t){return{expressionType:"builtincall",builtincall:"UCASE",args:[t]}},K=function(t){return{expressionType:"builtincall",builtincall:"LCASE",args:[t]}},oe=function(t){return{expressionType:"builtincall",builtincall:"ENCODE_FOR_URI",args:[t]}},fe=function(t,u){return{expressionType:"builtincall",builtincall:"CONTAINS",args:[t,u]}},he=function(t,u){return{expressionType:"builtincall",builtincall:"STRBEFORE",args:[t,u]}},me=function(t,u){return{expressionType:"builtincall",builtincall:"STRSTARTS",args:[t,u]}},Ce=function(t,u){return{expressionType:"builtincall",builtincall:"STRENDS",args:[t,u]}},xe=function(t,u){return{expressionType:"builtincall",builtincall:"STRAFTER",args:[t,u]}},be=function(t){return{expressionType:"builtincall",builtincall:"year",args:[t]}},Pe=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]}},tt=function(t){return{expressionType:"builtincall",builtincall:"seconds",args:[t]}},yr=function(t){return{expressionType:"builtincall",builtincall:"timezone",args:[t]}},$t=function(t){return{expressionType:"builtincall",builtincall:"tz",args:[t]}},Ft=function(){return{expressionType:"builtincall",builtincall:"now"}},$r=function(){return{expressionType:"builtincall",builtincall:"UUID"}},Dt=function(){return{expressionType:"builtincall",builtincall:"STRUUID"}},nt=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]}},Ur=function(t){return{expressionType:"builtincall",builtincall:"SHA384",args:[t]}},Bt=function(t){return{expressionType:"builtincall",builtincall:"SHA512",args:[t]}},Fn=function(t){return{expressionType:"builtincall",builtincall:"COALESCE",args:t}},vs=function(t,u,o){return{expressionType:"builtincall",builtincall:"IF",args:[t,u,o]}},Et=function(t,u){return{expressionType:"builtincall",builtincall:"STRLANG",args:[t,u]}},yi=function(t,u){return{expressionType:"builtincall",builtincall:"STRDT",args:[t,u]}},it=function(t,u){return{expressionType:"builtincall",builtincall:"sameTerm",args:[t,u]}},ul=function(t){return{expressionType:"builtincall",builtincall:"isURI",args:[t]}},Zi=function(t){return{expressionType:"builtincall",builtincall:"isBlank",args:[t]}},_s=function(t){return{expressionType:"builtincall",builtincall:"isLiteral",args:[t]}},Ws=function(t){return{expressionType:"builtincall",builtincall:"isNumeric",args:[t]}},Nt=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}},xd=function(t){return{exists:t.graphPattern||t}},Cd=function(t){return{notexists:t.graphPattern||t}},Ad=function(t,u){return{expressionType:"aggregate",aggregateType:"count",distinct:!!t,expression:u}},Id=function(t,u){return{expressionType:"aggregate",aggregateType:"sum",distinct:!!t,expression:u}},Nd=function(t,u){return{expressionType:"aggregate",aggregateType:"min",distinct:!!t,expression:u}},bd=function(t,u){return{expressionType:"aggregate",aggregateType:"max",distinct:!!t,expression:u}},Td=function(t,u){return{expressionType:"aggregate",aggregateType:"avg",distinct:!!t,expression:u}},Ld=function(t,u){return{expressionType:"aggregate",aggregateType:"sample",distinct:!!t,expression:u}},Sd=function(t,u,o){let a=null;return o?.length&&(a=o[7]),{expressionType:"aggregate",aggregateType:"group_concat",expression:u,separator:a,distinct:!!t}},yd=function(t,u){let o={expressionType:"irireforfunction",iriref:t};return u&&(o.args=u.list),o},Rd=function(t,u){return typeof u=="string"?t.lang=u:u&&(t.dataType=u[1]),t.location=Te(),t},wd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!0}},Od=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#boolean",literal:!1}},Ud=function(t){return{type:"IRIref",iriref:t,location:Te()}},Gd=function(t){return t},Fd=function(t){return{type:"PrefixedName",pn_prefix:t.pn_prefix,pn_local:t.pn_local,location:Te()}},Dd=function(t){return{type:"PrefixedName",pn_prefix:t,location:Te()}},Bd=function(t){return{blankNode:t,location:Te()}},Pd=function(){return{blankNode:"[]",location:Te()}},Md=function(t){return t.join("")},Vd=function(t){return t||""},_d=function(t,u){return{pn_prefix:t,pn_local:u}},Wd=function(){return Zr()},kd=function(t){return{type:"Var",varType:"VAR1",varname:t}},$d=function(t){return{type:"Var",varType:"VAR2",varname:t}},Hd=function(t,u){let o=t.join("");return u.length&&(o+="-"+u[0][1].join("")),o.toLowerCase()},Zd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#integer",literal:Zr()}},Qd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#decimal",literal:Zr()}},Yd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zr()}},Xd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zr()}},Jd=function(){return{dataType:"http://www.w3.org/2001/XMLSchema#double",literal:Zr()}},jd=function(t){return t.literal="+"+t.literal,t},zd=function(t){return t.literal="+"+t.literal,t},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{quote:"'",literal:t.join("")}},ig=function(t){return{quote:'"',literal:t.join("")}},sg=function(t){return{quote:"'''",literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},ng=function(t){return{quote:'"""',literal:t.map(u=>u[0]?u[0]+u[1]:u[1]).join("")}},og=function(){return Zr()},ag=function(){return Zr()},lg=function(){return lh[Te().start.offset]=Zr(),""},ug=function(){return Zr()},fg=function(){return Zr()},pg=function(){return Zr()},r=0,U=0,vo=[{line:1,column:1}],vt=0,pl=[],A=0,mo;if("startRule"in v){if(!(v.startRule in y))throw new Error(`Can't start parsing from rule "`+v.startRule+'".');w=y[v.startRule]}function Zr(){return i.substring(U,r)}function JA(){return U}function jA(){return{source:N,start:U,end:r}}function Te(){return ks(U,r)}function zA(t,u){throw u=u!==void 0?u:ks(U,r),yc([hg(t)],i.substring(U,r),u)}function qA(t,u){throw u=u!==void 0?u:ks(U,r),dg(t,u)}function M(t,u){return{type:"literal",text:t,ignoreCase:u}}function Ge(t,u,o){return{type:"class",parts:t,inverted:u,ignoreCase:o}}function KA(){return{type:"any"}}function cg(){return{type:"end"}}function hg(t){return{type:"other",description:t}}function Sc(t){var u=vo[t],o;if(u)return u;for(o=t-1;!vo[o];)o--;for(u=vo[o],u={line:u.line,column:u.column};o<t;)i.charCodeAt(o)===10?(u.line++,u.column=1):u.column++,o++;return vo[t]=u,u}function ks(t,u,o){var a=Sc(t),c=Sc(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<vt||(r>vt&&(vt=r,pl=[]),pl.push(t))}function dg(t,u){return new Xl(t,null,null,u)}function yc(t,u,o){return new Xl(Xl.buildMessage(t,u),t,u,o)}function Rc(){var t,u,o,a,c,h;for(t=r,u=[],o=sh();o!==e;)u.push(o),o=sh();for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=gg(),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 gg(){var t;return t=Eg(),t===e&&(t=_c()),t}function Eg(){var t,u,o,a,c;for(t=r,u=wc(),o=[],a=p();a!==e;)o.push(a),a=p();return a=vg(),a===e&&(a=xg(),a===e&&(a=Cg(),a===e&&(a=Ag()))),a!==e?(c=Vc(),U=t,t=$u(u,a,c)):(r=t,t=e),t}function wc(){var t,u,o;for(t=r,u=[],o=Oc(),o===e&&(o=Uc());o!==e;)u.push(o),o=Oc(),o===e&&(o=Uc());return U=t,u=aa(u),t=u,t}function Oc(){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(up)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Ol(),c!==e?(U=t,t=Hu(c)):(r=t,t=e)}else r=t,t=e;return t}function Uc(){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()===P?(o=i.substr(r,6),r+=6):(o=e,A===0&&C($n)),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=io(c,E)):(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;if(t=r,u=Gc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=mt();c!==e;)a.push(c),c=mt();for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=$s(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qi(),U=t,t=Wp(u,a,h,x)}else r=t,t=e}else r=t,t=e;return t}function mg(){var t,u,o,a,c,h,E;if(t=r,u=Gc(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=$s(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Qi(),E=Vc(),U=t,t=yn(u,a,h,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,W,ne,de,Ne,Re,er;if(t=r,i.substr(r,6).toLowerCase()===H?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Kr)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,8).toLowerCase()===Z?(a=i.substr(r,8),r+=8):(a=e,A===0&&C(pt)),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=sr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===40?(T=V,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(W=[],ne=p();ne!==e;)W.push(ne),ne=p();if(i.substr(r,2).toLowerCase()===J?(ne=i.substr(r,2),r+=2):(ne=e,A===0&&C(Ss)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=sr(),Ne!==e){for(Re=[],er=p();er!==e;)Re.push(er),er=p();i.charCodeAt(r)===41?(er=k,r++):(er=e,A===0&&C(le)),er!==e?(x=[x,T,S,F,W,ne,de,Ne,Re,er],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}if(E!==e)for(;E!==e;){for(h.push(E),E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(T=sr(),T!==e?(x=[x,T],E=x):(r=E,E=e),E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===40?(T=V,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(W=[],ne=p();ne!==e;)W.push(ne),ne=p();if(i.substr(r,2).toLowerCase()===J?(ne=i.substr(r,2),r+=2):(ne=e,A===0&&C(Ss)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(Ne=sr(),Ne!==e){for(Re=[],er=p();er!==e;)Re.push(er),er=p();i.charCodeAt(r)===41?(er=k,r++):(er=e,A===0&&C(le)),er!==e?(x=[x,T,S,F,W,ne,de,Ne,Re,er],E=x):(r=E,E=e)}else r=E,E=e}else r=E,E=e}else r=E,E=e}else r=E,E=e}}else h=e;h===e&&(i.charCodeAt(r)===42?(h=ee,r++):(h=e,A===0&&C(kr))),h!==e?(U=t,t=Zu(a,h)):(r=t,t=e)}else r=t,t=e;return t}function xg(){var t,u,o,a,c,h,E,x,T,S,F,W,ne,de;if(t=r,i.substr(r,9).toLowerCase()===X?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Hn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=qg(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=mt();E!==e;)h.push(E),E=mt();for(E=[],x=p();x!==e;)E.push(x),x=p();if(x=$s(),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Qi(),U=t,t=Qu(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()===X?(u=i.substr(r,9),r+=9):(u=e,A===0&&C(Hn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=mt();c!==e;)a.push(c),c=mt();for(c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===D?(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=B,r++):(x=e,A===0&&C(Ot)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();for(S=Xi(),S===e&&(S=null),F=[],W=p();W!==e;)F.push(W),W=p();if(i.charCodeAt(r)===125?(W=Y,r++):(W=e,A===0&&C(Ut)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();de=Qi(),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 Cg(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,8).toLowerCase()===z?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(fu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=ji(),c!==e)for(;c!==e;)a.push(c),c=ji();else a=e;if(a===e&&(i.charCodeAt(r)===42?(a=ee,r++):(a=e,A===0&&C(kr))),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();for(h=[],E=mt();E!==e;)h.push(E),E=mt();for(E=[],x=p();x!==e;)E.push(x),x=p();for(x=$s(),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=Qi(),U=t,t=so(a,h,x,S)}else r=t,t=e}else r=t,t=e;return t}function Ag(){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=mt();h!==e;)c.push(h),h=mt();for(h=[],E=p();E!==e;)h.push(E),E=p();if(E=$s(),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();T=Qi(),U=t,t=no(c,E,T)}else r=t,t=e}else r=t,t=e;return t}function mt(){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(fp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=Ig(),a===e&&(a=Ng()),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();U=t,t=oo(a)}else r=t,t=e}else r=t,t=e;return t}function Ig(){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=ao(o)):(r=t,t=e),t}function Ng(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===ue?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Vi)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=pr(),a!==e?(U=t,t=Xu(a)):(r=t,t=e)}else r=t,t=e;return t}function $s(){var t,u,o,a;for(t=r,i.substr(r,5).toLowerCase()===D?(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=st(),a!==e?(U=t,t=kp(a)):(r=t,t=e),t}function Qi(){var t,u,o,a,c;return t=r,u=bg(),u===e&&(u=null),o=Tg(),o===e&&(o=null),a=Lg(),a===e&&(a=null),c=Sg(),c===e&&(c=null),U=t,t=Ju(u,o,a,c),t}function bg(){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(_i)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,2).toLowerCase()===$e?(a=i.substr(r,2),r+=2):(a=e,A===0&&C(hn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=Fc(),E!==e)for(;E!==e;)h.push(E),E=Fc();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 Fc(){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=Rn(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=lo(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=V,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(Ss)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=sr(),S!==e?(x=[x,T,S],E=x):(r=E,E=e)}else r=E,E=e;for(E===e&&(E=null),x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===41?(T=k,r++):(T=e,A===0&&C(le)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=t,t=$p(c,E)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=sr(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();U=t,t=ju(o)}else r=t,t=e}}}return t}function Tg(){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(Ba)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=Dc(),c!==e)for(;c!==e;)a.push(c),c=Dc();else a=e;a!==e?(U=t,t=Hp(a)):(r=t,t=e)}else r=t,t=e;return t}function Dc(){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=Zp(u)}else r=t,t=e;return t}function Lg(){var t,u,o,a,c,h,E,x;if(t=r,i.substr(r,5).toLowerCase()===_e?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(cu)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,2).toLowerCase()===$e?(a=i.substr(r,2),r+=2):(a=e,A===0&&C(hn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=[],E=Bc(),E!==e)for(;E!==e;)h.push(E),E=Bc();else h=e;if(h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();U=t,t=Qp(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(ys))),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=Gt(u,a)}else r=t,t=e}else r=t,t=e;if(t===e)if(t=r,u=dl(),u===e&&(u=sr()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=t,t=zu(u)}else r=t,t=e;return t}function Sg(){var t,u,o,a;return t=r,u=r,o=Pc(),o!==e?(a=Mc(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e),u===e&&(u=r,o=Mc(),o!==e?(a=Pc(),a===e&&(a=null),o=[o,a],u=o):(r=u,u=e)),u!==e&&(U=t,u=Yp(u)),t=u,t}function Pc(){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(Pa)),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=Xp(a)}else r=t,t=e}else r=t,t=e;return t}function Mc(){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(pp)),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=Jp(a)}else r=t,t=e}else r=t,t=e;return t}function Vc(){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(Zo)),o!==e?(a=Xc(),a!==e?(o=[o,a],u=o):(r=u,u=e)):(r=u,u=e),u===e&&(u=null),U=t,u=qu(u),t=u,t}function _c(){var t,u,o,a,c,h,E,x,T,S;for(t=r,u=wc(),o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(c=yg(),c!==e){for(h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=_c(),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 yg(){var t;return t=Rg(),t===e&&(t=wg(),t===e&&(t=Og(),t===e&&(t=Gg(),t===e&&(t=Fg(),t===e&&(t=Dg(),t===e&&(t=Ug(),t===e&&(t=Bg(),t===e&&(t=Pg(),t===e&&(t=Mg(),t===e&&(t=Vg())))))))))),t}function Rg(){var t,u,o,a,c,h,E,x,T,S,F;if(t=r,i.substr(r,4).toLowerCase()===Xr?(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(ct)),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()===Lt?(T=i.substr(r,4),r+=4):(T=e,A===0&&C(dn)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=cl(),F!==e?(T=[T,S,F],x=T):(r=x,x=e)}else r=x,x=e;x===e&&(x=null),U=t,t=ef(a,h,x)}else r=t,t=e}else r=t,t=e;return t}function wg(){var t,u,o,a,c,h;if(t=r,i.substr(r,5).toLowerCase()===St?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ni)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(i.substr(r,6).toLowerCase()===Je?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(ct)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=$c(),h!==e?(U=t,t=jp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Og(){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(ct)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=$c(),h!==e?(U=t,t=zp(a,h)):(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,6).toLowerCase()===yt?(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(ct)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();h=cl(),h!==e?(U=t,t=qp(a,h)):(r=t,t=e)}else r=t,t=e;return t}function Gg(){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(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(ct)),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()===ot?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Zn)),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 Fg(){var t,u,o,a,c,h,E,x,T,S;if(t=r,i.substr(r,4).toLowerCase()===je?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(hp)),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(ct)),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()===ot?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Zn)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Yi(),S!==e?(U=t,t=uo(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()===Jr?(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(ct)),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()===ot?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(Zn)),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 Bg(){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(Qo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,4).toLowerCase()===Vr?(a=i.substr(r,4),r+=4):(a=e,A===0&&C(Rs)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Hc(),h!==e?(U=t,t=fo(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Pg(){var t,u,o,a,c;if(t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();i.substr(r,4).toLowerCase()===Vr?(a=i.substr(r,4),r+=4):(a=e,A===0&&C(Rs)),a!==e?(c=Hc(),c!==e?(U=t,t=Hi(c)):(r=t,t=e)):(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()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.substr(r,5).toLowerCase()===D?(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=Kp(h)):(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,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=_g(),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=Wc(),h===e&&(h=null),a=[a,c,h],o=a}else r=o,o=e;if(o===e&&(o=Wc()),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=kc();h!==e;)c.push(h),h=kc();for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.substr(r,5).toLowerCase()===D?(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=st(),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();U=t,t=ec(u,o,c,T)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function _g(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===hr?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(gn)),u!==e?(o=hl(),o!==e?(U=t,t=wn(o)):(r=t,t=e)):(r=t,t=e),t}function Wc(){var t,u,o;return t=r,i.substr(r,6).toLowerCase()===Ar?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Qo)),u!==e?(o=hl(),o!==e?(U=t,t=rf(o)):(r=t,t=e)):(r=t,t=e),t}function kc(){var t,u,o,a,c,h,E,x;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.substr(r,5).toLowerCase()===Oe?(o=i.substr(r,5),r+=5):(o=e,A===0&&C(Ma)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=pr(),c===e)if(c=r,i.substr(r,5).toLowerCase()===ue?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Vi)),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(En)),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=On(a)):(r=t,t=e)}else r=t,t=e;return t}function $c(){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(En)),u!==e&&(U=t,u=el()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===ue?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Vi)),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=rc()),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=B,r++):(o=e,A===0&&C(Ot)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=Zc(),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===125?(E=Y,r++):(E=e,A===0&&C(Ut)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();U=t,t=po(c)}else r=t,t=e}else r=t,t=e;return t}function Hc(){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=B,r++):(o=e,A===0&&C(Ot)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=Zc(),h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===125?(E=Y,r++):(E=e,A===0&&C(Ut)),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 Zc(){var t,u,o,a,c,h,E;for(t=r,u=Xi(),u===e&&(u=null),o=[],a=r,c=Qc(),c!==e?(i.charCodeAt(r)===46?(h=Se,r++):(h=e,A===0&&C(Xe)),h===e&&(h=null),E=Xi(),E===e&&(E=null),c=[c,h,E],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,c=Qc(),c!==e?(i.charCodeAt(r)===46?(h=Se,r++):(h=e,A===0&&C(Xe)),h===e&&(h=null),E=Xi(),E===e&&(E=null),c=[c,h,E],a=c):(r=a,a=e);return U=t,t=tc(u,o),t}function Qc(){var t,u,o,a,c,h,E,x,T,S,F,W,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=ji(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===123?(E=B,r++):(E=e,A===0&&C(Ot)),E!==e){for(x=[],T=p();T!==e;)x.push(T),T=p();for(T=Xi(),T===e&&(T=null),S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===125?(F=Y,r++):(F=e,A===0&&C(Ut)),F!==e){for(W=[],ne=p();ne!==e;)W.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 Xi(){var t,u,o,a,c,h,E;if(t=r,u=Kc(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=Xi(),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 st(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===123?(u=B,r++):(u=e,A===0&&C(Ot)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=mg(),a===e&&(a=Wg()),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ut)),h!==e?(U=t,t=ic(a)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function Wg(){var t,u,o,a,c,h,E,x,T,S;for(t=r,u=xo(),u===e&&(u=null),o=[],a=p();a!==e;)o.push(a),a=p();if(a=[],c=r,h=Yc(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(i.charCodeAt(r)===46?(x=Se,r++):(x=e,A===0&&C(Xe)),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=xo(),S===e&&(S=null),h=[h,E,x,T,S],c=h}else r=c,c=e;for(;c!==e;)if(a.push(c),c=r,h=Yc(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();for(i.charCodeAt(r)===46?(x=Se,r++):(x=e,A===0&&C(Xe)),x===e&&(x=null),T=[],S=p();S!==e;)T.push(S),S=p();S=xo(),S===e&&(S=null),h=[h,E,x,T,S],c=h}else r=c,c=e;return U=t,t=sc(u,a),t}function xo(){var t,u,o,a,c,h,E;if(t=r,u=eE(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=xo(),E===e&&(E=null),a=[a,c,h,E],o=a}else r=o,o=e;o===e&&(o=null),U=t,t=co(u,o)}else r=t,t=e;return t}function Yc(){var t;return t=jg(),t===e&&(t=kg(),t===e&&(t=Jg(),t===e&&(t=$g(),t===e&&(t=Hg(),t===e&&(t=zg(),t===e&&(t=Zg(),t===e&&(t=Qg()))))))),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,8).toLowerCase()===Or?(o=i.substr(r,8),r+=8):(o=e,A===0&&C(mu)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=st(),c!==e?(U=t,t=af(c)):(r=t,t=e)}else r=t,t=e;return t}function $g(){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=ji(),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=st(),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 Hg(){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(Va)),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(ct)),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();if(h=ji(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=st(),x!==e?(U=t,t=nc(a,h,x)):(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,W,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(_a)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===40?(c=V,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(Ss)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();if(F=sr(),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();i.charCodeAt(r)===41?(ne=k,r++):(ne=e,A===0&&C(le)),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 Qg(){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(Zo)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=Xc(),c!==e?(U=t,t=uf(c)):(r=t,t=e)}else r=t,t=e;return t}function Xc(){var t;return t=Yg(),t===e&&(t=Xg()),t}function Yg(){var t,u,o,a,c,h,E,x;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=sr(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===123?(c=B,r++):(c=e,A===0&&C(Ot)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();for(E=[],x=Co();x!==e;)E.push(x),x=Co();i.charCodeAt(r)===125?(x=Y,r++):(x=e,A===0&&C(Ut)),x!==e?(U=t,t=oc(o,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,T,S,F;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(i.charCodeAt(r)===40?(o=V,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();for(c=[],h=sr();h!==e;)c.push(h),h=sr();if(i.charCodeAt(r)===41?(h=k,r++):(h=e,A===0&&C(le)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===123?(x=B,r++):(x=e,A===0&&C(Ot)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();for(S=[],F=Jc();F!==e;)S.push(F),F=Jc();i.charCodeAt(r)===125?(F=Y,r++):(F=e,A===0&&C(Ut)),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 Jc(){var t,u,o,a,c,h,E;if(t=r,i.charCodeAt(r)===40?(u=V,r++):(u=e,A===0&&C(ae)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=[],c=Co();c!==e;)a.push(c),c=Co();if(i.charCodeAt(r)===41?(c=k,r++):(c=e,A===0&&C(le)),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 Co(){var t,u,o,a;if(t=r,u=pr(),u===e&&(u=Ll(),u===e&&(u=Sl(),u===e&&(u=wl(),u===e&&(i.substr(r,5)===Rt?(u=Rt,r+=5):(u=e,A===0&&C(xu)))))),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();U=t,t=ac(u)}else r=t,t=e;return t}function Jg(){var t,u,o,a;if(t=r,i.substr(r,5).toLowerCase()===at?(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=st(),a!==e?(U=t,t=il(a)):(r=t,t=e)}else r=t,t=e;return t}function jg(){var t,u,o,a,c,h,E,x;if(t=r,u=st(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,5).toLowerCase()===xt?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Qn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=st(),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()===xt?(h=i.substr(r,5),r+=5):(h=e,A===0&&C(Qn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=st(),x!==e?a=x:(r=a,a=e)}else r=a,a=e}U=t,t=ho(u,o)}else r=t,t=e;return t}function zg(){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(dp)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=dl(),c!==e?(U=t,t=go(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=lc(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,W;if(t=r,u=jt(),u!==e&&(U=t,u=cf()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=V,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()===Z?(a=i.substr(r,8),r+=8):(a=e,A===0&&C(pt)),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=De,r++):(S=e,A===0&&C(We)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();W=se(),W!==e?T=W:(r=T,T=e)}else r=T,T=e;for(;T!==e;)if(x.push(T),T=r,i.charCodeAt(r)===44?(S=De,r++):(S=e,A===0&&C(We)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();W=se(),W!==e?T=W:(r=T,T=e)}else r=T,T=e;i.charCodeAt(r)===41?(T=k,r++):(T=e,A===0&&C(le)),T!==e?(U=t,t=uc(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,W;if(t=r,u=jt(),u!==e&&(U=t,u=fc()),t=u,t===e)if(t=r,i.charCodeAt(r)===40?(u=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();E=S}else r=E,E=e}else r=E,E=e;i.charCodeAt(r)===41?(E=k,r++):(E=e,A===0&&C(le)),E!==e?(U=t,t=pc(a,h)):(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;if(t=r,i.charCodeAt(r)===123?(u=B,r++):(u=e,A===0&&C(Ot)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();for(a=qc(),a===e&&(a=null),c=[],h=p();h!==e;)c.push(h),h=p();i.charCodeAt(r)===125?(h=Y,r++):(h=e,A===0&&C(Ut)),h!==e?(U=t,t=cc(a)):(r=t,t=e)}else r=t,t=e;return t}function qc(){var t,u,o,a,c,h,E;if(t=r,u=Kc(),u!==e){for(o=r,a=[],c=p();c!==e;)a.push(c),c=p();if(i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();E=qc(),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 Kc(){var t,u,o,a,c;if(t=r,u=No(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=gl(),a!==e?(U=t,t=hc(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=Kg(),U=t,t=dc(o,c)}else r=t,t=e}return t}function Kg(){var t;return t=gl(),t===e&&(t=null),t}function gl(){var t,u,o,a,c,h,E,x,T,S,F,W,ne;if(t=r,u=El(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=vl(),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=El(),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();ne=vl(),ne!==e?(F=[F,W,ne],S=F):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=El(),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();ne=vl(),ne!==e?(F=[F,W,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=ji(),t===e&&(t=r,i.charCodeAt(r)===97?(u=lt,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=Hs(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=De,r++):(h=e,A===0&&C(We)),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=De,r++):(h=e,A===0&&C(We)),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=gf(u,o)}else r=t,t=e;return t}function eE(){var t,u,o,a,c;if(t=r,u=No(),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=ml(),a!==e?(U=t,t=gc(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=th(),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();c=rE(),U=t,t=Ef(o,c)}else r=t,t=e}return t}function rE(){var t;return t=ml(),t===e&&(t=null),t}function ml(){var t,u,o,a,c,h,E,x,T,S,F,W,ne;if(t=r,u=Ao(),u===e&&(u=sr()),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(a=xl(),a!==e){for(c=[],h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=Ao(),F===e&&(F=sr()),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();ne=xl(),ne!==e?(F=[F,W,ne],S=F):(r=S,S=e)}else r=S,S=e;S===e&&(S=null),E=[E,x,T,S],h=E}else r=h,h=e;for(;h!==e;){for(c.push(h),h=r,E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===59?(x=ur,r++):(x=e,A===0&&C(Yt)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=r,F=Ao(),F===e&&(F=sr()),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();ne=xl(),ne!==e?(F=[F,W,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=Un(u,a,c)}else r=t,t=e}else r=t,t=e;return t}function xl(){var t,u,o,a,c,h,E,x;if(t=r,u=Zs(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===44?(h=De,r++):(h=e,A===0&&C(We)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Zs(),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=De,r++):(h=e,A===0&&C(We)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Zs(),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 Ao(){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=ye,r++):(h=e,A===0&&C(Xt)),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=ye,r++):(h=e,A===0&&C(Xt)),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(Br)),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(Br)),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=Ec(u,o)}else r=t,t=e;return t}function eh(){var t,u,o;return t=r,u=iE(),u!==e?(o=tE(),o===e&&(o=null),U=t,t=vc(u,o)):(r=t,t=e),t}function Al(){var t,u,o;return t=eh(),t===e&&(t=r,i.charCodeAt(r)===94?(u=Mt,r++):(u=e,A===0&&C(us)),u!==e?(o=eh(),o!==e?(U=t,t=mc(o)):(r=t,t=e)):(r=t,t=e)),t}function tE(){var t;return i.charCodeAt(r)===63?(t=Ct,r++):(t=e,A===0&&C(Os)),t===e&&(i.charCodeAt(r)===42?(t=ee,r++):(t=e,A===0&&C(kr)),t===e&&(i.charCodeAt(r)===43?(t=Ir,r++):(t=e,A===0&&C(ht)))),t}function iE(){var t,u,o,a;return t=pr(),t===e&&(t=r,i.charCodeAt(r)===97?(u=lt,r++):(u=e,A===0&&C(ws)),u!==e&&(U=t,u=Lr()),t=u,t===e&&(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(vn)),u!==e?(o=sE(),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t===e&&(t=r,i.charCodeAt(r)===40?(u=V,r++):(u=e,A===0&&C(ae)),u!==e?(o=Ao(),o!==e?(i.charCodeAt(r)===41?(a=k,r++):(a=e,A===0&&C(le)),a!==e?(U=t,t=xc(o)):(r=t,t=e)):(r=t,t=e)):(r=t,t=e)))),t}function sE(){var t,u,o,a,c,h,E,x;if(t=Io(),t===e)if(t=r,i.charCodeAt(r)===40?(u=V,r++):(u=e,A===0&&C(ae)),u!==e){if(o=r,a=Io(),a!==e){for(c=[],h=r,i.charCodeAt(r)===124?(E=ye,r++):(E=e,A===0&&C(Xt)),E!==e?(x=Io(),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=ye,r++):(E=e,A===0&&C(Xt)),E!==e?(x=Io(),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=k,r++):(a=e,A===0&&C(le)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function Io(){var t,u,o;return t=pr(),t===e&&(i.charCodeAt(r)===97?(t=lt,r++):(t=e,A===0&&C(ws)),t===e&&(t=r,i.charCodeAt(r)===94?(u=Mt,r++):(u=e,A===0&&C(us)),u!==e?(o=pr(),o===e&&(i.charCodeAt(r)===97?(o=lt,r++):(o=e,A===0&&C(ws))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e))),t}function rh(){var t,u;return t=r,u=aE(),u!==e&&(U=t,u=nl(u)),t=u,t===e&&(t=nE()),t}function nE(){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=Eo(c)}else r=t,t=e}else r=t,t=e}else r=t,t=e;return t}function th(){var t,u;return t=r,u=lE(),u!==e&&(U=t,u=fi(u)),t=u,t===e&&(t=oE()),t}function oE(){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 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)===40?(o=V,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=k,r++):(E=e,A===0&&C(le)),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 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)===40?(o=V,r++):(o=e,A===0&&C(ae)),o!==e){for(a=[],c=p();c!==e;)a.push(c),c=p();if(c=[],h=Zs(),h!==e)for(;h!==e;)c.push(h),h=Zs();else c=e;if(c!==e){for(h=[],E=p();E!==e;)h.push(E),E=p();if(i.charCodeAt(r)===41?(E=k,r++):(E=e,A===0&&C(le)),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 Hs(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=No(),o===e&&(o=rh()),o!==e?(U=t,t=xf(o)):(r=t,t=e),t}function Zs(){var t,u,o;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();return o=No(),o===e&&(o=th()),o!==e?(U=t,t=Cf(o)):(r=t,t=e),t}function No(){var t;return t=sr(),t===e&&(t=uE()),t}function ji(){var t;return t=sr(),t===e&&(t=pr()),t}function sr(){var t,u,o,a,c;for(t=r,u=[],o=p();o!==e;)u.push(o),o=p();if(o=IE(),o===e&&(o=NE()),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 uE(){var t;return t=pr(),t===e&&(t=Ll(),t===e&&(t=Sl(),t===e&&(t=wl(),t===e&&(t=xE(),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)===At?(h=At,r+=2):(h=e,A===0&&C(Wi)),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)===At?(h=At,r+=2):(h=e,A===0&&C(Wi)),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(dt)),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(dt)),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=Cc(u,o)}else r=t,t=e;return t}function Nl(){var t,u,o,a,c,h,E,x,T,S;if(t=r,u=Gr(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===61?(h=br,r++):(h=e,A===0&&C(Wt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===wt?(h=wt,r+=2):(h=e,A===0&&C(bi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===60?(h=Ue,r++):(h=e,A===0&&C(fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,A===0&&C(Yn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===_r?(h=_r,r+=2):(h=e,A===0&&C(Xo)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,A===0&&C(Gs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,A===0&&C(ps)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ji(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,3).toLowerCase()===rs?(h=i.substr(r,3),r+=3):(h=e,A===0&&C(Fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ps)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Ji(),S!==e?(c=[c,h,E,x,T,S],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===61?(h=br,r++):(h=e,A===0&&C(Wt)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===wt?(h=wt,r+=2):(h=e,A===0&&C(bi)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===60?(h=Ue,r++):(h=e,A===0&&C(fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===62?(h=ni,r++):(h=e,A===0&&C(Yn)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===_r?(h=_r,r+=2):(h=e,A===0&&C(Xo)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2)===ar?(h=ar,r+=2):(h=e,A===0&&C(Gs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Gr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,2).toLowerCase()===dr?(h=i.substr(r,2),r+=2):(h=e,A===0&&C(ps)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Ji(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.substr(r,3).toLowerCase()===rs?(h=i.substr(r,3),r+=3):(h=e,A===0&&C(Fs)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();if(i.substr(r,2).toLowerCase()===dr?(x=i.substr(r,2),r+=2):(x=e,A===0&&C(ps)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();S=Ji(),S!==e?(c=[c,h,E,x,T,S],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e}}}}}}}}U=t,t=ll(u,o)}else r=t,t=e;return t}function Gr(){var t,u,o,a,c,h,E,x,T,S,F;if(t=r,u=Qs(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===43?(h=Ir,r++):(h=e,A===0&&C(ht)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qs(),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(Pr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qs(),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=yl(),c===e&&(c=Rl()),c!==e){for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(kr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Br)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(kr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Br)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}c=[c,h],a=c}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===43?(h=Ir,r++):(h=e,A===0&&C(ht)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qs(),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(Pr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Qs(),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=yl(),c===e&&(c=Rl()),c!==e){for(h=[],E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(kr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Br)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}for(;E!==e;){for(h.push(E),E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===42?(T=ee,r++):(T=e,A===0&&C(kr)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e;if(E===e){for(E=r,x=[],T=p();T!==e;)x.push(T),T=p();if(i.charCodeAt(r)===47?(T=rr,r++):(T=e,A===0&&C(Br)),T!==e){for(S=[],F=p();F!==e;)S.push(F),F=p();F=Fr(),F!==e?(x=[x,T,S,F],E=x):(r=E,E=e)}else r=E,E=e}}c=[c,h],a=c}else r=a,a=e}}U=t,t=If(u,o)}else r=t,t=e;return t}function Qs(){var t,u,o,a,c,h,E,x;if(t=r,u=Fr(),u!==e){for(o=[],a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===42?(h=ee,r++):(h=e,A===0&&C(kr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Br)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e}for(;a!==e;){for(o.push(a),a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===42?(h=ee,r++):(h=e,A===0&&C(kr)),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();x=Fr(),x!==e?(c=[c,h,E,x],a=c):(r=a,a=e)}else r=a,a=e;if(a===e){for(a=r,c=[],h=p();h!==e;)c.push(h),h=p();if(i.charCodeAt(r)===47?(h=rr,r++):(h=e,A===0&&C(Br)),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}}U=t,t=gr(u,o)}else r=t,t=e;return t}function Fr(){var t,u,o,a;if(t=r,i.charCodeAt(r)===33?(u=ri,r++):(u=e,A===0&&C(vn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=bo(),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=Ir,r++):(u=e,A===0&&C(ht)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=bo(),a!==e?(U=t,t=Ac(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(Pr)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=bo(),a!==e?(U=t,t=Gn(a)):(r=t,t=e)}else r=t,t=e;t===e&&(t=bo())}}return t}function bo(){var t,u;return t=bl(),t===e&&(t=Tl(),t===e&&(t=EE(),t===e&&(t=r,u=Ll(),u!==e&&(U=t,u=Ic(u)),t=u,t===e&&(t=r,u=Sl(),u!==e&&(U=t,u=ha(u)),t=u,t===e&&(t=r,u=wl(),u!==e&&(U=t,u=Nc(u)),t=u,t===e&&(t=r,u=sr(),u!==e&&(U=t,u=Mr(u)),t=u)))))),t}function bl(){var t,u,o,a,c,h;if(t=r,i.charCodeAt(r)===40?(u=V,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=k,r++):(h=e,A===0&&C(le)),h!==e?(U=t,t=bc(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,W,ne,de,Ne,Re;if(t=gE(),t===e){if(t=r,i.substr(r,3).toLowerCase()===ts?(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=V,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=k,r++):(x=e,A===0&&C(le)),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,4).toLowerCase()===ut?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Wa)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Lc(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,11).toLowerCase()===Wr?(u=i.substr(r,11),r+=11):(u=e,A===0&&C(Au)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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=V,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=k,r++):(x=e,A===0&&C(le)),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($a)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,r++):(a=e,A===0&&C(ae)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();if(h=sr(),h!==e){for(E=[],x=p();x!==e;)E.push(x),x=p();i.charCodeAt(r)===41?(x=k,r++):(x=e,A===0&&C(le)),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()===Ks?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(mn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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()===en?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Jo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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=V,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=k,r++):(T=e,A===0&&C(le)),T!==e?(c=[c,h,E,x,T],a=c):(r=a,a=e)}else r=a,a=e}else r=a,a=e;a===e&&(a=jt()),a!==e?(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()===rn?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(jo)),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(Ep)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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()===Vt?(u=i.substr(r,4),r+=4):(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=V,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=k,r++):(x=e,A===0&&C(le)),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()===Gi?(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=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=R(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,5).toLowerCase()===tn?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Ha)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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(Za)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ji(),a!==e?(U=t,t=_(a)):(r=t,t=e)}else r=t,t=e;if(t===e&&(t=pE(),t===e)){if(t=r,i.substr(r,6).toLowerCase()===Vn?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(xn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Q(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e&&(t=cE(),t===e)){if(t=r,i.substr(r,5).toLowerCase()===sn?(u=i.substr(r,5),r+=5):(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=V,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=k,r++):(x=e,A===0&&C(le)),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(xp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=K(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,14).toLowerCase()===nn?(u=i.substr(r,14),r+=14):(u=e,A===0&&C(zo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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()===Do?(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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()===Bo?(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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()===on?(u=i.substr(r,7),r+=7):(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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()===Be?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(jn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==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()===q?(u=i.substr(r,4),r+=4):(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=V,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=k,r++):(x=e,A===0&&C(le)),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(zn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Pe(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()===Le?(u=i.substr(r,3),r+=3):(u=e,A===0&&C(Cn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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=V,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=k,r++):(x=e,A===0&&C(le)),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()===qr?(u=i.substr(r,7),r+=7):(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=V,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=k,r++):(x=e,A===0&&C(le)),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()===ze?(u=i.substr(r,7),r+=7):(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=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=tt(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(Cp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=yr(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()===ft?(u=i.substr(r,2),r+=2):(u=e,A===0&&C(Ps)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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=Ft()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,4).toLowerCase()===_t?(u=i.substr(r,4),r+=4):(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=$r()):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,7).toLowerCase()===He?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(Ip)),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,3).toLowerCase()===mi?(u=i.substr(r,3),r+=3):(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=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=nt(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(bp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),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()===La?(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=V,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=k,r++):(x=e,A===0&&C(le)),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(Lp)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Ur(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;if(t===e){if(t=r,i.substr(r,6).toLowerCase()===Qe?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(kt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Bt(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()===Sa?(u=i.substr(r,8),r+=8):(u=e,A===0&&C(et)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=Ji(),a!==e?(U=t,t=Fn(a)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,i.substr(r,2).toLowerCase()===ya?(u=i.substr(r,2),r+=2):(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();if(i.charCodeAt(r)===44?(W=De,r++):(W=e,A===0&&C(We)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=se(),de!==e){for(Ne=[],Re=p();Re!==e;)Ne.push(Re),Re=p();i.charCodeAt(r)===41?(Re=k,r++):(Re=e,A===0&&C(le)),Re!==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()===Po?(u=i.substr(r,7),r+=7):(u=e,A===0&&C(rt)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==e?(U=t,t=Et(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(qn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==e?(U=t,t=yi(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()===jl?(u=i.substr(r,8),r+=8):(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();i.charCodeAt(r)===41?(W=k,r++):(W=e,A===0&&C(le)),W!==e?(U=t,t=it(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()===Yf?(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=V,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=k,r++):(x=e,A===0&&C(le)),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()===zl?(u=i.substr(r,7),r+=7):(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=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Zi(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()===Vo?(u=i.substr(r,9),r+=9):(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=V,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=k,r++):(x=e,A===0&&C(le)),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,9).toLowerCase()===xi?(u=i.substr(r,9),r+=9):(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=V,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=k,r++):(x=e,A===0&&C(le)),x!==e?(U=t,t=Ws(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e}else r=t,t=e;t===e&&(t=fE(),t===e&&(t=hE(),t===e&&(t=dE())))}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}return t}function fE(){var t,u,o,a,c,h,E,x,T,S,F,W,ne,de,Ne;if(t=r,i.substr(r,5).toLowerCase()===ql?(u=i.substr(r,5),r+=5):(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();if(W=r,i.charCodeAt(r)===44?(ne=De,r++):(ne=e,A===0&&C(We)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();Ne=se(),Ne!==e?(ne=[ne,de,Ne],W=ne):(r=W,W=e)}else r=W,W=e;for(W===e&&(W=null),ne=[],de=p();de!==e;)ne.push(de),de=p();i.charCodeAt(r)===41?(de=k,r++):(de=e,A===0&&C(le)),de!==e?(U=t,t=Nt(h,S,W)):(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 pE(){var t,u,o,a,c,h,E,x,T,S,F,W,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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();if(W=r,i.charCodeAt(r)===44?(ne=De,r++):(ne=e,A===0&&C(We)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();Ne=se(),Ne!==e?(ne=[ne,de,Ne],W=ne):(r=W,W=e)}else r=W,W=e;for(W===e&&(W=null),ne=[],de=p();de!==e;)ne.push(de),de=p();i.charCodeAt(r)===41?(de=k,r++):(de=e,A===0&&C(le)),de!==e?(U=t,t=Dn(h,S,W)):(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 cE(){var t,u,o,a,c,h,E,x,T,S,F,W,ne,de,Ne,Re,er,Ht,Ml;if(t=r,i.substr(r,7).toLowerCase()===_n?(u=i.substr(r,7),r+=7):(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=V,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=De,r++):(x=e,A===0&&C(We)),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(S=se(),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();if(i.charCodeAt(r)===44?(W=De,r++):(W=e,A===0&&C(We)),W!==e){for(ne=[],de=p();de!==e;)ne.push(de),de=p();if(de=se(),de!==e){for(Ne=[],Re=p();Re!==e;)Ne.push(Re),Re=p();if(Re=r,i.charCodeAt(r)===44?(er=De,r++):(er=e,A===0&&C(We)),er!==e){for(Ht=[],Ml=p();Ml!==e;)Ht.push(Ml),Ml=p();Ml=se(),Ml!==e?(er=[er,Ht,Ml],Re=er):(r=Re,Re=e)}else r=Re,Re=e;for(Re===e&&(Re=null),er=[],Ht=p();Ht!==e;)er.push(Ht),Ht=p();i.charCodeAt(r)===41?(Ht=k,r++):(Ht=e,A===0&&C(le)),Ht!==e?(U=t,t=fl(h,S,de,Re)):(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 hE(){var t,u,o,a;if(t=r,i.substr(r,6).toLowerCase()===Wn?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(Kn)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();a=st(),a!==e?(U=t,t=xd(a)):(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).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()===Wn?(a=i.substr(r,6),r+=6):(a=e,A===0&&C(Kn)),a!==e){for(c=[],h=p();h!==e;)c.push(h),h=p();h=st(),h!==e?(U=t,t=Cd(h)):(r=t,t=e)}else r=t,t=e}else r=t,t=e;return t}function gE(){var t,u,o,a,c,h,E,x,T,S,F,W,ne,de,Ne,Re,er;if(t=r,i.substr(r,5).toLowerCase()===eu?(u=i.substr(r,5),r+=5):(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=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(i.charCodeAt(r)===42?(x=ee,r++):(x=e,A===0&&C(kr)),x===e&&(x=se()),x!==e){for(T=[],S=p();S!==e;)T.push(S),S=p();if(i.charCodeAt(r)===41?(S=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();U=t,t=Ad(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()===Ra?(u=i.substr(r,3),r+=3):(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=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),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=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();U=t,t=Id(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=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),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=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=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()===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=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),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=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=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()===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=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),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=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=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,6).toLowerCase()===su?(u=i.substr(r,6),r+=6):(u=e,A===0&&C(eo)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),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=k,r++):(S=e,A===0&&C(le)),S!==e){for(F=[],W=p();W!==e;)F.push(W),W=p();U=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,12).toLowerCase()===Xf?(u=i.substr(r,12),r+=12):(u=e,A===0&&C(Up)),u!==e){for(o=[],a=p();a!==e;)o.push(a),a=p();if(i.charCodeAt(r)===40?(a=V,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()===Z?(h=i.substr(r,8),r+=8):(h=e,A===0&&C(pt)),h===e&&(h=null),E=[],x=p();x!==e;)E.push(x),x=p();if(x=se(),x!==e){for(T=r,S=[],F=p();F!==e;)S.push(F),F=p();if(i.charCodeAt(r)===59?(F=ur,r++):(F=e,A===0&&C(Yt)),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();if(i.substr(r,9).toLowerCase()===Jf?(ne=i.substr(r,9),r+=9):(ne=e,A===0&&C(Ko)),ne!==e){for(de=[],Ne=p();Ne!==e;)de.push(Ne),Ne=p();if(i.charCodeAt(r)===61?(Ne=br,r++):(Ne=e,A===0&&C(Wt)),Ne!==e){for(Re=[],er=p();er!==e;)Re.push(er),er=p();er=ih(),er!==e?(S=[S,F,W,ne,de,Ne,Re,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=k,r++):(F=e,A===0&&C(le)),F!==e){for(W=[],ne=p();ne!==e;)W.push(ne),ne=p();U=t,t=Sd(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 EE(){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=yd(u,a)}else r=t,t=e;return t}function Ll(){var t,u,o,a,c;return t=r,u=ih(),u!==e?(o=bE(),o===e&&(o=r,i.substr(r,2)===_o?(a=_o,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=Rd(u,o)):(r=t,t=e),t}function Sl(){var t;return t=vE(),t===e&&(t=yl(),t===e&&(t=Rl())),t}function vE(){var t;return t=Fl(),t===e&&(t=Gl(),t===e&&(t=Ys())),t}function yl(){var t;return t=SE(),t===e&&(t=LE(),t===e&&(t=TE())),t}function Rl(){var t;return t=wE(),t===e&&(t=RE(),t===e&&(t=yE())),t}function wl(){var t,u;return t=r,i.substr(r,4).toLowerCase()===Di?(u=i.substr(r,4),r+=4):(u=e,A===0&&C(Uu)),u!==e&&(U=t,u=wd()),t=u,t===e&&(t=r,i.substr(r,5).toLowerCase()===jf?(u=i.substr(r,5),r+=5):(u=e,A===0&&C(Gp)),u!==e&&(U=t,u=Od()),t=u),t}function ih(){var t;return t=GE(),t===e&&(t=FE(),t===e&&(t=OE(),t===e&&(t=UE()))),t}function pr(){var t,u;return t=r,u=Ol(),u!==e&&(U=t,u=Ud(u)),t=u,t===e&&(t=r,u=mE(),u!==e&&(U=t,u=Gd(u)),t=u),t}function mE(){var t,u;return t=r,u=CE(),u!==e&&(U=t,u=Fd(u)),t=u,t===e&&(t=r,u=Ul(),u!==e&&(U=t,u=Dd(u)),t=u),t}function xE(){var t,u;return t=r,u=AE(),u!==e&&(U=t,u=Bd(u)),t=u,t===e&&(t=r,u=BE(),u!==e&&(U=t,u=Pd()),t=u),t}function Ol(){var t,u,o,a;if(t=r,i.charCodeAt(r)===60?(u=Ue,r++):(u=e,A===0&&C(fs)),u!==e){for(o=[],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(Yn)),a!==e?(U=t,t=Md(o)):(r=t,t=e)}else r=t,t=e;return t}function Ul(){var t,u,o;return t=r,u=PE(),u===e&&(u=null),i.charCodeAt(r)===58?(o=Qt,r++):(o=e,A===0&&C(Tr)),o!==e?(U=t,t=Vd(u)):(r=t,t=e),t}function CE(){var t,u,o;return t=r,u=Ul(),u!==e?(o=ME(),o!==e?(U=t,t=_d(u,o)):(r=t,t=e)):(r=t,t=e),t}function AE(){var t,u,o,a,c,h,E;if(t=r,i.substr(r,2)===an?(u=an,r+=2):(u=e,A===0&&C(lr)),u!==e)if(o=zi(),o===e&&(Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve))),o!==e){for(a=[],c=Qr(),c===e&&(c=r,i.charCodeAt(r)===46?(h=Se,r++):(h=e,A===0&&C(Xe)),h!==e?(E=Qr(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));c!==e;)a.push(c),c=Qr(),c===e&&(c=r,i.charCodeAt(r)===46?(h=Se,r++):(h=e,A===0&&C(Xe)),h!==e?(E=Qr(),E!==e?(h=[h,E],c=h):(r=c,c=e)):(r=c,c=e));U=t,t=Wd()}else r=t,t=e;else r=t,t=e;return t}function IE(){var t,u,o;return t=r,i.charCodeAt(r)===63?(u=Ct,r++):(u=e,A===0&&C(Os)),u!==e?(o=oh(),o!==e?(U=t,t=kd(o)):(r=t,t=e)):(r=t,t=e),t}function NE(){var t,u,o;return t=r,i.charCodeAt(r)===36?(u=Ns,r++):(u=e,A===0&&C(Ti)),u!==e?(o=oh(),o!==e?(U=t,t=$d(o)):(r=t,t=e)):(r=t,t=e),t}function bE(){var t,u,o,a,c,h,E,x;if(t=r,i.charCodeAt(r)===64?(u=wa,r++):(u=e,A===0&&C(Li)),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(Pr)),h!==e){if(E=[],ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C($i)),x!==e)for(;x!==e;)E.push(x),ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C($i));else E=e;E!==e?(h=[h,E],c=h):(r=c,c=e)}else r=c,c=e;for(;c!==e;)if(a.push(c),c=r,i.charCodeAt(r)===45?(h=tr,r++):(h=e,A===0&&C(Pr)),h!==e){if(E=[],ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C($i)),x!==e)for(;x!==e;)E.push(x),ns.test(i.charAt(r))?(x=i.charAt(r),r++):(x=e,A===0&&C($i));else E=e;E!==e?(h=[h,E],c=h):(r=c,c=e)}else r=c,c=e;U=t,t=Hd(o,a)}else r=t,t=e}else r=t,t=e;return t}function Ys(){var t,u,o;if(t=r,u=[],Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve)),o!==e)for(;o!==e;)u.push(o),Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve));else u=e;return u!==e&&(U=t,u=Zd()),t=u,t}function Gl(){var t,u,o,a,c;for(t=r,u=[],Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve));o!==e;)u.push(o),Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve));if(i.charCodeAt(r)===46?(o=Se,r++):(o=e,A===0&&C(Xe)),o!==e){if(a=[],Ze.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Ve)),c!==e)for(;c!==e;)a.push(c),Ze.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Ve));else a=e;a!==e?(U=t,t=Qd()):(r=t,t=e)}else r=t,t=e;return t}function Fl(){var t,u,o,a,c;if(t=r,u=[],Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve)),o!==e)for(;o!==e;)u.push(o),Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve));else u=e;if(u!==e)if(i.charCodeAt(r)===46?(o=Se,r++):(o=e,A===0&&C(Xe)),o!==e){for(a=[],Ze.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Ve));c!==e;)a.push(c),Ze.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Ve));c=Dl(),c!==e?(U=t,t=Yd()):(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=Se,r++):(u=e,A===0&&C(Xe)),u!==e){if(o=[],Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve)),a!==e)for(;a!==e;)o.push(a),Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve));else o=e;o!==e?(a=Dl(),a!==e?(U=t,t=Xd()):(r=t,t=e)):(r=t,t=e)}else r=t,t=e;if(t===e){if(t=r,u=[],Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve)),o!==e)for(;o!==e;)u.push(o),Ze.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Ve));else u=e;u!==e?(o=Dl(),o!==e?(U=t,t=Jd()):(r=t,t=e)):(r=t,t=e)}}return t}function TE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(ht)),u!==e?(o=Ys(),o!==e?(U=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)===43?(u=Ir,r++):(u=e,A===0&&C(ht)),u!==e?(o=Gl(),o!==e?(U=t,t=zd(o)):(r=t,t=e)):(r=t,t=e),t}function SE(){var t,u,o;return t=r,i.charCodeAt(r)===43?(u=Ir,r++):(u=e,A===0&&C(ht)),u!==e?(o=Fl(),o!==e?(U=t,t=qd(o)):(r=t,t=e)):(r=t,t=e),t}function yE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Pr)),u!==e?(o=Ys(),o!==e?(U=t,t=Kd(o)):(r=t,t=e)):(r=t,t=e),t}function RE(){var t,u,o;return t=r,i.charCodeAt(r)===45?(u=tr,r++):(u=e,A===0&&C(Pr)),u!==e?(o=Gl(),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(Pr)),u!==e?(o=Fl(),o!==e?(U=t,t=rg(o)):(r=t,t=e)):(r=t,t=e),t}function Dl(){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(Fp)),o===e&&(o=null),a=[],Ze.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Ve)),c!==e)for(;c!==e;)a.push(c),Ze.test(i.charAt(r))?(c=i.charAt(r),r++):(c=e,A===0&&C(Ve));else a=e;a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function OE(){var t,u,o,a;if(t=r,i.charCodeAt(r)===39?(u=Bi,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(Vs)),a===e&&(a=Jt());a!==e;)o.push(a),Ga.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Vs)),a===e&&(a=Jt());i.charCodeAt(r)===39?(a=Bi,r++):(a=e,A===0&&C(ui)),a!==e?(U=t,t=tg(o)):(r=t,t=e)}else r=t,t=e;return t}function UE(){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=[],kn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ro)),a===e&&(a=Jt());a!==e;)o.push(a),kn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(ro)),a===e&&(a=Jt());i.charCodeAt(r)===34?(a=bs,r++):(a=e,A===0&&C(cs)),a!==e?(U=t,t=ig(o)):(r=t,t=e)}else r=t,t=e;return t}function GE(){var t,u,o,a,c,h;if(t=r,i.substr(r,3)===Ts?(u=Ts,r+=3):(u=e,A===0&&C(Si)),u!==e){for(o=[],a=r,i.substr(r,2)===Pi?(c=Pi,r+=2):(c=e,A===0&&C(ta)),c===e&&(i.charCodeAt(r)===39?(c=Bi,r++):(c=e,A===0&&C(ui))),c===e&&(c=null),$o.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(ia)),h===e&&(h=Jt()),h!==e?(c=[c,h],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Pi?(c=Pi,r+=2):(c=e,A===0&&C(ta)),c===e&&(i.charCodeAt(r)===39?(c=Bi,r++):(c=e,A===0&&C(ui))),c===e&&(c=null),$o.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(ia)),h===e&&(h=Jt()),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(Si)),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,c,h;if(t=r,i.substr(r,3)===ss?(u=ss,r+=3):(u=e,A===0&&C(ja)),u!==e){for(o=[],a=r,i.substr(r,2)===Ls?(c=Ls,r+=2):(c=e,A===0&&C(An)),c===e&&(i.charCodeAt(r)===34?(c=bs,r++):(c=e,A===0&&C(cs))),c===e&&(c=null),Ci.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(to)),h===e&&(h=Jt()),h!==e?(c=[c,h],a=c):(r=a,a=e);a!==e;)o.push(a),a=r,i.substr(r,2)===Ls?(c=Ls,r+=2):(c=e,A===0&&C(An)),c===e&&(i.charCodeAt(r)===34?(c=bs,r++):(c=e,A===0&&C(cs))),c===e&&(c=null),Ci.test(i.charAt(r))?(h=i.charAt(r),r++):(h=e,A===0&&C(to)),h===e&&(h=Jt()),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(ja)),a!==e?(U=t,t=ng(o)):(r=t,t=e)}else r=t,t=e;return t}function Jt(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Wo,r++):(u=e,A===0&&C(sa)),u!==e?(Fa.test(i.charAt(r))?(o=i.charAt(r),r++):(o=e,A===0&&C(Dp)),o!==e?(U=t,t=og()):(r=t,t=e)):(r=t,t=e),t}function jt(){var t,u,o,a;if(t=r,i.charCodeAt(r)===40?(u=V,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=k,r++):(a=e,A===0&&C(le)),a!==e?(u=[u,o,a],t=u):(r=t,t=e)}else r=t,t=e;return t}function p(){var t;return t=DE(),t===e&&(t=Bl(),t===e&&(t=Pl())),t}function Bl(){var t;return Mi.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Fu)),t}function Pl(){var t;return Ho.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Bp)),t}function To(){var t;return Da.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pp)),t}function sh(){var t,u,o,a;if(t=r,i.charCodeAt(r)===35?(u=ln,r++):(u=e,A===0&&C(hs)),u!==e){for(o=[],a=To();a!==e;)o.push(a),a=To();a=Pl(),a!==e?(U=t,t=ag()):(r=t,t=e)}else r=t,t=e;return t}function DE(){var t,u,o,a,c,h;for(t=r,u=Pl(),u===e&&(u=null),o=[],a=Bl();a!==e;)o.push(a),a=Bl();if(i.charCodeAt(r)===35?(a=ln,r++):(a=e,A===0&&C(hs)),a!==e){for(c=[],h=To();h!==e;)c.push(h),h=To();U=t,t=lg()}else r=t,t=e;return t}function BE(){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 nh(){var t;return pn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Du)),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(Vp)),t===e&&(ep.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Bu)),t===e&&(rp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(In)),t===e&&(ou.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(za)),t===e&&(au.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(na)),t===e&&(tp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Pu)),t===e&&(ip.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(qa)),t===e&&(sp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Mu)),t===e&&(np.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(_p)),t===e&&(lu.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Vu)),t===e&&(op.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(gt)))))))))))))),t}function zi(){var t;return t=nh(),t===e&&(i.charCodeAt(r)===95?(t=un,r++):(t=e,A===0&&C(Nn))),t}function oh(){var t,u,o,a;if(t=r,u=zi(),u===e&&(Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve))),u!==e){for(o=[],a=zi(),a===e&&(Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve)),a===e&&(cn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(bn)),a===e&&(os.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Tn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ln))))));a!==e;)o.push(a),a=zi(),a===e&&(Ze.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ve)),a===e&&(cn.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(bn)),a===e&&(os.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Tn)),a===e&&(Ai.test(i.charAt(r))?(a=i.charAt(r),r++):(a=e,A===0&&C(Ln))))));U=t,t=ug()}else r=t,t=e;return t}function Qr(){var t;return t=zi(),t===e&&(i.charCodeAt(r)===45?(t=tr,r++):(t=e,A===0&&C(Pr)),t===e&&(Ze.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Ve)),t===e&&(cn.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(bn)),t===e&&(os.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Tn)),t===e&&(Ai.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Ln))))))),t}function PE(){var t,u,o,a,c,h;if(t=r,u=nh(),u!==e){for(o=[],a=Qr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e?(h=Qr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Qr(),a===e&&(a=r,i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e?(h=Qr(),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));U=t,t=fg()}else r=t,t=e;return t}function ME(){var t,u,o,a,c,h;if(t=r,u=zi(),u===e&&(i.charCodeAt(r)===58?(u=Qt,r++):(u=e,A===0&&C(Tr)),u===e&&(Ze.test(i.charAt(r))?(u=i.charAt(r),r++):(u=e,A===0&&C(Ve)),u===e&&(u=Xs()))),u!==e){for(o=[],a=Qr(),a===e&&(i.charCodeAt(r)===58?(a=Qt,r++):(a=e,A===0&&C(Tr)),a===e&&(a=Xs())),a===e&&(a=r,i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e?(h=Qr(),h===e&&(i.charCodeAt(r)===58?(h=Qt,r++):(h=e,A===0&&C(Tr)),h===e&&(h=Xs())),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));a!==e;)o.push(a),a=Qr(),a===e&&(i.charCodeAt(r)===58?(a=Qt,r++):(a=e,A===0&&C(Tr)),a===e&&(a=Xs())),a===e&&(a=r,i.charCodeAt(r)===46?(c=Se,r++):(c=e,A===0&&C(Xe)),c!==e?(h=Qr(),h===e&&(i.charCodeAt(r)===58?(h=Qt,r++):(h=e,A===0&&C(Tr)),h===e&&(h=Xs())),h!==e?(c=[c,h],a=c):(r=a,a=e)):(r=a,a=e));U=t,t=pg()}else r=t,t=e;return t}function Xs(){var t;return t=VE(),t===e&&(t=_E()),t}function VE(){var t,u,o,a;return t=r,i.charCodeAt(r)===37?(u=fn,r++):(u=e,A===0&&C(ds)),u!==e?(o=ah(),o!==e?(a=ah(),a!==e?(u=[u,o,a],t=u):(r=t,t=e)):(r=t,t=e)):(r=t,t=e),t}function ah(){var t;return Ze.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(Ve)),t===e&&(ap.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(oa)),t===e&&(lp.test(i.charAt(r))?(t=i.charAt(r),r++):(t=e,A===0&&C(_u)))),t}function _E(){var t,u,o;return t=r,i.charCodeAt(r)===92?(u=Wo,r++):(u=e,A===0&&C(sa)),u!==e?(i.charCodeAt(r)===95?(o=un,r++):(o=e,A===0&&C(Nn)),o===e&&(i.charCodeAt(r)===126?(o=Oa,r++):(o=e,A===0&&C(Wu)),o===e&&(i.charCodeAt(r)===46?(o=Se,r++):(o=e,A===0&&C(Xe)),o===e&&(i.charCodeAt(r)===45?(o=tr,r++):(o=e,A===0&&C(Pr)),o===e&&(i.charCodeAt(r)===33?(o=ri,r++):(o=e,A===0&&C(vn)),o===e&&(i.charCodeAt(r)===36?(o=Ns,r++):(o=e,A===0&&C(Ti)),o===e&&(i.charCodeAt(r)===38?(o=nu,r++):(o=e,A===0&&C(ku)),o===e&&(i.charCodeAt(r)===39?(o=Bi,r++):(o=e,A===0&&C(ui)),o===e&&(i.charCodeAt(r)===40?(o=V,r++):(o=e,A===0&&C(ae)),o===e&&(i.charCodeAt(r)===41?(o=k,r++):(o=e,A===0&&C(le)),o===e&&(i.charCodeAt(r)===42?(o=ee,r++):(o=e,A===0&&C(kr)),o===e&&(i.charCodeAt(r)===43?(o=Ir,r++):(o=e,A===0&&C(ht)),o===e&&(i.charCodeAt(r)===44?(o=De,r++):(o=e,A===0&&C(We)),o===e&&(i.charCodeAt(r)===59?(o=ur,r++):(o=e,A===0&&C(Yt)),o===e&&(i.charCodeAt(r)===58?(o=Qt,r++):(o=e,A===0&&C(Tr)),o===e&&(i.charCodeAt(r)===61?(o=br,r++):(o=e,A===0&&C(Wt)),o===e&&(i.charCodeAt(r)===47?(o=rr,r++):(o=e,A===0&&C(Br)),o===e&&(i.charCodeAt(r)===63?(o=Ct,r++):(o=e,A===0&&C(Os)),o===e&&(i.charCodeAt(r)===35?(o=ln,r++):(o=e,A===0&&C(hs)),o===e&&(i.charCodeAt(r)===64?(o=wa,r++):(o=e,A===0&&C(Li)),o===e&&(i.charCodeAt(r)===37?(o=fn,r++):(o=e,A===0&&C(ds)))))))))))))))))))))),o!==e?(u=[u,o],t=u):(r=t,t=e)):(r=t,t=e),t}let lh={};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(mo=w(),mo!==e&&r===i.length)return mo;throw mo!==e&&r<i.length&&C(cg()),yc(pl,vt<i.length?i.charAt(vt):null,vt<i.length?ks(vt,vt+1):ks(vt,vt))}var Oo,ba,Mn,Fv=" ",gd=0;function vd(i,v=2){if(Fv=" ".repeat(v),Oo=[],ba=i.comments,Mn="",i.headers&&ke(i.headers.join("")),i.prologue?.decl.length&&(i.prologue.decl.forEach(e=>{e.type==="BaseDecl"?ke(`BASE <${e.iriref}>`):ke(`PREFIX ${e.pn_prefix||""}: <${e.iriref}>`)}),ke("")),i.selectQuery)S1(i.selectQuery);else if(i.constructQuery)y1(i.constructQuery);else if(i.askQuery)N1(i.askQuery);else if(i.describeQuery)b1(i.describeQuery);else if(i.update)for(let e=0;e<i.update.length;e++)e>0&&(Oo[Oo.length-1]+=` ;
|
|
63
|
+
`),T1(i.update[e]);for(i.values&&Bv(i.values);ba&&ba.length;)Oo[Oo.length-1]+=ba.shift().text;return Oo.join(`
|
|
64
|
+
`)}var Cs=(i=1)=>{Mn+=Fv.repeat(i)},As=(i=1)=>{Mn=Mn.substr(0,Mn.length-Fv.length*i)},ke=i=>{Oo.push(Mn+i)},wr=(i,v)=>{for(;ba&&ba.length&&ba[0].pos<v;)Oo[Oo.length-1]+=ba.shift().text;ke(i)},N1=i=>{ke("ASK {");let v=Oi(i.where);wr("}",v+1),wh(i)},b1=i=>{let v=i.describe.map(ir).join(" ");if(ke(`DESCRIBE ${v}`),Dv(i.from),i.where){ke("WHERE {");let e=Oi(i.where);wr("}",e+1)}wh(i)},T1=i=>{if(i.type==="insertdata")ke("INSERT DATA {"),Cs(),Uo(i.insert),As(),ke("}");else if(i.type==="deletedata")ke("DELETE DATA {"),Cs(),Uo(i.delete),As(),ke("}");else if(i.type==="deletewhere")ke("DELETE WHERE {"),Cs(),Uo(i.delete),As(),ke("}");else if(i.type==="modify"){i.with&&ke(`WITH ${ir(i.with)}`),i.delete&&(ke("DELETE {"),Cs(),Uo(i.delete),As(),ke("}")),i.insert&&(ke("INSERT {"),Cs(),Uo(i.insert),As(),ke("}")),i.using&&i.using.forEach(e=>{ke(`USING ${L1(e)}`)}),ke("WHERE {");let v=Oi(i.where);wr("}",v+1)}else if(i.type==="add"){let v=Zf(i.graphs[0]),e=Zf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),ke(`ADD${N}${v} TO ${e}`)}else if(i.type==="move"){let v=Zf(i.graphs[0]),e=Zf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),ke(`MOVE${N}${v} TO ${e}`)}else if(i.type==="copy"){let v=Zf(i.graphs[0]),e=Zf(i.graphs[1]),N=" ";i.silent&&(N=" SILENT "),ke(`COPY${N}${v} TO ${e}`)}else if(i.type==="load"){let v=" ";i.silent&&(v=" SILENT "),ke(`LOAD${v}${Ki(i.sourceGraph)}`)}else if(i.type==="clear"){let v=" ";i.silent&&(v=" SILENT "),ke(`CLEAR${v}${HA(i.destinyGraph)}`)}else if(i.type==="drop"){let v=" ";i.silent&&(v=" SILENT "),ke(`DROP${v}${HA(i.destinyGraph)}`)}else if(i.type==="create"){let v=" ";i.silent&&(v=" SILENT "),ke(`CREATE${v}GRAPH ${Ki(i.destinyGraph)}`)}},L1=i=>i.named?`NAMED ${Ki(i.iri)}`:Ki(i.iri),Zf=i=>i==="default"?"DEFAULT":Ki(i),HA=i=>i==="default"?"DEFAULT":i==="named"?"NAMED":i==="all"?"ALL":`GRAPH ${Ki(i)}`,Oi=(i,v=0)=>(Cs(),i.type==="SubSelect"?(Gv(i),v=i.location.end.offset):i.graphPattern?i.graphPattern.forEach(e=>{ZA(e),v=e.location.end.offset}):i.forEach(e=>{ZA(e),v=e.location.end.offset}),As(),v),S1=i=>{let v=i.selectClause.location.start.offset;wr(QA(i.selectClause),v);let e=i.selectClause.location.end.offset,N=Dv(i.selectClause.from);N>e&&(e=N),wr("WHERE {",e+1),e=Oi(i.whereClause,e),wr("}",e+1),wh(i)},Gv=i=>{let v=i.selectClause.location.start.offset,e=i.selectClause.location.end.offset;wr(QA(i.selectClause),v),wr("WHERE {",e+1),e=Oi(i.whereClause,e),wr("}",e+1),i.values&&Bv(i.values),wh(i)},Dv=i=>{if(i){let v;return i.forEach(e=>{e.graph?v=R1(e.graph):e.namedGraph&&(v=w1(e.namedGraph))}),v}},wh=i=>{i.group&&ke(O1(i.group)),i.having&&ke(`HAVING ${Sr(i.having[0])}`),i.orderBy&&ke("ORDER BY "+U1(i.orderBy)),i.limitOffset?.forEach(v=>{v.limit?ke(`LIMIT ${v.limit}`):v.offset&&ke(`OFFSET ${v.offset}`)})},y1=i=>{i.template?(wr("CONSTRUCT {",i.location.start.offset),Cs(),Uo(i.template.triplePattern),As(),ke("}")):ke("CONSTRUCT"),Dv(i.from),ke("WHERE {");let v=Oi(i.where);wr("}",v+1),wh(i)},R1=i=>{let v=Ki(i);if(v!=null){let e=i.location.start.offset,N=i.location.end.offset;return wr("FROM "+v,e),N}},w1=i=>{let v=Ki(i);if(v!=null){let e=i.location.start.offset,N=i.location.end.offset;return wr("FROM NAMED "+v,e),N}},ZA=i=>{if(gd=i.location.start.offset,i.type==="SubSelect"){ke("{"),Cs(),Gv(i),As(),ke("}");return}if(i.graphPattern&&i.graph){wr(`GRAPH ${ir(i.graph)} {`,gd);let v=Oi(i);wr("}",v+1);return}if(i.graphPattern){ke("{");let v=Oi(i);wr("}",v+1);return}if(i.data){Bv(i);return}if(i.triplePattern){Uo(i.triplePattern);return}if(i.union){for(let v=0;v<i.union.length;v++)v>0&&ke("UNION"),ke("{"),Oi(i.union[v]),wr("}",i.union[v].location.end.offset+2);return}if(i.optional){wr("OPTIONAL {",gd);let v=Oi(i.optional);wr("}",v+1);return}if(i.minus){wr("MINUS {",gd);let v=Oi(i.minus);wr("}",v+1);return}if(i.filter){F1(i);return}if(i.bind){ke(`BIND (${Sr(i.bind)} AS ${Jl(i.as)})`);return}if(i.type==="ServiceGraphPattern"){let v=" ";i.silent&&(v=" SILENT "),ke(`SERVICE${v}${ir(i.service)} {`),i.pattern.type==="SubSelect"?(Cs(),Gv(i.pattern),As()):Oi(i.pattern),ke("}");return}if(i.functionRef){let v=i.args.map(Sr).join(", ");ke(Ki(i.functionRef)+`(${v})`)}},O1=i=>{let v=["GROUP BY"],e=0;return i.forEach(N=>{v[e].length>80?(e++,v[e]=" "):v[e]+=" ",v[e]+=ir(N)}),v.join(`
|
|
65
|
+
`)},U1=i=>{let v=[];return i.forEach(e=>{let N;e.type==="Var"?N=Jl(e):N=Sr(e),e.asc?v.push(`ASC${N}`):e.desc?v.push(`DESC${N}`):v.push(N)}),v.join(" ")},QA=i=>{let v=[];v[0]="SELECT",i.distinct&&(v[0]+=" DISTINCT"),i.reduced&&(v[0]+=" REDUCED");let e=0;return i.var.forEach(N=>{v[e].length>80?(e++,v[e]=" "):v[e]+=" ",v[e]+=G1(N)}),v.join(`
|
|
66
|
+
`)},G1=i=>{if(i.varname)return Jl(i);if(i.as)return`(${Sr(i.expression)} AS ${Jl(i.as)})`;if(i==="*")return"*"},F1=i=>{if(i.filter.notexists){ke("FILTER NOT EXISTS {");let v=Oi(i.filter.notexists);wr("}",v+1)}else if(i.filter.exists){ke("FILTER EXISTS {");let v=Oi(i.filter.exists);wr("}",v+1)}else wr(`FILTER ${Sr(i.filter)}`,i.location.start.offset)},Uo=i=>{i.forEach(v=>{v.graph?(wr(`GRAPH ${ir(v.graph)} {`,v.graph.location.start.offset),Cs(),Uo(v.triplePattern),As(),ke("}")):v.triplePattern?Uo(v.triplePattern):v.properties?D1(v):wr(`[${M1(v.subject.blankNodeProperties)}] .`,v.subject.location.start.offset)})},D1=i=>{let v=ir(i.subject),e,N;i.properties.forEach(y=>{e?(wr(`${e} ;`,N),e=" ".repeat(v.length)+` ${ir(y.predicate)} ${ir(y.objects)}`,y.predicate.location?N=y.predicate.location.start.offset:N=y.predicate.value.location.start.offset):(e=`${v} ${ir(y.predicate)} ${ir(y.objects)}`,N=i.subject.location.start.offset)}),wr(`${e} .`,N)},Ed=i=>{let v="";return i.forEach(e=>{v&&(v+=" "),e.graph?(v+=`GRAPH ${ir(e.graph)} { `,v+=Ed(e.triplePattern),v+=" }"):e.triplePattern?v+=Ed(e.triplePattern):(v+=B1(e),(i.length>1||e.properties.length>1)&&(v+=" ."))}),v},B1=i=>{let v=ir(i.subject),e;return i.properties.forEach(N=>{e?e+=` ; ${ir(N.predicate)} ${ir(N.objects)}`:e=`${v} ${ir(N.predicate)} ${ir(N.objects)}`}),e},P1=(i,v)=>{if(i.length===1&&!v){let y=i[0];return` ${ir(y.predicate)} ${ir(y.objects)}`}Cs();let e="",N=Mn+" ".repeat(2);return i.forEach(y=>{e?(e+=` ;
|
|
67
|
+
`,e+=`${N} ${ir(y.predicate)} ${ir(y.objects,!0)}`):(e+=`
|
|
68
|
+
${N}`,e+=` ${ir(y.predicate)} ${ir(y.objects,!0)}`)}),e+=`
|
|
69
|
+
${Mn}`,As(),e},M1=i=>{if(i.length===1){let N=i[0];return` ${ir(N.predicate)} ${ir(N.objects)} `}let v="",e=Mn+" ".repeat(2);return i.forEach(N=>{v?(v+=` ;
|
|
70
|
+
`,v+=`${e}${ir(N.predicate)} ${ir(N.objects,!0)}`):(v+=`
|
|
71
|
+
${e}`,v+=`${ir(N.predicate)} ${ir(N.objects,!0)}`)}),v+=`
|
|
72
|
+
${Mn}`,v},V1=i=>{let v=i.distinct?"DISTINCT ":"";if(i.aggregateType==="count"){let e;return i.expression==="*"?e="*":e=Sr(i.expression),`COUNT(${v}${e})`}else{if(i.aggregateType==="sum")return`sum(${v}${Sr(i.expression)})`;if(i.aggregateType==="min")return`MIN(${v}${Sr(i.expression)})`;if(i.aggregateType==="max")return`MAX(${v}${Sr(i.expression)})`;if(i.aggregateType==="avg")return`AVG(${v}${Sr(i.expression)})`;if(i.aggregateType==="sample")return`SAMPLE(${v}${Sr(i.expression)})`;if(i.aggregateType==="group_concat"){let e="";return i.separator&&(e=`; SEPARATOR = ${YA(i.separator)}`),`GROUP_CONCAT(${v}${Sr(i.expression)}${e})`}}},Sr=i=>{if(i.functionRef)return Ki(i.functionRef)+"("+i.args.map(Sr).join(", ")+")";if(i.exists)return`EXISTS { ${Ed(i.exists)} }`;if(i.notexists)return`NOT EXISTS { ${Ed(i.notexists)} }`;switch(i.expressionType){case"atomic":return Pn(ir(i.value),i.bracketted);case"irireforfunction":let v=Ki(i.iriref);return i.args&&(v+="("+i.args.map(Sr).join(", ")+")"),Pn(v,i.bracketted);case"builtincall":let e="";return i.args&&(e=i.args.map(ir).join(", ")),Pn(`${i.builtincall}(${e})`,i.bracketted);case"unaryexpression":let N=i.unaryexpression+Sr(i.expression);return Pn(N,i.bracketted);case"aggregate":return V1(i);case"multiplicativeexpression":let y=Sr(i.first);return i.rest.forEach(Z=>{y+=" "+Z.operator+" "+Sr(Z.expression)}),Pn(y,i.bracketted);case"additiveexpression":let w=Sr(i.op1);return i.ops.forEach(Z=>{w+=" "+Z.operator+" "+Sr(Z.expression)}),Pn(w,i.bracketted);case"relationalexpression":let G=Sr(i.op1)+" "+i.operator+" ";return Array.isArray(i.op2)?G+="("+i.op2.map(ir).join(", ")+")":G+=Sr(i.op2),Pn(G,i.bracketted);case"aliasedexpression":let P=Sr(i.expression);return i.as&&(P+=` AS ${Jl(i.as)}`),Pn(P,i.bracketted);case"conditionaland":return Pn(i.operands.map(Sr).join(" && "),i.bracketted);case"conditionalor":return Pn(i.operands.map(Sr).join(" || "),i.bracketted);case"regex":let H=Sr(i.text);return H+=", "+Sr(i.pattern),i.flags&&(H+=", "+Sr(i.flags)),`regex(${H})`}},Pn=(i,v)=>v?`(${i})`:i,Bv=i=>{if(i.oneVar){let v=ir(i.oneVar),e=i.data.map(ir).join(" ");ke(`VALUES ${v} { ${e} }`)}else if(i.variables){let v=i.variables.map(Jl).join(" ");if(i.variables.length===1){let e=i.data.map(N=>"("+N.map(ir).join(" ")+")").join(" ");ke(`VALUES (${v}) { ${e} }`)}else ke(`VALUES (${v}) {`),Cs(),i.data.map(e=>{ke("("+e.map(ir).join(" ")+")")}),As(),ke("}")}},ir=(i,v=!1)=>{if(i==="UNDEF")return i;if(Array.isArray(i))return i.map(N=>ir(N,v)).join(", ");if(i.varname)return Jl(i);if(i.collection)return`( ${i.collection.map(y=>ir(y)).join(" ")} )`;if(i.hasOwnProperty("literal"))return YA(i);if(i.blankNode)return i.blankNode;if(i.expressionType)return Sr(i);if(i.blankNodeProperties)return`[${P1(i.blankNodeProperties,v)} ]`;let e="";return i.inverse&&(e+="^"),(i.pn_prefix||i.pn_local||i.iriref||i.a)&&(e+=Ki(i)),i.alternative?e+=i.alternative.map(N=>ir(N)).join("|"):i.sequence&&(e+=i.sequence.map(N=>ir(N)).join("/")),i.bracketted&&(e=`(${e})`),i.modifier&&(e+=i.modifier),e},YA=i=>{if(i.dataType==="http://www.w3.org/2001/XMLSchema#decimal")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#double")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#integer")return i.literal;if(i.dataType==="http://www.w3.org/2001/XMLSchema#boolean")return i.literal;let v=i.quote+i.literal+i.quote;return i.dataType?v+=`^^${Ki(i.dataType)}`:i.lang&&(v+="@"+i.lang),v},Ki=i=>{if(i.iriref)return`<${i.iriref}>`;if(i.pn_prefix&&i.pn_local)return`${i.pn_prefix}:${i.pn_local}`;if(i.pn_prefix)return`${i.pn_prefix}:`;if(i.pn_local)return`:${i.pn_local}`;if(i.a)return"a"},Jl=i=>i.varType==="VAR2"?"$"+i.varname:"?"+i.varname;var qs="",Mv;function XA(i,v=4){Mv=" ".repeat(v);let e="";return e+=`@prefix : <https://purl.org/sparql-formatter/ontology#> .
|
|
73
|
+
|
|
74
|
+
`,e+=`[]
|
|
75
|
+
`+Pv(i)+` .
|
|
76
|
+
`,e}function Pv(i){let v=[];return W1(),Object.keys(i).forEach(e=>{if(e==="type")v.push(qs+`a :${i[e]}`);else{if(e==="location"||e==="@context")return;if(typeof i[e]=="object")v.push(_1(e,i[e]));else{let N=i[e];typeof N=="string"&&(N=JSON.stringify(N)),v.push(qs+`:${e} ${N}`)}}}),k1(),v.join(` ;
|
|
77
|
+
`)}function _1(i,v){if(Array.isArray(v)){let e=v.map(N=>Pv(N)+`
|
|
78
|
+
`);return qs+`:${i} [
|
|
79
|
+
`+e.join(qs+`], [
|
|
80
|
+
`)+qs+"]"}else return qs+`:${i} [
|
|
81
|
+
`+Pv(v)+`
|
|
82
|
+
`+qs+"]"}var W1=(i=1)=>{qs+=Mv.repeat(i)},k1=(i=1)=>{qs=qs.substr(0,qs.length-Mv.length*i)};var $1=(i,v="default",e=2)=>{switch(v){case"default":return vd(Rh(i),e);case"compact":return vd(Uv(i),e);case"turtle":return XA(Rh(i),e);case"jsonld":return JSON.stringify(Rh(i),H1,e);default:throw new Error(`Unsupported formatting mode: ${v}`)}};function H1(i,v){if(i!=="location")return v}var Vv={parseSparql:Rh,parseSparqlAsCompact:Uv,formatAst:vd,format:$1};typeof window<"u"&&(window.spfmt=Vv);var Dr=class Dr extends Na{constructor(e,N={}){super();this.autocompleters={};this.prevQueryValid=!1;this.queryValid=!0;this.isFullscreen=!1;this.handleHashChange=()=>{this.config.consumeShareLink?.(this)};this.notificationEls={};if(!e)throw new Error("No parent passed as argument. Dont know where to draw YASQE");this.rootEl=document.createElement("div"),this.rootEl.className="yasqe",e.appendChild(this.rootEl),this.config=$f({},Dr.defaults,N);let y=Na(this.rootEl,this.config);for(let G of Object.getOwnPropertyNames(Dr.prototype))y[G]=Dr.prototype[G].bind(this);Object.assign(this,Na.prototype,y),this.storage=new kl(Dr.storageNamespace),this.drawButtons();let w=this.getStorageId();if(w){let G=this.storage.get(w);G&&typeof G=="string"?this.persistentConfig={query:G,editorHeight:this.config.editorHeight}:this.persistentConfig=G,this.persistentConfig||(this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight}),this.persistentConfig&&typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0),this.persistentConfig&&this.persistentConfig.query&&this.setValue(this.persistentConfig.query)}else this.persistentConfig?typeof this.persistentConfig.autoformatOnQuery>"u"&&(this.persistentConfig.autoformatOnQuery=!0):this.persistentConfig={query:this.getValue(),editorHeight:this.config.editorHeight,autoformatOnQuery:!0};this.config.autocompleters.forEach(G=>this.enableCompleter(G).then(()=>{},console.warn)),this.config.consumeShareLink&&(this.config.consumeShareLink(this),window.addEventListener("hashchange",this.handleHashChange)),this.checkSyntax(),this.checkConstructVariables(),this.persistentConfig&&this.persistentConfig.editorHeight?this.getWrapperElement().style.height=this.persistentConfig.editorHeight:this.config.editorHeight&&(this.getWrapperElement().style.height=this.config.editorHeight),this.config.resizeable&&this.drawResizer(),this.config.collapsePrefixesOnLoad&&this.collapsePrefixes(!0),this.registerEventListeners()}handleChange(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleBlur(){this.saveQuery()}handleChanges(){this.checkSyntax(),this.checkConstructVariables(),this.updateQueryButton()}handleCursorActivity(){this.autocomplete(!0);let e=this.getDoc().getCursor(),N=this.getTokenAt(e);N&&N.type==="variable-3"?this.showNotification("uri-describe-hint","Hold CTRL - left mouse click on URI to DESCRIBE"):this.hideNotification("uri-describe-hint")}handleQuery(e,N,y){this.req=N,this.abortController=y,this.updateQueryButton()}handleQueryResponse(e,N,y){this.lastQueryDuration=y,this.req=void 0,this.updateQueryButton()}handleQueryAbort(e,N){this.req=void 0,this.updateQueryButton()}registerEventListeners(){this.on("change",this.handleChange),this.on("blur",this.handleBlur),this.on("changes",this.handleChanges),this.on("cursorActivity",this.handleCursorActivity),this.on("query",this.handleQuery),this.on("queryResponse",this.handleQueryResponse),this.on("queryAbort",this.handleQueryAbort)}unregisterEventListeners(){this.off("change",this.handleChange),this.off("blur",this.handleBlur),this.off("changes",this.handleChanges),this.off("cursorActivity",this.handleCursorActivity),this.off("query",this.handleQuery),this.off("queryResponse",this.handleQueryResponse),this.off("queryAbort",this.handleQueryAbort)}emit(e,...N){Na.signal(this,e,this,...N)}getStorageId(e){let N=e||this.config.persistenceId;if(N)return typeof N=="string"?N:N(this)}drawButtons(){let e=document.createElement("div");if(e.className="yasqe_buttons",this.getWrapperElement().appendChild(e),this.config.pluginButtons){let G=this.config.pluginButtons();if(!G)return;if(Array.isArray(G))for(let P of G)e.append(P);else e.appendChild(G)}if(this.config.createShareableLink){var N=So(_C);let G=document.createElement("button");G.className="yasqe_share",G.title="Share query",G.setAttribute("aria-label","Share query"),G.appendChild(N),e.appendChild(G),G.addEventListener("click",H=>P(H)),G.addEventListener("keydown",H=>{H.code==="Enter"&&P(H)});let P=H=>{H.stopPropagation();let Z=document.createElement("div");Z.className="yasqe_sharePopup",e.appendChild(Z),document.body.addEventListener("click",D=>{Z&&D.target!==Z&&!Z.contains(D.target)&&(Z.remove(),Z=void 0)},!0);var $=document.createElement("input");$.type="text",$.value=this.config.createShareableLink(this),$.onfocus=function(){$.select()},$.onmouseup=function(){return!1},Z.innerHTML="";var V=document.createElement("div");V.className="inputWrapper",V.appendChild($),Z.appendChild(V);let J=[],k=this.config.createShortLink;if(k){Z.className=Z.className+=" enableShort";let D=document.createElement("button");J.push(D),D.innerHTML="Shorten",D.className="yasqe_btn yasqe_btn-sm shorten",Z.appendChild(D),D.onclick=()=>{J.forEach(B=>B.disabled=!0),k(this,$.value).then(B=>{$.value=B,$.focus()},B=>{let Y=document.createElement("span");Y.className="shortlinkErr";let z="An error has occurred";typeof B=="string"&&B.length!==0?z=B:B.message&&B.message.length!==0&&(z=B.message),Y.textContent=z,$.replaceWith(Y)})}}let ee=document.createElement("button");J.push(ee),ee.innerText="cURL",ee.className="yasqe_btn yasqe_btn-sm curl",Z.appendChild(ee),ee.onclick=()=>{J.forEach(D=>D.disabled=!0),$.value=this.getAsCurlString(),$.focus(),Z?.appendChild(ee)};let X=N.getBoundingClientRect();Z.style.top=N.offsetTop+X.height+"px",Z.style.left=N.offsetLeft+N.clientWidth-Z.clientWidth+"px",$.focus()}}if(this.config.showQueryButton){this.queryBtn=document.createElement("button"),zt(this.queryBtn,"yasqe_queryButton");let G=So(VC);zt(G,"queryIcon"),this.queryBtn.appendChild(G);let P=So(nd);zt(P,"warningIcon"),this.queryBtn.appendChild(P),this.queryBtn.onclick=()=>{this.config.queryingDisabled||(this.req?this.abortQuery():this.query().catch(()=>{}))},this.queryBtn.title="Run query",this.queryBtn.setAttribute("aria-label","Run query"),e.appendChild(this.queryBtn),this.updateQueryButton()}if(this.config.showFormatButton){let G=document.createElement("button");zt(G,"yasqe_formatButton");let P=So($C);zt(P,"formatIcon"),G.appendChild(P),G.onclick=()=>{this.format()},G.title="Format query (Shift+Ctrl+F)",G.setAttribute("aria-label","Format query"),e.appendChild(G)}this.fullscreenBtn=document.createElement("button"),zt(this.fullscreenBtn,"yasqe_fullscreenButton");let y=So(WC);zt(y,"fullscreenIcon"),this.fullscreenBtn.appendChild(y);let w=So(kC);zt(w,"fullscreenExitIcon"),this.fullscreenBtn.appendChild(w),this.fullscreenBtn.onclick=()=>{this.toggleFullscreen()},this.fullscreenBtn.title="Toggle fullscreen (F11)",this.fullscreenBtn.setAttribute("aria-label","Toggle fullscreen"),e.appendChild(this.fullscreenBtn)}toggleFullscreen(){this.isFullscreen=!this.isFullscreen,this.isFullscreen?(zt(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Exit fullscreen (F11)")):(xh(this.rootEl,"fullscreen"),this.fullscreenBtn?.setAttribute("title","Toggle fullscreen (F11)")),this.refresh()}getIsFullscreen(){return this.isFullscreen}drawResizer(){if(this.resizeWrapper)return;this.resizeWrapper=document.createElement("div"),zt(this.resizeWrapper,"resizeWrapper");let e=document.createElement("div");zt(e,"resizeChip"),this.resizeWrapper.appendChild(e),this.resizeWrapper.addEventListener("mousedown",this.initDrag,!1),this.resizeWrapper.addEventListener("dblclick",this.expandEditor),this.rootEl.appendChild(this.resizeWrapper)}initDrag(){document.documentElement.addEventListener("mousemove",this.doDrag,!1),document.documentElement.addEventListener("mouseup",this.stopDrag,!1)}calculateDragOffset(e,N){let y=0;N.offsetParent&&(y=N.offsetParent.offsetTop);let w=0,G=N.parentElement;for(;G;)w+=G.scrollTop,G=G.parentElement;return e.clientY-y-this.rootEl.offsetTop+w}doDrag(e){this.getWrapperElement().style.height=this.calculateDragOffset(e,this.rootEl)+"px"}stopDrag(){document.documentElement.removeEventListener("mousemove",this.doDrag,!1),document.documentElement.removeEventListener("mouseup",this.stopDrag,!1),this.emit("resize",this.getWrapperElement().style.height),this.getStorageId()&&this.persistentConfig&&(this.persistentConfig.editorHeight=this.getWrapperElement().style.height,this.saveQuery()),this.refresh()}duplicateLine(){let e=this.getDoc().getCursor();if(e){let N=this.getDoc().getLine(e.line);this.getDoc().replaceRange(N+`
|
|
83
|
+
`+N,{ch:0,line:e.line},{ch:N.length,line:e.line})}}updateQueryButton(e){this.queryBtn&&(this.config.queryingDisabled?(zt(this.queryBtn,"query_disabled"),this.queryBtn.title=this.config.queryingDisabled):(xh(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&&(xh(this.queryBtn,"query_"+this.queryStatus),zt(this.queryBtn,"query_"+e),this.queryStatus=e),this.req&&this.queryBtn.className.indexOf("busy")<0&&(this.queryBtn.className=this.queryBtn.className+=" busy"),!this.req&&this.queryBtn.className.indexOf("busy")>=0&&(this.queryBtn.className=this.queryBtn.className.replace("busy","")))}handleLocalStorageQuotaFull(e){console.warn("Localstorage quota exceeded. Clearing all queries"),Dr.clearStorage()}saveQuery(){let e=this.getStorageId();!e||!this.persistentConfig||(this.persistentConfig.query=this.getValue(),this.storage.set(e,this.persistentConfig,this.config.persistencyExpire,this.handleLocalStorageQuotaFull))}getQueryType(){return this.getOption("queryType")}getQueryMode(){switch(this.getQueryType()){case"INSERT":case"DELETE":case"LOAD":case"CLEAR":case"CREATE":case"DROP":case"COPY":case"MOVE":case"ADD":return"update";default:return"query"}}getVariablesFromQuery(){let e=this.getTokenAt({line:this.getDoc().lastLine(),ch:this.getDoc().getLine(this.getDoc().lastLine()).length},!0),N=[];for(var y in e.state.variables)N.push(y);return N.sort()}autoformatSelection(e,N){var y=this.getValue();return y=y.substring(e,N),Dr.autoformatString(y)}static autoformatString(e){var N=[["keyword","ws","string-2","ws","variable-3"],["keyword","ws","variable-3"]],y=["}"],w=function(Z){if(Z==="{"||Z===".")return 1;if(Z===";")return H.length>2&&H[H.length-2]==="punc"?0:1;for(var $=0;$<N.length;$++)if(H.valueOf().toString()===N[$].valueOf().toString())return 1;for(var $=0;$<y.length;$++)if(P.trim()!==""&&Z==y[$])return-1;return 0},G="",P="",H=[];return Dr.runMode(e,"sparql11",function(Z,$){H.push($);var V=w(Z);V!=0?(V==1?(G+=Z+`
|
|
84
|
+
`,P=""):(G+=`
|
|
85
|
+
`+Z,P=Z),H=[]):(P+=Z,G+=Z),H.length==1&&H[0]=="sp-ws"&&(H=[])}),G.replace(/\n\s*\n/g,`
|
|
86
|
+
`).trim()}commentLines(){for(var e=this.getDoc().getCursor("start").line,N=this.getDoc().getCursor("end").line,y=Math.min(e,N),w=Math.max(e,N),G=!0,P=y;P<=w;P++){var H=this.getDoc().getLine(P);if(H.length==0||H.substring(0,1)!="#"){G=!1;break}}for(var P=y;P<=w;P++)G?this.getDoc().replaceRange("",{line:P,ch:0},{line:P,ch:1}):this.getDoc().replaceRange("#",{line:P,ch:0})}autoformat(){this.getDoc().somethingSelected()||this.execCommand("selectAll");let e=this.getDoc().getCursor("start");var N={line:this.getDoc().getCursor("end").line,ch:this.getDoc().getSelection().length},y=this.getDoc().indexFromPos(e),w=this.getDoc().indexFromPos(N);let G=this.autoformatSelection(y,w);this.operation(()=>{this.getDoc().replaceRange(G,e,N);for(var P=this.getDoc().posFromIndex(y).line,H=this.getDoc().posFromIndex(y+G.length).line,Z=P;Z<=H;Z++)this.indentLine(Z,"smart")})}formatQuery(){try{let e=this.getValue(),N=Vv.format(e);this.setValue(N),this.collapsePrefixes(!0)}catch(e){console.warn("Failed to format SPARQL query using sparql-formatter. This may be due to syntax errors in the query. Falling back to legacy formatter.",e),this.autoformat()}}format(){(this.persistentConfig?.formatterType||"sparql-formatter")==="legacy"?this.autoformat():this.formatQuery()}getQueryWithValues(e){if(!e)return this.getValue();var N;if(typeof e=="string")N=e;else{e instanceof Array||(e=[e]);var y=e.reduce(function($,V){for(var J in V)$[J]=J;return $},{}),w=[];for(var G in y)w.push(G);if(!w.length)return this.getValue();N="VALUES ("+w.join(" ")+`) {
|
|
87
|
+
`,e.forEach(function($){N+="( ",w.forEach(function(V){N+=$[V]||"UNDEF"}),N+=` )
|
|
88
|
+
`}),N+=`}
|
|
89
|
+
`}if(!N)return this.getValue();var P="",H=!1,Z=!1;return Dr.runMode(this.getValue(),"sparql11",function($,V,J,k,ee){V==="keyword"&&$.toLowerCase()==="select"&&(Z=!0),P+=$,Z&&!H&&V==="punc"&&$==="{"&&(H=!0,P+=`
|
|
90
|
+
`+N)}),P}getValueWithoutComments(){var e="";return Dr.runMode(this.getValue(),"sparql11",function(N,y){y!="comment"&&(e+=N)}),e}setCheckSyntaxErrors(e){this.config.syntaxErrorCheck=e,this.checkSyntax(),this.checkConstructVariables()}checkSyntax(){this.queryValid=!0,this.clearGutter("gutterErrorBar");for(var e,N=0;N<this.getDoc().lineCount();++N){var y=!1;this.prevQueryValid||(y=!0);var w=this.getTokenAt({line:N,ch:this.getDoc().getLine(N).length},y),e=w.state;if(this.setOption("queryType",e.queryType),e.OK==!1){if(!this.config.syntaxErrorCheck){let $=this.getWrapperElement().querySelectorAll(".sp-error");for(let V=0;V<$.length;V++){var G=$[V];G.style&&(G.style.color="black")}return}let Z=So(nd);if(e.errorMsg)Ch(this,Z,Lh(w.state.errorMsg));else if(e.possibleCurrent&&e.possibleCurrent.length>0){var P=[];e.possibleCurrent.forEach(function($){P.push("<strong style='text-decoration:underline'>"+Lh($)+"</strong>")}),Ch(this,Z,"This line is invalid. Expected: "+P.join(", "))}Z.className="parseErrorIcon",this.setGutterMarker(N,"gutterErrorBar",Z),this.queryValid=!1;break}}}setCheckConstructVariables(e){this.config.checkConstructVariables=e,e?this.checkConstructVariables():this.clearGutter("gutterConstructWarning")}checkConstructVariables(){if(this.clearGutter("gutterConstructWarning"),!this.config.checkConstructVariables||!this.queryValid||this.getQueryType()!=="CONSTRUCT")return;let e=this.getDoc().lastLine(),y=this.getTokenAt({line:e,ch:this.getDoc().getLine(e).length},!0).state,w=[];for(let G in y.constructVariables)y.whereVariables[G]||w.push(G);if(w.length!==0)for(let G=0;G<this.getDoc().lineCount();++G){let H=this.getTokenAt({line:G,ch:this.getDoc().getLine(G).length},!0).state;if(H.queryType==="CONSTRUCT"&&H.inConstructTemplate){let Z=this.getDoc().getLine(G);for(let $ of w){let V=$.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");if(new RegExp(`${V}(?![a-zA-Z0-9_])`).test(Z)){let k=So(nd);k.className="constructVariableWarning",Ch(this,k,Lh(`Variable ${$} is used in CONSTRUCT but not defined in WHERE clause`)),this.setGutterMarker(G,"gutterConstructWarning",k);break}}}}}getCompleteToken(e,N){return kv(this,e,N)}getPreviousNonWsToken(e,N){return $E(this,e,N)}getNextNonWsToken(e,N){return bf(this,e,N)}showNotification(e,N){if(!this.notificationEls[e]){let w=document.createElement("div");zt(w,"notificationContainer"),this.getWrapperElement().appendChild(w),this.notificationEls[e]=document.createElement("div"),zt(this.notificationEls[e],"notification","notif_"+e),w.appendChild(this.notificationEls[e])}for(let w in this.notificationEls)w!==e&&this.hideNotification(w);let y=this.notificationEls[e];zt(y,"active"),y.innerText=N}hideNotification(e){this.notificationEls[e]&&xh(this.notificationEls[e],"active")}enableCompleter(e){return Dr.Autocompleters[e]?(this.config.autocompleters.indexOf(e)<0&&this.config.autocompleters.push(e),(this.autocompleters[e]=new pd(this,Dr.Autocompleters[e])).initialize()):Promise.reject(new Error("Autocompleter "+e+" is not a registered autocompleter"))}disableCompleter(e){this.config.autocompleters=this.config.autocompleters.filter(N=>N!==e),this.autocompleters[e]=void 0}autocomplete(e=!1){if(!this.getDoc().somethingSelected())for(let N in this.config.autocompleters){let y=this.autocompleters[this.config.autocompleters[N]];!y||y.autocomplete(e)}}collapsePrefixes(e=!0){let N=Zv(this);N!==void 0&&this.foldCode(N,Na.fold.prefix,e?"fold":"unfold")}getPrefixesFromQuery(){return zv(this)}addPrefixes(e){return Jv(this,e)}removePrefixes(e){return jv(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(),Av(this,e))}getUrlParams(){let e={};return window.location.hash.length>1&&(e=md.parse(location.hash)),(!e||!("query"in e))&&window.location.search.length>1&&(e=md.parse(window.location.search)),e}configToQueryParams(){var e={};return window.location.hash.length>1&&(e=md.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 Iv(this,e)}abortQuery(){this.req&&(this.abortController&&this.abortController.abort(),this.emit("queryAbort",this,this.req))}expandEditor(){this.setSize(null,"100%")}destroy(){this.abortQuery(),this.unregisterEventListeners(),this.resizeWrapper?.removeEventListener("mousedown",this.initDrag,!1),this.resizeWrapper?.removeEventListener("dblclick",this.expandEditor);for(let e in this.autocompleters)this.disableCompleter(e);window.removeEventListener("hashchange",this.handleHashChange),this.rootEl.remove()}static clearStorage(){new kl(Dr.storageNamespace).removeNamespace()}static registerAutocompleter(e,N=!0){let y=e.name;Dr.Autocompleters[y]=e,N&&Dr.defaults.autocompleters.indexOf(y)<0&&Dr.defaults.autocompleters.push(y)}static forkAutocompleter(e,N,y=!0){if(!Dr.Autocompleters[e])throw new Error("Autocompleter "+e+" does not exist");if(!N?.name)throw new Error("Expected a name for newly registered autocompleter");let w=N.name;Dr.Autocompleters[w]={...Dr.Autocompleters[e],...N},y&&Dr.defaults.autocompleters.indexOf(w)<0&&Dr.defaults.autocompleters.push(w)}};Dr.storageNamespace="triply",Dr.Sparql=Nv,Dr.runMode=Na.runMode,Dr.Autocompleters={},Dr.defaults=Sv();var Qf=Dr;Object.assign(Na.prototype,Qf.prototype);oA.forEach(i=>{Qf.registerAutocompleter(i)});var Z1=Qf;return nI(Q1);})();
|
|
53
91
|
/*! Bundled license information:
|
|
54
92
|
|
|
55
93
|
dompurify/dist/purify.es.mjs:
|